|
|
1.1 ! root 1: #! /bin/sh ! 2: # Guess values for system-dependent variables and create Makefiles. ! 3: # Generated by GNU Autoconf 2.57 for libltdl 1.2. ! 4: # ! 5: # Report bugs to <[email protected]>. ! 6: # ! 7: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 ! 8: # Free Software Foundation, Inc. ! 9: # This configure script is free software; the Free Software Foundation ! 10: # gives unlimited permission to copy, distribute and modify it. ! 11: ## --------------------- ## ! 12: ## M4sh Initialization. ## ! 13: ## --------------------- ## ! 14: ! 15: # Be Bourne compatible ! 16: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! 17: emulate sh ! 18: NULLCMD=: ! 19: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ! 20: # is contrary to our usage. Disable this feature. ! 21: alias -g '${1+"$@"}'='"$@"' ! 22: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ! 23: set -o posix ! 24: fi ! 25: ! 26: # Support unset when possible. ! 27: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then ! 28: as_unset=unset ! 29: else ! 30: as_unset=false ! 31: fi ! 32: ! 33: ! 34: # Work around bugs in pre-3.0 UWIN ksh. ! 35: $as_unset ENV MAIL MAILPATH ! 36: PS1='$ ' ! 37: PS2='> ' ! 38: PS4='+ ' ! 39: ! 40: # NLS nuisances. ! 41: for as_var in \ ! 42: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! 43: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! 44: LC_TELEPHONE LC_TIME ! 45: do ! 46: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then ! 47: eval $as_var=C; export $as_var ! 48: else ! 49: $as_unset $as_var ! 50: fi ! 51: done ! 52: ! 53: # Required to use basename. ! 54: if expr a : '\(a\)' >/dev/null 2>&1; then ! 55: as_expr=expr ! 56: else ! 57: as_expr=false ! 58: fi ! 59: ! 60: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ! 61: as_basename=basename ! 62: else ! 63: as_basename=false ! 64: fi ! 65: ! 66: ! 67: # Name of the executable. ! 68: as_me=`$as_basename "$0" || ! 69: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! 70: X"$0" : 'X\(//\)$' \| \ ! 71: X"$0" : 'X\(/\)$' \| \ ! 72: . : '\(.\)' 2>/dev/null || ! 73: echo X/"$0" | ! 74: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ! 75: /^X\/\(\/\/\)$/{ s//\1/; q; } ! 76: /^X\/\(\/\).*/{ s//\1/; q; } ! 77: s/.*/./; q'` ! 78: ! 79: ! 80: # PATH needs CR, and LINENO needs CR and PATH. ! 81: # Avoid depending upon Character Ranges. ! 82: as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! 83: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! 84: as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! 85: as_cr_digits='0123456789' ! 86: as_cr_alnum=$as_cr_Letters$as_cr_digits ! 87: ! 88: # The user is always right. ! 89: if test "${PATH_SEPARATOR+set}" != set; then ! 90: echo "#! /bin/sh" >conf$$.sh ! 91: echo "exit 0" >>conf$$.sh ! 92: chmod +x conf$$.sh ! 93: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! 94: PATH_SEPARATOR=';' ! 95: else ! 96: PATH_SEPARATOR=: ! 97: fi ! 98: rm -f conf$$.sh ! 99: fi ! 100: ! 101: ! 102: as_lineno_1=$LINENO ! 103: as_lineno_2=$LINENO ! 104: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 105: test "x$as_lineno_1" != "x$as_lineno_2" && ! 106: test "x$as_lineno_3" = "x$as_lineno_2" || { ! 107: # Find who we are. Look in the path if we contain no path at all ! 108: # relative or not. ! 109: case $0 in ! 110: *[\\/]* ) as_myself=$0 ;; ! 111: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 112: for as_dir in $PATH ! 113: do ! 114: IFS=$as_save_IFS ! 115: test -z "$as_dir" && as_dir=. ! 116: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! 117: done ! 118: ! 119: ;; ! 120: esac ! 121: # We did not find ourselves, most probably we were run as `sh COMMAND' ! 122: # in which case we are not to be found in the path. ! 123: if test "x$as_myself" = x; then ! 124: as_myself=$0 ! 125: fi ! 126: if test ! -f "$as_myself"; then ! 127: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 ! 128: { (exit 1); exit 1; }; } ! 129: fi ! 130: case $CONFIG_SHELL in ! 131: '') ! 132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 133: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ! 134: do ! 135: IFS=$as_save_IFS ! 136: test -z "$as_dir" && as_dir=. ! 137: for as_base in sh bash ksh sh5; do ! 138: case $as_dir in ! 139: /*) ! 140: if ("$as_dir/$as_base" -c ' ! 141: as_lineno_1=$LINENO ! 142: as_lineno_2=$LINENO ! 143: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 144: test "x$as_lineno_1" != "x$as_lineno_2" && ! 145: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ! 146: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } ! 147: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } ! 148: CONFIG_SHELL=$as_dir/$as_base ! 149: export CONFIG_SHELL ! 150: exec "$CONFIG_SHELL" "$0" ${1+"$@"} ! 151: fi;; ! 152: esac ! 153: done ! 154: done ! 155: ;; ! 156: esac ! 157: ! 158: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! 159: # uniformly replaced by the line number. The first 'sed' inserts a ! 160: # line-number line before each line; the second 'sed' does the real ! 161: # work. The second script uses 'N' to pair each line-number line ! 162: # with the numbered line, and appends trailing '-' during ! 163: # substitution so that $LINENO is not a special case at line end. ! 164: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! 165: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ! 166: sed '=' <$as_myself | ! 167: sed ' ! 168: N ! 169: s,$,-, ! 170: : loop ! 171: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ! 172: t loop ! 173: s,-$,, ! 174: s,^['$as_cr_digits']*\n,, ! 175: ' >$as_me.lineno && ! 176: chmod +x $as_me.lineno || ! 177: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ! 178: { (exit 1); exit 1; }; } ! 179: ! 180: # Don't try to exec as it changes $[0], causing all sort of problems ! 181: # (the dirname of $[0] is not the place where we might find the ! 182: # original and so on. Autoconf is especially sensible to this). ! 183: . ./$as_me.lineno ! 184: # Exit status is that of the last command. ! 185: exit ! 186: } ! 187: ! 188: ! 189: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ! 190: *c*,-n*) ECHO_N= ECHO_C=' ! 191: ' ECHO_T=' ' ;; ! 192: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ! 193: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ! 194: esac ! 195: ! 196: if expr a : '\(a\)' >/dev/null 2>&1; then ! 197: as_expr=expr ! 198: else ! 199: as_expr=false ! 200: fi ! 201: ! 202: rm -f conf$$ conf$$.exe conf$$.file ! 203: echo >conf$$.file ! 204: if ln -s conf$$.file conf$$ 2>/dev/null; then ! 205: # We could just check for DJGPP; but this test a) works b) is more generic ! 206: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ! 207: if test -f conf$$.exe; then ! 208: # Don't use ln at all; we don't have any links ! 209: as_ln_s='cp -p' ! 210: else ! 211: as_ln_s='ln -s' ! 212: fi ! 213: elif ln conf$$.file conf$$ 2>/dev/null; then ! 214: as_ln_s=ln ! 215: else ! 216: as_ln_s='cp -p' ! 217: fi ! 218: rm -f conf$$ conf$$.exe conf$$.file ! 219: ! 220: if mkdir -p . 2>/dev/null; then ! 221: as_mkdir_p=: ! 222: else ! 223: as_mkdir_p=false ! 224: fi ! 225: ! 226: as_executable_p="test -f" ! 227: ! 228: # Sed expression to map a string onto a valid CPP name. ! 229: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" ! 230: ! 231: # Sed expression to map a string onto a valid variable name. ! 232: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" ! 233: ! 234: ! 235: # IFS ! 236: # We need space, tab and new line, in precisely that order. ! 237: as_nl=' ! 238: ' ! 239: IFS=" $as_nl" ! 240: ! 241: # CDPATH. ! 242: $as_unset CDPATH ! 243: ! 244: ! 245: ! 246: # Check that we are running under the correct shell. ! 247: SHELL=${CONFIG_SHELL-/bin/sh} ! 248: ! 249: case X$ECHO in ! 250: X*--fallback-echo) ! 251: # Remove one level of quotation (which was required for Make). ! 252: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ! 253: ;; ! 254: esac ! 255: ! 256: echo=${ECHO-echo} ! 257: if test "X$1" = X--no-reexec; then ! 258: # Discard the --no-reexec flag, and continue. ! 259: shift ! 260: elif test "X$1" = X--fallback-echo; then ! 261: # Avoid inline document here, it may be left over ! 262: : ! 263: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then ! 264: # Yippee, $echo works! ! 265: : ! 266: else ! 267: # Restart under the correct shell. ! 268: exec $SHELL "$0" --no-reexec ${1+"$@"} ! 269: fi ! 270: ! 271: if test "X$1" = X--fallback-echo; then ! 272: # used as fallback echo ! 273: shift ! 274: cat <<EOF ! 275: $* ! 276: EOF ! 277: exit 0 ! 278: fi ! 279: ! 280: # The HP-UX ksh and POSIX shell print the target directory to stdout ! 281: # if CDPATH is set. ! 282: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi ! 283: ! 284: if test -z "$ECHO"; then ! 285: if test "X${echo_test_string+set}" != Xset; then ! 286: # find a string as large as possible, as long as the shell can cope with it ! 287: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do ! 288: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... ! 289: if (echo_test_string="`eval $cmd`") 2>/dev/null && ! 290: echo_test_string="`eval $cmd`" && ! 291: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null ! 292: then ! 293: break ! 294: fi ! 295: done ! 296: fi ! 297: ! 298: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && ! 299: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && ! 300: test "X$echo_testing_string" = "X$echo_test_string"; then ! 301: : ! 302: else ! 303: # The Solaris, AIX, and Digital Unix default echo programs unquote ! 304: # backslashes. This makes it impossible to quote backslashes using ! 305: # echo "$something" | sed 's/\\/\\\\/g' ! 306: # ! 307: # So, first we look for a working echo in the user's PATH. ! 308: ! 309: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 310: for dir in $PATH /usr/ucb; do ! 311: IFS="$lt_save_ifs" ! 312: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && ! 313: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && ! 314: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && ! 315: test "X$echo_testing_string" = "X$echo_test_string"; then ! 316: echo="$dir/echo" ! 317: break ! 318: fi ! 319: done ! 320: IFS="$lt_save_ifs" ! 321: ! 322: if test "X$echo" = Xecho; then ! 323: # We didn't find a better echo, so look for alternatives. ! 324: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && ! 325: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && ! 326: test "X$echo_testing_string" = "X$echo_test_string"; then ! 327: # This shell has a builtin print -r that does the trick. ! 328: echo='print -r' ! 329: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && ! 330: test "X$CONFIG_SHELL" != X/bin/ksh; then ! 331: # If we have ksh, try running configure again with it. ! 332: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} ! 333: export ORIGINAL_CONFIG_SHELL ! 334: CONFIG_SHELL=/bin/ksh ! 335: export CONFIG_SHELL ! 336: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} ! 337: else ! 338: # Try using printf. ! 339: echo='printf %s\n' ! 340: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && ! 341: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && ! 342: test "X$echo_testing_string" = "X$echo_test_string"; then ! 343: # Cool, printf works ! 344: : ! 345: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ! 346: test "X$echo_testing_string" = 'X\t' && ! 347: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ! 348: test "X$echo_testing_string" = "X$echo_test_string"; then ! 349: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL ! 350: export CONFIG_SHELL ! 351: SHELL="$CONFIG_SHELL" ! 352: export SHELL ! 353: echo="$CONFIG_SHELL $0 --fallback-echo" ! 354: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ! 355: test "X$echo_testing_string" = 'X\t' && ! 356: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ! 357: test "X$echo_testing_string" = "X$echo_test_string"; then ! 358: echo="$CONFIG_SHELL $0 --fallback-echo" ! 359: else ! 360: # maybe with a smaller string... ! 361: prev=: ! 362: ! 363: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do ! 364: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null ! 365: then ! 366: break ! 367: fi ! 368: prev="$cmd" ! 369: done ! 370: ! 371: if test "$prev" != 'sed 50q "$0"'; then ! 372: echo_test_string=`eval $prev` ! 373: export echo_test_string ! 374: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} ! 375: else ! 376: # Oops. We lost completely, so just stick with echo. ! 377: echo=echo ! 378: fi ! 379: fi ! 380: fi ! 381: fi ! 382: fi ! 383: fi ! 384: ! 385: # Copy echo and quote the copy suitably for passing to libtool from ! 386: # the Makefile, instead of quoting the original, which is used later. ! 387: ECHO=$echo ! 388: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ! 389: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" ! 390: fi ! 391: ! 392: ! 393: ! 394: ! 395: tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` ! 396: ! 397: tagnames=`echo "$tagnames,F77" | sed 's/^,//'` ! 398: ! 399: # Name of the host. ! 400: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, ! 401: # so uname gets run too. ! 402: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` ! 403: ! 404: exec 6>&1 ! 405: ! 406: # ! 407: # Initializations. ! 408: # ! 409: ac_default_prefix=/usr/local ! 410: ac_config_libobj_dir=. ! 411: cross_compiling=no ! 412: subdirs= ! 413: MFLAGS= ! 414: MAKEFLAGS= ! 415: SHELL=${CONFIG_SHELL-/bin/sh} ! 416: ! 417: # Maximum number of lines to put in a shell here document. ! 418: # This variable seems obsolete. It should probably be removed, and ! 419: # only ac_max_sed_lines should be used. ! 420: : ${ac_max_here_lines=38} ! 421: ! 422: # Identity of this package. ! 423: PACKAGE_NAME='libltdl' ! 424: PACKAGE_TARNAME='libltdl' ! 425: PACKAGE_VERSION='1.2' ! 426: PACKAGE_STRING='libltdl 1.2' ! 427: PACKAGE_BUGREPORT='[email protected]' ! 428: ! 429: ac_unique_file="ltdl.c" ! 430: # Factoring default headers for most tests. ! 431: ac_includes_default="\ ! 432: #include <stdio.h> ! 433: #if HAVE_SYS_TYPES_H ! 434: # include <sys/types.h> ! 435: #endif ! 436: #if HAVE_SYS_STAT_H ! 437: # include <sys/stat.h> ! 438: #endif ! 439: #if STDC_HEADERS ! 440: # include <stdlib.h> ! 441: # include <stddef.h> ! 442: #else ! 443: # if HAVE_STDLIB_H ! 444: # include <stdlib.h> ! 445: # endif ! 446: #endif ! 447: #if HAVE_STRING_H ! 448: # if !STDC_HEADERS && HAVE_MEMORY_H ! 449: # include <memory.h> ! 450: # endif ! 451: # include <string.h> ! 452: #endif ! 453: #if HAVE_STRINGS_H ! 454: # include <strings.h> ! 455: #endif ! 456: #if HAVE_INTTYPES_H ! 457: # include <inttypes.h> ! 458: #else ! 459: # if HAVE_STDINT_H ! 460: # include <stdint.h> ! 461: # endif ! 462: #endif ! 463: #if HAVE_UNISTD_H ! 464: # include <unistd.h> ! 465: #endif" ! 466: ! 467: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS' ! 468: ac_subst_files='' ! 469: ! 470: # Initialize some variables set by options. ! 471: ac_init_help= ! 472: ac_init_version=false ! 473: # The variables have the same names as the options, with ! 474: # dashes changed to underlines. ! 475: cache_file=/dev/null ! 476: exec_prefix=NONE ! 477: no_create= ! 478: no_recursion= ! 479: prefix=NONE ! 480: program_prefix=NONE ! 481: program_suffix=NONE ! 482: program_transform_name=s,x,x, ! 483: silent= ! 484: site= ! 485: srcdir= ! 486: verbose= ! 487: x_includes=NONE ! 488: x_libraries=NONE ! 489: ! 490: # Installation directory options. ! 491: # These are left unexpanded so users can "make install exec_prefix=/foo" ! 492: # and all the variables that are supposed to be based on exec_prefix ! 493: # by default will actually change. ! 494: # Use braces instead of parens because sh, perl, etc. also accept them. ! 495: bindir='${exec_prefix}/bin' ! 496: sbindir='${exec_prefix}/sbin' ! 497: libexecdir='${exec_prefix}/libexec' ! 498: datadir='${prefix}/share' ! 499: sysconfdir='${prefix}/etc' ! 500: sharedstatedir='${prefix}/com' ! 501: localstatedir='${prefix}/var' ! 502: libdir='${exec_prefix}/lib' ! 503: includedir='${prefix}/include' ! 504: oldincludedir='/usr/include' ! 505: infodir='${prefix}/info' ! 506: mandir='${prefix}/man' ! 507: ! 508: ac_prev= ! 509: for ac_option ! 510: do ! 511: # If the previous option needs an argument, assign it. ! 512: if test -n "$ac_prev"; then ! 513: eval "$ac_prev=\$ac_option" ! 514: ac_prev= ! 515: continue ! 516: fi ! 517: ! 518: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ! 519: ! 520: # Accept the important Cygnus configure options, so we can diagnose typos. ! 521: ! 522: case $ac_option in ! 523: ! 524: -bindir | --bindir | --bindi | --bind | --bin | --bi) ! 525: ac_prev=bindir ;; ! 526: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ! 527: bindir=$ac_optarg ;; ! 528: ! 529: -build | --build | --buil | --bui | --bu) ! 530: ac_prev=build_alias ;; ! 531: -build=* | --build=* | --buil=* | --bui=* | --bu=*) ! 532: build_alias=$ac_optarg ;; ! 533: ! 534: -cache-file | --cache-file | --cache-fil | --cache-fi \ ! 535: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ! 536: ac_prev=cache_file ;; ! 537: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ! 538: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ! 539: cache_file=$ac_optarg ;; ! 540: ! 541: --config-cache | -C) ! 542: cache_file=config.cache ;; ! 543: ! 544: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ! 545: ac_prev=datadir ;; ! 546: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ! 547: | --da=*) ! 548: datadir=$ac_optarg ;; ! 549: ! 550: -disable-* | --disable-*) ! 551: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` ! 552: # Reject names that are not valid shell variable names. ! 553: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 554: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! 555: { (exit 1); exit 1; }; } ! 556: ac_feature=`echo $ac_feature | sed 's/-/_/g'` ! 557: eval "enable_$ac_feature=no" ;; ! 558: ! 559: -enable-* | --enable-*) ! 560: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` ! 561: # Reject names that are not valid shell variable names. ! 562: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 563: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! 564: { (exit 1); exit 1; }; } ! 565: ac_feature=`echo $ac_feature | sed 's/-/_/g'` ! 566: case $ac_option in ! 567: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ! 568: *) ac_optarg=yes ;; ! 569: esac ! 570: eval "enable_$ac_feature='$ac_optarg'" ;; ! 571: ! 572: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ! 573: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ! 574: | --exec | --exe | --ex) ! 575: ac_prev=exec_prefix ;; ! 576: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ! 577: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ! 578: | --exec=* | --exe=* | --ex=*) ! 579: exec_prefix=$ac_optarg ;; ! 580: ! 581: -gas | --gas | --ga | --g) ! 582: # Obsolete; use --with-gas. ! 583: with_gas=yes ;; ! 584: ! 585: -help | --help | --hel | --he | -h) ! 586: ac_init_help=long ;; ! 587: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ! 588: ac_init_help=recursive ;; ! 589: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ! 590: ac_init_help=short ;; ! 591: ! 592: -host | --host | --hos | --ho) ! 593: ac_prev=host_alias ;; ! 594: -host=* | --host=* | --hos=* | --ho=*) ! 595: host_alias=$ac_optarg ;; ! 596: ! 597: -includedir | --includedir | --includedi | --included | --include \ ! 598: | --includ | --inclu | --incl | --inc) ! 599: ac_prev=includedir ;; ! 600: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ! 601: | --includ=* | --inclu=* | --incl=* | --inc=*) ! 602: includedir=$ac_optarg ;; ! 603: ! 604: -infodir | --infodir | --infodi | --infod | --info | --inf) ! 605: ac_prev=infodir ;; ! 606: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ! 607: infodir=$ac_optarg ;; ! 608: ! 609: -libdir | --libdir | --libdi | --libd) ! 610: ac_prev=libdir ;; ! 611: -libdir=* | --libdir=* | --libdi=* | --libd=*) ! 612: libdir=$ac_optarg ;; ! 613: ! 614: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ! 615: | --libexe | --libex | --libe) ! 616: ac_prev=libexecdir ;; ! 617: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ! 618: | --libexe=* | --libex=* | --libe=*) ! 619: libexecdir=$ac_optarg ;; ! 620: ! 621: -localstatedir | --localstatedir | --localstatedi | --localstated \ ! 622: | --localstate | --localstat | --localsta | --localst \ ! 623: | --locals | --local | --loca | --loc | --lo) ! 624: ac_prev=localstatedir ;; ! 625: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ! 626: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ ! 627: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) ! 628: localstatedir=$ac_optarg ;; ! 629: ! 630: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ! 631: ac_prev=mandir ;; ! 632: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ! 633: mandir=$ac_optarg ;; ! 634: ! 635: -nfp | --nfp | --nf) ! 636: # Obsolete; use --without-fp. ! 637: with_fp=no ;; ! 638: ! 639: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 640: | --no-cr | --no-c | -n) ! 641: no_create=yes ;; ! 642: ! 643: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 644: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ! 645: no_recursion=yes ;; ! 646: ! 647: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ! 648: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ! 649: | --oldin | --oldi | --old | --ol | --o) ! 650: ac_prev=oldincludedir ;; ! 651: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ! 652: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ! 653: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ! 654: oldincludedir=$ac_optarg ;; ! 655: ! 656: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ! 657: ac_prev=prefix ;; ! 658: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ! 659: prefix=$ac_optarg ;; ! 660: ! 661: -program-prefix | --program-prefix | --program-prefi | --program-pref \ ! 662: | --program-pre | --program-pr | --program-p) ! 663: ac_prev=program_prefix ;; ! 664: -program-prefix=* | --program-prefix=* | --program-prefi=* \ ! 665: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ! 666: program_prefix=$ac_optarg ;; ! 667: ! 668: -program-suffix | --program-suffix | --program-suffi | --program-suff \ ! 669: | --program-suf | --program-su | --program-s) ! 670: ac_prev=program_suffix ;; ! 671: -program-suffix=* | --program-suffix=* | --program-suffi=* \ ! 672: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ! 673: program_suffix=$ac_optarg ;; ! 674: ! 675: -program-transform-name | --program-transform-name \ ! 676: | --program-transform-nam | --program-transform-na \ ! 677: | --program-transform-n | --program-transform- \ ! 678: | --program-transform | --program-transfor \ ! 679: | --program-transfo | --program-transf \ ! 680: | --program-trans | --program-tran \ ! 681: | --progr-tra | --program-tr | --program-t) ! 682: ac_prev=program_transform_name ;; ! 683: -program-transform-name=* | --program-transform-name=* \ ! 684: | --program-transform-nam=* | --program-transform-na=* \ ! 685: | --program-transform-n=* | --program-transform-=* \ ! 686: | --program-transform=* | --program-transfor=* \ ! 687: | --program-transfo=* | --program-transf=* \ ! 688: | --program-trans=* | --program-tran=* \ ! 689: | --progr-tra=* | --program-tr=* | --program-t=*) ! 690: program_transform_name=$ac_optarg ;; ! 691: ! 692: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 693: | -silent | --silent | --silen | --sile | --sil) ! 694: silent=yes ;; ! 695: ! 696: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ! 697: ac_prev=sbindir ;; ! 698: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ! 699: | --sbi=* | --sb=*) ! 700: sbindir=$ac_optarg ;; ! 701: ! 702: -sharedstatedir | --sharedstatedir | --sharedstatedi \ ! 703: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ! 704: | --sharedst | --shareds | --shared | --share | --shar \ ! 705: | --sha | --sh) ! 706: ac_prev=sharedstatedir ;; ! 707: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ! 708: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ! 709: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ! 710: | --sha=* | --sh=*) ! 711: sharedstatedir=$ac_optarg ;; ! 712: ! 713: -site | --site | --sit) ! 714: ac_prev=site ;; ! 715: -site=* | --site=* | --sit=*) ! 716: site=$ac_optarg ;; ! 717: ! 718: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ! 719: ac_prev=srcdir ;; ! 720: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ! 721: srcdir=$ac_optarg ;; ! 722: ! 723: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ! 724: | --syscon | --sysco | --sysc | --sys | --sy) ! 725: ac_prev=sysconfdir ;; ! 726: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ! 727: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ! 728: sysconfdir=$ac_optarg ;; ! 729: ! 730: -target | --target | --targe | --targ | --tar | --ta | --t) ! 731: ac_prev=target_alias ;; ! 732: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ! 733: target_alias=$ac_optarg ;; ! 734: ! 735: -v | -verbose | --verbose | --verbos | --verbo | --verb) ! 736: verbose=yes ;; ! 737: ! 738: -version | --version | --versio | --versi | --vers | -V) ! 739: ac_init_version=: ;; ! 740: ! 741: -with-* | --with-*) ! 742: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` ! 743: # Reject names that are not valid shell variable names. ! 744: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 745: { echo "$as_me: error: invalid package name: $ac_package" >&2 ! 746: { (exit 1); exit 1; }; } ! 747: ac_package=`echo $ac_package| sed 's/-/_/g'` ! 748: case $ac_option in ! 749: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ! 750: *) ac_optarg=yes ;; ! 751: esac ! 752: eval "with_$ac_package='$ac_optarg'" ;; ! 753: ! 754: -without-* | --without-*) ! 755: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` ! 756: # Reject names that are not valid shell variable names. ! 757: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 758: { echo "$as_me: error: invalid package name: $ac_package" >&2 ! 759: { (exit 1); exit 1; }; } ! 760: ac_package=`echo $ac_package | sed 's/-/_/g'` ! 761: eval "with_$ac_package=no" ;; ! 762: ! 763: --x) ! 764: # Obsolete; use --with-x. ! 765: with_x=yes ;; ! 766: ! 767: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ! 768: | --x-incl | --x-inc | --x-in | --x-i) ! 769: ac_prev=x_includes ;; ! 770: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ! 771: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ! 772: x_includes=$ac_optarg ;; ! 773: ! 774: -x-libraries | --x-libraries | --x-librarie | --x-librari \ ! 775: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ! 776: ac_prev=x_libraries ;; ! 777: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ! 778: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ! 779: x_libraries=$ac_optarg ;; ! 780: ! 781: -*) { echo "$as_me: error: unrecognized option: $ac_option ! 782: Try \`$0 --help' for more information." >&2 ! 783: { (exit 1); exit 1; }; } ! 784: ;; ! 785: ! 786: *=*) ! 787: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` ! 788: # Reject names that are not valid shell variable names. ! 789: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ! 790: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ! 791: { (exit 1); exit 1; }; } ! 792: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ! 793: eval "$ac_envvar='$ac_optarg'" ! 794: export $ac_envvar ;; ! 795: ! 796: *) ! 797: # FIXME: should be removed in autoconf 3.0. ! 798: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 ! 799: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ! 800: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 ! 801: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ! 802: ;; ! 803: ! 804: esac ! 805: done ! 806: ! 807: if test -n "$ac_prev"; then ! 808: ac_option=--`echo $ac_prev | sed 's/_/-/g'` ! 809: { echo "$as_me: error: missing argument to $ac_option" >&2 ! 810: { (exit 1); exit 1; }; } ! 811: fi ! 812: ! 813: # Be sure to have absolute paths. ! 814: for ac_var in exec_prefix prefix ! 815: do ! 816: eval ac_val=$`echo $ac_var` ! 817: case $ac_val in ! 818: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; ! 819: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! 820: { (exit 1); exit 1; }; };; ! 821: esac ! 822: done ! 823: ! 824: # Be sure to have absolute paths. ! 825: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ ! 826: localstatedir libdir includedir oldincludedir infodir mandir ! 827: do ! 828: eval ac_val=$`echo $ac_var` ! 829: case $ac_val in ! 830: [\\/$]* | ?:[\\/]* ) ;; ! 831: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! 832: { (exit 1); exit 1; }; };; ! 833: esac ! 834: done ! 835: ! 836: # There might be people who depend on the old broken behavior: `$host' ! 837: # used to hold the argument of --host etc. ! 838: # FIXME: To remove some day. ! 839: build=$build_alias ! 840: host=$host_alias ! 841: target=$target_alias ! 842: ! 843: # FIXME: To remove some day. ! 844: if test "x$host_alias" != x; then ! 845: if test "x$build_alias" = x; then ! 846: cross_compiling=maybe ! 847: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. ! 848: If a cross compiler is detected then cross compile mode will be used." >&2 ! 849: elif test "x$build_alias" != "x$host_alias"; then ! 850: cross_compiling=yes ! 851: fi ! 852: fi ! 853: ! 854: ac_tool_prefix= ! 855: test -n "$host_alias" && ac_tool_prefix=$host_alias- ! 856: ! 857: test "$silent" = yes && exec 6>/dev/null ! 858: ! 859: ! 860: # Find the source files, if location was not specified. ! 861: if test -z "$srcdir"; then ! 862: ac_srcdir_defaulted=yes ! 863: # Try the directory containing this script, then its parent. ! 864: ac_confdir=`(dirname "$0") 2>/dev/null || ! 865: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 866: X"$0" : 'X\(//\)[^/]' \| \ ! 867: X"$0" : 'X\(//\)$' \| \ ! 868: X"$0" : 'X\(/\)' \| \ ! 869: . : '\(.\)' 2>/dev/null || ! 870: echo X"$0" | ! 871: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 872: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 873: /^X\(\/\/\)$/{ s//\1/; q; } ! 874: /^X\(\/\).*/{ s//\1/; q; } ! 875: s/.*/./; q'` ! 876: srcdir=$ac_confdir ! 877: if test ! -r $srcdir/$ac_unique_file; then ! 878: srcdir=.. ! 879: fi ! 880: else ! 881: ac_srcdir_defaulted=no ! 882: fi ! 883: if test ! -r $srcdir/$ac_unique_file; then ! 884: if test "$ac_srcdir_defaulted" = yes; then ! 885: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 ! 886: { (exit 1); exit 1; }; } ! 887: else ! 888: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ! 889: { (exit 1); exit 1; }; } ! 890: fi ! 891: fi ! 892: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || ! 893: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 ! 894: { (exit 1); exit 1; }; } ! 895: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ! 896: ac_env_build_alias_set=${build_alias+set} ! 897: ac_env_build_alias_value=$build_alias ! 898: ac_cv_env_build_alias_set=${build_alias+set} ! 899: ac_cv_env_build_alias_value=$build_alias ! 900: ac_env_host_alias_set=${host_alias+set} ! 901: ac_env_host_alias_value=$host_alias ! 902: ac_cv_env_host_alias_set=${host_alias+set} ! 903: ac_cv_env_host_alias_value=$host_alias ! 904: ac_env_target_alias_set=${target_alias+set} ! 905: ac_env_target_alias_value=$target_alias ! 906: ac_cv_env_target_alias_set=${target_alias+set} ! 907: ac_cv_env_target_alias_value=$target_alias ! 908: ac_env_CC_set=${CC+set} ! 909: ac_env_CC_value=$CC ! 910: ac_cv_env_CC_set=${CC+set} ! 911: ac_cv_env_CC_value=$CC ! 912: ac_env_CFLAGS_set=${CFLAGS+set} ! 913: ac_env_CFLAGS_value=$CFLAGS ! 914: ac_cv_env_CFLAGS_set=${CFLAGS+set} ! 915: ac_cv_env_CFLAGS_value=$CFLAGS ! 916: ac_env_LDFLAGS_set=${LDFLAGS+set} ! 917: ac_env_LDFLAGS_value=$LDFLAGS ! 918: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ! 919: ac_cv_env_LDFLAGS_value=$LDFLAGS ! 920: ac_env_CPPFLAGS_set=${CPPFLAGS+set} ! 921: ac_env_CPPFLAGS_value=$CPPFLAGS ! 922: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ! 923: ac_cv_env_CPPFLAGS_value=$CPPFLAGS ! 924: ac_env_CPP_set=${CPP+set} ! 925: ac_env_CPP_value=$CPP ! 926: ac_cv_env_CPP_set=${CPP+set} ! 927: ac_cv_env_CPP_value=$CPP ! 928: ac_env_CXX_set=${CXX+set} ! 929: ac_env_CXX_value=$CXX ! 930: ac_cv_env_CXX_set=${CXX+set} ! 931: ac_cv_env_CXX_value=$CXX ! 932: ac_env_CXXFLAGS_set=${CXXFLAGS+set} ! 933: ac_env_CXXFLAGS_value=$CXXFLAGS ! 934: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} ! 935: ac_cv_env_CXXFLAGS_value=$CXXFLAGS ! 936: ac_env_CXXCPP_set=${CXXCPP+set} ! 937: ac_env_CXXCPP_value=$CXXCPP ! 938: ac_cv_env_CXXCPP_set=${CXXCPP+set} ! 939: ac_cv_env_CXXCPP_value=$CXXCPP ! 940: ac_env_F77_set=${F77+set} ! 941: ac_env_F77_value=$F77 ! 942: ac_cv_env_F77_set=${F77+set} ! 943: ac_cv_env_F77_value=$F77 ! 944: ac_env_FFLAGS_set=${FFLAGS+set} ! 945: ac_env_FFLAGS_value=$FFLAGS ! 946: ac_cv_env_FFLAGS_set=${FFLAGS+set} ! 947: ac_cv_env_FFLAGS_value=$FFLAGS ! 948: ! 949: # ! 950: # Report the --help message. ! 951: # ! 952: if test "$ac_init_help" = "long"; then ! 953: # Omit some internal or obsolete options to make the list less imposing. ! 954: # This message is too long to be a string in the A/UX 3.1 sh. ! 955: cat <<_ACEOF ! 956: \`configure' configures libltdl 1.2 to adapt to many kinds of systems. ! 957: ! 958: Usage: $0 [OPTION]... [VAR=VALUE]... ! 959: ! 960: To assign environment variables (e.g., CC, CFLAGS...), specify them as ! 961: VAR=VALUE. See below for descriptions of some of the useful variables. ! 962: ! 963: Defaults for the options are specified in brackets. ! 964: ! 965: Configuration: ! 966: -h, --help display this help and exit ! 967: --help=short display options specific to this package ! 968: --help=recursive display the short help of all the included packages ! 969: -V, --version display version information and exit ! 970: -q, --quiet, --silent do not print \`checking...' messages ! 971: --cache-file=FILE cache test results in FILE [disabled] ! 972: -C, --config-cache alias for \`--cache-file=config.cache' ! 973: -n, --no-create do not create output files ! 974: --srcdir=DIR find the sources in DIR [configure dir or \`..'] ! 975: ! 976: _ACEOF ! 977: ! 978: cat <<_ACEOF ! 979: Installation directories: ! 980: --prefix=PREFIX install architecture-independent files in PREFIX ! 981: [$ac_default_prefix] ! 982: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! 983: [PREFIX] ! 984: ! 985: By default, \`make install' will install all the files in ! 986: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify ! 987: an installation prefix other than \`$ac_default_prefix' using \`--prefix', ! 988: for instance \`--prefix=\$HOME'. ! 989: ! 990: For better control, use the options below. ! 991: ! 992: Fine tuning of the installation directories: ! 993: --bindir=DIR user executables [EPREFIX/bin] ! 994: --sbindir=DIR system admin executables [EPREFIX/sbin] ! 995: --libexecdir=DIR program executables [EPREFIX/libexec] ! 996: --datadir=DIR read-only architecture-independent data [PREFIX/share] ! 997: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ! 998: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ! 999: --localstatedir=DIR modifiable single-machine data [PREFIX/var] ! 1000: --libdir=DIR object code libraries [EPREFIX/lib] ! 1001: --includedir=DIR C header files [PREFIX/include] ! 1002: --oldincludedir=DIR C header files for non-gcc [/usr/include] ! 1003: --infodir=DIR info documentation [PREFIX/info] ! 1004: --mandir=DIR man documentation [PREFIX/man] ! 1005: _ACEOF ! 1006: ! 1007: cat <<\_ACEOF ! 1008: ! 1009: Program names: ! 1010: --program-prefix=PREFIX prepend PREFIX to installed program names ! 1011: --program-suffix=SUFFIX append SUFFIX to installed program names ! 1012: --program-transform-name=PROGRAM run sed PROGRAM on installed program names ! 1013: ! 1014: System types: ! 1015: --build=BUILD configure for building on BUILD [guessed] ! 1016: --host=HOST cross-compile to build programs to run on HOST [BUILD] ! 1017: _ACEOF ! 1018: fi ! 1019: ! 1020: if test -n "$ac_init_help"; then ! 1021: case $ac_init_help in ! 1022: short | recursive ) echo "Configuration of libltdl 1.2:";; ! 1023: esac ! 1024: cat <<\_ACEOF ! 1025: ! 1026: Optional Features: ! 1027: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ! 1028: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ! 1029: --disable-dependency-tracking Speeds up one-time builds ! 1030: --enable-dependency-tracking Do not reject slow dependency extractors ! 1031: --enable-shared[=PKGS] ! 1032: build shared libraries [default=yes] ! 1033: --enable-static[=PKGS] ! 1034: build static libraries [default=yes] ! 1035: --enable-fast-install[=PKGS] ! 1036: optimize for fast installation [default=yes] ! 1037: --disable-libtool-lock avoid locking (might break parallel builds) ! 1038: --enable-ltdl-install install libltdl ! 1039: ! 1040: Optional Packages: ! 1041: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ! 1042: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ! 1043: --with-gnu-ld assume the C compiler uses GNU ld [default=no] ! 1044: --with-pic try to use only PIC/non-PIC objects [default=use ! 1045: both] ! 1046: --with-tags[=TAGS] ! 1047: include additional configurations [automatic] ! 1048: ! 1049: Some influential environment variables: ! 1050: CC C compiler command ! 1051: CFLAGS C compiler flags ! 1052: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a ! 1053: nonstandard directory <lib dir> ! 1054: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have ! 1055: headers in a nonstandard directory <include dir> ! 1056: CPP C preprocessor ! 1057: CXX C++ compiler command ! 1058: CXXFLAGS C++ compiler flags ! 1059: CXXCPP C++ preprocessor ! 1060: F77 Fortran 77 compiler command ! 1061: FFLAGS Fortran 77 compiler flags ! 1062: ! 1063: Use these variables to override the choices made by `configure' or to help ! 1064: it to find libraries and programs with nonstandard names/locations. ! 1065: ! 1066: Report bugs to <[email protected]>. ! 1067: _ACEOF ! 1068: fi ! 1069: ! 1070: if test "$ac_init_help" = "recursive"; then ! 1071: # If there are subdirs, report their specific --help. ! 1072: ac_popdir=`pwd` ! 1073: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ! 1074: test -d $ac_dir || continue ! 1075: ac_builddir=. ! 1076: ! 1077: if test "$ac_dir" != .; then ! 1078: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 1079: # A "../" for each directory in $ac_dir_suffix. ! 1080: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 1081: else ! 1082: ac_dir_suffix= ac_top_builddir= ! 1083: fi ! 1084: ! 1085: case $srcdir in ! 1086: .) # No --srcdir option. We are building in place. ! 1087: ac_srcdir=. ! 1088: if test -z "$ac_top_builddir"; then ! 1089: ac_top_srcdir=. ! 1090: else ! 1091: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 1092: fi ;; ! 1093: [\\/]* | ?:[\\/]* ) # Absolute path. ! 1094: ac_srcdir=$srcdir$ac_dir_suffix; ! 1095: ac_top_srcdir=$srcdir ;; ! 1096: *) # Relative path. ! 1097: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 1098: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 1099: esac ! 1100: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 1101: # absolute. ! 1102: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 1103: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ! 1104: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 1105: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 1106: ! 1107: cd $ac_dir ! 1108: # Check for guested configure; otherwise get Cygnus style configure. ! 1109: if test -f $ac_srcdir/configure.gnu; then ! 1110: echo ! 1111: $SHELL $ac_srcdir/configure.gnu --help=recursive ! 1112: elif test -f $ac_srcdir/configure; then ! 1113: echo ! 1114: $SHELL $ac_srcdir/configure --help=recursive ! 1115: elif test -f $ac_srcdir/configure.ac || ! 1116: test -f $ac_srcdir/configure.in; then ! 1117: echo ! 1118: $ac_configure --help ! 1119: else ! 1120: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 ! 1121: fi ! 1122: cd $ac_popdir ! 1123: done ! 1124: fi ! 1125: ! 1126: test -n "$ac_init_help" && exit 0 ! 1127: if $ac_init_version; then ! 1128: cat <<\_ACEOF ! 1129: libltdl configure 1.2 ! 1130: generated by GNU Autoconf 2.57 ! 1131: ! 1132: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 ! 1133: Free Software Foundation, Inc. ! 1134: This configure script is free software; the Free Software Foundation ! 1135: gives unlimited permission to copy, distribute and modify it. ! 1136: _ACEOF ! 1137: exit 0 ! 1138: fi ! 1139: exec 5>config.log ! 1140: cat >&5 <<_ACEOF ! 1141: This file contains any messages produced by compilers while ! 1142: running configure, to aid debugging if configure makes a mistake. ! 1143: ! 1144: It was created by libltdl $as_me 1.2, which was ! 1145: generated by GNU Autoconf 2.57. Invocation command line was ! 1146: ! 1147: $ $0 $@ ! 1148: ! 1149: _ACEOF ! 1150: { ! 1151: cat <<_ASUNAME ! 1152: ## --------- ## ! 1153: ## Platform. ## ! 1154: ## --------- ## ! 1155: ! 1156: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ! 1157: uname -m = `(uname -m) 2>/dev/null || echo unknown` ! 1158: uname -r = `(uname -r) 2>/dev/null || echo unknown` ! 1159: uname -s = `(uname -s) 2>/dev/null || echo unknown` ! 1160: uname -v = `(uname -v) 2>/dev/null || echo unknown` ! 1161: ! 1162: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ! 1163: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ! 1164: ! 1165: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ! 1166: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ! 1167: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ! 1168: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` ! 1169: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ! 1170: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ! 1171: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ! 1172: ! 1173: _ASUNAME ! 1174: ! 1175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1176: for as_dir in $PATH ! 1177: do ! 1178: IFS=$as_save_IFS ! 1179: test -z "$as_dir" && as_dir=. ! 1180: echo "PATH: $as_dir" ! 1181: done ! 1182: ! 1183: } >&5 ! 1184: ! 1185: cat >&5 <<_ACEOF ! 1186: ! 1187: ! 1188: ## ----------- ## ! 1189: ## Core tests. ## ! 1190: ## ----------- ## ! 1191: ! 1192: _ACEOF ! 1193: ! 1194: ! 1195: # Keep a trace of the command line. ! 1196: # Strip out --no-create and --no-recursion so they do not pile up. ! 1197: # Strip out --silent because we don't want to record it for future runs. ! 1198: # Also quote any args containing shell meta-characters. ! 1199: # Make two passes to allow for proper duplicate-argument suppression. ! 1200: ac_configure_args= ! 1201: ac_configure_args0= ! 1202: ac_configure_args1= ! 1203: ac_sep= ! 1204: ac_must_keep_next=false ! 1205: for ac_pass in 1 2 ! 1206: do ! 1207: for ac_arg ! 1208: do ! 1209: case $ac_arg in ! 1210: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; ! 1211: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 1212: | -silent | --silent | --silen | --sile | --sil) ! 1213: continue ;; ! 1214: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ! 1215: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ! 1216: esac ! 1217: case $ac_pass in ! 1218: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; ! 1219: 2) ! 1220: ac_configure_args1="$ac_configure_args1 '$ac_arg'" ! 1221: if test $ac_must_keep_next = true; then ! 1222: ac_must_keep_next=false # Got value, back to normal. ! 1223: else ! 1224: case $ac_arg in ! 1225: *=* | --config-cache | -C | -disable-* | --disable-* \ ! 1226: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ ! 1227: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ ! 1228: | -with-* | --with-* | -without-* | --without-* | --x) ! 1229: case "$ac_configure_args0 " in ! 1230: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; ! 1231: esac ! 1232: ;; ! 1233: -* ) ac_must_keep_next=true ;; ! 1234: esac ! 1235: fi ! 1236: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" ! 1237: # Get rid of the leading space. ! 1238: ac_sep=" " ! 1239: ;; ! 1240: esac ! 1241: done ! 1242: done ! 1243: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } ! 1244: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } ! 1245: ! 1246: # When interrupted or exit'd, cleanup temporary files, and complete ! 1247: # config.log. We remove comments because anyway the quotes in there ! 1248: # would cause problems or look ugly. ! 1249: # WARNING: Be sure not to use single quotes in there, as some shells, ! 1250: # such as our DU 5.0 friend, will then `close' the trap. ! 1251: trap 'exit_status=$? ! 1252: # Save into config.log some information that might help in debugging. ! 1253: { ! 1254: echo ! 1255: ! 1256: cat <<\_ASBOX ! 1257: ## ---------------- ## ! 1258: ## Cache variables. ## ! 1259: ## ---------------- ## ! 1260: _ASBOX ! 1261: echo ! 1262: # The following way of writing the cache mishandles newlines in values, ! 1263: { ! 1264: (set) 2>&1 | ! 1265: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in ! 1266: *ac_space=\ *) ! 1267: sed -n \ ! 1268: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; ! 1269: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ! 1270: ;; ! 1271: *) ! 1272: sed -n \ ! 1273: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ! 1274: ;; ! 1275: esac; ! 1276: } ! 1277: echo ! 1278: ! 1279: cat <<\_ASBOX ! 1280: ## ----------------- ## ! 1281: ## Output variables. ## ! 1282: ## ----------------- ## ! 1283: _ASBOX ! 1284: echo ! 1285: for ac_var in $ac_subst_vars ! 1286: do ! 1287: eval ac_val=$`echo $ac_var` ! 1288: echo "$ac_var='"'"'$ac_val'"'"'" ! 1289: done | sort ! 1290: echo ! 1291: ! 1292: if test -n "$ac_subst_files"; then ! 1293: cat <<\_ASBOX ! 1294: ## ------------- ## ! 1295: ## Output files. ## ! 1296: ## ------------- ## ! 1297: _ASBOX ! 1298: echo ! 1299: for ac_var in $ac_subst_files ! 1300: do ! 1301: eval ac_val=$`echo $ac_var` ! 1302: echo "$ac_var='"'"'$ac_val'"'"'" ! 1303: done | sort ! 1304: echo ! 1305: fi ! 1306: ! 1307: if test -s confdefs.h; then ! 1308: cat <<\_ASBOX ! 1309: ## ----------- ## ! 1310: ## confdefs.h. ## ! 1311: ## ----------- ## ! 1312: _ASBOX ! 1313: echo ! 1314: sed "/^$/d" confdefs.h | sort ! 1315: echo ! 1316: fi ! 1317: test "$ac_signal" != 0 && ! 1318: echo "$as_me: caught signal $ac_signal" ! 1319: echo "$as_me: exit $exit_status" ! 1320: } >&5 ! 1321: rm -f core core.* *.core && ! 1322: rm -rf conftest* confdefs* conf$$* $ac_clean_files && ! 1323: exit $exit_status ! 1324: ' 0 ! 1325: for ac_signal in 1 2 13 15; do ! 1326: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal ! 1327: done ! 1328: ac_signal=0 ! 1329: ! 1330: # confdefs.h avoids OS command line length limits that DEFS can exceed. ! 1331: rm -rf conftest* confdefs.h ! 1332: # AIX cpp loses on an empty file, so make sure it contains at least a newline. ! 1333: echo >confdefs.h ! 1334: ! 1335: # Predefined preprocessor variables. ! 1336: ! 1337: cat >>confdefs.h <<_ACEOF ! 1338: #define PACKAGE_NAME "$PACKAGE_NAME" ! 1339: _ACEOF ! 1340: ! 1341: ! 1342: cat >>confdefs.h <<_ACEOF ! 1343: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" ! 1344: _ACEOF ! 1345: ! 1346: ! 1347: cat >>confdefs.h <<_ACEOF ! 1348: #define PACKAGE_VERSION "$PACKAGE_VERSION" ! 1349: _ACEOF ! 1350: ! 1351: ! 1352: cat >>confdefs.h <<_ACEOF ! 1353: #define PACKAGE_STRING "$PACKAGE_STRING" ! 1354: _ACEOF ! 1355: ! 1356: ! 1357: cat >>confdefs.h <<_ACEOF ! 1358: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" ! 1359: _ACEOF ! 1360: ! 1361: ! 1362: # Let the site file select an alternate cache file if it wants to. ! 1363: # Prefer explicitly selected file to automatically selected ones. ! 1364: if test -z "$CONFIG_SITE"; then ! 1365: if test "x$prefix" != xNONE; then ! 1366: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" ! 1367: else ! 1368: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" ! 1369: fi ! 1370: fi ! 1371: for ac_site_file in $CONFIG_SITE; do ! 1372: if test -r "$ac_site_file"; then ! 1373: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ! 1374: echo "$as_me: loading site script $ac_site_file" >&6;} ! 1375: sed 's/^/| /' "$ac_site_file" >&5 ! 1376: . "$ac_site_file" ! 1377: fi ! 1378: done ! 1379: ! 1380: if test -r "$cache_file"; then ! 1381: # Some versions of bash will fail to source /dev/null (special ! 1382: # files actually), so we avoid doing that. ! 1383: if test -f "$cache_file"; then ! 1384: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ! 1385: echo "$as_me: loading cache $cache_file" >&6;} ! 1386: case $cache_file in ! 1387: [\\/]* | ?:[\\/]* ) . $cache_file;; ! 1388: *) . ./$cache_file;; ! 1389: esac ! 1390: fi ! 1391: else ! 1392: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ! 1393: echo "$as_me: creating cache $cache_file" >&6;} ! 1394: >$cache_file ! 1395: fi ! 1396: ! 1397: # Check that the precious variables saved in the cache have kept the same ! 1398: # value. ! 1399: ac_cache_corrupted=false ! 1400: for ac_var in `(set) 2>&1 | ! 1401: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do ! 1402: eval ac_old_set=\$ac_cv_env_${ac_var}_set ! 1403: eval ac_new_set=\$ac_env_${ac_var}_set ! 1404: eval ac_old_val="\$ac_cv_env_${ac_var}_value" ! 1405: eval ac_new_val="\$ac_env_${ac_var}_value" ! 1406: case $ac_old_set,$ac_new_set in ! 1407: set,) ! 1408: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ! 1409: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ! 1410: ac_cache_corrupted=: ;; ! 1411: ,set) ! 1412: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 ! 1413: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ! 1414: ac_cache_corrupted=: ;; ! 1415: ,);; ! 1416: *) ! 1417: if test "x$ac_old_val" != "x$ac_new_val"; then ! 1418: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 ! 1419: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ! 1420: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 ! 1421: echo "$as_me: former value: $ac_old_val" >&2;} ! 1422: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 ! 1423: echo "$as_me: current value: $ac_new_val" >&2;} ! 1424: ac_cache_corrupted=: ! 1425: fi;; ! 1426: esac ! 1427: # Pass precious variables to config.status. ! 1428: if test "$ac_new_set" = set; then ! 1429: case $ac_new_val in ! 1430: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ! 1431: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; ! 1432: *) ac_arg=$ac_var=$ac_new_val ;; ! 1433: esac ! 1434: case " $ac_configure_args " in ! 1435: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ! 1436: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; ! 1437: esac ! 1438: fi ! 1439: done ! 1440: if $ac_cache_corrupted; then ! 1441: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ! 1442: echo "$as_me: error: changes in the environment can compromise the build" >&2;} ! 1443: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ! 1444: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ! 1445: { (exit 1); exit 1; }; } ! 1446: fi ! 1447: ! 1448: ac_ext=c ! 1449: ac_cpp='$CPP $CPPFLAGS' ! 1450: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 1451: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 1452: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 1453: ! 1454: ! 1455: ! 1456: ! 1457: ! 1458: ! 1459: ! 1460: ! 1461: ! 1462: ! 1463: ! 1464: ! 1465: ! 1466: ! 1467: ! 1468: ! 1469: ! 1470: ! 1471: ! 1472: ! 1473: ! 1474: ! 1475: ! 1476: ! 1477: ! 1478: ! 1479: ! 1480: ! 1481: ! 1482: ! 1483: ## ------------------------------- ## ! 1484: ## Libltdl specific configuration. ## ! 1485: ## ------------------------------- ## ! 1486: ! 1487: ac_aux_dir= ! 1488: for ac_dir in . $srcdir/.; do ! 1489: if test -f $ac_dir/install-sh; then ! 1490: ac_aux_dir=$ac_dir ! 1491: ac_install_sh="$ac_aux_dir/install-sh -c" ! 1492: break ! 1493: elif test -f $ac_dir/install.sh; then ! 1494: ac_aux_dir=$ac_dir ! 1495: ac_install_sh="$ac_aux_dir/install.sh -c" ! 1496: break ! 1497: elif test -f $ac_dir/shtool; then ! 1498: ac_aux_dir=$ac_dir ! 1499: ac_install_sh="$ac_aux_dir/shtool install -c" ! 1500: break ! 1501: fi ! 1502: done ! 1503: if test -z "$ac_aux_dir"; then ! 1504: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 ! 1505: echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} ! 1506: { (exit 1); exit 1; }; } ! 1507: fi ! 1508: ac_config_guess="$SHELL $ac_aux_dir/config.guess" ! 1509: ac_config_sub="$SHELL $ac_aux_dir/config.sub" ! 1510: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. ! 1511: ! 1512: ! 1513: if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then ! 1514: if test -f ${srcdir}/ltmain.sh; then ! 1515: # if libltdl is libtoolized, it is assumed to be stand-alone and ! 1516: # installed unless the command line overrides it (tested above) ! 1517: enable_ltdl_install=yes ! 1518: else ! 1519: { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5 ! 1520: echo "$as_me: WARNING: *** The top-level configure must select either" >&2;} ! 1521: { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5 ! 1522: echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;} ! 1523: { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5 ! 1524: echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;} ! 1525: { (exit 1); exit 1; }; } ! 1526: fi ! 1527: fi ! 1528: ! 1529: ! 1530: ## ------------------------ ## ! 1531: ## Automake Initialisation. ## ! 1532: ## ------------------------ ## ! 1533: am__api_version="1.7" ! 1534: # Find a good install program. We prefer a C program (faster), ! 1535: # so one script is as good as another. But avoid the broken or ! 1536: # incompatible versions: ! 1537: # SysV /etc/install, /usr/sbin/install ! 1538: # SunOS /usr/etc/install ! 1539: # IRIX /sbin/install ! 1540: # AIX /bin/install ! 1541: # AmigaOS /C/install, which installs bootblocks on floppy discs ! 1542: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ! 1543: # AFS /usr/afsws/bin/install, which mishandles nonexistent args ! 1544: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ! 1545: # ./install, which can be erroneously created by make from ./install.sh. ! 1546: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ! 1547: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 ! 1548: if test -z "$INSTALL"; then ! 1549: if test "${ac_cv_path_install+set}" = set; then ! 1550: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1551: else ! 1552: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1553: for as_dir in $PATH ! 1554: do ! 1555: IFS=$as_save_IFS ! 1556: test -z "$as_dir" && as_dir=. ! 1557: # Account for people who put trailing slashes in PATH elements. ! 1558: case $as_dir/ in ! 1559: ./ | .// | /cC/* | \ ! 1560: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! 1561: /usr/ucb/* ) ;; ! 1562: *) ! 1563: # OSF1 and SCO ODT 3.0 have their own names for install. ! 1564: # Don't use installbsd from OSF since it installs stuff as root ! 1565: # by default. ! 1566: for ac_prog in ginstall scoinst install; do ! 1567: for ac_exec_ext in '' $ac_executable_extensions; do ! 1568: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then ! 1569: if test $ac_prog = install && ! 1570: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 1571: # AIX install. It has an incompatible calling convention. ! 1572: : ! 1573: elif test $ac_prog = install && ! 1574: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 1575: # program-specific install script used by HP pwplus--don't use. ! 1576: : ! 1577: else ! 1578: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! 1579: break 3 ! 1580: fi ! 1581: fi ! 1582: done ! 1583: done ! 1584: ;; ! 1585: esac ! 1586: done ! 1587: ! 1588: ! 1589: fi ! 1590: if test "${ac_cv_path_install+set}" = set; then ! 1591: INSTALL=$ac_cv_path_install ! 1592: else ! 1593: # As a last resort, use the slow shell script. We don't cache a ! 1594: # path for INSTALL within a source directory, because that will ! 1595: # break other packages using the cache if that directory is ! 1596: # removed, or if the path is relative. ! 1597: INSTALL=$ac_install_sh ! 1598: fi ! 1599: fi ! 1600: echo "$as_me:$LINENO: result: $INSTALL" >&5 ! 1601: echo "${ECHO_T}$INSTALL" >&6 ! 1602: ! 1603: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. ! 1604: # It thinks the first close brace ends the variable substitution. ! 1605: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ! 1606: ! 1607: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ! 1608: ! 1609: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ! 1610: ! 1611: echo "$as_me:$LINENO: checking whether build environment is sane" >&5 ! 1612: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 ! 1613: # Just in case ! 1614: sleep 1 ! 1615: echo timestamp > conftest.file ! 1616: # Do `set' in a subshell so we don't clobber the current shell's ! 1617: # arguments. Must try -L first in case configure is actually a ! 1618: # symlink; some systems play weird games with the mod time of symlinks ! 1619: # (eg FreeBSD returns the mod time of the symlink's containing ! 1620: # directory). ! 1621: if ( ! 1622: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` ! 1623: if test "$*" = "X"; then ! 1624: # -L didn't work. ! 1625: set X `ls -t $srcdir/configure conftest.file` ! 1626: fi ! 1627: rm -f conftest.file ! 1628: if test "$*" != "X $srcdir/configure conftest.file" \ ! 1629: && test "$*" != "X conftest.file $srcdir/configure"; then ! 1630: ! 1631: # If neither matched, then we have a broken ls. This can happen ! 1632: # if, for instance, CONFIG_SHELL is bash and it inherits a ! 1633: # broken ls alias from the environment. This has actually ! 1634: # happened. Such a system could not be considered "sane". ! 1635: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken ! 1636: alias in your environment" >&5 ! 1637: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken ! 1638: alias in your environment" >&2;} ! 1639: { (exit 1); exit 1; }; } ! 1640: fi ! 1641: ! 1642: test "$2" = conftest.file ! 1643: ) ! 1644: then ! 1645: # Ok. ! 1646: : ! 1647: else ! 1648: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! ! 1649: Check your system clock" >&5 ! 1650: echo "$as_me: error: newly created file is older than distributed files! ! 1651: Check your system clock" >&2;} ! 1652: { (exit 1); exit 1; }; } ! 1653: fi ! 1654: echo "$as_me:$LINENO: result: yes" >&5 ! 1655: echo "${ECHO_T}yes" >&6 ! 1656: test "$program_prefix" != NONE && ! 1657: program_transform_name="s,^,$program_prefix,;$program_transform_name" ! 1658: # Use a double $ so make ignores it. ! 1659: test "$program_suffix" != NONE && ! 1660: program_transform_name="s,\$,$program_suffix,;$program_transform_name" ! 1661: # Double any \ or $. echo might interpret backslashes. ! 1662: # By default was `s,x,x', remove it if useless. ! 1663: cat <<\_ACEOF >conftest.sed ! 1664: s/[\\$]/&&/g;s/;s,x,x,$// ! 1665: _ACEOF ! 1666: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` ! 1667: rm conftest.sed ! 1668: ! 1669: ! 1670: # expand $ac_aux_dir to an absolute path ! 1671: am_aux_dir=`cd $ac_aux_dir && pwd` ! 1672: ! 1673: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" ! 1674: # Use eval to expand $SHELL ! 1675: if eval "$MISSING --run true"; then ! 1676: am_missing_run="$MISSING --run " ! 1677: else ! 1678: am_missing_run= ! 1679: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 ! 1680: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} ! 1681: fi ! 1682: ! 1683: for ac_prog in gawk mawk nawk awk ! 1684: do ! 1685: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 1686: set dummy $ac_prog; ac_word=$2 ! 1687: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1688: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1689: if test "${ac_cv_prog_AWK+set}" = set; then ! 1690: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1691: else ! 1692: if test -n "$AWK"; then ! 1693: ac_cv_prog_AWK="$AWK" # Let the user override the test. ! 1694: else ! 1695: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1696: for as_dir in $PATH ! 1697: do ! 1698: IFS=$as_save_IFS ! 1699: test -z "$as_dir" && as_dir=. ! 1700: for ac_exec_ext in '' $ac_executable_extensions; do ! 1701: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1702: ac_cv_prog_AWK="$ac_prog" ! 1703: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1704: break 2 ! 1705: fi ! 1706: done ! 1707: done ! 1708: ! 1709: fi ! 1710: fi ! 1711: AWK=$ac_cv_prog_AWK ! 1712: if test -n "$AWK"; then ! 1713: echo "$as_me:$LINENO: result: $AWK" >&5 ! 1714: echo "${ECHO_T}$AWK" >&6 ! 1715: else ! 1716: echo "$as_me:$LINENO: result: no" >&5 ! 1717: echo "${ECHO_T}no" >&6 ! 1718: fi ! 1719: ! 1720: test -n "$AWK" && break ! 1721: done ! 1722: ! 1723: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 ! 1724: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 ! 1725: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` ! 1726: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then ! 1727: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1728: else ! 1729: cat >conftest.make <<\_ACEOF ! 1730: all: ! 1731: @echo 'ac_maketemp="$(MAKE)"' ! 1732: _ACEOF ! 1733: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! 1734: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` ! 1735: if test -n "$ac_maketemp"; then ! 1736: eval ac_cv_prog_make_${ac_make}_set=yes ! 1737: else ! 1738: eval ac_cv_prog_make_${ac_make}_set=no ! 1739: fi ! 1740: rm -f conftest.make ! 1741: fi ! 1742: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ! 1743: echo "$as_me:$LINENO: result: yes" >&5 ! 1744: echo "${ECHO_T}yes" >&6 ! 1745: SET_MAKE= ! 1746: else ! 1747: echo "$as_me:$LINENO: result: no" >&5 ! 1748: echo "${ECHO_T}no" >&6 ! 1749: SET_MAKE="MAKE=${MAKE-make}" ! 1750: fi ! 1751: ! 1752: rm -rf .tst 2>/dev/null ! 1753: mkdir .tst 2>/dev/null ! 1754: if test -d .tst; then ! 1755: am__leading_dot=. ! 1756: else ! 1757: am__leading_dot=_ ! 1758: fi ! 1759: rmdir .tst 2>/dev/null ! 1760: ! 1761: # test to see if srcdir already configured ! 1762: if test "`cd $srcdir && pwd`" != "`pwd`" && ! 1763: test -f $srcdir/config.status; then ! 1764: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 ! 1765: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} ! 1766: { (exit 1); exit 1; }; } ! 1767: fi ! 1768: ! 1769: # test whether we have cygpath ! 1770: if test -z "$CYGPATH_W"; then ! 1771: if (cygpath --version) >/dev/null 2>/dev/null; then ! 1772: CYGPATH_W='cygpath -w' ! 1773: else ! 1774: CYGPATH_W=echo ! 1775: fi ! 1776: fi ! 1777: ! 1778: ! 1779: # Define the identity of the package. ! 1780: PACKAGE=libltdl ! 1781: VERSION=1.2 ! 1782: ! 1783: ! 1784: # Some tools Automake needs. ! 1785: ! 1786: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} ! 1787: ! 1788: ! 1789: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} ! 1790: ! 1791: ! 1792: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} ! 1793: ! 1794: ! 1795: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} ! 1796: ! 1797: ! 1798: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} ! 1799: ! 1800: ! 1801: AMTAR=${AMTAR-"${am_missing_run}tar"} ! 1802: ! 1803: install_sh=${install_sh-"$am_aux_dir/install-sh"} ! 1804: ! 1805: # Installed binaries are usually stripped using `strip' when the user ! 1806: # run `make install-strip'. However `strip' might not be the right ! 1807: # tool to use in cross-compilation environments, therefore Automake ! 1808: # will honor the `STRIP' environment variable to overrule this program. ! 1809: if test "$cross_compiling" != no; then ! 1810: if test -n "$ac_tool_prefix"; then ! 1811: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ! 1812: set dummy ${ac_tool_prefix}strip; ac_word=$2 ! 1813: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1814: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1815: if test "${ac_cv_prog_STRIP+set}" = set; then ! 1816: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1817: else ! 1818: if test -n "$STRIP"; then ! 1819: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ! 1820: else ! 1821: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1822: for as_dir in $PATH ! 1823: do ! 1824: IFS=$as_save_IFS ! 1825: test -z "$as_dir" && as_dir=. ! 1826: for ac_exec_ext in '' $ac_executable_extensions; do ! 1827: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1828: ac_cv_prog_STRIP="${ac_tool_prefix}strip" ! 1829: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1830: break 2 ! 1831: fi ! 1832: done ! 1833: done ! 1834: ! 1835: fi ! 1836: fi ! 1837: STRIP=$ac_cv_prog_STRIP ! 1838: if test -n "$STRIP"; then ! 1839: echo "$as_me:$LINENO: result: $STRIP" >&5 ! 1840: echo "${ECHO_T}$STRIP" >&6 ! 1841: else ! 1842: echo "$as_me:$LINENO: result: no" >&5 ! 1843: echo "${ECHO_T}no" >&6 ! 1844: fi ! 1845: ! 1846: fi ! 1847: if test -z "$ac_cv_prog_STRIP"; then ! 1848: ac_ct_STRIP=$STRIP ! 1849: # Extract the first word of "strip", so it can be a program name with args. ! 1850: set dummy strip; ac_word=$2 ! 1851: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1852: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1853: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ! 1854: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1855: else ! 1856: if test -n "$ac_ct_STRIP"; then ! 1857: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ! 1858: else ! 1859: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1860: for as_dir in $PATH ! 1861: do ! 1862: IFS=$as_save_IFS ! 1863: test -z "$as_dir" && as_dir=. ! 1864: for ac_exec_ext in '' $ac_executable_extensions; do ! 1865: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1866: ac_cv_prog_ac_ct_STRIP="strip" ! 1867: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1868: break 2 ! 1869: fi ! 1870: done ! 1871: done ! 1872: ! 1873: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" ! 1874: fi ! 1875: fi ! 1876: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ! 1877: if test -n "$ac_ct_STRIP"; then ! 1878: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ! 1879: echo "${ECHO_T}$ac_ct_STRIP" >&6 ! 1880: else ! 1881: echo "$as_me:$LINENO: result: no" >&5 ! 1882: echo "${ECHO_T}no" >&6 ! 1883: fi ! 1884: ! 1885: STRIP=$ac_ct_STRIP ! 1886: else ! 1887: STRIP="$ac_cv_prog_STRIP" ! 1888: fi ! 1889: ! 1890: fi ! 1891: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" ! 1892: ! 1893: # We need awk for the "check" target. The system "awk" is bad on ! 1894: # some platforms. ! 1895: ! 1896: ! 1897: ! 1898: ac_config_headers="$ac_config_headers config.h:config-h.in" ! 1899: ! 1900: ! 1901: ! 1902: ## ------------------ ## ! 1903: ## C compiler checks. ## ! 1904: ## ------------------ ## ! 1905: ac_ext=c ! 1906: ac_cpp='$CPP $CPPFLAGS' ! 1907: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 1908: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 1909: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 1910: if test -n "$ac_tool_prefix"; then ! 1911: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ! 1912: set dummy ${ac_tool_prefix}gcc; ac_word=$2 ! 1913: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1914: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1915: if test "${ac_cv_prog_CC+set}" = set; then ! 1916: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1917: else ! 1918: if test -n "$CC"; then ! 1919: ac_cv_prog_CC="$CC" # Let the user override the test. ! 1920: else ! 1921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1922: for as_dir in $PATH ! 1923: do ! 1924: IFS=$as_save_IFS ! 1925: test -z "$as_dir" && as_dir=. ! 1926: for ac_exec_ext in '' $ac_executable_extensions; do ! 1927: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1928: ac_cv_prog_CC="${ac_tool_prefix}gcc" ! 1929: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1930: break 2 ! 1931: fi ! 1932: done ! 1933: done ! 1934: ! 1935: fi ! 1936: fi ! 1937: CC=$ac_cv_prog_CC ! 1938: if test -n "$CC"; then ! 1939: echo "$as_me:$LINENO: result: $CC" >&5 ! 1940: echo "${ECHO_T}$CC" >&6 ! 1941: else ! 1942: echo "$as_me:$LINENO: result: no" >&5 ! 1943: echo "${ECHO_T}no" >&6 ! 1944: fi ! 1945: ! 1946: fi ! 1947: if test -z "$ac_cv_prog_CC"; then ! 1948: ac_ct_CC=$CC ! 1949: # Extract the first word of "gcc", so it can be a program name with args. ! 1950: set dummy gcc; ac_word=$2 ! 1951: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1952: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1953: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 1954: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1955: else ! 1956: if test -n "$ac_ct_CC"; then ! 1957: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 1958: else ! 1959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1960: for as_dir in $PATH ! 1961: do ! 1962: IFS=$as_save_IFS ! 1963: test -z "$as_dir" && as_dir=. ! 1964: for ac_exec_ext in '' $ac_executable_extensions; do ! 1965: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1966: ac_cv_prog_ac_ct_CC="gcc" ! 1967: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1968: break 2 ! 1969: fi ! 1970: done ! 1971: done ! 1972: ! 1973: fi ! 1974: fi ! 1975: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 1976: if test -n "$ac_ct_CC"; then ! 1977: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 1978: echo "${ECHO_T}$ac_ct_CC" >&6 ! 1979: else ! 1980: echo "$as_me:$LINENO: result: no" >&5 ! 1981: echo "${ECHO_T}no" >&6 ! 1982: fi ! 1983: ! 1984: CC=$ac_ct_CC ! 1985: else ! 1986: CC="$ac_cv_prog_CC" ! 1987: fi ! 1988: ! 1989: if test -z "$CC"; then ! 1990: if test -n "$ac_tool_prefix"; then ! 1991: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ! 1992: set dummy ${ac_tool_prefix}cc; ac_word=$2 ! 1993: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1994: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1995: if test "${ac_cv_prog_CC+set}" = set; then ! 1996: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1997: else ! 1998: if test -n "$CC"; then ! 1999: ac_cv_prog_CC="$CC" # Let the user override the test. ! 2000: else ! 2001: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2002: for as_dir in $PATH ! 2003: do ! 2004: IFS=$as_save_IFS ! 2005: test -z "$as_dir" && as_dir=. ! 2006: for ac_exec_ext in '' $ac_executable_extensions; do ! 2007: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2008: ac_cv_prog_CC="${ac_tool_prefix}cc" ! 2009: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2010: break 2 ! 2011: fi ! 2012: done ! 2013: done ! 2014: ! 2015: fi ! 2016: fi ! 2017: CC=$ac_cv_prog_CC ! 2018: if test -n "$CC"; then ! 2019: echo "$as_me:$LINENO: result: $CC" >&5 ! 2020: echo "${ECHO_T}$CC" >&6 ! 2021: else ! 2022: echo "$as_me:$LINENO: result: no" >&5 ! 2023: echo "${ECHO_T}no" >&6 ! 2024: fi ! 2025: ! 2026: fi ! 2027: if test -z "$ac_cv_prog_CC"; then ! 2028: ac_ct_CC=$CC ! 2029: # Extract the first word of "cc", so it can be a program name with args. ! 2030: set dummy cc; ac_word=$2 ! 2031: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2032: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2033: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 2034: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2035: else ! 2036: if test -n "$ac_ct_CC"; then ! 2037: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 2038: else ! 2039: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2040: for as_dir in $PATH ! 2041: do ! 2042: IFS=$as_save_IFS ! 2043: test -z "$as_dir" && as_dir=. ! 2044: for ac_exec_ext in '' $ac_executable_extensions; do ! 2045: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2046: ac_cv_prog_ac_ct_CC="cc" ! 2047: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2048: break 2 ! 2049: fi ! 2050: done ! 2051: done ! 2052: ! 2053: fi ! 2054: fi ! 2055: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 2056: if test -n "$ac_ct_CC"; then ! 2057: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 2058: echo "${ECHO_T}$ac_ct_CC" >&6 ! 2059: else ! 2060: echo "$as_me:$LINENO: result: no" >&5 ! 2061: echo "${ECHO_T}no" >&6 ! 2062: fi ! 2063: ! 2064: CC=$ac_ct_CC ! 2065: else ! 2066: CC="$ac_cv_prog_CC" ! 2067: fi ! 2068: ! 2069: fi ! 2070: if test -z "$CC"; then ! 2071: # Extract the first word of "cc", so it can be a program name with args. ! 2072: set dummy cc; ac_word=$2 ! 2073: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2074: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2075: if test "${ac_cv_prog_CC+set}" = set; then ! 2076: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2077: else ! 2078: if test -n "$CC"; then ! 2079: ac_cv_prog_CC="$CC" # Let the user override the test. ! 2080: else ! 2081: ac_prog_rejected=no ! 2082: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2083: for as_dir in $PATH ! 2084: do ! 2085: IFS=$as_save_IFS ! 2086: test -z "$as_dir" && as_dir=. ! 2087: for ac_exec_ext in '' $ac_executable_extensions; do ! 2088: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2089: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ! 2090: ac_prog_rejected=yes ! 2091: continue ! 2092: fi ! 2093: ac_cv_prog_CC="cc" ! 2094: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2095: break 2 ! 2096: fi ! 2097: done ! 2098: done ! 2099: ! 2100: if test $ac_prog_rejected = yes; then ! 2101: # We found a bogon in the path, so make sure we never use it. ! 2102: set dummy $ac_cv_prog_CC ! 2103: shift ! 2104: if test $# != 0; then ! 2105: # We chose a different compiler from the bogus one. ! 2106: # However, it has the same basename, so the bogon will be chosen ! 2107: # first if we set CC to just the basename; use the full file name. ! 2108: shift ! 2109: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ! 2110: fi ! 2111: fi ! 2112: fi ! 2113: fi ! 2114: CC=$ac_cv_prog_CC ! 2115: if test -n "$CC"; then ! 2116: echo "$as_me:$LINENO: result: $CC" >&5 ! 2117: echo "${ECHO_T}$CC" >&6 ! 2118: else ! 2119: echo "$as_me:$LINENO: result: no" >&5 ! 2120: echo "${ECHO_T}no" >&6 ! 2121: fi ! 2122: ! 2123: fi ! 2124: if test -z "$CC"; then ! 2125: if test -n "$ac_tool_prefix"; then ! 2126: for ac_prog in cl ! 2127: do ! 2128: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! 2129: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! 2130: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2131: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2132: if test "${ac_cv_prog_CC+set}" = set; then ! 2133: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2134: else ! 2135: if test -n "$CC"; then ! 2136: ac_cv_prog_CC="$CC" # Let the user override the test. ! 2137: else ! 2138: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2139: for as_dir in $PATH ! 2140: do ! 2141: IFS=$as_save_IFS ! 2142: test -z "$as_dir" && as_dir=. ! 2143: for ac_exec_ext in '' $ac_executable_extensions; do ! 2144: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2145: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ! 2146: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2147: break 2 ! 2148: fi ! 2149: done ! 2150: done ! 2151: ! 2152: fi ! 2153: fi ! 2154: CC=$ac_cv_prog_CC ! 2155: if test -n "$CC"; then ! 2156: echo "$as_me:$LINENO: result: $CC" >&5 ! 2157: echo "${ECHO_T}$CC" >&6 ! 2158: else ! 2159: echo "$as_me:$LINENO: result: no" >&5 ! 2160: echo "${ECHO_T}no" >&6 ! 2161: fi ! 2162: ! 2163: test -n "$CC" && break ! 2164: done ! 2165: fi ! 2166: if test -z "$CC"; then ! 2167: ac_ct_CC=$CC ! 2168: for ac_prog in cl ! 2169: do ! 2170: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 2171: set dummy $ac_prog; ac_word=$2 ! 2172: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2173: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2174: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 2175: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2176: else ! 2177: if test -n "$ac_ct_CC"; then ! 2178: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 2179: else ! 2180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2181: for as_dir in $PATH ! 2182: do ! 2183: IFS=$as_save_IFS ! 2184: test -z "$as_dir" && as_dir=. ! 2185: for ac_exec_ext in '' $ac_executable_extensions; do ! 2186: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2187: ac_cv_prog_ac_ct_CC="$ac_prog" ! 2188: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2189: break 2 ! 2190: fi ! 2191: done ! 2192: done ! 2193: ! 2194: fi ! 2195: fi ! 2196: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 2197: if test -n "$ac_ct_CC"; then ! 2198: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 2199: echo "${ECHO_T}$ac_ct_CC" >&6 ! 2200: else ! 2201: echo "$as_me:$LINENO: result: no" >&5 ! 2202: echo "${ECHO_T}no" >&6 ! 2203: fi ! 2204: ! 2205: test -n "$ac_ct_CC" && break ! 2206: done ! 2207: ! 2208: CC=$ac_ct_CC ! 2209: fi ! 2210: ! 2211: fi ! 2212: ! 2213: ! 2214: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH ! 2215: See \`config.log' for more details." >&5 ! 2216: echo "$as_me: error: no acceptable C compiler found in \$PATH ! 2217: See \`config.log' for more details." >&2;} ! 2218: { (exit 1); exit 1; }; } ! 2219: ! 2220: # Provide some information about the compiler. ! 2221: echo "$as_me:$LINENO:" \ ! 2222: "checking for C compiler version" >&5 ! 2223: ac_compiler=`set X $ac_compile; echo $2` ! 2224: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 ! 2225: (eval $ac_compiler --version </dev/null >&5) 2>&5 ! 2226: ac_status=$? ! 2227: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2228: (exit $ac_status); } ! 2229: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 ! 2230: (eval $ac_compiler -v </dev/null >&5) 2>&5 ! 2231: ac_status=$? ! 2232: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2233: (exit $ac_status); } ! 2234: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 ! 2235: (eval $ac_compiler -V </dev/null >&5) 2>&5 ! 2236: ac_status=$? ! 2237: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2238: (exit $ac_status); } ! 2239: ! 2240: cat >conftest.$ac_ext <<_ACEOF ! 2241: #line $LINENO "configure" ! 2242: /* confdefs.h. */ ! 2243: _ACEOF ! 2244: cat confdefs.h >>conftest.$ac_ext ! 2245: cat >>conftest.$ac_ext <<_ACEOF ! 2246: /* end confdefs.h. */ ! 2247: ! 2248: int ! 2249: main () ! 2250: { ! 2251: ! 2252: ; ! 2253: return 0; ! 2254: } ! 2255: _ACEOF ! 2256: ac_clean_files_save=$ac_clean_files ! 2257: ac_clean_files="$ac_clean_files a.out a.exe b.out" ! 2258: # Try to create an executable without -o first, disregard a.out. ! 2259: # It will help us diagnose broken compilers, and finding out an intuition ! 2260: # of exeext. ! 2261: echo "$as_me:$LINENO: checking for C compiler default output" >&5 ! 2262: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 ! 2263: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` ! 2264: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 ! 2265: (eval $ac_link_default) 2>&5 ! 2266: ac_status=$? ! 2267: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2268: (exit $ac_status); }; then ! 2269: # Find the output, starting from the most likely. This scheme is ! 2270: # not robust to junk in `.', hence go to wildcards (a.*) only as a last ! 2271: # resort. ! 2272: ! 2273: # Be careful to initialize this variable, since it used to be cached. ! 2274: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ! 2275: ac_cv_exeext= ! 2276: # b.out is created by i960 compilers. ! 2277: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out ! 2278: do ! 2279: test -f "$ac_file" || continue ! 2280: case $ac_file in ! 2281: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ! 2282: ;; ! 2283: conftest.$ac_ext ) ! 2284: # This is the source file. ! 2285: ;; ! 2286: [ab].out ) ! 2287: # We found the default executable, but exeext='' is most ! 2288: # certainly right. ! 2289: break;; ! 2290: *.* ) ! 2291: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! 2292: # FIXME: I believe we export ac_cv_exeext for Libtool, ! 2293: # but it would be cool to find out if it's true. Does anybody ! 2294: # maintain Libtool? --akim. ! 2295: export ac_cv_exeext ! 2296: break;; ! 2297: * ) ! 2298: break;; ! 2299: esac ! 2300: done ! 2301: else ! 2302: echo "$as_me: failed program was:" >&5 ! 2303: sed 's/^/| /' conftest.$ac_ext >&5 ! 2304: ! 2305: { { echo "$as_me:$LINENO: error: C compiler cannot create executables ! 2306: See \`config.log' for more details." >&5 ! 2307: echo "$as_me: error: C compiler cannot create executables ! 2308: See \`config.log' for more details." >&2;} ! 2309: { (exit 77); exit 77; }; } ! 2310: fi ! 2311: ! 2312: ac_exeext=$ac_cv_exeext ! 2313: echo "$as_me:$LINENO: result: $ac_file" >&5 ! 2314: echo "${ECHO_T}$ac_file" >&6 ! 2315: ! 2316: # Check the compiler produces executables we can run. If not, either ! 2317: # the compiler is broken, or we cross compile. ! 2318: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 ! 2319: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 ! 2320: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 ! 2321: # If not cross compiling, check that we can run a simple program. ! 2322: if test "$cross_compiling" != yes; then ! 2323: if { ac_try='./$ac_file' ! 2324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2325: (eval $ac_try) 2>&5 ! 2326: ac_status=$? ! 2327: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2328: (exit $ac_status); }; }; then ! 2329: cross_compiling=no ! 2330: else ! 2331: if test "$cross_compiling" = maybe; then ! 2332: cross_compiling=yes ! 2333: else ! 2334: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. ! 2335: If you meant to cross compile, use \`--host'. ! 2336: See \`config.log' for more details." >&5 ! 2337: echo "$as_me: error: cannot run C compiled programs. ! 2338: If you meant to cross compile, use \`--host'. ! 2339: See \`config.log' for more details." >&2;} ! 2340: { (exit 1); exit 1; }; } ! 2341: fi ! 2342: fi ! 2343: fi ! 2344: echo "$as_me:$LINENO: result: yes" >&5 ! 2345: echo "${ECHO_T}yes" >&6 ! 2346: ! 2347: rm -f a.out a.exe conftest$ac_cv_exeext b.out ! 2348: ac_clean_files=$ac_clean_files_save ! 2349: # Check the compiler produces executables we can run. If not, either ! 2350: # the compiler is broken, or we cross compile. ! 2351: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 ! 2352: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 ! 2353: echo "$as_me:$LINENO: result: $cross_compiling" >&5 ! 2354: echo "${ECHO_T}$cross_compiling" >&6 ! 2355: ! 2356: echo "$as_me:$LINENO: checking for suffix of executables" >&5 ! 2357: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 ! 2358: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 2359: (eval $ac_link) 2>&5 ! 2360: ac_status=$? ! 2361: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2362: (exit $ac_status); }; then ! 2363: # If both `conftest.exe' and `conftest' are `present' (well, observable) ! 2364: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ! 2365: # work properly (i.e., refer to `conftest.exe'), while it won't with ! 2366: # `rm'. ! 2367: for ac_file in conftest.exe conftest conftest.*; do ! 2368: test -f "$ac_file" || continue ! 2369: case $ac_file in ! 2370: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; ! 2371: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! 2372: export ac_cv_exeext ! 2373: break;; ! 2374: * ) break;; ! 2375: esac ! 2376: done ! 2377: else ! 2378: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link ! 2379: See \`config.log' for more details." >&5 ! 2380: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link ! 2381: See \`config.log' for more details." >&2;} ! 2382: { (exit 1); exit 1; }; } ! 2383: fi ! 2384: ! 2385: rm -f conftest$ac_cv_exeext ! 2386: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 ! 2387: echo "${ECHO_T}$ac_cv_exeext" >&6 ! 2388: ! 2389: rm -f conftest.$ac_ext ! 2390: EXEEXT=$ac_cv_exeext ! 2391: ac_exeext=$EXEEXT ! 2392: echo "$as_me:$LINENO: checking for suffix of object files" >&5 ! 2393: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 ! 2394: if test "${ac_cv_objext+set}" = set; then ! 2395: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2396: else ! 2397: cat >conftest.$ac_ext <<_ACEOF ! 2398: #line $LINENO "configure" ! 2399: /* confdefs.h. */ ! 2400: _ACEOF ! 2401: cat confdefs.h >>conftest.$ac_ext ! 2402: cat >>conftest.$ac_ext <<_ACEOF ! 2403: /* end confdefs.h. */ ! 2404: ! 2405: int ! 2406: main () ! 2407: { ! 2408: ! 2409: ; ! 2410: return 0; ! 2411: } ! 2412: _ACEOF ! 2413: rm -f conftest.o conftest.obj ! 2414: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2415: (eval $ac_compile) 2>&5 ! 2416: ac_status=$? ! 2417: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2418: (exit $ac_status); }; then ! 2419: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do ! 2420: case $ac_file in ! 2421: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; ! 2422: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` ! 2423: break;; ! 2424: esac ! 2425: done ! 2426: else ! 2427: echo "$as_me: failed program was:" >&5 ! 2428: sed 's/^/| /' conftest.$ac_ext >&5 ! 2429: ! 2430: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile ! 2431: See \`config.log' for more details." >&5 ! 2432: echo "$as_me: error: cannot compute suffix of object files: cannot compile ! 2433: See \`config.log' for more details." >&2;} ! 2434: { (exit 1); exit 1; }; } ! 2435: fi ! 2436: ! 2437: rm -f conftest.$ac_cv_objext conftest.$ac_ext ! 2438: fi ! 2439: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 ! 2440: echo "${ECHO_T}$ac_cv_objext" >&6 ! 2441: OBJEXT=$ac_cv_objext ! 2442: ac_objext=$OBJEXT ! 2443: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 ! 2444: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 ! 2445: if test "${ac_cv_c_compiler_gnu+set}" = set; then ! 2446: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2447: else ! 2448: cat >conftest.$ac_ext <<_ACEOF ! 2449: #line $LINENO "configure" ! 2450: /* confdefs.h. */ ! 2451: _ACEOF ! 2452: cat confdefs.h >>conftest.$ac_ext ! 2453: cat >>conftest.$ac_ext <<_ACEOF ! 2454: /* end confdefs.h. */ ! 2455: ! 2456: int ! 2457: main () ! 2458: { ! 2459: #ifndef __GNUC__ ! 2460: choke me ! 2461: #endif ! 2462: ! 2463: ; ! 2464: return 0; ! 2465: } ! 2466: _ACEOF ! 2467: rm -f conftest.$ac_objext ! 2468: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2469: (eval $ac_compile) 2>&5 ! 2470: ac_status=$? ! 2471: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2472: (exit $ac_status); } && ! 2473: { ac_try='test -s conftest.$ac_objext' ! 2474: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2475: (eval $ac_try) 2>&5 ! 2476: ac_status=$? ! 2477: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2478: (exit $ac_status); }; }; then ! 2479: ac_compiler_gnu=yes ! 2480: else ! 2481: echo "$as_me: failed program was:" >&5 ! 2482: sed 's/^/| /' conftest.$ac_ext >&5 ! 2483: ! 2484: ac_compiler_gnu=no ! 2485: fi ! 2486: rm -f conftest.$ac_objext conftest.$ac_ext ! 2487: ac_cv_c_compiler_gnu=$ac_compiler_gnu ! 2488: ! 2489: fi ! 2490: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ! 2491: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 ! 2492: GCC=`test $ac_compiler_gnu = yes && echo yes` ! 2493: ac_test_CFLAGS=${CFLAGS+set} ! 2494: ac_save_CFLAGS=$CFLAGS ! 2495: CFLAGS="-g" ! 2496: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ! 2497: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 ! 2498: if test "${ac_cv_prog_cc_g+set}" = set; then ! 2499: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2500: else ! 2501: cat >conftest.$ac_ext <<_ACEOF ! 2502: #line $LINENO "configure" ! 2503: /* confdefs.h. */ ! 2504: _ACEOF ! 2505: cat confdefs.h >>conftest.$ac_ext ! 2506: cat >>conftest.$ac_ext <<_ACEOF ! 2507: /* end confdefs.h. */ ! 2508: ! 2509: int ! 2510: main () ! 2511: { ! 2512: ! 2513: ; ! 2514: return 0; ! 2515: } ! 2516: _ACEOF ! 2517: rm -f conftest.$ac_objext ! 2518: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2519: (eval $ac_compile) 2>&5 ! 2520: ac_status=$? ! 2521: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2522: (exit $ac_status); } && ! 2523: { ac_try='test -s conftest.$ac_objext' ! 2524: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2525: (eval $ac_try) 2>&5 ! 2526: ac_status=$? ! 2527: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2528: (exit $ac_status); }; }; then ! 2529: ac_cv_prog_cc_g=yes ! 2530: else ! 2531: echo "$as_me: failed program was:" >&5 ! 2532: sed 's/^/| /' conftest.$ac_ext >&5 ! 2533: ! 2534: ac_cv_prog_cc_g=no ! 2535: fi ! 2536: rm -f conftest.$ac_objext conftest.$ac_ext ! 2537: fi ! 2538: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ! 2539: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 ! 2540: if test "$ac_test_CFLAGS" = set; then ! 2541: CFLAGS=$ac_save_CFLAGS ! 2542: elif test $ac_cv_prog_cc_g = yes; then ! 2543: if test "$GCC" = yes; then ! 2544: CFLAGS="-g -O2" ! 2545: else ! 2546: CFLAGS="-g" ! 2547: fi ! 2548: else ! 2549: if test "$GCC" = yes; then ! 2550: CFLAGS="-O2" ! 2551: else ! 2552: CFLAGS= ! 2553: fi ! 2554: fi ! 2555: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 ! 2556: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 ! 2557: if test "${ac_cv_prog_cc_stdc+set}" = set; then ! 2558: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2559: else ! 2560: ac_cv_prog_cc_stdc=no ! 2561: ac_save_CC=$CC ! 2562: cat >conftest.$ac_ext <<_ACEOF ! 2563: #line $LINENO "configure" ! 2564: /* confdefs.h. */ ! 2565: _ACEOF ! 2566: cat confdefs.h >>conftest.$ac_ext ! 2567: cat >>conftest.$ac_ext <<_ACEOF ! 2568: /* end confdefs.h. */ ! 2569: #include <stdarg.h> ! 2570: #include <stdio.h> ! 2571: #include <sys/types.h> ! 2572: #include <sys/stat.h> ! 2573: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ ! 2574: struct buf { int x; }; ! 2575: FILE * (*rcsopen) (struct buf *, struct stat *, int); ! 2576: static char *e (p, i) ! 2577: char **p; ! 2578: int i; ! 2579: { ! 2580: return p[i]; ! 2581: } ! 2582: static char *f (char * (*g) (char **, int), char **p, ...) ! 2583: { ! 2584: char *s; ! 2585: va_list v; ! 2586: va_start (v,p); ! 2587: s = g (p, va_arg (v,int)); ! 2588: va_end (v); ! 2589: return s; ! 2590: } ! 2591: int test (int i, double x); ! 2592: struct s1 {int (*f) (int a);}; ! 2593: struct s2 {int (*f) (double a);}; ! 2594: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ! 2595: int argc; ! 2596: char **argv; ! 2597: int ! 2598: main () ! 2599: { ! 2600: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ! 2601: ; ! 2602: return 0; ! 2603: } ! 2604: _ACEOF ! 2605: # Don't try gcc -ansi; that turns off useful extensions and ! 2606: # breaks some systems' header files. ! 2607: # AIX -qlanglvl=ansi ! 2608: # Ultrix and OSF/1 -std1 ! 2609: # HP-UX 10.20 and later -Ae ! 2610: # HP-UX older versions -Aa -D_HPUX_SOURCE ! 2611: # SVR4 -Xc -D__EXTENSIONS__ ! 2612: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ! 2613: do ! 2614: CC="$ac_save_CC $ac_arg" ! 2615: rm -f conftest.$ac_objext ! 2616: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2617: (eval $ac_compile) 2>&5 ! 2618: ac_status=$? ! 2619: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2620: (exit $ac_status); } && ! 2621: { ac_try='test -s conftest.$ac_objext' ! 2622: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2623: (eval $ac_try) 2>&5 ! 2624: ac_status=$? ! 2625: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2626: (exit $ac_status); }; }; then ! 2627: ac_cv_prog_cc_stdc=$ac_arg ! 2628: break ! 2629: else ! 2630: echo "$as_me: failed program was:" >&5 ! 2631: sed 's/^/| /' conftest.$ac_ext >&5 ! 2632: ! 2633: fi ! 2634: rm -f conftest.$ac_objext ! 2635: done ! 2636: rm -f conftest.$ac_ext conftest.$ac_objext ! 2637: CC=$ac_save_CC ! 2638: ! 2639: fi ! 2640: ! 2641: case "x$ac_cv_prog_cc_stdc" in ! 2642: x|xno) ! 2643: echo "$as_me:$LINENO: result: none needed" >&5 ! 2644: echo "${ECHO_T}none needed" >&6 ;; ! 2645: *) ! 2646: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 ! 2647: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 ! 2648: CC="$CC $ac_cv_prog_cc_stdc" ;; ! 2649: esac ! 2650: ! 2651: # Some people use a C++ compiler to compile C. Since we use `exit', ! 2652: # in C++ we need to declare it. In case someone uses the same compiler ! 2653: # for both compiling C and C++ we need to have the C++ compiler decide ! 2654: # the declaration of exit, since it's the most demanding environment. ! 2655: cat >conftest.$ac_ext <<_ACEOF ! 2656: #ifndef __cplusplus ! 2657: choke me ! 2658: #endif ! 2659: _ACEOF ! 2660: rm -f conftest.$ac_objext ! 2661: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2662: (eval $ac_compile) 2>&5 ! 2663: ac_status=$? ! 2664: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2665: (exit $ac_status); } && ! 2666: { ac_try='test -s conftest.$ac_objext' ! 2667: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2668: (eval $ac_try) 2>&5 ! 2669: ac_status=$? ! 2670: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2671: (exit $ac_status); }; }; then ! 2672: for ac_declaration in \ ! 2673: ''\ ! 2674: '#include <stdlib.h>' \ ! 2675: 'extern "C" void std::exit (int) throw (); using std::exit;' \ ! 2676: 'extern "C" void std::exit (int); using std::exit;' \ ! 2677: 'extern "C" void exit (int) throw ();' \ ! 2678: 'extern "C" void exit (int);' \ ! 2679: 'void exit (int);' ! 2680: do ! 2681: cat >conftest.$ac_ext <<_ACEOF ! 2682: #line $LINENO "configure" ! 2683: /* confdefs.h. */ ! 2684: _ACEOF ! 2685: cat confdefs.h >>conftest.$ac_ext ! 2686: cat >>conftest.$ac_ext <<_ACEOF ! 2687: /* end confdefs.h. */ ! 2688: #include <stdlib.h> ! 2689: $ac_declaration ! 2690: int ! 2691: main () ! 2692: { ! 2693: exit (42); ! 2694: ; ! 2695: return 0; ! 2696: } ! 2697: _ACEOF ! 2698: rm -f conftest.$ac_objext ! 2699: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2700: (eval $ac_compile) 2>&5 ! 2701: ac_status=$? ! 2702: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2703: (exit $ac_status); } && ! 2704: { ac_try='test -s conftest.$ac_objext' ! 2705: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2706: (eval $ac_try) 2>&5 ! 2707: ac_status=$? ! 2708: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2709: (exit $ac_status); }; }; then ! 2710: : ! 2711: else ! 2712: echo "$as_me: failed program was:" >&5 ! 2713: sed 's/^/| /' conftest.$ac_ext >&5 ! 2714: ! 2715: continue ! 2716: fi ! 2717: rm -f conftest.$ac_objext conftest.$ac_ext ! 2718: cat >conftest.$ac_ext <<_ACEOF ! 2719: #line $LINENO "configure" ! 2720: /* confdefs.h. */ ! 2721: _ACEOF ! 2722: cat confdefs.h >>conftest.$ac_ext ! 2723: cat >>conftest.$ac_ext <<_ACEOF ! 2724: /* end confdefs.h. */ ! 2725: $ac_declaration ! 2726: int ! 2727: main () ! 2728: { ! 2729: exit (42); ! 2730: ; ! 2731: return 0; ! 2732: } ! 2733: _ACEOF ! 2734: rm -f conftest.$ac_objext ! 2735: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2736: (eval $ac_compile) 2>&5 ! 2737: ac_status=$? ! 2738: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2739: (exit $ac_status); } && ! 2740: { ac_try='test -s conftest.$ac_objext' ! 2741: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2742: (eval $ac_try) 2>&5 ! 2743: ac_status=$? ! 2744: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2745: (exit $ac_status); }; }; then ! 2746: break ! 2747: else ! 2748: echo "$as_me: failed program was:" >&5 ! 2749: sed 's/^/| /' conftest.$ac_ext >&5 ! 2750: ! 2751: fi ! 2752: rm -f conftest.$ac_objext conftest.$ac_ext ! 2753: done ! 2754: rm -f conftest* ! 2755: if test -n "$ac_declaration"; then ! 2756: echo '#ifdef __cplusplus' >>confdefs.h ! 2757: echo $ac_declaration >>confdefs.h ! 2758: echo '#endif' >>confdefs.h ! 2759: fi ! 2760: ! 2761: else ! 2762: echo "$as_me: failed program was:" >&5 ! 2763: sed 's/^/| /' conftest.$ac_ext >&5 ! 2764: ! 2765: fi ! 2766: rm -f conftest.$ac_objext conftest.$ac_ext ! 2767: ac_ext=c ! 2768: ac_cpp='$CPP $CPPFLAGS' ! 2769: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 2770: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 2771: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 2772: DEPDIR="${am__leading_dot}deps" ! 2773: ! 2774: ac_config_commands="$ac_config_commands depfiles" ! 2775: ! 2776: ! 2777: am_make=${MAKE-make} ! 2778: cat > confinc << 'END' ! 2779: doit: ! 2780: @echo done ! 2781: END ! 2782: # If we don't find an include directive, just comment out the code. ! 2783: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 ! 2784: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 ! 2785: am__include="#" ! 2786: am__quote= ! 2787: _am_result=none ! 2788: # First try GNU make style include. ! 2789: echo "include confinc" > confmf ! 2790: # We grep out `Entering directory' and `Leaving directory' ! 2791: # messages which can occur if `w' ends up in MAKEFLAGS. ! 2792: # In particular we don't look at `^make:' because GNU make might ! 2793: # be invoked under some other name (usually "gmake"), in which ! 2794: # case it prints its new name instead of `make'. ! 2795: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then ! 2796: am__include=include ! 2797: am__quote= ! 2798: _am_result=GNU ! 2799: fi ! 2800: # Now try BSD make style include. ! 2801: if test "$am__include" = "#"; then ! 2802: echo '.include "confinc"' > confmf ! 2803: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then ! 2804: am__include=.include ! 2805: am__quote="\"" ! 2806: _am_result=BSD ! 2807: fi ! 2808: fi ! 2809: ! 2810: ! 2811: echo "$as_me:$LINENO: result: $_am_result" >&5 ! 2812: echo "${ECHO_T}$_am_result" >&6 ! 2813: rm -f confinc confmf ! 2814: ! 2815: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. ! 2816: if test "${enable_dependency_tracking+set}" = set; then ! 2817: enableval="$enable_dependency_tracking" ! 2818: ! 2819: fi; ! 2820: if test "x$enable_dependency_tracking" != xno; then ! 2821: am_depcomp="$ac_aux_dir/depcomp" ! 2822: AMDEPBACKSLASH='\' ! 2823: fi ! 2824: ! 2825: ! 2826: if test "x$enable_dependency_tracking" != xno; then ! 2827: AMDEP_TRUE= ! 2828: AMDEP_FALSE='#' ! 2829: else ! 2830: AMDEP_TRUE='#' ! 2831: AMDEP_FALSE= ! 2832: fi ! 2833: ! 2834: ! 2835: ! 2836: ! 2837: depcc="$CC" am_compiler_list= ! 2838: ! 2839: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ! 2840: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 ! 2841: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then ! 2842: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2843: else ! 2844: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ! 2845: # We make a subdir and do the tests there. Otherwise we can end up ! 2846: # making bogus files that we don't know about and never remove. For ! 2847: # instance it was reported that on HP-UX the gcc test will end up ! 2848: # making a dummy file named `D' -- because `-MD' means `put the output ! 2849: # in D'. ! 2850: mkdir conftest.dir ! 2851: # Copy depcomp to subdir because otherwise we won't find it if we're ! 2852: # using a relative directory. ! 2853: cp "$am_depcomp" conftest.dir ! 2854: cd conftest.dir ! 2855: ! 2856: am_cv_CC_dependencies_compiler_type=none ! 2857: if test "$am_compiler_list" = ""; then ! 2858: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ! 2859: fi ! 2860: for depmode in $am_compiler_list; do ! 2861: # We need to recreate these files for each test, as the compiler may ! 2862: # overwrite some of them when testing with obscure command lines. ! 2863: # This happens at least with the AIX C compiler. ! 2864: echo '#include "conftest.h"' > conftest.c ! 2865: echo 'int i;' > conftest.h ! 2866: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf ! 2867: ! 2868: case $depmode in ! 2869: nosideeffect) ! 2870: # after this tag, mechanisms are not by side-effect, so they'll ! 2871: # only be used when explicitly requested ! 2872: if test "x$enable_dependency_tracking" = xyes; then ! 2873: continue ! 2874: else ! 2875: break ! 2876: fi ! 2877: ;; ! 2878: none) break ;; ! 2879: esac ! 2880: # We check with `-c' and `-o' for the sake of the "dashmstdout" ! 2881: # mode. It turns out that the SunPro C++ compiler does not properly ! 2882: # handle `-M -o', and we need to detect this. ! 2883: if depmode=$depmode \ ! 2884: source=conftest.c object=conftest.o \ ! 2885: depfile=conftest.Po tmpdepfile=conftest.TPo \ ! 2886: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \ ! 2887: >/dev/null 2>conftest.err && ! 2888: grep conftest.h conftest.Po > /dev/null 2>&1 && ! 2889: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ! 2890: # icc doesn't choke on unknown options, it will just issue warnings ! 2891: # (even with -Werror). So we grep stderr for any message ! 2892: # that says an option was ignored. ! 2893: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else ! 2894: am_cv_CC_dependencies_compiler_type=$depmode ! 2895: break ! 2896: fi ! 2897: fi ! 2898: done ! 2899: ! 2900: cd .. ! 2901: rm -rf conftest.dir ! 2902: else ! 2903: am_cv_CC_dependencies_compiler_type=none ! 2904: fi ! 2905: ! 2906: fi ! 2907: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 ! 2908: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 ! 2909: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type ! 2910: ! 2911: ! 2912: ! 2913: if ! 2914: test "x$enable_dependency_tracking" != xno \ ! 2915: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then ! 2916: am__fastdepCC_TRUE= ! 2917: am__fastdepCC_FALSE='#' ! 2918: else ! 2919: am__fastdepCC_TRUE='#' ! 2920: am__fastdepCC_FALSE= ! 2921: fi ! 2922: ! 2923: ! 2924: ! 2925: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 ! 2926: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 ! 2927: if test "${ac_cv_c_const+set}" = set; then ! 2928: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2929: else ! 2930: cat >conftest.$ac_ext <<_ACEOF ! 2931: #line $LINENO "configure" ! 2932: /* confdefs.h. */ ! 2933: _ACEOF ! 2934: cat confdefs.h >>conftest.$ac_ext ! 2935: cat >>conftest.$ac_ext <<_ACEOF ! 2936: /* end confdefs.h. */ ! 2937: ! 2938: int ! 2939: main () ! 2940: { ! 2941: /* FIXME: Include the comments suggested by Paul. */ ! 2942: #ifndef __cplusplus ! 2943: /* Ultrix mips cc rejects this. */ ! 2944: typedef int charset[2]; ! 2945: const charset x; ! 2946: /* SunOS 4.1.1 cc rejects this. */ ! 2947: char const *const *ccp; ! 2948: char **p; ! 2949: /* NEC SVR4.0.2 mips cc rejects this. */ ! 2950: struct point {int x, y;}; ! 2951: static struct point const zero = {0,0}; ! 2952: /* AIX XL C 1.02.0.0 rejects this. ! 2953: It does not let you subtract one const X* pointer from another in ! 2954: an arm of an if-expression whose if-part is not a constant ! 2955: expression */ ! 2956: const char *g = "string"; ! 2957: ccp = &g + (g ? g-g : 0); ! 2958: /* HPUX 7.0 cc rejects these. */ ! 2959: ++ccp; ! 2960: p = (char**) ccp; ! 2961: ccp = (char const *const *) p; ! 2962: { /* SCO 3.2v4 cc rejects this. */ ! 2963: char *t; ! 2964: char const *s = 0 ? (char *) 0 : (char const *) 0; ! 2965: ! 2966: *t++ = 0; ! 2967: } ! 2968: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! 2969: int x[] = {25, 17}; ! 2970: const int *foo = &x[0]; ! 2971: ++foo; ! 2972: } ! 2973: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! 2974: typedef const int *iptr; ! 2975: iptr p = 0; ! 2976: ++p; ! 2977: } ! 2978: { /* AIX XL C 1.02.0.0 rejects this saying ! 2979: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! 2980: struct s { int j; const int *ap[3]; }; ! 2981: struct s *b; b->j = 5; ! 2982: } ! 2983: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ ! 2984: const int foo = 10; ! 2985: } ! 2986: #endif ! 2987: ! 2988: ; ! 2989: return 0; ! 2990: } ! 2991: _ACEOF ! 2992: rm -f conftest.$ac_objext ! 2993: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2994: (eval $ac_compile) 2>&5 ! 2995: ac_status=$? ! 2996: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2997: (exit $ac_status); } && ! 2998: { ac_try='test -s conftest.$ac_objext' ! 2999: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3000: (eval $ac_try) 2>&5 ! 3001: ac_status=$? ! 3002: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3003: (exit $ac_status); }; }; then ! 3004: ac_cv_c_const=yes ! 3005: else ! 3006: echo "$as_me: failed program was:" >&5 ! 3007: sed 's/^/| /' conftest.$ac_ext >&5 ! 3008: ! 3009: ac_cv_c_const=no ! 3010: fi ! 3011: rm -f conftest.$ac_objext conftest.$ac_ext ! 3012: fi ! 3013: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 ! 3014: echo "${ECHO_T}$ac_cv_c_const" >&6 ! 3015: if test $ac_cv_c_const = no; then ! 3016: ! 3017: cat >>confdefs.h <<\_ACEOF ! 3018: #define const ! 3019: _ACEOF ! 3020: ! 3021: fi ! 3022: ! 3023: echo "$as_me:$LINENO: checking for inline" >&5 ! 3024: echo $ECHO_N "checking for inline... $ECHO_C" >&6 ! 3025: if test "${ac_cv_c_inline+set}" = set; then ! 3026: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3027: else ! 3028: ac_cv_c_inline=no ! 3029: for ac_kw in inline __inline__ __inline; do ! 3030: cat >conftest.$ac_ext <<_ACEOF ! 3031: #line $LINENO "configure" ! 3032: /* confdefs.h. */ ! 3033: _ACEOF ! 3034: cat confdefs.h >>conftest.$ac_ext ! 3035: cat >>conftest.$ac_ext <<_ACEOF ! 3036: /* end confdefs.h. */ ! 3037: #ifndef __cplusplus ! 3038: typedef int foo_t; ! 3039: static $ac_kw foo_t static_foo () {return 0; } ! 3040: $ac_kw foo_t foo () {return 0; } ! 3041: #endif ! 3042: ! 3043: _ACEOF ! 3044: rm -f conftest.$ac_objext ! 3045: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3046: (eval $ac_compile) 2>&5 ! 3047: ac_status=$? ! 3048: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3049: (exit $ac_status); } && ! 3050: { ac_try='test -s conftest.$ac_objext' ! 3051: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3052: (eval $ac_try) 2>&5 ! 3053: ac_status=$? ! 3054: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3055: (exit $ac_status); }; }; then ! 3056: ac_cv_c_inline=$ac_kw; break ! 3057: else ! 3058: echo "$as_me: failed program was:" >&5 ! 3059: sed 's/^/| /' conftest.$ac_ext >&5 ! 3060: ! 3061: fi ! 3062: rm -f conftest.$ac_objext conftest.$ac_ext ! 3063: done ! 3064: ! 3065: fi ! 3066: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 ! 3067: echo "${ECHO_T}$ac_cv_c_inline" >&6 ! 3068: case $ac_cv_c_inline in ! 3069: inline | yes) ;; ! 3070: no) ! 3071: cat >>confdefs.h <<\_ACEOF ! 3072: #define inline ! 3073: _ACEOF ! 3074: ;; ! 3075: *) cat >>confdefs.h <<_ACEOF ! 3076: #define inline $ac_cv_c_inline ! 3077: _ACEOF ! 3078: ;; ! 3079: esac ! 3080: ! 3081: ! 3082: ! 3083: ## ----------------------- ## ! 3084: ## Libtool initialisation. ## ! 3085: ## ----------------------- ## ! 3086: ! 3087: ! 3088: # Check whether --enable-shared or --disable-shared was given. ! 3089: if test "${enable_shared+set}" = set; then ! 3090: enableval="$enable_shared" ! 3091: p=${PACKAGE-default} ! 3092: case $enableval in ! 3093: yes) enable_shared=yes ;; ! 3094: no) enable_shared=no ;; ! 3095: *) ! 3096: enable_shared=no ! 3097: # Look at the argument we got. We use all the common list separators. ! 3098: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 3099: for pkg in $enableval; do ! 3100: IFS="$lt_save_ifs" ! 3101: if test "X$pkg" = "X$p"; then ! 3102: enable_shared=yes ! 3103: fi ! 3104: done ! 3105: IFS="$lt_save_ifs" ! 3106: ;; ! 3107: esac ! 3108: else ! 3109: enable_shared=yes ! 3110: fi; ! 3111: ! 3112: # Check whether --enable-static or --disable-static was given. ! 3113: if test "${enable_static+set}" = set; then ! 3114: enableval="$enable_static" ! 3115: p=${PACKAGE-default} ! 3116: case $enableval in ! 3117: yes) enable_static=yes ;; ! 3118: no) enable_static=no ;; ! 3119: *) ! 3120: enable_static=no ! 3121: # Look at the argument we got. We use all the common list separators. ! 3122: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 3123: for pkg in $enableval; do ! 3124: IFS="$lt_save_ifs" ! 3125: if test "X$pkg" = "X$p"; then ! 3126: enable_static=yes ! 3127: fi ! 3128: done ! 3129: IFS="$lt_save_ifs" ! 3130: ;; ! 3131: esac ! 3132: else ! 3133: enable_static=yes ! 3134: fi; ! 3135: ! 3136: # Check whether --enable-fast-install or --disable-fast-install was given. ! 3137: if test "${enable_fast_install+set}" = set; then ! 3138: enableval="$enable_fast_install" ! 3139: p=${PACKAGE-default} ! 3140: case $enableval in ! 3141: yes) enable_fast_install=yes ;; ! 3142: no) enable_fast_install=no ;; ! 3143: *) ! 3144: enable_fast_install=no ! 3145: # Look at the argument we got. We use all the common list separators. ! 3146: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 3147: for pkg in $enableval; do ! 3148: IFS="$lt_save_ifs" ! 3149: if test "X$pkg" = "X$p"; then ! 3150: enable_fast_install=yes ! 3151: fi ! 3152: done ! 3153: IFS="$lt_save_ifs" ! 3154: ;; ! 3155: esac ! 3156: else ! 3157: enable_fast_install=yes ! 3158: fi; ! 3159: ! 3160: # Make sure we can run config.sub. ! 3161: $ac_config_sub sun4 >/dev/null 2>&1 || ! 3162: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 ! 3163: echo "$as_me: error: cannot run $ac_config_sub" >&2;} ! 3164: { (exit 1); exit 1; }; } ! 3165: ! 3166: echo "$as_me:$LINENO: checking build system type" >&5 ! 3167: echo $ECHO_N "checking build system type... $ECHO_C" >&6 ! 3168: if test "${ac_cv_build+set}" = set; then ! 3169: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3170: else ! 3171: ac_cv_build_alias=$build_alias ! 3172: test -z "$ac_cv_build_alias" && ! 3173: ac_cv_build_alias=`$ac_config_guess` ! 3174: test -z "$ac_cv_build_alias" && ! 3175: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 ! 3176: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} ! 3177: { (exit 1); exit 1; }; } ! 3178: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || ! 3179: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 ! 3180: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} ! 3181: { (exit 1); exit 1; }; } ! 3182: ! 3183: fi ! 3184: echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ! 3185: echo "${ECHO_T}$ac_cv_build" >&6 ! 3186: build=$ac_cv_build ! 3187: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 3188: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 3189: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 3190: ! 3191: ! 3192: echo "$as_me:$LINENO: checking host system type" >&5 ! 3193: echo $ECHO_N "checking host system type... $ECHO_C" >&6 ! 3194: if test "${ac_cv_host+set}" = set; then ! 3195: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3196: else ! 3197: ac_cv_host_alias=$host_alias ! 3198: test -z "$ac_cv_host_alias" && ! 3199: ac_cv_host_alias=$ac_cv_build_alias ! 3200: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || ! 3201: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 ! 3202: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} ! 3203: { (exit 1); exit 1; }; } ! 3204: ! 3205: fi ! 3206: echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ! 3207: echo "${ECHO_T}$ac_cv_host" >&6 ! 3208: host=$ac_cv_host ! 3209: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 3210: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 3211: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 3212: ! 3213: ! 3214: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 ! 3215: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 ! 3216: if test "${lt_cv_path_SED+set}" = set; then ! 3217: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3218: else ! 3219: # Loop through the user's path and test for sed and gsed. ! 3220: # Then use that list of sed's as ones to test for truncation. ! 3221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 3222: for as_dir in $PATH ! 3223: do ! 3224: IFS=$as_save_IFS ! 3225: test -z "$as_dir" && as_dir=. ! 3226: for lt_ac_prog in sed gsed; do ! 3227: for ac_exec_ext in '' $ac_executable_extensions; do ! 3228: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then ! 3229: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" ! 3230: fi ! 3231: done ! 3232: done ! 3233: done ! 3234: lt_ac_max=0 ! 3235: lt_ac_count=0 ! 3236: # Add /usr/xpg4/bin/sed as it is typically found on Solaris ! 3237: # along with /bin/sed that truncates output. ! 3238: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do ! 3239: test ! -f $lt_ac_sed && break ! 3240: cat /dev/null > conftest.in ! 3241: lt_ac_count=0 ! 3242: echo $ECHO_N "0123456789$ECHO_C" >conftest.in ! 3243: # Check for GNU sed and select it if it is found. ! 3244: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then ! 3245: lt_cv_path_SED=$lt_ac_sed ! 3246: break ! 3247: fi ! 3248: while true; do ! 3249: cat conftest.in conftest.in >conftest.tmp ! 3250: mv conftest.tmp conftest.in ! 3251: cp conftest.in conftest.nl ! 3252: echo >>conftest.nl ! 3253: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break ! 3254: cmp -s conftest.out conftest.nl || break ! 3255: # 10000 chars as input seems more than enough ! 3256: test $lt_ac_count -gt 10 && break ! 3257: lt_ac_count=`expr $lt_ac_count + 1` ! 3258: if test $lt_ac_count -gt $lt_ac_max; then ! 3259: lt_ac_max=$lt_ac_count ! 3260: lt_cv_path_SED=$lt_ac_sed ! 3261: fi ! 3262: done ! 3263: done ! 3264: SED=$lt_cv_path_SED ! 3265: ! 3266: fi ! 3267: ! 3268: echo "$as_me:$LINENO: result: $SED" >&5 ! 3269: echo "${ECHO_T}$SED" >&6 ! 3270: ! 3271: echo "$as_me:$LINENO: checking for egrep" >&5 ! 3272: echo $ECHO_N "checking for egrep... $ECHO_C" >&6 ! 3273: if test "${ac_cv_prog_egrep+set}" = set; then ! 3274: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3275: else ! 3276: if echo a | (grep -E '(a|b)') >/dev/null 2>&1 ! 3277: then ac_cv_prog_egrep='grep -E' ! 3278: else ac_cv_prog_egrep='egrep' ! 3279: fi ! 3280: fi ! 3281: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 ! 3282: echo "${ECHO_T}$ac_cv_prog_egrep" >&6 ! 3283: EGREP=$ac_cv_prog_egrep ! 3284: ! 3285: ! 3286: ! 3287: # Check whether --with-gnu-ld or --without-gnu-ld was given. ! 3288: if test "${with_gnu_ld+set}" = set; then ! 3289: withval="$with_gnu_ld" ! 3290: test "$withval" = no || with_gnu_ld=yes ! 3291: else ! 3292: with_gnu_ld=no ! 3293: fi; ! 3294: ac_prog=ld ! 3295: if test "$GCC" = yes; then ! 3296: # Check if gcc -print-prog-name=ld gives a path. ! 3297: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ! 3298: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 ! 3299: case $host in ! 3300: *-*-mingw*) ! 3301: # gcc leaves a trailing carriage return which upsets mingw ! 3302: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ! 3303: *) ! 3304: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ! 3305: esac ! 3306: case $ac_prog in ! 3307: # Accept absolute paths. ! 3308: [\\/]* | ?:[\\/]*) ! 3309: re_direlt='/[^/][^/]*/\.\./' ! 3310: # Canonicalize the path of ld ! 3311: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` ! 3312: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ! 3313: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` ! 3314: done ! 3315: test -z "$LD" && LD="$ac_prog" ! 3316: ;; ! 3317: "") ! 3318: # If it fails, then pretend we aren't using GCC. ! 3319: ac_prog=ld ! 3320: ;; ! 3321: *) ! 3322: # If it is relative, then search for the first ld in PATH. ! 3323: with_gnu_ld=unknown ! 3324: ;; ! 3325: esac ! 3326: elif test "$with_gnu_ld" = yes; then ! 3327: echo "$as_me:$LINENO: checking for GNU ld" >&5 ! 3328: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 ! 3329: else ! 3330: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ! 3331: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 ! 3332: fi ! 3333: if test "${lt_cv_path_LD+set}" = set; then ! 3334: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3335: else ! 3336: if test -z "$LD"; then ! 3337: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 3338: for ac_dir in $PATH; do ! 3339: IFS="$lt_save_ifs" ! 3340: test -z "$ac_dir" && ac_dir=. ! 3341: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ! 3342: lt_cv_path_LD="$ac_dir/$ac_prog" ! 3343: # Check to see if the program is GNU ld. I'd rather use --version, ! 3344: # but apparently some GNU ld's only accept -v. ! 3345: # Break only if it was the GNU/non-GNU ld that we prefer. ! 3346: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in ! 3347: *GNU* | *'with BFD'*) ! 3348: test "$with_gnu_ld" != no && break ! 3349: ;; ! 3350: *) ! 3351: test "$with_gnu_ld" != yes && break ! 3352: ;; ! 3353: esac ! 3354: fi ! 3355: done ! 3356: IFS="$lt_save_ifs" ! 3357: else ! 3358: lt_cv_path_LD="$LD" # Let the user override the test with a path. ! 3359: fi ! 3360: fi ! 3361: ! 3362: LD="$lt_cv_path_LD" ! 3363: if test -n "$LD"; then ! 3364: echo "$as_me:$LINENO: result: $LD" >&5 ! 3365: echo "${ECHO_T}$LD" >&6 ! 3366: else ! 3367: echo "$as_me:$LINENO: result: no" >&5 ! 3368: echo "${ECHO_T}no" >&6 ! 3369: fi ! 3370: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ! 3371: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ! 3372: { (exit 1); exit 1; }; } ! 3373: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ! 3374: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 ! 3375: if test "${lt_cv_prog_gnu_ld+set}" = set; then ! 3376: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3377: else ! 3378: # I'd rather use --version here, but apparently some GNU ld's only accept -v. ! 3379: case `"$LD" -v 2>&1 </dev/null` in ! 3380: *GNU* | *'with BFD'*) ! 3381: lt_cv_prog_gnu_ld=yes ! 3382: ;; ! 3383: *) ! 3384: lt_cv_prog_gnu_ld=no ! 3385: ;; ! 3386: esac ! 3387: fi ! 3388: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 ! 3389: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 ! 3390: with_gnu_ld=$lt_cv_prog_gnu_ld ! 3391: ! 3392: ! 3393: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 ! 3394: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 ! 3395: if test "${lt_cv_ld_reload_flag+set}" = set; then ! 3396: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3397: else ! 3398: lt_cv_ld_reload_flag='-r' ! 3399: fi ! 3400: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 ! 3401: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 ! 3402: reload_flag=$lt_cv_ld_reload_flag ! 3403: case $reload_flag in ! 3404: "" | " "*) ;; ! 3405: *) reload_flag=" $reload_flag" ;; ! 3406: esac ! 3407: reload_cmds='$LD$reload_flag -o $output$reload_objs' ! 3408: ! 3409: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 ! 3410: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 ! 3411: if test "${lt_cv_path_NM+set}" = set; then ! 3412: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3413: else ! 3414: if test -n "$NM"; then ! 3415: # Let the user override the test. ! 3416: lt_cv_path_NM="$NM" ! 3417: else ! 3418: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 3419: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do ! 3420: IFS="$lt_save_ifs" ! 3421: test -z "$ac_dir" && ac_dir=. ! 3422: tmp_nm="$ac_dir/${ac_tool_prefix}nm" ! 3423: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then ! 3424: # Check to see if the nm accepts a BSD-compat flag. ! 3425: # Adding the `sed 1q' prevents false positives on HP-UX, which says: ! 3426: # nm: unknown option "B" ignored ! 3427: # Tru64's nm complains that /dev/null is an invalid object file ! 3428: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in ! 3429: */dev/null* | *'Invalid file or object type'*) ! 3430: lt_cv_path_NM="$tmp_nm -B" ! 3431: break ! 3432: ;; ! 3433: *) ! 3434: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in ! 3435: */dev/null*) ! 3436: lt_cv_path_NM="$tmp_nm -p" ! 3437: break ! 3438: ;; ! 3439: *) ! 3440: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but ! 3441: continue # so that we can try to find one that supports BSD flags ! 3442: ;; ! 3443: esac ! 3444: esac ! 3445: fi ! 3446: done ! 3447: IFS="$lt_save_ifs" ! 3448: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm ! 3449: fi ! 3450: fi ! 3451: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 ! 3452: echo "${ECHO_T}$lt_cv_path_NM" >&6 ! 3453: NM="$lt_cv_path_NM" ! 3454: ! 3455: echo "$as_me:$LINENO: checking whether ln -s works" >&5 ! 3456: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 ! 3457: LN_S=$as_ln_s ! 3458: if test "$LN_S" = "ln -s"; then ! 3459: echo "$as_me:$LINENO: result: yes" >&5 ! 3460: echo "${ECHO_T}yes" >&6 ! 3461: else ! 3462: echo "$as_me:$LINENO: result: no, using $LN_S" >&5 ! 3463: echo "${ECHO_T}no, using $LN_S" >&6 ! 3464: fi ! 3465: ! 3466: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 ! 3467: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 ! 3468: if test "${lt_cv_deplibs_check_method+set}" = set; then ! 3469: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3470: else ! 3471: lt_cv_file_magic_cmd='$MAGIC_CMD' ! 3472: lt_cv_file_magic_test_file= ! 3473: lt_cv_deplibs_check_method='unknown' ! 3474: # Need to set the preceding variable on all platforms that support ! 3475: # interlibrary dependencies. ! 3476: # 'none' -- dependencies not supported. ! 3477: # `unknown' -- same as none, but documents that we really don't know. ! 3478: # 'pass_all' -- all dependencies passed with no checks. ! 3479: # 'test_compile' -- check by making test program. ! 3480: # 'file_magic [[regex]]' -- check by looking for files in library path ! 3481: # which responds to the $file_magic_cmd with a given extended regex. ! 3482: # If you have `file' or equivalent on your system and you're not sure ! 3483: # whether `pass_all' will *always* work, you probably want this one. ! 3484: ! 3485: case $host_os in ! 3486: aix4* | aix5*) ! 3487: lt_cv_deplibs_check_method=pass_all ! 3488: ;; ! 3489: ! 3490: beos*) ! 3491: lt_cv_deplibs_check_method=pass_all ! 3492: ;; ! 3493: ! 3494: bsdi4*) ! 3495: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' ! 3496: lt_cv_file_magic_cmd='/usr/bin/file -L' ! 3497: lt_cv_file_magic_test_file=/shlib/libc.so ! 3498: ;; ! 3499: ! 3500: cygwin* | mingw* | pw32*) ! 3501: # win32_libid is a shell function defined in ltmain.sh ! 3502: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' ! 3503: lt_cv_file_magic_cmd='win32_libid' ! 3504: ;; ! 3505: ! 3506: darwin* | rhapsody*) ! 3507: # this will be overwritten by pass_all, but leave it in just in case ! 3508: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' ! 3509: lt_cv_file_magic_cmd='/usr/bin/file -L' ! 3510: case "$host_os" in ! 3511: rhapsody* | darwin1.[012]) ! 3512: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` ! 3513: ;; ! 3514: *) # Darwin 1.3 on ! 3515: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' ! 3516: ;; ! 3517: esac ! 3518: lt_cv_deplibs_check_method=pass_all ! 3519: ;; ! 3520: ! 3521: freebsd*) ! 3522: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then ! 3523: case $host_cpu in ! 3524: i*86 ) ! 3525: # Not sure whether the presence of OpenBSD here was a mistake. ! 3526: # Let's accept both of them until this is cleared up. ! 3527: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' ! 3528: lt_cv_file_magic_cmd=/usr/bin/file ! 3529: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ! 3530: ;; ! 3531: esac ! 3532: else ! 3533: lt_cv_deplibs_check_method=pass_all ! 3534: fi ! 3535: ;; ! 3536: ! 3537: gnu*) ! 3538: lt_cv_deplibs_check_method=pass_all ! 3539: ;; ! 3540: ! 3541: hpux10.20* | hpux11*) ! 3542: lt_cv_file_magic_cmd=/usr/bin/file ! 3543: case "$host_cpu" in ! 3544: ia64*) ! 3545: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' ! 3546: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ! 3547: ;; ! 3548: hppa*64*) ! 3549: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' ! 3550: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ! 3551: ;; ! 3552: *) ! 3553: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' ! 3554: lt_cv_file_magic_test_file=/usr/lib/libc.sl ! 3555: ;; ! 3556: esac ! 3557: ;; ! 3558: ! 3559: irix5* | irix6* | nonstopux*) ! 3560: case $host_os in ! 3561: irix5* | nonstopux*) ! 3562: # this will be overridden with pass_all, but let us keep it just in case ! 3563: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" ! 3564: ;; ! 3565: *) ! 3566: case $LD in ! 3567: *-32|*"-32 ") libmagic=32-bit;; ! 3568: *-n32|*"-n32 ") libmagic=N32;; ! 3569: *-64|*"-64 ") libmagic=64-bit;; ! 3570: *) libmagic=never-match;; ! 3571: esac ! 3572: # this will be overridden with pass_all, but let us keep it just in case ! 3573: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" ! 3574: ;; ! 3575: esac ! 3576: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` ! 3577: lt_cv_deplibs_check_method=pass_all ! 3578: ;; ! 3579: ! 3580: # This must be Linux ELF. ! 3581: linux*) ! 3582: case $host_cpu in ! 3583: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) ! 3584: lt_cv_deplibs_check_method=pass_all ;; ! 3585: *) ! 3586: # glibc up to 2.1.1 does not perform some relocations on ARM ! 3587: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; ! 3588: esac ! 3589: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ! 3590: ;; ! 3591: ! 3592: netbsd*) ! 3593: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then ! 3594: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' ! 3595: else ! 3596: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' ! 3597: fi ! 3598: ;; ! 3599: ! 3600: newos6*) ! 3601: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' ! 3602: lt_cv_file_magic_cmd=/usr/bin/file ! 3603: lt_cv_file_magic_test_file=/usr/lib/libnls.so ! 3604: ;; ! 3605: ! 3606: nto-qnx) ! 3607: lt_cv_deplibs_check_method=unknown ! 3608: ;; ! 3609: ! 3610: openbsd*) ! 3611: lt_cv_file_magic_cmd=/usr/bin/file ! 3612: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ! 3613: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 3614: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' ! 3615: else ! 3616: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' ! 3617: fi ! 3618: ;; ! 3619: ! 3620: osf3* | osf4* | osf5*) ! 3621: # this will be overridden with pass_all, but let us keep it just in case ! 3622: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' ! 3623: lt_cv_file_magic_test_file=/shlib/libc.so ! 3624: lt_cv_deplibs_check_method=pass_all ! 3625: ;; ! 3626: ! 3627: sco3.2v5*) ! 3628: lt_cv_deplibs_check_method=pass_all ! 3629: ;; ! 3630: ! 3631: solaris*) ! 3632: lt_cv_deplibs_check_method=pass_all ! 3633: lt_cv_file_magic_test_file=/lib/libc.so ! 3634: ;; ! 3635: ! 3636: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 3637: case $host_vendor in ! 3638: motorola) ! 3639: 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]' ! 3640: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ! 3641: ;; ! 3642: ncr) ! 3643: lt_cv_deplibs_check_method=pass_all ! 3644: ;; ! 3645: sequent) ! 3646: lt_cv_file_magic_cmd='/bin/file' ! 3647: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ! 3648: ;; ! 3649: sni) ! 3650: lt_cv_file_magic_cmd='/bin/file' ! 3651: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" ! 3652: lt_cv_file_magic_test_file=/lib/libc.so ! 3653: ;; ! 3654: siemens) ! 3655: lt_cv_deplibs_check_method=pass_all ! 3656: ;; ! 3657: esac ! 3658: ;; ! 3659: ! 3660: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) ! 3661: lt_cv_deplibs_check_method=pass_all ! 3662: ;; ! 3663: esac ! 3664: ! 3665: fi ! 3666: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 ! 3667: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 ! 3668: file_magic_cmd=$lt_cv_file_magic_cmd ! 3669: deplibs_check_method=$lt_cv_deplibs_check_method ! 3670: test -z "$deplibs_check_method" && deplibs_check_method=unknown ! 3671: ! 3672: ! 3673: ! 3674: ! 3675: # If no C compiler was specified, use CC. ! 3676: LTCC=${LTCC-"$CC"} ! 3677: ! 3678: # Allow CC to be a program name with arguments. ! 3679: compiler=$CC ! 3680: ! 3681: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. ! 3682: if test "${enable_libtool_lock+set}" = set; then ! 3683: enableval="$enable_libtool_lock" ! 3684: ! 3685: fi; ! 3686: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes ! 3687: ! 3688: # Some flags need to be propagated to the compiler or linker for good ! 3689: # libtool support. ! 3690: case $host in ! 3691: ia64-*-hpux*) ! 3692: # Find out which ABI we are using. ! 3693: echo 'int i;' > conftest.$ac_ext ! 3694: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3695: (eval $ac_compile) 2>&5 ! 3696: ac_status=$? ! 3697: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3698: (exit $ac_status); }; then ! 3699: case `/usr/bin/file conftest.$ac_objext` in ! 3700: *ELF-32*) ! 3701: HPUX_IA64_MODE="32" ! 3702: ;; ! 3703: *ELF-64*) ! 3704: HPUX_IA64_MODE="64" ! 3705: ;; ! 3706: esac ! 3707: fi ! 3708: rm -rf conftest* ! 3709: ;; ! 3710: *-*-irix6*) ! 3711: # Find out which ABI we are using. ! 3712: echo '#line 3712 "configure"' > conftest.$ac_ext ! 3713: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3714: (eval $ac_compile) 2>&5 ! 3715: ac_status=$? ! 3716: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3717: (exit $ac_status); }; then ! 3718: if test "$lt_cv_prog_gnu_ld" = yes; then ! 3719: case `/usr/bin/file conftest.$ac_objext` in ! 3720: *32-bit*) ! 3721: LD="${LD-ld} -melf32bsmip" ! 3722: ;; ! 3723: *N32*) ! 3724: LD="${LD-ld} -melf32bmipn32" ! 3725: ;; ! 3726: *64-bit*) ! 3727: LD="${LD-ld} -melf64bmip" ! 3728: ;; ! 3729: esac ! 3730: else ! 3731: case `/usr/bin/file conftest.$ac_objext` in ! 3732: *32-bit*) ! 3733: LD="${LD-ld} -32" ! 3734: ;; ! 3735: *N32*) ! 3736: LD="${LD-ld} -n32" ! 3737: ;; ! 3738: *64-bit*) ! 3739: LD="${LD-ld} -64" ! 3740: ;; ! 3741: esac ! 3742: fi ! 3743: fi ! 3744: rm -rf conftest* ! 3745: ;; ! 3746: ! 3747: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) ! 3748: # Find out which ABI we are using. ! 3749: echo 'int i;' > conftest.$ac_ext ! 3750: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3751: (eval $ac_compile) 2>&5 ! 3752: ac_status=$? ! 3753: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3754: (exit $ac_status); }; then ! 3755: case "`/usr/bin/file conftest.o`" in ! 3756: *32-bit*) ! 3757: case $host in ! 3758: x86_64-*linux*) ! 3759: LD="${LD-ld} -m elf_i386" ! 3760: ;; ! 3761: ppc64-*linux*) ! 3762: LD="${LD-ld} -m elf32ppclinux" ! 3763: ;; ! 3764: s390x-*linux*) ! 3765: LD="${LD-ld} -m elf_s390" ! 3766: ;; ! 3767: sparc64-*linux*) ! 3768: LD="${LD-ld} -m elf32_sparc" ! 3769: ;; ! 3770: esac ! 3771: ;; ! 3772: *64-bit*) ! 3773: case $host in ! 3774: x86_64-*linux*) ! 3775: LD="${LD-ld} -m elf_x86_64" ! 3776: ;; ! 3777: ppc*-*linux*|powerpc*-*linux*) ! 3778: LD="${LD-ld} -m elf64ppc" ! 3779: ;; ! 3780: s390*-*linux*) ! 3781: LD="${LD-ld} -m elf64_s390" ! 3782: ;; ! 3783: sparc*-*linux*) ! 3784: LD="${LD-ld} -m elf64_sparc" ! 3785: ;; ! 3786: esac ! 3787: ;; ! 3788: esac ! 3789: fi ! 3790: rm -rf conftest* ! 3791: ;; ! 3792: ! 3793: *-*-sco3.2v5*) ! 3794: # On SCO OpenServer 5, we need -belf to get full-featured binaries. ! 3795: SAVE_CFLAGS="$CFLAGS" ! 3796: CFLAGS="$CFLAGS -belf" ! 3797: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 ! 3798: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 ! 3799: if test "${lt_cv_cc_needs_belf+set}" = set; then ! 3800: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3801: else ! 3802: ac_ext=c ! 3803: ac_cpp='$CPP $CPPFLAGS' ! 3804: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 3805: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 3806: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 3807: ! 3808: cat >conftest.$ac_ext <<_ACEOF ! 3809: #line $LINENO "configure" ! 3810: /* confdefs.h. */ ! 3811: _ACEOF ! 3812: cat confdefs.h >>conftest.$ac_ext ! 3813: cat >>conftest.$ac_ext <<_ACEOF ! 3814: /* end confdefs.h. */ ! 3815: ! 3816: int ! 3817: main () ! 3818: { ! 3819: ! 3820: ; ! 3821: return 0; ! 3822: } ! 3823: _ACEOF ! 3824: rm -f conftest.$ac_objext conftest$ac_exeext ! 3825: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 3826: (eval $ac_link) 2>&5 ! 3827: ac_status=$? ! 3828: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3829: (exit $ac_status); } && ! 3830: { ac_try='test -s conftest$ac_exeext' ! 3831: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3832: (eval $ac_try) 2>&5 ! 3833: ac_status=$? ! 3834: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3835: (exit $ac_status); }; }; then ! 3836: lt_cv_cc_needs_belf=yes ! 3837: else ! 3838: echo "$as_me: failed program was:" >&5 ! 3839: sed 's/^/| /' conftest.$ac_ext >&5 ! 3840: ! 3841: lt_cv_cc_needs_belf=no ! 3842: fi ! 3843: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 3844: ac_ext=c ! 3845: ac_cpp='$CPP $CPPFLAGS' ! 3846: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 3847: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 3848: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 3849: ! 3850: fi ! 3851: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 ! 3852: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 ! 3853: if test x"$lt_cv_cc_needs_belf" != x"yes"; then ! 3854: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf ! 3855: CFLAGS="$SAVE_CFLAGS" ! 3856: fi ! 3857: ;; ! 3858: *-*-cygwin* | *-*-mingw* | *-*-pw32*) ! 3859: if test -n "$ac_tool_prefix"; then ! 3860: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. ! 3861: set dummy ${ac_tool_prefix}dlltool; ac_word=$2 ! 3862: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 3863: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 3864: if test "${ac_cv_prog_DLLTOOL+set}" = set; then ! 3865: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3866: else ! 3867: if test -n "$DLLTOOL"; then ! 3868: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. ! 3869: else ! 3870: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 3871: for as_dir in $PATH ! 3872: do ! 3873: IFS=$as_save_IFS ! 3874: test -z "$as_dir" && as_dir=. ! 3875: for ac_exec_ext in '' $ac_executable_extensions; do ! 3876: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 3877: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" ! 3878: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 3879: break 2 ! 3880: fi ! 3881: done ! 3882: done ! 3883: ! 3884: fi ! 3885: fi ! 3886: DLLTOOL=$ac_cv_prog_DLLTOOL ! 3887: if test -n "$DLLTOOL"; then ! 3888: echo "$as_me:$LINENO: result: $DLLTOOL" >&5 ! 3889: echo "${ECHO_T}$DLLTOOL" >&6 ! 3890: else ! 3891: echo "$as_me:$LINENO: result: no" >&5 ! 3892: echo "${ECHO_T}no" >&6 ! 3893: fi ! 3894: ! 3895: fi ! 3896: if test -z "$ac_cv_prog_DLLTOOL"; then ! 3897: ac_ct_DLLTOOL=$DLLTOOL ! 3898: # Extract the first word of "dlltool", so it can be a program name with args. ! 3899: set dummy dlltool; ac_word=$2 ! 3900: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 3901: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 3902: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then ! 3903: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3904: else ! 3905: if test -n "$ac_ct_DLLTOOL"; then ! 3906: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. ! 3907: else ! 3908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 3909: for as_dir in $PATH ! 3910: do ! 3911: IFS=$as_save_IFS ! 3912: test -z "$as_dir" && as_dir=. ! 3913: for ac_exec_ext in '' $ac_executable_extensions; do ! 3914: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 3915: ac_cv_prog_ac_ct_DLLTOOL="dlltool" ! 3916: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 3917: break 2 ! 3918: fi ! 3919: done ! 3920: done ! 3921: ! 3922: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" ! 3923: fi ! 3924: fi ! 3925: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL ! 3926: if test -n "$ac_ct_DLLTOOL"; then ! 3927: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 ! 3928: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 ! 3929: else ! 3930: echo "$as_me:$LINENO: result: no" >&5 ! 3931: echo "${ECHO_T}no" >&6 ! 3932: fi ! 3933: ! 3934: DLLTOOL=$ac_ct_DLLTOOL ! 3935: else ! 3936: DLLTOOL="$ac_cv_prog_DLLTOOL" ! 3937: fi ! 3938: ! 3939: if test -n "$ac_tool_prefix"; then ! 3940: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. ! 3941: set dummy ${ac_tool_prefix}as; ac_word=$2 ! 3942: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 3943: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 3944: if test "${ac_cv_prog_AS+set}" = set; then ! 3945: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3946: else ! 3947: if test -n "$AS"; then ! 3948: ac_cv_prog_AS="$AS" # Let the user override the test. ! 3949: else ! 3950: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 3951: for as_dir in $PATH ! 3952: do ! 3953: IFS=$as_save_IFS ! 3954: test -z "$as_dir" && as_dir=. ! 3955: for ac_exec_ext in '' $ac_executable_extensions; do ! 3956: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 3957: ac_cv_prog_AS="${ac_tool_prefix}as" ! 3958: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 3959: break 2 ! 3960: fi ! 3961: done ! 3962: done ! 3963: ! 3964: fi ! 3965: fi ! 3966: AS=$ac_cv_prog_AS ! 3967: if test -n "$AS"; then ! 3968: echo "$as_me:$LINENO: result: $AS" >&5 ! 3969: echo "${ECHO_T}$AS" >&6 ! 3970: else ! 3971: echo "$as_me:$LINENO: result: no" >&5 ! 3972: echo "${ECHO_T}no" >&6 ! 3973: fi ! 3974: ! 3975: fi ! 3976: if test -z "$ac_cv_prog_AS"; then ! 3977: ac_ct_AS=$AS ! 3978: # Extract the first word of "as", so it can be a program name with args. ! 3979: set dummy as; ac_word=$2 ! 3980: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 3981: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 3982: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then ! 3983: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3984: else ! 3985: if test -n "$ac_ct_AS"; then ! 3986: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. ! 3987: else ! 3988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 3989: for as_dir in $PATH ! 3990: do ! 3991: IFS=$as_save_IFS ! 3992: test -z "$as_dir" && as_dir=. ! 3993: for ac_exec_ext in '' $ac_executable_extensions; do ! 3994: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 3995: ac_cv_prog_ac_ct_AS="as" ! 3996: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 3997: break 2 ! 3998: fi ! 3999: done ! 4000: done ! 4001: ! 4002: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" ! 4003: fi ! 4004: fi ! 4005: ac_ct_AS=$ac_cv_prog_ac_ct_AS ! 4006: if test -n "$ac_ct_AS"; then ! 4007: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 ! 4008: echo "${ECHO_T}$ac_ct_AS" >&6 ! 4009: else ! 4010: echo "$as_me:$LINENO: result: no" >&5 ! 4011: echo "${ECHO_T}no" >&6 ! 4012: fi ! 4013: ! 4014: AS=$ac_ct_AS ! 4015: else ! 4016: AS="$ac_cv_prog_AS" ! 4017: fi ! 4018: ! 4019: if test -n "$ac_tool_prefix"; then ! 4020: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. ! 4021: set dummy ${ac_tool_prefix}objdump; ac_word=$2 ! 4022: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 4023: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 4024: if test "${ac_cv_prog_OBJDUMP+set}" = set; then ! 4025: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4026: else ! 4027: if test -n "$OBJDUMP"; then ! 4028: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. ! 4029: else ! 4030: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 4031: for as_dir in $PATH ! 4032: do ! 4033: IFS=$as_save_IFS ! 4034: test -z "$as_dir" && as_dir=. ! 4035: for ac_exec_ext in '' $ac_executable_extensions; do ! 4036: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 4037: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" ! 4038: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 4039: break 2 ! 4040: fi ! 4041: done ! 4042: done ! 4043: ! 4044: fi ! 4045: fi ! 4046: OBJDUMP=$ac_cv_prog_OBJDUMP ! 4047: if test -n "$OBJDUMP"; then ! 4048: echo "$as_me:$LINENO: result: $OBJDUMP" >&5 ! 4049: echo "${ECHO_T}$OBJDUMP" >&6 ! 4050: else ! 4051: echo "$as_me:$LINENO: result: no" >&5 ! 4052: echo "${ECHO_T}no" >&6 ! 4053: fi ! 4054: ! 4055: fi ! 4056: if test -z "$ac_cv_prog_OBJDUMP"; then ! 4057: ac_ct_OBJDUMP=$OBJDUMP ! 4058: # Extract the first word of "objdump", so it can be a program name with args. ! 4059: set dummy objdump; ac_word=$2 ! 4060: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 4061: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 4062: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then ! 4063: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4064: else ! 4065: if test -n "$ac_ct_OBJDUMP"; then ! 4066: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. ! 4067: else ! 4068: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 4069: for as_dir in $PATH ! 4070: do ! 4071: IFS=$as_save_IFS ! 4072: test -z "$as_dir" && as_dir=. ! 4073: for ac_exec_ext in '' $ac_executable_extensions; do ! 4074: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 4075: ac_cv_prog_ac_ct_OBJDUMP="objdump" ! 4076: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 4077: break 2 ! 4078: fi ! 4079: done ! 4080: done ! 4081: ! 4082: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" ! 4083: fi ! 4084: fi ! 4085: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP ! 4086: if test -n "$ac_ct_OBJDUMP"; then ! 4087: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 ! 4088: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 ! 4089: else ! 4090: echo "$as_me:$LINENO: result: no" >&5 ! 4091: echo "${ECHO_T}no" >&6 ! 4092: fi ! 4093: ! 4094: OBJDUMP=$ac_ct_OBJDUMP ! 4095: else ! 4096: OBJDUMP="$ac_cv_prog_OBJDUMP" ! 4097: fi ! 4098: ! 4099: ;; ! 4100: ! 4101: esac ! 4102: ! 4103: need_locks="$enable_libtool_lock" ! 4104: ! 4105: ! 4106: ac_ext=c ! 4107: ac_cpp='$CPP $CPPFLAGS' ! 4108: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 4109: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 4110: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 4111: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 ! 4112: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 ! 4113: # On Suns, sometimes $CPP names a directory. ! 4114: if test -n "$CPP" && test -d "$CPP"; then ! 4115: CPP= ! 4116: fi ! 4117: if test -z "$CPP"; then ! 4118: if test "${ac_cv_prog_CPP+set}" = set; then ! 4119: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4120: else ! 4121: # Double quotes because CPP needs to be expanded ! 4122: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" ! 4123: do ! 4124: ac_preproc_ok=false ! 4125: for ac_c_preproc_warn_flag in '' yes ! 4126: do ! 4127: # Use a header file that comes with gcc, so configuring glibc ! 4128: # with a fresh cross-compiler works. ! 4129: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 4130: # <limits.h> exists even on freestanding compilers. ! 4131: # On the NeXT, cc -E runs the code through the compiler's parser, ! 4132: # not just through cpp. "Syntax error" is here to catch this case. ! 4133: cat >conftest.$ac_ext <<_ACEOF ! 4134: #line $LINENO "configure" ! 4135: /* confdefs.h. */ ! 4136: _ACEOF ! 4137: cat confdefs.h >>conftest.$ac_ext ! 4138: cat >>conftest.$ac_ext <<_ACEOF ! 4139: /* end confdefs.h. */ ! 4140: #ifdef __STDC__ ! 4141: # include <limits.h> ! 4142: #else ! 4143: # include <assert.h> ! 4144: #endif ! 4145: Syntax error ! 4146: _ACEOF ! 4147: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 4148: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 4149: ac_status=$? ! 4150: grep -v '^ *+' conftest.er1 >conftest.err ! 4151: rm -f conftest.er1 ! 4152: cat conftest.err >&5 ! 4153: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4154: (exit $ac_status); } >/dev/null; then ! 4155: if test -s conftest.err; then ! 4156: ac_cpp_err=$ac_c_preproc_warn_flag ! 4157: else ! 4158: ac_cpp_err= ! 4159: fi ! 4160: else ! 4161: ac_cpp_err=yes ! 4162: fi ! 4163: if test -z "$ac_cpp_err"; then ! 4164: : ! 4165: else ! 4166: echo "$as_me: failed program was:" >&5 ! 4167: sed 's/^/| /' conftest.$ac_ext >&5 ! 4168: ! 4169: # Broken: fails on valid input. ! 4170: continue ! 4171: fi ! 4172: rm -f conftest.err conftest.$ac_ext ! 4173: ! 4174: # OK, works on sane cases. Now check whether non-existent headers ! 4175: # can be detected and how. ! 4176: cat >conftest.$ac_ext <<_ACEOF ! 4177: #line $LINENO "configure" ! 4178: /* confdefs.h. */ ! 4179: _ACEOF ! 4180: cat confdefs.h >>conftest.$ac_ext ! 4181: cat >>conftest.$ac_ext <<_ACEOF ! 4182: /* end confdefs.h. */ ! 4183: #include <ac_nonexistent.h> ! 4184: _ACEOF ! 4185: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 4186: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 4187: ac_status=$? ! 4188: grep -v '^ *+' conftest.er1 >conftest.err ! 4189: rm -f conftest.er1 ! 4190: cat conftest.err >&5 ! 4191: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4192: (exit $ac_status); } >/dev/null; then ! 4193: if test -s conftest.err; then ! 4194: ac_cpp_err=$ac_c_preproc_warn_flag ! 4195: else ! 4196: ac_cpp_err= ! 4197: fi ! 4198: else ! 4199: ac_cpp_err=yes ! 4200: fi ! 4201: if test -z "$ac_cpp_err"; then ! 4202: # Broken: success on invalid input. ! 4203: continue ! 4204: else ! 4205: echo "$as_me: failed program was:" >&5 ! 4206: sed 's/^/| /' conftest.$ac_ext >&5 ! 4207: ! 4208: # Passes both tests. ! 4209: ac_preproc_ok=: ! 4210: break ! 4211: fi ! 4212: rm -f conftest.err conftest.$ac_ext ! 4213: ! 4214: done ! 4215: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 4216: rm -f conftest.err conftest.$ac_ext ! 4217: if $ac_preproc_ok; then ! 4218: break ! 4219: fi ! 4220: ! 4221: done ! 4222: ac_cv_prog_CPP=$CPP ! 4223: ! 4224: fi ! 4225: CPP=$ac_cv_prog_CPP ! 4226: else ! 4227: ac_cv_prog_CPP=$CPP ! 4228: fi ! 4229: echo "$as_me:$LINENO: result: $CPP" >&5 ! 4230: echo "${ECHO_T}$CPP" >&6 ! 4231: ac_preproc_ok=false ! 4232: for ac_c_preproc_warn_flag in '' yes ! 4233: do ! 4234: # Use a header file that comes with gcc, so configuring glibc ! 4235: # with a fresh cross-compiler works. ! 4236: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 4237: # <limits.h> exists even on freestanding compilers. ! 4238: # On the NeXT, cc -E runs the code through the compiler's parser, ! 4239: # not just through cpp. "Syntax error" is here to catch this case. ! 4240: cat >conftest.$ac_ext <<_ACEOF ! 4241: #line $LINENO "configure" ! 4242: /* confdefs.h. */ ! 4243: _ACEOF ! 4244: cat confdefs.h >>conftest.$ac_ext ! 4245: cat >>conftest.$ac_ext <<_ACEOF ! 4246: /* end confdefs.h. */ ! 4247: #ifdef __STDC__ ! 4248: # include <limits.h> ! 4249: #else ! 4250: # include <assert.h> ! 4251: #endif ! 4252: Syntax error ! 4253: _ACEOF ! 4254: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 4255: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 4256: ac_status=$? ! 4257: grep -v '^ *+' conftest.er1 >conftest.err ! 4258: rm -f conftest.er1 ! 4259: cat conftest.err >&5 ! 4260: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4261: (exit $ac_status); } >/dev/null; then ! 4262: if test -s conftest.err; then ! 4263: ac_cpp_err=$ac_c_preproc_warn_flag ! 4264: else ! 4265: ac_cpp_err= ! 4266: fi ! 4267: else ! 4268: ac_cpp_err=yes ! 4269: fi ! 4270: if test -z "$ac_cpp_err"; then ! 4271: : ! 4272: else ! 4273: echo "$as_me: failed program was:" >&5 ! 4274: sed 's/^/| /' conftest.$ac_ext >&5 ! 4275: ! 4276: # Broken: fails on valid input. ! 4277: continue ! 4278: fi ! 4279: rm -f conftest.err conftest.$ac_ext ! 4280: ! 4281: # OK, works on sane cases. Now check whether non-existent headers ! 4282: # can be detected and how. ! 4283: cat >conftest.$ac_ext <<_ACEOF ! 4284: #line $LINENO "configure" ! 4285: /* confdefs.h. */ ! 4286: _ACEOF ! 4287: cat confdefs.h >>conftest.$ac_ext ! 4288: cat >>conftest.$ac_ext <<_ACEOF ! 4289: /* end confdefs.h. */ ! 4290: #include <ac_nonexistent.h> ! 4291: _ACEOF ! 4292: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 4293: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 4294: ac_status=$? ! 4295: grep -v '^ *+' conftest.er1 >conftest.err ! 4296: rm -f conftest.er1 ! 4297: cat conftest.err >&5 ! 4298: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4299: (exit $ac_status); } >/dev/null; then ! 4300: if test -s conftest.err; then ! 4301: ac_cpp_err=$ac_c_preproc_warn_flag ! 4302: else ! 4303: ac_cpp_err= ! 4304: fi ! 4305: else ! 4306: ac_cpp_err=yes ! 4307: fi ! 4308: if test -z "$ac_cpp_err"; then ! 4309: # Broken: success on invalid input. ! 4310: continue ! 4311: else ! 4312: echo "$as_me: failed program was:" >&5 ! 4313: sed 's/^/| /' conftest.$ac_ext >&5 ! 4314: ! 4315: # Passes both tests. ! 4316: ac_preproc_ok=: ! 4317: break ! 4318: fi ! 4319: rm -f conftest.err conftest.$ac_ext ! 4320: ! 4321: done ! 4322: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 4323: rm -f conftest.err conftest.$ac_ext ! 4324: if $ac_preproc_ok; then ! 4325: : ! 4326: else ! 4327: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check ! 4328: See \`config.log' for more details." >&5 ! 4329: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check ! 4330: See \`config.log' for more details." >&2;} ! 4331: { (exit 1); exit 1; }; } ! 4332: fi ! 4333: ! 4334: ac_ext=c ! 4335: ac_cpp='$CPP $CPPFLAGS' ! 4336: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 4337: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 4338: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 4339: ! 4340: ! 4341: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ! 4342: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 ! 4343: if test "${ac_cv_header_stdc+set}" = set; then ! 4344: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4345: else ! 4346: cat >conftest.$ac_ext <<_ACEOF ! 4347: #line $LINENO "configure" ! 4348: /* confdefs.h. */ ! 4349: _ACEOF ! 4350: cat confdefs.h >>conftest.$ac_ext ! 4351: cat >>conftest.$ac_ext <<_ACEOF ! 4352: /* end confdefs.h. */ ! 4353: #include <stdlib.h> ! 4354: #include <stdarg.h> ! 4355: #include <string.h> ! 4356: #include <float.h> ! 4357: ! 4358: int ! 4359: main () ! 4360: { ! 4361: ! 4362: ; ! 4363: return 0; ! 4364: } ! 4365: _ACEOF ! 4366: rm -f conftest.$ac_objext ! 4367: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4368: (eval $ac_compile) 2>&5 ! 4369: ac_status=$? ! 4370: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4371: (exit $ac_status); } && ! 4372: { ac_try='test -s conftest.$ac_objext' ! 4373: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4374: (eval $ac_try) 2>&5 ! 4375: ac_status=$? ! 4376: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4377: (exit $ac_status); }; }; then ! 4378: ac_cv_header_stdc=yes ! 4379: else ! 4380: echo "$as_me: failed program was:" >&5 ! 4381: sed 's/^/| /' conftest.$ac_ext >&5 ! 4382: ! 4383: ac_cv_header_stdc=no ! 4384: fi ! 4385: rm -f conftest.$ac_objext conftest.$ac_ext ! 4386: ! 4387: if test $ac_cv_header_stdc = yes; then ! 4388: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ! 4389: cat >conftest.$ac_ext <<_ACEOF ! 4390: #line $LINENO "configure" ! 4391: /* confdefs.h. */ ! 4392: _ACEOF ! 4393: cat confdefs.h >>conftest.$ac_ext ! 4394: cat >>conftest.$ac_ext <<_ACEOF ! 4395: /* end confdefs.h. */ ! 4396: #include <string.h> ! 4397: ! 4398: _ACEOF ! 4399: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 4400: $EGREP "memchr" >/dev/null 2>&1; then ! 4401: : ! 4402: else ! 4403: ac_cv_header_stdc=no ! 4404: fi ! 4405: rm -f conftest* ! 4406: ! 4407: fi ! 4408: ! 4409: if test $ac_cv_header_stdc = yes; then ! 4410: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ! 4411: cat >conftest.$ac_ext <<_ACEOF ! 4412: #line $LINENO "configure" ! 4413: /* confdefs.h. */ ! 4414: _ACEOF ! 4415: cat confdefs.h >>conftest.$ac_ext ! 4416: cat >>conftest.$ac_ext <<_ACEOF ! 4417: /* end confdefs.h. */ ! 4418: #include <stdlib.h> ! 4419: ! 4420: _ACEOF ! 4421: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 4422: $EGREP "free" >/dev/null 2>&1; then ! 4423: : ! 4424: else ! 4425: ac_cv_header_stdc=no ! 4426: fi ! 4427: rm -f conftest* ! 4428: ! 4429: fi ! 4430: ! 4431: if test $ac_cv_header_stdc = yes; then ! 4432: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! 4433: if test "$cross_compiling" = yes; then ! 4434: : ! 4435: else ! 4436: cat >conftest.$ac_ext <<_ACEOF ! 4437: #line $LINENO "configure" ! 4438: /* confdefs.h. */ ! 4439: _ACEOF ! 4440: cat confdefs.h >>conftest.$ac_ext ! 4441: cat >>conftest.$ac_ext <<_ACEOF ! 4442: /* end confdefs.h. */ ! 4443: #include <ctype.h> ! 4444: #if ((' ' & 0x0FF) == 0x020) ! 4445: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! 4446: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! 4447: #else ! 4448: # define ISLOWER(c) \ ! 4449: (('a' <= (c) && (c) <= 'i') \ ! 4450: || ('j' <= (c) && (c) <= 'r') \ ! 4451: || ('s' <= (c) && (c) <= 'z')) ! 4452: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ! 4453: #endif ! 4454: ! 4455: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ! 4456: int ! 4457: main () ! 4458: { ! 4459: int i; ! 4460: for (i = 0; i < 256; i++) ! 4461: if (XOR (islower (i), ISLOWER (i)) ! 4462: || toupper (i) != TOUPPER (i)) ! 4463: exit(2); ! 4464: exit (0); ! 4465: } ! 4466: _ACEOF ! 4467: rm -f conftest$ac_exeext ! 4468: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4469: (eval $ac_link) 2>&5 ! 4470: ac_status=$? ! 4471: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4472: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4474: (eval $ac_try) 2>&5 ! 4475: ac_status=$? ! 4476: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4477: (exit $ac_status); }; }; then ! 4478: : ! 4479: else ! 4480: echo "$as_me: program exited with status $ac_status" >&5 ! 4481: echo "$as_me: failed program was:" >&5 ! 4482: sed 's/^/| /' conftest.$ac_ext >&5 ! 4483: ! 4484: ( exit $ac_status ) ! 4485: ac_cv_header_stdc=no ! 4486: fi ! 4487: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4488: fi ! 4489: fi ! 4490: fi ! 4491: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ! 4492: echo "${ECHO_T}$ac_cv_header_stdc" >&6 ! 4493: if test $ac_cv_header_stdc = yes; then ! 4494: ! 4495: cat >>confdefs.h <<\_ACEOF ! 4496: #define STDC_HEADERS 1 ! 4497: _ACEOF ! 4498: ! 4499: fi ! 4500: ! 4501: # On IRIX 5.3, sys/types and inttypes.h are conflicting. ! 4502: ! 4503: ! 4504: ! 4505: ! 4506: ! 4507: ! 4508: ! 4509: ! 4510: ! 4511: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ ! 4512: inttypes.h stdint.h unistd.h ! 4513: do ! 4514: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 4515: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 4516: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 4517: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 4518: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4519: else ! 4520: cat >conftest.$ac_ext <<_ACEOF ! 4521: #line $LINENO "configure" ! 4522: /* confdefs.h. */ ! 4523: _ACEOF ! 4524: cat confdefs.h >>conftest.$ac_ext ! 4525: cat >>conftest.$ac_ext <<_ACEOF ! 4526: /* end confdefs.h. */ ! 4527: $ac_includes_default ! 4528: ! 4529: #include <$ac_header> ! 4530: _ACEOF ! 4531: rm -f conftest.$ac_objext ! 4532: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4533: (eval $ac_compile) 2>&5 ! 4534: ac_status=$? ! 4535: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4536: (exit $ac_status); } && ! 4537: { ac_try='test -s conftest.$ac_objext' ! 4538: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4539: (eval $ac_try) 2>&5 ! 4540: ac_status=$? ! 4541: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4542: (exit $ac_status); }; }; then ! 4543: eval "$as_ac_Header=yes" ! 4544: else ! 4545: echo "$as_me: failed program was:" >&5 ! 4546: sed 's/^/| /' conftest.$ac_ext >&5 ! 4547: ! 4548: eval "$as_ac_Header=no" ! 4549: fi ! 4550: rm -f conftest.$ac_objext conftest.$ac_ext ! 4551: fi ! 4552: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 4553: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 4554: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 4555: cat >>confdefs.h <<_ACEOF ! 4556: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 4557: _ACEOF ! 4558: ! 4559: fi ! 4560: ! 4561: done ! 4562: ! 4563: ! 4564: ! 4565: for ac_header in dlfcn.h ! 4566: do ! 4567: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 4568: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 4569: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 4570: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 4571: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 4572: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4573: fi ! 4574: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 4575: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 4576: else ! 4577: # Is the header compilable? ! 4578: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 4579: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 4580: cat >conftest.$ac_ext <<_ACEOF ! 4581: #line $LINENO "configure" ! 4582: /* confdefs.h. */ ! 4583: _ACEOF ! 4584: cat confdefs.h >>conftest.$ac_ext ! 4585: cat >>conftest.$ac_ext <<_ACEOF ! 4586: /* end confdefs.h. */ ! 4587: $ac_includes_default ! 4588: #include <$ac_header> ! 4589: _ACEOF ! 4590: rm -f conftest.$ac_objext ! 4591: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4592: (eval $ac_compile) 2>&5 ! 4593: ac_status=$? ! 4594: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4595: (exit $ac_status); } && ! 4596: { ac_try='test -s conftest.$ac_objext' ! 4597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4598: (eval $ac_try) 2>&5 ! 4599: ac_status=$? ! 4600: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4601: (exit $ac_status); }; }; then ! 4602: ac_header_compiler=yes ! 4603: else ! 4604: echo "$as_me: failed program was:" >&5 ! 4605: sed 's/^/| /' conftest.$ac_ext >&5 ! 4606: ! 4607: ac_header_compiler=no ! 4608: fi ! 4609: rm -f conftest.$ac_objext conftest.$ac_ext ! 4610: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 4611: echo "${ECHO_T}$ac_header_compiler" >&6 ! 4612: ! 4613: # Is the header present? ! 4614: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 4615: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 4616: cat >conftest.$ac_ext <<_ACEOF ! 4617: #line $LINENO "configure" ! 4618: /* confdefs.h. */ ! 4619: _ACEOF ! 4620: cat confdefs.h >>conftest.$ac_ext ! 4621: cat >>conftest.$ac_ext <<_ACEOF ! 4622: /* end confdefs.h. */ ! 4623: #include <$ac_header> ! 4624: _ACEOF ! 4625: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 4626: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 4627: ac_status=$? ! 4628: grep -v '^ *+' conftest.er1 >conftest.err ! 4629: rm -f conftest.er1 ! 4630: cat conftest.err >&5 ! 4631: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4632: (exit $ac_status); } >/dev/null; then ! 4633: if test -s conftest.err; then ! 4634: ac_cpp_err=$ac_c_preproc_warn_flag ! 4635: else ! 4636: ac_cpp_err= ! 4637: fi ! 4638: else ! 4639: ac_cpp_err=yes ! 4640: fi ! 4641: if test -z "$ac_cpp_err"; then ! 4642: ac_header_preproc=yes ! 4643: else ! 4644: echo "$as_me: failed program was:" >&5 ! 4645: sed 's/^/| /' conftest.$ac_ext >&5 ! 4646: ! 4647: ac_header_preproc=no ! 4648: fi ! 4649: rm -f conftest.err conftest.$ac_ext ! 4650: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 4651: echo "${ECHO_T}$ac_header_preproc" >&6 ! 4652: ! 4653: # So? What about this header? ! 4654: case $ac_header_compiler:$ac_header_preproc in ! 4655: yes:no ) ! 4656: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 4657: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 4658: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 4659: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 4660: ( ! 4661: cat <<\_ASBOX ! 4662: ## ------------------------------------ ## ! 4663: ## Report this to [email protected]. ## ! 4664: ## ------------------------------------ ## ! 4665: _ASBOX ! 4666: ) | ! 4667: sed "s/^/$as_me: WARNING: /" >&2 ! 4668: ;; ! 4669: no:yes ) ! 4670: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 4671: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 4672: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 4673: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 4674: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 4675: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 4676: ( ! 4677: cat <<\_ASBOX ! 4678: ## ------------------------------------ ## ! 4679: ## Report this to [email protected]. ## ! 4680: ## ------------------------------------ ## ! 4681: _ASBOX ! 4682: ) | ! 4683: sed "s/^/$as_me: WARNING: /" >&2 ! 4684: ;; ! 4685: esac ! 4686: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 4687: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 4688: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 4689: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4690: else ! 4691: eval "$as_ac_Header=$ac_header_preproc" ! 4692: fi ! 4693: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 4694: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 4695: ! 4696: fi ! 4697: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 4698: cat >>confdefs.h <<_ACEOF ! 4699: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 4700: _ACEOF ! 4701: ! 4702: fi ! 4703: ! 4704: done ! 4705: ! 4706: ac_ext=cc ! 4707: ac_cpp='$CXXCPP $CPPFLAGS' ! 4708: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 4709: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 4710: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 4711: if test -n "$ac_tool_prefix"; then ! 4712: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC ! 4713: do ! 4714: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! 4715: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! 4716: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 4717: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 4718: if test "${ac_cv_prog_CXX+set}" = set; then ! 4719: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4720: else ! 4721: if test -n "$CXX"; then ! 4722: ac_cv_prog_CXX="$CXX" # Let the user override the test. ! 4723: else ! 4724: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 4725: for as_dir in $PATH ! 4726: do ! 4727: IFS=$as_save_IFS ! 4728: test -z "$as_dir" && as_dir=. ! 4729: for ac_exec_ext in '' $ac_executable_extensions; do ! 4730: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 4731: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ! 4732: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 4733: break 2 ! 4734: fi ! 4735: done ! 4736: done ! 4737: ! 4738: fi ! 4739: fi ! 4740: CXX=$ac_cv_prog_CXX ! 4741: if test -n "$CXX"; then ! 4742: echo "$as_me:$LINENO: result: $CXX" >&5 ! 4743: echo "${ECHO_T}$CXX" >&6 ! 4744: else ! 4745: echo "$as_me:$LINENO: result: no" >&5 ! 4746: echo "${ECHO_T}no" >&6 ! 4747: fi ! 4748: ! 4749: test -n "$CXX" && break ! 4750: done ! 4751: fi ! 4752: if test -z "$CXX"; then ! 4753: ac_ct_CXX=$CXX ! 4754: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC ! 4755: do ! 4756: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 4757: set dummy $ac_prog; ac_word=$2 ! 4758: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 4759: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 4760: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then ! 4761: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4762: else ! 4763: if test -n "$ac_ct_CXX"; then ! 4764: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. ! 4765: else ! 4766: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 4767: for as_dir in $PATH ! 4768: do ! 4769: IFS=$as_save_IFS ! 4770: test -z "$as_dir" && as_dir=. ! 4771: for ac_exec_ext in '' $ac_executable_extensions; do ! 4772: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 4773: ac_cv_prog_ac_ct_CXX="$ac_prog" ! 4774: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 4775: break 2 ! 4776: fi ! 4777: done ! 4778: done ! 4779: ! 4780: fi ! 4781: fi ! 4782: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ! 4783: if test -n "$ac_ct_CXX"; then ! 4784: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 ! 4785: echo "${ECHO_T}$ac_ct_CXX" >&6 ! 4786: else ! 4787: echo "$as_me:$LINENO: result: no" >&5 ! 4788: echo "${ECHO_T}no" >&6 ! 4789: fi ! 4790: ! 4791: test -n "$ac_ct_CXX" && break ! 4792: done ! 4793: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" ! 4794: ! 4795: CXX=$ac_ct_CXX ! 4796: fi ! 4797: ! 4798: ! 4799: # Provide some information about the compiler. ! 4800: echo "$as_me:$LINENO:" \ ! 4801: "checking for C++ compiler version" >&5 ! 4802: ac_compiler=`set X $ac_compile; echo $2` ! 4803: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 ! 4804: (eval $ac_compiler --version </dev/null >&5) 2>&5 ! 4805: ac_status=$? ! 4806: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4807: (exit $ac_status); } ! 4808: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 ! 4809: (eval $ac_compiler -v </dev/null >&5) 2>&5 ! 4810: ac_status=$? ! 4811: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4812: (exit $ac_status); } ! 4813: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 ! 4814: (eval $ac_compiler -V </dev/null >&5) 2>&5 ! 4815: ac_status=$? ! 4816: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4817: (exit $ac_status); } ! 4818: ! 4819: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 ! 4820: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 ! 4821: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then ! 4822: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4823: else ! 4824: cat >conftest.$ac_ext <<_ACEOF ! 4825: #line $LINENO "configure" ! 4826: /* confdefs.h. */ ! 4827: _ACEOF ! 4828: cat confdefs.h >>conftest.$ac_ext ! 4829: cat >>conftest.$ac_ext <<_ACEOF ! 4830: /* end confdefs.h. */ ! 4831: ! 4832: int ! 4833: main () ! 4834: { ! 4835: #ifndef __GNUC__ ! 4836: choke me ! 4837: #endif ! 4838: ! 4839: ; ! 4840: return 0; ! 4841: } ! 4842: _ACEOF ! 4843: rm -f conftest.$ac_objext ! 4844: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4845: (eval $ac_compile) 2>&5 ! 4846: ac_status=$? ! 4847: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4848: (exit $ac_status); } && ! 4849: { ac_try='test -s conftest.$ac_objext' ! 4850: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4851: (eval $ac_try) 2>&5 ! 4852: ac_status=$? ! 4853: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4854: (exit $ac_status); }; }; then ! 4855: ac_compiler_gnu=yes ! 4856: else ! 4857: echo "$as_me: failed program was:" >&5 ! 4858: sed 's/^/| /' conftest.$ac_ext >&5 ! 4859: ! 4860: ac_compiler_gnu=no ! 4861: fi ! 4862: rm -f conftest.$ac_objext conftest.$ac_ext ! 4863: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ! 4864: ! 4865: fi ! 4866: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 ! 4867: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 ! 4868: GXX=`test $ac_compiler_gnu = yes && echo yes` ! 4869: ac_test_CXXFLAGS=${CXXFLAGS+set} ! 4870: ac_save_CXXFLAGS=$CXXFLAGS ! 4871: CXXFLAGS="-g" ! 4872: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 ! 4873: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 ! 4874: if test "${ac_cv_prog_cxx_g+set}" = set; then ! 4875: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4876: else ! 4877: cat >conftest.$ac_ext <<_ACEOF ! 4878: #line $LINENO "configure" ! 4879: /* confdefs.h. */ ! 4880: _ACEOF ! 4881: cat confdefs.h >>conftest.$ac_ext ! 4882: cat >>conftest.$ac_ext <<_ACEOF ! 4883: /* end confdefs.h. */ ! 4884: ! 4885: int ! 4886: main () ! 4887: { ! 4888: ! 4889: ; ! 4890: return 0; ! 4891: } ! 4892: _ACEOF ! 4893: rm -f conftest.$ac_objext ! 4894: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4895: (eval $ac_compile) 2>&5 ! 4896: ac_status=$? ! 4897: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4898: (exit $ac_status); } && ! 4899: { ac_try='test -s conftest.$ac_objext' ! 4900: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4901: (eval $ac_try) 2>&5 ! 4902: ac_status=$? ! 4903: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4904: (exit $ac_status); }; }; then ! 4905: ac_cv_prog_cxx_g=yes ! 4906: else ! 4907: echo "$as_me: failed program was:" >&5 ! 4908: sed 's/^/| /' conftest.$ac_ext >&5 ! 4909: ! 4910: ac_cv_prog_cxx_g=no ! 4911: fi ! 4912: rm -f conftest.$ac_objext conftest.$ac_ext ! 4913: fi ! 4914: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 ! 4915: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 ! 4916: if test "$ac_test_CXXFLAGS" = set; then ! 4917: CXXFLAGS=$ac_save_CXXFLAGS ! 4918: elif test $ac_cv_prog_cxx_g = yes; then ! 4919: if test "$GXX" = yes; then ! 4920: CXXFLAGS="-g -O2" ! 4921: else ! 4922: CXXFLAGS="-g" ! 4923: fi ! 4924: else ! 4925: if test "$GXX" = yes; then ! 4926: CXXFLAGS="-O2" ! 4927: else ! 4928: CXXFLAGS= ! 4929: fi ! 4930: fi ! 4931: for ac_declaration in \ ! 4932: ''\ ! 4933: '#include <stdlib.h>' \ ! 4934: 'extern "C" void std::exit (int) throw (); using std::exit;' \ ! 4935: 'extern "C" void std::exit (int); using std::exit;' \ ! 4936: 'extern "C" void exit (int) throw ();' \ ! 4937: 'extern "C" void exit (int);' \ ! 4938: 'void exit (int);' ! 4939: do ! 4940: cat >conftest.$ac_ext <<_ACEOF ! 4941: #line $LINENO "configure" ! 4942: /* confdefs.h. */ ! 4943: _ACEOF ! 4944: cat confdefs.h >>conftest.$ac_ext ! 4945: cat >>conftest.$ac_ext <<_ACEOF ! 4946: /* end confdefs.h. */ ! 4947: #include <stdlib.h> ! 4948: $ac_declaration ! 4949: int ! 4950: main () ! 4951: { ! 4952: exit (42); ! 4953: ; ! 4954: return 0; ! 4955: } ! 4956: _ACEOF ! 4957: rm -f conftest.$ac_objext ! 4958: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4959: (eval $ac_compile) 2>&5 ! 4960: ac_status=$? ! 4961: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4962: (exit $ac_status); } && ! 4963: { ac_try='test -s conftest.$ac_objext' ! 4964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4965: (eval $ac_try) 2>&5 ! 4966: ac_status=$? ! 4967: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4968: (exit $ac_status); }; }; then ! 4969: : ! 4970: else ! 4971: echo "$as_me: failed program was:" >&5 ! 4972: sed 's/^/| /' conftest.$ac_ext >&5 ! 4973: ! 4974: continue ! 4975: fi ! 4976: rm -f conftest.$ac_objext conftest.$ac_ext ! 4977: cat >conftest.$ac_ext <<_ACEOF ! 4978: #line $LINENO "configure" ! 4979: /* confdefs.h. */ ! 4980: _ACEOF ! 4981: cat confdefs.h >>conftest.$ac_ext ! 4982: cat >>conftest.$ac_ext <<_ACEOF ! 4983: /* end confdefs.h. */ ! 4984: $ac_declaration ! 4985: int ! 4986: main () ! 4987: { ! 4988: exit (42); ! 4989: ; ! 4990: return 0; ! 4991: } ! 4992: _ACEOF ! 4993: rm -f conftest.$ac_objext ! 4994: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 4995: (eval $ac_compile) 2>&5 ! 4996: ac_status=$? ! 4997: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4998: (exit $ac_status); } && ! 4999: { ac_try='test -s conftest.$ac_objext' ! 5000: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5001: (eval $ac_try) 2>&5 ! 5002: ac_status=$? ! 5003: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5004: (exit $ac_status); }; }; then ! 5005: break ! 5006: else ! 5007: echo "$as_me: failed program was:" >&5 ! 5008: sed 's/^/| /' conftest.$ac_ext >&5 ! 5009: ! 5010: fi ! 5011: rm -f conftest.$ac_objext conftest.$ac_ext ! 5012: done ! 5013: rm -f conftest* ! 5014: if test -n "$ac_declaration"; then ! 5015: echo '#ifdef __cplusplus' >>confdefs.h ! 5016: echo $ac_declaration >>confdefs.h ! 5017: echo '#endif' >>confdefs.h ! 5018: fi ! 5019: ! 5020: ac_ext=cc ! 5021: ac_cpp='$CXXCPP $CPPFLAGS' ! 5022: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 5023: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 5024: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 5025: ! 5026: depcc="$CXX" am_compiler_list= ! 5027: ! 5028: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ! 5029: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 ! 5030: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then ! 5031: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5032: else ! 5033: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ! 5034: # We make a subdir and do the tests there. Otherwise we can end up ! 5035: # making bogus files that we don't know about and never remove. For ! 5036: # instance it was reported that on HP-UX the gcc test will end up ! 5037: # making a dummy file named `D' -- because `-MD' means `put the output ! 5038: # in D'. ! 5039: mkdir conftest.dir ! 5040: # Copy depcomp to subdir because otherwise we won't find it if we're ! 5041: # using a relative directory. ! 5042: cp "$am_depcomp" conftest.dir ! 5043: cd conftest.dir ! 5044: ! 5045: am_cv_CXX_dependencies_compiler_type=none ! 5046: if test "$am_compiler_list" = ""; then ! 5047: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ! 5048: fi ! 5049: for depmode in $am_compiler_list; do ! 5050: # We need to recreate these files for each test, as the compiler may ! 5051: # overwrite some of them when testing with obscure command lines. ! 5052: # This happens at least with the AIX C compiler. ! 5053: echo '#include "conftest.h"' > conftest.c ! 5054: echo 'int i;' > conftest.h ! 5055: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf ! 5056: ! 5057: case $depmode in ! 5058: nosideeffect) ! 5059: # after this tag, mechanisms are not by side-effect, so they'll ! 5060: # only be used when explicitly requested ! 5061: if test "x$enable_dependency_tracking" = xyes; then ! 5062: continue ! 5063: else ! 5064: break ! 5065: fi ! 5066: ;; ! 5067: none) break ;; ! 5068: esac ! 5069: # We check with `-c' and `-o' for the sake of the "dashmstdout" ! 5070: # mode. It turns out that the SunPro C++ compiler does not properly ! 5071: # handle `-M -o', and we need to detect this. ! 5072: if depmode=$depmode \ ! 5073: source=conftest.c object=conftest.o \ ! 5074: depfile=conftest.Po tmpdepfile=conftest.TPo \ ! 5075: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \ ! 5076: >/dev/null 2>conftest.err && ! 5077: grep conftest.h conftest.Po > /dev/null 2>&1 && ! 5078: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ! 5079: # icc doesn't choke on unknown options, it will just issue warnings ! 5080: # (even with -Werror). So we grep stderr for any message ! 5081: # that says an option was ignored. ! 5082: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else ! 5083: am_cv_CXX_dependencies_compiler_type=$depmode ! 5084: break ! 5085: fi ! 5086: fi ! 5087: done ! 5088: ! 5089: cd .. ! 5090: rm -rf conftest.dir ! 5091: else ! 5092: am_cv_CXX_dependencies_compiler_type=none ! 5093: fi ! 5094: ! 5095: fi ! 5096: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 ! 5097: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 ! 5098: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type ! 5099: ! 5100: ! 5101: ! 5102: if ! 5103: test "x$enable_dependency_tracking" != xno \ ! 5104: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then ! 5105: am__fastdepCXX_TRUE= ! 5106: am__fastdepCXX_FALSE='#' ! 5107: else ! 5108: am__fastdepCXX_TRUE='#' ! 5109: am__fastdepCXX_FALSE= ! 5110: fi ! 5111: ! 5112: ! 5113: ac_ext=cc ! 5114: ac_cpp='$CXXCPP $CPPFLAGS' ! 5115: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 5116: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 5117: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 5118: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 ! 5119: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 ! 5120: if test -z "$CXXCPP"; then ! 5121: if test "${ac_cv_prog_CXXCPP+set}" = set; then ! 5122: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5123: else ! 5124: # Double quotes because CXXCPP needs to be expanded ! 5125: for CXXCPP in "$CXX -E" "/lib/cpp" ! 5126: do ! 5127: ac_preproc_ok=false ! 5128: for ac_cxx_preproc_warn_flag in '' yes ! 5129: do ! 5130: # Use a header file that comes with gcc, so configuring glibc ! 5131: # with a fresh cross-compiler works. ! 5132: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 5133: # <limits.h> exists even on freestanding compilers. ! 5134: # On the NeXT, cc -E runs the code through the compiler's parser, ! 5135: # not just through cpp. "Syntax error" is here to catch this case. ! 5136: cat >conftest.$ac_ext <<_ACEOF ! 5137: #line $LINENO "configure" ! 5138: /* confdefs.h. */ ! 5139: _ACEOF ! 5140: cat confdefs.h >>conftest.$ac_ext ! 5141: cat >>conftest.$ac_ext <<_ACEOF ! 5142: /* end confdefs.h. */ ! 5143: #ifdef __STDC__ ! 5144: # include <limits.h> ! 5145: #else ! 5146: # include <assert.h> ! 5147: #endif ! 5148: Syntax error ! 5149: _ACEOF ! 5150: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 5151: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 5152: ac_status=$? ! 5153: grep -v '^ *+' conftest.er1 >conftest.err ! 5154: rm -f conftest.er1 ! 5155: cat conftest.err >&5 ! 5156: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5157: (exit $ac_status); } >/dev/null; then ! 5158: if test -s conftest.err; then ! 5159: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 5160: else ! 5161: ac_cpp_err= ! 5162: fi ! 5163: else ! 5164: ac_cpp_err=yes ! 5165: fi ! 5166: if test -z "$ac_cpp_err"; then ! 5167: : ! 5168: else ! 5169: echo "$as_me: failed program was:" >&5 ! 5170: sed 's/^/| /' conftest.$ac_ext >&5 ! 5171: ! 5172: # Broken: fails on valid input. ! 5173: continue ! 5174: fi ! 5175: rm -f conftest.err conftest.$ac_ext ! 5176: ! 5177: # OK, works on sane cases. Now check whether non-existent headers ! 5178: # can be detected and how. ! 5179: cat >conftest.$ac_ext <<_ACEOF ! 5180: #line $LINENO "configure" ! 5181: /* confdefs.h. */ ! 5182: _ACEOF ! 5183: cat confdefs.h >>conftest.$ac_ext ! 5184: cat >>conftest.$ac_ext <<_ACEOF ! 5185: /* end confdefs.h. */ ! 5186: #include <ac_nonexistent.h> ! 5187: _ACEOF ! 5188: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 5189: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 5190: ac_status=$? ! 5191: grep -v '^ *+' conftest.er1 >conftest.err ! 5192: rm -f conftest.er1 ! 5193: cat conftest.err >&5 ! 5194: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5195: (exit $ac_status); } >/dev/null; then ! 5196: if test -s conftest.err; then ! 5197: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 5198: else ! 5199: ac_cpp_err= ! 5200: fi ! 5201: else ! 5202: ac_cpp_err=yes ! 5203: fi ! 5204: if test -z "$ac_cpp_err"; then ! 5205: # Broken: success on invalid input. ! 5206: continue ! 5207: else ! 5208: echo "$as_me: failed program was:" >&5 ! 5209: sed 's/^/| /' conftest.$ac_ext >&5 ! 5210: ! 5211: # Passes both tests. ! 5212: ac_preproc_ok=: ! 5213: break ! 5214: fi ! 5215: rm -f conftest.err conftest.$ac_ext ! 5216: ! 5217: done ! 5218: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 5219: rm -f conftest.err conftest.$ac_ext ! 5220: if $ac_preproc_ok; then ! 5221: break ! 5222: fi ! 5223: ! 5224: done ! 5225: ac_cv_prog_CXXCPP=$CXXCPP ! 5226: ! 5227: fi ! 5228: CXXCPP=$ac_cv_prog_CXXCPP ! 5229: else ! 5230: ac_cv_prog_CXXCPP=$CXXCPP ! 5231: fi ! 5232: echo "$as_me:$LINENO: result: $CXXCPP" >&5 ! 5233: echo "${ECHO_T}$CXXCPP" >&6 ! 5234: ac_preproc_ok=false ! 5235: for ac_cxx_preproc_warn_flag in '' yes ! 5236: do ! 5237: # Use a header file that comes with gcc, so configuring glibc ! 5238: # with a fresh cross-compiler works. ! 5239: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 5240: # <limits.h> exists even on freestanding compilers. ! 5241: # On the NeXT, cc -E runs the code through the compiler's parser, ! 5242: # not just through cpp. "Syntax error" is here to catch this case. ! 5243: cat >conftest.$ac_ext <<_ACEOF ! 5244: #line $LINENO "configure" ! 5245: /* confdefs.h. */ ! 5246: _ACEOF ! 5247: cat confdefs.h >>conftest.$ac_ext ! 5248: cat >>conftest.$ac_ext <<_ACEOF ! 5249: /* end confdefs.h. */ ! 5250: #ifdef __STDC__ ! 5251: # include <limits.h> ! 5252: #else ! 5253: # include <assert.h> ! 5254: #endif ! 5255: Syntax error ! 5256: _ACEOF ! 5257: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 5258: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 5259: ac_status=$? ! 5260: grep -v '^ *+' conftest.er1 >conftest.err ! 5261: rm -f conftest.er1 ! 5262: cat conftest.err >&5 ! 5263: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5264: (exit $ac_status); } >/dev/null; then ! 5265: if test -s conftest.err; then ! 5266: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 5267: else ! 5268: ac_cpp_err= ! 5269: fi ! 5270: else ! 5271: ac_cpp_err=yes ! 5272: fi ! 5273: if test -z "$ac_cpp_err"; then ! 5274: : ! 5275: else ! 5276: echo "$as_me: failed program was:" >&5 ! 5277: sed 's/^/| /' conftest.$ac_ext >&5 ! 5278: ! 5279: # Broken: fails on valid input. ! 5280: continue ! 5281: fi ! 5282: rm -f conftest.err conftest.$ac_ext ! 5283: ! 5284: # OK, works on sane cases. Now check whether non-existent headers ! 5285: # can be detected and how. ! 5286: cat >conftest.$ac_ext <<_ACEOF ! 5287: #line $LINENO "configure" ! 5288: /* confdefs.h. */ ! 5289: _ACEOF ! 5290: cat confdefs.h >>conftest.$ac_ext ! 5291: cat >>conftest.$ac_ext <<_ACEOF ! 5292: /* end confdefs.h. */ ! 5293: #include <ac_nonexistent.h> ! 5294: _ACEOF ! 5295: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 5296: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 5297: ac_status=$? ! 5298: grep -v '^ *+' conftest.er1 >conftest.err ! 5299: rm -f conftest.er1 ! 5300: cat conftest.err >&5 ! 5301: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5302: (exit $ac_status); } >/dev/null; then ! 5303: if test -s conftest.err; then ! 5304: ac_cpp_err=$ac_cxx_preproc_warn_flag ! 5305: else ! 5306: ac_cpp_err= ! 5307: fi ! 5308: else ! 5309: ac_cpp_err=yes ! 5310: fi ! 5311: if test -z "$ac_cpp_err"; then ! 5312: # Broken: success on invalid input. ! 5313: continue ! 5314: else ! 5315: echo "$as_me: failed program was:" >&5 ! 5316: sed 's/^/| /' conftest.$ac_ext >&5 ! 5317: ! 5318: # Passes both tests. ! 5319: ac_preproc_ok=: ! 5320: break ! 5321: fi ! 5322: rm -f conftest.err conftest.$ac_ext ! 5323: ! 5324: done ! 5325: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 5326: rm -f conftest.err conftest.$ac_ext ! 5327: if $ac_preproc_ok; then ! 5328: : ! 5329: else ! 5330: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check ! 5331: See \`config.log' for more details." >&5 ! 5332: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check ! 5333: See \`config.log' for more details." >&2;} ! 5334: { (exit 1); exit 1; }; } ! 5335: fi ! 5336: ! 5337: ac_ext=cc ! 5338: ac_cpp='$CXXCPP $CPPFLAGS' ! 5339: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 5340: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 5341: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 5342: ! 5343: ! 5344: ac_ext=f ! 5345: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! 5346: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 5347: ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! 5348: if test -n "$ac_tool_prefix"; then ! 5349: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ! 5350: do ! 5351: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! 5352: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! 5353: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 5354: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 5355: if test "${ac_cv_prog_F77+set}" = set; then ! 5356: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5357: else ! 5358: if test -n "$F77"; then ! 5359: ac_cv_prog_F77="$F77" # Let the user override the test. ! 5360: else ! 5361: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 5362: for as_dir in $PATH ! 5363: do ! 5364: IFS=$as_save_IFS ! 5365: test -z "$as_dir" && as_dir=. ! 5366: for ac_exec_ext in '' $ac_executable_extensions; do ! 5367: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 5368: ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ! 5369: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 5370: break 2 ! 5371: fi ! 5372: done ! 5373: done ! 5374: ! 5375: fi ! 5376: fi ! 5377: F77=$ac_cv_prog_F77 ! 5378: if test -n "$F77"; then ! 5379: echo "$as_me:$LINENO: result: $F77" >&5 ! 5380: echo "${ECHO_T}$F77" >&6 ! 5381: else ! 5382: echo "$as_me:$LINENO: result: no" >&5 ! 5383: echo "${ECHO_T}no" >&6 ! 5384: fi ! 5385: ! 5386: test -n "$F77" && break ! 5387: done ! 5388: fi ! 5389: if test -z "$F77"; then ! 5390: ac_ct_F77=$F77 ! 5391: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ! 5392: do ! 5393: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 5394: set dummy $ac_prog; ac_word=$2 ! 5395: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 5396: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 5397: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then ! 5398: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5399: else ! 5400: if test -n "$ac_ct_F77"; then ! 5401: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ! 5402: else ! 5403: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 5404: for as_dir in $PATH ! 5405: do ! 5406: IFS=$as_save_IFS ! 5407: test -z "$as_dir" && as_dir=. ! 5408: for ac_exec_ext in '' $ac_executable_extensions; do ! 5409: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 5410: ac_cv_prog_ac_ct_F77="$ac_prog" ! 5411: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 5412: break 2 ! 5413: fi ! 5414: done ! 5415: done ! 5416: ! 5417: fi ! 5418: fi ! 5419: ac_ct_F77=$ac_cv_prog_ac_ct_F77 ! 5420: if test -n "$ac_ct_F77"; then ! 5421: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 ! 5422: echo "${ECHO_T}$ac_ct_F77" >&6 ! 5423: else ! 5424: echo "$as_me:$LINENO: result: no" >&5 ! 5425: echo "${ECHO_T}no" >&6 ! 5426: fi ! 5427: ! 5428: test -n "$ac_ct_F77" && break ! 5429: done ! 5430: ! 5431: F77=$ac_ct_F77 ! 5432: fi ! 5433: ! 5434: ! 5435: # Provide some information about the compiler. ! 5436: echo "$as_me:5436:" \ ! 5437: "checking for Fortran 77 compiler version" >&5 ! 5438: ac_compiler=`set X $ac_compile; echo $2` ! 5439: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 ! 5440: (eval $ac_compiler --version </dev/null >&5) 2>&5 ! 5441: ac_status=$? ! 5442: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5443: (exit $ac_status); } ! 5444: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 ! 5445: (eval $ac_compiler -v </dev/null >&5) 2>&5 ! 5446: ac_status=$? ! 5447: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5448: (exit $ac_status); } ! 5449: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 ! 5450: (eval $ac_compiler -V </dev/null >&5) 2>&5 ! 5451: ac_status=$? ! 5452: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5453: (exit $ac_status); } ! 5454: ! 5455: # If we don't use `.F' as extension, the preprocessor is not run on the ! 5456: # input file. ! 5457: ac_save_ext=$ac_ext ! 5458: ac_ext=F ! 5459: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 ! 5460: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 ! 5461: if test "${ac_cv_f77_compiler_gnu+set}" = set; then ! 5462: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5463: else ! 5464: cat >conftest.$ac_ext <<_ACEOF ! 5465: program main ! 5466: #ifndef __GNUC__ ! 5467: choke me ! 5468: #endif ! 5469: ! 5470: end ! 5471: _ACEOF ! 5472: rm -f conftest.$ac_objext ! 5473: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5474: (eval $ac_compile) 2>&5 ! 5475: ac_status=$? ! 5476: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5477: (exit $ac_status); } && ! 5478: { ac_try='test -s conftest.$ac_objext' ! 5479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5480: (eval $ac_try) 2>&5 ! 5481: ac_status=$? ! 5482: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5483: (exit $ac_status); }; }; then ! 5484: ac_compiler_gnu=yes ! 5485: else ! 5486: echo "$as_me: failed program was:" >&5 ! 5487: sed 's/^/| /' conftest.$ac_ext >&5 ! 5488: ! 5489: ac_compiler_gnu=no ! 5490: fi ! 5491: rm -f conftest.$ac_objext conftest.$ac_ext ! 5492: ac_cv_f77_compiler_gnu=$ac_compiler_gnu ! 5493: ! 5494: fi ! 5495: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 ! 5496: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 ! 5497: ac_ext=$ac_save_ext ! 5498: G77=`test $ac_compiler_gnu = yes && echo yes` ! 5499: ac_test_FFLAGS=${FFLAGS+set} ! 5500: ac_save_FFLAGS=$FFLAGS ! 5501: FFLAGS= ! 5502: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 ! 5503: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 ! 5504: if test "${ac_cv_prog_f77_g+set}" = set; then ! 5505: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5506: else ! 5507: FFLAGS=-g ! 5508: cat >conftest.$ac_ext <<_ACEOF ! 5509: program main ! 5510: ! 5511: end ! 5512: _ACEOF ! 5513: rm -f conftest.$ac_objext ! 5514: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5515: (eval $ac_compile) 2>&5 ! 5516: ac_status=$? ! 5517: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5518: (exit $ac_status); } && ! 5519: { ac_try='test -s conftest.$ac_objext' ! 5520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 5521: (eval $ac_try) 2>&5 ! 5522: ac_status=$? ! 5523: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5524: (exit $ac_status); }; }; then ! 5525: ac_cv_prog_f77_g=yes ! 5526: else ! 5527: echo "$as_me: failed program was:" >&5 ! 5528: sed 's/^/| /' conftest.$ac_ext >&5 ! 5529: ! 5530: ac_cv_prog_f77_g=no ! 5531: fi ! 5532: rm -f conftest.$ac_objext conftest.$ac_ext ! 5533: ! 5534: fi ! 5535: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 ! 5536: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 ! 5537: if test "$ac_test_FFLAGS" = set; then ! 5538: FFLAGS=$ac_save_FFLAGS ! 5539: elif test $ac_cv_prog_f77_g = yes; then ! 5540: if test "$G77" = yes; then ! 5541: FFLAGS="-g -O2" ! 5542: else ! 5543: FFLAGS="-g" ! 5544: fi ! 5545: else ! 5546: if test "$G77" = yes; then ! 5547: FFLAGS="-O2" ! 5548: else ! 5549: FFLAGS= ! 5550: fi ! 5551: fi ! 5552: ac_ext=c ! 5553: ac_cpp='$CPP $CPPFLAGS' ! 5554: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 5555: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 5556: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 5557: ! 5558: ! 5559: ! 5560: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! ! 5561: ! 5562: # find the maximum length of command line arguments ! 5563: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 ! 5564: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 ! 5565: if test "${lt_cv_sys_max_cmd_len+set}" = set; then ! 5566: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5567: else ! 5568: i=0 ! 5569: testring="ABCD" ! 5570: ! 5571: case $build_os in ! 5572: msdosdjgpp*) ! 5573: # On DJGPP, this test can blow up pretty badly due to problems in libc ! 5574: # (any single argument exceeding 2000 bytes causes a buffer overrun ! 5575: # during glob expansion). Even if it were fixed, the result of this ! 5576: # check would be larger than it should be. ! 5577: lt_cv_sys_max_cmd_len=12288; # 12K is about right ! 5578: ;; ! 5579: ! 5580: gnu*) ! 5581: # Under GNU Hurd, this test is not required because there is ! 5582: # no limit to the length of command line arguments. ! 5583: # Libtool will interpret -1 as no limit whatsoever ! 5584: lt_cv_sys_max_cmd_len=-1; ! 5585: ;; ! 5586: ! 5587: cygwin* | mingw*) ! 5588: # On Win9x/ME, this test blows up -- it succeeds, but takes ! 5589: # about 5 minutes as the teststring grows exponentially. ! 5590: # Worse, since 9x/ME are not pre-emptively multitasking, ! 5591: # you end up with a "frozen" computer, even though with patience ! 5592: # the test eventually succeeds (with a max line length of 256k). ! 5593: # Instead, let's just punt: use the minimum linelength reported by ! 5594: # all of the supported platforms: 8192 (on NT/2K/XP). ! 5595: lt_cv_sys_max_cmd_len=8192; ! 5596: ;; ! 5597: ! 5598: *) ! 5599: # If test is not a shell built-in, we'll probably end up computing a ! 5600: # maximum length that is only half of the actual maximum length, but ! 5601: # we can't tell. ! 5602: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ ! 5603: = "XX$testring") >/dev/null 2>&1 && ! 5604: new_result=`expr "X$testring" : ".*" 2>&1` && ! 5605: lt_cv_sys_max_cmd_len=$new_result && ! 5606: test $i != 17 # 1/2 MB should be enough ! 5607: do ! 5608: i=`expr $i + 1` ! 5609: testring=$testring$testring ! 5610: done ! 5611: testring= ! 5612: # Add a significant safety factor because C++ compilers can tack on massive ! 5613: # amounts of additional arguments before passing them to the linker. ! 5614: # It appears as though 1/2 is a usable value. ! 5615: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ! 5616: ;; ! 5617: esac ! 5618: ! 5619: fi ! 5620: ! 5621: if test -n $lt_cv_sys_max_cmd_len ; then ! 5622: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 ! 5623: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 ! 5624: else ! 5625: echo "$as_me:$LINENO: result: none" >&5 ! 5626: echo "${ECHO_T}none" >&6 ! 5627: fi ! 5628: ! 5629: ! 5630: ! 5631: ! 5632: # Check for command to grab the raw symbol name followed by C symbol from nm. ! 5633: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 ! 5634: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 ! 5635: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then ! 5636: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5637: else ! 5638: ! 5639: # These are sane defaults that work on at least a few old systems. ! 5640: # [They come from Ultrix. What could be older than Ultrix?!! ;)] ! 5641: ! 5642: # Character class describing NM global symbol codes. ! 5643: symcode='[BCDEGRST]' ! 5644: ! 5645: # Regexp to match symbols that can be accessed directly from C. ! 5646: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' ! 5647: ! 5648: # Transform the above into a raw symbol and a C symbol. ! 5649: symxfrm='\1 \2\3 \3' ! 5650: ! 5651: # Transform an extracted symbol line into a proper C declaration ! 5652: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" ! 5653: ! 5654: # Transform an extracted symbol line into symbol name and symbol address ! 5655: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ! 5656: ! 5657: # Define system-specific variables. ! 5658: case $host_os in ! 5659: aix*) ! 5660: symcode='[BCDT]' ! 5661: ;; ! 5662: cygwin* | mingw* | pw32*) ! 5663: symcode='[ABCDGISTW]' ! 5664: ;; ! 5665: hpux*) # Its linker distinguishes data from code symbols ! 5666: if test "$host_cpu" = ia64; then ! 5667: symcode='[ABCDEGRST]' ! 5668: fi ! 5669: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" ! 5670: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ! 5671: ;; ! 5672: irix* | nonstopux*) ! 5673: symcode='[BCDEGRST]' ! 5674: ;; ! 5675: osf*) ! 5676: symcode='[BCDEGQRST]' ! 5677: ;; ! 5678: solaris* | sysv5*) ! 5679: symcode='[BDT]' ! 5680: ;; ! 5681: sysv4) ! 5682: symcode='[DFNSTU]' ! 5683: ;; ! 5684: esac ! 5685: ! 5686: # Handle CRLF in mingw tool chain ! 5687: opt_cr= ! 5688: case $build_os in ! 5689: mingw*) ! 5690: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ! 5691: ;; ! 5692: esac ! 5693: ! 5694: # If we're using GNU nm, then use its standard symbol codes. ! 5695: case `$NM -V 2>&1` in ! 5696: *GNU* | *'with BFD'*) ! 5697: symcode='[ABCDGISTW]' ;; ! 5698: esac ! 5699: ! 5700: # Try without a prefix undercore, then with it. ! 5701: for ac_symprfx in "" "_"; do ! 5702: ! 5703: # Write the raw and C identifiers. ! 5704: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" ! 5705: ! 5706: # Check to see that the pipe works correctly. ! 5707: pipe_works=no ! 5708: ! 5709: rm -f conftest* ! 5710: cat > conftest.$ac_ext <<EOF ! 5711: #ifdef __cplusplus ! 5712: extern "C" { ! 5713: #endif ! 5714: char nm_test_var; ! 5715: void nm_test_func(){} ! 5716: #ifdef __cplusplus ! 5717: } ! 5718: #endif ! 5719: int main(){nm_test_var='a';nm_test_func();return(0);} ! 5720: EOF ! 5721: ! 5722: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 5723: (eval $ac_compile) 2>&5 ! 5724: ac_status=$? ! 5725: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5726: (exit $ac_status); }; then ! 5727: # Now try to grab the symbols. ! 5728: nlist=conftest.nm ! 5729: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 ! 5730: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ! 5731: ac_status=$? ! 5732: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5733: (exit $ac_status); } && test -s "$nlist"; then ! 5734: # Try sorting and uniquifying the output. ! 5735: if sort "$nlist" | uniq > "$nlist"T; then ! 5736: mv -f "$nlist"T "$nlist" ! 5737: else ! 5738: rm -f "$nlist"T ! 5739: fi ! 5740: ! 5741: # Make sure that we snagged all the symbols we need. ! 5742: if grep ' nm_test_var$' "$nlist" >/dev/null; then ! 5743: if grep ' nm_test_func$' "$nlist" >/dev/null; then ! 5744: cat <<EOF > conftest.$ac_ext ! 5745: #ifdef __cplusplus ! 5746: extern "C" { ! 5747: #endif ! 5748: ! 5749: EOF ! 5750: # Now generate the symbol file. ! 5751: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' ! 5752: ! 5753: cat <<EOF >> conftest.$ac_ext ! 5754: #if defined (__STDC__) && __STDC__ ! 5755: # define lt_ptr_t void * ! 5756: #else ! 5757: # define lt_ptr_t char * ! 5758: # define const ! 5759: #endif ! 5760: ! 5761: /* The mapping between symbol names and symbols. */ ! 5762: const struct { ! 5763: const char *name; ! 5764: lt_ptr_t address; ! 5765: } ! 5766: lt_preloaded_symbols[] = ! 5767: { ! 5768: EOF ! 5769: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext ! 5770: cat <<\EOF >> conftest.$ac_ext ! 5771: {0, (lt_ptr_t) 0} ! 5772: }; ! 5773: ! 5774: #ifdef __cplusplus ! 5775: } ! 5776: #endif ! 5777: EOF ! 5778: # Now try linking the two files. ! 5779: mv conftest.$ac_objext conftstm.$ac_objext ! 5780: lt_save_LIBS="$LIBS" ! 5781: lt_save_CFLAGS="$CFLAGS" ! 5782: LIBS="conftstm.$ac_objext" ! 5783: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" ! 5784: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 5785: (eval $ac_link) 2>&5 ! 5786: ac_status=$? ! 5787: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 5788: (exit $ac_status); } && test -s conftest${ac_exeext}; then ! 5789: pipe_works=yes ! 5790: fi ! 5791: LIBS="$lt_save_LIBS" ! 5792: CFLAGS="$lt_save_CFLAGS" ! 5793: else ! 5794: echo "cannot find nm_test_func in $nlist" >&5 ! 5795: fi ! 5796: else ! 5797: echo "cannot find nm_test_var in $nlist" >&5 ! 5798: fi ! 5799: else ! 5800: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 ! 5801: fi ! 5802: else ! 5803: echo "$progname: failed program was:" >&5 ! 5804: cat conftest.$ac_ext >&5 ! 5805: fi ! 5806: rm -f conftest* conftst* ! 5807: ! 5808: # Do not use the global_symbol_pipe unless it works. ! 5809: if test "$pipe_works" = yes; then ! 5810: break ! 5811: else ! 5812: lt_cv_sys_global_symbol_pipe= ! 5813: fi ! 5814: done ! 5815: ! 5816: fi ! 5817: ! 5818: if test -z "$lt_cv_sys_global_symbol_pipe"; then ! 5819: lt_cv_sys_global_symbol_to_cdecl= ! 5820: fi ! 5821: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then ! 5822: echo "$as_me:$LINENO: result: failed" >&5 ! 5823: echo "${ECHO_T}failed" >&6 ! 5824: else ! 5825: echo "$as_me:$LINENO: result: ok" >&5 ! 5826: echo "${ECHO_T}ok" >&6 ! 5827: fi ! 5828: ! 5829: echo "$as_me:$LINENO: checking for objdir" >&5 ! 5830: echo $ECHO_N "checking for objdir... $ECHO_C" >&6 ! 5831: if test "${lt_cv_objdir+set}" = set; then ! 5832: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5833: else ! 5834: rm -f .libs 2>/dev/null ! 5835: mkdir .libs 2>/dev/null ! 5836: if test -d .libs; then ! 5837: lt_cv_objdir=.libs ! 5838: else ! 5839: # MS-DOS does not allow filenames that begin with a dot. ! 5840: lt_cv_objdir=_libs ! 5841: fi ! 5842: rmdir .libs 2>/dev/null ! 5843: fi ! 5844: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 ! 5845: echo "${ECHO_T}$lt_cv_objdir" >&6 ! 5846: objdir=$lt_cv_objdir ! 5847: ! 5848: ! 5849: ! 5850: ! 5851: ! 5852: case $host_os in ! 5853: aix3*) ! 5854: # AIX sometimes has problems with the GCC collect2 program. For some ! 5855: # reason, if we set the COLLECT_NAMES environment variable, the problems ! 5856: # vanish in a puff of smoke. ! 5857: if test "X${COLLECT_NAMES+set}" != Xset; then ! 5858: COLLECT_NAMES= ! 5859: export COLLECT_NAMES ! 5860: fi ! 5861: ;; ! 5862: esac ! 5863: ! 5864: # Sed substitution that helps us do robust quoting. It backslashifies ! 5865: # metacharacters that are still active within double-quoted strings. ! 5866: Xsed='sed -e s/^X//' ! 5867: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' ! 5868: ! 5869: # Same as above, but do not quote variable references. ! 5870: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' ! 5871: ! 5872: # Sed substitution to delay expansion of an escaped shell variable in a ! 5873: # double_quote_subst'ed string. ! 5874: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' ! 5875: ! 5876: # Sed substitution to avoid accidental globbing in evaled expressions ! 5877: no_glob_subst='s/\*/\\\*/g' ! 5878: ! 5879: # Constants: ! 5880: rm="rm -f" ! 5881: ! 5882: # Global variables: ! 5883: default_ofile=libtool ! 5884: can_build_shared=yes ! 5885: ! 5886: # All known linkers require a `.a' archive for static linking (except M$VC, ! 5887: # which needs '.lib'). ! 5888: libext=a ! 5889: ltmain="$ac_aux_dir/ltmain.sh" ! 5890: ofile="$default_ofile" ! 5891: with_gnu_ld="$lt_cv_prog_gnu_ld" ! 5892: ! 5893: if test -n "$ac_tool_prefix"; then ! 5894: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. ! 5895: set dummy ${ac_tool_prefix}ar; ac_word=$2 ! 5896: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 5897: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 5898: if test "${ac_cv_prog_AR+set}" = set; then ! 5899: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5900: else ! 5901: if test -n "$AR"; then ! 5902: ac_cv_prog_AR="$AR" # Let the user override the test. ! 5903: else ! 5904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 5905: for as_dir in $PATH ! 5906: do ! 5907: IFS=$as_save_IFS ! 5908: test -z "$as_dir" && as_dir=. ! 5909: for ac_exec_ext in '' $ac_executable_extensions; do ! 5910: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 5911: ac_cv_prog_AR="${ac_tool_prefix}ar" ! 5912: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 5913: break 2 ! 5914: fi ! 5915: done ! 5916: done ! 5917: ! 5918: fi ! 5919: fi ! 5920: AR=$ac_cv_prog_AR ! 5921: if test -n "$AR"; then ! 5922: echo "$as_me:$LINENO: result: $AR" >&5 ! 5923: echo "${ECHO_T}$AR" >&6 ! 5924: else ! 5925: echo "$as_me:$LINENO: result: no" >&5 ! 5926: echo "${ECHO_T}no" >&6 ! 5927: fi ! 5928: ! 5929: fi ! 5930: if test -z "$ac_cv_prog_AR"; then ! 5931: ac_ct_AR=$AR ! 5932: # Extract the first word of "ar", so it can be a program name with args. ! 5933: set dummy ar; ac_word=$2 ! 5934: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 5935: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 5936: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then ! 5937: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5938: else ! 5939: if test -n "$ac_ct_AR"; then ! 5940: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. ! 5941: else ! 5942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 5943: for as_dir in $PATH ! 5944: do ! 5945: IFS=$as_save_IFS ! 5946: test -z "$as_dir" && as_dir=. ! 5947: for ac_exec_ext in '' $ac_executable_extensions; do ! 5948: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 5949: ac_cv_prog_ac_ct_AR="ar" ! 5950: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 5951: break 2 ! 5952: fi ! 5953: done ! 5954: done ! 5955: ! 5956: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" ! 5957: fi ! 5958: fi ! 5959: ac_ct_AR=$ac_cv_prog_ac_ct_AR ! 5960: if test -n "$ac_ct_AR"; then ! 5961: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 ! 5962: echo "${ECHO_T}$ac_ct_AR" >&6 ! 5963: else ! 5964: echo "$as_me:$LINENO: result: no" >&5 ! 5965: echo "${ECHO_T}no" >&6 ! 5966: fi ! 5967: ! 5968: AR=$ac_ct_AR ! 5969: else ! 5970: AR="$ac_cv_prog_AR" ! 5971: fi ! 5972: ! 5973: if test -n "$ac_tool_prefix"; then ! 5974: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. ! 5975: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 ! 5976: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 5977: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 5978: if test "${ac_cv_prog_RANLIB+set}" = set; then ! 5979: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 5980: else ! 5981: if test -n "$RANLIB"; then ! 5982: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ! 5983: else ! 5984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 5985: for as_dir in $PATH ! 5986: do ! 5987: IFS=$as_save_IFS ! 5988: test -z "$as_dir" && as_dir=. ! 5989: for ac_exec_ext in '' $ac_executable_extensions; do ! 5990: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 5991: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" ! 5992: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 5993: break 2 ! 5994: fi ! 5995: done ! 5996: done ! 5997: ! 5998: fi ! 5999: fi ! 6000: RANLIB=$ac_cv_prog_RANLIB ! 6001: if test -n "$RANLIB"; then ! 6002: echo "$as_me:$LINENO: result: $RANLIB" >&5 ! 6003: echo "${ECHO_T}$RANLIB" >&6 ! 6004: else ! 6005: echo "$as_me:$LINENO: result: no" >&5 ! 6006: echo "${ECHO_T}no" >&6 ! 6007: fi ! 6008: ! 6009: fi ! 6010: if test -z "$ac_cv_prog_RANLIB"; then ! 6011: ac_ct_RANLIB=$RANLIB ! 6012: # Extract the first word of "ranlib", so it can be a program name with args. ! 6013: set dummy ranlib; ac_word=$2 ! 6014: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 6015: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 6016: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then ! 6017: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6018: else ! 6019: if test -n "$ac_ct_RANLIB"; then ! 6020: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. ! 6021: else ! 6022: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 6023: for as_dir in $PATH ! 6024: do ! 6025: IFS=$as_save_IFS ! 6026: test -z "$as_dir" && as_dir=. ! 6027: for ac_exec_ext in '' $ac_executable_extensions; do ! 6028: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 6029: ac_cv_prog_ac_ct_RANLIB="ranlib" ! 6030: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 6031: break 2 ! 6032: fi ! 6033: done ! 6034: done ! 6035: ! 6036: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" ! 6037: fi ! 6038: fi ! 6039: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB ! 6040: if test -n "$ac_ct_RANLIB"; then ! 6041: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 ! 6042: echo "${ECHO_T}$ac_ct_RANLIB" >&6 ! 6043: else ! 6044: echo "$as_me:$LINENO: result: no" >&5 ! 6045: echo "${ECHO_T}no" >&6 ! 6046: fi ! 6047: ! 6048: RANLIB=$ac_ct_RANLIB ! 6049: else ! 6050: RANLIB="$ac_cv_prog_RANLIB" ! 6051: fi ! 6052: ! 6053: if test -n "$ac_tool_prefix"; then ! 6054: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ! 6055: set dummy ${ac_tool_prefix}strip; ac_word=$2 ! 6056: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 6057: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 6058: if test "${ac_cv_prog_STRIP+set}" = set; then ! 6059: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6060: else ! 6061: if test -n "$STRIP"; then ! 6062: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ! 6063: else ! 6064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 6065: for as_dir in $PATH ! 6066: do ! 6067: IFS=$as_save_IFS ! 6068: test -z "$as_dir" && as_dir=. ! 6069: for ac_exec_ext in '' $ac_executable_extensions; do ! 6070: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 6071: ac_cv_prog_STRIP="${ac_tool_prefix}strip" ! 6072: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 6073: break 2 ! 6074: fi ! 6075: done ! 6076: done ! 6077: ! 6078: fi ! 6079: fi ! 6080: STRIP=$ac_cv_prog_STRIP ! 6081: if test -n "$STRIP"; then ! 6082: echo "$as_me:$LINENO: result: $STRIP" >&5 ! 6083: echo "${ECHO_T}$STRIP" >&6 ! 6084: else ! 6085: echo "$as_me:$LINENO: result: no" >&5 ! 6086: echo "${ECHO_T}no" >&6 ! 6087: fi ! 6088: ! 6089: fi ! 6090: if test -z "$ac_cv_prog_STRIP"; then ! 6091: ac_ct_STRIP=$STRIP ! 6092: # Extract the first word of "strip", so it can be a program name with args. ! 6093: set dummy strip; ac_word=$2 ! 6094: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 6095: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 6096: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ! 6097: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6098: else ! 6099: if test -n "$ac_ct_STRIP"; then ! 6100: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ! 6101: else ! 6102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 6103: for as_dir in $PATH ! 6104: do ! 6105: IFS=$as_save_IFS ! 6106: test -z "$as_dir" && as_dir=. ! 6107: for ac_exec_ext in '' $ac_executable_extensions; do ! 6108: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 6109: ac_cv_prog_ac_ct_STRIP="strip" ! 6110: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 6111: break 2 ! 6112: fi ! 6113: done ! 6114: done ! 6115: ! 6116: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" ! 6117: fi ! 6118: fi ! 6119: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ! 6120: if test -n "$ac_ct_STRIP"; then ! 6121: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ! 6122: echo "${ECHO_T}$ac_ct_STRIP" >&6 ! 6123: else ! 6124: echo "$as_me:$LINENO: result: no" >&5 ! 6125: echo "${ECHO_T}no" >&6 ! 6126: fi ! 6127: ! 6128: STRIP=$ac_ct_STRIP ! 6129: else ! 6130: STRIP="$ac_cv_prog_STRIP" ! 6131: fi ! 6132: ! 6133: ! 6134: old_CC="$CC" ! 6135: old_CFLAGS="$CFLAGS" ! 6136: ! 6137: # Set sane defaults for various variables ! 6138: test -z "$AR" && AR=ar ! 6139: test -z "$AR_FLAGS" && AR_FLAGS=cru ! 6140: test -z "$AS" && AS=as ! 6141: test -z "$CC" && CC=cc ! 6142: test -z "$LTCC" && LTCC=$CC ! 6143: test -z "$DLLTOOL" && DLLTOOL=dlltool ! 6144: test -z "$LD" && LD=ld ! 6145: test -z "$LN_S" && LN_S="ln -s" ! 6146: test -z "$MAGIC_CMD" && MAGIC_CMD=file ! 6147: test -z "$NM" && NM=nm ! 6148: test -z "$SED" && SED=sed ! 6149: test -z "$OBJDUMP" && OBJDUMP=objdump ! 6150: test -z "$RANLIB" && RANLIB=: ! 6151: test -z "$STRIP" && STRIP=: ! 6152: test -z "$ac_objext" && ac_objext=o ! 6153: ! 6154: # Determine commands to create old-style static archives. ! 6155: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' ! 6156: old_postinstall_cmds='chmod 644 $oldlib' ! 6157: old_postuninstall_cmds= ! 6158: ! 6159: if test -n "$RANLIB"; then ! 6160: case $host_os in ! 6161: openbsd*) ! 6162: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ! 6163: ;; ! 6164: *) ! 6165: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ! 6166: ;; ! 6167: esac ! 6168: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" ! 6169: fi ! 6170: ! 6171: # Only perform the check for file, if the check method requires it ! 6172: case $deplibs_check_method in ! 6173: file_magic*) ! 6174: if test "$file_magic_cmd" = '$MAGIC_CMD'; then ! 6175: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 ! 6176: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 ! 6177: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ! 6178: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6179: else ! 6180: case $MAGIC_CMD in ! 6181: [\\/*] | ?:[\\/]*) ! 6182: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ! 6183: ;; ! 6184: *) ! 6185: lt_save_MAGIC_CMD="$MAGIC_CMD" ! 6186: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 6187: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ! 6188: for ac_dir in $ac_dummy; do ! 6189: IFS="$lt_save_ifs" ! 6190: test -z "$ac_dir" && ac_dir=. ! 6191: if test -f $ac_dir/${ac_tool_prefix}file; then ! 6192: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" ! 6193: if test -n "$file_magic_test_file"; then ! 6194: case $deplibs_check_method in ! 6195: "file_magic "*) ! 6196: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" ! 6197: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 6198: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ! 6199: $EGREP "$file_magic_regex" > /dev/null; then ! 6200: : ! 6201: else ! 6202: cat <<EOF 1>&2 ! 6203: ! 6204: *** Warning: the command libtool uses to detect shared libraries, ! 6205: *** $file_magic_cmd, produces output that libtool cannot recognize. ! 6206: *** The result is that libtool may fail to recognize shared libraries ! 6207: *** as such. This will affect the creation of libtool libraries that ! 6208: *** depend on shared libraries, but programs linked with such libtool ! 6209: *** libraries will work regardless of this problem. Nevertheless, you ! 6210: *** may want to report the problem to your system manager and/or to ! 6211: *** [email protected] ! 6212: ! 6213: EOF ! 6214: fi ;; ! 6215: esac ! 6216: fi ! 6217: break ! 6218: fi ! 6219: done ! 6220: IFS="$lt_save_ifs" ! 6221: MAGIC_CMD="$lt_save_MAGIC_CMD" ! 6222: ;; ! 6223: esac ! 6224: fi ! 6225: ! 6226: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 6227: if test -n "$MAGIC_CMD"; then ! 6228: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ! 6229: echo "${ECHO_T}$MAGIC_CMD" >&6 ! 6230: else ! 6231: echo "$as_me:$LINENO: result: no" >&5 ! 6232: echo "${ECHO_T}no" >&6 ! 6233: fi ! 6234: ! 6235: if test -z "$lt_cv_path_MAGIC_CMD"; then ! 6236: if test -n "$ac_tool_prefix"; then ! 6237: echo "$as_me:$LINENO: checking for file" >&5 ! 6238: echo $ECHO_N "checking for file... $ECHO_C" >&6 ! 6239: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ! 6240: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6241: else ! 6242: case $MAGIC_CMD in ! 6243: [\\/*] | ?:[\\/]*) ! 6244: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ! 6245: ;; ! 6246: *) ! 6247: lt_save_MAGIC_CMD="$MAGIC_CMD" ! 6248: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 6249: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ! 6250: for ac_dir in $ac_dummy; do ! 6251: IFS="$lt_save_ifs" ! 6252: test -z "$ac_dir" && ac_dir=. ! 6253: if test -f $ac_dir/file; then ! 6254: lt_cv_path_MAGIC_CMD="$ac_dir/file" ! 6255: if test -n "$file_magic_test_file"; then ! 6256: case $deplibs_check_method in ! 6257: "file_magic "*) ! 6258: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" ! 6259: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 6260: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ! 6261: $EGREP "$file_magic_regex" > /dev/null; then ! 6262: : ! 6263: else ! 6264: cat <<EOF 1>&2 ! 6265: ! 6266: *** Warning: the command libtool uses to detect shared libraries, ! 6267: *** $file_magic_cmd, produces output that libtool cannot recognize. ! 6268: *** The result is that libtool may fail to recognize shared libraries ! 6269: *** as such. This will affect the creation of libtool libraries that ! 6270: *** depend on shared libraries, but programs linked with such libtool ! 6271: *** libraries will work regardless of this problem. Nevertheless, you ! 6272: *** may want to report the problem to your system manager and/or to ! 6273: *** [email protected] ! 6274: ! 6275: EOF ! 6276: fi ;; ! 6277: esac ! 6278: fi ! 6279: break ! 6280: fi ! 6281: done ! 6282: IFS="$lt_save_ifs" ! 6283: MAGIC_CMD="$lt_save_MAGIC_CMD" ! 6284: ;; ! 6285: esac ! 6286: fi ! 6287: ! 6288: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ! 6289: if test -n "$MAGIC_CMD"; then ! 6290: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ! 6291: echo "${ECHO_T}$MAGIC_CMD" >&6 ! 6292: else ! 6293: echo "$as_me:$LINENO: result: no" >&5 ! 6294: echo "${ECHO_T}no" >&6 ! 6295: fi ! 6296: ! 6297: else ! 6298: MAGIC_CMD=: ! 6299: fi ! 6300: fi ! 6301: ! 6302: fi ! 6303: ;; ! 6304: esac ! 6305: ! 6306: enable_dlopen=no ! 6307: enable_win32_dll=yes ! 6308: ! 6309: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. ! 6310: if test "${enable_libtool_lock+set}" = set; then ! 6311: enableval="$enable_libtool_lock" ! 6312: ! 6313: fi; ! 6314: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes ! 6315: ! 6316: ! 6317: # Check whether --with-pic or --without-pic was given. ! 6318: if test "${with_pic+set}" = set; then ! 6319: withval="$with_pic" ! 6320: pic_mode="$withval" ! 6321: else ! 6322: pic_mode=default ! 6323: fi; ! 6324: test -z "$pic_mode" && pic_mode=default ! 6325: ! 6326: # Use C for the default configuration in the libtool script ! 6327: tagname= ! 6328: lt_save_CC="$CC" ! 6329: ac_ext=c ! 6330: ac_cpp='$CPP $CPPFLAGS' ! 6331: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 6332: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 6333: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 6334: ! 6335: ! 6336: # Source file extension for C test sources. ! 6337: ac_ext=c ! 6338: ! 6339: # Object file extension for compiled C test sources. ! 6340: objext=o ! 6341: objext=$objext ! 6342: ! 6343: # Code to be used in simple compile tests ! 6344: lt_simple_compile_test_code="int some_variable = 0;\n" ! 6345: ! 6346: # Code to be used in simple link tests ! 6347: lt_simple_link_test_code='int main(){return(0);}\n' ! 6348: ! 6349: ! 6350: # If no C compiler was specified, use CC. ! 6351: LTCC=${LTCC-"$CC"} ! 6352: ! 6353: # Allow CC to be a program name with arguments. ! 6354: compiler=$CC ! 6355: ! 6356: ! 6357: # ! 6358: # Check for any special shared library compilation flags. ! 6359: # ! 6360: lt_prog_cc_shlib= ! 6361: if test "$GCC" = no; then ! 6362: case $host_os in ! 6363: sco3.2v5*) ! 6364: lt_prog_cc_shlib='-belf' ! 6365: ;; ! 6366: esac ! 6367: fi ! 6368: if test -n "$lt_prog_cc_shlib"; then ! 6369: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 ! 6370: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} ! 6371: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : ! 6372: else ! 6373: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 ! 6374: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} ! 6375: lt_cv_prog_cc_can_build_shared=no ! 6376: fi ! 6377: fi ! 6378: ! 6379: ! 6380: # ! 6381: # Check to make sure the static flag actually works. ! 6382: # ! 6383: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 ! 6384: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 ! 6385: if test "${lt_prog_compiler_static_works+set}" = set; then ! 6386: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6387: else ! 6388: lt_prog_compiler_static_works=no ! 6389: save_LDFLAGS="$LDFLAGS" ! 6390: LDFLAGS="$LDFLAGS $lt_prog_compiler_static" ! 6391: printf "$lt_simple_link_test_code" > conftest.$ac_ext ! 6392: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ! 6393: # The compiler can only warn and ignore the option if not recognized ! 6394: # So say no if there are warnings ! 6395: if test -s conftest.err; then ! 6396: # Append any errors to the config.log. ! 6397: cat conftest.err 1>&5 ! 6398: else ! 6399: lt_prog_compiler_static_works=yes ! 6400: fi ! 6401: fi ! 6402: $rm conftest* ! 6403: LDFLAGS="$save_LDFLAGS" ! 6404: ! 6405: fi ! 6406: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 ! 6407: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 ! 6408: ! 6409: if test x"$lt_prog_compiler_static_works" = xyes; then ! 6410: : ! 6411: else ! 6412: lt_prog_compiler_static= ! 6413: fi ! 6414: ! 6415: ! 6416: ! 6417: ! 6418: lt_prog_compiler_no_builtin_flag= ! 6419: ! 6420: if test "$GCC" = yes; then ! 6421: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ! 6422: ! 6423: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 ! 6424: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 ! 6425: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then ! 6426: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6427: else ! 6428: lt_cv_prog_compiler_rtti_exceptions=no ! 6429: ac_outfile=conftest.$ac_objext ! 6430: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 6431: lt_compiler_flag="-fno-rtti -fno-exceptions" ! 6432: # Insert the option either (1) after the last *FLAGS variable, or ! 6433: # (2) before a word containing "conftest.", or (3) at the end. ! 6434: # Note that $ac_compile itself does not contain backslashes and begins ! 6435: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 6436: # The option is referenced via a variable to avoid confusing sed. ! 6437: lt_compile=`echo "$ac_compile" | $SED \ ! 6438: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 6439: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 6440: -e 's:$: $lt_compiler_flag:'` ! 6441: (eval echo "\"\$as_me:6441: $lt_compile\"" >&5) ! 6442: (eval "$lt_compile" 2>conftest.err) ! 6443: ac_status=$? ! 6444: cat conftest.err >&5 ! 6445: echo "$as_me:6445: \$? = $ac_status" >&5 ! 6446: if (exit $ac_status) && test -s "$ac_outfile"; then ! 6447: # The compiler can only warn and ignore the option if not recognized ! 6448: # So say no if there are warnings ! 6449: if test ! -s conftest.err; then ! 6450: lt_cv_prog_compiler_rtti_exceptions=yes ! 6451: fi ! 6452: fi ! 6453: $rm conftest* ! 6454: ! 6455: fi ! 6456: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 ! 6457: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 ! 6458: ! 6459: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then ! 6460: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" ! 6461: else ! 6462: : ! 6463: fi ! 6464: ! 6465: fi ! 6466: ! 6467: lt_prog_compiler_wl= ! 6468: lt_prog_compiler_pic= ! 6469: lt_prog_compiler_static= ! 6470: ! 6471: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 6472: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 6473: ! 6474: if test "$GCC" = yes; then ! 6475: lt_prog_compiler_wl='-Wl,' ! 6476: lt_prog_compiler_static='-static' ! 6477: ! 6478: case $host_os in ! 6479: aix*) ! 6480: # All AIX code is PIC. ! 6481: if test "$host_cpu" = ia64; then ! 6482: # AIX 5 now supports IA64 processor ! 6483: lt_prog_compiler_static='-Bstatic' ! 6484: fi ! 6485: ;; ! 6486: ! 6487: amigaos*) ! 6488: # FIXME: we need at least 68020 code to build shared libraries, but ! 6489: # adding the `-m68020' flag to GCC prevents building anything better, ! 6490: # like `-m68040'. ! 6491: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ! 6492: ;; ! 6493: ! 6494: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 6495: # PIC is the default for these OSes. ! 6496: ;; ! 6497: ! 6498: mingw* | pw32* | os2*) ! 6499: # This hack is so that the source file can tell whether it is being ! 6500: # built for inclusion in a dll (and should export symbols for example). ! 6501: lt_prog_compiler_pic='-DDLL_EXPORT' ! 6502: ;; ! 6503: ! 6504: darwin* | rhapsody*) ! 6505: # PIC is the default on this platform ! 6506: # Common symbols not allowed in MH_DYLIB files ! 6507: lt_prog_compiler_pic='-fno-common' ! 6508: ;; ! 6509: ! 6510: msdosdjgpp*) ! 6511: # Just because we use GCC doesn't mean we suddenly get shared libraries ! 6512: # on systems that don't support them. ! 6513: lt_prog_compiler_can_build_shared=no ! 6514: enable_shared=no ! 6515: ;; ! 6516: ! 6517: sysv4*MP*) ! 6518: if test -d /usr/nec; then ! 6519: lt_prog_compiler_pic=-Kconform_pic ! 6520: fi ! 6521: ;; ! 6522: ! 6523: hpux*) ! 6524: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 6525: # not for PA HP-UX. ! 6526: case "$host_cpu" in ! 6527: hppa*64*|ia64*) ! 6528: # +Z the default ! 6529: ;; ! 6530: *) ! 6531: lt_prog_compiler_pic='-fPIC' ! 6532: ;; ! 6533: esac ! 6534: ;; ! 6535: ! 6536: *) ! 6537: lt_prog_compiler_pic='-fPIC' ! 6538: ;; ! 6539: esac ! 6540: else ! 6541: # PORTME Check for flag to pass linker flags through the system compiler. ! 6542: case $host_os in ! 6543: aix*) ! 6544: lt_prog_compiler_wl='-Wl,' ! 6545: if test "$host_cpu" = ia64; then ! 6546: # AIX 5 now supports IA64 processor ! 6547: lt_prog_compiler_static='-Bstatic' ! 6548: else ! 6549: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' ! 6550: fi ! 6551: ;; ! 6552: ! 6553: mingw* | pw32* | os2*) ! 6554: # This hack is so that the source file can tell whether it is being ! 6555: # built for inclusion in a dll (and should export symbols for example). ! 6556: lt_prog_compiler_pic='-DDLL_EXPORT' ! 6557: ;; ! 6558: ! 6559: hpux9* | hpux10* | hpux11*) ! 6560: lt_prog_compiler_wl='-Wl,' ! 6561: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 6562: # not for PA HP-UX. ! 6563: case "$host_cpu" in ! 6564: hppa*64*|ia64*) ! 6565: # +Z the default ! 6566: ;; ! 6567: *) ! 6568: lt_prog_compiler_pic='+Z' ! 6569: ;; ! 6570: esac ! 6571: # Is there a better lt_prog_compiler_static that works with the bundled CC? ! 6572: lt_prog_compiler_static='${wl}-a ${wl}archive' ! 6573: ;; ! 6574: ! 6575: irix5* | irix6* | nonstopux*) ! 6576: lt_prog_compiler_wl='-Wl,' ! 6577: # PIC (with -KPIC) is the default. ! 6578: lt_prog_compiler_static='-non_shared' ! 6579: ;; ! 6580: ! 6581: newsos6) ! 6582: lt_prog_compiler_pic='-KPIC' ! 6583: lt_prog_compiler_static='-Bstatic' ! 6584: ;; ! 6585: ! 6586: linux*) ! 6587: case $CC in ! 6588: icc|ecc) ! 6589: lt_prog_compiler_wl='-Wl,' ! 6590: lt_prog_compiler_pic='-KPIC' ! 6591: lt_prog_compiler_static='-static' ! 6592: ;; ! 6593: ccc) ! 6594: lt_prog_compiler_wl='-Wl,' ! 6595: # All Alpha code is PIC. ! 6596: lt_prog_compiler_static='-non_shared' ! 6597: ;; ! 6598: esac ! 6599: ;; ! 6600: ! 6601: osf3* | osf4* | osf5*) ! 6602: lt_prog_compiler_wl='-Wl,' ! 6603: # All OSF/1 code is PIC. ! 6604: lt_prog_compiler_static='-non_shared' ! 6605: ;; ! 6606: ! 6607: sco3.2v5*) ! 6608: lt_prog_compiler_pic='-Kpic' ! 6609: lt_prog_compiler_static='-dn' ! 6610: ;; ! 6611: ! 6612: solaris*) ! 6613: lt_prog_compiler_wl='-Wl,' ! 6614: lt_prog_compiler_pic='-KPIC' ! 6615: lt_prog_compiler_static='-Bstatic' ! 6616: ;; ! 6617: ! 6618: sunos4*) ! 6619: lt_prog_compiler_wl='-Qoption ld ' ! 6620: lt_prog_compiler_pic='-PIC' ! 6621: lt_prog_compiler_static='-Bstatic' ! 6622: ;; ! 6623: ! 6624: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 6625: lt_prog_compiler_wl='-Wl,' ! 6626: lt_prog_compiler_pic='-KPIC' ! 6627: lt_prog_compiler_static='-Bstatic' ! 6628: ;; ! 6629: ! 6630: sysv4*MP*) ! 6631: if test -d /usr/nec ;then ! 6632: lt_prog_compiler_pic='-Kconform_pic' ! 6633: lt_prog_compiler_static='-Bstatic' ! 6634: fi ! 6635: ;; ! 6636: ! 6637: uts4*) ! 6638: lt_prog_compiler_pic='-pic' ! 6639: lt_prog_compiler_static='-Bstatic' ! 6640: ;; ! 6641: ! 6642: *) ! 6643: lt_prog_compiler_can_build_shared=no ! 6644: ;; ! 6645: esac ! 6646: fi ! 6647: ! 6648: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 ! 6649: echo "${ECHO_T}$lt_prog_compiler_pic" >&6 ! 6650: ! 6651: # ! 6652: # Check to make sure the PIC flag actually works. ! 6653: # ! 6654: if test -n "$lt_prog_compiler_pic"; then ! 6655: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 ! 6656: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 ! 6657: if test "${lt_prog_compiler_pic_works+set}" = set; then ! 6658: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6659: else ! 6660: lt_prog_compiler_pic_works=no ! 6661: ac_outfile=conftest.$ac_objext ! 6662: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 6663: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ! 6664: # Insert the option either (1) after the last *FLAGS variable, or ! 6665: # (2) before a word containing "conftest.", or (3) at the end. ! 6666: # Note that $ac_compile itself does not contain backslashes and begins ! 6667: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 6668: # The option is referenced via a variable to avoid confusing sed. ! 6669: lt_compile=`echo "$ac_compile" | $SED \ ! 6670: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 6671: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 6672: -e 's:$: $lt_compiler_flag:'` ! 6673: (eval echo "\"\$as_me:6673: $lt_compile\"" >&5) ! 6674: (eval "$lt_compile" 2>conftest.err) ! 6675: ac_status=$? ! 6676: cat conftest.err >&5 ! 6677: echo "$as_me:6677: \$? = $ac_status" >&5 ! 6678: if (exit $ac_status) && test -s "$ac_outfile"; then ! 6679: # The compiler can only warn and ignore the option if not recognized ! 6680: # So say no if there are warnings ! 6681: if test ! -s conftest.err; then ! 6682: lt_prog_compiler_pic_works=yes ! 6683: fi ! 6684: fi ! 6685: $rm conftest* ! 6686: ! 6687: fi ! 6688: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 ! 6689: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 ! 6690: ! 6691: if test x"$lt_prog_compiler_pic_works" = xyes; then ! 6692: case $lt_prog_compiler_pic in ! 6693: "" | " "*) ;; ! 6694: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; ! 6695: esac ! 6696: else ! 6697: lt_prog_compiler_pic= ! 6698: lt_prog_compiler_can_build_shared=no ! 6699: fi ! 6700: ! 6701: fi ! 6702: case "$host_os" in ! 6703: # For platforms which do not support PIC, -DPIC is meaningless: ! 6704: *djgpp*) ! 6705: lt_prog_compiler_pic= ! 6706: ;; ! 6707: *) ! 6708: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ! 6709: ;; ! 6710: esac ! 6711: ! 6712: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 6713: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 6714: if test "${lt_cv_prog_compiler_c_o+set}" = set; then ! 6715: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 6716: else ! 6717: lt_cv_prog_compiler_c_o=no ! 6718: $rm -r conftest 2>/dev/null ! 6719: mkdir conftest ! 6720: cd conftest ! 6721: mkdir out ! 6722: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 6723: ! 6724: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 6725: # that will create temporary files in the current directory regardless of ! 6726: # the output directory. Thus, making CWD read-only will cause this test ! 6727: # to fail, enabling locking or at least warning the user not to do parallel ! 6728: # builds. ! 6729: chmod -w . ! 6730: ! 6731: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 6732: # Insert the option either (1) after the last *FLAGS variable, or ! 6733: # (2) before a word containing "conftest.", or (3) at the end. ! 6734: # Note that $ac_compile itself does not contain backslashes and begins ! 6735: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 6736: lt_compile=`echo "$ac_compile" | $SED \ ! 6737: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 6738: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 6739: -e 's:$: $lt_compiler_flag:'` ! 6740: (eval echo "\"\$as_me:6740: $lt_compile\"" >&5) ! 6741: (eval "$lt_compile" 2>out/conftest.err) ! 6742: ac_status=$? ! 6743: cat out/conftest.err >&5 ! 6744: echo "$as_me:6744: \$? = $ac_status" >&5 ! 6745: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 6746: then ! 6747: # The compiler can only warn and ignore the option if not recognized ! 6748: # So say no if there are warnings ! 6749: if test ! -s out/conftest.err; then ! 6750: lt_cv_prog_compiler_c_o=yes ! 6751: fi ! 6752: fi ! 6753: chmod u+w . ! 6754: $rm conftest* out/* ! 6755: rmdir out ! 6756: cd .. ! 6757: rmdir conftest ! 6758: $rm conftest* ! 6759: ! 6760: fi ! 6761: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 ! 6762: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 ! 6763: ! 6764: ! 6765: hard_links="nottested" ! 6766: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then ! 6767: # do not overwrite the value of need_locks provided by the user ! 6768: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 6769: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 6770: hard_links=yes ! 6771: $rm conftest* ! 6772: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 6773: touch conftest.a ! 6774: ln conftest.a conftest.b 2>&5 || hard_links=no ! 6775: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 6776: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 6777: echo "${ECHO_T}$hard_links" >&6 ! 6778: if test "$hard_links" = no; then ! 6779: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 6780: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 6781: need_locks=warn ! 6782: fi ! 6783: else ! 6784: need_locks=no ! 6785: fi ! 6786: ! 6787: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 6788: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 6789: ! 6790: runpath_var= ! 6791: allow_undefined_flag= ! 6792: enable_shared_with_static_runtimes=no ! 6793: archive_cmds= ! 6794: archive_expsym_cmds= ! 6795: old_archive_From_new_cmds= ! 6796: old_archive_from_expsyms_cmds= ! 6797: export_dynamic_flag_spec= ! 6798: whole_archive_flag_spec= ! 6799: thread_safe_flag_spec= ! 6800: hardcode_libdir_flag_spec= ! 6801: hardcode_libdir_flag_spec_ld= ! 6802: hardcode_libdir_separator= ! 6803: hardcode_direct=no ! 6804: hardcode_minus_L=no ! 6805: hardcode_shlibpath_var=unsupported ! 6806: link_all_deplibs=unknown ! 6807: hardcode_automatic=no ! 6808: module_cmds= ! 6809: module_expsym_cmds= ! 6810: always_export_symbols=no ! 6811: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 6812: # include_expsyms should be a list of space-separated symbols to be *always* ! 6813: # included in the symbol list ! 6814: include_expsyms= ! 6815: # exclude_expsyms can be an extended regexp of symbols to exclude ! 6816: # it will be wrapped by ` (' and `)$', so one must not match beginning or ! 6817: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ! 6818: # as well as any symbol that contains `d'. ! 6819: exclude_expsyms="_GLOBAL_OFFSET_TABLE_" ! 6820: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ! 6821: # platforms (ab)use it in PIC code, but their linkers get confused if ! 6822: # the symbol is explicitly referenced. Since portable code cannot ! 6823: # rely on this symbol name, it's probably fine to never include it in ! 6824: # preloaded symbol tables. ! 6825: extract_expsyms_cmds= ! 6826: ! 6827: case $host_os in ! 6828: cygwin* | mingw* | pw32*) ! 6829: # FIXME: the MSVC++ port hasn't been tested in a loooong time ! 6830: # When not using gcc, we currently assume that we are using ! 6831: # Microsoft Visual C++. ! 6832: if test "$GCC" != yes; then ! 6833: with_gnu_ld=no ! 6834: fi ! 6835: ;; ! 6836: openbsd*) ! 6837: with_gnu_ld=no ! 6838: ;; ! 6839: esac ! 6840: ! 6841: ld_shlibs=yes ! 6842: if test "$with_gnu_ld" = yes; then ! 6843: # If archive_cmds runs LD, not CC, wlarc should be empty ! 6844: wlarc='${wl}' ! 6845: ! 6846: # See if GNU ld supports shared libraries. ! 6847: case $host_os in ! 6848: aix3* | aix4* | aix5*) ! 6849: # On AIX/PPC, the GNU linker is very broken ! 6850: if test "$host_cpu" != ia64; then ! 6851: ld_shlibs=no ! 6852: cat <<EOF 1>&2 ! 6853: ! 6854: *** Warning: the GNU linker, at least up to release 2.9.1, is reported ! 6855: *** to be unable to reliably create shared libraries on AIX. ! 6856: *** Therefore, libtool is disabling shared libraries support. If you ! 6857: *** really care for shared libraries, you may want to modify your PATH ! 6858: *** so that a non-GNU linker is found, and then restart. ! 6859: ! 6860: EOF ! 6861: fi ! 6862: ;; ! 6863: ! 6864: amigaos*) ! 6865: 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)' ! 6866: hardcode_libdir_flag_spec='-L$libdir' ! 6867: hardcode_minus_L=yes ! 6868: ! 6869: # Samuel A. Falvo II <[email protected]> reports ! 6870: # that the semantics of dynamic libraries on AmigaOS, at least up ! 6871: # to version 4, is to share data among multiple programs linked ! 6872: # with the same dynamic library. Since this doesn't match the ! 6873: # behavior of shared libraries on other platforms, we can't use ! 6874: # them. ! 6875: ld_shlibs=no ! 6876: ;; ! 6877: ! 6878: beos*) ! 6879: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 6880: allow_undefined_flag=unsupported ! 6881: # Joseph Beckenbach <[email protected]> says some releases of gcc ! 6882: # support --undefined. This deserves some investigation. FIXME ! 6883: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 6884: else ! 6885: ld_shlibs=no ! 6886: fi ! 6887: ;; ! 6888: ! 6889: cygwin* | mingw* | pw32*) ! 6890: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, ! 6891: # as there is no search path for DLLs. ! 6892: hardcode_libdir_flag_spec='-L$libdir' ! 6893: allow_undefined_flag=unsupported ! 6894: always_export_symbols=no ! 6895: enable_shared_with_static_runtimes=yes ! 6896: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 6897: ! 6898: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 6899: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 6900: # If the export-symbols file already is a .def file (1st line ! 6901: # is EXPORTS), use it as is; otherwise, prepend... ! 6902: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 6903: cp $export_symbols $output_objdir/$soname.def; ! 6904: else ! 6905: echo EXPORTS > $output_objdir/$soname.def; ! 6906: cat $export_symbols >> $output_objdir/$soname.def; ! 6907: fi~ ! 6908: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 6909: else ! 6910: ld_shlibs=no ! 6911: fi ! 6912: ;; ! 6913: ! 6914: netbsd*) ! 6915: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 6916: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ! 6917: wlarc= ! 6918: else ! 6919: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 6920: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 6921: fi ! 6922: ;; ! 6923: ! 6924: solaris* | sysv5*) ! 6925: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ! 6926: ld_shlibs=no ! 6927: cat <<EOF 1>&2 ! 6928: ! 6929: *** Warning: The releases 2.8.* of the GNU linker cannot reliably ! 6930: *** create shared libraries on Solaris systems. Therefore, libtool ! 6931: *** is disabling shared libraries support. We urge you to upgrade GNU ! 6932: *** binutils to release 2.9.1 or newer. Another option is to modify ! 6933: *** your PATH or compiler configuration so that the native linker is ! 6934: *** used, and then restart. ! 6935: ! 6936: EOF ! 6937: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 6938: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 6939: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 6940: else ! 6941: ld_shlibs=no ! 6942: fi ! 6943: ;; ! 6944: ! 6945: sunos4*) ! 6946: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 6947: wlarc= ! 6948: hardcode_direct=yes ! 6949: hardcode_shlibpath_var=no ! 6950: ;; ! 6951: ! 6952: *) ! 6953: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 6954: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 6955: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 6956: else ! 6957: ld_shlibs=no ! 6958: fi ! 6959: ;; ! 6960: esac ! 6961: ! 6962: if test "$ld_shlibs" = yes; then ! 6963: runpath_var=LD_RUN_PATH ! 6964: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' ! 6965: export_dynamic_flag_spec='${wl}--export-dynamic' ! 6966: # ancient GNU ld didn't support --whole-archive et. al. ! 6967: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then ! 6968: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 6969: else ! 6970: whole_archive_flag_spec= ! 6971: fi ! 6972: fi ! 6973: else ! 6974: # PORTME fill in a description of your system's linker (not GNU ld) ! 6975: case $host_os in ! 6976: aix3*) ! 6977: allow_undefined_flag=unsupported ! 6978: always_export_symbols=yes ! 6979: 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' ! 6980: # Note: this linker hardcodes the directories in LIBPATH if there ! 6981: # are no directories specified by -L. ! 6982: hardcode_minus_L=yes ! 6983: if test "$GCC" = yes && test -z "$link_static_flag"; then ! 6984: # Neither direct hardcoding nor static linking is supported with a ! 6985: # broken collect2. ! 6986: hardcode_direct=unsupported ! 6987: fi ! 6988: ;; ! 6989: ! 6990: aix4* | aix5*) ! 6991: if test "$host_cpu" = ia64; then ! 6992: # On IA64, the linker does run time linking by default, so we don't ! 6993: # have to do anything special. ! 6994: aix_use_runtimelinking=no ! 6995: exp_sym_flag='-Bexport' ! 6996: no_entry_flag="" ! 6997: else ! 6998: # If we're using GNU nm, then we don't want the "-C" option. ! 6999: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 7000: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 7001: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ! 7002: else ! 7003: 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' ! 7004: fi ! 7005: aix_use_runtimelinking=no ! 7006: ! 7007: # Test if we are trying to use run time linking or normal ! 7008: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 7009: # need to do runtime linking. ! 7010: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 7011: for ld_flag in $LDFLAGS; do ! 7012: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ! 7013: aix_use_runtimelinking=yes ! 7014: break ! 7015: fi ! 7016: done ! 7017: esac ! 7018: ! 7019: exp_sym_flag='-bexport' ! 7020: no_entry_flag='-bnoentry' ! 7021: fi ! 7022: ! 7023: # When large executables or shared objects are built, AIX ld can ! 7024: # have problems creating the table of contents. If linking a library ! 7025: # or program results in "error TOC overflow" add -mminimal-toc to ! 7026: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 7027: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 7028: ! 7029: archive_cmds='' ! 7030: hardcode_direct=yes ! 7031: hardcode_libdir_separator=':' ! 7032: link_all_deplibs=yes ! 7033: ! 7034: if test "$GCC" = yes; then ! 7035: case $host_os in aix4.012|aix4.012.*) ! 7036: # We only want to do this on AIX 4.2 and lower, the check ! 7037: # below for broken collect2 doesn't work under 4.3+ ! 7038: collect2name=`${CC} -print-prog-name=collect2` ! 7039: if test -f "$collect2name" && \ ! 7040: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 7041: then ! 7042: # We have reworked collect2 ! 7043: hardcode_direct=yes ! 7044: else ! 7045: # We have old collect2 ! 7046: hardcode_direct=unsupported ! 7047: # It fails to find uninstalled libraries when the uninstalled ! 7048: # path is not listed in the libpath. Setting hardcode_minus_L ! 7049: # to unsupported forces relinking ! 7050: hardcode_minus_L=yes ! 7051: hardcode_libdir_flag_spec='-L$libdir' ! 7052: hardcode_libdir_separator= ! 7053: fi ! 7054: esac ! 7055: shared_flag='-shared' ! 7056: else ! 7057: # not using gcc ! 7058: if test "$host_cpu" = ia64; then ! 7059: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 7060: # chokes on -Wl,-G. The following line is correct: ! 7061: shared_flag='-G' ! 7062: else ! 7063: if test "$aix_use_runtimelinking" = yes; then ! 7064: shared_flag='${wl}-G' ! 7065: else ! 7066: shared_flag='${wl}-bM:SRE' ! 7067: fi ! 7068: fi ! 7069: fi ! 7070: ! 7071: # It seems that -bexpall does not export symbols beginning with ! 7072: # underscore (_), so it is better to generate a list of symbols to export. ! 7073: always_export_symbols=yes ! 7074: if test "$aix_use_runtimelinking" = yes; then ! 7075: # Warning - without using the other runtime loading flags (-brtl), ! 7076: # -berok will link without error, but may produce a broken library. ! 7077: allow_undefined_flag='-berok' ! 7078: # Determine the default libpath from the value encoded in an empty executable. ! 7079: cat >conftest.$ac_ext <<_ACEOF ! 7080: #line $LINENO "configure" ! 7081: /* confdefs.h. */ ! 7082: _ACEOF ! 7083: cat confdefs.h >>conftest.$ac_ext ! 7084: cat >>conftest.$ac_ext <<_ACEOF ! 7085: /* end confdefs.h. */ ! 7086: ! 7087: int ! 7088: main () ! 7089: { ! 7090: ! 7091: ; ! 7092: return 0; ! 7093: } ! 7094: _ACEOF ! 7095: rm -f conftest.$ac_objext conftest$ac_exeext ! 7096: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 7097: (eval $ac_link) 2>&5 ! 7098: ac_status=$? ! 7099: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7100: (exit $ac_status); } && ! 7101: { ac_try='test -s conftest$ac_exeext' ! 7102: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7103: (eval $ac_try) 2>&5 ! 7104: ac_status=$? ! 7105: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7106: (exit $ac_status); }; }; then ! 7107: ! 7108: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 7109: }'` ! 7110: # Check for a 64-bit object if we didn't find anything. ! 7111: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 7112: }'`; fi ! 7113: else ! 7114: echo "$as_me: failed program was:" >&5 ! 7115: sed 's/^/| /' conftest.$ac_ext >&5 ! 7116: ! 7117: fi ! 7118: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 7119: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 7120: ! 7121: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ! 7122: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 7123: else ! 7124: if test "$host_cpu" = ia64; then ! 7125: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' ! 7126: allow_undefined_flag="-z nodefs" ! 7127: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 7128: else ! 7129: # Determine the default libpath from the value encoded in an empty executable. ! 7130: cat >conftest.$ac_ext <<_ACEOF ! 7131: #line $LINENO "configure" ! 7132: /* confdefs.h. */ ! 7133: _ACEOF ! 7134: cat confdefs.h >>conftest.$ac_ext ! 7135: cat >>conftest.$ac_ext <<_ACEOF ! 7136: /* end confdefs.h. */ ! 7137: ! 7138: int ! 7139: main () ! 7140: { ! 7141: ! 7142: ; ! 7143: return 0; ! 7144: } ! 7145: _ACEOF ! 7146: rm -f conftest.$ac_objext conftest$ac_exeext ! 7147: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 7148: (eval $ac_link) 2>&5 ! 7149: ac_status=$? ! 7150: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7151: (exit $ac_status); } && ! 7152: { ac_try='test -s conftest$ac_exeext' ! 7153: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 7154: (eval $ac_try) 2>&5 ! 7155: ac_status=$? ! 7156: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7157: (exit $ac_status); }; }; then ! 7158: ! 7159: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 7160: }'` ! 7161: # Check for a 64-bit object if we didn't find anything. ! 7162: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 7163: }'`; fi ! 7164: else ! 7165: echo "$as_me: failed program was:" >&5 ! 7166: sed 's/^/| /' conftest.$ac_ext >&5 ! 7167: ! 7168: fi ! 7169: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 7170: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 7171: ! 7172: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ! 7173: # Warning - without using the other run time loading flags, ! 7174: # -berok will link without error, but may produce a broken library. ! 7175: no_undefined_flag=' ${wl}-bernotok' ! 7176: allow_undefined_flag=' ${wl}-berok' ! 7177: # -bexpall does not export symbols beginning with underscore (_) ! 7178: always_export_symbols=yes ! 7179: # Exported symbols can be pulled into shared objects from archives ! 7180: whole_archive_flag_spec=' ' ! 7181: archive_cmds_need_lc=yes ! 7182: # This is similar to how AIX traditionally builds it's shared libraries. ! 7183: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 7184: fi ! 7185: fi ! 7186: ;; ! 7187: ! 7188: amigaos*) ! 7189: 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)' ! 7190: hardcode_libdir_flag_spec='-L$libdir' ! 7191: hardcode_minus_L=yes ! 7192: # see comment about different semantics on the GNU ld section ! 7193: ld_shlibs=no ! 7194: ;; ! 7195: ! 7196: bsdi4*) ! 7197: export_dynamic_flag_spec=-rdynamic ! 7198: ;; ! 7199: ! 7200: cygwin* | mingw* | pw32*) ! 7201: # When not using gcc, we currently assume that we are using ! 7202: # Microsoft Visual C++. ! 7203: # hardcode_libdir_flag_spec is actually meaningless, as there is ! 7204: # no search path for DLLs. ! 7205: hardcode_libdir_flag_spec=' ' ! 7206: allow_undefined_flag=unsupported ! 7207: # Tell ltmain to make .lib files, not .a files. ! 7208: libext=lib ! 7209: # Tell ltmain to make .dll files, not .so files. ! 7210: shrext=".dll" ! 7211: # FIXME: Setting linknames here is a bad hack. ! 7212: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' ! 7213: # The linker will automatically build a .lib file if we build a DLL. ! 7214: old_archive_From_new_cmds='true' ! 7215: # FIXME: Should let the user specify the lib program. ! 7216: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' ! 7217: fix_srcfile_path='`cygpath -w "$srcfile"`' ! 7218: enable_shared_with_static_runtimes=yes ! 7219: ;; ! 7220: ! 7221: darwin* | rhapsody*) ! 7222: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 7223: archive_cmds_need_lc=no ! 7224: case "$host_os" in ! 7225: rhapsody* | darwin1.[012]) ! 7226: allow_undefined_flag='-undefined suppress' ! 7227: ;; ! 7228: *) # Darwin 1.3 on ! 7229: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' ! 7230: ;; ! 7231: esac ! 7232: # FIXME: Relying on posixy $() will cause problems for ! 7233: # cross-compilation, but unfortunately the echo tests do not ! 7234: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 7235: # `"' quotes if we put them in here... so don't! ! 7236: lt_int_apple_cc_single_mod=no ! 7237: output_verbose_link_cmd='echo' ! 7238: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 7239: lt_int_apple_cc_single_mod=yes ! 7240: fi ! 7241: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 7242: archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 7243: else ! 7244: archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 7245: fi ! 7246: module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 7247: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 7248: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 7249: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 7250: else ! 7251: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 7252: fi ! 7253: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 7254: hardcode_direct=no ! 7255: hardcode_automatic=yes ! 7256: hardcode_shlibpath_var=unsupported ! 7257: whole_archive_flag_spec='-all_load $convenience' ! 7258: link_all_deplibs=yes ! 7259: fi ! 7260: ;; ! 7261: ! 7262: dgux*) ! 7263: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7264: hardcode_libdir_flag_spec='-L$libdir' ! 7265: hardcode_shlibpath_var=no ! 7266: ;; ! 7267: ! 7268: freebsd1*) ! 7269: ld_shlibs=no ! 7270: ;; ! 7271: ! 7272: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ! 7273: # support. Future versions do this automatically, but an explicit c++rt0.o ! 7274: # does not break anything, and helps significantly (at the cost of a little ! 7275: # extra space). ! 7276: freebsd2.2*) ! 7277: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ! 7278: hardcode_libdir_flag_spec='-R$libdir' ! 7279: hardcode_direct=yes ! 7280: hardcode_shlibpath_var=no ! 7281: ;; ! 7282: ! 7283: # Unfortunately, older versions of FreeBSD 2 do not have this feature. ! 7284: freebsd2*) ! 7285: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 7286: hardcode_direct=yes ! 7287: hardcode_minus_L=yes ! 7288: hardcode_shlibpath_var=no ! 7289: ;; ! 7290: ! 7291: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ! 7292: freebsd*) ! 7293: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ! 7294: hardcode_libdir_flag_spec='-R$libdir' ! 7295: hardcode_direct=yes ! 7296: hardcode_shlibpath_var=no ! 7297: ;; ! 7298: ! 7299: hpux9*) ! 7300: if test "$GCC" = yes; then ! 7301: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ! 7302: else ! 7303: 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' ! 7304: fi ! 7305: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ! 7306: hardcode_libdir_separator=: ! 7307: hardcode_direct=yes ! 7308: ! 7309: # hardcode_minus_L: Not really in the search PATH, ! 7310: # but as the default location of the library. ! 7311: hardcode_minus_L=yes ! 7312: export_dynamic_flag_spec='${wl}-E' ! 7313: ;; ! 7314: ! 7315: hpux10* | hpux11*) ! 7316: if test "$GCC" = yes -a "$with_gnu_ld" = no; then ! 7317: case "$host_cpu" in ! 7318: hppa*64*|ia64*) ! 7319: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 7320: ;; ! 7321: *) ! 7322: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ! 7323: ;; ! 7324: esac ! 7325: else ! 7326: case "$host_cpu" in ! 7327: hppa*64*|ia64*) ! 7328: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7329: ;; ! 7330: *) ! 7331: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ! 7332: ;; ! 7333: esac ! 7334: fi ! 7335: if test "$with_gnu_ld" = no; then ! 7336: case "$host_cpu" in ! 7337: hppa*64*) ! 7338: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ! 7339: hardcode_libdir_flag_spec_ld='+b $libdir' ! 7340: hardcode_libdir_separator=: ! 7341: hardcode_direct=no ! 7342: hardcode_shlibpath_var=no ! 7343: ;; ! 7344: ia64*) ! 7345: hardcode_libdir_flag_spec='-L$libdir' ! 7346: hardcode_direct=no ! 7347: hardcode_shlibpath_var=no ! 7348: ! 7349: # hardcode_minus_L: Not really in the search PATH, ! 7350: # but as the default location of the library. ! 7351: hardcode_minus_L=yes ! 7352: ;; ! 7353: *) ! 7354: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ! 7355: hardcode_libdir_separator=: ! 7356: hardcode_direct=yes ! 7357: export_dynamic_flag_spec='${wl}-E' ! 7358: ! 7359: # hardcode_minus_L: Not really in the search PATH, ! 7360: # but as the default location of the library. ! 7361: hardcode_minus_L=yes ! 7362: ;; ! 7363: esac ! 7364: fi ! 7365: ;; ! 7366: ! 7367: irix5* | irix6* | nonstopux*) ! 7368: if test "$GCC" = yes; then ! 7369: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 7370: else ! 7371: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 7372: hardcode_libdir_flag_spec_ld='-rpath $libdir' ! 7373: fi ! 7374: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 7375: hardcode_libdir_separator=: ! 7376: link_all_deplibs=yes ! 7377: ;; ! 7378: ! 7379: netbsd*) ! 7380: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 7381: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ! 7382: else ! 7383: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ! 7384: fi ! 7385: hardcode_libdir_flag_spec='-R$libdir' ! 7386: hardcode_direct=yes ! 7387: hardcode_shlibpath_var=no ! 7388: ;; ! 7389: ! 7390: newsos6) ! 7391: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7392: hardcode_direct=yes ! 7393: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 7394: hardcode_libdir_separator=: ! 7395: hardcode_shlibpath_var=no ! 7396: ;; ! 7397: ! 7398: openbsd*) ! 7399: hardcode_direct=yes ! 7400: hardcode_shlibpath_var=no ! 7401: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 7402: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 7403: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ! 7404: export_dynamic_flag_spec='${wl}-E' ! 7405: else ! 7406: case $host_os in ! 7407: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ! 7408: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 7409: hardcode_libdir_flag_spec='-R$libdir' ! 7410: ;; ! 7411: *) ! 7412: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 7413: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ! 7414: ;; ! 7415: esac ! 7416: fi ! 7417: ;; ! 7418: ! 7419: os2*) ! 7420: hardcode_libdir_flag_spec='-L$libdir' ! 7421: hardcode_minus_L=yes ! 7422: allow_undefined_flag=unsupported ! 7423: 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' ! 7424: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ! 7425: ;; ! 7426: ! 7427: osf3*) ! 7428: if test "$GCC" = yes; then ! 7429: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ! 7430: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 7431: else ! 7432: allow_undefined_flag=' -expect_unresolved \*' ! 7433: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 7434: fi ! 7435: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 7436: hardcode_libdir_separator=: ! 7437: ;; ! 7438: ! 7439: osf4* | osf5*) # as osf3* with the addition of -msym flag ! 7440: if test "$GCC" = yes; then ! 7441: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ! 7442: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 7443: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ! 7444: else ! 7445: allow_undefined_flag=' -expect_unresolved \*' ! 7446: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 7447: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ ! 7448: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' ! 7449: ! 7450: # Both c and cxx compiler support -rpath directly ! 7451: hardcode_libdir_flag_spec='-rpath $libdir' ! 7452: fi ! 7453: hardcode_libdir_separator=: ! 7454: ;; ! 7455: ! 7456: sco3.2v5*) ! 7457: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7458: hardcode_shlibpath_var=no ! 7459: export_dynamic_flag_spec='${wl}-Bexport' ! 7460: runpath_var=LD_RUN_PATH ! 7461: hardcode_runpath_var=yes ! 7462: ;; ! 7463: ! 7464: solaris*) ! 7465: no_undefined_flag=' -z text' ! 7466: if test "$GCC" = yes; then ! 7467: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 7468: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 7469: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' ! 7470: else ! 7471: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7472: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 7473: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 7474: fi ! 7475: hardcode_libdir_flag_spec='-R$libdir' ! 7476: hardcode_shlibpath_var=no ! 7477: case $host_os in ! 7478: solaris2.[0-5] | solaris2.[0-5].*) ;; ! 7479: *) # Supported since Solaris 2.6 (maybe 2.5.1?) ! 7480: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; ! 7481: esac ! 7482: link_all_deplibs=yes ! 7483: ;; ! 7484: ! 7485: sunos4*) ! 7486: if test "x$host_vendor" = xsequent; then ! 7487: # Use $CC to link under sequent, because it throws in some extra .o ! 7488: # files that make .init and .fini sections work. ! 7489: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ! 7490: else ! 7491: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ! 7492: fi ! 7493: hardcode_libdir_flag_spec='-L$libdir' ! 7494: hardcode_direct=yes ! 7495: hardcode_minus_L=yes ! 7496: hardcode_shlibpath_var=no ! 7497: ;; ! 7498: ! 7499: sysv4) ! 7500: case $host_vendor in ! 7501: sni) ! 7502: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7503: hardcode_direct=yes # is this really true??? ! 7504: ;; ! 7505: siemens) ! 7506: ## LD is ld it makes a PLAMLIB ! 7507: ## CC just makes a GrossModule. ! 7508: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 7509: reload_cmds='$CC -r -o $output$reload_objs' ! 7510: hardcode_direct=no ! 7511: ;; ! 7512: motorola) ! 7513: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7514: hardcode_direct=no #Motorola manual says yes, but my tests say they lie ! 7515: ;; ! 7516: esac ! 7517: runpath_var='LD_RUN_PATH' ! 7518: hardcode_shlibpath_var=no ! 7519: ;; ! 7520: ! 7521: sysv4.3*) ! 7522: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7523: hardcode_shlibpath_var=no ! 7524: export_dynamic_flag_spec='-Bexport' ! 7525: ;; ! 7526: ! 7527: sysv4*MP*) ! 7528: if test -d /usr/nec; then ! 7529: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7530: hardcode_shlibpath_var=no ! 7531: runpath_var=LD_RUN_PATH ! 7532: hardcode_runpath_var=yes ! 7533: ld_shlibs=yes ! 7534: fi ! 7535: ;; ! 7536: ! 7537: sysv4.2uw2*) ! 7538: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 7539: hardcode_direct=yes ! 7540: hardcode_minus_L=no ! 7541: hardcode_shlibpath_var=no ! 7542: hardcode_runpath_var=yes ! 7543: runpath_var=LD_RUN_PATH ! 7544: ;; ! 7545: ! 7546: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 7547: no_undefined_flag='${wl}-z ${wl}text' ! 7548: if test "$GCC" = yes; then ! 7549: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 7550: else ! 7551: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 7552: fi ! 7553: runpath_var='LD_RUN_PATH' ! 7554: hardcode_shlibpath_var=no ! 7555: ;; ! 7556: ! 7557: sysv5*) ! 7558: no_undefined_flag=' -z text' ! 7559: # $CC -shared without GNU ld will not create a library from C++ ! 7560: # object files and a static libstdc++, better avoid it by now ! 7561: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7562: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 7563: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 7564: hardcode_libdir_flag_spec= ! 7565: hardcode_shlibpath_var=no ! 7566: runpath_var='LD_RUN_PATH' ! 7567: ;; ! 7568: ! 7569: uts4*) ! 7570: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 7571: hardcode_libdir_flag_spec='-L$libdir' ! 7572: hardcode_shlibpath_var=no ! 7573: ;; ! 7574: ! 7575: *) ! 7576: ld_shlibs=no ! 7577: ;; ! 7578: esac ! 7579: fi ! 7580: ! 7581: echo "$as_me:$LINENO: result: $ld_shlibs" >&5 ! 7582: echo "${ECHO_T}$ld_shlibs" >&6 ! 7583: test "$ld_shlibs" = no && can_build_shared=no ! 7584: ! 7585: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 7586: if test "$GCC" = yes; then ! 7587: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 7588: fi ! 7589: ! 7590: # ! 7591: # Do we need to explicitly link libc? ! 7592: # ! 7593: case "x$archive_cmds_need_lc" in ! 7594: x|xyes) ! 7595: # Assume -lc should be added ! 7596: archive_cmds_need_lc=yes ! 7597: ! 7598: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 7599: case $archive_cmds in ! 7600: *'~'*) ! 7601: # FIXME: we may have to deal with multi-command sequences. ! 7602: ;; ! 7603: '$CC '*) ! 7604: # Test whether the compiler implicitly links with -lc since on some ! 7605: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 7606: # to ld, don't add -lc before -lgcc. ! 7607: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 7608: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 7609: $rm conftest* ! 7610: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 7611: ! 7612: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 7613: (eval $ac_compile) 2>&5 ! 7614: ac_status=$? ! 7615: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7616: (exit $ac_status); } 2>conftest.err; then ! 7617: soname=conftest ! 7618: lib=conftest ! 7619: libobjs=conftest.$ac_objext ! 7620: deplibs= ! 7621: wl=$lt_prog_compiler_wl ! 7622: compiler_flags=-v ! 7623: linker_flags=-v ! 7624: verstring= ! 7625: output_objdir=. ! 7626: libname=conftest ! 7627: lt_save_allow_undefined_flag=$allow_undefined_flag ! 7628: allow_undefined_flag= ! 7629: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 7630: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 7631: ac_status=$? ! 7632: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 7633: (exit $ac_status); } ! 7634: then ! 7635: archive_cmds_need_lc=no ! 7636: else ! 7637: archive_cmds_need_lc=yes ! 7638: fi ! 7639: allow_undefined_flag=$lt_save_allow_undefined_flag ! 7640: else ! 7641: cat conftest.err 1>&5 ! 7642: fi ! 7643: $rm conftest* ! 7644: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 ! 7645: echo "${ECHO_T}$archive_cmds_need_lc" >&6 ! 7646: ;; ! 7647: esac ! 7648: fi ! 7649: ;; ! 7650: esac ! 7651: ! 7652: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 7653: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 7654: hardcode_action= ! 7655: if test -n "$hardcode_libdir_flag_spec" || \ ! 7656: test -n "$runpath_var " || \ ! 7657: test "X$hardcode_automatic"="Xyes" ; then ! 7658: ! 7659: # We can hardcode non-existant directories. ! 7660: if test "$hardcode_direct" != no && ! 7661: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 7662: # have to relink, otherwise we might link with an installed library ! 7663: # when we should be linking with a yet-to-be-installed one ! 7664: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && ! 7665: test "$hardcode_minus_L" != no; then ! 7666: # Linking always hardcodes the temporary library directory. ! 7667: hardcode_action=relink ! 7668: else ! 7669: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 7670: hardcode_action=immediate ! 7671: fi ! 7672: else ! 7673: # We cannot hardcode anything, or else we can only hardcode existing ! 7674: # directories. ! 7675: hardcode_action=unsupported ! 7676: fi ! 7677: echo "$as_me:$LINENO: result: $hardcode_action" >&5 ! 7678: echo "${ECHO_T}$hardcode_action" >&6 ! 7679: ! 7680: if test "$hardcode_action" = relink; then ! 7681: # Fast installation is not supported ! 7682: enable_fast_install=no ! 7683: elif test "$shlibpath_overrides_runpath" = yes || ! 7684: test "$enable_shared" = no; then ! 7685: # Fast installation is not necessary ! 7686: enable_fast_install=needless ! 7687: fi ! 7688: ! 7689: striplib= ! 7690: old_striplib= ! 7691: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 7692: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 7693: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 7694: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 7695: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 7696: echo "$as_me:$LINENO: result: yes" >&5 ! 7697: echo "${ECHO_T}yes" >&6 ! 7698: else ! 7699: # FIXME - insert some real tests, host_os isn't really good enough ! 7700: case $host_os in ! 7701: darwin*) ! 7702: if test -n "$STRIP" ; then ! 7703: striplib="$STRIP -x" ! 7704: echo "$as_me:$LINENO: result: yes" >&5 ! 7705: echo "${ECHO_T}yes" >&6 ! 7706: else ! 7707: echo "$as_me:$LINENO: result: no" >&5 ! 7708: echo "${ECHO_T}no" >&6 ! 7709: fi ! 7710: ;; ! 7711: *) ! 7712: echo "$as_me:$LINENO: result: no" >&5 ! 7713: echo "${ECHO_T}no" >&6 ! 7714: ;; ! 7715: esac ! 7716: fi ! 7717: ! 7718: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 7719: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 7720: library_names_spec= ! 7721: libname_spec='lib$name' ! 7722: soname_spec= ! 7723: shrext=".so" ! 7724: postinstall_cmds= ! 7725: postuninstall_cmds= ! 7726: finish_cmds= ! 7727: finish_eval= ! 7728: shlibpath_var= ! 7729: shlibpath_overrides_runpath=unknown ! 7730: version_type=none ! 7731: dynamic_linker="$host_os ld.so" ! 7732: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 7733: if test "$GCC" = yes; then ! 7734: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 7735: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 7736: # if the path contains ";" then we assume it to be the separator ! 7737: # otherwise default to the standard path separator (i.e. ":") - it is ! 7738: # assumed that no part of a normal pathname contains ";" but that should ! 7739: # okay in the real world where ";" in dirpaths is itself problematic. ! 7740: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 7741: else ! 7742: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 7743: fi ! 7744: else ! 7745: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 7746: fi ! 7747: need_lib_prefix=unknown ! 7748: hardcode_into_libs=no ! 7749: ! 7750: # when you set need_version to no, make sure it does not cause -set_version ! 7751: # flags to be left without arguments ! 7752: need_version=unknown ! 7753: ! 7754: case $host_os in ! 7755: aix3*) ! 7756: version_type=linux ! 7757: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 7758: shlibpath_var=LIBPATH ! 7759: ! 7760: # AIX 3 has no versioning support, so we append a major version to the name. ! 7761: soname_spec='${libname}${release}${shared_ext}$major' ! 7762: ;; ! 7763: ! 7764: aix4* | aix5*) ! 7765: version_type=linux ! 7766: need_lib_prefix=no ! 7767: need_version=no ! 7768: hardcode_into_libs=yes ! 7769: if test "$host_cpu" = ia64; then ! 7770: # AIX 5 supports IA64 ! 7771: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 7772: shlibpath_var=LD_LIBRARY_PATH ! 7773: else ! 7774: # With GCC up to 2.95.x, collect2 would create an import file ! 7775: # for dependence libraries. The import file would start with ! 7776: # the line `#! .'. This would cause the generated library to ! 7777: # depend on `.', always an invalid library. This was fixed in ! 7778: # development snapshots of GCC prior to 3.0. ! 7779: case $host_os in ! 7780: aix4 | aix4.[01] | aix4.[01].*) ! 7781: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 7782: echo ' yes ' ! 7783: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 7784: : ! 7785: else ! 7786: can_build_shared=no ! 7787: fi ! 7788: ;; ! 7789: esac ! 7790: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 7791: # soname into executable. Probably we can add versioning support to ! 7792: # collect2, so additional links can be useful in future. ! 7793: if test "$aix_use_runtimelinking" = yes; then ! 7794: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 7795: # instead of lib<name>.a to let people know that these are not ! 7796: # typical AIX shared libraries. ! 7797: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 7798: else ! 7799: # We preserve .a as extension for shared libraries through AIX4.2 ! 7800: # and later when we are not doing run time linking. ! 7801: library_names_spec='${libname}${release}.a $libname.a' ! 7802: soname_spec='${libname}${release}${shared_ext}$major' ! 7803: fi ! 7804: shlibpath_var=LIBPATH ! 7805: fi ! 7806: ;; ! 7807: ! 7808: amigaos*) ! 7809: library_names_spec='$libname.ixlibrary $libname.a' ! 7810: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 7811: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' ! 7812: ;; ! 7813: ! 7814: beos*) ! 7815: library_names_spec='${libname}${shared_ext}' ! 7816: dynamic_linker="$host_os ld.so" ! 7817: shlibpath_var=LIBRARY_PATH ! 7818: ;; ! 7819: ! 7820: bsdi4*) ! 7821: version_type=linux ! 7822: need_version=no ! 7823: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 7824: soname_spec='${libname}${release}${shared_ext}$major' ! 7825: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 7826: shlibpath_var=LD_LIBRARY_PATH ! 7827: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 7828: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 7829: # the default ld.so.conf also contains /usr/contrib/lib and ! 7830: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 7831: # libtool to hard-code these into programs ! 7832: ;; ! 7833: ! 7834: cygwin* | mingw* | pw32*) ! 7835: version_type=windows ! 7836: shrext=".dll" ! 7837: need_version=no ! 7838: need_lib_prefix=no ! 7839: ! 7840: case $GCC,$host_os in ! 7841: yes,cygwin* | yes,mingw* | yes,pw32*) ! 7842: library_names_spec='$libname.dll.a' ! 7843: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 7844: postinstall_cmds='base_file=`basename \${file}`~ ! 7845: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 7846: dldir=$destdir/`dirname \$dlpath`~ ! 7847: test -d \$dldir || mkdir -p \$dldir~ ! 7848: $install_prog $dir/$dlname \$dldir/$dlname' ! 7849: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 7850: dlpath=$dir/\$dldll~ ! 7851: $rm \$dlpath' ! 7852: shlibpath_overrides_runpath=yes ! 7853: ! 7854: case $host_os in ! 7855: cygwin*) ! 7856: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 7857: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 7858: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 7859: ;; ! 7860: mingw*) ! 7861: # MinGW DLLs use traditional 'lib' prefix ! 7862: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 7863: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 7864: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 7865: # It is most probably a Windows format PATH printed by ! 7866: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 7867: # path with ; separators, and with drive letters. We can handle the ! 7868: # drive letters (cygwin fileutils understands them), so leave them, ! 7869: # especially as we might pass files found there to a mingw objdump, ! 7870: # which wouldn't understand a cygwinified path. Ahh. ! 7871: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 7872: else ! 7873: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 7874: fi ! 7875: ;; ! 7876: pw32*) ! 7877: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 7878: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 7879: ;; ! 7880: esac ! 7881: ;; ! 7882: ! 7883: *) ! 7884: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 7885: ;; ! 7886: esac ! 7887: dynamic_linker='Win32 ld.exe' ! 7888: # FIXME: first we should search . and the directory the executable is in ! 7889: shlibpath_var=PATH ! 7890: ;; ! 7891: ! 7892: darwin* | rhapsody*) ! 7893: dynamic_linker="$host_os dyld" ! 7894: version_type=darwin ! 7895: need_lib_prefix=no ! 7896: need_version=no ! 7897: # FIXME: Relying on posixy $() will cause problems for ! 7898: # cross-compilation, but unfortunately the echo tests do not ! 7899: # yet detect zsh echo's removal of \ escapes. ! 7900: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 7901: soname_spec='${libname}${release}${major}$shared_ext' ! 7902: shlibpath_overrides_runpath=yes ! 7903: shlibpath_var=DYLD_LIBRARY_PATH ! 7904: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 7905: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 7906: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 7907: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 7908: fi ! 7909: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 7910: ;; ! 7911: ! 7912: dgux*) ! 7913: version_type=linux ! 7914: need_lib_prefix=no ! 7915: need_version=no ! 7916: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 7917: soname_spec='${libname}${release}${shared_ext}$major' ! 7918: shlibpath_var=LD_LIBRARY_PATH ! 7919: ;; ! 7920: ! 7921: freebsd1*) ! 7922: dynamic_linker=no ! 7923: ;; ! 7924: ! 7925: freebsd*) ! 7926: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 7927: version_type=freebsd-$objformat ! 7928: case $version_type in ! 7929: freebsd-elf*) ! 7930: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 7931: need_version=no ! 7932: need_lib_prefix=no ! 7933: ;; ! 7934: freebsd-*) ! 7935: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 7936: need_version=yes ! 7937: ;; ! 7938: esac ! 7939: shlibpath_var=LD_LIBRARY_PATH ! 7940: case $host_os in ! 7941: freebsd2*) ! 7942: shlibpath_overrides_runpath=yes ! 7943: ;; ! 7944: freebsd3.01* | freebsdelf3.01*) ! 7945: shlibpath_overrides_runpath=yes ! 7946: hardcode_into_libs=yes ! 7947: ;; ! 7948: *) # from 3.2 on ! 7949: shlibpath_overrides_runpath=no ! 7950: hardcode_into_libs=yes ! 7951: ;; ! 7952: esac ! 7953: ;; ! 7954: ! 7955: gnu*) ! 7956: version_type=linux ! 7957: need_lib_prefix=no ! 7958: need_version=no ! 7959: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 7960: soname_spec='${libname}${release}${shared_ext}$major' ! 7961: shlibpath_var=LD_LIBRARY_PATH ! 7962: hardcode_into_libs=yes ! 7963: ;; ! 7964: ! 7965: hpux9* | hpux10* | hpux11*) ! 7966: # Give a soname corresponding to the major version so that dld.sl refuses to ! 7967: # link against other versions. ! 7968: version_type=sunos ! 7969: need_lib_prefix=no ! 7970: need_version=no ! 7971: case "$host_cpu" in ! 7972: ia64*) ! 7973: shrext='.so' ! 7974: hardcode_into_libs=yes ! 7975: dynamic_linker="$host_os dld.so" ! 7976: shlibpath_var=LD_LIBRARY_PATH ! 7977: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 7978: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 7979: soname_spec='${libname}${release}${shared_ext}$major' ! 7980: if test "X$HPUX_IA64_MODE" = X32; then ! 7981: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 7982: else ! 7983: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 7984: fi ! 7985: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 7986: ;; ! 7987: hppa*64*) ! 7988: shrext='.sl' ! 7989: hardcode_into_libs=yes ! 7990: dynamic_linker="$host_os dld.sl" ! 7991: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 7992: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 7993: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 7994: soname_spec='${libname}${release}${shared_ext}$major' ! 7995: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 7996: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 7997: ;; ! 7998: *) ! 7999: shrext='.sl' ! 8000: dynamic_linker="$host_os dld.sl" ! 8001: shlibpath_var=SHLIB_PATH ! 8002: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 8003: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8004: soname_spec='${libname}${release}${shared_ext}$major' ! 8005: ;; ! 8006: esac ! 8007: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 8008: postinstall_cmds='chmod 555 $lib' ! 8009: ;; ! 8010: ! 8011: irix5* | irix6* | nonstopux*) ! 8012: case $host_os in ! 8013: nonstopux*) version_type=nonstopux ;; ! 8014: *) ! 8015: if test "$lt_cv_prog_gnu_ld" = yes; then ! 8016: version_type=linux ! 8017: else ! 8018: version_type=irix ! 8019: fi ;; ! 8020: esac ! 8021: need_lib_prefix=no ! 8022: need_version=no ! 8023: soname_spec='${libname}${release}${shared_ext}$major' ! 8024: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 8025: case $host_os in ! 8026: irix5* | nonstopux*) ! 8027: libsuff= shlibsuff= ! 8028: ;; ! 8029: *) ! 8030: case $LD in # libtool.m4 will add one of these switches to LD ! 8031: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 8032: libsuff= shlibsuff= libmagic=32-bit;; ! 8033: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 8034: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 8035: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 8036: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 8037: *) libsuff= shlibsuff= libmagic=never-match;; ! 8038: esac ! 8039: ;; ! 8040: esac ! 8041: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 8042: shlibpath_overrides_runpath=no ! 8043: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 8044: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 8045: hardcode_into_libs=yes ! 8046: ;; ! 8047: ! 8048: # No shared lib support for Linux oldld, aout, or coff. ! 8049: linux*oldld* | linux*aout* | linux*coff*) ! 8050: dynamic_linker=no ! 8051: ;; ! 8052: ! 8053: # This must be Linux ELF. ! 8054: linux*) ! 8055: version_type=linux ! 8056: need_lib_prefix=no ! 8057: need_version=no ! 8058: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8059: soname_spec='${libname}${release}${shared_ext}$major' ! 8060: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 8061: shlibpath_var=LD_LIBRARY_PATH ! 8062: shlibpath_overrides_runpath=no ! 8063: # This implies no fast_install, which is unacceptable. ! 8064: # Some rework will be needed to allow for fast_install ! 8065: # before this can be enabled. ! 8066: hardcode_into_libs=yes ! 8067: ! 8068: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 8069: # powerpc, because MkLinux only supported shared libraries with the ! 8070: # GNU dynamic linker. Since this was broken with cross compilers, ! 8071: # most powerpc-linux boxes support dynamic linking these days and ! 8072: # people can always --disable-shared, the test was removed, and we ! 8073: # assume the GNU/Linux dynamic linker is in use. ! 8074: dynamic_linker='GNU/Linux ld.so' ! 8075: ;; ! 8076: ! 8077: netbsd*) ! 8078: version_type=sunos ! 8079: need_lib_prefix=no ! 8080: need_version=no ! 8081: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 8082: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 8083: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 8084: dynamic_linker='NetBSD (a.out) ld.so' ! 8085: else ! 8086: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 8087: soname_spec='${libname}${release}${shared_ext}$major' ! 8088: dynamic_linker='NetBSD ld.elf_so' ! 8089: fi ! 8090: shlibpath_var=LD_LIBRARY_PATH ! 8091: shlibpath_overrides_runpath=yes ! 8092: hardcode_into_libs=yes ! 8093: ;; ! 8094: ! 8095: newsos6) ! 8096: version_type=linux ! 8097: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8098: shlibpath_var=LD_LIBRARY_PATH ! 8099: shlibpath_overrides_runpath=yes ! 8100: ;; ! 8101: ! 8102: nto-qnx) ! 8103: version_type=linux ! 8104: need_lib_prefix=no ! 8105: need_version=no ! 8106: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8107: soname_spec='${libname}${release}${shared_ext}$major' ! 8108: shlibpath_var=LD_LIBRARY_PATH ! 8109: shlibpath_overrides_runpath=yes ! 8110: ;; ! 8111: ! 8112: openbsd*) ! 8113: version_type=sunos ! 8114: need_lib_prefix=no ! 8115: need_version=no ! 8116: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 8117: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 8118: shlibpath_var=LD_LIBRARY_PATH ! 8119: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 8120: case $host_os in ! 8121: openbsd2.[89] | openbsd2.[89].*) ! 8122: shlibpath_overrides_runpath=no ! 8123: ;; ! 8124: *) ! 8125: shlibpath_overrides_runpath=yes ! 8126: ;; ! 8127: esac ! 8128: else ! 8129: shlibpath_overrides_runpath=yes ! 8130: fi ! 8131: ;; ! 8132: ! 8133: os2*) ! 8134: libname_spec='$name' ! 8135: shrext=".dll" ! 8136: need_lib_prefix=no ! 8137: library_names_spec='$libname${shared_ext} $libname.a' ! 8138: dynamic_linker='OS/2 ld.exe' ! 8139: shlibpath_var=LIBPATH ! 8140: ;; ! 8141: ! 8142: osf3* | osf4* | osf5*) ! 8143: version_type=osf ! 8144: need_lib_prefix=no ! 8145: need_version=no ! 8146: soname_spec='${libname}${release}${shared_ext}$major' ! 8147: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8148: shlibpath_var=LD_LIBRARY_PATH ! 8149: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 8150: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 8151: ;; ! 8152: ! 8153: sco3.2v5*) ! 8154: version_type=osf ! 8155: soname_spec='${libname}${release}${shared_ext}$major' ! 8156: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8157: shlibpath_var=LD_LIBRARY_PATH ! 8158: ;; ! 8159: ! 8160: solaris*) ! 8161: version_type=linux ! 8162: need_lib_prefix=no ! 8163: need_version=no ! 8164: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8165: soname_spec='${libname}${release}${shared_ext}$major' ! 8166: shlibpath_var=LD_LIBRARY_PATH ! 8167: shlibpath_overrides_runpath=yes ! 8168: hardcode_into_libs=yes ! 8169: # ldd complains unless libraries are executable ! 8170: postinstall_cmds='chmod +x $lib' ! 8171: ;; ! 8172: ! 8173: sunos4*) ! 8174: version_type=sunos ! 8175: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 8176: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 8177: shlibpath_var=LD_LIBRARY_PATH ! 8178: shlibpath_overrides_runpath=yes ! 8179: if test "$with_gnu_ld" = yes; then ! 8180: need_lib_prefix=no ! 8181: fi ! 8182: need_version=yes ! 8183: ;; ! 8184: ! 8185: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 8186: version_type=linux ! 8187: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8188: soname_spec='${libname}${release}${shared_ext}$major' ! 8189: shlibpath_var=LD_LIBRARY_PATH ! 8190: case $host_vendor in ! 8191: sni) ! 8192: shlibpath_overrides_runpath=no ! 8193: need_lib_prefix=no ! 8194: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 8195: runpath_var=LD_RUN_PATH ! 8196: ;; ! 8197: siemens) ! 8198: need_lib_prefix=no ! 8199: ;; ! 8200: motorola) ! 8201: need_lib_prefix=no ! 8202: need_version=no ! 8203: shlibpath_overrides_runpath=no ! 8204: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 8205: ;; ! 8206: esac ! 8207: ;; ! 8208: ! 8209: sysv4*MP*) ! 8210: if test -d /usr/nec ;then ! 8211: version_type=linux ! 8212: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 8213: soname_spec='$libname${shared_ext}.$major' ! 8214: shlibpath_var=LD_LIBRARY_PATH ! 8215: fi ! 8216: ;; ! 8217: ! 8218: uts4*) ! 8219: version_type=linux ! 8220: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 8221: soname_spec='${libname}${release}${shared_ext}$major' ! 8222: shlibpath_var=LD_LIBRARY_PATH ! 8223: ;; ! 8224: ! 8225: *) ! 8226: dynamic_linker=no ! 8227: ;; ! 8228: esac ! 8229: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 8230: echo "${ECHO_T}$dynamic_linker" >&6 ! 8231: test "$dynamic_linker" = no && can_build_shared=no ! 8232: ! 8233: if test "x$enable_dlopen" != xyes; then ! 8234: enable_dlopen=unknown ! 8235: enable_dlopen_self=unknown ! 8236: enable_dlopen_self_static=unknown ! 8237: else ! 8238: lt_cv_dlopen=no ! 8239: lt_cv_dlopen_libs= ! 8240: ! 8241: case $host_os in ! 8242: beos*) ! 8243: lt_cv_dlopen="load_add_on" ! 8244: lt_cv_dlopen_libs= ! 8245: lt_cv_dlopen_self=yes ! 8246: ;; ! 8247: ! 8248: mingw* | pw32*) ! 8249: lt_cv_dlopen="LoadLibrary" ! 8250: lt_cv_dlopen_libs= ! 8251: ;; ! 8252: ! 8253: cygwin*) ! 8254: lt_cv_dlopen="dlopen" ! 8255: lt_cv_dlopen_libs= ! 8256: ;; ! 8257: ! 8258: darwin*) ! 8259: # if libdl is installed we need to link against it ! 8260: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 8261: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 8262: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 8263: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8264: else ! 8265: ac_check_lib_save_LIBS=$LIBS ! 8266: LIBS="-ldl $LIBS" ! 8267: cat >conftest.$ac_ext <<_ACEOF ! 8268: #line $LINENO "configure" ! 8269: /* confdefs.h. */ ! 8270: _ACEOF ! 8271: cat confdefs.h >>conftest.$ac_ext ! 8272: cat >>conftest.$ac_ext <<_ACEOF ! 8273: /* end confdefs.h. */ ! 8274: ! 8275: /* Override any gcc2 internal prototype to avoid an error. */ ! 8276: #ifdef __cplusplus ! 8277: extern "C" ! 8278: #endif ! 8279: /* We use char because int might match the return type of a gcc2 ! 8280: builtin and then its argument prototype would still apply. */ ! 8281: char dlopen (); ! 8282: int ! 8283: main () ! 8284: { ! 8285: dlopen (); ! 8286: ; ! 8287: return 0; ! 8288: } ! 8289: _ACEOF ! 8290: rm -f conftest.$ac_objext conftest$ac_exeext ! 8291: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8292: (eval $ac_link) 2>&5 ! 8293: ac_status=$? ! 8294: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8295: (exit $ac_status); } && ! 8296: { ac_try='test -s conftest$ac_exeext' ! 8297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8298: (eval $ac_try) 2>&5 ! 8299: ac_status=$? ! 8300: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8301: (exit $ac_status); }; }; then ! 8302: ac_cv_lib_dl_dlopen=yes ! 8303: else ! 8304: echo "$as_me: failed program was:" >&5 ! 8305: sed 's/^/| /' conftest.$ac_ext >&5 ! 8306: ! 8307: ac_cv_lib_dl_dlopen=no ! 8308: fi ! 8309: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 8310: LIBS=$ac_check_lib_save_LIBS ! 8311: fi ! 8312: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 8313: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 8314: if test $ac_cv_lib_dl_dlopen = yes; then ! 8315: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 8316: else ! 8317: ! 8318: lt_cv_dlopen="dyld" ! 8319: lt_cv_dlopen_libs= ! 8320: lt_cv_dlopen_self=yes ! 8321: ! 8322: fi ! 8323: ! 8324: ;; ! 8325: ! 8326: *) ! 8327: echo "$as_me:$LINENO: checking for shl_load" >&5 ! 8328: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 ! 8329: if test "${ac_cv_func_shl_load+set}" = set; then ! 8330: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8331: else ! 8332: cat >conftest.$ac_ext <<_ACEOF ! 8333: #line $LINENO "configure" ! 8334: /* confdefs.h. */ ! 8335: _ACEOF ! 8336: cat confdefs.h >>conftest.$ac_ext ! 8337: cat >>conftest.$ac_ext <<_ACEOF ! 8338: /* end confdefs.h. */ ! 8339: /* System header to define __stub macros and hopefully few prototypes, ! 8340: which can conflict with char shl_load (); below. ! 8341: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 8342: <limits.h> exists even on freestanding compilers. */ ! 8343: #ifdef __STDC__ ! 8344: # include <limits.h> ! 8345: #else ! 8346: # include <assert.h> ! 8347: #endif ! 8348: /* Override any gcc2 internal prototype to avoid an error. */ ! 8349: #ifdef __cplusplus ! 8350: extern "C" ! 8351: { ! 8352: #endif ! 8353: /* We use char because int might match the return type of a gcc2 ! 8354: builtin and then its argument prototype would still apply. */ ! 8355: char shl_load (); ! 8356: /* The GNU C library defines this for functions which it implements ! 8357: to always fail with ENOSYS. Some functions are actually named ! 8358: something starting with __ and the normal name is an alias. */ ! 8359: #if defined (__stub_shl_load) || defined (__stub___shl_load) ! 8360: choke me ! 8361: #else ! 8362: char (*f) () = shl_load; ! 8363: #endif ! 8364: #ifdef __cplusplus ! 8365: } ! 8366: #endif ! 8367: ! 8368: int ! 8369: main () ! 8370: { ! 8371: return f != shl_load; ! 8372: ; ! 8373: return 0; ! 8374: } ! 8375: _ACEOF ! 8376: rm -f conftest.$ac_objext conftest$ac_exeext ! 8377: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8378: (eval $ac_link) 2>&5 ! 8379: ac_status=$? ! 8380: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8381: (exit $ac_status); } && ! 8382: { ac_try='test -s conftest$ac_exeext' ! 8383: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8384: (eval $ac_try) 2>&5 ! 8385: ac_status=$? ! 8386: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8387: (exit $ac_status); }; }; then ! 8388: ac_cv_func_shl_load=yes ! 8389: else ! 8390: echo "$as_me: failed program was:" >&5 ! 8391: sed 's/^/| /' conftest.$ac_ext >&5 ! 8392: ! 8393: ac_cv_func_shl_load=no ! 8394: fi ! 8395: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 8396: fi ! 8397: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ! 8398: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 ! 8399: if test $ac_cv_func_shl_load = yes; then ! 8400: lt_cv_dlopen="shl_load" ! 8401: else ! 8402: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! 8403: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 ! 8404: if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! 8405: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8406: else ! 8407: ac_check_lib_save_LIBS=$LIBS ! 8408: LIBS="-ldld $LIBS" ! 8409: cat >conftest.$ac_ext <<_ACEOF ! 8410: #line $LINENO "configure" ! 8411: /* confdefs.h. */ ! 8412: _ACEOF ! 8413: cat confdefs.h >>conftest.$ac_ext ! 8414: cat >>conftest.$ac_ext <<_ACEOF ! 8415: /* end confdefs.h. */ ! 8416: ! 8417: /* Override any gcc2 internal prototype to avoid an error. */ ! 8418: #ifdef __cplusplus ! 8419: extern "C" ! 8420: #endif ! 8421: /* We use char because int might match the return type of a gcc2 ! 8422: builtin and then its argument prototype would still apply. */ ! 8423: char shl_load (); ! 8424: int ! 8425: main () ! 8426: { ! 8427: shl_load (); ! 8428: ; ! 8429: return 0; ! 8430: } ! 8431: _ACEOF ! 8432: rm -f conftest.$ac_objext conftest$ac_exeext ! 8433: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8434: (eval $ac_link) 2>&5 ! 8435: ac_status=$? ! 8436: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8437: (exit $ac_status); } && ! 8438: { ac_try='test -s conftest$ac_exeext' ! 8439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8440: (eval $ac_try) 2>&5 ! 8441: ac_status=$? ! 8442: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8443: (exit $ac_status); }; }; then ! 8444: ac_cv_lib_dld_shl_load=yes ! 8445: else ! 8446: echo "$as_me: failed program was:" >&5 ! 8447: sed 's/^/| /' conftest.$ac_ext >&5 ! 8448: ! 8449: ac_cv_lib_dld_shl_load=no ! 8450: fi ! 8451: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 8452: LIBS=$ac_check_lib_save_LIBS ! 8453: fi ! 8454: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! 8455: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 ! 8456: if test $ac_cv_lib_dld_shl_load = yes; then ! 8457: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" ! 8458: else ! 8459: echo "$as_me:$LINENO: checking for dlopen" >&5 ! 8460: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 ! 8461: if test "${ac_cv_func_dlopen+set}" = set; then ! 8462: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8463: else ! 8464: cat >conftest.$ac_ext <<_ACEOF ! 8465: #line $LINENO "configure" ! 8466: /* confdefs.h. */ ! 8467: _ACEOF ! 8468: cat confdefs.h >>conftest.$ac_ext ! 8469: cat >>conftest.$ac_ext <<_ACEOF ! 8470: /* end confdefs.h. */ ! 8471: /* System header to define __stub macros and hopefully few prototypes, ! 8472: which can conflict with char dlopen (); below. ! 8473: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 8474: <limits.h> exists even on freestanding compilers. */ ! 8475: #ifdef __STDC__ ! 8476: # include <limits.h> ! 8477: #else ! 8478: # include <assert.h> ! 8479: #endif ! 8480: /* Override any gcc2 internal prototype to avoid an error. */ ! 8481: #ifdef __cplusplus ! 8482: extern "C" ! 8483: { ! 8484: #endif ! 8485: /* We use char because int might match the return type of a gcc2 ! 8486: builtin and then its argument prototype would still apply. */ ! 8487: char dlopen (); ! 8488: /* The GNU C library defines this for functions which it implements ! 8489: to always fail with ENOSYS. Some functions are actually named ! 8490: something starting with __ and the normal name is an alias. */ ! 8491: #if defined (__stub_dlopen) || defined (__stub___dlopen) ! 8492: choke me ! 8493: #else ! 8494: char (*f) () = dlopen; ! 8495: #endif ! 8496: #ifdef __cplusplus ! 8497: } ! 8498: #endif ! 8499: ! 8500: int ! 8501: main () ! 8502: { ! 8503: return f != dlopen; ! 8504: ; ! 8505: return 0; ! 8506: } ! 8507: _ACEOF ! 8508: rm -f conftest.$ac_objext conftest$ac_exeext ! 8509: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8510: (eval $ac_link) 2>&5 ! 8511: ac_status=$? ! 8512: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8513: (exit $ac_status); } && ! 8514: { ac_try='test -s conftest$ac_exeext' ! 8515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8516: (eval $ac_try) 2>&5 ! 8517: ac_status=$? ! 8518: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8519: (exit $ac_status); }; }; then ! 8520: ac_cv_func_dlopen=yes ! 8521: else ! 8522: echo "$as_me: failed program was:" >&5 ! 8523: sed 's/^/| /' conftest.$ac_ext >&5 ! 8524: ! 8525: ac_cv_func_dlopen=no ! 8526: fi ! 8527: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 8528: fi ! 8529: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ! 8530: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 ! 8531: if test $ac_cv_func_dlopen = yes; then ! 8532: lt_cv_dlopen="dlopen" ! 8533: else ! 8534: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 8535: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 8536: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 8537: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8538: else ! 8539: ac_check_lib_save_LIBS=$LIBS ! 8540: LIBS="-ldl $LIBS" ! 8541: cat >conftest.$ac_ext <<_ACEOF ! 8542: #line $LINENO "configure" ! 8543: /* confdefs.h. */ ! 8544: _ACEOF ! 8545: cat confdefs.h >>conftest.$ac_ext ! 8546: cat >>conftest.$ac_ext <<_ACEOF ! 8547: /* end confdefs.h. */ ! 8548: ! 8549: /* Override any gcc2 internal prototype to avoid an error. */ ! 8550: #ifdef __cplusplus ! 8551: extern "C" ! 8552: #endif ! 8553: /* We use char because int might match the return type of a gcc2 ! 8554: builtin and then its argument prototype would still apply. */ ! 8555: char dlopen (); ! 8556: int ! 8557: main () ! 8558: { ! 8559: dlopen (); ! 8560: ; ! 8561: return 0; ! 8562: } ! 8563: _ACEOF ! 8564: rm -f conftest.$ac_objext conftest$ac_exeext ! 8565: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8566: (eval $ac_link) 2>&5 ! 8567: ac_status=$? ! 8568: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8569: (exit $ac_status); } && ! 8570: { ac_try='test -s conftest$ac_exeext' ! 8571: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8572: (eval $ac_try) 2>&5 ! 8573: ac_status=$? ! 8574: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8575: (exit $ac_status); }; }; then ! 8576: ac_cv_lib_dl_dlopen=yes ! 8577: else ! 8578: echo "$as_me: failed program was:" >&5 ! 8579: sed 's/^/| /' conftest.$ac_ext >&5 ! 8580: ! 8581: ac_cv_lib_dl_dlopen=no ! 8582: fi ! 8583: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 8584: LIBS=$ac_check_lib_save_LIBS ! 8585: fi ! 8586: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 8587: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 8588: if test $ac_cv_lib_dl_dlopen = yes; then ! 8589: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 8590: else ! 8591: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ! 8592: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 ! 8593: if test "${ac_cv_lib_svld_dlopen+set}" = set; then ! 8594: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8595: else ! 8596: ac_check_lib_save_LIBS=$LIBS ! 8597: LIBS="-lsvld $LIBS" ! 8598: cat >conftest.$ac_ext <<_ACEOF ! 8599: #line $LINENO "configure" ! 8600: /* confdefs.h. */ ! 8601: _ACEOF ! 8602: cat confdefs.h >>conftest.$ac_ext ! 8603: cat >>conftest.$ac_ext <<_ACEOF ! 8604: /* end confdefs.h. */ ! 8605: ! 8606: /* Override any gcc2 internal prototype to avoid an error. */ ! 8607: #ifdef __cplusplus ! 8608: extern "C" ! 8609: #endif ! 8610: /* We use char because int might match the return type of a gcc2 ! 8611: builtin and then its argument prototype would still apply. */ ! 8612: char dlopen (); ! 8613: int ! 8614: main () ! 8615: { ! 8616: dlopen (); ! 8617: ; ! 8618: return 0; ! 8619: } ! 8620: _ACEOF ! 8621: rm -f conftest.$ac_objext conftest$ac_exeext ! 8622: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8623: (eval $ac_link) 2>&5 ! 8624: ac_status=$? ! 8625: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8626: (exit $ac_status); } && ! 8627: { ac_try='test -s conftest$ac_exeext' ! 8628: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8629: (eval $ac_try) 2>&5 ! 8630: ac_status=$? ! 8631: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8632: (exit $ac_status); }; }; then ! 8633: ac_cv_lib_svld_dlopen=yes ! 8634: else ! 8635: echo "$as_me: failed program was:" >&5 ! 8636: sed 's/^/| /' conftest.$ac_ext >&5 ! 8637: ! 8638: ac_cv_lib_svld_dlopen=no ! 8639: fi ! 8640: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 8641: LIBS=$ac_check_lib_save_LIBS ! 8642: fi ! 8643: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ! 8644: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 ! 8645: if test $ac_cv_lib_svld_dlopen = yes; then ! 8646: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ! 8647: else ! 8648: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ! 8649: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 ! 8650: if test "${ac_cv_lib_dld_dld_link+set}" = set; then ! 8651: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8652: else ! 8653: ac_check_lib_save_LIBS=$LIBS ! 8654: LIBS="-ldld $LIBS" ! 8655: cat >conftest.$ac_ext <<_ACEOF ! 8656: #line $LINENO "configure" ! 8657: /* confdefs.h. */ ! 8658: _ACEOF ! 8659: cat confdefs.h >>conftest.$ac_ext ! 8660: cat >>conftest.$ac_ext <<_ACEOF ! 8661: /* end confdefs.h. */ ! 8662: ! 8663: /* Override any gcc2 internal prototype to avoid an error. */ ! 8664: #ifdef __cplusplus ! 8665: extern "C" ! 8666: #endif ! 8667: /* We use char because int might match the return type of a gcc2 ! 8668: builtin and then its argument prototype would still apply. */ ! 8669: char dld_link (); ! 8670: int ! 8671: main () ! 8672: { ! 8673: dld_link (); ! 8674: ; ! 8675: return 0; ! 8676: } ! 8677: _ACEOF ! 8678: rm -f conftest.$ac_objext conftest$ac_exeext ! 8679: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8680: (eval $ac_link) 2>&5 ! 8681: ac_status=$? ! 8682: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8683: (exit $ac_status); } && ! 8684: { ac_try='test -s conftest$ac_exeext' ! 8685: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 8686: (eval $ac_try) 2>&5 ! 8687: ac_status=$? ! 8688: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8689: (exit $ac_status); }; }; then ! 8690: ac_cv_lib_dld_dld_link=yes ! 8691: else ! 8692: echo "$as_me: failed program was:" >&5 ! 8693: sed 's/^/| /' conftest.$ac_ext >&5 ! 8694: ! 8695: ac_cv_lib_dld_dld_link=no ! 8696: fi ! 8697: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 8698: LIBS=$ac_check_lib_save_LIBS ! 8699: fi ! 8700: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ! 8701: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 ! 8702: if test $ac_cv_lib_dld_dld_link = yes; then ! 8703: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" ! 8704: fi ! 8705: ! 8706: ! 8707: fi ! 8708: ! 8709: ! 8710: fi ! 8711: ! 8712: ! 8713: fi ! 8714: ! 8715: ! 8716: fi ! 8717: ! 8718: ! 8719: fi ! 8720: ! 8721: ;; ! 8722: esac ! 8723: ! 8724: if test "x$lt_cv_dlopen" != xno; then ! 8725: enable_dlopen=yes ! 8726: else ! 8727: enable_dlopen=no ! 8728: fi ! 8729: ! 8730: case $lt_cv_dlopen in ! 8731: dlopen) ! 8732: save_CPPFLAGS="$CPPFLAGS" ! 8733: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ! 8734: ! 8735: save_LDFLAGS="$LDFLAGS" ! 8736: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ! 8737: ! 8738: save_LIBS="$LIBS" ! 8739: LIBS="$lt_cv_dlopen_libs $LIBS" ! 8740: ! 8741: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ! 8742: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 ! 8743: if test "${lt_cv_dlopen_self+set}" = set; then ! 8744: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8745: else ! 8746: if test "$cross_compiling" = yes; then : ! 8747: lt_cv_dlopen_self=cross ! 8748: else ! 8749: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 8750: lt_status=$lt_dlunknown ! 8751: cat > conftest.$ac_ext <<EOF ! 8752: #line 8752 "configure" ! 8753: #include "confdefs.h" ! 8754: ! 8755: #if HAVE_DLFCN_H ! 8756: #include <dlfcn.h> ! 8757: #endif ! 8758: ! 8759: #include <stdio.h> ! 8760: ! 8761: #ifdef RTLD_GLOBAL ! 8762: # define LT_DLGLOBAL RTLD_GLOBAL ! 8763: #else ! 8764: # ifdef DL_GLOBAL ! 8765: # define LT_DLGLOBAL DL_GLOBAL ! 8766: # else ! 8767: # define LT_DLGLOBAL 0 ! 8768: # endif ! 8769: #endif ! 8770: ! 8771: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 8772: find out it does not work in some platform. */ ! 8773: #ifndef LT_DLLAZY_OR_NOW ! 8774: # ifdef RTLD_LAZY ! 8775: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 8776: # else ! 8777: # ifdef DL_LAZY ! 8778: # define LT_DLLAZY_OR_NOW DL_LAZY ! 8779: # else ! 8780: # ifdef RTLD_NOW ! 8781: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 8782: # else ! 8783: # ifdef DL_NOW ! 8784: # define LT_DLLAZY_OR_NOW DL_NOW ! 8785: # else ! 8786: # define LT_DLLAZY_OR_NOW 0 ! 8787: # endif ! 8788: # endif ! 8789: # endif ! 8790: # endif ! 8791: #endif ! 8792: ! 8793: #ifdef __cplusplus ! 8794: extern "C" void exit (int); ! 8795: #endif ! 8796: ! 8797: void fnord() { int i=42;} ! 8798: int main () ! 8799: { ! 8800: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 8801: int status = $lt_dlunknown; ! 8802: ! 8803: if (self) ! 8804: { ! 8805: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 8806: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 8807: /* dlclose (self); */ ! 8808: } ! 8809: ! 8810: exit (status); ! 8811: } ! 8812: EOF ! 8813: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8814: (eval $ac_link) 2>&5 ! 8815: ac_status=$? ! 8816: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8817: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 8818: (./conftest; exit; ) 2>/dev/null ! 8819: lt_status=$? ! 8820: case x$lt_status in ! 8821: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ! 8822: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ! 8823: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; ! 8824: esac ! 8825: else : ! 8826: # compilation failed ! 8827: lt_cv_dlopen_self=no ! 8828: fi ! 8829: fi ! 8830: rm -fr conftest* ! 8831: ! 8832: ! 8833: fi ! 8834: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ! 8835: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 ! 8836: ! 8837: if test "x$lt_cv_dlopen_self" = xyes; then ! 8838: LDFLAGS="$LDFLAGS $link_static_flag" ! 8839: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ! 8840: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 ! 8841: if test "${lt_cv_dlopen_self_static+set}" = set; then ! 8842: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 8843: else ! 8844: if test "$cross_compiling" = yes; then : ! 8845: lt_cv_dlopen_self_static=cross ! 8846: else ! 8847: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 8848: lt_status=$lt_dlunknown ! 8849: cat > conftest.$ac_ext <<EOF ! 8850: #line 8850 "configure" ! 8851: #include "confdefs.h" ! 8852: ! 8853: #if HAVE_DLFCN_H ! 8854: #include <dlfcn.h> ! 8855: #endif ! 8856: ! 8857: #include <stdio.h> ! 8858: ! 8859: #ifdef RTLD_GLOBAL ! 8860: # define LT_DLGLOBAL RTLD_GLOBAL ! 8861: #else ! 8862: # ifdef DL_GLOBAL ! 8863: # define LT_DLGLOBAL DL_GLOBAL ! 8864: # else ! 8865: # define LT_DLGLOBAL 0 ! 8866: # endif ! 8867: #endif ! 8868: ! 8869: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 8870: find out it does not work in some platform. */ ! 8871: #ifndef LT_DLLAZY_OR_NOW ! 8872: # ifdef RTLD_LAZY ! 8873: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 8874: # else ! 8875: # ifdef DL_LAZY ! 8876: # define LT_DLLAZY_OR_NOW DL_LAZY ! 8877: # else ! 8878: # ifdef RTLD_NOW ! 8879: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 8880: # else ! 8881: # ifdef DL_NOW ! 8882: # define LT_DLLAZY_OR_NOW DL_NOW ! 8883: # else ! 8884: # define LT_DLLAZY_OR_NOW 0 ! 8885: # endif ! 8886: # endif ! 8887: # endif ! 8888: # endif ! 8889: #endif ! 8890: ! 8891: #ifdef __cplusplus ! 8892: extern "C" void exit (int); ! 8893: #endif ! 8894: ! 8895: void fnord() { int i=42;} ! 8896: int main () ! 8897: { ! 8898: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 8899: int status = $lt_dlunknown; ! 8900: ! 8901: if (self) ! 8902: { ! 8903: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 8904: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 8905: /* dlclose (self); */ ! 8906: } ! 8907: ! 8908: exit (status); ! 8909: } ! 8910: EOF ! 8911: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 8912: (eval $ac_link) 2>&5 ! 8913: ac_status=$? ! 8914: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 8915: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 8916: (./conftest; exit; ) 2>/dev/null ! 8917: lt_status=$? ! 8918: case x$lt_status in ! 8919: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ! 8920: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ! 8921: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; ! 8922: esac ! 8923: else : ! 8924: # compilation failed ! 8925: lt_cv_dlopen_self_static=no ! 8926: fi ! 8927: fi ! 8928: rm -fr conftest* ! 8929: ! 8930: ! 8931: fi ! 8932: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ! 8933: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 ! 8934: fi ! 8935: ! 8936: CPPFLAGS="$save_CPPFLAGS" ! 8937: LDFLAGS="$save_LDFLAGS" ! 8938: LIBS="$save_LIBS" ! 8939: ;; ! 8940: esac ! 8941: ! 8942: case $lt_cv_dlopen_self in ! 8943: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ! 8944: *) enable_dlopen_self=unknown ;; ! 8945: esac ! 8946: ! 8947: case $lt_cv_dlopen_self_static in ! 8948: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ! 8949: *) enable_dlopen_self_static=unknown ;; ! 8950: esac ! 8951: fi ! 8952: ! 8953: ! 8954: # Report which librarie types wil actually be built ! 8955: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ! 8956: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 ! 8957: echo "$as_me:$LINENO: result: $can_build_shared" >&5 ! 8958: echo "${ECHO_T}$can_build_shared" >&6 ! 8959: ! 8960: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ! 8961: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 ! 8962: test "$can_build_shared" = "no" && enable_shared=no ! 8963: ! 8964: # On AIX, shared libraries and static libraries use the same namespace, and ! 8965: # are all built from PIC. ! 8966: case "$host_os" in ! 8967: aix3*) ! 8968: test "$enable_shared" = yes && enable_static=no ! 8969: if test -n "$RANLIB"; then ! 8970: archive_cmds="$archive_cmds~\$RANLIB \$lib" ! 8971: postinstall_cmds='$RANLIB $lib' ! 8972: fi ! 8973: ;; ! 8974: ! 8975: aix4*) ! 8976: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ! 8977: test "$enable_shared" = yes && enable_static=no ! 8978: fi ! 8979: ;; ! 8980: darwin* | rhapsody*) ! 8981: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 8982: archive_cmds_need_lc=no ! 8983: case "$host_os" in ! 8984: rhapsody* | darwin1.[012]) ! 8985: allow_undefined_flag='-undefined suppress' ! 8986: ;; ! 8987: *) # Darwin 1.3 on ! 8988: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' ! 8989: ;; ! 8990: esac ! 8991: # FIXME: Relying on posixy $() will cause problems for ! 8992: # cross-compilation, but unfortunately the echo tests do not ! 8993: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 8994: # `"' quotes if we put them in here... so don't! ! 8995: output_verbose_link_cmd='echo' ! 8996: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' ! 8997: module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 8998: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 8999: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 9000: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 9001: hardcode_direct=no ! 9002: hardcode_automatic=yes ! 9003: hardcode_shlibpath_var=unsupported ! 9004: whole_archive_flag_spec='-all_load $convenience' ! 9005: link_all_deplibs=yes ! 9006: fi ! 9007: ;; ! 9008: esac ! 9009: echo "$as_me:$LINENO: result: $enable_shared" >&5 ! 9010: echo "${ECHO_T}$enable_shared" >&6 ! 9011: ! 9012: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ! 9013: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 ! 9014: # Make sure either enable_shared or enable_static is yes. ! 9015: test "$enable_shared" = yes || enable_static=yes ! 9016: echo "$as_me:$LINENO: result: $enable_static" >&5 ! 9017: echo "${ECHO_T}$enable_static" >&6 ! 9018: ! 9019: # The else clause should only fire when bootstrapping the ! 9020: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 9021: # with your package, and you will get complaints that there are ! 9022: # no rules to generate ltmain.sh. ! 9023: if test -f "$ltmain"; then ! 9024: # See if we are running on zsh, and set the options which allow our commands through ! 9025: # without removal of \ escapes. ! 9026: if test -n "${ZSH_VERSION+set}" ; then ! 9027: setopt NO_GLOB_SUBST ! 9028: fi ! 9029: # Now quote all the things that may contain metacharacters while being ! 9030: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 9031: # variables and quote the copies for generation of the libtool script. ! 9032: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 9033: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 9034: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 9035: deplibs_check_method reload_flag reload_cmds need_locks \ ! 9036: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 9037: lt_cv_sys_global_symbol_to_c_name_address \ ! 9038: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 9039: old_postinstall_cmds old_postuninstall_cmds \ ! 9040: compiler \ ! 9041: CC \ ! 9042: LD \ ! 9043: lt_prog_compiler_wl \ ! 9044: lt_prog_compiler_pic \ ! 9045: lt_prog_compiler_static \ ! 9046: lt_prog_compiler_no_builtin_flag \ ! 9047: export_dynamic_flag_spec \ ! 9048: thread_safe_flag_spec \ ! 9049: whole_archive_flag_spec \ ! 9050: enable_shared_with_static_runtimes \ ! 9051: old_archive_cmds \ ! 9052: old_archive_from_new_cmds \ ! 9053: predep_objects \ ! 9054: postdep_objects \ ! 9055: predeps \ ! 9056: postdeps \ ! 9057: compiler_lib_search_path \ ! 9058: archive_cmds \ ! 9059: archive_expsym_cmds \ ! 9060: postinstall_cmds \ ! 9061: postuninstall_cmds \ ! 9062: old_archive_from_expsyms_cmds \ ! 9063: allow_undefined_flag \ ! 9064: no_undefined_flag \ ! 9065: export_symbols_cmds \ ! 9066: hardcode_libdir_flag_spec \ ! 9067: hardcode_libdir_flag_spec_ld \ ! 9068: hardcode_libdir_separator \ ! 9069: hardcode_automatic \ ! 9070: module_cmds \ ! 9071: module_expsym_cmds \ ! 9072: lt_cv_prog_compiler_c_o \ ! 9073: exclude_expsyms \ ! 9074: include_expsyms; do ! 9075: ! 9076: case $var in ! 9077: old_archive_cmds | \ ! 9078: old_archive_from_new_cmds | \ ! 9079: archive_cmds | \ ! 9080: archive_expsym_cmds | \ ! 9081: module_cmds | \ ! 9082: module_expsym_cmds | \ ! 9083: old_archive_from_expsyms_cmds | \ ! 9084: export_symbols_cmds | \ ! 9085: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 9086: postinstall_cmds | postuninstall_cmds | \ ! 9087: old_postinstall_cmds | old_postuninstall_cmds | \ ! 9088: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 9089: # Double-quote double-evaled strings. ! 9090: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 9091: ;; ! 9092: *) ! 9093: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 9094: ;; ! 9095: esac ! 9096: done ! 9097: ! 9098: case $lt_echo in ! 9099: *'\$0 --fallback-echo"') ! 9100: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 9101: ;; ! 9102: esac ! 9103: ! 9104: cfgfile="${ofile}T" ! 9105: trap "$rm \"$cfgfile\"; exit 1" 1 2 15 ! 9106: $rm -f "$cfgfile" ! 9107: { echo "$as_me:$LINENO: creating $ofile" >&5 ! 9108: echo "$as_me: creating $ofile" >&6;} ! 9109: ! 9110: cat <<__EOF__ >> "$cfgfile" ! 9111: #! $SHELL ! 9112: ! 9113: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. ! 9114: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) ! 9115: # NOTE: Changes made to this file will be lost: look at ltmain.sh. ! 9116: # ! 9117: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 ! 9118: # Free Software Foundation, Inc. ! 9119: # ! 9120: # This file is part of GNU Libtool: ! 9121: # Originally by Gordon Matzigkeit <[email protected]>, 1996 ! 9122: # ! 9123: # This program is free software; you can redistribute it and/or modify ! 9124: # it under the terms of the GNU General Public License as published by ! 9125: # the Free Software Foundation; either version 2 of the License, or ! 9126: # (at your option) any later version. ! 9127: # ! 9128: # This program is distributed in the hope that it will be useful, but ! 9129: # WITHOUT ANY WARRANTY; without even the implied warranty of ! 9130: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! 9131: # General Public License for more details. ! 9132: # ! 9133: # You should have received a copy of the GNU General Public License ! 9134: # along with this program; if not, write to the Free Software ! 9135: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! 9136: # ! 9137: # As a special exception to the GNU General Public License, if you ! 9138: # distribute this file as part of a program that contains a ! 9139: # configuration script generated by Autoconf, you may include it under ! 9140: # the same distribution terms that you use for the rest of that program. ! 9141: ! 9142: # A sed program that does not truncate output. ! 9143: SED=$lt_SED ! 9144: ! 9145: # Sed that helps us avoid accidentally triggering echo(1) options like -n. ! 9146: Xsed="$SED -e s/^X//" ! 9147: ! 9148: # The HP-UX ksh and POSIX shell print the target directory to stdout ! 9149: # if CDPATH is set. ! 9150: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi ! 9151: ! 9152: # The names of the tagged configurations supported by this script. ! 9153: available_tags= ! 9154: ! 9155: # ### BEGIN LIBTOOL CONFIG ! 9156: ! 9157: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 9158: ! 9159: # Shell to use when invoking shell scripts. ! 9160: SHELL=$lt_SHELL ! 9161: ! 9162: # Whether or not to build shared libraries. ! 9163: build_libtool_libs=$enable_shared ! 9164: ! 9165: # Whether or not to build static libraries. ! 9166: build_old_libs=$enable_static ! 9167: ! 9168: # Whether or not to add -lc for building shared libraries. ! 9169: build_libtool_need_lc=$archive_cmds_need_lc ! 9170: ! 9171: # Whether or not to disallow shared libs when runtime libs are static ! 9172: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes ! 9173: ! 9174: # Whether or not to optimize for fast installation. ! 9175: fast_install=$enable_fast_install ! 9176: ! 9177: # The host system. ! 9178: host_alias=$host_alias ! 9179: host=$host ! 9180: ! 9181: # An echo program that does not interpret backslashes. ! 9182: echo=$lt_echo ! 9183: ! 9184: # The archiver. ! 9185: AR=$lt_AR ! 9186: AR_FLAGS=$lt_AR_FLAGS ! 9187: ! 9188: # A C compiler. ! 9189: LTCC=$lt_LTCC ! 9190: ! 9191: # A language-specific compiler. ! 9192: CC=$lt_compiler ! 9193: ! 9194: # Is the compiler the GNU C compiler? ! 9195: with_gcc=$GCC ! 9196: ! 9197: # An ERE matcher. ! 9198: EGREP=$lt_EGREP ! 9199: ! 9200: # The linker used to build libraries. ! 9201: LD=$lt_LD ! 9202: ! 9203: # Whether we need hard or soft links. ! 9204: LN_S=$lt_LN_S ! 9205: ! 9206: # A BSD-compatible nm program. ! 9207: NM=$lt_NM ! 9208: ! 9209: # A symbol stripping program ! 9210: STRIP=$STRIP ! 9211: ! 9212: # Used to examine libraries when file_magic_cmd begins "file" ! 9213: MAGIC_CMD=$MAGIC_CMD ! 9214: ! 9215: # Used on cygwin: DLL creation program. ! 9216: DLLTOOL="$DLLTOOL" ! 9217: ! 9218: # Used on cygwin: object dumper. ! 9219: OBJDUMP="$OBJDUMP" ! 9220: ! 9221: # Used on cygwin: assembler. ! 9222: AS="$AS" ! 9223: ! 9224: # The name of the directory that contains temporary libtool files. ! 9225: objdir=$objdir ! 9226: ! 9227: # How to create reloadable object files. ! 9228: reload_flag=$lt_reload_flag ! 9229: reload_cmds=$lt_reload_cmds ! 9230: ! 9231: # How to pass a linker flag through the compiler. ! 9232: wl=$lt_lt_prog_compiler_wl ! 9233: ! 9234: # Object file suffix (normally "o"). ! 9235: objext="$ac_objext" ! 9236: ! 9237: # Old archive suffix (normally "a"). ! 9238: libext="$libext" ! 9239: ! 9240: # Shared library suffix (normally ".so"). ! 9241: shrext='$shrext' ! 9242: ! 9243: # Executable file suffix (normally ""). ! 9244: exeext="$exeext" ! 9245: ! 9246: # Additional compiler flags for building library objects. ! 9247: pic_flag=$lt_lt_prog_compiler_pic ! 9248: pic_mode=$pic_mode ! 9249: ! 9250: # What is the maximum length of a command? ! 9251: max_cmd_len=$lt_cv_sys_max_cmd_len ! 9252: ! 9253: # Does compiler simultaneously support -c and -o options? ! 9254: compiler_c_o=$lt_lt_cv_prog_compiler_c_o ! 9255: ! 9256: # Must we lock files when doing compilation ? ! 9257: need_locks=$lt_need_locks ! 9258: ! 9259: # Do we need the lib prefix for modules? ! 9260: need_lib_prefix=$need_lib_prefix ! 9261: ! 9262: # Do we need a version for libraries? ! 9263: need_version=$need_version ! 9264: ! 9265: # Whether dlopen is supported. ! 9266: dlopen_support=$enable_dlopen ! 9267: ! 9268: # Whether dlopen of programs is supported. ! 9269: dlopen_self=$enable_dlopen_self ! 9270: ! 9271: # Whether dlopen of statically linked programs is supported. ! 9272: dlopen_self_static=$enable_dlopen_self_static ! 9273: ! 9274: # Compiler flag to prevent dynamic linking. ! 9275: link_static_flag=$lt_lt_prog_compiler_static ! 9276: ! 9277: # Compiler flag to turn off builtin functions. ! 9278: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag ! 9279: ! 9280: # Compiler flag to allow reflexive dlopens. ! 9281: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec ! 9282: ! 9283: # Compiler flag to generate shared objects directly from archives. ! 9284: whole_archive_flag_spec=$lt_whole_archive_flag_spec ! 9285: ! 9286: # Compiler flag to generate thread-safe objects. ! 9287: thread_safe_flag_spec=$lt_thread_safe_flag_spec ! 9288: ! 9289: # Library versioning type. ! 9290: version_type=$version_type ! 9291: ! 9292: # Format of library name prefix. ! 9293: libname_spec=$lt_libname_spec ! 9294: ! 9295: # List of archive names. First name is the real one, the rest are links. ! 9296: # The last name is the one that the linker finds with -lNAME. ! 9297: library_names_spec=$lt_library_names_spec ! 9298: ! 9299: # The coded name of the library, if different from the real name. ! 9300: soname_spec=$lt_soname_spec ! 9301: ! 9302: # Commands used to build and install an old-style archive. ! 9303: RANLIB=$lt_RANLIB ! 9304: old_archive_cmds=$lt_old_archive_cmds ! 9305: old_postinstall_cmds=$lt_old_postinstall_cmds ! 9306: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 9307: ! 9308: # Create an old-style archive from a shared archive. ! 9309: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds ! 9310: ! 9311: # Create a temporary old-style archive to link instead of a shared archive. ! 9312: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds ! 9313: ! 9314: # Commands used to build and install a shared archive. ! 9315: archive_cmds=$lt_archive_cmds ! 9316: archive_expsym_cmds=$lt_archive_expsym_cmds ! 9317: postinstall_cmds=$lt_postinstall_cmds ! 9318: postuninstall_cmds=$lt_postuninstall_cmds ! 9319: ! 9320: # Commands used to build a loadable module (assumed same as above if empty) ! 9321: module_cmds=$lt_module_cmds ! 9322: module_expsym_cmds=$lt_module_expsym_cmds ! 9323: ! 9324: # Commands to strip libraries. ! 9325: old_striplib=$lt_old_striplib ! 9326: striplib=$lt_striplib ! 9327: ! 9328: # Dependencies to place before the objects being linked to create a ! 9329: # shared library. ! 9330: predep_objects=$lt_predep_objects ! 9331: ! 9332: # Dependencies to place after the objects being linked to create a ! 9333: # shared library. ! 9334: postdep_objects=$lt_postdep_objects ! 9335: ! 9336: # Dependencies to place before the objects being linked to create a ! 9337: # shared library. ! 9338: predeps=$lt_predeps ! 9339: ! 9340: # Dependencies to place after the objects being linked to create a ! 9341: # shared library. ! 9342: postdeps=$lt_postdeps ! 9343: ! 9344: # The library search path used internally by the compiler when linking ! 9345: # a shared library. ! 9346: compiler_lib_search_path=$lt_compiler_lib_search_path ! 9347: ! 9348: # Method to check whether dependent libraries are shared objects. ! 9349: deplibs_check_method=$lt_deplibs_check_method ! 9350: ! 9351: # Command to use when deplibs_check_method == file_magic. ! 9352: file_magic_cmd=$lt_file_magic_cmd ! 9353: ! 9354: # Flag that allows shared libraries with undefined symbols to be built. ! 9355: allow_undefined_flag=$lt_allow_undefined_flag ! 9356: ! 9357: # Flag that forces no undefined symbols. ! 9358: no_undefined_flag=$lt_no_undefined_flag ! 9359: ! 9360: # Commands used to finish a libtool library installation in a directory. ! 9361: finish_cmds=$lt_finish_cmds ! 9362: ! 9363: # Same as above, but a single script fragment to be evaled but not shown. ! 9364: finish_eval=$lt_finish_eval ! 9365: ! 9366: # Take the output of nm and produce a listing of raw symbols and C names. ! 9367: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 9368: ! 9369: # Transform the output of nm in a proper C declaration ! 9370: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 9371: ! 9372: # Transform the output of nm in a C name address pair ! 9373: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 9374: ! 9375: # This is the shared library runtime path variable. ! 9376: runpath_var=$runpath_var ! 9377: ! 9378: # This is the shared library path variable. ! 9379: shlibpath_var=$shlibpath_var ! 9380: ! 9381: # Is shlibpath searched before the hard-coded library search path? ! 9382: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 9383: ! 9384: # How to hardcode a shared library path into an executable. ! 9385: hardcode_action=$hardcode_action ! 9386: ! 9387: # Whether we should hardcode library paths into libraries. ! 9388: hardcode_into_libs=$hardcode_into_libs ! 9389: ! 9390: # Flag to hardcode \$libdir into a binary during linking. ! 9391: # This must work even if \$libdir does not exist. ! 9392: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec ! 9393: ! 9394: # If ld is used when linking, flag to hardcode \$libdir into ! 9395: # a binary during linking. This must work even if \$libdir does ! 9396: # not exist. ! 9397: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld ! 9398: ! 9399: # Whether we need a single -rpath flag with a separated argument. ! 9400: hardcode_libdir_separator=$lt_hardcode_libdir_separator ! 9401: ! 9402: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 9403: # resulting binary. ! 9404: hardcode_direct=$hardcode_direct ! 9405: ! 9406: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 9407: # resulting binary. ! 9408: hardcode_minus_L=$hardcode_minus_L ! 9409: ! 9410: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 9411: # the resulting binary. ! 9412: hardcode_shlibpath_var=$hardcode_shlibpath_var ! 9413: ! 9414: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 9415: # and all subsequent libraries and executables linked against it. ! 9416: hardcode_automatic=$hardcode_automatic ! 9417: ! 9418: # Variables whose values should be saved in libtool wrapper scripts and ! 9419: # restored at relink time. ! 9420: variables_saved_for_relink="$variables_saved_for_relink" ! 9421: ! 9422: # Whether libtool must link a program against all its dependency libraries. ! 9423: link_all_deplibs=$link_all_deplibs ! 9424: ! 9425: # Compile-time system search path for libraries ! 9426: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 9427: ! 9428: # Run-time system search path for libraries ! 9429: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 9430: ! 9431: # Fix the shell variable \$srcfile for the compiler. ! 9432: fix_srcfile_path="$fix_srcfile_path" ! 9433: ! 9434: # Set to yes if exported symbols are required. ! 9435: always_export_symbols=$always_export_symbols ! 9436: ! 9437: # The commands to list exported symbols. ! 9438: export_symbols_cmds=$lt_export_symbols_cmds ! 9439: ! 9440: # The commands to extract the exported symbol list from a shared archive. ! 9441: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 9442: ! 9443: # Symbols that should not be listed in the preloaded symbols. ! 9444: exclude_expsyms=$lt_exclude_expsyms ! 9445: ! 9446: # Symbols that must always be exported. ! 9447: include_expsyms=$lt_include_expsyms ! 9448: ! 9449: # ### END LIBTOOL CONFIG ! 9450: ! 9451: __EOF__ ! 9452: ! 9453: ! 9454: case $host_os in ! 9455: aix3*) ! 9456: cat <<\EOF >> "$cfgfile" ! 9457: ! 9458: # AIX sometimes has problems with the GCC collect2 program. For some ! 9459: # reason, if we set the COLLECT_NAMES environment variable, the problems ! 9460: # vanish in a puff of smoke. ! 9461: if test "X${COLLECT_NAMES+set}" != Xset; then ! 9462: COLLECT_NAMES= ! 9463: export COLLECT_NAMES ! 9464: fi ! 9465: EOF ! 9466: ;; ! 9467: esac ! 9468: ! 9469: # We use sed instead of cat because bash on DJGPP gets confused if ! 9470: # if finds mixed CR/LF and LF-only lines. Since sed operates in ! 9471: # text mode, it properly converts lines to CR/LF. This bash problem ! 9472: # is reportedly fixed, but why not run on old versions too? ! 9473: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) ! 9474: ! 9475: mv -f "$cfgfile" "$ofile" || \ ! 9476: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") ! 9477: chmod +x "$ofile" ! 9478: ! 9479: else ! 9480: # If there is no Makefile yet, we rely on a make rule to execute ! 9481: # `config.status --recheck' to rerun these tests and create the ! 9482: # libtool script then. ! 9483: test -f Makefile && make "$ltmain" ! 9484: fi ! 9485: ! 9486: ! 9487: ac_ext=c ! 9488: ac_cpp='$CPP $CPPFLAGS' ! 9489: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 9490: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 9491: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 9492: ! 9493: CC="$lt_save_CC" ! 9494: ! 9495: ! 9496: # Check whether --with-tags or --without-tags was given. ! 9497: if test "${with_tags+set}" = set; then ! 9498: withval="$with_tags" ! 9499: tagnames="$withval" ! 9500: fi; ! 9501: ! 9502: if test -f "$ltmain" && test -n "$tagnames"; then ! 9503: if test ! -f "${ofile}"; then ! 9504: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 ! 9505: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} ! 9506: fi ! 9507: ! 9508: if test -z "$LTCC"; then ! 9509: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" ! 9510: if test -z "$LTCC"; then ! 9511: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 ! 9512: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} ! 9513: else ! 9514: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 ! 9515: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} ! 9516: fi ! 9517: fi ! 9518: ! 9519: # Extract list of available tagged configurations in $ofile. ! 9520: # Note that this assumes the entire list is on one line. ! 9521: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` ! 9522: ! 9523: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ! 9524: for tagname in $tagnames; do ! 9525: IFS="$lt_save_ifs" ! 9526: # Check whether tagname contains only valid characters ! 9527: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in ! 9528: "") ;; ! 9529: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 ! 9530: echo "$as_me: error: invalid tag name: $tagname" >&2;} ! 9531: { (exit 1); exit 1; }; } ! 9532: ;; ! 9533: esac ! 9534: ! 9535: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null ! 9536: then ! 9537: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 ! 9538: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} ! 9539: { (exit 1); exit 1; }; } ! 9540: fi ! 9541: ! 9542: # Update the list of available tags. ! 9543: if test -n "$tagname"; then ! 9544: echo appending configuration tag \"$tagname\" to $ofile ! 9545: ! 9546: case $tagname in ! 9547: CXX) ! 9548: if test -n "$CXX" && test "X$CXX" != "Xno"; then ! 9549: ac_ext=cc ! 9550: ac_cpp='$CXXCPP $CPPFLAGS' ! 9551: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 9552: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 9553: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ! 9554: ! 9555: ! 9556: ! 9557: ! 9558: archive_cmds_need_lc_CXX=no ! 9559: allow_undefined_flag_CXX= ! 9560: always_export_symbols_CXX=no ! 9561: archive_expsym_cmds_CXX= ! 9562: export_dynamic_flag_spec_CXX= ! 9563: hardcode_direct_CXX=no ! 9564: hardcode_libdir_flag_spec_CXX= ! 9565: hardcode_libdir_flag_spec_ld_CXX= ! 9566: hardcode_libdir_separator_CXX= ! 9567: hardcode_minus_L_CXX=no ! 9568: hardcode_automatic_CXX=no ! 9569: module_cmds_CXX= ! 9570: module_expsym_cmds_CXX= ! 9571: link_all_deplibs_CXX=unknown ! 9572: old_archive_cmds_CXX=$old_archive_cmds ! 9573: no_undefined_flag_CXX= ! 9574: whole_archive_flag_spec_CXX= ! 9575: enable_shared_with_static_runtimes_CXX=no ! 9576: ! 9577: # Dependencies to place before and after the object being linked: ! 9578: predep_objects_CXX= ! 9579: postdep_objects_CXX= ! 9580: predeps_CXX= ! 9581: postdeps_CXX= ! 9582: compiler_lib_search_path_CXX= ! 9583: ! 9584: # Source file extension for C++ test sources. ! 9585: ac_ext=cc ! 9586: ! 9587: # Object file extension for compiled C++ test sources. ! 9588: objext=o ! 9589: objext_CXX=$objext ! 9590: ! 9591: # Code to be used in simple compile tests ! 9592: lt_simple_compile_test_code="int some_variable = 0;\n" ! 9593: ! 9594: # Code to be used in simple link tests ! 9595: lt_simple_link_test_code='int main(int, char *) { return(0); }\n' ! 9596: ! 9597: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 9598: ! 9599: # If no C compiler was specified, use CC. ! 9600: LTCC=${LTCC-"$CC"} ! 9601: ! 9602: # Allow CC to be a program name with arguments. ! 9603: compiler=$CC ! 9604: ! 9605: ! 9606: # Allow CC to be a program name with arguments. ! 9607: lt_save_CC=$CC ! 9608: lt_save_LD=$LD ! 9609: lt_save_GCC=$GCC ! 9610: GCC=$GXX ! 9611: lt_save_with_gnu_ld=$with_gnu_ld ! 9612: lt_save_path_LD=$lt_cv_path_LD ! 9613: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then ! 9614: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx ! 9615: else ! 9616: unset lt_cv_prog_gnu_ld ! 9617: fi ! 9618: if test -n "${lt_cv_path_LDCXX+set}"; then ! 9619: lt_cv_path_LD=$lt_cv_path_LDCXX ! 9620: else ! 9621: unset lt_cv_path_LD ! 9622: fi ! 9623: test -z "${LDCXX+set}" || LD=$LDCXX ! 9624: CC=${CXX-"c++"} ! 9625: compiler=$CC ! 9626: compiler_CXX=$CC ! 9627: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` ! 9628: ! 9629: # We don't want -fno-exception wen compiling C++ code, so set the ! 9630: # no_builtin_flag separately ! 9631: if test "$GXX" = yes; then ! 9632: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' ! 9633: else ! 9634: lt_prog_compiler_no_builtin_flag_CXX= ! 9635: fi ! 9636: ! 9637: if test "$GXX" = yes; then ! 9638: # Set up default GNU C++ configuration ! 9639: ! 9640: ! 9641: # Check whether --with-gnu-ld or --without-gnu-ld was given. ! 9642: if test "${with_gnu_ld+set}" = set; then ! 9643: withval="$with_gnu_ld" ! 9644: test "$withval" = no || with_gnu_ld=yes ! 9645: else ! 9646: with_gnu_ld=no ! 9647: fi; ! 9648: ac_prog=ld ! 9649: if test "$GCC" = yes; then ! 9650: # Check if gcc -print-prog-name=ld gives a path. ! 9651: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ! 9652: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 ! 9653: case $host in ! 9654: *-*-mingw*) ! 9655: # gcc leaves a trailing carriage return which upsets mingw ! 9656: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ! 9657: *) ! 9658: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ! 9659: esac ! 9660: case $ac_prog in ! 9661: # Accept absolute paths. ! 9662: [\\/]* | ?:[\\/]*) ! 9663: re_direlt='/[^/][^/]*/\.\./' ! 9664: # Canonicalize the path of ld ! 9665: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` ! 9666: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ! 9667: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` ! 9668: done ! 9669: test -z "$LD" && LD="$ac_prog" ! 9670: ;; ! 9671: "") ! 9672: # If it fails, then pretend we aren't using GCC. ! 9673: ac_prog=ld ! 9674: ;; ! 9675: *) ! 9676: # If it is relative, then search for the first ld in PATH. ! 9677: with_gnu_ld=unknown ! 9678: ;; ! 9679: esac ! 9680: elif test "$with_gnu_ld" = yes; then ! 9681: echo "$as_me:$LINENO: checking for GNU ld" >&5 ! 9682: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 ! 9683: else ! 9684: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ! 9685: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 ! 9686: fi ! 9687: if test "${lt_cv_path_LD+set}" = set; then ! 9688: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9689: else ! 9690: if test -z "$LD"; then ! 9691: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ! 9692: for ac_dir in $PATH; do ! 9693: IFS="$lt_save_ifs" ! 9694: test -z "$ac_dir" && ac_dir=. ! 9695: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ! 9696: lt_cv_path_LD="$ac_dir/$ac_prog" ! 9697: # Check to see if the program is GNU ld. I'd rather use --version, ! 9698: # but apparently some GNU ld's only accept -v. ! 9699: # Break only if it was the GNU/non-GNU ld that we prefer. ! 9700: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in ! 9701: *GNU* | *'with BFD'*) ! 9702: test "$with_gnu_ld" != no && break ! 9703: ;; ! 9704: *) ! 9705: test "$with_gnu_ld" != yes && break ! 9706: ;; ! 9707: esac ! 9708: fi ! 9709: done ! 9710: IFS="$lt_save_ifs" ! 9711: else ! 9712: lt_cv_path_LD="$LD" # Let the user override the test with a path. ! 9713: fi ! 9714: fi ! 9715: ! 9716: LD="$lt_cv_path_LD" ! 9717: if test -n "$LD"; then ! 9718: echo "$as_me:$LINENO: result: $LD" >&5 ! 9719: echo "${ECHO_T}$LD" >&6 ! 9720: else ! 9721: echo "$as_me:$LINENO: result: no" >&5 ! 9722: echo "${ECHO_T}no" >&6 ! 9723: fi ! 9724: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ! 9725: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ! 9726: { (exit 1); exit 1; }; } ! 9727: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ! 9728: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 ! 9729: if test "${lt_cv_prog_gnu_ld+set}" = set; then ! 9730: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 9731: else ! 9732: # I'd rather use --version here, but apparently some GNU ld's only accept -v. ! 9733: case `"$LD" -v 2>&1 </dev/null` in ! 9734: *GNU* | *'with BFD'*) ! 9735: lt_cv_prog_gnu_ld=yes ! 9736: ;; ! 9737: *) ! 9738: lt_cv_prog_gnu_ld=no ! 9739: ;; ! 9740: esac ! 9741: fi ! 9742: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 ! 9743: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 ! 9744: with_gnu_ld=$lt_cv_prog_gnu_ld ! 9745: ! 9746: ! 9747: ! 9748: # Check if GNU C++ uses GNU ld as the underlying linker, since the ! 9749: # archiving commands below assume that GNU ld is being used. ! 9750: if test "$with_gnu_ld" = yes; then ! 9751: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 9752: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 9753: ! 9754: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' ! 9755: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ! 9756: ! 9757: # If archive_cmds runs LD, not CC, wlarc should be empty ! 9758: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to ! 9759: # investigate it a little bit more. (MM) ! 9760: wlarc='${wl}' ! 9761: ! 9762: # ancient GNU ld didn't support --whole-archive et. al. ! 9763: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ ! 9764: grep 'no-whole-archive' > /dev/null; then ! 9765: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 9766: else ! 9767: whole_archive_flag_spec_CXX= ! 9768: fi ! 9769: else ! 9770: with_gnu_ld=no ! 9771: wlarc= ! 9772: ! 9773: # A generic and very simple default shared library creation ! 9774: # command for GNU C++ for the case where it uses the native ! 9775: # linker, instead of GNU ld. If possible, this setting should ! 9776: # overridden to take advantage of the native linker features on ! 9777: # the platform it is being used on. ! 9778: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ! 9779: fi ! 9780: ! 9781: # Commands to make compiler produce verbose output that lists ! 9782: # what "hidden" libraries, object files and flags are used when ! 9783: # linking a shared library. ! 9784: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' ! 9785: ! 9786: else ! 9787: GXX=no ! 9788: with_gnu_ld=no ! 9789: wlarc= ! 9790: fi ! 9791: ! 9792: # PORTME: fill in a description of your system's C++ link characteristics ! 9793: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 9794: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 9795: ld_shlibs_CXX=yes ! 9796: case $host_os in ! 9797: aix3*) ! 9798: # FIXME: insert proper C++ library support ! 9799: ld_shlibs_CXX=no ! 9800: ;; ! 9801: aix4* | aix5*) ! 9802: if test "$host_cpu" = ia64; then ! 9803: # On IA64, the linker does run time linking by default, so we don't ! 9804: # have to do anything special. ! 9805: aix_use_runtimelinking=no ! 9806: exp_sym_flag='-Bexport' ! 9807: no_entry_flag="" ! 9808: else ! 9809: aix_use_runtimelinking=no ! 9810: ! 9811: # Test if we are trying to use run time linking or normal ! 9812: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 9813: # need to do runtime linking. ! 9814: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 9815: for ld_flag in $LDFLAGS; do ! 9816: case $ld_flag in ! 9817: *-brtl*) ! 9818: aix_use_runtimelinking=yes ! 9819: break ! 9820: ;; ! 9821: esac ! 9822: done ! 9823: esac ! 9824: ! 9825: exp_sym_flag='-bexport' ! 9826: no_entry_flag='-bnoentry' ! 9827: fi ! 9828: ! 9829: # When large executables or shared objects are built, AIX ld can ! 9830: # have problems creating the table of contents. If linking a library ! 9831: # or program results in "error TOC overflow" add -mminimal-toc to ! 9832: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 9833: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 9834: ! 9835: archive_cmds_CXX='' ! 9836: hardcode_direct_CXX=yes ! 9837: hardcode_libdir_separator_CXX=':' ! 9838: link_all_deplibs_CXX=yes ! 9839: ! 9840: if test "$GXX" = yes; then ! 9841: case $host_os in aix4.012|aix4.012.*) ! 9842: # We only want to do this on AIX 4.2 and lower, the check ! 9843: # below for broken collect2 doesn't work under 4.3+ ! 9844: collect2name=`${CC} -print-prog-name=collect2` ! 9845: if test -f "$collect2name" && \ ! 9846: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 9847: then ! 9848: # We have reworked collect2 ! 9849: hardcode_direct_CXX=yes ! 9850: else ! 9851: # We have old collect2 ! 9852: hardcode_direct_CXX=unsupported ! 9853: # It fails to find uninstalled libraries when the uninstalled ! 9854: # path is not listed in the libpath. Setting hardcode_minus_L ! 9855: # to unsupported forces relinking ! 9856: hardcode_minus_L_CXX=yes ! 9857: hardcode_libdir_flag_spec_CXX='-L$libdir' ! 9858: hardcode_libdir_separator_CXX= ! 9859: fi ! 9860: esac ! 9861: shared_flag='-shared' ! 9862: else ! 9863: # not using gcc ! 9864: if test "$host_cpu" = ia64; then ! 9865: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 9866: # chokes on -Wl,-G. The following line is correct: ! 9867: shared_flag='-G' ! 9868: else ! 9869: if test "$aix_use_runtimelinking" = yes; then ! 9870: shared_flag='${wl}-G' ! 9871: else ! 9872: shared_flag='${wl}-bM:SRE' ! 9873: fi ! 9874: fi ! 9875: fi ! 9876: ! 9877: # It seems that -bexpall does not export symbols beginning with ! 9878: # underscore (_), so it is better to generate a list of symbols to export. ! 9879: always_export_symbols_CXX=yes ! 9880: if test "$aix_use_runtimelinking" = yes; then ! 9881: # Warning - without using the other runtime loading flags (-brtl), ! 9882: # -berok will link without error, but may produce a broken library. ! 9883: allow_undefined_flag_CXX='-berok' ! 9884: # Determine the default libpath from the value encoded in an empty executable. ! 9885: cat >conftest.$ac_ext <<_ACEOF ! 9886: #line $LINENO "configure" ! 9887: /* confdefs.h. */ ! 9888: _ACEOF ! 9889: cat confdefs.h >>conftest.$ac_ext ! 9890: cat >>conftest.$ac_ext <<_ACEOF ! 9891: /* end confdefs.h. */ ! 9892: ! 9893: int ! 9894: main () ! 9895: { ! 9896: ! 9897: ; ! 9898: return 0; ! 9899: } ! 9900: _ACEOF ! 9901: rm -f conftest.$ac_objext conftest$ac_exeext ! 9902: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 9903: (eval $ac_link) 2>&5 ! 9904: ac_status=$? ! 9905: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 9906: (exit $ac_status); } && ! 9907: { ac_try='test -s conftest$ac_exeext' ! 9908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 9909: (eval $ac_try) 2>&5 ! 9910: ac_status=$? ! 9911: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 9912: (exit $ac_status); }; }; then ! 9913: ! 9914: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 9915: }'` ! 9916: # Check for a 64-bit object if we didn't find anything. ! 9917: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 9918: }'`; fi ! 9919: else ! 9920: echo "$as_me: failed program was:" >&5 ! 9921: sed 's/^/| /' conftest.$ac_ext >&5 ! 9922: ! 9923: fi ! 9924: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 9925: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 9926: ! 9927: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ! 9928: ! 9929: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 9930: else ! 9931: if test "$host_cpu" = ia64; then ! 9932: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' ! 9933: allow_undefined_flag_CXX="-z nodefs" ! 9934: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 9935: else ! 9936: # Determine the default libpath from the value encoded in an empty executable. ! 9937: cat >conftest.$ac_ext <<_ACEOF ! 9938: #line $LINENO "configure" ! 9939: /* confdefs.h. */ ! 9940: _ACEOF ! 9941: cat confdefs.h >>conftest.$ac_ext ! 9942: cat >>conftest.$ac_ext <<_ACEOF ! 9943: /* end confdefs.h. */ ! 9944: ! 9945: int ! 9946: main () ! 9947: { ! 9948: ! 9949: ; ! 9950: return 0; ! 9951: } ! 9952: _ACEOF ! 9953: rm -f conftest.$ac_objext conftest$ac_exeext ! 9954: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 9955: (eval $ac_link) 2>&5 ! 9956: ac_status=$? ! 9957: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 9958: (exit $ac_status); } && ! 9959: { ac_try='test -s conftest$ac_exeext' ! 9960: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 9961: (eval $ac_try) 2>&5 ! 9962: ac_status=$? ! 9963: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 9964: (exit $ac_status); }; }; then ! 9965: ! 9966: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 9967: }'` ! 9968: # Check for a 64-bit object if we didn't find anything. ! 9969: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 9970: }'`; fi ! 9971: else ! 9972: echo "$as_me: failed program was:" >&5 ! 9973: sed 's/^/| /' conftest.$ac_ext >&5 ! 9974: ! 9975: fi ! 9976: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 9977: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 9978: ! 9979: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ! 9980: # Warning - without using the other run time loading flags, ! 9981: # -berok will link without error, but may produce a broken library. ! 9982: no_undefined_flag_CXX=' ${wl}-bernotok' ! 9983: allow_undefined_flag_CXX=' ${wl}-berok' ! 9984: # -bexpall does not export symbols beginning with underscore (_) ! 9985: always_export_symbols_CXX=yes ! 9986: # Exported symbols can be pulled into shared objects from archives ! 9987: whole_archive_flag_spec_CXX=' ' ! 9988: archive_cmds_need_lc_CXX=yes ! 9989: # This is similar to how AIX traditionally builds it's shared libraries. ! 9990: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 9991: fi ! 9992: fi ! 9993: ;; ! 9994: chorus*) ! 9995: case $cc_basename in ! 9996: *) ! 9997: # FIXME: insert proper C++ library support ! 9998: ld_shlibs_CXX=no ! 9999: ;; ! 10000: esac ! 10001: ;; ! 10002: ! 10003: cygwin* | mingw* | pw32*) ! 10004: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, ! 10005: # as there is no search path for DLLs. ! 10006: hardcode_libdir_flag_spec_CXX='-L$libdir' ! 10007: allow_undefined_flag_CXX=unsupported ! 10008: always_export_symbols_CXX=no ! 10009: enable_shared_with_static_runtimes_CXX=yes ! 10010: ! 10011: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 10012: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 10013: # If the export-symbols file already is a .def file (1st line ! 10014: # is EXPORTS), use it as is; otherwise, prepend... ! 10015: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 10016: cp $export_symbols $output_objdir/$soname.def; ! 10017: else ! 10018: echo EXPORTS > $output_objdir/$soname.def; ! 10019: cat $export_symbols >> $output_objdir/$soname.def; ! 10020: fi~ ! 10021: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 10022: else ! 10023: ld_shlibs_CXX=no ! 10024: fi ! 10025: ;; ! 10026: ! 10027: darwin* | rhapsody*) ! 10028: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 10029: archive_cmds_need_lc_CXX=no ! 10030: case "$host_os" in ! 10031: rhapsody* | darwin1.[012]) ! 10032: allow_undefined_flag_CXX='-undefined suppress' ! 10033: ;; ! 10034: *) # Darwin 1.3 on ! 10035: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' ! 10036: ;; ! 10037: esac ! 10038: lt_int_apple_cc_single_mod=no ! 10039: output_verbose_link_cmd='echo' ! 10040: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 10041: lt_int_apple_cc_single_mod=yes ! 10042: fi ! 10043: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 10044: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 10045: else ! 10046: archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 10047: fi ! 10048: module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 10049: ! 10050: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 10051: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 10052: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 10053: else ! 10054: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 10055: fi ! 10056: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 10057: hardcode_direct_CXX=no ! 10058: hardcode_automatic_CXX=yes ! 10059: hardcode_shlibpath_var_CXX=unsupported ! 10060: whole_archive_flag_spec_CXX='-all_load $convenience' ! 10061: link_all_deplibs_CXX=yes ! 10062: fi ! 10063: ;; ! 10064: ! 10065: dgux*) ! 10066: case $cc_basename in ! 10067: ec++) ! 10068: # FIXME: insert proper C++ library support ! 10069: ld_shlibs_CXX=no ! 10070: ;; ! 10071: ghcx) ! 10072: # Green Hills C++ Compiler ! 10073: # FIXME: insert proper C++ library support ! 10074: ld_shlibs_CXX=no ! 10075: ;; ! 10076: *) ! 10077: # FIXME: insert proper C++ library support ! 10078: ld_shlibs_CXX=no ! 10079: ;; ! 10080: esac ! 10081: ;; ! 10082: freebsd12*) ! 10083: # C++ shared libraries reported to be fairly broken before switch to ELF ! 10084: ld_shlibs_CXX=no ! 10085: ;; ! 10086: freebsd-elf*) ! 10087: archive_cmds_need_lc_CXX=no ! 10088: ;; ! 10089: freebsd*) ! 10090: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF ! 10091: # conventions ! 10092: ld_shlibs_CXX=yes ! 10093: ;; ! 10094: gnu*) ! 10095: ;; ! 10096: hpux9*) ! 10097: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ! 10098: hardcode_libdir_separator_CXX=: ! 10099: export_dynamic_flag_spec_CXX='${wl}-E' ! 10100: hardcode_direct_CXX=yes ! 10101: hardcode_minus_L_CXX=yes # Not in the search PATH, ! 10102: # but as the default ! 10103: # location of the library. ! 10104: ! 10105: case $cc_basename in ! 10106: CC) ! 10107: # FIXME: insert proper C++ library support ! 10108: ld_shlibs_CXX=no ! 10109: ;; ! 10110: aCC) ! 10111: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ! 10112: # Commands to make compiler produce verbose output that lists ! 10113: # what "hidden" libraries, object files and flags are used when ! 10114: # linking a shared library. ! 10115: # ! 10116: # There doesn't appear to be a way to prevent this compiler from ! 10117: # explicitly linking system object files so we need to strip them ! 10118: # from the output so that they don't get included in the library ! 10119: # dependencies. ! 10120: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 10121: ;; ! 10122: *) ! 10123: if test "$GXX" = yes; then ! 10124: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ! 10125: else ! 10126: # FIXME: insert proper C++ library support ! 10127: ld_shlibs_CXX=no ! 10128: fi ! 10129: ;; ! 10130: esac ! 10131: ;; ! 10132: hpux10*|hpux11*) ! 10133: if test $with_gnu_ld = no; then ! 10134: case "$host_cpu" in ! 10135: hppa*64*) ! 10136: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ! 10137: hardcode_libdir_flag_spec_ld_CXX='+b $libdir' ! 10138: hardcode_libdir_separator_CXX=: ! 10139: ;; ! 10140: ia64*) ! 10141: hardcode_libdir_flag_spec_CXX='-L$libdir' ! 10142: ;; ! 10143: *) ! 10144: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ! 10145: hardcode_libdir_separator_CXX=: ! 10146: export_dynamic_flag_spec_CXX='${wl}-E' ! 10147: ;; ! 10148: esac ! 10149: fi ! 10150: case "$host_cpu" in ! 10151: hppa*64*) ! 10152: hardcode_direct_CXX=no ! 10153: hardcode_shlibpath_var_CXX=no ! 10154: ;; ! 10155: ia64*) ! 10156: hardcode_direct_CXX=no ! 10157: hardcode_shlibpath_var_CXX=no ! 10158: hardcode_minus_L_CXX=yes # Not in the search PATH, ! 10159: # but as the default ! 10160: # location of the library. ! 10161: ;; ! 10162: *) ! 10163: hardcode_direct_CXX=yes ! 10164: hardcode_minus_L_CXX=yes # Not in the search PATH, ! 10165: # but as the default ! 10166: # location of the library. ! 10167: ;; ! 10168: esac ! 10169: ! 10170: case $cc_basename in ! 10171: CC) ! 10172: # FIXME: insert proper C++ library support ! 10173: ld_shlibs_CXX=no ! 10174: ;; ! 10175: aCC) ! 10176: case "$host_cpu" in ! 10177: hppa*64*|ia64*) ! 10178: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ! 10179: ;; ! 10180: *) ! 10181: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ! 10182: ;; ! 10183: esac ! 10184: # Commands to make compiler produce verbose output that lists ! 10185: # what "hidden" libraries, object files and flags are used when ! 10186: # linking a shared library. ! 10187: # ! 10188: # There doesn't appear to be a way to prevent this compiler from ! 10189: # explicitly linking system object files so we need to strip them ! 10190: # from the output so that they don't get included in the library ! 10191: # dependencies. ! 10192: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 10193: ;; ! 10194: *) ! 10195: if test "$GXX" = yes; then ! 10196: if test $with_gnu_ld = no; then ! 10197: case "$host_cpu" in ! 10198: ia64*|hppa*64*) ! 10199: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ! 10200: ;; ! 10201: *) ! 10202: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ! 10203: ;; ! 10204: esac ! 10205: fi ! 10206: else ! 10207: # FIXME: insert proper C++ library support ! 10208: ld_shlibs_CXX=no ! 10209: fi ! 10210: ;; ! 10211: esac ! 10212: ;; ! 10213: irix5* | irix6*) ! 10214: case $cc_basename in ! 10215: CC) ! 10216: # SGI C++ ! 10217: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' ! 10218: ! 10219: # Archives containing C++ object files must be created using ! 10220: # "CC -ar", where "CC" is the IRIX C++ compiler. This is ! 10221: # necessary to make sure instantiated templates are included ! 10222: # in the archive. ! 10223: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ! 10224: ;; ! 10225: *) ! 10226: if test "$GXX" = yes; then ! 10227: if test "$with_gnu_ld" = no; then ! 10228: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' ! 10229: else ! 10230: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' ! 10231: fi ! 10232: fi ! 10233: link_all_deplibs_CXX=yes ! 10234: ;; ! 10235: esac ! 10236: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 10237: hardcode_libdir_separator_CXX=: ! 10238: ;; ! 10239: linux*) ! 10240: case $cc_basename in ! 10241: KCC) ! 10242: # Kuck and Associates, Inc. (KAI) C++ Compiler ! 10243: ! 10244: # KCC will only create a shared library if the output file ! 10245: # ends with ".so" (or ".sl" for HP-UX), so rename the library ! 10246: # to its proper name (with version) after linking. ! 10247: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' ! 10248: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' ! 10249: # Commands to make compiler produce verbose output that lists ! 10250: # what "hidden" libraries, object files and flags are used when ! 10251: # linking a shared library. ! 10252: # ! 10253: # There doesn't appear to be a way to prevent this compiler from ! 10254: # explicitly linking system object files so we need to strip them ! 10255: # from the output so that they don't get included in the library ! 10256: # dependencies. ! 10257: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 10258: ! 10259: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' ! 10260: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ! 10261: ! 10262: # Archives containing C++ object files must be created using ! 10263: # "CC -Bstatic", where "CC" is the KAI C++ compiler. ! 10264: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ! 10265: ;; ! 10266: icpc) ! 10267: # Intel C++ ! 10268: with_gnu_ld=yes ! 10269: archive_cmds_need_lc_CXX=no ! 10270: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 10271: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 10272: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ! 10273: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ! 10274: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ! 10275: ;; ! 10276: cxx) ! 10277: # Compaq C++ ! 10278: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 10279: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' ! 10280: ! 10281: runpath_var=LD_RUN_PATH ! 10282: hardcode_libdir_flag_spec_CXX='-rpath $libdir' ! 10283: hardcode_libdir_separator_CXX=: ! 10284: ! 10285: # Commands to make compiler produce verbose output that lists ! 10286: # what "hidden" libraries, object files and flags are used when ! 10287: # linking a shared library. ! 10288: # ! 10289: # There doesn't appear to be a way to prevent this compiler from ! 10290: # explicitly linking system object files so we need to strip them ! 10291: # from the output so that they don't get included in the library ! 10292: # dependencies. ! 10293: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 10294: ;; ! 10295: esac ! 10296: ;; ! 10297: lynxos*) ! 10298: # FIXME: insert proper C++ library support ! 10299: ld_shlibs_CXX=no ! 10300: ;; ! 10301: m88k*) ! 10302: # FIXME: insert proper C++ library support ! 10303: ld_shlibs_CXX=no ! 10304: ;; ! 10305: mvs*) ! 10306: case $cc_basename in ! 10307: cxx) ! 10308: # FIXME: insert proper C++ library support ! 10309: ld_shlibs_CXX=no ! 10310: ;; ! 10311: *) ! 10312: # FIXME: insert proper C++ library support ! 10313: ld_shlibs_CXX=no ! 10314: ;; ! 10315: esac ! 10316: ;; ! 10317: netbsd*) ! 10318: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 10319: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' ! 10320: wlarc= ! 10321: hardcode_libdir_flag_spec_CXX='-R$libdir' ! 10322: hardcode_direct_CXX=yes ! 10323: hardcode_shlibpath_var_CXX=no ! 10324: fi ! 10325: # Workaround some broken pre-1.5 toolchains ! 10326: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ! 10327: ;; ! 10328: osf3*) ! 10329: case $cc_basename in ! 10330: KCC) ! 10331: # Kuck and Associates, Inc. (KAI) C++ Compiler ! 10332: ! 10333: # KCC will only create a shared library if the output file ! 10334: # ends with ".so" (or ".sl" for HP-UX), so rename the library ! 10335: # to its proper name (with version) after linking. ! 10336: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' ! 10337: ! 10338: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ! 10339: hardcode_libdir_separator_CXX=: ! 10340: ! 10341: # Archives containing C++ object files must be created using ! 10342: # "CC -Bstatic", where "CC" is the KAI C++ compiler. ! 10343: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ! 10344: ! 10345: ;; ! 10346: RCC) ! 10347: # Rational C++ 2.4.1 ! 10348: # FIXME: insert proper C++ library support ! 10349: ld_shlibs_CXX=no ! 10350: ;; ! 10351: cxx) ! 10352: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ! 10353: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' ! 10354: ! 10355: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 10356: hardcode_libdir_separator_CXX=: ! 10357: ! 10358: # Commands to make compiler produce verbose output that lists ! 10359: # what "hidden" libraries, object files and flags are used when ! 10360: # linking a shared library. ! 10361: # ! 10362: # There doesn't appear to be a way to prevent this compiler from ! 10363: # explicitly linking system object files so we need to strip them ! 10364: # from the output so that they don't get included in the library ! 10365: # dependencies. ! 10366: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 10367: ;; ! 10368: *) ! 10369: if test "$GXX" = yes && test "$with_gnu_ld" = no; then ! 10370: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ! 10371: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' ! 10372: ! 10373: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 10374: hardcode_libdir_separator_CXX=: ! 10375: ! 10376: # Commands to make compiler produce verbose output that lists ! 10377: # what "hidden" libraries, object files and flags are used when ! 10378: # linking a shared library. ! 10379: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' ! 10380: ! 10381: else ! 10382: # FIXME: insert proper C++ library support ! 10383: ld_shlibs_CXX=no ! 10384: fi ! 10385: ;; ! 10386: esac ! 10387: ;; ! 10388: osf4* | osf5*) ! 10389: case $cc_basename in ! 10390: KCC) ! 10391: # Kuck and Associates, Inc. (KAI) C++ Compiler ! 10392: ! 10393: # KCC will only create a shared library if the output file ! 10394: # ends with ".so" (or ".sl" for HP-UX), so rename the library ! 10395: # to its proper name (with version) after linking. ! 10396: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' ! 10397: ! 10398: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ! 10399: hardcode_libdir_separator_CXX=: ! 10400: ! 10401: # Archives containing C++ object files must be created using ! 10402: # the KAI C++ compiler. ! 10403: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ! 10404: ;; ! 10405: RCC) ! 10406: # Rational C++ 2.4.1 ! 10407: # FIXME: insert proper C++ library support ! 10408: ld_shlibs_CXX=no ! 10409: ;; ! 10410: cxx) ! 10411: allow_undefined_flag_CXX=' -expect_unresolved \*' ! 10412: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' ! 10413: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ ! 10414: echo "-hidden">> $lib.exp~ ! 10415: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ ! 10416: $rm $lib.exp' ! 10417: ! 10418: hardcode_libdir_flag_spec_CXX='-rpath $libdir' ! 10419: hardcode_libdir_separator_CXX=: ! 10420: ! 10421: # Commands to make compiler produce verbose output that lists ! 10422: # what "hidden" libraries, object files and flags are used when ! 10423: # linking a shared library. ! 10424: # ! 10425: # There doesn't appear to be a way to prevent this compiler from ! 10426: # explicitly linking system object files so we need to strip them ! 10427: # from the output so that they don't get included in the library ! 10428: # dependencies. ! 10429: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 10430: ;; ! 10431: *) ! 10432: if test "$GXX" = yes && test "$with_gnu_ld" = no; then ! 10433: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ! 10434: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' ! 10435: ! 10436: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ! 10437: hardcode_libdir_separator_CXX=: ! 10438: ! 10439: # Commands to make compiler produce verbose output that lists ! 10440: # what "hidden" libraries, object files and flags are used when ! 10441: # linking a shared library. ! 10442: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' ! 10443: ! 10444: else ! 10445: # FIXME: insert proper C++ library support ! 10446: ld_shlibs_CXX=no ! 10447: fi ! 10448: ;; ! 10449: esac ! 10450: ;; ! 10451: psos*) ! 10452: # FIXME: insert proper C++ library support ! 10453: ld_shlibs_CXX=no ! 10454: ;; ! 10455: sco*) ! 10456: archive_cmds_need_lc_CXX=no ! 10457: case $cc_basename in ! 10458: CC) ! 10459: # FIXME: insert proper C++ library support ! 10460: ld_shlibs_CXX=no ! 10461: ;; ! 10462: *) ! 10463: # FIXME: insert proper C++ library support ! 10464: ld_shlibs_CXX=no ! 10465: ;; ! 10466: esac ! 10467: ;; ! 10468: sunos4*) ! 10469: case $cc_basename in ! 10470: CC) ! 10471: # Sun C++ 4.x ! 10472: # FIXME: insert proper C++ library support ! 10473: ld_shlibs_CXX=no ! 10474: ;; ! 10475: lcc) ! 10476: # Lucid ! 10477: # FIXME: insert proper C++ library support ! 10478: ld_shlibs_CXX=no ! 10479: ;; ! 10480: *) ! 10481: # FIXME: insert proper C++ library support ! 10482: ld_shlibs_CXX=no ! 10483: ;; ! 10484: esac ! 10485: ;; ! 10486: solaris*) ! 10487: case $cc_basename in ! 10488: CC) ! 10489: # Sun C++ 4.2, 5.x and Centerline C++ ! 10490: no_undefined_flag_CXX=' -zdefs' ! 10491: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ! 10492: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 10493: $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' ! 10494: ! 10495: hardcode_libdir_flag_spec_CXX='-R$libdir' ! 10496: hardcode_shlibpath_var_CXX=no ! 10497: case $host_os in ! 10498: solaris2.0-5 | solaris2.0-5.*) ;; ! 10499: *) ! 10500: # The C++ compiler is used as linker so we must use $wl ! 10501: # flag to pass the commands to the underlying system ! 10502: # linker. ! 10503: # Supported since Solaris 2.6 (maybe 2.5.1?) ! 10504: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ! 10505: ;; ! 10506: esac ! 10507: link_all_deplibs_CXX=yes ! 10508: ! 10509: # Commands to make compiler produce verbose output that lists ! 10510: # what "hidden" libraries, object files and flags are used when ! 10511: # linking a shared library. ! 10512: # ! 10513: # There doesn't appear to be a way to prevent this compiler from ! 10514: # explicitly linking system object files so we need to strip them ! 10515: # from the output so that they don't get included in the library ! 10516: # dependencies. ! 10517: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ! 10518: ! 10519: # Archives containing C++ object files must be created using ! 10520: # "CC -xar", where "CC" is the Sun C++ compiler. This is ! 10521: # necessary to make sure instantiated templates are included ! 10522: # in the archive. ! 10523: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ! 10524: ;; ! 10525: gcx) ! 10526: # Green Hills C++ Compiler ! 10527: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ! 10528: ! 10529: # The C++ compiler must be used to create the archive. ! 10530: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ! 10531: ;; ! 10532: *) ! 10533: # GNU C++ compiler with Solaris linker ! 10534: if test "$GXX" = yes && test "$with_gnu_ld" = no; then ! 10535: no_undefined_flag_CXX=' ${wl}-z ${wl}defs' ! 10536: if $CC --version | grep -v '^2\.7' > /dev/null; then ! 10537: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ! 10538: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 10539: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' ! 10540: ! 10541: # Commands to make compiler produce verbose output that lists ! 10542: # what "hidden" libraries, object files and flags are used when ! 10543: # linking a shared library. ! 10544: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" ! 10545: else ! 10546: # g++ 2.7 appears to require `-G' NOT `-shared' on this ! 10547: # platform. ! 10548: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ! 10549: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 10550: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' ! 10551: ! 10552: # Commands to make compiler produce verbose output that lists ! 10553: # what "hidden" libraries, object files and flags are used when ! 10554: # linking a shared library. ! 10555: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" ! 10556: fi ! 10557: ! 10558: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' ! 10559: fi ! 10560: ;; ! 10561: esac ! 10562: ;; ! 10563: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 10564: archive_cmds_need_lc_CXX=no ! 10565: ;; ! 10566: tandem*) ! 10567: case $cc_basename in ! 10568: NCC) ! 10569: # NonStop-UX NCC 3.20 ! 10570: # FIXME: insert proper C++ library support ! 10571: ld_shlibs_CXX=no ! 10572: ;; ! 10573: *) ! 10574: # FIXME: insert proper C++ library support ! 10575: ld_shlibs_CXX=no ! 10576: ;; ! 10577: esac ! 10578: ;; ! 10579: vxworks*) ! 10580: # FIXME: insert proper C++ library support ! 10581: ld_shlibs_CXX=no ! 10582: ;; ! 10583: *) ! 10584: # FIXME: insert proper C++ library support ! 10585: ld_shlibs_CXX=no ! 10586: ;; ! 10587: esac ! 10588: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ! 10589: echo "${ECHO_T}$ld_shlibs_CXX" >&6 ! 10590: test "$ld_shlibs_CXX" = no && can_build_shared=no ! 10591: ! 10592: GCC_CXX="$GXX" ! 10593: LD_CXX="$LD" ! 10594: ! 10595: ! 10596: cat > conftest.$ac_ext <<EOF ! 10597: class Foo ! 10598: { ! 10599: public: ! 10600: Foo (void) { a = 0; } ! 10601: private: ! 10602: int a; ! 10603: }; ! 10604: EOF ! 10605: ! 10606: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 10607: (eval $ac_compile) 2>&5 ! 10608: ac_status=$? ! 10609: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 10610: (exit $ac_status); }; then ! 10611: # Parse the compiler output and extract the necessary ! 10612: # objects, libraries and library flags. ! 10613: ! 10614: # Sentinel used to keep track of whether or not we are before ! 10615: # the conftest object file. ! 10616: pre_test_object_deps_done=no ! 10617: ! 10618: # The `*' in the case matches for architectures that use `case' in ! 10619: # $output_verbose_cmd can trigger glob expansion during the loop ! 10620: # eval without this substitution. ! 10621: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" ! 10622: ! 10623: for p in `eval $output_verbose_link_cmd`; do ! 10624: case $p in ! 10625: ! 10626: -L* | -R* | -l*) ! 10627: # Some compilers place space between "-{L,R}" and the path. ! 10628: # Remove the space. ! 10629: if test $p = "-L" \ ! 10630: || test $p = "-R"; then ! 10631: prev=$p ! 10632: continue ! 10633: else ! 10634: prev= ! 10635: fi ! 10636: ! 10637: if test "$pre_test_object_deps_done" = no; then ! 10638: case $p in ! 10639: -L* | -R*) ! 10640: # Internal compiler library paths should come after those ! 10641: # provided the user. The postdeps already come after the ! 10642: # user supplied libs so there is no need to process them. ! 10643: if test -z "$compiler_lib_search_path_CXX"; then ! 10644: compiler_lib_search_path_CXX="${prev}${p}" ! 10645: else ! 10646: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" ! 10647: fi ! 10648: ;; ! 10649: # The "-l" case would never come before the object being ! 10650: # linked, so don't bother handling this case. ! 10651: esac ! 10652: else ! 10653: if test -z "$postdeps_CXX"; then ! 10654: postdeps_CXX="${prev}${p}" ! 10655: else ! 10656: postdeps_CXX="${postdeps_CXX} ${prev}${p}" ! 10657: fi ! 10658: fi ! 10659: ;; ! 10660: ! 10661: *.$objext) ! 10662: # This assumes that the test object file only shows up ! 10663: # once in the compiler output. ! 10664: if test "$p" = "conftest.$objext"; then ! 10665: pre_test_object_deps_done=yes ! 10666: continue ! 10667: fi ! 10668: ! 10669: if test "$pre_test_object_deps_done" = no; then ! 10670: if test -z "$predep_objects_CXX"; then ! 10671: predep_objects_CXX="$p" ! 10672: else ! 10673: predep_objects_CXX="$predep_objects_CXX $p" ! 10674: fi ! 10675: else ! 10676: if test -z "$postdep_objects_CXX"; then ! 10677: postdep_objects_CXX="$p" ! 10678: else ! 10679: postdep_objects_CXX="$postdep_objects_CXX $p" ! 10680: fi ! 10681: fi ! 10682: ;; ! 10683: ! 10684: *) ;; # Ignore the rest. ! 10685: ! 10686: esac ! 10687: done ! 10688: ! 10689: # Clean up. ! 10690: rm -f a.out a.exe ! 10691: else ! 10692: echo "libtool.m4: error: problem compiling CXX test program" ! 10693: fi ! 10694: ! 10695: $rm -f confest.$objext ! 10696: ! 10697: case " $postdeps_CXX " in ! 10698: *" -lc "*) archive_cmds_need_lc_CXX=no ;; ! 10699: esac ! 10700: ! 10701: lt_prog_compiler_wl_CXX= ! 10702: lt_prog_compiler_pic_CXX= ! 10703: lt_prog_compiler_static_CXX= ! 10704: ! 10705: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 10706: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 10707: ! 10708: # C++ specific cases for pic, static, wl, etc. ! 10709: if test "$GXX" = yes; then ! 10710: lt_prog_compiler_wl_CXX='-Wl,' ! 10711: lt_prog_compiler_static_CXX='-static' ! 10712: ! 10713: case $host_os in ! 10714: aix*) ! 10715: # All AIX code is PIC. ! 10716: if test "$host_cpu" = ia64; then ! 10717: # AIX 5 now supports IA64 processor ! 10718: lt_prog_compiler_static_CXX='-Bstatic' ! 10719: fi ! 10720: ;; ! 10721: amigaos*) ! 10722: # FIXME: we need at least 68020 code to build shared libraries, but ! 10723: # adding the `-m68020' flag to GCC prevents building anything better, ! 10724: # like `-m68040'. ! 10725: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ! 10726: ;; ! 10727: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 10728: # PIC is the default for these OSes. ! 10729: ;; ! 10730: mingw* | os2* | pw32*) ! 10731: # This hack is so that the source file can tell whether it is being ! 10732: # built for inclusion in a dll (and should export symbols for example). ! 10733: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ! 10734: ;; ! 10735: darwin* | rhapsody*) ! 10736: # PIC is the default on this platform ! 10737: # Common symbols not allowed in MH_DYLIB files ! 10738: lt_prog_compiler_pic_CXX='-fno-common' ! 10739: ;; ! 10740: *djgpp*) ! 10741: # DJGPP does not support shared libraries at all ! 10742: lt_prog_compiler_pic_CXX= ! 10743: ;; ! 10744: sysv4*MP*) ! 10745: if test -d /usr/nec; then ! 10746: lt_prog_compiler_pic_CXX=-Kconform_pic ! 10747: fi ! 10748: ;; ! 10749: hpux*) ! 10750: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 10751: # not for PA HP-UX. ! 10752: case "$host_cpu" in ! 10753: hppa*64*|ia64*) ! 10754: ;; ! 10755: *) ! 10756: lt_prog_compiler_pic_CXX='-fPIC' ! 10757: ;; ! 10758: esac ! 10759: ;; ! 10760: *) ! 10761: lt_prog_compiler_pic_CXX='-fPIC' ! 10762: ;; ! 10763: esac ! 10764: else ! 10765: case $host_os in ! 10766: aix4* | aix5*) ! 10767: # All AIX code is PIC. ! 10768: if test "$host_cpu" = ia64; then ! 10769: # AIX 5 now supports IA64 processor ! 10770: lt_prog_compiler_static_CXX='-Bstatic' ! 10771: else ! 10772: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' ! 10773: fi ! 10774: ;; ! 10775: chorus*) ! 10776: case $cc_basename in ! 10777: cxch68) ! 10778: # Green Hills C++ Compiler ! 10779: # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ! 10780: ;; ! 10781: esac ! 10782: ;; ! 10783: dgux*) ! 10784: case $cc_basename in ! 10785: ec++) ! 10786: lt_prog_compiler_pic_CXX='-KPIC' ! 10787: ;; ! 10788: ghcx) ! 10789: # Green Hills C++ Compiler ! 10790: lt_prog_compiler_pic_CXX='-pic' ! 10791: ;; ! 10792: *) ! 10793: ;; ! 10794: esac ! 10795: ;; ! 10796: freebsd*) ! 10797: # FreeBSD uses GNU C++ ! 10798: ;; ! 10799: hpux9* | hpux10* | hpux11*) ! 10800: case $cc_basename in ! 10801: CC) ! 10802: lt_prog_compiler_wl_CXX='-Wl,' ! 10803: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" ! 10804: if test "$host_cpu" != ia64; then ! 10805: lt_prog_compiler_pic_CXX='+Z' ! 10806: fi ! 10807: ;; ! 10808: aCC) ! 10809: lt_prog_compiler_wl_CXX='-Wl,' ! 10810: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" ! 10811: case "$host_cpu" in ! 10812: hppa*64*|ia64*) ! 10813: # +Z the default ! 10814: ;; ! 10815: *) ! 10816: lt_prog_compiler_pic_CXX='+Z' ! 10817: ;; ! 10818: esac ! 10819: ;; ! 10820: *) ! 10821: ;; ! 10822: esac ! 10823: ;; ! 10824: irix5* | irix6* | nonstopux*) ! 10825: case $cc_basename in ! 10826: CC) ! 10827: lt_prog_compiler_wl_CXX='-Wl,' ! 10828: lt_prog_compiler_static_CXX='-non_shared' ! 10829: # CC pic flag -KPIC is the default. ! 10830: ;; ! 10831: *) ! 10832: ;; ! 10833: esac ! 10834: ;; ! 10835: linux*) ! 10836: case $cc_basename in ! 10837: KCC) ! 10838: # KAI C++ Compiler ! 10839: lt_prog_compiler_wl_CXX='--backend -Wl,' ! 10840: lt_prog_compiler_pic_CXX='-fPIC' ! 10841: ;; ! 10842: icpc) ! 10843: # Intel C++ ! 10844: lt_prog_compiler_wl_CXX='-Wl,' ! 10845: lt_prog_compiler_pic_CXX='-KPIC' ! 10846: lt_prog_compiler_static_CXX='-static' ! 10847: ;; ! 10848: cxx) ! 10849: # Compaq C++ ! 10850: # Make sure the PIC flag is empty. It appears that all Alpha ! 10851: # Linux and Compaq Tru64 Unix objects are PIC. ! 10852: lt_prog_compiler_pic_CXX= ! 10853: lt_prog_compiler_static_CXX='-non_shared' ! 10854: ;; ! 10855: *) ! 10856: ;; ! 10857: esac ! 10858: ;; ! 10859: lynxos*) ! 10860: ;; ! 10861: m88k*) ! 10862: ;; ! 10863: mvs*) ! 10864: case $cc_basename in ! 10865: cxx) ! 10866: lt_prog_compiler_pic_CXX='-W c,exportall' ! 10867: ;; ! 10868: *) ! 10869: ;; ! 10870: esac ! 10871: ;; ! 10872: netbsd*) ! 10873: ;; ! 10874: osf3* | osf4* | osf5*) ! 10875: case $cc_basename in ! 10876: KCC) ! 10877: lt_prog_compiler_wl_CXX='--backend -Wl,' ! 10878: ;; ! 10879: RCC) ! 10880: # Rational C++ 2.4.1 ! 10881: lt_prog_compiler_pic_CXX='-pic' ! 10882: ;; ! 10883: cxx) ! 10884: # Digital/Compaq C++ ! 10885: lt_prog_compiler_wl_CXX='-Wl,' ! 10886: # Make sure the PIC flag is empty. It appears that all Alpha ! 10887: # Linux and Compaq Tru64 Unix objects are PIC. ! 10888: lt_prog_compiler_pic_CXX= ! 10889: lt_prog_compiler_static_CXX='-non_shared' ! 10890: ;; ! 10891: *) ! 10892: ;; ! 10893: esac ! 10894: ;; ! 10895: psos*) ! 10896: ;; ! 10897: sco*) ! 10898: case $cc_basename in ! 10899: CC) ! 10900: lt_prog_compiler_pic_CXX='-fPIC' ! 10901: ;; ! 10902: *) ! 10903: ;; ! 10904: esac ! 10905: ;; ! 10906: solaris*) ! 10907: case $cc_basename in ! 10908: CC) ! 10909: # Sun C++ 4.2, 5.x and Centerline C++ ! 10910: lt_prog_compiler_pic_CXX='-KPIC' ! 10911: lt_prog_compiler_static_CXX='-Bstatic' ! 10912: lt_prog_compiler_wl_CXX='-Qoption ld ' ! 10913: ;; ! 10914: gcx) ! 10915: # Green Hills C++ Compiler ! 10916: lt_prog_compiler_pic_CXX='-PIC' ! 10917: ;; ! 10918: *) ! 10919: ;; ! 10920: esac ! 10921: ;; ! 10922: sunos4*) ! 10923: case $cc_basename in ! 10924: CC) ! 10925: # Sun C++ 4.x ! 10926: lt_prog_compiler_pic_CXX='-pic' ! 10927: lt_prog_compiler_static_CXX='-Bstatic' ! 10928: ;; ! 10929: lcc) ! 10930: # Lucid ! 10931: lt_prog_compiler_pic_CXX='-pic' ! 10932: ;; ! 10933: *) ! 10934: ;; ! 10935: esac ! 10936: ;; ! 10937: tandem*) ! 10938: case $cc_basename in ! 10939: NCC) ! 10940: # NonStop-UX NCC 3.20 ! 10941: lt_prog_compiler_pic_CXX='-KPIC' ! 10942: ;; ! 10943: *) ! 10944: ;; ! 10945: esac ! 10946: ;; ! 10947: unixware*) ! 10948: ;; ! 10949: vxworks*) ! 10950: ;; ! 10951: *) ! 10952: lt_prog_compiler_can_build_shared_CXX=no ! 10953: ;; ! 10954: esac ! 10955: fi ! 10956: ! 10957: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 ! 10958: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 ! 10959: ! 10960: # ! 10961: # Check to make sure the PIC flag actually works. ! 10962: # ! 10963: if test -n "$lt_prog_compiler_pic_CXX"; then ! 10964: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 ! 10965: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 ! 10966: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then ! 10967: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 10968: else ! 10969: lt_prog_compiler_pic_works_CXX=no ! 10970: ac_outfile=conftest.$ac_objext ! 10971: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 10972: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ! 10973: # Insert the option either (1) after the last *FLAGS variable, or ! 10974: # (2) before a word containing "conftest.", or (3) at the end. ! 10975: # Note that $ac_compile itself does not contain backslashes and begins ! 10976: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 10977: # The option is referenced via a variable to avoid confusing sed. ! 10978: lt_compile=`echo "$ac_compile" | $SED \ ! 10979: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 10980: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 10981: -e 's:$: $lt_compiler_flag:'` ! 10982: (eval echo "\"\$as_me:10982: $lt_compile\"" >&5) ! 10983: (eval "$lt_compile" 2>conftest.err) ! 10984: ac_status=$? ! 10985: cat conftest.err >&5 ! 10986: echo "$as_me:10986: \$? = $ac_status" >&5 ! 10987: if (exit $ac_status) && test -s "$ac_outfile"; then ! 10988: # The compiler can only warn and ignore the option if not recognized ! 10989: # So say no if there are warnings ! 10990: if test ! -s conftest.err; then ! 10991: lt_prog_compiler_pic_works_CXX=yes ! 10992: fi ! 10993: fi ! 10994: $rm conftest* ! 10995: ! 10996: fi ! 10997: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 ! 10998: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 ! 10999: ! 11000: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then ! 11001: case $lt_prog_compiler_pic_CXX in ! 11002: "" | " "*) ;; ! 11003: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; ! 11004: esac ! 11005: else ! 11006: lt_prog_compiler_pic_CXX= ! 11007: lt_prog_compiler_can_build_shared_CXX=no ! 11008: fi ! 11009: ! 11010: fi ! 11011: case "$host_os" in ! 11012: # For platforms which do not support PIC, -DPIC is meaningless: ! 11013: *djgpp*) ! 11014: lt_prog_compiler_pic_CXX= ! 11015: ;; ! 11016: *) ! 11017: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ! 11018: ;; ! 11019: esac ! 11020: ! 11021: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 11022: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 11023: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then ! 11024: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11025: else ! 11026: lt_cv_prog_compiler_c_o_CXX=no ! 11027: $rm -r conftest 2>/dev/null ! 11028: mkdir conftest ! 11029: cd conftest ! 11030: mkdir out ! 11031: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 11032: ! 11033: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 11034: # that will create temporary files in the current directory regardless of ! 11035: # the output directory. Thus, making CWD read-only will cause this test ! 11036: # to fail, enabling locking or at least warning the user not to do parallel ! 11037: # builds. ! 11038: chmod -w . ! 11039: ! 11040: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 11041: # Insert the option either (1) after the last *FLAGS variable, or ! 11042: # (2) before a word containing "conftest.", or (3) at the end. ! 11043: # Note that $ac_compile itself does not contain backslashes and begins ! 11044: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 11045: lt_compile=`echo "$ac_compile" | $SED \ ! 11046: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 11047: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 11048: -e 's:$: $lt_compiler_flag:'` ! 11049: (eval echo "\"\$as_me:11049: $lt_compile\"" >&5) ! 11050: (eval "$lt_compile" 2>out/conftest.err) ! 11051: ac_status=$? ! 11052: cat out/conftest.err >&5 ! 11053: echo "$as_me:11053: \$? = $ac_status" >&5 ! 11054: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 11055: then ! 11056: # The compiler can only warn and ignore the option if not recognized ! 11057: # So say no if there are warnings ! 11058: if test ! -s out/conftest.err; then ! 11059: lt_cv_prog_compiler_c_o_CXX=yes ! 11060: fi ! 11061: fi ! 11062: chmod u+w . ! 11063: $rm conftest* out/* ! 11064: rmdir out ! 11065: cd .. ! 11066: rmdir conftest ! 11067: $rm conftest* ! 11068: ! 11069: fi ! 11070: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 ! 11071: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 ! 11072: ! 11073: ! 11074: hard_links="nottested" ! 11075: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then ! 11076: # do not overwrite the value of need_locks provided by the user ! 11077: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 11078: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 11079: hard_links=yes ! 11080: $rm conftest* ! 11081: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 11082: touch conftest.a ! 11083: ln conftest.a conftest.b 2>&5 || hard_links=no ! 11084: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 11085: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 11086: echo "${ECHO_T}$hard_links" >&6 ! 11087: if test "$hard_links" = no; then ! 11088: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 11089: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 11090: need_locks=warn ! 11091: fi ! 11092: else ! 11093: need_locks=no ! 11094: fi ! 11095: ! 11096: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 11097: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 11098: ! 11099: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 11100: case $host_os in ! 11101: aix4* | aix5*) ! 11102: # If we're using GNU nm, then we don't want the "-C" option. ! 11103: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 11104: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 11105: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ! 11106: else ! 11107: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ! 11108: fi ! 11109: ;; ! 11110: pw32*) ! 11111: export_symbols_cmds_CXX="$ltdll_cmds" ! 11112: ;; ! 11113: cygwin* | mingw*) ! 11114: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 11115: ;; ! 11116: *) ! 11117: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 11118: ;; ! 11119: esac ! 11120: ! 11121: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ! 11122: echo "${ECHO_T}$ld_shlibs_CXX" >&6 ! 11123: test "$ld_shlibs_CXX" = no && can_build_shared=no ! 11124: ! 11125: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 11126: if test "$GCC" = yes; then ! 11127: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 11128: fi ! 11129: ! 11130: # ! 11131: # Do we need to explicitly link libc? ! 11132: # ! 11133: case "x$archive_cmds_need_lc_CXX" in ! 11134: x|xyes) ! 11135: # Assume -lc should be added ! 11136: archive_cmds_need_lc_CXX=yes ! 11137: ! 11138: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 11139: case $archive_cmds_CXX in ! 11140: *'~'*) ! 11141: # FIXME: we may have to deal with multi-command sequences. ! 11142: ;; ! 11143: '$CC '*) ! 11144: # Test whether the compiler implicitly links with -lc since on some ! 11145: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 11146: # to ld, don't add -lc before -lgcc. ! 11147: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 11148: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 11149: $rm conftest* ! 11150: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 11151: ! 11152: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 11153: (eval $ac_compile) 2>&5 ! 11154: ac_status=$? ! 11155: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11156: (exit $ac_status); } 2>conftest.err; then ! 11157: soname=conftest ! 11158: lib=conftest ! 11159: libobjs=conftest.$ac_objext ! 11160: deplibs= ! 11161: wl=$lt_prog_compiler_wl_CXX ! 11162: compiler_flags=-v ! 11163: linker_flags=-v ! 11164: verstring= ! 11165: output_objdir=. ! 11166: libname=conftest ! 11167: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX ! 11168: allow_undefined_flag_CXX= ! 11169: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 11170: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 11171: ac_status=$? ! 11172: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11173: (exit $ac_status); } ! 11174: then ! 11175: archive_cmds_need_lc_CXX=no ! 11176: else ! 11177: archive_cmds_need_lc_CXX=yes ! 11178: fi ! 11179: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag ! 11180: else ! 11181: cat conftest.err 1>&5 ! 11182: fi ! 11183: $rm conftest* ! 11184: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 ! 11185: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 ! 11186: ;; ! 11187: esac ! 11188: fi ! 11189: ;; ! 11190: esac ! 11191: ! 11192: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 11193: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 11194: hardcode_action_CXX= ! 11195: if test -n "$hardcode_libdir_flag_spec_CXX" || \ ! 11196: test -n "$runpath_var CXX" || \ ! 11197: test "X$hardcode_automatic_CXX"="Xyes" ; then ! 11198: ! 11199: # We can hardcode non-existant directories. ! 11200: if test "$hardcode_direct_CXX" != no && ! 11201: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 11202: # have to relink, otherwise we might link with an installed library ! 11203: # when we should be linking with a yet-to-be-installed one ! 11204: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && ! 11205: test "$hardcode_minus_L_CXX" != no; then ! 11206: # Linking always hardcodes the temporary library directory. ! 11207: hardcode_action_CXX=relink ! 11208: else ! 11209: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 11210: hardcode_action_CXX=immediate ! 11211: fi ! 11212: else ! 11213: # We cannot hardcode anything, or else we can only hardcode existing ! 11214: # directories. ! 11215: hardcode_action_CXX=unsupported ! 11216: fi ! 11217: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 ! 11218: echo "${ECHO_T}$hardcode_action_CXX" >&6 ! 11219: ! 11220: if test "$hardcode_action_CXX" = relink; then ! 11221: # Fast installation is not supported ! 11222: enable_fast_install=no ! 11223: elif test "$shlibpath_overrides_runpath" = yes || ! 11224: test "$enable_shared" = no; then ! 11225: # Fast installation is not necessary ! 11226: enable_fast_install=needless ! 11227: fi ! 11228: ! 11229: striplib= ! 11230: old_striplib= ! 11231: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 11232: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 11233: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 11234: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 11235: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 11236: echo "$as_me:$LINENO: result: yes" >&5 ! 11237: echo "${ECHO_T}yes" >&6 ! 11238: else ! 11239: # FIXME - insert some real tests, host_os isn't really good enough ! 11240: case $host_os in ! 11241: darwin*) ! 11242: if test -n "$STRIP" ; then ! 11243: striplib="$STRIP -x" ! 11244: echo "$as_me:$LINENO: result: yes" >&5 ! 11245: echo "${ECHO_T}yes" >&6 ! 11246: else ! 11247: echo "$as_me:$LINENO: result: no" >&5 ! 11248: echo "${ECHO_T}no" >&6 ! 11249: fi ! 11250: ;; ! 11251: *) ! 11252: echo "$as_me:$LINENO: result: no" >&5 ! 11253: echo "${ECHO_T}no" >&6 ! 11254: ;; ! 11255: esac ! 11256: fi ! 11257: ! 11258: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 11259: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 11260: library_names_spec= ! 11261: libname_spec='lib$name' ! 11262: soname_spec= ! 11263: shrext=".so" ! 11264: postinstall_cmds= ! 11265: postuninstall_cmds= ! 11266: finish_cmds= ! 11267: finish_eval= ! 11268: shlibpath_var= ! 11269: shlibpath_overrides_runpath=unknown ! 11270: version_type=none ! 11271: dynamic_linker="$host_os ld.so" ! 11272: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 11273: if test "$GCC" = yes; then ! 11274: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 11275: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 11276: # if the path contains ";" then we assume it to be the separator ! 11277: # otherwise default to the standard path separator (i.e. ":") - it is ! 11278: # assumed that no part of a normal pathname contains ";" but that should ! 11279: # okay in the real world where ";" in dirpaths is itself problematic. ! 11280: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 11281: else ! 11282: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 11283: fi ! 11284: else ! 11285: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 11286: fi ! 11287: need_lib_prefix=unknown ! 11288: hardcode_into_libs=no ! 11289: ! 11290: # when you set need_version to no, make sure it does not cause -set_version ! 11291: # flags to be left without arguments ! 11292: need_version=unknown ! 11293: ! 11294: case $host_os in ! 11295: aix3*) ! 11296: version_type=linux ! 11297: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 11298: shlibpath_var=LIBPATH ! 11299: ! 11300: # AIX 3 has no versioning support, so we append a major version to the name. ! 11301: soname_spec='${libname}${release}${shared_ext}$major' ! 11302: ;; ! 11303: ! 11304: aix4* | aix5*) ! 11305: version_type=linux ! 11306: need_lib_prefix=no ! 11307: need_version=no ! 11308: hardcode_into_libs=yes ! 11309: if test "$host_cpu" = ia64; then ! 11310: # AIX 5 supports IA64 ! 11311: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 11312: shlibpath_var=LD_LIBRARY_PATH ! 11313: else ! 11314: # With GCC up to 2.95.x, collect2 would create an import file ! 11315: # for dependence libraries. The import file would start with ! 11316: # the line `#! .'. This would cause the generated library to ! 11317: # depend on `.', always an invalid library. This was fixed in ! 11318: # development snapshots of GCC prior to 3.0. ! 11319: case $host_os in ! 11320: aix4 | aix4.[01] | aix4.[01].*) ! 11321: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 11322: echo ' yes ' ! 11323: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 11324: : ! 11325: else ! 11326: can_build_shared=no ! 11327: fi ! 11328: ;; ! 11329: esac ! 11330: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 11331: # soname into executable. Probably we can add versioning support to ! 11332: # collect2, so additional links can be useful in future. ! 11333: if test "$aix_use_runtimelinking" = yes; then ! 11334: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 11335: # instead of lib<name>.a to let people know that these are not ! 11336: # typical AIX shared libraries. ! 11337: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11338: else ! 11339: # We preserve .a as extension for shared libraries through AIX4.2 ! 11340: # and later when we are not doing run time linking. ! 11341: library_names_spec='${libname}${release}.a $libname.a' ! 11342: soname_spec='${libname}${release}${shared_ext}$major' ! 11343: fi ! 11344: shlibpath_var=LIBPATH ! 11345: fi ! 11346: ;; ! 11347: ! 11348: amigaos*) ! 11349: library_names_spec='$libname.ixlibrary $libname.a' ! 11350: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 11351: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' ! 11352: ;; ! 11353: ! 11354: beos*) ! 11355: library_names_spec='${libname}${shared_ext}' ! 11356: dynamic_linker="$host_os ld.so" ! 11357: shlibpath_var=LIBRARY_PATH ! 11358: ;; ! 11359: ! 11360: bsdi4*) ! 11361: version_type=linux ! 11362: need_version=no ! 11363: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11364: soname_spec='${libname}${release}${shared_ext}$major' ! 11365: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 11366: shlibpath_var=LD_LIBRARY_PATH ! 11367: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 11368: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 11369: # the default ld.so.conf also contains /usr/contrib/lib and ! 11370: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 11371: # libtool to hard-code these into programs ! 11372: ;; ! 11373: ! 11374: cygwin* | mingw* | pw32*) ! 11375: version_type=windows ! 11376: shrext=".dll" ! 11377: need_version=no ! 11378: need_lib_prefix=no ! 11379: ! 11380: case $GCC,$host_os in ! 11381: yes,cygwin* | yes,mingw* | yes,pw32*) ! 11382: library_names_spec='$libname.dll.a' ! 11383: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 11384: postinstall_cmds='base_file=`basename \${file}`~ ! 11385: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 11386: dldir=$destdir/`dirname \$dlpath`~ ! 11387: test -d \$dldir || mkdir -p \$dldir~ ! 11388: $install_prog $dir/$dlname \$dldir/$dlname' ! 11389: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 11390: dlpath=$dir/\$dldll~ ! 11391: $rm \$dlpath' ! 11392: shlibpath_overrides_runpath=yes ! 11393: ! 11394: case $host_os in ! 11395: cygwin*) ! 11396: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 11397: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 11398: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 11399: ;; ! 11400: mingw*) ! 11401: # MinGW DLLs use traditional 'lib' prefix ! 11402: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 11403: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 11404: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 11405: # It is most probably a Windows format PATH printed by ! 11406: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 11407: # path with ; separators, and with drive letters. We can handle the ! 11408: # drive letters (cygwin fileutils understands them), so leave them, ! 11409: # especially as we might pass files found there to a mingw objdump, ! 11410: # which wouldn't understand a cygwinified path. Ahh. ! 11411: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 11412: else ! 11413: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 11414: fi ! 11415: ;; ! 11416: pw32*) ! 11417: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 11418: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 11419: ;; ! 11420: esac ! 11421: ;; ! 11422: ! 11423: *) ! 11424: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 11425: ;; ! 11426: esac ! 11427: dynamic_linker='Win32 ld.exe' ! 11428: # FIXME: first we should search . and the directory the executable is in ! 11429: shlibpath_var=PATH ! 11430: ;; ! 11431: ! 11432: darwin* | rhapsody*) ! 11433: dynamic_linker="$host_os dyld" ! 11434: version_type=darwin ! 11435: need_lib_prefix=no ! 11436: need_version=no ! 11437: # FIXME: Relying on posixy $() will cause problems for ! 11438: # cross-compilation, but unfortunately the echo tests do not ! 11439: # yet detect zsh echo's removal of \ escapes. ! 11440: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 11441: soname_spec='${libname}${release}${major}$shared_ext' ! 11442: shlibpath_overrides_runpath=yes ! 11443: shlibpath_var=DYLD_LIBRARY_PATH ! 11444: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 11445: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 11446: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 11447: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 11448: fi ! 11449: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 11450: ;; ! 11451: ! 11452: dgux*) ! 11453: version_type=linux ! 11454: need_lib_prefix=no ! 11455: need_version=no ! 11456: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 11457: soname_spec='${libname}${release}${shared_ext}$major' ! 11458: shlibpath_var=LD_LIBRARY_PATH ! 11459: ;; ! 11460: ! 11461: freebsd1*) ! 11462: dynamic_linker=no ! 11463: ;; ! 11464: ! 11465: freebsd*) ! 11466: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 11467: version_type=freebsd-$objformat ! 11468: case $version_type in ! 11469: freebsd-elf*) ! 11470: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 11471: need_version=no ! 11472: need_lib_prefix=no ! 11473: ;; ! 11474: freebsd-*) ! 11475: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 11476: need_version=yes ! 11477: ;; ! 11478: esac ! 11479: shlibpath_var=LD_LIBRARY_PATH ! 11480: case $host_os in ! 11481: freebsd2*) ! 11482: shlibpath_overrides_runpath=yes ! 11483: ;; ! 11484: freebsd3.01* | freebsdelf3.01*) ! 11485: shlibpath_overrides_runpath=yes ! 11486: hardcode_into_libs=yes ! 11487: ;; ! 11488: *) # from 3.2 on ! 11489: shlibpath_overrides_runpath=no ! 11490: hardcode_into_libs=yes ! 11491: ;; ! 11492: esac ! 11493: ;; ! 11494: ! 11495: gnu*) ! 11496: version_type=linux ! 11497: need_lib_prefix=no ! 11498: need_version=no ! 11499: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 11500: soname_spec='${libname}${release}${shared_ext}$major' ! 11501: shlibpath_var=LD_LIBRARY_PATH ! 11502: hardcode_into_libs=yes ! 11503: ;; ! 11504: ! 11505: hpux9* | hpux10* | hpux11*) ! 11506: # Give a soname corresponding to the major version so that dld.sl refuses to ! 11507: # link against other versions. ! 11508: version_type=sunos ! 11509: need_lib_prefix=no ! 11510: need_version=no ! 11511: case "$host_cpu" in ! 11512: ia64*) ! 11513: shrext='.so' ! 11514: hardcode_into_libs=yes ! 11515: dynamic_linker="$host_os dld.so" ! 11516: shlibpath_var=LD_LIBRARY_PATH ! 11517: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 11518: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11519: soname_spec='${libname}${release}${shared_ext}$major' ! 11520: if test "X$HPUX_IA64_MODE" = X32; then ! 11521: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 11522: else ! 11523: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 11524: fi ! 11525: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 11526: ;; ! 11527: hppa*64*) ! 11528: shrext='.sl' ! 11529: hardcode_into_libs=yes ! 11530: dynamic_linker="$host_os dld.sl" ! 11531: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 11532: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 11533: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11534: soname_spec='${libname}${release}${shared_ext}$major' ! 11535: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 11536: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 11537: ;; ! 11538: *) ! 11539: shrext='.sl' ! 11540: dynamic_linker="$host_os dld.sl" ! 11541: shlibpath_var=SHLIB_PATH ! 11542: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 11543: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11544: soname_spec='${libname}${release}${shared_ext}$major' ! 11545: ;; ! 11546: esac ! 11547: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 11548: postinstall_cmds='chmod 555 $lib' ! 11549: ;; ! 11550: ! 11551: irix5* | irix6* | nonstopux*) ! 11552: case $host_os in ! 11553: nonstopux*) version_type=nonstopux ;; ! 11554: *) ! 11555: if test "$lt_cv_prog_gnu_ld" = yes; then ! 11556: version_type=linux ! 11557: else ! 11558: version_type=irix ! 11559: fi ;; ! 11560: esac ! 11561: need_lib_prefix=no ! 11562: need_version=no ! 11563: soname_spec='${libname}${release}${shared_ext}$major' ! 11564: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 11565: case $host_os in ! 11566: irix5* | nonstopux*) ! 11567: libsuff= shlibsuff= ! 11568: ;; ! 11569: *) ! 11570: case $LD in # libtool.m4 will add one of these switches to LD ! 11571: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 11572: libsuff= shlibsuff= libmagic=32-bit;; ! 11573: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 11574: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 11575: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 11576: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 11577: *) libsuff= shlibsuff= libmagic=never-match;; ! 11578: esac ! 11579: ;; ! 11580: esac ! 11581: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 11582: shlibpath_overrides_runpath=no ! 11583: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 11584: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 11585: hardcode_into_libs=yes ! 11586: ;; ! 11587: ! 11588: # No shared lib support for Linux oldld, aout, or coff. ! 11589: linux*oldld* | linux*aout* | linux*coff*) ! 11590: dynamic_linker=no ! 11591: ;; ! 11592: ! 11593: # This must be Linux ELF. ! 11594: linux*) ! 11595: version_type=linux ! 11596: need_lib_prefix=no ! 11597: need_version=no ! 11598: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11599: soname_spec='${libname}${release}${shared_ext}$major' ! 11600: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 11601: shlibpath_var=LD_LIBRARY_PATH ! 11602: shlibpath_overrides_runpath=no ! 11603: # This implies no fast_install, which is unacceptable. ! 11604: # Some rework will be needed to allow for fast_install ! 11605: # before this can be enabled. ! 11606: hardcode_into_libs=yes ! 11607: ! 11608: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 11609: # powerpc, because MkLinux only supported shared libraries with the ! 11610: # GNU dynamic linker. Since this was broken with cross compilers, ! 11611: # most powerpc-linux boxes support dynamic linking these days and ! 11612: # people can always --disable-shared, the test was removed, and we ! 11613: # assume the GNU/Linux dynamic linker is in use. ! 11614: dynamic_linker='GNU/Linux ld.so' ! 11615: ;; ! 11616: ! 11617: netbsd*) ! 11618: version_type=sunos ! 11619: need_lib_prefix=no ! 11620: need_version=no ! 11621: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 11622: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 11623: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 11624: dynamic_linker='NetBSD (a.out) ld.so' ! 11625: else ! 11626: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 11627: soname_spec='${libname}${release}${shared_ext}$major' ! 11628: dynamic_linker='NetBSD ld.elf_so' ! 11629: fi ! 11630: shlibpath_var=LD_LIBRARY_PATH ! 11631: shlibpath_overrides_runpath=yes ! 11632: hardcode_into_libs=yes ! 11633: ;; ! 11634: ! 11635: newsos6) ! 11636: version_type=linux ! 11637: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11638: shlibpath_var=LD_LIBRARY_PATH ! 11639: shlibpath_overrides_runpath=yes ! 11640: ;; ! 11641: ! 11642: nto-qnx) ! 11643: version_type=linux ! 11644: need_lib_prefix=no ! 11645: need_version=no ! 11646: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11647: soname_spec='${libname}${release}${shared_ext}$major' ! 11648: shlibpath_var=LD_LIBRARY_PATH ! 11649: shlibpath_overrides_runpath=yes ! 11650: ;; ! 11651: ! 11652: openbsd*) ! 11653: version_type=sunos ! 11654: need_lib_prefix=no ! 11655: need_version=no ! 11656: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 11657: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 11658: shlibpath_var=LD_LIBRARY_PATH ! 11659: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 11660: case $host_os in ! 11661: openbsd2.[89] | openbsd2.[89].*) ! 11662: shlibpath_overrides_runpath=no ! 11663: ;; ! 11664: *) ! 11665: shlibpath_overrides_runpath=yes ! 11666: ;; ! 11667: esac ! 11668: else ! 11669: shlibpath_overrides_runpath=yes ! 11670: fi ! 11671: ;; ! 11672: ! 11673: os2*) ! 11674: libname_spec='$name' ! 11675: shrext=".dll" ! 11676: need_lib_prefix=no ! 11677: library_names_spec='$libname${shared_ext} $libname.a' ! 11678: dynamic_linker='OS/2 ld.exe' ! 11679: shlibpath_var=LIBPATH ! 11680: ;; ! 11681: ! 11682: osf3* | osf4* | osf5*) ! 11683: version_type=osf ! 11684: need_lib_prefix=no ! 11685: need_version=no ! 11686: soname_spec='${libname}${release}${shared_ext}$major' ! 11687: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11688: shlibpath_var=LD_LIBRARY_PATH ! 11689: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 11690: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 11691: ;; ! 11692: ! 11693: sco3.2v5*) ! 11694: version_type=osf ! 11695: soname_spec='${libname}${release}${shared_ext}$major' ! 11696: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11697: shlibpath_var=LD_LIBRARY_PATH ! 11698: ;; ! 11699: ! 11700: solaris*) ! 11701: version_type=linux ! 11702: need_lib_prefix=no ! 11703: need_version=no ! 11704: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11705: soname_spec='${libname}${release}${shared_ext}$major' ! 11706: shlibpath_var=LD_LIBRARY_PATH ! 11707: shlibpath_overrides_runpath=yes ! 11708: hardcode_into_libs=yes ! 11709: # ldd complains unless libraries are executable ! 11710: postinstall_cmds='chmod +x $lib' ! 11711: ;; ! 11712: ! 11713: sunos4*) ! 11714: version_type=sunos ! 11715: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 11716: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 11717: shlibpath_var=LD_LIBRARY_PATH ! 11718: shlibpath_overrides_runpath=yes ! 11719: if test "$with_gnu_ld" = yes; then ! 11720: need_lib_prefix=no ! 11721: fi ! 11722: need_version=yes ! 11723: ;; ! 11724: ! 11725: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 11726: version_type=linux ! 11727: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11728: soname_spec='${libname}${release}${shared_ext}$major' ! 11729: shlibpath_var=LD_LIBRARY_PATH ! 11730: case $host_vendor in ! 11731: sni) ! 11732: shlibpath_overrides_runpath=no ! 11733: need_lib_prefix=no ! 11734: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 11735: runpath_var=LD_RUN_PATH ! 11736: ;; ! 11737: siemens) ! 11738: need_lib_prefix=no ! 11739: ;; ! 11740: motorola) ! 11741: need_lib_prefix=no ! 11742: need_version=no ! 11743: shlibpath_overrides_runpath=no ! 11744: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 11745: ;; ! 11746: esac ! 11747: ;; ! 11748: ! 11749: sysv4*MP*) ! 11750: if test -d /usr/nec ;then ! 11751: version_type=linux ! 11752: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 11753: soname_spec='$libname${shared_ext}.$major' ! 11754: shlibpath_var=LD_LIBRARY_PATH ! 11755: fi ! 11756: ;; ! 11757: ! 11758: uts4*) ! 11759: version_type=linux ! 11760: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 11761: soname_spec='${libname}${release}${shared_ext}$major' ! 11762: shlibpath_var=LD_LIBRARY_PATH ! 11763: ;; ! 11764: ! 11765: *) ! 11766: dynamic_linker=no ! 11767: ;; ! 11768: esac ! 11769: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 11770: echo "${ECHO_T}$dynamic_linker" >&6 ! 11771: test "$dynamic_linker" = no && can_build_shared=no ! 11772: ! 11773: if test "x$enable_dlopen" != xyes; then ! 11774: enable_dlopen=unknown ! 11775: enable_dlopen_self=unknown ! 11776: enable_dlopen_self_static=unknown ! 11777: else ! 11778: lt_cv_dlopen=no ! 11779: lt_cv_dlopen_libs= ! 11780: ! 11781: case $host_os in ! 11782: beos*) ! 11783: lt_cv_dlopen="load_add_on" ! 11784: lt_cv_dlopen_libs= ! 11785: lt_cv_dlopen_self=yes ! 11786: ;; ! 11787: ! 11788: mingw* | pw32*) ! 11789: lt_cv_dlopen="LoadLibrary" ! 11790: lt_cv_dlopen_libs= ! 11791: ;; ! 11792: ! 11793: cygwin*) ! 11794: lt_cv_dlopen="dlopen" ! 11795: lt_cv_dlopen_libs= ! 11796: ;; ! 11797: ! 11798: darwin*) ! 11799: # if libdl is installed we need to link against it ! 11800: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 11801: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 11802: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 11803: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11804: else ! 11805: ac_check_lib_save_LIBS=$LIBS ! 11806: LIBS="-ldl $LIBS" ! 11807: cat >conftest.$ac_ext <<_ACEOF ! 11808: #line $LINENO "configure" ! 11809: /* confdefs.h. */ ! 11810: _ACEOF ! 11811: cat confdefs.h >>conftest.$ac_ext ! 11812: cat >>conftest.$ac_ext <<_ACEOF ! 11813: /* end confdefs.h. */ ! 11814: ! 11815: /* Override any gcc2 internal prototype to avoid an error. */ ! 11816: #ifdef __cplusplus ! 11817: extern "C" ! 11818: #endif ! 11819: /* We use char because int might match the return type of a gcc2 ! 11820: builtin and then its argument prototype would still apply. */ ! 11821: char dlopen (); ! 11822: int ! 11823: main () ! 11824: { ! 11825: dlopen (); ! 11826: ; ! 11827: return 0; ! 11828: } ! 11829: _ACEOF ! 11830: rm -f conftest.$ac_objext conftest$ac_exeext ! 11831: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11832: (eval $ac_link) 2>&5 ! 11833: ac_status=$? ! 11834: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11835: (exit $ac_status); } && ! 11836: { ac_try='test -s conftest$ac_exeext' ! 11837: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11838: (eval $ac_try) 2>&5 ! 11839: ac_status=$? ! 11840: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11841: (exit $ac_status); }; }; then ! 11842: ac_cv_lib_dl_dlopen=yes ! 11843: else ! 11844: echo "$as_me: failed program was:" >&5 ! 11845: sed 's/^/| /' conftest.$ac_ext >&5 ! 11846: ! 11847: ac_cv_lib_dl_dlopen=no ! 11848: fi ! 11849: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11850: LIBS=$ac_check_lib_save_LIBS ! 11851: fi ! 11852: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 11853: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 11854: if test $ac_cv_lib_dl_dlopen = yes; then ! 11855: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 11856: else ! 11857: ! 11858: lt_cv_dlopen="dyld" ! 11859: lt_cv_dlopen_libs= ! 11860: lt_cv_dlopen_self=yes ! 11861: ! 11862: fi ! 11863: ! 11864: ;; ! 11865: ! 11866: *) ! 11867: echo "$as_me:$LINENO: checking for shl_load" >&5 ! 11868: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 ! 11869: if test "${ac_cv_func_shl_load+set}" = set; then ! 11870: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11871: else ! 11872: cat >conftest.$ac_ext <<_ACEOF ! 11873: #line $LINENO "configure" ! 11874: /* confdefs.h. */ ! 11875: _ACEOF ! 11876: cat confdefs.h >>conftest.$ac_ext ! 11877: cat >>conftest.$ac_ext <<_ACEOF ! 11878: /* end confdefs.h. */ ! 11879: /* System header to define __stub macros and hopefully few prototypes, ! 11880: which can conflict with char shl_load (); below. ! 11881: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 11882: <limits.h> exists even on freestanding compilers. */ ! 11883: #ifdef __STDC__ ! 11884: # include <limits.h> ! 11885: #else ! 11886: # include <assert.h> ! 11887: #endif ! 11888: /* Override any gcc2 internal prototype to avoid an error. */ ! 11889: #ifdef __cplusplus ! 11890: extern "C" ! 11891: { ! 11892: #endif ! 11893: /* We use char because int might match the return type of a gcc2 ! 11894: builtin and then its argument prototype would still apply. */ ! 11895: char shl_load (); ! 11896: /* The GNU C library defines this for functions which it implements ! 11897: to always fail with ENOSYS. Some functions are actually named ! 11898: something starting with __ and the normal name is an alias. */ ! 11899: #if defined (__stub_shl_load) || defined (__stub___shl_load) ! 11900: choke me ! 11901: #else ! 11902: char (*f) () = shl_load; ! 11903: #endif ! 11904: #ifdef __cplusplus ! 11905: } ! 11906: #endif ! 11907: ! 11908: int ! 11909: main () ! 11910: { ! 11911: return f != shl_load; ! 11912: ; ! 11913: return 0; ! 11914: } ! 11915: _ACEOF ! 11916: rm -f conftest.$ac_objext conftest$ac_exeext ! 11917: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11918: (eval $ac_link) 2>&5 ! 11919: ac_status=$? ! 11920: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11921: (exit $ac_status); } && ! 11922: { ac_try='test -s conftest$ac_exeext' ! 11923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11924: (eval $ac_try) 2>&5 ! 11925: ac_status=$? ! 11926: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11927: (exit $ac_status); }; }; then ! 11928: ac_cv_func_shl_load=yes ! 11929: else ! 11930: echo "$as_me: failed program was:" >&5 ! 11931: sed 's/^/| /' conftest.$ac_ext >&5 ! 11932: ! 11933: ac_cv_func_shl_load=no ! 11934: fi ! 11935: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11936: fi ! 11937: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ! 11938: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 ! 11939: if test $ac_cv_func_shl_load = yes; then ! 11940: lt_cv_dlopen="shl_load" ! 11941: else ! 11942: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! 11943: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 ! 11944: if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! 11945: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 11946: else ! 11947: ac_check_lib_save_LIBS=$LIBS ! 11948: LIBS="-ldld $LIBS" ! 11949: cat >conftest.$ac_ext <<_ACEOF ! 11950: #line $LINENO "configure" ! 11951: /* confdefs.h. */ ! 11952: _ACEOF ! 11953: cat confdefs.h >>conftest.$ac_ext ! 11954: cat >>conftest.$ac_ext <<_ACEOF ! 11955: /* end confdefs.h. */ ! 11956: ! 11957: /* Override any gcc2 internal prototype to avoid an error. */ ! 11958: #ifdef __cplusplus ! 11959: extern "C" ! 11960: #endif ! 11961: /* We use char because int might match the return type of a gcc2 ! 11962: builtin and then its argument prototype would still apply. */ ! 11963: char shl_load (); ! 11964: int ! 11965: main () ! 11966: { ! 11967: shl_load (); ! 11968: ; ! 11969: return 0; ! 11970: } ! 11971: _ACEOF ! 11972: rm -f conftest.$ac_objext conftest$ac_exeext ! 11973: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 11974: (eval $ac_link) 2>&5 ! 11975: ac_status=$? ! 11976: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11977: (exit $ac_status); } && ! 11978: { ac_try='test -s conftest$ac_exeext' ! 11979: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 11980: (eval $ac_try) 2>&5 ! 11981: ac_status=$? ! 11982: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 11983: (exit $ac_status); }; }; then ! 11984: ac_cv_lib_dld_shl_load=yes ! 11985: else ! 11986: echo "$as_me: failed program was:" >&5 ! 11987: sed 's/^/| /' conftest.$ac_ext >&5 ! 11988: ! 11989: ac_cv_lib_dld_shl_load=no ! 11990: fi ! 11991: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 11992: LIBS=$ac_check_lib_save_LIBS ! 11993: fi ! 11994: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! 11995: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 ! 11996: if test $ac_cv_lib_dld_shl_load = yes; then ! 11997: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" ! 11998: else ! 11999: echo "$as_me:$LINENO: checking for dlopen" >&5 ! 12000: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 ! 12001: if test "${ac_cv_func_dlopen+set}" = set; then ! 12002: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12003: else ! 12004: cat >conftest.$ac_ext <<_ACEOF ! 12005: #line $LINENO "configure" ! 12006: /* confdefs.h. */ ! 12007: _ACEOF ! 12008: cat confdefs.h >>conftest.$ac_ext ! 12009: cat >>conftest.$ac_ext <<_ACEOF ! 12010: /* end confdefs.h. */ ! 12011: /* System header to define __stub macros and hopefully few prototypes, ! 12012: which can conflict with char dlopen (); below. ! 12013: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 12014: <limits.h> exists even on freestanding compilers. */ ! 12015: #ifdef __STDC__ ! 12016: # include <limits.h> ! 12017: #else ! 12018: # include <assert.h> ! 12019: #endif ! 12020: /* Override any gcc2 internal prototype to avoid an error. */ ! 12021: #ifdef __cplusplus ! 12022: extern "C" ! 12023: { ! 12024: #endif ! 12025: /* We use char because int might match the return type of a gcc2 ! 12026: builtin and then its argument prototype would still apply. */ ! 12027: char dlopen (); ! 12028: /* The GNU C library defines this for functions which it implements ! 12029: to always fail with ENOSYS. Some functions are actually named ! 12030: something starting with __ and the normal name is an alias. */ ! 12031: #if defined (__stub_dlopen) || defined (__stub___dlopen) ! 12032: choke me ! 12033: #else ! 12034: char (*f) () = dlopen; ! 12035: #endif ! 12036: #ifdef __cplusplus ! 12037: } ! 12038: #endif ! 12039: ! 12040: int ! 12041: main () ! 12042: { ! 12043: return f != dlopen; ! 12044: ; ! 12045: return 0; ! 12046: } ! 12047: _ACEOF ! 12048: rm -f conftest.$ac_objext conftest$ac_exeext ! 12049: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12050: (eval $ac_link) 2>&5 ! 12051: ac_status=$? ! 12052: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12053: (exit $ac_status); } && ! 12054: { ac_try='test -s conftest$ac_exeext' ! 12055: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 12056: (eval $ac_try) 2>&5 ! 12057: ac_status=$? ! 12058: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12059: (exit $ac_status); }; }; then ! 12060: ac_cv_func_dlopen=yes ! 12061: else ! 12062: echo "$as_me: failed program was:" >&5 ! 12063: sed 's/^/| /' conftest.$ac_ext >&5 ! 12064: ! 12065: ac_cv_func_dlopen=no ! 12066: fi ! 12067: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 12068: fi ! 12069: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ! 12070: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 ! 12071: if test $ac_cv_func_dlopen = yes; then ! 12072: lt_cv_dlopen="dlopen" ! 12073: else ! 12074: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 12075: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 12076: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 12077: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12078: else ! 12079: ac_check_lib_save_LIBS=$LIBS ! 12080: LIBS="-ldl $LIBS" ! 12081: cat >conftest.$ac_ext <<_ACEOF ! 12082: #line $LINENO "configure" ! 12083: /* confdefs.h. */ ! 12084: _ACEOF ! 12085: cat confdefs.h >>conftest.$ac_ext ! 12086: cat >>conftest.$ac_ext <<_ACEOF ! 12087: /* end confdefs.h. */ ! 12088: ! 12089: /* Override any gcc2 internal prototype to avoid an error. */ ! 12090: #ifdef __cplusplus ! 12091: extern "C" ! 12092: #endif ! 12093: /* We use char because int might match the return type of a gcc2 ! 12094: builtin and then its argument prototype would still apply. */ ! 12095: char dlopen (); ! 12096: int ! 12097: main () ! 12098: { ! 12099: dlopen (); ! 12100: ; ! 12101: return 0; ! 12102: } ! 12103: _ACEOF ! 12104: rm -f conftest.$ac_objext conftest$ac_exeext ! 12105: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12106: (eval $ac_link) 2>&5 ! 12107: ac_status=$? ! 12108: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12109: (exit $ac_status); } && ! 12110: { ac_try='test -s conftest$ac_exeext' ! 12111: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 12112: (eval $ac_try) 2>&5 ! 12113: ac_status=$? ! 12114: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12115: (exit $ac_status); }; }; then ! 12116: ac_cv_lib_dl_dlopen=yes ! 12117: else ! 12118: echo "$as_me: failed program was:" >&5 ! 12119: sed 's/^/| /' conftest.$ac_ext >&5 ! 12120: ! 12121: ac_cv_lib_dl_dlopen=no ! 12122: fi ! 12123: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 12124: LIBS=$ac_check_lib_save_LIBS ! 12125: fi ! 12126: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 12127: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 12128: if test $ac_cv_lib_dl_dlopen = yes; then ! 12129: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 12130: else ! 12131: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ! 12132: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 ! 12133: if test "${ac_cv_lib_svld_dlopen+set}" = set; then ! 12134: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12135: else ! 12136: ac_check_lib_save_LIBS=$LIBS ! 12137: LIBS="-lsvld $LIBS" ! 12138: cat >conftest.$ac_ext <<_ACEOF ! 12139: #line $LINENO "configure" ! 12140: /* confdefs.h. */ ! 12141: _ACEOF ! 12142: cat confdefs.h >>conftest.$ac_ext ! 12143: cat >>conftest.$ac_ext <<_ACEOF ! 12144: /* end confdefs.h. */ ! 12145: ! 12146: /* Override any gcc2 internal prototype to avoid an error. */ ! 12147: #ifdef __cplusplus ! 12148: extern "C" ! 12149: #endif ! 12150: /* We use char because int might match the return type of a gcc2 ! 12151: builtin and then its argument prototype would still apply. */ ! 12152: char dlopen (); ! 12153: int ! 12154: main () ! 12155: { ! 12156: dlopen (); ! 12157: ; ! 12158: return 0; ! 12159: } ! 12160: _ACEOF ! 12161: rm -f conftest.$ac_objext conftest$ac_exeext ! 12162: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12163: (eval $ac_link) 2>&5 ! 12164: ac_status=$? ! 12165: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12166: (exit $ac_status); } && ! 12167: { ac_try='test -s conftest$ac_exeext' ! 12168: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 12169: (eval $ac_try) 2>&5 ! 12170: ac_status=$? ! 12171: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12172: (exit $ac_status); }; }; then ! 12173: ac_cv_lib_svld_dlopen=yes ! 12174: else ! 12175: echo "$as_me: failed program was:" >&5 ! 12176: sed 's/^/| /' conftest.$ac_ext >&5 ! 12177: ! 12178: ac_cv_lib_svld_dlopen=no ! 12179: fi ! 12180: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 12181: LIBS=$ac_check_lib_save_LIBS ! 12182: fi ! 12183: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ! 12184: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 ! 12185: if test $ac_cv_lib_svld_dlopen = yes; then ! 12186: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ! 12187: else ! 12188: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ! 12189: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 ! 12190: if test "${ac_cv_lib_dld_dld_link+set}" = set; then ! 12191: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12192: else ! 12193: ac_check_lib_save_LIBS=$LIBS ! 12194: LIBS="-ldld $LIBS" ! 12195: cat >conftest.$ac_ext <<_ACEOF ! 12196: #line $LINENO "configure" ! 12197: /* confdefs.h. */ ! 12198: _ACEOF ! 12199: cat confdefs.h >>conftest.$ac_ext ! 12200: cat >>conftest.$ac_ext <<_ACEOF ! 12201: /* end confdefs.h. */ ! 12202: ! 12203: /* Override any gcc2 internal prototype to avoid an error. */ ! 12204: #ifdef __cplusplus ! 12205: extern "C" ! 12206: #endif ! 12207: /* We use char because int might match the return type of a gcc2 ! 12208: builtin and then its argument prototype would still apply. */ ! 12209: char dld_link (); ! 12210: int ! 12211: main () ! 12212: { ! 12213: dld_link (); ! 12214: ; ! 12215: return 0; ! 12216: } ! 12217: _ACEOF ! 12218: rm -f conftest.$ac_objext conftest$ac_exeext ! 12219: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12220: (eval $ac_link) 2>&5 ! 12221: ac_status=$? ! 12222: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12223: (exit $ac_status); } && ! 12224: { ac_try='test -s conftest$ac_exeext' ! 12225: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 12226: (eval $ac_try) 2>&5 ! 12227: ac_status=$? ! 12228: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12229: (exit $ac_status); }; }; then ! 12230: ac_cv_lib_dld_dld_link=yes ! 12231: else ! 12232: echo "$as_me: failed program was:" >&5 ! 12233: sed 's/^/| /' conftest.$ac_ext >&5 ! 12234: ! 12235: ac_cv_lib_dld_dld_link=no ! 12236: fi ! 12237: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 12238: LIBS=$ac_check_lib_save_LIBS ! 12239: fi ! 12240: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ! 12241: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 ! 12242: if test $ac_cv_lib_dld_dld_link = yes; then ! 12243: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" ! 12244: fi ! 12245: ! 12246: ! 12247: fi ! 12248: ! 12249: ! 12250: fi ! 12251: ! 12252: ! 12253: fi ! 12254: ! 12255: ! 12256: fi ! 12257: ! 12258: ! 12259: fi ! 12260: ! 12261: ;; ! 12262: esac ! 12263: ! 12264: if test "x$lt_cv_dlopen" != xno; then ! 12265: enable_dlopen=yes ! 12266: else ! 12267: enable_dlopen=no ! 12268: fi ! 12269: ! 12270: case $lt_cv_dlopen in ! 12271: dlopen) ! 12272: save_CPPFLAGS="$CPPFLAGS" ! 12273: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ! 12274: ! 12275: save_LDFLAGS="$LDFLAGS" ! 12276: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ! 12277: ! 12278: save_LIBS="$LIBS" ! 12279: LIBS="$lt_cv_dlopen_libs $LIBS" ! 12280: ! 12281: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ! 12282: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 ! 12283: if test "${lt_cv_dlopen_self+set}" = set; then ! 12284: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12285: else ! 12286: if test "$cross_compiling" = yes; then : ! 12287: lt_cv_dlopen_self=cross ! 12288: else ! 12289: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 12290: lt_status=$lt_dlunknown ! 12291: cat > conftest.$ac_ext <<EOF ! 12292: #line 12292 "configure" ! 12293: #include "confdefs.h" ! 12294: ! 12295: #if HAVE_DLFCN_H ! 12296: #include <dlfcn.h> ! 12297: #endif ! 12298: ! 12299: #include <stdio.h> ! 12300: ! 12301: #ifdef RTLD_GLOBAL ! 12302: # define LT_DLGLOBAL RTLD_GLOBAL ! 12303: #else ! 12304: # ifdef DL_GLOBAL ! 12305: # define LT_DLGLOBAL DL_GLOBAL ! 12306: # else ! 12307: # define LT_DLGLOBAL 0 ! 12308: # endif ! 12309: #endif ! 12310: ! 12311: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 12312: find out it does not work in some platform. */ ! 12313: #ifndef LT_DLLAZY_OR_NOW ! 12314: # ifdef RTLD_LAZY ! 12315: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 12316: # else ! 12317: # ifdef DL_LAZY ! 12318: # define LT_DLLAZY_OR_NOW DL_LAZY ! 12319: # else ! 12320: # ifdef RTLD_NOW ! 12321: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 12322: # else ! 12323: # ifdef DL_NOW ! 12324: # define LT_DLLAZY_OR_NOW DL_NOW ! 12325: # else ! 12326: # define LT_DLLAZY_OR_NOW 0 ! 12327: # endif ! 12328: # endif ! 12329: # endif ! 12330: # endif ! 12331: #endif ! 12332: ! 12333: #ifdef __cplusplus ! 12334: extern "C" void exit (int); ! 12335: #endif ! 12336: ! 12337: void fnord() { int i=42;} ! 12338: int main () ! 12339: { ! 12340: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 12341: int status = $lt_dlunknown; ! 12342: ! 12343: if (self) ! 12344: { ! 12345: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 12346: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 12347: /* dlclose (self); */ ! 12348: } ! 12349: ! 12350: exit (status); ! 12351: } ! 12352: EOF ! 12353: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12354: (eval $ac_link) 2>&5 ! 12355: ac_status=$? ! 12356: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12357: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 12358: (./conftest; exit; ) 2>/dev/null ! 12359: lt_status=$? ! 12360: case x$lt_status in ! 12361: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ! 12362: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ! 12363: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; ! 12364: esac ! 12365: else : ! 12366: # compilation failed ! 12367: lt_cv_dlopen_self=no ! 12368: fi ! 12369: fi ! 12370: rm -fr conftest* ! 12371: ! 12372: ! 12373: fi ! 12374: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ! 12375: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 ! 12376: ! 12377: if test "x$lt_cv_dlopen_self" = xyes; then ! 12378: LDFLAGS="$LDFLAGS $link_static_flag" ! 12379: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ! 12380: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 ! 12381: if test "${lt_cv_dlopen_self_static+set}" = set; then ! 12382: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 12383: else ! 12384: if test "$cross_compiling" = yes; then : ! 12385: lt_cv_dlopen_self_static=cross ! 12386: else ! 12387: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 12388: lt_status=$lt_dlunknown ! 12389: cat > conftest.$ac_ext <<EOF ! 12390: #line 12390 "configure" ! 12391: #include "confdefs.h" ! 12392: ! 12393: #if HAVE_DLFCN_H ! 12394: #include <dlfcn.h> ! 12395: #endif ! 12396: ! 12397: #include <stdio.h> ! 12398: ! 12399: #ifdef RTLD_GLOBAL ! 12400: # define LT_DLGLOBAL RTLD_GLOBAL ! 12401: #else ! 12402: # ifdef DL_GLOBAL ! 12403: # define LT_DLGLOBAL DL_GLOBAL ! 12404: # else ! 12405: # define LT_DLGLOBAL 0 ! 12406: # endif ! 12407: #endif ! 12408: ! 12409: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 12410: find out it does not work in some platform. */ ! 12411: #ifndef LT_DLLAZY_OR_NOW ! 12412: # ifdef RTLD_LAZY ! 12413: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 12414: # else ! 12415: # ifdef DL_LAZY ! 12416: # define LT_DLLAZY_OR_NOW DL_LAZY ! 12417: # else ! 12418: # ifdef RTLD_NOW ! 12419: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 12420: # else ! 12421: # ifdef DL_NOW ! 12422: # define LT_DLLAZY_OR_NOW DL_NOW ! 12423: # else ! 12424: # define LT_DLLAZY_OR_NOW 0 ! 12425: # endif ! 12426: # endif ! 12427: # endif ! 12428: # endif ! 12429: #endif ! 12430: ! 12431: #ifdef __cplusplus ! 12432: extern "C" void exit (int); ! 12433: #endif ! 12434: ! 12435: void fnord() { int i=42;} ! 12436: int main () ! 12437: { ! 12438: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 12439: int status = $lt_dlunknown; ! 12440: ! 12441: if (self) ! 12442: { ! 12443: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 12444: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 12445: /* dlclose (self); */ ! 12446: } ! 12447: ! 12448: exit (status); ! 12449: } ! 12450: EOF ! 12451: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 12452: (eval $ac_link) 2>&5 ! 12453: ac_status=$? ! 12454: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 12455: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 12456: (./conftest; exit; ) 2>/dev/null ! 12457: lt_status=$? ! 12458: case x$lt_status in ! 12459: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ! 12460: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ! 12461: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; ! 12462: esac ! 12463: else : ! 12464: # compilation failed ! 12465: lt_cv_dlopen_self_static=no ! 12466: fi ! 12467: fi ! 12468: rm -fr conftest* ! 12469: ! 12470: ! 12471: fi ! 12472: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ! 12473: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 ! 12474: fi ! 12475: ! 12476: CPPFLAGS="$save_CPPFLAGS" ! 12477: LDFLAGS="$save_LDFLAGS" ! 12478: LIBS="$save_LIBS" ! 12479: ;; ! 12480: esac ! 12481: ! 12482: case $lt_cv_dlopen_self in ! 12483: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ! 12484: *) enable_dlopen_self=unknown ;; ! 12485: esac ! 12486: ! 12487: case $lt_cv_dlopen_self_static in ! 12488: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ! 12489: *) enable_dlopen_self_static=unknown ;; ! 12490: esac ! 12491: fi ! 12492: ! 12493: ! 12494: # The else clause should only fire when bootstrapping the ! 12495: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 12496: # with your package, and you will get complaints that there are ! 12497: # no rules to generate ltmain.sh. ! 12498: if test -f "$ltmain"; then ! 12499: # See if we are running on zsh, and set the options which allow our commands through ! 12500: # without removal of \ escapes. ! 12501: if test -n "${ZSH_VERSION+set}" ; then ! 12502: setopt NO_GLOB_SUBST ! 12503: fi ! 12504: # Now quote all the things that may contain metacharacters while being ! 12505: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 12506: # variables and quote the copies for generation of the libtool script. ! 12507: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 12508: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 12509: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 12510: deplibs_check_method reload_flag reload_cmds need_locks \ ! 12511: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 12512: lt_cv_sys_global_symbol_to_c_name_address \ ! 12513: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 12514: old_postinstall_cmds old_postuninstall_cmds \ ! 12515: compiler_CXX \ ! 12516: CC_CXX \ ! 12517: LD_CXX \ ! 12518: lt_prog_compiler_wl_CXX \ ! 12519: lt_prog_compiler_pic_CXX \ ! 12520: lt_prog_compiler_static_CXX \ ! 12521: lt_prog_compiler_no_builtin_flag_CXX \ ! 12522: export_dynamic_flag_spec_CXX \ ! 12523: thread_safe_flag_spec_CXX \ ! 12524: whole_archive_flag_spec_CXX \ ! 12525: enable_shared_with_static_runtimes_CXX \ ! 12526: old_archive_cmds_CXX \ ! 12527: old_archive_from_new_cmds_CXX \ ! 12528: predep_objects_CXX \ ! 12529: postdep_objects_CXX \ ! 12530: predeps_CXX \ ! 12531: postdeps_CXX \ ! 12532: compiler_lib_search_path_CXX \ ! 12533: archive_cmds_CXX \ ! 12534: archive_expsym_cmds_CXX \ ! 12535: postinstall_cmds_CXX \ ! 12536: postuninstall_cmds_CXX \ ! 12537: old_archive_from_expsyms_cmds_CXX \ ! 12538: allow_undefined_flag_CXX \ ! 12539: no_undefined_flag_CXX \ ! 12540: export_symbols_cmds_CXX \ ! 12541: hardcode_libdir_flag_spec_CXX \ ! 12542: hardcode_libdir_flag_spec_ld_CXX \ ! 12543: hardcode_libdir_separator_CXX \ ! 12544: hardcode_automatic_CXX \ ! 12545: module_cmds_CXX \ ! 12546: module_expsym_cmds_CXX \ ! 12547: lt_cv_prog_compiler_c_o_CXX \ ! 12548: exclude_expsyms_CXX \ ! 12549: include_expsyms_CXX; do ! 12550: ! 12551: case $var in ! 12552: old_archive_cmds_CXX | \ ! 12553: old_archive_from_new_cmds_CXX | \ ! 12554: archive_cmds_CXX | \ ! 12555: archive_expsym_cmds_CXX | \ ! 12556: module_cmds_CXX | \ ! 12557: module_expsym_cmds_CXX | \ ! 12558: old_archive_from_expsyms_cmds_CXX | \ ! 12559: export_symbols_cmds_CXX | \ ! 12560: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 12561: postinstall_cmds | postuninstall_cmds | \ ! 12562: old_postinstall_cmds | old_postuninstall_cmds | \ ! 12563: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 12564: # Double-quote double-evaled strings. ! 12565: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 12566: ;; ! 12567: *) ! 12568: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 12569: ;; ! 12570: esac ! 12571: done ! 12572: ! 12573: case $lt_echo in ! 12574: *'\$0 --fallback-echo"') ! 12575: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 12576: ;; ! 12577: esac ! 12578: ! 12579: cfgfile="$ofile" ! 12580: ! 12581: cat <<__EOF__ >> "$cfgfile" ! 12582: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 12583: ! 12584: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 12585: ! 12586: # Shell to use when invoking shell scripts. ! 12587: SHELL=$lt_SHELL ! 12588: ! 12589: # Whether or not to build shared libraries. ! 12590: build_libtool_libs=$enable_shared ! 12591: ! 12592: # Whether or not to build static libraries. ! 12593: build_old_libs=$enable_static ! 12594: ! 12595: # Whether or not to add -lc for building shared libraries. ! 12596: build_libtool_need_lc=$archive_cmds_need_lc_CXX ! 12597: ! 12598: # Whether or not to disallow shared libs when runtime libs are static ! 12599: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX ! 12600: ! 12601: # Whether or not to optimize for fast installation. ! 12602: fast_install=$enable_fast_install ! 12603: ! 12604: # The host system. ! 12605: host_alias=$host_alias ! 12606: host=$host ! 12607: ! 12608: # An echo program that does not interpret backslashes. ! 12609: echo=$lt_echo ! 12610: ! 12611: # The archiver. ! 12612: AR=$lt_AR ! 12613: AR_FLAGS=$lt_AR_FLAGS ! 12614: ! 12615: # A C compiler. ! 12616: LTCC=$lt_LTCC ! 12617: ! 12618: # A language-specific compiler. ! 12619: CC=$lt_compiler_CXX ! 12620: ! 12621: # Is the compiler the GNU C compiler? ! 12622: with_gcc=$GCC_CXX ! 12623: ! 12624: # An ERE matcher. ! 12625: EGREP=$lt_EGREP ! 12626: ! 12627: # The linker used to build libraries. ! 12628: LD=$lt_LD_CXX ! 12629: ! 12630: # Whether we need hard or soft links. ! 12631: LN_S=$lt_LN_S ! 12632: ! 12633: # A BSD-compatible nm program. ! 12634: NM=$lt_NM ! 12635: ! 12636: # A symbol stripping program ! 12637: STRIP=$STRIP ! 12638: ! 12639: # Used to examine libraries when file_magic_cmd begins "file" ! 12640: MAGIC_CMD=$MAGIC_CMD ! 12641: ! 12642: # Used on cygwin: DLL creation program. ! 12643: DLLTOOL="$DLLTOOL" ! 12644: ! 12645: # Used on cygwin: object dumper. ! 12646: OBJDUMP="$OBJDUMP" ! 12647: ! 12648: # Used on cygwin: assembler. ! 12649: AS="$AS" ! 12650: ! 12651: # The name of the directory that contains temporary libtool files. ! 12652: objdir=$objdir ! 12653: ! 12654: # How to create reloadable object files. ! 12655: reload_flag=$lt_reload_flag ! 12656: reload_cmds=$lt_reload_cmds ! 12657: ! 12658: # How to pass a linker flag through the compiler. ! 12659: wl=$lt_lt_prog_compiler_wl_CXX ! 12660: ! 12661: # Object file suffix (normally "o"). ! 12662: objext="$ac_objext" ! 12663: ! 12664: # Old archive suffix (normally "a"). ! 12665: libext="$libext" ! 12666: ! 12667: # Shared library suffix (normally ".so"). ! 12668: shrext='$shrext' ! 12669: ! 12670: # Executable file suffix (normally ""). ! 12671: exeext="$exeext" ! 12672: ! 12673: # Additional compiler flags for building library objects. ! 12674: pic_flag=$lt_lt_prog_compiler_pic_CXX ! 12675: pic_mode=$pic_mode ! 12676: ! 12677: # What is the maximum length of a command? ! 12678: max_cmd_len=$lt_cv_sys_max_cmd_len ! 12679: ! 12680: # Does compiler simultaneously support -c and -o options? ! 12681: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX ! 12682: ! 12683: # Must we lock files when doing compilation ? ! 12684: need_locks=$lt_need_locks ! 12685: ! 12686: # Do we need the lib prefix for modules? ! 12687: need_lib_prefix=$need_lib_prefix ! 12688: ! 12689: # Do we need a version for libraries? ! 12690: need_version=$need_version ! 12691: ! 12692: # Whether dlopen is supported. ! 12693: dlopen_support=$enable_dlopen ! 12694: ! 12695: # Whether dlopen of programs is supported. ! 12696: dlopen_self=$enable_dlopen_self ! 12697: ! 12698: # Whether dlopen of statically linked programs is supported. ! 12699: dlopen_self_static=$enable_dlopen_self_static ! 12700: ! 12701: # Compiler flag to prevent dynamic linking. ! 12702: link_static_flag=$lt_lt_prog_compiler_static_CXX ! 12703: ! 12704: # Compiler flag to turn off builtin functions. ! 12705: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX ! 12706: ! 12707: # Compiler flag to allow reflexive dlopens. ! 12708: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX ! 12709: ! 12710: # Compiler flag to generate shared objects directly from archives. ! 12711: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX ! 12712: ! 12713: # Compiler flag to generate thread-safe objects. ! 12714: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX ! 12715: ! 12716: # Library versioning type. ! 12717: version_type=$version_type ! 12718: ! 12719: # Format of library name prefix. ! 12720: libname_spec=$lt_libname_spec ! 12721: ! 12722: # List of archive names. First name is the real one, the rest are links. ! 12723: # The last name is the one that the linker finds with -lNAME. ! 12724: library_names_spec=$lt_library_names_spec ! 12725: ! 12726: # The coded name of the library, if different from the real name. ! 12727: soname_spec=$lt_soname_spec ! 12728: ! 12729: # Commands used to build and install an old-style archive. ! 12730: RANLIB=$lt_RANLIB ! 12731: old_archive_cmds=$lt_old_archive_cmds_CXX ! 12732: old_postinstall_cmds=$lt_old_postinstall_cmds ! 12733: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 12734: ! 12735: # Create an old-style archive from a shared archive. ! 12736: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX ! 12737: ! 12738: # Create a temporary old-style archive to link instead of a shared archive. ! 12739: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX ! 12740: ! 12741: # Commands used to build and install a shared archive. ! 12742: archive_cmds=$lt_archive_cmds_CXX ! 12743: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX ! 12744: postinstall_cmds=$lt_postinstall_cmds ! 12745: postuninstall_cmds=$lt_postuninstall_cmds ! 12746: ! 12747: # Commands used to build a loadable module (assumed same as above if empty) ! 12748: module_cmds=$lt_module_cmds_CXX ! 12749: module_expsym_cmds=$lt_module_expsym_cmds_CXX ! 12750: ! 12751: # Commands to strip libraries. ! 12752: old_striplib=$lt_old_striplib ! 12753: striplib=$lt_striplib ! 12754: ! 12755: # Dependencies to place before the objects being linked to create a ! 12756: # shared library. ! 12757: predep_objects=$lt_predep_objects_CXX ! 12758: ! 12759: # Dependencies to place after the objects being linked to create a ! 12760: # shared library. ! 12761: postdep_objects=$lt_postdep_objects_CXX ! 12762: ! 12763: # Dependencies to place before the objects being linked to create a ! 12764: # shared library. ! 12765: predeps=$lt_predeps_CXX ! 12766: ! 12767: # Dependencies to place after the objects being linked to create a ! 12768: # shared library. ! 12769: postdeps=$lt_postdeps_CXX ! 12770: ! 12771: # The library search path used internally by the compiler when linking ! 12772: # a shared library. ! 12773: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX ! 12774: ! 12775: # Method to check whether dependent libraries are shared objects. ! 12776: deplibs_check_method=$lt_deplibs_check_method ! 12777: ! 12778: # Command to use when deplibs_check_method == file_magic. ! 12779: file_magic_cmd=$lt_file_magic_cmd ! 12780: ! 12781: # Flag that allows shared libraries with undefined symbols to be built. ! 12782: allow_undefined_flag=$lt_allow_undefined_flag_CXX ! 12783: ! 12784: # Flag that forces no undefined symbols. ! 12785: no_undefined_flag=$lt_no_undefined_flag_CXX ! 12786: ! 12787: # Commands used to finish a libtool library installation in a directory. ! 12788: finish_cmds=$lt_finish_cmds ! 12789: ! 12790: # Same as above, but a single script fragment to be evaled but not shown. ! 12791: finish_eval=$lt_finish_eval ! 12792: ! 12793: # Take the output of nm and produce a listing of raw symbols and C names. ! 12794: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 12795: ! 12796: # Transform the output of nm in a proper C declaration ! 12797: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 12798: ! 12799: # Transform the output of nm in a C name address pair ! 12800: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 12801: ! 12802: # This is the shared library runtime path variable. ! 12803: runpath_var=$runpath_var ! 12804: ! 12805: # This is the shared library path variable. ! 12806: shlibpath_var=$shlibpath_var ! 12807: ! 12808: # Is shlibpath searched before the hard-coded library search path? ! 12809: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 12810: ! 12811: # How to hardcode a shared library path into an executable. ! 12812: hardcode_action=$hardcode_action_CXX ! 12813: ! 12814: # Whether we should hardcode library paths into libraries. ! 12815: hardcode_into_libs=$hardcode_into_libs ! 12816: ! 12817: # Flag to hardcode \$libdir into a binary during linking. ! 12818: # This must work even if \$libdir does not exist. ! 12819: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX ! 12820: ! 12821: # If ld is used when linking, flag to hardcode \$libdir into ! 12822: # a binary during linking. This must work even if \$libdir does ! 12823: # not exist. ! 12824: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX ! 12825: ! 12826: # Whether we need a single -rpath flag with a separated argument. ! 12827: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX ! 12828: ! 12829: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 12830: # resulting binary. ! 12831: hardcode_direct=$hardcode_direct_CXX ! 12832: ! 12833: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 12834: # resulting binary. ! 12835: hardcode_minus_L=$hardcode_minus_L_CXX ! 12836: ! 12837: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 12838: # the resulting binary. ! 12839: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX ! 12840: ! 12841: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 12842: # and all subsequent libraries and executables linked against it. ! 12843: hardcode_automatic=$hardcode_automatic_CXX ! 12844: ! 12845: # Variables whose values should be saved in libtool wrapper scripts and ! 12846: # restored at relink time. ! 12847: variables_saved_for_relink="$variables_saved_for_relink" ! 12848: ! 12849: # Whether libtool must link a program against all its dependency libraries. ! 12850: link_all_deplibs=$link_all_deplibs_CXX ! 12851: ! 12852: # Compile-time system search path for libraries ! 12853: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 12854: ! 12855: # Run-time system search path for libraries ! 12856: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 12857: ! 12858: # Fix the shell variable \$srcfile for the compiler. ! 12859: fix_srcfile_path="$fix_srcfile_path_CXX" ! 12860: ! 12861: # Set to yes if exported symbols are required. ! 12862: always_export_symbols=$always_export_symbols_CXX ! 12863: ! 12864: # The commands to list exported symbols. ! 12865: export_symbols_cmds=$lt_export_symbols_cmds_CXX ! 12866: ! 12867: # The commands to extract the exported symbol list from a shared archive. ! 12868: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 12869: ! 12870: # Symbols that should not be listed in the preloaded symbols. ! 12871: exclude_expsyms=$lt_exclude_expsyms_CXX ! 12872: ! 12873: # Symbols that must always be exported. ! 12874: include_expsyms=$lt_include_expsyms_CXX ! 12875: ! 12876: # ### END LIBTOOL TAG CONFIG: $tagname ! 12877: ! 12878: __EOF__ ! 12879: ! 12880: ! 12881: else ! 12882: # If there is no Makefile yet, we rely on a make rule to execute ! 12883: # `config.status --recheck' to rerun these tests and create the ! 12884: # libtool script then. ! 12885: test -f Makefile && make "$ltmain" ! 12886: fi ! 12887: ! 12888: ! 12889: ac_ext=c ! 12890: ac_cpp='$CPP $CPPFLAGS' ! 12891: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 12892: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 12893: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 12894: ! 12895: CC=$lt_save_CC ! 12896: LDCXX=$LD ! 12897: LD=$lt_save_LD ! 12898: GCC=$lt_save_GCC ! 12899: with_gnu_ldcxx=$with_gnu_ld ! 12900: with_gnu_ld=$lt_save_with_gnu_ld ! 12901: lt_cv_path_LDCXX=$lt_cv_path_LD ! 12902: lt_cv_path_LD=$lt_save_path_LD ! 12903: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld ! 12904: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ! 12905: ! 12906: else ! 12907: tagname="" ! 12908: fi ! 12909: ;; ! 12910: ! 12911: F77) ! 12912: if test -n "$F77" && test "X$F77" != "Xno"; then ! 12913: ! 12914: ac_ext=f ! 12915: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ! 12916: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 12917: ac_compiler_gnu=$ac_cv_f77_compiler_gnu ! 12918: ! 12919: ! 12920: archive_cmds_need_lc_F77=no ! 12921: allow_undefined_flag_F77= ! 12922: always_export_symbols_F77=no ! 12923: archive_expsym_cmds_F77= ! 12924: export_dynamic_flag_spec_F77= ! 12925: hardcode_direct_F77=no ! 12926: hardcode_libdir_flag_spec_F77= ! 12927: hardcode_libdir_flag_spec_ld_F77= ! 12928: hardcode_libdir_separator_F77= ! 12929: hardcode_minus_L_F77=no ! 12930: hardcode_automatic_F77=no ! 12931: module_cmds_F77= ! 12932: module_expsym_cmds_F77= ! 12933: link_all_deplibs_F77=unknown ! 12934: old_archive_cmds_F77=$old_archive_cmds ! 12935: no_undefined_flag_F77= ! 12936: whole_archive_flag_spec_F77= ! 12937: enable_shared_with_static_runtimes_F77=no ! 12938: ! 12939: # Source file extension for f77 test sources. ! 12940: ac_ext=f ! 12941: ! 12942: # Object file extension for compiled f77 test sources. ! 12943: objext=o ! 12944: objext_F77=$objext ! 12945: ! 12946: # Code to be used in simple compile tests ! 12947: lt_simple_compile_test_code=" subroutine t\n return\n end\n" ! 12948: ! 12949: # Code to be used in simple link tests ! 12950: lt_simple_link_test_code=" program t\n end\n" ! 12951: ! 12952: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 12953: ! 12954: # If no C compiler was specified, use CC. ! 12955: LTCC=${LTCC-"$CC"} ! 12956: ! 12957: # Allow CC to be a program name with arguments. ! 12958: compiler=$CC ! 12959: ! 12960: ! 12961: # Allow CC to be a program name with arguments. ! 12962: lt_save_CC="$CC" ! 12963: CC=${F77-"f77"} ! 12964: compiler=$CC ! 12965: compiler_F77=$CC ! 12966: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` ! 12967: ! 12968: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ! 12969: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 ! 12970: echo "$as_me:$LINENO: result: $can_build_shared" >&5 ! 12971: echo "${ECHO_T}$can_build_shared" >&6 ! 12972: ! 12973: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ! 12974: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 ! 12975: test "$can_build_shared" = "no" && enable_shared=no ! 12976: ! 12977: # On AIX, shared libraries and static libraries use the same namespace, and ! 12978: # are all built from PIC. ! 12979: case "$host_os" in ! 12980: aix3*) ! 12981: test "$enable_shared" = yes && enable_static=no ! 12982: if test -n "$RANLIB"; then ! 12983: archive_cmds="$archive_cmds~\$RANLIB \$lib" ! 12984: postinstall_cmds='$RANLIB $lib' ! 12985: fi ! 12986: ;; ! 12987: aix4*) ! 12988: test "$enable_shared" = yes && enable_static=no ! 12989: ;; ! 12990: esac ! 12991: echo "$as_me:$LINENO: result: $enable_shared" >&5 ! 12992: echo "${ECHO_T}$enable_shared" >&6 ! 12993: ! 12994: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ! 12995: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 ! 12996: # Make sure either enable_shared or enable_static is yes. ! 12997: test "$enable_shared" = yes || enable_static=yes ! 12998: echo "$as_me:$LINENO: result: $enable_static" >&5 ! 12999: echo "${ECHO_T}$enable_static" >&6 ! 13000: ! 13001: test "$ld_shlibs_F77" = no && can_build_shared=no ! 13002: ! 13003: GCC_F77="$G77" ! 13004: LD_F77="$LD" ! 13005: ! 13006: lt_prog_compiler_wl_F77= ! 13007: lt_prog_compiler_pic_F77= ! 13008: lt_prog_compiler_static_F77= ! 13009: ! 13010: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 13011: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 13012: ! 13013: if test "$GCC" = yes; then ! 13014: lt_prog_compiler_wl_F77='-Wl,' ! 13015: lt_prog_compiler_static_F77='-static' ! 13016: ! 13017: case $host_os in ! 13018: aix*) ! 13019: # All AIX code is PIC. ! 13020: if test "$host_cpu" = ia64; then ! 13021: # AIX 5 now supports IA64 processor ! 13022: lt_prog_compiler_static_F77='-Bstatic' ! 13023: fi ! 13024: ;; ! 13025: ! 13026: amigaos*) ! 13027: # FIXME: we need at least 68020 code to build shared libraries, but ! 13028: # adding the `-m68020' flag to GCC prevents building anything better, ! 13029: # like `-m68040'. ! 13030: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ! 13031: ;; ! 13032: ! 13033: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 13034: # PIC is the default for these OSes. ! 13035: ;; ! 13036: ! 13037: mingw* | pw32* | os2*) ! 13038: # This hack is so that the source file can tell whether it is being ! 13039: # built for inclusion in a dll (and should export symbols for example). ! 13040: lt_prog_compiler_pic_F77='-DDLL_EXPORT' ! 13041: ;; ! 13042: ! 13043: darwin* | rhapsody*) ! 13044: # PIC is the default on this platform ! 13045: # Common symbols not allowed in MH_DYLIB files ! 13046: lt_prog_compiler_pic_F77='-fno-common' ! 13047: ;; ! 13048: ! 13049: msdosdjgpp*) ! 13050: # Just because we use GCC doesn't mean we suddenly get shared libraries ! 13051: # on systems that don't support them. ! 13052: lt_prog_compiler_can_build_shared_F77=no ! 13053: enable_shared=no ! 13054: ;; ! 13055: ! 13056: sysv4*MP*) ! 13057: if test -d /usr/nec; then ! 13058: lt_prog_compiler_pic_F77=-Kconform_pic ! 13059: fi ! 13060: ;; ! 13061: ! 13062: hpux*) ! 13063: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 13064: # not for PA HP-UX. ! 13065: case "$host_cpu" in ! 13066: hppa*64*|ia64*) ! 13067: # +Z the default ! 13068: ;; ! 13069: *) ! 13070: lt_prog_compiler_pic_F77='-fPIC' ! 13071: ;; ! 13072: esac ! 13073: ;; ! 13074: ! 13075: *) ! 13076: lt_prog_compiler_pic_F77='-fPIC' ! 13077: ;; ! 13078: esac ! 13079: else ! 13080: # PORTME Check for flag to pass linker flags through the system compiler. ! 13081: case $host_os in ! 13082: aix*) ! 13083: lt_prog_compiler_wl_F77='-Wl,' ! 13084: if test "$host_cpu" = ia64; then ! 13085: # AIX 5 now supports IA64 processor ! 13086: lt_prog_compiler_static_F77='-Bstatic' ! 13087: else ! 13088: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' ! 13089: fi ! 13090: ;; ! 13091: ! 13092: mingw* | pw32* | os2*) ! 13093: # This hack is so that the source file can tell whether it is being ! 13094: # built for inclusion in a dll (and should export symbols for example). ! 13095: lt_prog_compiler_pic_F77='-DDLL_EXPORT' ! 13096: ;; ! 13097: ! 13098: hpux9* | hpux10* | hpux11*) ! 13099: lt_prog_compiler_wl_F77='-Wl,' ! 13100: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 13101: # not for PA HP-UX. ! 13102: case "$host_cpu" in ! 13103: hppa*64*|ia64*) ! 13104: # +Z the default ! 13105: ;; ! 13106: *) ! 13107: lt_prog_compiler_pic_F77='+Z' ! 13108: ;; ! 13109: esac ! 13110: # Is there a better lt_prog_compiler_static that works with the bundled CC? ! 13111: lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ! 13112: ;; ! 13113: ! 13114: irix5* | irix6* | nonstopux*) ! 13115: lt_prog_compiler_wl_F77='-Wl,' ! 13116: # PIC (with -KPIC) is the default. ! 13117: lt_prog_compiler_static_F77='-non_shared' ! 13118: ;; ! 13119: ! 13120: newsos6) ! 13121: lt_prog_compiler_pic_F77='-KPIC' ! 13122: lt_prog_compiler_static_F77='-Bstatic' ! 13123: ;; ! 13124: ! 13125: linux*) ! 13126: case $CC in ! 13127: icc|ecc) ! 13128: lt_prog_compiler_wl_F77='-Wl,' ! 13129: lt_prog_compiler_pic_F77='-KPIC' ! 13130: lt_prog_compiler_static_F77='-static' ! 13131: ;; ! 13132: ccc) ! 13133: lt_prog_compiler_wl_F77='-Wl,' ! 13134: # All Alpha code is PIC. ! 13135: lt_prog_compiler_static_F77='-non_shared' ! 13136: ;; ! 13137: esac ! 13138: ;; ! 13139: ! 13140: osf3* | osf4* | osf5*) ! 13141: lt_prog_compiler_wl_F77='-Wl,' ! 13142: # All OSF/1 code is PIC. ! 13143: lt_prog_compiler_static_F77='-non_shared' ! 13144: ;; ! 13145: ! 13146: sco3.2v5*) ! 13147: lt_prog_compiler_pic_F77='-Kpic' ! 13148: lt_prog_compiler_static_F77='-dn' ! 13149: ;; ! 13150: ! 13151: solaris*) ! 13152: lt_prog_compiler_wl_F77='-Wl,' ! 13153: lt_prog_compiler_pic_F77='-KPIC' ! 13154: lt_prog_compiler_static_F77='-Bstatic' ! 13155: ;; ! 13156: ! 13157: sunos4*) ! 13158: lt_prog_compiler_wl_F77='-Qoption ld ' ! 13159: lt_prog_compiler_pic_F77='-PIC' ! 13160: lt_prog_compiler_static_F77='-Bstatic' ! 13161: ;; ! 13162: ! 13163: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 13164: lt_prog_compiler_wl_F77='-Wl,' ! 13165: lt_prog_compiler_pic_F77='-KPIC' ! 13166: lt_prog_compiler_static_F77='-Bstatic' ! 13167: ;; ! 13168: ! 13169: sysv4*MP*) ! 13170: if test -d /usr/nec ;then ! 13171: lt_prog_compiler_pic_F77='-Kconform_pic' ! 13172: lt_prog_compiler_static_F77='-Bstatic' ! 13173: fi ! 13174: ;; ! 13175: ! 13176: uts4*) ! 13177: lt_prog_compiler_pic_F77='-pic' ! 13178: lt_prog_compiler_static_F77='-Bstatic' ! 13179: ;; ! 13180: ! 13181: *) ! 13182: lt_prog_compiler_can_build_shared_F77=no ! 13183: ;; ! 13184: esac ! 13185: fi ! 13186: ! 13187: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 ! 13188: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 ! 13189: ! 13190: # ! 13191: # Check to make sure the PIC flag actually works. ! 13192: # ! 13193: if test -n "$lt_prog_compiler_pic_F77"; then ! 13194: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 ! 13195: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 ! 13196: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then ! 13197: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 13198: else ! 13199: lt_prog_compiler_pic_works_F77=no ! 13200: ac_outfile=conftest.$ac_objext ! 13201: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 13202: lt_compiler_flag="$lt_prog_compiler_pic_F77" ! 13203: # Insert the option either (1) after the last *FLAGS variable, or ! 13204: # (2) before a word containing "conftest.", or (3) at the end. ! 13205: # Note that $ac_compile itself does not contain backslashes and begins ! 13206: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 13207: # The option is referenced via a variable to avoid confusing sed. ! 13208: lt_compile=`echo "$ac_compile" | $SED \ ! 13209: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 13210: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 13211: -e 's:$: $lt_compiler_flag:'` ! 13212: (eval echo "\"\$as_me:13212: $lt_compile\"" >&5) ! 13213: (eval "$lt_compile" 2>conftest.err) ! 13214: ac_status=$? ! 13215: cat conftest.err >&5 ! 13216: echo "$as_me:13216: \$? = $ac_status" >&5 ! 13217: if (exit $ac_status) && test -s "$ac_outfile"; then ! 13218: # The compiler can only warn and ignore the option if not recognized ! 13219: # So say no if there are warnings ! 13220: if test ! -s conftest.err; then ! 13221: lt_prog_compiler_pic_works_F77=yes ! 13222: fi ! 13223: fi ! 13224: $rm conftest* ! 13225: ! 13226: fi ! 13227: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 ! 13228: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 ! 13229: ! 13230: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then ! 13231: case $lt_prog_compiler_pic_F77 in ! 13232: "" | " "*) ;; ! 13233: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; ! 13234: esac ! 13235: else ! 13236: lt_prog_compiler_pic_F77= ! 13237: lt_prog_compiler_can_build_shared_F77=no ! 13238: fi ! 13239: ! 13240: fi ! 13241: case "$host_os" in ! 13242: # For platforms which do not support PIC, -DPIC is meaningless: ! 13243: *djgpp*) ! 13244: lt_prog_compiler_pic_F77= ! 13245: ;; ! 13246: *) ! 13247: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ! 13248: ;; ! 13249: esac ! 13250: ! 13251: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 13252: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 13253: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then ! 13254: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 13255: else ! 13256: lt_cv_prog_compiler_c_o_F77=no ! 13257: $rm -r conftest 2>/dev/null ! 13258: mkdir conftest ! 13259: cd conftest ! 13260: mkdir out ! 13261: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 13262: ! 13263: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 13264: # that will create temporary files in the current directory regardless of ! 13265: # the output directory. Thus, making CWD read-only will cause this test ! 13266: # to fail, enabling locking or at least warning the user not to do parallel ! 13267: # builds. ! 13268: chmod -w . ! 13269: ! 13270: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 13271: # Insert the option either (1) after the last *FLAGS variable, or ! 13272: # (2) before a word containing "conftest.", or (3) at the end. ! 13273: # Note that $ac_compile itself does not contain backslashes and begins ! 13274: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 13275: lt_compile=`echo "$ac_compile" | $SED \ ! 13276: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 13277: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 13278: -e 's:$: $lt_compiler_flag:'` ! 13279: (eval echo "\"\$as_me:13279: $lt_compile\"" >&5) ! 13280: (eval "$lt_compile" 2>out/conftest.err) ! 13281: ac_status=$? ! 13282: cat out/conftest.err >&5 ! 13283: echo "$as_me:13283: \$? = $ac_status" >&5 ! 13284: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 13285: then ! 13286: # The compiler can only warn and ignore the option if not recognized ! 13287: # So say no if there are warnings ! 13288: if test ! -s out/conftest.err; then ! 13289: lt_cv_prog_compiler_c_o_F77=yes ! 13290: fi ! 13291: fi ! 13292: chmod u+w . ! 13293: $rm conftest* out/* ! 13294: rmdir out ! 13295: cd .. ! 13296: rmdir conftest ! 13297: $rm conftest* ! 13298: ! 13299: fi ! 13300: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 ! 13301: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 ! 13302: ! 13303: ! 13304: hard_links="nottested" ! 13305: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then ! 13306: # do not overwrite the value of need_locks provided by the user ! 13307: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 13308: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 13309: hard_links=yes ! 13310: $rm conftest* ! 13311: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 13312: touch conftest.a ! 13313: ln conftest.a conftest.b 2>&5 || hard_links=no ! 13314: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 13315: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 13316: echo "${ECHO_T}$hard_links" >&6 ! 13317: if test "$hard_links" = no; then ! 13318: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 13319: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 13320: need_locks=warn ! 13321: fi ! 13322: else ! 13323: need_locks=no ! 13324: fi ! 13325: ! 13326: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 13327: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 13328: ! 13329: runpath_var= ! 13330: allow_undefined_flag_F77= ! 13331: enable_shared_with_static_runtimes_F77=no ! 13332: archive_cmds_F77= ! 13333: archive_expsym_cmds_F77= ! 13334: old_archive_From_new_cmds_F77= ! 13335: old_archive_from_expsyms_cmds_F77= ! 13336: export_dynamic_flag_spec_F77= ! 13337: whole_archive_flag_spec_F77= ! 13338: thread_safe_flag_spec_F77= ! 13339: hardcode_libdir_flag_spec_F77= ! 13340: hardcode_libdir_flag_spec_ld_F77= ! 13341: hardcode_libdir_separator_F77= ! 13342: hardcode_direct_F77=no ! 13343: hardcode_minus_L_F77=no ! 13344: hardcode_shlibpath_var_F77=unsupported ! 13345: link_all_deplibs_F77=unknown ! 13346: hardcode_automatic_F77=no ! 13347: module_cmds_F77= ! 13348: module_expsym_cmds_F77= ! 13349: always_export_symbols_F77=no ! 13350: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 13351: # include_expsyms should be a list of space-separated symbols to be *always* ! 13352: # included in the symbol list ! 13353: include_expsyms_F77= ! 13354: # exclude_expsyms can be an extended regexp of symbols to exclude ! 13355: # it will be wrapped by ` (' and `)$', so one must not match beginning or ! 13356: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ! 13357: # as well as any symbol that contains `d'. ! 13358: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" ! 13359: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ! 13360: # platforms (ab)use it in PIC code, but their linkers get confused if ! 13361: # the symbol is explicitly referenced. Since portable code cannot ! 13362: # rely on this symbol name, it's probably fine to never include it in ! 13363: # preloaded symbol tables. ! 13364: extract_expsyms_cmds= ! 13365: ! 13366: case $host_os in ! 13367: cygwin* | mingw* | pw32*) ! 13368: # FIXME: the MSVC++ port hasn't been tested in a loooong time ! 13369: # When not using gcc, we currently assume that we are using ! 13370: # Microsoft Visual C++. ! 13371: if test "$GCC" != yes; then ! 13372: with_gnu_ld=no ! 13373: fi ! 13374: ;; ! 13375: openbsd*) ! 13376: with_gnu_ld=no ! 13377: ;; ! 13378: esac ! 13379: ! 13380: ld_shlibs_F77=yes ! 13381: if test "$with_gnu_ld" = yes; then ! 13382: # If archive_cmds runs LD, not CC, wlarc should be empty ! 13383: wlarc='${wl}' ! 13384: ! 13385: # See if GNU ld supports shared libraries. ! 13386: case $host_os in ! 13387: aix3* | aix4* | aix5*) ! 13388: # On AIX/PPC, the GNU linker is very broken ! 13389: if test "$host_cpu" != ia64; then ! 13390: ld_shlibs_F77=no ! 13391: cat <<EOF 1>&2 ! 13392: ! 13393: *** Warning: the GNU linker, at least up to release 2.9.1, is reported ! 13394: *** to be unable to reliably create shared libraries on AIX. ! 13395: *** Therefore, libtool is disabling shared libraries support. If you ! 13396: *** really care for shared libraries, you may want to modify your PATH ! 13397: *** so that a non-GNU linker is found, and then restart. ! 13398: ! 13399: EOF ! 13400: fi ! 13401: ;; ! 13402: ! 13403: amigaos*) ! 13404: archive_cmds_F77='$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)' ! 13405: hardcode_libdir_flag_spec_F77='-L$libdir' ! 13406: hardcode_minus_L_F77=yes ! 13407: ! 13408: # Samuel A. Falvo II <[email protected]> reports ! 13409: # that the semantics of dynamic libraries on AmigaOS, at least up ! 13410: # to version 4, is to share data among multiple programs linked ! 13411: # with the same dynamic library. Since this doesn't match the ! 13412: # behavior of shared libraries on other platforms, we can't use ! 13413: # them. ! 13414: ld_shlibs_F77=no ! 13415: ;; ! 13416: ! 13417: beos*) ! 13418: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 13419: allow_undefined_flag_F77=unsupported ! 13420: # Joseph Beckenbach <[email protected]> says some releases of gcc ! 13421: # support --undefined. This deserves some investigation. FIXME ! 13422: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 13423: else ! 13424: ld_shlibs_F77=no ! 13425: fi ! 13426: ;; ! 13427: ! 13428: cygwin* | mingw* | pw32*) ! 13429: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, ! 13430: # as there is no search path for DLLs. ! 13431: hardcode_libdir_flag_spec_F77='-L$libdir' ! 13432: allow_undefined_flag_F77=unsupported ! 13433: always_export_symbols_F77=no ! 13434: enable_shared_with_static_runtimes_F77=yes ! 13435: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 13436: ! 13437: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 13438: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 13439: # If the export-symbols file already is a .def file (1st line ! 13440: # is EXPORTS), use it as is; otherwise, prepend... ! 13441: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 13442: cp $export_symbols $output_objdir/$soname.def; ! 13443: else ! 13444: echo EXPORTS > $output_objdir/$soname.def; ! 13445: cat $export_symbols >> $output_objdir/$soname.def; ! 13446: fi~ ! 13447: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 13448: else ! 13449: ld_shlibs=no ! 13450: fi ! 13451: ;; ! 13452: ! 13453: netbsd*) ! 13454: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 13455: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ! 13456: wlarc= ! 13457: else ! 13458: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 13459: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 13460: fi ! 13461: ;; ! 13462: ! 13463: solaris* | sysv5*) ! 13464: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ! 13465: ld_shlibs_F77=no ! 13466: cat <<EOF 1>&2 ! 13467: ! 13468: *** Warning: The releases 2.8.* of the GNU linker cannot reliably ! 13469: *** create shared libraries on Solaris systems. Therefore, libtool ! 13470: *** is disabling shared libraries support. We urge you to upgrade GNU ! 13471: *** binutils to release 2.9.1 or newer. Another option is to modify ! 13472: *** your PATH or compiler configuration so that the native linker is ! 13473: *** used, and then restart. ! 13474: ! 13475: EOF ! 13476: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 13477: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 13478: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 13479: else ! 13480: ld_shlibs_F77=no ! 13481: fi ! 13482: ;; ! 13483: ! 13484: sunos4*) ! 13485: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 13486: wlarc= ! 13487: hardcode_direct_F77=yes ! 13488: hardcode_shlibpath_var_F77=no ! 13489: ;; ! 13490: ! 13491: *) ! 13492: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 13493: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 13494: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 13495: else ! 13496: ld_shlibs_F77=no ! 13497: fi ! 13498: ;; ! 13499: esac ! 13500: ! 13501: if test "$ld_shlibs_F77" = yes; then ! 13502: runpath_var=LD_RUN_PATH ! 13503: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' ! 13504: export_dynamic_flag_spec_F77='${wl}--export-dynamic' ! 13505: # ancient GNU ld didn't support --whole-archive et. al. ! 13506: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then ! 13507: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 13508: else ! 13509: whole_archive_flag_spec_F77= ! 13510: fi ! 13511: fi ! 13512: else ! 13513: # PORTME fill in a description of your system's linker (not GNU ld) ! 13514: case $host_os in ! 13515: aix3*) ! 13516: allow_undefined_flag_F77=unsupported ! 13517: always_export_symbols_F77=yes ! 13518: archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ! 13519: # Note: this linker hardcodes the directories in LIBPATH if there ! 13520: # are no directories specified by -L. ! 13521: hardcode_minus_L_F77=yes ! 13522: if test "$GCC" = yes && test -z "$link_static_flag"; then ! 13523: # Neither direct hardcoding nor static linking is supported with a ! 13524: # broken collect2. ! 13525: hardcode_direct_F77=unsupported ! 13526: fi ! 13527: ;; ! 13528: ! 13529: aix4* | aix5*) ! 13530: if test "$host_cpu" = ia64; then ! 13531: # On IA64, the linker does run time linking by default, so we don't ! 13532: # have to do anything special. ! 13533: aix_use_runtimelinking=no ! 13534: exp_sym_flag='-Bexport' ! 13535: no_entry_flag="" ! 13536: else ! 13537: # If we're using GNU nm, then we don't want the "-C" option. ! 13538: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 13539: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 13540: export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ! 13541: else ! 13542: export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ! 13543: fi ! 13544: aix_use_runtimelinking=no ! 13545: ! 13546: # Test if we are trying to use run time linking or normal ! 13547: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 13548: # need to do runtime linking. ! 13549: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 13550: for ld_flag in $LDFLAGS; do ! 13551: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ! 13552: aix_use_runtimelinking=yes ! 13553: break ! 13554: fi ! 13555: done ! 13556: esac ! 13557: ! 13558: exp_sym_flag='-bexport' ! 13559: no_entry_flag='-bnoentry' ! 13560: fi ! 13561: ! 13562: # When large executables or shared objects are built, AIX ld can ! 13563: # have problems creating the table of contents. If linking a library ! 13564: # or program results in "error TOC overflow" add -mminimal-toc to ! 13565: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 13566: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 13567: ! 13568: archive_cmds_F77='' ! 13569: hardcode_direct_F77=yes ! 13570: hardcode_libdir_separator_F77=':' ! 13571: link_all_deplibs_F77=yes ! 13572: ! 13573: if test "$GCC" = yes; then ! 13574: case $host_os in aix4.012|aix4.012.*) ! 13575: # We only want to do this on AIX 4.2 and lower, the check ! 13576: # below for broken collect2 doesn't work under 4.3+ ! 13577: collect2name=`${CC} -print-prog-name=collect2` ! 13578: if test -f "$collect2name" && \ ! 13579: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 13580: then ! 13581: # We have reworked collect2 ! 13582: hardcode_direct_F77=yes ! 13583: else ! 13584: # We have old collect2 ! 13585: hardcode_direct_F77=unsupported ! 13586: # It fails to find uninstalled libraries when the uninstalled ! 13587: # path is not listed in the libpath. Setting hardcode_minus_L ! 13588: # to unsupported forces relinking ! 13589: hardcode_minus_L_F77=yes ! 13590: hardcode_libdir_flag_spec_F77='-L$libdir' ! 13591: hardcode_libdir_separator_F77= ! 13592: fi ! 13593: esac ! 13594: shared_flag='-shared' ! 13595: else ! 13596: # not using gcc ! 13597: if test "$host_cpu" = ia64; then ! 13598: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 13599: # chokes on -Wl,-G. The following line is correct: ! 13600: shared_flag='-G' ! 13601: else ! 13602: if test "$aix_use_runtimelinking" = yes; then ! 13603: shared_flag='${wl}-G' ! 13604: else ! 13605: shared_flag='${wl}-bM:SRE' ! 13606: fi ! 13607: fi ! 13608: fi ! 13609: ! 13610: # It seems that -bexpall does not export symbols beginning with ! 13611: # underscore (_), so it is better to generate a list of symbols to export. ! 13612: always_export_symbols_F77=yes ! 13613: if test "$aix_use_runtimelinking" = yes; then ! 13614: # Warning - without using the other runtime loading flags (-brtl), ! 13615: # -berok will link without error, but may produce a broken library. ! 13616: allow_undefined_flag_F77='-berok' ! 13617: # Determine the default libpath from the value encoded in an empty executable. ! 13618: cat >conftest.$ac_ext <<_ACEOF ! 13619: program main ! 13620: ! 13621: end ! 13622: _ACEOF ! 13623: rm -f conftest.$ac_objext conftest$ac_exeext ! 13624: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 13625: (eval $ac_link) 2>&5 ! 13626: ac_status=$? ! 13627: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 13628: (exit $ac_status); } && ! 13629: { ac_try='test -s conftest$ac_exeext' ! 13630: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 13631: (eval $ac_try) 2>&5 ! 13632: ac_status=$? ! 13633: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 13634: (exit $ac_status); }; }; then ! 13635: ! 13636: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 13637: }'` ! 13638: # Check for a 64-bit object if we didn't find anything. ! 13639: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 13640: }'`; fi ! 13641: else ! 13642: echo "$as_me: failed program was:" >&5 ! 13643: sed 's/^/| /' conftest.$ac_ext >&5 ! 13644: ! 13645: fi ! 13646: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 13647: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 13648: ! 13649: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ! 13650: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 13651: else ! 13652: if test "$host_cpu" = ia64; then ! 13653: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' ! 13654: allow_undefined_flag_F77="-z nodefs" ! 13655: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 13656: else ! 13657: # Determine the default libpath from the value encoded in an empty executable. ! 13658: cat >conftest.$ac_ext <<_ACEOF ! 13659: program main ! 13660: ! 13661: end ! 13662: _ACEOF ! 13663: rm -f conftest.$ac_objext conftest$ac_exeext ! 13664: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 13665: (eval $ac_link) 2>&5 ! 13666: ac_status=$? ! 13667: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 13668: (exit $ac_status); } && ! 13669: { ac_try='test -s conftest$ac_exeext' ! 13670: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 13671: (eval $ac_try) 2>&5 ! 13672: ac_status=$? ! 13673: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 13674: (exit $ac_status); }; }; then ! 13675: ! 13676: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 13677: }'` ! 13678: # Check for a 64-bit object if we didn't find anything. ! 13679: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 13680: }'`; fi ! 13681: else ! 13682: echo "$as_me: failed program was:" >&5 ! 13683: sed 's/^/| /' conftest.$ac_ext >&5 ! 13684: ! 13685: fi ! 13686: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 13687: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 13688: ! 13689: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ! 13690: # Warning - without using the other run time loading flags, ! 13691: # -berok will link without error, but may produce a broken library. ! 13692: no_undefined_flag_F77=' ${wl}-bernotok' ! 13693: allow_undefined_flag_F77=' ${wl}-berok' ! 13694: # -bexpall does not export symbols beginning with underscore (_) ! 13695: always_export_symbols_F77=yes ! 13696: # Exported symbols can be pulled into shared objects from archives ! 13697: whole_archive_flag_spec_F77=' ' ! 13698: archive_cmds_need_lc_F77=yes ! 13699: # This is similar to how AIX traditionally builds it's shared libraries. ! 13700: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 13701: fi ! 13702: fi ! 13703: ;; ! 13704: ! 13705: amigaos*) ! 13706: archive_cmds_F77='$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)' ! 13707: hardcode_libdir_flag_spec_F77='-L$libdir' ! 13708: hardcode_minus_L_F77=yes ! 13709: # see comment about different semantics on the GNU ld section ! 13710: ld_shlibs_F77=no ! 13711: ;; ! 13712: ! 13713: bsdi4*) ! 13714: export_dynamic_flag_spec_F77=-rdynamic ! 13715: ;; ! 13716: ! 13717: cygwin* | mingw* | pw32*) ! 13718: # When not using gcc, we currently assume that we are using ! 13719: # Microsoft Visual C++. ! 13720: # hardcode_libdir_flag_spec is actually meaningless, as there is ! 13721: # no search path for DLLs. ! 13722: hardcode_libdir_flag_spec_F77=' ' ! 13723: allow_undefined_flag_F77=unsupported ! 13724: # Tell ltmain to make .lib files, not .a files. ! 13725: libext=lib ! 13726: # Tell ltmain to make .dll files, not .so files. ! 13727: shrext=".dll" ! 13728: # FIXME: Setting linknames here is a bad hack. ! 13729: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' ! 13730: # The linker will automatically build a .lib file if we build a DLL. ! 13731: old_archive_From_new_cmds_F77='true' ! 13732: # FIXME: Should let the user specify the lib program. ! 13733: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' ! 13734: fix_srcfile_path='`cygpath -w "$srcfile"`' ! 13735: enable_shared_with_static_runtimes_F77=yes ! 13736: ;; ! 13737: ! 13738: darwin* | rhapsody*) ! 13739: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 13740: archive_cmds_need_lc_F77=no ! 13741: case "$host_os" in ! 13742: rhapsody* | darwin1.[012]) ! 13743: allow_undefined_flag_F77='-undefined suppress' ! 13744: ;; ! 13745: *) # Darwin 1.3 on ! 13746: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' ! 13747: ;; ! 13748: esac ! 13749: # FIXME: Relying on posixy $() will cause problems for ! 13750: # cross-compilation, but unfortunately the echo tests do not ! 13751: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 13752: # `"' quotes if we put them in here... so don't! ! 13753: lt_int_apple_cc_single_mod=no ! 13754: output_verbose_link_cmd='echo' ! 13755: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 13756: lt_int_apple_cc_single_mod=yes ! 13757: fi ! 13758: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 13759: archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 13760: else ! 13761: archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 13762: fi ! 13763: module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 13764: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 13765: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 13766: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 13767: else ! 13768: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 13769: fi ! 13770: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 13771: hardcode_direct_F77=no ! 13772: hardcode_automatic_F77=yes ! 13773: hardcode_shlibpath_var_F77=unsupported ! 13774: whole_archive_flag_spec_F77='-all_load $convenience' ! 13775: link_all_deplibs_F77=yes ! 13776: fi ! 13777: ;; ! 13778: ! 13779: dgux*) ! 13780: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 13781: hardcode_libdir_flag_spec_F77='-L$libdir' ! 13782: hardcode_shlibpath_var_F77=no ! 13783: ;; ! 13784: ! 13785: freebsd1*) ! 13786: ld_shlibs_F77=no ! 13787: ;; ! 13788: ! 13789: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ! 13790: # support. Future versions do this automatically, but an explicit c++rt0.o ! 13791: # does not break anything, and helps significantly (at the cost of a little ! 13792: # extra space). ! 13793: freebsd2.2*) ! 13794: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ! 13795: hardcode_libdir_flag_spec_F77='-R$libdir' ! 13796: hardcode_direct_F77=yes ! 13797: hardcode_shlibpath_var_F77=no ! 13798: ;; ! 13799: ! 13800: # Unfortunately, older versions of FreeBSD 2 do not have this feature. ! 13801: freebsd2*) ! 13802: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 13803: hardcode_direct_F77=yes ! 13804: hardcode_minus_L_F77=yes ! 13805: hardcode_shlibpath_var_F77=no ! 13806: ;; ! 13807: ! 13808: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ! 13809: freebsd*) ! 13810: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ! 13811: hardcode_libdir_flag_spec_F77='-R$libdir' ! 13812: hardcode_direct_F77=yes ! 13813: hardcode_shlibpath_var_F77=no ! 13814: ;; ! 13815: ! 13816: hpux9*) ! 13817: if test "$GCC" = yes; then ! 13818: archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ! 13819: else ! 13820: archive_cmds_F77='$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' ! 13821: fi ! 13822: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ! 13823: hardcode_libdir_separator_F77=: ! 13824: hardcode_direct_F77=yes ! 13825: ! 13826: # hardcode_minus_L: Not really in the search PATH, ! 13827: # but as the default location of the library. ! 13828: hardcode_minus_L_F77=yes ! 13829: export_dynamic_flag_spec_F77='${wl}-E' ! 13830: ;; ! 13831: ! 13832: hpux10* | hpux11*) ! 13833: if test "$GCC" = yes -a "$with_gnu_ld" = no; then ! 13834: case "$host_cpu" in ! 13835: hppa*64*|ia64*) ! 13836: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 13837: ;; ! 13838: *) ! 13839: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ! 13840: ;; ! 13841: esac ! 13842: else ! 13843: case "$host_cpu" in ! 13844: hppa*64*|ia64*) ! 13845: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ! 13846: ;; ! 13847: *) ! 13848: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ! 13849: ;; ! 13850: esac ! 13851: fi ! 13852: if test "$with_gnu_ld" = no; then ! 13853: case "$host_cpu" in ! 13854: hppa*64*) ! 13855: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ! 13856: hardcode_libdir_flag_spec_ld_F77='+b $libdir' ! 13857: hardcode_libdir_separator_F77=: ! 13858: hardcode_direct_F77=no ! 13859: hardcode_shlibpath_var_F77=no ! 13860: ;; ! 13861: ia64*) ! 13862: hardcode_libdir_flag_spec_F77='-L$libdir' ! 13863: hardcode_direct_F77=no ! 13864: hardcode_shlibpath_var_F77=no ! 13865: ! 13866: # hardcode_minus_L: Not really in the search PATH, ! 13867: # but as the default location of the library. ! 13868: hardcode_minus_L_F77=yes ! 13869: ;; ! 13870: *) ! 13871: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ! 13872: hardcode_libdir_separator_F77=: ! 13873: hardcode_direct_F77=yes ! 13874: export_dynamic_flag_spec_F77='${wl}-E' ! 13875: ! 13876: # hardcode_minus_L: Not really in the search PATH, ! 13877: # but as the default location of the library. ! 13878: hardcode_minus_L_F77=yes ! 13879: ;; ! 13880: esac ! 13881: fi ! 13882: ;; ! 13883: ! 13884: irix5* | irix6* | nonstopux*) ! 13885: if test "$GCC" = yes; then ! 13886: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 13887: else ! 13888: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 13889: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' ! 13890: fi ! 13891: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 13892: hardcode_libdir_separator_F77=: ! 13893: link_all_deplibs_F77=yes ! 13894: ;; ! 13895: ! 13896: netbsd*) ! 13897: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 13898: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ! 13899: else ! 13900: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ! 13901: fi ! 13902: hardcode_libdir_flag_spec_F77='-R$libdir' ! 13903: hardcode_direct_F77=yes ! 13904: hardcode_shlibpath_var_F77=no ! 13905: ;; ! 13906: ! 13907: newsos6) ! 13908: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 13909: hardcode_direct_F77=yes ! 13910: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 13911: hardcode_libdir_separator_F77=: ! 13912: hardcode_shlibpath_var_F77=no ! 13913: ;; ! 13914: ! 13915: openbsd*) ! 13916: hardcode_direct_F77=yes ! 13917: hardcode_shlibpath_var_F77=no ! 13918: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 13919: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 13920: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ! 13921: export_dynamic_flag_spec_F77='${wl}-E' ! 13922: else ! 13923: case $host_os in ! 13924: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ! 13925: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 13926: hardcode_libdir_flag_spec_F77='-R$libdir' ! 13927: ;; ! 13928: *) ! 13929: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 13930: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ! 13931: ;; ! 13932: esac ! 13933: fi ! 13934: ;; ! 13935: ! 13936: os2*) ! 13937: hardcode_libdir_flag_spec_F77='-L$libdir' ! 13938: hardcode_minus_L_F77=yes ! 13939: allow_undefined_flag_F77=unsupported ! 13940: archive_cmds_F77='$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' ! 13941: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ! 13942: ;; ! 13943: ! 13944: osf3*) ! 13945: if test "$GCC" = yes; then ! 13946: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ! 13947: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 13948: else ! 13949: allow_undefined_flag_F77=' -expect_unresolved \*' ! 13950: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 13951: fi ! 13952: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 13953: hardcode_libdir_separator_F77=: ! 13954: ;; ! 13955: ! 13956: osf4* | osf5*) # as osf3* with the addition of -msym flag ! 13957: if test "$GCC" = yes; then ! 13958: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ! 13959: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 13960: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ! 13961: else ! 13962: allow_undefined_flag_F77=' -expect_unresolved \*' ! 13963: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 13964: archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ ! 13965: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' ! 13966: ! 13967: # Both c and cxx compiler support -rpath directly ! 13968: hardcode_libdir_flag_spec_F77='-rpath $libdir' ! 13969: fi ! 13970: hardcode_libdir_separator_F77=: ! 13971: ;; ! 13972: ! 13973: sco3.2v5*) ! 13974: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 13975: hardcode_shlibpath_var_F77=no ! 13976: export_dynamic_flag_spec_F77='${wl}-Bexport' ! 13977: runpath_var=LD_RUN_PATH ! 13978: hardcode_runpath_var=yes ! 13979: ;; ! 13980: ! 13981: solaris*) ! 13982: no_undefined_flag_F77=' -z text' ! 13983: if test "$GCC" = yes; then ! 13984: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 13985: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 13986: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' ! 13987: else ! 13988: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 13989: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 13990: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 13991: fi ! 13992: hardcode_libdir_flag_spec_F77='-R$libdir' ! 13993: hardcode_shlibpath_var_F77=no ! 13994: case $host_os in ! 13995: solaris2.[0-5] | solaris2.[0-5].*) ;; ! 13996: *) # Supported since Solaris 2.6 (maybe 2.5.1?) ! 13997: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; ! 13998: esac ! 13999: link_all_deplibs_F77=yes ! 14000: ;; ! 14001: ! 14002: sunos4*) ! 14003: if test "x$host_vendor" = xsequent; then ! 14004: # Use $CC to link under sequent, because it throws in some extra .o ! 14005: # files that make .init and .fini sections work. ! 14006: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ! 14007: else ! 14008: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ! 14009: fi ! 14010: hardcode_libdir_flag_spec_F77='-L$libdir' ! 14011: hardcode_direct_F77=yes ! 14012: hardcode_minus_L_F77=yes ! 14013: hardcode_shlibpath_var_F77=no ! 14014: ;; ! 14015: ! 14016: sysv4) ! 14017: case $host_vendor in ! 14018: sni) ! 14019: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 14020: hardcode_direct_F77=yes # is this really true??? ! 14021: ;; ! 14022: siemens) ! 14023: ## LD is ld it makes a PLAMLIB ! 14024: ## CC just makes a GrossModule. ! 14025: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 14026: reload_cmds_F77='$CC -r -o $output$reload_objs' ! 14027: hardcode_direct_F77=no ! 14028: ;; ! 14029: motorola) ! 14030: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 14031: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ! 14032: ;; ! 14033: esac ! 14034: runpath_var='LD_RUN_PATH' ! 14035: hardcode_shlibpath_var_F77=no ! 14036: ;; ! 14037: ! 14038: sysv4.3*) ! 14039: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 14040: hardcode_shlibpath_var_F77=no ! 14041: export_dynamic_flag_spec_F77='-Bexport' ! 14042: ;; ! 14043: ! 14044: sysv4*MP*) ! 14045: if test -d /usr/nec; then ! 14046: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 14047: hardcode_shlibpath_var_F77=no ! 14048: runpath_var=LD_RUN_PATH ! 14049: hardcode_runpath_var=yes ! 14050: ld_shlibs_F77=yes ! 14051: fi ! 14052: ;; ! 14053: ! 14054: sysv4.2uw2*) ! 14055: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 14056: hardcode_direct_F77=yes ! 14057: hardcode_minus_L_F77=no ! 14058: hardcode_shlibpath_var_F77=no ! 14059: hardcode_runpath_var=yes ! 14060: runpath_var=LD_RUN_PATH ! 14061: ;; ! 14062: ! 14063: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 14064: no_undefined_flag_F77='${wl}-z ${wl}text' ! 14065: if test "$GCC" = yes; then ! 14066: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 14067: else ! 14068: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 14069: fi ! 14070: runpath_var='LD_RUN_PATH' ! 14071: hardcode_shlibpath_var_F77=no ! 14072: ;; ! 14073: ! 14074: sysv5*) ! 14075: no_undefined_flag_F77=' -z text' ! 14076: # $CC -shared without GNU ld will not create a library from C++ ! 14077: # object files and a static libstdc++, better avoid it by now ! 14078: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 14079: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 14080: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 14081: hardcode_libdir_flag_spec_F77= ! 14082: hardcode_shlibpath_var_F77=no ! 14083: runpath_var='LD_RUN_PATH' ! 14084: ;; ! 14085: ! 14086: uts4*) ! 14087: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 14088: hardcode_libdir_flag_spec_F77='-L$libdir' ! 14089: hardcode_shlibpath_var_F77=no ! 14090: ;; ! 14091: ! 14092: *) ! 14093: ld_shlibs_F77=no ! 14094: ;; ! 14095: esac ! 14096: fi ! 14097: ! 14098: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 ! 14099: echo "${ECHO_T}$ld_shlibs_F77" >&6 ! 14100: test "$ld_shlibs_F77" = no && can_build_shared=no ! 14101: ! 14102: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 14103: if test "$GCC" = yes; then ! 14104: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 14105: fi ! 14106: ! 14107: # ! 14108: # Do we need to explicitly link libc? ! 14109: # ! 14110: case "x$archive_cmds_need_lc_F77" in ! 14111: x|xyes) ! 14112: # Assume -lc should be added ! 14113: archive_cmds_need_lc_F77=yes ! 14114: ! 14115: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 14116: case $archive_cmds_F77 in ! 14117: *'~'*) ! 14118: # FIXME: we may have to deal with multi-command sequences. ! 14119: ;; ! 14120: '$CC '*) ! 14121: # Test whether the compiler implicitly links with -lc since on some ! 14122: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 14123: # to ld, don't add -lc before -lgcc. ! 14124: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 14125: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 14126: $rm conftest* ! 14127: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 14128: ! 14129: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 14130: (eval $ac_compile) 2>&5 ! 14131: ac_status=$? ! 14132: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14133: (exit $ac_status); } 2>conftest.err; then ! 14134: soname=conftest ! 14135: lib=conftest ! 14136: libobjs=conftest.$ac_objext ! 14137: deplibs= ! 14138: wl=$lt_prog_compiler_wl_F77 ! 14139: compiler_flags=-v ! 14140: linker_flags=-v ! 14141: verstring= ! 14142: output_objdir=. ! 14143: libname=conftest ! 14144: lt_save_allow_undefined_flag=$allow_undefined_flag_F77 ! 14145: allow_undefined_flag_F77= ! 14146: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 14147: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 14148: ac_status=$? ! 14149: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 14150: (exit $ac_status); } ! 14151: then ! 14152: archive_cmds_need_lc_F77=no ! 14153: else ! 14154: archive_cmds_need_lc_F77=yes ! 14155: fi ! 14156: allow_undefined_flag_F77=$lt_save_allow_undefined_flag ! 14157: else ! 14158: cat conftest.err 1>&5 ! 14159: fi ! 14160: $rm conftest* ! 14161: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 ! 14162: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 ! 14163: ;; ! 14164: esac ! 14165: fi ! 14166: ;; ! 14167: esac ! 14168: ! 14169: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 14170: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 14171: hardcode_action_F77= ! 14172: if test -n "$hardcode_libdir_flag_spec_F77" || \ ! 14173: test -n "$runpath_var F77" || \ ! 14174: test "X$hardcode_automatic_F77"="Xyes" ; then ! 14175: ! 14176: # We can hardcode non-existant directories. ! 14177: if test "$hardcode_direct_F77" != no && ! 14178: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 14179: # have to relink, otherwise we might link with an installed library ! 14180: # when we should be linking with a yet-to-be-installed one ! 14181: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && ! 14182: test "$hardcode_minus_L_F77" != no; then ! 14183: # Linking always hardcodes the temporary library directory. ! 14184: hardcode_action_F77=relink ! 14185: else ! 14186: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 14187: hardcode_action_F77=immediate ! 14188: fi ! 14189: else ! 14190: # We cannot hardcode anything, or else we can only hardcode existing ! 14191: # directories. ! 14192: hardcode_action_F77=unsupported ! 14193: fi ! 14194: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 ! 14195: echo "${ECHO_T}$hardcode_action_F77" >&6 ! 14196: ! 14197: if test "$hardcode_action_F77" = relink; then ! 14198: # Fast installation is not supported ! 14199: enable_fast_install=no ! 14200: elif test "$shlibpath_overrides_runpath" = yes || ! 14201: test "$enable_shared" = no; then ! 14202: # Fast installation is not necessary ! 14203: enable_fast_install=needless ! 14204: fi ! 14205: ! 14206: striplib= ! 14207: old_striplib= ! 14208: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 14209: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 14210: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 14211: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 14212: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 14213: echo "$as_me:$LINENO: result: yes" >&5 ! 14214: echo "${ECHO_T}yes" >&6 ! 14215: else ! 14216: # FIXME - insert some real tests, host_os isn't really good enough ! 14217: case $host_os in ! 14218: darwin*) ! 14219: if test -n "$STRIP" ; then ! 14220: striplib="$STRIP -x" ! 14221: echo "$as_me:$LINENO: result: yes" >&5 ! 14222: echo "${ECHO_T}yes" >&6 ! 14223: else ! 14224: echo "$as_me:$LINENO: result: no" >&5 ! 14225: echo "${ECHO_T}no" >&6 ! 14226: fi ! 14227: ;; ! 14228: *) ! 14229: echo "$as_me:$LINENO: result: no" >&5 ! 14230: echo "${ECHO_T}no" >&6 ! 14231: ;; ! 14232: esac ! 14233: fi ! 14234: ! 14235: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 14236: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 14237: library_names_spec= ! 14238: libname_spec='lib$name' ! 14239: soname_spec= ! 14240: shrext=".so" ! 14241: postinstall_cmds= ! 14242: postuninstall_cmds= ! 14243: finish_cmds= ! 14244: finish_eval= ! 14245: shlibpath_var= ! 14246: shlibpath_overrides_runpath=unknown ! 14247: version_type=none ! 14248: dynamic_linker="$host_os ld.so" ! 14249: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 14250: if test "$GCC" = yes; then ! 14251: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 14252: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 14253: # if the path contains ";" then we assume it to be the separator ! 14254: # otherwise default to the standard path separator (i.e. ":") - it is ! 14255: # assumed that no part of a normal pathname contains ";" but that should ! 14256: # okay in the real world where ";" in dirpaths is itself problematic. ! 14257: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 14258: else ! 14259: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 14260: fi ! 14261: else ! 14262: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 14263: fi ! 14264: need_lib_prefix=unknown ! 14265: hardcode_into_libs=no ! 14266: ! 14267: # when you set need_version to no, make sure it does not cause -set_version ! 14268: # flags to be left without arguments ! 14269: need_version=unknown ! 14270: ! 14271: case $host_os in ! 14272: aix3*) ! 14273: version_type=linux ! 14274: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 14275: shlibpath_var=LIBPATH ! 14276: ! 14277: # AIX 3 has no versioning support, so we append a major version to the name. ! 14278: soname_spec='${libname}${release}${shared_ext}$major' ! 14279: ;; ! 14280: ! 14281: aix4* | aix5*) ! 14282: version_type=linux ! 14283: need_lib_prefix=no ! 14284: need_version=no ! 14285: hardcode_into_libs=yes ! 14286: if test "$host_cpu" = ia64; then ! 14287: # AIX 5 supports IA64 ! 14288: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 14289: shlibpath_var=LD_LIBRARY_PATH ! 14290: else ! 14291: # With GCC up to 2.95.x, collect2 would create an import file ! 14292: # for dependence libraries. The import file would start with ! 14293: # the line `#! .'. This would cause the generated library to ! 14294: # depend on `.', always an invalid library. This was fixed in ! 14295: # development snapshots of GCC prior to 3.0. ! 14296: case $host_os in ! 14297: aix4 | aix4.[01] | aix4.[01].*) ! 14298: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 14299: echo ' yes ' ! 14300: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 14301: : ! 14302: else ! 14303: can_build_shared=no ! 14304: fi ! 14305: ;; ! 14306: esac ! 14307: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 14308: # soname into executable. Probably we can add versioning support to ! 14309: # collect2, so additional links can be useful in future. ! 14310: if test "$aix_use_runtimelinking" = yes; then ! 14311: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 14312: # instead of lib<name>.a to let people know that these are not ! 14313: # typical AIX shared libraries. ! 14314: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14315: else ! 14316: # We preserve .a as extension for shared libraries through AIX4.2 ! 14317: # and later when we are not doing run time linking. ! 14318: library_names_spec='${libname}${release}.a $libname.a' ! 14319: soname_spec='${libname}${release}${shared_ext}$major' ! 14320: fi ! 14321: shlibpath_var=LIBPATH ! 14322: fi ! 14323: ;; ! 14324: ! 14325: amigaos*) ! 14326: library_names_spec='$libname.ixlibrary $libname.a' ! 14327: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 14328: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' ! 14329: ;; ! 14330: ! 14331: beos*) ! 14332: library_names_spec='${libname}${shared_ext}' ! 14333: dynamic_linker="$host_os ld.so" ! 14334: shlibpath_var=LIBRARY_PATH ! 14335: ;; ! 14336: ! 14337: bsdi4*) ! 14338: version_type=linux ! 14339: need_version=no ! 14340: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14341: soname_spec='${libname}${release}${shared_ext}$major' ! 14342: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 14343: shlibpath_var=LD_LIBRARY_PATH ! 14344: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 14345: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 14346: # the default ld.so.conf also contains /usr/contrib/lib and ! 14347: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 14348: # libtool to hard-code these into programs ! 14349: ;; ! 14350: ! 14351: cygwin* | mingw* | pw32*) ! 14352: version_type=windows ! 14353: shrext=".dll" ! 14354: need_version=no ! 14355: need_lib_prefix=no ! 14356: ! 14357: case $GCC,$host_os in ! 14358: yes,cygwin* | yes,mingw* | yes,pw32*) ! 14359: library_names_spec='$libname.dll.a' ! 14360: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 14361: postinstall_cmds='base_file=`basename \${file}`~ ! 14362: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 14363: dldir=$destdir/`dirname \$dlpath`~ ! 14364: test -d \$dldir || mkdir -p \$dldir~ ! 14365: $install_prog $dir/$dlname \$dldir/$dlname' ! 14366: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 14367: dlpath=$dir/\$dldll~ ! 14368: $rm \$dlpath' ! 14369: shlibpath_overrides_runpath=yes ! 14370: ! 14371: case $host_os in ! 14372: cygwin*) ! 14373: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 14374: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 14375: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 14376: ;; ! 14377: mingw*) ! 14378: # MinGW DLLs use traditional 'lib' prefix ! 14379: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 14380: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 14381: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 14382: # It is most probably a Windows format PATH printed by ! 14383: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 14384: # path with ; separators, and with drive letters. We can handle the ! 14385: # drive letters (cygwin fileutils understands them), so leave them, ! 14386: # especially as we might pass files found there to a mingw objdump, ! 14387: # which wouldn't understand a cygwinified path. Ahh. ! 14388: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 14389: else ! 14390: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 14391: fi ! 14392: ;; ! 14393: pw32*) ! 14394: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 14395: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 14396: ;; ! 14397: esac ! 14398: ;; ! 14399: ! 14400: *) ! 14401: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 14402: ;; ! 14403: esac ! 14404: dynamic_linker='Win32 ld.exe' ! 14405: # FIXME: first we should search . and the directory the executable is in ! 14406: shlibpath_var=PATH ! 14407: ;; ! 14408: ! 14409: darwin* | rhapsody*) ! 14410: dynamic_linker="$host_os dyld" ! 14411: version_type=darwin ! 14412: need_lib_prefix=no ! 14413: need_version=no ! 14414: # FIXME: Relying on posixy $() will cause problems for ! 14415: # cross-compilation, but unfortunately the echo tests do not ! 14416: # yet detect zsh echo's removal of \ escapes. ! 14417: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 14418: soname_spec='${libname}${release}${major}$shared_ext' ! 14419: shlibpath_overrides_runpath=yes ! 14420: shlibpath_var=DYLD_LIBRARY_PATH ! 14421: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 14422: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 14423: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 14424: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 14425: fi ! 14426: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 14427: ;; ! 14428: ! 14429: dgux*) ! 14430: version_type=linux ! 14431: need_lib_prefix=no ! 14432: need_version=no ! 14433: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 14434: soname_spec='${libname}${release}${shared_ext}$major' ! 14435: shlibpath_var=LD_LIBRARY_PATH ! 14436: ;; ! 14437: ! 14438: freebsd1*) ! 14439: dynamic_linker=no ! 14440: ;; ! 14441: ! 14442: freebsd*) ! 14443: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 14444: version_type=freebsd-$objformat ! 14445: case $version_type in ! 14446: freebsd-elf*) ! 14447: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 14448: need_version=no ! 14449: need_lib_prefix=no ! 14450: ;; ! 14451: freebsd-*) ! 14452: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 14453: need_version=yes ! 14454: ;; ! 14455: esac ! 14456: shlibpath_var=LD_LIBRARY_PATH ! 14457: case $host_os in ! 14458: freebsd2*) ! 14459: shlibpath_overrides_runpath=yes ! 14460: ;; ! 14461: freebsd3.01* | freebsdelf3.01*) ! 14462: shlibpath_overrides_runpath=yes ! 14463: hardcode_into_libs=yes ! 14464: ;; ! 14465: *) # from 3.2 on ! 14466: shlibpath_overrides_runpath=no ! 14467: hardcode_into_libs=yes ! 14468: ;; ! 14469: esac ! 14470: ;; ! 14471: ! 14472: gnu*) ! 14473: version_type=linux ! 14474: need_lib_prefix=no ! 14475: need_version=no ! 14476: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 14477: soname_spec='${libname}${release}${shared_ext}$major' ! 14478: shlibpath_var=LD_LIBRARY_PATH ! 14479: hardcode_into_libs=yes ! 14480: ;; ! 14481: ! 14482: hpux9* | hpux10* | hpux11*) ! 14483: # Give a soname corresponding to the major version so that dld.sl refuses to ! 14484: # link against other versions. ! 14485: version_type=sunos ! 14486: need_lib_prefix=no ! 14487: need_version=no ! 14488: case "$host_cpu" in ! 14489: ia64*) ! 14490: shrext='.so' ! 14491: hardcode_into_libs=yes ! 14492: dynamic_linker="$host_os dld.so" ! 14493: shlibpath_var=LD_LIBRARY_PATH ! 14494: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 14495: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14496: soname_spec='${libname}${release}${shared_ext}$major' ! 14497: if test "X$HPUX_IA64_MODE" = X32; then ! 14498: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 14499: else ! 14500: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 14501: fi ! 14502: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 14503: ;; ! 14504: hppa*64*) ! 14505: shrext='.sl' ! 14506: hardcode_into_libs=yes ! 14507: dynamic_linker="$host_os dld.sl" ! 14508: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 14509: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 14510: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14511: soname_spec='${libname}${release}${shared_ext}$major' ! 14512: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 14513: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 14514: ;; ! 14515: *) ! 14516: shrext='.sl' ! 14517: dynamic_linker="$host_os dld.sl" ! 14518: shlibpath_var=SHLIB_PATH ! 14519: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 14520: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14521: soname_spec='${libname}${release}${shared_ext}$major' ! 14522: ;; ! 14523: esac ! 14524: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 14525: postinstall_cmds='chmod 555 $lib' ! 14526: ;; ! 14527: ! 14528: irix5* | irix6* | nonstopux*) ! 14529: case $host_os in ! 14530: nonstopux*) version_type=nonstopux ;; ! 14531: *) ! 14532: if test "$lt_cv_prog_gnu_ld" = yes; then ! 14533: version_type=linux ! 14534: else ! 14535: version_type=irix ! 14536: fi ;; ! 14537: esac ! 14538: need_lib_prefix=no ! 14539: need_version=no ! 14540: soname_spec='${libname}${release}${shared_ext}$major' ! 14541: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 14542: case $host_os in ! 14543: irix5* | nonstopux*) ! 14544: libsuff= shlibsuff= ! 14545: ;; ! 14546: *) ! 14547: case $LD in # libtool.m4 will add one of these switches to LD ! 14548: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 14549: libsuff= shlibsuff= libmagic=32-bit;; ! 14550: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 14551: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 14552: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 14553: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 14554: *) libsuff= shlibsuff= libmagic=never-match;; ! 14555: esac ! 14556: ;; ! 14557: esac ! 14558: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 14559: shlibpath_overrides_runpath=no ! 14560: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 14561: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 14562: hardcode_into_libs=yes ! 14563: ;; ! 14564: ! 14565: # No shared lib support for Linux oldld, aout, or coff. ! 14566: linux*oldld* | linux*aout* | linux*coff*) ! 14567: dynamic_linker=no ! 14568: ;; ! 14569: ! 14570: # This must be Linux ELF. ! 14571: linux*) ! 14572: version_type=linux ! 14573: need_lib_prefix=no ! 14574: need_version=no ! 14575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14576: soname_spec='${libname}${release}${shared_ext}$major' ! 14577: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 14578: shlibpath_var=LD_LIBRARY_PATH ! 14579: shlibpath_overrides_runpath=no ! 14580: # This implies no fast_install, which is unacceptable. ! 14581: # Some rework will be needed to allow for fast_install ! 14582: # before this can be enabled. ! 14583: hardcode_into_libs=yes ! 14584: ! 14585: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 14586: # powerpc, because MkLinux only supported shared libraries with the ! 14587: # GNU dynamic linker. Since this was broken with cross compilers, ! 14588: # most powerpc-linux boxes support dynamic linking these days and ! 14589: # people can always --disable-shared, the test was removed, and we ! 14590: # assume the GNU/Linux dynamic linker is in use. ! 14591: dynamic_linker='GNU/Linux ld.so' ! 14592: ;; ! 14593: ! 14594: netbsd*) ! 14595: version_type=sunos ! 14596: need_lib_prefix=no ! 14597: need_version=no ! 14598: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 14599: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 14600: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 14601: dynamic_linker='NetBSD (a.out) ld.so' ! 14602: else ! 14603: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 14604: soname_spec='${libname}${release}${shared_ext}$major' ! 14605: dynamic_linker='NetBSD ld.elf_so' ! 14606: fi ! 14607: shlibpath_var=LD_LIBRARY_PATH ! 14608: shlibpath_overrides_runpath=yes ! 14609: hardcode_into_libs=yes ! 14610: ;; ! 14611: ! 14612: newsos6) ! 14613: version_type=linux ! 14614: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14615: shlibpath_var=LD_LIBRARY_PATH ! 14616: shlibpath_overrides_runpath=yes ! 14617: ;; ! 14618: ! 14619: nto-qnx) ! 14620: version_type=linux ! 14621: need_lib_prefix=no ! 14622: need_version=no ! 14623: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14624: soname_spec='${libname}${release}${shared_ext}$major' ! 14625: shlibpath_var=LD_LIBRARY_PATH ! 14626: shlibpath_overrides_runpath=yes ! 14627: ;; ! 14628: ! 14629: openbsd*) ! 14630: version_type=sunos ! 14631: need_lib_prefix=no ! 14632: need_version=no ! 14633: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 14634: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 14635: shlibpath_var=LD_LIBRARY_PATH ! 14636: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 14637: case $host_os in ! 14638: openbsd2.[89] | openbsd2.[89].*) ! 14639: shlibpath_overrides_runpath=no ! 14640: ;; ! 14641: *) ! 14642: shlibpath_overrides_runpath=yes ! 14643: ;; ! 14644: esac ! 14645: else ! 14646: shlibpath_overrides_runpath=yes ! 14647: fi ! 14648: ;; ! 14649: ! 14650: os2*) ! 14651: libname_spec='$name' ! 14652: shrext=".dll" ! 14653: need_lib_prefix=no ! 14654: library_names_spec='$libname${shared_ext} $libname.a' ! 14655: dynamic_linker='OS/2 ld.exe' ! 14656: shlibpath_var=LIBPATH ! 14657: ;; ! 14658: ! 14659: osf3* | osf4* | osf5*) ! 14660: version_type=osf ! 14661: need_lib_prefix=no ! 14662: need_version=no ! 14663: soname_spec='${libname}${release}${shared_ext}$major' ! 14664: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14665: shlibpath_var=LD_LIBRARY_PATH ! 14666: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 14667: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 14668: ;; ! 14669: ! 14670: sco3.2v5*) ! 14671: version_type=osf ! 14672: soname_spec='${libname}${release}${shared_ext}$major' ! 14673: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14674: shlibpath_var=LD_LIBRARY_PATH ! 14675: ;; ! 14676: ! 14677: solaris*) ! 14678: version_type=linux ! 14679: need_lib_prefix=no ! 14680: need_version=no ! 14681: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14682: soname_spec='${libname}${release}${shared_ext}$major' ! 14683: shlibpath_var=LD_LIBRARY_PATH ! 14684: shlibpath_overrides_runpath=yes ! 14685: hardcode_into_libs=yes ! 14686: # ldd complains unless libraries are executable ! 14687: postinstall_cmds='chmod +x $lib' ! 14688: ;; ! 14689: ! 14690: sunos4*) ! 14691: version_type=sunos ! 14692: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 14693: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 14694: shlibpath_var=LD_LIBRARY_PATH ! 14695: shlibpath_overrides_runpath=yes ! 14696: if test "$with_gnu_ld" = yes; then ! 14697: need_lib_prefix=no ! 14698: fi ! 14699: need_version=yes ! 14700: ;; ! 14701: ! 14702: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 14703: version_type=linux ! 14704: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14705: soname_spec='${libname}${release}${shared_ext}$major' ! 14706: shlibpath_var=LD_LIBRARY_PATH ! 14707: case $host_vendor in ! 14708: sni) ! 14709: shlibpath_overrides_runpath=no ! 14710: need_lib_prefix=no ! 14711: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 14712: runpath_var=LD_RUN_PATH ! 14713: ;; ! 14714: siemens) ! 14715: need_lib_prefix=no ! 14716: ;; ! 14717: motorola) ! 14718: need_lib_prefix=no ! 14719: need_version=no ! 14720: shlibpath_overrides_runpath=no ! 14721: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 14722: ;; ! 14723: esac ! 14724: ;; ! 14725: ! 14726: sysv4*MP*) ! 14727: if test -d /usr/nec ;then ! 14728: version_type=linux ! 14729: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 14730: soname_spec='$libname${shared_ext}.$major' ! 14731: shlibpath_var=LD_LIBRARY_PATH ! 14732: fi ! 14733: ;; ! 14734: ! 14735: uts4*) ! 14736: version_type=linux ! 14737: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 14738: soname_spec='${libname}${release}${shared_ext}$major' ! 14739: shlibpath_var=LD_LIBRARY_PATH ! 14740: ;; ! 14741: ! 14742: *) ! 14743: dynamic_linker=no ! 14744: ;; ! 14745: esac ! 14746: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 14747: echo "${ECHO_T}$dynamic_linker" >&6 ! 14748: test "$dynamic_linker" = no && can_build_shared=no ! 14749: ! 14750: ! 14751: # The else clause should only fire when bootstrapping the ! 14752: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 14753: # with your package, and you will get complaints that there are ! 14754: # no rules to generate ltmain.sh. ! 14755: if test -f "$ltmain"; then ! 14756: # See if we are running on zsh, and set the options which allow our commands through ! 14757: # without removal of \ escapes. ! 14758: if test -n "${ZSH_VERSION+set}" ; then ! 14759: setopt NO_GLOB_SUBST ! 14760: fi ! 14761: # Now quote all the things that may contain metacharacters while being ! 14762: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 14763: # variables and quote the copies for generation of the libtool script. ! 14764: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 14765: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 14766: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 14767: deplibs_check_method reload_flag reload_cmds need_locks \ ! 14768: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 14769: lt_cv_sys_global_symbol_to_c_name_address \ ! 14770: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 14771: old_postinstall_cmds old_postuninstall_cmds \ ! 14772: compiler_F77 \ ! 14773: CC_F77 \ ! 14774: LD_F77 \ ! 14775: lt_prog_compiler_wl_F77 \ ! 14776: lt_prog_compiler_pic_F77 \ ! 14777: lt_prog_compiler_static_F77 \ ! 14778: lt_prog_compiler_no_builtin_flag_F77 \ ! 14779: export_dynamic_flag_spec_F77 \ ! 14780: thread_safe_flag_spec_F77 \ ! 14781: whole_archive_flag_spec_F77 \ ! 14782: enable_shared_with_static_runtimes_F77 \ ! 14783: old_archive_cmds_F77 \ ! 14784: old_archive_from_new_cmds_F77 \ ! 14785: predep_objects_F77 \ ! 14786: postdep_objects_F77 \ ! 14787: predeps_F77 \ ! 14788: postdeps_F77 \ ! 14789: compiler_lib_search_path_F77 \ ! 14790: archive_cmds_F77 \ ! 14791: archive_expsym_cmds_F77 \ ! 14792: postinstall_cmds_F77 \ ! 14793: postuninstall_cmds_F77 \ ! 14794: old_archive_from_expsyms_cmds_F77 \ ! 14795: allow_undefined_flag_F77 \ ! 14796: no_undefined_flag_F77 \ ! 14797: export_symbols_cmds_F77 \ ! 14798: hardcode_libdir_flag_spec_F77 \ ! 14799: hardcode_libdir_flag_spec_ld_F77 \ ! 14800: hardcode_libdir_separator_F77 \ ! 14801: hardcode_automatic_F77 \ ! 14802: module_cmds_F77 \ ! 14803: module_expsym_cmds_F77 \ ! 14804: lt_cv_prog_compiler_c_o_F77 \ ! 14805: exclude_expsyms_F77 \ ! 14806: include_expsyms_F77; do ! 14807: ! 14808: case $var in ! 14809: old_archive_cmds_F77 | \ ! 14810: old_archive_from_new_cmds_F77 | \ ! 14811: archive_cmds_F77 | \ ! 14812: archive_expsym_cmds_F77 | \ ! 14813: module_cmds_F77 | \ ! 14814: module_expsym_cmds_F77 | \ ! 14815: old_archive_from_expsyms_cmds_F77 | \ ! 14816: export_symbols_cmds_F77 | \ ! 14817: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 14818: postinstall_cmds | postuninstall_cmds | \ ! 14819: old_postinstall_cmds | old_postuninstall_cmds | \ ! 14820: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 14821: # Double-quote double-evaled strings. ! 14822: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 14823: ;; ! 14824: *) ! 14825: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 14826: ;; ! 14827: esac ! 14828: done ! 14829: ! 14830: case $lt_echo in ! 14831: *'\$0 --fallback-echo"') ! 14832: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 14833: ;; ! 14834: esac ! 14835: ! 14836: cfgfile="$ofile" ! 14837: ! 14838: cat <<__EOF__ >> "$cfgfile" ! 14839: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 14840: ! 14841: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 14842: ! 14843: # Shell to use when invoking shell scripts. ! 14844: SHELL=$lt_SHELL ! 14845: ! 14846: # Whether or not to build shared libraries. ! 14847: build_libtool_libs=$enable_shared ! 14848: ! 14849: # Whether or not to build static libraries. ! 14850: build_old_libs=$enable_static ! 14851: ! 14852: # Whether or not to add -lc for building shared libraries. ! 14853: build_libtool_need_lc=$archive_cmds_need_lc_F77 ! 14854: ! 14855: # Whether or not to disallow shared libs when runtime libs are static ! 14856: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 ! 14857: ! 14858: # Whether or not to optimize for fast installation. ! 14859: fast_install=$enable_fast_install ! 14860: ! 14861: # The host system. ! 14862: host_alias=$host_alias ! 14863: host=$host ! 14864: ! 14865: # An echo program that does not interpret backslashes. ! 14866: echo=$lt_echo ! 14867: ! 14868: # The archiver. ! 14869: AR=$lt_AR ! 14870: AR_FLAGS=$lt_AR_FLAGS ! 14871: ! 14872: # A C compiler. ! 14873: LTCC=$lt_LTCC ! 14874: ! 14875: # A language-specific compiler. ! 14876: CC=$lt_compiler_F77 ! 14877: ! 14878: # Is the compiler the GNU C compiler? ! 14879: with_gcc=$GCC_F77 ! 14880: ! 14881: # An ERE matcher. ! 14882: EGREP=$lt_EGREP ! 14883: ! 14884: # The linker used to build libraries. ! 14885: LD=$lt_LD_F77 ! 14886: ! 14887: # Whether we need hard or soft links. ! 14888: LN_S=$lt_LN_S ! 14889: ! 14890: # A BSD-compatible nm program. ! 14891: NM=$lt_NM ! 14892: ! 14893: # A symbol stripping program ! 14894: STRIP=$STRIP ! 14895: ! 14896: # Used to examine libraries when file_magic_cmd begins "file" ! 14897: MAGIC_CMD=$MAGIC_CMD ! 14898: ! 14899: # Used on cygwin: DLL creation program. ! 14900: DLLTOOL="$DLLTOOL" ! 14901: ! 14902: # Used on cygwin: object dumper. ! 14903: OBJDUMP="$OBJDUMP" ! 14904: ! 14905: # Used on cygwin: assembler. ! 14906: AS="$AS" ! 14907: ! 14908: # The name of the directory that contains temporary libtool files. ! 14909: objdir=$objdir ! 14910: ! 14911: # How to create reloadable object files. ! 14912: reload_flag=$lt_reload_flag ! 14913: reload_cmds=$lt_reload_cmds ! 14914: ! 14915: # How to pass a linker flag through the compiler. ! 14916: wl=$lt_lt_prog_compiler_wl_F77 ! 14917: ! 14918: # Object file suffix (normally "o"). ! 14919: objext="$ac_objext" ! 14920: ! 14921: # Old archive suffix (normally "a"). ! 14922: libext="$libext" ! 14923: ! 14924: # Shared library suffix (normally ".so"). ! 14925: shrext='$shrext' ! 14926: ! 14927: # Executable file suffix (normally ""). ! 14928: exeext="$exeext" ! 14929: ! 14930: # Additional compiler flags for building library objects. ! 14931: pic_flag=$lt_lt_prog_compiler_pic_F77 ! 14932: pic_mode=$pic_mode ! 14933: ! 14934: # What is the maximum length of a command? ! 14935: max_cmd_len=$lt_cv_sys_max_cmd_len ! 14936: ! 14937: # Does compiler simultaneously support -c and -o options? ! 14938: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 ! 14939: ! 14940: # Must we lock files when doing compilation ? ! 14941: need_locks=$lt_need_locks ! 14942: ! 14943: # Do we need the lib prefix for modules? ! 14944: need_lib_prefix=$need_lib_prefix ! 14945: ! 14946: # Do we need a version for libraries? ! 14947: need_version=$need_version ! 14948: ! 14949: # Whether dlopen is supported. ! 14950: dlopen_support=$enable_dlopen ! 14951: ! 14952: # Whether dlopen of programs is supported. ! 14953: dlopen_self=$enable_dlopen_self ! 14954: ! 14955: # Whether dlopen of statically linked programs is supported. ! 14956: dlopen_self_static=$enable_dlopen_self_static ! 14957: ! 14958: # Compiler flag to prevent dynamic linking. ! 14959: link_static_flag=$lt_lt_prog_compiler_static_F77 ! 14960: ! 14961: # Compiler flag to turn off builtin functions. ! 14962: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 ! 14963: ! 14964: # Compiler flag to allow reflexive dlopens. ! 14965: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 ! 14966: ! 14967: # Compiler flag to generate shared objects directly from archives. ! 14968: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 ! 14969: ! 14970: # Compiler flag to generate thread-safe objects. ! 14971: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 ! 14972: ! 14973: # Library versioning type. ! 14974: version_type=$version_type ! 14975: ! 14976: # Format of library name prefix. ! 14977: libname_spec=$lt_libname_spec ! 14978: ! 14979: # List of archive names. First name is the real one, the rest are links. ! 14980: # The last name is the one that the linker finds with -lNAME. ! 14981: library_names_spec=$lt_library_names_spec ! 14982: ! 14983: # The coded name of the library, if different from the real name. ! 14984: soname_spec=$lt_soname_spec ! 14985: ! 14986: # Commands used to build and install an old-style archive. ! 14987: RANLIB=$lt_RANLIB ! 14988: old_archive_cmds=$lt_old_archive_cmds_F77 ! 14989: old_postinstall_cmds=$lt_old_postinstall_cmds ! 14990: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 14991: ! 14992: # Create an old-style archive from a shared archive. ! 14993: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 ! 14994: ! 14995: # Create a temporary old-style archive to link instead of a shared archive. ! 14996: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 ! 14997: ! 14998: # Commands used to build and install a shared archive. ! 14999: archive_cmds=$lt_archive_cmds_F77 ! 15000: archive_expsym_cmds=$lt_archive_expsym_cmds_F77 ! 15001: postinstall_cmds=$lt_postinstall_cmds ! 15002: postuninstall_cmds=$lt_postuninstall_cmds ! 15003: ! 15004: # Commands used to build a loadable module (assumed same as above if empty) ! 15005: module_cmds=$lt_module_cmds_F77 ! 15006: module_expsym_cmds=$lt_module_expsym_cmds_F77 ! 15007: ! 15008: # Commands to strip libraries. ! 15009: old_striplib=$lt_old_striplib ! 15010: striplib=$lt_striplib ! 15011: ! 15012: # Dependencies to place before the objects being linked to create a ! 15013: # shared library. ! 15014: predep_objects=$lt_predep_objects_F77 ! 15015: ! 15016: # Dependencies to place after the objects being linked to create a ! 15017: # shared library. ! 15018: postdep_objects=$lt_postdep_objects_F77 ! 15019: ! 15020: # Dependencies to place before the objects being linked to create a ! 15021: # shared library. ! 15022: predeps=$lt_predeps_F77 ! 15023: ! 15024: # Dependencies to place after the objects being linked to create a ! 15025: # shared library. ! 15026: postdeps=$lt_postdeps_F77 ! 15027: ! 15028: # The library search path used internally by the compiler when linking ! 15029: # a shared library. ! 15030: compiler_lib_search_path=$lt_compiler_lib_search_path_F77 ! 15031: ! 15032: # Method to check whether dependent libraries are shared objects. ! 15033: deplibs_check_method=$lt_deplibs_check_method ! 15034: ! 15035: # Command to use when deplibs_check_method == file_magic. ! 15036: file_magic_cmd=$lt_file_magic_cmd ! 15037: ! 15038: # Flag that allows shared libraries with undefined symbols to be built. ! 15039: allow_undefined_flag=$lt_allow_undefined_flag_F77 ! 15040: ! 15041: # Flag that forces no undefined symbols. ! 15042: no_undefined_flag=$lt_no_undefined_flag_F77 ! 15043: ! 15044: # Commands used to finish a libtool library installation in a directory. ! 15045: finish_cmds=$lt_finish_cmds ! 15046: ! 15047: # Same as above, but a single script fragment to be evaled but not shown. ! 15048: finish_eval=$lt_finish_eval ! 15049: ! 15050: # Take the output of nm and produce a listing of raw symbols and C names. ! 15051: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 15052: ! 15053: # Transform the output of nm in a proper C declaration ! 15054: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 15055: ! 15056: # Transform the output of nm in a C name address pair ! 15057: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 15058: ! 15059: # This is the shared library runtime path variable. ! 15060: runpath_var=$runpath_var ! 15061: ! 15062: # This is the shared library path variable. ! 15063: shlibpath_var=$shlibpath_var ! 15064: ! 15065: # Is shlibpath searched before the hard-coded library search path? ! 15066: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 15067: ! 15068: # How to hardcode a shared library path into an executable. ! 15069: hardcode_action=$hardcode_action_F77 ! 15070: ! 15071: # Whether we should hardcode library paths into libraries. ! 15072: hardcode_into_libs=$hardcode_into_libs ! 15073: ! 15074: # Flag to hardcode \$libdir into a binary during linking. ! 15075: # This must work even if \$libdir does not exist. ! 15076: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 ! 15077: ! 15078: # If ld is used when linking, flag to hardcode \$libdir into ! 15079: # a binary during linking. This must work even if \$libdir does ! 15080: # not exist. ! 15081: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 ! 15082: ! 15083: # Whether we need a single -rpath flag with a separated argument. ! 15084: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 ! 15085: ! 15086: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 15087: # resulting binary. ! 15088: hardcode_direct=$hardcode_direct_F77 ! 15089: ! 15090: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 15091: # resulting binary. ! 15092: hardcode_minus_L=$hardcode_minus_L_F77 ! 15093: ! 15094: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 15095: # the resulting binary. ! 15096: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 ! 15097: ! 15098: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 15099: # and all subsequent libraries and executables linked against it. ! 15100: hardcode_automatic=$hardcode_automatic_F77 ! 15101: ! 15102: # Variables whose values should be saved in libtool wrapper scripts and ! 15103: # restored at relink time. ! 15104: variables_saved_for_relink="$variables_saved_for_relink" ! 15105: ! 15106: # Whether libtool must link a program against all its dependency libraries. ! 15107: link_all_deplibs=$link_all_deplibs_F77 ! 15108: ! 15109: # Compile-time system search path for libraries ! 15110: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 15111: ! 15112: # Run-time system search path for libraries ! 15113: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 15114: ! 15115: # Fix the shell variable \$srcfile for the compiler. ! 15116: fix_srcfile_path="$fix_srcfile_path_F77" ! 15117: ! 15118: # Set to yes if exported symbols are required. ! 15119: always_export_symbols=$always_export_symbols_F77 ! 15120: ! 15121: # The commands to list exported symbols. ! 15122: export_symbols_cmds=$lt_export_symbols_cmds_F77 ! 15123: ! 15124: # The commands to extract the exported symbol list from a shared archive. ! 15125: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 15126: ! 15127: # Symbols that should not be listed in the preloaded symbols. ! 15128: exclude_expsyms=$lt_exclude_expsyms_F77 ! 15129: ! 15130: # Symbols that must always be exported. ! 15131: include_expsyms=$lt_include_expsyms_F77 ! 15132: ! 15133: # ### END LIBTOOL TAG CONFIG: $tagname ! 15134: ! 15135: __EOF__ ! 15136: ! 15137: ! 15138: else ! 15139: # If there is no Makefile yet, we rely on a make rule to execute ! 15140: # `config.status --recheck' to rerun these tests and create the ! 15141: # libtool script then. ! 15142: test -f Makefile && make "$ltmain" ! 15143: fi ! 15144: ! 15145: ! 15146: ac_ext=c ! 15147: ac_cpp='$CPP $CPPFLAGS' ! 15148: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 15149: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 15150: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 15151: ! 15152: CC="$lt_save_CC" ! 15153: ! 15154: else ! 15155: tagname="" ! 15156: fi ! 15157: ;; ! 15158: ! 15159: GCJ) ! 15160: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then ! 15161: ! 15162: ! 15163: ! 15164: # Source file extension for Java test sources. ! 15165: ac_ext=java ! 15166: ! 15167: # Object file extension for compiled Java test sources. ! 15168: objext=o ! 15169: objext_GCJ=$objext ! 15170: ! 15171: # Code to be used in simple compile tests ! 15172: lt_simple_compile_test_code="class foo {}\n" ! 15173: ! 15174: # Code to be used in simple link tests ! 15175: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' ! 15176: ! 15177: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 15178: ! 15179: # If no C compiler was specified, use CC. ! 15180: LTCC=${LTCC-"$CC"} ! 15181: ! 15182: # Allow CC to be a program name with arguments. ! 15183: compiler=$CC ! 15184: ! 15185: ! 15186: # Allow CC to be a program name with arguments. ! 15187: lt_save_CC="$CC" ! 15188: CC=${GCJ-"gcj"} ! 15189: compiler=$CC ! 15190: compiler_GCJ=$CC ! 15191: ! 15192: # GCJ did not exist at the time GCC didn't implicitly link libc in. ! 15193: archive_cmds_need_lc_GCJ=no ! 15194: ! 15195: ! 15196: lt_prog_compiler_no_builtin_flag_GCJ= ! 15197: ! 15198: if test "$GCC" = yes; then ! 15199: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ! 15200: ! 15201: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 ! 15202: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 ! 15203: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then ! 15204: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 15205: else ! 15206: lt_cv_prog_compiler_rtti_exceptions=no ! 15207: ac_outfile=conftest.$ac_objext ! 15208: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 15209: lt_compiler_flag="-fno-rtti -fno-exceptions" ! 15210: # Insert the option either (1) after the last *FLAGS variable, or ! 15211: # (2) before a word containing "conftest.", or (3) at the end. ! 15212: # Note that $ac_compile itself does not contain backslashes and begins ! 15213: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 15214: # The option is referenced via a variable to avoid confusing sed. ! 15215: lt_compile=`echo "$ac_compile" | $SED \ ! 15216: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 15217: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 15218: -e 's:$: $lt_compiler_flag:'` ! 15219: (eval echo "\"\$as_me:15219: $lt_compile\"" >&5) ! 15220: (eval "$lt_compile" 2>conftest.err) ! 15221: ac_status=$? ! 15222: cat conftest.err >&5 ! 15223: echo "$as_me:15223: \$? = $ac_status" >&5 ! 15224: if (exit $ac_status) && test -s "$ac_outfile"; then ! 15225: # The compiler can only warn and ignore the option if not recognized ! 15226: # So say no if there are warnings ! 15227: if test ! -s conftest.err; then ! 15228: lt_cv_prog_compiler_rtti_exceptions=yes ! 15229: fi ! 15230: fi ! 15231: $rm conftest* ! 15232: ! 15233: fi ! 15234: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 ! 15235: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 ! 15236: ! 15237: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then ! 15238: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" ! 15239: else ! 15240: : ! 15241: fi ! 15242: ! 15243: fi ! 15244: ! 15245: lt_prog_compiler_wl_GCJ= ! 15246: lt_prog_compiler_pic_GCJ= ! 15247: lt_prog_compiler_static_GCJ= ! 15248: ! 15249: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ! 15250: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 ! 15251: ! 15252: if test "$GCC" = yes; then ! 15253: lt_prog_compiler_wl_GCJ='-Wl,' ! 15254: lt_prog_compiler_static_GCJ='-static' ! 15255: ! 15256: case $host_os in ! 15257: aix*) ! 15258: # All AIX code is PIC. ! 15259: if test "$host_cpu" = ia64; then ! 15260: # AIX 5 now supports IA64 processor ! 15261: lt_prog_compiler_static_GCJ='-Bstatic' ! 15262: fi ! 15263: ;; ! 15264: ! 15265: amigaos*) ! 15266: # FIXME: we need at least 68020 code to build shared libraries, but ! 15267: # adding the `-m68020' flag to GCC prevents building anything better, ! 15268: # like `-m68040'. ! 15269: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ! 15270: ;; ! 15271: ! 15272: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ! 15273: # PIC is the default for these OSes. ! 15274: ;; ! 15275: ! 15276: mingw* | pw32* | os2*) ! 15277: # This hack is so that the source file can tell whether it is being ! 15278: # built for inclusion in a dll (and should export symbols for example). ! 15279: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ! 15280: ;; ! 15281: ! 15282: darwin* | rhapsody*) ! 15283: # PIC is the default on this platform ! 15284: # Common symbols not allowed in MH_DYLIB files ! 15285: lt_prog_compiler_pic_GCJ='-fno-common' ! 15286: ;; ! 15287: ! 15288: msdosdjgpp*) ! 15289: # Just because we use GCC doesn't mean we suddenly get shared libraries ! 15290: # on systems that don't support them. ! 15291: lt_prog_compiler_can_build_shared_GCJ=no ! 15292: enable_shared=no ! 15293: ;; ! 15294: ! 15295: sysv4*MP*) ! 15296: if test -d /usr/nec; then ! 15297: lt_prog_compiler_pic_GCJ=-Kconform_pic ! 15298: fi ! 15299: ;; ! 15300: ! 15301: hpux*) ! 15302: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 15303: # not for PA HP-UX. ! 15304: case "$host_cpu" in ! 15305: hppa*64*|ia64*) ! 15306: # +Z the default ! 15307: ;; ! 15308: *) ! 15309: lt_prog_compiler_pic_GCJ='-fPIC' ! 15310: ;; ! 15311: esac ! 15312: ;; ! 15313: ! 15314: *) ! 15315: lt_prog_compiler_pic_GCJ='-fPIC' ! 15316: ;; ! 15317: esac ! 15318: else ! 15319: # PORTME Check for flag to pass linker flags through the system compiler. ! 15320: case $host_os in ! 15321: aix*) ! 15322: lt_prog_compiler_wl_GCJ='-Wl,' ! 15323: if test "$host_cpu" = ia64; then ! 15324: # AIX 5 now supports IA64 processor ! 15325: lt_prog_compiler_static_GCJ='-Bstatic' ! 15326: else ! 15327: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' ! 15328: fi ! 15329: ;; ! 15330: ! 15331: mingw* | pw32* | os2*) ! 15332: # This hack is so that the source file can tell whether it is being ! 15333: # built for inclusion in a dll (and should export symbols for example). ! 15334: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ! 15335: ;; ! 15336: ! 15337: hpux9* | hpux10* | hpux11*) ! 15338: lt_prog_compiler_wl_GCJ='-Wl,' ! 15339: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ! 15340: # not for PA HP-UX. ! 15341: case "$host_cpu" in ! 15342: hppa*64*|ia64*) ! 15343: # +Z the default ! 15344: ;; ! 15345: *) ! 15346: lt_prog_compiler_pic_GCJ='+Z' ! 15347: ;; ! 15348: esac ! 15349: # Is there a better lt_prog_compiler_static that works with the bundled CC? ! 15350: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ! 15351: ;; ! 15352: ! 15353: irix5* | irix6* | nonstopux*) ! 15354: lt_prog_compiler_wl_GCJ='-Wl,' ! 15355: # PIC (with -KPIC) is the default. ! 15356: lt_prog_compiler_static_GCJ='-non_shared' ! 15357: ;; ! 15358: ! 15359: newsos6) ! 15360: lt_prog_compiler_pic_GCJ='-KPIC' ! 15361: lt_prog_compiler_static_GCJ='-Bstatic' ! 15362: ;; ! 15363: ! 15364: linux*) ! 15365: case $CC in ! 15366: icc|ecc) ! 15367: lt_prog_compiler_wl_GCJ='-Wl,' ! 15368: lt_prog_compiler_pic_GCJ='-KPIC' ! 15369: lt_prog_compiler_static_GCJ='-static' ! 15370: ;; ! 15371: ccc) ! 15372: lt_prog_compiler_wl_GCJ='-Wl,' ! 15373: # All Alpha code is PIC. ! 15374: lt_prog_compiler_static_GCJ='-non_shared' ! 15375: ;; ! 15376: esac ! 15377: ;; ! 15378: ! 15379: osf3* | osf4* | osf5*) ! 15380: lt_prog_compiler_wl_GCJ='-Wl,' ! 15381: # All OSF/1 code is PIC. ! 15382: lt_prog_compiler_static_GCJ='-non_shared' ! 15383: ;; ! 15384: ! 15385: sco3.2v5*) ! 15386: lt_prog_compiler_pic_GCJ='-Kpic' ! 15387: lt_prog_compiler_static_GCJ='-dn' ! 15388: ;; ! 15389: ! 15390: solaris*) ! 15391: lt_prog_compiler_wl_GCJ='-Wl,' ! 15392: lt_prog_compiler_pic_GCJ='-KPIC' ! 15393: lt_prog_compiler_static_GCJ='-Bstatic' ! 15394: ;; ! 15395: ! 15396: sunos4*) ! 15397: lt_prog_compiler_wl_GCJ='-Qoption ld ' ! 15398: lt_prog_compiler_pic_GCJ='-PIC' ! 15399: lt_prog_compiler_static_GCJ='-Bstatic' ! 15400: ;; ! 15401: ! 15402: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 15403: lt_prog_compiler_wl_GCJ='-Wl,' ! 15404: lt_prog_compiler_pic_GCJ='-KPIC' ! 15405: lt_prog_compiler_static_GCJ='-Bstatic' ! 15406: ;; ! 15407: ! 15408: sysv4*MP*) ! 15409: if test -d /usr/nec ;then ! 15410: lt_prog_compiler_pic_GCJ='-Kconform_pic' ! 15411: lt_prog_compiler_static_GCJ='-Bstatic' ! 15412: fi ! 15413: ;; ! 15414: ! 15415: uts4*) ! 15416: lt_prog_compiler_pic_GCJ='-pic' ! 15417: lt_prog_compiler_static_GCJ='-Bstatic' ! 15418: ;; ! 15419: ! 15420: *) ! 15421: lt_prog_compiler_can_build_shared_GCJ=no ! 15422: ;; ! 15423: esac ! 15424: fi ! 15425: ! 15426: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 ! 15427: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 ! 15428: ! 15429: # ! 15430: # Check to make sure the PIC flag actually works. ! 15431: # ! 15432: if test -n "$lt_prog_compiler_pic_GCJ"; then ! 15433: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 ! 15434: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 ! 15435: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then ! 15436: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 15437: else ! 15438: lt_prog_compiler_pic_works_GCJ=no ! 15439: ac_outfile=conftest.$ac_objext ! 15440: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 15441: lt_compiler_flag="$lt_prog_compiler_pic_GCJ" ! 15442: # Insert the option either (1) after the last *FLAGS variable, or ! 15443: # (2) before a word containing "conftest.", or (3) at the end. ! 15444: # Note that $ac_compile itself does not contain backslashes and begins ! 15445: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 15446: # The option is referenced via a variable to avoid confusing sed. ! 15447: lt_compile=`echo "$ac_compile" | $SED \ ! 15448: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 15449: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 15450: -e 's:$: $lt_compiler_flag:'` ! 15451: (eval echo "\"\$as_me:15451: $lt_compile\"" >&5) ! 15452: (eval "$lt_compile" 2>conftest.err) ! 15453: ac_status=$? ! 15454: cat conftest.err >&5 ! 15455: echo "$as_me:15455: \$? = $ac_status" >&5 ! 15456: if (exit $ac_status) && test -s "$ac_outfile"; then ! 15457: # The compiler can only warn and ignore the option if not recognized ! 15458: # So say no if there are warnings ! 15459: if test ! -s conftest.err; then ! 15460: lt_prog_compiler_pic_works_GCJ=yes ! 15461: fi ! 15462: fi ! 15463: $rm conftest* ! 15464: ! 15465: fi ! 15466: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 ! 15467: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 ! 15468: ! 15469: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then ! 15470: case $lt_prog_compiler_pic_GCJ in ! 15471: "" | " "*) ;; ! 15472: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; ! 15473: esac ! 15474: else ! 15475: lt_prog_compiler_pic_GCJ= ! 15476: lt_prog_compiler_can_build_shared_GCJ=no ! 15477: fi ! 15478: ! 15479: fi ! 15480: case "$host_os" in ! 15481: # For platforms which do not support PIC, -DPIC is meaningless: ! 15482: *djgpp*) ! 15483: lt_prog_compiler_pic_GCJ= ! 15484: ;; ! 15485: *) ! 15486: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ! 15487: ;; ! 15488: esac ! 15489: ! 15490: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ! 15491: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 ! 15492: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then ! 15493: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 15494: else ! 15495: lt_cv_prog_compiler_c_o_GCJ=no ! 15496: $rm -r conftest 2>/dev/null ! 15497: mkdir conftest ! 15498: cd conftest ! 15499: mkdir out ! 15500: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 15501: ! 15502: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers ! 15503: # that will create temporary files in the current directory regardless of ! 15504: # the output directory. Thus, making CWD read-only will cause this test ! 15505: # to fail, enabling locking or at least warning the user not to do parallel ! 15506: # builds. ! 15507: chmod -w . ! 15508: ! 15509: lt_compiler_flag="-o out/conftest2.$ac_objext" ! 15510: # Insert the option either (1) after the last *FLAGS variable, or ! 15511: # (2) before a word containing "conftest.", or (3) at the end. ! 15512: # Note that $ac_compile itself does not contain backslashes and begins ! 15513: # with a dollar sign (not a hyphen), so the echo should work correctly. ! 15514: lt_compile=`echo "$ac_compile" | $SED \ ! 15515: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ ! 15516: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ! 15517: -e 's:$: $lt_compiler_flag:'` ! 15518: (eval echo "\"\$as_me:15518: $lt_compile\"" >&5) ! 15519: (eval "$lt_compile" 2>out/conftest.err) ! 15520: ac_status=$? ! 15521: cat out/conftest.err >&5 ! 15522: echo "$as_me:15522: \$? = $ac_status" >&5 ! 15523: if (exit $ac_status) && test -s out/conftest2.$ac_objext ! 15524: then ! 15525: # The compiler can only warn and ignore the option if not recognized ! 15526: # So say no if there are warnings ! 15527: if test ! -s out/conftest.err; then ! 15528: lt_cv_prog_compiler_c_o_GCJ=yes ! 15529: fi ! 15530: fi ! 15531: chmod u+w . ! 15532: $rm conftest* out/* ! 15533: rmdir out ! 15534: cd .. ! 15535: rmdir conftest ! 15536: $rm conftest* ! 15537: ! 15538: fi ! 15539: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 ! 15540: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 ! 15541: ! 15542: ! 15543: hard_links="nottested" ! 15544: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then ! 15545: # do not overwrite the value of need_locks provided by the user ! 15546: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ! 15547: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 ! 15548: hard_links=yes ! 15549: $rm conftest* ! 15550: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 15551: touch conftest.a ! 15552: ln conftest.a conftest.b 2>&5 || hard_links=no ! 15553: ln conftest.a conftest.b 2>/dev/null && hard_links=no ! 15554: echo "$as_me:$LINENO: result: $hard_links" >&5 ! 15555: echo "${ECHO_T}$hard_links" >&6 ! 15556: if test "$hard_links" = no; then ! 15557: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ! 15558: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ! 15559: need_locks=warn ! 15560: fi ! 15561: else ! 15562: need_locks=no ! 15563: fi ! 15564: ! 15565: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ! 15566: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ! 15567: ! 15568: runpath_var= ! 15569: allow_undefined_flag_GCJ= ! 15570: enable_shared_with_static_runtimes_GCJ=no ! 15571: archive_cmds_GCJ= ! 15572: archive_expsym_cmds_GCJ= ! 15573: old_archive_From_new_cmds_GCJ= ! 15574: old_archive_from_expsyms_cmds_GCJ= ! 15575: export_dynamic_flag_spec_GCJ= ! 15576: whole_archive_flag_spec_GCJ= ! 15577: thread_safe_flag_spec_GCJ= ! 15578: hardcode_libdir_flag_spec_GCJ= ! 15579: hardcode_libdir_flag_spec_ld_GCJ= ! 15580: hardcode_libdir_separator_GCJ= ! 15581: hardcode_direct_GCJ=no ! 15582: hardcode_minus_L_GCJ=no ! 15583: hardcode_shlibpath_var_GCJ=unsupported ! 15584: link_all_deplibs_GCJ=unknown ! 15585: hardcode_automatic_GCJ=no ! 15586: module_cmds_GCJ= ! 15587: module_expsym_cmds_GCJ= ! 15588: always_export_symbols_GCJ=no ! 15589: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ! 15590: # include_expsyms should be a list of space-separated symbols to be *always* ! 15591: # included in the symbol list ! 15592: include_expsyms_GCJ= ! 15593: # exclude_expsyms can be an extended regexp of symbols to exclude ! 15594: # it will be wrapped by ` (' and `)$', so one must not match beginning or ! 15595: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ! 15596: # as well as any symbol that contains `d'. ! 15597: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" ! 15598: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ! 15599: # platforms (ab)use it in PIC code, but their linkers get confused if ! 15600: # the symbol is explicitly referenced. Since portable code cannot ! 15601: # rely on this symbol name, it's probably fine to never include it in ! 15602: # preloaded symbol tables. ! 15603: extract_expsyms_cmds= ! 15604: ! 15605: case $host_os in ! 15606: cygwin* | mingw* | pw32*) ! 15607: # FIXME: the MSVC++ port hasn't been tested in a loooong time ! 15608: # When not using gcc, we currently assume that we are using ! 15609: # Microsoft Visual C++. ! 15610: if test "$GCC" != yes; then ! 15611: with_gnu_ld=no ! 15612: fi ! 15613: ;; ! 15614: openbsd*) ! 15615: with_gnu_ld=no ! 15616: ;; ! 15617: esac ! 15618: ! 15619: ld_shlibs_GCJ=yes ! 15620: if test "$with_gnu_ld" = yes; then ! 15621: # If archive_cmds runs LD, not CC, wlarc should be empty ! 15622: wlarc='${wl}' ! 15623: ! 15624: # See if GNU ld supports shared libraries. ! 15625: case $host_os in ! 15626: aix3* | aix4* | aix5*) ! 15627: # On AIX/PPC, the GNU linker is very broken ! 15628: if test "$host_cpu" != ia64; then ! 15629: ld_shlibs_GCJ=no ! 15630: cat <<EOF 1>&2 ! 15631: ! 15632: *** Warning: the GNU linker, at least up to release 2.9.1, is reported ! 15633: *** to be unable to reliably create shared libraries on AIX. ! 15634: *** Therefore, libtool is disabling shared libraries support. If you ! 15635: *** really care for shared libraries, you may want to modify your PATH ! 15636: *** so that a non-GNU linker is found, and then restart. ! 15637: ! 15638: EOF ! 15639: fi ! 15640: ;; ! 15641: ! 15642: amigaos*) ! 15643: archive_cmds_GCJ='$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)' ! 15644: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 15645: hardcode_minus_L_GCJ=yes ! 15646: ! 15647: # Samuel A. Falvo II <[email protected]> reports ! 15648: # that the semantics of dynamic libraries on AmigaOS, at least up ! 15649: # to version 4, is to share data among multiple programs linked ! 15650: # with the same dynamic library. Since this doesn't match the ! 15651: # behavior of shared libraries on other platforms, we can't use ! 15652: # them. ! 15653: ld_shlibs_GCJ=no ! 15654: ;; ! 15655: ! 15656: beos*) ! 15657: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 15658: allow_undefined_flag_GCJ=unsupported ! 15659: # Joseph Beckenbach <[email protected]> says some releases of gcc ! 15660: # support --undefined. This deserves some investigation. FIXME ! 15661: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 15662: else ! 15663: ld_shlibs_GCJ=no ! 15664: fi ! 15665: ;; ! 15666: ! 15667: cygwin* | mingw* | pw32*) ! 15668: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, ! 15669: # as there is no search path for DLLs. ! 15670: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 15671: allow_undefined_flag_GCJ=unsupported ! 15672: always_export_symbols_GCJ=no ! 15673: enable_shared_with_static_runtimes_GCJ=yes ! 15674: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ! 15675: ! 15676: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then ! 15677: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 15678: # If the export-symbols file already is a .def file (1st line ! 15679: # is EXPORTS), use it as is; otherwise, prepend... ! 15680: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ! 15681: cp $export_symbols $output_objdir/$soname.def; ! 15682: else ! 15683: echo EXPORTS > $output_objdir/$soname.def; ! 15684: cat $export_symbols >> $output_objdir/$soname.def; ! 15685: fi~ ! 15686: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' ! 15687: else ! 15688: ld_shlibs=no ! 15689: fi ! 15690: ;; ! 15691: ! 15692: netbsd*) ! 15693: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 15694: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ! 15695: wlarc= ! 15696: else ! 15697: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 15698: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 15699: fi ! 15700: ;; ! 15701: ! 15702: solaris* | sysv5*) ! 15703: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ! 15704: ld_shlibs_GCJ=no ! 15705: cat <<EOF 1>&2 ! 15706: ! 15707: *** Warning: The releases 2.8.* of the GNU linker cannot reliably ! 15708: *** create shared libraries on Solaris systems. Therefore, libtool ! 15709: *** is disabling shared libraries support. We urge you to upgrade GNU ! 15710: *** binutils to release 2.9.1 or newer. Another option is to modify ! 15711: *** your PATH or compiler configuration so that the native linker is ! 15712: *** used, and then restart. ! 15713: ! 15714: EOF ! 15715: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 15716: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 15717: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 15718: else ! 15719: ld_shlibs_GCJ=no ! 15720: fi ! 15721: ;; ! 15722: ! 15723: sunos4*) ! 15724: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 15725: wlarc= ! 15726: hardcode_direct_GCJ=yes ! 15727: hardcode_shlibpath_var_GCJ=no ! 15728: ;; ! 15729: ! 15730: *) ! 15731: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then ! 15732: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ! 15733: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ! 15734: else ! 15735: ld_shlibs_GCJ=no ! 15736: fi ! 15737: ;; ! 15738: esac ! 15739: ! 15740: if test "$ld_shlibs_GCJ" = yes; then ! 15741: runpath_var=LD_RUN_PATH ! 15742: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' ! 15743: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' ! 15744: # ancient GNU ld didn't support --whole-archive et. al. ! 15745: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then ! 15746: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ! 15747: else ! 15748: whole_archive_flag_spec_GCJ= ! 15749: fi ! 15750: fi ! 15751: else ! 15752: # PORTME fill in a description of your system's linker (not GNU ld) ! 15753: case $host_os in ! 15754: aix3*) ! 15755: allow_undefined_flag_GCJ=unsupported ! 15756: always_export_symbols_GCJ=yes ! 15757: archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ! 15758: # Note: this linker hardcodes the directories in LIBPATH if there ! 15759: # are no directories specified by -L. ! 15760: hardcode_minus_L_GCJ=yes ! 15761: if test "$GCC" = yes && test -z "$link_static_flag"; then ! 15762: # Neither direct hardcoding nor static linking is supported with a ! 15763: # broken collect2. ! 15764: hardcode_direct_GCJ=unsupported ! 15765: fi ! 15766: ;; ! 15767: ! 15768: aix4* | aix5*) ! 15769: if test "$host_cpu" = ia64; then ! 15770: # On IA64, the linker does run time linking by default, so we don't ! 15771: # have to do anything special. ! 15772: aix_use_runtimelinking=no ! 15773: exp_sym_flag='-Bexport' ! 15774: no_entry_flag="" ! 15775: else ! 15776: # If we're using GNU nm, then we don't want the "-C" option. ! 15777: # -C means demangle to AIX nm, but means don't demangle with GNU nm ! 15778: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then ! 15779: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ! 15780: else ! 15781: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ! 15782: fi ! 15783: aix_use_runtimelinking=no ! 15784: ! 15785: # Test if we are trying to use run time linking or normal ! 15786: # AIX style linking. If -brtl is somewhere in LDFLAGS, we ! 15787: # need to do runtime linking. ! 15788: case $host_os in aix4.[23]|aix4.[23].*|aix5*) ! 15789: for ld_flag in $LDFLAGS; do ! 15790: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ! 15791: aix_use_runtimelinking=yes ! 15792: break ! 15793: fi ! 15794: done ! 15795: esac ! 15796: ! 15797: exp_sym_flag='-bexport' ! 15798: no_entry_flag='-bnoentry' ! 15799: fi ! 15800: ! 15801: # When large executables or shared objects are built, AIX ld can ! 15802: # have problems creating the table of contents. If linking a library ! 15803: # or program results in "error TOC overflow" add -mminimal-toc to ! 15804: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ! 15805: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ! 15806: ! 15807: archive_cmds_GCJ='' ! 15808: hardcode_direct_GCJ=yes ! 15809: hardcode_libdir_separator_GCJ=':' ! 15810: link_all_deplibs_GCJ=yes ! 15811: ! 15812: if test "$GCC" = yes; then ! 15813: case $host_os in aix4.012|aix4.012.*) ! 15814: # We only want to do this on AIX 4.2 and lower, the check ! 15815: # below for broken collect2 doesn't work under 4.3+ ! 15816: collect2name=`${CC} -print-prog-name=collect2` ! 15817: if test -f "$collect2name" && \ ! 15818: strings "$collect2name" | grep resolve_lib_name >/dev/null ! 15819: then ! 15820: # We have reworked collect2 ! 15821: hardcode_direct_GCJ=yes ! 15822: else ! 15823: # We have old collect2 ! 15824: hardcode_direct_GCJ=unsupported ! 15825: # It fails to find uninstalled libraries when the uninstalled ! 15826: # path is not listed in the libpath. Setting hardcode_minus_L ! 15827: # to unsupported forces relinking ! 15828: hardcode_minus_L_GCJ=yes ! 15829: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 15830: hardcode_libdir_separator_GCJ= ! 15831: fi ! 15832: esac ! 15833: shared_flag='-shared' ! 15834: else ! 15835: # not using gcc ! 15836: if test "$host_cpu" = ia64; then ! 15837: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ! 15838: # chokes on -Wl,-G. The following line is correct: ! 15839: shared_flag='-G' ! 15840: else ! 15841: if test "$aix_use_runtimelinking" = yes; then ! 15842: shared_flag='${wl}-G' ! 15843: else ! 15844: shared_flag='${wl}-bM:SRE' ! 15845: fi ! 15846: fi ! 15847: fi ! 15848: ! 15849: # It seems that -bexpall does not export symbols beginning with ! 15850: # underscore (_), so it is better to generate a list of symbols to export. ! 15851: always_export_symbols_GCJ=yes ! 15852: if test "$aix_use_runtimelinking" = yes; then ! 15853: # Warning - without using the other runtime loading flags (-brtl), ! 15854: # -berok will link without error, but may produce a broken library. ! 15855: allow_undefined_flag_GCJ='-berok' ! 15856: # Determine the default libpath from the value encoded in an empty executable. ! 15857: cat >conftest.$ac_ext <<_ACEOF ! 15858: #line $LINENO "configure" ! 15859: /* confdefs.h. */ ! 15860: _ACEOF ! 15861: cat confdefs.h >>conftest.$ac_ext ! 15862: cat >>conftest.$ac_ext <<_ACEOF ! 15863: /* end confdefs.h. */ ! 15864: ! 15865: int ! 15866: main () ! 15867: { ! 15868: ! 15869: ; ! 15870: return 0; ! 15871: } ! 15872: _ACEOF ! 15873: rm -f conftest.$ac_objext conftest$ac_exeext ! 15874: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 15875: (eval $ac_link) 2>&5 ! 15876: ac_status=$? ! 15877: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15878: (exit $ac_status); } && ! 15879: { ac_try='test -s conftest$ac_exeext' ! 15880: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 15881: (eval $ac_try) 2>&5 ! 15882: ac_status=$? ! 15883: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15884: (exit $ac_status); }; }; then ! 15885: ! 15886: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 15887: }'` ! 15888: # Check for a 64-bit object if we didn't find anything. ! 15889: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 15890: }'`; fi ! 15891: else ! 15892: echo "$as_me: failed program was:" >&5 ! 15893: sed 's/^/| /' conftest.$ac_ext >&5 ! 15894: ! 15895: fi ! 15896: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 15897: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 15898: ! 15899: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" ! 15900: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ! 15901: else ! 15902: if test "$host_cpu" = ia64; then ! 15903: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' ! 15904: allow_undefined_flag_GCJ="-z nodefs" ! 15905: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" ! 15906: else ! 15907: # Determine the default libpath from the value encoded in an empty executable. ! 15908: cat >conftest.$ac_ext <<_ACEOF ! 15909: #line $LINENO "configure" ! 15910: /* confdefs.h. */ ! 15911: _ACEOF ! 15912: cat confdefs.h >>conftest.$ac_ext ! 15913: cat >>conftest.$ac_ext <<_ACEOF ! 15914: /* end confdefs.h. */ ! 15915: ! 15916: int ! 15917: main () ! 15918: { ! 15919: ! 15920: ; ! 15921: return 0; ! 15922: } ! 15923: _ACEOF ! 15924: rm -f conftest.$ac_objext conftest$ac_exeext ! 15925: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 15926: (eval $ac_link) 2>&5 ! 15927: ac_status=$? ! 15928: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15929: (exit $ac_status); } && ! 15930: { ac_try='test -s conftest$ac_exeext' ! 15931: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 15932: (eval $ac_try) 2>&5 ! 15933: ac_status=$? ! 15934: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 15935: (exit $ac_status); }; }; then ! 15936: ! 15937: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 15938: }'` ! 15939: # Check for a 64-bit object if we didn't find anything. ! 15940: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } ! 15941: }'`; fi ! 15942: else ! 15943: echo "$as_me: failed program was:" >&5 ! 15944: sed 's/^/| /' conftest.$ac_ext >&5 ! 15945: ! 15946: fi ! 15947: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 15948: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ! 15949: ! 15950: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" ! 15951: # Warning - without using the other run time loading flags, ! 15952: # -berok will link without error, but may produce a broken library. ! 15953: no_undefined_flag_GCJ=' ${wl}-bernotok' ! 15954: allow_undefined_flag_GCJ=' ${wl}-berok' ! 15955: # -bexpall does not export symbols beginning with underscore (_) ! 15956: always_export_symbols_GCJ=yes ! 15957: # Exported symbols can be pulled into shared objects from archives ! 15958: whole_archive_flag_spec_GCJ=' ' ! 15959: archive_cmds_need_lc_GCJ=yes ! 15960: # This is similar to how AIX traditionally builds it's shared libraries. ! 15961: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ! 15962: fi ! 15963: fi ! 15964: ;; ! 15965: ! 15966: amigaos*) ! 15967: archive_cmds_GCJ='$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)' ! 15968: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 15969: hardcode_minus_L_GCJ=yes ! 15970: # see comment about different semantics on the GNU ld section ! 15971: ld_shlibs_GCJ=no ! 15972: ;; ! 15973: ! 15974: bsdi4*) ! 15975: export_dynamic_flag_spec_GCJ=-rdynamic ! 15976: ;; ! 15977: ! 15978: cygwin* | mingw* | pw32*) ! 15979: # When not using gcc, we currently assume that we are using ! 15980: # Microsoft Visual C++. ! 15981: # hardcode_libdir_flag_spec is actually meaningless, as there is ! 15982: # no search path for DLLs. ! 15983: hardcode_libdir_flag_spec_GCJ=' ' ! 15984: allow_undefined_flag_GCJ=unsupported ! 15985: # Tell ltmain to make .lib files, not .a files. ! 15986: libext=lib ! 15987: # Tell ltmain to make .dll files, not .so files. ! 15988: shrext=".dll" ! 15989: # FIXME: Setting linknames here is a bad hack. ! 15990: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' ! 15991: # The linker will automatically build a .lib file if we build a DLL. ! 15992: old_archive_From_new_cmds_GCJ='true' ! 15993: # FIXME: Should let the user specify the lib program. ! 15994: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' ! 15995: fix_srcfile_path='`cygpath -w "$srcfile"`' ! 15996: enable_shared_with_static_runtimes_GCJ=yes ! 15997: ;; ! 15998: ! 15999: darwin* | rhapsody*) ! 16000: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 16001: archive_cmds_need_lc_GCJ=no ! 16002: case "$host_os" in ! 16003: rhapsody* | darwin1.[012]) ! 16004: allow_undefined_flag_GCJ='-undefined suppress' ! 16005: ;; ! 16006: *) # Darwin 1.3 on ! 16007: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' ! 16008: ;; ! 16009: esac ! 16010: # FIXME: Relying on posixy $() will cause problems for ! 16011: # cross-compilation, but unfortunately the echo tests do not ! 16012: # yet detect zsh echo's removal of \ escapes. Also zsh mangles ! 16013: # `"' quotes if we put them in here... so don't! ! 16014: lt_int_apple_cc_single_mod=no ! 16015: output_verbose_link_cmd='echo' ! 16016: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then ! 16017: lt_int_apple_cc_single_mod=yes ! 16018: fi ! 16019: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 16020: archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 16021: else ! 16022: archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' ! 16023: fi ! 16024: module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' ! 16025: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's ! 16026: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then ! 16027: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 16028: else ! 16029: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 16030: fi ! 16031: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ! 16032: hardcode_direct_GCJ=no ! 16033: hardcode_automatic_GCJ=yes ! 16034: hardcode_shlibpath_var_GCJ=unsupported ! 16035: whole_archive_flag_spec_GCJ='-all_load $convenience' ! 16036: link_all_deplibs_GCJ=yes ! 16037: fi ! 16038: ;; ! 16039: ! 16040: dgux*) ! 16041: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16042: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 16043: hardcode_shlibpath_var_GCJ=no ! 16044: ;; ! 16045: ! 16046: freebsd1*) ! 16047: ld_shlibs_GCJ=no ! 16048: ;; ! 16049: ! 16050: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ! 16051: # support. Future versions do this automatically, but an explicit c++rt0.o ! 16052: # does not break anything, and helps significantly (at the cost of a little ! 16053: # extra space). ! 16054: freebsd2.2*) ! 16055: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ! 16056: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 16057: hardcode_direct_GCJ=yes ! 16058: hardcode_shlibpath_var_GCJ=no ! 16059: ;; ! 16060: ! 16061: # Unfortunately, older versions of FreeBSD 2 do not have this feature. ! 16062: freebsd2*) ! 16063: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 16064: hardcode_direct_GCJ=yes ! 16065: hardcode_minus_L_GCJ=yes ! 16066: hardcode_shlibpath_var_GCJ=no ! 16067: ;; ! 16068: ! 16069: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ! 16070: freebsd*) ! 16071: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ! 16072: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 16073: hardcode_direct_GCJ=yes ! 16074: hardcode_shlibpath_var_GCJ=no ! 16075: ;; ! 16076: ! 16077: hpux9*) ! 16078: if test "$GCC" = yes; then ! 16079: archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ! 16080: else ! 16081: archive_cmds_GCJ='$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' ! 16082: fi ! 16083: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' ! 16084: hardcode_libdir_separator_GCJ=: ! 16085: hardcode_direct_GCJ=yes ! 16086: ! 16087: # hardcode_minus_L: Not really in the search PATH, ! 16088: # but as the default location of the library. ! 16089: hardcode_minus_L_GCJ=yes ! 16090: export_dynamic_flag_spec_GCJ='${wl}-E' ! 16091: ;; ! 16092: ! 16093: hpux10* | hpux11*) ! 16094: if test "$GCC" = yes -a "$with_gnu_ld" = no; then ! 16095: case "$host_cpu" in ! 16096: hppa*64*|ia64*) ! 16097: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16098: ;; ! 16099: *) ! 16100: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ! 16101: ;; ! 16102: esac ! 16103: else ! 16104: case "$host_cpu" in ! 16105: hppa*64*|ia64*) ! 16106: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16107: ;; ! 16108: *) ! 16109: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ! 16110: ;; ! 16111: esac ! 16112: fi ! 16113: if test "$with_gnu_ld" = no; then ! 16114: case "$host_cpu" in ! 16115: hppa*64*) ! 16116: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' ! 16117: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' ! 16118: hardcode_libdir_separator_GCJ=: ! 16119: hardcode_direct_GCJ=no ! 16120: hardcode_shlibpath_var_GCJ=no ! 16121: ;; ! 16122: ia64*) ! 16123: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 16124: hardcode_direct_GCJ=no ! 16125: hardcode_shlibpath_var_GCJ=no ! 16126: ! 16127: # hardcode_minus_L: Not really in the search PATH, ! 16128: # but as the default location of the library. ! 16129: hardcode_minus_L_GCJ=yes ! 16130: ;; ! 16131: *) ! 16132: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' ! 16133: hardcode_libdir_separator_GCJ=: ! 16134: hardcode_direct_GCJ=yes ! 16135: export_dynamic_flag_spec_GCJ='${wl}-E' ! 16136: ! 16137: # hardcode_minus_L: Not really in the search PATH, ! 16138: # but as the default location of the library. ! 16139: hardcode_minus_L_GCJ=yes ! 16140: ;; ! 16141: esac ! 16142: fi ! 16143: ;; ! 16144: ! 16145: irix5* | irix6* | nonstopux*) ! 16146: if test "$GCC" = yes; then ! 16147: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 16148: else ! 16149: archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 16150: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' ! 16151: fi ! 16152: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 16153: hardcode_libdir_separator_GCJ=: ! 16154: link_all_deplibs_GCJ=yes ! 16155: ;; ! 16156: ! 16157: netbsd*) ! 16158: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 16159: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ! 16160: else ! 16161: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ! 16162: fi ! 16163: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 16164: hardcode_direct_GCJ=yes ! 16165: hardcode_shlibpath_var_GCJ=no ! 16166: ;; ! 16167: ! 16168: newsos6) ! 16169: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16170: hardcode_direct_GCJ=yes ! 16171: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 16172: hardcode_libdir_separator_GCJ=: ! 16173: hardcode_shlibpath_var_GCJ=no ! 16174: ;; ! 16175: ! 16176: openbsd*) ! 16177: hardcode_direct_GCJ=yes ! 16178: hardcode_shlibpath_var_GCJ=no ! 16179: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 16180: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 16181: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ! 16182: export_dynamic_flag_spec_GCJ='${wl}-E' ! 16183: else ! 16184: case $host_os in ! 16185: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ! 16186: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ! 16187: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 16188: ;; ! 16189: *) ! 16190: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ! 16191: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ! 16192: ;; ! 16193: esac ! 16194: fi ! 16195: ;; ! 16196: ! 16197: os2*) ! 16198: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 16199: hardcode_minus_L_GCJ=yes ! 16200: allow_undefined_flag_GCJ=unsupported ! 16201: archive_cmds_GCJ='$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' ! 16202: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ! 16203: ;; ! 16204: ! 16205: osf3*) ! 16206: if test "$GCC" = yes; then ! 16207: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' ! 16208: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 16209: else ! 16210: allow_undefined_flag_GCJ=' -expect_unresolved \*' ! 16211: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 16212: fi ! 16213: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 16214: hardcode_libdir_separator_GCJ=: ! 16215: ;; ! 16216: ! 16217: osf4* | osf5*) # as osf3* with the addition of -msym flag ! 16218: if test "$GCC" = yes; then ! 16219: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' ! 16220: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ! 16221: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' ! 16222: else ! 16223: allow_undefined_flag_GCJ=' -expect_unresolved \*' ! 16224: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' ! 16225: archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ ! 16226: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' ! 16227: ! 16228: # Both c and cxx compiler support -rpath directly ! 16229: hardcode_libdir_flag_spec_GCJ='-rpath $libdir' ! 16230: fi ! 16231: hardcode_libdir_separator_GCJ=: ! 16232: ;; ! 16233: ! 16234: sco3.2v5*) ! 16235: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16236: hardcode_shlibpath_var_GCJ=no ! 16237: export_dynamic_flag_spec_GCJ='${wl}-Bexport' ! 16238: runpath_var=LD_RUN_PATH ! 16239: hardcode_runpath_var=yes ! 16240: ;; ! 16241: ! 16242: solaris*) ! 16243: no_undefined_flag_GCJ=' -z text' ! 16244: if test "$GCC" = yes; then ! 16245: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16246: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 16247: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' ! 16248: else ! 16249: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16250: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 16251: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 16252: fi ! 16253: hardcode_libdir_flag_spec_GCJ='-R$libdir' ! 16254: hardcode_shlibpath_var_GCJ=no ! 16255: case $host_os in ! 16256: solaris2.[0-5] | solaris2.[0-5].*) ;; ! 16257: *) # Supported since Solaris 2.6 (maybe 2.5.1?) ! 16258: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; ! 16259: esac ! 16260: link_all_deplibs_GCJ=yes ! 16261: ;; ! 16262: ! 16263: sunos4*) ! 16264: if test "x$host_vendor" = xsequent; then ! 16265: # Use $CC to link under sequent, because it throws in some extra .o ! 16266: # files that make .init and .fini sections work. ! 16267: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ! 16268: else ! 16269: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ! 16270: fi ! 16271: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 16272: hardcode_direct_GCJ=yes ! 16273: hardcode_minus_L_GCJ=yes ! 16274: hardcode_shlibpath_var_GCJ=no ! 16275: ;; ! 16276: ! 16277: sysv4) ! 16278: case $host_vendor in ! 16279: sni) ! 16280: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16281: hardcode_direct_GCJ=yes # is this really true??? ! 16282: ;; ! 16283: siemens) ! 16284: ## LD is ld it makes a PLAMLIB ! 16285: ## CC just makes a GrossModule. ! 16286: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 16287: reload_cmds_GCJ='$CC -r -o $output$reload_objs' ! 16288: hardcode_direct_GCJ=no ! 16289: ;; ! 16290: motorola) ! 16291: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16292: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ! 16293: ;; ! 16294: esac ! 16295: runpath_var='LD_RUN_PATH' ! 16296: hardcode_shlibpath_var_GCJ=no ! 16297: ;; ! 16298: ! 16299: sysv4.3*) ! 16300: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16301: hardcode_shlibpath_var_GCJ=no ! 16302: export_dynamic_flag_spec_GCJ='-Bexport' ! 16303: ;; ! 16304: ! 16305: sysv4*MP*) ! 16306: if test -d /usr/nec; then ! 16307: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16308: hardcode_shlibpath_var_GCJ=no ! 16309: runpath_var=LD_RUN_PATH ! 16310: hardcode_runpath_var=yes ! 16311: ld_shlibs_GCJ=yes ! 16312: fi ! 16313: ;; ! 16314: ! 16315: sysv4.2uw2*) ! 16316: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' ! 16317: hardcode_direct_GCJ=yes ! 16318: hardcode_minus_L_GCJ=no ! 16319: hardcode_shlibpath_var_GCJ=no ! 16320: hardcode_runpath_var=yes ! 16321: runpath_var=LD_RUN_PATH ! 16322: ;; ! 16323: ! 16324: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ! 16325: no_undefined_flag_GCJ='${wl}-z ${wl}text' ! 16326: if test "$GCC" = yes; then ! 16327: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16328: else ! 16329: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ! 16330: fi ! 16331: runpath_var='LD_RUN_PATH' ! 16332: hardcode_shlibpath_var_GCJ=no ! 16333: ;; ! 16334: ! 16335: sysv5*) ! 16336: no_undefined_flag_GCJ=' -z text' ! 16337: # $CC -shared without GNU ld will not create a library from C++ ! 16338: # object files and a static libstdc++, better avoid it by now ! 16339: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16340: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ ! 16341: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' ! 16342: hardcode_libdir_flag_spec_GCJ= ! 16343: hardcode_shlibpath_var_GCJ=no ! 16344: runpath_var='LD_RUN_PATH' ! 16345: ;; ! 16346: ! 16347: uts4*) ! 16348: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ! 16349: hardcode_libdir_flag_spec_GCJ='-L$libdir' ! 16350: hardcode_shlibpath_var_GCJ=no ! 16351: ;; ! 16352: ! 16353: *) ! 16354: ld_shlibs_GCJ=no ! 16355: ;; ! 16356: esac ! 16357: fi ! 16358: ! 16359: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 ! 16360: echo "${ECHO_T}$ld_shlibs_GCJ" >&6 ! 16361: test "$ld_shlibs_GCJ" = no && can_build_shared=no ! 16362: ! 16363: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ! 16364: if test "$GCC" = yes; then ! 16365: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ! 16366: fi ! 16367: ! 16368: # ! 16369: # Do we need to explicitly link libc? ! 16370: # ! 16371: case "x$archive_cmds_need_lc_GCJ" in ! 16372: x|xyes) ! 16373: # Assume -lc should be added ! 16374: archive_cmds_need_lc_GCJ=yes ! 16375: ! 16376: if test "$enable_shared" = yes && test "$GCC" = yes; then ! 16377: case $archive_cmds_GCJ in ! 16378: *'~'*) ! 16379: # FIXME: we may have to deal with multi-command sequences. ! 16380: ;; ! 16381: '$CC '*) ! 16382: # Test whether the compiler implicitly links with -lc since on some ! 16383: # systems, -lgcc has to come before -lc. If gcc already passes -lc ! 16384: # to ld, don't add -lc before -lgcc. ! 16385: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ! 16386: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 ! 16387: $rm conftest* ! 16388: printf "$lt_simple_compile_test_code" > conftest.$ac_ext ! 16389: ! 16390: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 16391: (eval $ac_compile) 2>&5 ! 16392: ac_status=$? ! 16393: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 16394: (exit $ac_status); } 2>conftest.err; then ! 16395: soname=conftest ! 16396: lib=conftest ! 16397: libobjs=conftest.$ac_objext ! 16398: deplibs= ! 16399: wl=$lt_prog_compiler_wl_GCJ ! 16400: compiler_flags=-v ! 16401: linker_flags=-v ! 16402: verstring= ! 16403: output_objdir=. ! 16404: libname=conftest ! 16405: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ ! 16406: allow_undefined_flag_GCJ= ! 16407: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 ! 16408: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ! 16409: ac_status=$? ! 16410: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 16411: (exit $ac_status); } ! 16412: then ! 16413: archive_cmds_need_lc_GCJ=no ! 16414: else ! 16415: archive_cmds_need_lc_GCJ=yes ! 16416: fi ! 16417: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag ! 16418: else ! 16419: cat conftest.err 1>&5 ! 16420: fi ! 16421: $rm conftest* ! 16422: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 ! 16423: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 ! 16424: ;; ! 16425: esac ! 16426: fi ! 16427: ;; ! 16428: esac ! 16429: ! 16430: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ! 16431: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 ! 16432: hardcode_action_GCJ= ! 16433: if test -n "$hardcode_libdir_flag_spec_GCJ" || \ ! 16434: test -n "$runpath_var GCJ" || \ ! 16435: test "X$hardcode_automatic_GCJ"="Xyes" ; then ! 16436: ! 16437: # We can hardcode non-existant directories. ! 16438: if test "$hardcode_direct_GCJ" != no && ! 16439: # If the only mechanism to avoid hardcoding is shlibpath_var, we ! 16440: # have to relink, otherwise we might link with an installed library ! 16441: # when we should be linking with a yet-to-be-installed one ! 16442: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && ! 16443: test "$hardcode_minus_L_GCJ" != no; then ! 16444: # Linking always hardcodes the temporary library directory. ! 16445: hardcode_action_GCJ=relink ! 16446: else ! 16447: # We can link without hardcoding, and we can hardcode nonexisting dirs. ! 16448: hardcode_action_GCJ=immediate ! 16449: fi ! 16450: else ! 16451: # We cannot hardcode anything, or else we can only hardcode existing ! 16452: # directories. ! 16453: hardcode_action_GCJ=unsupported ! 16454: fi ! 16455: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 ! 16456: echo "${ECHO_T}$hardcode_action_GCJ" >&6 ! 16457: ! 16458: if test "$hardcode_action_GCJ" = relink; then ! 16459: # Fast installation is not supported ! 16460: enable_fast_install=no ! 16461: elif test "$shlibpath_overrides_runpath" = yes || ! 16462: test "$enable_shared" = no; then ! 16463: # Fast installation is not necessary ! 16464: enable_fast_install=needless ! 16465: fi ! 16466: ! 16467: striplib= ! 16468: old_striplib= ! 16469: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ! 16470: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ! 16471: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then ! 16472: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ! 16473: test -z "$striplib" && striplib="$STRIP --strip-unneeded" ! 16474: echo "$as_me:$LINENO: result: yes" >&5 ! 16475: echo "${ECHO_T}yes" >&6 ! 16476: else ! 16477: # FIXME - insert some real tests, host_os isn't really good enough ! 16478: case $host_os in ! 16479: darwin*) ! 16480: if test -n "$STRIP" ; then ! 16481: striplib="$STRIP -x" ! 16482: echo "$as_me:$LINENO: result: yes" >&5 ! 16483: echo "${ECHO_T}yes" >&6 ! 16484: else ! 16485: echo "$as_me:$LINENO: result: no" >&5 ! 16486: echo "${ECHO_T}no" >&6 ! 16487: fi ! 16488: ;; ! 16489: *) ! 16490: echo "$as_me:$LINENO: result: no" >&5 ! 16491: echo "${ECHO_T}no" >&6 ! 16492: ;; ! 16493: esac ! 16494: fi ! 16495: ! 16496: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ! 16497: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 ! 16498: library_names_spec= ! 16499: libname_spec='lib$name' ! 16500: soname_spec= ! 16501: shrext=".so" ! 16502: postinstall_cmds= ! 16503: postuninstall_cmds= ! 16504: finish_cmds= ! 16505: finish_eval= ! 16506: shlibpath_var= ! 16507: shlibpath_overrides_runpath=unknown ! 16508: version_type=none ! 16509: dynamic_linker="$host_os ld.so" ! 16510: sys_lib_dlsearch_path_spec="/lib /usr/lib" ! 16511: if test "$GCC" = yes; then ! 16512: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 16513: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then ! 16514: # if the path contains ";" then we assume it to be the separator ! 16515: # otherwise default to the standard path separator (i.e. ":") - it is ! 16516: # assumed that no part of a normal pathname contains ";" but that should ! 16517: # okay in the real world where ";" in dirpaths is itself problematic. ! 16518: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 16519: else ! 16520: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 16521: fi ! 16522: else ! 16523: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ! 16524: fi ! 16525: need_lib_prefix=unknown ! 16526: hardcode_into_libs=no ! 16527: ! 16528: # when you set need_version to no, make sure it does not cause -set_version ! 16529: # flags to be left without arguments ! 16530: need_version=unknown ! 16531: ! 16532: case $host_os in ! 16533: aix3*) ! 16534: version_type=linux ! 16535: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ! 16536: shlibpath_var=LIBPATH ! 16537: ! 16538: # AIX 3 has no versioning support, so we append a major version to the name. ! 16539: soname_spec='${libname}${release}${shared_ext}$major' ! 16540: ;; ! 16541: ! 16542: aix4* | aix5*) ! 16543: version_type=linux ! 16544: need_lib_prefix=no ! 16545: need_version=no ! 16546: hardcode_into_libs=yes ! 16547: if test "$host_cpu" = ia64; then ! 16548: # AIX 5 supports IA64 ! 16549: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ! 16550: shlibpath_var=LD_LIBRARY_PATH ! 16551: else ! 16552: # With GCC up to 2.95.x, collect2 would create an import file ! 16553: # for dependence libraries. The import file would start with ! 16554: # the line `#! .'. This would cause the generated library to ! 16555: # depend on `.', always an invalid library. This was fixed in ! 16556: # development snapshots of GCC prior to 3.0. ! 16557: case $host_os in ! 16558: aix4 | aix4.[01] | aix4.[01].*) ! 16559: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ! 16560: echo ' yes ' ! 16561: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then ! 16562: : ! 16563: else ! 16564: can_build_shared=no ! 16565: fi ! 16566: ;; ! 16567: esac ! 16568: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ! 16569: # soname into executable. Probably we can add versioning support to ! 16570: # collect2, so additional links can be useful in future. ! 16571: if test "$aix_use_runtimelinking" = yes; then ! 16572: # If using run time linking (on AIX 4.2 or later) use lib<name>.so ! 16573: # instead of lib<name>.a to let people know that these are not ! 16574: # typical AIX shared libraries. ! 16575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16576: else ! 16577: # We preserve .a as extension for shared libraries through AIX4.2 ! 16578: # and later when we are not doing run time linking. ! 16579: library_names_spec='${libname}${release}.a $libname.a' ! 16580: soname_spec='${libname}${release}${shared_ext}$major' ! 16581: fi ! 16582: shlibpath_var=LIBPATH ! 16583: fi ! 16584: ;; ! 16585: ! 16586: amigaos*) ! 16587: library_names_spec='$libname.ixlibrary $libname.a' ! 16588: # Create ${libname}_ixlibrary.a entries in /sys/libs. ! 16589: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' ! 16590: ;; ! 16591: ! 16592: beos*) ! 16593: library_names_spec='${libname}${shared_ext}' ! 16594: dynamic_linker="$host_os ld.so" ! 16595: shlibpath_var=LIBRARY_PATH ! 16596: ;; ! 16597: ! 16598: bsdi4*) ! 16599: version_type=linux ! 16600: need_version=no ! 16601: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16602: soname_spec='${libname}${release}${shared_ext}$major' ! 16603: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ! 16604: shlibpath_var=LD_LIBRARY_PATH ! 16605: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ! 16606: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ! 16607: # the default ld.so.conf also contains /usr/contrib/lib and ! 16608: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ! 16609: # libtool to hard-code these into programs ! 16610: ;; ! 16611: ! 16612: cygwin* | mingw* | pw32*) ! 16613: version_type=windows ! 16614: shrext=".dll" ! 16615: need_version=no ! 16616: need_lib_prefix=no ! 16617: ! 16618: case $GCC,$host_os in ! 16619: yes,cygwin* | yes,mingw* | yes,pw32*) ! 16620: library_names_spec='$libname.dll.a' ! 16621: # DLL is installed to $(libdir)/../bin by postinstall_cmds ! 16622: postinstall_cmds='base_file=`basename \${file}`~ ! 16623: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ ! 16624: dldir=$destdir/`dirname \$dlpath`~ ! 16625: test -d \$dldir || mkdir -p \$dldir~ ! 16626: $install_prog $dir/$dlname \$dldir/$dlname' ! 16627: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ! 16628: dlpath=$dir/\$dldll~ ! 16629: $rm \$dlpath' ! 16630: shlibpath_overrides_runpath=yes ! 16631: ! 16632: case $host_os in ! 16633: cygwin*) ! 16634: # Cygwin DLLs use 'cyg' prefix rather than 'lib' ! 16635: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 16636: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ! 16637: ;; ! 16638: mingw*) ! 16639: # MinGW DLLs use traditional 'lib' prefix ! 16640: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ! 16641: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ! 16642: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then ! 16643: # It is most probably a Windows format PATH printed by ! 16644: # mingw gcc, but we are running on Cygwin. Gcc prints its search ! 16645: # path with ; separators, and with drive letters. We can handle the ! 16646: # drive letters (cygwin fileutils understands them), so leave them, ! 16647: # especially as we might pass files found there to a mingw objdump, ! 16648: # which wouldn't understand a cygwinified path. Ahh. ! 16649: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ! 16650: else ! 16651: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ! 16652: fi ! 16653: ;; ! 16654: pw32*) ! 16655: # pw32 DLLs use 'pw' prefix rather than 'lib' ! 16656: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ! 16657: ;; ! 16658: esac ! 16659: ;; ! 16660: ! 16661: *) ! 16662: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ! 16663: ;; ! 16664: esac ! 16665: dynamic_linker='Win32 ld.exe' ! 16666: # FIXME: first we should search . and the directory the executable is in ! 16667: shlibpath_var=PATH ! 16668: ;; ! 16669: ! 16670: darwin* | rhapsody*) ! 16671: dynamic_linker="$host_os dyld" ! 16672: version_type=darwin ! 16673: need_lib_prefix=no ! 16674: need_version=no ! 16675: # FIXME: Relying on posixy $() will cause problems for ! 16676: # cross-compilation, but unfortunately the echo tests do not ! 16677: # yet detect zsh echo's removal of \ escapes. ! 16678: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' ! 16679: soname_spec='${libname}${release}${major}$shared_ext' ! 16680: shlibpath_overrides_runpath=yes ! 16681: shlibpath_var=DYLD_LIBRARY_PATH ! 16682: shrext='$(test .$module = .yes && echo .so || echo .dylib)' ! 16683: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. ! 16684: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then ! 16685: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` ! 16686: fi ! 16687: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ! 16688: ;; ! 16689: ! 16690: dgux*) ! 16691: version_type=linux ! 16692: need_lib_prefix=no ! 16693: need_version=no ! 16694: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ! 16695: soname_spec='${libname}${release}${shared_ext}$major' ! 16696: shlibpath_var=LD_LIBRARY_PATH ! 16697: ;; ! 16698: ! 16699: freebsd1*) ! 16700: dynamic_linker=no ! 16701: ;; ! 16702: ! 16703: freebsd*) ! 16704: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ! 16705: version_type=freebsd-$objformat ! 16706: case $version_type in ! 16707: freebsd-elf*) ! 16708: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ! 16709: need_version=no ! 16710: need_lib_prefix=no ! 16711: ;; ! 16712: freebsd-*) ! 16713: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ! 16714: need_version=yes ! 16715: ;; ! 16716: esac ! 16717: shlibpath_var=LD_LIBRARY_PATH ! 16718: case $host_os in ! 16719: freebsd2*) ! 16720: shlibpath_overrides_runpath=yes ! 16721: ;; ! 16722: freebsd3.01* | freebsdelf3.01*) ! 16723: shlibpath_overrides_runpath=yes ! 16724: hardcode_into_libs=yes ! 16725: ;; ! 16726: *) # from 3.2 on ! 16727: shlibpath_overrides_runpath=no ! 16728: hardcode_into_libs=yes ! 16729: ;; ! 16730: esac ! 16731: ;; ! 16732: ! 16733: gnu*) ! 16734: version_type=linux ! 16735: need_lib_prefix=no ! 16736: need_version=no ! 16737: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ! 16738: soname_spec='${libname}${release}${shared_ext}$major' ! 16739: shlibpath_var=LD_LIBRARY_PATH ! 16740: hardcode_into_libs=yes ! 16741: ;; ! 16742: ! 16743: hpux9* | hpux10* | hpux11*) ! 16744: # Give a soname corresponding to the major version so that dld.sl refuses to ! 16745: # link against other versions. ! 16746: version_type=sunos ! 16747: need_lib_prefix=no ! 16748: need_version=no ! 16749: case "$host_cpu" in ! 16750: ia64*) ! 16751: shrext='.so' ! 16752: hardcode_into_libs=yes ! 16753: dynamic_linker="$host_os dld.so" ! 16754: shlibpath_var=LD_LIBRARY_PATH ! 16755: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 16756: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16757: soname_spec='${libname}${release}${shared_ext}$major' ! 16758: if test "X$HPUX_IA64_MODE" = X32; then ! 16759: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ! 16760: else ! 16761: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ! 16762: fi ! 16763: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 16764: ;; ! 16765: hppa*64*) ! 16766: shrext='.sl' ! 16767: hardcode_into_libs=yes ! 16768: dynamic_linker="$host_os dld.sl" ! 16769: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ! 16770: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ! 16771: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16772: soname_spec='${libname}${release}${shared_ext}$major' ! 16773: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ! 16774: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ! 16775: ;; ! 16776: *) ! 16777: shrext='.sl' ! 16778: dynamic_linker="$host_os dld.sl" ! 16779: shlibpath_var=SHLIB_PATH ! 16780: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ! 16781: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16782: soname_spec='${libname}${release}${shared_ext}$major' ! 16783: ;; ! 16784: esac ! 16785: # HP-UX runs *really* slowly unless shared libraries are mode 555. ! 16786: postinstall_cmds='chmod 555 $lib' ! 16787: ;; ! 16788: ! 16789: irix5* | irix6* | nonstopux*) ! 16790: case $host_os in ! 16791: nonstopux*) version_type=nonstopux ;; ! 16792: *) ! 16793: if test "$lt_cv_prog_gnu_ld" = yes; then ! 16794: version_type=linux ! 16795: else ! 16796: version_type=irix ! 16797: fi ;; ! 16798: esac ! 16799: need_lib_prefix=no ! 16800: need_version=no ! 16801: soname_spec='${libname}${release}${shared_ext}$major' ! 16802: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ! 16803: case $host_os in ! 16804: irix5* | nonstopux*) ! 16805: libsuff= shlibsuff= ! 16806: ;; ! 16807: *) ! 16808: case $LD in # libtool.m4 will add one of these switches to LD ! 16809: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ! 16810: libsuff= shlibsuff= libmagic=32-bit;; ! 16811: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ! 16812: libsuff=32 shlibsuff=N32 libmagic=N32;; ! 16813: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ! 16814: libsuff=64 shlibsuff=64 libmagic=64-bit;; ! 16815: *) libsuff= shlibsuff= libmagic=never-match;; ! 16816: esac ! 16817: ;; ! 16818: esac ! 16819: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ! 16820: shlibpath_overrides_runpath=no ! 16821: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ! 16822: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ! 16823: hardcode_into_libs=yes ! 16824: ;; ! 16825: ! 16826: # No shared lib support for Linux oldld, aout, or coff. ! 16827: linux*oldld* | linux*aout* | linux*coff*) ! 16828: dynamic_linker=no ! 16829: ;; ! 16830: ! 16831: # This must be Linux ELF. ! 16832: linux*) ! 16833: version_type=linux ! 16834: need_lib_prefix=no ! 16835: need_version=no ! 16836: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16837: soname_spec='${libname}${release}${shared_ext}$major' ! 16838: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ! 16839: shlibpath_var=LD_LIBRARY_PATH ! 16840: shlibpath_overrides_runpath=no ! 16841: # This implies no fast_install, which is unacceptable. ! 16842: # Some rework will be needed to allow for fast_install ! 16843: # before this can be enabled. ! 16844: hardcode_into_libs=yes ! 16845: ! 16846: # We used to test for /lib/ld.so.1 and disable shared libraries on ! 16847: # powerpc, because MkLinux only supported shared libraries with the ! 16848: # GNU dynamic linker. Since this was broken with cross compilers, ! 16849: # most powerpc-linux boxes support dynamic linking these days and ! 16850: # people can always --disable-shared, the test was removed, and we ! 16851: # assume the GNU/Linux dynamic linker is in use. ! 16852: dynamic_linker='GNU/Linux ld.so' ! 16853: ;; ! 16854: ! 16855: netbsd*) ! 16856: version_type=sunos ! 16857: need_lib_prefix=no ! 16858: need_version=no ! 16859: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then ! 16860: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 16861: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 16862: dynamic_linker='NetBSD (a.out) ld.so' ! 16863: else ! 16864: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' ! 16865: soname_spec='${libname}${release}${shared_ext}$major' ! 16866: dynamic_linker='NetBSD ld.elf_so' ! 16867: fi ! 16868: shlibpath_var=LD_LIBRARY_PATH ! 16869: shlibpath_overrides_runpath=yes ! 16870: hardcode_into_libs=yes ! 16871: ;; ! 16872: ! 16873: newsos6) ! 16874: version_type=linux ! 16875: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16876: shlibpath_var=LD_LIBRARY_PATH ! 16877: shlibpath_overrides_runpath=yes ! 16878: ;; ! 16879: ! 16880: nto-qnx) ! 16881: version_type=linux ! 16882: need_lib_prefix=no ! 16883: need_version=no ! 16884: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16885: soname_spec='${libname}${release}${shared_ext}$major' ! 16886: shlibpath_var=LD_LIBRARY_PATH ! 16887: shlibpath_overrides_runpath=yes ! 16888: ;; ! 16889: ! 16890: openbsd*) ! 16891: version_type=sunos ! 16892: need_lib_prefix=no ! 16893: need_version=no ! 16894: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 16895: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ! 16896: shlibpath_var=LD_LIBRARY_PATH ! 16897: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ! 16898: case $host_os in ! 16899: openbsd2.[89] | openbsd2.[89].*) ! 16900: shlibpath_overrides_runpath=no ! 16901: ;; ! 16902: *) ! 16903: shlibpath_overrides_runpath=yes ! 16904: ;; ! 16905: esac ! 16906: else ! 16907: shlibpath_overrides_runpath=yes ! 16908: fi ! 16909: ;; ! 16910: ! 16911: os2*) ! 16912: libname_spec='$name' ! 16913: shrext=".dll" ! 16914: need_lib_prefix=no ! 16915: library_names_spec='$libname${shared_ext} $libname.a' ! 16916: dynamic_linker='OS/2 ld.exe' ! 16917: shlibpath_var=LIBPATH ! 16918: ;; ! 16919: ! 16920: osf3* | osf4* | osf5*) ! 16921: version_type=osf ! 16922: need_lib_prefix=no ! 16923: need_version=no ! 16924: soname_spec='${libname}${release}${shared_ext}$major' ! 16925: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16926: shlibpath_var=LD_LIBRARY_PATH ! 16927: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ! 16928: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ! 16929: ;; ! 16930: ! 16931: sco3.2v5*) ! 16932: version_type=osf ! 16933: soname_spec='${libname}${release}${shared_ext}$major' ! 16934: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16935: shlibpath_var=LD_LIBRARY_PATH ! 16936: ;; ! 16937: ! 16938: solaris*) ! 16939: version_type=linux ! 16940: need_lib_prefix=no ! 16941: need_version=no ! 16942: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16943: soname_spec='${libname}${release}${shared_ext}$major' ! 16944: shlibpath_var=LD_LIBRARY_PATH ! 16945: shlibpath_overrides_runpath=yes ! 16946: hardcode_into_libs=yes ! 16947: # ldd complains unless libraries are executable ! 16948: postinstall_cmds='chmod +x $lib' ! 16949: ;; ! 16950: ! 16951: sunos4*) ! 16952: version_type=sunos ! 16953: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ! 16954: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ! 16955: shlibpath_var=LD_LIBRARY_PATH ! 16956: shlibpath_overrides_runpath=yes ! 16957: if test "$with_gnu_ld" = yes; then ! 16958: need_lib_prefix=no ! 16959: fi ! 16960: need_version=yes ! 16961: ;; ! 16962: ! 16963: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ! 16964: version_type=linux ! 16965: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16966: soname_spec='${libname}${release}${shared_ext}$major' ! 16967: shlibpath_var=LD_LIBRARY_PATH ! 16968: case $host_vendor in ! 16969: sni) ! 16970: shlibpath_overrides_runpath=no ! 16971: need_lib_prefix=no ! 16972: export_dynamic_flag_spec='${wl}-Blargedynsym' ! 16973: runpath_var=LD_RUN_PATH ! 16974: ;; ! 16975: siemens) ! 16976: need_lib_prefix=no ! 16977: ;; ! 16978: motorola) ! 16979: need_lib_prefix=no ! 16980: need_version=no ! 16981: shlibpath_overrides_runpath=no ! 16982: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ! 16983: ;; ! 16984: esac ! 16985: ;; ! 16986: ! 16987: sysv4*MP*) ! 16988: if test -d /usr/nec ;then ! 16989: version_type=linux ! 16990: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ! 16991: soname_spec='$libname${shared_ext}.$major' ! 16992: shlibpath_var=LD_LIBRARY_PATH ! 16993: fi ! 16994: ;; ! 16995: ! 16996: uts4*) ! 16997: version_type=linux ! 16998: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ! 16999: soname_spec='${libname}${release}${shared_ext}$major' ! 17000: shlibpath_var=LD_LIBRARY_PATH ! 17001: ;; ! 17002: ! 17003: *) ! 17004: dynamic_linker=no ! 17005: ;; ! 17006: esac ! 17007: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ! 17008: echo "${ECHO_T}$dynamic_linker" >&6 ! 17009: test "$dynamic_linker" = no && can_build_shared=no ! 17010: ! 17011: if test "x$enable_dlopen" != xyes; then ! 17012: enable_dlopen=unknown ! 17013: enable_dlopen_self=unknown ! 17014: enable_dlopen_self_static=unknown ! 17015: else ! 17016: lt_cv_dlopen=no ! 17017: lt_cv_dlopen_libs= ! 17018: ! 17019: case $host_os in ! 17020: beos*) ! 17021: lt_cv_dlopen="load_add_on" ! 17022: lt_cv_dlopen_libs= ! 17023: lt_cv_dlopen_self=yes ! 17024: ;; ! 17025: ! 17026: mingw* | pw32*) ! 17027: lt_cv_dlopen="LoadLibrary" ! 17028: lt_cv_dlopen_libs= ! 17029: ;; ! 17030: ! 17031: cygwin*) ! 17032: lt_cv_dlopen="dlopen" ! 17033: lt_cv_dlopen_libs= ! 17034: ;; ! 17035: ! 17036: darwin*) ! 17037: # if libdl is installed we need to link against it ! 17038: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 17039: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 17040: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 17041: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17042: else ! 17043: ac_check_lib_save_LIBS=$LIBS ! 17044: LIBS="-ldl $LIBS" ! 17045: cat >conftest.$ac_ext <<_ACEOF ! 17046: #line $LINENO "configure" ! 17047: /* confdefs.h. */ ! 17048: _ACEOF ! 17049: cat confdefs.h >>conftest.$ac_ext ! 17050: cat >>conftest.$ac_ext <<_ACEOF ! 17051: /* end confdefs.h. */ ! 17052: ! 17053: /* Override any gcc2 internal prototype to avoid an error. */ ! 17054: #ifdef __cplusplus ! 17055: extern "C" ! 17056: #endif ! 17057: /* We use char because int might match the return type of a gcc2 ! 17058: builtin and then its argument prototype would still apply. */ ! 17059: char dlopen (); ! 17060: int ! 17061: main () ! 17062: { ! 17063: dlopen (); ! 17064: ; ! 17065: return 0; ! 17066: } ! 17067: _ACEOF ! 17068: rm -f conftest.$ac_objext conftest$ac_exeext ! 17069: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17070: (eval $ac_link) 2>&5 ! 17071: ac_status=$? ! 17072: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17073: (exit $ac_status); } && ! 17074: { ac_try='test -s conftest$ac_exeext' ! 17075: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 17076: (eval $ac_try) 2>&5 ! 17077: ac_status=$? ! 17078: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17079: (exit $ac_status); }; }; then ! 17080: ac_cv_lib_dl_dlopen=yes ! 17081: else ! 17082: echo "$as_me: failed program was:" >&5 ! 17083: sed 's/^/| /' conftest.$ac_ext >&5 ! 17084: ! 17085: ac_cv_lib_dl_dlopen=no ! 17086: fi ! 17087: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 17088: LIBS=$ac_check_lib_save_LIBS ! 17089: fi ! 17090: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 17091: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 17092: if test $ac_cv_lib_dl_dlopen = yes; then ! 17093: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 17094: else ! 17095: ! 17096: lt_cv_dlopen="dyld" ! 17097: lt_cv_dlopen_libs= ! 17098: lt_cv_dlopen_self=yes ! 17099: ! 17100: fi ! 17101: ! 17102: ;; ! 17103: ! 17104: *) ! 17105: echo "$as_me:$LINENO: checking for shl_load" >&5 ! 17106: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 ! 17107: if test "${ac_cv_func_shl_load+set}" = set; then ! 17108: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17109: else ! 17110: cat >conftest.$ac_ext <<_ACEOF ! 17111: #line $LINENO "configure" ! 17112: /* confdefs.h. */ ! 17113: _ACEOF ! 17114: cat confdefs.h >>conftest.$ac_ext ! 17115: cat >>conftest.$ac_ext <<_ACEOF ! 17116: /* end confdefs.h. */ ! 17117: /* System header to define __stub macros and hopefully few prototypes, ! 17118: which can conflict with char shl_load (); below. ! 17119: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 17120: <limits.h> exists even on freestanding compilers. */ ! 17121: #ifdef __STDC__ ! 17122: # include <limits.h> ! 17123: #else ! 17124: # include <assert.h> ! 17125: #endif ! 17126: /* Override any gcc2 internal prototype to avoid an error. */ ! 17127: #ifdef __cplusplus ! 17128: extern "C" ! 17129: { ! 17130: #endif ! 17131: /* We use char because int might match the return type of a gcc2 ! 17132: builtin and then its argument prototype would still apply. */ ! 17133: char shl_load (); ! 17134: /* The GNU C library defines this for functions which it implements ! 17135: to always fail with ENOSYS. Some functions are actually named ! 17136: something starting with __ and the normal name is an alias. */ ! 17137: #if defined (__stub_shl_load) || defined (__stub___shl_load) ! 17138: choke me ! 17139: #else ! 17140: char (*f) () = shl_load; ! 17141: #endif ! 17142: #ifdef __cplusplus ! 17143: } ! 17144: #endif ! 17145: ! 17146: int ! 17147: main () ! 17148: { ! 17149: return f != shl_load; ! 17150: ; ! 17151: return 0; ! 17152: } ! 17153: _ACEOF ! 17154: rm -f conftest.$ac_objext conftest$ac_exeext ! 17155: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17156: (eval $ac_link) 2>&5 ! 17157: ac_status=$? ! 17158: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17159: (exit $ac_status); } && ! 17160: { ac_try='test -s conftest$ac_exeext' ! 17161: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 17162: (eval $ac_try) 2>&5 ! 17163: ac_status=$? ! 17164: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17165: (exit $ac_status); }; }; then ! 17166: ac_cv_func_shl_load=yes ! 17167: else ! 17168: echo "$as_me: failed program was:" >&5 ! 17169: sed 's/^/| /' conftest.$ac_ext >&5 ! 17170: ! 17171: ac_cv_func_shl_load=no ! 17172: fi ! 17173: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 17174: fi ! 17175: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ! 17176: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 ! 17177: if test $ac_cv_func_shl_load = yes; then ! 17178: lt_cv_dlopen="shl_load" ! 17179: else ! 17180: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! 17181: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 ! 17182: if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! 17183: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17184: else ! 17185: ac_check_lib_save_LIBS=$LIBS ! 17186: LIBS="-ldld $LIBS" ! 17187: cat >conftest.$ac_ext <<_ACEOF ! 17188: #line $LINENO "configure" ! 17189: /* confdefs.h. */ ! 17190: _ACEOF ! 17191: cat confdefs.h >>conftest.$ac_ext ! 17192: cat >>conftest.$ac_ext <<_ACEOF ! 17193: /* end confdefs.h. */ ! 17194: ! 17195: /* Override any gcc2 internal prototype to avoid an error. */ ! 17196: #ifdef __cplusplus ! 17197: extern "C" ! 17198: #endif ! 17199: /* We use char because int might match the return type of a gcc2 ! 17200: builtin and then its argument prototype would still apply. */ ! 17201: char shl_load (); ! 17202: int ! 17203: main () ! 17204: { ! 17205: shl_load (); ! 17206: ; ! 17207: return 0; ! 17208: } ! 17209: _ACEOF ! 17210: rm -f conftest.$ac_objext conftest$ac_exeext ! 17211: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17212: (eval $ac_link) 2>&5 ! 17213: ac_status=$? ! 17214: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17215: (exit $ac_status); } && ! 17216: { ac_try='test -s conftest$ac_exeext' ! 17217: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 17218: (eval $ac_try) 2>&5 ! 17219: ac_status=$? ! 17220: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17221: (exit $ac_status); }; }; then ! 17222: ac_cv_lib_dld_shl_load=yes ! 17223: else ! 17224: echo "$as_me: failed program was:" >&5 ! 17225: sed 's/^/| /' conftest.$ac_ext >&5 ! 17226: ! 17227: ac_cv_lib_dld_shl_load=no ! 17228: fi ! 17229: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 17230: LIBS=$ac_check_lib_save_LIBS ! 17231: fi ! 17232: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! 17233: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 ! 17234: if test $ac_cv_lib_dld_shl_load = yes; then ! 17235: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" ! 17236: else ! 17237: echo "$as_me:$LINENO: checking for dlopen" >&5 ! 17238: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 ! 17239: if test "${ac_cv_func_dlopen+set}" = set; then ! 17240: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17241: else ! 17242: cat >conftest.$ac_ext <<_ACEOF ! 17243: #line $LINENO "configure" ! 17244: /* confdefs.h. */ ! 17245: _ACEOF ! 17246: cat confdefs.h >>conftest.$ac_ext ! 17247: cat >>conftest.$ac_ext <<_ACEOF ! 17248: /* end confdefs.h. */ ! 17249: /* System header to define __stub macros and hopefully few prototypes, ! 17250: which can conflict with char dlopen (); below. ! 17251: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 17252: <limits.h> exists even on freestanding compilers. */ ! 17253: #ifdef __STDC__ ! 17254: # include <limits.h> ! 17255: #else ! 17256: # include <assert.h> ! 17257: #endif ! 17258: /* Override any gcc2 internal prototype to avoid an error. */ ! 17259: #ifdef __cplusplus ! 17260: extern "C" ! 17261: { ! 17262: #endif ! 17263: /* We use char because int might match the return type of a gcc2 ! 17264: builtin and then its argument prototype would still apply. */ ! 17265: char dlopen (); ! 17266: /* The GNU C library defines this for functions which it implements ! 17267: to always fail with ENOSYS. Some functions are actually named ! 17268: something starting with __ and the normal name is an alias. */ ! 17269: #if defined (__stub_dlopen) || defined (__stub___dlopen) ! 17270: choke me ! 17271: #else ! 17272: char (*f) () = dlopen; ! 17273: #endif ! 17274: #ifdef __cplusplus ! 17275: } ! 17276: #endif ! 17277: ! 17278: int ! 17279: main () ! 17280: { ! 17281: return f != dlopen; ! 17282: ; ! 17283: return 0; ! 17284: } ! 17285: _ACEOF ! 17286: rm -f conftest.$ac_objext conftest$ac_exeext ! 17287: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17288: (eval $ac_link) 2>&5 ! 17289: ac_status=$? ! 17290: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17291: (exit $ac_status); } && ! 17292: { ac_try='test -s conftest$ac_exeext' ! 17293: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 17294: (eval $ac_try) 2>&5 ! 17295: ac_status=$? ! 17296: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17297: (exit $ac_status); }; }; then ! 17298: ac_cv_func_dlopen=yes ! 17299: else ! 17300: echo "$as_me: failed program was:" >&5 ! 17301: sed 's/^/| /' conftest.$ac_ext >&5 ! 17302: ! 17303: ac_cv_func_dlopen=no ! 17304: fi ! 17305: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 17306: fi ! 17307: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ! 17308: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 ! 17309: if test $ac_cv_func_dlopen = yes; then ! 17310: lt_cv_dlopen="dlopen" ! 17311: else ! 17312: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 17313: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 17314: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 17315: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17316: else ! 17317: ac_check_lib_save_LIBS=$LIBS ! 17318: LIBS="-ldl $LIBS" ! 17319: cat >conftest.$ac_ext <<_ACEOF ! 17320: #line $LINENO "configure" ! 17321: /* confdefs.h. */ ! 17322: _ACEOF ! 17323: cat confdefs.h >>conftest.$ac_ext ! 17324: cat >>conftest.$ac_ext <<_ACEOF ! 17325: /* end confdefs.h. */ ! 17326: ! 17327: /* Override any gcc2 internal prototype to avoid an error. */ ! 17328: #ifdef __cplusplus ! 17329: extern "C" ! 17330: #endif ! 17331: /* We use char because int might match the return type of a gcc2 ! 17332: builtin and then its argument prototype would still apply. */ ! 17333: char dlopen (); ! 17334: int ! 17335: main () ! 17336: { ! 17337: dlopen (); ! 17338: ; ! 17339: return 0; ! 17340: } ! 17341: _ACEOF ! 17342: rm -f conftest.$ac_objext conftest$ac_exeext ! 17343: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17344: (eval $ac_link) 2>&5 ! 17345: ac_status=$? ! 17346: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17347: (exit $ac_status); } && ! 17348: { ac_try='test -s conftest$ac_exeext' ! 17349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 17350: (eval $ac_try) 2>&5 ! 17351: ac_status=$? ! 17352: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17353: (exit $ac_status); }; }; then ! 17354: ac_cv_lib_dl_dlopen=yes ! 17355: else ! 17356: echo "$as_me: failed program was:" >&5 ! 17357: sed 's/^/| /' conftest.$ac_ext >&5 ! 17358: ! 17359: ac_cv_lib_dl_dlopen=no ! 17360: fi ! 17361: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 17362: LIBS=$ac_check_lib_save_LIBS ! 17363: fi ! 17364: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 17365: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 17366: if test $ac_cv_lib_dl_dlopen = yes; then ! 17367: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ! 17368: else ! 17369: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ! 17370: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 ! 17371: if test "${ac_cv_lib_svld_dlopen+set}" = set; then ! 17372: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17373: else ! 17374: ac_check_lib_save_LIBS=$LIBS ! 17375: LIBS="-lsvld $LIBS" ! 17376: cat >conftest.$ac_ext <<_ACEOF ! 17377: #line $LINENO "configure" ! 17378: /* confdefs.h. */ ! 17379: _ACEOF ! 17380: cat confdefs.h >>conftest.$ac_ext ! 17381: cat >>conftest.$ac_ext <<_ACEOF ! 17382: /* end confdefs.h. */ ! 17383: ! 17384: /* Override any gcc2 internal prototype to avoid an error. */ ! 17385: #ifdef __cplusplus ! 17386: extern "C" ! 17387: #endif ! 17388: /* We use char because int might match the return type of a gcc2 ! 17389: builtin and then its argument prototype would still apply. */ ! 17390: char dlopen (); ! 17391: int ! 17392: main () ! 17393: { ! 17394: dlopen (); ! 17395: ; ! 17396: return 0; ! 17397: } ! 17398: _ACEOF ! 17399: rm -f conftest.$ac_objext conftest$ac_exeext ! 17400: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17401: (eval $ac_link) 2>&5 ! 17402: ac_status=$? ! 17403: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17404: (exit $ac_status); } && ! 17405: { ac_try='test -s conftest$ac_exeext' ! 17406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 17407: (eval $ac_try) 2>&5 ! 17408: ac_status=$? ! 17409: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17410: (exit $ac_status); }; }; then ! 17411: ac_cv_lib_svld_dlopen=yes ! 17412: else ! 17413: echo "$as_me: failed program was:" >&5 ! 17414: sed 's/^/| /' conftest.$ac_ext >&5 ! 17415: ! 17416: ac_cv_lib_svld_dlopen=no ! 17417: fi ! 17418: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 17419: LIBS=$ac_check_lib_save_LIBS ! 17420: fi ! 17421: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ! 17422: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 ! 17423: if test $ac_cv_lib_svld_dlopen = yes; then ! 17424: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ! 17425: else ! 17426: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ! 17427: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 ! 17428: if test "${ac_cv_lib_dld_dld_link+set}" = set; then ! 17429: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17430: else ! 17431: ac_check_lib_save_LIBS=$LIBS ! 17432: LIBS="-ldld $LIBS" ! 17433: cat >conftest.$ac_ext <<_ACEOF ! 17434: #line $LINENO "configure" ! 17435: /* confdefs.h. */ ! 17436: _ACEOF ! 17437: cat confdefs.h >>conftest.$ac_ext ! 17438: cat >>conftest.$ac_ext <<_ACEOF ! 17439: /* end confdefs.h. */ ! 17440: ! 17441: /* Override any gcc2 internal prototype to avoid an error. */ ! 17442: #ifdef __cplusplus ! 17443: extern "C" ! 17444: #endif ! 17445: /* We use char because int might match the return type of a gcc2 ! 17446: builtin and then its argument prototype would still apply. */ ! 17447: char dld_link (); ! 17448: int ! 17449: main () ! 17450: { ! 17451: dld_link (); ! 17452: ; ! 17453: return 0; ! 17454: } ! 17455: _ACEOF ! 17456: rm -f conftest.$ac_objext conftest$ac_exeext ! 17457: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17458: (eval $ac_link) 2>&5 ! 17459: ac_status=$? ! 17460: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17461: (exit $ac_status); } && ! 17462: { ac_try='test -s conftest$ac_exeext' ! 17463: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 17464: (eval $ac_try) 2>&5 ! 17465: ac_status=$? ! 17466: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17467: (exit $ac_status); }; }; then ! 17468: ac_cv_lib_dld_dld_link=yes ! 17469: else ! 17470: echo "$as_me: failed program was:" >&5 ! 17471: sed 's/^/| /' conftest.$ac_ext >&5 ! 17472: ! 17473: ac_cv_lib_dld_dld_link=no ! 17474: fi ! 17475: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 17476: LIBS=$ac_check_lib_save_LIBS ! 17477: fi ! 17478: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ! 17479: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 ! 17480: if test $ac_cv_lib_dld_dld_link = yes; then ! 17481: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" ! 17482: fi ! 17483: ! 17484: ! 17485: fi ! 17486: ! 17487: ! 17488: fi ! 17489: ! 17490: ! 17491: fi ! 17492: ! 17493: ! 17494: fi ! 17495: ! 17496: ! 17497: fi ! 17498: ! 17499: ;; ! 17500: esac ! 17501: ! 17502: if test "x$lt_cv_dlopen" != xno; then ! 17503: enable_dlopen=yes ! 17504: else ! 17505: enable_dlopen=no ! 17506: fi ! 17507: ! 17508: case $lt_cv_dlopen in ! 17509: dlopen) ! 17510: save_CPPFLAGS="$CPPFLAGS" ! 17511: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ! 17512: ! 17513: save_LDFLAGS="$LDFLAGS" ! 17514: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ! 17515: ! 17516: save_LIBS="$LIBS" ! 17517: LIBS="$lt_cv_dlopen_libs $LIBS" ! 17518: ! 17519: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ! 17520: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 ! 17521: if test "${lt_cv_dlopen_self+set}" = set; then ! 17522: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17523: else ! 17524: if test "$cross_compiling" = yes; then : ! 17525: lt_cv_dlopen_self=cross ! 17526: else ! 17527: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 17528: lt_status=$lt_dlunknown ! 17529: cat > conftest.$ac_ext <<EOF ! 17530: #line 17530 "configure" ! 17531: #include "confdefs.h" ! 17532: ! 17533: #if HAVE_DLFCN_H ! 17534: #include <dlfcn.h> ! 17535: #endif ! 17536: ! 17537: #include <stdio.h> ! 17538: ! 17539: #ifdef RTLD_GLOBAL ! 17540: # define LT_DLGLOBAL RTLD_GLOBAL ! 17541: #else ! 17542: # ifdef DL_GLOBAL ! 17543: # define LT_DLGLOBAL DL_GLOBAL ! 17544: # else ! 17545: # define LT_DLGLOBAL 0 ! 17546: # endif ! 17547: #endif ! 17548: ! 17549: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 17550: find out it does not work in some platform. */ ! 17551: #ifndef LT_DLLAZY_OR_NOW ! 17552: # ifdef RTLD_LAZY ! 17553: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 17554: # else ! 17555: # ifdef DL_LAZY ! 17556: # define LT_DLLAZY_OR_NOW DL_LAZY ! 17557: # else ! 17558: # ifdef RTLD_NOW ! 17559: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 17560: # else ! 17561: # ifdef DL_NOW ! 17562: # define LT_DLLAZY_OR_NOW DL_NOW ! 17563: # else ! 17564: # define LT_DLLAZY_OR_NOW 0 ! 17565: # endif ! 17566: # endif ! 17567: # endif ! 17568: # endif ! 17569: #endif ! 17570: ! 17571: #ifdef __cplusplus ! 17572: extern "C" void exit (int); ! 17573: #endif ! 17574: ! 17575: void fnord() { int i=42;} ! 17576: int main () ! 17577: { ! 17578: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 17579: int status = $lt_dlunknown; ! 17580: ! 17581: if (self) ! 17582: { ! 17583: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 17584: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 17585: /* dlclose (self); */ ! 17586: } ! 17587: ! 17588: exit (status); ! 17589: } ! 17590: EOF ! 17591: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17592: (eval $ac_link) 2>&5 ! 17593: ac_status=$? ! 17594: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17595: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 17596: (./conftest; exit; ) 2>/dev/null ! 17597: lt_status=$? ! 17598: case x$lt_status in ! 17599: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ! 17600: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ! 17601: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; ! 17602: esac ! 17603: else : ! 17604: # compilation failed ! 17605: lt_cv_dlopen_self=no ! 17606: fi ! 17607: fi ! 17608: rm -fr conftest* ! 17609: ! 17610: ! 17611: fi ! 17612: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ! 17613: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 ! 17614: ! 17615: if test "x$lt_cv_dlopen_self" = xyes; then ! 17616: LDFLAGS="$LDFLAGS $link_static_flag" ! 17617: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ! 17618: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 ! 17619: if test "${lt_cv_dlopen_self_static+set}" = set; then ! 17620: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 17621: else ! 17622: if test "$cross_compiling" = yes; then : ! 17623: lt_cv_dlopen_self_static=cross ! 17624: else ! 17625: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 17626: lt_status=$lt_dlunknown ! 17627: cat > conftest.$ac_ext <<EOF ! 17628: #line 17628 "configure" ! 17629: #include "confdefs.h" ! 17630: ! 17631: #if HAVE_DLFCN_H ! 17632: #include <dlfcn.h> ! 17633: #endif ! 17634: ! 17635: #include <stdio.h> ! 17636: ! 17637: #ifdef RTLD_GLOBAL ! 17638: # define LT_DLGLOBAL RTLD_GLOBAL ! 17639: #else ! 17640: # ifdef DL_GLOBAL ! 17641: # define LT_DLGLOBAL DL_GLOBAL ! 17642: # else ! 17643: # define LT_DLGLOBAL 0 ! 17644: # endif ! 17645: #endif ! 17646: ! 17647: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 17648: find out it does not work in some platform. */ ! 17649: #ifndef LT_DLLAZY_OR_NOW ! 17650: # ifdef RTLD_LAZY ! 17651: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 17652: # else ! 17653: # ifdef DL_LAZY ! 17654: # define LT_DLLAZY_OR_NOW DL_LAZY ! 17655: # else ! 17656: # ifdef RTLD_NOW ! 17657: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 17658: # else ! 17659: # ifdef DL_NOW ! 17660: # define LT_DLLAZY_OR_NOW DL_NOW ! 17661: # else ! 17662: # define LT_DLLAZY_OR_NOW 0 ! 17663: # endif ! 17664: # endif ! 17665: # endif ! 17666: # endif ! 17667: #endif ! 17668: ! 17669: #ifdef __cplusplus ! 17670: extern "C" void exit (int); ! 17671: #endif ! 17672: ! 17673: void fnord() { int i=42;} ! 17674: int main () ! 17675: { ! 17676: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 17677: int status = $lt_dlunknown; ! 17678: ! 17679: if (self) ! 17680: { ! 17681: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 17682: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 17683: /* dlclose (self); */ ! 17684: } ! 17685: ! 17686: exit (status); ! 17687: } ! 17688: EOF ! 17689: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 17690: (eval $ac_link) 2>&5 ! 17691: ac_status=$? ! 17692: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 17693: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 17694: (./conftest; exit; ) 2>/dev/null ! 17695: lt_status=$? ! 17696: case x$lt_status in ! 17697: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ! 17698: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ! 17699: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; ! 17700: esac ! 17701: else : ! 17702: # compilation failed ! 17703: lt_cv_dlopen_self_static=no ! 17704: fi ! 17705: fi ! 17706: rm -fr conftest* ! 17707: ! 17708: ! 17709: fi ! 17710: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ! 17711: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 ! 17712: fi ! 17713: ! 17714: CPPFLAGS="$save_CPPFLAGS" ! 17715: LDFLAGS="$save_LDFLAGS" ! 17716: LIBS="$save_LIBS" ! 17717: ;; ! 17718: esac ! 17719: ! 17720: case $lt_cv_dlopen_self in ! 17721: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ! 17722: *) enable_dlopen_self=unknown ;; ! 17723: esac ! 17724: ! 17725: case $lt_cv_dlopen_self_static in ! 17726: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ! 17727: *) enable_dlopen_self_static=unknown ;; ! 17728: esac ! 17729: fi ! 17730: ! 17731: ! 17732: # The else clause should only fire when bootstrapping the ! 17733: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 17734: # with your package, and you will get complaints that there are ! 17735: # no rules to generate ltmain.sh. ! 17736: if test -f "$ltmain"; then ! 17737: # See if we are running on zsh, and set the options which allow our commands through ! 17738: # without removal of \ escapes. ! 17739: if test -n "${ZSH_VERSION+set}" ; then ! 17740: setopt NO_GLOB_SUBST ! 17741: fi ! 17742: # Now quote all the things that may contain metacharacters while being ! 17743: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 17744: # variables and quote the copies for generation of the libtool script. ! 17745: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 17746: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 17747: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 17748: deplibs_check_method reload_flag reload_cmds need_locks \ ! 17749: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 17750: lt_cv_sys_global_symbol_to_c_name_address \ ! 17751: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 17752: old_postinstall_cmds old_postuninstall_cmds \ ! 17753: compiler_GCJ \ ! 17754: CC_GCJ \ ! 17755: LD_GCJ \ ! 17756: lt_prog_compiler_wl_GCJ \ ! 17757: lt_prog_compiler_pic_GCJ \ ! 17758: lt_prog_compiler_static_GCJ \ ! 17759: lt_prog_compiler_no_builtin_flag_GCJ \ ! 17760: export_dynamic_flag_spec_GCJ \ ! 17761: thread_safe_flag_spec_GCJ \ ! 17762: whole_archive_flag_spec_GCJ \ ! 17763: enable_shared_with_static_runtimes_GCJ \ ! 17764: old_archive_cmds_GCJ \ ! 17765: old_archive_from_new_cmds_GCJ \ ! 17766: predep_objects_GCJ \ ! 17767: postdep_objects_GCJ \ ! 17768: predeps_GCJ \ ! 17769: postdeps_GCJ \ ! 17770: compiler_lib_search_path_GCJ \ ! 17771: archive_cmds_GCJ \ ! 17772: archive_expsym_cmds_GCJ \ ! 17773: postinstall_cmds_GCJ \ ! 17774: postuninstall_cmds_GCJ \ ! 17775: old_archive_from_expsyms_cmds_GCJ \ ! 17776: allow_undefined_flag_GCJ \ ! 17777: no_undefined_flag_GCJ \ ! 17778: export_symbols_cmds_GCJ \ ! 17779: hardcode_libdir_flag_spec_GCJ \ ! 17780: hardcode_libdir_flag_spec_ld_GCJ \ ! 17781: hardcode_libdir_separator_GCJ \ ! 17782: hardcode_automatic_GCJ \ ! 17783: module_cmds_GCJ \ ! 17784: module_expsym_cmds_GCJ \ ! 17785: lt_cv_prog_compiler_c_o_GCJ \ ! 17786: exclude_expsyms_GCJ \ ! 17787: include_expsyms_GCJ; do ! 17788: ! 17789: case $var in ! 17790: old_archive_cmds_GCJ | \ ! 17791: old_archive_from_new_cmds_GCJ | \ ! 17792: archive_cmds_GCJ | \ ! 17793: archive_expsym_cmds_GCJ | \ ! 17794: module_cmds_GCJ | \ ! 17795: module_expsym_cmds_GCJ | \ ! 17796: old_archive_from_expsyms_cmds_GCJ | \ ! 17797: export_symbols_cmds_GCJ | \ ! 17798: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 17799: postinstall_cmds | postuninstall_cmds | \ ! 17800: old_postinstall_cmds | old_postuninstall_cmds | \ ! 17801: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 17802: # Double-quote double-evaled strings. ! 17803: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 17804: ;; ! 17805: *) ! 17806: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 17807: ;; ! 17808: esac ! 17809: done ! 17810: ! 17811: case $lt_echo in ! 17812: *'\$0 --fallback-echo"') ! 17813: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 17814: ;; ! 17815: esac ! 17816: ! 17817: cfgfile="$ofile" ! 17818: ! 17819: cat <<__EOF__ >> "$cfgfile" ! 17820: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 17821: ! 17822: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 17823: ! 17824: # Shell to use when invoking shell scripts. ! 17825: SHELL=$lt_SHELL ! 17826: ! 17827: # Whether or not to build shared libraries. ! 17828: build_libtool_libs=$enable_shared ! 17829: ! 17830: # Whether or not to build static libraries. ! 17831: build_old_libs=$enable_static ! 17832: ! 17833: # Whether or not to add -lc for building shared libraries. ! 17834: build_libtool_need_lc=$archive_cmds_need_lc_GCJ ! 17835: ! 17836: # Whether or not to disallow shared libs when runtime libs are static ! 17837: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ ! 17838: ! 17839: # Whether or not to optimize for fast installation. ! 17840: fast_install=$enable_fast_install ! 17841: ! 17842: # The host system. ! 17843: host_alias=$host_alias ! 17844: host=$host ! 17845: ! 17846: # An echo program that does not interpret backslashes. ! 17847: echo=$lt_echo ! 17848: ! 17849: # The archiver. ! 17850: AR=$lt_AR ! 17851: AR_FLAGS=$lt_AR_FLAGS ! 17852: ! 17853: # A C compiler. ! 17854: LTCC=$lt_LTCC ! 17855: ! 17856: # A language-specific compiler. ! 17857: CC=$lt_compiler_GCJ ! 17858: ! 17859: # Is the compiler the GNU C compiler? ! 17860: with_gcc=$GCC_GCJ ! 17861: ! 17862: # An ERE matcher. ! 17863: EGREP=$lt_EGREP ! 17864: ! 17865: # The linker used to build libraries. ! 17866: LD=$lt_LD_GCJ ! 17867: ! 17868: # Whether we need hard or soft links. ! 17869: LN_S=$lt_LN_S ! 17870: ! 17871: # A BSD-compatible nm program. ! 17872: NM=$lt_NM ! 17873: ! 17874: # A symbol stripping program ! 17875: STRIP=$STRIP ! 17876: ! 17877: # Used to examine libraries when file_magic_cmd begins "file" ! 17878: MAGIC_CMD=$MAGIC_CMD ! 17879: ! 17880: # Used on cygwin: DLL creation program. ! 17881: DLLTOOL="$DLLTOOL" ! 17882: ! 17883: # Used on cygwin: object dumper. ! 17884: OBJDUMP="$OBJDUMP" ! 17885: ! 17886: # Used on cygwin: assembler. ! 17887: AS="$AS" ! 17888: ! 17889: # The name of the directory that contains temporary libtool files. ! 17890: objdir=$objdir ! 17891: ! 17892: # How to create reloadable object files. ! 17893: reload_flag=$lt_reload_flag ! 17894: reload_cmds=$lt_reload_cmds ! 17895: ! 17896: # How to pass a linker flag through the compiler. ! 17897: wl=$lt_lt_prog_compiler_wl_GCJ ! 17898: ! 17899: # Object file suffix (normally "o"). ! 17900: objext="$ac_objext" ! 17901: ! 17902: # Old archive suffix (normally "a"). ! 17903: libext="$libext" ! 17904: ! 17905: # Shared library suffix (normally ".so"). ! 17906: shrext='$shrext' ! 17907: ! 17908: # Executable file suffix (normally ""). ! 17909: exeext="$exeext" ! 17910: ! 17911: # Additional compiler flags for building library objects. ! 17912: pic_flag=$lt_lt_prog_compiler_pic_GCJ ! 17913: pic_mode=$pic_mode ! 17914: ! 17915: # What is the maximum length of a command? ! 17916: max_cmd_len=$lt_cv_sys_max_cmd_len ! 17917: ! 17918: # Does compiler simultaneously support -c and -o options? ! 17919: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ ! 17920: ! 17921: # Must we lock files when doing compilation ? ! 17922: need_locks=$lt_need_locks ! 17923: ! 17924: # Do we need the lib prefix for modules? ! 17925: need_lib_prefix=$need_lib_prefix ! 17926: ! 17927: # Do we need a version for libraries? ! 17928: need_version=$need_version ! 17929: ! 17930: # Whether dlopen is supported. ! 17931: dlopen_support=$enable_dlopen ! 17932: ! 17933: # Whether dlopen of programs is supported. ! 17934: dlopen_self=$enable_dlopen_self ! 17935: ! 17936: # Whether dlopen of statically linked programs is supported. ! 17937: dlopen_self_static=$enable_dlopen_self_static ! 17938: ! 17939: # Compiler flag to prevent dynamic linking. ! 17940: link_static_flag=$lt_lt_prog_compiler_static_GCJ ! 17941: ! 17942: # Compiler flag to turn off builtin functions. ! 17943: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ ! 17944: ! 17945: # Compiler flag to allow reflexive dlopens. ! 17946: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ ! 17947: ! 17948: # Compiler flag to generate shared objects directly from archives. ! 17949: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ ! 17950: ! 17951: # Compiler flag to generate thread-safe objects. ! 17952: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ ! 17953: ! 17954: # Library versioning type. ! 17955: version_type=$version_type ! 17956: ! 17957: # Format of library name prefix. ! 17958: libname_spec=$lt_libname_spec ! 17959: ! 17960: # List of archive names. First name is the real one, the rest are links. ! 17961: # The last name is the one that the linker finds with -lNAME. ! 17962: library_names_spec=$lt_library_names_spec ! 17963: ! 17964: # The coded name of the library, if different from the real name. ! 17965: soname_spec=$lt_soname_spec ! 17966: ! 17967: # Commands used to build and install an old-style archive. ! 17968: RANLIB=$lt_RANLIB ! 17969: old_archive_cmds=$lt_old_archive_cmds_GCJ ! 17970: old_postinstall_cmds=$lt_old_postinstall_cmds ! 17971: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 17972: ! 17973: # Create an old-style archive from a shared archive. ! 17974: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ ! 17975: ! 17976: # Create a temporary old-style archive to link instead of a shared archive. ! 17977: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ ! 17978: ! 17979: # Commands used to build and install a shared archive. ! 17980: archive_cmds=$lt_archive_cmds_GCJ ! 17981: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ ! 17982: postinstall_cmds=$lt_postinstall_cmds ! 17983: postuninstall_cmds=$lt_postuninstall_cmds ! 17984: ! 17985: # Commands used to build a loadable module (assumed same as above if empty) ! 17986: module_cmds=$lt_module_cmds_GCJ ! 17987: module_expsym_cmds=$lt_module_expsym_cmds_GCJ ! 17988: ! 17989: # Commands to strip libraries. ! 17990: old_striplib=$lt_old_striplib ! 17991: striplib=$lt_striplib ! 17992: ! 17993: # Dependencies to place before the objects being linked to create a ! 17994: # shared library. ! 17995: predep_objects=$lt_predep_objects_GCJ ! 17996: ! 17997: # Dependencies to place after the objects being linked to create a ! 17998: # shared library. ! 17999: postdep_objects=$lt_postdep_objects_GCJ ! 18000: ! 18001: # Dependencies to place before the objects being linked to create a ! 18002: # shared library. ! 18003: predeps=$lt_predeps_GCJ ! 18004: ! 18005: # Dependencies to place after the objects being linked to create a ! 18006: # shared library. ! 18007: postdeps=$lt_postdeps_GCJ ! 18008: ! 18009: # The library search path used internally by the compiler when linking ! 18010: # a shared library. ! 18011: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ ! 18012: ! 18013: # Method to check whether dependent libraries are shared objects. ! 18014: deplibs_check_method=$lt_deplibs_check_method ! 18015: ! 18016: # Command to use when deplibs_check_method == file_magic. ! 18017: file_magic_cmd=$lt_file_magic_cmd ! 18018: ! 18019: # Flag that allows shared libraries with undefined symbols to be built. ! 18020: allow_undefined_flag=$lt_allow_undefined_flag_GCJ ! 18021: ! 18022: # Flag that forces no undefined symbols. ! 18023: no_undefined_flag=$lt_no_undefined_flag_GCJ ! 18024: ! 18025: # Commands used to finish a libtool library installation in a directory. ! 18026: finish_cmds=$lt_finish_cmds ! 18027: ! 18028: # Same as above, but a single script fragment to be evaled but not shown. ! 18029: finish_eval=$lt_finish_eval ! 18030: ! 18031: # Take the output of nm and produce a listing of raw symbols and C names. ! 18032: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 18033: ! 18034: # Transform the output of nm in a proper C declaration ! 18035: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 18036: ! 18037: # Transform the output of nm in a C name address pair ! 18038: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 18039: ! 18040: # This is the shared library runtime path variable. ! 18041: runpath_var=$runpath_var ! 18042: ! 18043: # This is the shared library path variable. ! 18044: shlibpath_var=$shlibpath_var ! 18045: ! 18046: # Is shlibpath searched before the hard-coded library search path? ! 18047: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 18048: ! 18049: # How to hardcode a shared library path into an executable. ! 18050: hardcode_action=$hardcode_action_GCJ ! 18051: ! 18052: # Whether we should hardcode library paths into libraries. ! 18053: hardcode_into_libs=$hardcode_into_libs ! 18054: ! 18055: # Flag to hardcode \$libdir into a binary during linking. ! 18056: # This must work even if \$libdir does not exist. ! 18057: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ ! 18058: ! 18059: # If ld is used when linking, flag to hardcode \$libdir into ! 18060: # a binary during linking. This must work even if \$libdir does ! 18061: # not exist. ! 18062: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ ! 18063: ! 18064: # Whether we need a single -rpath flag with a separated argument. ! 18065: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ ! 18066: ! 18067: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 18068: # resulting binary. ! 18069: hardcode_direct=$hardcode_direct_GCJ ! 18070: ! 18071: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 18072: # resulting binary. ! 18073: hardcode_minus_L=$hardcode_minus_L_GCJ ! 18074: ! 18075: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 18076: # the resulting binary. ! 18077: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ ! 18078: ! 18079: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 18080: # and all subsequent libraries and executables linked against it. ! 18081: hardcode_automatic=$hardcode_automatic_GCJ ! 18082: ! 18083: # Variables whose values should be saved in libtool wrapper scripts and ! 18084: # restored at relink time. ! 18085: variables_saved_for_relink="$variables_saved_for_relink" ! 18086: ! 18087: # Whether libtool must link a program against all its dependency libraries. ! 18088: link_all_deplibs=$link_all_deplibs_GCJ ! 18089: ! 18090: # Compile-time system search path for libraries ! 18091: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 18092: ! 18093: # Run-time system search path for libraries ! 18094: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 18095: ! 18096: # Fix the shell variable \$srcfile for the compiler. ! 18097: fix_srcfile_path="$fix_srcfile_path_GCJ" ! 18098: ! 18099: # Set to yes if exported symbols are required. ! 18100: always_export_symbols=$always_export_symbols_GCJ ! 18101: ! 18102: # The commands to list exported symbols. ! 18103: export_symbols_cmds=$lt_export_symbols_cmds_GCJ ! 18104: ! 18105: # The commands to extract the exported symbol list from a shared archive. ! 18106: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 18107: ! 18108: # Symbols that should not be listed in the preloaded symbols. ! 18109: exclude_expsyms=$lt_exclude_expsyms_GCJ ! 18110: ! 18111: # Symbols that must always be exported. ! 18112: include_expsyms=$lt_include_expsyms_GCJ ! 18113: ! 18114: # ### END LIBTOOL TAG CONFIG: $tagname ! 18115: ! 18116: __EOF__ ! 18117: ! 18118: ! 18119: else ! 18120: # If there is no Makefile yet, we rely on a make rule to execute ! 18121: # `config.status --recheck' to rerun these tests and create the ! 18122: # libtool script then. ! 18123: test -f Makefile && make "$ltmain" ! 18124: fi ! 18125: ! 18126: ! 18127: ac_ext=c ! 18128: ac_cpp='$CPP $CPPFLAGS' ! 18129: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 18130: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 18131: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 18132: ! 18133: CC="$lt_save_CC" ! 18134: ! 18135: else ! 18136: tagname="" ! 18137: fi ! 18138: ;; ! 18139: ! 18140: RC) ! 18141: ! 18142: ! 18143: ! 18144: # Source file extension for RC test sources. ! 18145: ac_ext=rc ! 18146: ! 18147: # Object file extension for compiled RC test sources. ! 18148: objext=o ! 18149: objext_RC=$objext ! 18150: ! 18151: # Code to be used in simple compile tests ! 18152: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' ! 18153: ! 18154: # Code to be used in simple link tests ! 18155: lt_simple_link_test_code="$lt_simple_compile_test_code" ! 18156: ! 18157: # ltmain only uses $CC for tagged configurations so make sure $CC is set. ! 18158: ! 18159: # If no C compiler was specified, use CC. ! 18160: LTCC=${LTCC-"$CC"} ! 18161: ! 18162: # Allow CC to be a program name with arguments. ! 18163: compiler=$CC ! 18164: ! 18165: ! 18166: # Allow CC to be a program name with arguments. ! 18167: lt_save_CC="$CC" ! 18168: CC=${RC-"windres"} ! 18169: compiler=$CC ! 18170: compiler_RC=$CC ! 18171: lt_cv_prog_compiler_c_o_RC=yes ! 18172: ! 18173: # The else clause should only fire when bootstrapping the ! 18174: # libtool distribution, otherwise you forgot to ship ltmain.sh ! 18175: # with your package, and you will get complaints that there are ! 18176: # no rules to generate ltmain.sh. ! 18177: if test -f "$ltmain"; then ! 18178: # See if we are running on zsh, and set the options which allow our commands through ! 18179: # without removal of \ escapes. ! 18180: if test -n "${ZSH_VERSION+set}" ; then ! 18181: setopt NO_GLOB_SUBST ! 18182: fi ! 18183: # Now quote all the things that may contain metacharacters while being ! 18184: # careful not to overquote the AC_SUBSTed values. We take copies of the ! 18185: # variables and quote the copies for generation of the libtool script. ! 18186: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ ! 18187: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ ! 18188: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ ! 18189: deplibs_check_method reload_flag reload_cmds need_locks \ ! 18190: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ ! 18191: lt_cv_sys_global_symbol_to_c_name_address \ ! 18192: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ ! 18193: old_postinstall_cmds old_postuninstall_cmds \ ! 18194: compiler_RC \ ! 18195: CC_RC \ ! 18196: LD_RC \ ! 18197: lt_prog_compiler_wl_RC \ ! 18198: lt_prog_compiler_pic_RC \ ! 18199: lt_prog_compiler_static_RC \ ! 18200: lt_prog_compiler_no_builtin_flag_RC \ ! 18201: export_dynamic_flag_spec_RC \ ! 18202: thread_safe_flag_spec_RC \ ! 18203: whole_archive_flag_spec_RC \ ! 18204: enable_shared_with_static_runtimes_RC \ ! 18205: old_archive_cmds_RC \ ! 18206: old_archive_from_new_cmds_RC \ ! 18207: predep_objects_RC \ ! 18208: postdep_objects_RC \ ! 18209: predeps_RC \ ! 18210: postdeps_RC \ ! 18211: compiler_lib_search_path_RC \ ! 18212: archive_cmds_RC \ ! 18213: archive_expsym_cmds_RC \ ! 18214: postinstall_cmds_RC \ ! 18215: postuninstall_cmds_RC \ ! 18216: old_archive_from_expsyms_cmds_RC \ ! 18217: allow_undefined_flag_RC \ ! 18218: no_undefined_flag_RC \ ! 18219: export_symbols_cmds_RC \ ! 18220: hardcode_libdir_flag_spec_RC \ ! 18221: hardcode_libdir_flag_spec_ld_RC \ ! 18222: hardcode_libdir_separator_RC \ ! 18223: hardcode_automatic_RC \ ! 18224: module_cmds_RC \ ! 18225: module_expsym_cmds_RC \ ! 18226: lt_cv_prog_compiler_c_o_RC \ ! 18227: exclude_expsyms_RC \ ! 18228: include_expsyms_RC; do ! 18229: ! 18230: case $var in ! 18231: old_archive_cmds_RC | \ ! 18232: old_archive_from_new_cmds_RC | \ ! 18233: archive_cmds_RC | \ ! 18234: archive_expsym_cmds_RC | \ ! 18235: module_cmds_RC | \ ! 18236: module_expsym_cmds_RC | \ ! 18237: old_archive_from_expsyms_cmds_RC | \ ! 18238: export_symbols_cmds_RC | \ ! 18239: extract_expsyms_cmds | reload_cmds | finish_cmds | \ ! 18240: postinstall_cmds | postuninstall_cmds | \ ! 18241: old_postinstall_cmds | old_postuninstall_cmds | \ ! 18242: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) ! 18243: # Double-quote double-evaled strings. ! 18244: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ! 18245: ;; ! 18246: *) ! 18247: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ! 18248: ;; ! 18249: esac ! 18250: done ! 18251: ! 18252: case $lt_echo in ! 18253: *'\$0 --fallback-echo"') ! 18254: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ! 18255: ;; ! 18256: esac ! 18257: ! 18258: cfgfile="$ofile" ! 18259: ! 18260: cat <<__EOF__ >> "$cfgfile" ! 18261: # ### BEGIN LIBTOOL TAG CONFIG: $tagname ! 18262: ! 18263: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 18264: ! 18265: # Shell to use when invoking shell scripts. ! 18266: SHELL=$lt_SHELL ! 18267: ! 18268: # Whether or not to build shared libraries. ! 18269: build_libtool_libs=$enable_shared ! 18270: ! 18271: # Whether or not to build static libraries. ! 18272: build_old_libs=$enable_static ! 18273: ! 18274: # Whether or not to add -lc for building shared libraries. ! 18275: build_libtool_need_lc=$archive_cmds_need_lc_RC ! 18276: ! 18277: # Whether or not to disallow shared libs when runtime libs are static ! 18278: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC ! 18279: ! 18280: # Whether or not to optimize for fast installation. ! 18281: fast_install=$enable_fast_install ! 18282: ! 18283: # The host system. ! 18284: host_alias=$host_alias ! 18285: host=$host ! 18286: ! 18287: # An echo program that does not interpret backslashes. ! 18288: echo=$lt_echo ! 18289: ! 18290: # The archiver. ! 18291: AR=$lt_AR ! 18292: AR_FLAGS=$lt_AR_FLAGS ! 18293: ! 18294: # A C compiler. ! 18295: LTCC=$lt_LTCC ! 18296: ! 18297: # A language-specific compiler. ! 18298: CC=$lt_compiler_RC ! 18299: ! 18300: # Is the compiler the GNU C compiler? ! 18301: with_gcc=$GCC_RC ! 18302: ! 18303: # An ERE matcher. ! 18304: EGREP=$lt_EGREP ! 18305: ! 18306: # The linker used to build libraries. ! 18307: LD=$lt_LD_RC ! 18308: ! 18309: # Whether we need hard or soft links. ! 18310: LN_S=$lt_LN_S ! 18311: ! 18312: # A BSD-compatible nm program. ! 18313: NM=$lt_NM ! 18314: ! 18315: # A symbol stripping program ! 18316: STRIP=$STRIP ! 18317: ! 18318: # Used to examine libraries when file_magic_cmd begins "file" ! 18319: MAGIC_CMD=$MAGIC_CMD ! 18320: ! 18321: # Used on cygwin: DLL creation program. ! 18322: DLLTOOL="$DLLTOOL" ! 18323: ! 18324: # Used on cygwin: object dumper. ! 18325: OBJDUMP="$OBJDUMP" ! 18326: ! 18327: # Used on cygwin: assembler. ! 18328: AS="$AS" ! 18329: ! 18330: # The name of the directory that contains temporary libtool files. ! 18331: objdir=$objdir ! 18332: ! 18333: # How to create reloadable object files. ! 18334: reload_flag=$lt_reload_flag ! 18335: reload_cmds=$lt_reload_cmds ! 18336: ! 18337: # How to pass a linker flag through the compiler. ! 18338: wl=$lt_lt_prog_compiler_wl_RC ! 18339: ! 18340: # Object file suffix (normally "o"). ! 18341: objext="$ac_objext" ! 18342: ! 18343: # Old archive suffix (normally "a"). ! 18344: libext="$libext" ! 18345: ! 18346: # Shared library suffix (normally ".so"). ! 18347: shrext='$shrext' ! 18348: ! 18349: # Executable file suffix (normally ""). ! 18350: exeext="$exeext" ! 18351: ! 18352: # Additional compiler flags for building library objects. ! 18353: pic_flag=$lt_lt_prog_compiler_pic_RC ! 18354: pic_mode=$pic_mode ! 18355: ! 18356: # What is the maximum length of a command? ! 18357: max_cmd_len=$lt_cv_sys_max_cmd_len ! 18358: ! 18359: # Does compiler simultaneously support -c and -o options? ! 18360: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC ! 18361: ! 18362: # Must we lock files when doing compilation ? ! 18363: need_locks=$lt_need_locks ! 18364: ! 18365: # Do we need the lib prefix for modules? ! 18366: need_lib_prefix=$need_lib_prefix ! 18367: ! 18368: # Do we need a version for libraries? ! 18369: need_version=$need_version ! 18370: ! 18371: # Whether dlopen is supported. ! 18372: dlopen_support=$enable_dlopen ! 18373: ! 18374: # Whether dlopen of programs is supported. ! 18375: dlopen_self=$enable_dlopen_self ! 18376: ! 18377: # Whether dlopen of statically linked programs is supported. ! 18378: dlopen_self_static=$enable_dlopen_self_static ! 18379: ! 18380: # Compiler flag to prevent dynamic linking. ! 18381: link_static_flag=$lt_lt_prog_compiler_static_RC ! 18382: ! 18383: # Compiler flag to turn off builtin functions. ! 18384: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC ! 18385: ! 18386: # Compiler flag to allow reflexive dlopens. ! 18387: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC ! 18388: ! 18389: # Compiler flag to generate shared objects directly from archives. ! 18390: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC ! 18391: ! 18392: # Compiler flag to generate thread-safe objects. ! 18393: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC ! 18394: ! 18395: # Library versioning type. ! 18396: version_type=$version_type ! 18397: ! 18398: # Format of library name prefix. ! 18399: libname_spec=$lt_libname_spec ! 18400: ! 18401: # List of archive names. First name is the real one, the rest are links. ! 18402: # The last name is the one that the linker finds with -lNAME. ! 18403: library_names_spec=$lt_library_names_spec ! 18404: ! 18405: # The coded name of the library, if different from the real name. ! 18406: soname_spec=$lt_soname_spec ! 18407: ! 18408: # Commands used to build and install an old-style archive. ! 18409: RANLIB=$lt_RANLIB ! 18410: old_archive_cmds=$lt_old_archive_cmds_RC ! 18411: old_postinstall_cmds=$lt_old_postinstall_cmds ! 18412: old_postuninstall_cmds=$lt_old_postuninstall_cmds ! 18413: ! 18414: # Create an old-style archive from a shared archive. ! 18415: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC ! 18416: ! 18417: # Create a temporary old-style archive to link instead of a shared archive. ! 18418: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC ! 18419: ! 18420: # Commands used to build and install a shared archive. ! 18421: archive_cmds=$lt_archive_cmds_RC ! 18422: archive_expsym_cmds=$lt_archive_expsym_cmds_RC ! 18423: postinstall_cmds=$lt_postinstall_cmds ! 18424: postuninstall_cmds=$lt_postuninstall_cmds ! 18425: ! 18426: # Commands used to build a loadable module (assumed same as above if empty) ! 18427: module_cmds=$lt_module_cmds_RC ! 18428: module_expsym_cmds=$lt_module_expsym_cmds_RC ! 18429: ! 18430: # Commands to strip libraries. ! 18431: old_striplib=$lt_old_striplib ! 18432: striplib=$lt_striplib ! 18433: ! 18434: # Dependencies to place before the objects being linked to create a ! 18435: # shared library. ! 18436: predep_objects=$lt_predep_objects_RC ! 18437: ! 18438: # Dependencies to place after the objects being linked to create a ! 18439: # shared library. ! 18440: postdep_objects=$lt_postdep_objects_RC ! 18441: ! 18442: # Dependencies to place before the objects being linked to create a ! 18443: # shared library. ! 18444: predeps=$lt_predeps_RC ! 18445: ! 18446: # Dependencies to place after the objects being linked to create a ! 18447: # shared library. ! 18448: postdeps=$lt_postdeps_RC ! 18449: ! 18450: # The library search path used internally by the compiler when linking ! 18451: # a shared library. ! 18452: compiler_lib_search_path=$lt_compiler_lib_search_path_RC ! 18453: ! 18454: # Method to check whether dependent libraries are shared objects. ! 18455: deplibs_check_method=$lt_deplibs_check_method ! 18456: ! 18457: # Command to use when deplibs_check_method == file_magic. ! 18458: file_magic_cmd=$lt_file_magic_cmd ! 18459: ! 18460: # Flag that allows shared libraries with undefined symbols to be built. ! 18461: allow_undefined_flag=$lt_allow_undefined_flag_RC ! 18462: ! 18463: # Flag that forces no undefined symbols. ! 18464: no_undefined_flag=$lt_no_undefined_flag_RC ! 18465: ! 18466: # Commands used to finish a libtool library installation in a directory. ! 18467: finish_cmds=$lt_finish_cmds ! 18468: ! 18469: # Same as above, but a single script fragment to be evaled but not shown. ! 18470: finish_eval=$lt_finish_eval ! 18471: ! 18472: # Take the output of nm and produce a listing of raw symbols and C names. ! 18473: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ! 18474: ! 18475: # Transform the output of nm in a proper C declaration ! 18476: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ! 18477: ! 18478: # Transform the output of nm in a C name address pair ! 18479: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ! 18480: ! 18481: # This is the shared library runtime path variable. ! 18482: runpath_var=$runpath_var ! 18483: ! 18484: # This is the shared library path variable. ! 18485: shlibpath_var=$shlibpath_var ! 18486: ! 18487: # Is shlibpath searched before the hard-coded library search path? ! 18488: shlibpath_overrides_runpath=$shlibpath_overrides_runpath ! 18489: ! 18490: # How to hardcode a shared library path into an executable. ! 18491: hardcode_action=$hardcode_action_RC ! 18492: ! 18493: # Whether we should hardcode library paths into libraries. ! 18494: hardcode_into_libs=$hardcode_into_libs ! 18495: ! 18496: # Flag to hardcode \$libdir into a binary during linking. ! 18497: # This must work even if \$libdir does not exist. ! 18498: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC ! 18499: ! 18500: # If ld is used when linking, flag to hardcode \$libdir into ! 18501: # a binary during linking. This must work even if \$libdir does ! 18502: # not exist. ! 18503: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC ! 18504: ! 18505: # Whether we need a single -rpath flag with a separated argument. ! 18506: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC ! 18507: ! 18508: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the ! 18509: # resulting binary. ! 18510: hardcode_direct=$hardcode_direct_RC ! 18511: ! 18512: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the ! 18513: # resulting binary. ! 18514: hardcode_minus_L=$hardcode_minus_L_RC ! 18515: ! 18516: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into ! 18517: # the resulting binary. ! 18518: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC ! 18519: ! 18520: # Set to yes if building a shared library automatically hardcodes DIR into the library ! 18521: # and all subsequent libraries and executables linked against it. ! 18522: hardcode_automatic=$hardcode_automatic_RC ! 18523: ! 18524: # Variables whose values should be saved in libtool wrapper scripts and ! 18525: # restored at relink time. ! 18526: variables_saved_for_relink="$variables_saved_for_relink" ! 18527: ! 18528: # Whether libtool must link a program against all its dependency libraries. ! 18529: link_all_deplibs=$link_all_deplibs_RC ! 18530: ! 18531: # Compile-time system search path for libraries ! 18532: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ! 18533: ! 18534: # Run-time system search path for libraries ! 18535: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ! 18536: ! 18537: # Fix the shell variable \$srcfile for the compiler. ! 18538: fix_srcfile_path="$fix_srcfile_path_RC" ! 18539: ! 18540: # Set to yes if exported symbols are required. ! 18541: always_export_symbols=$always_export_symbols_RC ! 18542: ! 18543: # The commands to list exported symbols. ! 18544: export_symbols_cmds=$lt_export_symbols_cmds_RC ! 18545: ! 18546: # The commands to extract the exported symbol list from a shared archive. ! 18547: extract_expsyms_cmds=$lt_extract_expsyms_cmds ! 18548: ! 18549: # Symbols that should not be listed in the preloaded symbols. ! 18550: exclude_expsyms=$lt_exclude_expsyms_RC ! 18551: ! 18552: # Symbols that must always be exported. ! 18553: include_expsyms=$lt_include_expsyms_RC ! 18554: ! 18555: # ### END LIBTOOL TAG CONFIG: $tagname ! 18556: ! 18557: __EOF__ ! 18558: ! 18559: ! 18560: else ! 18561: # If there is no Makefile yet, we rely on a make rule to execute ! 18562: # `config.status --recheck' to rerun these tests and create the ! 18563: # libtool script then. ! 18564: test -f Makefile && make "$ltmain" ! 18565: fi ! 18566: ! 18567: ! 18568: ac_ext=c ! 18569: ac_cpp='$CPP $CPPFLAGS' ! 18570: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 18571: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 18572: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 18573: ! 18574: CC="$lt_save_CC" ! 18575: ! 18576: ;; ! 18577: ! 18578: *) ! 18579: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 ! 18580: echo "$as_me: error: Unsupported tag name: $tagname" >&2;} ! 18581: { (exit 1); exit 1; }; } ! 18582: ;; ! 18583: esac ! 18584: ! 18585: # Append the new tag name to the list of available tags. ! 18586: if test -n "$tagname" ; then ! 18587: available_tags="$available_tags $tagname" ! 18588: fi ! 18589: fi ! 18590: done ! 18591: IFS="$lt_save_ifs" ! 18592: ! 18593: # Now substitute the updated list of available tags. ! 18594: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then ! 18595: mv "${ofile}T" "$ofile" ! 18596: chmod +x "$ofile" ! 18597: else ! 18598: rm -f "${ofile}T" ! 18599: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 ! 18600: echo "$as_me: error: unable to update list of available tagged configurations." >&2;} ! 18601: { (exit 1); exit 1; }; } ! 18602: fi ! 18603: fi ! 18604: ! 18605: ! 18606: ! 18607: # This can be used to rebuild libtool when needed ! 18608: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ! 18609: ! 18610: # Always use our own libtool. ! 18611: LIBTOOL='$(SHELL) $(top_builddir)/libtool' ! 18612: ! 18613: # Prevent multiple expansion ! 18614: ! 18615: ! 18616: ! 18617: ! 18618: ! 18619: ! 18620: ! 18621: ! 18622: ! 18623: ! 18624: ! 18625: ! 18626: ! 18627: ! 18628: ! 18629: ! 18630: ! 18631: ! 18632: ! 18633: ! 18634: ! 18635: ! 18636: ! 18637: ! 18638: ! 18639: ! 18640: ! 18641: ac_header_dirent=no ! 18642: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do ! 18643: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` ! 18644: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 ! 18645: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 ! 18646: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 18647: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18648: else ! 18649: cat >conftest.$ac_ext <<_ACEOF ! 18650: #line $LINENO "configure" ! 18651: /* confdefs.h. */ ! 18652: _ACEOF ! 18653: cat confdefs.h >>conftest.$ac_ext ! 18654: cat >>conftest.$ac_ext <<_ACEOF ! 18655: /* end confdefs.h. */ ! 18656: #include <sys/types.h> ! 18657: #include <$ac_hdr> ! 18658: ! 18659: int ! 18660: main () ! 18661: { ! 18662: if ((DIR *) 0) ! 18663: return 0; ! 18664: ; ! 18665: return 0; ! 18666: } ! 18667: _ACEOF ! 18668: rm -f conftest.$ac_objext ! 18669: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 18670: (eval $ac_compile) 2>&5 ! 18671: ac_status=$? ! 18672: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18673: (exit $ac_status); } && ! 18674: { ac_try='test -s conftest.$ac_objext' ! 18675: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 18676: (eval $ac_try) 2>&5 ! 18677: ac_status=$? ! 18678: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18679: (exit $ac_status); }; }; then ! 18680: eval "$as_ac_Header=yes" ! 18681: else ! 18682: echo "$as_me: failed program was:" >&5 ! 18683: sed 's/^/| /' conftest.$ac_ext >&5 ! 18684: ! 18685: eval "$as_ac_Header=no" ! 18686: fi ! 18687: rm -f conftest.$ac_objext conftest.$ac_ext ! 18688: fi ! 18689: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 18690: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 18691: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 18692: cat >>confdefs.h <<_ACEOF ! 18693: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 ! 18694: _ACEOF ! 18695: ! 18696: ac_header_dirent=$ac_hdr; break ! 18697: fi ! 18698: ! 18699: done ! 18700: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. ! 18701: if test $ac_header_dirent = dirent.h; then ! 18702: echo "$as_me:$LINENO: checking for library containing opendir" >&5 ! 18703: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 ! 18704: if test "${ac_cv_search_opendir+set}" = set; then ! 18705: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18706: else ! 18707: ac_func_search_save_LIBS=$LIBS ! 18708: ac_cv_search_opendir=no ! 18709: cat >conftest.$ac_ext <<_ACEOF ! 18710: #line $LINENO "configure" ! 18711: /* confdefs.h. */ ! 18712: _ACEOF ! 18713: cat confdefs.h >>conftest.$ac_ext ! 18714: cat >>conftest.$ac_ext <<_ACEOF ! 18715: /* end confdefs.h. */ ! 18716: ! 18717: /* Override any gcc2 internal prototype to avoid an error. */ ! 18718: #ifdef __cplusplus ! 18719: extern "C" ! 18720: #endif ! 18721: /* We use char because int might match the return type of a gcc2 ! 18722: builtin and then its argument prototype would still apply. */ ! 18723: char opendir (); ! 18724: int ! 18725: main () ! 18726: { ! 18727: opendir (); ! 18728: ; ! 18729: return 0; ! 18730: } ! 18731: _ACEOF ! 18732: rm -f conftest.$ac_objext conftest$ac_exeext ! 18733: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 18734: (eval $ac_link) 2>&5 ! 18735: ac_status=$? ! 18736: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18737: (exit $ac_status); } && ! 18738: { ac_try='test -s conftest$ac_exeext' ! 18739: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 18740: (eval $ac_try) 2>&5 ! 18741: ac_status=$? ! 18742: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18743: (exit $ac_status); }; }; then ! 18744: ac_cv_search_opendir="none required" ! 18745: else ! 18746: echo "$as_me: failed program was:" >&5 ! 18747: sed 's/^/| /' conftest.$ac_ext >&5 ! 18748: ! 18749: fi ! 18750: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 18751: if test "$ac_cv_search_opendir" = no; then ! 18752: for ac_lib in dir; do ! 18753: LIBS="-l$ac_lib $ac_func_search_save_LIBS" ! 18754: cat >conftest.$ac_ext <<_ACEOF ! 18755: #line $LINENO "configure" ! 18756: /* confdefs.h. */ ! 18757: _ACEOF ! 18758: cat confdefs.h >>conftest.$ac_ext ! 18759: cat >>conftest.$ac_ext <<_ACEOF ! 18760: /* end confdefs.h. */ ! 18761: ! 18762: /* Override any gcc2 internal prototype to avoid an error. */ ! 18763: #ifdef __cplusplus ! 18764: extern "C" ! 18765: #endif ! 18766: /* We use char because int might match the return type of a gcc2 ! 18767: builtin and then its argument prototype would still apply. */ ! 18768: char opendir (); ! 18769: int ! 18770: main () ! 18771: { ! 18772: opendir (); ! 18773: ; ! 18774: return 0; ! 18775: } ! 18776: _ACEOF ! 18777: rm -f conftest.$ac_objext conftest$ac_exeext ! 18778: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 18779: (eval $ac_link) 2>&5 ! 18780: ac_status=$? ! 18781: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18782: (exit $ac_status); } && ! 18783: { ac_try='test -s conftest$ac_exeext' ! 18784: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 18785: (eval $ac_try) 2>&5 ! 18786: ac_status=$? ! 18787: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18788: (exit $ac_status); }; }; then ! 18789: ac_cv_search_opendir="-l$ac_lib" ! 18790: break ! 18791: else ! 18792: echo "$as_me: failed program was:" >&5 ! 18793: sed 's/^/| /' conftest.$ac_ext >&5 ! 18794: ! 18795: fi ! 18796: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 18797: done ! 18798: fi ! 18799: LIBS=$ac_func_search_save_LIBS ! 18800: fi ! 18801: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 ! 18802: echo "${ECHO_T}$ac_cv_search_opendir" >&6 ! 18803: if test "$ac_cv_search_opendir" != no; then ! 18804: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" ! 18805: ! 18806: fi ! 18807: ! 18808: else ! 18809: echo "$as_me:$LINENO: checking for library containing opendir" >&5 ! 18810: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 ! 18811: if test "${ac_cv_search_opendir+set}" = set; then ! 18812: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18813: else ! 18814: ac_func_search_save_LIBS=$LIBS ! 18815: ac_cv_search_opendir=no ! 18816: cat >conftest.$ac_ext <<_ACEOF ! 18817: #line $LINENO "configure" ! 18818: /* confdefs.h. */ ! 18819: _ACEOF ! 18820: cat confdefs.h >>conftest.$ac_ext ! 18821: cat >>conftest.$ac_ext <<_ACEOF ! 18822: /* end confdefs.h. */ ! 18823: ! 18824: /* Override any gcc2 internal prototype to avoid an error. */ ! 18825: #ifdef __cplusplus ! 18826: extern "C" ! 18827: #endif ! 18828: /* We use char because int might match the return type of a gcc2 ! 18829: builtin and then its argument prototype would still apply. */ ! 18830: char opendir (); ! 18831: int ! 18832: main () ! 18833: { ! 18834: opendir (); ! 18835: ; ! 18836: return 0; ! 18837: } ! 18838: _ACEOF ! 18839: rm -f conftest.$ac_objext conftest$ac_exeext ! 18840: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 18841: (eval $ac_link) 2>&5 ! 18842: ac_status=$? ! 18843: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18844: (exit $ac_status); } && ! 18845: { ac_try='test -s conftest$ac_exeext' ! 18846: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 18847: (eval $ac_try) 2>&5 ! 18848: ac_status=$? ! 18849: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18850: (exit $ac_status); }; }; then ! 18851: ac_cv_search_opendir="none required" ! 18852: else ! 18853: echo "$as_me: failed program was:" >&5 ! 18854: sed 's/^/| /' conftest.$ac_ext >&5 ! 18855: ! 18856: fi ! 18857: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 18858: if test "$ac_cv_search_opendir" = no; then ! 18859: for ac_lib in x; do ! 18860: LIBS="-l$ac_lib $ac_func_search_save_LIBS" ! 18861: cat >conftest.$ac_ext <<_ACEOF ! 18862: #line $LINENO "configure" ! 18863: /* confdefs.h. */ ! 18864: _ACEOF ! 18865: cat confdefs.h >>conftest.$ac_ext ! 18866: cat >>conftest.$ac_ext <<_ACEOF ! 18867: /* end confdefs.h. */ ! 18868: ! 18869: /* Override any gcc2 internal prototype to avoid an error. */ ! 18870: #ifdef __cplusplus ! 18871: extern "C" ! 18872: #endif ! 18873: /* We use char because int might match the return type of a gcc2 ! 18874: builtin and then its argument prototype would still apply. */ ! 18875: char opendir (); ! 18876: int ! 18877: main () ! 18878: { ! 18879: opendir (); ! 18880: ; ! 18881: return 0; ! 18882: } ! 18883: _ACEOF ! 18884: rm -f conftest.$ac_objext conftest$ac_exeext ! 18885: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 18886: (eval $ac_link) 2>&5 ! 18887: ac_status=$? ! 18888: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18889: (exit $ac_status); } && ! 18890: { ac_try='test -s conftest$ac_exeext' ! 18891: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 18892: (eval $ac_try) 2>&5 ! 18893: ac_status=$? ! 18894: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 18895: (exit $ac_status); }; }; then ! 18896: ac_cv_search_opendir="-l$ac_lib" ! 18897: break ! 18898: else ! 18899: echo "$as_me: failed program was:" >&5 ! 18900: sed 's/^/| /' conftest.$ac_ext >&5 ! 18901: ! 18902: fi ! 18903: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 18904: done ! 18905: fi ! 18906: LIBS=$ac_func_search_save_LIBS ! 18907: fi ! 18908: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 ! 18909: echo "${ECHO_T}$ac_cv_search_opendir" >&6 ! 18910: if test "$ac_cv_search_opendir" != no; then ! 18911: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" ! 18912: ! 18913: fi ! 18914: ! 18915: fi ! 18916: ! 18917: # Check whether --enable-ltdl-install or --disable-ltdl-install was given. ! 18918: if test "${enable_ltdl_install+set}" = set; then ! 18919: enableval="$enable_ltdl_install" ! 18920: ! 18921: fi; ! 18922: ! 18923: ! 18924: ! 18925: if test x"${enable_ltdl_install-no}" != xno; then ! 18926: INSTALL_LTDL_TRUE= ! 18927: INSTALL_LTDL_FALSE='#' ! 18928: else ! 18929: INSTALL_LTDL_TRUE='#' ! 18930: INSTALL_LTDL_FALSE= ! 18931: fi ! 18932: ! 18933: ! 18934: ! 18935: if test x"${enable_ltdl_convenience-no}" != xno; then ! 18936: CONVENIENCE_LTDL_TRUE= ! 18937: CONVENIENCE_LTDL_FALSE='#' ! 18938: else ! 18939: CONVENIENCE_LTDL_TRUE='#' ! 18940: CONVENIENCE_LTDL_FALSE= ! 18941: fi ! 18942: ! 18943: ! 18944: ! 18945: echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 ! 18946: echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 ! 18947: if test "${libltdl_cv_shlibext+set}" = set; then ! 18948: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18949: else ! 18950: ! 18951: module=yes ! 18952: eval libltdl_cv_shlibext=$shrext ! 18953: ! 18954: fi ! 18955: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 ! 18956: echo "${ECHO_T}$libltdl_cv_shlibext" >&6 ! 18957: if test -n "$libltdl_cv_shlibext"; then ! 18958: ! 18959: cat >>confdefs.h <<_ACEOF ! 18960: #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" ! 18961: _ACEOF ! 18962: ! 18963: fi ! 18964: ! 18965: ! 18966: echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 ! 18967: echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 ! 18968: if test "${libltdl_cv_shlibpath_var+set}" = set; then ! 18969: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18970: else ! 18971: libltdl_cv_shlibpath_var="$shlibpath_var" ! 18972: fi ! 18973: echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 ! 18974: echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 ! 18975: if test -n "$libltdl_cv_shlibpath_var"; then ! 18976: ! 18977: cat >>confdefs.h <<_ACEOF ! 18978: #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" ! 18979: _ACEOF ! 18980: ! 18981: fi ! 18982: ! 18983: ! 18984: echo "$as_me:$LINENO: checking for the default library search path" >&5 ! 18985: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 ! 18986: if test "${libltdl_cv_sys_search_path+set}" = set; then ! 18987: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 18988: else ! 18989: libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" ! 18990: fi ! 18991: echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 ! 18992: echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 ! 18993: if test -n "$libltdl_cv_sys_search_path"; then ! 18994: sys_search_path= ! 18995: for dir in $libltdl_cv_sys_search_path; do ! 18996: if test -z "$sys_search_path"; then ! 18997: sys_search_path="$dir" ! 18998: else ! 18999: sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" ! 19000: fi ! 19001: done ! 19002: ! 19003: cat >>confdefs.h <<_ACEOF ! 19004: #define LTDL_SYSSEARCHPATH "$sys_search_path" ! 19005: _ACEOF ! 19006: ! 19007: fi ! 19008: ! 19009: echo "$as_me:$LINENO: checking for objdir" >&5 ! 19010: echo $ECHO_N "checking for objdir... $ECHO_C" >&6 ! 19011: if test "${libltdl_cv_objdir+set}" = set; then ! 19012: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19013: else ! 19014: libltdl_cv_objdir="$objdir" ! 19015: if test -n "$objdir"; then ! 19016: : ! 19017: else ! 19018: rm -f .libs 2>/dev/null ! 19019: mkdir .libs 2>/dev/null ! 19020: if test -d .libs; then ! 19021: libltdl_cv_objdir=.libs ! 19022: else ! 19023: # MS-DOS does not allow filenames that begin with a dot. ! 19024: libltdl_cv_objdir=_libs ! 19025: fi ! 19026: rmdir .libs 2>/dev/null ! 19027: fi ! 19028: ! 19029: fi ! 19030: echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 ! 19031: echo "${ECHO_T}$libltdl_cv_objdir" >&6 ! 19032: ! 19033: cat >>confdefs.h <<_ACEOF ! 19034: #define LTDL_OBJDIR "$libltdl_cv_objdir/" ! 19035: _ACEOF ! 19036: ! 19037: ! 19038: ! 19039: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 ! 19040: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 ! 19041: if test "${libltdl_cv_preloaded_symbols+set}" = set; then ! 19042: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19043: else ! 19044: if test -n "$lt_cv_sys_global_symbol_pipe"; then ! 19045: libltdl_cv_preloaded_symbols=yes ! 19046: else ! 19047: libltdl_cv_preloaded_symbols=no ! 19048: fi ! 19049: ! 19050: fi ! 19051: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 ! 19052: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 ! 19053: if test x"$libltdl_cv_preloaded_symbols" = xyes; then ! 19054: ! 19055: cat >>confdefs.h <<\_ACEOF ! 19056: #define HAVE_PRELOADED_SYMBOLS 1 ! 19057: _ACEOF ! 19058: ! 19059: fi ! 19060: ! 19061: LIBADD_DL= ! 19062: ! 19063: ac_ext=c ! 19064: ac_cpp='$CPP $CPPFLAGS' ! 19065: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 19066: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 19067: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 19068: ! 19069: ! 19070: echo "$as_me:$LINENO: checking for shl_load" >&5 ! 19071: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 ! 19072: if test "${ac_cv_func_shl_load+set}" = set; then ! 19073: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19074: else ! 19075: cat >conftest.$ac_ext <<_ACEOF ! 19076: #line $LINENO "configure" ! 19077: /* confdefs.h. */ ! 19078: _ACEOF ! 19079: cat confdefs.h >>conftest.$ac_ext ! 19080: cat >>conftest.$ac_ext <<_ACEOF ! 19081: /* end confdefs.h. */ ! 19082: /* System header to define __stub macros and hopefully few prototypes, ! 19083: which can conflict with char shl_load (); below. ! 19084: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 19085: <limits.h> exists even on freestanding compilers. */ ! 19086: #ifdef __STDC__ ! 19087: # include <limits.h> ! 19088: #else ! 19089: # include <assert.h> ! 19090: #endif ! 19091: /* Override any gcc2 internal prototype to avoid an error. */ ! 19092: #ifdef __cplusplus ! 19093: extern "C" ! 19094: { ! 19095: #endif ! 19096: /* We use char because int might match the return type of a gcc2 ! 19097: builtin and then its argument prototype would still apply. */ ! 19098: char shl_load (); ! 19099: /* The GNU C library defines this for functions which it implements ! 19100: to always fail with ENOSYS. Some functions are actually named ! 19101: something starting with __ and the normal name is an alias. */ ! 19102: #if defined (__stub_shl_load) || defined (__stub___shl_load) ! 19103: choke me ! 19104: #else ! 19105: char (*f) () = shl_load; ! 19106: #endif ! 19107: #ifdef __cplusplus ! 19108: } ! 19109: #endif ! 19110: ! 19111: int ! 19112: main () ! 19113: { ! 19114: return f != shl_load; ! 19115: ; ! 19116: return 0; ! 19117: } ! 19118: _ACEOF ! 19119: rm -f conftest.$ac_objext conftest$ac_exeext ! 19120: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19121: (eval $ac_link) 2>&5 ! 19122: ac_status=$? ! 19123: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19124: (exit $ac_status); } && ! 19125: { ac_try='test -s conftest$ac_exeext' ! 19126: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19127: (eval $ac_try) 2>&5 ! 19128: ac_status=$? ! 19129: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19130: (exit $ac_status); }; }; then ! 19131: ac_cv_func_shl_load=yes ! 19132: else ! 19133: echo "$as_me: failed program was:" >&5 ! 19134: sed 's/^/| /' conftest.$ac_ext >&5 ! 19135: ! 19136: ac_cv_func_shl_load=no ! 19137: fi ! 19138: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19139: fi ! 19140: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ! 19141: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 ! 19142: if test $ac_cv_func_shl_load = yes; then ! 19143: ! 19144: cat >>confdefs.h <<\_ACEOF ! 19145: #define HAVE_SHL_LOAD 1 ! 19146: _ACEOF ! 19147: ! 19148: else ! 19149: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ! 19150: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 ! 19151: if test "${ac_cv_lib_dld_shl_load+set}" = set; then ! 19152: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19153: else ! 19154: ac_check_lib_save_LIBS=$LIBS ! 19155: LIBS="-ldld $LIBS" ! 19156: cat >conftest.$ac_ext <<_ACEOF ! 19157: #line $LINENO "configure" ! 19158: /* confdefs.h. */ ! 19159: _ACEOF ! 19160: cat confdefs.h >>conftest.$ac_ext ! 19161: cat >>conftest.$ac_ext <<_ACEOF ! 19162: /* end confdefs.h. */ ! 19163: ! 19164: /* Override any gcc2 internal prototype to avoid an error. */ ! 19165: #ifdef __cplusplus ! 19166: extern "C" ! 19167: #endif ! 19168: /* We use char because int might match the return type of a gcc2 ! 19169: builtin and then its argument prototype would still apply. */ ! 19170: char shl_load (); ! 19171: int ! 19172: main () ! 19173: { ! 19174: shl_load (); ! 19175: ; ! 19176: return 0; ! 19177: } ! 19178: _ACEOF ! 19179: rm -f conftest.$ac_objext conftest$ac_exeext ! 19180: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19181: (eval $ac_link) 2>&5 ! 19182: ac_status=$? ! 19183: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19184: (exit $ac_status); } && ! 19185: { ac_try='test -s conftest$ac_exeext' ! 19186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19187: (eval $ac_try) 2>&5 ! 19188: ac_status=$? ! 19189: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19190: (exit $ac_status); }; }; then ! 19191: ac_cv_lib_dld_shl_load=yes ! 19192: else ! 19193: echo "$as_me: failed program was:" >&5 ! 19194: sed 's/^/| /' conftest.$ac_ext >&5 ! 19195: ! 19196: ac_cv_lib_dld_shl_load=no ! 19197: fi ! 19198: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19199: LIBS=$ac_check_lib_save_LIBS ! 19200: fi ! 19201: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ! 19202: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 ! 19203: if test $ac_cv_lib_dld_shl_load = yes; then ! 19204: ! 19205: cat >>confdefs.h <<\_ACEOF ! 19206: #define HAVE_SHL_LOAD 1 ! 19207: _ACEOF ! 19208: ! 19209: LIBADD_DL="$LIBADD_DL -ldld" ! 19210: else ! 19211: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ! 19212: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 ! 19213: if test "${ac_cv_lib_dl_dlopen+set}" = set; then ! 19214: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19215: else ! 19216: ac_check_lib_save_LIBS=$LIBS ! 19217: LIBS="-ldl $LIBS" ! 19218: cat >conftest.$ac_ext <<_ACEOF ! 19219: #line $LINENO "configure" ! 19220: /* confdefs.h. */ ! 19221: _ACEOF ! 19222: cat confdefs.h >>conftest.$ac_ext ! 19223: cat >>conftest.$ac_ext <<_ACEOF ! 19224: /* end confdefs.h. */ ! 19225: ! 19226: /* Override any gcc2 internal prototype to avoid an error. */ ! 19227: #ifdef __cplusplus ! 19228: extern "C" ! 19229: #endif ! 19230: /* We use char because int might match the return type of a gcc2 ! 19231: builtin and then its argument prototype would still apply. */ ! 19232: char dlopen (); ! 19233: int ! 19234: main () ! 19235: { ! 19236: dlopen (); ! 19237: ; ! 19238: return 0; ! 19239: } ! 19240: _ACEOF ! 19241: rm -f conftest.$ac_objext conftest$ac_exeext ! 19242: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19243: (eval $ac_link) 2>&5 ! 19244: ac_status=$? ! 19245: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19246: (exit $ac_status); } && ! 19247: { ac_try='test -s conftest$ac_exeext' ! 19248: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19249: (eval $ac_try) 2>&5 ! 19250: ac_status=$? ! 19251: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19252: (exit $ac_status); }; }; then ! 19253: ac_cv_lib_dl_dlopen=yes ! 19254: else ! 19255: echo "$as_me: failed program was:" >&5 ! 19256: sed 's/^/| /' conftest.$ac_ext >&5 ! 19257: ! 19258: ac_cv_lib_dl_dlopen=no ! 19259: fi ! 19260: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19261: LIBS=$ac_check_lib_save_LIBS ! 19262: fi ! 19263: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ! 19264: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 ! 19265: if test $ac_cv_lib_dl_dlopen = yes; then ! 19266: ! 19267: cat >>confdefs.h <<\_ACEOF ! 19268: #define HAVE_LIBDL 1 ! 19269: _ACEOF ! 19270: ! 19271: LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" ! 19272: else ! 19273: cat >conftest.$ac_ext <<_ACEOF ! 19274: #line $LINENO "configure" ! 19275: /* confdefs.h. */ ! 19276: _ACEOF ! 19277: cat confdefs.h >>conftest.$ac_ext ! 19278: cat >>conftest.$ac_ext <<_ACEOF ! 19279: /* end confdefs.h. */ ! 19280: #if HAVE_DLFCN_H ! 19281: # include <dlfcn.h> ! 19282: #endif ! 19283: ! 19284: int ! 19285: main () ! 19286: { ! 19287: dlopen(0, 0); ! 19288: ; ! 19289: return 0; ! 19290: } ! 19291: _ACEOF ! 19292: rm -f conftest.$ac_objext conftest$ac_exeext ! 19293: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19294: (eval $ac_link) 2>&5 ! 19295: ac_status=$? ! 19296: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19297: (exit $ac_status); } && ! 19298: { ac_try='test -s conftest$ac_exeext' ! 19299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19300: (eval $ac_try) 2>&5 ! 19301: ac_status=$? ! 19302: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19303: (exit $ac_status); }; }; then ! 19304: ! 19305: cat >>confdefs.h <<\_ACEOF ! 19306: #define HAVE_LIBDL 1 ! 19307: _ACEOF ! 19308: libltdl_cv_func_dlopen="yes" ! 19309: else ! 19310: echo "$as_me: failed program was:" >&5 ! 19311: sed 's/^/| /' conftest.$ac_ext >&5 ! 19312: ! 19313: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ! 19314: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 ! 19315: if test "${ac_cv_lib_svld_dlopen+set}" = set; then ! 19316: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19317: else ! 19318: ac_check_lib_save_LIBS=$LIBS ! 19319: LIBS="-lsvld $LIBS" ! 19320: cat >conftest.$ac_ext <<_ACEOF ! 19321: #line $LINENO "configure" ! 19322: /* confdefs.h. */ ! 19323: _ACEOF ! 19324: cat confdefs.h >>conftest.$ac_ext ! 19325: cat >>conftest.$ac_ext <<_ACEOF ! 19326: /* end confdefs.h. */ ! 19327: ! 19328: /* Override any gcc2 internal prototype to avoid an error. */ ! 19329: #ifdef __cplusplus ! 19330: extern "C" ! 19331: #endif ! 19332: /* We use char because int might match the return type of a gcc2 ! 19333: builtin and then its argument prototype would still apply. */ ! 19334: char dlopen (); ! 19335: int ! 19336: main () ! 19337: { ! 19338: dlopen (); ! 19339: ; ! 19340: return 0; ! 19341: } ! 19342: _ACEOF ! 19343: rm -f conftest.$ac_objext conftest$ac_exeext ! 19344: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19345: (eval $ac_link) 2>&5 ! 19346: ac_status=$? ! 19347: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19348: (exit $ac_status); } && ! 19349: { ac_try='test -s conftest$ac_exeext' ! 19350: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19351: (eval $ac_try) 2>&5 ! 19352: ac_status=$? ! 19353: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19354: (exit $ac_status); }; }; then ! 19355: ac_cv_lib_svld_dlopen=yes ! 19356: else ! 19357: echo "$as_me: failed program was:" >&5 ! 19358: sed 's/^/| /' conftest.$ac_ext >&5 ! 19359: ! 19360: ac_cv_lib_svld_dlopen=no ! 19361: fi ! 19362: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19363: LIBS=$ac_check_lib_save_LIBS ! 19364: fi ! 19365: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ! 19366: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 ! 19367: if test $ac_cv_lib_svld_dlopen = yes; then ! 19368: ! 19369: cat >>confdefs.h <<\_ACEOF ! 19370: #define HAVE_LIBDL 1 ! 19371: _ACEOF ! 19372: ! 19373: LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" ! 19374: else ! 19375: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ! 19376: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 ! 19377: if test "${ac_cv_lib_dld_dld_link+set}" = set; then ! 19378: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19379: else ! 19380: ac_check_lib_save_LIBS=$LIBS ! 19381: LIBS="-ldld $LIBS" ! 19382: cat >conftest.$ac_ext <<_ACEOF ! 19383: #line $LINENO "configure" ! 19384: /* confdefs.h. */ ! 19385: _ACEOF ! 19386: cat confdefs.h >>conftest.$ac_ext ! 19387: cat >>conftest.$ac_ext <<_ACEOF ! 19388: /* end confdefs.h. */ ! 19389: ! 19390: /* Override any gcc2 internal prototype to avoid an error. */ ! 19391: #ifdef __cplusplus ! 19392: extern "C" ! 19393: #endif ! 19394: /* We use char because int might match the return type of a gcc2 ! 19395: builtin and then its argument prototype would still apply. */ ! 19396: char dld_link (); ! 19397: int ! 19398: main () ! 19399: { ! 19400: dld_link (); ! 19401: ; ! 19402: return 0; ! 19403: } ! 19404: _ACEOF ! 19405: rm -f conftest.$ac_objext conftest$ac_exeext ! 19406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19407: (eval $ac_link) 2>&5 ! 19408: ac_status=$? ! 19409: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19410: (exit $ac_status); } && ! 19411: { ac_try='test -s conftest$ac_exeext' ! 19412: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19413: (eval $ac_try) 2>&5 ! 19414: ac_status=$? ! 19415: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19416: (exit $ac_status); }; }; then ! 19417: ac_cv_lib_dld_dld_link=yes ! 19418: else ! 19419: echo "$as_me: failed program was:" >&5 ! 19420: sed 's/^/| /' conftest.$ac_ext >&5 ! 19421: ! 19422: ac_cv_lib_dld_dld_link=no ! 19423: fi ! 19424: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19425: LIBS=$ac_check_lib_save_LIBS ! 19426: fi ! 19427: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ! 19428: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 ! 19429: if test $ac_cv_lib_dld_dld_link = yes; then ! 19430: ! 19431: cat >>confdefs.h <<\_ACEOF ! 19432: #define HAVE_DLD 1 ! 19433: _ACEOF ! 19434: ! 19435: LIBADD_DL="$LIBADD_DL -ldld" ! 19436: else ! 19437: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 ! 19438: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 ! 19439: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then ! 19440: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19441: else ! 19442: cat >conftest.$ac_ext <<_ACEOF ! 19443: #line $LINENO "configure" ! 19444: /* confdefs.h. */ ! 19445: _ACEOF ! 19446: cat confdefs.h >>conftest.$ac_ext ! 19447: cat >>conftest.$ac_ext <<_ACEOF ! 19448: /* end confdefs.h. */ ! 19449: /* System header to define __stub macros and hopefully few prototypes, ! 19450: which can conflict with char _dyld_func_lookup (); below. ! 19451: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 19452: <limits.h> exists even on freestanding compilers. */ ! 19453: #ifdef __STDC__ ! 19454: # include <limits.h> ! 19455: #else ! 19456: # include <assert.h> ! 19457: #endif ! 19458: /* Override any gcc2 internal prototype to avoid an error. */ ! 19459: #ifdef __cplusplus ! 19460: extern "C" ! 19461: { ! 19462: #endif ! 19463: /* We use char because int might match the return type of a gcc2 ! 19464: builtin and then its argument prototype would still apply. */ ! 19465: char _dyld_func_lookup (); ! 19466: /* The GNU C library defines this for functions which it implements ! 19467: to always fail with ENOSYS. Some functions are actually named ! 19468: something starting with __ and the normal name is an alias. */ ! 19469: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) ! 19470: choke me ! 19471: #else ! 19472: char (*f) () = _dyld_func_lookup; ! 19473: #endif ! 19474: #ifdef __cplusplus ! 19475: } ! 19476: #endif ! 19477: ! 19478: int ! 19479: main () ! 19480: { ! 19481: return f != _dyld_func_lookup; ! 19482: ; ! 19483: return 0; ! 19484: } ! 19485: _ACEOF ! 19486: rm -f conftest.$ac_objext conftest$ac_exeext ! 19487: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19488: (eval $ac_link) 2>&5 ! 19489: ac_status=$? ! 19490: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19491: (exit $ac_status); } && ! 19492: { ac_try='test -s conftest$ac_exeext' ! 19493: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19494: (eval $ac_try) 2>&5 ! 19495: ac_status=$? ! 19496: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19497: (exit $ac_status); }; }; then ! 19498: ac_cv_func__dyld_func_lookup=yes ! 19499: else ! 19500: echo "$as_me: failed program was:" >&5 ! 19501: sed 's/^/| /' conftest.$ac_ext >&5 ! 19502: ! 19503: ac_cv_func__dyld_func_lookup=no ! 19504: fi ! 19505: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19506: fi ! 19507: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 ! 19508: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 ! 19509: if test $ac_cv_func__dyld_func_lookup = yes; then ! 19510: ! 19511: cat >>confdefs.h <<\_ACEOF ! 19512: #define HAVE_DYLD 1 ! 19513: _ACEOF ! 19514: ! 19515: fi ! 19516: ! 19517: ! 19518: fi ! 19519: ! 19520: ! 19521: fi ! 19522: ! 19523: ! 19524: fi ! 19525: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19526: ! 19527: fi ! 19528: ! 19529: ! 19530: fi ! 19531: ! 19532: ! 19533: fi ! 19534: ! 19535: ! 19536: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes ! 19537: then ! 19538: lt_save_LIBS="$LIBS" ! 19539: LIBS="$LIBS $LIBADD_DL" ! 19540: ! 19541: for ac_func in dlerror ! 19542: do ! 19543: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 19544: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 19545: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 19546: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 19547: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19548: else ! 19549: cat >conftest.$ac_ext <<_ACEOF ! 19550: #line $LINENO "configure" ! 19551: /* confdefs.h. */ ! 19552: _ACEOF ! 19553: cat confdefs.h >>conftest.$ac_ext ! 19554: cat >>conftest.$ac_ext <<_ACEOF ! 19555: /* end confdefs.h. */ ! 19556: /* System header to define __stub macros and hopefully few prototypes, ! 19557: which can conflict with char $ac_func (); below. ! 19558: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 19559: <limits.h> exists even on freestanding compilers. */ ! 19560: #ifdef __STDC__ ! 19561: # include <limits.h> ! 19562: #else ! 19563: # include <assert.h> ! 19564: #endif ! 19565: /* Override any gcc2 internal prototype to avoid an error. */ ! 19566: #ifdef __cplusplus ! 19567: extern "C" ! 19568: { ! 19569: #endif ! 19570: /* We use char because int might match the return type of a gcc2 ! 19571: builtin and then its argument prototype would still apply. */ ! 19572: char $ac_func (); ! 19573: /* The GNU C library defines this for functions which it implements ! 19574: to always fail with ENOSYS. Some functions are actually named ! 19575: something starting with __ and the normal name is an alias. */ ! 19576: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 19577: choke me ! 19578: #else ! 19579: char (*f) () = $ac_func; ! 19580: #endif ! 19581: #ifdef __cplusplus ! 19582: } ! 19583: #endif ! 19584: ! 19585: int ! 19586: main () ! 19587: { ! 19588: return f != $ac_func; ! 19589: ; ! 19590: return 0; ! 19591: } ! 19592: _ACEOF ! 19593: rm -f conftest.$ac_objext conftest$ac_exeext ! 19594: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19595: (eval $ac_link) 2>&5 ! 19596: ac_status=$? ! 19597: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19598: (exit $ac_status); } && ! 19599: { ac_try='test -s conftest$ac_exeext' ! 19600: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19601: (eval $ac_try) 2>&5 ! 19602: ac_status=$? ! 19603: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19604: (exit $ac_status); }; }; then ! 19605: eval "$as_ac_var=yes" ! 19606: else ! 19607: echo "$as_me: failed program was:" >&5 ! 19608: sed 's/^/| /' conftest.$ac_ext >&5 ! 19609: ! 19610: eval "$as_ac_var=no" ! 19611: fi ! 19612: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 19613: fi ! 19614: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 19615: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 19616: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 19617: cat >>confdefs.h <<_ACEOF ! 19618: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 19619: _ACEOF ! 19620: ! 19621: fi ! 19622: done ! 19623: ! 19624: LIBS="$lt_save_LIBS" ! 19625: fi ! 19626: ac_ext=c ! 19627: ac_cpp='$CPP $CPPFLAGS' ! 19628: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 19629: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 19630: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 19631: ! 19632: ! 19633: ! 19634: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 ! 19635: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 ! 19636: if test "${ac_cv_sys_symbol_underscore+set}" = set; then ! 19637: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19638: else ! 19639: ac_cv_sys_symbol_underscore=no ! 19640: cat > conftest.$ac_ext <<EOF ! 19641: void nm_test_func(){} ! 19642: int main(){nm_test_func;return 0;} ! 19643: EOF ! 19644: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 19645: (eval $ac_compile) 2>&5 ! 19646: ac_status=$? ! 19647: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19648: (exit $ac_status); }; then ! 19649: # Now try to grab the symbols. ! 19650: ac_nlist=conftest.nm ! 19651: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 ! 19652: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 ! 19653: ac_status=$? ! 19654: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19655: (exit $ac_status); } && test -s "$ac_nlist"; then ! 19656: # See whether the symbols have a leading underscore. ! 19657: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then ! 19658: ac_cv_sys_symbol_underscore=yes ! 19659: else ! 19660: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then ! 19661: : ! 19662: else ! 19663: echo "configure: cannot find nm_test_func in $ac_nlist" >&5 ! 19664: fi ! 19665: fi ! 19666: else ! 19667: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 ! 19668: fi ! 19669: else ! 19670: echo "configure: failed program was:" >&5 ! 19671: cat conftest.c >&5 ! 19672: fi ! 19673: rm -rf conftest* ! 19674: ! 19675: fi ! 19676: echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 ! 19677: echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 ! 19678: ! 19679: ! 19680: if test x"$ac_cv_sys_symbol_underscore" = xyes; then ! 19681: if test x"$libltdl_cv_func_dlopen" = xyes || ! 19682: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then ! 19683: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 ! 19684: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 ! 19685: if test "${libltdl_cv_need_uscore+set}" = set; then ! 19686: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19687: else ! 19688: libltdl_cv_need_uscore=unknown ! 19689: save_LIBS="$LIBS" ! 19690: LIBS="$LIBS $LIBADD_DL" ! 19691: if test "$cross_compiling" = yes; then : ! 19692: libltdl_cv_need_uscore=cross ! 19693: else ! 19694: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ! 19695: lt_status=$lt_dlunknown ! 19696: cat > conftest.$ac_ext <<EOF ! 19697: #line 19697 "configure" ! 19698: #include "confdefs.h" ! 19699: ! 19700: #if HAVE_DLFCN_H ! 19701: #include <dlfcn.h> ! 19702: #endif ! 19703: ! 19704: #include <stdio.h> ! 19705: ! 19706: #ifdef RTLD_GLOBAL ! 19707: # define LT_DLGLOBAL RTLD_GLOBAL ! 19708: #else ! 19709: # ifdef DL_GLOBAL ! 19710: # define LT_DLGLOBAL DL_GLOBAL ! 19711: # else ! 19712: # define LT_DLGLOBAL 0 ! 19713: # endif ! 19714: #endif ! 19715: ! 19716: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we ! 19717: find out it does not work in some platform. */ ! 19718: #ifndef LT_DLLAZY_OR_NOW ! 19719: # ifdef RTLD_LAZY ! 19720: # define LT_DLLAZY_OR_NOW RTLD_LAZY ! 19721: # else ! 19722: # ifdef DL_LAZY ! 19723: # define LT_DLLAZY_OR_NOW DL_LAZY ! 19724: # else ! 19725: # ifdef RTLD_NOW ! 19726: # define LT_DLLAZY_OR_NOW RTLD_NOW ! 19727: # else ! 19728: # ifdef DL_NOW ! 19729: # define LT_DLLAZY_OR_NOW DL_NOW ! 19730: # else ! 19731: # define LT_DLLAZY_OR_NOW 0 ! 19732: # endif ! 19733: # endif ! 19734: # endif ! 19735: # endif ! 19736: #endif ! 19737: ! 19738: #ifdef __cplusplus ! 19739: extern "C" void exit (int); ! 19740: #endif ! 19741: ! 19742: void fnord() { int i=42;} ! 19743: int main () ! 19744: { ! 19745: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ! 19746: int status = $lt_dlunknown; ! 19747: ! 19748: if (self) ! 19749: { ! 19750: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ! 19751: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ! 19752: /* dlclose (self); */ ! 19753: } ! 19754: ! 19755: exit (status); ! 19756: } ! 19757: EOF ! 19758: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 19759: (eval $ac_link) 2>&5 ! 19760: ac_status=$? ! 19761: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19762: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ! 19763: (./conftest; exit; ) 2>/dev/null ! 19764: lt_status=$? ! 19765: case x$lt_status in ! 19766: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; ! 19767: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; ! 19768: x$lt_unknown|x*) ;; ! 19769: esac ! 19770: else : ! 19771: # compilation failed ! 19772: ! 19773: fi ! 19774: fi ! 19775: rm -fr conftest* ! 19776: ! 19777: LIBS="$save_LIBS" ! 19778: ! 19779: fi ! 19780: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 ! 19781: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 ! 19782: fi ! 19783: fi ! 19784: ! 19785: if test x"$libltdl_cv_need_uscore" = xyes; then ! 19786: ! 19787: cat >>confdefs.h <<\_ACEOF ! 19788: #define NEED_USCORE 1 ! 19789: _ACEOF ! 19790: ! 19791: fi ! 19792: ! 19793: ! 19794: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 ! 19795: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 ! 19796: if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then ! 19797: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19798: else ! 19799: # PORTME does your system automatically load deplibs for dlopen? ! 19800: # or its logical equivalent (e.g. shl_load for HP-UX < 11) ! 19801: # For now, we just catch OSes we know something about -- in the ! 19802: # future, we'll try test this programmatically. ! 19803: libltdl_cv_sys_dlopen_deplibs=unknown ! 19804: case "$host_os" in ! 19805: aix3*|aix4.1.*|aix4.2.*) ! 19806: # Unknown whether this is true for these versions of AIX, but ! 19807: # we want this `case' here to explicitly catch those versions. ! 19808: libltdl_cv_sys_dlopen_deplibs=unknown ! 19809: ;; ! 19810: aix[45]*) ! 19811: libltdl_cv_sys_dlopen_deplibs=yes ! 19812: ;; ! 19813: darwin*) ! 19814: # Assuming the user has installed a libdl from somewhere, this is true ! 19815: # If you are looking for one http://www.opendarwin.org/projects/dlcompat ! 19816: libltdl_cv_sys_dlopen_deplibs=yes ! 19817: ;; ! 19818: gnu*) ! 19819: libltdl_cv_sys_dlopen_deplibs=yes ! 19820: ;; ! 19821: hpux10*|hpux11*) ! 19822: libltdl_cv_sys_dlopen_deplibs=yes ! 19823: ;; ! 19824: irix[12345]*|irix6.[01]*) ! 19825: # Catch all versions of IRIX before 6.2, and indicate that we don't ! 19826: # know how it worked for any of those versions. ! 19827: libltdl_cv_sys_dlopen_deplibs=unknown ! 19828: ;; ! 19829: irix*) ! 19830: # The case above catches anything before 6.2, and it's known that ! 19831: # at 6.2 and later dlopen does load deplibs. ! 19832: libltdl_cv_sys_dlopen_deplibs=yes ! 19833: ;; ! 19834: linux*) ! 19835: libltdl_cv_sys_dlopen_deplibs=yes ! 19836: ;; ! 19837: netbsd*) ! 19838: libltdl_cv_sys_dlopen_deplibs=yes ! 19839: ;; ! 19840: openbsd*) ! 19841: libltdl_cv_sys_dlopen_deplibs=yes ! 19842: ;; ! 19843: osf[1234]*) ! 19844: # dlopen did load deplibs (at least at 4.x), but until the 5.x series, ! 19845: # it did *not* use an RPATH in a shared library to find objects the ! 19846: # library depends on, so we explictly say `no'. ! 19847: libltdl_cv_sys_dlopen_deplibs=no ! 19848: ;; ! 19849: osf5.0|osf5.0a|osf5.1) ! 19850: # dlopen *does* load deplibs and with the right loader patch applied ! 19851: # it even uses RPATH in a shared library to search for shared objects ! 19852: # that the library depends on, but there's no easy way to know if that ! 19853: # patch is installed. Since this is the case, all we can really ! 19854: # say is unknown -- it depends on the patch being installed. If ! 19855: # it is, this changes to `yes'. Without it, it would be `no'. ! 19856: libltdl_cv_sys_dlopen_deplibs=unknown ! 19857: ;; ! 19858: osf*) ! 19859: # the two cases above should catch all versions of osf <= 5.1. Read ! 19860: # the comments above for what we know about them. ! 19861: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library ! 19862: # is used to find them so we can finally say `yes'. ! 19863: libltdl_cv_sys_dlopen_deplibs=yes ! 19864: ;; ! 19865: solaris*) ! 19866: libltdl_cv_sys_dlopen_deplibs=yes ! 19867: ;; ! 19868: esac ! 19869: ! 19870: fi ! 19871: echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 ! 19872: echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 ! 19873: if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then ! 19874: ! 19875: cat >>confdefs.h <<\_ACEOF ! 19876: #define LTDL_DLOPEN_DEPLIBS 1 ! 19877: _ACEOF ! 19878: ! 19879: fi ! 19880: ! 19881: ! 19882: for ac_header in argz.h ! 19883: do ! 19884: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 19885: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 19886: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 19887: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 19888: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 19889: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 19890: fi ! 19891: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 19892: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 19893: else ! 19894: # Is the header compilable? ! 19895: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 19896: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 19897: cat >conftest.$ac_ext <<_ACEOF ! 19898: #line $LINENO "configure" ! 19899: /* confdefs.h. */ ! 19900: _ACEOF ! 19901: cat confdefs.h >>conftest.$ac_ext ! 19902: cat >>conftest.$ac_ext <<_ACEOF ! 19903: /* end confdefs.h. */ ! 19904: $ac_includes_default ! 19905: #include <$ac_header> ! 19906: _ACEOF ! 19907: rm -f conftest.$ac_objext ! 19908: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 19909: (eval $ac_compile) 2>&5 ! 19910: ac_status=$? ! 19911: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19912: (exit $ac_status); } && ! 19913: { ac_try='test -s conftest.$ac_objext' ! 19914: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 19915: (eval $ac_try) 2>&5 ! 19916: ac_status=$? ! 19917: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19918: (exit $ac_status); }; }; then ! 19919: ac_header_compiler=yes ! 19920: else ! 19921: echo "$as_me: failed program was:" >&5 ! 19922: sed 's/^/| /' conftest.$ac_ext >&5 ! 19923: ! 19924: ac_header_compiler=no ! 19925: fi ! 19926: rm -f conftest.$ac_objext conftest.$ac_ext ! 19927: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 19928: echo "${ECHO_T}$ac_header_compiler" >&6 ! 19929: ! 19930: # Is the header present? ! 19931: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 19932: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 19933: cat >conftest.$ac_ext <<_ACEOF ! 19934: #line $LINENO "configure" ! 19935: /* confdefs.h. */ ! 19936: _ACEOF ! 19937: cat confdefs.h >>conftest.$ac_ext ! 19938: cat >>conftest.$ac_ext <<_ACEOF ! 19939: /* end confdefs.h. */ ! 19940: #include <$ac_header> ! 19941: _ACEOF ! 19942: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 19943: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 19944: ac_status=$? ! 19945: grep -v '^ *+' conftest.er1 >conftest.err ! 19946: rm -f conftest.er1 ! 19947: cat conftest.err >&5 ! 19948: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 19949: (exit $ac_status); } >/dev/null; then ! 19950: if test -s conftest.err; then ! 19951: ac_cpp_err=$ac_c_preproc_warn_flag ! 19952: else ! 19953: ac_cpp_err= ! 19954: fi ! 19955: else ! 19956: ac_cpp_err=yes ! 19957: fi ! 19958: if test -z "$ac_cpp_err"; then ! 19959: ac_header_preproc=yes ! 19960: else ! 19961: echo "$as_me: failed program was:" >&5 ! 19962: sed 's/^/| /' conftest.$ac_ext >&5 ! 19963: ! 19964: ac_header_preproc=no ! 19965: fi ! 19966: rm -f conftest.err conftest.$ac_ext ! 19967: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 19968: echo "${ECHO_T}$ac_header_preproc" >&6 ! 19969: ! 19970: # So? What about this header? ! 19971: case $ac_header_compiler:$ac_header_preproc in ! 19972: yes:no ) ! 19973: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 19974: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 19975: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 19976: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 19977: ( ! 19978: cat <<\_ASBOX ! 19979: ## ------------------------------------ ## ! 19980: ## Report this to [email protected]. ## ! 19981: ## ------------------------------------ ## ! 19982: _ASBOX ! 19983: ) | ! 19984: sed "s/^/$as_me: WARNING: /" >&2 ! 19985: ;; ! 19986: no:yes ) ! 19987: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 19988: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 19989: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 19990: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 19991: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 19992: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 19993: ( ! 19994: cat <<\_ASBOX ! 19995: ## ------------------------------------ ## ! 19996: ## Report this to [email protected]. ## ! 19997: ## ------------------------------------ ## ! 19998: _ASBOX ! 19999: ) | ! 20000: sed "s/^/$as_me: WARNING: /" >&2 ! 20001: ;; ! 20002: esac ! 20003: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 20004: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 20005: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20006: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20007: else ! 20008: eval "$as_ac_Header=$ac_header_preproc" ! 20009: fi ! 20010: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 20011: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 20012: ! 20013: fi ! 20014: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 20015: cat >>confdefs.h <<_ACEOF ! 20016: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 20017: _ACEOF ! 20018: ! 20019: fi ! 20020: ! 20021: done ! 20022: ! 20023: ! 20024: echo "$as_me:$LINENO: checking for error_t" >&5 ! 20025: echo $ECHO_N "checking for error_t... $ECHO_C" >&6 ! 20026: if test "${ac_cv_type_error_t+set}" = set; then ! 20027: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20028: else ! 20029: cat >conftest.$ac_ext <<_ACEOF ! 20030: #line $LINENO "configure" ! 20031: /* confdefs.h. */ ! 20032: _ACEOF ! 20033: cat confdefs.h >>conftest.$ac_ext ! 20034: cat >>conftest.$ac_ext <<_ACEOF ! 20035: /* end confdefs.h. */ ! 20036: #if HAVE_ARGZ_H ! 20037: # include <argz.h> ! 20038: #endif ! 20039: ! 20040: int ! 20041: main () ! 20042: { ! 20043: if ((error_t *) 0) ! 20044: return 0; ! 20045: if (sizeof (error_t)) ! 20046: return 0; ! 20047: ; ! 20048: return 0; ! 20049: } ! 20050: _ACEOF ! 20051: rm -f conftest.$ac_objext ! 20052: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 20053: (eval $ac_compile) 2>&5 ! 20054: ac_status=$? ! 20055: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20056: (exit $ac_status); } && ! 20057: { ac_try='test -s conftest.$ac_objext' ! 20058: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20059: (eval $ac_try) 2>&5 ! 20060: ac_status=$? ! 20061: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20062: (exit $ac_status); }; }; then ! 20063: ac_cv_type_error_t=yes ! 20064: else ! 20065: echo "$as_me: failed program was:" >&5 ! 20066: sed 's/^/| /' conftest.$ac_ext >&5 ! 20067: ! 20068: ac_cv_type_error_t=no ! 20069: fi ! 20070: rm -f conftest.$ac_objext conftest.$ac_ext ! 20071: fi ! 20072: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 ! 20073: echo "${ECHO_T}$ac_cv_type_error_t" >&6 ! 20074: if test $ac_cv_type_error_t = yes; then ! 20075: ! 20076: cat >>confdefs.h <<_ACEOF ! 20077: #define HAVE_ERROR_T 1 ! 20078: _ACEOF ! 20079: ! 20080: ! 20081: else ! 20082: ! 20083: cat >>confdefs.h <<\_ACEOF ! 20084: #define error_t int ! 20085: _ACEOF ! 20086: ! 20087: fi ! 20088: ! 20089: ! 20090: ! 20091: ! 20092: ! 20093: ! 20094: ! 20095: for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify ! 20096: do ! 20097: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 20098: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 20099: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 20100: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 20101: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20102: else ! 20103: cat >conftest.$ac_ext <<_ACEOF ! 20104: #line $LINENO "configure" ! 20105: /* confdefs.h. */ ! 20106: _ACEOF ! 20107: cat confdefs.h >>conftest.$ac_ext ! 20108: cat >>conftest.$ac_ext <<_ACEOF ! 20109: /* end confdefs.h. */ ! 20110: /* System header to define __stub macros and hopefully few prototypes, ! 20111: which can conflict with char $ac_func (); below. ! 20112: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 20113: <limits.h> exists even on freestanding compilers. */ ! 20114: #ifdef __STDC__ ! 20115: # include <limits.h> ! 20116: #else ! 20117: # include <assert.h> ! 20118: #endif ! 20119: /* Override any gcc2 internal prototype to avoid an error. */ ! 20120: #ifdef __cplusplus ! 20121: extern "C" ! 20122: { ! 20123: #endif ! 20124: /* We use char because int might match the return type of a gcc2 ! 20125: builtin and then its argument prototype would still apply. */ ! 20126: char $ac_func (); ! 20127: /* The GNU C library defines this for functions which it implements ! 20128: to always fail with ENOSYS. Some functions are actually named ! 20129: something starting with __ and the normal name is an alias. */ ! 20130: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 20131: choke me ! 20132: #else ! 20133: char (*f) () = $ac_func; ! 20134: #endif ! 20135: #ifdef __cplusplus ! 20136: } ! 20137: #endif ! 20138: ! 20139: int ! 20140: main () ! 20141: { ! 20142: return f != $ac_func; ! 20143: ; ! 20144: return 0; ! 20145: } ! 20146: _ACEOF ! 20147: rm -f conftest.$ac_objext conftest$ac_exeext ! 20148: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20149: (eval $ac_link) 2>&5 ! 20150: ac_status=$? ! 20151: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20152: (exit $ac_status); } && ! 20153: { ac_try='test -s conftest$ac_exeext' ! 20154: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20155: (eval $ac_try) 2>&5 ! 20156: ac_status=$? ! 20157: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20158: (exit $ac_status); }; }; then ! 20159: eval "$as_ac_var=yes" ! 20160: else ! 20161: echo "$as_me: failed program was:" >&5 ! 20162: sed 's/^/| /' conftest.$ac_ext >&5 ! 20163: ! 20164: eval "$as_ac_var=no" ! 20165: fi ! 20166: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20167: fi ! 20168: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 20169: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 20170: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 20171: cat >>confdefs.h <<_ACEOF ! 20172: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 20173: _ACEOF ! 20174: ! 20175: fi ! 20176: done ! 20177: ! 20178: ! 20179: ! 20180: ! 20181: ! 20182: ! 20183: ! 20184: ! 20185: ! 20186: ! 20187: ! 20188: ! 20189: ! 20190: ! 20191: ! 20192: ! 20193: ! 20194: ! 20195: ! 20196: ! 20197: ! 20198: ! 20199: ! 20200: ! 20201: ! 20202: ! 20203: ! 20204: ! 20205: for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ ! 20206: stdio.h unistd.h ! 20207: do ! 20208: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 20209: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20210: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 20211: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 20212: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20213: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20214: fi ! 20215: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 20216: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 20217: else ! 20218: # Is the header compilable? ! 20219: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 20220: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 20221: cat >conftest.$ac_ext <<_ACEOF ! 20222: #line $LINENO "configure" ! 20223: /* confdefs.h. */ ! 20224: _ACEOF ! 20225: cat confdefs.h >>conftest.$ac_ext ! 20226: cat >>conftest.$ac_ext <<_ACEOF ! 20227: /* end confdefs.h. */ ! 20228: $ac_includes_default ! 20229: #include <$ac_header> ! 20230: _ACEOF ! 20231: rm -f conftest.$ac_objext ! 20232: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 20233: (eval $ac_compile) 2>&5 ! 20234: ac_status=$? ! 20235: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20236: (exit $ac_status); } && ! 20237: { ac_try='test -s conftest.$ac_objext' ! 20238: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20239: (eval $ac_try) 2>&5 ! 20240: ac_status=$? ! 20241: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20242: (exit $ac_status); }; }; then ! 20243: ac_header_compiler=yes ! 20244: else ! 20245: echo "$as_me: failed program was:" >&5 ! 20246: sed 's/^/| /' conftest.$ac_ext >&5 ! 20247: ! 20248: ac_header_compiler=no ! 20249: fi ! 20250: rm -f conftest.$ac_objext conftest.$ac_ext ! 20251: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 20252: echo "${ECHO_T}$ac_header_compiler" >&6 ! 20253: ! 20254: # Is the header present? ! 20255: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 20256: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 20257: cat >conftest.$ac_ext <<_ACEOF ! 20258: #line $LINENO "configure" ! 20259: /* confdefs.h. */ ! 20260: _ACEOF ! 20261: cat confdefs.h >>conftest.$ac_ext ! 20262: cat >>conftest.$ac_ext <<_ACEOF ! 20263: /* end confdefs.h. */ ! 20264: #include <$ac_header> ! 20265: _ACEOF ! 20266: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 20267: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 20268: ac_status=$? ! 20269: grep -v '^ *+' conftest.er1 >conftest.err ! 20270: rm -f conftest.er1 ! 20271: cat conftest.err >&5 ! 20272: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20273: (exit $ac_status); } >/dev/null; then ! 20274: if test -s conftest.err; then ! 20275: ac_cpp_err=$ac_c_preproc_warn_flag ! 20276: else ! 20277: ac_cpp_err= ! 20278: fi ! 20279: else ! 20280: ac_cpp_err=yes ! 20281: fi ! 20282: if test -z "$ac_cpp_err"; then ! 20283: ac_header_preproc=yes ! 20284: else ! 20285: echo "$as_me: failed program was:" >&5 ! 20286: sed 's/^/| /' conftest.$ac_ext >&5 ! 20287: ! 20288: ac_header_preproc=no ! 20289: fi ! 20290: rm -f conftest.err conftest.$ac_ext ! 20291: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 20292: echo "${ECHO_T}$ac_header_preproc" >&6 ! 20293: ! 20294: # So? What about this header? ! 20295: case $ac_header_compiler:$ac_header_preproc in ! 20296: yes:no ) ! 20297: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 20298: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 20299: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 20300: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 20301: ( ! 20302: cat <<\_ASBOX ! 20303: ## ------------------------------------ ## ! 20304: ## Report this to [email protected]. ## ! 20305: ## ------------------------------------ ## ! 20306: _ASBOX ! 20307: ) | ! 20308: sed "s/^/$as_me: WARNING: /" >&2 ! 20309: ;; ! 20310: no:yes ) ! 20311: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 20312: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 20313: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 20314: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 20315: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 20316: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 20317: ( ! 20318: cat <<\_ASBOX ! 20319: ## ------------------------------------ ## ! 20320: ## Report this to [email protected]. ## ! 20321: ## ------------------------------------ ## ! 20322: _ASBOX ! 20323: ) | ! 20324: sed "s/^/$as_me: WARNING: /" >&2 ! 20325: ;; ! 20326: esac ! 20327: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 20328: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 20329: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20330: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20331: else ! 20332: eval "$as_ac_Header=$ac_header_preproc" ! 20333: fi ! 20334: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 20335: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 20336: ! 20337: fi ! 20338: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 20339: cat >>confdefs.h <<_ACEOF ! 20340: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 20341: _ACEOF ! 20342: ! 20343: fi ! 20344: ! 20345: done ! 20346: ! 20347: ! 20348: ! 20349: ! 20350: ! 20351: for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h ! 20352: do ! 20353: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 20354: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20355: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 20356: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 20357: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20358: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20359: fi ! 20360: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 20361: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 20362: else ! 20363: # Is the header compilable? ! 20364: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 20365: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 20366: cat >conftest.$ac_ext <<_ACEOF ! 20367: #line $LINENO "configure" ! 20368: /* confdefs.h. */ ! 20369: _ACEOF ! 20370: cat confdefs.h >>conftest.$ac_ext ! 20371: cat >>conftest.$ac_ext <<_ACEOF ! 20372: /* end confdefs.h. */ ! 20373: $ac_includes_default ! 20374: #include <$ac_header> ! 20375: _ACEOF ! 20376: rm -f conftest.$ac_objext ! 20377: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 20378: (eval $ac_compile) 2>&5 ! 20379: ac_status=$? ! 20380: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20381: (exit $ac_status); } && ! 20382: { ac_try='test -s conftest.$ac_objext' ! 20383: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20384: (eval $ac_try) 2>&5 ! 20385: ac_status=$? ! 20386: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20387: (exit $ac_status); }; }; then ! 20388: ac_header_compiler=yes ! 20389: else ! 20390: echo "$as_me: failed program was:" >&5 ! 20391: sed 's/^/| /' conftest.$ac_ext >&5 ! 20392: ! 20393: ac_header_compiler=no ! 20394: fi ! 20395: rm -f conftest.$ac_objext conftest.$ac_ext ! 20396: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 20397: echo "${ECHO_T}$ac_header_compiler" >&6 ! 20398: ! 20399: # Is the header present? ! 20400: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 20401: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 20402: cat >conftest.$ac_ext <<_ACEOF ! 20403: #line $LINENO "configure" ! 20404: /* confdefs.h. */ ! 20405: _ACEOF ! 20406: cat confdefs.h >>conftest.$ac_ext ! 20407: cat >>conftest.$ac_ext <<_ACEOF ! 20408: /* end confdefs.h. */ ! 20409: #include <$ac_header> ! 20410: _ACEOF ! 20411: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 20412: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 20413: ac_status=$? ! 20414: grep -v '^ *+' conftest.er1 >conftest.err ! 20415: rm -f conftest.er1 ! 20416: cat conftest.err >&5 ! 20417: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20418: (exit $ac_status); } >/dev/null; then ! 20419: if test -s conftest.err; then ! 20420: ac_cpp_err=$ac_c_preproc_warn_flag ! 20421: else ! 20422: ac_cpp_err= ! 20423: fi ! 20424: else ! 20425: ac_cpp_err=yes ! 20426: fi ! 20427: if test -z "$ac_cpp_err"; then ! 20428: ac_header_preproc=yes ! 20429: else ! 20430: echo "$as_me: failed program was:" >&5 ! 20431: sed 's/^/| /' conftest.$ac_ext >&5 ! 20432: ! 20433: ac_header_preproc=no ! 20434: fi ! 20435: rm -f conftest.err conftest.$ac_ext ! 20436: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 20437: echo "${ECHO_T}$ac_header_preproc" >&6 ! 20438: ! 20439: # So? What about this header? ! 20440: case $ac_header_compiler:$ac_header_preproc in ! 20441: yes:no ) ! 20442: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 20443: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 20444: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 20445: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 20446: ( ! 20447: cat <<\_ASBOX ! 20448: ## ------------------------------------ ## ! 20449: ## Report this to [email protected]. ## ! 20450: ## ------------------------------------ ## ! 20451: _ASBOX ! 20452: ) | ! 20453: sed "s/^/$as_me: WARNING: /" >&2 ! 20454: ;; ! 20455: no:yes ) ! 20456: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 20457: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 20458: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 20459: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 20460: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 20461: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 20462: ( ! 20463: cat <<\_ASBOX ! 20464: ## ------------------------------------ ## ! 20465: ## Report this to [email protected]. ## ! 20466: ## ------------------------------------ ## ! 20467: _ASBOX ! 20468: ) | ! 20469: sed "s/^/$as_me: WARNING: /" >&2 ! 20470: ;; ! 20471: esac ! 20472: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 20473: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 20474: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20475: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20476: else ! 20477: eval "$as_ac_Header=$ac_header_preproc" ! 20478: fi ! 20479: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 20480: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 20481: ! 20482: fi ! 20483: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 20484: cat >>confdefs.h <<_ACEOF ! 20485: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 20486: _ACEOF ! 20487: ! 20488: fi ! 20489: ! 20490: done ! 20491: ! 20492: ! 20493: ! 20494: for ac_header in string.h strings.h ! 20495: do ! 20496: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 20497: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20498: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 20499: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 20500: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20501: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20502: fi ! 20503: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 20504: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 20505: else ! 20506: # Is the header compilable? ! 20507: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 20508: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 20509: cat >conftest.$ac_ext <<_ACEOF ! 20510: #line $LINENO "configure" ! 20511: /* confdefs.h. */ ! 20512: _ACEOF ! 20513: cat confdefs.h >>conftest.$ac_ext ! 20514: cat >>conftest.$ac_ext <<_ACEOF ! 20515: /* end confdefs.h. */ ! 20516: $ac_includes_default ! 20517: #include <$ac_header> ! 20518: _ACEOF ! 20519: rm -f conftest.$ac_objext ! 20520: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 20521: (eval $ac_compile) 2>&5 ! 20522: ac_status=$? ! 20523: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20524: (exit $ac_status); } && ! 20525: { ac_try='test -s conftest.$ac_objext' ! 20526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20527: (eval $ac_try) 2>&5 ! 20528: ac_status=$? ! 20529: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20530: (exit $ac_status); }; }; then ! 20531: ac_header_compiler=yes ! 20532: else ! 20533: echo "$as_me: failed program was:" >&5 ! 20534: sed 's/^/| /' conftest.$ac_ext >&5 ! 20535: ! 20536: ac_header_compiler=no ! 20537: fi ! 20538: rm -f conftest.$ac_objext conftest.$ac_ext ! 20539: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 20540: echo "${ECHO_T}$ac_header_compiler" >&6 ! 20541: ! 20542: # Is the header present? ! 20543: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 20544: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 20545: cat >conftest.$ac_ext <<_ACEOF ! 20546: #line $LINENO "configure" ! 20547: /* confdefs.h. */ ! 20548: _ACEOF ! 20549: cat confdefs.h >>conftest.$ac_ext ! 20550: cat >>conftest.$ac_ext <<_ACEOF ! 20551: /* end confdefs.h. */ ! 20552: #include <$ac_header> ! 20553: _ACEOF ! 20554: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 20555: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 20556: ac_status=$? ! 20557: grep -v '^ *+' conftest.er1 >conftest.err ! 20558: rm -f conftest.er1 ! 20559: cat conftest.err >&5 ! 20560: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20561: (exit $ac_status); } >/dev/null; then ! 20562: if test -s conftest.err; then ! 20563: ac_cpp_err=$ac_c_preproc_warn_flag ! 20564: else ! 20565: ac_cpp_err= ! 20566: fi ! 20567: else ! 20568: ac_cpp_err=yes ! 20569: fi ! 20570: if test -z "$ac_cpp_err"; then ! 20571: ac_header_preproc=yes ! 20572: else ! 20573: echo "$as_me: failed program was:" >&5 ! 20574: sed 's/^/| /' conftest.$ac_ext >&5 ! 20575: ! 20576: ac_header_preproc=no ! 20577: fi ! 20578: rm -f conftest.err conftest.$ac_ext ! 20579: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 20580: echo "${ECHO_T}$ac_header_preproc" >&6 ! 20581: ! 20582: # So? What about this header? ! 20583: case $ac_header_compiler:$ac_header_preproc in ! 20584: yes:no ) ! 20585: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 20586: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 20587: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 20588: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 20589: ( ! 20590: cat <<\_ASBOX ! 20591: ## ------------------------------------ ## ! 20592: ## Report this to [email protected]. ## ! 20593: ## ------------------------------------ ## ! 20594: _ASBOX ! 20595: ) | ! 20596: sed "s/^/$as_me: WARNING: /" >&2 ! 20597: ;; ! 20598: no:yes ) ! 20599: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 20600: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 20601: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 20602: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 20603: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 20604: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ! 20605: ( ! 20606: cat <<\_ASBOX ! 20607: ## ------------------------------------ ## ! 20608: ## Report this to [email protected]. ## ! 20609: ## ------------------------------------ ## ! 20610: _ASBOX ! 20611: ) | ! 20612: sed "s/^/$as_me: WARNING: /" >&2 ! 20613: ;; ! 20614: esac ! 20615: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 20616: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 20617: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 20618: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20619: else ! 20620: eval "$as_ac_Header=$ac_header_preproc" ! 20621: fi ! 20622: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 20623: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 20624: ! 20625: fi ! 20626: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 20627: cat >>confdefs.h <<_ACEOF ! 20628: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 20629: _ACEOF ! 20630: break ! 20631: fi ! 20632: ! 20633: done ! 20634: ! 20635: ! 20636: ! 20637: ! 20638: for ac_func in strchr index ! 20639: do ! 20640: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 20641: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 20642: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 20643: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 20644: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20645: else ! 20646: cat >conftest.$ac_ext <<_ACEOF ! 20647: #line $LINENO "configure" ! 20648: /* confdefs.h. */ ! 20649: _ACEOF ! 20650: cat confdefs.h >>conftest.$ac_ext ! 20651: cat >>conftest.$ac_ext <<_ACEOF ! 20652: /* end confdefs.h. */ ! 20653: /* System header to define __stub macros and hopefully few prototypes, ! 20654: which can conflict with char $ac_func (); below. ! 20655: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 20656: <limits.h> exists even on freestanding compilers. */ ! 20657: #ifdef __STDC__ ! 20658: # include <limits.h> ! 20659: #else ! 20660: # include <assert.h> ! 20661: #endif ! 20662: /* Override any gcc2 internal prototype to avoid an error. */ ! 20663: #ifdef __cplusplus ! 20664: extern "C" ! 20665: { ! 20666: #endif ! 20667: /* We use char because int might match the return type of a gcc2 ! 20668: builtin and then its argument prototype would still apply. */ ! 20669: char $ac_func (); ! 20670: /* The GNU C library defines this for functions which it implements ! 20671: to always fail with ENOSYS. Some functions are actually named ! 20672: something starting with __ and the normal name is an alias. */ ! 20673: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 20674: choke me ! 20675: #else ! 20676: char (*f) () = $ac_func; ! 20677: #endif ! 20678: #ifdef __cplusplus ! 20679: } ! 20680: #endif ! 20681: ! 20682: int ! 20683: main () ! 20684: { ! 20685: return f != $ac_func; ! 20686: ; ! 20687: return 0; ! 20688: } ! 20689: _ACEOF ! 20690: rm -f conftest.$ac_objext conftest$ac_exeext ! 20691: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20692: (eval $ac_link) 2>&5 ! 20693: ac_status=$? ! 20694: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20695: (exit $ac_status); } && ! 20696: { ac_try='test -s conftest$ac_exeext' ! 20697: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20698: (eval $ac_try) 2>&5 ! 20699: ac_status=$? ! 20700: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20701: (exit $ac_status); }; }; then ! 20702: eval "$as_ac_var=yes" ! 20703: else ! 20704: echo "$as_me: failed program was:" >&5 ! 20705: sed 's/^/| /' conftest.$ac_ext >&5 ! 20706: ! 20707: eval "$as_ac_var=no" ! 20708: fi ! 20709: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20710: fi ! 20711: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 20712: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 20713: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 20714: cat >>confdefs.h <<_ACEOF ! 20715: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 20716: _ACEOF ! 20717: break ! 20718: fi ! 20719: done ! 20720: ! 20721: ! 20722: ! 20723: for ac_func in strrchr rindex ! 20724: do ! 20725: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 20726: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 20727: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 20728: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 20729: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20730: else ! 20731: cat >conftest.$ac_ext <<_ACEOF ! 20732: #line $LINENO "configure" ! 20733: /* confdefs.h. */ ! 20734: _ACEOF ! 20735: cat confdefs.h >>conftest.$ac_ext ! 20736: cat >>conftest.$ac_ext <<_ACEOF ! 20737: /* end confdefs.h. */ ! 20738: /* System header to define __stub macros and hopefully few prototypes, ! 20739: which can conflict with char $ac_func (); below. ! 20740: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 20741: <limits.h> exists even on freestanding compilers. */ ! 20742: #ifdef __STDC__ ! 20743: # include <limits.h> ! 20744: #else ! 20745: # include <assert.h> ! 20746: #endif ! 20747: /* Override any gcc2 internal prototype to avoid an error. */ ! 20748: #ifdef __cplusplus ! 20749: extern "C" ! 20750: { ! 20751: #endif ! 20752: /* We use char because int might match the return type of a gcc2 ! 20753: builtin and then its argument prototype would still apply. */ ! 20754: char $ac_func (); ! 20755: /* The GNU C library defines this for functions which it implements ! 20756: to always fail with ENOSYS. Some functions are actually named ! 20757: something starting with __ and the normal name is an alias. */ ! 20758: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 20759: choke me ! 20760: #else ! 20761: char (*f) () = $ac_func; ! 20762: #endif ! 20763: #ifdef __cplusplus ! 20764: } ! 20765: #endif ! 20766: ! 20767: int ! 20768: main () ! 20769: { ! 20770: return f != $ac_func; ! 20771: ; ! 20772: return 0; ! 20773: } ! 20774: _ACEOF ! 20775: rm -f conftest.$ac_objext conftest$ac_exeext ! 20776: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20777: (eval $ac_link) 2>&5 ! 20778: ac_status=$? ! 20779: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20780: (exit $ac_status); } && ! 20781: { ac_try='test -s conftest$ac_exeext' ! 20782: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20783: (eval $ac_try) 2>&5 ! 20784: ac_status=$? ! 20785: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20786: (exit $ac_status); }; }; then ! 20787: eval "$as_ac_var=yes" ! 20788: else ! 20789: echo "$as_me: failed program was:" >&5 ! 20790: sed 's/^/| /' conftest.$ac_ext >&5 ! 20791: ! 20792: eval "$as_ac_var=no" ! 20793: fi ! 20794: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20795: fi ! 20796: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 20797: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 20798: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 20799: cat >>confdefs.h <<_ACEOF ! 20800: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 20801: _ACEOF ! 20802: break ! 20803: fi ! 20804: done ! 20805: ! 20806: ! 20807: ! 20808: for ac_func in memcpy bcopy ! 20809: do ! 20810: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 20811: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 20812: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 20813: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 20814: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20815: else ! 20816: cat >conftest.$ac_ext <<_ACEOF ! 20817: #line $LINENO "configure" ! 20818: /* confdefs.h. */ ! 20819: _ACEOF ! 20820: cat confdefs.h >>conftest.$ac_ext ! 20821: cat >>conftest.$ac_ext <<_ACEOF ! 20822: /* end confdefs.h. */ ! 20823: /* System header to define __stub macros and hopefully few prototypes, ! 20824: which can conflict with char $ac_func (); below. ! 20825: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 20826: <limits.h> exists even on freestanding compilers. */ ! 20827: #ifdef __STDC__ ! 20828: # include <limits.h> ! 20829: #else ! 20830: # include <assert.h> ! 20831: #endif ! 20832: /* Override any gcc2 internal prototype to avoid an error. */ ! 20833: #ifdef __cplusplus ! 20834: extern "C" ! 20835: { ! 20836: #endif ! 20837: /* We use char because int might match the return type of a gcc2 ! 20838: builtin and then its argument prototype would still apply. */ ! 20839: char $ac_func (); ! 20840: /* The GNU C library defines this for functions which it implements ! 20841: to always fail with ENOSYS. Some functions are actually named ! 20842: something starting with __ and the normal name is an alias. */ ! 20843: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 20844: choke me ! 20845: #else ! 20846: char (*f) () = $ac_func; ! 20847: #endif ! 20848: #ifdef __cplusplus ! 20849: } ! 20850: #endif ! 20851: ! 20852: int ! 20853: main () ! 20854: { ! 20855: return f != $ac_func; ! 20856: ; ! 20857: return 0; ! 20858: } ! 20859: _ACEOF ! 20860: rm -f conftest.$ac_objext conftest$ac_exeext ! 20861: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20862: (eval $ac_link) 2>&5 ! 20863: ac_status=$? ! 20864: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20865: (exit $ac_status); } && ! 20866: { ac_try='test -s conftest$ac_exeext' ! 20867: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20868: (eval $ac_try) 2>&5 ! 20869: ac_status=$? ! 20870: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20871: (exit $ac_status); }; }; then ! 20872: eval "$as_ac_var=yes" ! 20873: else ! 20874: echo "$as_me: failed program was:" >&5 ! 20875: sed 's/^/| /' conftest.$ac_ext >&5 ! 20876: ! 20877: eval "$as_ac_var=no" ! 20878: fi ! 20879: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20880: fi ! 20881: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 20882: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 20883: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 20884: cat >>confdefs.h <<_ACEOF ! 20885: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 20886: _ACEOF ! 20887: break ! 20888: fi ! 20889: done ! 20890: ! 20891: ! 20892: ! 20893: for ac_func in memmove strcmp ! 20894: do ! 20895: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 20896: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 20897: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 20898: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 20899: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20900: else ! 20901: cat >conftest.$ac_ext <<_ACEOF ! 20902: #line $LINENO "configure" ! 20903: /* confdefs.h. */ ! 20904: _ACEOF ! 20905: cat confdefs.h >>conftest.$ac_ext ! 20906: cat >>conftest.$ac_ext <<_ACEOF ! 20907: /* end confdefs.h. */ ! 20908: /* System header to define __stub macros and hopefully few prototypes, ! 20909: which can conflict with char $ac_func (); below. ! 20910: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 20911: <limits.h> exists even on freestanding compilers. */ ! 20912: #ifdef __STDC__ ! 20913: # include <limits.h> ! 20914: #else ! 20915: # include <assert.h> ! 20916: #endif ! 20917: /* Override any gcc2 internal prototype to avoid an error. */ ! 20918: #ifdef __cplusplus ! 20919: extern "C" ! 20920: { ! 20921: #endif ! 20922: /* We use char because int might match the return type of a gcc2 ! 20923: builtin and then its argument prototype would still apply. */ ! 20924: char $ac_func (); ! 20925: /* The GNU C library defines this for functions which it implements ! 20926: to always fail with ENOSYS. Some functions are actually named ! 20927: something starting with __ and the normal name is an alias. */ ! 20928: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 20929: choke me ! 20930: #else ! 20931: char (*f) () = $ac_func; ! 20932: #endif ! 20933: #ifdef __cplusplus ! 20934: } ! 20935: #endif ! 20936: ! 20937: int ! 20938: main () ! 20939: { ! 20940: return f != $ac_func; ! 20941: ; ! 20942: return 0; ! 20943: } ! 20944: _ACEOF ! 20945: rm -f conftest.$ac_objext conftest$ac_exeext ! 20946: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 20947: (eval $ac_link) 2>&5 ! 20948: ac_status=$? ! 20949: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20950: (exit $ac_status); } && ! 20951: { ac_try='test -s conftest$ac_exeext' ! 20952: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 20953: (eval $ac_try) 2>&5 ! 20954: ac_status=$? ! 20955: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 20956: (exit $ac_status); }; }; then ! 20957: eval "$as_ac_var=yes" ! 20958: else ! 20959: echo "$as_me: failed program was:" >&5 ! 20960: sed 's/^/| /' conftest.$ac_ext >&5 ! 20961: ! 20962: eval "$as_ac_var=no" ! 20963: fi ! 20964: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 20965: fi ! 20966: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 20967: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 20968: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 20969: cat >>confdefs.h <<_ACEOF ! 20970: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 20971: _ACEOF ! 20972: ! 20973: fi ! 20974: done ! 20975: ! 20976: ! 20977: ! 20978: ! 20979: for ac_func in closedir opendir readdir ! 20980: do ! 20981: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 20982: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 20983: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 20984: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 20985: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 20986: else ! 20987: cat >conftest.$ac_ext <<_ACEOF ! 20988: #line $LINENO "configure" ! 20989: /* confdefs.h. */ ! 20990: _ACEOF ! 20991: cat confdefs.h >>conftest.$ac_ext ! 20992: cat >>conftest.$ac_ext <<_ACEOF ! 20993: /* end confdefs.h. */ ! 20994: /* System header to define __stub macros and hopefully few prototypes, ! 20995: which can conflict with char $ac_func (); below. ! 20996: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since ! 20997: <limits.h> exists even on freestanding compilers. */ ! 20998: #ifdef __STDC__ ! 20999: # include <limits.h> ! 21000: #else ! 21001: # include <assert.h> ! 21002: #endif ! 21003: /* Override any gcc2 internal prototype to avoid an error. */ ! 21004: #ifdef __cplusplus ! 21005: extern "C" ! 21006: { ! 21007: #endif ! 21008: /* We use char because int might match the return type of a gcc2 ! 21009: builtin and then its argument prototype would still apply. */ ! 21010: char $ac_func (); ! 21011: /* The GNU C library defines this for functions which it implements ! 21012: to always fail with ENOSYS. Some functions are actually named ! 21013: something starting with __ and the normal name is an alias. */ ! 21014: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 21015: choke me ! 21016: #else ! 21017: char (*f) () = $ac_func; ! 21018: #endif ! 21019: #ifdef __cplusplus ! 21020: } ! 21021: #endif ! 21022: ! 21023: int ! 21024: main () ! 21025: { ! 21026: return f != $ac_func; ! 21027: ; ! 21028: return 0; ! 21029: } ! 21030: _ACEOF ! 21031: rm -f conftest.$ac_objext conftest$ac_exeext ! 21032: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 21033: (eval $ac_link) 2>&5 ! 21034: ac_status=$? ! 21035: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 21036: (exit $ac_status); } && ! 21037: { ac_try='test -s conftest$ac_exeext' ! 21038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 21039: (eval $ac_try) 2>&5 ! 21040: ac_status=$? ! 21041: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 21042: (exit $ac_status); }; }; then ! 21043: eval "$as_ac_var=yes" ! 21044: else ! 21045: echo "$as_me: failed program was:" >&5 ! 21046: sed 's/^/| /' conftest.$ac_ext >&5 ! 21047: ! 21048: eval "$as_ac_var=no" ! 21049: fi ! 21050: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 21051: fi ! 21052: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 21053: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 21054: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 21055: cat >>confdefs.h <<_ACEOF ! 21056: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 21057: _ACEOF ! 21058: ! 21059: fi ! 21060: done ! 21061: ! 21062: ! 21063: ! 21064: ! 21065: ## -------- ## ! 21066: ## Outputs. ## ! 21067: ## -------- ## ! 21068: ac_config_files="$ac_config_files Makefile" ! 21069: ! 21070: cat >confcache <<\_ACEOF ! 21071: # This file is a shell script that caches the results of configure ! 21072: # tests run on this system so they can be shared between configure ! 21073: # scripts and configure runs, see configure's option --config-cache. ! 21074: # It is not useful on other systems. If it contains results you don't ! 21075: # want to keep, you may remove or edit it. ! 21076: # ! 21077: # config.status only pays attention to the cache file if you give it ! 21078: # the --recheck option to rerun configure. ! 21079: # ! 21080: # `ac_cv_env_foo' variables (set or unset) will be overridden when ! 21081: # loading this file, other *unset* `ac_cv_foo' will be assigned the ! 21082: # following values. ! 21083: ! 21084: _ACEOF ! 21085: ! 21086: # The following way of writing the cache mishandles newlines in values, ! 21087: # but we know of no workaround that is simple, portable, and efficient. ! 21088: # So, don't put newlines in cache variables' values. ! 21089: # Ultrix sh set writes to stderr and can't be redirected directly, ! 21090: # and sets the high bit in the cache file unless we assign to the vars. ! 21091: { ! 21092: (set) 2>&1 | ! 21093: case `(ac_space=' '; set | grep ac_space) 2>&1` in ! 21094: *ac_space=\ *) ! 21095: # `set' does not quote correctly, so add quotes (double-quote ! 21096: # substitution turns \\\\ into \\, and sed turns \\ into \). ! 21097: sed -n \ ! 21098: "s/'/'\\\\''/g; ! 21099: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ! 21100: ;; ! 21101: *) ! 21102: # `set' quotes correctly as required by POSIX, so do not add quotes. ! 21103: sed -n \ ! 21104: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ! 21105: ;; ! 21106: esac; ! 21107: } | ! 21108: sed ' ! 21109: t clear ! 21110: : clear ! 21111: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ! 21112: t end ! 21113: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ! 21114: : end' >>confcache ! 21115: if diff $cache_file confcache >/dev/null 2>&1; then :; else ! 21116: if test -w $cache_file; then ! 21117: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" ! 21118: cat confcache >$cache_file ! 21119: else ! 21120: echo "not updating unwritable cache $cache_file" ! 21121: fi ! 21122: fi ! 21123: rm -f confcache ! 21124: ! 21125: test "x$prefix" = xNONE && prefix=$ac_default_prefix ! 21126: # Let make expand exec_prefix. ! 21127: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ! 21128: ! 21129: # VPATH may cause trouble with some makes, so we remove $(srcdir), ! 21130: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and ! 21131: # trailing colons and then remove the whole line if VPATH becomes empty ! 21132: # (actually we leave an empty line to preserve line numbers). ! 21133: if test "x$srcdir" = x.; then ! 21134: ac_vpsub='/^[ ]*VPATH[ ]*=/{ ! 21135: s/:*\$(srcdir):*/:/; ! 21136: s/:*\${srcdir}:*/:/; ! 21137: s/:*@srcdir@:*/:/; ! 21138: s/^\([^=]*=[ ]*\):*/\1/; ! 21139: s/:*$//; ! 21140: s/^[^=]*=[ ]*$//; ! 21141: }' ! 21142: fi ! 21143: ! 21144: DEFS=-DHAVE_CONFIG_H ! 21145: ! 21146: ac_libobjs= ! 21147: ac_ltlibobjs= ! 21148: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue ! 21149: # 1. Remove the extension, and $U if already installed. ! 21150: ac_i=`echo "$ac_i" | ! 21151: sed 's/\$U\././;s/\.o$//;s/\.obj$//'` ! 21152: # 2. Add them. ! 21153: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ! 21154: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' ! 21155: done ! 21156: LIBOBJS=$ac_libobjs ! 21157: ! 21158: LTLIBOBJS=$ac_ltlibobjs ! 21159: ! 21160: ! 21161: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then ! 21162: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. ! 21163: Usually this means the macro was only invoked conditionally." >&5 ! 21164: echo "$as_me: error: conditional \"AMDEP\" was never defined. ! 21165: Usually this means the macro was only invoked conditionally." >&2;} ! 21166: { (exit 1); exit 1; }; } ! 21167: fi ! 21168: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then ! 21169: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. ! 21170: Usually this means the macro was only invoked conditionally." >&5 ! 21171: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. ! 21172: Usually this means the macro was only invoked conditionally." >&2;} ! 21173: { (exit 1); exit 1; }; } ! 21174: fi ! 21175: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then ! 21176: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. ! 21177: Usually this means the macro was only invoked conditionally." >&5 ! 21178: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. ! 21179: Usually this means the macro was only invoked conditionally." >&2;} ! 21180: { (exit 1); exit 1; }; } ! 21181: fi ! 21182: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then ! 21183: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. ! 21184: Usually this means the macro was only invoked conditionally." >&5 ! 21185: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. ! 21186: Usually this means the macro was only invoked conditionally." >&2;} ! 21187: { (exit 1); exit 1; }; } ! 21188: fi ! 21189: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then ! 21190: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. ! 21191: Usually this means the macro was only invoked conditionally." >&5 ! 21192: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. ! 21193: Usually this means the macro was only invoked conditionally." >&2;} ! 21194: { (exit 1); exit 1; }; } ! 21195: fi ! 21196: ! 21197: : ${CONFIG_STATUS=./config.status} ! 21198: ac_clean_files_save=$ac_clean_files ! 21199: ac_clean_files="$ac_clean_files $CONFIG_STATUS" ! 21200: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ! 21201: echo "$as_me: creating $CONFIG_STATUS" >&6;} ! 21202: cat >$CONFIG_STATUS <<_ACEOF ! 21203: #! $SHELL ! 21204: # Generated by $as_me. ! 21205: # Run this file to recreate the current configuration. ! 21206: # Compiler output produced by configure, useful for debugging ! 21207: # configure, is in config.log if it exists. ! 21208: ! 21209: debug=false ! 21210: ac_cs_recheck=false ! 21211: ac_cs_silent=false ! 21212: SHELL=\${CONFIG_SHELL-$SHELL} ! 21213: _ACEOF ! 21214: ! 21215: cat >>$CONFIG_STATUS <<\_ACEOF ! 21216: ## --------------------- ## ! 21217: ## M4sh Initialization. ## ! 21218: ## --------------------- ## ! 21219: ! 21220: # Be Bourne compatible ! 21221: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! 21222: emulate sh ! 21223: NULLCMD=: ! 21224: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ! 21225: # is contrary to our usage. Disable this feature. ! 21226: alias -g '${1+"$@"}'='"$@"' ! 21227: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ! 21228: set -o posix ! 21229: fi ! 21230: ! 21231: # Support unset when possible. ! 21232: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then ! 21233: as_unset=unset ! 21234: else ! 21235: as_unset=false ! 21236: fi ! 21237: ! 21238: ! 21239: # Work around bugs in pre-3.0 UWIN ksh. ! 21240: $as_unset ENV MAIL MAILPATH ! 21241: PS1='$ ' ! 21242: PS2='> ' ! 21243: PS4='+ ' ! 21244: ! 21245: # NLS nuisances. ! 21246: for as_var in \ ! 21247: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ! 21248: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ! 21249: LC_TELEPHONE LC_TIME ! 21250: do ! 21251: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then ! 21252: eval $as_var=C; export $as_var ! 21253: else ! 21254: $as_unset $as_var ! 21255: fi ! 21256: done ! 21257: ! 21258: # Required to use basename. ! 21259: if expr a : '\(a\)' >/dev/null 2>&1; then ! 21260: as_expr=expr ! 21261: else ! 21262: as_expr=false ! 21263: fi ! 21264: ! 21265: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ! 21266: as_basename=basename ! 21267: else ! 21268: as_basename=false ! 21269: fi ! 21270: ! 21271: ! 21272: # Name of the executable. ! 21273: as_me=`$as_basename "$0" || ! 21274: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! 21275: X"$0" : 'X\(//\)$' \| \ ! 21276: X"$0" : 'X\(/\)$' \| \ ! 21277: . : '\(.\)' 2>/dev/null || ! 21278: echo X/"$0" | ! 21279: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ! 21280: /^X\/\(\/\/\)$/{ s//\1/; q; } ! 21281: /^X\/\(\/\).*/{ s//\1/; q; } ! 21282: s/.*/./; q'` ! 21283: ! 21284: ! 21285: # PATH needs CR, and LINENO needs CR and PATH. ! 21286: # Avoid depending upon Character Ranges. ! 21287: as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! 21288: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! 21289: as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! 21290: as_cr_digits='0123456789' ! 21291: as_cr_alnum=$as_cr_Letters$as_cr_digits ! 21292: ! 21293: # The user is always right. ! 21294: if test "${PATH_SEPARATOR+set}" != set; then ! 21295: echo "#! /bin/sh" >conf$$.sh ! 21296: echo "exit 0" >>conf$$.sh ! 21297: chmod +x conf$$.sh ! 21298: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ! 21299: PATH_SEPARATOR=';' ! 21300: else ! 21301: PATH_SEPARATOR=: ! 21302: fi ! 21303: rm -f conf$$.sh ! 21304: fi ! 21305: ! 21306: ! 21307: as_lineno_1=$LINENO ! 21308: as_lineno_2=$LINENO ! 21309: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 21310: test "x$as_lineno_1" != "x$as_lineno_2" && ! 21311: test "x$as_lineno_3" = "x$as_lineno_2" || { ! 21312: # Find who we are. Look in the path if we contain no path at all ! 21313: # relative or not. ! 21314: case $0 in ! 21315: *[\\/]* ) as_myself=$0 ;; ! 21316: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 21317: for as_dir in $PATH ! 21318: do ! 21319: IFS=$as_save_IFS ! 21320: test -z "$as_dir" && as_dir=. ! 21321: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! 21322: done ! 21323: ! 21324: ;; ! 21325: esac ! 21326: # We did not find ourselves, most probably we were run as `sh COMMAND' ! 21327: # in which case we are not to be found in the path. ! 21328: if test "x$as_myself" = x; then ! 21329: as_myself=$0 ! 21330: fi ! 21331: if test ! -f "$as_myself"; then ! 21332: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 ! 21333: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} ! 21334: { (exit 1); exit 1; }; } ! 21335: fi ! 21336: case $CONFIG_SHELL in ! 21337: '') ! 21338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 21339: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ! 21340: do ! 21341: IFS=$as_save_IFS ! 21342: test -z "$as_dir" && as_dir=. ! 21343: for as_base in sh bash ksh sh5; do ! 21344: case $as_dir in ! 21345: /*) ! 21346: if ("$as_dir/$as_base" -c ' ! 21347: as_lineno_1=$LINENO ! 21348: as_lineno_2=$LINENO ! 21349: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 21350: test "x$as_lineno_1" != "x$as_lineno_2" && ! 21351: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ! 21352: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } ! 21353: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } ! 21354: CONFIG_SHELL=$as_dir/$as_base ! 21355: export CONFIG_SHELL ! 21356: exec "$CONFIG_SHELL" "$0" ${1+"$@"} ! 21357: fi;; ! 21358: esac ! 21359: done ! 21360: done ! 21361: ;; ! 21362: esac ! 21363: ! 21364: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! 21365: # uniformly replaced by the line number. The first 'sed' inserts a ! 21366: # line-number line before each line; the second 'sed' does the real ! 21367: # work. The second script uses 'N' to pair each line-number line ! 21368: # with the numbered line, and appends trailing '-' during ! 21369: # substitution so that $LINENO is not a special case at line end. ! 21370: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! 21371: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ! 21372: sed '=' <$as_myself | ! 21373: sed ' ! 21374: N ! 21375: s,$,-, ! 21376: : loop ! 21377: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ! 21378: t loop ! 21379: s,-$,, ! 21380: s,^['$as_cr_digits']*\n,, ! 21381: ' >$as_me.lineno && ! 21382: chmod +x $as_me.lineno || ! 21383: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 ! 21384: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} ! 21385: { (exit 1); exit 1; }; } ! 21386: ! 21387: # Don't try to exec as it changes $[0], causing all sort of problems ! 21388: # (the dirname of $[0] is not the place where we might find the ! 21389: # original and so on. Autoconf is especially sensible to this). ! 21390: . ./$as_me.lineno ! 21391: # Exit status is that of the last command. ! 21392: exit ! 21393: } ! 21394: ! 21395: ! 21396: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ! 21397: *c*,-n*) ECHO_N= ECHO_C=' ! 21398: ' ECHO_T=' ' ;; ! 21399: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ! 21400: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ! 21401: esac ! 21402: ! 21403: if expr a : '\(a\)' >/dev/null 2>&1; then ! 21404: as_expr=expr ! 21405: else ! 21406: as_expr=false ! 21407: fi ! 21408: ! 21409: rm -f conf$$ conf$$.exe conf$$.file ! 21410: echo >conf$$.file ! 21411: if ln -s conf$$.file conf$$ 2>/dev/null; then ! 21412: # We could just check for DJGPP; but this test a) works b) is more generic ! 21413: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ! 21414: if test -f conf$$.exe; then ! 21415: # Don't use ln at all; we don't have any links ! 21416: as_ln_s='cp -p' ! 21417: else ! 21418: as_ln_s='ln -s' ! 21419: fi ! 21420: elif ln conf$$.file conf$$ 2>/dev/null; then ! 21421: as_ln_s=ln ! 21422: else ! 21423: as_ln_s='cp -p' ! 21424: fi ! 21425: rm -f conf$$ conf$$.exe conf$$.file ! 21426: ! 21427: if mkdir -p . 2>/dev/null; then ! 21428: as_mkdir_p=: ! 21429: else ! 21430: as_mkdir_p=false ! 21431: fi ! 21432: ! 21433: as_executable_p="test -f" ! 21434: ! 21435: # Sed expression to map a string onto a valid CPP name. ! 21436: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" ! 21437: ! 21438: # Sed expression to map a string onto a valid variable name. ! 21439: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" ! 21440: ! 21441: ! 21442: # IFS ! 21443: # We need space, tab and new line, in precisely that order. ! 21444: as_nl=' ! 21445: ' ! 21446: IFS=" $as_nl" ! 21447: ! 21448: # CDPATH. ! 21449: $as_unset CDPATH ! 21450: ! 21451: exec 6>&1 ! 21452: ! 21453: # Open the log real soon, to keep \$[0] and so on meaningful, and to ! 21454: # report actual input values of CONFIG_FILES etc. instead of their ! 21455: # values after options handling. Logging --version etc. is OK. ! 21456: exec 5>>config.log ! 21457: { ! 21458: echo ! 21459: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ! 21460: ## Running $as_me. ## ! 21461: _ASBOX ! 21462: } >&5 ! 21463: cat >&5 <<_CSEOF ! 21464: ! 21465: This file was extended by libltdl $as_me 1.2, which was ! 21466: generated by GNU Autoconf 2.57. Invocation command line was ! 21467: ! 21468: CONFIG_FILES = $CONFIG_FILES ! 21469: CONFIG_HEADERS = $CONFIG_HEADERS ! 21470: CONFIG_LINKS = $CONFIG_LINKS ! 21471: CONFIG_COMMANDS = $CONFIG_COMMANDS ! 21472: $ $0 $@ ! 21473: ! 21474: _CSEOF ! 21475: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 ! 21476: echo >&5 ! 21477: _ACEOF ! 21478: ! 21479: # Files that config.status was made for. ! 21480: if test -n "$ac_config_files"; then ! 21481: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS ! 21482: fi ! 21483: ! 21484: if test -n "$ac_config_headers"; then ! 21485: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS ! 21486: fi ! 21487: ! 21488: if test -n "$ac_config_links"; then ! 21489: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS ! 21490: fi ! 21491: ! 21492: if test -n "$ac_config_commands"; then ! 21493: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS ! 21494: fi ! 21495: ! 21496: cat >>$CONFIG_STATUS <<\_ACEOF ! 21497: ! 21498: ac_cs_usage="\ ! 21499: \`$as_me' instantiates files from templates according to the ! 21500: current configuration. ! 21501: ! 21502: Usage: $0 [OPTIONS] [FILE]... ! 21503: ! 21504: -h, --help print this help, then exit ! 21505: -V, --version print version number, then exit ! 21506: -q, --quiet do not print progress messages ! 21507: -d, --debug don't remove temporary files ! 21508: --recheck update $as_me by reconfiguring in the same conditions ! 21509: --file=FILE[:TEMPLATE] ! 21510: instantiate the configuration file FILE ! 21511: --header=FILE[:TEMPLATE] ! 21512: instantiate the configuration header FILE ! 21513: ! 21514: Configuration files: ! 21515: $config_files ! 21516: ! 21517: Configuration headers: ! 21518: $config_headers ! 21519: ! 21520: Configuration commands: ! 21521: $config_commands ! 21522: ! 21523: Report bugs to <[email protected]>." ! 21524: _ACEOF ! 21525: ! 21526: cat >>$CONFIG_STATUS <<_ACEOF ! 21527: ac_cs_version="\\ ! 21528: libltdl config.status 1.2 ! 21529: configured by $0, generated by GNU Autoconf 2.57, ! 21530: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" ! 21531: ! 21532: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 ! 21533: Free Software Foundation, Inc. ! 21534: This config.status script is free software; the Free Software Foundation ! 21535: gives unlimited permission to copy, distribute and modify it." ! 21536: srcdir=$srcdir ! 21537: INSTALL="$INSTALL" ! 21538: _ACEOF ! 21539: ! 21540: cat >>$CONFIG_STATUS <<\_ACEOF ! 21541: # If no file are specified by the user, then we need to provide default ! 21542: # value. By we need to know if files were specified by the user. ! 21543: ac_need_defaults=: ! 21544: while test $# != 0 ! 21545: do ! 21546: case $1 in ! 21547: --*=*) ! 21548: ac_option=`expr "x$1" : 'x\([^=]*\)='` ! 21549: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ! 21550: ac_shift=: ! 21551: ;; ! 21552: -*) ! 21553: ac_option=$1 ! 21554: ac_optarg=$2 ! 21555: ac_shift=shift ! 21556: ;; ! 21557: *) # This is not an option, so the user has probably given explicit ! 21558: # arguments. ! 21559: ac_option=$1 ! 21560: ac_need_defaults=false;; ! 21561: esac ! 21562: ! 21563: case $ac_option in ! 21564: # Handling of the options. ! 21565: _ACEOF ! 21566: cat >>$CONFIG_STATUS <<\_ACEOF ! 21567: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! 21568: ac_cs_recheck=: ;; ! 21569: --version | --vers* | -V ) ! 21570: echo "$ac_cs_version"; exit 0 ;; ! 21571: --he | --h) ! 21572: # Conflict between --help and --header ! 21573: { { echo "$as_me:$LINENO: error: ambiguous option: $1 ! 21574: Try \`$0 --help' for more information." >&5 ! 21575: echo "$as_me: error: ambiguous option: $1 ! 21576: Try \`$0 --help' for more information." >&2;} ! 21577: { (exit 1); exit 1; }; };; ! 21578: --help | --hel | -h ) ! 21579: echo "$ac_cs_usage"; exit 0 ;; ! 21580: --debug | --d* | -d ) ! 21581: debug=: ;; ! 21582: --file | --fil | --fi | --f ) ! 21583: $ac_shift ! 21584: CONFIG_FILES="$CONFIG_FILES $ac_optarg" ! 21585: ac_need_defaults=false;; ! 21586: --header | --heade | --head | --hea ) ! 21587: $ac_shift ! 21588: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ! 21589: ac_need_defaults=false;; ! 21590: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 21591: | -silent | --silent | --silen | --sile | --sil | --si | --s) ! 21592: ac_cs_silent=: ;; ! 21593: ! 21594: # This is an error. ! 21595: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 ! 21596: Try \`$0 --help' for more information." >&5 ! 21597: echo "$as_me: error: unrecognized option: $1 ! 21598: Try \`$0 --help' for more information." >&2;} ! 21599: { (exit 1); exit 1; }; } ;; ! 21600: ! 21601: *) ac_config_targets="$ac_config_targets $1" ;; ! 21602: ! 21603: esac ! 21604: shift ! 21605: done ! 21606: ! 21607: ac_configure_extra_args= ! 21608: ! 21609: if $ac_cs_silent; then ! 21610: exec 6>/dev/null ! 21611: ac_configure_extra_args="$ac_configure_extra_args --silent" ! 21612: fi ! 21613: ! 21614: _ACEOF ! 21615: cat >>$CONFIG_STATUS <<_ACEOF ! 21616: if \$ac_cs_recheck; then ! 21617: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ! 21618: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ! 21619: fi ! 21620: ! 21621: _ACEOF ! 21622: ! 21623: cat >>$CONFIG_STATUS <<_ACEOF ! 21624: # ! 21625: # INIT-COMMANDS section. ! 21626: # ! 21627: ! 21628: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" ! 21629: ! 21630: _ACEOF ! 21631: ! 21632: ! 21633: ! 21634: cat >>$CONFIG_STATUS <<\_ACEOF ! 21635: for ac_config_target in $ac_config_targets ! 21636: do ! 21637: case "$ac_config_target" in ! 21638: # Handling of arguments. ! 21639: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; ! 21640: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; ! 21641: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; ! 21642: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ! 21643: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ! 21644: { (exit 1); exit 1; }; };; ! 21645: esac ! 21646: done ! 21647: ! 21648: # If the user did not use the arguments to specify the items to instantiate, ! 21649: # then the envvar interface is used. Set only those that are not. ! 21650: # We use the long form for the default assignment because of an extremely ! 21651: # bizarre bug on SunOS 4.1.3. ! 21652: if $ac_need_defaults; then ! 21653: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ! 21654: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers ! 21655: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands ! 21656: fi ! 21657: ! 21658: # Have a temporary directory for convenience. Make it in the build tree ! 21659: # simply because there is no reason to put it here, and in addition, ! 21660: # creating and moving files from /tmp can sometimes cause problems. ! 21661: # Create a temporary directory, and hook for its removal unless debugging. ! 21662: $debug || ! 21663: { ! 21664: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 ! 21665: trap '{ (exit 1); exit 1; }' 1 2 13 15 ! 21666: } ! 21667: ! 21668: # Create a (secure) tmp directory for tmp files. ! 21669: ! 21670: { ! 21671: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && ! 21672: test -n "$tmp" && test -d "$tmp" ! 21673: } || ! 21674: { ! 21675: tmp=./confstat$$-$RANDOM ! 21676: (umask 077 && mkdir $tmp) ! 21677: } || ! 21678: { ! 21679: echo "$me: cannot create a temporary directory in ." >&2 ! 21680: { (exit 1); exit 1; } ! 21681: } ! 21682: ! 21683: _ACEOF ! 21684: ! 21685: cat >>$CONFIG_STATUS <<_ACEOF ! 21686: ! 21687: # ! 21688: # CONFIG_FILES section. ! 21689: # ! 21690: ! 21691: # No need to generate the scripts if there are no CONFIG_FILES. ! 21692: # This happens for instance when ./config.status config.h ! 21693: if test -n "\$CONFIG_FILES"; then ! 21694: # Protect against being on the right side of a sed subst in config.status. ! 21695: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; ! 21696: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF ! 21697: s,@SHELL@,$SHELL,;t t ! 21698: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t ! 21699: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t ! 21700: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t ! 21701: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t ! 21702: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t ! 21703: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t ! 21704: s,@exec_prefix@,$exec_prefix,;t t ! 21705: s,@prefix@,$prefix,;t t ! 21706: s,@program_transform_name@,$program_transform_name,;t t ! 21707: s,@bindir@,$bindir,;t t ! 21708: s,@sbindir@,$sbindir,;t t ! 21709: s,@libexecdir@,$libexecdir,;t t ! 21710: s,@datadir@,$datadir,;t t ! 21711: s,@sysconfdir@,$sysconfdir,;t t ! 21712: s,@sharedstatedir@,$sharedstatedir,;t t ! 21713: s,@localstatedir@,$localstatedir,;t t ! 21714: s,@libdir@,$libdir,;t t ! 21715: s,@includedir@,$includedir,;t t ! 21716: s,@oldincludedir@,$oldincludedir,;t t ! 21717: s,@infodir@,$infodir,;t t ! 21718: s,@mandir@,$mandir,;t t ! 21719: s,@build_alias@,$build_alias,;t t ! 21720: s,@host_alias@,$host_alias,;t t ! 21721: s,@target_alias@,$target_alias,;t t ! 21722: s,@DEFS@,$DEFS,;t t ! 21723: s,@ECHO_C@,$ECHO_C,;t t ! 21724: s,@ECHO_N@,$ECHO_N,;t t ! 21725: s,@ECHO_T@,$ECHO_T,;t t ! 21726: s,@LIBS@,$LIBS,;t t ! 21727: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t ! 21728: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t ! 21729: s,@INSTALL_DATA@,$INSTALL_DATA,;t t ! 21730: s,@CYGPATH_W@,$CYGPATH_W,;t t ! 21731: s,@PACKAGE@,$PACKAGE,;t t ! 21732: s,@VERSION@,$VERSION,;t t ! 21733: s,@ACLOCAL@,$ACLOCAL,;t t ! 21734: s,@AUTOCONF@,$AUTOCONF,;t t ! 21735: s,@AUTOMAKE@,$AUTOMAKE,;t t ! 21736: s,@AUTOHEADER@,$AUTOHEADER,;t t ! 21737: s,@MAKEINFO@,$MAKEINFO,;t t ! 21738: s,@AMTAR@,$AMTAR,;t t ! 21739: s,@install_sh@,$install_sh,;t t ! 21740: s,@STRIP@,$STRIP,;t t ! 21741: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t ! 21742: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t ! 21743: s,@AWK@,$AWK,;t t ! 21744: s,@SET_MAKE@,$SET_MAKE,;t t ! 21745: s,@am__leading_dot@,$am__leading_dot,;t t ! 21746: s,@CC@,$CC,;t t ! 21747: s,@CFLAGS@,$CFLAGS,;t t ! 21748: s,@LDFLAGS@,$LDFLAGS,;t t ! 21749: s,@CPPFLAGS@,$CPPFLAGS,;t t ! 21750: s,@ac_ct_CC@,$ac_ct_CC,;t t ! 21751: s,@EXEEXT@,$EXEEXT,;t t ! 21752: s,@OBJEXT@,$OBJEXT,;t t ! 21753: s,@DEPDIR@,$DEPDIR,;t t ! 21754: s,@am__include@,$am__include,;t t ! 21755: s,@am__quote@,$am__quote,;t t ! 21756: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t ! 21757: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t ! 21758: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t ! 21759: s,@CCDEPMODE@,$CCDEPMODE,;t t ! 21760: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t ! 21761: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t ! 21762: s,@build@,$build,;t t ! 21763: s,@build_cpu@,$build_cpu,;t t ! 21764: s,@build_vendor@,$build_vendor,;t t ! 21765: s,@build_os@,$build_os,;t t ! 21766: s,@host@,$host,;t t ! 21767: s,@host_cpu@,$host_cpu,;t t ! 21768: s,@host_vendor@,$host_vendor,;t t ! 21769: s,@host_os@,$host_os,;t t ! 21770: s,@EGREP@,$EGREP,;t t ! 21771: s,@LN_S@,$LN_S,;t t ! 21772: s,@ECHO@,$ECHO,;t t ! 21773: s,@AR@,$AR,;t t ! 21774: s,@ac_ct_AR@,$ac_ct_AR,;t t ! 21775: s,@RANLIB@,$RANLIB,;t t ! 21776: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t ! 21777: s,@DLLTOOL@,$DLLTOOL,;t t ! 21778: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t ! 21779: s,@AS@,$AS,;t t ! 21780: s,@ac_ct_AS@,$ac_ct_AS,;t t ! 21781: s,@OBJDUMP@,$OBJDUMP,;t t ! 21782: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t ! 21783: s,@CPP@,$CPP,;t t ! 21784: s,@CXX@,$CXX,;t t ! 21785: s,@CXXFLAGS@,$CXXFLAGS,;t t ! 21786: s,@ac_ct_CXX@,$ac_ct_CXX,;t t ! 21787: s,@CXXDEPMODE@,$CXXDEPMODE,;t t ! 21788: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t ! 21789: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t ! 21790: s,@CXXCPP@,$CXXCPP,;t t ! 21791: s,@F77@,$F77,;t t ! 21792: s,@FFLAGS@,$FFLAGS,;t t ! 21793: s,@ac_ct_F77@,$ac_ct_F77,;t t ! 21794: s,@LIBTOOL@,$LIBTOOL,;t t ! 21795: s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t ! 21796: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t ! 21797: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t ! 21798: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t ! 21799: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t ! 21800: s,@LIBADD_DL@,$LIBADD_DL,;t t ! 21801: s,@LIBOBJS@,$LIBOBJS,;t t ! 21802: s,@LTLIBOBJS@,$LTLIBOBJS,;t t ! 21803: CEOF ! 21804: ! 21805: _ACEOF ! 21806: ! 21807: cat >>$CONFIG_STATUS <<\_ACEOF ! 21808: # Split the substitutions into bite-sized pieces for seds with ! 21809: # small command number limits, like on Digital OSF/1 and HP-UX. ! 21810: ac_max_sed_lines=48 ! 21811: ac_sed_frag=1 # Number of current file. ! 21812: ac_beg=1 # First line for current file. ! 21813: ac_end=$ac_max_sed_lines # Line after last line for current file. ! 21814: ac_more_lines=: ! 21815: ac_sed_cmds= ! 21816: while $ac_more_lines; do ! 21817: if test $ac_beg -gt 1; then ! 21818: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ! 21819: else ! 21820: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ! 21821: fi ! 21822: if test ! -s $tmp/subs.frag; then ! 21823: ac_more_lines=false ! 21824: else ! 21825: # The purpose of the label and of the branching condition is to ! 21826: # speed up the sed processing (if there are no `@' at all, there ! 21827: # is no need to browse any of the substitutions). ! 21828: # These are the two extra sed commands mentioned above. ! 21829: (echo ':t ! 21830: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed ! 21831: if test -z "$ac_sed_cmds"; then ! 21832: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" ! 21833: else ! 21834: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" ! 21835: fi ! 21836: ac_sed_frag=`expr $ac_sed_frag + 1` ! 21837: ac_beg=$ac_end ! 21838: ac_end=`expr $ac_end + $ac_max_sed_lines` ! 21839: fi ! 21840: done ! 21841: if test -z "$ac_sed_cmds"; then ! 21842: ac_sed_cmds=cat ! 21843: fi ! 21844: fi # test -n "$CONFIG_FILES" ! 21845: ! 21846: _ACEOF ! 21847: cat >>$CONFIG_STATUS <<\_ACEOF ! 21848: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue ! 21849: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 21850: case $ac_file in ! 21851: - | *:- | *:-:* ) # input from stdin ! 21852: cat >$tmp/stdin ! 21853: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 21854: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 21855: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 21856: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 21857: * ) ac_file_in=$ac_file.in ;; ! 21858: esac ! 21859: ! 21860: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ! 21861: ac_dir=`(dirname "$ac_file") 2>/dev/null || ! 21862: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 21863: X"$ac_file" : 'X\(//\)[^/]' \| \ ! 21864: X"$ac_file" : 'X\(//\)$' \| \ ! 21865: X"$ac_file" : 'X\(/\)' \| \ ! 21866: . : '\(.\)' 2>/dev/null || ! 21867: echo X"$ac_file" | ! 21868: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 21869: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 21870: /^X\(\/\/\)$/{ s//\1/; q; } ! 21871: /^X\(\/\).*/{ s//\1/; q; } ! 21872: s/.*/./; q'` ! 21873: { if $as_mkdir_p; then ! 21874: mkdir -p "$ac_dir" ! 21875: else ! 21876: as_dir="$ac_dir" ! 21877: as_dirs= ! 21878: while test ! -d "$as_dir"; do ! 21879: as_dirs="$as_dir $as_dirs" ! 21880: as_dir=`(dirname "$as_dir") 2>/dev/null || ! 21881: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 21882: X"$as_dir" : 'X\(//\)[^/]' \| \ ! 21883: X"$as_dir" : 'X\(//\)$' \| \ ! 21884: X"$as_dir" : 'X\(/\)' \| \ ! 21885: . : '\(.\)' 2>/dev/null || ! 21886: echo X"$as_dir" | ! 21887: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 21888: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 21889: /^X\(\/\/\)$/{ s//\1/; q; } ! 21890: /^X\(\/\).*/{ s//\1/; q; } ! 21891: s/.*/./; q'` ! 21892: done ! 21893: test ! -n "$as_dirs" || mkdir $as_dirs ! 21894: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 ! 21895: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ! 21896: { (exit 1); exit 1; }; }; } ! 21897: ! 21898: ac_builddir=. ! 21899: ! 21900: if test "$ac_dir" != .; then ! 21901: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 21902: # A "../" for each directory in $ac_dir_suffix. ! 21903: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 21904: else ! 21905: ac_dir_suffix= ac_top_builddir= ! 21906: fi ! 21907: ! 21908: case $srcdir in ! 21909: .) # No --srcdir option. We are building in place. ! 21910: ac_srcdir=. ! 21911: if test -z "$ac_top_builddir"; then ! 21912: ac_top_srcdir=. ! 21913: else ! 21914: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 21915: fi ;; ! 21916: [\\/]* | ?:[\\/]* ) # Absolute path. ! 21917: ac_srcdir=$srcdir$ac_dir_suffix; ! 21918: ac_top_srcdir=$srcdir ;; ! 21919: *) # Relative path. ! 21920: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 21921: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 21922: esac ! 21923: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 21924: # absolute. ! 21925: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 21926: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ! 21927: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 21928: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 21929: ! 21930: ! 21931: case $INSTALL in ! 21932: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; ! 21933: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; ! 21934: esac ! 21935: ! 21936: if test x"$ac_file" != x-; then ! 21937: { echo "$as_me:$LINENO: creating $ac_file" >&5 ! 21938: echo "$as_me: creating $ac_file" >&6;} ! 21939: rm -f "$ac_file" ! 21940: fi ! 21941: # Let's still pretend it is `configure' which instantiates (i.e., don't ! 21942: # use $as_me), people would be surprised to read: ! 21943: # /* config.h. Generated by config.status. */ ! 21944: if test x"$ac_file" = x-; then ! 21945: configure_input= ! 21946: else ! 21947: configure_input="$ac_file. " ! 21948: fi ! 21949: configure_input=$configure_input"Generated from `echo $ac_file_in | ! 21950: sed 's,.*/,,'` by configure." ! 21951: ! 21952: # First look for the input files in the build tree, otherwise in the ! 21953: # src tree. ! 21954: ac_file_inputs=`IFS=: ! 21955: for f in $ac_file_in; do ! 21956: case $f in ! 21957: -) echo $tmp/stdin ;; ! 21958: [\\/$]*) ! 21959: # Absolute (can't be DOS-style, as IFS=:) ! 21960: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 21961: echo "$as_me: error: cannot find input file: $f" >&2;} ! 21962: { (exit 1); exit 1; }; } ! 21963: echo $f;; ! 21964: *) # Relative ! 21965: if test -f "$f"; then ! 21966: # Build tree ! 21967: echo $f ! 21968: elif test -f "$srcdir/$f"; then ! 21969: # Source tree ! 21970: echo $srcdir/$f ! 21971: else ! 21972: # /dev/null tree ! 21973: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 21974: echo "$as_me: error: cannot find input file: $f" >&2;} ! 21975: { (exit 1); exit 1; }; } ! 21976: fi;; ! 21977: esac ! 21978: done` || { (exit 1); exit 1; } ! 21979: _ACEOF ! 21980: cat >>$CONFIG_STATUS <<_ACEOF ! 21981: sed "$ac_vpsub ! 21982: $extrasub ! 21983: _ACEOF ! 21984: cat >>$CONFIG_STATUS <<\_ACEOF ! 21985: :t ! 21986: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! 21987: s,@configure_input@,$configure_input,;t t ! 21988: s,@srcdir@,$ac_srcdir,;t t ! 21989: s,@abs_srcdir@,$ac_abs_srcdir,;t t ! 21990: s,@top_srcdir@,$ac_top_srcdir,;t t ! 21991: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t ! 21992: s,@builddir@,$ac_builddir,;t t ! 21993: s,@abs_builddir@,$ac_abs_builddir,;t t ! 21994: s,@top_builddir@,$ac_top_builddir,;t t ! 21995: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t ! 21996: s,@INSTALL@,$ac_INSTALL,;t t ! 21997: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out ! 21998: rm -f $tmp/stdin ! 21999: if test x"$ac_file" != x-; then ! 22000: mv $tmp/out $ac_file ! 22001: else ! 22002: cat $tmp/out ! 22003: rm -f $tmp/out ! 22004: fi ! 22005: ! 22006: done ! 22007: _ACEOF ! 22008: cat >>$CONFIG_STATUS <<\_ACEOF ! 22009: ! 22010: # ! 22011: # CONFIG_HEADER section. ! 22012: # ! 22013: ! 22014: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where ! 22015: # NAME is the cpp macro being defined and VALUE is the value it is being given. ! 22016: # ! 22017: # ac_d sets the value in "#define NAME VALUE" lines. ! 22018: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ! 22019: ac_dB='[ ].*$,\1#\2' ! 22020: ac_dC=' ' ! 22021: ac_dD=',;t' ! 22022: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ! 22023: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ! 22024: ac_uB='$,\1#\2define\3' ! 22025: ac_uC=' ' ! 22026: ac_uD=',;t' ! 22027: ! 22028: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue ! 22029: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 22030: case $ac_file in ! 22031: - | *:- | *:-:* ) # input from stdin ! 22032: cat >$tmp/stdin ! 22033: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22034: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 22035: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22036: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 22037: * ) ac_file_in=$ac_file.in ;; ! 22038: esac ! 22039: ! 22040: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 ! 22041: echo "$as_me: creating $ac_file" >&6;} ! 22042: ! 22043: # First look for the input files in the build tree, otherwise in the ! 22044: # src tree. ! 22045: ac_file_inputs=`IFS=: ! 22046: for f in $ac_file_in; do ! 22047: case $f in ! 22048: -) echo $tmp/stdin ;; ! 22049: [\\/$]*) ! 22050: # Absolute (can't be DOS-style, as IFS=:) ! 22051: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 22052: echo "$as_me: error: cannot find input file: $f" >&2;} ! 22053: { (exit 1); exit 1; }; } ! 22054: echo $f;; ! 22055: *) # Relative ! 22056: if test -f "$f"; then ! 22057: # Build tree ! 22058: echo $f ! 22059: elif test -f "$srcdir/$f"; then ! 22060: # Source tree ! 22061: echo $srcdir/$f ! 22062: else ! 22063: # /dev/null tree ! 22064: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 22065: echo "$as_me: error: cannot find input file: $f" >&2;} ! 22066: { (exit 1); exit 1; }; } ! 22067: fi;; ! 22068: esac ! 22069: done` || { (exit 1); exit 1; } ! 22070: # Remove the trailing spaces. ! 22071: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in ! 22072: ! 22073: _ACEOF ! 22074: ! 22075: # Transform confdefs.h into two sed scripts, `conftest.defines' and ! 22076: # `conftest.undefs', that substitutes the proper values into ! 22077: # config.h.in to produce config.h. The first handles `#define' ! 22078: # templates, and the second `#undef' templates. ! 22079: # And first: Protect against being on the right side of a sed subst in ! 22080: # config.status. Protect against being in an unquoted here document ! 22081: # in config.status. ! 22082: rm -f conftest.defines conftest.undefs ! 22083: # Using a here document instead of a string reduces the quoting nightmare. ! 22084: # Putting comments in sed scripts is not portable. ! 22085: # ! 22086: # `end' is used to avoid that the second main sed command (meant for ! 22087: # 0-ary CPP macros) applies to n-ary macro definitions. ! 22088: # See the Autoconf documentation for `clear'. ! 22089: cat >confdef2sed.sed <<\_ACEOF ! 22090: s/[\\&,]/\\&/g ! 22091: s,[\\$`],\\&,g ! 22092: t clear ! 22093: : clear ! 22094: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp ! 22095: t end ! 22096: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp ! 22097: : end ! 22098: _ACEOF ! 22099: # If some macros were called several times there might be several times ! 22100: # the same #defines, which is useless. Nevertheless, we may not want to ! 22101: # sort them, since we want the *last* AC-DEFINE to be honored. ! 22102: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines ! 22103: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs ! 22104: rm -f confdef2sed.sed ! 22105: ! 22106: # This sed command replaces #undef with comments. This is necessary, for ! 22107: # example, in the case of _POSIX_SOURCE, which is predefined and required ! 22108: # on some systems where configure will not decide to define it. ! 22109: cat >>conftest.undefs <<\_ACEOF ! 22110: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, ! 22111: _ACEOF ! 22112: ! 22113: # Break up conftest.defines because some shells have a limit on the size ! 22114: # of here documents, and old seds have small limits too (100 cmds). ! 22115: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS ! 22116: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS ! 22117: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS ! 22118: echo ' :' >>$CONFIG_STATUS ! 22119: rm -f conftest.tail ! 22120: while grep . conftest.defines >/dev/null ! 22121: do ! 22122: # Write a limited-size here document to $tmp/defines.sed. ! 22123: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS ! 22124: # Speed up: don't consider the non `#define' lines. ! 22125: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS ! 22126: # Work around the forget-to-reset-the-flag bug. ! 22127: echo 't clr' >>$CONFIG_STATUS ! 22128: echo ': clr' >>$CONFIG_STATUS ! 22129: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS ! 22130: echo 'CEOF ! 22131: sed -f $tmp/defines.sed $tmp/in >$tmp/out ! 22132: rm -f $tmp/in ! 22133: mv $tmp/out $tmp/in ! 22134: ' >>$CONFIG_STATUS ! 22135: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail ! 22136: rm -f conftest.defines ! 22137: mv conftest.tail conftest.defines ! 22138: done ! 22139: rm -f conftest.defines ! 22140: echo ' fi # grep' >>$CONFIG_STATUS ! 22141: echo >>$CONFIG_STATUS ! 22142: ! 22143: # Break up conftest.undefs because some shells have a limit on the size ! 22144: # of here documents, and old seds have small limits too (100 cmds). ! 22145: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS ! 22146: rm -f conftest.tail ! 22147: while grep . conftest.undefs >/dev/null ! 22148: do ! 22149: # Write a limited-size here document to $tmp/undefs.sed. ! 22150: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS ! 22151: # Speed up: don't consider the non `#undef' ! 22152: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS ! 22153: # Work around the forget-to-reset-the-flag bug. ! 22154: echo 't clr' >>$CONFIG_STATUS ! 22155: echo ': clr' >>$CONFIG_STATUS ! 22156: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS ! 22157: echo 'CEOF ! 22158: sed -f $tmp/undefs.sed $tmp/in >$tmp/out ! 22159: rm -f $tmp/in ! 22160: mv $tmp/out $tmp/in ! 22161: ' >>$CONFIG_STATUS ! 22162: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail ! 22163: rm -f conftest.undefs ! 22164: mv conftest.tail conftest.undefs ! 22165: done ! 22166: rm -f conftest.undefs ! 22167: ! 22168: cat >>$CONFIG_STATUS <<\_ACEOF ! 22169: # Let's still pretend it is `configure' which instantiates (i.e., don't ! 22170: # use $as_me), people would be surprised to read: ! 22171: # /* config.h. Generated by config.status. */ ! 22172: if test x"$ac_file" = x-; then ! 22173: echo "/* Generated by configure. */" >$tmp/config.h ! 22174: else ! 22175: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h ! 22176: fi ! 22177: cat $tmp/in >>$tmp/config.h ! 22178: rm -f $tmp/in ! 22179: if test x"$ac_file" != x-; then ! 22180: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then ! 22181: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 ! 22182: echo "$as_me: $ac_file is unchanged" >&6;} ! 22183: else ! 22184: ac_dir=`(dirname "$ac_file") 2>/dev/null || ! 22185: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22186: X"$ac_file" : 'X\(//\)[^/]' \| \ ! 22187: X"$ac_file" : 'X\(//\)$' \| \ ! 22188: X"$ac_file" : 'X\(/\)' \| \ ! 22189: . : '\(.\)' 2>/dev/null || ! 22190: echo X"$ac_file" | ! 22191: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22192: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22193: /^X\(\/\/\)$/{ s//\1/; q; } ! 22194: /^X\(\/\).*/{ s//\1/; q; } ! 22195: s/.*/./; q'` ! 22196: { if $as_mkdir_p; then ! 22197: mkdir -p "$ac_dir" ! 22198: else ! 22199: as_dir="$ac_dir" ! 22200: as_dirs= ! 22201: while test ! -d "$as_dir"; do ! 22202: as_dirs="$as_dir $as_dirs" ! 22203: as_dir=`(dirname "$as_dir") 2>/dev/null || ! 22204: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22205: X"$as_dir" : 'X\(//\)[^/]' \| \ ! 22206: X"$as_dir" : 'X\(//\)$' \| \ ! 22207: X"$as_dir" : 'X\(/\)' \| \ ! 22208: . : '\(.\)' 2>/dev/null || ! 22209: echo X"$as_dir" | ! 22210: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22211: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22212: /^X\(\/\/\)$/{ s//\1/; q; } ! 22213: /^X\(\/\).*/{ s//\1/; q; } ! 22214: s/.*/./; q'` ! 22215: done ! 22216: test ! -n "$as_dirs" || mkdir $as_dirs ! 22217: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 ! 22218: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ! 22219: { (exit 1); exit 1; }; }; } ! 22220: ! 22221: rm -f $ac_file ! 22222: mv $tmp/config.h $ac_file ! 22223: fi ! 22224: else ! 22225: cat $tmp/config.h ! 22226: rm -f $tmp/config.h ! 22227: fi ! 22228: # Compute $ac_file's index in $config_headers. ! 22229: _am_stamp_count=1 ! 22230: for _am_header in $config_headers :; do ! 22231: case $_am_header in ! 22232: $ac_file | $ac_file:* ) ! 22233: break ;; ! 22234: * ) ! 22235: _am_stamp_count=`expr $_am_stamp_count + 1` ;; ! 22236: esac ! 22237: done ! 22238: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || ! 22239: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22240: X$ac_file : 'X\(//\)[^/]' \| \ ! 22241: X$ac_file : 'X\(//\)$' \| \ ! 22242: X$ac_file : 'X\(/\)' \| \ ! 22243: . : '\(.\)' 2>/dev/null || ! 22244: echo X$ac_file | ! 22245: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22246: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22247: /^X\(\/\/\)$/{ s//\1/; q; } ! 22248: /^X\(\/\).*/{ s//\1/; q; } ! 22249: s/.*/./; q'`/stamp-h$_am_stamp_count ! 22250: done ! 22251: _ACEOF ! 22252: cat >>$CONFIG_STATUS <<\_ACEOF ! 22253: ! 22254: # ! 22255: # CONFIG_COMMANDS section. ! 22256: # ! 22257: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ! 22258: ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ! 22259: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 22260: ac_dir=`(dirname "$ac_dest") 2>/dev/null || ! 22261: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22262: X"$ac_dest" : 'X\(//\)[^/]' \| \ ! 22263: X"$ac_dest" : 'X\(//\)$' \| \ ! 22264: X"$ac_dest" : 'X\(/\)' \| \ ! 22265: . : '\(.\)' 2>/dev/null || ! 22266: echo X"$ac_dest" | ! 22267: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22268: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22269: /^X\(\/\/\)$/{ s//\1/; q; } ! 22270: /^X\(\/\).*/{ s//\1/; q; } ! 22271: s/.*/./; q'` ! 22272: ac_builddir=. ! 22273: ! 22274: if test "$ac_dir" != .; then ! 22275: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 22276: # A "../" for each directory in $ac_dir_suffix. ! 22277: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 22278: else ! 22279: ac_dir_suffix= ac_top_builddir= ! 22280: fi ! 22281: ! 22282: case $srcdir in ! 22283: .) # No --srcdir option. We are building in place. ! 22284: ac_srcdir=. ! 22285: if test -z "$ac_top_builddir"; then ! 22286: ac_top_srcdir=. ! 22287: else ! 22288: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 22289: fi ;; ! 22290: [\\/]* | ?:[\\/]* ) # Absolute path. ! 22291: ac_srcdir=$srcdir$ac_dir_suffix; ! 22292: ac_top_srcdir=$srcdir ;; ! 22293: *) # Relative path. ! 22294: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 22295: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 22296: esac ! 22297: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 22298: # absolute. ! 22299: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 22300: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ! 22301: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 22302: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 22303: ! 22304: ! 22305: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 ! 22306: echo "$as_me: executing $ac_dest commands" >&6;} ! 22307: case $ac_dest in ! 22308: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do ! 22309: # Strip MF so we end up with the name of the file. ! 22310: mf=`echo "$mf" | sed -e 's/:.*$//'` ! 22311: # Check whether this is an Automake generated Makefile or not. ! 22312: # We used to match only the files named `Makefile.in', but ! 22313: # some people rename them; so instead we look at the file content. ! 22314: # Grep'ing the first line is not enough: some people post-process ! 22315: # each Makefile.in and add a new line on top of each file to say so. ! 22316: # So let's grep whole file. ! 22317: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then ! 22318: dirpart=`(dirname "$mf") 2>/dev/null || ! 22319: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22320: X"$mf" : 'X\(//\)[^/]' \| \ ! 22321: X"$mf" : 'X\(//\)$' \| \ ! 22322: X"$mf" : 'X\(/\)' \| \ ! 22323: . : '\(.\)' 2>/dev/null || ! 22324: echo X"$mf" | ! 22325: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22326: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22327: /^X\(\/\/\)$/{ s//\1/; q; } ! 22328: /^X\(\/\).*/{ s//\1/; q; } ! 22329: s/.*/./; q'` ! 22330: else ! 22331: continue ! 22332: fi ! 22333: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue ! 22334: # Extract the definition of DEP_FILES from the Makefile without ! 22335: # running `make'. ! 22336: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` ! 22337: test -z "$DEPDIR" && continue ! 22338: # When using ansi2knr, U may be empty or an underscore; expand it ! 22339: U=`sed -n -e '/^U = / s///p' < "$mf"` ! 22340: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" ! 22341: # We invoke sed twice because it is the simplest approach to ! 22342: # changing $(DEPDIR) to its actual value in the expansion. ! 22343: for file in `sed -n -e ' ! 22344: /^DEP_FILES = .*\\\\$/ { ! 22345: s/^DEP_FILES = // ! 22346: :loop ! 22347: s/\\\\$// ! 22348: p ! 22349: n ! 22350: /\\\\$/ b loop ! 22351: p ! 22352: } ! 22353: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ ! 22354: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do ! 22355: # Make sure the directory exists. ! 22356: test -f "$dirpart/$file" && continue ! 22357: fdir=`(dirname "$file") 2>/dev/null || ! 22358: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22359: X"$file" : 'X\(//\)[^/]' \| \ ! 22360: X"$file" : 'X\(//\)$' \| \ ! 22361: X"$file" : 'X\(/\)' \| \ ! 22362: . : '\(.\)' 2>/dev/null || ! 22363: echo X"$file" | ! 22364: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22365: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22366: /^X\(\/\/\)$/{ s//\1/; q; } ! 22367: /^X\(\/\).*/{ s//\1/; q; } ! 22368: s/.*/./; q'` ! 22369: { if $as_mkdir_p; then ! 22370: mkdir -p $dirpart/$fdir ! 22371: else ! 22372: as_dir=$dirpart/$fdir ! 22373: as_dirs= ! 22374: while test ! -d "$as_dir"; do ! 22375: as_dirs="$as_dir $as_dirs" ! 22376: as_dir=`(dirname "$as_dir") 2>/dev/null || ! 22377: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 22378: X"$as_dir" : 'X\(//\)[^/]' \| \ ! 22379: X"$as_dir" : 'X\(//\)$' \| \ ! 22380: X"$as_dir" : 'X\(/\)' \| \ ! 22381: . : '\(.\)' 2>/dev/null || ! 22382: echo X"$as_dir" | ! 22383: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 22384: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 22385: /^X\(\/\/\)$/{ s//\1/; q; } ! 22386: /^X\(\/\).*/{ s//\1/; q; } ! 22387: s/.*/./; q'` ! 22388: done ! 22389: test ! -n "$as_dirs" || mkdir $as_dirs ! 22390: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 ! 22391: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} ! 22392: { (exit 1); exit 1; }; }; } ! 22393: ! 22394: # echo "creating $dirpart/$file" ! 22395: echo '# dummy' > "$dirpart/$file" ! 22396: done ! 22397: done ! 22398: ;; ! 22399: esac ! 22400: done ! 22401: _ACEOF ! 22402: ! 22403: cat >>$CONFIG_STATUS <<\_ACEOF ! 22404: ! 22405: { (exit 0); exit 0; } ! 22406: _ACEOF ! 22407: chmod +x $CONFIG_STATUS ! 22408: ac_clean_files=$ac_clean_files_save ! 22409: ! 22410: ! 22411: # configure is writing to config.log, and then calls config.status. ! 22412: # config.status does its own redirection, appending to config.log. ! 22413: # Unfortunately, on DOS this fails, as config.log is still kept open ! 22414: # by configure, so config.status won't be able to write to it; its ! 22415: # output is simply discarded. So we exec the FD to /dev/null, ! 22416: # effectively closing config.log, so it can be properly (re)opened and ! 22417: # appended to by config.status. When coming back to configure, we ! 22418: # need to make the FD available again. ! 22419: if test "$no_create" != yes; then ! 22420: ac_cs_success=: ! 22421: ac_config_status_args= ! 22422: test "$silent" = yes && ! 22423: ac_config_status_args="$ac_config_status_args --quiet" ! 22424: exec 5>/dev/null ! 22425: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false ! 22426: exec 5>>config.log ! 22427: # Use ||, not &&, to avoid exiting from the if with $? = 1, which ! 22428: # would make configure fail if this is the last instruction. ! 22429: $ac_cs_success || { (exit 1); exit 1; } ! 22430: fi ! 22431:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.