Annotation of sql/sqlite/configure, revision 1.11
1.1 misha 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.11 ! moko 3: # Generated by GNU Autoconf 2.59.
1.1 misha 4: #
1.11 ! moko 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 misha 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.11 ! moko 8: ## --------------------- ##
! 9: ## M4sh Initialization. ##
! 10: ## --------------------- ##
1.1 misha 11:
1.11 ! moko 12: # Be Bourne compatible
! 13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.1 misha 14: emulate sh
15: NULLCMD=:
1.11 ! moko 16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.1 misha 17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
1.11 ! moko 19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 20: set -o posix
1.10 moko 21: fi
1.11 ! moko 22: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 23:
1.11 ! moko 24: # Support unset when possible.
! 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
! 26: as_unset=unset
! 27: else
! 28: as_unset=false
1.1 misha 29: fi
30:
1.10 moko 31:
1.11 ! moko 32: # Work around bugs in pre-3.0 UWIN ksh.
! 33: $as_unset ENV MAIL MAILPATH
1.1 misha 34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
1.11 ! moko 39: for as_var in \
! 40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 42: LC_TELEPHONE LC_TIME
1.1 misha 43: do
1.11 ! moko 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 45: eval $as_var=C; export $as_var
1.1 misha 46: else
1.11 ! moko 47: $as_unset $as_var
1.1 misha 48: fi
1.11 ! moko 49: done
1.10 moko 50:
1.11 ! moko 51: # Required to use basename.
! 52: if expr a : '\(a\)' >/dev/null 2>&1; then
1.1 misha 53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
1.11 ! moko 58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.1 misha 59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
1.11 ! moko 65: # Name of the executable.
! 66: as_me=`$as_basename "$0" ||
1.1 misha 67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
1.11 ! moko 69: X"$0" : 'X\(/\)$' \| \
! 70: . : '\(.\)' 2>/dev/null ||
! 71: echo X/"$0" |
! 72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 73: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 74: /^X\/\(\/\).*/{ s//\1/; q; }
! 75: s/.*/./; q'`
! 76:
1.1 misha 77:
1.11 ! moko 78: # PATH needs CR, and LINENO needs CR and PATH.
1.1 misha 79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
1.11 ! moko 86: # The user is always right.
! 87: if test "${PATH_SEPARATOR+set}" != set; then
! 88: echo "#! /bin/sh" >conf$$.sh
! 89: echo "exit 0" >>conf$$.sh
! 90: chmod +x conf$$.sh
! 91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 92: PATH_SEPARATOR=';'
! 93: else
! 94: PATH_SEPARATOR=:
! 95: fi
! 96: rm -f conf$$.sh
! 97: fi
! 98:
! 99:
! 100: as_lineno_1=$LINENO
! 101: as_lineno_2=$LINENO
! 102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 103: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 104: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 105: # Find who we are. Look in the path if we contain no path at all
! 106: # relative or not.
! 107: case $0 in
! 108: *[\\/]* ) as_myself=$0 ;;
! 109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 110: for as_dir in $PATH
! 111: do
! 112: IFS=$as_save_IFS
! 113: test -z "$as_dir" && as_dir=.
! 114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 115: done
! 116:
! 117: ;;
! 118: esac
! 119: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 120: # in which case we are not to be found in the path.
! 121: if test "x$as_myself" = x; then
! 122: as_myself=$0
! 123: fi
! 124: if test ! -f "$as_myself"; then
! 125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
! 126: { (exit 1); exit 1; }; }
! 127: fi
! 128: case $CONFIG_SHELL in
! 129: '')
! 130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 132: do
! 133: IFS=$as_save_IFS
! 134: test -z "$as_dir" && as_dir=.
! 135: for as_base in sh bash ksh sh5; do
! 136: case $as_dir in
! 137: /*)
! 138: if ("$as_dir/$as_base" -c '
! 139: as_lineno_1=$LINENO
! 140: as_lineno_2=$LINENO
! 141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 142: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
! 145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
! 146: CONFIG_SHELL=$as_dir/$as_base
! 147: export CONFIG_SHELL
! 148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 149: fi;;
! 150: esac
! 151: done
! 152: done
! 153: ;;
! 154: esac
1.1 misha 155:
1.11 ! moko 156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 157: # uniformly replaced by the line number. The first 'sed' inserts a
! 158: # line-number line before each line; the second 'sed' does the real
! 159: # work. The second script uses 'N' to pair each line-number line
! 160: # with the numbered line, and appends trailing '-' during
! 161: # substitution so that $LINENO is not a special case at line end.
! 162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 164: sed '=' <$as_myself |
1.1 misha 165: sed '
166: N
1.11 ! moko 167: s,$,-,
! 168: : loop
! 169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1.1 misha 170: t loop
1.11 ! moko 171: s,-$,,
! 172: s,^['$as_cr_digits']*\n,,
1.1 misha 173: ' >$as_me.lineno &&
1.11 ! moko 174: chmod +x $as_me.lineno ||
! 175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
! 176: { (exit 1); exit 1; }; }
1.1 misha 177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
1.11 ! moko 180: # original and so on. Autoconf is especially sensible to this).
! 181: . ./$as_me.lineno
1.1 misha 182: # Exit status is that of the last command.
183: exit
184: }
185:
1.11 ! moko 186:
! 187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 188: *c*,-n*) ECHO_N= ECHO_C='
! 189: ' ECHO_T=' ' ;;
! 190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.1 misha 192: esac
193:
1.11 ! moko 194: if expr a : '\(a\)' >/dev/null 2>&1; then
! 195: as_expr=expr
1.1 misha 196: else
1.11 ! moko 197: as_expr=false
1.1 misha 198: fi
1.11 ! moko 199:
! 200: rm -f conf$$ conf$$.exe conf$$.file
! 201: echo >conf$$.file
! 202: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 203: # We could just check for DJGPP; but this test a) works b) is more generic
! 204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 205: if test -f conf$$.exe; then
! 206: # Don't use ln at all; we don't have any links
! 207: as_ln_s='cp -p'
! 208: else
1.10 moko 209: as_ln_s='ln -s'
1.1 misha 210: fi
1.11 ! moko 211: elif ln conf$$.file conf$$ 2>/dev/null; then
! 212: as_ln_s=ln
1.1 misha 213: else
214: as_ln_s='cp -p'
215: fi
1.11 ! moko 216: rm -f conf$$ conf$$.exe conf$$.file
1.1 misha 217:
218: if mkdir -p . 2>/dev/null; then
1.11 ! moko 219: as_mkdir_p=:
1.1 misha 220: else
221: test -d ./-p && rmdir ./-p
222: as_mkdir_p=false
223: fi
224:
1.11 ! moko 225: as_executable_p="test -f"
1.1 misha 226:
227: # Sed expression to map a string onto a valid CPP name.
228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229:
230: # Sed expression to map a string onto a valid variable name.
231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232:
1.11 ! moko 233:
! 234: # IFS
! 235: # We need space, tab and new line, in precisely that order.
! 236: as_nl='
! 237: '
! 238: IFS=" $as_nl"
! 239:
! 240: # CDPATH.
! 241: $as_unset CDPATH
! 242:
1.1 misha 243: SHELL=${CONFIG_SHELL-/bin/sh}
244:
1.8 moko 245: lt_ltdl_dir='libltdl'
1.1 misha 246:
1.8 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.1 misha 248:
249:
250: # Name of the host.
1.11 ! moko 251: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
1.1 misha 252: # so uname gets run too.
253: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254:
1.11 ! moko 255: exec 6>&1
! 256:
1.1 misha 257: #
258: # Initializations.
259: #
260: ac_default_prefix=/usr/local
261: ac_config_libobj_dir=.
262: cross_compiling=no
263: subdirs=
264: MFLAGS=
265: MAKEFLAGS=
1.11 ! moko 266: SHELL=${CONFIG_SHELL-/bin/sh}
! 267:
! 268: # Maximum number of lines to put in a shell here document.
! 269: # This variable seems obsolete. It should probably be removed, and
! 270: # only ac_max_sed_lines should be used.
! 271: : ${ac_max_here_lines=38}
1.1 misha 272:
273: # Identity of this package.
274: PACKAGE_NAME=
275: PACKAGE_TARNAME=
276: PACKAGE_VERSION=
277: PACKAGE_STRING=
278: PACKAGE_BUGREPORT=
279:
280: ac_unique_file="parser3sqlite.C"
281: # Factoring default headers for most tests.
282: ac_includes_default="\
283: #include <stdio.h>
1.11 ! moko 284: #if HAVE_SYS_TYPES_H
1.1 misha 285: # include <sys/types.h>
286: #endif
1.11 ! moko 287: #if HAVE_SYS_STAT_H
1.1 misha 288: # include <sys/stat.h>
289: #endif
1.11 ! moko 290: #if STDC_HEADERS
1.1 misha 291: # include <stdlib.h>
292: # include <stddef.h>
293: #else
1.11 ! moko 294: # if HAVE_STDLIB_H
1.1 misha 295: # include <stdlib.h>
296: # endif
297: #endif
1.11 ! moko 298: #if HAVE_STRING_H
! 299: # if !STDC_HEADERS && HAVE_MEMORY_H
1.1 misha 300: # include <memory.h>
301: # endif
302: # include <string.h>
303: #endif
1.11 ! moko 304: #if HAVE_STRINGS_H
1.1 misha 305: # include <strings.h>
306: #endif
1.11 ! moko 307: #if HAVE_INTTYPES_H
1.1 misha 308: # include <inttypes.h>
1.11 ! moko 309: #else
! 310: # if HAVE_STDINT_H
! 311: # include <stdint.h>
! 312: # endif
1.1 misha 313: #endif
1.11 ! moko 314: #if HAVE_UNISTD_H
1.1 misha 315: # include <unistd.h>
316: #endif"
317:
1.11 ! moko 318: ac_subdirs_all="$ac_subdirs_all libltdl"
! 319: 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SQLITE_INC LDFLAGS CXX CXXFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP DLLTOOL ac_ct_DLLTOOL AR ac_ct_AR RANLIB ac_ct_RANLIB MANIFEST_TOOL ac_ct_MANIFEST_TOOL DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CXXCPP LIBLTDL LTDLDEPS LTDLINCL INCLTDL LIBADD_DL AS ac_ct_AS LT_DLLOADERS LIBADD_DLOPEN LIBADD_SHL_LOAD LIBADD_DLD_LINK LT_DLPREOPEN sys_symbol_underscore ARGZ_H INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE subdirs LT_CONFIG_H LTDLOPEN LIBOBJS LTLIBOBJS ltdl_LIBOBJS ltdl_LTLIBOBJS'
1.1 misha 320: ac_subst_files=''
321:
322: # Initialize some variables set by options.
323: ac_init_help=
324: ac_init_version=false
325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
327: cache_file=/dev/null
328: exec_prefix=NONE
329: no_create=
330: no_recursion=
331: prefix=NONE
332: program_prefix=NONE
333: program_suffix=NONE
334: program_transform_name=s,x,x,
335: silent=
336: site=
337: srcdir=
338: verbose=
339: x_includes=NONE
340: x_libraries=NONE
341:
342: # Installation directory options.
343: # These are left unexpanded so users can "make install exec_prefix=/foo"
344: # and all the variables that are supposed to be based on exec_prefix
345: # by default will actually change.
346: # Use braces instead of parens because sh, perl, etc. also accept them.
347: bindir='${exec_prefix}/bin'
348: sbindir='${exec_prefix}/sbin'
349: libexecdir='${exec_prefix}/libexec'
1.11 ! moko 350: datadir='${prefix}/share'
1.1 misha 351: sysconfdir='${prefix}/etc'
352: sharedstatedir='${prefix}/com'
353: localstatedir='${prefix}/var'
1.11 ! moko 354: libdir='${exec_prefix}/lib'
1.1 misha 355: includedir='${prefix}/include'
356: oldincludedir='/usr/include'
1.11 ! moko 357: infodir='${prefix}/info'
! 358: mandir='${prefix}/man'
1.1 misha 359:
360: ac_prev=
361: for ac_option
362: do
363: # If the previous option needs an argument, assign it.
364: if test -n "$ac_prev"; then
1.11 ! moko 365: eval "$ac_prev=\$ac_option"
1.1 misha 366: ac_prev=
367: continue
368: fi
369:
1.11 ! moko 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 misha 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.11 ! moko 374: case $ac_option in
1.1 misha 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379: bindir=$ac_optarg ;;
380:
381: -build | --build | --buil | --bui | --bu)
382: ac_prev=build_alias ;;
383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
384: build_alias=$ac_optarg ;;
385:
386: -cache-file | --cache-file | --cache-fil | --cache-fi \
387: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
388: ac_prev=cache_file ;;
389: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
390: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
395:
1.11 ! moko 396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1.1 misha 397: ac_prev=datadir ;;
1.11 ! moko 398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
! 399: | --da=*)
1.1 misha 400: datadir=$ac_optarg ;;
401:
402: -disable-* | --disable-*)
1.11 ! moko 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 misha 404: # Reject names that are not valid shell variable names.
1.11 ! moko 405: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 406: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 407: { (exit 1); exit 1; }; }
! 408: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 409: eval "enable_$ac_feature=no" ;;
1.1 misha 410:
411: -enable-* | --enable-*)
1.11 ! moko 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 misha 413: # Reject names that are not valid shell variable names.
1.11 ! moko 414: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 415: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 416: { (exit 1); exit 1; }; }
! 417: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 418: case $ac_option in
! 419: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
! 420: *) ac_optarg=yes ;;
1.1 misha 421: esac
1.11 ! moko 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 misha 423:
424: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
425: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
426: | --exec | --exe | --ex)
427: ac_prev=exec_prefix ;;
428: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
429: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
430: | --exec=* | --exe=* | --ex=*)
431: exec_prefix=$ac_optarg ;;
432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
437: -help | --help | --hel | --he | -h)
438: ac_init_help=long ;;
439: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
440: ac_init_help=recursive ;;
441: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
442: ac_init_help=short ;;
443:
444: -host | --host | --hos | --ho)
445: ac_prev=host_alias ;;
446: -host=* | --host=* | --hos=* | --ho=*)
447: host_alias=$ac_optarg ;;
448:
449: -includedir | --includedir | --includedi | --included | --include \
450: | --includ | --inclu | --incl | --inc)
451: ac_prev=includedir ;;
452: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
453: | --includ=* | --inclu=* | --incl=* | --inc=*)
454: includedir=$ac_optarg ;;
455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
459: infodir=$ac_optarg ;;
460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
464: libdir=$ac_optarg ;;
465:
466: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
467: | --libexe | --libex | --libe)
468: ac_prev=libexecdir ;;
469: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
470: | --libexe=* | --libex=* | --libe=*)
471: libexecdir=$ac_optarg ;;
472:
473: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.11 ! moko 474: | --localstate | --localstat | --localsta | --localst \
! 475: | --locals | --local | --loca | --loc | --lo)
1.1 misha 476: ac_prev=localstatedir ;;
477: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.11 ! moko 478: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
! 479: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.1 misha 480: localstatedir=$ac_optarg ;;
481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485: mandir=$ac_optarg ;;
486:
487: -nfp | --nfp | --nf)
488: # Obsolete; use --without-fp.
489: with_fp=no ;;
490:
491: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492: | --no-cr | --no-c | -n)
493: no_create=yes ;;
494:
495: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497: no_recursion=yes ;;
498:
499: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
500: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
501: | --oldin | --oldi | --old | --ol | --o)
502: ac_prev=oldincludedir ;;
503: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
504: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
505: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
506: oldincludedir=$ac_optarg ;;
507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511: prefix=$ac_optarg ;;
512:
513: -program-prefix | --program-prefix | --program-prefi | --program-pref \
514: | --program-pre | --program-pr | --program-p)
515: ac_prev=program_prefix ;;
516: -program-prefix=* | --program-prefix=* | --program-prefi=* \
517: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
518: program_prefix=$ac_optarg ;;
519:
520: -program-suffix | --program-suffix | --program-suffi | --program-suff \
521: | --program-suf | --program-su | --program-s)
522: ac_prev=program_suffix ;;
523: -program-suffix=* | --program-suffix=* | --program-suffi=* \
524: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
525: program_suffix=$ac_optarg ;;
526:
527: -program-transform-name | --program-transform-name \
528: | --program-transform-nam | --program-transform-na \
529: | --program-transform-n | --program-transform- \
530: | --program-transform | --program-transfor \
531: | --program-transfo | --program-transf \
532: | --program-trans | --program-tran \
533: | --progr-tra | --program-tr | --program-t)
534: ac_prev=program_transform_name ;;
535: -program-transform-name=* | --program-transform-name=* \
536: | --program-transform-nam=* | --program-transform-na=* \
537: | --program-transform-n=* | --program-transform-=* \
538: | --program-transform=* | --program-transfor=* \
539: | --program-transfo=* | --program-transf=* \
540: | --program-trans=* | --program-tran=* \
541: | --progr-tra=* | --program-tr=* | --program-t=*)
542: program_transform_name=$ac_optarg ;;
543:
544: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
545: | -silent | --silent | --silen | --sile | --sil)
546: silent=yes ;;
547:
548: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549: ac_prev=sbindir ;;
550: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551: | --sbi=* | --sb=*)
552: sbindir=$ac_optarg ;;
553:
554: -sharedstatedir | --sharedstatedir | --sharedstatedi \
555: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
556: | --sharedst | --shareds | --shared | --share | --shar \
557: | --sha | --sh)
558: ac_prev=sharedstatedir ;;
559: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
560: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
561: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562: | --sha=* | --sh=*)
563: sharedstatedir=$ac_optarg ;;
564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
568: site=$ac_optarg ;;
569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573: srcdir=$ac_optarg ;;
574:
575: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
576: | --syscon | --sysco | --sysc | --sys | --sy)
577: ac_prev=sysconfdir ;;
578: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
579: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
580: sysconfdir=$ac_optarg ;;
581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
583: ac_prev=target_alias ;;
584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
585: target_alias=$ac_optarg ;;
586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
592:
593: -with-* | --with-*)
1.11 ! moko 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 misha 595: # Reject names that are not valid shell variable names.
1.11 ! moko 596: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 597: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 598: { (exit 1); exit 1; }; }
! 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
! 600: case $ac_option in
! 601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
! 602: *) ac_optarg=yes ;;
1.1 misha 603: esac
1.11 ! moko 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 misha 605:
606: -without-* | --without-*)
1.11 ! moko 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 misha 608: # Reject names that are not valid shell variable names.
1.11 ! moko 609: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 610: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 611: { (exit 1); exit 1; }; }
! 612: ac_package=`echo $ac_package | sed 's/-/_/g'`
! 613: eval "with_$ac_package=no" ;;
1.1 misha 614:
615: --x)
616: # Obsolete; use --with-x.
617: with_x=yes ;;
618:
619: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
620: | --x-incl | --x-inc | --x-in | --x-i)
621: ac_prev=x_includes ;;
622: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
623: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
624: x_includes=$ac_optarg ;;
625:
626: -x-libraries | --x-libraries | --x-librarie | --x-librari \
627: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
628: ac_prev=x_libraries ;;
629: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
630: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
631: x_libraries=$ac_optarg ;;
632:
1.11 ! moko 633: -*) { echo "$as_me: error: unrecognized option: $ac_option
! 634: Try \`$0 --help' for more information." >&2
! 635: { (exit 1); exit 1; }; }
1.1 misha 636: ;;
637:
638: *=*)
639: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
640: # Reject names that are not valid shell variable names.
1.11 ! moko 641: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
! 642: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
! 643: { (exit 1); exit 1; }; }
! 644: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
! 645: eval "$ac_envvar='$ac_optarg'"
1.1 misha 646: export $ac_envvar ;;
647:
648: *)
649: # FIXME: should be removed in autoconf 3.0.
1.11 ! moko 650: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misha 651: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.11 ! moko 652: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 misha 653: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
660: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.11 ! moko 661: { echo "$as_me: error: missing argument to $ac_option" >&2
! 662: { (exit 1); exit 1; }; }
1.10 moko 663: fi
664:
1.11 ! moko 665: # Be sure to have absolute paths.
! 666: for ac_var in exec_prefix prefix
! 667: do
! 668: eval ac_val=$`echo $ac_var`
! 669: case $ac_val in
! 670: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
! 671: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 672: { (exit 1); exit 1; }; };;
1.10 moko 673: esac
1.11 ! moko 674: done
1.1 misha 675:
1.11 ! moko 676: # Be sure to have absolute paths.
! 677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
! 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 misha 679: do
1.11 ! moko 680: eval ac_val=$`echo $ac_var`
1.1 misha 681: case $ac_val in
1.11 ! moko 682: [\\/$]* | ?:[\\/]* ) ;;
! 683: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 684: { (exit 1); exit 1; }; };;
1.1 misha 685: esac
686: done
687:
688: # There might be people who depend on the old broken behavior: `$host'
689: # used to hold the argument of --host etc.
690: # FIXME: To remove some day.
691: build=$build_alias
692: host=$host_alias
693: target=$target_alias
694:
695: # FIXME: To remove some day.
696: if test "x$host_alias" != x; then
697: if test "x$build_alias" = x; then
698: cross_compiling=maybe
1.11 ! moko 699: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
! 700: If a cross compiler is detected then cross compile mode will be used." >&2
1.1 misha 701: elif test "x$build_alias" != "x$host_alias"; then
702: cross_compiling=yes
703: fi
704: fi
705:
706: ac_tool_prefix=
707: test -n "$host_alias" && ac_tool_prefix=$host_alias-
708:
709: test "$silent" = yes && exec 6>/dev/null
710:
711:
712: # Find the source files, if location was not specified.
713: if test -z "$srcdir"; then
714: ac_srcdir_defaulted=yes
1.11 ! moko 715: # Try the directory containing this script, then its parent.
! 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
! 717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 718: X"$0" : 'X\(//\)[^/]' \| \
! 719: X"$0" : 'X\(//\)$' \| \
! 720: X"$0" : 'X\(/\)' \| \
! 721: . : '\(.\)' 2>/dev/null ||
! 722: echo X"$0" |
! 723: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 724: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 725: /^X\(\/\/\)$/{ s//\1/; q; }
! 726: /^X\(\/\).*/{ s//\1/; q; }
! 727: s/.*/./; q'`
1.1 misha 728: srcdir=$ac_confdir
1.11 ! moko 729: if test ! -r $srcdir/$ac_unique_file; then
1.1 misha 730: srcdir=..
731: fi
732: else
733: ac_srcdir_defaulted=no
734: fi
1.11 ! moko 735: if test ! -r $srcdir/$ac_unique_file; then
! 736: if test "$ac_srcdir_defaulted" = yes; then
! 737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
! 738: { (exit 1); exit 1; }; }
! 739: else
! 740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
! 741: { (exit 1); exit 1; }; }
! 742: fi
! 743: fi
! 744: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
! 745: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
! 746: { (exit 1); exit 1; }; }
! 747: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
! 748: ac_env_build_alias_set=${build_alias+set}
! 749: ac_env_build_alias_value=$build_alias
! 750: ac_cv_env_build_alias_set=${build_alias+set}
! 751: ac_cv_env_build_alias_value=$build_alias
! 752: ac_env_host_alias_set=${host_alias+set}
! 753: ac_env_host_alias_value=$host_alias
! 754: ac_cv_env_host_alias_set=${host_alias+set}
! 755: ac_cv_env_host_alias_value=$host_alias
! 756: ac_env_target_alias_set=${target_alias+set}
! 757: ac_env_target_alias_value=$target_alias
! 758: ac_cv_env_target_alias_set=${target_alias+set}
! 759: ac_cv_env_target_alias_value=$target_alias
! 760: ac_env_CXX_set=${CXX+set}
! 761: ac_env_CXX_value=$CXX
! 762: ac_cv_env_CXX_set=${CXX+set}
! 763: ac_cv_env_CXX_value=$CXX
! 764: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
! 765: ac_env_CXXFLAGS_value=$CXXFLAGS
! 766: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
! 767: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
! 768: ac_env_LDFLAGS_set=${LDFLAGS+set}
! 769: ac_env_LDFLAGS_value=$LDFLAGS
! 770: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
! 771: ac_cv_env_LDFLAGS_value=$LDFLAGS
! 772: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
! 773: ac_env_CPPFLAGS_value=$CPPFLAGS
! 774: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
! 775: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
! 776: ac_env_CC_set=${CC+set}
! 777: ac_env_CC_value=$CC
! 778: ac_cv_env_CC_set=${CC+set}
! 779: ac_cv_env_CC_value=$CC
! 780: ac_env_CFLAGS_set=${CFLAGS+set}
! 781: ac_env_CFLAGS_value=$CFLAGS
! 782: ac_cv_env_CFLAGS_set=${CFLAGS+set}
! 783: ac_cv_env_CFLAGS_value=$CFLAGS
! 784: ac_env_CPP_set=${CPP+set}
! 785: ac_env_CPP_value=$CPP
! 786: ac_cv_env_CPP_set=${CPP+set}
! 787: ac_cv_env_CPP_value=$CPP
! 788: ac_env_CXXCPP_set=${CXXCPP+set}
! 789: ac_env_CXXCPP_value=$CXXCPP
! 790: ac_cv_env_CXXCPP_set=${CXXCPP+set}
! 791: ac_cv_env_CXXCPP_value=$CXXCPP
1.1 misha 792:
793: #
794: # Report the --help message.
795: #
796: if test "$ac_init_help" = "long"; then
797: # Omit some internal or obsolete options to make the list less imposing.
798: # This message is too long to be a string in the A/UX 3.1 sh.
799: cat <<_ACEOF
800: \`configure' configures this package to adapt to many kinds of systems.
801:
802: Usage: $0 [OPTION]... [VAR=VALUE]...
803:
804: To assign environment variables (e.g., CC, CFLAGS...), specify them as
805: VAR=VALUE. See below for descriptions of some of the useful variables.
806:
807: Defaults for the options are specified in brackets.
808:
809: Configuration:
810: -h, --help display this help and exit
811: --help=short display options specific to this package
812: --help=recursive display the short help of all the included packages
813: -V, --version display version information and exit
1.11 ! moko 814: -q, --quiet, --silent do not print \`checking...' messages
1.1 misha 815: --cache-file=FILE cache test results in FILE [disabled]
816: -C, --config-cache alias for \`--cache-file=config.cache'
817: -n, --no-create do not create output files
818: --srcdir=DIR find the sources in DIR [configure dir or \`..']
819:
1.11 ! moko 820: _ACEOF
! 821:
! 822: cat <<_ACEOF
1.1 misha 823: Installation directories:
824: --prefix=PREFIX install architecture-independent files in PREFIX
1.11 ! moko 825: [$ac_default_prefix]
1.1 misha 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.11 ! moko 827: [PREFIX]
1.1 misha 828:
829: By default, \`make install' will install all the files in
830: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
831: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
832: for instance \`--prefix=\$HOME'.
833:
834: For better control, use the options below.
835:
836: Fine tuning of the installation directories:
1.11 ! moko 837: --bindir=DIR user executables [EPREFIX/bin]
! 838: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 839: --libexecdir=DIR program executables [EPREFIX/libexec]
! 840: --datadir=DIR read-only architecture-independent data [PREFIX/share]
! 841: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 842: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 843: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 844: --libdir=DIR object code libraries [EPREFIX/lib]
! 845: --includedir=DIR C header files [PREFIX/include]
! 846: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 847: --infodir=DIR info documentation [PREFIX/info]
! 848: --mandir=DIR man documentation [PREFIX/man]
1.1 misha 849: _ACEOF
850:
851: cat <<\_ACEOF
852:
853: Program names:
854: --program-prefix=PREFIX prepend PREFIX to installed program names
855: --program-suffix=SUFFIX append SUFFIX to installed program names
856: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
857:
858: System types:
859: --build=BUILD configure for building on BUILD [guessed]
860: --host=HOST cross-compile to build programs to run on HOST [BUILD]
861: _ACEOF
862: fi
863:
864: if test -n "$ac_init_help"; then
865:
866: cat <<\_ACEOF
867:
868: Optional Features:
869: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
870: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
871: --disable-dependency-tracking speeds up one-time build
872: --enable-dependency-tracking do not reject slow dependency extractors
1.11 ! moko 873: --enable-shared[=PKGS]
! 874: build shared libraries [default=yes]
! 875: --enable-static[=PKGS]
! 876: build static libraries [default=yes]
1.8 moko 877: --enable-fast-install[=PKGS]
878: optimize for fast installation [default=yes]
1.1 misha 879: --disable-libtool-lock avoid locking (might break parallel builds)
1.8 moko 880: --enable-ltdl-install install libltdl
1.1 misha 881:
882: Optional Packages:
883: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885: --with-sqlite-inc=DIR DIR is the SQLite includes directory
1.6 misha 886: --with-dynamic-stdcpp link libstdc++ dynamically
887: by default, libstdc++ is linked statically
1.11 ! moko 888: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.8 moko 889: both]
890: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
891: --with-sysroot=DIR Search for dependent libraries within DIR
892: (or the compiler's sysroot if not specified).
893: --with-included-ltdl use the GNU ltdl sources included here
894: --with-ltdl-include=DIR use the ltdl headers installed in DIR
895: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.1 misha 896:
897: Some influential environment variables:
898: CXX C++ compiler command
899: CXXFLAGS C++ compiler flags
900: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901: nonstandard directory <lib dir>
1.11 ! moko 902: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
! 903: headers in a nonstandard directory <include dir>
1.1 misha 904: CC C compiler command
905: CFLAGS C compiler flags
906: CPP C preprocessor
1.8 moko 907: CXXCPP C++ preprocessor
1.1 misha 908:
909: Use these variables to override the choices made by `configure' or to help
910: it to find libraries and programs with nonstandard names/locations.
911:
912: _ACEOF
913: fi
914:
915: if test "$ac_init_help" = "recursive"; then
916: # If there are subdirs, report their specific --help.
1.11 ! moko 917: ac_popdir=`pwd`
1.1 misha 918: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.11 ! moko 919: test -d $ac_dir || continue
1.1 misha 920: ac_builddir=.
921:
1.11 ! moko 922: if test "$ac_dir" != .; then
! 923: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 924: # A "../" for each directory in $ac_dir_suffix.
! 925: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 926: else
! 927: ac_dir_suffix= ac_top_builddir=
! 928: fi
1.1 misha 929:
930: case $srcdir in
1.11 ! moko 931: .) # No --srcdir option. We are building in place.
1.1 misha 932: ac_srcdir=.
1.11 ! moko 933: if test -z "$ac_top_builddir"; then
! 934: ac_top_srcdir=.
! 935: else
! 936: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 937: fi ;;
! 938: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 939: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 ! moko 940: ac_top_srcdir=$srcdir ;;
! 941: *) # Relative path.
! 942: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 943: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 944: esac
! 945:
! 946: # Do not use `cd foo && pwd` to compute absolute paths, because
! 947: # the directories may not exist.
! 948: case `pwd` in
! 949: .) ac_abs_builddir="$ac_dir";;
! 950: *)
! 951: case "$ac_dir" in
! 952: .) ac_abs_builddir=`pwd`;;
! 953: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
! 954: *) ac_abs_builddir=`pwd`/"$ac_dir";;
! 955: esac;;
! 956: esac
! 957: case $ac_abs_builddir in
! 958: .) ac_abs_top_builddir=${ac_top_builddir}.;;
! 959: *)
! 960: case ${ac_top_builddir}. in
! 961: .) ac_abs_top_builddir=$ac_abs_builddir;;
! 962: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
! 963: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
! 964: esac;;
! 965: esac
! 966: case $ac_abs_builddir in
! 967: .) ac_abs_srcdir=$ac_srcdir;;
! 968: *)
! 969: case $ac_srcdir in
! 970: .) ac_abs_srcdir=$ac_abs_builddir;;
! 971: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
! 972: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
! 973: esac;;
! 974: esac
! 975: case $ac_abs_builddir in
! 976: .) ac_abs_top_srcdir=$ac_top_srcdir;;
! 977: *)
! 978: case $ac_top_srcdir in
! 979: .) ac_abs_top_srcdir=$ac_abs_builddir;;
! 980: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
! 981: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
! 982: esac;;
1.1 misha 983: esac
984:
1.11 ! moko 985: cd $ac_dir
! 986: # Check for guested configure; otherwise get Cygnus style configure.
! 987: if test -f $ac_srcdir/configure.gnu; then
! 988: echo
! 989: $SHELL $ac_srcdir/configure.gnu --help=recursive
! 990: elif test -f $ac_srcdir/configure; then
! 991: echo
! 992: $SHELL $ac_srcdir/configure --help=recursive
! 993: elif test -f $ac_srcdir/configure.ac ||
! 994: test -f $ac_srcdir/configure.in; then
! 995: echo
! 996: $ac_configure --help
1.1 misha 997: else
1.11 ! moko 998: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
! 999: fi
! 1000: cd $ac_popdir
1.1 misha 1001: done
1002: fi
1003:
1.11 ! moko 1004: test -n "$ac_init_help" && exit 0
1.1 misha 1005: if $ac_init_version; then
1006: cat <<\_ACEOF
1007:
1.11 ! moko 1008: Copyright (C) 2003 Free Software Foundation, Inc.
1.1 misha 1009: This configure script is free software; the Free Software Foundation
1010: gives unlimited permission to copy, distribute and modify it.
1011: _ACEOF
1.11 ! moko 1012: exit 0
1.1 misha 1013: fi
1.11 ! moko 1014: exec 5>config.log
! 1015: cat >&5 <<_ACEOF
! 1016: This file contains any messages produced by compilers while
! 1017: running configure, to aid debugging if configure makes a mistake.
1.1 misha 1018:
1.11 ! moko 1019: It was created by $as_me, which was
! 1020: generated by GNU Autoconf 2.59. Invocation command line was
1.10 moko 1021:
1.11 ! moko 1022: $ $0 $@
1.1 misha 1023:
1.11 ! moko 1024: _ACEOF
1.1 misha 1025: {
1.11 ! moko 1026: cat <<_ASUNAME
! 1027: ## --------- ##
! 1028: ## Platform. ##
! 1029: ## --------- ##
1.10 moko 1030:
1.11 ! moko 1031: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! 1032: uname -m = `(uname -m) 2>/dev/null || echo unknown`
! 1033: uname -r = `(uname -r) 2>/dev/null || echo unknown`
! 1034: uname -s = `(uname -s) 2>/dev/null || echo unknown`
! 1035: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 misha 1036:
1.11 ! moko 1037: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1.1 misha 1038: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1039:
1040: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1041: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1042: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.11 ! moko 1043: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1.1 misha 1044: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1045: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1046: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1047:
1048: _ASUNAME
1049:
1050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051: for as_dir in $PATH
1052: do
1053: IFS=$as_save_IFS
1054: test -z "$as_dir" && as_dir=.
1.11 ! moko 1055: echo "PATH: $as_dir"
! 1056: done
1.1 misha 1057:
1058: } >&5
1059:
1060: cat >&5 <<_ACEOF
1061:
1062:
1063: ## ----------- ##
1064: ## Core tests. ##
1065: ## ----------- ##
1066:
1067: _ACEOF
1068:
1069:
1070: # Keep a trace of the command line.
1071: # Strip out --no-create and --no-recursion so they do not pile up.
1072: # Strip out --silent because we don't want to record it for future runs.
1073: # Also quote any args containing shell meta-characters.
1074: # Make two passes to allow for proper duplicate-argument suppression.
1075: ac_configure_args=
1076: ac_configure_args0=
1077: ac_configure_args1=
1.11 ! moko 1078: ac_sep=
1.1 misha 1079: ac_must_keep_next=false
1080: for ac_pass in 1 2
1081: do
1082: for ac_arg
1083: do
1084: case $ac_arg in
1085: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1086: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087: | -silent | --silent | --silen | --sile | --sil)
1088: continue ;;
1.11 ! moko 1089: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1090: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1091: esac
1092: case $ac_pass in
1.11 ! moko 1093: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1.1 misha 1094: 2)
1.11 ! moko 1095: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1.1 misha 1096: if test $ac_must_keep_next = true; then
1097: ac_must_keep_next=false # Got value, back to normal.
1098: else
1099: case $ac_arg in
1100: *=* | --config-cache | -C | -disable-* | --disable-* \
1101: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1102: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1103: | -with-* | --with-* | -without-* | --without-* | --x)
1104: case "$ac_configure_args0 " in
1105: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1106: esac
1107: ;;
1108: -* ) ac_must_keep_next=true ;;
1109: esac
1110: fi
1.11 ! moko 1111: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
! 1112: # Get rid of the leading space.
! 1113: ac_sep=" "
1.1 misha 1114: ;;
1115: esac
1116: done
1117: done
1.11 ! moko 1118: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
! 1119: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 misha 1120:
1121: # When interrupted or exit'd, cleanup temporary files, and complete
1122: # config.log. We remove comments because anyway the quotes in there
1123: # would cause problems or look ugly.
1.11 ! moko 1124: # WARNING: Be sure not to use single quotes in there, as some shells,
! 1125: # such as our DU 5.0 friend, will then `close' the trap.
1.1 misha 1126: trap 'exit_status=$?
1127: # Save into config.log some information that might help in debugging.
1128: {
1129: echo
1130:
1.11 ! moko 1131: cat <<\_ASBOX
! 1132: ## ---------------- ##
1.1 misha 1133: ## Cache variables. ##
1.11 ! moko 1134: ## ---------------- ##
! 1135: _ASBOX
1.1 misha 1136: echo
1137: # The following way of writing the cache mishandles newlines in values,
1.11 ! moko 1138: {
1.1 misha 1139: (set) 2>&1 |
1.11 ! moko 1140: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
! 1141: *ac_space=\ *)
1.1 misha 1142: sed -n \
1.11 ! moko 1143: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
! 1144: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
! 1145: ;;
1.1 misha 1146: *)
1.11 ! moko 1147: sed -n \
! 1148: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.1 misha 1149: ;;
1.11 ! moko 1150: esac;
! 1151: }
1.1 misha 1152: echo
1153:
1.11 ! moko 1154: cat <<\_ASBOX
! 1155: ## ----------------- ##
1.1 misha 1156: ## Output variables. ##
1.11 ! moko 1157: ## ----------------- ##
! 1158: _ASBOX
1.1 misha 1159: echo
1160: for ac_var in $ac_subst_vars
1161: do
1.11 ! moko 1162: eval ac_val=$`echo $ac_var`
! 1163: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1164: done | sort
1165: echo
1166:
1167: if test -n "$ac_subst_files"; then
1.11 ! moko 1168: cat <<\_ASBOX
! 1169: ## ------------- ##
! 1170: ## Output files. ##
! 1171: ## ------------- ##
! 1172: _ASBOX
1.1 misha 1173: echo
1174: for ac_var in $ac_subst_files
1175: do
1.11 ! moko 1176: eval ac_val=$`echo $ac_var`
! 1177: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1178: done | sort
1179: echo
1180: fi
1181:
1182: if test -s confdefs.h; then
1.11 ! moko 1183: cat <<\_ASBOX
! 1184: ## ----------- ##
1.1 misha 1185: ## confdefs.h. ##
1.11 ! moko 1186: ## ----------- ##
! 1187: _ASBOX
1.1 misha 1188: echo
1.11 ! moko 1189: sed "/^$/d" confdefs.h | sort
1.1 misha 1190: echo
1191: fi
1192: test "$ac_signal" != 0 &&
1.11 ! moko 1193: echo "$as_me: caught signal $ac_signal"
! 1194: echo "$as_me: exit $exit_status"
1.1 misha 1195: } >&5
1.11 ! moko 1196: rm -f core *.core &&
! 1197: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.1 misha 1198: exit $exit_status
1.11 ! moko 1199: ' 0
1.1 misha 1200: for ac_signal in 1 2 13 15; do
1.11 ! moko 1201: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1.1 misha 1202: done
1203: ac_signal=0
1204:
1205: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.11 ! moko 1206: rm -rf conftest* confdefs.h
! 1207: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! 1208: echo >confdefs.h
1.1 misha 1209:
1210: # Predefined preprocessor variables.
1211:
1212: cat >>confdefs.h <<_ACEOF
1213: #define PACKAGE_NAME "$PACKAGE_NAME"
1214: _ACEOF
1215:
1.11 ! moko 1216:
1.1 misha 1217: cat >>confdefs.h <<_ACEOF
1218: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1219: _ACEOF
1220:
1.11 ! moko 1221:
1.1 misha 1222: cat >>confdefs.h <<_ACEOF
1223: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1224: _ACEOF
1225:
1.11 ! moko 1226:
1.1 misha 1227: cat >>confdefs.h <<_ACEOF
1228: #define PACKAGE_STRING "$PACKAGE_STRING"
1229: _ACEOF
1230:
1.11 ! moko 1231:
1.10 moko 1232: cat >>confdefs.h <<_ACEOF
1233: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1234: _ACEOF
1.1 misha 1235:
1236:
1237: # Let the site file select an alternate cache file if it wants to.
1.11 ! moko 1238: # Prefer explicitly selected file to automatically selected ones.
! 1239: if test -z "$CONFIG_SITE"; then
! 1240: if test "x$prefix" != xNONE; then
! 1241: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
! 1242: else
! 1243: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
! 1244: fi
! 1245: fi
! 1246: for ac_site_file in $CONFIG_SITE; do
! 1247: if test -r "$ac_site_file"; then
! 1248: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
! 1249: echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misha 1250: sed 's/^/| /' "$ac_site_file" >&5
1.11 ! moko 1251: . "$ac_site_file"
1.1 misha 1252: fi
1253: done
1254:
1255: if test -r "$cache_file"; then
1.11 ! moko 1256: # Some versions of bash will fail to source /dev/null (special
! 1257: # files actually), so we avoid doing that.
! 1258: if test -f "$cache_file"; then
! 1259: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
! 1260: echo "$as_me: loading cache $cache_file" >&6;}
1.1 misha 1261: case $cache_file in
1.11 ! moko 1262: [\\/]* | ?:[\\/]* ) . $cache_file;;
! 1263: *) . ./$cache_file;;
1.1 misha 1264: esac
1265: fi
1266: else
1.11 ! moko 1267: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
! 1268: echo "$as_me: creating cache $cache_file" >&6;}
1.1 misha 1269: >$cache_file
1270: fi
1271:
1272: # Check that the precious variables saved in the cache have kept the same
1273: # value.
1274: ac_cache_corrupted=false
1.11 ! moko 1275: for ac_var in `(set) 2>&1 |
! 1276: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.1 misha 1277: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1278: eval ac_new_set=\$ac_env_${ac_var}_set
1.11 ! moko 1279: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
! 1280: eval ac_new_val="\$ac_env_${ac_var}_value"
1.1 misha 1281: case $ac_old_set,$ac_new_set in
1282: set,)
1.11 ! moko 1283: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 1284: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misha 1285: ac_cache_corrupted=: ;;
1286: ,set)
1.11 ! moko 1287: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
! 1288: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misha 1289: ac_cache_corrupted=: ;;
1290: ,);;
1291: *)
1292: if test "x$ac_old_val" != "x$ac_new_val"; then
1.11 ! moko 1293: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
! 1294: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 1295: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
! 1296: echo "$as_me: former value: $ac_old_val" >&2;}
! 1297: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
! 1298: echo "$as_me: current value: $ac_new_val" >&2;}
! 1299: ac_cache_corrupted=:
1.1 misha 1300: fi;;
1301: esac
1302: # Pass precious variables to config.status.
1303: if test "$ac_new_set" = set; then
1304: case $ac_new_val in
1.11 ! moko 1305: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1306: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1307: *) ac_arg=$ac_var=$ac_new_val ;;
1308: esac
1309: case " $ac_configure_args " in
1310: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.11 ! moko 1311: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.1 misha 1312: esac
1313: fi
1314: done
1315: if $ac_cache_corrupted; then
1.11 ! moko 1316: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
! 1317: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 1318: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! 1319: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
! 1320: { (exit 1); exit 1; }; }
! 1321: fi
1.1 misha 1322:
1323: ac_ext=c
1324: ac_cpp='$CPP $CPPFLAGS'
1325: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328:
1329:
1330:
1331:
1.11 ! moko 1332:
! 1333:
! 1334:
! 1335:
! 1336:
! 1337:
! 1338:
! 1339:
! 1340:
! 1341:
! 1342:
! 1343:
! 1344:
! 1345:
! 1346:
! 1347:
! 1348:
1.1 misha 1349: am__api_version="1.9"
1350: ac_aux_dir=
1.11 ! moko 1351: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
! 1352: if test -f $ac_dir/install-sh; then
1.1 misha 1353: ac_aux_dir=$ac_dir
1354: ac_install_sh="$ac_aux_dir/install-sh -c"
1355: break
1.11 ! moko 1356: elif test -f $ac_dir/install.sh; then
1.1 misha 1357: ac_aux_dir=$ac_dir
1358: ac_install_sh="$ac_aux_dir/install.sh -c"
1359: break
1.11 ! moko 1360: elif test -f $ac_dir/shtool; then
1.1 misha 1361: ac_aux_dir=$ac_dir
1362: ac_install_sh="$ac_aux_dir/shtool install -c"
1363: break
1364: fi
1365: done
1366: if test -z "$ac_aux_dir"; then
1.11 ! moko 1367: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 1368: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 1369: { (exit 1); exit 1; }; }
! 1370: fi
! 1371: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! 1372: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! 1373: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 misha 1374:
1375: # Find a good install program. We prefer a C program (faster),
1376: # so one script is as good as another. But avoid the broken or
1377: # incompatible versions:
1378: # SysV /etc/install, /usr/sbin/install
1379: # SunOS /usr/etc/install
1380: # IRIX /sbin/install
1381: # AIX /bin/install
1382: # AmigaOS /C/install, which installs bootblocks on floppy discs
1383: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1384: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1385: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1386: # OS/2's system install, which has a completely different semantic
1387: # ./install, which can be erroneously created by make from ./install.sh.
1.11 ! moko 1388: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1389: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 misha 1390: if test -z "$INSTALL"; then
1.11 ! moko 1391: if test "${ac_cv_path_install+set}" = set; then
! 1392: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1393: else
1394: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395: for as_dir in $PATH
1396: do
1397: IFS=$as_save_IFS
1398: test -z "$as_dir" && as_dir=.
1.11 ! moko 1399: # Account for people who put trailing slashes in PATH elements.
! 1400: case $as_dir/ in
! 1401: ./ | .// | /cC/* | \
1.1 misha 1402: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.11 ! moko 1403: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 misha 1404: /usr/ucb/* ) ;;
1405: *)
1406: # OSF1 and SCO ODT 3.0 have their own names for install.
1407: # Don't use installbsd from OSF since it installs stuff as root
1408: # by default.
1409: for ac_prog in ginstall scoinst install; do
1410: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 ! moko 1411: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misha 1412: if test $ac_prog = install &&
1413: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1414: # AIX install. It has an incompatible calling convention.
1415: :
1416: elif test $ac_prog = install &&
1417: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1418: # program-specific install script used by HP pwplus--don't use.
1419: :
1420: else
1.11 ! moko 1421: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1422: break 3
1.1 misha 1423: fi
1424: fi
1425: done
1426: done
1427: ;;
1428: esac
1.11 ! moko 1429: done
1.1 misha 1430:
1431:
1432: fi
1433: if test "${ac_cv_path_install+set}" = set; then
1434: INSTALL=$ac_cv_path_install
1435: else
1.11 ! moko 1436: # As a last resort, use the slow shell script. We don't cache a
! 1437: # path for INSTALL within a source directory, because that will
1.1 misha 1438: # break other packages using the cache if that directory is
1.11 ! moko 1439: # removed, or if the path is relative.
1.1 misha 1440: INSTALL=$ac_install_sh
1441: fi
1442: fi
1.11 ! moko 1443: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1444: echo "${ECHO_T}$INSTALL" >&6
1.1 misha 1445:
1446: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1447: # It thinks the first close brace ends the variable substitution.
1448: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1449:
1450: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1451:
1452: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1453:
1.11 ! moko 1454: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
! 1455: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 misha 1456: # Just in case
1457: sleep 1
1458: echo timestamp > conftest.file
1459: # Do `set' in a subshell so we don't clobber the current shell's
1460: # arguments. Must try -L first in case configure is actually a
1461: # symlink; some systems play weird games with the mod time of symlinks
1462: # (eg FreeBSD returns the mod time of the symlink's containing
1463: # directory).
1464: if (
1465: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1466: if test "$*" = "X"; then
1467: # -L didn't work.
1468: set X `ls -t $srcdir/configure conftest.file`
1469: fi
1470: rm -f conftest.file
1471: if test "$*" != "X $srcdir/configure conftest.file" \
1472: && test "$*" != "X conftest.file $srcdir/configure"; then
1473:
1474: # If neither matched, then we have a broken ls. This can happen
1475: # if, for instance, CONFIG_SHELL is bash and it inherits a
1476: # broken ls alias from the environment. This has actually
1477: # happened. Such a system could not be considered "sane".
1.11 ! moko 1478: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
! 1479: alias in your environment" >&5
! 1480: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
! 1481: alias in your environment" >&2;}
! 1482: { (exit 1); exit 1; }; }
1.1 misha 1483: fi
1484:
1485: test "$2" = conftest.file
1486: )
1487: then
1488: # Ok.
1489: :
1490: else
1.11 ! moko 1491: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
! 1492: Check your system clock" >&5
! 1493: echo "$as_me: error: newly created file is older than distributed files!
! 1494: Check your system clock" >&2;}
! 1495: { (exit 1); exit 1; }; }
1.1 misha 1496: fi
1.11 ! moko 1497: echo "$as_me:$LINENO: result: yes" >&5
! 1498: echo "${ECHO_T}yes" >&6
1.1 misha 1499: test "$program_prefix" != NONE &&
1.11 ! moko 1500: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 misha 1501: # Use a double $ so make ignores it.
1502: test "$program_suffix" != NONE &&
1.11 ! moko 1503: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
! 1504: # Double any \ or $. echo might interpret backslashes.
1.1 misha 1505: # By default was `s,x,x', remove it if useless.
1.11 ! moko 1506: cat <<\_ACEOF >conftest.sed
! 1507: s/[\\$]/&&/g;s/;s,x,x,$//
! 1508: _ACEOF
! 1509: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
! 1510: rm conftest.sed
1.1 misha 1511:
1512: # expand $ac_aux_dir to an absolute path
1513: am_aux_dir=`cd $ac_aux_dir && pwd`
1514:
1515: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1516: # Use eval to expand $SHELL
1517: if eval "$MISSING --run true"; then
1518: am_missing_run="$MISSING --run "
1519: else
1520: am_missing_run=
1.11 ! moko 1521: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
! 1522: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1 misha 1523: fi
1524:
1525: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1526: # We used to keeping the `.' as first argument, in order to
1527: # allow $(mkdir_p) to be used without argument. As in
1528: # $(mkdir_p) $(somedir)
1529: # where $(somedir) is conditionally defined. However this is wrong
1530: # for two reasons:
1531: # 1. if the package is installed by a user who cannot write `.'
1532: # make install will fail,
1533: # 2. the above comment should most certainly read
1534: # $(mkdir_p) $(DESTDIR)$(somedir)
1535: # so it does not work when $(somedir) is undefined and
1536: # $(DESTDIR) is not.
1537: # To support the latter case, we have to write
1538: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1539: # so the `.' trick is pointless.
1540: mkdir_p='mkdir -p --'
1541: else
1542: # On NextStep and OpenStep, the `mkdir' command does not
1543: # recognize any option. It will interpret all options as
1544: # directories to create, and then abort because `.' already
1545: # exists.
1546: for d in ./-p ./--version;
1547: do
1548: test -d $d && rmdir $d
1549: done
1550: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1551: if test -f "$ac_aux_dir/mkinstalldirs"; then
1552: mkdir_p='$(mkinstalldirs)'
1553: else
1554: mkdir_p='$(install_sh) -d'
1555: fi
1556: fi
1557:
1558: for ac_prog in gawk mawk nawk awk
1559: do
1560: # Extract the first word of "$ac_prog", so it can be a program name with args.
1561: set dummy $ac_prog; ac_word=$2
1.11 ! moko 1562: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1563: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1564: if test "${ac_cv_prog_AWK+set}" = set; then
! 1565: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1566: else
1567: if test -n "$AWK"; then
1568: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1569: else
1570: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571: for as_dir in $PATH
1572: do
1573: IFS=$as_save_IFS
1574: test -z "$as_dir" && as_dir=.
1.11 ! moko 1575: for ac_exec_ext in '' $ac_executable_extensions; do
! 1576: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1577: ac_cv_prog_AWK="$ac_prog"
1.11 ! moko 1578: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1579: break 2
1580: fi
1581: done
1.11 ! moko 1582: done
1.1 misha 1583:
1584: fi
1585: fi
1586: AWK=$ac_cv_prog_AWK
1587: if test -n "$AWK"; then
1.11 ! moko 1588: echo "$as_me:$LINENO: result: $AWK" >&5
! 1589: echo "${ECHO_T}$AWK" >&6
1.1 misha 1590: else
1.11 ! moko 1591: echo "$as_me:$LINENO: result: no" >&5
! 1592: echo "${ECHO_T}no" >&6
1.1 misha 1593: fi
1594:
1595: test -n "$AWK" && break
1596: done
1597:
1.11 ! moko 1598: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 1599: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
! 1600: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
! 1601: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
! 1602: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1603: else
1604: cat >conftest.make <<\_ACEOF
1605: all:
1.11 ! moko 1606: @echo 'ac_maketemp="$(MAKE)"'
1.1 misha 1607: _ACEOF
1.11 ! moko 1608: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
! 1609: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
! 1610: if test -n "$ac_maketemp"; then
! 1611: eval ac_cv_prog_make_${ac_make}_set=yes
! 1612: else
! 1613: eval ac_cv_prog_make_${ac_make}_set=no
! 1614: fi
1.1 misha 1615: rm -f conftest.make
1616: fi
1.11 ! moko 1617: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
! 1618: echo "$as_me:$LINENO: result: yes" >&5
! 1619: echo "${ECHO_T}yes" >&6
1.1 misha 1620: SET_MAKE=
1621: else
1.11 ! moko 1622: echo "$as_me:$LINENO: result: no" >&5
! 1623: echo "${ECHO_T}no" >&6
1.1 misha 1624: SET_MAKE="MAKE=${MAKE-make}"
1625: fi
1626:
1627: rm -rf .tst 2>/dev/null
1628: mkdir .tst 2>/dev/null
1629: if test -d .tst; then
1630: am__leading_dot=.
1631: else
1632: am__leading_dot=_
1633: fi
1634: rmdir .tst 2>/dev/null
1635:
1636: # test to see if srcdir already configured
1637: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1638: test -f $srcdir/config.status; then
1.11 ! moko 1639: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
! 1640: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
! 1641: { (exit 1); exit 1; }; }
1.1 misha 1642: fi
1643:
1644: # test whether we have cygpath
1645: if test -z "$CYGPATH_W"; then
1646: if (cygpath --version) >/dev/null 2>/dev/null; then
1647: CYGPATH_W='cygpath -w'
1648: else
1649: CYGPATH_W=echo
1650: fi
1651: fi
1652:
1653:
1654: # Define the identity of the package.
1655: PACKAGE=parser3sqlite
1.8 moko 1656: VERSION=10.2
1.1 misha 1657:
1658:
1659: # Some tools Automake needs.
1660:
1661: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1662:
1663:
1664: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1665:
1666:
1667: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1668:
1669:
1670: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1671:
1672:
1673: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1674:
1675: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1676:
1677: # Installed binaries are usually stripped using `strip' when the user
1678: # run `make install-strip'. However `strip' might not be the right
1679: # tool to use in cross-compilation environments, therefore Automake
1680: # will honor the `STRIP' environment variable to overrule this program.
1681: if test "$cross_compiling" != no; then
1682: if test -n "$ac_tool_prefix"; then
1683: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1684: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 ! moko 1685: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1686: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1687: if test "${ac_cv_prog_STRIP+set}" = set; then
! 1688: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1689: else
1690: if test -n "$STRIP"; then
1691: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1692: else
1693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694: for as_dir in $PATH
1695: do
1696: IFS=$as_save_IFS
1697: test -z "$as_dir" && as_dir=.
1.11 ! moko 1698: for ac_exec_ext in '' $ac_executable_extensions; do
! 1699: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1700: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 ! moko 1701: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1702: break 2
1703: fi
1704: done
1.11 ! moko 1705: done
! 1706:
1.1 misha 1707: fi
1708: fi
1709: STRIP=$ac_cv_prog_STRIP
1710: if test -n "$STRIP"; then
1.11 ! moko 1711: echo "$as_me:$LINENO: result: $STRIP" >&5
! 1712: echo "${ECHO_T}$STRIP" >&6
1.1 misha 1713: else
1.11 ! moko 1714: echo "$as_me:$LINENO: result: no" >&5
! 1715: echo "${ECHO_T}no" >&6
1.1 misha 1716: fi
1717:
1718: fi
1719: if test -z "$ac_cv_prog_STRIP"; then
1720: ac_ct_STRIP=$STRIP
1721: # Extract the first word of "strip", so it can be a program name with args.
1722: set dummy strip; ac_word=$2
1.11 ! moko 1723: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1724: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1725: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 1726: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1727: else
1728: if test -n "$ac_ct_STRIP"; then
1729: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1730: else
1731: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732: for as_dir in $PATH
1733: do
1734: IFS=$as_save_IFS
1735: test -z "$as_dir" && as_dir=.
1.11 ! moko 1736: for ac_exec_ext in '' $ac_executable_extensions; do
! 1737: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1738: ac_cv_prog_ac_ct_STRIP="strip"
1.11 ! moko 1739: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1740: break 2
1741: fi
1742: done
1.11 ! moko 1743: done
1.1 misha 1744:
1.11 ! moko 1745: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 1746: fi
1747: fi
1748: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1749: if test -n "$ac_ct_STRIP"; then
1.11 ! moko 1750: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 1751: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 misha 1752: else
1.11 ! moko 1753: echo "$as_me:$LINENO: result: no" >&5
! 1754: echo "${ECHO_T}no" >&6
1.1 misha 1755: fi
1756:
1.11 ! moko 1757: STRIP=$ac_ct_STRIP
1.1 misha 1758: else
1759: STRIP="$ac_cv_prog_STRIP"
1760: fi
1761:
1762: fi
1763: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1764:
1765: # We need awk for the "check" target. The system "awk" is bad on
1766: # some platforms.
1767: # Always define AMTAR for backward compatibility.
1768:
1769: AMTAR=${AMTAR-"${am_missing_run}tar"}
1770:
1771: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1772:
1773:
1774:
1775:
1776:
1777:
1.11 ! moko 1778: ac_config_headers="$ac_config_headers config_auto.h"
! 1779:
1.1 misha 1780:
1781:
1782:
1783:
1784:
1.11 ! moko 1785: # Check whether --with-sqlite-inc or --without-sqlite-inc was given.
! 1786: if test "${with_sqlite_inc+set}" = set; then
! 1787: withval="$with_sqlite_inc"
1.1 misha 1788:
1789: if test -r "$withval/sqlite3.h"; then
1790: SQLITE_INC=$withval
1791: fi
1792:
1793:
1.4 misha 1794: if test -z "$SQLITE_INC"; then
1.11 ! moko 1795: { { echo "$as_me:$LINENO: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&5
! 1796: echo "$as_me: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&2;}
! 1797: { (exit 1); exit 1; }; }
1.4 misha 1798: fi
1.1 misha 1799:
1800: else
1.11 ! moko 1801: echo "$as_me:$LINENO: checking for SQLITE_INC directory" >&5
! 1802: echo $ECHO_N "checking for SQLITE_INC directory... $ECHO_C" >&6
1.1 misha 1803: for d in \
1.9 moko 1804: /usr/local/include \
1805: /usr/include \
1.1 misha 1806: /usr/local/include/sqlite \
1807: /usr/include/sqlite ; do
1808:
1809: if test -r "$d/sqlite3.h"; then
1810: SQLITE_INC=$d
1811: fi
1812:
1813: done
1814:
1.4 misha 1815: if test -z "$SQLITE_INC"; then
1.11 ! moko 1816: { { echo "$as_me:$LINENO: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&5
! 1817: echo "$as_me: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&2;}
! 1818: { (exit 1); exit 1; }; }
1.4 misha 1819: fi
1.1 misha 1820:
1.11 ! moko 1821: echo "$as_me:$LINENO: result: $SQLITE_INC" >&5
! 1822: echo "${ECHO_T}$SQLITE_INC" >&6
1.1 misha 1823:
1.11 ! moko 1824: fi;
1.1 misha 1825:
1826:
1827:
1828:
1.11 ! moko 1829: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
! 1830: if test "${with_dynamic_stdcpp+set}" = set; then
! 1831: withval="$with_dynamic_stdcpp"
1.6 misha 1832:
1833: LDFLAGS="-lstdc++"
1834:
1835: else
1836:
1837: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
1838:
1.11 ! moko 1839: fi;
! 1840:
! 1841:
! 1842:
! 1843: # Find a good install program. We prefer a C program (faster),
! 1844: # so one script is as good as another. But avoid the broken or
! 1845: # incompatible versions:
! 1846: # SysV /etc/install, /usr/sbin/install
! 1847: # SunOS /usr/etc/install
! 1848: # IRIX /sbin/install
! 1849: # AIX /bin/install
! 1850: # AmigaOS /C/install, which installs bootblocks on floppy discs
! 1851: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
! 1852: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
! 1853: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
! 1854: # OS/2's system install, which has a completely different semantic
! 1855: # ./install, which can be erroneously created by make from ./install.sh.
! 1856: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1857: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
! 1858: if test -z "$INSTALL"; then
! 1859: if test "${ac_cv_path_install+set}" = set; then
! 1860: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1861: else
! 1862: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1863: for as_dir in $PATH
! 1864: do
! 1865: IFS=$as_save_IFS
! 1866: test -z "$as_dir" && as_dir=.
! 1867: # Account for people who put trailing slashes in PATH elements.
! 1868: case $as_dir/ in
! 1869: ./ | .// | /cC/* | \
! 1870: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1871: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
! 1872: /usr/ucb/* ) ;;
! 1873: *)
! 1874: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1875: # Don't use installbsd from OSF since it installs stuff as root
! 1876: # by default.
! 1877: for ac_prog in ginstall scoinst install; do
! 1878: for ac_exec_ext in '' $ac_executable_extensions; do
! 1879: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1880: if test $ac_prog = install &&
! 1881: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1882: # AIX install. It has an incompatible calling convention.
! 1883: :
! 1884: elif test $ac_prog = install &&
! 1885: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1886: # program-specific install script used by HP pwplus--don't use.
! 1887: :
! 1888: else
! 1889: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1890: break 3
! 1891: fi
! 1892: fi
! 1893: done
! 1894: done
! 1895: ;;
! 1896: esac
! 1897: done
! 1898:
! 1899:
! 1900: fi
! 1901: if test "${ac_cv_path_install+set}" = set; then
! 1902: INSTALL=$ac_cv_path_install
! 1903: else
! 1904: # As a last resort, use the slow shell script. We don't cache a
! 1905: # path for INSTALL within a source directory, because that will
! 1906: # break other packages using the cache if that directory is
! 1907: # removed, or if the path is relative.
! 1908: INSTALL=$ac_install_sh
! 1909: fi
1.10 moko 1910: fi
1.11 ! moko 1911: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1912: echo "${ECHO_T}$INSTALL" >&6
1.6 misha 1913:
1.11 ! moko 1914: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
! 1915: # It thinks the first close brace ends the variable substitution.
! 1916: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.6 misha 1917:
1.11 ! moko 1918: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.6 misha 1919:
1.11 ! moko 1920: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 misha 1921:
1.11 ! moko 1922: ac_ext=cc
1.1 misha 1923: ac_cpp='$CXXCPP $CPPFLAGS'
1924: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 ! moko 1927: if test -n "$ac_tool_prefix"; then
! 1928: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1929: do
1930: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1931: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 ! moko 1932: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1933: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1934: if test "${ac_cv_prog_CXX+set}" = set; then
! 1935: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1936: else
1937: if test -n "$CXX"; then
1938: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1939: else
1940: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941: for as_dir in $PATH
1942: do
1943: IFS=$as_save_IFS
1944: test -z "$as_dir" && as_dir=.
1.11 ! moko 1945: for ac_exec_ext in '' $ac_executable_extensions; do
! 1946: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1947: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.11 ! moko 1948: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1949: break 2
1950: fi
1951: done
1.11 ! moko 1952: done
1.1 misha 1953:
1954: fi
1955: fi
1956: CXX=$ac_cv_prog_CXX
1957: if test -n "$CXX"; then
1.11 ! moko 1958: echo "$as_me:$LINENO: result: $CXX" >&5
! 1959: echo "${ECHO_T}$CXX" >&6
1.1 misha 1960: else
1.11 ! moko 1961: echo "$as_me:$LINENO: result: no" >&5
! 1962: echo "${ECHO_T}no" >&6
1.1 misha 1963: fi
1964:
1965: test -n "$CXX" && break
1966: done
1967: fi
1968: if test -z "$CXX"; then
1969: ac_ct_CXX=$CXX
1.11 ! moko 1970: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1971: do
1972: # Extract the first word of "$ac_prog", so it can be a program name with args.
1973: set dummy $ac_prog; ac_word=$2
1.11 ! moko 1974: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1975: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1976: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
! 1977: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1978: else
1979: if test -n "$ac_ct_CXX"; then
1980: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1981: else
1982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983: for as_dir in $PATH
1984: do
1985: IFS=$as_save_IFS
1986: test -z "$as_dir" && as_dir=.
1.11 ! moko 1987: for ac_exec_ext in '' $ac_executable_extensions; do
! 1988: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1989: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.11 ! moko 1990: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1991: break 2
1992: fi
1993: done
1.11 ! moko 1994: done
1.1 misha 1995:
1996: fi
1997: fi
1998: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1999: if test -n "$ac_ct_CXX"; then
1.11 ! moko 2000: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 2001: echo "${ECHO_T}$ac_ct_CXX" >&6
1.1 misha 2002: else
1.11 ! moko 2003: echo "$as_me:$LINENO: result: no" >&5
! 2004: echo "${ECHO_T}no" >&6
1.1 misha 2005: fi
2006:
2007: test -n "$ac_ct_CXX" && break
2008: done
1.11 ! moko 2009: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 misha 2010:
1.11 ! moko 2011: CXX=$ac_ct_CXX
1.1 misha 2012: fi
2013:
1.11 ! moko 2014:
1.1 misha 2015: # Provide some information about the compiler.
1.11 ! moko 2016: echo "$as_me:$LINENO:" \
! 2017: "checking for C++ compiler version" >&5
! 2018: ac_compiler=`set X $ac_compile; echo $2`
! 2019: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 2020: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 2021: ac_status=$?
! 2022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2023: (exit $ac_status); }
! 2024: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 2025: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 2026: ac_status=$?
! 2027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2028: (exit $ac_status); }
! 2029: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 2030: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2031: ac_status=$?
1.11 ! moko 2032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2033: (exit $ac_status); }
1.1 misha 2034:
1.11 ! moko 2035: cat >conftest.$ac_ext <<_ACEOF
! 2036: /* confdefs.h. */
! 2037: _ACEOF
! 2038: cat confdefs.h >>conftest.$ac_ext
! 2039: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2040: /* end confdefs.h. */
2041:
2042: int
2043: main ()
2044: {
2045:
2046: ;
2047: return 0;
2048: }
2049: _ACEOF
2050: ac_clean_files_save=$ac_clean_files
1.11 ! moko 2051: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 misha 2052: # Try to create an executable without -o first, disregard a.out.
2053: # It will help us diagnose broken compilers, and finding out an intuition
2054: # of exeext.
1.11 ! moko 2055: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
! 2056: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
! 2057: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 2058: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
! 2059: (eval $ac_link_default) 2>&5
! 2060: ac_status=$?
! 2061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2062: (exit $ac_status); }; then
! 2063: # Find the output, starting from the most likely. This scheme is
! 2064: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
! 2065: # resort.
! 2066:
! 2067: # Be careful to initialize this variable, since it used to be cached.
! 2068: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
! 2069: ac_cv_exeext=
! 2070: # b.out is created by i960 compilers.
! 2071: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.1 misha 2072: do
2073: test -f "$ac_file" || continue
2074: case $ac_file in
1.11 ! moko 2075: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
! 2076: ;;
! 2077: conftest.$ac_ext )
! 2078: # This is the source file.
1.1 misha 2079: ;;
2080: [ab].out )
2081: # We found the default executable, but exeext='' is most
2082: # certainly right.
2083: break;;
2084: *.* )
1.11 ! moko 2085: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2086: # FIXME: I believe we export ac_cv_exeext for Libtool,
! 2087: # but it would be cool to find out if it's true. Does anybody
! 2088: # maintain Libtool? --akim.
! 2089: export ac_cv_exeext
1.1 misha 2090: break;;
2091: * )
2092: break;;
2093: esac
2094: done
1.11 ! moko 2095: else
! 2096: echo "$as_me: failed program was:" >&5
! 2097: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2098:
1.11 ! moko 2099: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
! 2100: See \`config.log' for more details." >&5
! 2101: echo "$as_me: error: C++ compiler cannot create executables
! 2102: See \`config.log' for more details." >&2;}
! 2103: { (exit 77); exit 77; }; }
1.10 moko 2104: fi
1.1 misha 2105:
2106: ac_exeext=$ac_cv_exeext
1.11 ! moko 2107: echo "$as_me:$LINENO: result: $ac_file" >&5
! 2108: echo "${ECHO_T}$ac_file" >&6
! 2109:
! 2110: # Check the compiler produces executables we can run. If not, either
! 2111: # the compiler is broken, or we cross compile.
! 2112: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
! 2113: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
! 2114: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! 2115: # If not cross compiling, check that we can run a simple program.
! 2116: if test "$cross_compiling" != yes; then
! 2117: if { ac_try='./$ac_file'
! 2118: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2119: (eval $ac_try) 2>&5
! 2120: ac_status=$?
! 2121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2122: (exit $ac_status); }; }; then
! 2123: cross_compiling=no
! 2124: else
! 2125: if test "$cross_compiling" = maybe; then
! 2126: cross_compiling=yes
! 2127: else
! 2128: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
! 2129: If you meant to cross compile, use \`--host'.
! 2130: See \`config.log' for more details." >&5
! 2131: echo "$as_me: error: cannot run C++ compiled programs.
! 2132: If you meant to cross compile, use \`--host'.
! 2133: See \`config.log' for more details." >&2;}
! 2134: { (exit 1); exit 1; }; }
! 2135: fi
! 2136: fi
! 2137: fi
! 2138: echo "$as_me:$LINENO: result: yes" >&5
! 2139: echo "${ECHO_T}yes" >&6
1.1 misha 2140:
1.11 ! moko 2141: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 misha 2142: ac_clean_files=$ac_clean_files_save
1.11 ! moko 2143: # Check the compiler produces executables we can run. If not, either
! 2144: # the compiler is broken, or we cross compile.
! 2145: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2146: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
! 2147: echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2148: echo "${ECHO_T}$cross_compiling" >&6
! 2149:
! 2150: echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2151: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
! 2152: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 2153: (eval $ac_link) 2>&5
1.1 misha 2154: ac_status=$?
1.11 ! moko 2155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2156: (exit $ac_status); }; then
1.1 misha 2157: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2158: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2159: # work properly (i.e., refer to `conftest.exe'), while it won't with
2160: # `rm'.
2161: for ac_file in conftest.exe conftest conftest.*; do
2162: test -f "$ac_file" || continue
2163: case $ac_file in
1.11 ! moko 2164: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.1 misha 2165: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.11 ! moko 2166: export ac_cv_exeext
1.1 misha 2167: break;;
2168: * ) break;;
2169: esac
2170: done
2171: else
1.11 ! moko 2172: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
! 2173: See \`config.log' for more details." >&5
! 2174: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
! 2175: See \`config.log' for more details." >&2;}
! 2176: { (exit 1); exit 1; }; }
! 2177: fi
! 2178:
! 2179: rm -f conftest$ac_cv_exeext
! 2180: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2181: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 misha 2182:
2183: rm -f conftest.$ac_ext
2184: EXEEXT=$ac_cv_exeext
2185: ac_exeext=$EXEEXT
1.11 ! moko 2186: echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2187: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
! 2188: if test "${ac_cv_objext+set}" = set; then
! 2189: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2190: else
! 2191: cat >conftest.$ac_ext <<_ACEOF
! 2192: /* confdefs.h. */
1.10 moko 2193: _ACEOF
1.11 ! moko 2194: cat confdefs.h >>conftest.$ac_ext
! 2195: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2196: /* end confdefs.h. */
2197:
2198: int
2199: main ()
2200: {
2201:
2202: ;
2203: return 0;
2204: }
2205: _ACEOF
2206: rm -f conftest.o conftest.obj
1.11 ! moko 2207: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2208: (eval $ac_compile) 2>&5
! 2209: ac_status=$?
! 2210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2211: (exit $ac_status); }; then
! 2212: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1.1 misha 2213: case $ac_file in
1.11 ! moko 2214: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.1 misha 2215: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2216: break;;
2217: esac
2218: done
2219: else
1.11 ! moko 2220: echo "$as_me: failed program was:" >&5
1.1 misha 2221: sed 's/^/| /' conftest.$ac_ext >&5
2222:
1.11 ! moko 2223: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
! 2224: See \`config.log' for more details." >&5
! 2225: echo "$as_me: error: cannot compute suffix of object files: cannot compile
! 2226: See \`config.log' for more details." >&2;}
! 2227: { (exit 1); exit 1; }; }
1.1 misha 2228: fi
1.11 ! moko 2229:
1.1 misha 2230: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2231: fi
1.11 ! moko 2232: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 2233: echo "${ECHO_T}$ac_cv_objext" >&6
1.1 misha 2234: OBJEXT=$ac_cv_objext
2235: ac_objext=$OBJEXT
1.11 ! moko 2236: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 2237: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
! 2238: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
! 2239: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2240: else
1.11 ! moko 2241: cat >conftest.$ac_ext <<_ACEOF
! 2242: /* confdefs.h. */
! 2243: _ACEOF
! 2244: cat confdefs.h >>conftest.$ac_ext
! 2245: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2246: /* end confdefs.h. */
2247:
2248: int
2249: main ()
2250: {
2251: #ifndef __GNUC__
2252: choke me
2253: #endif
2254:
2255: ;
2256: return 0;
2257: }
2258: _ACEOF
1.11 ! moko 2259: rm -f conftest.$ac_objext
! 2260: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2261: (eval $ac_compile) 2>conftest.er1
! 2262: ac_status=$?
! 2263: grep -v '^ *+' conftest.er1 >conftest.err
! 2264: rm -f conftest.er1
! 2265: cat conftest.err >&5
! 2266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2267: (exit $ac_status); } &&
! 2268: { ac_try='test -z "$ac_cxx_werror_flag"
! 2269: || test ! -s conftest.err'
! 2270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2271: (eval $ac_try) 2>&5
! 2272: ac_status=$?
! 2273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2274: (exit $ac_status); }; } &&
! 2275: { ac_try='test -s conftest.$ac_objext'
! 2276: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2277: (eval $ac_try) 2>&5
! 2278: ac_status=$?
! 2279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2280: (exit $ac_status); }; }; then
1.1 misha 2281: ac_compiler_gnu=yes
2282: else
1.11 ! moko 2283: echo "$as_me: failed program was:" >&5
! 2284: sed 's/^/| /' conftest.$ac_ext >&5
! 2285:
! 2286: ac_compiler_gnu=no
1.1 misha 2287: fi
1.11 ! moko 2288: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 2289: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2290:
2291: fi
1.11 ! moko 2292: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 2293: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
! 2294: GXX=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 2295: ac_test_CXXFLAGS=${CXXFLAGS+set}
2296: ac_save_CXXFLAGS=$CXXFLAGS
1.11 ! moko 2297: CXXFLAGS="-g"
! 2298: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 2299: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
! 2300: if test "${ac_cv_prog_cxx_g+set}" = set; then
! 2301: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2302: else
! 2303: cat >conftest.$ac_ext <<_ACEOF
! 2304: /* confdefs.h. */
! 2305: _ACEOF
! 2306: cat confdefs.h >>conftest.$ac_ext
! 2307: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2308: /* end confdefs.h. */
2309:
2310: int
2311: main ()
2312: {
2313:
2314: ;
2315: return 0;
2316: }
2317: _ACEOF
1.11 ! moko 2318: rm -f conftest.$ac_objext
! 2319: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2320: (eval $ac_compile) 2>conftest.er1
! 2321: ac_status=$?
! 2322: grep -v '^ *+' conftest.er1 >conftest.err
! 2323: rm -f conftest.er1
! 2324: cat conftest.err >&5
! 2325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2326: (exit $ac_status); } &&
! 2327: { ac_try='test -z "$ac_cxx_werror_flag"
! 2328: || test ! -s conftest.err'
! 2329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2330: (eval $ac_try) 2>&5
! 2331: ac_status=$?
! 2332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2333: (exit $ac_status); }; } &&
! 2334: { ac_try='test -s conftest.$ac_objext'
! 2335: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2336: (eval $ac_try) 2>&5
! 2337: ac_status=$?
! 2338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2339: (exit $ac_status); }; }; then
1.1 misha 2340: ac_cv_prog_cxx_g=yes
2341: else
1.11 ! moko 2342: echo "$as_me: failed program was:" >&5
! 2343: sed 's/^/| /' conftest.$ac_ext >&5
! 2344:
! 2345: ac_cv_prog_cxx_g=no
! 2346: fi
! 2347: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 2348: fi
! 2349: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 2350: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
! 2351: if test "$ac_test_CXXFLAGS" = set; then
! 2352: CXXFLAGS=$ac_save_CXXFLAGS
! 2353: elif test $ac_cv_prog_cxx_g = yes; then
! 2354: if test "$GXX" = yes; then
! 2355: CXXFLAGS="-g -O2"
! 2356: else
! 2357: CXXFLAGS="-g"
! 2358: fi
! 2359: else
! 2360: if test "$GXX" = yes; then
! 2361: CXXFLAGS="-O2"
! 2362: else
! 2363: CXXFLAGS=
! 2364: fi
! 2365: fi
! 2366: for ac_declaration in \
! 2367: '' \
! 2368: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 2369: 'extern "C" void std::exit (int); using std::exit;' \
! 2370: 'extern "C" void exit (int) throw ();' \
! 2371: 'extern "C" void exit (int);' \
! 2372: 'void exit (int);'
! 2373: do
! 2374: cat >conftest.$ac_ext <<_ACEOF
! 2375: /* confdefs.h. */
! 2376: _ACEOF
! 2377: cat confdefs.h >>conftest.$ac_ext
! 2378: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2379: /* end confdefs.h. */
1.11 ! moko 2380: $ac_declaration
! 2381: #include <stdlib.h>
1.1 misha 2382: int
2383: main ()
2384: {
1.11 ! moko 2385: exit (42);
1.1 misha 2386: ;
2387: return 0;
2388: }
2389: _ACEOF
1.11 ! moko 2390: rm -f conftest.$ac_objext
! 2391: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2392: (eval $ac_compile) 2>conftest.er1
! 2393: ac_status=$?
! 2394: grep -v '^ *+' conftest.er1 >conftest.err
! 2395: rm -f conftest.er1
! 2396: cat conftest.err >&5
! 2397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2398: (exit $ac_status); } &&
! 2399: { ac_try='test -z "$ac_cxx_werror_flag"
! 2400: || test ! -s conftest.err'
! 2401: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2402: (eval $ac_try) 2>&5
! 2403: ac_status=$?
! 2404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2405: (exit $ac_status); }; } &&
! 2406: { ac_try='test -s conftest.$ac_objext'
! 2407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2408: (eval $ac_try) 2>&5
! 2409: ac_status=$?
! 2410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2411: (exit $ac_status); }; }; then
! 2412: :
! 2413: else
! 2414: echo "$as_me: failed program was:" >&5
! 2415: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2416:
1.11 ! moko 2417: continue
! 2418: fi
! 2419: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 2420: cat >conftest.$ac_ext <<_ACEOF
! 2421: /* confdefs.h. */
! 2422: _ACEOF
! 2423: cat confdefs.h >>conftest.$ac_ext
! 2424: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2425: /* end confdefs.h. */
1.11 ! moko 2426: $ac_declaration
1.1 misha 2427: int
2428: main ()
2429: {
1.11 ! moko 2430: exit (42);
1.1 misha 2431: ;
2432: return 0;
2433: }
2434: _ACEOF
1.11 ! moko 2435: rm -f conftest.$ac_objext
! 2436: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2437: (eval $ac_compile) 2>conftest.er1
! 2438: ac_status=$?
! 2439: grep -v '^ *+' conftest.er1 >conftest.err
! 2440: rm -f conftest.er1
! 2441: cat conftest.err >&5
! 2442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2443: (exit $ac_status); } &&
! 2444: { ac_try='test -z "$ac_cxx_werror_flag"
! 2445: || test ! -s conftest.err'
! 2446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2447: (eval $ac_try) 2>&5
! 2448: ac_status=$?
! 2449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2450: (exit $ac_status); }; } &&
! 2451: { ac_try='test -s conftest.$ac_objext'
! 2452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2453: (eval $ac_try) 2>&5
! 2454: ac_status=$?
! 2455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2456: (exit $ac_status); }; }; then
! 2457: break
! 2458: else
! 2459: echo "$as_me: failed program was:" >&5
! 2460: sed 's/^/| /' conftest.$ac_ext >&5
! 2461:
1.10 moko 2462: fi
1.11 ! moko 2463: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 2464: done
! 2465: rm -f conftest*
! 2466: if test -n "$ac_declaration"; then
! 2467: echo '#ifdef __cplusplus' >>confdefs.h
! 2468: echo $ac_declaration >>confdefs.h
! 2469: echo '#endif' >>confdefs.h
1.1 misha 2470: fi
1.11 ! moko 2471:
1.1 misha 2472: ac_ext=c
2473: ac_cpp='$CPP $CPPFLAGS'
2474: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477: DEPDIR="${am__leading_dot}deps"
2478:
1.11 ! moko 2479: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 2480:
2481:
2482: am_make=${MAKE-make}
2483: cat > confinc << 'END'
2484: am__doit:
2485: @echo done
2486: .PHONY: am__doit
2487: END
2488: # If we don't find an include directive, just comment out the code.
1.11 ! moko 2489: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
! 2490: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1.1 misha 2491: am__include="#"
2492: am__quote=
2493: _am_result=none
2494: # First try GNU make style include.
2495: echo "include confinc" > confmf
2496: # We grep out `Entering directory' and `Leaving directory'
2497: # messages which can occur if `w' ends up in MAKEFLAGS.
2498: # In particular we don't look at `^make:' because GNU make might
2499: # be invoked under some other name (usually "gmake"), in which
2500: # case it prints its new name instead of `make'.
2501: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2502: am__include=include
2503: am__quote=
2504: _am_result=GNU
2505: fi
2506: # Now try BSD make style include.
2507: if test "$am__include" = "#"; then
2508: echo '.include "confinc"' > confmf
2509: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2510: am__include=.include
2511: am__quote="\""
2512: _am_result=BSD
2513: fi
2514: fi
2515:
2516:
1.11 ! moko 2517: echo "$as_me:$LINENO: result: $_am_result" >&5
! 2518: echo "${ECHO_T}$_am_result" >&6
1.1 misha 2519: rm -f confinc confmf
2520:
1.11 ! moko 2521: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
! 2522: if test "${enable_dependency_tracking+set}" = set; then
! 2523: enableval="$enable_dependency_tracking"
1.1 misha 2524:
1.11 ! moko 2525: fi;
1.1 misha 2526: if test "x$enable_dependency_tracking" != xno; then
2527: am_depcomp="$ac_aux_dir/depcomp"
2528: AMDEPBACKSLASH='\'
2529: fi
2530:
2531:
2532: if test "x$enable_dependency_tracking" != xno; then
2533: AMDEP_TRUE=
2534: AMDEP_FALSE='#'
2535: else
2536: AMDEP_TRUE='#'
2537: AMDEP_FALSE=
2538: fi
2539:
2540:
2541:
2542:
2543: depcc="$CXX" am_compiler_list=
2544:
1.11 ! moko 2545: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 2546: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 2547: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
! 2548: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2549: else
2550: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2551: # We make a subdir and do the tests there. Otherwise we can end up
2552: # making bogus files that we don't know about and never remove. For
2553: # instance it was reported that on HP-UX the gcc test will end up
2554: # making a dummy file named `D' -- because `-MD' means `put the output
2555: # in D'.
2556: mkdir conftest.dir
2557: # Copy depcomp to subdir because otherwise we won't find it if we're
2558: # using a relative directory.
2559: cp "$am_depcomp" conftest.dir
2560: cd conftest.dir
2561: # We will build objects and dependencies in a subdirectory because
2562: # it helps to detect inapplicable dependency modes. For instance
2563: # both Tru64's cc and ICC support -MD to output dependencies as a
2564: # side effect of compilation, but ICC will put the dependencies in
2565: # the current directory while Tru64 will put them in the object
2566: # directory.
2567: mkdir sub
2568:
2569: am_cv_CXX_dependencies_compiler_type=none
2570: if test "$am_compiler_list" = ""; then
2571: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2572: fi
2573: for depmode in $am_compiler_list; do
2574: # Setup a source with many dependencies, because some compilers
2575: # like to wrap large dependency lists on column 80 (with \), and
2576: # we should not choose a depcomp mode which is confused by this.
2577: #
2578: # We need to recreate these files for each test, as the compiler may
2579: # overwrite some of them when testing with obscure command lines.
2580: # This happens at least with the AIX C compiler.
2581: : > sub/conftest.c
2582: for i in 1 2 3 4 5 6; do
2583: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2584: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2585: # Solaris 8's {/usr,}/bin/sh.
2586: touch sub/conftst$i.h
2587: done
2588: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2589:
2590: case $depmode in
2591: nosideeffect)
2592: # after this tag, mechanisms are not by side-effect, so they'll
2593: # only be used when explicitly requested
2594: if test "x$enable_dependency_tracking" = xyes; then
2595: continue
2596: else
2597: break
2598: fi
2599: ;;
2600: none) break ;;
2601: esac
2602: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2603: # mode. It turns out that the SunPro C++ compiler does not properly
2604: # handle `-M -o', and we need to detect this.
2605: if depmode=$depmode \
2606: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2607: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2608: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2609: >/dev/null 2>conftest.err &&
2610: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2611: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2612: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2613: # icc doesn't choke on unknown options, it will just issue warnings
2614: # or remarks (even with -Werror). So we grep stderr for any message
2615: # that says an option was ignored or not supported.
2616: # When given -MP, icc 7.0 and 7.1 complain thusly:
2617: # icc: Command line warning: ignoring option '-M'; no argument required
2618: # The diagnosis changed in icc 8.0:
2619: # icc: Command line remark: option '-MP' not supported
2620: if (grep 'ignoring option' conftest.err ||
2621: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2622: am_cv_CXX_dependencies_compiler_type=$depmode
2623: break
2624: fi
2625: fi
2626: done
2627:
2628: cd ..
2629: rm -rf conftest.dir
2630: else
2631: am_cv_CXX_dependencies_compiler_type=none
2632: fi
2633:
2634: fi
1.11 ! moko 2635: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 2636: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
1.1 misha 2637: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2638:
2639:
2640:
2641: if
2642: test "x$enable_dependency_tracking" != xno \
2643: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2644: am__fastdepCXX_TRUE=
2645: am__fastdepCXX_FALSE='#'
2646: else
2647: am__fastdepCXX_TRUE='#'
2648: am__fastdepCXX_FALSE=
2649: fi
2650:
2651:
2652: ac_ext=c
2653: ac_cpp='$CPP $CPPFLAGS'
2654: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657: if test -n "$ac_tool_prefix"; then
2658: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2659: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.11 ! moko 2660: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2661: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2662: if test "${ac_cv_prog_CC+set}" = set; then
! 2663: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2664: else
2665: if test -n "$CC"; then
2666: ac_cv_prog_CC="$CC" # Let the user override the test.
2667: else
2668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669: for as_dir in $PATH
2670: do
2671: IFS=$as_save_IFS
2672: test -z "$as_dir" && as_dir=.
1.11 ! moko 2673: for ac_exec_ext in '' $ac_executable_extensions; do
! 2674: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2675: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.11 ! moko 2676: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2677: break 2
2678: fi
2679: done
1.11 ! moko 2680: done
1.1 misha 2681:
2682: fi
2683: fi
2684: CC=$ac_cv_prog_CC
2685: if test -n "$CC"; then
1.11 ! moko 2686: echo "$as_me:$LINENO: result: $CC" >&5
! 2687: echo "${ECHO_T}$CC" >&6
1.1 misha 2688: else
1.11 ! moko 2689: echo "$as_me:$LINENO: result: no" >&5
! 2690: echo "${ECHO_T}no" >&6
1.1 misha 2691: fi
2692:
2693: fi
2694: if test -z "$ac_cv_prog_CC"; then
2695: ac_ct_CC=$CC
2696: # Extract the first word of "gcc", so it can be a program name with args.
2697: set dummy gcc; ac_word=$2
1.11 ! moko 2698: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2699: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2700: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2701: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2702: else
2703: if test -n "$ac_ct_CC"; then
2704: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705: else
2706: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707: for as_dir in $PATH
2708: do
2709: IFS=$as_save_IFS
2710: test -z "$as_dir" && as_dir=.
1.11 ! moko 2711: for ac_exec_ext in '' $ac_executable_extensions; do
! 2712: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2713: ac_cv_prog_ac_ct_CC="gcc"
1.11 ! moko 2714: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2715: break 2
2716: fi
2717: done
1.11 ! moko 2718: done
1.1 misha 2719:
2720: fi
2721: fi
2722: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723: if test -n "$ac_ct_CC"; then
1.11 ! moko 2724: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2725: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2726: else
1.11 ! moko 2727: echo "$as_me:$LINENO: result: no" >&5
! 2728: echo "${ECHO_T}no" >&6
1.1 misha 2729: fi
2730:
1.11 ! moko 2731: CC=$ac_ct_CC
1.1 misha 2732: else
2733: CC="$ac_cv_prog_CC"
2734: fi
2735:
2736: if test -z "$CC"; then
1.11 ! moko 2737: if test -n "$ac_tool_prefix"; then
! 2738: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 2739: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.11 ! moko 2740: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2741: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2742: if test "${ac_cv_prog_CC+set}" = set; then
! 2743: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2744: else
2745: if test -n "$CC"; then
2746: ac_cv_prog_CC="$CC" # Let the user override the test.
2747: else
2748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749: for as_dir in $PATH
2750: do
2751: IFS=$as_save_IFS
2752: test -z "$as_dir" && as_dir=.
1.11 ! moko 2753: for ac_exec_ext in '' $ac_executable_extensions; do
! 2754: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2755: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.11 ! moko 2756: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2757: break 2
2758: fi
2759: done
1.11 ! moko 2760: done
1.1 misha 2761:
2762: fi
2763: fi
2764: CC=$ac_cv_prog_CC
2765: if test -n "$CC"; then
1.11 ! moko 2766: echo "$as_me:$LINENO: result: $CC" >&5
! 2767: echo "${ECHO_T}$CC" >&6
! 2768: else
! 2769: echo "$as_me:$LINENO: result: no" >&5
! 2770: echo "${ECHO_T}no" >&6
! 2771: fi
! 2772:
! 2773: fi
! 2774: if test -z "$ac_cv_prog_CC"; then
! 2775: ac_ct_CC=$CC
! 2776: # Extract the first word of "cc", so it can be a program name with args.
! 2777: set dummy cc; ac_word=$2
! 2778: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2779: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2780: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2781: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2782: else
! 2783: if test -n "$ac_ct_CC"; then
! 2784: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 2785: else
! 2786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2787: for as_dir in $PATH
! 2788: do
! 2789: IFS=$as_save_IFS
! 2790: test -z "$as_dir" && as_dir=.
! 2791: for ac_exec_ext in '' $ac_executable_extensions; do
! 2792: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2793: ac_cv_prog_ac_ct_CC="cc"
! 2794: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2795: break 2
! 2796: fi
! 2797: done
! 2798: done
! 2799:
! 2800: fi
! 2801: fi
! 2802: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 2803: if test -n "$ac_ct_CC"; then
! 2804: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2805: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2806: else
1.11 ! moko 2807: echo "$as_me:$LINENO: result: no" >&5
! 2808: echo "${ECHO_T}no" >&6
1.1 misha 2809: fi
2810:
1.11 ! moko 2811: CC=$ac_ct_CC
! 2812: else
! 2813: CC="$ac_cv_prog_CC"
! 2814: fi
1.10 moko 2815:
1.1 misha 2816: fi
2817: if test -z "$CC"; then
2818: # Extract the first word of "cc", so it can be a program name with args.
2819: set dummy cc; ac_word=$2
1.11 ! moko 2820: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2821: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2822: if test "${ac_cv_prog_CC+set}" = set; then
! 2823: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2824: else
2825: if test -n "$CC"; then
2826: ac_cv_prog_CC="$CC" # Let the user override the test.
2827: else
2828: ac_prog_rejected=no
2829: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830: for as_dir in $PATH
2831: do
2832: IFS=$as_save_IFS
2833: test -z "$as_dir" && as_dir=.
1.11 ! moko 2834: for ac_exec_ext in '' $ac_executable_extensions; do
! 2835: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2836: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837: ac_prog_rejected=yes
2838: continue
2839: fi
2840: ac_cv_prog_CC="cc"
1.11 ! moko 2841: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2842: break 2
2843: fi
2844: done
1.11 ! moko 2845: done
1.1 misha 2846:
2847: if test $ac_prog_rejected = yes; then
2848: # We found a bogon in the path, so make sure we never use it.
2849: set dummy $ac_cv_prog_CC
2850: shift
2851: if test $# != 0; then
2852: # We chose a different compiler from the bogus one.
2853: # However, it has the same basename, so the bogon will be chosen
2854: # first if we set CC to just the basename; use the full file name.
2855: shift
2856: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2857: fi
2858: fi
2859: fi
2860: fi
2861: CC=$ac_cv_prog_CC
2862: if test -n "$CC"; then
1.11 ! moko 2863: echo "$as_me:$LINENO: result: $CC" >&5
! 2864: echo "${ECHO_T}$CC" >&6
1.1 misha 2865: else
1.11 ! moko 2866: echo "$as_me:$LINENO: result: no" >&5
! 2867: echo "${ECHO_T}no" >&6
1.1 misha 2868: fi
2869:
2870: fi
2871: if test -z "$CC"; then
2872: if test -n "$ac_tool_prefix"; then
1.11 ! moko 2873: for ac_prog in cl
1.1 misha 2874: do
2875: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 ! moko 2877: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2878: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2879: if test "${ac_cv_prog_CC+set}" = set; then
! 2880: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2881: else
2882: if test -n "$CC"; then
2883: ac_cv_prog_CC="$CC" # Let the user override the test.
2884: else
2885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886: for as_dir in $PATH
2887: do
2888: IFS=$as_save_IFS
2889: test -z "$as_dir" && as_dir=.
1.11 ! moko 2890: for ac_exec_ext in '' $ac_executable_extensions; do
! 2891: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2892: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.11 ! moko 2893: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2894: break 2
2895: fi
2896: done
1.11 ! moko 2897: done
1.1 misha 2898:
2899: fi
2900: fi
2901: CC=$ac_cv_prog_CC
2902: if test -n "$CC"; then
1.11 ! moko 2903: echo "$as_me:$LINENO: result: $CC" >&5
! 2904: echo "${ECHO_T}$CC" >&6
1.1 misha 2905: else
1.11 ! moko 2906: echo "$as_me:$LINENO: result: no" >&5
! 2907: echo "${ECHO_T}no" >&6
1.1 misha 2908: fi
2909:
2910: test -n "$CC" && break
2911: done
2912: fi
2913: if test -z "$CC"; then
2914: ac_ct_CC=$CC
1.11 ! moko 2915: for ac_prog in cl
1.1 misha 2916: do
2917: # Extract the first word of "$ac_prog", so it can be a program name with args.
2918: set dummy $ac_prog; ac_word=$2
1.11 ! moko 2919: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2920: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2921: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2922: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2923: else
2924: if test -n "$ac_ct_CC"; then
2925: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926: else
2927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928: for as_dir in $PATH
2929: do
2930: IFS=$as_save_IFS
2931: test -z "$as_dir" && as_dir=.
1.11 ! moko 2932: for ac_exec_ext in '' $ac_executable_extensions; do
! 2933: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2934: ac_cv_prog_ac_ct_CC="$ac_prog"
1.11 ! moko 2935: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2936: break 2
2937: fi
2938: done
1.11 ! moko 2939: done
1.1 misha 2940:
2941: fi
2942: fi
2943: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944: if test -n "$ac_ct_CC"; then
1.11 ! moko 2945: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2946: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2947: else
1.11 ! moko 2948: echo "$as_me:$LINENO: result: no" >&5
! 2949: echo "${ECHO_T}no" >&6
1.1 misha 2950: fi
2951:
2952: test -n "$ac_ct_CC" && break
2953: done
2954:
1.11 ! moko 2955: CC=$ac_ct_CC
1.1 misha 2956: fi
2957:
2958: fi
2959:
2960:
1.11 ! moko 2961: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
! 2962: See \`config.log' for more details." >&5
! 2963: echo "$as_me: error: no acceptable C compiler found in \$PATH
! 2964: See \`config.log' for more details." >&2;}
! 2965: { (exit 1); exit 1; }; }
1.1 misha 2966:
2967: # Provide some information about the compiler.
1.11 ! moko 2968: echo "$as_me:$LINENO:" \
! 2969: "checking for C compiler version" >&5
! 2970: ac_compiler=`set X $ac_compile; echo $2`
! 2971: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 2972: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 2973: ac_status=$?
! 2974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2975: (exit $ac_status); }
! 2976: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 2977: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 2978: ac_status=$?
! 2979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2980: (exit $ac_status); }
! 2981: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 2982: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2983: ac_status=$?
1.11 ! moko 2984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2985: (exit $ac_status); }
! 2986:
! 2987: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 2988: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! 2989: if test "${ac_cv_c_compiler_gnu+set}" = set; then
! 2990: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2991: else
1.11 ! moko 2992: cat >conftest.$ac_ext <<_ACEOF
! 2993: /* confdefs.h. */
! 2994: _ACEOF
! 2995: cat confdefs.h >>conftest.$ac_ext
! 2996: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2997: /* end confdefs.h. */
2998:
2999: int
3000: main ()
3001: {
3002: #ifndef __GNUC__
3003: choke me
3004: #endif
3005:
3006: ;
3007: return 0;
3008: }
3009: _ACEOF
1.11 ! moko 3010: rm -f conftest.$ac_objext
! 3011: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3012: (eval $ac_compile) 2>conftest.er1
! 3013: ac_status=$?
! 3014: grep -v '^ *+' conftest.er1 >conftest.err
! 3015: rm -f conftest.er1
! 3016: cat conftest.err >&5
! 3017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3018: (exit $ac_status); } &&
! 3019: { ac_try='test -z "$ac_c_werror_flag"
! 3020: || test ! -s conftest.err'
! 3021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3022: (eval $ac_try) 2>&5
! 3023: ac_status=$?
! 3024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3025: (exit $ac_status); }; } &&
! 3026: { ac_try='test -s conftest.$ac_objext'
! 3027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3028: (eval $ac_try) 2>&5
! 3029: ac_status=$?
! 3030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3031: (exit $ac_status); }; }; then
1.1 misha 3032: ac_compiler_gnu=yes
3033: else
1.11 ! moko 3034: echo "$as_me: failed program was:" >&5
! 3035: sed 's/^/| /' conftest.$ac_ext >&5
! 3036:
! 3037: ac_compiler_gnu=no
1.1 misha 3038: fi
1.11 ! moko 3039: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3040: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041:
3042: fi
1.11 ! moko 3043: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 3044: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! 3045: GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 3046: ac_test_CFLAGS=${CFLAGS+set}
3047: ac_save_CFLAGS=$CFLAGS
1.11 ! moko 3048: CFLAGS="-g"
! 3049: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 3050: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! 3051: if test "${ac_cv_prog_cc_g+set}" = set; then
! 3052: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3053: else
! 3054: cat >conftest.$ac_ext <<_ACEOF
! 3055: /* confdefs.h. */
! 3056: _ACEOF
! 3057: cat confdefs.h >>conftest.$ac_ext
! 3058: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 3059: /* end confdefs.h. */
3060:
3061: int
3062: main ()
3063: {
3064:
3065: ;
3066: return 0;
3067: }
3068: _ACEOF
1.11 ! moko 3069: rm -f conftest.$ac_objext
! 3070: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3071: (eval $ac_compile) 2>conftest.er1
! 3072: ac_status=$?
! 3073: grep -v '^ *+' conftest.er1 >conftest.err
! 3074: rm -f conftest.er1
! 3075: cat conftest.err >&5
! 3076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3077: (exit $ac_status); } &&
! 3078: { ac_try='test -z "$ac_c_werror_flag"
! 3079: || test ! -s conftest.err'
! 3080: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3081: (eval $ac_try) 2>&5
! 3082: ac_status=$?
! 3083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3084: (exit $ac_status); }; } &&
! 3085: { ac_try='test -s conftest.$ac_objext'
! 3086: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3087: (eval $ac_try) 2>&5
! 3088: ac_status=$?
! 3089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3090: (exit $ac_status); }; }; then
1.10 moko 3091: ac_cv_prog_cc_g=yes
1.1 misha 3092: else
1.11 ! moko 3093: echo "$as_me: failed program was:" >&5
! 3094: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misha 3095:
1.11 ! moko 3096: ac_cv_prog_cc_g=no
1.10 moko 3097: fi
1.11 ! moko 3098: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3099: fi
1.11 ! moko 3100: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 3101: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 misha 3102: if test "$ac_test_CFLAGS" = set; then
3103: CFLAGS=$ac_save_CFLAGS
3104: elif test $ac_cv_prog_cc_g = yes; then
3105: if test "$GCC" = yes; then
3106: CFLAGS="-g -O2"
3107: else
3108: CFLAGS="-g"
3109: fi
3110: else
3111: if test "$GCC" = yes; then
3112: CFLAGS="-O2"
3113: else
3114: CFLAGS=
3115: fi
3116: fi
1.11 ! moko 3117: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
! 3118: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
! 3119: if test "${ac_cv_prog_cc_stdc+set}" = set; then
! 3120: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3121: else
1.11 ! moko 3122: ac_cv_prog_cc_stdc=no
1.1 misha 3123: ac_save_CC=$CC
1.11 ! moko 3124: cat >conftest.$ac_ext <<_ACEOF
! 3125: /* confdefs.h. */
! 3126: _ACEOF
! 3127: cat confdefs.h >>conftest.$ac_ext
! 3128: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 3129: /* end confdefs.h. */
3130: #include <stdarg.h>
3131: #include <stdio.h>
3132: #include <sys/types.h>
3133: #include <sys/stat.h>
3134: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3135: struct buf { int x; };
3136: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3137: static char *e (p, i)
3138: char **p;
3139: int i;
3140: {
3141: return p[i];
3142: }
3143: static char *f (char * (*g) (char **, int), char **p, ...)
3144: {
3145: char *s;
3146: va_list v;
3147: va_start (v,p);
3148: s = g (p, va_arg (v,int));
3149: va_end (v);
3150: return s;
3151: }
3152:
3153: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3154: function prototypes and stuff, but not '\xHH' hex character constants.
3155: These don't provoke an error unfortunately, instead are silently treated
1.11 ! moko 3156: as 'x'. The following induces an error, until -std1 is added to get
1.1 misha 3157: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3158: array size at least. It's necessary to write '\x00'==0 to get something
1.11 ! moko 3159: that's true only with -std1. */
1.1 misha 3160: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3161:
3162: int test (int i, double x);
3163: struct s1 {int (*f) (int a);};
3164: struct s2 {int (*f) (double a);};
3165: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166: int argc;
3167: char **argv;
3168: int
3169: main ()
3170: {
3171: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172: ;
3173: return 0;
3174: }
3175: _ACEOF
1.11 ! moko 3176: # Don't try gcc -ansi; that turns off useful extensions and
! 3177: # breaks some systems' header files.
! 3178: # AIX -qlanglvl=ansi
! 3179: # Ultrix and OSF/1 -std1
! 3180: # HP-UX 10.20 and later -Ae
! 3181: # HP-UX older versions -Aa -D_HPUX_SOURCE
! 3182: # SVR4 -Xc -D__EXTENSIONS__
! 3183: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 3184: do
3185: CC="$ac_save_CC $ac_arg"
1.11 ! moko 3186: rm -f conftest.$ac_objext
! 3187: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3188: (eval $ac_compile) 2>conftest.er1
! 3189: ac_status=$?
! 3190: grep -v '^ *+' conftest.er1 >conftest.err
! 3191: rm -f conftest.er1
! 3192: cat conftest.err >&5
! 3193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3194: (exit $ac_status); } &&
! 3195: { ac_try='test -z "$ac_c_werror_flag"
! 3196: || test ! -s conftest.err'
! 3197: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3198: (eval $ac_try) 2>&5
! 3199: ac_status=$?
! 3200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3201: (exit $ac_status); }; } &&
! 3202: { ac_try='test -s conftest.$ac_objext'
! 3203: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3204: (eval $ac_try) 2>&5
! 3205: ac_status=$?
! 3206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3207: (exit $ac_status); }; }; then
! 3208: ac_cv_prog_cc_stdc=$ac_arg
! 3209: break
! 3210: else
! 3211: echo "$as_me: failed program was:" >&5
! 3212: sed 's/^/| /' conftest.$ac_ext >&5
! 3213:
1.1 misha 3214: fi
1.11 ! moko 3215: rm -f conftest.err conftest.$ac_objext
1.1 misha 3216: done
1.11 ! moko 3217: rm -f conftest.$ac_ext conftest.$ac_objext
1.1 misha 3218: CC=$ac_save_CC
3219:
3220: fi
1.11 ! moko 3221:
! 3222: case "x$ac_cv_prog_cc_stdc" in
! 3223: x|xno)
! 3224: echo "$as_me:$LINENO: result: none needed" >&5
! 3225: echo "${ECHO_T}none needed" >&6 ;;
1.1 misha 3226: *)
1.11 ! moko 3227: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
! 3228: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
! 3229: CC="$CC $ac_cv_prog_cc_stdc" ;;
1.1 misha 3230: esac
3231:
1.11 ! moko 3232: # Some people use a C++ compiler to compile C. Since we use `exit',
! 3233: # in C++ we need to declare it. In case someone uses the same compiler
! 3234: # for both compiling C and C++ we need to have the C++ compiler decide
! 3235: # the declaration of exit, since it's the most demanding environment.
! 3236: cat >conftest.$ac_ext <<_ACEOF
! 3237: #ifndef __cplusplus
! 3238: choke me
! 3239: #endif
! 3240: _ACEOF
! 3241: rm -f conftest.$ac_objext
! 3242: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3243: (eval $ac_compile) 2>conftest.er1
! 3244: ac_status=$?
! 3245: grep -v '^ *+' conftest.er1 >conftest.err
! 3246: rm -f conftest.er1
! 3247: cat conftest.err >&5
! 3248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3249: (exit $ac_status); } &&
! 3250: { ac_try='test -z "$ac_c_werror_flag"
! 3251: || test ! -s conftest.err'
! 3252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3253: (eval $ac_try) 2>&5
! 3254: ac_status=$?
! 3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3256: (exit $ac_status); }; } &&
! 3257: { ac_try='test -s conftest.$ac_objext'
! 3258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3259: (eval $ac_try) 2>&5
! 3260: ac_status=$?
! 3261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3262: (exit $ac_status); }; }; then
! 3263: for ac_declaration in \
! 3264: '' \
! 3265: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 3266: 'extern "C" void std::exit (int); using std::exit;' \
! 3267: 'extern "C" void exit (int) throw ();' \
! 3268: 'extern "C" void exit (int);' \
! 3269: 'void exit (int);'
! 3270: do
! 3271: cat >conftest.$ac_ext <<_ACEOF
! 3272: /* confdefs.h. */
! 3273: _ACEOF
! 3274: cat confdefs.h >>conftest.$ac_ext
! 3275: cat >>conftest.$ac_ext <<_ACEOF
! 3276: /* end confdefs.h. */
! 3277: $ac_declaration
! 3278: #include <stdlib.h>
! 3279: int
! 3280: main ()
! 3281: {
! 3282: exit (42);
! 3283: ;
! 3284: return 0;
! 3285: }
! 3286: _ACEOF
! 3287: rm -f conftest.$ac_objext
! 3288: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3289: (eval $ac_compile) 2>conftest.er1
! 3290: ac_status=$?
! 3291: grep -v '^ *+' conftest.er1 >conftest.err
! 3292: rm -f conftest.er1
! 3293: cat conftest.err >&5
! 3294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3295: (exit $ac_status); } &&
! 3296: { ac_try='test -z "$ac_c_werror_flag"
! 3297: || test ! -s conftest.err'
! 3298: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3299: (eval $ac_try) 2>&5
! 3300: ac_status=$?
! 3301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3302: (exit $ac_status); }; } &&
! 3303: { ac_try='test -s conftest.$ac_objext'
! 3304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3305: (eval $ac_try) 2>&5
! 3306: ac_status=$?
! 3307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3308: (exit $ac_status); }; }; then
! 3309: :
! 3310: else
! 3311: echo "$as_me: failed program was:" >&5
! 3312: sed 's/^/| /' conftest.$ac_ext >&5
! 3313:
! 3314: continue
! 3315: fi
! 3316: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 3317: cat >conftest.$ac_ext <<_ACEOF
! 3318: /* confdefs.h. */
! 3319: _ACEOF
! 3320: cat confdefs.h >>conftest.$ac_ext
! 3321: cat >>conftest.$ac_ext <<_ACEOF
! 3322: /* end confdefs.h. */
! 3323: $ac_declaration
! 3324: int
! 3325: main ()
! 3326: {
! 3327: exit (42);
! 3328: ;
! 3329: return 0;
! 3330: }
! 3331: _ACEOF
! 3332: rm -f conftest.$ac_objext
! 3333: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3334: (eval $ac_compile) 2>conftest.er1
! 3335: ac_status=$?
! 3336: grep -v '^ *+' conftest.er1 >conftest.err
! 3337: rm -f conftest.er1
! 3338: cat conftest.err >&5
! 3339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3340: (exit $ac_status); } &&
! 3341: { ac_try='test -z "$ac_c_werror_flag"
! 3342: || test ! -s conftest.err'
! 3343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3344: (eval $ac_try) 2>&5
! 3345: ac_status=$?
! 3346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3347: (exit $ac_status); }; } &&
! 3348: { ac_try='test -s conftest.$ac_objext'
! 3349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3350: (eval $ac_try) 2>&5
! 3351: ac_status=$?
! 3352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3353: (exit $ac_status); }; }; then
! 3354: break
! 3355: else
! 3356: echo "$as_me: failed program was:" >&5
! 3357: sed 's/^/| /' conftest.$ac_ext >&5
! 3358:
! 3359: fi
! 3360: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 3361: done
! 3362: rm -f conftest*
! 3363: if test -n "$ac_declaration"; then
! 3364: echo '#ifdef __cplusplus' >>confdefs.h
! 3365: echo $ac_declaration >>confdefs.h
! 3366: echo '#endif' >>confdefs.h
1.1 misha 3367: fi
3368:
1.11 ! moko 3369: else
! 3370: echo "$as_me: failed program was:" >&5
! 3371: sed 's/^/| /' conftest.$ac_ext >&5
! 3372:
! 3373: fi
! 3374: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3375: ac_ext=c
3376: ac_cpp='$CPP $CPPFLAGS'
3377: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380:
3381: depcc="$CC" am_compiler_list=
3382:
1.11 ! moko 3383: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 3384: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 3385: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
! 3386: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3387: else
3388: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389: # We make a subdir and do the tests there. Otherwise we can end up
3390: # making bogus files that we don't know about and never remove. For
3391: # instance it was reported that on HP-UX the gcc test will end up
3392: # making a dummy file named `D' -- because `-MD' means `put the output
3393: # in D'.
3394: mkdir conftest.dir
3395: # Copy depcomp to subdir because otherwise we won't find it if we're
3396: # using a relative directory.
3397: cp "$am_depcomp" conftest.dir
3398: cd conftest.dir
3399: # We will build objects and dependencies in a subdirectory because
3400: # it helps to detect inapplicable dependency modes. For instance
3401: # both Tru64's cc and ICC support -MD to output dependencies as a
3402: # side effect of compilation, but ICC will put the dependencies in
3403: # the current directory while Tru64 will put them in the object
3404: # directory.
3405: mkdir sub
3406:
3407: am_cv_CC_dependencies_compiler_type=none
3408: if test "$am_compiler_list" = ""; then
3409: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3410: fi
3411: for depmode in $am_compiler_list; do
3412: # Setup a source with many dependencies, because some compilers
3413: # like to wrap large dependency lists on column 80 (with \), and
3414: # we should not choose a depcomp mode which is confused by this.
3415: #
3416: # We need to recreate these files for each test, as the compiler may
3417: # overwrite some of them when testing with obscure command lines.
3418: # This happens at least with the AIX C compiler.
3419: : > sub/conftest.c
3420: for i in 1 2 3 4 5 6; do
3421: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3422: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3423: # Solaris 8's {/usr,}/bin/sh.
3424: touch sub/conftst$i.h
3425: done
3426: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3427:
3428: case $depmode in
3429: nosideeffect)
3430: # after this tag, mechanisms are not by side-effect, so they'll
3431: # only be used when explicitly requested
3432: if test "x$enable_dependency_tracking" = xyes; then
3433: continue
3434: else
3435: break
3436: fi
3437: ;;
3438: none) break ;;
3439: esac
3440: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3441: # mode. It turns out that the SunPro C++ compiler does not properly
3442: # handle `-M -o', and we need to detect this.
3443: if depmode=$depmode \
3444: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3445: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3446: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3447: >/dev/null 2>conftest.err &&
3448: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3449: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3450: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3451: # icc doesn't choke on unknown options, it will just issue warnings
3452: # or remarks (even with -Werror). So we grep stderr for any message
3453: # that says an option was ignored or not supported.
3454: # When given -MP, icc 7.0 and 7.1 complain thusly:
3455: # icc: Command line warning: ignoring option '-M'; no argument required
3456: # The diagnosis changed in icc 8.0:
3457: # icc: Command line remark: option '-MP' not supported
3458: if (grep 'ignoring option' conftest.err ||
3459: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3460: am_cv_CC_dependencies_compiler_type=$depmode
3461: break
3462: fi
3463: fi
3464: done
3465:
3466: cd ..
3467: rm -rf conftest.dir
3468: else
3469: am_cv_CC_dependencies_compiler_type=none
3470: fi
3471:
3472: fi
1.11 ! moko 3473: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
! 3474: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1.1 misha 3475: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3476:
3477:
3478:
3479: if
3480: test "x$enable_dependency_tracking" != xno \
3481: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3482: am__fastdepCC_TRUE=
3483: am__fastdepCC_FALSE='#'
3484: else
3485: am__fastdepCC_TRUE='#'
3486: am__fastdepCC_FALSE=
3487: fi
3488:
3489:
3490:
1.8 moko 3491:
3492: case `pwd` in
3493: *\ * | *\ *)
1.11 ! moko 3494: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 3495: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 3496: esac
3497:
3498:
3499:
3500: macro_version='2.4.2'
3501: macro_revision='1.3337'
3502:
3503:
3504:
3505:
3506:
3507:
3508:
1.1 misha 3509:
3510:
3511:
3512:
3513:
3514:
1.8 moko 3515: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 3516:
3517: # Make sure we can run config.sub.
1.11 ! moko 3518: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 3519: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! 3520: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 3521: { (exit 1); exit 1; }; }
! 3522:
! 3523: echo "$as_me:$LINENO: checking build system type" >&5
! 3524: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 3525: if test "${ac_cv_build+set}" = set; then
! 3526: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3527: else
! 3528: ac_cv_build_alias=$build_alias
! 3529: test -z "$ac_cv_build_alias" &&
! 3530: ac_cv_build_alias=`$ac_config_guess`
! 3531: test -z "$ac_cv_build_alias" &&
! 3532: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 3533: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 3534: { (exit 1); exit 1; }; }
! 3535: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 3536: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! 3537: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
! 3538: { (exit 1); exit 1; }; }
1.1 misha 3539:
1.11 ! moko 3540: fi
! 3541: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 3542: echo "${ECHO_T}$ac_cv_build" >&6
1.10 moko 3543: build=$ac_cv_build
1.11 ! moko 3544: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 3545: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 3546: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 3547:
! 3548:
! 3549: echo "$as_me:$LINENO: checking host system type" >&5
! 3550: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 3551: if test "${ac_cv_host+set}" = set; then
! 3552: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3553: else
! 3554: ac_cv_host_alias=$host_alias
! 3555: test -z "$ac_cv_host_alias" &&
! 3556: ac_cv_host_alias=$ac_cv_build_alias
! 3557: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 3558: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 3559: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 3560: { (exit 1); exit 1; }; }
1.1 misha 3561:
3562: fi
1.11 ! moko 3563: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 3564: echo "${ECHO_T}$ac_cv_host" >&6
1.1 misha 3565: host=$ac_cv_host
1.11 ! moko 3566: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 3567: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 3568: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 misha 3569:
3570:
1.8 moko 3571: # Backslashify metacharacters that are still active within
3572: # double-quoted strings.
3573: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3574:
3575: # Same as above, but do not quote variable references.
3576: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3577:
3578: # Sed substitution to delay expansion of an escaped shell variable in a
3579: # double_quote_subst'ed string.
3580: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3581:
3582: # Sed substitution to delay expansion of an escaped single quote.
3583: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 3584:
1.8 moko 3585: # Sed substitution to avoid accidental globbing in evaled expressions
3586: no_glob_subst='s/\*/\\\*/g'
1.1 misha 3587:
1.8 moko 3588: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3589: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3590: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3591:
1.11 ! moko 3592: echo "$as_me:$LINENO: checking how to print strings" >&5
! 3593: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
1.8 moko 3594: # Test print first, because it will be a builtin if present.
3595: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3596: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3597: ECHO='print -r --'
3598: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3599: ECHO='printf %s\n'
1.1 misha 3600: else
1.8 moko 3601: # Use this function as a fallback that always works.
3602: func_fallback_echo ()
3603: {
3604: eval 'cat <<_LTECHO_EOF
3605: $1
3606: _LTECHO_EOF'
3607: }
3608: ECHO='func_fallback_echo'
1.1 misha 3609: fi
1.8 moko 3610:
3611: # func_echo_all arg...
3612: # Invoke $ECHO with all args, space-separated.
3613: func_echo_all ()
3614: {
3615: $ECHO ""
3616: }
3617:
3618: case "$ECHO" in
1.11 ! moko 3619: printf*) echo "$as_me:$LINENO: result: printf" >&5
! 3620: echo "${ECHO_T}printf" >&6 ;;
! 3621: print*) echo "$as_me:$LINENO: result: print -r" >&5
! 3622: echo "${ECHO_T}print -r" >&6 ;;
! 3623: *) echo "$as_me:$LINENO: result: cat" >&5
! 3624: echo "${ECHO_T}cat" >&6 ;;
1.8 moko 3625: esac
3626:
3627:
3628:
3629:
3630:
3631:
3632:
3633:
3634:
3635:
3636:
3637:
3638:
3639:
1.11 ! moko 3640: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 3641: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
! 3642: if test "${lt_cv_path_SED+set}" = set; then
! 3643: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3644: else
! 3645: # Loop through the user's path and test for sed and gsed.
! 3646: # Then use that list of sed's as ones to test for truncation.
! 3647: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 3648: for as_dir in $PATH
3649: do
3650: IFS=$as_save_IFS
3651: test -z "$as_dir" && as_dir=.
1.11 ! moko 3652: for lt_ac_prog in sed gsed; do
1.8 moko 3653: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 ! moko 3654: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
! 3655: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
! 3656: fi
1.8 moko 3657: done
3658: done
1.11 ! moko 3659: done
1.8 moko 3660: IFS=$as_save_IFS
1.11 ! moko 3661: lt_ac_max=0
! 3662: lt_ac_count=0
! 3663: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
! 3664: # along with /bin/sed that truncates output.
! 3665: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
! 3666: test ! -f $lt_ac_sed && continue
! 3667: cat /dev/null > conftest.in
! 3668: lt_ac_count=0
! 3669: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
! 3670: # Check for GNU sed and select it if it is found.
! 3671: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
! 3672: lt_cv_path_SED=$lt_ac_sed
! 3673: break
1.8 moko 3674: fi
1.11 ! moko 3675: while true; do
! 3676: cat conftest.in conftest.in >conftest.tmp
! 3677: mv conftest.tmp conftest.in
! 3678: cp conftest.in conftest.nl
! 3679: echo >>conftest.nl
! 3680: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
! 3681: cmp -s conftest.out conftest.nl || break
! 3682: # 10000 chars as input seems more than enough
! 3683: test $lt_ac_count -gt 10 && break
! 3684: lt_ac_count=`expr $lt_ac_count + 1`
! 3685: if test $lt_ac_count -gt $lt_ac_max; then
! 3686: lt_ac_max=$lt_ac_count
! 3687: lt_cv_path_SED=$lt_ac_sed
! 3688: fi
! 3689: done
! 3690: done
! 3691:
1.10 moko 3692: fi
1.8 moko 3693:
1.11 ! moko 3694: SED=$lt_cv_path_SED
! 3695:
! 3696: echo "$as_me:$LINENO: result: $SED" >&5
! 3697: echo "${ECHO_T}$SED" >&6
1.8 moko 3698:
3699: test -z "$SED" && SED=sed
3700: Xsed="$SED -e 1s/^X//"
3701:
3702:
3703:
3704:
3705:
3706:
3707:
3708:
3709:
3710:
3711:
1.11 ! moko 3712: echo "$as_me:$LINENO: checking for egrep" >&5
! 3713: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
! 3714: if test "${ac_cv_prog_egrep+set}" = set; then
! 3715: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3716: else
! 3717: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
! 3718: then ac_cv_prog_egrep='grep -E'
! 3719: else ac_cv_prog_egrep='egrep'
1.8 moko 3720: fi
3721: fi
1.11 ! moko 3722: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
! 3723: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
! 3724: EGREP=$ac_cv_prog_egrep
1.8 moko 3725:
3726:
1.11 ! moko 3727: echo "$as_me:$LINENO: checking for fgrep" >&5
! 3728: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
! 3729: if test "${ac_cv_prog_fgrep+set}" = set; then
! 3730: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3731: else
! 3732: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
! 3733: then ac_cv_prog_fgrep='grep -F'
! 3734: else ac_cv_prog_fgrep='fgrep'
1.8 moko 3735: fi
3736: fi
1.11 ! moko 3737: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
! 3738: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
! 3739: FGREP=$ac_cv_prog_fgrep
1.8 moko 3740:
3741:
3742: test -z "$GREP" && GREP=grep
3743:
3744:
3745:
3746:
3747:
3748:
3749:
3750:
3751:
3752:
3753:
3754:
3755:
3756:
3757:
3758:
3759:
3760:
3761:
1.11 ! moko 3762: # Check whether --with-gnu-ld or --without-gnu-ld was given.
! 3763: if test "${with_gnu_ld+set}" = set; then
! 3764: withval="$with_gnu_ld"
! 3765: test "$withval" = no || with_gnu_ld=yes
1.8 moko 3766: else
3767: with_gnu_ld=no
1.11 ! moko 3768: fi;
1.8 moko 3769: ac_prog=ld
3770: if test "$GCC" = yes; then
3771: # Check if gcc -print-prog-name=ld gives a path.
1.11 ! moko 3772: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 3773: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 3774: case $host in
3775: *-*-mingw*)
3776: # gcc leaves a trailing carriage return which upsets mingw
3777: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3778: *)
3779: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3780: esac
3781: case $ac_prog in
3782: # Accept absolute paths.
3783: [\\/]* | ?:[\\/]*)
3784: re_direlt='/[^/][^/]*/\.\./'
3785: # Canonicalize the pathname of ld
3786: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3787: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3788: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3789: done
3790: test -z "$LD" && LD="$ac_prog"
3791: ;;
3792: "")
3793: # If it fails, then pretend we aren't using GCC.
3794: ac_prog=ld
3795: ;;
3796: *)
3797: # If it is relative, then search for the first ld in PATH.
3798: with_gnu_ld=unknown
3799: ;;
3800: esac
3801: elif test "$with_gnu_ld" = yes; then
1.11 ! moko 3802: echo "$as_me:$LINENO: checking for GNU ld" >&5
! 3803: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 3804: else
1.11 ! moko 3805: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 3806: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 3807: fi
1.11 ! moko 3808: if test "${lt_cv_path_LD+set}" = set; then
! 3809: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3810: else
3811: if test -z "$LD"; then
1.8 moko 3812: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 3813: for ac_dir in $PATH; do
1.8 moko 3814: IFS="$lt_save_ifs"
1.1 misha 3815: test -z "$ac_dir" && ac_dir=.
3816: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3817: lt_cv_path_LD="$ac_dir/$ac_prog"
3818: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 3819: # but apparently some variants of GNU ld only accept -v.
1.1 misha 3820: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 3821: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3822: *GNU* | *'with BFD'*)
1.1 misha 3823: test "$with_gnu_ld" != no && break
1.8 moko 3824: ;;
3825: *)
1.1 misha 3826: test "$with_gnu_ld" != yes && break
1.8 moko 3827: ;;
3828: esac
1.1 misha 3829: fi
3830: done
1.8 moko 3831: IFS="$lt_save_ifs"
1.1 misha 3832: else
3833: lt_cv_path_LD="$LD" # Let the user override the test with a path.
3834: fi
3835: fi
3836:
3837: LD="$lt_cv_path_LD"
3838: if test -n "$LD"; then
1.11 ! moko 3839: echo "$as_me:$LINENO: result: $LD" >&5
! 3840: echo "${ECHO_T}$LD" >&6
1.1 misha 3841: else
1.11 ! moko 3842: echo "$as_me:$LINENO: result: no" >&5
! 3843: echo "${ECHO_T}no" >&6
1.1 misha 3844: fi
1.11 ! moko 3845: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 3846: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 3847: { (exit 1); exit 1; }; }
! 3848: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 3849: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
! 3850: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 3851: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3852: else
1.8 moko 3853: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3854: case `$LD -v 2>&1 </dev/null` in
3855: *GNU* | *'with BFD'*)
1.1 misha 3856: lt_cv_prog_gnu_ld=yes
1.8 moko 3857: ;;
3858: *)
1.1 misha 3859: lt_cv_prog_gnu_ld=no
1.8 moko 3860: ;;
3861: esac
1.1 misha 3862: fi
1.11 ! moko 3863: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 3864: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.1 misha 3865: with_gnu_ld=$lt_cv_prog_gnu_ld
3866:
3867:
3868:
1.8 moko 3869:
3870:
3871:
3872:
3873:
3874:
1.11 ! moko 3875: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
! 3876: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
! 3877: if test "${lt_cv_path_NM+set}" = set; then
! 3878: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3879: else
3880: if test -n "$NM"; then
3881: # Let the user override the test.
3882: lt_cv_path_NM="$NM"
3883: else
1.8 moko 3884: lt_nm_to_check="${ac_tool_prefix}nm"
3885: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3886: lt_nm_to_check="$lt_nm_to_check nm"
3887: fi
3888: for lt_tmp_nm in $lt_nm_to_check; do
3889: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3890: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3891: IFS="$lt_save_ifs"
3892: test -z "$ac_dir" && ac_dir=.
3893: tmp_nm="$ac_dir/$lt_tmp_nm"
3894: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3895: # Check to see if the nm accepts a BSD-compat flag.
3896: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3897: # nm: unknown option "B" ignored
3898: # Tru64's nm complains that /dev/null is an invalid object file
3899: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3900: */dev/null* | *'Invalid file or object type'*)
3901: lt_cv_path_NM="$tmp_nm -B"
3902: break
3903: ;;
3904: *)
3905: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3906: */dev/null*)
3907: lt_cv_path_NM="$tmp_nm -p"
3908: break
3909: ;;
3910: *)
3911: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3912: continue # so that we can try to find one that supports BSD flags
3913: ;;
3914: esac
3915: ;;
3916: esac
1.1 misha 3917: fi
1.8 moko 3918: done
3919: IFS="$lt_save_ifs"
1.1 misha 3920: done
1.8 moko 3921: : ${lt_cv_path_NM=no}
1.1 misha 3922: fi
3923: fi
1.11 ! moko 3924: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
! 3925: echo "${ECHO_T}$lt_cv_path_NM" >&6
1.8 moko 3926: if test "$lt_cv_path_NM" != "no"; then
3927: NM="$lt_cv_path_NM"
3928: else
3929: # Didn't find any BSD compatible name lister, look for dumpbin.
3930: if test -n "$DUMPBIN"; then :
3931: # Let the user override the test.
3932: else
3933: if test -n "$ac_tool_prefix"; then
3934: for ac_prog in dumpbin "link -dump"
3935: do
3936: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3937: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 ! moko 3938: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3939: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3940: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
! 3941: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3942: else
1.8 moko 3943: if test -n "$DUMPBIN"; then
3944: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3945: else
1.1 misha 3946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947: for as_dir in $PATH
3948: do
3949: IFS=$as_save_IFS
3950: test -z "$as_dir" && as_dir=.
1.11 ! moko 3951: for ac_exec_ext in '' $ac_executable_extensions; do
! 3952: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 3953: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.11 ! moko 3954: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 3955: break 2
3956: fi
3957: done
1.11 ! moko 3958: done
! 3959:
1.8 moko 3960: fi
3961: fi
3962: DUMPBIN=$ac_cv_prog_DUMPBIN
3963: if test -n "$DUMPBIN"; then
1.11 ! moko 3964: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
! 3965: echo "${ECHO_T}$DUMPBIN" >&6
1.8 moko 3966: else
1.11 ! moko 3967: echo "$as_me:$LINENO: result: no" >&5
! 3968: echo "${ECHO_T}no" >&6
1.8 moko 3969: fi
1.1 misha 3970:
1.8 moko 3971: test -n "$DUMPBIN" && break
1.1 misha 3972: done
1.8 moko 3973: fi
3974: if test -z "$DUMPBIN"; then
3975: ac_ct_DUMPBIN=$DUMPBIN
3976: for ac_prog in dumpbin "link -dump"
3977: do
3978: # Extract the first word of "$ac_prog", so it can be a program name with args.
3979: set dummy $ac_prog; ac_word=$2
1.11 ! moko 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_DUMPBIN+set}" = set; then
! 3983: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 3984: else
3985: if test -n "$ac_ct_DUMPBIN"; then
3986: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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=.
1.11 ! moko 3993: for ac_exec_ext in '' $ac_executable_extensions; do
! 3994: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 3995: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.11 ! moko 3996: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 3997: break 2
3998: fi
3999: done
1.11 ! moko 4000: done
1.1 misha 4001:
4002: fi
1.8 moko 4003: fi
4004: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4005: if test -n "$ac_ct_DUMPBIN"; then
1.11 ! moko 4006: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
! 4007: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.1 misha 4008: else
1.11 ! moko 4009: echo "$as_me:$LINENO: result: no" >&5
! 4010: echo "${ECHO_T}no" >&6
1.1 misha 4011: fi
4012:
1.8 moko 4013: test -n "$ac_ct_DUMPBIN" && break
4014: done
1.11 ! moko 4015: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.8 moko 4016:
1.11 ! moko 4017: DUMPBIN=$ac_ct_DUMPBIN
1.1 misha 4018: fi
4019:
1.8 moko 4020: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4021: *COFF*)
4022: DUMPBIN="$DUMPBIN -symbols"
4023: ;;
4024: *)
4025: DUMPBIN=:
4026: ;;
4027: esac
4028: fi
4029:
4030: if test "$DUMPBIN" != ":"; then
4031: NM="$DUMPBIN"
4032: fi
4033: fi
4034: test -z "$NM" && NM=nm
4035:
4036:
4037:
4038:
4039:
4040:
1.11 ! moko 4041: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
! 4042: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
! 4043: if test "${lt_cv_nm_interface+set}" = set; then
! 4044: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4045: else
4046: lt_cv_nm_interface="BSD nm"
4047: echo "int some_variable = 0;" > conftest.$ac_ext
4048: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4049: (eval "$ac_compile" 2>conftest.err)
4050: cat conftest.err >&5
4051: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4052: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4053: cat conftest.err >&5
4054: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4055: cat conftest.out >&5
4056: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4057: lt_cv_nm_interface="MS dumpbin"
4058: fi
4059: rm -f conftest*
4060: fi
1.11 ! moko 4061: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
! 4062: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.8 moko 4063:
1.11 ! moko 4064: echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 4065: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1.8 moko 4066: LN_S=$as_ln_s
4067: if test "$LN_S" = "ln -s"; then
1.11 ! moko 4068: echo "$as_me:$LINENO: result: yes" >&5
! 4069: echo "${ECHO_T}yes" >&6
1.8 moko 4070: else
1.11 ! moko 4071: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 4072: echo "${ECHO_T}no, using $LN_S" >&6
1.8 moko 4073: fi
4074:
4075: # find the maximum length of command line arguments
1.11 ! moko 4076: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 4077: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
! 4078: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
! 4079: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4080: else
4081: i=0
4082: teststring="ABCD"
4083:
4084: case $build_os in
4085: msdosdjgpp*)
4086: # On DJGPP, this test can blow up pretty badly due to problems in libc
4087: # (any single argument exceeding 2000 bytes causes a buffer overrun
4088: # during glob expansion). Even if it were fixed, the result of this
4089: # check would be larger than it should be.
4090: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4091: ;;
4092:
4093: gnu*)
4094: # Under GNU Hurd, this test is not required because there is
4095: # no limit to the length of command line arguments.
4096: # Libtool will interpret -1 as no limit whatsoever
4097: lt_cv_sys_max_cmd_len=-1;
4098: ;;
4099:
4100: cygwin* | mingw* | cegcc*)
4101: # On Win9x/ME, this test blows up -- it succeeds, but takes
4102: # about 5 minutes as the teststring grows exponentially.
4103: # Worse, since 9x/ME are not pre-emptively multitasking,
4104: # you end up with a "frozen" computer, even though with patience
4105: # the test eventually succeeds (with a max line length of 256k).
4106: # Instead, let's just punt: use the minimum linelength reported by
4107: # all of the supported platforms: 8192 (on NT/2K/XP).
4108: lt_cv_sys_max_cmd_len=8192;
4109: ;;
4110:
4111: mint*)
4112: # On MiNT this can take a long time and run out of memory.
4113: lt_cv_sys_max_cmd_len=8192;
4114: ;;
4115:
4116: amigaos*)
4117: # On AmigaOS with pdksh, this test takes hours, literally.
4118: # So we just punt and use a minimum line length of 8192.
4119: lt_cv_sys_max_cmd_len=8192;
4120: ;;
4121:
4122: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4123: # This has been around since 386BSD, at least. Likely further.
4124: if test -x /sbin/sysctl; then
4125: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4126: elif test -x /usr/sbin/sysctl; then
4127: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4128: else
4129: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4130: fi
4131: # And add a safety zone
4132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4133: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4134: ;;
4135:
4136: interix*)
4137: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4138: lt_cv_sys_max_cmd_len=196608
4139: ;;
4140:
4141: os2*)
4142: # The test takes a long time on OS/2.
4143: lt_cv_sys_max_cmd_len=8192
4144: ;;
4145:
4146: osf*)
4147: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4148: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4149: # nice to cause kernel panics so lets avoid the loop below.
4150: # First set a reasonable default.
4151: lt_cv_sys_max_cmd_len=16384
4152: #
4153: if test -x /sbin/sysconfig; then
4154: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4155: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4156: esac
4157: fi
4158: ;;
4159: sco3.2v5*)
4160: lt_cv_sys_max_cmd_len=102400
4161: ;;
4162: sysv5* | sco5v6* | sysv4.2uw2*)
4163: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4164: if test -n "$kargmax"; then
4165: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4166: else
4167: lt_cv_sys_max_cmd_len=32768
4168: fi
4169: ;;
4170: *)
4171: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4172: if test -n "$lt_cv_sys_max_cmd_len"; then
4173: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4174: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4175: else
4176: # Make teststring a little bigger before we do anything with it.
4177: # a 1K string should be a reasonable start.
4178: for i in 1 2 3 4 5 6 7 8 ; do
4179: teststring=$teststring$teststring
4180: done
4181: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4182: # If test is not a shell built-in, we'll probably end up computing a
4183: # maximum length that is only half of the actual maximum length, but
4184: # we can't tell.
4185: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4186: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4187: test $i != 17 # 1/2 MB should be enough
4188: do
4189: i=`expr $i + 1`
4190: teststring=$teststring$teststring
4191: done
4192: # Only check the string length outside the loop.
4193: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4194: teststring=
4195: # Add a significant safety factor because C++ compilers can tack on
4196: # massive amounts of additional arguments before passing them to the
4197: # linker. It appears as though 1/2 is a usable value.
4198: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4199: fi
4200: ;;
4201: esac
4202:
4203: fi
4204:
4205: if test -n $lt_cv_sys_max_cmd_len ; then
1.11 ! moko 4206: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 4207: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
1.8 moko 4208: else
1.11 ! moko 4209: echo "$as_me:$LINENO: result: none" >&5
! 4210: echo "${ECHO_T}none" >&6
1.8 moko 4211: fi
4212: max_cmd_len=$lt_cv_sys_max_cmd_len
4213:
4214:
4215:
4216:
4217:
4218:
4219: : ${CP="cp -f"}
4220: : ${MV="mv -f"}
4221: : ${RM="rm -f"}
4222:
1.11 ! moko 4223: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
! 4224: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1.8 moko 4225: # Try some XSI features
4226: xsi_shell=no
4227: ( _lt_dummy="a/b/c"
4228: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4229: = c,a/b,b/c, \
4230: && eval 'test $(( 1 + 1 )) -eq 2 \
4231: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4232: && xsi_shell=yes
1.11 ! moko 4233: echo "$as_me:$LINENO: result: $xsi_shell" >&5
! 4234: echo "${ECHO_T}$xsi_shell" >&6
1.8 moko 4235:
4236:
1.11 ! moko 4237: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
! 4238: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1.8 moko 4239: lt_shell_append=no
4240: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4241: >/dev/null 2>&1 \
4242: && lt_shell_append=yes
1.11 ! moko 4243: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
! 4244: echo "${ECHO_T}$lt_shell_append" >&6
1.8 moko 4245:
4246:
4247: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4248: lt_unset=unset
4249: else
4250: lt_unset=false
4251: fi
4252:
4253:
4254:
4255:
4256:
4257: # test EBCDIC or ASCII
4258: case `echo X|tr X '\101'` in
4259: A) # ASCII based system
4260: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4261: lt_SP2NL='tr \040 \012'
4262: lt_NL2SP='tr \015\012 \040\040'
4263: ;;
4264: *) # EBCDIC based system
4265: lt_SP2NL='tr \100 \n'
4266: lt_NL2SP='tr \r\n \100\100'
4267: ;;
4268: esac
4269:
4270:
4271:
4272:
4273:
4274:
4275:
4276:
4277:
1.11 ! moko 4278: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
! 4279: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
! 4280: if test "${lt_cv_to_host_file_cmd+set}" = set; then
! 4281: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4282: else
4283: case $host in
4284: *-*-mingw* )
4285: case $build in
4286: *-*-mingw* ) # actually msys
4287: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4288: ;;
4289: *-*-cygwin* )
4290: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4291: ;;
4292: * ) # otherwise, assume *nix
4293: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4294: ;;
4295: esac
4296: ;;
4297: *-*-cygwin* )
4298: case $build in
4299: *-*-mingw* ) # actually msys
4300: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4301: ;;
4302: *-*-cygwin* )
4303: lt_cv_to_host_file_cmd=func_convert_file_noop
4304: ;;
4305: * ) # otherwise, assume *nix
4306: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4307: ;;
4308: esac
4309: ;;
4310: * ) # unhandled hosts (and "normal" native builds)
4311: lt_cv_to_host_file_cmd=func_convert_file_noop
4312: ;;
4313: esac
4314:
4315: fi
4316:
4317: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.11 ! moko 4318: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
! 4319: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
1.8 moko 4320:
4321:
4322:
4323:
4324:
1.11 ! moko 4325: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
! 4326: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
! 4327: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
! 4328: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4329: else
4330: #assume ordinary cross tools, or native build.
4331: lt_cv_to_tool_file_cmd=func_convert_file_noop
4332: case $host in
4333: *-*-mingw* )
4334: case $build in
4335: *-*-mingw* ) # actually msys
4336: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4337: ;;
4338: esac
4339: ;;
4340: esac
4341:
4342: fi
4343:
4344: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.11 ! moko 4345: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
! 4346: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
1.8 moko 4347:
4348:
4349:
4350:
4351:
1.11 ! moko 4352: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 4353: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
! 4354: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 4355: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4356: else
4357: lt_cv_ld_reload_flag='-r'
4358: fi
1.11 ! moko 4359: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 4360: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1.8 moko 4361: reload_flag=$lt_cv_ld_reload_flag
4362: case $reload_flag in
4363: "" | " "*) ;;
4364: *) reload_flag=" $reload_flag" ;;
4365: esac
4366: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4367: case $host_os in
4368: cygwin* | mingw* | pw32* | cegcc*)
4369: if test "$GCC" != yes; then
4370: reload_cmds=false
4371: fi
4372: ;;
4373: darwin*)
4374: if test "$GCC" = yes; then
4375: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4376: else
4377: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4378: fi
4379: ;;
4380: esac
4381:
4382:
4383:
4384:
4385:
4386:
4387:
4388:
4389:
4390: if test -n "$ac_tool_prefix"; then
4391: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4392: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.11 ! moko 4393: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4394: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4395: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
! 4396: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4397: else
4398: if test -n "$OBJDUMP"; then
4399: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4400: else
4401: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402: for as_dir in $PATH
4403: do
4404: IFS=$as_save_IFS
4405: test -z "$as_dir" && as_dir=.
1.11 ! moko 4406: for ac_exec_ext in '' $ac_executable_extensions; do
! 4407: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4408: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.11 ! moko 4409: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4410: break 2
4411: fi
4412: done
1.11 ! moko 4413: done
1.8 moko 4414:
4415: fi
4416: fi
4417: OBJDUMP=$ac_cv_prog_OBJDUMP
4418: if test -n "$OBJDUMP"; then
1.11 ! moko 4419: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
! 4420: echo "${ECHO_T}$OBJDUMP" >&6
1.8 moko 4421: else
1.11 ! moko 4422: echo "$as_me:$LINENO: result: no" >&5
! 4423: echo "${ECHO_T}no" >&6
1.8 moko 4424: fi
4425:
4426: fi
4427: if test -z "$ac_cv_prog_OBJDUMP"; then
4428: ac_ct_OBJDUMP=$OBJDUMP
4429: # Extract the first word of "objdump", so it can be a program name with args.
4430: set dummy objdump; ac_word=$2
1.11 ! moko 4431: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4432: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4433: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
! 4434: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4435: else
4436: if test -n "$ac_ct_OBJDUMP"; then
4437: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4438: else
4439: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440: for as_dir in $PATH
4441: do
4442: IFS=$as_save_IFS
4443: test -z "$as_dir" && as_dir=.
1.11 ! moko 4444: for ac_exec_ext in '' $ac_executable_extensions; do
! 4445: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4446: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.11 ! moko 4447: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4448: break 2
4449: fi
4450: done
1.11 ! moko 4451: done
1.8 moko 4452:
1.11 ! moko 4453: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
1.8 moko 4454: fi
4455: fi
4456: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4457: if test -n "$ac_ct_OBJDUMP"; then
1.11 ! moko 4458: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
! 4459: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
1.8 moko 4460: else
1.11 ! moko 4461: echo "$as_me:$LINENO: result: no" >&5
! 4462: echo "${ECHO_T}no" >&6
1.8 moko 4463: fi
4464:
1.11 ! moko 4465: OBJDUMP=$ac_ct_OBJDUMP
1.8 moko 4466: else
4467: OBJDUMP="$ac_cv_prog_OBJDUMP"
4468: fi
4469:
4470: test -z "$OBJDUMP" && OBJDUMP=objdump
4471:
4472:
4473:
4474:
4475:
4476:
4477:
4478:
4479:
1.11 ! moko 4480: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
! 4481: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
! 4482: if test "${lt_cv_deplibs_check_method+set}" = set; then
! 4483: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4484: else
4485: lt_cv_file_magic_cmd='$MAGIC_CMD'
4486: lt_cv_file_magic_test_file=
4487: lt_cv_deplibs_check_method='unknown'
4488: # Need to set the preceding variable on all platforms that support
4489: # interlibrary dependencies.
4490: # 'none' -- dependencies not supported.
4491: # `unknown' -- same as none, but documents that we really don't know.
4492: # 'pass_all' -- all dependencies passed with no checks.
4493: # 'test_compile' -- check by making test program.
4494: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 4495: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 4496: # If you have `file' or equivalent on your system and you're not sure
4497: # whether `pass_all' will *always* work, you probably want this one.
4498:
4499: case $host_os in
1.8 moko 4500: aix[4-9]*)
1.1 misha 4501: lt_cv_deplibs_check_method=pass_all
4502: ;;
4503:
4504: beos*)
4505: lt_cv_deplibs_check_method=pass_all
4506: ;;
4507:
1.8 moko 4508: bsdi[45]*)
1.1 misha 4509: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4510: lt_cv_file_magic_cmd='/usr/bin/file -L'
4511: lt_cv_file_magic_test_file=/shlib/libc.so
4512: ;;
4513:
1.8 moko 4514: cygwin*)
4515: # func_win32_libid is a shell function defined in ltmain.sh
4516: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4517: lt_cv_file_magic_cmd='func_win32_libid'
4518: ;;
4519:
4520: mingw* | pw32*)
4521: # Base MSYS/MinGW do not provide the 'file' command needed by
4522: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4523: # unless we find 'file', for example because we are cross-compiling.
4524: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4525: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4526: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4527: lt_cv_file_magic_cmd='func_win32_libid'
4528: else
4529: # Keep this pattern in sync with the one in func_win32_libid.
4530: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4531: lt_cv_file_magic_cmd='$OBJDUMP -f'
4532: fi
4533: ;;
4534:
4535: cegcc*)
4536: # use the weaker test based on 'objdump'. See mingw*.
4537: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 4538: lt_cv_file_magic_cmd='$OBJDUMP -f'
4539: ;;
4540:
4541: darwin* | rhapsody*)
1.8 moko 4542: lt_cv_deplibs_check_method=pass_all
1.1 misha 4543: ;;
4544:
1.8 moko 4545: freebsd* | dragonfly*)
4546: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 4547: case $host_cpu in
4548: i*86 )
4549: # Not sure whether the presence of OpenBSD here was a mistake.
4550: # Let's accept both of them until this is cleared up.
1.8 moko 4551: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 4552: lt_cv_file_magic_cmd=/usr/bin/file
4553: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4554: ;;
4555: esac
4556: else
4557: lt_cv_deplibs_check_method=pass_all
4558: fi
4559: ;;
4560:
4561: gnu*)
4562: lt_cv_deplibs_check_method=pass_all
4563: ;;
4564:
1.8 moko 4565: haiku*)
4566: lt_cv_deplibs_check_method=pass_all
1.1 misha 4567: ;;
4568:
1.8 moko 4569: hpux10.20* | hpux11*)
4570: lt_cv_file_magic_cmd=/usr/bin/file
4571: case $host_cpu in
4572: ia64*)
4573: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4574: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4575: ;;
4576: hppa*64*)
4577: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4578: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 4579: ;;
4580: *)
1.8 moko 4581: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4582: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 4583: ;;
4584: esac
1.8 moko 4585: ;;
4586:
4587: interix[3-9]*)
4588: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4589: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4590: ;;
4591:
4592: irix5* | irix6* | nonstopux*)
4593: case $LD in
4594: *-32|*"-32 ") libmagic=32-bit;;
4595: *-n32|*"-n32 ") libmagic=N32;;
4596: *-64|*"-64 ") libmagic=64-bit;;
4597: *) libmagic=never-match;;
4598: esac
1.1 misha 4599: lt_cv_deplibs_check_method=pass_all
4600: ;;
4601:
1.8 moko 4602: # This must be glibc/ELF.
4603: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4604: lt_cv_deplibs_check_method=pass_all
1.1 misha 4605: ;;
4606:
4607: netbsd*)
1.8 moko 4608: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4609: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4610: else
1.8 moko 4611: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 4612: fi
4613: ;;
4614:
4615: newos6*)
4616: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4617: lt_cv_file_magic_cmd=/usr/bin/file
4618: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4619: ;;
4620:
1.8 moko 4621: *nto* | *qnx*)
4622: lt_cv_deplibs_check_method=pass_all
4623: ;;
4624:
1.1 misha 4625: openbsd*)
1.8 moko 4626: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4627: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 4628: else
1.8 moko 4629: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4630: fi
4631: ;;
4632:
4633: osf3* | osf4* | osf5*)
4634: lt_cv_deplibs_check_method=pass_all
4635: ;;
4636:
1.8 moko 4637: rdos*)
1.1 misha 4638: lt_cv_deplibs_check_method=pass_all
4639: ;;
4640:
4641: solaris*)
4642: lt_cv_deplibs_check_method=pass_all
4643: ;;
4644:
1.8 moko 4645: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 4646: lt_cv_deplibs_check_method=pass_all
4647: ;;
4648:
1.8 moko 4649: sysv4 | sysv4.3*)
1.1 misha 4650: case $host_vendor in
4651: motorola)
4652: 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]'
4653: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4654: ;;
4655: ncr)
4656: lt_cv_deplibs_check_method=pass_all
4657: ;;
4658: sequent)
4659: lt_cv_file_magic_cmd='/bin/file'
4660: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4661: ;;
4662: sni)
4663: lt_cv_file_magic_cmd='/bin/file'
4664: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4665: lt_cv_file_magic_test_file=/lib/libc.so
4666: ;;
4667: siemens)
4668: lt_cv_deplibs_check_method=pass_all
4669: ;;
1.8 moko 4670: pc)
4671: lt_cv_deplibs_check_method=pass_all
4672: ;;
1.1 misha 4673: esac
4674: ;;
1.8 moko 4675:
4676: tpf*)
4677: lt_cv_deplibs_check_method=pass_all
4678: ;;
1.1 misha 4679: esac
4680:
4681: fi
1.11 ! moko 4682: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 4683: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.8 moko 4684:
4685: file_magic_glob=
4686: want_nocaseglob=no
4687: if test "$build" = "$host"; then
4688: case $host_os in
4689: mingw* | pw32*)
4690: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4691: want_nocaseglob=yes
4692: else
4693: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4694: fi
4695: ;;
4696: esac
4697: fi
4698:
1.1 misha 4699: file_magic_cmd=$lt_cv_file_magic_cmd
4700: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 4701: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4702:
4703:
1.1 misha 4704:
4705:
4706:
4707:
4708:
4709:
4710:
4711:
1.8 moko 4712:
4713:
4714:
4715:
4716:
4717:
4718:
4719:
4720:
4721:
4722:
4723:
4724: if test -n "$ac_tool_prefix"; then
4725: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4726: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.11 ! moko 4727: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4728: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4729: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
! 4730: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4731: else
4732: if test -n "$DLLTOOL"; then
4733: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4734: else
4735: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736: for as_dir in $PATH
4737: do
4738: IFS=$as_save_IFS
4739: test -z "$as_dir" && as_dir=.
1.11 ! moko 4740: for ac_exec_ext in '' $ac_executable_extensions; do
! 4741: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4742: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.11 ! moko 4743: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4744: break 2
4745: fi
4746: done
1.11 ! moko 4747: done
1.8 moko 4748:
4749: fi
4750: fi
4751: DLLTOOL=$ac_cv_prog_DLLTOOL
4752: if test -n "$DLLTOOL"; then
1.11 ! moko 4753: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
! 4754: echo "${ECHO_T}$DLLTOOL" >&6
1.8 moko 4755: else
1.11 ! moko 4756: echo "$as_me:$LINENO: result: no" >&5
! 4757: echo "${ECHO_T}no" >&6
1.8 moko 4758: fi
4759:
4760: fi
4761: if test -z "$ac_cv_prog_DLLTOOL"; then
4762: ac_ct_DLLTOOL=$DLLTOOL
4763: # Extract the first word of "dlltool", so it can be a program name with args.
4764: set dummy dlltool; ac_word=$2
1.11 ! moko 4765: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4766: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4767: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
! 4768: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4769: else
1.8 moko 4770: if test -n "$ac_ct_DLLTOOL"; then
4771: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4772: else
4773: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774: for as_dir in $PATH
4775: do
4776: IFS=$as_save_IFS
4777: test -z "$as_dir" && as_dir=.
1.11 ! moko 4778: for ac_exec_ext in '' $ac_executable_extensions; do
! 4779: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4780: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.11 ! moko 4781: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4782: break 2
4783: fi
4784: done
1.11 ! moko 4785: done
1.8 moko 4786:
1.11 ! moko 4787: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
1.8 moko 4788: fi
4789: fi
4790: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4791: if test -n "$ac_ct_DLLTOOL"; then
1.11 ! moko 4792: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
! 4793: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
1.8 moko 4794: else
1.11 ! moko 4795: echo "$as_me:$LINENO: result: no" >&5
! 4796: echo "${ECHO_T}no" >&6
1.8 moko 4797: fi
4798:
1.11 ! moko 4799: DLLTOOL=$ac_ct_DLLTOOL
1.8 moko 4800: else
4801: DLLTOOL="$ac_cv_prog_DLLTOOL"
4802: fi
4803:
4804: test -z "$DLLTOOL" && DLLTOOL=dlltool
4805:
4806:
4807:
4808:
1.1 misha 4809:
4810:
4811:
4812:
4813:
4814:
1.11 ! moko 4815: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
! 4816: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
! 4817: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
! 4818: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4819: else
4820: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 4821:
4822: case $host_os in
1.8 moko 4823: cygwin* | mingw* | pw32* | cegcc*)
4824: # two different shell functions defined in ltmain.sh
4825: # decide which to use based on capabilities of $DLLTOOL
4826: case `$DLLTOOL --help 2>&1` in
4827: *--identify-strict*)
4828: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4829: ;;
4830: *)
4831: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4832: ;;
4833: esac
1.1 misha 4834: ;;
1.8 moko 4835: *)
4836: # fallback: assume linklib IS sharedlib
4837: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 4838: ;;
4839: esac
4840:
4841: fi
1.11 ! moko 4842: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 4843: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
1.8 moko 4844: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4845: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 4846:
4847:
4848:
4849:
4850:
4851:
4852:
4853:
1.8 moko 4854: if test -n "$ac_tool_prefix"; then
4855: for ac_prog in ar
4856: do
4857: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4858: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 ! moko 4859: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4860: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4861: if test "${ac_cv_prog_AR+set}" = set; then
! 4862: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4863: else
4864: if test -n "$AR"; then
4865: ac_cv_prog_AR="$AR" # Let the user override the test.
4866: else
4867: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868: for as_dir in $PATH
4869: do
4870: IFS=$as_save_IFS
4871: test -z "$as_dir" && as_dir=.
1.11 ! moko 4872: for ac_exec_ext in '' $ac_executable_extensions; do
! 4873: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4874: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.11 ! moko 4875: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4876: break 2
1.1 misha 4877: fi
1.8 moko 4878: done
1.11 ! moko 4879: done
1.1 misha 4880:
4881: fi
4882: fi
1.8 moko 4883: AR=$ac_cv_prog_AR
4884: if test -n "$AR"; then
1.11 ! moko 4885: echo "$as_me:$LINENO: result: $AR" >&5
! 4886: echo "${ECHO_T}$AR" >&6
1.1 misha 4887: else
1.11 ! moko 4888: echo "$as_me:$LINENO: result: no" >&5
! 4889: echo "${ECHO_T}no" >&6
1.1 misha 4890: fi
4891:
1.8 moko 4892: test -n "$AR" && break
4893: done
1.1 misha 4894: fi
1.8 moko 4895: if test -z "$AR"; then
4896: ac_ct_AR=$AR
4897: for ac_prog in ar
4898: do
4899: # Extract the first word of "$ac_prog", so it can be a program name with args.
4900: set dummy $ac_prog; ac_word=$2
1.11 ! moko 4901: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4902: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4903: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
! 4904: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4905: else
1.8 moko 4906: if test -n "$ac_ct_AR"; then
4907: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4908: else
4909: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910: for as_dir in $PATH
1.1 misha 4911: do
1.8 moko 4912: IFS=$as_save_IFS
4913: test -z "$as_dir" && as_dir=.
1.11 ! moko 4914: for ac_exec_ext in '' $ac_executable_extensions; do
! 4915: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4916: ac_cv_prog_ac_ct_AR="$ac_prog"
1.11 ! moko 4917: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4918: break 2
1.1 misha 4919: fi
1.8 moko 4920: done
1.11 ! moko 4921: done
1.1 misha 4922:
4923: fi
4924: fi
1.8 moko 4925: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4926: if test -n "$ac_ct_AR"; then
1.11 ! moko 4927: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 4928: echo "${ECHO_T}$ac_ct_AR" >&6
1.1 misha 4929: else
1.11 ! moko 4930: echo "$as_me:$LINENO: result: no" >&5
! 4931: echo "${ECHO_T}no" >&6
1.1 misha 4932: fi
4933:
1.8 moko 4934: test -n "$ac_ct_AR" && break
1.1 misha 4935: done
1.11 ! moko 4936: test -n "$ac_ct_AR" || ac_ct_AR="false"
1.8 moko 4937:
1.11 ! moko 4938: AR=$ac_ct_AR
1.1 misha 4939: fi
4940:
1.8 moko 4941: : ${AR=ar}
4942: : ${AR_FLAGS=cru}
4943:
1.1 misha 4944:
4945:
4946:
4947:
4948:
4949:
4950:
4951:
4952:
4953:
1.11 ! moko 4954: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
! 4955: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
! 4956: if test "${lt_cv_ar_at_file+set}" = set; then
! 4957: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4958: else
1.8 moko 4959: lt_cv_ar_at_file=no
1.11 ! moko 4960: cat >conftest.$ac_ext <<_ACEOF
! 4961: /* confdefs.h. */
! 4962: _ACEOF
! 4963: cat confdefs.h >>conftest.$ac_ext
! 4964: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 4965: /* end confdefs.h. */
4966:
4967: int
4968: main ()
4969: {
4970:
4971: ;
4972: return 0;
4973: }
4974: _ACEOF
1.11 ! moko 4975: rm -f conftest.$ac_objext
! 4976: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4977: (eval $ac_compile) 2>conftest.er1
! 4978: ac_status=$?
! 4979: grep -v '^ *+' conftest.er1 >conftest.err
! 4980: rm -f conftest.er1
! 4981: cat conftest.err >&5
! 4982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4983: (exit $ac_status); } &&
! 4984: { ac_try='test -z "$ac_c_werror_flag"
! 4985: || test ! -s conftest.err'
! 4986: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4987: (eval $ac_try) 2>&5
! 4988: ac_status=$?
! 4989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4990: (exit $ac_status); }; } &&
! 4991: { ac_try='test -s conftest.$ac_objext'
! 4992: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4993: (eval $ac_try) 2>&5
! 4994: ac_status=$?
! 4995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4996: (exit $ac_status); }; }; then
1.8 moko 4997: echo conftest.$ac_objext > conftest.lst
4998: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.11 ! moko 4999: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5000: (eval $lt_ar_try) 2>&5
5001: ac_status=$?
1.11 ! moko 5002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5003: (exit $ac_status); }
1.8 moko 5004: if test "$ac_status" -eq 0; then
5005: # Ensure the archiver fails upon bogus file names.
5006: rm -f conftest.$ac_objext libconftest.a
1.11 ! moko 5007: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5008: (eval $lt_ar_try) 2>&5
5009: ac_status=$?
1.11 ! moko 5010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5011: (exit $ac_status); }
1.8 moko 5012: if test "$ac_status" -ne 0; then
5013: lt_cv_ar_at_file=@
5014: fi
5015: fi
5016: rm -f conftest.* libconftest.a
5017:
1.11 ! moko 5018: else
! 5019: echo "$as_me: failed program was:" >&5
! 5020: sed 's/^/| /' conftest.$ac_ext >&5
! 5021:
1.1 misha 5022: fi
1.11 ! moko 5023: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 5024:
1.8 moko 5025: fi
1.11 ! moko 5026: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
! 5027: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.8 moko 5028:
5029: if test "x$lt_cv_ar_at_file" = xno; then
5030: archiver_list_spec=
1.1 misha 5031: else
1.8 moko 5032: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 5033: fi
5034:
5035:
5036:
1.8 moko 5037:
5038:
5039:
5040:
5041: if test -n "$ac_tool_prefix"; then
5042: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5043: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 ! moko 5044: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5045: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5046: if test "${ac_cv_prog_STRIP+set}" = set; then
! 5047: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5048: else
5049: if test -n "$STRIP"; then
5050: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5051: else
5052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053: for as_dir in $PATH
5054: do
5055: IFS=$as_save_IFS
5056: test -z "$as_dir" && as_dir=.
1.11 ! moko 5057: for ac_exec_ext in '' $ac_executable_extensions; do
! 5058: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5059: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 ! moko 5060: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5061: break 2
5062: fi
5063: done
1.11 ! moko 5064: done
1.8 moko 5065:
5066: fi
5067: fi
5068: STRIP=$ac_cv_prog_STRIP
5069: if test -n "$STRIP"; then
1.11 ! moko 5070: echo "$as_me:$LINENO: result: $STRIP" >&5
! 5071: echo "${ECHO_T}$STRIP" >&6
1.1 misha 5072: else
1.11 ! moko 5073: echo "$as_me:$LINENO: result: no" >&5
! 5074: echo "${ECHO_T}no" >&6
1.1 misha 5075: fi
5076:
5077: fi
1.8 moko 5078: if test -z "$ac_cv_prog_STRIP"; then
5079: ac_ct_STRIP=$STRIP
5080: # Extract the first word of "strip", so it can be a program name with args.
5081: set dummy strip; ac_word=$2
1.11 ! moko 5082: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5083: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5084: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 5085: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5086: else
1.8 moko 5087: if test -n "$ac_ct_STRIP"; then
5088: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 5089: else
1.8 moko 5090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091: for as_dir in $PATH
5092: do
5093: IFS=$as_save_IFS
5094: test -z "$as_dir" && as_dir=.
1.11 ! moko 5095: for ac_exec_ext in '' $ac_executable_extensions; do
! 5096: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5097: ac_cv_prog_ac_ct_STRIP="strip"
1.11 ! moko 5098: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5099: break 2
5100: fi
5101: done
1.11 ! moko 5102: done
1.1 misha 5103:
1.11 ! moko 5104: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 5105: fi
5106: fi
1.8 moko 5107: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5108: if test -n "$ac_ct_STRIP"; then
1.11 ! moko 5109: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 5110: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.8 moko 5111: else
1.11 ! moko 5112: echo "$as_me:$LINENO: result: no" >&5
! 5113: echo "${ECHO_T}no" >&6
1.1 misha 5114: fi
5115:
1.11 ! moko 5116: STRIP=$ac_ct_STRIP
1.8 moko 5117: else
5118: STRIP="$ac_cv_prog_STRIP"
1.1 misha 5119: fi
5120:
1.8 moko 5121: test -z "$STRIP" && STRIP=:
1.1 misha 5122:
5123:
5124:
5125:
5126:
5127:
1.8 moko 5128: if test -n "$ac_tool_prefix"; then
5129: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5130: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.11 ! moko 5131: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5132: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5133: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 5134: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5135: else
1.8 moko 5136: if test -n "$RANLIB"; then
5137: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 5138: else
1.8 moko 5139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140: for as_dir in $PATH
5141: do
5142: IFS=$as_save_IFS
5143: test -z "$as_dir" && as_dir=.
1.11 ! moko 5144: for ac_exec_ext in '' $ac_executable_extensions; do
! 5145: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5146: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.11 ! moko 5147: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5148: break 2
5149: fi
5150: done
1.11 ! moko 5151: done
1.1 misha 5152:
5153: fi
5154: fi
1.8 moko 5155: RANLIB=$ac_cv_prog_RANLIB
5156: if test -n "$RANLIB"; then
1.11 ! moko 5157: echo "$as_me:$LINENO: result: $RANLIB" >&5
! 5158: echo "${ECHO_T}$RANLIB" >&6
1.8 moko 5159: else
1.11 ! moko 5160: echo "$as_me:$LINENO: result: no" >&5
! 5161: echo "${ECHO_T}no" >&6
1.8 moko 5162: fi
1.1 misha 5163:
5164: fi
1.8 moko 5165: if test -z "$ac_cv_prog_RANLIB"; then
5166: ac_ct_RANLIB=$RANLIB
5167: # Extract the first word of "ranlib", so it can be a program name with args.
5168: set dummy ranlib; ac_word=$2
1.11 ! moko 5169: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5170: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5171: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 5172: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5173: else
5174: if test -n "$ac_ct_RANLIB"; then
5175: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5176: else
5177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178: for as_dir in $PATH
5179: do
5180: IFS=$as_save_IFS
5181: test -z "$as_dir" && as_dir=.
1.11 ! moko 5182: for ac_exec_ext in '' $ac_executable_extensions; do
! 5183: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5184: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.11 ! moko 5185: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5186: break 2
5187: fi
5188: done
1.11 ! moko 5189: done
1.1 misha 5190:
1.11 ! moko 5191: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.8 moko 5192: fi
1.1 misha 5193: fi
1.8 moko 5194: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5195: if test -n "$ac_ct_RANLIB"; then
1.11 ! moko 5196: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 5197: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1 misha 5198: else
1.11 ! moko 5199: echo "$as_me:$LINENO: result: no" >&5
! 5200: echo "${ECHO_T}no" >&6
1.1 misha 5201: fi
5202:
1.11 ! moko 5203: RANLIB=$ac_ct_RANLIB
1.1 misha 5204: else
1.8 moko 5205: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 5206: fi
5207:
1.8 moko 5208: test -z "$RANLIB" && RANLIB=:
5209:
5210:
5211:
5212:
5213:
5214:
5215: # Determine commands to create old-style static archives.
5216: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5217: old_postinstall_cmds='chmod 644 $oldlib'
5218: old_postuninstall_cmds=
1.1 misha 5219:
1.8 moko 5220: if test -n "$RANLIB"; then
5221: case $host_os in
5222: openbsd*)
5223: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 5224: ;;
1.8 moko 5225: *)
5226: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 5227: ;;
1.8 moko 5228: esac
5229: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5230: fi
5231:
5232: case $host_os in
5233: darwin*)
5234: lock_old_archive_extraction=yes ;;
5235: *)
5236: lock_old_archive_extraction=no ;;
1.1 misha 5237: esac
5238:
5239:
5240:
5241:
5242:
5243:
5244:
5245:
5246:
5247:
5248:
5249:
5250:
5251:
5252:
5253:
5254:
5255:
5256:
5257:
5258:
5259:
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
1.8 moko 5272:
5273:
5274:
5275:
5276:
5277: # If no C compiler was specified, use CC.
5278: LTCC=${LTCC-"$CC"}
5279:
5280: # If no C compiler flags were specified, use CFLAGS.
5281: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5282:
5283: # Allow CC to be a program name with arguments.
5284: compiler=$CC
5285:
5286:
5287: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.11 ! moko 5288: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 5289: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
! 5290: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 5291: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5292: else
5293:
1.8 moko 5294: # These are sane defaults that work on at least a few old systems.
5295: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 5296:
1.8 moko 5297: # Character class describing NM global symbol codes.
5298: symcode='[BCDEGRST]'
1.1 misha 5299:
1.8 moko 5300: # Regexp to match symbols that can be accessed directly from C.
5301: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 5302:
1.8 moko 5303: # Define system-specific variables.
5304: case $host_os in
5305: aix*)
5306: symcode='[BCDT]'
5307: ;;
5308: cygwin* | mingw* | pw32* | cegcc*)
5309: symcode='[ABCDGISTW]'
5310: ;;
5311: hpux*)
5312: if test "$host_cpu" = ia64; then
5313: symcode='[ABCDEGRST]'
5314: fi
5315: ;;
5316: irix* | nonstopux*)
5317: symcode='[BCDEGRST]'
5318: ;;
5319: osf*)
5320: symcode='[BCDEGQRST]'
5321: ;;
5322: solaris*)
5323: symcode='[BDRT]'
5324: ;;
5325: sco3.2v5*)
5326: symcode='[DT]'
5327: ;;
5328: sysv4.2uw2*)
5329: symcode='[DT]'
5330: ;;
5331: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5332: symcode='[ABDT]'
5333: ;;
5334: sysv4)
5335: symcode='[DFNSTU]'
5336: ;;
5337: esac
5338:
5339: # If we're using GNU nm, then use its standard symbol codes.
5340: case `$NM -V 2>&1` in
5341: *GNU* | *'with BFD'*)
5342: symcode='[ABCDGIRSTW]' ;;
5343: esac
5344:
5345: # Transform an extracted symbol line into a proper C declaration.
5346: # Some systems (esp. on ia64) link data and code symbols differently,
5347: # so use this general approach.
5348: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5349:
5350: # Transform an extracted symbol line into symbol name and symbol address
5351: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5352: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5353:
5354: # Handle CRLF in mingw tool chain
5355: opt_cr=
5356: case $build_os in
5357: mingw*)
5358: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5359: ;;
5360: esac
5361:
5362: # Try without a prefix underscore, then with it.
5363: for ac_symprfx in "" "_"; do
5364:
5365: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5366: symxfrm="\\1 $ac_symprfx\\2 \\2"
5367:
5368: # Write the raw and C identifiers.
5369: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5370: # Fake it for dumpbin and say T for any non-static function
5371: # and D for any global variable.
5372: # Also find C++ and __fastcall symbols from MSVC++,
5373: # which start with @ or ?.
5374: lt_cv_sys_global_symbol_pipe="$AWK '"\
5375: " {last_section=section; section=\$ 3};"\
5376: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5377: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5378: " \$ 0!~/External *\|/{next};"\
5379: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5380: " {if(hide[section]) next};"\
5381: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5382: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5383: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5384: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5385: " ' prfx=^$ac_symprfx"
5386: else
5387: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5388: fi
5389: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5390:
5391: # Check to see that the pipe works correctly.
5392: pipe_works=no
1.1 misha 5393:
1.8 moko 5394: rm -f conftest*
5395: cat > conftest.$ac_ext <<_LT_EOF
5396: #ifdef __cplusplus
5397: extern "C" {
5398: #endif
5399: char nm_test_var;
5400: void nm_test_func(void);
5401: void nm_test_func(void){}
5402: #ifdef __cplusplus
1.1 misha 5403: }
1.8 moko 5404: #endif
5405: int main(){nm_test_var='a';nm_test_func();return(0);}
5406: _LT_EOF
5407:
1.11 ! moko 5408: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5409: (eval $ac_compile) 2>&5
1.1 misha 5410: ac_status=$?
1.11 ! moko 5411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5412: (exit $ac_status); }; then
1.8 moko 5413: # Now try to grab the symbols.
5414: nlist=conftest.nm
1.11 ! moko 5415: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
1.8 moko 5416: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 5417: ac_status=$?
1.11 ! moko 5418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5419: (exit $ac_status); } && test -s "$nlist"; then
1.8 moko 5420: # Try sorting and uniquifying the output.
5421: if sort "$nlist" | uniq > "$nlist"T; then
5422: mv -f "$nlist"T "$nlist"
5423: else
5424: rm -f "$nlist"T
5425: fi
5426:
5427: # Make sure that we snagged all the symbols we need.
5428: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5429: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5430: cat <<_LT_EOF > conftest.$ac_ext
5431: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5432: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5433: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5434: relocations are performed -- see ld's documentation on pseudo-relocs. */
5435: # define LT_DLSYM_CONST
5436: #elif defined(__osf__)
5437: /* This system does not cope well with relocations in const data. */
5438: # define LT_DLSYM_CONST
5439: #else
5440: # define LT_DLSYM_CONST const
5441: #endif
5442:
5443: #ifdef __cplusplus
5444: extern "C" {
5445: #endif
5446:
5447: _LT_EOF
5448: # Now generate the symbol file.
5449: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5450:
5451: cat <<_LT_EOF >> conftest.$ac_ext
5452:
5453: /* The mapping between symbol names and symbols. */
5454: LT_DLSYM_CONST struct {
5455: const char *name;
5456: void *address;
5457: }
5458: lt__PROGRAM__LTX_preloaded_symbols[] =
5459: {
5460: { "@PROGRAM@", (void *) 0 },
5461: _LT_EOF
5462: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5463: cat <<\_LT_EOF >> conftest.$ac_ext
5464: {0, (void *) 0}
5465: };
5466:
5467: /* This works around a problem in FreeBSD linker */
5468: #ifdef FREEBSD_WORKAROUND
5469: static const void *lt_preloaded_setup() {
5470: return lt__PROGRAM__LTX_preloaded_symbols;
5471: }
5472: #endif
5473:
5474: #ifdef __cplusplus
5475: }
5476: #endif
5477: _LT_EOF
5478: # Now try linking the two files.
5479: mv conftest.$ac_objext conftstm.$ac_objext
5480: lt_globsym_save_LIBS=$LIBS
5481: lt_globsym_save_CFLAGS=$CFLAGS
5482: LIBS="conftstm.$ac_objext"
5483: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.11 ! moko 5484: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 5485: (eval $ac_link) 2>&5
1.1 misha 5486: ac_status=$?
1.11 ! moko 5487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5488: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.8 moko 5489: pipe_works=yes
5490: fi
5491: LIBS=$lt_globsym_save_LIBS
5492: CFLAGS=$lt_globsym_save_CFLAGS
5493: else
5494: echo "cannot find nm_test_func in $nlist" >&5
5495: fi
5496: else
5497: echo "cannot find nm_test_var in $nlist" >&5
5498: fi
5499: else
5500: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5501: fi
5502: else
5503: echo "$progname: failed program was:" >&5
5504: cat conftest.$ac_ext >&5
5505: fi
5506: rm -rf conftest* conftst*
5507:
5508: # Do not use the global_symbol_pipe unless it works.
5509: if test "$pipe_works" = yes; then
5510: break
5511: else
5512: lt_cv_sys_global_symbol_pipe=
5513: fi
5514: done
5515:
5516: fi
5517:
5518: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5519: lt_cv_sys_global_symbol_to_cdecl=
5520: fi
5521: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.11 ! moko 5522: echo "$as_me:$LINENO: result: failed" >&5
! 5523: echo "${ECHO_T}failed" >&6
1.1 misha 5524: else
1.11 ! moko 5525: echo "$as_me:$LINENO: result: ok" >&5
! 5526: echo "${ECHO_T}ok" >&6
1.8 moko 5527: fi
1.1 misha 5528:
1.8 moko 5529: # Response file support.
5530: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5531: nm_file_list_spec='@'
5532: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5533: nm_file_list_spec='@'
1.1 misha 5534: fi
5535:
5536:
5537:
5538:
5539:
5540:
5541:
5542:
5543:
5544:
5545:
5546:
5547:
5548:
5549:
5550:
5551:
5552:
5553:
5554:
5555:
1.8 moko 5556:
5557:
5558:
5559:
5560:
5561:
1.11 ! moko 5562: echo "$as_me:$LINENO: checking for sysroot" >&5
! 5563: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
! 5564:
! 5565: # Check whether --with-sysroot or --without-sysroot was given.
! 5566: if test "${with_sysroot+set}" = set; then
! 5567: withval="$with_sysroot"
1.8 moko 5568:
1.1 misha 5569: else
1.8 moko 5570: with_sysroot=no
1.11 ! moko 5571: fi;
1.1 misha 5572:
1.8 moko 5573: lt_sysroot=
5574: case ${with_sysroot} in #(
5575: yes)
5576: if test "$GCC" = yes; then
5577: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5578: fi
5579: ;; #(
5580: /*)
5581: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5582: ;; #(
5583: no|'')
5584: ;; #(
5585: *)
1.11 ! moko 5586: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
! 5587: echo "${ECHO_T}${with_sysroot}" >&6
! 5588: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
! 5589: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
! 5590: { (exit 1); exit 1; }; }
1.8 moko 5591: ;;
5592: esac
5593:
1.11 ! moko 5594: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
! 5595: echo "${ECHO_T}${lt_sysroot:-no}" >&6
1.8 moko 5596:
5597:
5598:
5599:
5600:
1.11 ! moko 5601: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 5602: if test "${enable_libtool_lock+set}" = set; then
! 5603: enableval="$enable_libtool_lock"
1.1 misha 5604:
1.11 ! moko 5605: fi;
1.8 moko 5606: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 5607:
1.8 moko 5608: # Some flags need to be propagated to the compiler or linker for good
5609: # libtool support.
5610: case $host in
5611: ia64-*-hpux*)
5612: # Find out which ABI we are using.
5613: echo 'int i;' > conftest.$ac_ext
1.11 ! moko 5614: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5615: (eval $ac_compile) 2>&5
5616: ac_status=$?
1.11 ! moko 5617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5618: (exit $ac_status); }; then
1.8 moko 5619: case `/usr/bin/file conftest.$ac_objext` in
5620: *ELF-32*)
5621: HPUX_IA64_MODE="32"
5622: ;;
5623: *ELF-64*)
5624: HPUX_IA64_MODE="64"
5625: ;;
1.1 misha 5626: esac
5627: fi
1.8 moko 5628: rm -rf conftest*
5629: ;;
5630: *-*-irix6*)
5631: # Find out which ABI we are using.
5632: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.11 ! moko 5633: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5634: (eval $ac_compile) 2>&5
1.1 misha 5635: ac_status=$?
1.11 ! moko 5636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5637: (exit $ac_status); }; then
1.8 moko 5638: if test "$lt_cv_prog_gnu_ld" = yes; then
5639: case `/usr/bin/file conftest.$ac_objext` in
5640: *32-bit*)
5641: LD="${LD-ld} -melf32bsmip"
5642: ;;
5643: *N32*)
5644: LD="${LD-ld} -melf32bmipn32"
5645: ;;
5646: *64-bit*)
5647: LD="${LD-ld} -melf64bmip"
5648: ;;
5649: esac
5650: else
5651: case `/usr/bin/file conftest.$ac_objext` in
5652: *32-bit*)
5653: LD="${LD-ld} -32"
5654: ;;
5655: *N32*)
5656: LD="${LD-ld} -n32"
5657: ;;
5658: *64-bit*)
5659: LD="${LD-ld} -64"
5660: ;;
5661: esac
5662: fi
5663: fi
5664: rm -rf conftest*
5665: ;;
5666:
5667: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5668: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5669: # Find out which ABI we are using.
5670: echo 'int i;' > conftest.$ac_ext
1.11 ! moko 5671: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5672: (eval $ac_compile) 2>&5
1.1 misha 5673: ac_status=$?
1.11 ! moko 5674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5675: (exit $ac_status); }; then
1.8 moko 5676: case `/usr/bin/file conftest.o` in
5677: *32-bit*)
5678: case $host in
5679: x86_64-*kfreebsd*-gnu)
5680: LD="${LD-ld} -m elf_i386_fbsd"
5681: ;;
5682: x86_64-*linux*)
5683: LD="${LD-ld} -m elf_i386"
5684: ;;
5685: ppc64-*linux*|powerpc64-*linux*)
5686: LD="${LD-ld} -m elf32ppclinux"
5687: ;;
5688: s390x-*linux*)
5689: LD="${LD-ld} -m elf_s390"
5690: ;;
5691: sparc64-*linux*)
5692: LD="${LD-ld} -m elf32_sparc"
5693: ;;
5694: esac
1.1 misha 5695: ;;
1.8 moko 5696: *64-bit*)
5697: case $host in
5698: x86_64-*kfreebsd*-gnu)
5699: LD="${LD-ld} -m elf_x86_64_fbsd"
5700: ;;
5701: x86_64-*linux*)
5702: LD="${LD-ld} -m elf_x86_64"
5703: ;;
5704: ppc*-*linux*|powerpc*-*linux*)
5705: LD="${LD-ld} -m elf64ppc"
5706: ;;
5707: s390*-*linux*|s390*-*tpf*)
5708: LD="${LD-ld} -m elf64_s390"
5709: ;;
5710: sparc*-*linux*)
5711: LD="${LD-ld} -m elf64_sparc"
5712: ;;
5713: esac
1.1 misha 5714: ;;
1.8 moko 5715: esac
1.1 misha 5716: fi
1.8 moko 5717: rm -rf conftest*
5718: ;;
1.1 misha 5719:
1.8 moko 5720: *-*-sco3.2v5*)
5721: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5722: SAVE_CFLAGS="$CFLAGS"
5723: CFLAGS="$CFLAGS -belf"
1.11 ! moko 5724: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 5725: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
! 5726: if test "${lt_cv_cc_needs_belf+set}" = set; then
! 5727: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5728: else
1.8 moko 5729: ac_ext=c
5730: ac_cpp='$CPP $CPPFLAGS'
5731: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734:
1.11 ! moko 5735: cat >conftest.$ac_ext <<_ACEOF
! 5736: /* confdefs.h. */
! 5737: _ACEOF
! 5738: cat confdefs.h >>conftest.$ac_ext
! 5739: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 5740: /* end confdefs.h. */
5741:
5742: int
5743: main ()
5744: {
5745:
5746: ;
5747: return 0;
5748: }
5749: _ACEOF
1.11 ! moko 5750: rm -f conftest.$ac_objext conftest$ac_exeext
! 5751: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5752: (eval $ac_link) 2>conftest.er1
! 5753: ac_status=$?
! 5754: grep -v '^ *+' conftest.er1 >conftest.err
! 5755: rm -f conftest.er1
! 5756: cat conftest.err >&5
! 5757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5758: (exit $ac_status); } &&
! 5759: { ac_try='test -z "$ac_c_werror_flag"
! 5760: || test ! -s conftest.err'
! 5761: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5762: (eval $ac_try) 2>&5
! 5763: ac_status=$?
! 5764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5765: (exit $ac_status); }; } &&
! 5766: { ac_try='test -s conftest$ac_exeext'
! 5767: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5768: (eval $ac_try) 2>&5
! 5769: ac_status=$?
! 5770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5771: (exit $ac_status); }; }; then
1.8 moko 5772: lt_cv_cc_needs_belf=yes
1.1 misha 5773: else
1.11 ! moko 5774: echo "$as_me: failed program was:" >&5
! 5775: sed 's/^/| /' conftest.$ac_ext >&5
! 5776:
! 5777: lt_cv_cc_needs_belf=no
1.1 misha 5778: fi
1.11 ! moko 5779: rm -f conftest.err conftest.$ac_objext \
! 5780: conftest$ac_exeext conftest.$ac_ext
1.8 moko 5781: ac_ext=c
5782: ac_cpp='$CPP $CPPFLAGS'
5783: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 5786:
5787: fi
1.11 ! moko 5788: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 5789: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1.8 moko 5790: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5791: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5792: CFLAGS="$SAVE_CFLAGS"
5793: fi
5794: ;;
5795: *-*solaris*)
5796: # Find out which ABI we are using.
5797: echo 'int i;' > conftest.$ac_ext
1.11 ! moko 5798: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5799: (eval $ac_compile) 2>&5
5800: ac_status=$?
1.11 ! moko 5801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5802: (exit $ac_status); }; then
1.8 moko 5803: case `/usr/bin/file conftest.o` in
5804: *64-bit*)
5805: case $lt_cv_prog_gnu_ld in
5806: yes*)
5807: case $host in
5808: i?86-*-solaris*)
5809: LD="${LD-ld} -m elf_x86_64"
5810: ;;
5811: sparc*-*-solaris*)
5812: LD="${LD-ld} -m elf64_sparc"
5813: ;;
5814: esac
5815: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5816: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5817: LD="${LD-ld}_sol2"
5818: fi
5819: ;;
5820: *)
5821: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5822: LD="${LD-ld} -64"
5823: fi
5824: ;;
5825: esac
5826: ;;
5827: esac
5828: fi
5829: rm -rf conftest*
5830: ;;
5831: esac
1.1 misha 5832:
1.8 moko 5833: need_locks="$enable_libtool_lock"
1.1 misha 5834:
1.8 moko 5835: if test -n "$ac_tool_prefix"; then
5836: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5837: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.11 ! moko 5838: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5839: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5840: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
! 5841: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5842: else
1.8 moko 5843: if test -n "$MANIFEST_TOOL"; then
5844: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5845: else
5846: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847: for as_dir in $PATH
5848: do
5849: IFS=$as_save_IFS
5850: test -z "$as_dir" && as_dir=.
1.11 ! moko 5851: for ac_exec_ext in '' $ac_executable_extensions; do
! 5852: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5853: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.11 ! moko 5854: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5855: break 2
5856: fi
5857: done
1.11 ! moko 5858: done
1.1 misha 5859:
1.8 moko 5860: fi
5861: fi
5862: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5863: if test -n "$MANIFEST_TOOL"; then
1.11 ! moko 5864: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
! 5865: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.1 misha 5866: else
1.11 ! moko 5867: echo "$as_me:$LINENO: result: no" >&5
! 5868: echo "${ECHO_T}no" >&6
1.1 misha 5869: fi
5870:
5871: fi
1.8 moko 5872: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5873: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5874: # Extract the first word of "mt", so it can be a program name with args.
5875: set dummy mt; ac_word=$2
1.11 ! moko 5876: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5877: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5878: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
! 5879: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5880: else
5881: if test -n "$ac_ct_MANIFEST_TOOL"; then
5882: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5883: else
5884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885: for as_dir in $PATH
5886: do
5887: IFS=$as_save_IFS
5888: test -z "$as_dir" && as_dir=.
1.11 ! moko 5889: for ac_exec_ext in '' $ac_executable_extensions; do
! 5890: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5891: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.11 ! moko 5892: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5893: break 2
5894: fi
5895: done
1.11 ! moko 5896: done
1.1 misha 5897:
1.11 ! moko 5898: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
1.8 moko 5899: fi
5900: fi
5901: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5902: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.11 ! moko 5903: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
! 5904: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.8 moko 5905: else
1.11 ! moko 5906: echo "$as_me:$LINENO: result: no" >&5
! 5907: echo "${ECHO_T}no" >&6
1.8 moko 5908: fi
5909:
1.11 ! moko 5910: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
1.8 moko 5911: else
5912: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5913: fi
1.1 misha 5914:
1.8 moko 5915: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.11 ! moko 5916: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 5917: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
! 5918: if test "${lt_cv_path_mainfest_tool+set}" = set; then
! 5919: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5920: else
1.8 moko 5921: lt_cv_path_mainfest_tool=no
5922: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5923: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5924: cat conftest.err >&5
5925: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5926: lt_cv_path_mainfest_tool=yes
5927: fi
5928: rm -f conftest*
5929: fi
1.11 ! moko 5930: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
! 5931: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
1.8 moko 5932: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5933: MANIFEST_TOOL=:
5934: fi
5935:
5936:
5937:
1.1 misha 5938:
5939:
5940:
1.8 moko 5941: case $host_os in
5942: rhapsody* | darwin*)
5943: if test -n "$ac_tool_prefix"; then
5944: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5945: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.11 ! moko 5946: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5947: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5948: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
! 5949: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5950: else
1.8 moko 5951: if test -n "$DSYMUTIL"; then
5952: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5953: else
5954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955: for as_dir in $PATH
5956: do
5957: IFS=$as_save_IFS
5958: test -z "$as_dir" && as_dir=.
1.11 ! moko 5959: for ac_exec_ext in '' $ac_executable_extensions; do
! 5960: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5961: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.11 ! moko 5962: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5963: break 2
5964: fi
5965: done
1.11 ! moko 5966: done
1.1 misha 5967:
5968: fi
1.8 moko 5969: fi
5970: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5971: if test -n "$DSYMUTIL"; then
1.11 ! moko 5972: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
! 5973: echo "${ECHO_T}$DSYMUTIL" >&6
1.8 moko 5974: else
1.11 ! moko 5975: echo "$as_me:$LINENO: result: no" >&5
! 5976: echo "${ECHO_T}no" >&6
1.8 moko 5977: fi
1.1 misha 5978:
5979: fi
1.8 moko 5980: if test -z "$ac_cv_prog_DSYMUTIL"; then
5981: ac_ct_DSYMUTIL=$DSYMUTIL
5982: # Extract the first word of "dsymutil", so it can be a program name with args.
5983: set dummy dsymutil; ac_word=$2
1.11 ! moko 5984: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5985: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5986: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
! 5987: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5988: else
5989: if test -n "$ac_ct_DSYMUTIL"; then
5990: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5991: else
5992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993: for as_dir in $PATH
5994: do
5995: IFS=$as_save_IFS
5996: test -z "$as_dir" && as_dir=.
1.11 ! moko 5997: for ac_exec_ext in '' $ac_executable_extensions; do
! 5998: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5999: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.11 ! moko 6000: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6001: break 2
6002: fi
6003: done
1.11 ! moko 6004: done
1.1 misha 6005:
1.11 ! moko 6006: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
1.8 moko 6007: fi
6008: fi
6009: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6010: if test -n "$ac_ct_DSYMUTIL"; then
1.11 ! moko 6011: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
! 6012: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.1 misha 6013: else
1.11 ! moko 6014: echo "$as_me:$LINENO: result: no" >&5
! 6015: echo "${ECHO_T}no" >&6
1.1 misha 6016: fi
6017:
1.11 ! moko 6018: DSYMUTIL=$ac_ct_DSYMUTIL
1.1 misha 6019: else
1.8 moko 6020: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 6021: fi
6022:
1.8 moko 6023: if test -n "$ac_tool_prefix"; then
6024: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6025: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.11 ! moko 6026: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6027: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6028: if test "${ac_cv_prog_NMEDIT+set}" = set; then
! 6029: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6030: else
6031: if test -n "$NMEDIT"; then
6032: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6033: else
6034: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035: for as_dir in $PATH
6036: do
6037: IFS=$as_save_IFS
6038: test -z "$as_dir" && as_dir=.
1.11 ! moko 6039: for ac_exec_ext in '' $ac_executable_extensions; do
! 6040: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6041: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.11 ! moko 6042: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6043: break 2
6044: fi
6045: done
1.11 ! moko 6046: done
1.1 misha 6047:
1.8 moko 6048: fi
6049: fi
6050: NMEDIT=$ac_cv_prog_NMEDIT
6051: if test -n "$NMEDIT"; then
1.11 ! moko 6052: echo "$as_me:$LINENO: result: $NMEDIT" >&5
! 6053: echo "${ECHO_T}$NMEDIT" >&6
1.8 moko 6054: else
1.11 ! moko 6055: echo "$as_me:$LINENO: result: no" >&5
! 6056: echo "${ECHO_T}no" >&6
1.8 moko 6057: fi
1.1 misha 6058:
1.8 moko 6059: fi
6060: if test -z "$ac_cv_prog_NMEDIT"; then
6061: ac_ct_NMEDIT=$NMEDIT
6062: # Extract the first word of "nmedit", so it can be a program name with args.
6063: set dummy nmedit; ac_word=$2
1.11 ! moko 6064: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6065: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6066: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
! 6067: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6068: else
6069: if test -n "$ac_ct_NMEDIT"; then
6070: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 6071: else
1.8 moko 6072: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073: for as_dir in $PATH
6074: do
6075: IFS=$as_save_IFS
6076: test -z "$as_dir" && as_dir=.
1.11 ! moko 6077: for ac_exec_ext in '' $ac_executable_extensions; do
! 6078: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6079: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.11 ! moko 6080: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6081: break 2
6082: fi
6083: done
1.11 ! moko 6084: done
1.1 misha 6085:
1.11 ! moko 6086: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
1.8 moko 6087: fi
6088: fi
6089: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6090: if test -n "$ac_ct_NMEDIT"; then
1.11 ! moko 6091: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
! 6092: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
1.8 moko 6093: else
1.11 ! moko 6094: echo "$as_me:$LINENO: result: no" >&5
! 6095: echo "${ECHO_T}no" >&6
1.1 misha 6096: fi
6097:
1.11 ! moko 6098: NMEDIT=$ac_ct_NMEDIT
1.8 moko 6099: else
6100: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 6101: fi
6102:
1.8 moko 6103: if test -n "$ac_tool_prefix"; then
6104: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6105: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.11 ! moko 6106: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6107: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6108: if test "${ac_cv_prog_LIPO+set}" = set; then
! 6109: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6110: else
6111: if test -n "$LIPO"; then
6112: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6113: else
6114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115: for as_dir in $PATH
6116: do
6117: IFS=$as_save_IFS
6118: test -z "$as_dir" && as_dir=.
1.11 ! moko 6119: for ac_exec_ext in '' $ac_executable_extensions; do
! 6120: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6121: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.11 ! moko 6122: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6123: break 2
6124: fi
6125: done
1.11 ! moko 6126: done
1.1 misha 6127:
1.8 moko 6128: fi
6129: fi
6130: LIPO=$ac_cv_prog_LIPO
6131: if test -n "$LIPO"; then
1.11 ! moko 6132: echo "$as_me:$LINENO: result: $LIPO" >&5
! 6133: echo "${ECHO_T}$LIPO" >&6
1.8 moko 6134: else
1.11 ! moko 6135: echo "$as_me:$LINENO: result: no" >&5
! 6136: echo "${ECHO_T}no" >&6
1.8 moko 6137: fi
1.1 misha 6138:
1.8 moko 6139: fi
6140: if test -z "$ac_cv_prog_LIPO"; then
6141: ac_ct_LIPO=$LIPO
6142: # Extract the first word of "lipo", so it can be a program name with args.
6143: set dummy lipo; ac_word=$2
1.11 ! moko 6144: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6145: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6146: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
! 6147: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6148: else
6149: if test -n "$ac_ct_LIPO"; then
6150: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6151: else
6152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153: for as_dir in $PATH
6154: do
6155: IFS=$as_save_IFS
6156: test -z "$as_dir" && as_dir=.
1.11 ! moko 6157: for ac_exec_ext in '' $ac_executable_extensions; do
! 6158: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6159: ac_cv_prog_ac_ct_LIPO="lipo"
1.11 ! moko 6160: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6161: break 2
1.1 misha 6162: fi
1.8 moko 6163: done
1.11 ! moko 6164: done
1.8 moko 6165:
1.11 ! moko 6166: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
1.8 moko 6167: fi
6168: fi
6169: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6170: if test -n "$ac_ct_LIPO"; then
1.11 ! moko 6171: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
! 6172: echo "${ECHO_T}$ac_ct_LIPO" >&6
1.8 moko 6173: else
1.11 ! moko 6174: echo "$as_me:$LINENO: result: no" >&5
! 6175: echo "${ECHO_T}no" >&6
1.8 moko 6176: fi
6177:
1.11 ! moko 6178: LIPO=$ac_ct_LIPO
1.8 moko 6179: else
6180: LIPO="$ac_cv_prog_LIPO"
6181: fi
1.1 misha 6182:
1.8 moko 6183: if test -n "$ac_tool_prefix"; then
6184: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6185: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.11 ! moko 6186: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6187: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6188: if test "${ac_cv_prog_OTOOL+set}" = set; then
! 6189: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6190: else
6191: if test -n "$OTOOL"; then
6192: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6193: else
6194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195: for as_dir in $PATH
6196: do
6197: IFS=$as_save_IFS
6198: test -z "$as_dir" && as_dir=.
1.11 ! moko 6199: for ac_exec_ext in '' $ac_executable_extensions; do
! 6200: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6201: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.11 ! moko 6202: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6203: break 2
6204: fi
6205: done
1.11 ! moko 6206: done
1.1 misha 6207:
1.8 moko 6208: fi
6209: fi
6210: OTOOL=$ac_cv_prog_OTOOL
6211: if test -n "$OTOOL"; then
1.11 ! moko 6212: echo "$as_me:$LINENO: result: $OTOOL" >&5
! 6213: echo "${ECHO_T}$OTOOL" >&6
1.8 moko 6214: else
1.11 ! moko 6215: echo "$as_me:$LINENO: result: no" >&5
! 6216: echo "${ECHO_T}no" >&6
1.8 moko 6217: fi
1.1 misha 6218:
1.8 moko 6219: fi
6220: if test -z "$ac_cv_prog_OTOOL"; then
6221: ac_ct_OTOOL=$OTOOL
6222: # Extract the first word of "otool", so it can be a program name with args.
6223: set dummy otool; ac_word=$2
1.11 ! moko 6224: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6225: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6226: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
! 6227: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6228: else
6229: if test -n "$ac_ct_OTOOL"; then
6230: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6231: else
6232: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233: for as_dir in $PATH
6234: do
6235: IFS=$as_save_IFS
6236: test -z "$as_dir" && as_dir=.
1.11 ! moko 6237: for ac_exec_ext in '' $ac_executable_extensions; do
! 6238: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6239: ac_cv_prog_ac_ct_OTOOL="otool"
1.11 ! moko 6240: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6241: break 2
6242: fi
6243: done
1.11 ! moko 6244: done
1.1 misha 6245:
1.11 ! moko 6246: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
1.8 moko 6247: fi
6248: fi
6249: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6250: if test -n "$ac_ct_OTOOL"; then
1.11 ! moko 6251: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
! 6252: echo "${ECHO_T}$ac_ct_OTOOL" >&6
1.8 moko 6253: else
1.11 ! moko 6254: echo "$as_me:$LINENO: result: no" >&5
! 6255: echo "${ECHO_T}no" >&6
1.8 moko 6256: fi
1.1 misha 6257:
1.11 ! moko 6258: OTOOL=$ac_ct_OTOOL
1.8 moko 6259: else
6260: OTOOL="$ac_cv_prog_OTOOL"
6261: fi
1.1 misha 6262:
1.8 moko 6263: if test -n "$ac_tool_prefix"; then
6264: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6265: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.11 ! moko 6266: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6267: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6268: if test "${ac_cv_prog_OTOOL64+set}" = set; then
! 6269: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6270: else
6271: if test -n "$OTOOL64"; then
6272: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6273: else
6274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275: for as_dir in $PATH
6276: do
6277: IFS=$as_save_IFS
6278: test -z "$as_dir" && as_dir=.
1.11 ! moko 6279: for ac_exec_ext in '' $ac_executable_extensions; do
! 6280: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6281: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.11 ! moko 6282: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6283: break 2
6284: fi
6285: done
1.11 ! moko 6286: done
1.1 misha 6287:
1.8 moko 6288: fi
6289: fi
6290: OTOOL64=$ac_cv_prog_OTOOL64
6291: if test -n "$OTOOL64"; then
1.11 ! moko 6292: echo "$as_me:$LINENO: result: $OTOOL64" >&5
! 6293: echo "${ECHO_T}$OTOOL64" >&6
1.8 moko 6294: else
1.11 ! moko 6295: echo "$as_me:$LINENO: result: no" >&5
! 6296: echo "${ECHO_T}no" >&6
1.8 moko 6297: fi
1.1 misha 6298:
1.8 moko 6299: fi
6300: if test -z "$ac_cv_prog_OTOOL64"; then
6301: ac_ct_OTOOL64=$OTOOL64
6302: # Extract the first word of "otool64", so it can be a program name with args.
6303: set dummy otool64; ac_word=$2
1.11 ! moko 6304: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6305: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6306: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
! 6307: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6308: else
6309: if test -n "$ac_ct_OTOOL64"; then
6310: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6311: else
6312: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313: for as_dir in $PATH
6314: do
6315: IFS=$as_save_IFS
6316: test -z "$as_dir" && as_dir=.
1.11 ! moko 6317: for ac_exec_ext in '' $ac_executable_extensions; do
! 6318: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6319: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.11 ! moko 6320: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6321: break 2
6322: fi
6323: done
1.11 ! moko 6324: done
1.1 misha 6325:
1.11 ! moko 6326: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
1.8 moko 6327: fi
6328: fi
6329: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6330: if test -n "$ac_ct_OTOOL64"; then
1.11 ! moko 6331: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
! 6332: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
1.8 moko 6333: else
1.11 ! moko 6334: echo "$as_me:$LINENO: result: no" >&5
! 6335: echo "${ECHO_T}no" >&6
1.8 moko 6336: fi
1.1 misha 6337:
1.11 ! moko 6338: OTOOL64=$ac_ct_OTOOL64
1.8 moko 6339: else
6340: OTOOL64="$ac_cv_prog_OTOOL64"
6341: fi
1.1 misha 6342:
6343:
6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
1.11 ! moko 6369: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
! 6370: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
! 6371: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
! 6372: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6373: else
6374: lt_cv_apple_cc_single_mod=no
6375: if test -z "${LT_MULTI_MODULE}"; then
6376: # By default we will add the -single_module flag. You can override
6377: # by either setting the environment variable LT_MULTI_MODULE
6378: # non-empty at configure time, or by adding -multi_module to the
6379: # link flags.
6380: rm -rf libconftest.dylib*
6381: echo "int foo(void){return 1;}" > conftest.c
6382: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6383: -dynamiclib -Wl,-single_module conftest.c" >&5
6384: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6385: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6386: _lt_result=$?
6387: # If there is a non-empty error log, and "single_module"
6388: # appears in it, assume the flag caused a linker warning
6389: if test -s conftest.err && $GREP single_module conftest.err; then
6390: cat conftest.err >&5
6391: # Otherwise, if the output was created with a 0 exit code from
6392: # the compiler, it worked.
6393: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6394: lt_cv_apple_cc_single_mod=yes
6395: else
6396: cat conftest.err >&5
6397: fi
6398: rm -rf libconftest.dylib*
6399: rm -f conftest.*
6400: fi
6401: fi
1.11 ! moko 6402: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
! 6403: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.1 misha 6404:
1.11 ! moko 6405: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
! 6406: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
! 6407: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
! 6408: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6409: else
6410: lt_cv_ld_exported_symbols_list=no
6411: save_LDFLAGS=$LDFLAGS
6412: echo "_main" > conftest.sym
6413: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.11 ! moko 6414: cat >conftest.$ac_ext <<_ACEOF
! 6415: /* confdefs.h. */
! 6416: _ACEOF
! 6417: cat confdefs.h >>conftest.$ac_ext
! 6418: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6419: /* end confdefs.h. */
1.1 misha 6420:
1.8 moko 6421: int
6422: main ()
6423: {
1.1 misha 6424:
1.8 moko 6425: ;
6426: return 0;
6427: }
6428: _ACEOF
1.11 ! moko 6429: rm -f conftest.$ac_objext conftest$ac_exeext
! 6430: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6431: (eval $ac_link) 2>conftest.er1
! 6432: ac_status=$?
! 6433: grep -v '^ *+' conftest.er1 >conftest.err
! 6434: rm -f conftest.er1
! 6435: cat conftest.err >&5
! 6436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6437: (exit $ac_status); } &&
! 6438: { ac_try='test -z "$ac_c_werror_flag"
! 6439: || test ! -s conftest.err'
! 6440: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6441: (eval $ac_try) 2>&5
! 6442: ac_status=$?
! 6443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6444: (exit $ac_status); }; } &&
! 6445: { ac_try='test -s conftest$ac_exeext'
! 6446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6447: (eval $ac_try) 2>&5
! 6448: ac_status=$?
! 6449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6450: (exit $ac_status); }; }; then
1.8 moko 6451: lt_cv_ld_exported_symbols_list=yes
6452: else
1.11 ! moko 6453: echo "$as_me: failed program was:" >&5
! 6454: sed 's/^/| /' conftest.$ac_ext >&5
! 6455:
! 6456: lt_cv_ld_exported_symbols_list=no
1.8 moko 6457: fi
1.11 ! moko 6458: rm -f conftest.err conftest.$ac_objext \
! 6459: conftest$ac_exeext conftest.$ac_ext
1.8 moko 6460: LDFLAGS="$save_LDFLAGS"
1.1 misha 6461:
1.8 moko 6462: fi
1.11 ! moko 6463: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
! 6464: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.1 misha 6465:
1.11 ! moko 6466: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
! 6467: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
! 6468: if test "${lt_cv_ld_force_load+set}" = set; then
! 6469: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6470: else
6471: lt_cv_ld_force_load=no
6472: cat > conftest.c << _LT_EOF
6473: int forced_loaded() { return 2;}
6474: _LT_EOF
6475: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6476: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6477: echo "$AR cru libconftest.a conftest.o" >&5
6478: $AR cru libconftest.a conftest.o 2>&5
6479: echo "$RANLIB libconftest.a" >&5
6480: $RANLIB libconftest.a 2>&5
6481: cat > conftest.c << _LT_EOF
6482: int main() { return 0;}
6483: _LT_EOF
6484: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6485: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6486: _lt_result=$?
6487: if test -s conftest.err && $GREP force_load conftest.err; then
6488: cat conftest.err >&5
6489: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6490: lt_cv_ld_force_load=yes
6491: else
6492: cat conftest.err >&5
6493: fi
6494: rm -f conftest.err libconftest.a conftest conftest.c
6495: rm -rf conftest.dSYM
1.1 misha 6496:
1.8 moko 6497: fi
1.11 ! moko 6498: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
! 6499: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
1.8 moko 6500: case $host_os in
6501: rhapsody* | darwin1.[012])
6502: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6503: darwin1.*)
6504: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505: darwin*) # darwin 5.x on
6506: # if running on 10.5 or later, the deployment target defaults
6507: # to the OS version, if on x86, and 10.4, the deployment
6508: # target defaults to 10.4. Don't you love it?
6509: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6510: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6511: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6512: 10.[012]*)
6513: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6514: 10.*)
6515: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516: esac
1.1 misha 6517: ;;
1.8 moko 6518: esac
6519: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6520: _lt_dar_single_mod='$single_module'
6521: fi
6522: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6523: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6524: else
6525: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 6526: fi
1.8 moko 6527: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6528: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 6529: else
1.8 moko 6530: _lt_dsymutil=
1.1 misha 6531: fi
6532: ;;
1.8 moko 6533: esac
1.1 misha 6534:
1.8 moko 6535: ac_ext=c
6536: ac_cpp='$CPP $CPPFLAGS'
6537: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 ! moko 6540: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 6541: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.8 moko 6542: # On Suns, sometimes $CPP names a directory.
6543: if test -n "$CPP" && test -d "$CPP"; then
6544: CPP=
6545: fi
6546: if test -z "$CPP"; then
1.11 ! moko 6547: if test "${ac_cv_prog_CPP+set}" = set; then
! 6548: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6549: else
6550: # Double quotes because CPP needs to be expanded
6551: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6552: do
6553: ac_preproc_ok=false
6554: for ac_c_preproc_warn_flag in '' yes
6555: do
6556: # Use a header file that comes with gcc, so configuring glibc
6557: # with a fresh cross-compiler works.
6558: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559: # <limits.h> exists even on freestanding compilers.
6560: # On the NeXT, cc -E runs the code through the compiler's parser,
6561: # not just through cpp. "Syntax error" is here to catch this case.
1.11 ! moko 6562: cat >conftest.$ac_ext <<_ACEOF
! 6563: /* confdefs.h. */
! 6564: _ACEOF
! 6565: cat confdefs.h >>conftest.$ac_ext
! 6566: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6567: /* end confdefs.h. */
6568: #ifdef __STDC__
6569: # include <limits.h>
6570: #else
6571: # include <assert.h>
6572: #endif
6573: Syntax error
6574: _ACEOF
1.11 ! moko 6575: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6576: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6577: ac_status=$?
! 6578: grep -v '^ *+' conftest.er1 >conftest.err
! 6579: rm -f conftest.er1
! 6580: cat conftest.err >&5
! 6581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6582: (exit $ac_status); } >/dev/null; then
! 6583: if test -s conftest.err; then
! 6584: ac_cpp_err=$ac_c_preproc_warn_flag
! 6585: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 6586: else
! 6587: ac_cpp_err=
! 6588: fi
! 6589: else
! 6590: ac_cpp_err=yes
! 6591: fi
! 6592: if test -z "$ac_cpp_err"; then
! 6593: :
! 6594: else
! 6595: echo "$as_me: failed program was:" >&5
! 6596: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6597:
1.8 moko 6598: # Broken: fails on valid input.
6599: continue
6600: fi
1.11 ! moko 6601: rm -f conftest.err conftest.$ac_ext
1.1 misha 6602:
1.11 ! moko 6603: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6604: # can be detected and how.
1.11 ! moko 6605: cat >conftest.$ac_ext <<_ACEOF
! 6606: /* confdefs.h. */
! 6607: _ACEOF
! 6608: cat confdefs.h >>conftest.$ac_ext
! 6609: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6610: /* end confdefs.h. */
6611: #include <ac_nonexistent.h>
6612: _ACEOF
1.11 ! moko 6613: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6614: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6615: ac_status=$?
! 6616: grep -v '^ *+' conftest.er1 >conftest.err
! 6617: rm -f conftest.er1
! 6618: cat conftest.err >&5
! 6619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6620: (exit $ac_status); } >/dev/null; then
! 6621: if test -s conftest.err; then
! 6622: ac_cpp_err=$ac_c_preproc_warn_flag
! 6623: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 6624: else
! 6625: ac_cpp_err=
! 6626: fi
! 6627: else
! 6628: ac_cpp_err=yes
! 6629: fi
! 6630: if test -z "$ac_cpp_err"; then
1.8 moko 6631: # Broken: success on invalid input.
6632: continue
6633: else
1.11 ! moko 6634: echo "$as_me: failed program was:" >&5
! 6635: sed 's/^/| /' conftest.$ac_ext >&5
! 6636:
1.8 moko 6637: # Passes both tests.
6638: ac_preproc_ok=:
6639: break
1.1 misha 6640: fi
1.11 ! moko 6641: rm -f conftest.err conftest.$ac_ext
1.1 misha 6642:
1.8 moko 6643: done
6644: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 ! moko 6645: rm -f conftest.err conftest.$ac_ext
! 6646: if $ac_preproc_ok; then
1.8 moko 6647: break
1.1 misha 6648: fi
6649:
1.8 moko 6650: done
6651: ac_cv_prog_CPP=$CPP
1.1 misha 6652:
1.8 moko 6653: fi
6654: CPP=$ac_cv_prog_CPP
6655: else
6656: ac_cv_prog_CPP=$CPP
6657: fi
1.11 ! moko 6658: echo "$as_me:$LINENO: result: $CPP" >&5
! 6659: echo "${ECHO_T}$CPP" >&6
1.8 moko 6660: ac_preproc_ok=false
6661: for ac_c_preproc_warn_flag in '' yes
6662: do
6663: # Use a header file that comes with gcc, so configuring glibc
6664: # with a fresh cross-compiler works.
6665: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666: # <limits.h> exists even on freestanding compilers.
6667: # On the NeXT, cc -E runs the code through the compiler's parser,
6668: # not just through cpp. "Syntax error" is here to catch this case.
1.11 ! moko 6669: cat >conftest.$ac_ext <<_ACEOF
! 6670: /* confdefs.h. */
! 6671: _ACEOF
! 6672: cat confdefs.h >>conftest.$ac_ext
! 6673: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6674: /* end confdefs.h. */
6675: #ifdef __STDC__
6676: # include <limits.h>
6677: #else
6678: # include <assert.h>
6679: #endif
6680: Syntax error
6681: _ACEOF
1.11 ! moko 6682: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6683: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6684: ac_status=$?
! 6685: grep -v '^ *+' conftest.er1 >conftest.err
! 6686: rm -f conftest.er1
! 6687: cat conftest.err >&5
! 6688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6689: (exit $ac_status); } >/dev/null; then
! 6690: if test -s conftest.err; then
! 6691: ac_cpp_err=$ac_c_preproc_warn_flag
! 6692: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 6693: else
! 6694: ac_cpp_err=
! 6695: fi
! 6696: else
! 6697: ac_cpp_err=yes
! 6698: fi
! 6699: if test -z "$ac_cpp_err"; then
! 6700: :
! 6701: else
! 6702: echo "$as_me: failed program was:" >&5
! 6703: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6704:
1.8 moko 6705: # Broken: fails on valid input.
6706: continue
6707: fi
1.11 ! moko 6708: rm -f conftest.err conftest.$ac_ext
1.1 misha 6709:
1.11 ! moko 6710: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6711: # can be detected and how.
1.11 ! moko 6712: cat >conftest.$ac_ext <<_ACEOF
! 6713: /* confdefs.h. */
! 6714: _ACEOF
! 6715: cat confdefs.h >>conftest.$ac_ext
! 6716: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6717: /* end confdefs.h. */
6718: #include <ac_nonexistent.h>
6719: _ACEOF
1.11 ! moko 6720: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6721: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6722: ac_status=$?
! 6723: grep -v '^ *+' conftest.er1 >conftest.err
! 6724: rm -f conftest.er1
! 6725: cat conftest.err >&5
! 6726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6727: (exit $ac_status); } >/dev/null; then
! 6728: if test -s conftest.err; then
! 6729: ac_cpp_err=$ac_c_preproc_warn_flag
! 6730: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 6731: else
! 6732: ac_cpp_err=
! 6733: fi
! 6734: else
! 6735: ac_cpp_err=yes
! 6736: fi
! 6737: if test -z "$ac_cpp_err"; then
1.8 moko 6738: # Broken: success on invalid input.
6739: continue
6740: else
1.11 ! moko 6741: echo "$as_me: failed program was:" >&5
! 6742: sed 's/^/| /' conftest.$ac_ext >&5
! 6743:
1.8 moko 6744: # Passes both tests.
6745: ac_preproc_ok=:
6746: break
6747: fi
1.11 ! moko 6748: rm -f conftest.err conftest.$ac_ext
1.8 moko 6749:
6750: done
6751: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 ! moko 6752: rm -f conftest.err conftest.$ac_ext
! 6753: if $ac_preproc_ok; then
! 6754: :
1.8 moko 6755: else
1.11 ! moko 6756: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
! 6757: See \`config.log' for more details." >&5
! 6758: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
! 6759: See \`config.log' for more details." >&2;}
! 6760: { (exit 1); exit 1; }; }
1.8 moko 6761: fi
1.1 misha 6762:
1.8 moko 6763: ac_ext=c
6764: ac_cpp='$CPP $CPPFLAGS'
6765: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 6768:
6769:
1.11 ! moko 6770: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 6771: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 6772: if test "${ac_cv_header_stdc+set}" = set; then
! 6773: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6774: else
1.11 ! moko 6775: cat >conftest.$ac_ext <<_ACEOF
! 6776: /* confdefs.h. */
! 6777: _ACEOF
! 6778: cat confdefs.h >>conftest.$ac_ext
! 6779: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6780: /* end confdefs.h. */
6781: #include <stdlib.h>
6782: #include <stdarg.h>
6783: #include <string.h>
6784: #include <float.h>
1.1 misha 6785:
1.8 moko 6786: int
6787: main ()
6788: {
1.1 misha 6789:
1.8 moko 6790: ;
6791: return 0;
6792: }
6793: _ACEOF
1.11 ! moko 6794: rm -f conftest.$ac_objext
! 6795: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6796: (eval $ac_compile) 2>conftest.er1
! 6797: ac_status=$?
! 6798: grep -v '^ *+' conftest.er1 >conftest.err
! 6799: rm -f conftest.er1
! 6800: cat conftest.err >&5
! 6801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6802: (exit $ac_status); } &&
! 6803: { ac_try='test -z "$ac_c_werror_flag"
! 6804: || test ! -s conftest.err'
! 6805: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6806: (eval $ac_try) 2>&5
! 6807: ac_status=$?
! 6808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6809: (exit $ac_status); }; } &&
! 6810: { ac_try='test -s conftest.$ac_objext'
! 6811: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6812: (eval $ac_try) 2>&5
! 6813: ac_status=$?
! 6814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6815: (exit $ac_status); }; }; then
1.8 moko 6816: ac_cv_header_stdc=yes
6817: else
1.11 ! moko 6818: echo "$as_me: failed program was:" >&5
! 6819: sed 's/^/| /' conftest.$ac_ext >&5
! 6820:
! 6821: ac_cv_header_stdc=no
1.8 moko 6822: fi
1.11 ! moko 6823: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6824:
1.8 moko 6825: if test $ac_cv_header_stdc = yes; then
6826: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.11 ! moko 6827: cat >conftest.$ac_ext <<_ACEOF
! 6828: /* confdefs.h. */
! 6829: _ACEOF
! 6830: cat confdefs.h >>conftest.$ac_ext
! 6831: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6832: /* end confdefs.h. */
6833: #include <string.h>
6834:
6835: _ACEOF
6836: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 ! moko 6837: $EGREP "memchr" >/dev/null 2>&1; then
! 6838: :
1.8 moko 6839: else
6840: ac_cv_header_stdc=no
6841: fi
6842: rm -f conftest*
6843:
6844: fi
6845:
6846: if test $ac_cv_header_stdc = yes; then
6847: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.11 ! moko 6848: cat >conftest.$ac_ext <<_ACEOF
! 6849: /* confdefs.h. */
! 6850: _ACEOF
! 6851: cat confdefs.h >>conftest.$ac_ext
! 6852: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6853: /* end confdefs.h. */
6854: #include <stdlib.h>
6855:
6856: _ACEOF
6857: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 ! moko 6858: $EGREP "free" >/dev/null 2>&1; then
! 6859: :
1.8 moko 6860: else
6861: ac_cv_header_stdc=no
6862: fi
6863: rm -f conftest*
6864:
6865: fi
1.1 misha 6866:
1.8 moko 6867: if test $ac_cv_header_stdc = yes; then
6868: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.11 ! moko 6869: if test "$cross_compiling" = yes; then
1.8 moko 6870: :
6871: else
1.11 ! moko 6872: cat >conftest.$ac_ext <<_ACEOF
! 6873: /* confdefs.h. */
! 6874: _ACEOF
! 6875: cat confdefs.h >>conftest.$ac_ext
! 6876: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6877: /* end confdefs.h. */
6878: #include <ctype.h>
6879: #if ((' ' & 0x0FF) == 0x020)
6880: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6882: #else
6883: # define ISLOWER(c) \
6884: (('a' <= (c) && (c) <= 'i') \
6885: || ('j' <= (c) && (c) <= 'r') \
6886: || ('s' <= (c) && (c) <= 'z'))
6887: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888: #endif
1.1 misha 6889:
1.8 moko 6890: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6891: int
6892: main ()
6893: {
6894: int i;
6895: for (i = 0; i < 256; i++)
6896: if (XOR (islower (i), ISLOWER (i))
6897: || toupper (i) != TOUPPER (i))
1.11 ! moko 6898: exit(2);
! 6899: exit (0);
1.8 moko 6900: }
6901: _ACEOF
1.11 ! moko 6902: rm -f conftest$ac_exeext
! 6903: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6904: (eval $ac_link) 2>&5
! 6905: ac_status=$?
! 6906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6907: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6909: (eval $ac_try) 2>&5
! 6910: ac_status=$?
! 6911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6912: (exit $ac_status); }; }; then
! 6913: :
! 6914: else
! 6915: echo "$as_me: program exited with status $ac_status" >&5
! 6916: echo "$as_me: failed program was:" >&5
! 6917: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6918:
1.11 ! moko 6919: ( exit $ac_status )
! 6920: ac_cv_header_stdc=no
1.8 moko 6921: fi
1.11 ! moko 6922: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.8 moko 6923: fi
6924: fi
6925: fi
1.11 ! moko 6926: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 6927: echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.8 moko 6928: if test $ac_cv_header_stdc = yes; then
1.1 misha 6929:
1.11 ! moko 6930: cat >>confdefs.h <<\_ACEOF
! 6931: #define STDC_HEADERS 1
! 6932: _ACEOF
1.1 misha 6933:
1.8 moko 6934: fi
1.1 misha 6935:
1.8 moko 6936: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 misha 6937:
6938:
6939:
6940:
6941:
6942:
1.11 ! moko 6943:
! 6944:
! 6945:
! 6946: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 6947: inttypes.h stdint.h unistd.h
! 6948: do
! 6949: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6950: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6951: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 6952: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 6953: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6954: else
! 6955: cat >conftest.$ac_ext <<_ACEOF
! 6956: /* confdefs.h. */
! 6957: _ACEOF
! 6958: cat confdefs.h >>conftest.$ac_ext
! 6959: cat >>conftest.$ac_ext <<_ACEOF
! 6960: /* end confdefs.h. */
! 6961: $ac_includes_default
! 6962:
! 6963: #include <$ac_header>
! 6964: _ACEOF
! 6965: rm -f conftest.$ac_objext
! 6966: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6967: (eval $ac_compile) 2>conftest.er1
! 6968: ac_status=$?
! 6969: grep -v '^ *+' conftest.er1 >conftest.err
! 6970: rm -f conftest.er1
! 6971: cat conftest.err >&5
! 6972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6973: (exit $ac_status); } &&
! 6974: { ac_try='test -z "$ac_c_werror_flag"
! 6975: || test ! -s conftest.err'
! 6976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6977: (eval $ac_try) 2>&5
! 6978: ac_status=$?
! 6979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6980: (exit $ac_status); }; } &&
! 6981: { ac_try='test -s conftest.$ac_objext'
! 6982: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6983: (eval $ac_try) 2>&5
! 6984: ac_status=$?
! 6985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6986: (exit $ac_status); }; }; then
! 6987: eval "$as_ac_Header=yes"
! 6988: else
! 6989: echo "$as_me: failed program was:" >&5
! 6990: sed 's/^/| /' conftest.$ac_ext >&5
! 6991:
! 6992: eval "$as_ac_Header=no"
! 6993: fi
! 6994: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 6995: fi
! 6996: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 6997: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 6998: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6999: cat >>confdefs.h <<_ACEOF
! 7000: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 7001: _ACEOF
! 7002:
! 7003: fi
! 7004:
! 7005: done
! 7006:
! 7007:
! 7008:
! 7009: for ac_header in dlfcn.h
! 7010: do
! 7011: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7012: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7013: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 7014: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 7015: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7016: else
! 7017: cat >conftest.$ac_ext <<_ACEOF
! 7018: /* confdefs.h. */
! 7019: _ACEOF
! 7020: cat confdefs.h >>conftest.$ac_ext
! 7021: cat >>conftest.$ac_ext <<_ACEOF
! 7022: /* end confdefs.h. */
! 7023: $ac_includes_default
! 7024:
! 7025: #include <$ac_header>
! 7026: _ACEOF
! 7027: rm -f conftest.$ac_objext
! 7028: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7029: (eval $ac_compile) 2>conftest.er1
! 7030: ac_status=$?
! 7031: grep -v '^ *+' conftest.er1 >conftest.err
! 7032: rm -f conftest.er1
! 7033: cat conftest.err >&5
! 7034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7035: (exit $ac_status); } &&
! 7036: { ac_try='test -z "$ac_c_werror_flag"
! 7037: || test ! -s conftest.err'
! 7038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7039: (eval $ac_try) 2>&5
! 7040: ac_status=$?
! 7041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7042: (exit $ac_status); }; } &&
! 7043: { ac_try='test -s conftest.$ac_objext'
! 7044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7045: (eval $ac_try) 2>&5
! 7046: ac_status=$?
! 7047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7048: (exit $ac_status); }; }; then
! 7049: eval "$as_ac_Header=yes"
! 7050: else
! 7051: echo "$as_me: failed program was:" >&5
! 7052: sed 's/^/| /' conftest.$ac_ext >&5
! 7053:
! 7054: eval "$as_ac_Header=no"
! 7055: fi
! 7056: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 7057: fi
! 7058: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 7059: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 7060: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 7061: cat >>confdefs.h <<_ACEOF
! 7062: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 7063: _ACEOF
! 7064:
! 7065: fi
! 7066:
! 7067: done
1.1 misha 7068:
7069:
7070:
1.8 moko 7071:
7072: func_stripname_cnf ()
1.1 misha 7073: {
1.8 moko 7074: case ${2} in
7075: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7076: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7077: esac
7078: } # func_stripname_cnf
7079:
7080:
7081:
7082:
7083:
7084: # Set options
7085: enable_dlopen=yes
7086:
7087:
7088:
7089:
7090: enable_win32_dll=no
7091:
1.1 misha 7092:
1.11 ! moko 7093: # Check whether --enable-shared or --disable-shared was given.
! 7094: if test "${enable_shared+set}" = set; then
! 7095: enableval="$enable_shared"
! 7096: p=${PACKAGE-default}
1.8 moko 7097: case $enableval in
7098: yes) enable_shared=yes ;;
7099: no) enable_shared=no ;;
7100: *)
7101: enable_shared=no
7102: # Look at the argument we got. We use all the common list separators.
7103: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7104: for pkg in $enableval; do
7105: IFS="$lt_save_ifs"
7106: if test "X$pkg" = "X$p"; then
7107: enable_shared=yes
7108: fi
7109: done
7110: IFS="$lt_save_ifs"
7111: ;;
7112: esac
1.1 misha 7113: else
1.8 moko 7114: enable_shared=yes
1.11 ! moko 7115: fi;
1.8 moko 7116:
7117:
7118:
7119:
7120:
7121:
7122:
1.1 misha 7123:
1.11 ! moko 7124: # Check whether --enable-static or --disable-static was given.
! 7125: if test "${enable_static+set}" = set; then
! 7126: enableval="$enable_static"
! 7127: p=${PACKAGE-default}
1.8 moko 7128: case $enableval in
7129: yes) enable_static=yes ;;
7130: no) enable_static=no ;;
7131: *)
7132: enable_static=no
7133: # Look at the argument we got. We use all the common list separators.
7134: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7135: for pkg in $enableval; do
7136: IFS="$lt_save_ifs"
7137: if test "X$pkg" = "X$p"; then
7138: enable_static=yes
7139: fi
7140: done
7141: IFS="$lt_save_ifs"
7142: ;;
7143: esac
1.1 misha 7144: else
1.8 moko 7145: enable_static=yes
1.11 ! moko 7146: fi;
1.8 moko 7147:
7148:
7149:
7150:
7151:
7152:
7153:
7154:
7155:
1.11 ! moko 7156: # Check whether --with-pic or --without-pic was given.
! 7157: if test "${with_pic+set}" = set; then
! 7158: withval="$with_pic"
! 7159: lt_p=${PACKAGE-default}
1.8 moko 7160: case $withval in
7161: yes|no) pic_mode=$withval ;;
7162: *)
7163: pic_mode=default
7164: # Look at the argument we got. We use all the common list separators.
7165: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7166: for lt_pkg in $withval; do
7167: IFS="$lt_save_ifs"
7168: if test "X$lt_pkg" = "X$lt_p"; then
7169: pic_mode=yes
7170: fi
7171: done
7172: IFS="$lt_save_ifs"
7173: ;;
7174: esac
1.1 misha 7175: else
1.8 moko 7176: pic_mode=default
1.11 ! moko 7177: fi;
1.8 moko 7178:
7179: test -z "$pic_mode" && pic_mode=default
7180:
7181:
7182:
7183:
7184:
7185:
1.1 misha 7186:
1.11 ! moko 7187: # Check whether --enable-fast-install or --disable-fast-install was given.
! 7188: if test "${enable_fast_install+set}" = set; then
! 7189: enableval="$enable_fast_install"
! 7190: p=${PACKAGE-default}
1.8 moko 7191: case $enableval in
7192: yes) enable_fast_install=yes ;;
7193: no) enable_fast_install=no ;;
7194: *)
7195: enable_fast_install=no
7196: # Look at the argument we got. We use all the common list separators.
7197: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7198: for pkg in $enableval; do
7199: IFS="$lt_save_ifs"
7200: if test "X$pkg" = "X$p"; then
7201: enable_fast_install=yes
7202: fi
7203: done
7204: IFS="$lt_save_ifs"
7205: ;;
7206: esac
1.1 misha 7207: else
1.8 moko 7208: enable_fast_install=yes
1.11 ! moko 7209: fi;
1.8 moko 7210:
7211:
7212:
7213:
7214:
7215:
7216:
7217:
7218:
7219:
7220: # This can be used to rebuild libtool when needed
7221: LIBTOOL_DEPS="$ltmain"
7222:
7223: # Always use our own libtool.
7224: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7225:
7226:
7227:
7228:
7229:
7230:
7231:
7232:
7233:
7234:
7235:
7236:
7237:
7238:
7239:
7240:
7241:
7242:
7243:
7244:
7245:
7246:
7247:
7248:
7249:
7250:
7251:
7252:
7253:
7254:
7255: test -z "$LN_S" && LN_S="ln -s"
7256:
7257:
7258:
7259:
7260:
7261:
7262:
7263:
7264:
7265:
7266:
7267:
7268:
1.1 misha 7269:
1.8 moko 7270: if test -n "${ZSH_VERSION+set}" ; then
7271: setopt NO_GLOB_SUBST
1.1 misha 7272: fi
1.8 moko 7273:
1.11 ! moko 7274: echo "$as_me:$LINENO: checking for objdir" >&5
! 7275: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
! 7276: if test "${lt_cv_objdir+set}" = set; then
! 7277: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7278: else
7279: rm -f .libs 2>/dev/null
7280: mkdir .libs 2>/dev/null
7281: if test -d .libs; then
7282: lt_cv_objdir=.libs
7283: else
7284: # MS-DOS does not allow filenames that begin with a dot.
7285: lt_cv_objdir=_libs
1.1 misha 7286: fi
1.8 moko 7287: rmdir .libs 2>/dev/null
7288: fi
1.11 ! moko 7289: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 7290: echo "${ECHO_T}$lt_cv_objdir" >&6
1.8 moko 7291: objdir=$lt_cv_objdir
1.1 misha 7292:
7293:
7294:
7295:
7296:
1.8 moko 7297: cat >>confdefs.h <<_ACEOF
7298: #define LT_OBJDIR "$lt_cv_objdir/"
7299: _ACEOF
1.1 misha 7300:
7301:
7302:
7303:
1.8 moko 7304: case $host_os in
7305: aix3*)
7306: # AIX sometimes has problems with the GCC collect2 program. For some
7307: # reason, if we set the COLLECT_NAMES environment variable, the problems
7308: # vanish in a puff of smoke.
7309: if test "X${COLLECT_NAMES+set}" != Xset; then
7310: COLLECT_NAMES=
7311: export COLLECT_NAMES
7312: fi
7313: ;;
7314: esac
1.1 misha 7315:
1.8 moko 7316: # Global variables:
7317: ofile=libtool
7318: can_build_shared=yes
1.1 misha 7319:
1.8 moko 7320: # All known linkers require a `.a' archive for static linking (except MSVC,
7321: # which needs '.lib').
7322: libext=a
1.1 misha 7323:
1.8 moko 7324: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 7325:
1.8 moko 7326: old_CC="$CC"
7327: old_CFLAGS="$CFLAGS"
1.1 misha 7328:
1.8 moko 7329: # Set sane defaults for various variables
7330: test -z "$CC" && CC=cc
7331: test -z "$LTCC" && LTCC=$CC
7332: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7333: test -z "$LD" && LD=ld
7334: test -z "$ac_objext" && ac_objext=o
1.1 misha 7335:
1.8 moko 7336: for cc_temp in $compiler""; do
7337: case $cc_temp in
7338: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7339: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7340: \-*) ;;
7341: *) break;;
1.1 misha 7342: esac
1.8 moko 7343: done
7344: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 7345:
7346:
1.8 moko 7347: # Only perform the check for file, if the check method requires it
7348: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7349: case $deplibs_check_method in
7350: file_magic*)
7351: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.11 ! moko 7352: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 7353: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
! 7354: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7355: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7356: else
7357: case $MAGIC_CMD in
7358: [\\/*] | ?:[\\/]*)
7359: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7360: ;;
7361: *)
7362: lt_save_MAGIC_CMD="$MAGIC_CMD"
7363: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7364: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7365: for ac_dir in $ac_dummy; do
7366: IFS="$lt_save_ifs"
7367: test -z "$ac_dir" && ac_dir=.
7368: if test -f $ac_dir/${ac_tool_prefix}file; then
7369: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7370: if test -n "$file_magic_test_file"; then
7371: case $deplibs_check_method in
7372: "file_magic "*)
7373: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7374: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7376: $EGREP "$file_magic_regex" > /dev/null; then
7377: :
7378: else
7379: cat <<_LT_EOF 1>&2
1.1 misha 7380:
1.8 moko 7381: *** Warning: the command libtool uses to detect shared libraries,
7382: *** $file_magic_cmd, produces output that libtool cannot recognize.
7383: *** The result is that libtool may fail to recognize shared libraries
7384: *** as such. This will affect the creation of libtool libraries that
7385: *** depend on shared libraries, but programs linked with such libtool
7386: *** libraries will work regardless of this problem. Nevertheless, you
7387: *** may want to report the problem to your system manager and/or to
7388: *** bug-libtool@gnu.org
1.1 misha 7389:
1.8 moko 7390: _LT_EOF
7391: fi ;;
7392: esac
7393: fi
7394: break
7395: fi
7396: done
7397: IFS="$lt_save_ifs"
7398: MAGIC_CMD="$lt_save_MAGIC_CMD"
7399: ;;
7400: esac
7401: fi
1.1 misha 7402:
1.8 moko 7403: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7404: if test -n "$MAGIC_CMD"; then
1.11 ! moko 7405: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7406: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 misha 7407: else
1.11 ! moko 7408: echo "$as_me:$LINENO: result: no" >&5
! 7409: echo "${ECHO_T}no" >&6
1.8 moko 7410: fi
7411:
1.1 misha 7412:
7413:
7414:
7415:
1.8 moko 7416: if test -z "$lt_cv_path_MAGIC_CMD"; then
7417: if test -n "$ac_tool_prefix"; then
1.11 ! moko 7418: echo "$as_me:$LINENO: checking for file" >&5
! 7419: echo $ECHO_N "checking for file... $ECHO_C" >&6
! 7420: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7421: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7422: else
7423: case $MAGIC_CMD in
7424: [\\/*] | ?:[\\/]*)
7425: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7426: ;;
7427: *)
7428: lt_save_MAGIC_CMD="$MAGIC_CMD"
7429: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7430: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7431: for ac_dir in $ac_dummy; do
7432: IFS="$lt_save_ifs"
7433: test -z "$ac_dir" && ac_dir=.
7434: if test -f $ac_dir/file; then
7435: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7436: if test -n "$file_magic_test_file"; then
7437: case $deplibs_check_method in
7438: "file_magic "*)
7439: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7440: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7441: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7442: $EGREP "$file_magic_regex" > /dev/null; then
7443: :
7444: else
7445: cat <<_LT_EOF 1>&2
7446:
7447: *** Warning: the command libtool uses to detect shared libraries,
7448: *** $file_magic_cmd, produces output that libtool cannot recognize.
7449: *** The result is that libtool may fail to recognize shared libraries
7450: *** as such. This will affect the creation of libtool libraries that
7451: *** depend on shared libraries, but programs linked with such libtool
7452: *** libraries will work regardless of this problem. Nevertheless, you
7453: *** may want to report the problem to your system manager and/or to
7454: *** bug-libtool@gnu.org
1.1 misha 7455:
1.8 moko 7456: _LT_EOF
7457: fi ;;
7458: esac
7459: fi
7460: break
7461: fi
7462: done
7463: IFS="$lt_save_ifs"
7464: MAGIC_CMD="$lt_save_MAGIC_CMD"
7465: ;;
7466: esac
7467: fi
1.1 misha 7468:
1.8 moko 7469: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7470: if test -n "$MAGIC_CMD"; then
1.11 ! moko 7471: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7472: echo "${ECHO_T}$MAGIC_CMD" >&6
1.8 moko 7473: else
1.11 ! moko 7474: echo "$as_me:$LINENO: result: no" >&5
! 7475: echo "${ECHO_T}no" >&6
1.8 moko 7476: fi
1.1 misha 7477:
7478:
1.8 moko 7479: else
7480: MAGIC_CMD=:
1.1 misha 7481: fi
7482: fi
1.8 moko 7483:
7484: fi
7485: ;;
7486: esac
7487:
7488: # Use C for the default configuration in the libtool script
7489:
7490: lt_save_CC="$CC"
7491: ac_ext=c
7492: ac_cpp='$CPP $CPPFLAGS'
7493: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496:
7497:
7498: # Source file extension for C test sources.
7499: ac_ext=c
7500:
7501: # Object file extension for compiled C test sources.
7502: objext=o
7503: objext=$objext
7504:
7505: # Code to be used in simple compile tests
7506: lt_simple_compile_test_code="int some_variable = 0;"
7507:
7508: # Code to be used in simple link tests
7509: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 7510:
7511:
7512:
7513:
7514:
7515:
7516:
1.8 moko 7517: # If no C compiler was specified, use CC.
7518: LTCC=${LTCC-"$CC"}
1.1 misha 7519:
1.8 moko 7520: # If no C compiler flags were specified, use CFLAGS.
7521: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 7522:
1.8 moko 7523: # Allow CC to be a program name with arguments.
7524: compiler=$CC
1.1 misha 7525:
1.8 moko 7526: # Save the default compiler, since it gets overwritten when the other
7527: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7528: compiler_DEFAULT=$CC
1.1 misha 7529:
1.8 moko 7530: # save warnings/boilerplate of simple test code
7531: ac_outfile=conftest.$ac_objext
7532: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7533: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7534: _lt_compiler_boilerplate=`cat conftest.err`
7535: $RM conftest*
1.1 misha 7536:
1.8 moko 7537: ac_outfile=conftest.$ac_objext
7538: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7539: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7540: _lt_linker_boilerplate=`cat conftest.err`
7541: $RM -r conftest*
1.1 misha 7542:
7543:
1.8 moko 7544: if test -n "$compiler"; then
1.1 misha 7545:
1.8 moko 7546: lt_prog_compiler_no_builtin_flag=
1.1 misha 7547:
1.8 moko 7548: if test "$GCC" = yes; then
7549: case $cc_basename in
7550: nvcc*)
7551: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7552: *)
7553: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 7554: esac
7555:
1.11 ! moko 7556: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 7557: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 7558: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 7559: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 7560: else
1.8 moko 7561: lt_cv_prog_compiler_rtti_exceptions=no
7562: ac_outfile=conftest.$ac_objext
7563: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7564: lt_compiler_flag="-fno-rtti -fno-exceptions"
7565: # Insert the option either (1) after the last *FLAGS variable, or
7566: # (2) before a word containing "conftest.", or (3) at the end.
7567: # Note that $ac_compile itself does not contain backslashes and begins
7568: # with a dollar sign (not a hyphen), so the echo should work correctly.
7569: # The option is referenced via a variable to avoid confusing sed.
7570: lt_compile=`echo "$ac_compile" | $SED \
7571: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7572: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7573: -e 's:$: $lt_compiler_flag:'`
7574: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7575: (eval "$lt_compile" 2>conftest.err)
7576: ac_status=$?
7577: cat conftest.err >&5
7578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579: if (exit $ac_status) && test -s "$ac_outfile"; then
7580: # The compiler can only warn and ignore the option if not recognized
7581: # So say no if there are warnings other than the usual output.
7582: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7583: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7584: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7585: lt_cv_prog_compiler_rtti_exceptions=yes
7586: fi
7587: fi
7588: $RM conftest*
1.1 misha 7589:
7590: fi
1.11 ! moko 7591: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 7592: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.1 misha 7593:
1.8 moko 7594: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7595: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7596: else
7597: :
1.1 misha 7598: fi
7599:
1.8 moko 7600: fi
1.1 misha 7601:
7602:
7603:
7604:
7605:
7606:
1.8 moko 7607: lt_prog_compiler_wl=
7608: lt_prog_compiler_pic=
7609: lt_prog_compiler_static=
1.1 misha 7610:
7611:
1.8 moko 7612: if test "$GCC" = yes; then
7613: lt_prog_compiler_wl='-Wl,'
7614: lt_prog_compiler_static='-static'
1.1 misha 7615:
1.8 moko 7616: case $host_os in
7617: aix*)
7618: # All AIX code is PIC.
7619: if test "$host_cpu" = ia64; then
7620: # AIX 5 now supports IA64 processor
7621: lt_prog_compiler_static='-Bstatic'
7622: fi
7623: ;;
1.1 misha 7624:
1.8 moko 7625: amigaos*)
7626: case $host_cpu in
7627: powerpc)
7628: # see comment about AmigaOS4 .so support
7629: lt_prog_compiler_pic='-fPIC'
7630: ;;
7631: m68k)
7632: # FIXME: we need at least 68020 code to build shared libraries, but
7633: # adding the `-m68020' flag to GCC prevents building anything better,
7634: # like `-m68040'.
7635: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7636: ;;
7637: esac
7638: ;;
1.1 misha 7639:
1.8 moko 7640: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7641: # PIC is the default for these OSes.
7642: ;;
1.1 misha 7643:
1.8 moko 7644: mingw* | cygwin* | pw32* | os2* | cegcc*)
7645: # This hack is so that the source file can tell whether it is being
7646: # built for inclusion in a dll (and should export symbols for example).
7647: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7648: # (--disable-auto-import) libraries
7649: lt_prog_compiler_pic='-DDLL_EXPORT'
7650: ;;
1.1 misha 7651:
1.8 moko 7652: darwin* | rhapsody*)
7653: # PIC is the default on this platform
7654: # Common symbols not allowed in MH_DYLIB files
7655: lt_prog_compiler_pic='-fno-common'
7656: ;;
1.1 misha 7657:
1.8 moko 7658: haiku*)
7659: # PIC is the default for Haiku.
7660: # The "-static" flag exists, but is broken.
7661: lt_prog_compiler_static=
7662: ;;
1.1 misha 7663:
1.8 moko 7664: hpux*)
7665: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7666: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7667: # sets the default TLS model and affects inlining.
7668: case $host_cpu in
7669: hppa*64*)
7670: # +Z the default
7671: ;;
7672: *)
7673: lt_prog_compiler_pic='-fPIC'
7674: ;;
7675: esac
7676: ;;
1.1 misha 7677:
1.8 moko 7678: interix[3-9]*)
7679: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7680: # Instead, we relocate shared libraries at runtime.
7681: ;;
1.1 misha 7682:
1.8 moko 7683: msdosdjgpp*)
7684: # Just because we use GCC doesn't mean we suddenly get shared libraries
7685: # on systems that don't support them.
7686: lt_prog_compiler_can_build_shared=no
7687: enable_shared=no
7688: ;;
1.1 misha 7689:
1.8 moko 7690: *nto* | *qnx*)
7691: # QNX uses GNU C++, but need to define -shared option too, otherwise
7692: # it will coredump.
7693: lt_prog_compiler_pic='-fPIC -shared'
7694: ;;
1.1 misha 7695:
1.8 moko 7696: sysv4*MP*)
7697: if test -d /usr/nec; then
7698: lt_prog_compiler_pic=-Kconform_pic
7699: fi
7700: ;;
1.1 misha 7701:
1.8 moko 7702: *)
7703: lt_prog_compiler_pic='-fPIC'
7704: ;;
7705: esac
1.1 misha 7706:
1.8 moko 7707: case $cc_basename in
7708: nvcc*) # Cuda Compiler Driver 2.2
7709: lt_prog_compiler_wl='-Xlinker '
7710: if test -n "$lt_prog_compiler_pic"; then
7711: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7712: fi
7713: ;;
7714: esac
7715: else
7716: # PORTME Check for flag to pass linker flags through the system compiler.
7717: case $host_os in
7718: aix*)
7719: lt_prog_compiler_wl='-Wl,'
7720: if test "$host_cpu" = ia64; then
7721: # AIX 5 now supports IA64 processor
7722: lt_prog_compiler_static='-Bstatic'
7723: else
7724: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7725: fi
7726: ;;
1.1 misha 7727:
1.8 moko 7728: mingw* | cygwin* | pw32* | os2* | cegcc*)
7729: # This hack is so that the source file can tell whether it is being
7730: # built for inclusion in a dll (and should export symbols for example).
7731: lt_prog_compiler_pic='-DDLL_EXPORT'
7732: ;;
1.1 misha 7733:
1.8 moko 7734: hpux9* | hpux10* | hpux11*)
7735: lt_prog_compiler_wl='-Wl,'
7736: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7737: # not for PA HP-UX.
7738: case $host_cpu in
7739: hppa*64*|ia64*)
7740: # +Z the default
7741: ;;
7742: *)
7743: lt_prog_compiler_pic='+Z'
7744: ;;
7745: esac
7746: # Is there a better lt_prog_compiler_static that works with the bundled CC?
7747: lt_prog_compiler_static='${wl}-a ${wl}archive'
7748: ;;
1.1 misha 7749:
1.8 moko 7750: irix5* | irix6* | nonstopux*)
7751: lt_prog_compiler_wl='-Wl,'
7752: # PIC (with -KPIC) is the default.
7753: lt_prog_compiler_static='-non_shared'
7754: ;;
1.1 misha 7755:
1.8 moko 7756: linux* | k*bsd*-gnu | kopensolaris*-gnu)
7757: case $cc_basename in
7758: # old Intel for x86_64 which still supported -KPIC.
7759: ecc*)
7760: lt_prog_compiler_wl='-Wl,'
7761: lt_prog_compiler_pic='-KPIC'
7762: lt_prog_compiler_static='-static'
7763: ;;
7764: # icc used to be incompatible with GCC.
7765: # ICC 10 doesn't accept -KPIC any more.
7766: icc* | ifort*)
7767: lt_prog_compiler_wl='-Wl,'
7768: lt_prog_compiler_pic='-fPIC'
7769: lt_prog_compiler_static='-static'
7770: ;;
7771: # Lahey Fortran 8.1.
7772: lf95*)
7773: lt_prog_compiler_wl='-Wl,'
7774: lt_prog_compiler_pic='--shared'
7775: lt_prog_compiler_static='--static'
7776: ;;
7777: nagfor*)
7778: # NAG Fortran compiler
7779: lt_prog_compiler_wl='-Wl,-Wl,,'
7780: lt_prog_compiler_pic='-PIC'
7781: lt_prog_compiler_static='-Bstatic'
7782: ;;
7783: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7784: # Portland Group compilers (*not* the Pentium gcc compiler,
7785: # which looks to be a dead project)
7786: lt_prog_compiler_wl='-Wl,'
7787: lt_prog_compiler_pic='-fpic'
7788: lt_prog_compiler_static='-Bstatic'
7789: ;;
7790: ccc*)
7791: lt_prog_compiler_wl='-Wl,'
7792: # All Alpha code is PIC.
7793: lt_prog_compiler_static='-non_shared'
7794: ;;
7795: xl* | bgxl* | bgf* | mpixl*)
7796: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7797: lt_prog_compiler_wl='-Wl,'
7798: lt_prog_compiler_pic='-qpic'
7799: lt_prog_compiler_static='-qstaticlink'
7800: ;;
7801: *)
7802: case `$CC -V 2>&1 | sed 5q` in
7803: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7804: # Sun Fortran 8.3 passes all unrecognized flags to the linker
7805: lt_prog_compiler_pic='-KPIC'
7806: lt_prog_compiler_static='-Bstatic'
7807: lt_prog_compiler_wl=''
7808: ;;
7809: *Sun\ F* | *Sun*Fortran*)
7810: lt_prog_compiler_pic='-KPIC'
7811: lt_prog_compiler_static='-Bstatic'
7812: lt_prog_compiler_wl='-Qoption ld '
7813: ;;
7814: *Sun\ C*)
7815: # Sun C 5.9
7816: lt_prog_compiler_pic='-KPIC'
7817: lt_prog_compiler_static='-Bstatic'
7818: lt_prog_compiler_wl='-Wl,'
7819: ;;
7820: *Intel*\ [CF]*Compiler*)
7821: lt_prog_compiler_wl='-Wl,'
7822: lt_prog_compiler_pic='-fPIC'
7823: lt_prog_compiler_static='-static'
7824: ;;
7825: *Portland\ Group*)
7826: lt_prog_compiler_wl='-Wl,'
7827: lt_prog_compiler_pic='-fpic'
7828: lt_prog_compiler_static='-Bstatic'
7829: ;;
7830: esac
7831: ;;
7832: esac
7833: ;;
1.1 misha 7834:
1.8 moko 7835: newsos6)
7836: lt_prog_compiler_pic='-KPIC'
7837: lt_prog_compiler_static='-Bstatic'
7838: ;;
1.1 misha 7839:
1.8 moko 7840: *nto* | *qnx*)
7841: # QNX uses GNU C++, but need to define -shared option too, otherwise
7842: # it will coredump.
7843: lt_prog_compiler_pic='-fPIC -shared'
7844: ;;
1.1 misha 7845:
1.8 moko 7846: osf3* | osf4* | osf5*)
7847: lt_prog_compiler_wl='-Wl,'
7848: # All OSF/1 code is PIC.
7849: lt_prog_compiler_static='-non_shared'
7850: ;;
1.1 misha 7851:
1.8 moko 7852: rdos*)
7853: lt_prog_compiler_static='-non_shared'
7854: ;;
1.1 misha 7855:
1.8 moko 7856: solaris*)
7857: lt_prog_compiler_pic='-KPIC'
7858: lt_prog_compiler_static='-Bstatic'
7859: case $cc_basename in
7860: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7861: lt_prog_compiler_wl='-Qoption ld ';;
7862: *)
7863: lt_prog_compiler_wl='-Wl,';;
7864: esac
7865: ;;
1.1 misha 7866:
1.8 moko 7867: sunos4*)
7868: lt_prog_compiler_wl='-Qoption ld '
7869: lt_prog_compiler_pic='-PIC'
7870: lt_prog_compiler_static='-Bstatic'
7871: ;;
1.1 misha 7872:
1.8 moko 7873: sysv4 | sysv4.2uw2* | sysv4.3*)
7874: lt_prog_compiler_wl='-Wl,'
7875: lt_prog_compiler_pic='-KPIC'
7876: lt_prog_compiler_static='-Bstatic'
7877: ;;
1.1 misha 7878:
1.8 moko 7879: sysv4*MP*)
7880: if test -d /usr/nec ;then
7881: lt_prog_compiler_pic='-Kconform_pic'
7882: lt_prog_compiler_static='-Bstatic'
7883: fi
7884: ;;
1.1 misha 7885:
1.8 moko 7886: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7887: lt_prog_compiler_wl='-Wl,'
7888: lt_prog_compiler_pic='-KPIC'
7889: lt_prog_compiler_static='-Bstatic'
7890: ;;
1.1 misha 7891:
1.8 moko 7892: unicos*)
7893: lt_prog_compiler_wl='-Wl,'
7894: lt_prog_compiler_can_build_shared=no
7895: ;;
1.1 misha 7896:
1.8 moko 7897: uts4*)
7898: lt_prog_compiler_pic='-pic'
7899: lt_prog_compiler_static='-Bstatic'
7900: ;;
1.1 misha 7901:
1.8 moko 7902: *)
7903: lt_prog_compiler_can_build_shared=no
7904: ;;
7905: esac
7906: fi
1.1 misha 7907:
1.8 moko 7908: case $host_os in
7909: # For platforms which do not support PIC, -DPIC is meaningless:
7910: *djgpp*)
7911: lt_prog_compiler_pic=
7912: ;;
7913: *)
7914: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7915: ;;
7916: esac
1.1 misha 7917:
1.11 ! moko 7918: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 7919: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 7920: if test "${lt_cv_prog_compiler_pic+set}" = set; then
! 7921: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7922: else
7923: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7924: fi
1.11 ! moko 7925: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
! 7926: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
1.8 moko 7927: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 7928:
1.8 moko 7929: #
7930: # Check to make sure the PIC flag actually works.
7931: #
7932: if test -n "$lt_prog_compiler_pic"; then
1.11 ! moko 7933: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 7934: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
! 7935: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
! 7936: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7937: else
7938: lt_cv_prog_compiler_pic_works=no
7939: ac_outfile=conftest.$ac_objext
7940: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7941: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7942: # Insert the option either (1) after the last *FLAGS variable, or
7943: # (2) before a word containing "conftest.", or (3) at the end.
7944: # Note that $ac_compile itself does not contain backslashes and begins
7945: # with a dollar sign (not a hyphen), so the echo should work correctly.
7946: # The option is referenced via a variable to avoid confusing sed.
7947: lt_compile=`echo "$ac_compile" | $SED \
7948: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7949: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7950: -e 's:$: $lt_compiler_flag:'`
7951: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7952: (eval "$lt_compile" 2>conftest.err)
7953: ac_status=$?
7954: cat conftest.err >&5
7955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956: if (exit $ac_status) && test -s "$ac_outfile"; then
7957: # The compiler can only warn and ignore the option if not recognized
7958: # So say no if there are warnings other than the usual output.
7959: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7960: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7961: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7962: lt_cv_prog_compiler_pic_works=yes
7963: fi
7964: fi
7965: $RM conftest*
1.1 misha 7966:
1.8 moko 7967: fi
1.11 ! moko 7968: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
! 7969: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.1 misha 7970:
1.8 moko 7971: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7972: case $lt_prog_compiler_pic in
7973: "" | " "*) ;;
7974: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7975: esac
7976: else
7977: lt_prog_compiler_pic=
7978: lt_prog_compiler_can_build_shared=no
7979: fi
1.1 misha 7980:
1.8 moko 7981: fi
1.1 misha 7982:
7983:
7984:
7985:
7986:
7987:
7988:
7989:
7990:
7991:
7992:
1.8 moko 7993: #
7994: # Check to make sure the static flag actually works.
7995: #
7996: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.11 ! moko 7997: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 7998: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
! 7999: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
! 8000: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8001: else
8002: lt_cv_prog_compiler_static_works=no
8003: save_LDFLAGS="$LDFLAGS"
8004: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8005: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8006: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8007: # The linker can only warn and ignore the option if not recognized
8008: # So say no if there are warnings
8009: if test -s conftest.err; then
8010: # Append any errors to the config.log.
8011: cat conftest.err 1>&5
8012: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8013: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8014: if diff conftest.exp conftest.er2 >/dev/null; then
8015: lt_cv_prog_compiler_static_works=yes
8016: fi
8017: else
8018: lt_cv_prog_compiler_static_works=yes
8019: fi
8020: fi
8021: $RM -r conftest*
8022: LDFLAGS="$save_LDFLAGS"
1.1 misha 8023:
1.8 moko 8024: fi
1.11 ! moko 8025: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
! 8026: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.1 misha 8027:
1.8 moko 8028: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8029: :
8030: else
8031: lt_prog_compiler_static=
8032: fi
1.1 misha 8033:
8034:
8035:
8036:
8037:
8038:
8039:
1.11 ! moko 8040: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 8041: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 8042: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 8043: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8044: else
8045: lt_cv_prog_compiler_c_o=no
8046: $RM -r conftest 2>/dev/null
8047: mkdir conftest
8048: cd conftest
8049: mkdir out
8050: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8051:
8052: lt_compiler_flag="-o out/conftest2.$ac_objext"
8053: # Insert the option either (1) after the last *FLAGS variable, or
8054: # (2) before a word containing "conftest.", or (3) at the end.
8055: # Note that $ac_compile itself does not contain backslashes and begins
8056: # with a dollar sign (not a hyphen), so the echo should work correctly.
8057: lt_compile=`echo "$ac_compile" | $SED \
8058: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8059: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8060: -e 's:$: $lt_compiler_flag:'`
8061: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8062: (eval "$lt_compile" 2>out/conftest.err)
8063: ac_status=$?
8064: cat out/conftest.err >&5
8065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8067: then
8068: # The compiler can only warn and ignore the option if not recognized
8069: # So say no if there are warnings
8070: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8071: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8072: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8073: lt_cv_prog_compiler_c_o=yes
8074: fi
8075: fi
8076: chmod u+w . 2>&5
8077: $RM conftest*
8078: # SGI C++ compiler will create directory out/ii_files/ for
8079: # template instantiation
8080: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8081: $RM out/* && rmdir out
8082: cd ..
8083: $RM -r conftest
8084: $RM conftest*
1.1 misha 8085:
1.8 moko 8086: fi
1.11 ! moko 8087: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 8088: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8089:
8090:
8091:
8092:
8093:
8094:
1.11 ! moko 8095: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 8096: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 8097: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 8098: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8099: else
8100: lt_cv_prog_compiler_c_o=no
8101: $RM -r conftest 2>/dev/null
8102: mkdir conftest
8103: cd conftest
8104: mkdir out
8105: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106:
8107: lt_compiler_flag="-o out/conftest2.$ac_objext"
8108: # Insert the option either (1) after the last *FLAGS variable, or
8109: # (2) before a word containing "conftest.", or (3) at the end.
8110: # Note that $ac_compile itself does not contain backslashes and begins
8111: # with a dollar sign (not a hyphen), so the echo should work correctly.
8112: lt_compile=`echo "$ac_compile" | $SED \
8113: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115: -e 's:$: $lt_compiler_flag:'`
8116: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8117: (eval "$lt_compile" 2>out/conftest.err)
8118: ac_status=$?
8119: cat out/conftest.err >&5
8120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8122: then
8123: # The compiler can only warn and ignore the option if not recognized
8124: # So say no if there are warnings
8125: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8126: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8127: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8128: lt_cv_prog_compiler_c_o=yes
8129: fi
8130: fi
8131: chmod u+w . 2>&5
8132: $RM conftest*
8133: # SGI C++ compiler will create directory out/ii_files/ for
8134: # template instantiation
8135: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8136: $RM out/* && rmdir out
8137: cd ..
8138: $RM -r conftest
8139: $RM conftest*
1.1 misha 8140:
1.8 moko 8141: fi
1.11 ! moko 8142: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 8143: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8144:
8145:
8146:
8147:
1.8 moko 8148: hard_links="nottested"
8149: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8150: # do not overwrite the value of need_locks provided by the user
1.11 ! moko 8151: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 8152: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 8153: hard_links=yes
8154: $RM conftest*
8155: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8156: touch conftest.a
8157: ln conftest.a conftest.b 2>&5 || hard_links=no
8158: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 ! moko 8159: echo "$as_me:$LINENO: result: $hard_links" >&5
! 8160: echo "${ECHO_T}$hard_links" >&6
1.8 moko 8161: if test "$hard_links" = no; then
1.11 ! moko 8162: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 8163: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 8164: need_locks=warn
8165: fi
8166: else
8167: need_locks=no
8168: fi
1.1 misha 8169:
8170:
8171:
8172:
8173:
8174:
1.11 ! moko 8175: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 8176: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.1 misha 8177:
1.8 moko 8178: runpath_var=
8179: allow_undefined_flag=
8180: always_export_symbols=no
8181: archive_cmds=
8182: archive_expsym_cmds=
8183: compiler_needs_object=no
8184: enable_shared_with_static_runtimes=no
8185: export_dynamic_flag_spec=
8186: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8187: hardcode_automatic=no
8188: hardcode_direct=no
8189: hardcode_direct_absolute=no
8190: hardcode_libdir_flag_spec=
8191: hardcode_libdir_separator=
8192: hardcode_minus_L=no
8193: hardcode_shlibpath_var=unsupported
8194: inherit_rpath=no
8195: link_all_deplibs=unknown
8196: module_cmds=
8197: module_expsym_cmds=
8198: old_archive_from_new_cmds=
8199: old_archive_from_expsyms_cmds=
8200: thread_safe_flag_spec=
8201: whole_archive_flag_spec=
8202: # include_expsyms should be a list of space-separated symbols to be *always*
8203: # included in the symbol list
8204: include_expsyms=
8205: # exclude_expsyms can be an extended regexp of symbols to exclude
8206: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8207: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8208: # as well as any symbol that contains `d'.
8209: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8210: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8211: # platforms (ab)use it in PIC code, but their linkers get confused if
8212: # the symbol is explicitly referenced. Since portable code cannot
8213: # rely on this symbol name, it's probably fine to never include it in
8214: # preloaded symbol tables.
8215: # Exclude shared library initialization/finalization symbols.
8216: extract_expsyms_cmds=
1.1 misha 8217:
1.8 moko 8218: case $host_os in
8219: cygwin* | mingw* | pw32* | cegcc*)
8220: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8221: # When not using gcc, we currently assume that we are using
8222: # Microsoft Visual C++.
8223: if test "$GCC" != yes; then
8224: with_gnu_ld=no
8225: fi
8226: ;;
8227: interix*)
8228: # we just hope/assume this is gcc and not c89 (= MSVC++)
8229: with_gnu_ld=yes
8230: ;;
8231: openbsd*)
8232: with_gnu_ld=no
8233: ;;
8234: esac
1.1 misha 8235:
1.8 moko 8236: ld_shlibs=yes
1.1 misha 8237:
1.8 moko 8238: # On some targets, GNU ld is compatible enough with the native linker
8239: # that we're better off using the native interface for both.
8240: lt_use_gnu_ld_interface=no
8241: if test "$with_gnu_ld" = yes; then
8242: case $host_os in
8243: aix*)
8244: # The AIX port of GNU ld has always aspired to compatibility
8245: # with the native linker. However, as the warning in the GNU ld
8246: # block says, versions before 2.19.5* couldn't really create working
8247: # shared libraries, regardless of the interface used.
8248: case `$LD -v 2>&1` in
8249: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8250: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8251: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8252: *)
8253: lt_use_gnu_ld_interface=yes
8254: ;;
8255: esac
8256: ;;
8257: *)
8258: lt_use_gnu_ld_interface=yes
8259: ;;
8260: esac
8261: fi
1.1 misha 8262:
1.8 moko 8263: if test "$lt_use_gnu_ld_interface" = yes; then
8264: # If archive_cmds runs LD, not CC, wlarc should be empty
8265: wlarc='${wl}'
8266:
8267: # Set some defaults for GNU ld with shared library support. These
8268: # are reset later if shared libraries are not supported. Putting them
8269: # here allows them to be overridden if necessary.
8270: runpath_var=LD_RUN_PATH
8271: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8272: export_dynamic_flag_spec='${wl}--export-dynamic'
8273: # ancient GNU ld didn't support --whole-archive et. al.
8274: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8275: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8276: else
8277: whole_archive_flag_spec=
8278: fi
8279: supports_anon_versioning=no
8280: case `$LD -v 2>&1` in
8281: *GNU\ gold*) supports_anon_versioning=yes ;;
8282: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8283: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8284: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8285: *\ 2.11.*) ;; # other 2.11 versions
8286: *) supports_anon_versioning=yes ;;
8287: esac
1.1 misha 8288:
1.8 moko 8289: # See if GNU ld supports shared libraries.
8290: case $host_os in
8291: aix[3-9]*)
8292: # On AIX/PPC, the GNU linker is very broken
8293: if test "$host_cpu" != ia64; then
8294: ld_shlibs=no
8295: cat <<_LT_EOF 1>&2
1.1 misha 8296:
1.8 moko 8297: *** Warning: the GNU linker, at least up to release 2.19, is reported
8298: *** to be unable to reliably create shared libraries on AIX.
8299: *** Therefore, libtool is disabling shared libraries support. If you
8300: *** really care for shared libraries, you may want to install binutils
8301: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8302: *** You will then need to restart the configuration process.
1.1 misha 8303:
1.8 moko 8304: _LT_EOF
8305: fi
8306: ;;
1.1 misha 8307:
1.8 moko 8308: amigaos*)
8309: case $host_cpu in
8310: powerpc)
8311: # see comment about AmigaOS4 .so support
8312: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313: archive_expsym_cmds=''
8314: ;;
8315: m68k)
8316: 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)'
8317: hardcode_libdir_flag_spec='-L$libdir'
8318: hardcode_minus_L=yes
8319: ;;
8320: esac
8321: ;;
1.1 misha 8322:
1.8 moko 8323: beos*)
8324: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8325: allow_undefined_flag=unsupported
8326: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8327: # support --undefined. This deserves some investigation. FIXME
8328: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329: else
8330: ld_shlibs=no
8331: fi
8332: ;;
1.1 misha 8333:
1.8 moko 8334: cygwin* | mingw* | pw32* | cegcc*)
8335: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8336: # as there is no search path for DLLs.
8337: hardcode_libdir_flag_spec='-L$libdir'
8338: export_dynamic_flag_spec='${wl}--export-all-symbols'
8339: allow_undefined_flag=unsupported
8340: always_export_symbols=no
8341: enable_shared_with_static_runtimes=yes
8342: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8343: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8344:
8345: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8346: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8347: # If the export-symbols file already is a .def file (1st line
8348: # is EXPORTS), use it as is; otherwise, prepend...
8349: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8350: cp $export_symbols $output_objdir/$soname.def;
8351: else
8352: echo EXPORTS > $output_objdir/$soname.def;
8353: cat $export_symbols >> $output_objdir/$soname.def;
8354: fi~
8355: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8356: else
8357: ld_shlibs=no
8358: fi
8359: ;;
1.1 misha 8360:
1.8 moko 8361: haiku*)
8362: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363: link_all_deplibs=yes
8364: ;;
1.1 misha 8365:
1.8 moko 8366: interix[3-9]*)
8367: hardcode_direct=no
8368: hardcode_shlibpath_var=no
8369: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8370: export_dynamic_flag_spec='${wl}-E'
8371: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8372: # Instead, shared libraries are loaded at an image base (0x10000000 by
8373: # default) and relocated if they conflict, which is a slow very memory
8374: # consuming and fragmenting process. To avoid this, we pick a random,
8375: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8376: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8377: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8378: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8379: ;;
1.1 misha 8380:
1.8 moko 8381: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8382: tmp_diet=no
8383: if test "$host_os" = linux-dietlibc; then
8384: case $cc_basename in
8385: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8386: esac
8387: fi
8388: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8389: && test "$tmp_diet" = no
8390: then
8391: tmp_addflag=' $pic_flag'
8392: tmp_sharedflag='-shared'
8393: case $cc_basename,$host_cpu in
8394: pgcc*) # Portland Group C compiler
8395: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8396: tmp_addflag=' $pic_flag'
8397: ;;
8398: pgf77* | pgf90* | pgf95* | pgfortran*)
8399: # Portland Group f77 and f90 compilers
8400: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8401: tmp_addflag=' $pic_flag -Mnomain' ;;
8402: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8403: tmp_addflag=' -i_dynamic' ;;
8404: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8405: tmp_addflag=' -i_dynamic -nofor_main' ;;
8406: ifc* | ifort*) # Intel Fortran compiler
8407: tmp_addflag=' -nofor_main' ;;
8408: lf95*) # Lahey Fortran 8.1
8409: whole_archive_flag_spec=
8410: tmp_sharedflag='--shared' ;;
8411: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8412: tmp_sharedflag='-qmkshrobj'
8413: tmp_addflag= ;;
8414: nvcc*) # Cuda Compiler Driver 2.2
8415: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8416: compiler_needs_object=yes
8417: ;;
8418: esac
8419: case `$CC -V 2>&1 | sed 5q` in
8420: *Sun\ C*) # Sun C 5.9
8421: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8422: compiler_needs_object=yes
8423: tmp_sharedflag='-G' ;;
8424: *Sun\ F*) # Sun Fortran 8.3
8425: tmp_sharedflag='-G' ;;
8426: esac
8427: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 8428:
1.8 moko 8429: if test "x$supports_anon_versioning" = xyes; then
8430: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8431: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8432: echo "local: *; };" >> $output_objdir/$libname.ver~
8433: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8434: fi
8435:
8436: case $cc_basename in
8437: xlf* | bgf* | bgxlf* | mpixlf*)
8438: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8439: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8440: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8441: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8442: if test "x$supports_anon_versioning" = xyes; then
8443: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8444: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8445: echo "local: *; };" >> $output_objdir/$libname.ver~
8446: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8447: fi
8448: ;;
8449: esac
8450: else
8451: ld_shlibs=no
8452: fi
8453: ;;
1.1 misha 8454:
1.8 moko 8455: netbsd*)
8456: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8457: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8458: wlarc=
8459: else
8460: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8462: fi
8463: ;;
1.1 misha 8464:
1.8 moko 8465: solaris*)
8466: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8467: ld_shlibs=no
8468: cat <<_LT_EOF 1>&2
1.1 misha 8469:
1.8 moko 8470: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8471: *** create shared libraries on Solaris systems. Therefore, libtool
8472: *** is disabling shared libraries support. We urge you to upgrade GNU
8473: *** binutils to release 2.9.1 or newer. Another option is to modify
8474: *** your PATH or compiler configuration so that the native linker is
8475: *** used, and then restart.
1.1 misha 8476:
1.8 moko 8477: _LT_EOF
8478: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8479: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8481: else
8482: ld_shlibs=no
8483: fi
8484: ;;
1.1 misha 8485:
1.8 moko 8486: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8487: case `$LD -v 2>&1` in
8488: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8489: ld_shlibs=no
8490: cat <<_LT_EOF 1>&2
1.1 misha 8491:
1.8 moko 8492: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8493: *** reliably create shared libraries on SCO systems. Therefore, libtool
8494: *** is disabling shared libraries support. We urge you to upgrade GNU
8495: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8496: *** your PATH or compiler configuration so that the native linker is
8497: *** used, and then restart.
1.1 misha 8498:
1.8 moko 8499: _LT_EOF
8500: ;;
8501: *)
8502: # For security reasons, it is highly recommended that you always
8503: # use absolute paths for naming shared libraries, and exclude the
8504: # DT_RUNPATH tag from executables and libraries. But doing so
8505: # requires that you compile everything twice, which is a pain.
8506: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8507: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8508: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8510: else
8511: ld_shlibs=no
8512: fi
8513: ;;
8514: esac
8515: ;;
1.1 misha 8516:
1.8 moko 8517: sunos4*)
8518: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8519: wlarc=
8520: hardcode_direct=yes
8521: hardcode_shlibpath_var=no
8522: ;;
1.1 misha 8523:
1.8 moko 8524: *)
8525: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8526: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8528: else
8529: ld_shlibs=no
8530: fi
8531: ;;
8532: esac
1.1 misha 8533:
1.8 moko 8534: if test "$ld_shlibs" = no; then
8535: runpath_var=
8536: hardcode_libdir_flag_spec=
8537: export_dynamic_flag_spec=
8538: whole_archive_flag_spec=
8539: fi
8540: else
8541: # PORTME fill in a description of your system's linker (not GNU ld)
8542: case $host_os in
8543: aix3*)
8544: allow_undefined_flag=unsupported
8545: always_export_symbols=yes
8546: 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'
8547: # Note: this linker hardcodes the directories in LIBPATH if there
8548: # are no directories specified by -L.
8549: hardcode_minus_L=yes
8550: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8551: # Neither direct hardcoding nor static linking is supported with a
8552: # broken collect2.
8553: hardcode_direct=unsupported
8554: fi
8555: ;;
1.1 misha 8556:
1.8 moko 8557: aix[4-9]*)
8558: if test "$host_cpu" = ia64; then
8559: # On IA64, the linker does run time linking by default, so we don't
8560: # have to do anything special.
8561: aix_use_runtimelinking=no
8562: exp_sym_flag='-Bexport'
8563: no_entry_flag=""
8564: else
8565: # If we're using GNU nm, then we don't want the "-C" option.
8566: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8567: # Also, AIX nm treats weak defined symbols like other global
8568: # defined symbols, whereas GNU nm marks them as "W".
8569: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8570: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8571: else
8572: 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'
8573: fi
8574: aix_use_runtimelinking=no
1.1 misha 8575:
1.8 moko 8576: # Test if we are trying to use run time linking or normal
8577: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8578: # need to do runtime linking.
8579: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8580: for ld_flag in $LDFLAGS; do
8581: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8582: aix_use_runtimelinking=yes
8583: break
8584: fi
8585: done
8586: ;;
8587: esac
1.1 misha 8588:
1.8 moko 8589: exp_sym_flag='-bexport'
8590: no_entry_flag='-bnoentry'
8591: fi
1.1 misha 8592:
1.8 moko 8593: # When large executables or shared objects are built, AIX ld can
8594: # have problems creating the table of contents. If linking a library
8595: # or program results in "error TOC overflow" add -mminimal-toc to
8596: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8597: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8598:
8599: archive_cmds=''
8600: hardcode_direct=yes
8601: hardcode_direct_absolute=yes
8602: hardcode_libdir_separator=':'
8603: link_all_deplibs=yes
8604: file_list_spec='${wl}-f,'
8605:
8606: if test "$GCC" = yes; then
8607: case $host_os in aix4.[012]|aix4.[012].*)
8608: # We only want to do this on AIX 4.2 and lower, the check
8609: # below for broken collect2 doesn't work under 4.3+
8610: collect2name=`${CC} -print-prog-name=collect2`
8611: if test -f "$collect2name" &&
8612: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8613: then
8614: # We have reworked collect2
8615: :
8616: else
8617: # We have old collect2
8618: hardcode_direct=unsupported
8619: # It fails to find uninstalled libraries when the uninstalled
8620: # path is not listed in the libpath. Setting hardcode_minus_L
8621: # to unsupported forces relinking
8622: hardcode_minus_L=yes
8623: hardcode_libdir_flag_spec='-L$libdir'
8624: hardcode_libdir_separator=
8625: fi
8626: ;;
8627: esac
8628: shared_flag='-shared'
8629: if test "$aix_use_runtimelinking" = yes; then
8630: shared_flag="$shared_flag "'${wl}-G'
8631: fi
8632: else
8633: # not using gcc
8634: if test "$host_cpu" = ia64; then
8635: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8636: # chokes on -Wl,-G. The following line is correct:
8637: shared_flag='-G'
8638: else
8639: if test "$aix_use_runtimelinking" = yes; then
8640: shared_flag='${wl}-G'
8641: else
8642: shared_flag='${wl}-bM:SRE'
8643: fi
8644: fi
8645: fi
1.1 misha 8646:
1.8 moko 8647: export_dynamic_flag_spec='${wl}-bexpall'
8648: # It seems that -bexpall does not export symbols beginning with
8649: # underscore (_), so it is better to generate a list of symbols to export.
8650: always_export_symbols=yes
8651: if test "$aix_use_runtimelinking" = yes; then
8652: # Warning - without using the other runtime loading flags (-brtl),
8653: # -berok will link without error, but may produce a broken library.
8654: allow_undefined_flag='-berok'
8655: # Determine the default libpath from the value encoded in an
8656: # empty executable.
8657: if test "${lt_cv_aix_libpath+set}" = set; then
8658: aix_libpath=$lt_cv_aix_libpath
8659: else
1.11 ! moko 8660: if test "${lt_cv_aix_libpath_+set}" = set; then
! 8661: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 8662: else
1.11 ! moko 8663: cat >conftest.$ac_ext <<_ACEOF
! 8664: /* confdefs.h. */
! 8665: _ACEOF
! 8666: cat confdefs.h >>conftest.$ac_ext
! 8667: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 8668: /* end confdefs.h. */
1.8 moko 8669:
8670: int
8671: main ()
8672: {
8673:
8674: ;
8675: return 0;
8676: }
1.1 misha 8677: _ACEOF
1.11 ! moko 8678: rm -f conftest.$ac_objext conftest$ac_exeext
! 8679: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8680: (eval $ac_link) 2>conftest.er1
! 8681: ac_status=$?
! 8682: grep -v '^ *+' conftest.er1 >conftest.err
! 8683: rm -f conftest.er1
! 8684: cat conftest.err >&5
! 8685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8686: (exit $ac_status); } &&
! 8687: { ac_try='test -z "$ac_c_werror_flag"
! 8688: || test ! -s conftest.err'
! 8689: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8690: (eval $ac_try) 2>&5
! 8691: ac_status=$?
! 8692: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8693: (exit $ac_status); }; } &&
! 8694: { ac_try='test -s conftest$ac_exeext'
! 8695: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8696: (eval $ac_try) 2>&5
! 8697: ac_status=$?
! 8698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8699: (exit $ac_status); }; }; then
1.8 moko 8700:
8701: lt_aix_libpath_sed='
8702: /Import File Strings/,/^$/ {
8703: /^0/ {
8704: s/^0 *\([^ ]*\) *$/\1/
8705: p
8706: }
8707: }'
8708: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8709: # Check for a 64-bit object if we didn't find anything.
8710: if test -z "$lt_cv_aix_libpath_"; then
8711: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8712: fi
1.11 ! moko 8713: else
! 8714: echo "$as_me: failed program was:" >&5
! 8715: sed 's/^/| /' conftest.$ac_ext >&5
! 8716:
1.1 misha 8717: fi
1.11 ! moko 8718: rm -f conftest.err conftest.$ac_objext \
! 8719: conftest$ac_exeext conftest.$ac_ext
1.8 moko 8720: if test -z "$lt_cv_aix_libpath_"; then
8721: lt_cv_aix_libpath_="/usr/lib:/lib"
8722: fi
8723:
8724: fi
8725:
8726: aix_libpath=$lt_cv_aix_libpath_
8727: fi
1.1 misha 8728:
1.8 moko 8729: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8730: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8731: else
8732: if test "$host_cpu" = ia64; then
8733: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8734: allow_undefined_flag="-z nodefs"
8735: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8736: else
8737: # Determine the default libpath from the value encoded in an
8738: # empty executable.
8739: if test "${lt_cv_aix_libpath+set}" = set; then
8740: aix_libpath=$lt_cv_aix_libpath
8741: else
1.11 ! moko 8742: if test "${lt_cv_aix_libpath_+set}" = set; then
! 8743: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8744: else
1.11 ! moko 8745: cat >conftest.$ac_ext <<_ACEOF
! 8746: /* confdefs.h. */
! 8747: _ACEOF
! 8748: cat confdefs.h >>conftest.$ac_ext
! 8749: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 8750: /* end confdefs.h. */
1.8 moko 8751:
8752: int
8753: main ()
8754: {
8755:
8756: ;
8757: return 0;
8758: }
1.1 misha 8759: _ACEOF
1.11 ! moko 8760: rm -f conftest.$ac_objext conftest$ac_exeext
! 8761: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8762: (eval $ac_link) 2>conftest.er1
! 8763: ac_status=$?
! 8764: grep -v '^ *+' conftest.er1 >conftest.err
! 8765: rm -f conftest.er1
! 8766: cat conftest.err >&5
! 8767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8768: (exit $ac_status); } &&
! 8769: { ac_try='test -z "$ac_c_werror_flag"
! 8770: || test ! -s conftest.err'
! 8771: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8772: (eval $ac_try) 2>&5
! 8773: ac_status=$?
! 8774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8775: (exit $ac_status); }; } &&
! 8776: { ac_try='test -s conftest$ac_exeext'
! 8777: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8778: (eval $ac_try) 2>&5
! 8779: ac_status=$?
! 8780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8781: (exit $ac_status); }; }; then
1.8 moko 8782:
8783: lt_aix_libpath_sed='
8784: /Import File Strings/,/^$/ {
8785: /^0/ {
8786: s/^0 *\([^ ]*\) *$/\1/
8787: p
8788: }
8789: }'
8790: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8791: # Check for a 64-bit object if we didn't find anything.
8792: if test -z "$lt_cv_aix_libpath_"; then
8793: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 8794: fi
1.11 ! moko 8795: else
! 8796: echo "$as_me: failed program was:" >&5
! 8797: sed 's/^/| /' conftest.$ac_ext >&5
! 8798:
1.1 misha 8799: fi
1.11 ! moko 8800: rm -f conftest.err conftest.$ac_objext \
! 8801: conftest$ac_exeext conftest.$ac_ext
1.8 moko 8802: if test -z "$lt_cv_aix_libpath_"; then
8803: lt_cv_aix_libpath_="/usr/lib:/lib"
8804: fi
8805:
8806: fi
8807:
8808: aix_libpath=$lt_cv_aix_libpath_
8809: fi
8810:
8811: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8812: # Warning - without using the other run time loading flags,
8813: # -berok will link without error, but may produce a broken library.
8814: no_undefined_flag=' ${wl}-bernotok'
8815: allow_undefined_flag=' ${wl}-berok'
8816: if test "$with_gnu_ld" = yes; then
8817: # We only use this code for GNU lds that support --whole-archive.
8818: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8819: else
8820: # Exported symbols can be pulled into shared objects from archives
8821: whole_archive_flag_spec='$convenience'
8822: fi
8823: archive_cmds_need_lc=yes
8824: # This is similar to how AIX traditionally builds its shared libraries.
8825: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8826: fi
8827: fi
8828: ;;
8829:
8830: amigaos*)
8831: case $host_cpu in
8832: powerpc)
8833: # see comment about AmigaOS4 .so support
8834: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835: archive_expsym_cmds=''
8836: ;;
8837: m68k)
8838: 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)'
8839: hardcode_libdir_flag_spec='-L$libdir'
8840: hardcode_minus_L=yes
8841: ;;
8842: esac
8843: ;;
8844:
8845: bsdi[45]*)
8846: export_dynamic_flag_spec=-rdynamic
8847: ;;
8848:
8849: cygwin* | mingw* | pw32* | cegcc*)
8850: # When not using gcc, we currently assume that we are using
8851: # Microsoft Visual C++.
8852: # hardcode_libdir_flag_spec is actually meaningless, as there is
8853: # no search path for DLLs.
8854: case $cc_basename in
8855: cl*)
8856: # Native MSVC
8857: hardcode_libdir_flag_spec=' '
8858: allow_undefined_flag=unsupported
8859: always_export_symbols=yes
8860: file_list_spec='@'
8861: # Tell ltmain to make .lib files, not .a files.
8862: libext=lib
8863: # Tell ltmain to make .dll files, not .so files.
8864: shrext_cmds=".dll"
8865: # FIXME: Setting linknames here is a bad hack.
8866: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8867: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8868: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8869: else
8870: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8871: fi~
8872: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8873: linknames='
8874: # The linker will not automatically build a static lib if we build a DLL.
8875: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8876: enable_shared_with_static_runtimes=yes
8877: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8878: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8879: # Don't use ranlib
8880: old_postinstall_cmds='chmod 644 $oldlib'
8881: postlink_cmds='lt_outputfile="@OUTPUT@"~
8882: lt_tool_outputfile="@TOOL_OUTPUT@"~
8883: case $lt_outputfile in
8884: *.exe|*.EXE) ;;
8885: *)
8886: lt_outputfile="$lt_outputfile.exe"
8887: lt_tool_outputfile="$lt_tool_outputfile.exe"
8888: ;;
8889: esac~
8890: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8891: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8892: $RM "$lt_outputfile.manifest";
8893: fi'
8894: ;;
8895: *)
8896: # Assume MSVC wrapper
8897: hardcode_libdir_flag_spec=' '
8898: allow_undefined_flag=unsupported
8899: # Tell ltmain to make .lib files, not .a files.
8900: libext=lib
8901: # Tell ltmain to make .dll files, not .so files.
8902: shrext_cmds=".dll"
8903: # FIXME: Setting linknames here is a bad hack.
8904: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8905: # The linker will automatically build a .lib file if we build a DLL.
8906: old_archive_from_new_cmds='true'
8907: # FIXME: Should let the user specify the lib program.
8908: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8909: enable_shared_with_static_runtimes=yes
8910: ;;
8911: esac
8912: ;;
8913:
8914: darwin* | rhapsody*)
8915:
8916:
8917: archive_cmds_need_lc=no
8918: hardcode_direct=no
8919: hardcode_automatic=yes
8920: hardcode_shlibpath_var=unsupported
8921: if test "$lt_cv_ld_force_load" = "yes"; then
8922: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8923:
8924: else
8925: whole_archive_flag_spec=''
8926: fi
8927: link_all_deplibs=yes
8928: allow_undefined_flag="$_lt_dar_allow_undefined"
8929: case $cc_basename in
8930: ifort*) _lt_dar_can_shared=yes ;;
8931: *) _lt_dar_can_shared=$GCC ;;
8932: esac
8933: if test "$_lt_dar_can_shared" = "yes"; then
8934: output_verbose_link_cmd=func_echo_all
8935: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8936: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8937: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8938: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8939:
8940: else
8941: ld_shlibs=no
8942: fi
8943:
8944: ;;
8945:
8946: dgux*)
8947: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948: hardcode_libdir_flag_spec='-L$libdir'
8949: hardcode_shlibpath_var=no
8950: ;;
8951:
8952: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8953: # support. Future versions do this automatically, but an explicit c++rt0.o
8954: # does not break anything, and helps significantly (at the cost of a little
8955: # extra space).
8956: freebsd2.2*)
8957: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8958: hardcode_libdir_flag_spec='-R$libdir'
8959: hardcode_direct=yes
8960: hardcode_shlibpath_var=no
8961: ;;
8962:
8963: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8964: freebsd2.*)
8965: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8966: hardcode_direct=yes
8967: hardcode_minus_L=yes
8968: hardcode_shlibpath_var=no
8969: ;;
8970:
8971: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8972: freebsd* | dragonfly*)
8973: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8974: hardcode_libdir_flag_spec='-R$libdir'
8975: hardcode_direct=yes
8976: hardcode_shlibpath_var=no
8977: ;;
8978:
8979: hpux9*)
8980: if test "$GCC" = yes; then
8981: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8982: else
8983: 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'
8984: fi
8985: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8986: hardcode_libdir_separator=:
8987: hardcode_direct=yes
8988:
8989: # hardcode_minus_L: Not really in the search PATH,
8990: # but as the default location of the library.
8991: hardcode_minus_L=yes
8992: export_dynamic_flag_spec='${wl}-E'
8993: ;;
8994:
8995: hpux10*)
8996: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8997: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8998: else
8999: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9000: fi
9001: if test "$with_gnu_ld" = no; then
9002: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9003: hardcode_libdir_separator=:
9004: hardcode_direct=yes
9005: hardcode_direct_absolute=yes
9006: export_dynamic_flag_spec='${wl}-E'
9007: # hardcode_minus_L: Not really in the search PATH,
9008: # but as the default location of the library.
9009: hardcode_minus_L=yes
9010: fi
9011: ;;
9012:
9013: hpux11*)
9014: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9015: case $host_cpu in
9016: hppa*64*)
9017: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018: ;;
9019: ia64*)
9020: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9021: ;;
9022: *)
9023: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9024: ;;
9025: esac
9026: else
9027: case $host_cpu in
9028: hppa*64*)
9029: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9030: ;;
9031: ia64*)
9032: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9033: ;;
9034: *)
1.1 misha 9035:
1.8 moko 9036: # Older versions of the 11.00 compiler do not understand -b yet
9037: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.11 ! moko 9038: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
! 9039: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
! 9040: if test "${lt_cv_prog_compiler__b+set}" = set; then
! 9041: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9042: else
1.8 moko 9043: lt_cv_prog_compiler__b=no
9044: save_LDFLAGS="$LDFLAGS"
9045: LDFLAGS="$LDFLAGS -b"
9046: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9047: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9048: # The linker can only warn and ignore the option if not recognized
9049: # So say no if there are warnings
9050: if test -s conftest.err; then
9051: # Append any errors to the config.log.
9052: cat conftest.err 1>&5
9053: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9054: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9055: if diff conftest.exp conftest.er2 >/dev/null; then
9056: lt_cv_prog_compiler__b=yes
9057: fi
9058: else
9059: lt_cv_prog_compiler__b=yes
9060: fi
9061: fi
9062: $RM -r conftest*
9063: LDFLAGS="$save_LDFLAGS"
1.1 misha 9064:
9065: fi
1.11 ! moko 9066: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
! 9067: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 misha 9068:
1.8 moko 9069: if test x"$lt_cv_prog_compiler__b" = xyes; then
9070: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9071: else
9072: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 9073: fi
9074:
1.8 moko 9075: ;;
9076: esac
9077: fi
9078: if test "$with_gnu_ld" = no; then
9079: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9080: hardcode_libdir_separator=:
9081:
9082: case $host_cpu in
9083: hppa*64*|ia64*)
9084: hardcode_direct=no
9085: hardcode_shlibpath_var=no
9086: ;;
9087: *)
9088: hardcode_direct=yes
9089: hardcode_direct_absolute=yes
9090: export_dynamic_flag_spec='${wl}-E'
1.1 misha 9091:
1.8 moko 9092: # hardcode_minus_L: Not really in the search PATH,
9093: # but as the default location of the library.
9094: hardcode_minus_L=yes
9095: ;;
9096: esac
9097: fi
9098: ;;
1.1 misha 9099:
1.8 moko 9100: irix5* | irix6* | nonstopux*)
9101: if test "$GCC" = yes; then
9102: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9103: # Try to use the -exported_symbol ld option, if it does not
9104: # work, assume that -exports_file does not work either and
9105: # implicitly export all symbols.
9106: # This should be the same for all languages, so no per-tag cache variable.
1.11 ! moko 9107: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
! 9108: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
! 9109: if test "${lt_cv_irix_exported_symbol+set}" = set; then
! 9110: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9111: else
1.8 moko 9112: save_LDFLAGS="$LDFLAGS"
9113: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.11 ! moko 9114: cat >conftest.$ac_ext <<_ACEOF
! 9115: /* confdefs.h. */
! 9116: _ACEOF
! 9117: cat confdefs.h >>conftest.$ac_ext
! 9118: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9119: /* end confdefs.h. */
1.8 moko 9120: int foo (void) { return 0; }
1.1 misha 9121: _ACEOF
1.11 ! moko 9122: rm -f conftest.$ac_objext conftest$ac_exeext
! 9123: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9124: (eval $ac_link) 2>conftest.er1
! 9125: ac_status=$?
! 9126: grep -v '^ *+' conftest.er1 >conftest.err
! 9127: rm -f conftest.er1
! 9128: cat conftest.err >&5
! 9129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9130: (exit $ac_status); } &&
! 9131: { ac_try='test -z "$ac_c_werror_flag"
! 9132: || test ! -s conftest.err'
! 9133: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9134: (eval $ac_try) 2>&5
! 9135: ac_status=$?
! 9136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9137: (exit $ac_status); }; } &&
! 9138: { ac_try='test -s conftest$ac_exeext'
! 9139: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9140: (eval $ac_try) 2>&5
! 9141: ac_status=$?
! 9142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9143: (exit $ac_status); }; }; then
1.8 moko 9144: lt_cv_irix_exported_symbol=yes
1.1 misha 9145: else
1.11 ! moko 9146: echo "$as_me: failed program was:" >&5
! 9147: sed 's/^/| /' conftest.$ac_ext >&5
! 9148:
! 9149: lt_cv_irix_exported_symbol=no
1.1 misha 9150: fi
1.11 ! moko 9151: rm -f conftest.err conftest.$ac_objext \
! 9152: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9153: LDFLAGS="$save_LDFLAGS"
1.1 misha 9154: fi
1.11 ! moko 9155: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
! 9156: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
1.8 moko 9157: if test "$lt_cv_irix_exported_symbol" = yes; then
9158: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9159: fi
9160: else
9161: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9162: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9163: fi
9164: archive_cmds_need_lc='no'
9165: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9166: hardcode_libdir_separator=:
9167: inherit_rpath=yes
9168: link_all_deplibs=yes
9169: ;;
1.1 misha 9170:
1.8 moko 9171: netbsd*)
9172: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9173: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9174: else
9175: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9176: fi
9177: hardcode_libdir_flag_spec='-R$libdir'
9178: hardcode_direct=yes
9179: hardcode_shlibpath_var=no
9180: ;;
1.1 misha 9181:
1.8 moko 9182: newsos6)
9183: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184: hardcode_direct=yes
9185: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186: hardcode_libdir_separator=:
9187: hardcode_shlibpath_var=no
9188: ;;
1.1 misha 9189:
1.8 moko 9190: *nto* | *qnx*)
9191: ;;
1.1 misha 9192:
1.8 moko 9193: openbsd*)
9194: if test -f /usr/libexec/ld.so; then
9195: hardcode_direct=yes
9196: hardcode_shlibpath_var=no
9197: hardcode_direct_absolute=yes
9198: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9199: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9201: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202: export_dynamic_flag_spec='${wl}-E'
9203: else
9204: case $host_os in
9205: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9206: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9207: hardcode_libdir_flag_spec='-R$libdir'
9208: ;;
9209: *)
9210: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9211: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9212: ;;
9213: esac
9214: fi
9215: else
9216: ld_shlibs=no
9217: fi
9218: ;;
1.1 misha 9219:
1.8 moko 9220: os2*)
9221: hardcode_libdir_flag_spec='-L$libdir'
9222: hardcode_minus_L=yes
9223: allow_undefined_flag=unsupported
9224: 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'
9225: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9226: ;;
1.1 misha 9227:
1.8 moko 9228: osf3*)
9229: if test "$GCC" = yes; then
9230: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9231: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9232: else
9233: allow_undefined_flag=' -expect_unresolved \*'
9234: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9235: fi
9236: archive_cmds_need_lc='no'
9237: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238: hardcode_libdir_separator=:
9239: ;;
1.1 misha 9240:
1.8 moko 9241: osf4* | osf5*) # as osf3* with the addition of -msym flag
9242: if test "$GCC" = yes; then
9243: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9244: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9245: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246: else
9247: allow_undefined_flag=' -expect_unresolved \*'
9248: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9249: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9250: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9251:
9252: # Both c and cxx compiler support -rpath directly
9253: hardcode_libdir_flag_spec='-rpath $libdir'
9254: fi
9255: archive_cmds_need_lc='no'
9256: hardcode_libdir_separator=:
9257: ;;
9258:
9259: solaris*)
9260: no_undefined_flag=' -z defs'
9261: if test "$GCC" = yes; then
9262: wlarc='${wl}'
9263: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9265: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9266: else
9267: case `$CC -V 2>&1` in
9268: *"Compilers 5.0"*)
9269: wlarc=''
9270: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9272: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9273: ;;
9274: *)
9275: wlarc='${wl}'
9276: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9277: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9278: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9279: ;;
9280: esac
9281: fi
9282: hardcode_libdir_flag_spec='-R$libdir'
9283: hardcode_shlibpath_var=no
9284: case $host_os in
9285: solaris2.[0-5] | solaris2.[0-5].*) ;;
9286: *)
9287: # The compiler driver will combine and reorder linker options,
9288: # but understands `-z linker_flag'. GCC discards it without `$wl',
9289: # but is careful enough not to reorder.
9290: # Supported since Solaris 2.6 (maybe 2.5.1?)
9291: if test "$GCC" = yes; then
9292: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9293: else
9294: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9295: fi
9296: ;;
9297: esac
9298: link_all_deplibs=yes
9299: ;;
9300:
9301: sunos4*)
9302: if test "x$host_vendor" = xsequent; then
9303: # Use $CC to link under sequent, because it throws in some extra .o
9304: # files that make .init and .fini sections work.
9305: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9306: else
9307: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9308: fi
9309: hardcode_libdir_flag_spec='-L$libdir'
9310: hardcode_direct=yes
9311: hardcode_minus_L=yes
9312: hardcode_shlibpath_var=no
9313: ;;
9314:
9315: sysv4)
9316: case $host_vendor in
9317: sni)
9318: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319: hardcode_direct=yes # is this really true???
9320: ;;
9321: siemens)
9322: ## LD is ld it makes a PLAMLIB
9323: ## CC just makes a GrossModule.
9324: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9325: reload_cmds='$CC -r -o $output$reload_objs'
9326: hardcode_direct=no
9327: ;;
9328: motorola)
9329: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9331: ;;
9332: esac
9333: runpath_var='LD_RUN_PATH'
9334: hardcode_shlibpath_var=no
9335: ;;
9336:
9337: sysv4.3*)
9338: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339: hardcode_shlibpath_var=no
9340: export_dynamic_flag_spec='-Bexport'
9341: ;;
9342:
9343: sysv4*MP*)
9344: if test -d /usr/nec; then
9345: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346: hardcode_shlibpath_var=no
9347: runpath_var=LD_RUN_PATH
9348: hardcode_runpath_var=yes
9349: ld_shlibs=yes
9350: fi
9351: ;;
9352:
9353: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9354: no_undefined_flag='${wl}-z,text'
9355: archive_cmds_need_lc=no
9356: hardcode_shlibpath_var=no
9357: runpath_var='LD_RUN_PATH'
9358:
9359: if test "$GCC" = yes; then
9360: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9361: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9362: else
9363: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365: fi
9366: ;;
9367:
9368: sysv5* | sco3.2v5* | sco5v6*)
9369: # Note: We can NOT use -z defs as we might desire, because we do not
9370: # link with -lc, and that would cause any symbols used from libc to
9371: # always be unresolved, which means just about no library would
9372: # ever link correctly. If we're not using GNU ld we use -z text
9373: # though, which does catch some bad symbols but isn't as heavy-handed
9374: # as -z defs.
9375: no_undefined_flag='${wl}-z,text'
9376: allow_undefined_flag='${wl}-z,nodefs'
9377: archive_cmds_need_lc=no
9378: hardcode_shlibpath_var=no
9379: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9380: hardcode_libdir_separator=':'
9381: link_all_deplibs=yes
9382: export_dynamic_flag_spec='${wl}-Bexport'
9383: runpath_var='LD_RUN_PATH'
9384:
9385: if test "$GCC" = yes; then
9386: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9388: else
9389: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391: fi
9392: ;;
1.1 misha 9393:
1.8 moko 9394: uts4*)
9395: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396: hardcode_libdir_flag_spec='-L$libdir'
9397: hardcode_shlibpath_var=no
1.1 misha 9398: ;;
1.8 moko 9399:
1.1 misha 9400: *)
1.8 moko 9401: ld_shlibs=no
1.1 misha 9402: ;;
1.8 moko 9403: esac
9404:
9405: if test x$host_vendor = xsni; then
9406: case $host in
9407: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9408: export_dynamic_flag_spec='${wl}-Blargedynsym'
9409: ;;
9410: esac
9411: fi
1.1 misha 9412: fi
9413:
1.11 ! moko 9414: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 9415: echo "${ECHO_T}$ld_shlibs" >&6
1.8 moko 9416: test "$ld_shlibs" = no && can_build_shared=no
9417:
9418: with_gnu_ld=$with_gnu_ld
1.1 misha 9419:
9420:
9421:
9422:
9423:
9424:
9425:
9426:
9427:
9428:
9429:
9430:
9431:
9432:
9433:
1.8 moko 9434: #
9435: # Do we need to explicitly link libc?
9436: #
9437: case "x$archive_cmds_need_lc" in
9438: x|xyes)
9439: # Assume -lc should be added
9440: archive_cmds_need_lc=yes
9441:
9442: if test "$enable_shared" = yes && test "$GCC" = yes; then
9443: case $archive_cmds in
9444: *'~'*)
9445: # FIXME: we may have to deal with multi-command sequences.
9446: ;;
9447: '$CC '*)
9448: # Test whether the compiler implicitly links with -lc since on some
9449: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9450: # to ld, don't add -lc before -lgcc.
1.11 ! moko 9451: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 9452: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 9453: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
! 9454: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9455: else
1.8 moko 9456: $RM conftest*
9457: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9458:
1.11 ! moko 9459: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 9460: (eval $ac_compile) 2>&5
9461: ac_status=$?
1.11 ! moko 9462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9463: (exit $ac_status); } 2>conftest.err; then
1.8 moko 9464: soname=conftest
9465: lib=conftest
9466: libobjs=conftest.$ac_objext
9467: deplibs=
9468: wl=$lt_prog_compiler_wl
9469: pic_flag=$lt_prog_compiler_pic
9470: compiler_flags=-v
9471: linker_flags=-v
9472: verstring=
9473: output_objdir=.
9474: libname=conftest
9475: lt_save_allow_undefined_flag=$allow_undefined_flag
9476: allow_undefined_flag=
1.11 ! moko 9477: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 9478: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9479: ac_status=$?
1.11 ! moko 9480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9481: (exit $ac_status); }
1.8 moko 9482: then
9483: lt_cv_archive_cmds_need_lc=no
9484: else
9485: lt_cv_archive_cmds_need_lc=yes
9486: fi
9487: allow_undefined_flag=$lt_save_allow_undefined_flag
9488: else
9489: cat conftest.err 1>&5
9490: fi
9491: $RM conftest*
9492:
1.1 misha 9493: fi
1.11 ! moko 9494: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
! 9495: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
1.8 moko 9496: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9497: ;;
9498: esac
9499: fi
9500: ;;
9501: esac
9502:
9503:
9504:
9505:
9506:
9507:
9508:
9509:
9510:
9511:
9512:
9513:
9514:
9515:
9516:
9517:
9518:
9519:
9520:
9521:
9522:
9523:
9524:
9525:
9526:
9527:
9528:
9529:
9530:
9531:
9532:
9533:
9534:
9535:
9536:
9537:
9538:
9539:
9540:
9541:
9542:
9543:
9544:
9545:
9546:
9547:
9548:
9549:
9550:
9551:
9552:
9553:
9554:
9555:
9556:
9557:
9558:
9559:
9560:
9561:
9562:
1.1 misha 9563:
9564:
9565:
9566:
9567:
9568:
9569:
9570:
9571:
9572:
9573:
9574:
9575:
9576:
9577:
9578:
9579:
9580:
9581:
9582:
9583:
9584:
9585:
9586:
9587:
9588:
9589:
9590:
9591:
9592:
9593:
9594:
9595:
9596:
9597:
9598:
9599:
9600:
9601:
9602:
9603:
9604:
9605:
9606:
9607:
9608:
9609:
9610:
9611:
9612:
9613:
9614:
9615:
9616:
9617:
9618:
9619:
9620:
9621:
9622:
9623:
9624:
9625:
9626:
9627:
9628:
9629:
9630:
9631:
9632:
9633:
9634:
9635:
9636:
9637:
9638:
9639:
9640:
9641:
9642:
9643:
9644:
9645:
9646:
9647:
9648:
9649:
9650:
9651:
9652:
9653:
1.11 ! moko 9654: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 9655: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.1 misha 9656:
1.8 moko 9657: if test "$GCC" = yes; then
9658: case $host_os in
9659: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9660: *) lt_awk_arg="/^libraries:/" ;;
9661: esac
9662: case $host_os in
9663: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9664: *) lt_sed_strip_eq="s,=/,/,g" ;;
9665: esac
9666: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9667: case $lt_search_path_spec in
9668: *\;*)
9669: # if the path contains ";" then we assume it to be the separator
9670: # otherwise default to the standard path separator (i.e. ":") - it is
9671: # assumed that no part of a normal pathname contains ";" but that should
9672: # okay in the real world where ";" in dirpaths is itself problematic.
9673: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9674: ;;
9675: *)
9676: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9677: ;;
9678: esac
9679: # Ok, now we have the path, separated by spaces, we can step through it
9680: # and add multilib dir if necessary.
9681: lt_tmp_lt_search_path_spec=
9682: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9683: for lt_sys_path in $lt_search_path_spec; do
9684: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9685: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9686: else
9687: test -d "$lt_sys_path" && \
9688: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9689: fi
9690: done
9691: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9692: BEGIN {RS=" "; FS="/|\n";} {
9693: lt_foo="";
9694: lt_count=0;
9695: for (lt_i = NF; lt_i > 0; lt_i--) {
9696: if ($lt_i != "" && $lt_i != ".") {
9697: if ($lt_i == "..") {
9698: lt_count++;
9699: } else {
9700: if (lt_count == 0) {
9701: lt_foo="/" $lt_i lt_foo;
9702: } else {
9703: lt_count--;
9704: }
9705: }
9706: }
9707: }
9708: if (lt_foo != "") { lt_freq[lt_foo]++; }
9709: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9710: }'`
9711: # AWK program above erroneously prepends '/' to C:/dos/paths
9712: # for these hosts.
9713: case $host_os in
9714: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9715: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9716: esac
9717: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 9718: else
1.8 moko 9719: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 9720: fi
1.8 moko 9721: library_names_spec=
9722: libname_spec='lib$name'
9723: soname_spec=
9724: shrext_cmds=".so"
9725: postinstall_cmds=
9726: postuninstall_cmds=
9727: finish_cmds=
9728: finish_eval=
9729: shlibpath_var=
9730: shlibpath_overrides_runpath=unknown
9731: version_type=none
9732: dynamic_linker="$host_os ld.so"
9733: sys_lib_dlsearch_path_spec="/lib /usr/lib"
9734: need_lib_prefix=unknown
9735: hardcode_into_libs=no
9736:
9737: # when you set need_version to no, make sure it does not cause -set_version
9738: # flags to be left without arguments
9739: need_version=unknown
9740:
9741: case $host_os in
9742: aix3*)
9743: version_type=linux # correct to gnu/linux during the next big refactor
9744: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9745: shlibpath_var=LIBPATH
9746:
9747: # AIX 3 has no versioning support, so we append a major version to the name.
9748: soname_spec='${libname}${release}${shared_ext}$major'
9749: ;;
1.1 misha 9750:
1.8 moko 9751: aix[4-9]*)
9752: version_type=linux # correct to gnu/linux during the next big refactor
9753: need_lib_prefix=no
9754: need_version=no
9755: hardcode_into_libs=yes
9756: if test "$host_cpu" = ia64; then
9757: # AIX 5 supports IA64
9758: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9759: shlibpath_var=LD_LIBRARY_PATH
9760: else
9761: # With GCC up to 2.95.x, collect2 would create an import file
9762: # for dependence libraries. The import file would start with
9763: # the line `#! .'. This would cause the generated library to
9764: # depend on `.', always an invalid library. This was fixed in
9765: # development snapshots of GCC prior to 3.0.
9766: case $host_os in
9767: aix4 | aix4.[01] | aix4.[01].*)
9768: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9769: echo ' yes '
9770: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9771: :
9772: else
9773: can_build_shared=no
9774: fi
9775: ;;
9776: esac
9777: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9778: # soname into executable. Probably we can add versioning support to
9779: # collect2, so additional links can be useful in future.
9780: if test "$aix_use_runtimelinking" = yes; then
9781: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9782: # instead of lib<name>.a to let people know that these are not
9783: # typical AIX shared libraries.
9784: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 9785: else
1.8 moko 9786: # We preserve .a as extension for shared libraries through AIX4.2
9787: # and later when we are not doing run time linking.
9788: library_names_spec='${libname}${release}.a $libname.a'
9789: soname_spec='${libname}${release}${shared_ext}$major'
9790: fi
9791: shlibpath_var=LIBPATH
9792: fi
9793: ;;
9794:
9795: amigaos*)
9796: case $host_cpu in
9797: powerpc)
9798: # Since July 2007 AmigaOS4 officially supports .so libraries.
9799: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9800: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801: ;;
9802: m68k)
9803: library_names_spec='$libname.ixlibrary $libname.a'
9804: # Create ${libname}_ixlibrary.a entries in /sys/libs.
9805: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9806: ;;
9807: esac
9808: ;;
9809:
9810: beos*)
9811: library_names_spec='${libname}${shared_ext}'
9812: dynamic_linker="$host_os ld.so"
9813: shlibpath_var=LIBRARY_PATH
9814: ;;
9815:
9816: bsdi[45]*)
9817: version_type=linux # correct to gnu/linux during the next big refactor
9818: need_version=no
9819: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820: soname_spec='${libname}${release}${shared_ext}$major'
9821: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9822: shlibpath_var=LD_LIBRARY_PATH
9823: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9824: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9825: # the default ld.so.conf also contains /usr/contrib/lib and
9826: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9827: # libtool to hard-code these into programs
9828: ;;
9829:
9830: cygwin* | mingw* | pw32* | cegcc*)
9831: version_type=windows
9832: shrext_cmds=".dll"
9833: need_version=no
9834: need_lib_prefix=no
9835:
9836: case $GCC,$cc_basename in
9837: yes,*)
9838: # gcc
9839: library_names_spec='$libname.dll.a'
9840: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9841: postinstall_cmds='base_file=`basename \${file}`~
9842: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9843: dldir=$destdir/`dirname \$dlpath`~
9844: test -d \$dldir || mkdir -p \$dldir~
9845: $install_prog $dir/$dlname \$dldir/$dlname~
9846: chmod a+x \$dldir/$dlname~
9847: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9848: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9849: fi'
9850: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9851: dlpath=$dir/\$dldll~
9852: $RM \$dlpath'
9853: shlibpath_overrides_runpath=yes
9854:
9855: case $host_os in
9856: cygwin*)
9857: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9858: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9859:
9860: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9861: ;;
9862: mingw* | cegcc*)
9863: # MinGW DLLs use traditional 'lib' prefix
9864: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865: ;;
9866: pw32*)
9867: # pw32 DLLs use 'pw' prefix rather than 'lib'
9868: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869: ;;
9870: esac
9871: dynamic_linker='Win32 ld.exe'
9872: ;;
9873:
9874: *,cl*)
9875: # Native MSVC
9876: libname_spec='$name'
9877: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9878: library_names_spec='${libname}.dll.lib'
9879:
9880: case $build_os in
9881: mingw*)
9882: sys_lib_search_path_spec=
9883: lt_save_ifs=$IFS
9884: IFS=';'
9885: for lt_path in $LIB
9886: do
9887: IFS=$lt_save_ifs
9888: # Let DOS variable expansion print the short 8.3 style file name.
9889: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9890: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9891: done
9892: IFS=$lt_save_ifs
9893: # Convert to MSYS style.
9894: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9895: ;;
9896: cygwin*)
9897: # Convert to unix form, then to dos form, then back to unix form
9898: # but this time dos style (no spaces!) so that the unix form looks
9899: # like /cygdrive/c/PROGRA~1:/cygdr...
9900: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9901: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9902: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9903: ;;
9904: *)
9905: sys_lib_search_path_spec="$LIB"
9906: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9907: # It is most probably a Windows format PATH.
9908: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9909: else
9910: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9911: fi
9912: # FIXME: find the short name or the path components, as spaces are
9913: # common. (e.g. "Program Files" -> "PROGRA~1")
9914: ;;
9915: esac
9916:
9917: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9918: postinstall_cmds='base_file=`basename \${file}`~
9919: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9920: dldir=$destdir/`dirname \$dlpath`~
9921: test -d \$dldir || mkdir -p \$dldir~
9922: $install_prog $dir/$dlname \$dldir/$dlname'
9923: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9924: dlpath=$dir/\$dldll~
9925: $RM \$dlpath'
9926: shlibpath_overrides_runpath=yes
9927: dynamic_linker='Win32 link.exe'
9928: ;;
9929:
9930: *)
9931: # Assume MSVC wrapper
9932: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9933: dynamic_linker='Win32 ld.exe'
9934: ;;
9935: esac
9936: # FIXME: first we should search . and the directory the executable is in
9937: shlibpath_var=PATH
9938: ;;
9939:
9940: darwin* | rhapsody*)
9941: dynamic_linker="$host_os dyld"
9942: version_type=darwin
9943: need_lib_prefix=no
9944: need_version=no
9945: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9946: soname_spec='${libname}${release}${major}$shared_ext'
9947: shlibpath_overrides_runpath=yes
9948: shlibpath_var=DYLD_LIBRARY_PATH
9949: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 9950:
1.8 moko 9951: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9952: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9953: ;;
1.1 misha 9954:
1.8 moko 9955: dgux*)
9956: version_type=linux # correct to gnu/linux during the next big refactor
9957: need_lib_prefix=no
9958: need_version=no
9959: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9960: soname_spec='${libname}${release}${shared_ext}$major'
9961: shlibpath_var=LD_LIBRARY_PATH
9962: ;;
1.1 misha 9963:
1.8 moko 9964: freebsd* | dragonfly*)
9965: # DragonFly does not have aout. When/if they implement a new
9966: # versioning mechanism, adjust this.
9967: if test -x /usr/bin/objformat; then
9968: objformat=`/usr/bin/objformat`
1.1 misha 9969: else
1.8 moko 9970: case $host_os in
9971: freebsd[23].*) objformat=aout ;;
9972: *) objformat=elf ;;
9973: esac
1.1 misha 9974: fi
1.8 moko 9975: version_type=freebsd-$objformat
9976: case $version_type in
9977: freebsd-elf*)
9978: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9979: need_version=no
9980: need_lib_prefix=no
9981: ;;
9982: freebsd-*)
9983: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9984: need_version=yes
9985: ;;
9986: esac
9987: shlibpath_var=LD_LIBRARY_PATH
9988: case $host_os in
9989: freebsd2.*)
9990: shlibpath_overrides_runpath=yes
9991: ;;
9992: freebsd3.[01]* | freebsdelf3.[01]*)
9993: shlibpath_overrides_runpath=yes
9994: hardcode_into_libs=yes
9995: ;;
9996: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9997: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9998: shlibpath_overrides_runpath=no
9999: hardcode_into_libs=yes
10000: ;;
10001: *) # from 4.6 on, and DragonFly
10002: shlibpath_overrides_runpath=yes
10003: hardcode_into_libs=yes
10004: ;;
10005: esac
10006: ;;
10007:
10008: gnu*)
10009: version_type=linux # correct to gnu/linux during the next big refactor
10010: need_lib_prefix=no
10011: need_version=no
10012: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10013: soname_spec='${libname}${release}${shared_ext}$major'
10014: shlibpath_var=LD_LIBRARY_PATH
10015: shlibpath_overrides_runpath=no
10016: hardcode_into_libs=yes
10017: ;;
10018:
10019: haiku*)
10020: version_type=linux # correct to gnu/linux during the next big refactor
10021: need_lib_prefix=no
10022: need_version=no
10023: dynamic_linker="$host_os runtime_loader"
10024: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10025: soname_spec='${libname}${release}${shared_ext}$major'
10026: shlibpath_var=LIBRARY_PATH
10027: shlibpath_overrides_runpath=yes
10028: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10029: hardcode_into_libs=yes
10030: ;;
10031:
10032: hpux9* | hpux10* | hpux11*)
10033: # Give a soname corresponding to the major version so that dld.sl refuses to
10034: # link against other versions.
10035: version_type=sunos
10036: need_lib_prefix=no
10037: need_version=no
10038: case $host_cpu in
10039: ia64*)
10040: shrext_cmds='.so'
10041: hardcode_into_libs=yes
10042: dynamic_linker="$host_os dld.so"
10043: shlibpath_var=LD_LIBRARY_PATH
10044: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046: soname_spec='${libname}${release}${shared_ext}$major'
10047: if test "X$HPUX_IA64_MODE" = X32; then
10048: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10049: else
10050: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10051: fi
10052: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10053: ;;
10054: hppa*64*)
10055: shrext_cmds='.sl'
10056: hardcode_into_libs=yes
10057: dynamic_linker="$host_os dld.sl"
10058: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10059: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10060: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061: soname_spec='${libname}${release}${shared_ext}$major'
10062: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10063: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10064: ;;
10065: *)
10066: shrext_cmds='.sl'
10067: dynamic_linker="$host_os dld.sl"
10068: shlibpath_var=SHLIB_PATH
10069: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10070: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071: soname_spec='${libname}${release}${shared_ext}$major'
10072: ;;
10073: esac
10074: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10075: postinstall_cmds='chmod 555 $lib'
10076: # or fails outright, so override atomically:
10077: install_override_mode=555
10078: ;;
10079:
10080: interix[3-9]*)
10081: version_type=linux # correct to gnu/linux during the next big refactor
10082: need_lib_prefix=no
10083: need_version=no
10084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085: soname_spec='${libname}${release}${shared_ext}$major'
10086: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10087: shlibpath_var=LD_LIBRARY_PATH
10088: shlibpath_overrides_runpath=no
10089: hardcode_into_libs=yes
10090: ;;
10091:
10092: irix5* | irix6* | nonstopux*)
10093: case $host_os in
10094: nonstopux*) version_type=nonstopux ;;
10095: *)
10096: if test "$lt_cv_prog_gnu_ld" = yes; then
10097: version_type=linux # correct to gnu/linux during the next big refactor
10098: else
10099: version_type=irix
10100: fi ;;
10101: esac
10102: need_lib_prefix=no
10103: need_version=no
10104: soname_spec='${libname}${release}${shared_ext}$major'
10105: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10106: case $host_os in
10107: irix5* | nonstopux*)
10108: libsuff= shlibsuff=
10109: ;;
10110: *)
10111: case $LD in # libtool.m4 will add one of these switches to LD
10112: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10113: libsuff= shlibsuff= libmagic=32-bit;;
10114: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10115: libsuff=32 shlibsuff=N32 libmagic=N32;;
10116: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10117: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10118: *) libsuff= shlibsuff= libmagic=never-match;;
10119: esac
10120: ;;
10121: esac
10122: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10123: shlibpath_overrides_runpath=no
10124: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10125: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10126: hardcode_into_libs=yes
10127: ;;
10128:
10129: # No shared lib support for Linux oldld, aout, or coff.
10130: linux*oldld* | linux*aout* | linux*coff*)
10131: dynamic_linker=no
10132: ;;
10133:
10134: # This must be glibc/ELF.
10135: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10136: version_type=linux # correct to gnu/linux during the next big refactor
10137: need_lib_prefix=no
10138: need_version=no
10139: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140: soname_spec='${libname}${release}${shared_ext}$major'
10141: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10142: shlibpath_var=LD_LIBRARY_PATH
10143: shlibpath_overrides_runpath=no
10144:
10145: # Some binutils ld are patched to set DT_RUNPATH
1.11 ! moko 10146: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
! 10147: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10148: else
10149: lt_cv_shlibpath_overrides_runpath=no
10150: save_LDFLAGS=$LDFLAGS
10151: save_libdir=$libdir
10152: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10153: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.11 ! moko 10154: cat >conftest.$ac_ext <<_ACEOF
! 10155: /* confdefs.h. */
! 10156: _ACEOF
! 10157: cat confdefs.h >>conftest.$ac_ext
! 10158: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10159: /* end confdefs.h. */
10160:
10161: int
10162: main ()
10163: {
10164:
10165: ;
10166: return 0;
10167: }
10168: _ACEOF
1.11 ! moko 10169: rm -f conftest.$ac_objext conftest$ac_exeext
! 10170: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10171: (eval $ac_link) 2>conftest.er1
! 10172: ac_status=$?
! 10173: grep -v '^ *+' conftest.er1 >conftest.err
! 10174: rm -f conftest.er1
! 10175: cat conftest.err >&5
! 10176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10177: (exit $ac_status); } &&
! 10178: { ac_try='test -z "$ac_c_werror_flag"
! 10179: || test ! -s conftest.err'
! 10180: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10181: (eval $ac_try) 2>&5
! 10182: ac_status=$?
! 10183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10184: (exit $ac_status); }; } &&
! 10185: { ac_try='test -s conftest$ac_exeext'
! 10186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10187: (eval $ac_try) 2>&5
! 10188: ac_status=$?
! 10189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10190: (exit $ac_status); }; }; then
! 10191: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 10192: lt_cv_shlibpath_overrides_runpath=yes
10193: fi
1.11 ! moko 10194:
! 10195: else
! 10196: echo "$as_me: failed program was:" >&5
! 10197: sed 's/^/| /' conftest.$ac_ext >&5
! 10198:
1.8 moko 10199: fi
1.11 ! moko 10200: rm -f conftest.err conftest.$ac_objext \
! 10201: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10202: LDFLAGS=$save_LDFLAGS
10203: libdir=$save_libdir
10204:
10205: fi
10206:
10207: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10208:
10209: # This implies no fast_install, which is unacceptable.
10210: # Some rework will be needed to allow for fast_install
10211: # before this can be enabled.
10212: hardcode_into_libs=yes
10213:
10214: # Append ld.so.conf contents to the search path
10215: if test -f /etc/ld.so.conf; then
10216: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10217: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10218: fi
10219:
10220: # We used to test for /lib/ld.so.1 and disable shared libraries on
10221: # powerpc, because MkLinux only supported shared libraries with the
10222: # GNU dynamic linker. Since this was broken with cross compilers,
10223: # most powerpc-linux boxes support dynamic linking these days and
10224: # people can always --disable-shared, the test was removed, and we
10225: # assume the GNU/Linux dynamic linker is in use.
10226: dynamic_linker='GNU/Linux ld.so'
10227: ;;
10228:
10229: netbsd*)
10230: version_type=sunos
10231: need_lib_prefix=no
10232: need_version=no
10233: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10234: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10235: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10236: dynamic_linker='NetBSD (a.out) ld.so'
10237: else
10238: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10239: soname_spec='${libname}${release}${shared_ext}$major'
10240: dynamic_linker='NetBSD ld.elf_so'
10241: fi
10242: shlibpath_var=LD_LIBRARY_PATH
10243: shlibpath_overrides_runpath=yes
10244: hardcode_into_libs=yes
10245: ;;
10246:
10247: newsos6)
10248: version_type=linux # correct to gnu/linux during the next big refactor
10249: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250: shlibpath_var=LD_LIBRARY_PATH
10251: shlibpath_overrides_runpath=yes
10252: ;;
10253:
10254: *nto* | *qnx*)
10255: version_type=qnx
10256: need_lib_prefix=no
10257: need_version=no
10258: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259: soname_spec='${libname}${release}${shared_ext}$major'
10260: shlibpath_var=LD_LIBRARY_PATH
10261: shlibpath_overrides_runpath=no
10262: hardcode_into_libs=yes
10263: dynamic_linker='ldqnx.so'
10264: ;;
10265:
10266: openbsd*)
10267: version_type=sunos
10268: sys_lib_dlsearch_path_spec="/usr/lib"
10269: need_lib_prefix=no
10270: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10271: case $host_os in
10272: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10273: *) need_version=no ;;
10274: esac
10275: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10276: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10277: shlibpath_var=LD_LIBRARY_PATH
10278: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10279: case $host_os in
10280: openbsd2.[89] | openbsd2.[89].*)
10281: shlibpath_overrides_runpath=no
10282: ;;
10283: *)
10284: shlibpath_overrides_runpath=yes
10285: ;;
10286: esac
1.1 misha 10287: else
1.8 moko 10288: shlibpath_overrides_runpath=yes
10289: fi
10290: ;;
10291:
10292: os2*)
10293: libname_spec='$name'
10294: shrext_cmds=".dll"
10295: need_lib_prefix=no
10296: library_names_spec='$libname${shared_ext} $libname.a'
10297: dynamic_linker='OS/2 ld.exe'
10298: shlibpath_var=LIBPATH
10299: ;;
10300:
10301: osf3* | osf4* | osf5*)
10302: version_type=osf
10303: need_lib_prefix=no
10304: need_version=no
10305: soname_spec='${libname}${release}${shared_ext}$major'
10306: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307: shlibpath_var=LD_LIBRARY_PATH
10308: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10309: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10310: ;;
10311:
10312: rdos*)
10313: dynamic_linker=no
10314: ;;
10315:
10316: solaris*)
10317: version_type=linux # correct to gnu/linux during the next big refactor
10318: need_lib_prefix=no
10319: need_version=no
10320: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321: soname_spec='${libname}${release}${shared_ext}$major'
10322: shlibpath_var=LD_LIBRARY_PATH
10323: shlibpath_overrides_runpath=yes
10324: hardcode_into_libs=yes
10325: # ldd complains unless libraries are executable
10326: postinstall_cmds='chmod +x $lib'
10327: ;;
10328:
10329: sunos4*)
10330: version_type=sunos
10331: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10332: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10333: shlibpath_var=LD_LIBRARY_PATH
10334: shlibpath_overrides_runpath=yes
10335: if test "$with_gnu_ld" = yes; then
10336: need_lib_prefix=no
10337: fi
10338: need_version=yes
10339: ;;
10340:
10341: sysv4 | sysv4.3*)
10342: version_type=linux # correct to gnu/linux during the next big refactor
10343: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344: soname_spec='${libname}${release}${shared_ext}$major'
10345: shlibpath_var=LD_LIBRARY_PATH
10346: case $host_vendor in
10347: sni)
10348: shlibpath_overrides_runpath=no
10349: need_lib_prefix=no
10350: runpath_var=LD_RUN_PATH
10351: ;;
10352: siemens)
10353: need_lib_prefix=no
10354: ;;
10355: motorola)
10356: need_lib_prefix=no
10357: need_version=no
10358: shlibpath_overrides_runpath=no
10359: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10360: ;;
10361: esac
10362: ;;
10363:
10364: sysv4*MP*)
10365: if test -d /usr/nec ;then
10366: version_type=linux # correct to gnu/linux during the next big refactor
10367: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10368: soname_spec='$libname${shared_ext}.$major'
10369: shlibpath_var=LD_LIBRARY_PATH
10370: fi
10371: ;;
10372:
10373: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10374: version_type=freebsd-elf
10375: need_lib_prefix=no
10376: need_version=no
10377: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10378: soname_spec='${libname}${release}${shared_ext}$major'
10379: shlibpath_var=LD_LIBRARY_PATH
10380: shlibpath_overrides_runpath=yes
10381: hardcode_into_libs=yes
10382: if test "$with_gnu_ld" = yes; then
10383: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10384: else
10385: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10386: case $host_os in
10387: sco3.2v5*)
10388: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10389: ;;
10390: esac
10391: fi
10392: sys_lib_dlsearch_path_spec='/usr/lib'
10393: ;;
10394:
10395: tpf*)
10396: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10397: version_type=linux # correct to gnu/linux during the next big refactor
10398: need_lib_prefix=no
10399: need_version=no
10400: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401: shlibpath_var=LD_LIBRARY_PATH
10402: shlibpath_overrides_runpath=no
10403: hardcode_into_libs=yes
10404: ;;
10405:
10406: uts4*)
10407: version_type=linux # correct to gnu/linux during the next big refactor
10408: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409: soname_spec='${libname}${release}${shared_ext}$major'
10410: shlibpath_var=LD_LIBRARY_PATH
10411: ;;
10412:
10413: *)
10414: dynamic_linker=no
10415: ;;
10416: esac
1.11 ! moko 10417: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 10418: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 10419: test "$dynamic_linker" = no && can_build_shared=no
10420:
10421: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10422: if test "$GCC" = yes; then
10423: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10424: fi
10425:
10426: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10427: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10428: fi
10429: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10430: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10431: fi
10432:
10433:
10434:
10435:
10436:
10437:
10438:
10439:
10440:
10441:
10442:
10443:
10444:
10445:
10446:
10447:
10448:
10449:
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458:
10459:
10460:
10461:
10462:
10463:
10464:
10465:
10466:
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
10483:
10484:
10485:
10486:
10487:
10488:
10489:
10490:
10491:
10492:
10493:
10494:
10495:
10496:
10497:
10498:
10499:
10500:
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
1.11 ! moko 10524: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 10525: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 10526: hardcode_action=
10527: if test -n "$hardcode_libdir_flag_spec" ||
10528: test -n "$runpath_var" ||
10529: test "X$hardcode_automatic" = "Xyes" ; then
10530:
10531: # We can hardcode non-existent directories.
10532: if test "$hardcode_direct" != no &&
10533: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10534: # have to relink, otherwise we might link with an installed library
10535: # when we should be linking with a yet-to-be-installed one
10536: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10537: test "$hardcode_minus_L" != no; then
10538: # Linking always hardcodes the temporary library directory.
10539: hardcode_action=relink
10540: else
10541: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10542: hardcode_action=immediate
10543: fi
10544: else
10545: # We cannot hardcode anything, or else we can only hardcode existing
10546: # directories.
10547: hardcode_action=unsupported
10548: fi
1.11 ! moko 10549: echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 10550: echo "${ECHO_T}$hardcode_action" >&6
1.8 moko 10551:
10552: if test "$hardcode_action" = relink ||
10553: test "$inherit_rpath" = yes; then
10554: # Fast installation is not supported
10555: enable_fast_install=no
10556: elif test "$shlibpath_overrides_runpath" = yes ||
10557: test "$enable_shared" = no; then
10558: # Fast installation is not necessary
10559: enable_fast_install=needless
10560: fi
10561:
10562:
10563:
10564:
10565:
10566:
10567: if test "x$enable_dlopen" != xyes; then
10568: enable_dlopen=unknown
10569: enable_dlopen_self=unknown
10570: enable_dlopen_self_static=unknown
10571: else
10572: lt_cv_dlopen=no
10573: lt_cv_dlopen_libs=
10574:
10575: case $host_os in
10576: beos*)
10577: lt_cv_dlopen="load_add_on"
10578: lt_cv_dlopen_libs=
10579: lt_cv_dlopen_self=yes
10580: ;;
10581:
10582: mingw* | pw32* | cegcc*)
10583: lt_cv_dlopen="LoadLibrary"
10584: lt_cv_dlopen_libs=
10585: ;;
10586:
10587: cygwin*)
10588: lt_cv_dlopen="dlopen"
10589: lt_cv_dlopen_libs=
10590: ;;
10591:
10592: darwin*)
10593: # if libdl is installed we need to link against it
1.11 ! moko 10594: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 10595: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 10596: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 10597: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10598: else
10599: ac_check_lib_save_LIBS=$LIBS
10600: LIBS="-ldl $LIBS"
1.11 ! moko 10601: cat >conftest.$ac_ext <<_ACEOF
! 10602: /* confdefs.h. */
! 10603: _ACEOF
! 10604: cat confdefs.h >>conftest.$ac_ext
! 10605: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10606: /* end confdefs.h. */
10607:
1.11 ! moko 10608: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 10609: #ifdef __cplusplus
10610: extern "C"
10611: #endif
1.11 ! moko 10612: /* We use char because int might match the return type of a gcc2
! 10613: builtin and then its argument prototype would still apply. */
1.8 moko 10614: char dlopen ();
10615: int
10616: main ()
10617: {
1.11 ! moko 10618: dlopen ();
1.8 moko 10619: ;
10620: return 0;
10621: }
10622: _ACEOF
1.11 ! moko 10623: rm -f conftest.$ac_objext conftest$ac_exeext
! 10624: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10625: (eval $ac_link) 2>conftest.er1
! 10626: ac_status=$?
! 10627: grep -v '^ *+' conftest.er1 >conftest.err
! 10628: rm -f conftest.er1
! 10629: cat conftest.err >&5
! 10630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10631: (exit $ac_status); } &&
! 10632: { ac_try='test -z "$ac_c_werror_flag"
! 10633: || test ! -s conftest.err'
! 10634: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10635: (eval $ac_try) 2>&5
! 10636: ac_status=$?
! 10637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10638: (exit $ac_status); }; } &&
! 10639: { ac_try='test -s conftest$ac_exeext'
! 10640: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10641: (eval $ac_try) 2>&5
! 10642: ac_status=$?
! 10643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10644: (exit $ac_status); }; }; then
1.8 moko 10645: ac_cv_lib_dl_dlopen=yes
10646: else
1.11 ! moko 10647: echo "$as_me: failed program was:" >&5
! 10648: sed 's/^/| /' conftest.$ac_ext >&5
! 10649:
! 10650: ac_cv_lib_dl_dlopen=no
1.8 moko 10651: fi
1.11 ! moko 10652: rm -f conftest.err conftest.$ac_objext \
! 10653: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10654: LIBS=$ac_check_lib_save_LIBS
10655: fi
1.11 ! moko 10656: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 10657: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 10658: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 10659: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10660: else
10661:
10662: lt_cv_dlopen="dyld"
10663: lt_cv_dlopen_libs=
10664: lt_cv_dlopen_self=yes
10665:
10666: fi
10667:
10668: ;;
10669:
10670: *)
1.11 ! moko 10671: echo "$as_me:$LINENO: checking for shl_load" >&5
! 10672: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 10673: if test "${ac_cv_func_shl_load+set}" = set; then
! 10674: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10675: else
! 10676: cat >conftest.$ac_ext <<_ACEOF
! 10677: /* confdefs.h. */
! 10678: _ACEOF
! 10679: cat confdefs.h >>conftest.$ac_ext
! 10680: cat >>conftest.$ac_ext <<_ACEOF
! 10681: /* end confdefs.h. */
! 10682: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 10683: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 10684: #define shl_load innocuous_shl_load
! 10685:
! 10686: /* System header to define __stub macros and hopefully few prototypes,
! 10687: which can conflict with char shl_load (); below.
! 10688: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 10689: <limits.h> exists even on freestanding compilers. */
! 10690:
! 10691: #ifdef __STDC__
! 10692: # include <limits.h>
! 10693: #else
! 10694: # include <assert.h>
! 10695: #endif
! 10696:
! 10697: #undef shl_load
! 10698:
! 10699: /* Override any gcc2 internal prototype to avoid an error. */
! 10700: #ifdef __cplusplus
! 10701: extern "C"
! 10702: {
! 10703: #endif
! 10704: /* We use char because int might match the return type of a gcc2
! 10705: builtin and then its argument prototype would still apply. */
! 10706: char shl_load ();
! 10707: /* The GNU C library defines this for functions which it implements
! 10708: to always fail with ENOSYS. Some functions are actually named
! 10709: something starting with __ and the normal name is an alias. */
! 10710: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 10711: choke me
! 10712: #else
! 10713: char (*f) () = shl_load;
! 10714: #endif
! 10715: #ifdef __cplusplus
! 10716: }
! 10717: #endif
! 10718:
! 10719: int
! 10720: main ()
! 10721: {
! 10722: return f != shl_load;
! 10723: ;
! 10724: return 0;
! 10725: }
! 10726: _ACEOF
! 10727: rm -f conftest.$ac_objext conftest$ac_exeext
! 10728: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10729: (eval $ac_link) 2>conftest.er1
! 10730: ac_status=$?
! 10731: grep -v '^ *+' conftest.er1 >conftest.err
! 10732: rm -f conftest.er1
! 10733: cat conftest.err >&5
! 10734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10735: (exit $ac_status); } &&
! 10736: { ac_try='test -z "$ac_c_werror_flag"
! 10737: || test ! -s conftest.err'
! 10738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10739: (eval $ac_try) 2>&5
! 10740: ac_status=$?
! 10741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10742: (exit $ac_status); }; } &&
! 10743: { ac_try='test -s conftest$ac_exeext'
! 10744: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10745: (eval $ac_try) 2>&5
! 10746: ac_status=$?
! 10747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10748: (exit $ac_status); }; }; then
! 10749: ac_cv_func_shl_load=yes
! 10750: else
! 10751: echo "$as_me: failed program was:" >&5
! 10752: sed 's/^/| /' conftest.$ac_ext >&5
! 10753:
! 10754: ac_cv_func_shl_load=no
! 10755: fi
! 10756: rm -f conftest.err conftest.$ac_objext \
! 10757: conftest$ac_exeext conftest.$ac_ext
! 10758: fi
! 10759: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 10760: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 10761: if test $ac_cv_func_shl_load = yes; then
1.8 moko 10762: lt_cv_dlopen="shl_load"
10763: else
1.11 ! moko 10764: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 10765: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 10766: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 10767: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10768: else
10769: ac_check_lib_save_LIBS=$LIBS
10770: LIBS="-ldld $LIBS"
1.11 ! moko 10771: cat >conftest.$ac_ext <<_ACEOF
! 10772: /* confdefs.h. */
! 10773: _ACEOF
! 10774: cat confdefs.h >>conftest.$ac_ext
! 10775: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10776: /* end confdefs.h. */
10777:
1.11 ! moko 10778: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 10779: #ifdef __cplusplus
10780: extern "C"
10781: #endif
1.11 ! moko 10782: /* We use char because int might match the return type of a gcc2
! 10783: builtin and then its argument prototype would still apply. */
1.8 moko 10784: char shl_load ();
10785: int
10786: main ()
10787: {
1.11 ! moko 10788: shl_load ();
1.8 moko 10789: ;
10790: return 0;
10791: }
10792: _ACEOF
1.11 ! moko 10793: rm -f conftest.$ac_objext conftest$ac_exeext
! 10794: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10795: (eval $ac_link) 2>conftest.er1
! 10796: ac_status=$?
! 10797: grep -v '^ *+' conftest.er1 >conftest.err
! 10798: rm -f conftest.er1
! 10799: cat conftest.err >&5
! 10800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10801: (exit $ac_status); } &&
! 10802: { ac_try='test -z "$ac_c_werror_flag"
! 10803: || test ! -s conftest.err'
! 10804: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10805: (eval $ac_try) 2>&5
! 10806: ac_status=$?
! 10807: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10808: (exit $ac_status); }; } &&
! 10809: { ac_try='test -s conftest$ac_exeext'
! 10810: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10811: (eval $ac_try) 2>&5
! 10812: ac_status=$?
! 10813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10814: (exit $ac_status); }; }; then
1.8 moko 10815: ac_cv_lib_dld_shl_load=yes
10816: else
1.11 ! moko 10817: echo "$as_me: failed program was:" >&5
! 10818: sed 's/^/| /' conftest.$ac_ext >&5
! 10819:
! 10820: ac_cv_lib_dld_shl_load=no
1.8 moko 10821: fi
1.11 ! moko 10822: rm -f conftest.err conftest.$ac_objext \
! 10823: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10824: LIBS=$ac_check_lib_save_LIBS
10825: fi
1.11 ! moko 10826: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 10827: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 10828: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 10829: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10830: else
1.11 ! moko 10831: echo "$as_me:$LINENO: checking for dlopen" >&5
! 10832: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 10833: if test "${ac_cv_func_dlopen+set}" = set; then
! 10834: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10835: else
! 10836: cat >conftest.$ac_ext <<_ACEOF
! 10837: /* confdefs.h. */
! 10838: _ACEOF
! 10839: cat confdefs.h >>conftest.$ac_ext
! 10840: cat >>conftest.$ac_ext <<_ACEOF
! 10841: /* end confdefs.h. */
! 10842: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 10843: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 10844: #define dlopen innocuous_dlopen
! 10845:
! 10846: /* System header to define __stub macros and hopefully few prototypes,
! 10847: which can conflict with char dlopen (); below.
! 10848: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 10849: <limits.h> exists even on freestanding compilers. */
! 10850:
! 10851: #ifdef __STDC__
! 10852: # include <limits.h>
! 10853: #else
! 10854: # include <assert.h>
! 10855: #endif
! 10856:
! 10857: #undef dlopen
! 10858:
! 10859: /* Override any gcc2 internal prototype to avoid an error. */
! 10860: #ifdef __cplusplus
! 10861: extern "C"
! 10862: {
! 10863: #endif
! 10864: /* We use char because int might match the return type of a gcc2
! 10865: builtin and then its argument prototype would still apply. */
! 10866: char dlopen ();
! 10867: /* The GNU C library defines this for functions which it implements
! 10868: to always fail with ENOSYS. Some functions are actually named
! 10869: something starting with __ and the normal name is an alias. */
! 10870: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 10871: choke me
! 10872: #else
! 10873: char (*f) () = dlopen;
! 10874: #endif
! 10875: #ifdef __cplusplus
! 10876: }
! 10877: #endif
! 10878:
! 10879: int
! 10880: main ()
! 10881: {
! 10882: return f != dlopen;
! 10883: ;
! 10884: return 0;
! 10885: }
! 10886: _ACEOF
! 10887: rm -f conftest.$ac_objext conftest$ac_exeext
! 10888: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10889: (eval $ac_link) 2>conftest.er1
! 10890: ac_status=$?
! 10891: grep -v '^ *+' conftest.er1 >conftest.err
! 10892: rm -f conftest.er1
! 10893: cat conftest.err >&5
! 10894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10895: (exit $ac_status); } &&
! 10896: { ac_try='test -z "$ac_c_werror_flag"
! 10897: || test ! -s conftest.err'
! 10898: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10899: (eval $ac_try) 2>&5
! 10900: ac_status=$?
! 10901: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10902: (exit $ac_status); }; } &&
! 10903: { ac_try='test -s conftest$ac_exeext'
! 10904: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10905: (eval $ac_try) 2>&5
! 10906: ac_status=$?
! 10907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10908: (exit $ac_status); }; }; then
! 10909: ac_cv_func_dlopen=yes
! 10910: else
! 10911: echo "$as_me: failed program was:" >&5
! 10912: sed 's/^/| /' conftest.$ac_ext >&5
! 10913:
! 10914: ac_cv_func_dlopen=no
! 10915: fi
! 10916: rm -f conftest.err conftest.$ac_objext \
! 10917: conftest$ac_exeext conftest.$ac_ext
! 10918: fi
! 10919: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 10920: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 10921: if test $ac_cv_func_dlopen = yes; then
1.8 moko 10922: lt_cv_dlopen="dlopen"
10923: else
1.11 ! moko 10924: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 10925: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 10926: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 10927: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10928: else
10929: ac_check_lib_save_LIBS=$LIBS
10930: LIBS="-ldl $LIBS"
1.11 ! moko 10931: cat >conftest.$ac_ext <<_ACEOF
! 10932: /* confdefs.h. */
! 10933: _ACEOF
! 10934: cat confdefs.h >>conftest.$ac_ext
! 10935: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10936: /* end confdefs.h. */
10937:
1.11 ! moko 10938: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 10939: #ifdef __cplusplus
10940: extern "C"
10941: #endif
1.11 ! moko 10942: /* We use char because int might match the return type of a gcc2
! 10943: builtin and then its argument prototype would still apply. */
1.8 moko 10944: char dlopen ();
10945: int
10946: main ()
10947: {
1.11 ! moko 10948: dlopen ();
1.8 moko 10949: ;
10950: return 0;
10951: }
10952: _ACEOF
1.11 ! moko 10953: rm -f conftest.$ac_objext conftest$ac_exeext
! 10954: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10955: (eval $ac_link) 2>conftest.er1
! 10956: ac_status=$?
! 10957: grep -v '^ *+' conftest.er1 >conftest.err
! 10958: rm -f conftest.er1
! 10959: cat conftest.err >&5
! 10960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10961: (exit $ac_status); } &&
! 10962: { ac_try='test -z "$ac_c_werror_flag"
! 10963: || test ! -s conftest.err'
! 10964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10965: (eval $ac_try) 2>&5
! 10966: ac_status=$?
! 10967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10968: (exit $ac_status); }; } &&
! 10969: { ac_try='test -s conftest$ac_exeext'
! 10970: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10971: (eval $ac_try) 2>&5
! 10972: ac_status=$?
! 10973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10974: (exit $ac_status); }; }; then
1.8 moko 10975: ac_cv_lib_dl_dlopen=yes
10976: else
1.11 ! moko 10977: echo "$as_me: failed program was:" >&5
! 10978: sed 's/^/| /' conftest.$ac_ext >&5
! 10979:
! 10980: ac_cv_lib_dl_dlopen=no
1.8 moko 10981: fi
1.11 ! moko 10982: rm -f conftest.err conftest.$ac_objext \
! 10983: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10984: LIBS=$ac_check_lib_save_LIBS
10985: fi
1.11 ! moko 10986: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 10987: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 10988: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 10989: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10990: else
1.11 ! moko 10991: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 10992: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 10993: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 10994: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10995: else
10996: ac_check_lib_save_LIBS=$LIBS
10997: LIBS="-lsvld $LIBS"
1.11 ! moko 10998: cat >conftest.$ac_ext <<_ACEOF
! 10999: /* confdefs.h. */
! 11000: _ACEOF
! 11001: cat confdefs.h >>conftest.$ac_ext
! 11002: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11003: /* end confdefs.h. */
11004:
1.11 ! moko 11005: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11006: #ifdef __cplusplus
11007: extern "C"
11008: #endif
1.11 ! moko 11009: /* We use char because int might match the return type of a gcc2
! 11010: builtin and then its argument prototype would still apply. */
1.8 moko 11011: char dlopen ();
11012: int
11013: main ()
11014: {
1.11 ! moko 11015: dlopen ();
1.8 moko 11016: ;
11017: return 0;
11018: }
11019: _ACEOF
1.11 ! moko 11020: rm -f conftest.$ac_objext conftest$ac_exeext
! 11021: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 11022: (eval $ac_link) 2>conftest.er1
! 11023: ac_status=$?
! 11024: grep -v '^ *+' conftest.er1 >conftest.err
! 11025: rm -f conftest.er1
! 11026: cat conftest.err >&5
! 11027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11028: (exit $ac_status); } &&
! 11029: { ac_try='test -z "$ac_c_werror_flag"
! 11030: || test ! -s conftest.err'
! 11031: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11032: (eval $ac_try) 2>&5
! 11033: ac_status=$?
! 11034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11035: (exit $ac_status); }; } &&
! 11036: { ac_try='test -s conftest$ac_exeext'
! 11037: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11038: (eval $ac_try) 2>&5
! 11039: ac_status=$?
! 11040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11041: (exit $ac_status); }; }; then
1.8 moko 11042: ac_cv_lib_svld_dlopen=yes
11043: else
1.11 ! moko 11044: echo "$as_me: failed program was:" >&5
! 11045: sed 's/^/| /' conftest.$ac_ext >&5
! 11046:
! 11047: ac_cv_lib_svld_dlopen=no
1.8 moko 11048: fi
1.11 ! moko 11049: rm -f conftest.err conftest.$ac_objext \
! 11050: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11051: LIBS=$ac_check_lib_save_LIBS
11052: fi
1.11 ! moko 11053: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 11054: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 11055: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 11056: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11057: else
1.11 ! moko 11058: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 11059: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 11060: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 11061: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11062: else
11063: ac_check_lib_save_LIBS=$LIBS
11064: LIBS="-ldld $LIBS"
1.11 ! moko 11065: cat >conftest.$ac_ext <<_ACEOF
! 11066: /* confdefs.h. */
! 11067: _ACEOF
! 11068: cat confdefs.h >>conftest.$ac_ext
! 11069: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11070: /* end confdefs.h. */
11071:
1.11 ! moko 11072: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11073: #ifdef __cplusplus
11074: extern "C"
11075: #endif
1.11 ! moko 11076: /* We use char because int might match the return type of a gcc2
! 11077: builtin and then its argument prototype would still apply. */
1.8 moko 11078: char dld_link ();
11079: int
11080: main ()
11081: {
1.11 ! moko 11082: dld_link ();
1.8 moko 11083: ;
11084: return 0;
11085: }
11086: _ACEOF
1.11 ! moko 11087: rm -f conftest.$ac_objext conftest$ac_exeext
! 11088: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 11089: (eval $ac_link) 2>conftest.er1
! 11090: ac_status=$?
! 11091: grep -v '^ *+' conftest.er1 >conftest.err
! 11092: rm -f conftest.er1
! 11093: cat conftest.err >&5
! 11094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11095: (exit $ac_status); } &&
! 11096: { ac_try='test -z "$ac_c_werror_flag"
! 11097: || test ! -s conftest.err'
! 11098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11099: (eval $ac_try) 2>&5
! 11100: ac_status=$?
! 11101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11102: (exit $ac_status); }; } &&
! 11103: { ac_try='test -s conftest$ac_exeext'
! 11104: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11105: (eval $ac_try) 2>&5
! 11106: ac_status=$?
! 11107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11108: (exit $ac_status); }; }; then
1.8 moko 11109: ac_cv_lib_dld_dld_link=yes
11110: else
1.11 ! moko 11111: echo "$as_me: failed program was:" >&5
! 11112: sed 's/^/| /' conftest.$ac_ext >&5
! 11113:
! 11114: ac_cv_lib_dld_dld_link=no
1.8 moko 11115: fi
1.11 ! moko 11116: rm -f conftest.err conftest.$ac_objext \
! 11117: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11118: LIBS=$ac_check_lib_save_LIBS
11119: fi
1.11 ! moko 11120: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 11121: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 11122: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 11123: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11124: fi
11125:
11126:
11127: fi
11128:
11129:
11130: fi
11131:
11132:
11133: fi
11134:
11135:
11136: fi
11137:
11138:
11139: fi
11140:
11141: ;;
11142: esac
11143:
11144: if test "x$lt_cv_dlopen" != xno; then
11145: enable_dlopen=yes
11146: else
11147: enable_dlopen=no
11148: fi
11149:
11150: case $lt_cv_dlopen in
11151: dlopen)
11152: save_CPPFLAGS="$CPPFLAGS"
11153: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11154:
11155: save_LDFLAGS="$LDFLAGS"
11156: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11157:
11158: save_LIBS="$LIBS"
11159: LIBS="$lt_cv_dlopen_libs $LIBS"
11160:
1.11 ! moko 11161: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 11162: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 11163: if test "${lt_cv_dlopen_self+set}" = set; then
! 11164: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11165: else
11166: if test "$cross_compiling" = yes; then :
11167: lt_cv_dlopen_self=cross
11168: else
11169: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11170: lt_status=$lt_dlunknown
11171: cat > conftest.$ac_ext <<_LT_EOF
11172: #line $LINENO "configure"
11173: #include "confdefs.h"
11174:
11175: #if HAVE_DLFCN_H
11176: #include <dlfcn.h>
11177: #endif
11178:
11179: #include <stdio.h>
11180:
11181: #ifdef RTLD_GLOBAL
11182: # define LT_DLGLOBAL RTLD_GLOBAL
11183: #else
11184: # ifdef DL_GLOBAL
11185: # define LT_DLGLOBAL DL_GLOBAL
11186: # else
11187: # define LT_DLGLOBAL 0
11188: # endif
11189: #endif
11190:
11191: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11192: find out it does not work in some platform. */
11193: #ifndef LT_DLLAZY_OR_NOW
11194: # ifdef RTLD_LAZY
11195: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11196: # else
11197: # ifdef DL_LAZY
11198: # define LT_DLLAZY_OR_NOW DL_LAZY
11199: # else
11200: # ifdef RTLD_NOW
11201: # define LT_DLLAZY_OR_NOW RTLD_NOW
11202: # else
11203: # ifdef DL_NOW
11204: # define LT_DLLAZY_OR_NOW DL_NOW
11205: # else
11206: # define LT_DLLAZY_OR_NOW 0
11207: # endif
11208: # endif
11209: # endif
11210: # endif
11211: #endif
11212:
11213: /* When -fvisbility=hidden is used, assume the code has been annotated
11214: correspondingly for the symbols needed. */
11215: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11216: int fnord () __attribute__((visibility("default")));
11217: #endif
11218:
11219: int fnord () { return 42; }
11220: int main ()
11221: {
11222: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11223: int status = $lt_dlunknown;
11224:
11225: if (self)
11226: {
11227: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11228: else
11229: {
11230: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11231: else puts (dlerror ());
11232: }
11233: /* dlclose (self); */
11234: }
11235: else
11236: puts (dlerror ());
11237:
11238: return status;
11239: }
11240: _LT_EOF
1.11 ! moko 11241: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11242: (eval $ac_link) 2>&5
11243: ac_status=$?
1.11 ! moko 11244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11245: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11246: (./conftest; exit; ) >&5 2>/dev/null
11247: lt_status=$?
11248: case x$lt_status in
11249: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11250: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11251: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11252: esac
11253: else :
11254: # compilation failed
11255: lt_cv_dlopen_self=no
11256: fi
11257: fi
11258: rm -fr conftest*
11259:
11260:
11261: fi
1.11 ! moko 11262: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 11263: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.8 moko 11264:
11265: if test "x$lt_cv_dlopen_self" = xyes; then
11266: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.11 ! moko 11267: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 11268: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 11269: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 11270: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11271: else
11272: if test "$cross_compiling" = yes; then :
11273: lt_cv_dlopen_self_static=cross
11274: else
11275: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11276: lt_status=$lt_dlunknown
11277: cat > conftest.$ac_ext <<_LT_EOF
11278: #line $LINENO "configure"
11279: #include "confdefs.h"
11280:
11281: #if HAVE_DLFCN_H
11282: #include <dlfcn.h>
11283: #endif
11284:
11285: #include <stdio.h>
11286:
11287: #ifdef RTLD_GLOBAL
11288: # define LT_DLGLOBAL RTLD_GLOBAL
11289: #else
11290: # ifdef DL_GLOBAL
11291: # define LT_DLGLOBAL DL_GLOBAL
11292: # else
11293: # define LT_DLGLOBAL 0
11294: # endif
11295: #endif
11296:
11297: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11298: find out it does not work in some platform. */
11299: #ifndef LT_DLLAZY_OR_NOW
11300: # ifdef RTLD_LAZY
11301: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11302: # else
11303: # ifdef DL_LAZY
11304: # define LT_DLLAZY_OR_NOW DL_LAZY
11305: # else
11306: # ifdef RTLD_NOW
11307: # define LT_DLLAZY_OR_NOW RTLD_NOW
11308: # else
11309: # ifdef DL_NOW
11310: # define LT_DLLAZY_OR_NOW DL_NOW
11311: # else
11312: # define LT_DLLAZY_OR_NOW 0
11313: # endif
11314: # endif
11315: # endif
11316: # endif
11317: #endif
11318:
11319: /* When -fvisbility=hidden is used, assume the code has been annotated
11320: correspondingly for the symbols needed. */
11321: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11322: int fnord () __attribute__((visibility("default")));
11323: #endif
11324:
11325: int fnord () { return 42; }
11326: int main ()
11327: {
11328: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11329: int status = $lt_dlunknown;
11330:
11331: if (self)
11332: {
11333: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11334: else
11335: {
11336: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11337: else puts (dlerror ());
11338: }
11339: /* dlclose (self); */
11340: }
11341: else
11342: puts (dlerror ());
11343:
11344: return status;
11345: }
11346: _LT_EOF
1.11 ! moko 11347: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11348: (eval $ac_link) 2>&5
11349: ac_status=$?
1.11 ! moko 11350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11351: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11352: (./conftest; exit; ) >&5 2>/dev/null
11353: lt_status=$?
11354: case x$lt_status in
11355: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11356: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11357: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11358: esac
11359: else :
11360: # compilation failed
11361: lt_cv_dlopen_self_static=no
11362: fi
11363: fi
11364: rm -fr conftest*
11365:
11366:
11367: fi
1.11 ! moko 11368: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 11369: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.8 moko 11370: fi
11371:
11372: CPPFLAGS="$save_CPPFLAGS"
11373: LDFLAGS="$save_LDFLAGS"
11374: LIBS="$save_LIBS"
11375: ;;
11376: esac
11377:
11378: case $lt_cv_dlopen_self in
11379: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11380: *) enable_dlopen_self=unknown ;;
11381: esac
11382:
11383: case $lt_cv_dlopen_self_static in
11384: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11385: *) enable_dlopen_self_static=unknown ;;
11386: esac
11387: fi
11388:
11389:
11390:
11391:
11392:
11393:
11394:
11395:
11396:
11397:
11398:
11399:
11400:
11401:
11402:
11403:
11404:
11405: striplib=
11406: old_striplib=
1.11 ! moko 11407: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 11408: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.8 moko 11409: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11410: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11411: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.11 ! moko 11412: echo "$as_me:$LINENO: result: yes" >&5
! 11413: echo "${ECHO_T}yes" >&6
1.8 moko 11414: else
11415: # FIXME - insert some real tests, host_os isn't really good enough
11416: case $host_os in
11417: darwin*)
11418: if test -n "$STRIP" ; then
11419: striplib="$STRIP -x"
11420: old_striplib="$STRIP -S"
1.11 ! moko 11421: echo "$as_me:$LINENO: result: yes" >&5
! 11422: echo "${ECHO_T}yes" >&6
1.8 moko 11423: else
1.11 ! moko 11424: echo "$as_me:$LINENO: result: no" >&5
! 11425: echo "${ECHO_T}no" >&6
1.8 moko 11426: fi
11427: ;;
11428: *)
1.11 ! moko 11429: echo "$as_me:$LINENO: result: no" >&5
! 11430: echo "${ECHO_T}no" >&6
1.8 moko 11431: ;;
11432: esac
11433: fi
11434:
11435:
11436:
11437:
11438:
11439:
11440:
11441:
11442:
11443:
11444:
11445:
11446: # Report which library types will actually be built
1.11 ! moko 11447: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 11448: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
! 11449: echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 11450: echo "${ECHO_T}$can_build_shared" >&6
1.8 moko 11451:
1.11 ! moko 11452: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 11453: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1.8 moko 11454: test "$can_build_shared" = "no" && enable_shared=no
11455:
11456: # On AIX, shared libraries and static libraries use the same namespace, and
11457: # are all built from PIC.
11458: case $host_os in
11459: aix3*)
11460: test "$enable_shared" = yes && enable_static=no
11461: if test -n "$RANLIB"; then
11462: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11463: postinstall_cmds='$RANLIB $lib'
11464: fi
11465: ;;
11466:
11467: aix[4-9]*)
11468: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11469: test "$enable_shared" = yes && enable_static=no
11470: fi
11471: ;;
11472: esac
1.11 ! moko 11473: echo "$as_me:$LINENO: result: $enable_shared" >&5
! 11474: echo "${ECHO_T}$enable_shared" >&6
1.8 moko 11475:
1.11 ! moko 11476: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 11477: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1.8 moko 11478: # Make sure either enable_shared or enable_static is yes.
11479: test "$enable_shared" = yes || enable_static=yes
1.11 ! moko 11480: echo "$as_me:$LINENO: result: $enable_static" >&5
! 11481: echo "${ECHO_T}$enable_static" >&6
1.8 moko 11482:
11483:
11484:
11485:
11486: fi
11487: ac_ext=c
11488: ac_cpp='$CPP $CPPFLAGS'
11489: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11492:
11493: CC="$lt_save_CC"
11494:
11495: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11496: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11497: (test "X$CXX" != "Xg++"))) ; then
1.11 ! moko 11498: ac_ext=cc
1.8 moko 11499: ac_cpp='$CXXCPP $CPPFLAGS'
11500: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 ! moko 11503: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 11504: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.8 moko 11505: if test -z "$CXXCPP"; then
1.11 ! moko 11506: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 11507: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11508: else
11509: # Double quotes because CXXCPP needs to be expanded
11510: for CXXCPP in "$CXX -E" "/lib/cpp"
11511: do
11512: ac_preproc_ok=false
11513: for ac_cxx_preproc_warn_flag in '' yes
11514: do
11515: # Use a header file that comes with gcc, so configuring glibc
11516: # with a fresh cross-compiler works.
11517: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11518: # <limits.h> exists even on freestanding compilers.
11519: # On the NeXT, cc -E runs the code through the compiler's parser,
11520: # not just through cpp. "Syntax error" is here to catch this case.
1.11 ! moko 11521: cat >conftest.$ac_ext <<_ACEOF
! 11522: /* confdefs.h. */
! 11523: _ACEOF
! 11524: cat confdefs.h >>conftest.$ac_ext
! 11525: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11526: /* end confdefs.h. */
11527: #ifdef __STDC__
11528: # include <limits.h>
11529: #else
11530: # include <assert.h>
11531: #endif
11532: Syntax error
11533: _ACEOF
1.11 ! moko 11534: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 11535: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 11536: ac_status=$?
! 11537: grep -v '^ *+' conftest.er1 >conftest.err
! 11538: rm -f conftest.er1
! 11539: cat conftest.err >&5
! 11540: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11541: (exit $ac_status); } >/dev/null; then
! 11542: if test -s conftest.err; then
! 11543: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 11544: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
! 11545: else
! 11546: ac_cpp_err=
! 11547: fi
! 11548: else
! 11549: ac_cpp_err=yes
! 11550: fi
! 11551: if test -z "$ac_cpp_err"; then
! 11552: :
! 11553: else
! 11554: echo "$as_me: failed program was:" >&5
! 11555: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11556:
1.8 moko 11557: # Broken: fails on valid input.
11558: continue
11559: fi
1.11 ! moko 11560: rm -f conftest.err conftest.$ac_ext
1.8 moko 11561:
1.11 ! moko 11562: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11563: # can be detected and how.
1.11 ! moko 11564: cat >conftest.$ac_ext <<_ACEOF
! 11565: /* confdefs.h. */
! 11566: _ACEOF
! 11567: cat confdefs.h >>conftest.$ac_ext
! 11568: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11569: /* end confdefs.h. */
11570: #include <ac_nonexistent.h>
11571: _ACEOF
1.11 ! moko 11572: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 11573: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 11574: ac_status=$?
! 11575: grep -v '^ *+' conftest.er1 >conftest.err
! 11576: rm -f conftest.er1
! 11577: cat conftest.err >&5
! 11578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11579: (exit $ac_status); } >/dev/null; then
! 11580: if test -s conftest.err; then
! 11581: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 11582: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
! 11583: else
! 11584: ac_cpp_err=
! 11585: fi
! 11586: else
! 11587: ac_cpp_err=yes
! 11588: fi
! 11589: if test -z "$ac_cpp_err"; then
1.8 moko 11590: # Broken: success on invalid input.
11591: continue
11592: else
1.11 ! moko 11593: echo "$as_me: failed program was:" >&5
! 11594: sed 's/^/| /' conftest.$ac_ext >&5
! 11595:
1.8 moko 11596: # Passes both tests.
11597: ac_preproc_ok=:
11598: break
11599: fi
1.11 ! moko 11600: rm -f conftest.err conftest.$ac_ext
1.8 moko 11601:
11602: done
11603: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 ! moko 11604: rm -f conftest.err conftest.$ac_ext
! 11605: if $ac_preproc_ok; then
1.8 moko 11606: break
11607: fi
11608:
11609: done
11610: ac_cv_prog_CXXCPP=$CXXCPP
11611:
11612: fi
11613: CXXCPP=$ac_cv_prog_CXXCPP
11614: else
11615: ac_cv_prog_CXXCPP=$CXXCPP
11616: fi
1.11 ! moko 11617: echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 11618: echo "${ECHO_T}$CXXCPP" >&6
1.8 moko 11619: ac_preproc_ok=false
11620: for ac_cxx_preproc_warn_flag in '' yes
11621: do
11622: # Use a header file that comes with gcc, so configuring glibc
11623: # with a fresh cross-compiler works.
11624: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625: # <limits.h> exists even on freestanding compilers.
11626: # On the NeXT, cc -E runs the code through the compiler's parser,
11627: # not just through cpp. "Syntax error" is here to catch this case.
1.11 ! moko 11628: cat >conftest.$ac_ext <<_ACEOF
! 11629: /* confdefs.h. */
! 11630: _ACEOF
! 11631: cat confdefs.h >>conftest.$ac_ext
! 11632: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11633: /* end confdefs.h. */
11634: #ifdef __STDC__
11635: # include <limits.h>
11636: #else
11637: # include <assert.h>
11638: #endif
11639: Syntax error
11640: _ACEOF
1.11 ! moko 11641: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 11642: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 11643: ac_status=$?
! 11644: grep -v '^ *+' conftest.er1 >conftest.err
! 11645: rm -f conftest.er1
! 11646: cat conftest.err >&5
! 11647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11648: (exit $ac_status); } >/dev/null; then
! 11649: if test -s conftest.err; then
! 11650: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 11651: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
! 11652: else
! 11653: ac_cpp_err=
! 11654: fi
! 11655: else
! 11656: ac_cpp_err=yes
! 11657: fi
! 11658: if test -z "$ac_cpp_err"; then
! 11659: :
! 11660: else
! 11661: echo "$as_me: failed program was:" >&5
! 11662: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11663:
11664: # Broken: fails on valid input.
1.8 moko 11665: continue
11666: fi
1.11 ! moko 11667: rm -f conftest.err conftest.$ac_ext
1.8 moko 11668:
1.11 ! moko 11669: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11670: # can be detected and how.
1.11 ! moko 11671: cat >conftest.$ac_ext <<_ACEOF
! 11672: /* confdefs.h. */
! 11673: _ACEOF
! 11674: cat confdefs.h >>conftest.$ac_ext
! 11675: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11676: /* end confdefs.h. */
11677: #include <ac_nonexistent.h>
11678: _ACEOF
1.11 ! moko 11679: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 11680: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 11681: ac_status=$?
! 11682: grep -v '^ *+' conftest.er1 >conftest.err
! 11683: rm -f conftest.er1
! 11684: cat conftest.err >&5
! 11685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11686: (exit $ac_status); } >/dev/null; then
! 11687: if test -s conftest.err; then
! 11688: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 11689: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
! 11690: else
! 11691: ac_cpp_err=
! 11692: fi
! 11693: else
! 11694: ac_cpp_err=yes
! 11695: fi
! 11696: if test -z "$ac_cpp_err"; then
1.8 moko 11697: # Broken: success on invalid input.
11698: continue
11699: else
1.11 ! moko 11700: echo "$as_me: failed program was:" >&5
! 11701: sed 's/^/| /' conftest.$ac_ext >&5
! 11702:
1.8 moko 11703: # Passes both tests.
11704: ac_preproc_ok=:
11705: break
11706: fi
1.11 ! moko 11707: rm -f conftest.err conftest.$ac_ext
1.8 moko 11708:
11709: done
11710: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 ! moko 11711: rm -f conftest.err conftest.$ac_ext
! 11712: if $ac_preproc_ok; then
! 11713: :
1.8 moko 11714: else
1.11 ! moko 11715: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 11716: See \`config.log' for more details." >&5
! 11717: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 11718: See \`config.log' for more details." >&2;}
! 11719: { (exit 1); exit 1; }; }
1.8 moko 11720: fi
11721:
11722: ac_ext=c
11723: ac_cpp='$CPP $CPPFLAGS'
11724: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11725: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11726: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11727:
11728: else
11729: _lt_caught_CXX_error=yes
11730: fi
11731:
1.11 ! moko 11732: ac_ext=cc
1.8 moko 11733: ac_cpp='$CXXCPP $CPPFLAGS'
11734: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11737:
11738: archive_cmds_need_lc_CXX=no
11739: allow_undefined_flag_CXX=
11740: always_export_symbols_CXX=no
11741: archive_expsym_cmds_CXX=
11742: compiler_needs_object_CXX=no
11743: export_dynamic_flag_spec_CXX=
11744: hardcode_direct_CXX=no
11745: hardcode_direct_absolute_CXX=no
11746: hardcode_libdir_flag_spec_CXX=
11747: hardcode_libdir_separator_CXX=
11748: hardcode_minus_L_CXX=no
11749: hardcode_shlibpath_var_CXX=unsupported
11750: hardcode_automatic_CXX=no
11751: inherit_rpath_CXX=no
11752: module_cmds_CXX=
11753: module_expsym_cmds_CXX=
11754: link_all_deplibs_CXX=unknown
11755: old_archive_cmds_CXX=$old_archive_cmds
11756: reload_flag_CXX=$reload_flag
11757: reload_cmds_CXX=$reload_cmds
11758: no_undefined_flag_CXX=
11759: whole_archive_flag_spec_CXX=
11760: enable_shared_with_static_runtimes_CXX=no
11761:
11762: # Source file extension for C++ test sources.
11763: ac_ext=cpp
11764:
11765: # Object file extension for compiled C++ test sources.
11766: objext=o
11767: objext_CXX=$objext
11768:
11769: # No sense in running all these tests if we already determined that
11770: # the CXX compiler isn't working. Some variables (like enable_shared)
11771: # are currently assumed to apply to all compilers on this platform,
11772: # and will be corrupted by setting them based on a non-working compiler.
11773: if test "$_lt_caught_CXX_error" != yes; then
11774: # Code to be used in simple compile tests
11775: lt_simple_compile_test_code="int some_variable = 0;"
11776:
11777: # Code to be used in simple link tests
11778: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11779:
11780: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11781:
11782:
11783:
11784:
11785:
11786:
11787: # If no C compiler was specified, use CC.
11788: LTCC=${LTCC-"$CC"}
11789:
11790: # If no C compiler flags were specified, use CFLAGS.
11791: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11792:
11793: # Allow CC to be a program name with arguments.
11794: compiler=$CC
11795:
11796:
11797: # save warnings/boilerplate of simple test code
11798: ac_outfile=conftest.$ac_objext
11799: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11800: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11801: _lt_compiler_boilerplate=`cat conftest.err`
11802: $RM conftest*
11803:
11804: ac_outfile=conftest.$ac_objext
11805: echo "$lt_simple_link_test_code" >conftest.$ac_ext
11806: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11807: _lt_linker_boilerplate=`cat conftest.err`
11808: $RM -r conftest*
11809:
11810:
11811: # Allow CC to be a program name with arguments.
11812: lt_save_CC=$CC
11813: lt_save_CFLAGS=$CFLAGS
11814: lt_save_LD=$LD
11815: lt_save_GCC=$GCC
11816: GCC=$GXX
11817: lt_save_with_gnu_ld=$with_gnu_ld
11818: lt_save_path_LD=$lt_cv_path_LD
11819: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11820: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11821: else
11822: $as_unset lt_cv_prog_gnu_ld
11823: fi
11824: if test -n "${lt_cv_path_LDCXX+set}"; then
11825: lt_cv_path_LD=$lt_cv_path_LDCXX
11826: else
11827: $as_unset lt_cv_path_LD
11828: fi
11829: test -z "${LDCXX+set}" || LD=$LDCXX
11830: CC=${CXX-"c++"}
11831: CFLAGS=$CXXFLAGS
11832: compiler=$CC
11833: compiler_CXX=$CC
11834: for cc_temp in $compiler""; do
11835: case $cc_temp in
11836: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11837: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11838: \-*) ;;
11839: *) break;;
11840: esac
11841: done
11842: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11843:
11844:
11845: if test -n "$compiler"; then
11846: # We don't want -fno-exception when compiling C++ code, so set the
11847: # no_builtin_flag separately
11848: if test "$GXX" = yes; then
11849: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11850: else
11851: lt_prog_compiler_no_builtin_flag_CXX=
11852: fi
11853:
11854: if test "$GXX" = yes; then
11855: # Set up default GNU C++ configuration
11856:
11857:
11858:
1.11 ! moko 11859: # Check whether --with-gnu-ld or --without-gnu-ld was given.
! 11860: if test "${with_gnu_ld+set}" = set; then
! 11861: withval="$with_gnu_ld"
! 11862: test "$withval" = no || with_gnu_ld=yes
1.8 moko 11863: else
11864: with_gnu_ld=no
1.11 ! moko 11865: fi;
1.8 moko 11866: ac_prog=ld
11867: if test "$GCC" = yes; then
11868: # Check if gcc -print-prog-name=ld gives a path.
1.11 ! moko 11869: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 11870: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 11871: case $host in
11872: *-*-mingw*)
11873: # gcc leaves a trailing carriage return which upsets mingw
11874: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11875: *)
11876: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11877: esac
11878: case $ac_prog in
11879: # Accept absolute paths.
11880: [\\/]* | ?:[\\/]*)
11881: re_direlt='/[^/][^/]*/\.\./'
11882: # Canonicalize the pathname of ld
11883: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11884: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11885: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11886: done
11887: test -z "$LD" && LD="$ac_prog"
11888: ;;
11889: "")
11890: # If it fails, then pretend we aren't using GCC.
11891: ac_prog=ld
11892: ;;
11893: *)
11894: # If it is relative, then search for the first ld in PATH.
11895: with_gnu_ld=unknown
11896: ;;
11897: esac
11898: elif test "$with_gnu_ld" = yes; then
1.11 ! moko 11899: echo "$as_me:$LINENO: checking for GNU ld" >&5
! 11900: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 11901: else
1.11 ! moko 11902: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 11903: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 11904: fi
1.11 ! moko 11905: if test "${lt_cv_path_LD+set}" = set; then
! 11906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11907: else
11908: if test -z "$LD"; then
11909: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11910: for ac_dir in $PATH; do
11911: IFS="$lt_save_ifs"
11912: test -z "$ac_dir" && ac_dir=.
11913: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11914: lt_cv_path_LD="$ac_dir/$ac_prog"
11915: # Check to see if the program is GNU ld. I'd rather use --version,
11916: # but apparently some variants of GNU ld only accept -v.
11917: # Break only if it was the GNU/non-GNU ld that we prefer.
11918: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11919: *GNU* | *'with BFD'*)
11920: test "$with_gnu_ld" != no && break
11921: ;;
11922: *)
11923: test "$with_gnu_ld" != yes && break
11924: ;;
11925: esac
11926: fi
11927: done
11928: IFS="$lt_save_ifs"
11929: else
11930: lt_cv_path_LD="$LD" # Let the user override the test with a path.
11931: fi
11932: fi
11933:
11934: LD="$lt_cv_path_LD"
11935: if test -n "$LD"; then
1.11 ! moko 11936: echo "$as_me:$LINENO: result: $LD" >&5
! 11937: echo "${ECHO_T}$LD" >&6
1.8 moko 11938: else
1.11 ! moko 11939: echo "$as_me:$LINENO: result: no" >&5
! 11940: echo "${ECHO_T}no" >&6
1.8 moko 11941: fi
1.11 ! moko 11942: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 11943: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 11944: { (exit 1); exit 1; }; }
! 11945: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 11946: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
! 11947: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 11948: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11949: else
11950: # I'd rather use --version here, but apparently some GNU lds only accept -v.
11951: case `$LD -v 2>&1 </dev/null` in
11952: *GNU* | *'with BFD'*)
11953: lt_cv_prog_gnu_ld=yes
11954: ;;
11955: *)
11956: lt_cv_prog_gnu_ld=no
11957: ;;
11958: esac
11959: fi
1.11 ! moko 11960: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 11961: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.8 moko 11962: with_gnu_ld=$lt_cv_prog_gnu_ld
11963:
11964:
11965:
11966:
11967:
11968:
11969:
11970: # Check if GNU C++ uses GNU ld as the underlying linker, since the
11971: # archiving commands below assume that GNU ld is being used.
11972: if test "$with_gnu_ld" = yes; then
11973: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11974: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11975:
11976: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11977: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11978:
11979: # If archive_cmds runs LD, not CC, wlarc should be empty
11980: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11981: # investigate it a little bit more. (MM)
11982: wlarc='${wl}'
11983:
11984: # ancient GNU ld didn't support --whole-archive et. al.
11985: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11986: $GREP 'no-whole-archive' > /dev/null; then
11987: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11988: else
11989: whole_archive_flag_spec_CXX=
11990: fi
11991: else
11992: with_gnu_ld=no
11993: wlarc=
11994:
11995: # A generic and very simple default shared library creation
11996: # command for GNU C++ for the case where it uses the native
11997: # linker, instead of GNU ld. If possible, this setting should
11998: # overridden to take advantage of the native linker features on
11999: # the platform it is being used on.
12000: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12001: fi
12002:
12003: # Commands to make compiler produce verbose output that lists
12004: # what "hidden" libraries, object files and flags are used when
12005: # linking a shared library.
12006: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12007:
12008: else
12009: GXX=no
12010: with_gnu_ld=no
12011: wlarc=
12012: fi
12013:
12014: # PORTME: fill in a description of your system's C++ link characteristics
1.11 ! moko 12015: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 12016: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 12017: ld_shlibs_CXX=yes
12018: case $host_os in
12019: aix3*)
12020: # FIXME: insert proper C++ library support
12021: ld_shlibs_CXX=no
12022: ;;
12023: aix[4-9]*)
12024: if test "$host_cpu" = ia64; then
12025: # On IA64, the linker does run time linking by default, so we don't
12026: # have to do anything special.
12027: aix_use_runtimelinking=no
12028: exp_sym_flag='-Bexport'
12029: no_entry_flag=""
12030: else
12031: aix_use_runtimelinking=no
12032:
12033: # Test if we are trying to use run time linking or normal
12034: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12035: # need to do runtime linking.
12036: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12037: for ld_flag in $LDFLAGS; do
12038: case $ld_flag in
12039: *-brtl*)
12040: aix_use_runtimelinking=yes
12041: break
12042: ;;
12043: esac
12044: done
12045: ;;
12046: esac
12047:
12048: exp_sym_flag='-bexport'
12049: no_entry_flag='-bnoentry'
12050: fi
12051:
12052: # When large executables or shared objects are built, AIX ld can
12053: # have problems creating the table of contents. If linking a library
12054: # or program results in "error TOC overflow" add -mminimal-toc to
12055: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12056: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12057:
12058: archive_cmds_CXX=''
12059: hardcode_direct_CXX=yes
12060: hardcode_direct_absolute_CXX=yes
12061: hardcode_libdir_separator_CXX=':'
12062: link_all_deplibs_CXX=yes
12063: file_list_spec_CXX='${wl}-f,'
12064:
12065: if test "$GXX" = yes; then
12066: case $host_os in aix4.[012]|aix4.[012].*)
12067: # We only want to do this on AIX 4.2 and lower, the check
12068: # below for broken collect2 doesn't work under 4.3+
12069: collect2name=`${CC} -print-prog-name=collect2`
12070: if test -f "$collect2name" &&
12071: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12072: then
12073: # We have reworked collect2
12074: :
12075: else
12076: # We have old collect2
12077: hardcode_direct_CXX=unsupported
12078: # It fails to find uninstalled libraries when the uninstalled
12079: # path is not listed in the libpath. Setting hardcode_minus_L
12080: # to unsupported forces relinking
12081: hardcode_minus_L_CXX=yes
12082: hardcode_libdir_flag_spec_CXX='-L$libdir'
12083: hardcode_libdir_separator_CXX=
12084: fi
12085: esac
12086: shared_flag='-shared'
12087: if test "$aix_use_runtimelinking" = yes; then
12088: shared_flag="$shared_flag "'${wl}-G'
12089: fi
12090: else
12091: # not using gcc
12092: if test "$host_cpu" = ia64; then
12093: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12094: # chokes on -Wl,-G. The following line is correct:
12095: shared_flag='-G'
12096: else
12097: if test "$aix_use_runtimelinking" = yes; then
12098: shared_flag='${wl}-G'
12099: else
12100: shared_flag='${wl}-bM:SRE'
12101: fi
12102: fi
12103: fi
12104:
12105: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12106: # It seems that -bexpall does not export symbols beginning with
12107: # underscore (_), so it is better to generate a list of symbols to
12108: # export.
12109: always_export_symbols_CXX=yes
12110: if test "$aix_use_runtimelinking" = yes; then
12111: # Warning - without using the other runtime loading flags (-brtl),
12112: # -berok will link without error, but may produce a broken library.
12113: allow_undefined_flag_CXX='-berok'
12114: # Determine the default libpath from the value encoded in an empty
12115: # executable.
12116: if test "${lt_cv_aix_libpath+set}" = set; then
12117: aix_libpath=$lt_cv_aix_libpath
12118: else
1.11 ! moko 12119: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
! 12120: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12121: else
1.11 ! moko 12122: cat >conftest.$ac_ext <<_ACEOF
! 12123: /* confdefs.h. */
! 12124: _ACEOF
! 12125: cat confdefs.h >>conftest.$ac_ext
! 12126: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12127: /* end confdefs.h. */
12128:
12129: int
12130: main ()
12131: {
12132:
12133: ;
12134: return 0;
12135: }
12136: _ACEOF
1.11 ! moko 12137: rm -f conftest.$ac_objext conftest$ac_exeext
! 12138: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12139: (eval $ac_link) 2>conftest.er1
! 12140: ac_status=$?
! 12141: grep -v '^ *+' conftest.er1 >conftest.err
! 12142: rm -f conftest.er1
! 12143: cat conftest.err >&5
! 12144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12145: (exit $ac_status); } &&
! 12146: { ac_try='test -z "$ac_cxx_werror_flag"
! 12147: || test ! -s conftest.err'
! 12148: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12149: (eval $ac_try) 2>&5
! 12150: ac_status=$?
! 12151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12152: (exit $ac_status); }; } &&
! 12153: { ac_try='test -s conftest$ac_exeext'
! 12154: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12155: (eval $ac_try) 2>&5
! 12156: ac_status=$?
! 12157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12158: (exit $ac_status); }; }; then
1.8 moko 12159:
12160: lt_aix_libpath_sed='
12161: /Import File Strings/,/^$/ {
12162: /^0/ {
12163: s/^0 *\([^ ]*\) *$/\1/
12164: p
12165: }
12166: }'
12167: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12168: # Check for a 64-bit object if we didn't find anything.
12169: if test -z "$lt_cv_aix_libpath__CXX"; then
12170: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12171: fi
1.11 ! moko 12172: else
! 12173: echo "$as_me: failed program was:" >&5
! 12174: sed 's/^/| /' conftest.$ac_ext >&5
! 12175:
1.8 moko 12176: fi
1.11 ! moko 12177: rm -f conftest.err conftest.$ac_objext \
! 12178: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12179: if test -z "$lt_cv_aix_libpath__CXX"; then
12180: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12181: fi
12182:
12183: fi
12184:
12185: aix_libpath=$lt_cv_aix_libpath__CXX
12186: fi
12187:
12188: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12189:
12190: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12191: else
12192: if test "$host_cpu" = ia64; then
12193: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12194: allow_undefined_flag_CXX="-z nodefs"
12195: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12196: else
12197: # Determine the default libpath from the value encoded in an
12198: # empty executable.
12199: if test "${lt_cv_aix_libpath+set}" = set; then
12200: aix_libpath=$lt_cv_aix_libpath
12201: else
1.11 ! moko 12202: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
! 12203: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12204: else
1.11 ! moko 12205: cat >conftest.$ac_ext <<_ACEOF
! 12206: /* confdefs.h. */
! 12207: _ACEOF
! 12208: cat confdefs.h >>conftest.$ac_ext
! 12209: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12210: /* end confdefs.h. */
12211:
12212: int
12213: main ()
12214: {
12215:
12216: ;
12217: return 0;
12218: }
12219: _ACEOF
1.11 ! moko 12220: rm -f conftest.$ac_objext conftest$ac_exeext
! 12221: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12222: (eval $ac_link) 2>conftest.er1
! 12223: ac_status=$?
! 12224: grep -v '^ *+' conftest.er1 >conftest.err
! 12225: rm -f conftest.er1
! 12226: cat conftest.err >&5
! 12227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12228: (exit $ac_status); } &&
! 12229: { ac_try='test -z "$ac_cxx_werror_flag"
! 12230: || test ! -s conftest.err'
! 12231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12232: (eval $ac_try) 2>&5
! 12233: ac_status=$?
! 12234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12235: (exit $ac_status); }; } &&
! 12236: { ac_try='test -s conftest$ac_exeext'
! 12237: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12238: (eval $ac_try) 2>&5
! 12239: ac_status=$?
! 12240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12241: (exit $ac_status); }; }; then
1.8 moko 12242:
12243: lt_aix_libpath_sed='
12244: /Import File Strings/,/^$/ {
12245: /^0/ {
12246: s/^0 *\([^ ]*\) *$/\1/
12247: p
12248: }
12249: }'
12250: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12251: # Check for a 64-bit object if we didn't find anything.
12252: if test -z "$lt_cv_aix_libpath__CXX"; then
12253: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12254: fi
1.11 ! moko 12255: else
! 12256: echo "$as_me: failed program was:" >&5
! 12257: sed 's/^/| /' conftest.$ac_ext >&5
! 12258:
1.8 moko 12259: fi
1.11 ! moko 12260: rm -f conftest.err conftest.$ac_objext \
! 12261: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12262: if test -z "$lt_cv_aix_libpath__CXX"; then
12263: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12264: fi
12265:
12266: fi
12267:
12268: aix_libpath=$lt_cv_aix_libpath__CXX
12269: fi
12270:
12271: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12272: # Warning - without using the other run time loading flags,
12273: # -berok will link without error, but may produce a broken library.
12274: no_undefined_flag_CXX=' ${wl}-bernotok'
12275: allow_undefined_flag_CXX=' ${wl}-berok'
12276: if test "$with_gnu_ld" = yes; then
12277: # We only use this code for GNU lds that support --whole-archive.
12278: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12279: else
12280: # Exported symbols can be pulled into shared objects from archives
12281: whole_archive_flag_spec_CXX='$convenience'
12282: fi
12283: archive_cmds_need_lc_CXX=yes
12284: # This is similar to how AIX traditionally builds its shared
12285: # libraries.
12286: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12287: fi
12288: fi
12289: ;;
12290:
12291: beos*)
12292: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12293: allow_undefined_flag_CXX=unsupported
12294: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12295: # support --undefined. This deserves some investigation. FIXME
12296: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12297: else
12298: ld_shlibs_CXX=no
12299: fi
12300: ;;
12301:
12302: chorus*)
12303: case $cc_basename in
12304: *)
12305: # FIXME: insert proper C++ library support
12306: ld_shlibs_CXX=no
12307: ;;
12308: esac
12309: ;;
12310:
12311: cygwin* | mingw* | pw32* | cegcc*)
12312: case $GXX,$cc_basename in
12313: ,cl* | no,cl*)
12314: # Native MSVC
12315: # hardcode_libdir_flag_spec is actually meaningless, as there is
12316: # no search path for DLLs.
12317: hardcode_libdir_flag_spec_CXX=' '
12318: allow_undefined_flag_CXX=unsupported
12319: always_export_symbols_CXX=yes
12320: file_list_spec_CXX='@'
12321: # Tell ltmain to make .lib files, not .a files.
12322: libext=lib
12323: # Tell ltmain to make .dll files, not .so files.
12324: shrext_cmds=".dll"
12325: # FIXME: Setting linknames here is a bad hack.
12326: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12327: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12328: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12329: else
12330: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12331: fi~
12332: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12333: linknames='
12334: # The linker will not automatically build a static lib if we build a DLL.
12335: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12336: enable_shared_with_static_runtimes_CXX=yes
12337: # Don't use ranlib
12338: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12339: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12340: lt_tool_outputfile="@TOOL_OUTPUT@"~
12341: case $lt_outputfile in
12342: *.exe|*.EXE) ;;
12343: *)
12344: lt_outputfile="$lt_outputfile.exe"
12345: lt_tool_outputfile="$lt_tool_outputfile.exe"
12346: ;;
12347: esac~
12348: func_to_tool_file "$lt_outputfile"~
12349: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12350: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12351: $RM "$lt_outputfile.manifest";
12352: fi'
12353: ;;
12354: *)
12355: # g++
12356: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12357: # as there is no search path for DLLs.
12358: hardcode_libdir_flag_spec_CXX='-L$libdir'
12359: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12360: allow_undefined_flag_CXX=unsupported
12361: always_export_symbols_CXX=no
12362: enable_shared_with_static_runtimes_CXX=yes
12363:
12364: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12365: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12366: # If the export-symbols file already is a .def file (1st line
12367: # is EXPORTS), use it as is; otherwise, prepend...
12368: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12369: cp $export_symbols $output_objdir/$soname.def;
12370: else
12371: echo EXPORTS > $output_objdir/$soname.def;
12372: cat $export_symbols >> $output_objdir/$soname.def;
12373: fi~
12374: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12375: else
12376: ld_shlibs_CXX=no
12377: fi
12378: ;;
12379: esac
12380: ;;
12381: darwin* | rhapsody*)
12382:
12383:
12384: archive_cmds_need_lc_CXX=no
12385: hardcode_direct_CXX=no
12386: hardcode_automatic_CXX=yes
12387: hardcode_shlibpath_var_CXX=unsupported
12388: if test "$lt_cv_ld_force_load" = "yes"; then
12389: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12390:
12391: else
12392: whole_archive_flag_spec_CXX=''
12393: fi
12394: link_all_deplibs_CXX=yes
12395: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12396: case $cc_basename in
12397: ifort*) _lt_dar_can_shared=yes ;;
12398: *) _lt_dar_can_shared=$GCC ;;
12399: esac
12400: if test "$_lt_dar_can_shared" = "yes"; then
12401: output_verbose_link_cmd=func_echo_all
12402: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12403: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12404: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12405: module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12406: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12407: archive_cmds_CXX="\$CC -r -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${_lt_dsymutil}"
12408: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -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${_lt_dar_export_syms}${_lt_dsymutil}"
12409: fi
12410:
12411: else
12412: ld_shlibs_CXX=no
12413: fi
12414:
12415: ;;
12416:
12417: dgux*)
12418: case $cc_basename in
12419: ec++*)
12420: # FIXME: insert proper C++ library support
12421: ld_shlibs_CXX=no
12422: ;;
12423: ghcx*)
12424: # Green Hills C++ Compiler
12425: # FIXME: insert proper C++ library support
12426: ld_shlibs_CXX=no
12427: ;;
12428: *)
12429: # FIXME: insert proper C++ library support
12430: ld_shlibs_CXX=no
12431: ;;
12432: esac
12433: ;;
12434:
12435: freebsd2.*)
12436: # C++ shared libraries reported to be fairly broken before
12437: # switch to ELF
12438: ld_shlibs_CXX=no
12439: ;;
12440:
12441: freebsd-elf*)
12442: archive_cmds_need_lc_CXX=no
12443: ;;
12444:
12445: freebsd* | dragonfly*)
12446: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12447: # conventions
12448: ld_shlibs_CXX=yes
12449: ;;
12450:
12451: gnu*)
12452: ;;
12453:
12454: haiku*)
12455: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12456: link_all_deplibs_CXX=yes
12457: ;;
12458:
12459: hpux9*)
12460: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12461: hardcode_libdir_separator_CXX=:
12462: export_dynamic_flag_spec_CXX='${wl}-E'
12463: hardcode_direct_CXX=yes
12464: hardcode_minus_L_CXX=yes # Not in the search PATH,
12465: # but as the default
12466: # location of the library.
12467:
12468: case $cc_basename in
12469: CC*)
12470: # FIXME: insert proper C++ library support
12471: ld_shlibs_CXX=no
12472: ;;
12473: aCC*)
12474: 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'
12475: # Commands to make compiler produce verbose output that lists
12476: # what "hidden" libraries, object files and flags are used when
12477: # linking a shared library.
12478: #
12479: # There doesn't appear to be a way to prevent this compiler from
12480: # explicitly linking system object files so we need to strip them
12481: # from the output so that they don't get included in the library
12482: # dependencies.
12483: 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; func_echo_all "$list"'
12484: ;;
12485: *)
12486: if test "$GXX" = yes; then
12487: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12488: else
12489: # FIXME: insert proper C++ library support
12490: ld_shlibs_CXX=no
12491: fi
12492: ;;
12493: esac
12494: ;;
12495:
12496: hpux10*|hpux11*)
12497: if test $with_gnu_ld = no; then
12498: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12499: hardcode_libdir_separator_CXX=:
12500:
12501: case $host_cpu in
12502: hppa*64*|ia64*)
12503: ;;
12504: *)
12505: export_dynamic_flag_spec_CXX='${wl}-E'
12506: ;;
12507: esac
12508: fi
12509: case $host_cpu in
12510: hppa*64*|ia64*)
12511: hardcode_direct_CXX=no
12512: hardcode_shlibpath_var_CXX=no
12513: ;;
12514: *)
12515: hardcode_direct_CXX=yes
12516: hardcode_direct_absolute_CXX=yes
12517: hardcode_minus_L_CXX=yes # Not in the search PATH,
12518: # but as the default
12519: # location of the library.
12520: ;;
12521: esac
12522:
12523: case $cc_basename in
12524: CC*)
12525: # FIXME: insert proper C++ library support
12526: ld_shlibs_CXX=no
12527: ;;
12528: aCC*)
12529: case $host_cpu in
12530: hppa*64*)
12531: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12532: ;;
12533: ia64*)
12534: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12535: ;;
12536: *)
12537: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12538: ;;
12539: esac
12540: # Commands to make compiler produce verbose output that lists
12541: # what "hidden" libraries, object files and flags are used when
12542: # linking a shared library.
12543: #
12544: # There doesn't appear to be a way to prevent this compiler from
12545: # explicitly linking system object files so we need to strip them
12546: # from the output so that they don't get included in the library
12547: # dependencies.
12548: 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; func_echo_all "$list"'
12549: ;;
12550: *)
12551: if test "$GXX" = yes; then
12552: if test $with_gnu_ld = no; then
12553: case $host_cpu in
12554: hppa*64*)
12555: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12556: ;;
12557: ia64*)
12558: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12559: ;;
12560: *)
12561: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12562: ;;
12563: esac
12564: fi
12565: else
12566: # FIXME: insert proper C++ library support
12567: ld_shlibs_CXX=no
12568: fi
12569: ;;
12570: esac
12571: ;;
12572:
12573: interix[3-9]*)
12574: hardcode_direct_CXX=no
12575: hardcode_shlibpath_var_CXX=no
12576: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12577: export_dynamic_flag_spec_CXX='${wl}-E'
12578: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12579: # Instead, shared libraries are loaded at an image base (0x10000000 by
12580: # default) and relocated if they conflict, which is a slow very memory
12581: # consuming and fragmenting process. To avoid this, we pick a random,
12582: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12583: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12584: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12585: archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12586: ;;
12587: irix5* | irix6*)
12588: case $cc_basename in
12589: CC*)
12590: # SGI C++
12591: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12592:
12593: # Archives containing C++ object files must be created using
12594: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12595: # necessary to make sure instantiated templates are included
12596: # in the archive.
12597: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12598: ;;
12599: *)
12600: if test "$GXX" = yes; then
12601: if test "$with_gnu_ld" = no; then
12602: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12603: else
12604: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12605: fi
12606: fi
12607: link_all_deplibs_CXX=yes
12608: ;;
12609: esac
12610: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12611: hardcode_libdir_separator_CXX=:
12612: inherit_rpath_CXX=yes
12613: ;;
12614:
12615: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12616: case $cc_basename in
12617: KCC*)
12618: # Kuck and Associates, Inc. (KAI) C++ Compiler
12619:
12620: # KCC will only create a shared library if the output file
12621: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12622: # to its proper name (with version) after linking.
12623: 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'
12624: 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'
12625: # Commands to make compiler produce verbose output that lists
12626: # what "hidden" libraries, object files and flags are used when
12627: # linking a shared library.
12628: #
12629: # There doesn't appear to be a way to prevent this compiler from
12630: # explicitly linking system object files so we need to strip them
12631: # from the output so that they don't get included in the library
12632: # dependencies.
12633: 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; func_echo_all "$list"'
12634:
12635: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12636: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12637:
12638: # Archives containing C++ object files must be created using
12639: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12640: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12641: ;;
12642: icpc* | ecpc* )
12643: # Intel C++
12644: with_gnu_ld=yes
12645: # version 8.0 and above of icpc choke on multiply defined symbols
12646: # if we add $predep_objects and $postdep_objects, however 7.1 and
12647: # earlier do not add the objects themselves.
12648: case `$CC -V 2>&1` in
12649: *"Version 7."*)
12650: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12651: 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'
12652: ;;
12653: *) # Version 8.0 or newer
12654: tmp_idyn=
12655: case $host_cpu in
12656: ia64*) tmp_idyn=' -i_dynamic';;
12657: esac
12658: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12659: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12660: ;;
12661: esac
12662: archive_cmds_need_lc_CXX=no
12663: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12664: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12665: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12666: ;;
12667: pgCC* | pgcpp*)
12668: # Portland Group C++ compiler
12669: case `$CC -V` in
12670: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12671: prelink_cmds_CXX='tpldir=Template.dir~
12672: rm -rf $tpldir~
12673: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12674: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12675: old_archive_cmds_CXX='tpldir=Template.dir~
12676: rm -rf $tpldir~
12677: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12678: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12679: $RANLIB $oldlib'
12680: archive_cmds_CXX='tpldir=Template.dir~
12681: rm -rf $tpldir~
12682: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12683: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12684: archive_expsym_cmds_CXX='tpldir=Template.dir~
12685: rm -rf $tpldir~
12686: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12687: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12688: ;;
12689: *) # Version 6 and above use weak symbols
12690: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12691: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12692: ;;
12693: esac
12694:
12695: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12696: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12697: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12698: ;;
12699: cxx*)
12700: # Compaq C++
12701: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702: 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'
12703:
12704: runpath_var=LD_RUN_PATH
12705: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12706: hardcode_libdir_separator_CXX=:
12707:
12708: # Commands to make compiler produce verbose output that lists
12709: # what "hidden" libraries, object files and flags are used when
12710: # linking a shared library.
12711: #
12712: # There doesn't appear to be a way to prevent this compiler from
12713: # explicitly linking system object files so we need to strip them
12714: # from the output so that they don't get included in the library
12715: # dependencies.
12716: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
12717: ;;
12718: xl* | mpixl* | bgxl*)
12719: # IBM XL 8.0 on PPC, with GNU ld
12720: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12721: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12722: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12723: if test "x$supports_anon_versioning" = xyes; then
12724: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12725: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12726: echo "local: *; };" >> $output_objdir/$libname.ver~
12727: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12728: fi
12729: ;;
12730: *)
12731: case `$CC -V 2>&1 | sed 5q` in
12732: *Sun\ C*)
12733: # Sun C++ 5.9
12734: no_undefined_flag_CXX=' -zdefs'
12735: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12736: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12737: hardcode_libdir_flag_spec_CXX='-R$libdir'
12738: whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12739: compiler_needs_object_CXX=yes
12740:
12741: # Not sure whether something based on
12742: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12743: # would be better.
12744: output_verbose_link_cmd='func_echo_all'
12745:
12746: # Archives containing C++ object files must be created using
12747: # "CC -xar", where "CC" is the Sun C++ compiler. This is
12748: # necessary to make sure instantiated templates are included
12749: # in the archive.
12750: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12751: ;;
12752: esac
12753: ;;
12754: esac
12755: ;;
12756:
12757: lynxos*)
12758: # FIXME: insert proper C++ library support
12759: ld_shlibs_CXX=no
12760: ;;
12761:
12762: m88k*)
12763: # FIXME: insert proper C++ library support
12764: ld_shlibs_CXX=no
12765: ;;
12766:
12767: mvs*)
12768: case $cc_basename in
12769: cxx*)
12770: # FIXME: insert proper C++ library support
12771: ld_shlibs_CXX=no
12772: ;;
12773: *)
12774: # FIXME: insert proper C++ library support
12775: ld_shlibs_CXX=no
12776: ;;
12777: esac
12778: ;;
12779:
12780: netbsd*)
12781: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12782: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12783: wlarc=
12784: hardcode_libdir_flag_spec_CXX='-R$libdir'
12785: hardcode_direct_CXX=yes
12786: hardcode_shlibpath_var_CXX=no
12787: fi
12788: # Workaround some broken pre-1.5 toolchains
12789: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12790: ;;
12791:
12792: *nto* | *qnx*)
12793: ld_shlibs_CXX=yes
12794: ;;
12795:
12796: openbsd2*)
12797: # C++ shared libraries are fairly broken
12798: ld_shlibs_CXX=no
12799: ;;
12800:
12801: openbsd*)
12802: if test -f /usr/libexec/ld.so; then
12803: hardcode_direct_CXX=yes
12804: hardcode_shlibpath_var_CXX=no
12805: hardcode_direct_absolute_CXX=yes
12806: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12807: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12808: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12809: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12810: export_dynamic_flag_spec_CXX='${wl}-E'
12811: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12812: fi
12813: output_verbose_link_cmd=func_echo_all
12814: else
12815: ld_shlibs_CXX=no
12816: fi
12817: ;;
12818:
12819: osf3* | osf4* | osf5*)
12820: case $cc_basename in
12821: KCC*)
12822: # Kuck and Associates, Inc. (KAI) C++ Compiler
12823:
12824: # KCC will only create a shared library if the output file
12825: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12826: # to its proper name (with version) after linking.
12827: 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'
12828:
12829: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12830: hardcode_libdir_separator_CXX=:
12831:
12832: # Archives containing C++ object files must be created using
12833: # the KAI C++ compiler.
12834: case $host in
12835: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12836: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12837: esac
12838: ;;
12839: RCC*)
12840: # Rational C++ 2.4.1
12841: # FIXME: insert proper C++ library support
12842: ld_shlibs_CXX=no
12843: ;;
12844: cxx*)
12845: case $host in
12846: osf3*)
12847: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12848: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12849: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12850: ;;
12851: *)
12852: allow_undefined_flag_CXX=' -expect_unresolved \*'
12853: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12854: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12855: echo "-hidden">> $lib.exp~
12856: $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 ${output_objdir}/so_locations -o $lib~
12857: $RM $lib.exp'
12858: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12859: ;;
12860: esac
12861:
12862: hardcode_libdir_separator_CXX=:
12863:
12864: # Commands to make compiler produce verbose output that lists
12865: # what "hidden" libraries, object files and flags are used when
12866: # linking a shared library.
12867: #
12868: # There doesn't appear to be a way to prevent this compiler from
12869: # explicitly linking system object files so we need to strip them
12870: # from the output so that they don't get included in the library
12871: # dependencies.
12872: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
12873: ;;
12874: *)
12875: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12876: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12877: case $host in
12878: osf3*)
12879: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12880: ;;
12881: *)
12882: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12883: ;;
12884: esac
12885:
12886: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12887: hardcode_libdir_separator_CXX=:
12888:
12889: # Commands to make compiler produce verbose output that lists
12890: # what "hidden" libraries, object files and flags are used when
12891: # linking a shared library.
12892: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12893:
12894: else
12895: # FIXME: insert proper C++ library support
12896: ld_shlibs_CXX=no
12897: fi
12898: ;;
12899: esac
12900: ;;
12901:
12902: psos*)
12903: # FIXME: insert proper C++ library support
12904: ld_shlibs_CXX=no
12905: ;;
12906:
12907: sunos4*)
12908: case $cc_basename in
12909: CC*)
12910: # Sun C++ 4.x
12911: # FIXME: insert proper C++ library support
12912: ld_shlibs_CXX=no
12913: ;;
12914: lcc*)
12915: # Lucid
12916: # FIXME: insert proper C++ library support
12917: ld_shlibs_CXX=no
12918: ;;
12919: *)
12920: # FIXME: insert proper C++ library support
12921: ld_shlibs_CXX=no
12922: ;;
12923: esac
12924: ;;
12925:
12926: solaris*)
12927: case $cc_basename in
12928: CC* | sunCC*)
12929: # Sun C++ 4.2, 5.x and Centerline C++
12930: archive_cmds_need_lc_CXX=yes
12931: no_undefined_flag_CXX=' -zdefs'
12932: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12933: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12934: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12935:
12936: hardcode_libdir_flag_spec_CXX='-R$libdir'
12937: hardcode_shlibpath_var_CXX=no
12938: case $host_os in
12939: solaris2.[0-5] | solaris2.[0-5].*) ;;
12940: *)
12941: # The compiler driver will combine and reorder linker options,
12942: # but understands `-z linker_flag'.
12943: # Supported since Solaris 2.6 (maybe 2.5.1?)
12944: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12945: ;;
12946: esac
12947: link_all_deplibs_CXX=yes
12948:
12949: output_verbose_link_cmd='func_echo_all'
12950:
12951: # Archives containing C++ object files must be created using
12952: # "CC -xar", where "CC" is the Sun C++ compiler. This is
12953: # necessary to make sure instantiated templates are included
12954: # in the archive.
12955: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12956: ;;
12957: gcx*)
12958: # Green Hills C++ Compiler
12959: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12960:
12961: # The C++ compiler must be used to create the archive.
12962: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12963: ;;
12964: *)
12965: # GNU C++ compiler with Solaris linker
12966: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12967: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12968: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12969: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12970: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12971: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12972:
12973: # Commands to make compiler produce verbose output that lists
12974: # what "hidden" libraries, object files and flags are used when
12975: # linking a shared library.
12976: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12977: else
12978: # g++ 2.7 appears to require `-G' NOT `-shared' on this
12979: # platform.
12980: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12981: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12982: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12983:
12984: # Commands to make compiler produce verbose output that lists
12985: # what "hidden" libraries, object files and flags are used when
12986: # linking a shared library.
12987: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12988: fi
12989:
12990: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12991: case $host_os in
12992: solaris2.[0-5] | solaris2.[0-5].*) ;;
12993: *)
12994: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12995: ;;
12996: esac
12997: fi
12998: ;;
12999: esac
13000: ;;
13001:
13002: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13003: no_undefined_flag_CXX='${wl}-z,text'
13004: archive_cmds_need_lc_CXX=no
13005: hardcode_shlibpath_var_CXX=no
13006: runpath_var='LD_RUN_PATH'
13007:
13008: case $cc_basename in
13009: CC*)
13010: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13011: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13012: ;;
13013: *)
13014: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13016: ;;
13017: esac
13018: ;;
13019:
13020: sysv5* | sco3.2v5* | sco5v6*)
13021: # Note: We can NOT use -z defs as we might desire, because we do not
13022: # link with -lc, and that would cause any symbols used from libc to
13023: # always be unresolved, which means just about no library would
13024: # ever link correctly. If we're not using GNU ld we use -z text
13025: # though, which does catch some bad symbols but isn't as heavy-handed
13026: # as -z defs.
13027: no_undefined_flag_CXX='${wl}-z,text'
13028: allow_undefined_flag_CXX='${wl}-z,nodefs'
13029: archive_cmds_need_lc_CXX=no
13030: hardcode_shlibpath_var_CXX=no
13031: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13032: hardcode_libdir_separator_CXX=':'
13033: link_all_deplibs_CXX=yes
13034: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13035: runpath_var='LD_RUN_PATH'
13036:
13037: case $cc_basename in
13038: CC*)
13039: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13040: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13042: '"$old_archive_cmds_CXX"
13043: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13044: '"$reload_cmds_CXX"
13045: ;;
13046: *)
13047: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13048: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049: ;;
13050: esac
13051: ;;
13052:
13053: tandem*)
13054: case $cc_basename in
13055: NCC*)
13056: # NonStop-UX NCC 3.20
13057: # FIXME: insert proper C++ library support
13058: ld_shlibs_CXX=no
13059: ;;
13060: *)
13061: # FIXME: insert proper C++ library support
13062: ld_shlibs_CXX=no
13063: ;;
13064: esac
13065: ;;
13066:
13067: vxworks*)
13068: # FIXME: insert proper C++ library support
13069: ld_shlibs_CXX=no
13070: ;;
13071:
13072: *)
13073: # FIXME: insert proper C++ library support
13074: ld_shlibs_CXX=no
13075: ;;
13076: esac
13077:
1.11 ! moko 13078: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 13079: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 13080: test "$ld_shlibs_CXX" = no && can_build_shared=no
13081:
13082: GCC_CXX="$GXX"
13083: LD_CXX="$LD"
13084:
13085: ## CAVEAT EMPTOR:
13086: ## There is no encapsulation within the following macros, do not change
13087: ## the running order or otherwise move them around unless you know exactly
13088: ## what you are doing...
13089: # Dependencies to place before and after the object being linked:
13090: predep_objects_CXX=
13091: postdep_objects_CXX=
13092: predeps_CXX=
13093: postdeps_CXX=
13094: compiler_lib_search_path_CXX=
13095:
13096: cat > conftest.$ac_ext <<_LT_EOF
13097: class Foo
13098: {
13099: public:
13100: Foo (void) { a = 0; }
13101: private:
13102: int a;
13103: };
13104: _LT_EOF
13105:
13106:
13107: _lt_libdeps_save_CFLAGS=$CFLAGS
13108: case "$CC $CFLAGS " in #(
13109: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13110: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13111: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13112: esac
13113:
1.11 ! moko 13114: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 13115: (eval $ac_compile) 2>&5
13116: ac_status=$?
1.11 ! moko 13117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13118: (exit $ac_status); }; then
1.8 moko 13119: # Parse the compiler output and extract the necessary
13120: # objects, libraries and library flags.
13121:
13122: # Sentinel used to keep track of whether or not we are before
13123: # the conftest object file.
13124: pre_test_object_deps_done=no
13125:
13126: for p in `eval "$output_verbose_link_cmd"`; do
13127: case ${prev}${p} in
13128:
13129: -L* | -R* | -l*)
13130: # Some compilers place space between "-{L,R}" and the path.
13131: # Remove the space.
13132: if test $p = "-L" ||
13133: test $p = "-R"; then
13134: prev=$p
13135: continue
13136: fi
13137:
13138: # Expand the sysroot to ease extracting the directories later.
13139: if test -z "$prev"; then
13140: case $p in
13141: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13142: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13143: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13144: esac
13145: fi
13146: case $p in
13147: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13148: esac
13149: if test "$pre_test_object_deps_done" = no; then
13150: case ${prev} in
13151: -L | -R)
13152: # Internal compiler library paths should come after those
13153: # provided the user. The postdeps already come after the
13154: # user supplied libs so there is no need to process them.
13155: if test -z "$compiler_lib_search_path_CXX"; then
13156: compiler_lib_search_path_CXX="${prev}${p}"
13157: else
13158: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13159: fi
13160: ;;
13161: # The "-l" case would never come before the object being
13162: # linked, so don't bother handling this case.
13163: esac
13164: else
13165: if test -z "$postdeps_CXX"; then
13166: postdeps_CXX="${prev}${p}"
13167: else
13168: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13169: fi
13170: fi
13171: prev=
13172: ;;
13173:
13174: *.lto.$objext) ;; # Ignore GCC LTO objects
13175: *.$objext)
13176: # This assumes that the test object file only shows up
13177: # once in the compiler output.
13178: if test "$p" = "conftest.$objext"; then
13179: pre_test_object_deps_done=yes
13180: continue
13181: fi
13182:
13183: if test "$pre_test_object_deps_done" = no; then
13184: if test -z "$predep_objects_CXX"; then
13185: predep_objects_CXX="$p"
13186: else
13187: predep_objects_CXX="$predep_objects_CXX $p"
13188: fi
13189: else
13190: if test -z "$postdep_objects_CXX"; then
13191: postdep_objects_CXX="$p"
13192: else
13193: postdep_objects_CXX="$postdep_objects_CXX $p"
13194: fi
13195: fi
13196: ;;
13197:
13198: *) ;; # Ignore the rest.
13199:
13200: esac
13201: done
13202:
13203: # Clean up.
13204: rm -f a.out a.exe
13205: else
13206: echo "libtool.m4: error: problem compiling CXX test program"
13207: fi
13208:
13209: $RM -f confest.$objext
13210: CFLAGS=$_lt_libdeps_save_CFLAGS
13211:
13212: # PORTME: override above test on systems where it is broken
13213: case $host_os in
13214: interix[3-9]*)
13215: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13216: # hack all around it, let's just trust "g++" to DTRT.
13217: predep_objects_CXX=
13218: postdep_objects_CXX=
13219: postdeps_CXX=
13220: ;;
13221:
13222: linux*)
13223: case `$CC -V 2>&1 | sed 5q` in
13224: *Sun\ C*)
13225: # Sun C++ 5.9
13226:
13227: # The more standards-conforming stlport4 library is
13228: # incompatible with the Cstd library. Avoid specifying
13229: # it if it's in CXXFLAGS. Ignore libCrun as
13230: # -library=stlport4 depends on it.
13231: case " $CXX $CXXFLAGS " in
13232: *" -library=stlport4 "*)
13233: solaris_use_stlport4=yes
13234: ;;
13235: esac
13236:
13237: if test "$solaris_use_stlport4" != yes; then
13238: postdeps_CXX='-library=Cstd -library=Crun'
13239: fi
13240: ;;
13241: esac
13242: ;;
13243:
13244: solaris*)
13245: case $cc_basename in
13246: CC* | sunCC*)
13247: # The more standards-conforming stlport4 library is
13248: # incompatible with the Cstd library. Avoid specifying
13249: # it if it's in CXXFLAGS. Ignore libCrun as
13250: # -library=stlport4 depends on it.
13251: case " $CXX $CXXFLAGS " in
13252: *" -library=stlport4 "*)
13253: solaris_use_stlport4=yes
13254: ;;
13255: esac
13256:
13257: # Adding this requires a known-good setup of shared libraries for
13258: # Sun compiler versions before 5.6, else PIC objects from an old
13259: # archive will be linked into the output, leading to subtle bugs.
13260: if test "$solaris_use_stlport4" != yes; then
13261: postdeps_CXX='-library=Cstd -library=Crun'
13262: fi
13263: ;;
13264: esac
13265: ;;
13266: esac
13267:
13268:
13269: case " $postdeps_CXX " in
13270: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13271: esac
13272: compiler_lib_search_dirs_CXX=
13273: if test -n "${compiler_lib_search_path_CXX}"; then
13274: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13275: fi
13276:
13277:
13278:
13279:
13280:
13281:
13282:
13283:
13284:
13285:
13286:
13287:
13288:
13289:
13290:
13291:
13292:
13293:
13294:
13295:
13296:
13297:
13298:
13299:
13300:
13301:
13302:
13303:
13304:
13305:
13306:
13307: lt_prog_compiler_wl_CXX=
13308: lt_prog_compiler_pic_CXX=
13309: lt_prog_compiler_static_CXX=
13310:
13311:
13312: # C++ specific cases for pic, static, wl, etc.
13313: if test "$GXX" = yes; then
13314: lt_prog_compiler_wl_CXX='-Wl,'
13315: lt_prog_compiler_static_CXX='-static'
13316:
13317: case $host_os in
13318: aix*)
13319: # All AIX code is PIC.
13320: if test "$host_cpu" = ia64; then
13321: # AIX 5 now supports IA64 processor
13322: lt_prog_compiler_static_CXX='-Bstatic'
13323: fi
13324: ;;
13325:
13326: amigaos*)
13327: case $host_cpu in
13328: powerpc)
13329: # see comment about AmigaOS4 .so support
13330: lt_prog_compiler_pic_CXX='-fPIC'
13331: ;;
13332: m68k)
13333: # FIXME: we need at least 68020 code to build shared libraries, but
13334: # adding the `-m68020' flag to GCC prevents building anything better,
13335: # like `-m68040'.
13336: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13337: ;;
13338: esac
13339: ;;
13340:
13341: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13342: # PIC is the default for these OSes.
13343: ;;
13344: mingw* | cygwin* | os2* | pw32* | cegcc*)
13345: # This hack is so that the source file can tell whether it is being
13346: # built for inclusion in a dll (and should export symbols for example).
13347: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13348: # (--disable-auto-import) libraries
13349: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13350: ;;
13351: darwin* | rhapsody*)
13352: # PIC is the default on this platform
13353: # Common symbols not allowed in MH_DYLIB files
13354: lt_prog_compiler_pic_CXX='-fno-common'
13355: ;;
13356: *djgpp*)
13357: # DJGPP does not support shared libraries at all
13358: lt_prog_compiler_pic_CXX=
13359: ;;
13360: haiku*)
13361: # PIC is the default for Haiku.
13362: # The "-static" flag exists, but is broken.
13363: lt_prog_compiler_static_CXX=
13364: ;;
13365: interix[3-9]*)
13366: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13367: # Instead, we relocate shared libraries at runtime.
13368: ;;
13369: sysv4*MP*)
13370: if test -d /usr/nec; then
13371: lt_prog_compiler_pic_CXX=-Kconform_pic
13372: fi
13373: ;;
13374: hpux*)
13375: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13376: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13377: # sets the default TLS model and affects inlining.
13378: case $host_cpu in
13379: hppa*64*)
13380: ;;
13381: *)
13382: lt_prog_compiler_pic_CXX='-fPIC'
13383: ;;
13384: esac
13385: ;;
13386: *qnx* | *nto*)
13387: # QNX uses GNU C++, but need to define -shared option too, otherwise
13388: # it will coredump.
13389: lt_prog_compiler_pic_CXX='-fPIC -shared'
13390: ;;
13391: *)
13392: lt_prog_compiler_pic_CXX='-fPIC'
13393: ;;
13394: esac
13395: else
13396: case $host_os in
13397: aix[4-9]*)
13398: # All AIX code is PIC.
13399: if test "$host_cpu" = ia64; then
13400: # AIX 5 now supports IA64 processor
13401: lt_prog_compiler_static_CXX='-Bstatic'
13402: else
13403: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13404: fi
13405: ;;
13406: chorus*)
13407: case $cc_basename in
13408: cxch68*)
13409: # Green Hills C++ Compiler
13410: # _LT_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"
13411: ;;
13412: esac
13413: ;;
13414: mingw* | cygwin* | os2* | pw32* | cegcc*)
13415: # This hack is so that the source file can tell whether it is being
13416: # built for inclusion in a dll (and should export symbols for example).
13417: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13418: ;;
13419: dgux*)
13420: case $cc_basename in
13421: ec++*)
13422: lt_prog_compiler_pic_CXX='-KPIC'
13423: ;;
13424: ghcx*)
13425: # Green Hills C++ Compiler
13426: lt_prog_compiler_pic_CXX='-pic'
13427: ;;
13428: *)
13429: ;;
13430: esac
13431: ;;
13432: freebsd* | dragonfly*)
13433: # FreeBSD uses GNU C++
13434: ;;
13435: hpux9* | hpux10* | hpux11*)
13436: case $cc_basename in
13437: CC*)
13438: lt_prog_compiler_wl_CXX='-Wl,'
13439: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13440: if test "$host_cpu" != ia64; then
13441: lt_prog_compiler_pic_CXX='+Z'
13442: fi
13443: ;;
13444: aCC*)
13445: lt_prog_compiler_wl_CXX='-Wl,'
13446: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13447: case $host_cpu in
13448: hppa*64*|ia64*)
13449: # +Z the default
13450: ;;
13451: *)
13452: lt_prog_compiler_pic_CXX='+Z'
13453: ;;
13454: esac
13455: ;;
13456: *)
13457: ;;
13458: esac
13459: ;;
13460: interix*)
13461: # This is c89, which is MS Visual C++ (no shared libs)
13462: # Anyone wants to do a port?
13463: ;;
13464: irix5* | irix6* | nonstopux*)
13465: case $cc_basename in
13466: CC*)
13467: lt_prog_compiler_wl_CXX='-Wl,'
13468: lt_prog_compiler_static_CXX='-non_shared'
13469: # CC pic flag -KPIC is the default.
13470: ;;
13471: *)
13472: ;;
13473: esac
13474: ;;
13475: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13476: case $cc_basename in
13477: KCC*)
13478: # KAI C++ Compiler
13479: lt_prog_compiler_wl_CXX='--backend -Wl,'
13480: lt_prog_compiler_pic_CXX='-fPIC'
13481: ;;
13482: ecpc* )
13483: # old Intel C++ for x86_64 which still supported -KPIC.
13484: lt_prog_compiler_wl_CXX='-Wl,'
13485: lt_prog_compiler_pic_CXX='-KPIC'
13486: lt_prog_compiler_static_CXX='-static'
13487: ;;
13488: icpc* )
13489: # Intel C++, used to be incompatible with GCC.
13490: # ICC 10 doesn't accept -KPIC any more.
13491: lt_prog_compiler_wl_CXX='-Wl,'
13492: lt_prog_compiler_pic_CXX='-fPIC'
13493: lt_prog_compiler_static_CXX='-static'
13494: ;;
13495: pgCC* | pgcpp*)
13496: # Portland Group C++ compiler
13497: lt_prog_compiler_wl_CXX='-Wl,'
13498: lt_prog_compiler_pic_CXX='-fpic'
13499: lt_prog_compiler_static_CXX='-Bstatic'
13500: ;;
13501: cxx*)
13502: # Compaq C++
13503: # Make sure the PIC flag is empty. It appears that all Alpha
13504: # Linux and Compaq Tru64 Unix objects are PIC.
13505: lt_prog_compiler_pic_CXX=
13506: lt_prog_compiler_static_CXX='-non_shared'
13507: ;;
13508: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13509: # IBM XL 8.0, 9.0 on PPC and BlueGene
13510: lt_prog_compiler_wl_CXX='-Wl,'
13511: lt_prog_compiler_pic_CXX='-qpic'
13512: lt_prog_compiler_static_CXX='-qstaticlink'
13513: ;;
13514: *)
13515: case `$CC -V 2>&1 | sed 5q` in
13516: *Sun\ C*)
13517: # Sun C++ 5.9
13518: lt_prog_compiler_pic_CXX='-KPIC'
13519: lt_prog_compiler_static_CXX='-Bstatic'
13520: lt_prog_compiler_wl_CXX='-Qoption ld '
13521: ;;
13522: esac
13523: ;;
13524: esac
13525: ;;
13526: lynxos*)
13527: ;;
13528: m88k*)
13529: ;;
13530: mvs*)
13531: case $cc_basename in
13532: cxx*)
13533: lt_prog_compiler_pic_CXX='-W c,exportall'
13534: ;;
13535: *)
13536: ;;
13537: esac
13538: ;;
13539: netbsd*)
13540: ;;
13541: *qnx* | *nto*)
13542: # QNX uses GNU C++, but need to define -shared option too, otherwise
13543: # it will coredump.
13544: lt_prog_compiler_pic_CXX='-fPIC -shared'
13545: ;;
13546: osf3* | osf4* | osf5*)
13547: case $cc_basename in
13548: KCC*)
13549: lt_prog_compiler_wl_CXX='--backend -Wl,'
13550: ;;
13551: RCC*)
13552: # Rational C++ 2.4.1
13553: lt_prog_compiler_pic_CXX='-pic'
13554: ;;
13555: cxx*)
13556: # Digital/Compaq C++
13557: lt_prog_compiler_wl_CXX='-Wl,'
13558: # Make sure the PIC flag is empty. It appears that all Alpha
13559: # Linux and Compaq Tru64 Unix objects are PIC.
13560: lt_prog_compiler_pic_CXX=
13561: lt_prog_compiler_static_CXX='-non_shared'
13562: ;;
13563: *)
13564: ;;
13565: esac
13566: ;;
13567: psos*)
13568: ;;
13569: solaris*)
13570: case $cc_basename in
13571: CC* | sunCC*)
13572: # Sun C++ 4.2, 5.x and Centerline C++
13573: lt_prog_compiler_pic_CXX='-KPIC'
13574: lt_prog_compiler_static_CXX='-Bstatic'
13575: lt_prog_compiler_wl_CXX='-Qoption ld '
13576: ;;
13577: gcx*)
13578: # Green Hills C++ Compiler
13579: lt_prog_compiler_pic_CXX='-PIC'
13580: ;;
13581: *)
13582: ;;
13583: esac
13584: ;;
13585: sunos4*)
13586: case $cc_basename in
13587: CC*)
13588: # Sun C++ 4.x
13589: lt_prog_compiler_pic_CXX='-pic'
13590: lt_prog_compiler_static_CXX='-Bstatic'
13591: ;;
13592: lcc*)
13593: # Lucid
13594: lt_prog_compiler_pic_CXX='-pic'
13595: ;;
13596: *)
13597: ;;
13598: esac
13599: ;;
13600: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13601: case $cc_basename in
13602: CC*)
13603: lt_prog_compiler_wl_CXX='-Wl,'
13604: lt_prog_compiler_pic_CXX='-KPIC'
13605: lt_prog_compiler_static_CXX='-Bstatic'
13606: ;;
13607: esac
13608: ;;
13609: tandem*)
13610: case $cc_basename in
13611: NCC*)
13612: # NonStop-UX NCC 3.20
13613: lt_prog_compiler_pic_CXX='-KPIC'
13614: ;;
13615: *)
13616: ;;
13617: esac
13618: ;;
13619: vxworks*)
13620: ;;
13621: *)
13622: lt_prog_compiler_can_build_shared_CXX=no
13623: ;;
13624: esac
13625: fi
13626:
13627: case $host_os in
13628: # For platforms which do not support PIC, -DPIC is meaningless:
13629: *djgpp*)
13630: lt_prog_compiler_pic_CXX=
13631: ;;
13632: *)
13633: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13634: ;;
13635: esac
13636:
1.11 ! moko 13637: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 13638: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 13639: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
! 13640: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13641: else
13642: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13643: fi
1.11 ! moko 13644: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
! 13645: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
1.8 moko 13646: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13647:
13648: #
13649: # Check to make sure the PIC flag actually works.
13650: #
13651: if test -n "$lt_prog_compiler_pic_CXX"; then
1.11 ! moko 13652: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 13653: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
! 13654: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
! 13655: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13656: else
13657: lt_cv_prog_compiler_pic_works_CXX=no
13658: ac_outfile=conftest.$ac_objext
13659: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13660: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13661: # Insert the option either (1) after the last *FLAGS variable, or
13662: # (2) before a word containing "conftest.", or (3) at the end.
13663: # Note that $ac_compile itself does not contain backslashes and begins
13664: # with a dollar sign (not a hyphen), so the echo should work correctly.
13665: # The option is referenced via a variable to avoid confusing sed.
13666: lt_compile=`echo "$ac_compile" | $SED \
13667: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13668: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13669: -e 's:$: $lt_compiler_flag:'`
13670: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13671: (eval "$lt_compile" 2>conftest.err)
13672: ac_status=$?
13673: cat conftest.err >&5
13674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675: if (exit $ac_status) && test -s "$ac_outfile"; then
13676: # The compiler can only warn and ignore the option if not recognized
13677: # So say no if there are warnings other than the usual output.
13678: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13679: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13680: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13681: lt_cv_prog_compiler_pic_works_CXX=yes
13682: fi
13683: fi
13684: $RM conftest*
13685:
13686: fi
1.11 ! moko 13687: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
! 13688: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
1.8 moko 13689:
13690: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13691: case $lt_prog_compiler_pic_CXX in
13692: "" | " "*) ;;
13693: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13694: esac
13695: else
13696: lt_prog_compiler_pic_CXX=
13697: lt_prog_compiler_can_build_shared_CXX=no
13698: fi
13699:
13700: fi
13701:
13702:
13703:
13704:
13705:
13706: #
13707: # Check to make sure the static flag actually works.
13708: #
13709: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.11 ! moko 13710: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 13711: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
! 13712: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
! 13713: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13714: else
13715: lt_cv_prog_compiler_static_works_CXX=no
13716: save_LDFLAGS="$LDFLAGS"
13717: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13718: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13719: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13720: # The linker can only warn and ignore the option if not recognized
13721: # So say no if there are warnings
13722: if test -s conftest.err; then
13723: # Append any errors to the config.log.
13724: cat conftest.err 1>&5
13725: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13726: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13727: if diff conftest.exp conftest.er2 >/dev/null; then
13728: lt_cv_prog_compiler_static_works_CXX=yes
13729: fi
13730: else
13731: lt_cv_prog_compiler_static_works_CXX=yes
13732: fi
13733: fi
13734: $RM -r conftest*
13735: LDFLAGS="$save_LDFLAGS"
13736:
13737: fi
1.11 ! moko 13738: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
! 13739: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
1.8 moko 13740:
13741: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13742: :
13743: else
13744: lt_prog_compiler_static_CXX=
13745: fi
13746:
13747:
13748:
13749:
1.11 ! moko 13750: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 13751: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 13752: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
! 13753: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13754: else
13755: lt_cv_prog_compiler_c_o_CXX=no
13756: $RM -r conftest 2>/dev/null
13757: mkdir conftest
13758: cd conftest
13759: mkdir out
13760: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13761:
13762: lt_compiler_flag="-o out/conftest2.$ac_objext"
13763: # Insert the option either (1) after the last *FLAGS variable, or
13764: # (2) before a word containing "conftest.", or (3) at the end.
13765: # Note that $ac_compile itself does not contain backslashes and begins
13766: # with a dollar sign (not a hyphen), so the echo should work correctly.
13767: lt_compile=`echo "$ac_compile" | $SED \
13768: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13769: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13770: -e 's:$: $lt_compiler_flag:'`
13771: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13772: (eval "$lt_compile" 2>out/conftest.err)
13773: ac_status=$?
13774: cat out/conftest.err >&5
13775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776: if (exit $ac_status) && test -s out/conftest2.$ac_objext
13777: then
13778: # The compiler can only warn and ignore the option if not recognized
13779: # So say no if there are warnings
13780: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13781: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13782: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13783: lt_cv_prog_compiler_c_o_CXX=yes
13784: fi
13785: fi
13786: chmod u+w . 2>&5
13787: $RM conftest*
13788: # SGI C++ compiler will create directory out/ii_files/ for
13789: # template instantiation
13790: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13791: $RM out/* && rmdir out
13792: cd ..
13793: $RM -r conftest
13794: $RM conftest*
13795:
13796: fi
1.11 ! moko 13797: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 13798: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 13799:
13800:
13801:
1.11 ! moko 13802: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 13803: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 13804: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
! 13805: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13806: else
13807: lt_cv_prog_compiler_c_o_CXX=no
13808: $RM -r conftest 2>/dev/null
13809: mkdir conftest
13810: cd conftest
13811: mkdir out
13812: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13813:
13814: lt_compiler_flag="-o out/conftest2.$ac_objext"
13815: # Insert the option either (1) after the last *FLAGS variable, or
13816: # (2) before a word containing "conftest.", or (3) at the end.
13817: # Note that $ac_compile itself does not contain backslashes and begins
13818: # with a dollar sign (not a hyphen), so the echo should work correctly.
13819: lt_compile=`echo "$ac_compile" | $SED \
13820: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13821: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13822: -e 's:$: $lt_compiler_flag:'`
13823: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13824: (eval "$lt_compile" 2>out/conftest.err)
13825: ac_status=$?
13826: cat out/conftest.err >&5
13827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828: if (exit $ac_status) && test -s out/conftest2.$ac_objext
13829: then
13830: # The compiler can only warn and ignore the option if not recognized
13831: # So say no if there are warnings
13832: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13833: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13834: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13835: lt_cv_prog_compiler_c_o_CXX=yes
13836: fi
13837: fi
13838: chmod u+w . 2>&5
13839: $RM conftest*
13840: # SGI C++ compiler will create directory out/ii_files/ for
13841: # template instantiation
13842: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13843: $RM out/* && rmdir out
13844: cd ..
13845: $RM -r conftest
13846: $RM conftest*
13847:
13848: fi
1.11 ! moko 13849: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 13850: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 13851:
13852:
13853:
13854:
13855: hard_links="nottested"
13856: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13857: # do not overwrite the value of need_locks provided by the user
1.11 ! moko 13858: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 13859: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 13860: hard_links=yes
13861: $RM conftest*
13862: ln conftest.a conftest.b 2>/dev/null && hard_links=no
13863: touch conftest.a
13864: ln conftest.a conftest.b 2>&5 || hard_links=no
13865: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 ! moko 13866: echo "$as_me:$LINENO: result: $hard_links" >&5
! 13867: echo "${ECHO_T}$hard_links" >&6
1.8 moko 13868: if test "$hard_links" = no; then
1.11 ! moko 13869: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 13870: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 13871: need_locks=warn
13872: fi
13873: else
13874: need_locks=no
13875: fi
13876:
13877:
13878:
1.11 ! moko 13879: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 13880: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 13881:
13882: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13883: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13884: case $host_os in
13885: aix[4-9]*)
13886: # If we're using GNU nm, then we don't want the "-C" option.
13887: # -C means demangle to AIX nm, but means don't demangle with GNU nm
13888: # Also, AIX nm treats weak defined symbols like other global defined
13889: # symbols, whereas GNU nm marks them as "W".
13890: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13891: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13892: else
13893: 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'
13894: fi
13895: ;;
13896: pw32*)
13897: export_symbols_cmds_CXX="$ltdll_cmds"
13898: ;;
13899: cygwin* | mingw* | cegcc*)
13900: case $cc_basename in
13901: cl*)
13902: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13903: ;;
13904: *)
13905: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13906: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13907: ;;
13908: esac
13909: ;;
13910: *)
13911: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13912: ;;
13913: esac
13914:
1.11 ! moko 13915: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 13916: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 13917: test "$ld_shlibs_CXX" = no && can_build_shared=no
13918:
13919: with_gnu_ld_CXX=$with_gnu_ld
13920:
13921:
13922:
13923:
13924:
13925:
13926: #
13927: # Do we need to explicitly link libc?
13928: #
13929: case "x$archive_cmds_need_lc_CXX" in
13930: x|xyes)
13931: # Assume -lc should be added
13932: archive_cmds_need_lc_CXX=yes
13933:
13934: if test "$enable_shared" = yes && test "$GCC" = yes; then
13935: case $archive_cmds_CXX in
13936: *'~'*)
13937: # FIXME: we may have to deal with multi-command sequences.
13938: ;;
13939: '$CC '*)
13940: # Test whether the compiler implicitly links with -lc since on some
13941: # systems, -lgcc has to come before -lc. If gcc already passes -lc
13942: # to ld, don't add -lc before -lgcc.
1.11 ! moko 13943: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 13944: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 13945: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
! 13946: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13947: else
13948: $RM conftest*
13949: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13950:
1.11 ! moko 13951: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 13952: (eval $ac_compile) 2>&5
13953: ac_status=$?
1.11 ! moko 13954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13955: (exit $ac_status); } 2>conftest.err; then
1.8 moko 13956: soname=conftest
13957: lib=conftest
13958: libobjs=conftest.$ac_objext
13959: deplibs=
13960: wl=$lt_prog_compiler_wl_CXX
13961: pic_flag=$lt_prog_compiler_pic_CXX
13962: compiler_flags=-v
13963: linker_flags=-v
13964: verstring=
13965: output_objdir=.
13966: libname=conftest
13967: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13968: allow_undefined_flag_CXX=
1.11 ! moko 13969: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 13970: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13971: ac_status=$?
1.11 ! moko 13972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13973: (exit $ac_status); }
1.8 moko 13974: then
13975: lt_cv_archive_cmds_need_lc_CXX=no
13976: else
13977: lt_cv_archive_cmds_need_lc_CXX=yes
13978: fi
13979: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13980: else
13981: cat conftest.err 1>&5
13982: fi
13983: $RM conftest*
13984:
13985: fi
1.11 ! moko 13986: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
! 13987: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
1.8 moko 13988: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13989: ;;
13990: esac
13991: fi
13992: ;;
13993: esac
13994:
13995:
13996:
13997:
13998:
13999:
14000:
14001:
14002:
14003:
14004:
14005:
14006:
14007:
14008:
14009:
14010:
14011:
14012:
14013:
14014:
14015:
14016:
14017:
14018:
14019:
14020:
14021:
14022:
14023:
14024:
14025:
14026:
14027:
14028:
14029:
14030:
14031:
14032:
14033:
14034:
14035:
14036:
14037:
14038:
14039:
14040:
14041:
14042:
14043:
14044:
14045:
14046:
14047:
14048:
14049:
14050:
14051:
14052:
14053:
14054:
14055:
1.11 ! moko 14056: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 14057: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.8 moko 14058:
14059: library_names_spec=
14060: libname_spec='lib$name'
14061: soname_spec=
14062: shrext_cmds=".so"
14063: postinstall_cmds=
14064: postuninstall_cmds=
14065: finish_cmds=
14066: finish_eval=
14067: shlibpath_var=
14068: shlibpath_overrides_runpath=unknown
14069: version_type=none
14070: dynamic_linker="$host_os ld.so"
14071: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14072: need_lib_prefix=unknown
14073: hardcode_into_libs=no
14074:
14075: # when you set need_version to no, make sure it does not cause -set_version
14076: # flags to be left without arguments
14077: need_version=unknown
14078:
14079: case $host_os in
14080: aix3*)
14081: version_type=linux # correct to gnu/linux during the next big refactor
14082: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14083: shlibpath_var=LIBPATH
14084:
14085: # AIX 3 has no versioning support, so we append a major version to the name.
14086: soname_spec='${libname}${release}${shared_ext}$major'
14087: ;;
14088:
14089: aix[4-9]*)
14090: version_type=linux # correct to gnu/linux during the next big refactor
14091: need_lib_prefix=no
14092: need_version=no
14093: hardcode_into_libs=yes
14094: if test "$host_cpu" = ia64; then
14095: # AIX 5 supports IA64
14096: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14097: shlibpath_var=LD_LIBRARY_PATH
14098: else
14099: # With GCC up to 2.95.x, collect2 would create an import file
14100: # for dependence libraries. The import file would start with
14101: # the line `#! .'. This would cause the generated library to
14102: # depend on `.', always an invalid library. This was fixed in
14103: # development snapshots of GCC prior to 3.0.
14104: case $host_os in
14105: aix4 | aix4.[01] | aix4.[01].*)
14106: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14107: echo ' yes '
14108: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14109: :
14110: else
14111: can_build_shared=no
14112: fi
14113: ;;
14114: esac
14115: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14116: # soname into executable. Probably we can add versioning support to
14117: # collect2, so additional links can be useful in future.
14118: if test "$aix_use_runtimelinking" = yes; then
14119: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14120: # instead of lib<name>.a to let people know that these are not
14121: # typical AIX shared libraries.
14122: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123: else
14124: # We preserve .a as extension for shared libraries through AIX4.2
14125: # and later when we are not doing run time linking.
14126: library_names_spec='${libname}${release}.a $libname.a'
14127: soname_spec='${libname}${release}${shared_ext}$major'
14128: fi
14129: shlibpath_var=LIBPATH
14130: fi
14131: ;;
14132:
14133: amigaos*)
14134: case $host_cpu in
14135: powerpc)
14136: # Since July 2007 AmigaOS4 officially supports .so libraries.
14137: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14138: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139: ;;
14140: m68k)
14141: library_names_spec='$libname.ixlibrary $libname.a'
14142: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14143: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14144: ;;
14145: esac
14146: ;;
14147:
14148: beos*)
14149: library_names_spec='${libname}${shared_ext}'
14150: dynamic_linker="$host_os ld.so"
14151: shlibpath_var=LIBRARY_PATH
14152: ;;
14153:
14154: bsdi[45]*)
14155: version_type=linux # correct to gnu/linux during the next big refactor
14156: need_version=no
14157: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158: soname_spec='${libname}${release}${shared_ext}$major'
14159: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14160: shlibpath_var=LD_LIBRARY_PATH
14161: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14162: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14163: # the default ld.so.conf also contains /usr/contrib/lib and
14164: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14165: # libtool to hard-code these into programs
14166: ;;
14167:
14168: cygwin* | mingw* | pw32* | cegcc*)
14169: version_type=windows
14170: shrext_cmds=".dll"
14171: need_version=no
14172: need_lib_prefix=no
14173:
14174: case $GCC,$cc_basename in
14175: yes,*)
14176: # gcc
14177: library_names_spec='$libname.dll.a'
14178: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14179: postinstall_cmds='base_file=`basename \${file}`~
14180: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14181: dldir=$destdir/`dirname \$dlpath`~
14182: test -d \$dldir || mkdir -p \$dldir~
14183: $install_prog $dir/$dlname \$dldir/$dlname~
14184: chmod a+x \$dldir/$dlname~
14185: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14186: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14187: fi'
14188: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14189: dlpath=$dir/\$dldll~
14190: $RM \$dlpath'
14191: shlibpath_overrides_runpath=yes
14192:
14193: case $host_os in
14194: cygwin*)
14195: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14196: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14197:
14198: ;;
14199: mingw* | cegcc*)
14200: # MinGW DLLs use traditional 'lib' prefix
14201: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14202: ;;
14203: pw32*)
14204: # pw32 DLLs use 'pw' prefix rather than 'lib'
14205: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14206: ;;
14207: esac
14208: dynamic_linker='Win32 ld.exe'
14209: ;;
14210:
14211: *,cl*)
14212: # Native MSVC
14213: libname_spec='$name'
14214: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14215: library_names_spec='${libname}.dll.lib'
14216:
14217: case $build_os in
14218: mingw*)
14219: sys_lib_search_path_spec=
14220: lt_save_ifs=$IFS
14221: IFS=';'
14222: for lt_path in $LIB
14223: do
14224: IFS=$lt_save_ifs
14225: # Let DOS variable expansion print the short 8.3 style file name.
14226: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14227: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14228: done
14229: IFS=$lt_save_ifs
14230: # Convert to MSYS style.
14231: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14232: ;;
14233: cygwin*)
14234: # Convert to unix form, then to dos form, then back to unix form
14235: # but this time dos style (no spaces!) so that the unix form looks
14236: # like /cygdrive/c/PROGRA~1:/cygdr...
14237: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14238: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14239: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14240: ;;
14241: *)
14242: sys_lib_search_path_spec="$LIB"
14243: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14244: # It is most probably a Windows format PATH.
14245: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14246: else
14247: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14248: fi
14249: # FIXME: find the short name or the path components, as spaces are
14250: # common. (e.g. "Program Files" -> "PROGRA~1")
14251: ;;
14252: esac
14253:
14254: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14255: postinstall_cmds='base_file=`basename \${file}`~
14256: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14257: dldir=$destdir/`dirname \$dlpath`~
14258: test -d \$dldir || mkdir -p \$dldir~
14259: $install_prog $dir/$dlname \$dldir/$dlname'
14260: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14261: dlpath=$dir/\$dldll~
14262: $RM \$dlpath'
14263: shlibpath_overrides_runpath=yes
14264: dynamic_linker='Win32 link.exe'
14265: ;;
14266:
14267: *)
14268: # Assume MSVC wrapper
14269: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14270: dynamic_linker='Win32 ld.exe'
14271: ;;
14272: esac
14273: # FIXME: first we should search . and the directory the executable is in
14274: shlibpath_var=PATH
14275: ;;
14276:
14277: darwin* | rhapsody*)
14278: dynamic_linker="$host_os dyld"
14279: version_type=darwin
14280: need_lib_prefix=no
14281: need_version=no
14282: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14283: soname_spec='${libname}${release}${major}$shared_ext'
14284: shlibpath_overrides_runpath=yes
14285: shlibpath_var=DYLD_LIBRARY_PATH
14286: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14287:
14288: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14289: ;;
14290:
14291: dgux*)
14292: version_type=linux # correct to gnu/linux during the next big refactor
14293: need_lib_prefix=no
14294: need_version=no
14295: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14296: soname_spec='${libname}${release}${shared_ext}$major'
14297: shlibpath_var=LD_LIBRARY_PATH
14298: ;;
14299:
14300: freebsd* | dragonfly*)
14301: # DragonFly does not have aout. When/if they implement a new
14302: # versioning mechanism, adjust this.
14303: if test -x /usr/bin/objformat; then
14304: objformat=`/usr/bin/objformat`
14305: else
14306: case $host_os in
14307: freebsd[23].*) objformat=aout ;;
14308: *) objformat=elf ;;
14309: esac
14310: fi
14311: version_type=freebsd-$objformat
14312: case $version_type in
14313: freebsd-elf*)
14314: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14315: need_version=no
14316: need_lib_prefix=no
14317: ;;
14318: freebsd-*)
14319: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14320: need_version=yes
14321: ;;
14322: esac
14323: shlibpath_var=LD_LIBRARY_PATH
14324: case $host_os in
14325: freebsd2.*)
14326: shlibpath_overrides_runpath=yes
14327: ;;
14328: freebsd3.[01]* | freebsdelf3.[01]*)
14329: shlibpath_overrides_runpath=yes
14330: hardcode_into_libs=yes
14331: ;;
14332: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14333: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14334: shlibpath_overrides_runpath=no
14335: hardcode_into_libs=yes
14336: ;;
14337: *) # from 4.6 on, and DragonFly
14338: shlibpath_overrides_runpath=yes
14339: hardcode_into_libs=yes
14340: ;;
14341: esac
14342: ;;
14343:
14344: gnu*)
14345: version_type=linux # correct to gnu/linux during the next big refactor
14346: need_lib_prefix=no
14347: need_version=no
14348: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14349: soname_spec='${libname}${release}${shared_ext}$major'
14350: shlibpath_var=LD_LIBRARY_PATH
14351: shlibpath_overrides_runpath=no
14352: hardcode_into_libs=yes
14353: ;;
14354:
14355: haiku*)
14356: version_type=linux # correct to gnu/linux during the next big refactor
14357: need_lib_prefix=no
14358: need_version=no
14359: dynamic_linker="$host_os runtime_loader"
14360: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14361: soname_spec='${libname}${release}${shared_ext}$major'
14362: shlibpath_var=LIBRARY_PATH
14363: shlibpath_overrides_runpath=yes
14364: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14365: hardcode_into_libs=yes
14366: ;;
14367:
14368: hpux9* | hpux10* | hpux11*)
14369: # Give a soname corresponding to the major version so that dld.sl refuses to
14370: # link against other versions.
14371: version_type=sunos
14372: need_lib_prefix=no
14373: need_version=no
14374: case $host_cpu in
14375: ia64*)
14376: shrext_cmds='.so'
14377: hardcode_into_libs=yes
14378: dynamic_linker="$host_os dld.so"
14379: shlibpath_var=LD_LIBRARY_PATH
14380: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14381: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382: soname_spec='${libname}${release}${shared_ext}$major'
14383: if test "X$HPUX_IA64_MODE" = X32; then
14384: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14385: else
14386: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14387: fi
14388: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14389: ;;
14390: hppa*64*)
14391: shrext_cmds='.sl'
14392: hardcode_into_libs=yes
14393: dynamic_linker="$host_os dld.sl"
14394: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14395: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14396: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397: soname_spec='${libname}${release}${shared_ext}$major'
14398: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14399: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14400: ;;
14401: *)
14402: shrext_cmds='.sl'
14403: dynamic_linker="$host_os dld.sl"
14404: shlibpath_var=SHLIB_PATH
14405: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14406: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407: soname_spec='${libname}${release}${shared_ext}$major'
14408: ;;
14409: esac
14410: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14411: postinstall_cmds='chmod 555 $lib'
14412: # or fails outright, so override atomically:
14413: install_override_mode=555
14414: ;;
14415:
14416: interix[3-9]*)
14417: version_type=linux # correct to gnu/linux during the next big refactor
14418: need_lib_prefix=no
14419: need_version=no
14420: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421: soname_spec='${libname}${release}${shared_ext}$major'
14422: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14423: shlibpath_var=LD_LIBRARY_PATH
14424: shlibpath_overrides_runpath=no
14425: hardcode_into_libs=yes
14426: ;;
14427:
14428: irix5* | irix6* | nonstopux*)
14429: case $host_os in
14430: nonstopux*) version_type=nonstopux ;;
14431: *)
14432: if test "$lt_cv_prog_gnu_ld" = yes; then
14433: version_type=linux # correct to gnu/linux during the next big refactor
14434: else
14435: version_type=irix
14436: fi ;;
14437: esac
14438: need_lib_prefix=no
14439: need_version=no
14440: soname_spec='${libname}${release}${shared_ext}$major'
14441: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14442: case $host_os in
14443: irix5* | nonstopux*)
14444: libsuff= shlibsuff=
14445: ;;
14446: *)
14447: case $LD in # libtool.m4 will add one of these switches to LD
14448: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14449: libsuff= shlibsuff= libmagic=32-bit;;
14450: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14451: libsuff=32 shlibsuff=N32 libmagic=N32;;
14452: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14453: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14454: *) libsuff= shlibsuff= libmagic=never-match;;
14455: esac
14456: ;;
14457: esac
14458: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14459: shlibpath_overrides_runpath=no
14460: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14461: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14462: hardcode_into_libs=yes
14463: ;;
14464:
14465: # No shared lib support for Linux oldld, aout, or coff.
14466: linux*oldld* | linux*aout* | linux*coff*)
14467: dynamic_linker=no
14468: ;;
14469:
14470: # This must be glibc/ELF.
14471: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14472: version_type=linux # correct to gnu/linux during the next big refactor
14473: need_lib_prefix=no
14474: need_version=no
14475: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476: soname_spec='${libname}${release}${shared_ext}$major'
14477: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14478: shlibpath_var=LD_LIBRARY_PATH
14479: shlibpath_overrides_runpath=no
14480:
14481: # Some binutils ld are patched to set DT_RUNPATH
1.11 ! moko 14482: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
! 14483: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14484: else
14485: lt_cv_shlibpath_overrides_runpath=no
14486: save_LDFLAGS=$LDFLAGS
14487: save_libdir=$libdir
14488: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14489: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.11 ! moko 14490: cat >conftest.$ac_ext <<_ACEOF
! 14491: /* confdefs.h. */
! 14492: _ACEOF
! 14493: cat confdefs.h >>conftest.$ac_ext
! 14494: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 14495: /* end confdefs.h. */
14496:
14497: int
14498: main ()
14499: {
14500:
14501: ;
14502: return 0;
14503: }
14504: _ACEOF
1.11 ! moko 14505: rm -f conftest.$ac_objext conftest$ac_exeext
! 14506: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 14507: (eval $ac_link) 2>conftest.er1
! 14508: ac_status=$?
! 14509: grep -v '^ *+' conftest.er1 >conftest.err
! 14510: rm -f conftest.er1
! 14511: cat conftest.err >&5
! 14512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14513: (exit $ac_status); } &&
! 14514: { ac_try='test -z "$ac_cxx_werror_flag"
! 14515: || test ! -s conftest.err'
! 14516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14517: (eval $ac_try) 2>&5
! 14518: ac_status=$?
! 14519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14520: (exit $ac_status); }; } &&
! 14521: { ac_try='test -s conftest$ac_exeext'
! 14522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14523: (eval $ac_try) 2>&5
! 14524: ac_status=$?
! 14525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14526: (exit $ac_status); }; }; then
! 14527: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 14528: lt_cv_shlibpath_overrides_runpath=yes
14529: fi
1.11 ! moko 14530:
! 14531: else
! 14532: echo "$as_me: failed program was:" >&5
! 14533: sed 's/^/| /' conftest.$ac_ext >&5
! 14534:
1.8 moko 14535: fi
1.11 ! moko 14536: rm -f conftest.err conftest.$ac_objext \
! 14537: conftest$ac_exeext conftest.$ac_ext
1.8 moko 14538: LDFLAGS=$save_LDFLAGS
14539: libdir=$save_libdir
14540:
14541: fi
14542:
14543: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14544:
14545: # This implies no fast_install, which is unacceptable.
14546: # Some rework will be needed to allow for fast_install
14547: # before this can be enabled.
14548: hardcode_into_libs=yes
14549:
14550: # Append ld.so.conf contents to the search path
14551: if test -f /etc/ld.so.conf; then
14552: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14553: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14554: fi
14555:
14556: # We used to test for /lib/ld.so.1 and disable shared libraries on
14557: # powerpc, because MkLinux only supported shared libraries with the
14558: # GNU dynamic linker. Since this was broken with cross compilers,
14559: # most powerpc-linux boxes support dynamic linking these days and
14560: # people can always --disable-shared, the test was removed, and we
14561: # assume the GNU/Linux dynamic linker is in use.
14562: dynamic_linker='GNU/Linux ld.so'
14563: ;;
14564:
14565: netbsd*)
14566: version_type=sunos
14567: need_lib_prefix=no
14568: need_version=no
14569: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14570: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14571: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14572: dynamic_linker='NetBSD (a.out) ld.so'
14573: else
14574: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14575: soname_spec='${libname}${release}${shared_ext}$major'
14576: dynamic_linker='NetBSD ld.elf_so'
14577: fi
14578: shlibpath_var=LD_LIBRARY_PATH
14579: shlibpath_overrides_runpath=yes
14580: hardcode_into_libs=yes
14581: ;;
14582:
14583: newsos6)
14584: version_type=linux # correct to gnu/linux during the next big refactor
14585: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586: shlibpath_var=LD_LIBRARY_PATH
14587: shlibpath_overrides_runpath=yes
14588: ;;
14589:
14590: *nto* | *qnx*)
14591: version_type=qnx
14592: need_lib_prefix=no
14593: need_version=no
14594: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595: soname_spec='${libname}${release}${shared_ext}$major'
14596: shlibpath_var=LD_LIBRARY_PATH
14597: shlibpath_overrides_runpath=no
14598: hardcode_into_libs=yes
14599: dynamic_linker='ldqnx.so'
14600: ;;
14601:
14602: openbsd*)
14603: version_type=sunos
14604: sys_lib_dlsearch_path_spec="/usr/lib"
14605: need_lib_prefix=no
14606: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14607: case $host_os in
14608: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14609: *) need_version=no ;;
14610: esac
14611: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14612: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14613: shlibpath_var=LD_LIBRARY_PATH
14614: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14615: case $host_os in
14616: openbsd2.[89] | openbsd2.[89].*)
14617: shlibpath_overrides_runpath=no
14618: ;;
14619: *)
14620: shlibpath_overrides_runpath=yes
14621: ;;
14622: esac
14623: else
14624: shlibpath_overrides_runpath=yes
14625: fi
14626: ;;
14627:
14628: os2*)
14629: libname_spec='$name'
14630: shrext_cmds=".dll"
14631: need_lib_prefix=no
14632: library_names_spec='$libname${shared_ext} $libname.a'
14633: dynamic_linker='OS/2 ld.exe'
14634: shlibpath_var=LIBPATH
14635: ;;
14636:
14637: osf3* | osf4* | osf5*)
14638: version_type=osf
14639: need_lib_prefix=no
14640: need_version=no
14641: soname_spec='${libname}${release}${shared_ext}$major'
14642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643: shlibpath_var=LD_LIBRARY_PATH
14644: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14645: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14646: ;;
14647:
14648: rdos*)
14649: dynamic_linker=no
14650: ;;
14651:
14652: solaris*)
14653: version_type=linux # correct to gnu/linux during the next big refactor
14654: need_lib_prefix=no
14655: need_version=no
14656: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657: soname_spec='${libname}${release}${shared_ext}$major'
14658: shlibpath_var=LD_LIBRARY_PATH
14659: shlibpath_overrides_runpath=yes
14660: hardcode_into_libs=yes
14661: # ldd complains unless libraries are executable
14662: postinstall_cmds='chmod +x $lib'
14663: ;;
14664:
14665: sunos4*)
14666: version_type=sunos
14667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14668: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14669: shlibpath_var=LD_LIBRARY_PATH
14670: shlibpath_overrides_runpath=yes
14671: if test "$with_gnu_ld" = yes; then
14672: need_lib_prefix=no
14673: fi
14674: need_version=yes
14675: ;;
14676:
14677: sysv4 | sysv4.3*)
14678: version_type=linux # correct to gnu/linux during the next big refactor
14679: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680: soname_spec='${libname}${release}${shared_ext}$major'
14681: shlibpath_var=LD_LIBRARY_PATH
14682: case $host_vendor in
14683: sni)
14684: shlibpath_overrides_runpath=no
14685: need_lib_prefix=no
14686: runpath_var=LD_RUN_PATH
14687: ;;
14688: siemens)
14689: need_lib_prefix=no
14690: ;;
14691: motorola)
14692: need_lib_prefix=no
14693: need_version=no
14694: shlibpath_overrides_runpath=no
14695: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14696: ;;
14697: esac
14698: ;;
14699:
14700: sysv4*MP*)
14701: if test -d /usr/nec ;then
14702: version_type=linux # correct to gnu/linux during the next big refactor
14703: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14704: soname_spec='$libname${shared_ext}.$major'
14705: shlibpath_var=LD_LIBRARY_PATH
14706: fi
14707: ;;
14708:
14709: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14710: version_type=freebsd-elf
14711: need_lib_prefix=no
14712: need_version=no
14713: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14714: soname_spec='${libname}${release}${shared_ext}$major'
14715: shlibpath_var=LD_LIBRARY_PATH
14716: shlibpath_overrides_runpath=yes
14717: hardcode_into_libs=yes
14718: if test "$with_gnu_ld" = yes; then
14719: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14720: else
14721: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14722: case $host_os in
14723: sco3.2v5*)
14724: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14725: ;;
14726: esac
14727: fi
14728: sys_lib_dlsearch_path_spec='/usr/lib'
14729: ;;
14730:
14731: tpf*)
14732: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14733: version_type=linux # correct to gnu/linux during the next big refactor
14734: need_lib_prefix=no
14735: need_version=no
14736: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737: shlibpath_var=LD_LIBRARY_PATH
14738: shlibpath_overrides_runpath=no
14739: hardcode_into_libs=yes
14740: ;;
14741:
14742: uts4*)
14743: version_type=linux # correct to gnu/linux during the next big refactor
14744: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745: soname_spec='${libname}${release}${shared_ext}$major'
14746: shlibpath_var=LD_LIBRARY_PATH
14747: ;;
14748:
14749: *)
14750: dynamic_linker=no
14751: ;;
14752: esac
1.11 ! moko 14753: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 14754: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 14755: test "$dynamic_linker" = no && can_build_shared=no
14756:
14757: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14758: if test "$GCC" = yes; then
14759: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14760: fi
14761:
14762: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14763: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14764: fi
14765: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14766: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14767: fi
14768:
14769:
14770:
14771:
14772:
14773:
14774:
14775:
14776:
14777:
14778:
14779:
14780:
14781:
14782:
14783:
14784:
14785:
14786:
14787:
14788:
14789:
14790:
14791:
14792:
14793:
14794:
14795:
14796:
14797:
14798:
14799:
14800:
14801:
14802:
14803:
14804:
14805:
1.11 ! moko 14806: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 14807: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 14808: hardcode_action_CXX=
14809: if test -n "$hardcode_libdir_flag_spec_CXX" ||
14810: test -n "$runpath_var_CXX" ||
14811: test "X$hardcode_automatic_CXX" = "Xyes" ; then
14812:
14813: # We can hardcode non-existent directories.
14814: if test "$hardcode_direct_CXX" != no &&
14815: # If the only mechanism to avoid hardcoding is shlibpath_var, we
14816: # have to relink, otherwise we might link with an installed library
14817: # when we should be linking with a yet-to-be-installed one
14818: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14819: test "$hardcode_minus_L_CXX" != no; then
14820: # Linking always hardcodes the temporary library directory.
14821: hardcode_action_CXX=relink
14822: else
14823: # We can link without hardcoding, and we can hardcode nonexisting dirs.
14824: hardcode_action_CXX=immediate
14825: fi
14826: else
14827: # We cannot hardcode anything, or else we can only hardcode existing
14828: # directories.
14829: hardcode_action_CXX=unsupported
14830: fi
1.11 ! moko 14831: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
! 14832: echo "${ECHO_T}$hardcode_action_CXX" >&6
1.8 moko 14833:
14834: if test "$hardcode_action_CXX" = relink ||
14835: test "$inherit_rpath_CXX" = yes; then
14836: # Fast installation is not supported
14837: enable_fast_install=no
14838: elif test "$shlibpath_overrides_runpath" = yes ||
14839: test "$enable_shared" = no; then
14840: # Fast installation is not necessary
14841: enable_fast_install=needless
14842: fi
14843:
14844:
14845:
14846:
14847:
14848:
14849:
14850: fi # test -n "$compiler"
14851:
14852: CC=$lt_save_CC
14853: CFLAGS=$lt_save_CFLAGS
14854: LDCXX=$LD
14855: LD=$lt_save_LD
14856: GCC=$lt_save_GCC
14857: with_gnu_ld=$lt_save_with_gnu_ld
14858: lt_cv_path_LDCXX=$lt_cv_path_LD
14859: lt_cv_path_LD=$lt_save_path_LD
14860: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14861: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14862: fi # test "$_lt_caught_CXX_error" != yes
14863:
14864: ac_ext=c
14865: ac_cpp='$CPP $CPPFLAGS'
14866: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14867: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14868: ac_compiler_gnu=$ac_cv_c_compiler_gnu
14869:
14870:
14871:
14872:
14873:
14874:
14875:
14876:
14877:
14878:
14879:
14880:
14881:
14882:
14883:
1.11 ! moko 14884: ac_config_commands="$ac_config_commands libtool"
1.8 moko 14885:
14886:
14887:
14888:
14889: # Only expand once:
14890:
14891:
14892:
1.11 ! moko 14893: case libltdl/m4 in
! 14894: [\\/]* | ?:[\\/]* ) ac_macro_dir=libltdl/m4 ;;
! 14895: *) ac_macro_dir=$srcdir/libltdl/m4 ;;
! 14896: esac
! 14897: if test -d "$ac_macro_dir"; then :
! 14898: else
! 14899: { { echo "$as_me:$LINENO: error: cannot find macro directory \`libltdl/m4'" >&5
! 14900: echo "$as_me: error: cannot find macro directory \`libltdl/m4'" >&2;}
! 14901: { (exit 1); exit 1; }; }
! 14902: fi
1.8 moko 14903:
14904:
14905:
14906:
14907:
14908:
14909:
14910:
14911:
14912:
14913:
14914:
14915:
14916: case $enable_ltdl_convenience in
1.11 ! moko 14917: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
! 14918: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
! 14919: { (exit 1); exit 1; }; } ;;
1.8 moko 14920: "") enable_ltdl_convenience=yes
14921: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
14922: esac
1.11 ! moko 14923: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 14924: LTDLDEPS=$LIBLTDL
14925: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
14926:
14927:
14928:
14929:
14930:
14931: # For backwards non-gettext consistent compatibility...
14932: INCLTDL="$LTDLINCL"
14933:
14934:
14935:
14936:
14937:
1.11 ! moko 14938: # Check whether --enable-static or --disable-static was given.
! 14939: if test "${enable_static+set}" = set; then
! 14940: enableval="$enable_static"
! 14941: p=${PACKAGE-default}
1.8 moko 14942: case $enableval in
14943: yes) enable_static=yes ;;
14944: no) enable_static=no ;;
14945: *)
14946: enable_static=no
14947: # Look at the argument we got. We use all the common list separators.
14948: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14949: for pkg in $enableval; do
14950: IFS="$lt_save_ifs"
14951: if test "X$pkg" = "X$p"; then
14952: enable_static=yes
14953: fi
14954: done
14955: IFS="$lt_save_ifs"
14956: ;;
14957: esac
14958: else
14959: enable_static=no
1.11 ! moko 14960: fi;
1.8 moko 14961:
14962:
14963:
14964:
14965:
14966: enable_win32_dll=yes
14967:
14968: case $host in
14969: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14970: if test -n "$ac_tool_prefix"; then
14971: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14972: set dummy ${ac_tool_prefix}as; ac_word=$2
1.11 ! moko 14973: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 14974: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 14975: if test "${ac_cv_prog_AS+set}" = set; then
! 14976: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14977: else
14978: if test -n "$AS"; then
14979: ac_cv_prog_AS="$AS" # Let the user override the test.
14980: else
14981: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982: for as_dir in $PATH
14983: do
14984: IFS=$as_save_IFS
14985: test -z "$as_dir" && as_dir=.
1.11 ! moko 14986: for ac_exec_ext in '' $ac_executable_extensions; do
! 14987: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 14988: ac_cv_prog_AS="${ac_tool_prefix}as"
1.11 ! moko 14989: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 14990: break 2
14991: fi
14992: done
1.11 ! moko 14993: done
1.8 moko 14994:
14995: fi
14996: fi
14997: AS=$ac_cv_prog_AS
14998: if test -n "$AS"; then
1.11 ! moko 14999: echo "$as_me:$LINENO: result: $AS" >&5
! 15000: echo "${ECHO_T}$AS" >&6
1.8 moko 15001: else
1.11 ! moko 15002: echo "$as_me:$LINENO: result: no" >&5
! 15003: echo "${ECHO_T}no" >&6
1.8 moko 15004: fi
15005:
15006: fi
15007: if test -z "$ac_cv_prog_AS"; then
15008: ac_ct_AS=$AS
15009: # Extract the first word of "as", so it can be a program name with args.
15010: set dummy as; ac_word=$2
1.11 ! moko 15011: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15012: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 15013: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
! 15014: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15015: else
15016: if test -n "$ac_ct_AS"; then
15017: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
15018: else
15019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020: for as_dir in $PATH
15021: do
15022: IFS=$as_save_IFS
15023: test -z "$as_dir" && as_dir=.
1.11 ! moko 15024: for ac_exec_ext in '' $ac_executable_extensions; do
! 15025: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 15026: ac_cv_prog_ac_ct_AS="as"
1.11 ! moko 15027: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15028: break 2
15029: fi
15030: done
1.11 ! moko 15031: done
1.8 moko 15032:
1.11 ! moko 15033: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
1.8 moko 15034: fi
15035: fi
15036: ac_ct_AS=$ac_cv_prog_ac_ct_AS
15037: if test -n "$ac_ct_AS"; then
1.11 ! moko 15038: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
! 15039: echo "${ECHO_T}$ac_ct_AS" >&6
1.8 moko 15040: else
1.11 ! moko 15041: echo "$as_me:$LINENO: result: no" >&5
! 15042: echo "${ECHO_T}no" >&6
1.8 moko 15043: fi
15044:
1.11 ! moko 15045: AS=$ac_ct_AS
1.8 moko 15046: else
15047: AS="$ac_cv_prog_AS"
15048: fi
15049:
15050: if test -n "$ac_tool_prefix"; then
15051: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15052: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.11 ! moko 15053: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15054: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 15055: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
! 15056: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15057: else
15058: if test -n "$DLLTOOL"; then
15059: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15060: else
15061: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062: for as_dir in $PATH
15063: do
15064: IFS=$as_save_IFS
15065: test -z "$as_dir" && as_dir=.
1.11 ! moko 15066: for ac_exec_ext in '' $ac_executable_extensions; do
! 15067: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 15068: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.11 ! moko 15069: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15070: break 2
15071: fi
15072: done
1.11 ! moko 15073: done
1.8 moko 15074:
15075: fi
15076: fi
15077: DLLTOOL=$ac_cv_prog_DLLTOOL
15078: if test -n "$DLLTOOL"; then
1.11 ! moko 15079: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
! 15080: echo "${ECHO_T}$DLLTOOL" >&6
1.8 moko 15081: else
1.11 ! moko 15082: echo "$as_me:$LINENO: result: no" >&5
! 15083: echo "${ECHO_T}no" >&6
1.8 moko 15084: fi
15085:
15086: fi
15087: if test -z "$ac_cv_prog_DLLTOOL"; then
15088: ac_ct_DLLTOOL=$DLLTOOL
15089: # Extract the first word of "dlltool", so it can be a program name with args.
15090: set dummy dlltool; ac_word=$2
1.11 ! moko 15091: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15092: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 15093: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
! 15094: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15095: else
15096: if test -n "$ac_ct_DLLTOOL"; then
15097: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15098: else
15099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100: for as_dir in $PATH
15101: do
15102: IFS=$as_save_IFS
15103: test -z "$as_dir" && as_dir=.
1.11 ! moko 15104: for ac_exec_ext in '' $ac_executable_extensions; do
! 15105: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 15106: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.11 ! moko 15107: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15108: break 2
15109: fi
15110: done
1.11 ! moko 15111: done
1.8 moko 15112:
1.11 ! moko 15113: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
1.8 moko 15114: fi
15115: fi
15116: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15117: if test -n "$ac_ct_DLLTOOL"; then
1.11 ! moko 15118: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
! 15119: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
1.8 moko 15120: else
1.11 ! moko 15121: echo "$as_me:$LINENO: result: no" >&5
! 15122: echo "${ECHO_T}no" >&6
1.8 moko 15123: fi
15124:
1.11 ! moko 15125: DLLTOOL=$ac_ct_DLLTOOL
1.8 moko 15126: else
15127: DLLTOOL="$ac_cv_prog_DLLTOOL"
15128: fi
15129:
15130: if test -n "$ac_tool_prefix"; then
15131: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15132: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.11 ! moko 15133: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15134: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 15135: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
! 15136: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15137: else
15138: if test -n "$OBJDUMP"; then
15139: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15140: else
15141: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15142: for as_dir in $PATH
15143: do
15144: IFS=$as_save_IFS
15145: test -z "$as_dir" && as_dir=.
1.11 ! moko 15146: for ac_exec_ext in '' $ac_executable_extensions; do
! 15147: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 15148: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.11 ! moko 15149: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15150: break 2
15151: fi
15152: done
1.11 ! moko 15153: done
1.8 moko 15154:
15155: fi
15156: fi
15157: OBJDUMP=$ac_cv_prog_OBJDUMP
15158: if test -n "$OBJDUMP"; then
1.11 ! moko 15159: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
! 15160: echo "${ECHO_T}$OBJDUMP" >&6
1.8 moko 15161: else
1.11 ! moko 15162: echo "$as_me:$LINENO: result: no" >&5
! 15163: echo "${ECHO_T}no" >&6
1.8 moko 15164: fi
15165:
15166: fi
15167: if test -z "$ac_cv_prog_OBJDUMP"; then
15168: ac_ct_OBJDUMP=$OBJDUMP
15169: # Extract the first word of "objdump", so it can be a program name with args.
15170: set dummy objdump; ac_word=$2
1.11 ! moko 15171: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 15172: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 15173: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
! 15174: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15175: else
15176: if test -n "$ac_ct_OBJDUMP"; then
15177: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15178: else
15179: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15180: for as_dir in $PATH
15181: do
15182: IFS=$as_save_IFS
15183: test -z "$as_dir" && as_dir=.
1.11 ! moko 15184: for ac_exec_ext in '' $ac_executable_extensions; do
! 15185: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 15186: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.11 ! moko 15187: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15188: break 2
15189: fi
15190: done
1.11 ! moko 15191: done
1.8 moko 15192:
1.11 ! moko 15193: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
1.8 moko 15194: fi
15195: fi
15196: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15197: if test -n "$ac_ct_OBJDUMP"; then
1.11 ! moko 15198: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
! 15199: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
1.8 moko 15200: else
1.11 ! moko 15201: echo "$as_me:$LINENO: result: no" >&5
! 15202: echo "${ECHO_T}no" >&6
1.8 moko 15203: fi
15204:
1.11 ! moko 15205: OBJDUMP=$ac_ct_OBJDUMP
1.8 moko 15206: else
15207: OBJDUMP="$ac_cv_prog_OBJDUMP"
15208: fi
15209:
15210: ;;
15211: esac
15212:
15213: test -z "$AS" && AS=as
15214:
15215:
15216:
15217:
15218:
15219: test -z "$DLLTOOL" && DLLTOOL=dlltool
15220:
15221:
15222: test -z "$OBJDUMP" && OBJDUMP=objdump
15223:
15224:
15225:
15226:
15227:
15228:
1.11 ! moko 15229: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
! 15230: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
! 15231: if test "${libltdl_cv_shlibext+set}" = set; then
! 15232: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15233: else
15234:
15235: module=yes
15236: eval libltdl_cv_shlibext=$shrext_cmds
15237: module=no
15238: eval libltdl_cv_shrext=$shrext_cmds
15239:
15240: fi
1.11 ! moko 15241: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
! 15242: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
1.8 moko 15243: if test -n "$libltdl_cv_shlibext"; then
15244:
15245: cat >>confdefs.h <<_ACEOF
15246: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15247: _ACEOF
15248:
15249: fi
15250: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15251:
15252: cat >>confdefs.h <<_ACEOF
15253: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15254: _ACEOF
15255:
15256: fi
15257:
1.11 ! moko 15258: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
! 15259: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
! 15260: if test "${lt_cv_module_path_var+set}" = set; then
! 15261: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15262: else
15263: lt_cv_module_path_var="$shlibpath_var"
15264: fi
1.11 ! moko 15265: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
! 15266: echo "${ECHO_T}$lt_cv_module_path_var" >&6
1.8 moko 15267: if test -n "$lt_cv_module_path_var"; then
15268:
15269: cat >>confdefs.h <<_ACEOF
15270: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15271: _ACEOF
15272:
15273: fi
15274:
1.11 ! moko 15275: echo "$as_me:$LINENO: checking for the default library search path" >&5
! 15276: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
! 15277: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
! 15278: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15279: else
15280: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15281: fi
1.11 ! moko 15282: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
! 15283: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
1.8 moko 15284: if test -n "$lt_cv_sys_dlsearch_path"; then
15285: sys_dlsearch_path=
15286: for dir in $lt_cv_sys_dlsearch_path; do
15287: if test -z "$sys_dlsearch_path"; then
15288: sys_dlsearch_path="$dir"
15289: else
15290: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15291: fi
15292: done
15293:
15294: cat >>confdefs.h <<_ACEOF
15295: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15296: _ACEOF
15297:
15298: fi
15299:
15300:
15301: LT_DLLOADERS=
15302:
15303:
15304: ac_ext=c
15305: ac_cpp='$CPP $CPPFLAGS'
15306: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15309:
15310:
15311: LIBADD_DLOPEN=
1.11 ! moko 15312: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
! 15313: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
! 15314: if test "${ac_cv_search_dlopen+set}" = set; then
! 15315: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15316: else
15317: ac_func_search_save_LIBS=$LIBS
1.11 ! moko 15318: ac_cv_search_dlopen=no
! 15319: cat >conftest.$ac_ext <<_ACEOF
! 15320: /* confdefs.h. */
! 15321: _ACEOF
! 15322: cat confdefs.h >>conftest.$ac_ext
! 15323: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15324: /* end confdefs.h. */
15325:
1.11 ! moko 15326: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15327: #ifdef __cplusplus
15328: extern "C"
15329: #endif
1.11 ! moko 15330: /* We use char because int might match the return type of a gcc2
! 15331: builtin and then its argument prototype would still apply. */
1.8 moko 15332: char dlopen ();
15333: int
15334: main ()
15335: {
1.11 ! moko 15336: dlopen ();
1.8 moko 15337: ;
15338: return 0;
15339: }
15340: _ACEOF
1.11 ! moko 15341: rm -f conftest.$ac_objext conftest$ac_exeext
! 15342: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15343: (eval $ac_link) 2>conftest.er1
! 15344: ac_status=$?
! 15345: grep -v '^ *+' conftest.er1 >conftest.err
! 15346: rm -f conftest.er1
! 15347: cat conftest.err >&5
! 15348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15349: (exit $ac_status); } &&
! 15350: { ac_try='test -z "$ac_c_werror_flag"
! 15351: || test ! -s conftest.err'
! 15352: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15353: (eval $ac_try) 2>&5
! 15354: ac_status=$?
! 15355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15356: (exit $ac_status); }; } &&
! 15357: { ac_try='test -s conftest$ac_exeext'
! 15358: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15359: (eval $ac_try) 2>&5
! 15360: ac_status=$?
! 15361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15362: (exit $ac_status); }; }; then
! 15363: ac_cv_search_dlopen="none required"
! 15364: else
! 15365: echo "$as_me: failed program was:" >&5
! 15366: sed 's/^/| /' conftest.$ac_ext >&5
! 15367:
! 15368: fi
! 15369: rm -f conftest.err conftest.$ac_objext \
! 15370: conftest$ac_exeext conftest.$ac_ext
! 15371: if test "$ac_cv_search_dlopen" = no; then
! 15372: for ac_lib in dl; do
1.10 moko 15373: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.11 ! moko 15374: cat >conftest.$ac_ext <<_ACEOF
! 15375: /* confdefs.h. */
! 15376: _ACEOF
! 15377: cat confdefs.h >>conftest.$ac_ext
! 15378: cat >>conftest.$ac_ext <<_ACEOF
! 15379: /* end confdefs.h. */
1.8 moko 15380:
1.11 ! moko 15381: /* Override any gcc2 internal prototype to avoid an error. */
! 15382: #ifdef __cplusplus
! 15383: extern "C"
! 15384: #endif
! 15385: /* We use char because int might match the return type of a gcc2
! 15386: builtin and then its argument prototype would still apply. */
! 15387: char dlopen ();
! 15388: int
! 15389: main ()
! 15390: {
! 15391: dlopen ();
! 15392: ;
! 15393: return 0;
! 15394: }
! 15395: _ACEOF
! 15396: rm -f conftest.$ac_objext conftest$ac_exeext
! 15397: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15398: (eval $ac_link) 2>conftest.er1
! 15399: ac_status=$?
! 15400: grep -v '^ *+' conftest.er1 >conftest.err
! 15401: rm -f conftest.er1
! 15402: cat conftest.err >&5
! 15403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15404: (exit $ac_status); } &&
! 15405: { ac_try='test -z "$ac_c_werror_flag"
! 15406: || test ! -s conftest.err'
! 15407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15408: (eval $ac_try) 2>&5
! 15409: ac_status=$?
! 15410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15411: (exit $ac_status); }; } &&
! 15412: { ac_try='test -s conftest$ac_exeext'
! 15413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15414: (eval $ac_try) 2>&5
! 15415: ac_status=$?
! 15416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15417: (exit $ac_status); }; }; then
! 15418: ac_cv_search_dlopen="-l$ac_lib"
! 15419: break
1.8 moko 15420: else
1.11 ! moko 15421: echo "$as_me: failed program was:" >&5
! 15422: sed 's/^/| /' conftest.$ac_ext >&5
! 15423:
! 15424: fi
! 15425: rm -f conftest.err conftest.$ac_objext \
! 15426: conftest$ac_exeext conftest.$ac_ext
! 15427: done
1.8 moko 15428: fi
15429: LIBS=$ac_func_search_save_LIBS
15430: fi
1.11 ! moko 15431: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
! 15432: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
! 15433: if test "$ac_cv_search_dlopen" != no; then
! 15434: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
1.8 moko 15435:
1.11 ! moko 15436: cat >>confdefs.h <<\_ACEOF
! 15437: #define HAVE_LIBDL 1
! 15438: _ACEOF
1.8 moko 15439:
15440: if test "$ac_cv_search_dlopen" != "none required" ; then
15441: LIBADD_DLOPEN="-ldl"
15442: fi
15443: libltdl_cv_lib_dl_dlopen="yes"
15444: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15445: else
1.11 ! moko 15446: cat >conftest.$ac_ext <<_ACEOF
! 15447: /* confdefs.h. */
! 15448: _ACEOF
! 15449: cat confdefs.h >>conftest.$ac_ext
! 15450: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15451: /* end confdefs.h. */
15452: #if HAVE_DLFCN_H
15453: # include <dlfcn.h>
15454: #endif
15455:
15456: int
15457: main ()
15458: {
15459: dlopen(0, 0);
15460: ;
15461: return 0;
15462: }
15463: _ACEOF
1.11 ! moko 15464: rm -f conftest.$ac_objext conftest$ac_exeext
! 15465: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15466: (eval $ac_link) 2>conftest.er1
! 15467: ac_status=$?
! 15468: grep -v '^ *+' conftest.er1 >conftest.err
! 15469: rm -f conftest.er1
! 15470: cat conftest.err >&5
! 15471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15472: (exit $ac_status); } &&
! 15473: { ac_try='test -z "$ac_c_werror_flag"
! 15474: || test ! -s conftest.err'
! 15475: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15476: (eval $ac_try) 2>&5
! 15477: ac_status=$?
! 15478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15479: (exit $ac_status); }; } &&
! 15480: { ac_try='test -s conftest$ac_exeext'
! 15481: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15482: (eval $ac_try) 2>&5
! 15483: ac_status=$?
! 15484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15485: (exit $ac_status); }; }; then
1.8 moko 15486:
1.11 ! moko 15487: cat >>confdefs.h <<\_ACEOF
! 15488: #define HAVE_LIBDL 1
! 15489: _ACEOF
1.8 moko 15490:
15491: libltdl_cv_func_dlopen="yes"
15492: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15493: else
1.11 ! moko 15494: echo "$as_me: failed program was:" >&5
! 15495: sed 's/^/| /' conftest.$ac_ext >&5
! 15496:
! 15497: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 15498: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 15499: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 15500: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15501: else
15502: ac_check_lib_save_LIBS=$LIBS
15503: LIBS="-lsvld $LIBS"
1.11 ! moko 15504: cat >conftest.$ac_ext <<_ACEOF
! 15505: /* confdefs.h. */
! 15506: _ACEOF
! 15507: cat confdefs.h >>conftest.$ac_ext
! 15508: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15509: /* end confdefs.h. */
15510:
1.11 ! moko 15511: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15512: #ifdef __cplusplus
15513: extern "C"
15514: #endif
1.11 ! moko 15515: /* We use char because int might match the return type of a gcc2
! 15516: builtin and then its argument prototype would still apply. */
1.8 moko 15517: char dlopen ();
15518: int
15519: main ()
15520: {
1.11 ! moko 15521: dlopen ();
1.8 moko 15522: ;
15523: return 0;
15524: }
15525: _ACEOF
1.11 ! moko 15526: rm -f conftest.$ac_objext conftest$ac_exeext
! 15527: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15528: (eval $ac_link) 2>conftest.er1
! 15529: ac_status=$?
! 15530: grep -v '^ *+' conftest.er1 >conftest.err
! 15531: rm -f conftest.er1
! 15532: cat conftest.err >&5
! 15533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15534: (exit $ac_status); } &&
! 15535: { ac_try='test -z "$ac_c_werror_flag"
! 15536: || test ! -s conftest.err'
! 15537: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15538: (eval $ac_try) 2>&5
! 15539: ac_status=$?
! 15540: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15541: (exit $ac_status); }; } &&
! 15542: { ac_try='test -s conftest$ac_exeext'
! 15543: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15544: (eval $ac_try) 2>&5
! 15545: ac_status=$?
! 15546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15547: (exit $ac_status); }; }; then
1.8 moko 15548: ac_cv_lib_svld_dlopen=yes
15549: else
1.11 ! moko 15550: echo "$as_me: failed program was:" >&5
! 15551: sed 's/^/| /' conftest.$ac_ext >&5
! 15552:
! 15553: ac_cv_lib_svld_dlopen=no
1.8 moko 15554: fi
1.11 ! moko 15555: rm -f conftest.err conftest.$ac_objext \
! 15556: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15557: LIBS=$ac_check_lib_save_LIBS
15558: fi
1.11 ! moko 15559: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 15560: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 15561: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 15562:
1.11 ! moko 15563: cat >>confdefs.h <<\_ACEOF
! 15564: #define HAVE_LIBDL 1
! 15565: _ACEOF
1.8 moko 15566:
15567: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15568: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15569: fi
15570:
15571: fi
1.11 ! moko 15572: rm -f conftest.err conftest.$ac_objext \
! 15573: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15574: fi
15575:
15576: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15577: then
15578: lt_save_LIBS="$LIBS"
15579: LIBS="$LIBS $LIBADD_DLOPEN"
1.11 ! moko 15580:
! 15581: for ac_func in dlerror
! 15582: do
! 15583: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15584: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15585: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15586: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 15587: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15588: else
! 15589: cat >conftest.$ac_ext <<_ACEOF
! 15590: /* confdefs.h. */
! 15591: _ACEOF
! 15592: cat confdefs.h >>conftest.$ac_ext
! 15593: cat >>conftest.$ac_ext <<_ACEOF
! 15594: /* end confdefs.h. */
! 15595: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15596: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15597: #define $ac_func innocuous_$ac_func
! 15598:
! 15599: /* System header to define __stub macros and hopefully few prototypes,
! 15600: which can conflict with char $ac_func (); below.
! 15601: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15602: <limits.h> exists even on freestanding compilers. */
! 15603:
! 15604: #ifdef __STDC__
! 15605: # include <limits.h>
! 15606: #else
! 15607: # include <assert.h>
! 15608: #endif
! 15609:
! 15610: #undef $ac_func
! 15611:
! 15612: /* Override any gcc2 internal prototype to avoid an error. */
! 15613: #ifdef __cplusplus
! 15614: extern "C"
! 15615: {
! 15616: #endif
! 15617: /* We use char because int might match the return type of a gcc2
! 15618: builtin and then its argument prototype would still apply. */
! 15619: char $ac_func ();
! 15620: /* The GNU C library defines this for functions which it implements
! 15621: to always fail with ENOSYS. Some functions are actually named
! 15622: something starting with __ and the normal name is an alias. */
! 15623: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15624: choke me
! 15625: #else
! 15626: char (*f) () = $ac_func;
! 15627: #endif
! 15628: #ifdef __cplusplus
! 15629: }
! 15630: #endif
! 15631:
! 15632: int
! 15633: main ()
! 15634: {
! 15635: return f != $ac_func;
! 15636: ;
! 15637: return 0;
! 15638: }
! 15639: _ACEOF
! 15640: rm -f conftest.$ac_objext conftest$ac_exeext
! 15641: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15642: (eval $ac_link) 2>conftest.er1
! 15643: ac_status=$?
! 15644: grep -v '^ *+' conftest.er1 >conftest.err
! 15645: rm -f conftest.er1
! 15646: cat conftest.err >&5
! 15647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15648: (exit $ac_status); } &&
! 15649: { ac_try='test -z "$ac_c_werror_flag"
! 15650: || test ! -s conftest.err'
! 15651: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15652: (eval $ac_try) 2>&5
! 15653: ac_status=$?
! 15654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15655: (exit $ac_status); }; } &&
! 15656: { ac_try='test -s conftest$ac_exeext'
! 15657: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15658: (eval $ac_try) 2>&5
! 15659: ac_status=$?
! 15660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15661: (exit $ac_status); }; }; then
! 15662: eval "$as_ac_var=yes"
! 15663: else
! 15664: echo "$as_me: failed program was:" >&5
! 15665: sed 's/^/| /' conftest.$ac_ext >&5
! 15666:
! 15667: eval "$as_ac_var=no"
! 15668: fi
! 15669: rm -f conftest.err conftest.$ac_objext \
! 15670: conftest$ac_exeext conftest.$ac_ext
! 15671: fi
! 15672: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15673: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15674: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 15675: cat >>confdefs.h <<_ACEOF
1.11 ! moko 15676: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 15677: _ACEOF
15678:
15679: fi
15680: done
15681:
15682: LIBS="$lt_save_LIBS"
15683: fi
15684:
15685:
15686: LIBADD_SHL_LOAD=
1.11 ! moko 15687: echo "$as_me:$LINENO: checking for shl_load" >&5
! 15688: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 15689: if test "${ac_cv_func_shl_load+set}" = set; then
! 15690: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15691: else
! 15692: cat >conftest.$ac_ext <<_ACEOF
! 15693: /* confdefs.h. */
! 15694: _ACEOF
! 15695: cat confdefs.h >>conftest.$ac_ext
! 15696: cat >>conftest.$ac_ext <<_ACEOF
! 15697: /* end confdefs.h. */
! 15698: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 15699: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15700: #define shl_load innocuous_shl_load
! 15701:
! 15702: /* System header to define __stub macros and hopefully few prototypes,
! 15703: which can conflict with char shl_load (); below.
! 15704: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15705: <limits.h> exists even on freestanding compilers. */
! 15706:
! 15707: #ifdef __STDC__
! 15708: # include <limits.h>
! 15709: #else
! 15710: # include <assert.h>
! 15711: #endif
! 15712:
! 15713: #undef shl_load
! 15714:
! 15715: /* Override any gcc2 internal prototype to avoid an error. */
! 15716: #ifdef __cplusplus
! 15717: extern "C"
! 15718: {
! 15719: #endif
! 15720: /* We use char because int might match the return type of a gcc2
! 15721: builtin and then its argument prototype would still apply. */
! 15722: char shl_load ();
! 15723: /* The GNU C library defines this for functions which it implements
! 15724: to always fail with ENOSYS. Some functions are actually named
! 15725: something starting with __ and the normal name is an alias. */
! 15726: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 15727: choke me
! 15728: #else
! 15729: char (*f) () = shl_load;
! 15730: #endif
! 15731: #ifdef __cplusplus
! 15732: }
! 15733: #endif
! 15734:
! 15735: int
! 15736: main ()
! 15737: {
! 15738: return f != shl_load;
! 15739: ;
! 15740: return 0;
! 15741: }
! 15742: _ACEOF
! 15743: rm -f conftest.$ac_objext conftest$ac_exeext
! 15744: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15745: (eval $ac_link) 2>conftest.er1
! 15746: ac_status=$?
! 15747: grep -v '^ *+' conftest.er1 >conftest.err
! 15748: rm -f conftest.er1
! 15749: cat conftest.err >&5
! 15750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15751: (exit $ac_status); } &&
! 15752: { ac_try='test -z "$ac_c_werror_flag"
! 15753: || test ! -s conftest.err'
! 15754: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15755: (eval $ac_try) 2>&5
! 15756: ac_status=$?
! 15757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15758: (exit $ac_status); }; } &&
! 15759: { ac_try='test -s conftest$ac_exeext'
! 15760: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15761: (eval $ac_try) 2>&5
! 15762: ac_status=$?
! 15763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15764: (exit $ac_status); }; }; then
! 15765: ac_cv_func_shl_load=yes
! 15766: else
! 15767: echo "$as_me: failed program was:" >&5
! 15768: sed 's/^/| /' conftest.$ac_ext >&5
! 15769:
! 15770: ac_cv_func_shl_load=no
! 15771: fi
! 15772: rm -f conftest.err conftest.$ac_objext \
! 15773: conftest$ac_exeext conftest.$ac_ext
! 15774: fi
! 15775: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 15776: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 15777: if test $ac_cv_func_shl_load = yes; then
1.8 moko 15778:
1.11 ! moko 15779: cat >>confdefs.h <<\_ACEOF
! 15780: #define HAVE_SHL_LOAD 1
! 15781: _ACEOF
1.8 moko 15782:
15783: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15784: else
1.11 ! moko 15785: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 15786: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 15787: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 15788: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15789: else
15790: ac_check_lib_save_LIBS=$LIBS
15791: LIBS="-ldld $LIBS"
1.11 ! moko 15792: cat >conftest.$ac_ext <<_ACEOF
! 15793: /* confdefs.h. */
! 15794: _ACEOF
! 15795: cat confdefs.h >>conftest.$ac_ext
! 15796: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15797: /* end confdefs.h. */
15798:
1.11 ! moko 15799: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15800: #ifdef __cplusplus
15801: extern "C"
15802: #endif
1.11 ! moko 15803: /* We use char because int might match the return type of a gcc2
! 15804: builtin and then its argument prototype would still apply. */
1.8 moko 15805: char shl_load ();
15806: int
15807: main ()
15808: {
1.11 ! moko 15809: shl_load ();
1.8 moko 15810: ;
15811: return 0;
15812: }
15813: _ACEOF
1.11 ! moko 15814: rm -f conftest.$ac_objext conftest$ac_exeext
! 15815: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15816: (eval $ac_link) 2>conftest.er1
! 15817: ac_status=$?
! 15818: grep -v '^ *+' conftest.er1 >conftest.err
! 15819: rm -f conftest.er1
! 15820: cat conftest.err >&5
! 15821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15822: (exit $ac_status); } &&
! 15823: { ac_try='test -z "$ac_c_werror_flag"
! 15824: || test ! -s conftest.err'
! 15825: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15826: (eval $ac_try) 2>&5
! 15827: ac_status=$?
! 15828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15829: (exit $ac_status); }; } &&
! 15830: { ac_try='test -s conftest$ac_exeext'
! 15831: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15832: (eval $ac_try) 2>&5
! 15833: ac_status=$?
! 15834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15835: (exit $ac_status); }; }; then
1.8 moko 15836: ac_cv_lib_dld_shl_load=yes
15837: else
1.11 ! moko 15838: echo "$as_me: failed program was:" >&5
! 15839: sed 's/^/| /' conftest.$ac_ext >&5
! 15840:
! 15841: ac_cv_lib_dld_shl_load=no
1.8 moko 15842: fi
1.11 ! moko 15843: rm -f conftest.err conftest.$ac_objext \
! 15844: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15845: LIBS=$ac_check_lib_save_LIBS
15846: fi
1.11 ! moko 15847: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 15848: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 15849: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 15850:
1.11 ! moko 15851: cat >>confdefs.h <<\_ACEOF
! 15852: #define HAVE_SHL_LOAD 1
! 15853: _ACEOF
1.8 moko 15854:
15855: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15856: LIBADD_SHL_LOAD="-ldld"
15857: fi
15858:
15859: fi
15860:
15861:
15862:
15863: case $host_os in
15864: darwin[1567].*)
15865: # We only want this for pre-Mac OS X 10.4.
1.11 ! moko 15866: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
! 15867: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
! 15868: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
! 15869: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15870: else
! 15871: cat >conftest.$ac_ext <<_ACEOF
! 15872: /* confdefs.h. */
! 15873: _ACEOF
! 15874: cat confdefs.h >>conftest.$ac_ext
! 15875: cat >>conftest.$ac_ext <<_ACEOF
! 15876: /* end confdefs.h. */
! 15877: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
! 15878: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15879: #define _dyld_func_lookup innocuous__dyld_func_lookup
! 15880:
! 15881: /* System header to define __stub macros and hopefully few prototypes,
! 15882: which can conflict with char _dyld_func_lookup (); below.
! 15883: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15884: <limits.h> exists even on freestanding compilers. */
! 15885:
! 15886: #ifdef __STDC__
! 15887: # include <limits.h>
! 15888: #else
! 15889: # include <assert.h>
! 15890: #endif
! 15891:
! 15892: #undef _dyld_func_lookup
! 15893:
! 15894: /* Override any gcc2 internal prototype to avoid an error. */
! 15895: #ifdef __cplusplus
! 15896: extern "C"
! 15897: {
! 15898: #endif
! 15899: /* We use char because int might match the return type of a gcc2
! 15900: builtin and then its argument prototype would still apply. */
! 15901: char _dyld_func_lookup ();
! 15902: /* The GNU C library defines this for functions which it implements
! 15903: to always fail with ENOSYS. Some functions are actually named
! 15904: something starting with __ and the normal name is an alias. */
! 15905: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
! 15906: choke me
! 15907: #else
! 15908: char (*f) () = _dyld_func_lookup;
! 15909: #endif
! 15910: #ifdef __cplusplus
! 15911: }
! 15912: #endif
! 15913:
! 15914: int
! 15915: main ()
! 15916: {
! 15917: return f != _dyld_func_lookup;
! 15918: ;
! 15919: return 0;
! 15920: }
! 15921: _ACEOF
! 15922: rm -f conftest.$ac_objext conftest$ac_exeext
! 15923: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15924: (eval $ac_link) 2>conftest.er1
! 15925: ac_status=$?
! 15926: grep -v '^ *+' conftest.er1 >conftest.err
! 15927: rm -f conftest.er1
! 15928: cat conftest.err >&5
! 15929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15930: (exit $ac_status); } &&
! 15931: { ac_try='test -z "$ac_c_werror_flag"
! 15932: || test ! -s conftest.err'
! 15933: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15934: (eval $ac_try) 2>&5
! 15935: ac_status=$?
! 15936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15937: (exit $ac_status); }; } &&
! 15938: { ac_try='test -s conftest$ac_exeext'
! 15939: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15940: (eval $ac_try) 2>&5
! 15941: ac_status=$?
! 15942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15943: (exit $ac_status); }; }; then
! 15944: ac_cv_func__dyld_func_lookup=yes
! 15945: else
! 15946: echo "$as_me: failed program was:" >&5
! 15947: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 15948:
1.11 ! moko 15949: ac_cv_func__dyld_func_lookup=no
! 15950: fi
! 15951: rm -f conftest.err conftest.$ac_objext \
! 15952: conftest$ac_exeext conftest.$ac_ext
! 15953: fi
! 15954: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
! 15955: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
! 15956: if test $ac_cv_func__dyld_func_lookup = yes; then
! 15957:
! 15958: cat >>confdefs.h <<\_ACEOF
! 15959: #define HAVE_DYLD 1
! 15960: _ACEOF
1.8 moko 15961:
15962: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15963: fi
15964:
15965: ;;
15966: beos*)
15967: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15968: ;;
15969: cygwin* | mingw* | os2* | pw32*)
1.11 ! moko 15970: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
! 15971: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
! 15972: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
! 15973: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15974: else
! 15975: cat >conftest.$ac_ext <<_ACEOF
! 15976: /* confdefs.h. */
! 15977: _ACEOF
! 15978: cat confdefs.h >>conftest.$ac_ext
! 15979: cat >>conftest.$ac_ext <<_ACEOF
! 15980: /* end confdefs.h. */
! 15981: #include <sys/cygwin.h>
! 15982:
! 15983: int
! 15984: main ()
! 15985: {
! 15986: #ifndef cygwin_conv_path
! 15987: char *p = (char *) cygwin_conv_path;
! 15988: #endif
! 15989:
! 15990: ;
! 15991: return 0;
! 15992: }
! 15993: _ACEOF
! 15994: rm -f conftest.$ac_objext
! 15995: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 15996: (eval $ac_compile) 2>conftest.er1
! 15997: ac_status=$?
! 15998: grep -v '^ *+' conftest.er1 >conftest.err
! 15999: rm -f conftest.er1
! 16000: cat conftest.err >&5
! 16001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16002: (exit $ac_status); } &&
! 16003: { ac_try='test -z "$ac_c_werror_flag"
! 16004: || test ! -s conftest.err'
! 16005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16006: (eval $ac_try) 2>&5
! 16007: ac_status=$?
! 16008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16009: (exit $ac_status); }; } &&
! 16010: { ac_try='test -s conftest.$ac_objext'
! 16011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16012: (eval $ac_try) 2>&5
! 16013: ac_status=$?
! 16014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16015: (exit $ac_status); }; }; then
! 16016: ac_cv_have_decl_cygwin_conv_path=yes
1.8 moko 16017: else
1.11 ! moko 16018: echo "$as_me: failed program was:" >&5
! 16019: sed 's/^/| /' conftest.$ac_ext >&5
! 16020:
! 16021: ac_cv_have_decl_cygwin_conv_path=no
! 16022: fi
! 16023: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.8 moko 16024: fi
1.11 ! moko 16025: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
! 16026: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
! 16027: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
1.8 moko 16028:
16029: cat >>confdefs.h <<_ACEOF
1.11 ! moko 16030: #define HAVE_DECL_CYGWIN_CONV_PATH 1
! 16031: _ACEOF
! 16032:
! 16033:
! 16034: else
! 16035: cat >>confdefs.h <<_ACEOF
! 16036: #define HAVE_DECL_CYGWIN_CONV_PATH 0
1.8 moko 16037: _ACEOF
16038:
1.11 ! moko 16039:
! 16040: fi
! 16041:
! 16042:
1.8 moko 16043: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16044: ;;
16045: esac
16046:
1.11 ! moko 16047: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 16048: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 16049: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 16050: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16051: else
16052: ac_check_lib_save_LIBS=$LIBS
16053: LIBS="-ldld $LIBS"
1.11 ! moko 16054: cat >conftest.$ac_ext <<_ACEOF
! 16055: /* confdefs.h. */
! 16056: _ACEOF
! 16057: cat confdefs.h >>conftest.$ac_ext
! 16058: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16059: /* end confdefs.h. */
16060:
1.11 ! moko 16061: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16062: #ifdef __cplusplus
16063: extern "C"
16064: #endif
1.11 ! moko 16065: /* We use char because int might match the return type of a gcc2
! 16066: builtin and then its argument prototype would still apply. */
1.8 moko 16067: char dld_link ();
16068: int
16069: main ()
16070: {
1.11 ! moko 16071: dld_link ();
1.8 moko 16072: ;
16073: return 0;
16074: }
16075: _ACEOF
1.11 ! moko 16076: rm -f conftest.$ac_objext conftest$ac_exeext
! 16077: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16078: (eval $ac_link) 2>conftest.er1
! 16079: ac_status=$?
! 16080: grep -v '^ *+' conftest.er1 >conftest.err
! 16081: rm -f conftest.er1
! 16082: cat conftest.err >&5
! 16083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16084: (exit $ac_status); } &&
! 16085: { ac_try='test -z "$ac_c_werror_flag"
! 16086: || test ! -s conftest.err'
! 16087: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16088: (eval $ac_try) 2>&5
! 16089: ac_status=$?
! 16090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16091: (exit $ac_status); }; } &&
! 16092: { ac_try='test -s conftest$ac_exeext'
! 16093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16094: (eval $ac_try) 2>&5
! 16095: ac_status=$?
! 16096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16097: (exit $ac_status); }; }; then
1.8 moko 16098: ac_cv_lib_dld_dld_link=yes
16099: else
1.11 ! moko 16100: echo "$as_me: failed program was:" >&5
! 16101: sed 's/^/| /' conftest.$ac_ext >&5
! 16102:
! 16103: ac_cv_lib_dld_dld_link=no
1.8 moko 16104: fi
1.11 ! moko 16105: rm -f conftest.err conftest.$ac_objext \
! 16106: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16107: LIBS=$ac_check_lib_save_LIBS
16108: fi
1.11 ! moko 16109: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 16110: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 16111: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 16112:
1.11 ! moko 16113: cat >>confdefs.h <<\_ACEOF
! 16114: #define HAVE_DLD 1
! 16115: _ACEOF
1.8 moko 16116:
16117: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16118: fi
16119:
16120:
16121:
16122:
16123: LT_DLPREOPEN=
16124: if test -n "$LT_DLLOADERS"
16125: then
16126: for lt_loader in $LT_DLLOADERS; do
16127: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16128: done
16129:
1.11 ! moko 16130: cat >>confdefs.h <<\_ACEOF
! 16131: #define HAVE_LIBDLLOADER 1
! 16132: _ACEOF
1.8 moko 16133:
16134: fi
16135:
16136:
16137: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16138:
16139:
16140: ac_ext=c
16141: ac_cpp='$CPP $CPPFLAGS'
16142: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16143: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16144: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16145:
16146:
1.11 ! moko 16147: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
! 16148: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
! 16149: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
! 16150: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16151: else
16152: lt_cv_sys_symbol_underscore=no
16153: cat > conftest.$ac_ext <<_LT_EOF
16154: void nm_test_func(){}
16155: int main(){nm_test_func;return 0;}
16156: _LT_EOF
1.11 ! moko 16157: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 16158: (eval $ac_compile) 2>&5
16159: ac_status=$?
1.11 ! moko 16160: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16161: (exit $ac_status); }; then
1.8 moko 16162: # Now try to grab the symbols.
16163: ac_nlist=conftest.nm
1.11 ! moko 16164: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
1.8 moko 16165: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16166: ac_status=$?
1.11 ! moko 16167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16168: (exit $ac_status); } && test -s "$ac_nlist"; then
1.8 moko 16169: # See whether the symbols have a leading underscore.
16170: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16171: lt_cv_sys_symbol_underscore=yes
16172: else
16173: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16174: :
16175: else
16176: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16177: fi
16178: fi
16179: else
16180: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16181: fi
16182: else
16183: echo "configure: failed program was:" >&5
16184: cat conftest.c >&5
16185: fi
16186: rm -rf conftest*
16187:
16188: fi
1.11 ! moko 16189: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
! 16190: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
1.8 moko 16191: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16192:
16193:
16194: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16195: if test x"$libltdl_cv_func_dlopen" = xyes ||
16196: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.11 ! moko 16197: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
! 16198: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
! 16199: if test "${libltdl_cv_need_uscore+set}" = set; then
! 16200: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16201: else
16202: libltdl_cv_need_uscore=unknown
16203: save_LIBS="$LIBS"
16204: LIBS="$LIBS $LIBADD_DLOPEN"
16205: if test "$cross_compiling" = yes; then :
16206: libltdl_cv_need_uscore=cross
16207: else
16208: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16209: lt_status=$lt_dlunknown
16210: cat > conftest.$ac_ext <<_LT_EOF
16211: #line $LINENO "configure"
16212: #include "confdefs.h"
16213:
16214: #if HAVE_DLFCN_H
16215: #include <dlfcn.h>
16216: #endif
16217:
16218: #include <stdio.h>
16219:
16220: #ifdef RTLD_GLOBAL
16221: # define LT_DLGLOBAL RTLD_GLOBAL
16222: #else
16223: # ifdef DL_GLOBAL
16224: # define LT_DLGLOBAL DL_GLOBAL
16225: # else
16226: # define LT_DLGLOBAL 0
16227: # endif
16228: #endif
16229:
16230: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16231: find out it does not work in some platform. */
16232: #ifndef LT_DLLAZY_OR_NOW
16233: # ifdef RTLD_LAZY
16234: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16235: # else
16236: # ifdef DL_LAZY
16237: # define LT_DLLAZY_OR_NOW DL_LAZY
16238: # else
16239: # ifdef RTLD_NOW
16240: # define LT_DLLAZY_OR_NOW RTLD_NOW
16241: # else
16242: # ifdef DL_NOW
16243: # define LT_DLLAZY_OR_NOW DL_NOW
16244: # else
16245: # define LT_DLLAZY_OR_NOW 0
16246: # endif
16247: # endif
16248: # endif
16249: # endif
16250: #endif
16251:
16252: /* When -fvisbility=hidden is used, assume the code has been annotated
16253: correspondingly for the symbols needed. */
16254: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16255: int fnord () __attribute__((visibility("default")));
16256: #endif
16257:
16258: int fnord () { return 42; }
16259: int main ()
16260: {
16261: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16262: int status = $lt_dlunknown;
16263:
16264: if (self)
16265: {
16266: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16267: else
16268: {
16269: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16270: else puts (dlerror ());
16271: }
16272: /* dlclose (self); */
16273: }
16274: else
16275: puts (dlerror ());
16276:
16277: return status;
16278: }
16279: _LT_EOF
1.11 ! moko 16280: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 16281: (eval $ac_link) 2>&5
16282: ac_status=$?
1.11 ! moko 16283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16284: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 16285: (./conftest; exit; ) >&5 2>/dev/null
16286: lt_status=$?
16287: case x$lt_status in
16288: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16289: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16290: x$lt_dlunknown|x*) ;;
16291: esac
16292: else :
16293: # compilation failed
16294:
16295: fi
16296: fi
16297: rm -fr conftest*
16298:
16299: LIBS="$save_LIBS"
16300:
16301: fi
1.11 ! moko 16302: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
! 16303: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
1.8 moko 16304: fi
16305: fi
16306:
16307: if test x"$libltdl_cv_need_uscore" = xyes; then
16308:
1.11 ! moko 16309: cat >>confdefs.h <<\_ACEOF
! 16310: #define NEED_USCORE 1
! 16311: _ACEOF
1.8 moko 16312:
16313: fi
16314:
1.11 ! moko 16315: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
! 16316: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
! 16317: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
! 16318: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16319: else
16320: # PORTME does your system automatically load deplibs for dlopen?
16321: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16322: # For now, we just catch OSes we know something about -- in the
16323: # future, we'll try test this programmatically.
16324: lt_cv_sys_dlopen_deplibs=unknown
16325: case $host_os in
16326: aix3*|aix4.1.*|aix4.2.*)
16327: # Unknown whether this is true for these versions of AIX, but
16328: # we want this `case' here to explicitly catch those versions.
16329: lt_cv_sys_dlopen_deplibs=unknown
16330: ;;
16331: aix[4-9]*)
16332: lt_cv_sys_dlopen_deplibs=yes
16333: ;;
16334: amigaos*)
16335: case $host_cpu in
16336: powerpc)
16337: lt_cv_sys_dlopen_deplibs=no
16338: ;;
16339: esac
16340: ;;
16341: darwin*)
16342: # Assuming the user has installed a libdl from somewhere, this is true
16343: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16344: lt_cv_sys_dlopen_deplibs=yes
16345: ;;
16346: freebsd* | dragonfly*)
16347: lt_cv_sys_dlopen_deplibs=yes
16348: ;;
16349: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16350: # GNU and its variants, using gnu ld.so (Glibc)
16351: lt_cv_sys_dlopen_deplibs=yes
16352: ;;
16353: hpux10*|hpux11*)
16354: lt_cv_sys_dlopen_deplibs=yes
16355: ;;
16356: interix*)
16357: lt_cv_sys_dlopen_deplibs=yes
16358: ;;
16359: irix[12345]*|irix6.[01]*)
16360: # Catch all versions of IRIX before 6.2, and indicate that we don't
16361: # know how it worked for any of those versions.
16362: lt_cv_sys_dlopen_deplibs=unknown
16363: ;;
16364: irix*)
16365: # The case above catches anything before 6.2, and it's known that
16366: # at 6.2 and later dlopen does load deplibs.
16367: lt_cv_sys_dlopen_deplibs=yes
16368: ;;
16369: netbsd*)
16370: lt_cv_sys_dlopen_deplibs=yes
16371: ;;
16372: openbsd*)
16373: lt_cv_sys_dlopen_deplibs=yes
16374: ;;
16375: osf[1234]*)
16376: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16377: # it did *not* use an RPATH in a shared library to find objects the
16378: # library depends on, so we explicitly say `no'.
16379: lt_cv_sys_dlopen_deplibs=no
16380: ;;
16381: osf5.0|osf5.0a|osf5.1)
16382: # dlopen *does* load deplibs and with the right loader patch applied
16383: # it even uses RPATH in a shared library to search for shared objects
16384: # that the library depends on, but there's no easy way to know if that
16385: # patch is installed. Since this is the case, all we can really
16386: # say is unknown -- it depends on the patch being installed. If
16387: # it is, this changes to `yes'. Without it, it would be `no'.
16388: lt_cv_sys_dlopen_deplibs=unknown
16389: ;;
16390: osf*)
16391: # the two cases above should catch all versions of osf <= 5.1. Read
16392: # the comments above for what we know about them.
16393: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16394: # is used to find them so we can finally say `yes'.
16395: lt_cv_sys_dlopen_deplibs=yes
16396: ;;
16397: qnx*)
16398: lt_cv_sys_dlopen_deplibs=yes
16399: ;;
16400: solaris*)
16401: lt_cv_sys_dlopen_deplibs=yes
16402: ;;
16403: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16404: libltdl_cv_sys_dlopen_deplibs=yes
16405: ;;
16406: esac
16407:
16408: fi
1.11 ! moko 16409: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
! 16410: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
1.8 moko 16411: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16412:
1.11 ! moko 16413: cat >>confdefs.h <<\_ACEOF
! 16414: #define LTDL_DLOPEN_DEPLIBS 1
! 16415: _ACEOF
1.8 moko 16416:
16417: fi
16418:
16419: :
16420:
1.11 ! moko 16421:
1.8 moko 16422: for ac_header in argz.h
1.11 ! moko 16423: do
! 16424: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16425: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 16426: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 16427: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 16428: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16429: else
! 16430: cat >conftest.$ac_ext <<_ACEOF
! 16431: /* confdefs.h. */
! 16432: _ACEOF
! 16433: cat confdefs.h >>conftest.$ac_ext
! 16434: cat >>conftest.$ac_ext <<_ACEOF
! 16435: /* end confdefs.h. */
! 16436: $ac_includes_default
! 16437:
! 16438: #include <$ac_header>
! 16439: _ACEOF
! 16440: rm -f conftest.$ac_objext
! 16441: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 16442: (eval $ac_compile) 2>conftest.er1
! 16443: ac_status=$?
! 16444: grep -v '^ *+' conftest.er1 >conftest.err
! 16445: rm -f conftest.er1
! 16446: cat conftest.err >&5
! 16447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16448: (exit $ac_status); } &&
! 16449: { ac_try='test -z "$ac_c_werror_flag"
! 16450: || test ! -s conftest.err'
! 16451: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16452: (eval $ac_try) 2>&5
! 16453: ac_status=$?
! 16454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16455: (exit $ac_status); }; } &&
! 16456: { ac_try='test -s conftest.$ac_objext'
! 16457: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16458: (eval $ac_try) 2>&5
! 16459: ac_status=$?
! 16460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16461: (exit $ac_status); }; }; then
! 16462: eval "$as_ac_Header=yes"
! 16463: else
! 16464: echo "$as_me: failed program was:" >&5
! 16465: sed 's/^/| /' conftest.$ac_ext >&5
! 16466:
! 16467: eval "$as_ac_Header=no"
! 16468: fi
! 16469: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 16470: fi
! 16471: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 16472: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 16473: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 16474: cat >>confdefs.h <<_ACEOF
1.11 ! moko 16475: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16476: _ACEOF
16477:
16478: fi
16479:
16480: done
16481:
16482:
1.11 ! moko 16483: echo "$as_me:$LINENO: checking for error_t" >&5
! 16484: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
! 16485: if test "${ac_cv_type_error_t+set}" = set; then
! 16486: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16487: else
! 16488: cat >conftest.$ac_ext <<_ACEOF
! 16489: /* confdefs.h. */
! 16490: _ACEOF
! 16491: cat confdefs.h >>conftest.$ac_ext
! 16492: cat >>conftest.$ac_ext <<_ACEOF
! 16493: /* end confdefs.h. */
! 16494: #if defined(HAVE_ARGZ_H)
1.8 moko 16495: # include <argz.h>
16496: #endif
1.11 ! moko 16497:
! 16498: int
! 16499: main ()
! 16500: {
! 16501: if ((error_t *) 0)
! 16502: return 0;
! 16503: if (sizeof (error_t))
! 16504: return 0;
! 16505: ;
! 16506: return 0;
! 16507: }
! 16508: _ACEOF
! 16509: rm -f conftest.$ac_objext
! 16510: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 16511: (eval $ac_compile) 2>conftest.er1
! 16512: ac_status=$?
! 16513: grep -v '^ *+' conftest.er1 >conftest.err
! 16514: rm -f conftest.er1
! 16515: cat conftest.err >&5
! 16516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16517: (exit $ac_status); } &&
! 16518: { ac_try='test -z "$ac_c_werror_flag"
! 16519: || test ! -s conftest.err'
! 16520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16521: (eval $ac_try) 2>&5
! 16522: ac_status=$?
! 16523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16524: (exit $ac_status); }; } &&
! 16525: { ac_try='test -s conftest.$ac_objext'
! 16526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16527: (eval $ac_try) 2>&5
! 16528: ac_status=$?
! 16529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16530: (exit $ac_status); }; }; then
! 16531: ac_cv_type_error_t=yes
! 16532: else
! 16533: echo "$as_me: failed program was:" >&5
! 16534: sed 's/^/| /' conftest.$ac_ext >&5
! 16535:
! 16536: ac_cv_type_error_t=no
! 16537: fi
! 16538: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 16539: fi
! 16540: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
! 16541: echo "${ECHO_T}$ac_cv_type_error_t" >&6
! 16542: if test $ac_cv_type_error_t = yes; then
1.8 moko 16543:
16544: cat >>confdefs.h <<_ACEOF
16545: #define HAVE_ERROR_T 1
16546: _ACEOF
16547:
16548:
16549: else
16550:
1.11 ! moko 16551: cat >>confdefs.h <<\_ACEOF
! 16552: #define error_t int
! 16553: _ACEOF
1.8 moko 16554:
16555:
1.11 ! moko 16556: cat >>confdefs.h <<\_ACEOF
! 16557: #define __error_t_defined 1
! 16558: _ACEOF
1.8 moko 16559:
16560: fi
16561:
16562:
16563: ARGZ_H=
1.11 ! moko 16564:
! 16565:
! 16566:
! 16567:
! 16568:
! 16569:
! 16570:
1.8 moko 16571: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16572: argz_next argz_stringify
1.11 ! moko 16573: do
! 16574: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16575: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16576: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 16577: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 16578: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16579: else
! 16580: cat >conftest.$ac_ext <<_ACEOF
! 16581: /* confdefs.h. */
! 16582: _ACEOF
! 16583: cat confdefs.h >>conftest.$ac_ext
! 16584: cat >>conftest.$ac_ext <<_ACEOF
! 16585: /* end confdefs.h. */
! 16586: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16587: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16588: #define $ac_func innocuous_$ac_func
! 16589:
! 16590: /* System header to define __stub macros and hopefully few prototypes,
! 16591: which can conflict with char $ac_func (); below.
! 16592: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16593: <limits.h> exists even on freestanding compilers. */
! 16594:
! 16595: #ifdef __STDC__
! 16596: # include <limits.h>
! 16597: #else
! 16598: # include <assert.h>
! 16599: #endif
! 16600:
! 16601: #undef $ac_func
! 16602:
! 16603: /* Override any gcc2 internal prototype to avoid an error. */
! 16604: #ifdef __cplusplus
! 16605: extern "C"
! 16606: {
! 16607: #endif
! 16608: /* We use char because int might match the return type of a gcc2
! 16609: builtin and then its argument prototype would still apply. */
! 16610: char $ac_func ();
! 16611: /* The GNU C library defines this for functions which it implements
! 16612: to always fail with ENOSYS. Some functions are actually named
! 16613: something starting with __ and the normal name is an alias. */
! 16614: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 16615: choke me
! 16616: #else
! 16617: char (*f) () = $ac_func;
! 16618: #endif
! 16619: #ifdef __cplusplus
! 16620: }
! 16621: #endif
! 16622:
! 16623: int
! 16624: main ()
! 16625: {
! 16626: return f != $ac_func;
! 16627: ;
! 16628: return 0;
! 16629: }
! 16630: _ACEOF
! 16631: rm -f conftest.$ac_objext conftest$ac_exeext
! 16632: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16633: (eval $ac_link) 2>conftest.er1
! 16634: ac_status=$?
! 16635: grep -v '^ *+' conftest.er1 >conftest.err
! 16636: rm -f conftest.er1
! 16637: cat conftest.err >&5
! 16638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16639: (exit $ac_status); } &&
! 16640: { ac_try='test -z "$ac_c_werror_flag"
! 16641: || test ! -s conftest.err'
! 16642: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16643: (eval $ac_try) 2>&5
! 16644: ac_status=$?
! 16645: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16646: (exit $ac_status); }; } &&
! 16647: { ac_try='test -s conftest$ac_exeext'
! 16648: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16649: (eval $ac_try) 2>&5
! 16650: ac_status=$?
! 16651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16652: (exit $ac_status); }; }; then
! 16653: eval "$as_ac_var=yes"
! 16654: else
! 16655: echo "$as_me: failed program was:" >&5
! 16656: sed 's/^/| /' conftest.$ac_ext >&5
! 16657:
! 16658: eval "$as_ac_var=no"
! 16659: fi
! 16660: rm -f conftest.err conftest.$ac_objext \
! 16661: conftest$ac_exeext conftest.$ac_ext
! 16662: fi
! 16663: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 16664: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 16665: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 16666: cat >>confdefs.h <<_ACEOF
1.11 ! moko 16667: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16668: _ACEOF
16669:
16670: else
16671: ARGZ_H=argz.h;
16672:
16673: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16674:
16675: fi
16676: done
16677:
16678:
1.11 ! moko 16679: if test -z "$ARGZ_H"; then
! 16680: echo "$as_me:$LINENO: checking if argz actually works" >&5
! 16681: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
! 16682: if test "${lt_cv_sys_argz_works+set}" = set; then
! 16683: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16684: else
16685: case $host_os in #(
16686: *cygwin*)
16687: lt_cv_sys_argz_works=no
16688: if test "$cross_compiling" != no; then
16689: lt_cv_sys_argz_works="guessing no"
16690: else
16691: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16692: save_IFS=$IFS
16693: IFS=-.
16694: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16695: IFS=$save_IFS
16696: lt_os_major=${2-0}
16697: lt_os_minor=${3-0}
16698: lt_os_micro=${4-0}
16699: if test "$lt_os_major" -gt 1 \
16700: || { test "$lt_os_major" -eq 1 \
16701: && { test "$lt_os_minor" -gt 5 \
16702: || { test "$lt_os_minor" -eq 5 \
16703: && test "$lt_os_micro" -gt 24; }; }; }; then
16704: lt_cv_sys_argz_works=yes
16705: fi
16706: fi
16707: ;; #(
16708: *) lt_cv_sys_argz_works=yes ;;
16709: esac
16710: fi
1.11 ! moko 16711: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
! 16712: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
! 16713: if test "$lt_cv_sys_argz_works" = yes; then
1.8 moko 16714:
1.11 ! moko 16715: cat >>confdefs.h <<\_ACEOF
! 16716: #define HAVE_WORKING_ARGZ 1
! 16717: _ACEOF
1.8 moko 16718:
16719: else
16720: ARGZ_H=argz.h
16721:
16722:
16723: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16724:
16725: fi
1.11 ! moko 16726:
1.8 moko 16727: fi
16728:
16729:
16730:
1.11 ! moko 16731:
! 16732: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 16733: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
! 16734: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
! 16735: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16736: else
16737: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16738: libltdl_cv_preloaded_symbols=yes
16739: else
16740: libltdl_cv_preloaded_symbols=no
16741: fi
16742:
16743: fi
1.11 ! moko 16744: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
! 16745: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
1.8 moko 16746: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16747:
1.11 ! moko 16748: cat >>confdefs.h <<\_ACEOF
! 16749: #define HAVE_PRELOADED_SYMBOLS 1
! 16750: _ACEOF
1.8 moko 16751:
16752: fi
16753:
16754: # Set options
16755:
16756:
16757:
16758:
16759:
16760:
16761:
16762:
16763:
16764:
16765:
16766:
1.11 ! moko 16767: # Check whether --with-included_ltdl or --without-included_ltdl was given.
! 16768: if test "${with_included_ltdl+set}" = set; then
! 16769: withval="$with_included_ltdl"
1.8 moko 16770:
1.11 ! moko 16771: fi;
1.8 moko 16772:
16773: if test "x$with_included_ltdl" != xyes; then
16774: # We are not being forced to use the included libltdl sources, so
16775: # decide whether there is a useful installed version we can use.
1.11 ! moko 16776: echo "$as_me:$LINENO: checking for ltdl.h" >&5
! 16777: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
! 16778: if test "${ac_cv_header_ltdl_h+set}" = set; then
! 16779: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16780: else
! 16781: cat >conftest.$ac_ext <<_ACEOF
! 16782: /* confdefs.h. */
! 16783: _ACEOF
! 16784: cat confdefs.h >>conftest.$ac_ext
! 16785: cat >>conftest.$ac_ext <<_ACEOF
! 16786: /* end confdefs.h. */
! 16787: $ac_includes_default
! 16788:
! 16789:
! 16790: #include <ltdl.h>
! 16791: _ACEOF
! 16792: rm -f conftest.$ac_objext
! 16793: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 16794: (eval $ac_compile) 2>conftest.er1
! 16795: ac_status=$?
! 16796: grep -v '^ *+' conftest.er1 >conftest.err
! 16797: rm -f conftest.er1
! 16798: cat conftest.err >&5
! 16799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16800: (exit $ac_status); } &&
! 16801: { ac_try='test -z "$ac_c_werror_flag"
! 16802: || test ! -s conftest.err'
! 16803: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16804: (eval $ac_try) 2>&5
! 16805: ac_status=$?
! 16806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16807: (exit $ac_status); }; } &&
! 16808: { ac_try='test -s conftest.$ac_objext'
! 16809: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16810: (eval $ac_try) 2>&5
! 16811: ac_status=$?
! 16812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16813: (exit $ac_status); }; }; then
! 16814: ac_cv_header_ltdl_h=yes
! 16815: else
! 16816: echo "$as_me: failed program was:" >&5
! 16817: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 16818:
1.11 ! moko 16819: ac_cv_header_ltdl_h=no
! 16820: fi
! 16821: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 16822: fi
! 16823: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
! 16824: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
! 16825: if test $ac_cv_header_ltdl_h = yes; then
! 16826: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
! 16827: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
! 16828: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
! 16829: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16830: else
! 16831: cat >conftest.$ac_ext <<_ACEOF
! 16832: /* confdefs.h. */
! 16833: _ACEOF
! 16834: cat confdefs.h >>conftest.$ac_ext
! 16835: cat >>conftest.$ac_ext <<_ACEOF
! 16836: /* end confdefs.h. */
! 16837: $ac_includes_default
1.8 moko 16838: #include <ltdl.h>
1.11 ! moko 16839:
! 16840: int
! 16841: main ()
! 16842: {
! 16843: #ifndef lt_dlinterface_register
! 16844: char *p = (char *) lt_dlinterface_register;
! 16845: #endif
! 16846:
! 16847: ;
! 16848: return 0;
! 16849: }
! 16850: _ACEOF
! 16851: rm -f conftest.$ac_objext
! 16852: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 16853: (eval $ac_compile) 2>conftest.er1
! 16854: ac_status=$?
! 16855: grep -v '^ *+' conftest.er1 >conftest.err
! 16856: rm -f conftest.er1
! 16857: cat conftest.err >&5
! 16858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16859: (exit $ac_status); } &&
! 16860: { ac_try='test -z "$ac_c_werror_flag"
! 16861: || test ! -s conftest.err'
! 16862: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16863: (eval $ac_try) 2>&5
! 16864: ac_status=$?
! 16865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16866: (exit $ac_status); }; } &&
! 16867: { ac_try='test -s conftest.$ac_objext'
! 16868: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16869: (eval $ac_try) 2>&5
! 16870: ac_status=$?
! 16871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16872: (exit $ac_status); }; }; then
! 16873: ac_cv_have_decl_lt_dlinterface_register=yes
! 16874: else
! 16875: echo "$as_me: failed program was:" >&5
! 16876: sed 's/^/| /' conftest.$ac_ext >&5
! 16877:
! 16878: ac_cv_have_decl_lt_dlinterface_register=no
! 16879: fi
! 16880: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 16881: fi
! 16882: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
! 16883: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
! 16884: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
! 16885: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
! 16886: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
! 16887: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
! 16888: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16889: else
16890: ac_check_lib_save_LIBS=$LIBS
16891: LIBS="-lltdl $LIBS"
1.11 ! moko 16892: cat >conftest.$ac_ext <<_ACEOF
! 16893: /* confdefs.h. */
! 16894: _ACEOF
! 16895: cat confdefs.h >>conftest.$ac_ext
! 16896: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16897: /* end confdefs.h. */
16898:
1.11 ! moko 16899: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16900: #ifdef __cplusplus
16901: extern "C"
16902: #endif
1.11 ! moko 16903: /* We use char because int might match the return type of a gcc2
! 16904: builtin and then its argument prototype would still apply. */
1.8 moko 16905: char lt_dladvise_preload ();
16906: int
16907: main ()
16908: {
1.11 ! moko 16909: lt_dladvise_preload ();
1.8 moko 16910: ;
16911: return 0;
16912: }
16913: _ACEOF
1.11 ! moko 16914: rm -f conftest.$ac_objext conftest$ac_exeext
! 16915: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16916: (eval $ac_link) 2>conftest.er1
! 16917: ac_status=$?
! 16918: grep -v '^ *+' conftest.er1 >conftest.err
! 16919: rm -f conftest.er1
! 16920: cat conftest.err >&5
! 16921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16922: (exit $ac_status); } &&
! 16923: { ac_try='test -z "$ac_c_werror_flag"
! 16924: || test ! -s conftest.err'
! 16925: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16926: (eval $ac_try) 2>&5
! 16927: ac_status=$?
! 16928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16929: (exit $ac_status); }; } &&
! 16930: { ac_try='test -s conftest$ac_exeext'
! 16931: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16932: (eval $ac_try) 2>&5
! 16933: ac_status=$?
! 16934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16935: (exit $ac_status); }; }; then
1.8 moko 16936: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16937: else
1.11 ! moko 16938: echo "$as_me: failed program was:" >&5
! 16939: sed 's/^/| /' conftest.$ac_ext >&5
! 16940:
! 16941: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16942: fi
1.11 ! moko 16943: rm -f conftest.err conftest.$ac_objext \
! 16944: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16945: LIBS=$ac_check_lib_save_LIBS
16946: fi
1.11 ! moko 16947: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
! 16948: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
! 16949: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
1.8 moko 16950: with_included_ltdl=no
16951: else
16952: with_included_ltdl=yes
16953: fi
16954:
16955: else
16956: with_included_ltdl=yes
16957: fi
16958:
16959: else
16960: with_included_ltdl=yes
16961: fi
16962:
16963:
16964: fi
16965:
16966:
16967:
16968:
1.11 ! moko 16969: # Check whether --with-ltdl_include or --without-ltdl_include was given.
! 16970: if test "${with_ltdl_include+set}" = set; then
! 16971: withval="$with_ltdl_include"
1.8 moko 16972:
1.11 ! moko 16973: fi;
1.8 moko 16974:
16975: if test -n "$with_ltdl_include"; then
16976: if test -f "$with_ltdl_include/ltdl.h"; then :
16977: else
1.11 ! moko 16978: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
! 16979: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
! 16980: { (exit 1); exit 1; }; }
1.8 moko 16981: fi
16982: else
16983: with_ltdl_include=no
16984: fi
16985:
16986:
1.11 ! moko 16987: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
! 16988: if test "${with_ltdl_lib+set}" = set; then
! 16989: withval="$with_ltdl_lib"
1.8 moko 16990:
1.11 ! moko 16991: fi;
1.8 moko 16992:
16993: if test -n "$with_ltdl_lib"; then
16994: if test -f "$with_ltdl_lib/libltdl.la"; then :
16995: else
1.11 ! moko 16996: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
! 16997: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
! 16998: { (exit 1); exit 1; }; }
1.8 moko 16999: fi
17000: else
17001: with_ltdl_lib=no
17002: fi
17003:
17004: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17005: ,yes,no,no,)
17006: case $enable_ltdl_convenience in
1.11 ! moko 17007: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
! 17008: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
! 17009: { (exit 1); exit 1; }; } ;;
1.8 moko 17010: "") enable_ltdl_convenience=yes
17011: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17012: esac
1.11 ! moko 17013: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 17014: LTDLDEPS=$LIBLTDL
17015: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17016:
17017:
17018:
17019:
17020:
17021: # For backwards non-gettext consistent compatibility...
17022: INCLTDL="$LTDLINCL"
17023:
17024:
17025: ;;
17026: ,no,no,no,)
17027: # If the included ltdl is not to be used, then use the
17028: # preinstalled libltdl we found.
17029:
1.11 ! moko 17030: cat >>confdefs.h <<\_ACEOF
! 17031: #define HAVE_LTDL 1
! 17032: _ACEOF
1.8 moko 17033:
17034: LIBLTDL=-lltdl
17035: LTDLDEPS=
17036: LTDLINCL=
17037: ;;
17038: ,no*,no,*)
1.11 ! moko 17039: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
! 17040: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
! 17041: { (exit 1); exit 1; }; }
1.8 moko 17042: ;;
17043: *) with_included_ltdl=no
17044: LIBLTDL="-L$with_ltdl_lib -lltdl"
17045: LTDLDEPS=
17046: LTDLINCL="-I$with_ltdl_include"
17047: ;;
17048: esac
17049: INCLTDL="$LTDLINCL"
17050:
17051: # Report our decision...
1.11 ! moko 17052: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
! 17053: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
! 17054: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
! 17055: echo "${ECHO_T}$LTDLINCL" >&6
! 17056: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
! 17057: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
! 17058: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
! 17059: echo "${ECHO_T}$LIBLTDL" >&6
1.8 moko 17060:
17061:
17062:
1.11 ! moko 17063: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
! 17064: if test "${enable_ltdl_install+set}" = set; then
! 17065: enableval="$enable_ltdl_install"
1.8 moko 17066:
1.11 ! moko 17067: fi;
1.8 moko 17068:
17069: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17070: *yes*) ;;
17071: *) enable_ltdl_convenience=yes ;;
17072: esac
17073:
17074:
17075:
17076: if test x"${enable_ltdl_install-no}" != xno; then
17077: INSTALL_LTDL_TRUE=
17078: INSTALL_LTDL_FALSE='#'
17079: else
17080: INSTALL_LTDL_TRUE='#'
17081: INSTALL_LTDL_FALSE=
17082: fi
17083:
17084:
17085:
17086: if test x"${enable_ltdl_convenience-no}" != xno; then
17087: CONVENIENCE_LTDL_TRUE=
17088: CONVENIENCE_LTDL_FALSE='#'
17089: else
17090: CONVENIENCE_LTDL_TRUE='#'
17091: CONVENIENCE_LTDL_FALSE=
17092: fi
17093:
17094:
17095:
1.11 ! moko 17096:
! 17097:
! 17098: subdirs="$subdirs libltdl"
1.8 moko 17099:
17100:
17101:
17102:
17103: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17104: # the user used. This is so that ltdl.h can pick up the parent projects
17105: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17106: # definitions required by ltdl.c.
17107: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17108:
17109:
17110:
1.10 moko 17111:
1.8 moko 17112:
17113:
17114:
1.11 ! moko 17115:
! 17116:
! 17117: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
! 17118: do
! 17119: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 17120: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 17121: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 17122: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 17123: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17124: else
! 17125: cat >conftest.$ac_ext <<_ACEOF
! 17126: /* confdefs.h. */
! 17127: _ACEOF
! 17128: cat confdefs.h >>conftest.$ac_ext
! 17129: cat >>conftest.$ac_ext <<_ACEOF
! 17130: /* end confdefs.h. */
! 17131: $ac_includes_default
! 17132:
! 17133: #include <$ac_header>
! 17134: _ACEOF
! 17135: rm -f conftest.$ac_objext
! 17136: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 17137: (eval $ac_compile) 2>conftest.er1
! 17138: ac_status=$?
! 17139: grep -v '^ *+' conftest.er1 >conftest.err
! 17140: rm -f conftest.er1
! 17141: cat conftest.err >&5
! 17142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17143: (exit $ac_status); } &&
! 17144: { ac_try='test -z "$ac_c_werror_flag"
! 17145: || test ! -s conftest.err'
! 17146: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17147: (eval $ac_try) 2>&5
! 17148: ac_status=$?
! 17149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17150: (exit $ac_status); }; } &&
! 17151: { ac_try='test -s conftest.$ac_objext'
! 17152: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17153: (eval $ac_try) 2>&5
! 17154: ac_status=$?
! 17155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17156: (exit $ac_status); }; }; then
! 17157: eval "$as_ac_Header=yes"
! 17158: else
! 17159: echo "$as_me: failed program was:" >&5
! 17160: sed 's/^/| /' conftest.$ac_ext >&5
! 17161:
! 17162: eval "$as_ac_Header=no"
! 17163: fi
! 17164: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 17165: fi
! 17166: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 17167: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 17168: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 17169: cat >>confdefs.h <<_ACEOF
! 17170: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 17171: _ACEOF
! 17172:
! 17173: fi
! 17174:
! 17175: done
! 17176:
! 17177:
! 17178:
! 17179:
! 17180:
! 17181: for ac_func in closedir opendir readdir
! 17182: do
! 17183: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17184: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 17185: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 17186: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 17187: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17188: else
! 17189: cat >conftest.$ac_ext <<_ACEOF
! 17190: /* confdefs.h. */
! 17191: _ACEOF
! 17192: cat confdefs.h >>conftest.$ac_ext
! 17193: cat >>conftest.$ac_ext <<_ACEOF
! 17194: /* end confdefs.h. */
! 17195: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 17196: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17197: #define $ac_func innocuous_$ac_func
! 17198:
! 17199: /* System header to define __stub macros and hopefully few prototypes,
! 17200: which can conflict with char $ac_func (); below.
! 17201: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 17202: <limits.h> exists even on freestanding compilers. */
! 17203:
! 17204: #ifdef __STDC__
! 17205: # include <limits.h>
! 17206: #else
! 17207: # include <assert.h>
! 17208: #endif
! 17209:
! 17210: #undef $ac_func
! 17211:
! 17212: /* Override any gcc2 internal prototype to avoid an error. */
! 17213: #ifdef __cplusplus
! 17214: extern "C"
! 17215: {
! 17216: #endif
! 17217: /* We use char because int might match the return type of a gcc2
! 17218: builtin and then its argument prototype would still apply. */
! 17219: char $ac_func ();
! 17220: /* The GNU C library defines this for functions which it implements
! 17221: to always fail with ENOSYS. Some functions are actually named
! 17222: something starting with __ and the normal name is an alias. */
! 17223: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 17224: choke me
! 17225: #else
! 17226: char (*f) () = $ac_func;
! 17227: #endif
! 17228: #ifdef __cplusplus
! 17229: }
! 17230: #endif
! 17231:
! 17232: int
! 17233: main ()
! 17234: {
! 17235: return f != $ac_func;
! 17236: ;
! 17237: return 0;
! 17238: }
! 17239: _ACEOF
! 17240: rm -f conftest.$ac_objext conftest$ac_exeext
! 17241: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 17242: (eval $ac_link) 2>conftest.er1
! 17243: ac_status=$?
! 17244: grep -v '^ *+' conftest.er1 >conftest.err
! 17245: rm -f conftest.er1
! 17246: cat conftest.err >&5
! 17247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17248: (exit $ac_status); } &&
! 17249: { ac_try='test -z "$ac_c_werror_flag"
! 17250: || test ! -s conftest.err'
! 17251: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17252: (eval $ac_try) 2>&5
! 17253: ac_status=$?
! 17254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17255: (exit $ac_status); }; } &&
! 17256: { ac_try='test -s conftest$ac_exeext'
! 17257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17258: (eval $ac_try) 2>&5
! 17259: ac_status=$?
! 17260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17261: (exit $ac_status); }; }; then
! 17262: eval "$as_ac_var=yes"
! 17263: else
! 17264: echo "$as_me: failed program was:" >&5
! 17265: sed 's/^/| /' conftest.$ac_ext >&5
! 17266:
! 17267: eval "$as_ac_var=no"
! 17268: fi
! 17269: rm -f conftest.err conftest.$ac_objext \
! 17270: conftest$ac_exeext conftest.$ac_ext
! 17271: fi
! 17272: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 17273: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 17274: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 17275: cat >>confdefs.h <<_ACEOF
! 17276: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17277: _ACEOF
1.8 moko 17278:
1.10 moko 17279: else
1.8 moko 17280:
17281:
1.10 moko 17282: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 17283:
1.10 moko 17284: fi
1.8 moko 17285: done
17286:
1.11 ! moko 17287:
! 17288:
1.8 moko 17289: for ac_func in strlcat strlcpy
1.11 ! moko 17290: do
! 17291: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17292: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 17293: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 17294: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 17295: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17296: else
! 17297: cat >conftest.$ac_ext <<_ACEOF
! 17298: /* confdefs.h. */
! 17299: _ACEOF
! 17300: cat confdefs.h >>conftest.$ac_ext
! 17301: cat >>conftest.$ac_ext <<_ACEOF
! 17302: /* end confdefs.h. */
! 17303: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 17304: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17305: #define $ac_func innocuous_$ac_func
! 17306:
! 17307: /* System header to define __stub macros and hopefully few prototypes,
! 17308: which can conflict with char $ac_func (); below.
! 17309: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 17310: <limits.h> exists even on freestanding compilers. */
! 17311:
! 17312: #ifdef __STDC__
! 17313: # include <limits.h>
! 17314: #else
! 17315: # include <assert.h>
! 17316: #endif
! 17317:
! 17318: #undef $ac_func
! 17319:
! 17320: /* Override any gcc2 internal prototype to avoid an error. */
! 17321: #ifdef __cplusplus
! 17322: extern "C"
! 17323: {
! 17324: #endif
! 17325: /* We use char because int might match the return type of a gcc2
! 17326: builtin and then its argument prototype would still apply. */
! 17327: char $ac_func ();
! 17328: /* The GNU C library defines this for functions which it implements
! 17329: to always fail with ENOSYS. Some functions are actually named
! 17330: something starting with __ and the normal name is an alias. */
! 17331: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 17332: choke me
! 17333: #else
! 17334: char (*f) () = $ac_func;
! 17335: #endif
! 17336: #ifdef __cplusplus
! 17337: }
! 17338: #endif
! 17339:
! 17340: int
! 17341: main ()
! 17342: {
! 17343: return f != $ac_func;
! 17344: ;
! 17345: return 0;
! 17346: }
! 17347: _ACEOF
! 17348: rm -f conftest.$ac_objext conftest$ac_exeext
! 17349: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 17350: (eval $ac_link) 2>conftest.er1
! 17351: ac_status=$?
! 17352: grep -v '^ *+' conftest.er1 >conftest.err
! 17353: rm -f conftest.er1
! 17354: cat conftest.err >&5
! 17355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17356: (exit $ac_status); } &&
! 17357: { ac_try='test -z "$ac_c_werror_flag"
! 17358: || test ! -s conftest.err'
! 17359: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17360: (eval $ac_try) 2>&5
! 17361: ac_status=$?
! 17362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17363: (exit $ac_status); }; } &&
! 17364: { ac_try='test -s conftest$ac_exeext'
! 17365: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17366: (eval $ac_try) 2>&5
! 17367: ac_status=$?
! 17368: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17369: (exit $ac_status); }; }; then
! 17370: eval "$as_ac_var=yes"
! 17371: else
! 17372: echo "$as_me: failed program was:" >&5
! 17373: sed 's/^/| /' conftest.$ac_ext >&5
! 17374:
! 17375: eval "$as_ac_var=no"
! 17376: fi
! 17377: rm -f conftest.err conftest.$ac_objext \
! 17378: conftest$ac_exeext conftest.$ac_ext
! 17379: fi
! 17380: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 17381: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 17382: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 17383: cat >>confdefs.h <<_ACEOF
1.11 ! moko 17384: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 17385: _ACEOF
17386:
17387: else
17388:
17389:
17390: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17391:
17392: fi
17393: done
17394:
17395:
17396:
17397: cat >>confdefs.h <<_ACEOF
17398: #define LT_LIBEXT "$libext"
17399: _ACEOF
17400:
17401:
17402: name=
17403: eval "lt_libprefix=\"$libname_spec\""
17404:
17405: cat >>confdefs.h <<_ACEOF
17406: #define LT_LIBPREFIX "$lt_libprefix"
17407: _ACEOF
17408:
17409:
17410: name=ltdl
17411: eval "LTDLOPEN=\"$libname_spec\""
17412:
17413:
17414:
17415:
17416:
17417:
17418:
17419:
17420: # Only expand once:
17421:
17422:
17423:
17424:
17425:
1.11 ! moko 17426:
! 17427:
! 17428:
! 17429:
! 17430:
1.8 moko 17431: for ac_header in stdio.h \
17432: stdlib.h \
17433: string.h \
17434: setjmp.h \
17435: ctype.h
17436:
1.11 ! moko 17437: do
! 17438: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 17439: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 17440: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 17441: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 17442: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 17443: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17444: fi
! 17445: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 17446: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 17447: else
! 17448: # Is the header compilable?
! 17449: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 17450: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 17451: cat >conftest.$ac_ext <<_ACEOF
! 17452: /* confdefs.h. */
! 17453: _ACEOF
! 17454: cat confdefs.h >>conftest.$ac_ext
! 17455: cat >>conftest.$ac_ext <<_ACEOF
! 17456: /* end confdefs.h. */
! 17457: $ac_includes_default
! 17458: #include <$ac_header>
! 17459: _ACEOF
! 17460: rm -f conftest.$ac_objext
! 17461: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 17462: (eval $ac_compile) 2>conftest.er1
! 17463: ac_status=$?
! 17464: grep -v '^ *+' conftest.er1 >conftest.err
! 17465: rm -f conftest.er1
! 17466: cat conftest.err >&5
! 17467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17468: (exit $ac_status); } &&
! 17469: { ac_try='test -z "$ac_c_werror_flag"
! 17470: || test ! -s conftest.err'
! 17471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17472: (eval $ac_try) 2>&5
! 17473: ac_status=$?
! 17474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17475: (exit $ac_status); }; } &&
! 17476: { ac_try='test -s conftest.$ac_objext'
! 17477: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17478: (eval $ac_try) 2>&5
! 17479: ac_status=$?
! 17480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17481: (exit $ac_status); }; }; then
! 17482: ac_header_compiler=yes
! 17483: else
! 17484: echo "$as_me: failed program was:" >&5
! 17485: sed 's/^/| /' conftest.$ac_ext >&5
! 17486:
! 17487: ac_header_compiler=no
! 17488: fi
! 17489: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 17490: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 17491: echo "${ECHO_T}$ac_header_compiler" >&6
! 17492:
! 17493: # Is the header present?
! 17494: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 17495: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 17496: cat >conftest.$ac_ext <<_ACEOF
! 17497: /* confdefs.h. */
! 17498: _ACEOF
! 17499: cat confdefs.h >>conftest.$ac_ext
! 17500: cat >>conftest.$ac_ext <<_ACEOF
! 17501: /* end confdefs.h. */
! 17502: #include <$ac_header>
! 17503: _ACEOF
! 17504: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 17505: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 17506: ac_status=$?
! 17507: grep -v '^ *+' conftest.er1 >conftest.err
! 17508: rm -f conftest.er1
! 17509: cat conftest.err >&5
! 17510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17511: (exit $ac_status); } >/dev/null; then
! 17512: if test -s conftest.err; then
! 17513: ac_cpp_err=$ac_c_preproc_warn_flag
! 17514: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 17515: else
! 17516: ac_cpp_err=
! 17517: fi
! 17518: else
! 17519: ac_cpp_err=yes
! 17520: fi
! 17521: if test -z "$ac_cpp_err"; then
! 17522: ac_header_preproc=yes
! 17523: else
! 17524: echo "$as_me: failed program was:" >&5
! 17525: sed 's/^/| /' conftest.$ac_ext >&5
! 17526:
! 17527: ac_header_preproc=no
! 17528: fi
! 17529: rm -f conftest.err conftest.$ac_ext
! 17530: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 17531: echo "${ECHO_T}$ac_header_preproc" >&6
! 17532:
! 17533: # So? What about this header?
! 17534: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 17535: yes:no: )
! 17536: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 17537: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 17538: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 17539: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 17540: ac_header_preproc=yes
! 17541: ;;
! 17542: no:yes:* )
! 17543: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 17544: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 17545: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 17546: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 17547: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 17548: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 17549: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 17550: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 17551: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 17552: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 17553: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 17554: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 17555: (
! 17556: cat <<\_ASBOX
! 17557: ## ------------------------------------------ ##
! 17558: ## Report this to the AC_PACKAGE_NAME lists. ##
! 17559: ## ------------------------------------------ ##
! 17560: _ASBOX
! 17561: ) |
! 17562: sed "s/^/$as_me: WARNING: /" >&2
! 17563: ;;
! 17564: esac
! 17565: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 17566: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 17567: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 17568: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17569: else
! 17570: eval "$as_ac_Header=\$ac_header_preproc"
! 17571: fi
! 17572: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 17573: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 17574:
! 17575: fi
! 17576: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 17577: cat >>confdefs.h <<_ACEOF
1.11 ! moko 17578: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 17579: _ACEOF
17580:
17581: fi
17582:
17583: done
17584:
17585:
17586:
1.11 ! moko 17587: echo "$as_me:$LINENO: checking for size_t" >&5
! 17588: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 17589: if test "${ac_cv_type_size_t+set}" = set; then
! 17590: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17591: else
! 17592: cat >conftest.$ac_ext <<_ACEOF
! 17593: /* confdefs.h. */
! 17594: _ACEOF
! 17595: cat confdefs.h >>conftest.$ac_ext
! 17596: cat >>conftest.$ac_ext <<_ACEOF
! 17597: /* end confdefs.h. */
! 17598: $ac_includes_default
! 17599: int
! 17600: main ()
! 17601: {
! 17602: if ((size_t *) 0)
! 17603: return 0;
! 17604: if (sizeof (size_t))
! 17605: return 0;
! 17606: ;
! 17607: return 0;
! 17608: }
! 17609: _ACEOF
! 17610: rm -f conftest.$ac_objext
! 17611: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 17612: (eval $ac_compile) 2>conftest.er1
! 17613: ac_status=$?
! 17614: grep -v '^ *+' conftest.er1 >conftest.err
! 17615: rm -f conftest.er1
! 17616: cat conftest.err >&5
! 17617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17618: (exit $ac_status); } &&
! 17619: { ac_try='test -z "$ac_c_werror_flag"
! 17620: || test ! -s conftest.err'
! 17621: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17622: (eval $ac_try) 2>&5
! 17623: ac_status=$?
! 17624: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17625: (exit $ac_status); }; } &&
! 17626: { ac_try='test -s conftest.$ac_objext'
! 17627: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17628: (eval $ac_try) 2>&5
! 17629: ac_status=$?
! 17630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17631: (exit $ac_status); }; }; then
! 17632: ac_cv_type_size_t=yes
! 17633: else
! 17634: echo "$as_me: failed program was:" >&5
! 17635: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 17636:
1.11 ! moko 17637: ac_cv_type_size_t=no
! 17638: fi
! 17639: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 17640: fi
! 17641: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 17642: echo "${ECHO_T}$ac_cv_type_size_t" >&6
! 17643: if test $ac_cv_type_size_t = yes; then
! 17644: :
1.8 moko 17645: else
17646:
17647: cat >>confdefs.h <<_ACEOF
1.11 ! moko 17648: #define size_t unsigned
1.8 moko 17649: _ACEOF
17650:
17651: fi
17652:
17653:
17654:
17655:
1.11 ! moko 17656: ac_config_files="$ac_config_files Makefile"
1.8 moko 17657: cat >confcache <<\_ACEOF
17658: # This file is a shell script that caches the results of configure
17659: # tests run on this system so they can be shared between configure
17660: # scripts and configure runs, see configure's option --config-cache.
17661: # It is not useful on other systems. If it contains results you don't
17662: # want to keep, you may remove or edit it.
17663: #
17664: # config.status only pays attention to the cache file if you give it
17665: # the --recheck option to rerun configure.
17666: #
17667: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17668: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17669: # following values.
17670:
17671: _ACEOF
17672:
17673: # The following way of writing the cache mishandles newlines in values,
17674: # but we know of no workaround that is simple, portable, and efficient.
1.11 ! moko 17675: # So, don't put newlines in cache variables' values.
1.8 moko 17676: # Ultrix sh set writes to stderr and can't be redirected directly,
17677: # and sets the high bit in the cache file unless we assign to the vars.
1.11 ! moko 17678: {
1.8 moko 17679: (set) 2>&1 |
1.11 ! moko 17680: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 17681: *ac_space=\ *)
! 17682: # `set' does not quote correctly, so add quotes (double-quote
! 17683: # substitution turns \\\\ into \\, and sed turns \\ into \).
1.8 moko 17684: sed -n \
17685: "s/'/'\\\\''/g;
17686: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.11 ! moko 17687: ;;
1.8 moko 17688: *)
17689: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.11 ! moko 17690: sed -n \
! 17691: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.8 moko 17692: ;;
1.11 ! moko 17693: esac;
! 17694: } |
1.8 moko 17695: sed '
17696: t clear
1.11 ! moko 17697: : clear
1.8 moko 17698: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17699: t end
1.11 ! moko 17700: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 17701: : end' >>confcache
! 17702: if diff $cache_file confcache >/dev/null 2>&1; then :; else
! 17703: if test -w $cache_file; then
! 17704: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1.8 moko 17705: cat confcache >$cache_file
17706: else
1.11 ! moko 17707: echo "not updating unwritable cache $cache_file"
1.8 moko 17708: fi
17709: fi
17710: rm -f confcache
17711:
17712: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17713: # Let make expand exec_prefix.
17714: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17715:
1.11 ! moko 17716: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 17717: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 17718: # trailing colons and then remove the whole line if VPATH becomes empty
! 17719: # (actually we leave an empty line to preserve line numbers).
! 17720: if test "x$srcdir" = x.; then
! 17721: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 17722: s/:*\$(srcdir):*/:/;
! 17723: s/:*\${srcdir}:*/:/;
! 17724: s/:*@srcdir@:*/:/;
! 17725: s/^\([^=]*=[ ]*\):*/\1/;
! 17726: s/:*$//;
! 17727: s/^[^=]*=[ ]*$//;
! 17728: }'
! 17729: fi
! 17730:
1.8 moko 17731: DEFS=-DHAVE_CONFIG_H
17732:
17733: ac_libobjs=
17734: ac_ltlibobjs=
17735: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17736: # 1. Remove the extension, and $U if already installed.
1.11 ! moko 17737: ac_i=`echo "$ac_i" |
! 17738: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
! 17739: # 2. Add them.
! 17740: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
! 17741: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.8 moko 17742: done
17743: LIBOBJS=$ac_libobjs
17744:
17745: LTLIBOBJS=$ac_ltlibobjs
17746:
17747:
17748: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.11 ! moko 17749: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
! 17750: Usually this means the macro was only invoked conditionally." >&5
! 17751: echo "$as_me: error: conditional \"AMDEP\" was never defined.
! 17752: Usually this means the macro was only invoked conditionally." >&2;}
! 17753: { (exit 1); exit 1; }; }
1.8 moko 17754: fi
17755: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.11 ! moko 17756: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
! 17757: Usually this means the macro was only invoked conditionally." >&5
! 17758: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
! 17759: Usually this means the macro was only invoked conditionally." >&2;}
! 17760: { (exit 1); exit 1; }; }
1.8 moko 17761: fi
17762: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.11 ! moko 17763: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
! 17764: Usually this means the macro was only invoked conditionally." >&5
! 17765: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
! 17766: Usually this means the macro was only invoked conditionally." >&2;}
! 17767: { (exit 1); exit 1; }; }
1.8 moko 17768: fi
17769: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.11 ! moko 17770: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
! 17771: Usually this means the macro was only invoked conditionally." >&5
! 17772: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
! 17773: Usually this means the macro was only invoked conditionally." >&2;}
! 17774: { (exit 1); exit 1; }; }
1.8 moko 17775: fi
17776: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.11 ! moko 17777: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
! 17778: Usually this means the macro was only invoked conditionally." >&5
! 17779: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
! 17780: Usually this means the macro was only invoked conditionally." >&2;}
! 17781: { (exit 1); exit 1; }; }
1.8 moko 17782: fi
1.11 ! moko 17783: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
1.8 moko 17784:
17785: _ltdl_libobjs=
17786: _ltdl_ltlibobjs=
17787: if test -n "$_LT_LIBOBJS"; then
17788: # Remove the extension.
17789: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17790: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17791: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17792: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17793: done
17794: fi
17795: ltdl_LIBOBJS=$_ltdl_libobjs
17796:
17797: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17798:
17799:
17800:
17801: : ${CONFIG_STATUS=./config.status}
17802: ac_clean_files_save=$ac_clean_files
17803: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.11 ! moko 17804: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 17805: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 17806: cat >$CONFIG_STATUS <<_ACEOF
1.8 moko 17807: #! $SHELL
17808: # Generated by $as_me.
17809: # Run this file to recreate the current configuration.
17810: # Compiler output produced by configure, useful for debugging
17811: # configure, is in config.log if it exists.
17812:
17813: debug=false
17814: ac_cs_recheck=false
17815: ac_cs_silent=false
1.11 ! moko 17816: SHELL=\${CONFIG_SHELL-$SHELL}
! 17817: _ACEOF
1.10 moko 17818:
1.11 ! moko 17819: cat >>$CONFIG_STATUS <<\_ACEOF
! 17820: ## --------------------- ##
! 17821: ## M4sh Initialization. ##
! 17822: ## --------------------- ##
1.8 moko 17823:
1.11 ! moko 17824: # Be Bourne compatible
! 17825: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.8 moko 17826: emulate sh
17827: NULLCMD=:
1.11 ! moko 17828: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.8 moko 17829: # is contrary to our usage. Disable this feature.
17830: alias -g '${1+"$@"}'='"$@"'
1.11 ! moko 17831: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 17832: set -o posix
1.10 moko 17833: fi
1.11 ! moko 17834: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 17835:
1.11 ! moko 17836: # Support unset when possible.
! 17837: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
! 17838: as_unset=unset
! 17839: else
! 17840: as_unset=false
1.8 moko 17841: fi
17842:
17843:
1.11 ! moko 17844: # Work around bugs in pre-3.0 UWIN ksh.
! 17845: $as_unset ENV MAIL MAILPATH
1.8 moko 17846: PS1='$ '
17847: PS2='> '
17848: PS4='+ '
17849:
17850: # NLS nuisances.
1.11 ! moko 17851: for as_var in \
! 17852: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 17853: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 17854: LC_TELEPHONE LC_TIME
! 17855: do
! 17856: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 17857: eval $as_var=C; export $as_var
! 17858: else
! 17859: $as_unset $as_var
! 17860: fi
! 17861: done
1.8 moko 17862:
1.11 ! moko 17863: # Required to use basename.
! 17864: if expr a : '\(a\)' >/dev/null 2>&1; then
1.8 moko 17865: as_expr=expr
17866: else
17867: as_expr=false
17868: fi
17869:
1.11 ! moko 17870: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.8 moko 17871: as_basename=basename
17872: else
17873: as_basename=false
17874: fi
17875:
17876:
1.11 ! moko 17877: # Name of the executable.
! 17878: as_me=`$as_basename "$0" ||
1.8 moko 17879: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17880: X"$0" : 'X\(//\)$' \| \
1.11 ! moko 17881: X"$0" : 'X\(/\)$' \| \
! 17882: . : '\(.\)' 2>/dev/null ||
! 17883: echo X/"$0" |
! 17884: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 17885: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 17886: /^X\/\(\/\).*/{ s//\1/; q; }
! 17887: s/.*/./; q'`
! 17888:
1.8 moko 17889:
1.11 ! moko 17890: # PATH needs CR, and LINENO needs CR and PATH.
1.8 moko 17891: # Avoid depending upon Character Ranges.
17892: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17893: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17894: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17895: as_cr_digits='0123456789'
17896: as_cr_alnum=$as_cr_Letters$as_cr_digits
17897:
1.11 ! moko 17898: # The user is always right.
! 17899: if test "${PATH_SEPARATOR+set}" != set; then
! 17900: echo "#! /bin/sh" >conf$$.sh
! 17901: echo "exit 0" >>conf$$.sh
! 17902: chmod +x conf$$.sh
! 17903: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 17904: PATH_SEPARATOR=';'
! 17905: else
! 17906: PATH_SEPARATOR=:
! 17907: fi
! 17908: rm -f conf$$.sh
! 17909: fi
! 17910:
! 17911:
! 17912: as_lineno_1=$LINENO
! 17913: as_lineno_2=$LINENO
! 17914: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 17915: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 17916: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 17917: # Find who we are. Look in the path if we contain no path at all
! 17918: # relative or not.
! 17919: case $0 in
! 17920: *[\\/]* ) as_myself=$0 ;;
! 17921: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 17922: for as_dir in $PATH
! 17923: do
! 17924: IFS=$as_save_IFS
! 17925: test -z "$as_dir" && as_dir=.
! 17926: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 17927: done
! 17928:
! 17929: ;;
! 17930: esac
! 17931: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 17932: # in which case we are not to be found in the path.
! 17933: if test "x$as_myself" = x; then
! 17934: as_myself=$0
! 17935: fi
! 17936: if test ! -f "$as_myself"; then
! 17937: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
! 17938: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
! 17939: { (exit 1); exit 1; }; }
! 17940: fi
! 17941: case $CONFIG_SHELL in
! 17942: '')
! 17943: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 17944: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 17945: do
! 17946: IFS=$as_save_IFS
! 17947: test -z "$as_dir" && as_dir=.
! 17948: for as_base in sh bash ksh sh5; do
! 17949: case $as_dir in
! 17950: /*)
! 17951: if ("$as_dir/$as_base" -c '
! 17952: as_lineno_1=$LINENO
! 17953: as_lineno_2=$LINENO
! 17954: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 17955: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 17956: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 17957: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
! 17958: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
! 17959: CONFIG_SHELL=$as_dir/$as_base
! 17960: export CONFIG_SHELL
! 17961: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 17962: fi;;
! 17963: esac
! 17964: done
! 17965: done
! 17966: ;;
! 17967: esac
! 17968:
! 17969: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 17970: # uniformly replaced by the line number. The first 'sed' inserts a
! 17971: # line-number line before each line; the second 'sed' does the real
! 17972: # work. The second script uses 'N' to pair each line-number line
! 17973: # with the numbered line, and appends trailing '-' during
! 17974: # substitution so that $LINENO is not a special case at line end.
! 17975: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 17976: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 17977: sed '=' <$as_myself |
! 17978: sed '
! 17979: N
! 17980: s,$,-,
! 17981: : loop
! 17982: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 17983: t loop
! 17984: s,-$,,
! 17985: s,^['$as_cr_digits']*\n,,
! 17986: ' >$as_me.lineno &&
! 17987: chmod +x $as_me.lineno ||
! 17988: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
! 17989: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
! 17990: { (exit 1); exit 1; }; }
! 17991:
! 17992: # Don't try to exec as it changes $[0], causing all sort of problems
! 17993: # (the dirname of $[0] is not the place where we might find the
! 17994: # original and so on. Autoconf is especially sensible to this).
! 17995: . ./$as_me.lineno
! 17996: # Exit status is that of the last command.
! 17997: exit
! 17998: }
! 17999:
! 18000:
! 18001: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 18002: *c*,-n*) ECHO_N= ECHO_C='
! 18003: ' ECHO_T=' ' ;;
! 18004: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 18005: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.8 moko 18006: esac
18007:
1.11 ! moko 18008: if expr a : '\(a\)' >/dev/null 2>&1; then
! 18009: as_expr=expr
1.8 moko 18010: else
1.11 ! moko 18011: as_expr=false
1.8 moko 18012: fi
1.11 ! moko 18013:
! 18014: rm -f conf$$ conf$$.exe conf$$.file
! 18015: echo >conf$$.file
! 18016: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 18017: # We could just check for DJGPP; but this test a) works b) is more generic
! 18018: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 18019: if test -f conf$$.exe; then
! 18020: # Don't use ln at all; we don't have any links
! 18021: as_ln_s='cp -p'
! 18022: else
1.10 moko 18023: as_ln_s='ln -s'
1.8 moko 18024: fi
1.11 ! moko 18025: elif ln conf$$.file conf$$ 2>/dev/null; then
! 18026: as_ln_s=ln
1.8 moko 18027: else
18028: as_ln_s='cp -p'
18029: fi
1.11 ! moko 18030: rm -f conf$$ conf$$.exe conf$$.file
1.8 moko 18031:
18032: if mkdir -p . 2>/dev/null; then
1.11 ! moko 18033: as_mkdir_p=:
1.8 moko 18034: else
18035: test -d ./-p && rmdir ./-p
18036: as_mkdir_p=false
18037: fi
18038:
1.11 ! moko 18039: as_executable_p="test -f"
1.8 moko 18040:
18041: # Sed expression to map a string onto a valid CPP name.
18042: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18043:
18044: # Sed expression to map a string onto a valid variable name.
18045: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18046:
18047:
1.11 ! moko 18048: # IFS
! 18049: # We need space, tab and new line, in precisely that order.
! 18050: as_nl='
! 18051: '
! 18052: IFS=" $as_nl"
! 18053:
! 18054: # CDPATH.
! 18055: $as_unset CDPATH
! 18056:
1.8 moko 18057: exec 6>&1
18058:
1.11 ! moko 18059: # Open the log real soon, to keep \$[0] and so on meaningful, and to
1.8 moko 18060: # report actual input values of CONFIG_FILES etc. instead of their
1.11 ! moko 18061: # values after options handling. Logging --version etc. is OK.
! 18062: exec 5>>config.log
! 18063: {
! 18064: echo
! 18065: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 18066: ## Running $as_me. ##
! 18067: _ASBOX
! 18068: } >&5
! 18069: cat >&5 <<_CSEOF
! 18070:
1.8 moko 18071: This file was extended by $as_me, which was
1.11 ! moko 18072: generated by GNU Autoconf 2.59. Invocation command line was
1.8 moko 18073:
18074: CONFIG_FILES = $CONFIG_FILES
18075: CONFIG_HEADERS = $CONFIG_HEADERS
18076: CONFIG_LINKS = $CONFIG_LINKS
18077: CONFIG_COMMANDS = $CONFIG_COMMANDS
18078: $ $0 $@
18079:
1.11 ! moko 18080: _CSEOF
! 18081: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
! 18082: echo >&5
1.8 moko 18083: _ACEOF
18084:
1.11 ! moko 18085: # Files that config.status was made for.
! 18086: if test -n "$ac_config_files"; then
! 18087: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
! 18088: fi
1.8 moko 18089:
1.11 ! moko 18090: if test -n "$ac_config_headers"; then
! 18091: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
! 18092: fi
1.8 moko 18093:
1.11 ! moko 18094: if test -n "$ac_config_links"; then
! 18095: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
! 18096: fi
1.8 moko 18097:
1.11 ! moko 18098: if test -n "$ac_config_commands"; then
! 18099: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
! 18100: fi
1.8 moko 18101:
1.11 ! moko 18102: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18103:
18104: ac_cs_usage="\
1.11 ! moko 18105: \`$as_me' instantiates files from templates according to the
! 18106: current configuration.
1.8 moko 18107:
1.11 ! moko 18108: Usage: $0 [OPTIONS] [FILE]...
1.8 moko 18109:
18110: -h, --help print this help, then exit
1.11 ! moko 18111: -V, --version print version number, then exit
! 18112: -q, --quiet do not print progress messages
1.8 moko 18113: -d, --debug don't remove temporary files
18114: --recheck update $as_me by reconfiguring in the same conditions
1.11 ! moko 18115: --file=FILE[:TEMPLATE]
! 18116: instantiate the configuration file FILE
! 18117: --header=FILE[:TEMPLATE]
! 18118: instantiate the configuration header FILE
1.8 moko 18119:
18120: Configuration files:
18121: $config_files
18122:
18123: Configuration headers:
18124: $config_headers
18125:
18126: Configuration commands:
18127: $config_commands
18128:
1.11 ! moko 18129: Report bugs to <bug-autoconf@gnu.org>."
! 18130: _ACEOF
1.10 moko 18131:
1.11 ! moko 18132: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18133: ac_cs_version="\\
18134: config.status
1.11 ! moko 18135: configured by $0, generated by GNU Autoconf 2.59,
! 18136: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.8 moko 18137:
1.11 ! moko 18138: Copyright (C) 2003 Free Software Foundation, Inc.
1.8 moko 18139: This config.status script is free software; the Free Software Foundation
18140: gives unlimited permission to copy, distribute and modify it."
1.11 ! moko 18141: srcdir=$srcdir
! 18142: INSTALL="$INSTALL"
1.8 moko 18143: _ACEOF
18144:
1.11 ! moko 18145: cat >>$CONFIG_STATUS <<\_ACEOF
! 18146: # If no file are specified by the user, then we need to provide default
! 18147: # value. By we need to know if files were specified by the user.
1.8 moko 18148: ac_need_defaults=:
18149: while test $# != 0
18150: do
18151: case $1 in
1.11 ! moko 18152: --*=*)
! 18153: ac_option=`expr "x$1" : 'x\([^=]*\)='`
! 18154: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.8 moko 18155: ac_shift=:
18156: ;;
1.11 ! moko 18157: -*)
1.8 moko 18158: ac_option=$1
18159: ac_optarg=$2
18160: ac_shift=shift
18161: ;;
1.11 ! moko 18162: *) # This is not an option, so the user has probably given explicit
! 18163: # arguments.
! 18164: ac_option=$1
! 18165: ac_need_defaults=false;;
1.8 moko 18166: esac
18167:
18168: case $ac_option in
18169: # Handling of the options.
1.11 ! moko 18170: _ACEOF
! 18171: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18172: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18173: ac_cs_recheck=: ;;
1.11 ! moko 18174: --version | --vers* | -V )
! 18175: echo "$ac_cs_version"; exit 0 ;;
! 18176: --he | --h)
! 18177: # Conflict between --help and --header
! 18178: { { echo "$as_me:$LINENO: error: ambiguous option: $1
! 18179: Try \`$0 --help' for more information." >&5
! 18180: echo "$as_me: error: ambiguous option: $1
! 18181: Try \`$0 --help' for more information." >&2;}
! 18182: { (exit 1); exit 1; }; };;
! 18183: --help | --hel | -h )
! 18184: echo "$ac_cs_usage"; exit 0 ;;
! 18185: --debug | --d* | -d )
1.8 moko 18186: debug=: ;;
18187: --file | --fil | --fi | --f )
18188: $ac_shift
1.11 ! moko 18189: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.8 moko 18190: ac_need_defaults=false;;
18191: --header | --heade | --head | --hea )
18192: $ac_shift
1.11 ! moko 18193: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.8 moko 18194: ac_need_defaults=false;;
18195: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18196: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18197: ac_cs_silent=: ;;
18198:
18199: # This is an error.
1.11 ! moko 18200: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
! 18201: Try \`$0 --help' for more information." >&5
! 18202: echo "$as_me: error: unrecognized option: $1
! 18203: Try \`$0 --help' for more information." >&2;}
! 18204: { (exit 1); exit 1; }; } ;;
1.8 moko 18205:
1.11 ! moko 18206: *) ac_config_targets="$ac_config_targets $1" ;;
1.8 moko 18207:
18208: esac
18209: shift
18210: done
18211:
18212: ac_configure_extra_args=
18213:
18214: if $ac_cs_silent; then
18215: exec 6>/dev/null
18216: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 moko 18217: fi
18218:
18219: _ACEOF
1.11 ! moko 18220: cat >>$CONFIG_STATUS <<_ACEOF
1.10 moko 18221: if \$ac_cs_recheck; then
1.11 ! moko 18222: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 18223: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.10 moko 18224: fi
18225:
18226: _ACEOF
1.11 ! moko 18227:
! 18228: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18229: #
1.11 ! moko 18230: # INIT-COMMANDS section.
1.8 moko 18231: #
1.11 ! moko 18232:
1.8 moko 18233: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18234:
18235:
18236: # The HP-UX ksh and POSIX shell print the target directory to stdout
18237: # if CDPATH is set.
18238: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18239:
18240: sed_quote_subst='$sed_quote_subst'
18241: double_quote_subst='$double_quote_subst'
18242: delay_variable_subst='$delay_variable_subst'
18243: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18244: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18245: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18246: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18247: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18248: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18249: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18250: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18251: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18252: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18253: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18254: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18255: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18256: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18257: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18258: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18259: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18260: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18261: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18262: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18263: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18264: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18265: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18266: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18267: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18268: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18269: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18270: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18271: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18272: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18273: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18274: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18275: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18276: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18277: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18278: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18279: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18280: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18281: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18282: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18283: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18284: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18285: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18286: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18287: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18288: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18289: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18290: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18291: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18292: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18293: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18294: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18295: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18296: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18297: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18298: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18299: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18300: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18301: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18302: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18303: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18304: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18305: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18306: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18307: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18308: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18309: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18310: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18311: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18312: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18313: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18314: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18315: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18316: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18317: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18318: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18319: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18320: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18321: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18322: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18323: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18324: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18325: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18326: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18327: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18328: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18329: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18330: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18331: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18332: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18333: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18334: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18335: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18336: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18337: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18338: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18339: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18340: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18341: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18342: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18343: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18344: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18345: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18346: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18347: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18348: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18349: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18350: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18351: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18352: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18353: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18354: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18355: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18356: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18357: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18358: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18359: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18360: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18361: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18362: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18363: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18364: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18365: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18366: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18367: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18368: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18369: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18370: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18371: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18372: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18373: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18374: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18375: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18376: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18377: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18378: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18379: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18380: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18381: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18382: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18383: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18384: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18385: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18386: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18387: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18388: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18389: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18390: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18391: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18392: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18393: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18394: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18395: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18396: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18397: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18398: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18399: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18400: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18401: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18402: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18403: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18404: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18405: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18406: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18407: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18408: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18409: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18410: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18411: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18412: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18413: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18414: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18415: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18416: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18417: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18418: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18419: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18420: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18421: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18422: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18423: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18424: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18425: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18426: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18427: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18428:
18429: LTCC='$LTCC'
18430: LTCFLAGS='$LTCFLAGS'
18431: compiler='$compiler_DEFAULT'
18432:
18433: # A function that is used when there is no print builtin or printf.
18434: func_fallback_echo ()
18435: {
18436: eval 'cat <<_LTECHO_EOF
18437: \$1
18438: _LTECHO_EOF'
18439: }
18440:
18441: # Quote evaled strings.
18442: for var in SHELL \
18443: ECHO \
18444: PATH_SEPARATOR \
18445: SED \
18446: GREP \
18447: EGREP \
18448: FGREP \
18449: LD \
18450: NM \
18451: LN_S \
18452: lt_SP2NL \
18453: lt_NL2SP \
18454: reload_flag \
18455: OBJDUMP \
18456: deplibs_check_method \
18457: file_magic_cmd \
18458: file_magic_glob \
18459: want_nocaseglob \
18460: DLLTOOL \
18461: sharedlib_from_linklib_cmd \
18462: AR \
18463: AR_FLAGS \
18464: archiver_list_spec \
18465: STRIP \
18466: RANLIB \
18467: CC \
18468: CFLAGS \
18469: compiler \
18470: lt_cv_sys_global_symbol_pipe \
18471: lt_cv_sys_global_symbol_to_cdecl \
18472: lt_cv_sys_global_symbol_to_c_name_address \
18473: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18474: nm_file_list_spec \
18475: lt_prog_compiler_no_builtin_flag \
18476: lt_prog_compiler_pic \
18477: lt_prog_compiler_wl \
18478: lt_prog_compiler_static \
18479: lt_cv_prog_compiler_c_o \
18480: need_locks \
18481: MANIFEST_TOOL \
18482: DSYMUTIL \
18483: NMEDIT \
18484: LIPO \
18485: OTOOL \
18486: OTOOL64 \
18487: shrext_cmds \
18488: export_dynamic_flag_spec \
18489: whole_archive_flag_spec \
18490: compiler_needs_object \
18491: with_gnu_ld \
18492: allow_undefined_flag \
18493: no_undefined_flag \
18494: hardcode_libdir_flag_spec \
18495: hardcode_libdir_separator \
18496: exclude_expsyms \
18497: include_expsyms \
18498: file_list_spec \
18499: variables_saved_for_relink \
18500: libname_spec \
18501: library_names_spec \
18502: soname_spec \
18503: install_override_mode \
18504: finish_eval \
18505: old_striplib \
18506: striplib \
18507: compiler_lib_search_dirs \
18508: predep_objects \
18509: postdep_objects \
18510: predeps \
18511: postdeps \
18512: compiler_lib_search_path \
18513: AS \
18514: LD_CXX \
18515: reload_flag_CXX \
18516: compiler_CXX \
18517: lt_prog_compiler_no_builtin_flag_CXX \
18518: lt_prog_compiler_pic_CXX \
18519: lt_prog_compiler_wl_CXX \
18520: lt_prog_compiler_static_CXX \
18521: lt_cv_prog_compiler_c_o_CXX \
18522: export_dynamic_flag_spec_CXX \
18523: whole_archive_flag_spec_CXX \
18524: compiler_needs_object_CXX \
18525: with_gnu_ld_CXX \
18526: allow_undefined_flag_CXX \
18527: no_undefined_flag_CXX \
18528: hardcode_libdir_flag_spec_CXX \
18529: hardcode_libdir_separator_CXX \
18530: exclude_expsyms_CXX \
18531: include_expsyms_CXX \
18532: file_list_spec_CXX \
18533: compiler_lib_search_dirs_CXX \
18534: predep_objects_CXX \
18535: postdep_objects_CXX \
18536: predeps_CXX \
18537: postdeps_CXX \
18538: compiler_lib_search_path_CXX; do
18539: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18540: *[\\\\\\\`\\"\\\$]*)
18541: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18542: ;;
18543: *)
18544: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18545: ;;
18546: esac
18547: done
18548:
18549: # Double-quote double-evaled strings.
18550: for var in reload_cmds \
18551: old_postinstall_cmds \
18552: old_postuninstall_cmds \
18553: old_archive_cmds \
18554: extract_expsyms_cmds \
18555: old_archive_from_new_cmds \
18556: old_archive_from_expsyms_cmds \
18557: archive_cmds \
18558: archive_expsym_cmds \
18559: module_cmds \
18560: module_expsym_cmds \
18561: export_symbols_cmds \
18562: prelink_cmds \
18563: postlink_cmds \
18564: postinstall_cmds \
18565: postuninstall_cmds \
18566: finish_cmds \
18567: sys_lib_search_path_spec \
18568: sys_lib_dlsearch_path_spec \
18569: reload_cmds_CXX \
18570: old_archive_cmds_CXX \
18571: old_archive_from_new_cmds_CXX \
18572: old_archive_from_expsyms_cmds_CXX \
18573: archive_cmds_CXX \
18574: archive_expsym_cmds_CXX \
18575: module_cmds_CXX \
18576: module_expsym_cmds_CXX \
18577: export_symbols_cmds_CXX \
18578: prelink_cmds_CXX \
18579: postlink_cmds_CXX; do
18580: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18581: *[\\\\\\\`\\"\\\$]*)
18582: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18583: ;;
18584: *)
18585: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18586: ;;
18587: esac
18588: done
18589:
18590: ac_aux_dir='$ac_aux_dir'
18591: xsi_shell='$xsi_shell'
18592: lt_shell_append='$lt_shell_append'
18593:
18594: # See if we are running on zsh, and set the options which allow our
18595: # commands through without removal of \ escapes INIT.
18596: if test -n "\${ZSH_VERSION+set}" ; then
18597: setopt NO_GLOB_SUBST
18598: fi
18599:
18600:
18601: PACKAGE='$PACKAGE'
18602: VERSION='$VERSION'
18603: TIMESTAMP='$TIMESTAMP'
18604: RM='$RM'
18605: ofile='$ofile'
18606:
18607:
18608:
18609:
18610:
18611:
18612: _ACEOF
18613:
18614:
1.11 ! moko 18615:
! 18616: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18617: for ac_config_target in $ac_config_targets
18618: do
1.11 ! moko 18619: case "$ac_config_target" in
! 18620: # Handling of arguments.
! 18621: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 18622: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 18623: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
! 18624: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
! 18625: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 18626: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 18627: { (exit 1); exit 1; }; };;
1.8 moko 18628: esac
18629: done
18630:
18631: # If the user did not use the arguments to specify the items to instantiate,
18632: # then the envvar interface is used. Set only those that are not.
18633: # We use the long form for the default assignment because of an extremely
18634: # bizarre bug on SunOS 4.1.3.
18635: if $ac_need_defaults; then
18636: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18637: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18638: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18639: fi
18640:
18641: # Have a temporary directory for convenience. Make it in the build tree
1.11 ! moko 18642: # simply because there is no reason to put it here, and in addition,
1.8 moko 18643: # creating and moving files from /tmp can sometimes cause problems.
1.11 ! moko 18644: # Create a temporary directory, and hook for its removal unless debugging.
1.8 moko 18645: $debug ||
18646: {
1.11 ! moko 18647: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 18648: trap '{ (exit 1); exit 1; }' 1 2 13 15
1.8 moko 18649: }
1.11 ! moko 18650:
1.8 moko 18651: # Create a (secure) tmp directory for tmp files.
18652:
18653: {
1.11 ! moko 18654: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.8 moko 18655: test -n "$tmp" && test -d "$tmp"
18656: } ||
18657: {
1.11 ! moko 18658: tmp=./confstat$$-$RANDOM
! 18659: (umask 077 && mkdir $tmp)
! 18660: } ||
1.8 moko 18661: {
1.11 ! moko 18662: echo "$me: cannot create a temporary directory in ." >&2
! 18663: { (exit 1); exit 1; }
1.8 moko 18664: }
18665:
18666: _ACEOF
18667:
1.11 ! moko 18668: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18669:
1.11 ! moko 18670: #
! 18671: # CONFIG_FILES section.
! 18672: #
1.8 moko 18673:
1.11 ! moko 18674: # No need to generate the scripts if there are no CONFIG_FILES.
! 18675: # This happens for instance when ./config.status config.h
! 18676: if test -n "\$CONFIG_FILES"; then
! 18677: # Protect against being on the right side of a sed subst in config.status.
! 18678: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
! 18679: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
! 18680: s,@SHELL@,$SHELL,;t t
! 18681: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! 18682: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! 18683: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! 18684: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! 18685: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! 18686: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
! 18687: s,@exec_prefix@,$exec_prefix,;t t
! 18688: s,@prefix@,$prefix,;t t
! 18689: s,@program_transform_name@,$program_transform_name,;t t
! 18690: s,@bindir@,$bindir,;t t
! 18691: s,@sbindir@,$sbindir,;t t
! 18692: s,@libexecdir@,$libexecdir,;t t
! 18693: s,@datadir@,$datadir,;t t
! 18694: s,@sysconfdir@,$sysconfdir,;t t
! 18695: s,@sharedstatedir@,$sharedstatedir,;t t
! 18696: s,@localstatedir@,$localstatedir,;t t
! 18697: s,@libdir@,$libdir,;t t
! 18698: s,@includedir@,$includedir,;t t
! 18699: s,@oldincludedir@,$oldincludedir,;t t
! 18700: s,@infodir@,$infodir,;t t
! 18701: s,@mandir@,$mandir,;t t
! 18702: s,@build_alias@,$build_alias,;t t
! 18703: s,@host_alias@,$host_alias,;t t
! 18704: s,@target_alias@,$target_alias,;t t
! 18705: s,@DEFS@,$DEFS,;t t
! 18706: s,@ECHO_C@,$ECHO_C,;t t
! 18707: s,@ECHO_N@,$ECHO_N,;t t
! 18708: s,@ECHO_T@,$ECHO_T,;t t
! 18709: s,@LIBS@,$LIBS,;t t
! 18710: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
! 18711: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
! 18712: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
! 18713: s,@CYGPATH_W@,$CYGPATH_W,;t t
! 18714: s,@PACKAGE@,$PACKAGE,;t t
! 18715: s,@VERSION@,$VERSION,;t t
! 18716: s,@ACLOCAL@,$ACLOCAL,;t t
! 18717: s,@AUTOCONF@,$AUTOCONF,;t t
! 18718: s,@AUTOMAKE@,$AUTOMAKE,;t t
! 18719: s,@AUTOHEADER@,$AUTOHEADER,;t t
! 18720: s,@MAKEINFO@,$MAKEINFO,;t t
! 18721: s,@install_sh@,$install_sh,;t t
! 18722: s,@STRIP@,$STRIP,;t t
! 18723: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
! 18724: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
! 18725: s,@mkdir_p@,$mkdir_p,;t t
! 18726: s,@AWK@,$AWK,;t t
! 18727: s,@SET_MAKE@,$SET_MAKE,;t t
! 18728: s,@am__leading_dot@,$am__leading_dot,;t t
! 18729: s,@AMTAR@,$AMTAR,;t t
! 18730: s,@am__tar@,$am__tar,;t t
! 18731: s,@am__untar@,$am__untar,;t t
! 18732: s,@SQLITE_INC@,$SQLITE_INC,;t t
! 18733: s,@LDFLAGS@,$LDFLAGS,;t t
! 18734: s,@CXX@,$CXX,;t t
! 18735: s,@CXXFLAGS@,$CXXFLAGS,;t t
! 18736: s,@CPPFLAGS@,$CPPFLAGS,;t t
! 18737: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
! 18738: s,@EXEEXT@,$EXEEXT,;t t
! 18739: s,@OBJEXT@,$OBJEXT,;t t
! 18740: s,@DEPDIR@,$DEPDIR,;t t
! 18741: s,@am__include@,$am__include,;t t
! 18742: s,@am__quote@,$am__quote,;t t
! 18743: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
! 18744: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
! 18745: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
! 18746: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
! 18747: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
! 18748: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
! 18749: s,@CC@,$CC,;t t
! 18750: s,@CFLAGS@,$CFLAGS,;t t
! 18751: s,@ac_ct_CC@,$ac_ct_CC,;t t
! 18752: s,@CCDEPMODE@,$CCDEPMODE,;t t
! 18753: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
! 18754: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
! 18755: s,@LIBTOOL@,$LIBTOOL,;t t
! 18756: s,@build@,$build,;t t
! 18757: s,@build_cpu@,$build_cpu,;t t
! 18758: s,@build_vendor@,$build_vendor,;t t
! 18759: s,@build_os@,$build_os,;t t
! 18760: s,@host@,$host,;t t
! 18761: s,@host_cpu@,$host_cpu,;t t
! 18762: s,@host_vendor@,$host_vendor,;t t
! 18763: s,@host_os@,$host_os,;t t
! 18764: s,@SED@,$SED,;t t
! 18765: s,@EGREP@,$EGREP,;t t
! 18766: s,@FGREP@,$FGREP,;t t
! 18767: s,@GREP@,$GREP,;t t
! 18768: s,@LD@,$LD,;t t
! 18769: s,@DUMPBIN@,$DUMPBIN,;t t
! 18770: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
! 18771: s,@NM@,$NM,;t t
! 18772: s,@LN_S@,$LN_S,;t t
! 18773: s,@OBJDUMP@,$OBJDUMP,;t t
! 18774: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
! 18775: s,@DLLTOOL@,$DLLTOOL,;t t
! 18776: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
! 18777: s,@AR@,$AR,;t t
! 18778: s,@ac_ct_AR@,$ac_ct_AR,;t t
! 18779: s,@RANLIB@,$RANLIB,;t t
! 18780: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
! 18781: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
! 18782: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
! 18783: s,@DSYMUTIL@,$DSYMUTIL,;t t
! 18784: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
! 18785: s,@NMEDIT@,$NMEDIT,;t t
! 18786: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
! 18787: s,@LIPO@,$LIPO,;t t
! 18788: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
! 18789: s,@OTOOL@,$OTOOL,;t t
! 18790: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
! 18791: s,@OTOOL64@,$OTOOL64,;t t
! 18792: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
! 18793: s,@CPP@,$CPP,;t t
! 18794: s,@CXXCPP@,$CXXCPP,;t t
! 18795: s,@LIBLTDL@,$LIBLTDL,;t t
! 18796: s,@LTDLDEPS@,$LTDLDEPS,;t t
! 18797: s,@LTDLINCL@,$LTDLINCL,;t t
! 18798: s,@INCLTDL@,$INCLTDL,;t t
! 18799: s,@LIBADD_DL@,$LIBADD_DL,;t t
! 18800: s,@AS@,$AS,;t t
! 18801: s,@ac_ct_AS@,$ac_ct_AS,;t t
! 18802: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
! 18803: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
! 18804: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
! 18805: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
! 18806: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
! 18807: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
! 18808: s,@ARGZ_H@,$ARGZ_H,;t t
! 18809: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
! 18810: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
! 18811: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
! 18812: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
! 18813: s,@subdirs@,$subdirs,;t t
! 18814: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
! 18815: s,@LTDLOPEN@,$LTDLOPEN,;t t
! 18816: s,@LIBOBJS@,$LIBOBJS,;t t
! 18817: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
! 18818: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
! 18819: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
! 18820: CEOF
! 18821:
! 18822: _ACEOF
! 18823:
! 18824: cat >>$CONFIG_STATUS <<\_ACEOF
! 18825: # Split the substitutions into bite-sized pieces for seds with
! 18826: # small command number limits, like on Digital OSF/1 and HP-UX.
! 18827: ac_max_sed_lines=48
! 18828: ac_sed_frag=1 # Number of current file.
! 18829: ac_beg=1 # First line for current file.
! 18830: ac_end=$ac_max_sed_lines # Line after last line for current file.
! 18831: ac_more_lines=:
! 18832: ac_sed_cmds=
! 18833: while $ac_more_lines; do
! 18834: if test $ac_beg -gt 1; then
! 18835: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 18836: else
! 18837: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 18838: fi
! 18839: if test ! -s $tmp/subs.frag; then
! 18840: ac_more_lines=false
! 18841: else
! 18842: # The purpose of the label and of the branching condition is to
! 18843: # speed up the sed processing (if there are no `@' at all, there
! 18844: # is no need to browse any of the substitutions).
! 18845: # These are the two extra sed commands mentioned above.
! 18846: (echo ':t
! 18847: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
! 18848: if test -z "$ac_sed_cmds"; then
! 18849: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
! 18850: else
! 18851: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
! 18852: fi
! 18853: ac_sed_frag=`expr $ac_sed_frag + 1`
! 18854: ac_beg=$ac_end
! 18855: ac_end=`expr $ac_end + $ac_max_sed_lines`
! 18856: fi
! 18857: done
! 18858: if test -z "$ac_sed_cmds"; then
! 18859: ac_sed_cmds=cat
1.8 moko 18860: fi
1.11 ! moko 18861: fi # test -n "$CONFIG_FILES"
1.8 moko 18862:
18863: _ACEOF
1.11 ! moko 18864: cat >>$CONFIG_STATUS <<\_ACEOF
! 18865: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
! 18866: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 18867: case $ac_file in
! 18868: - | *:- | *:-:* ) # input from stdin
! 18869: cat >$tmp/stdin
! 18870: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 18871: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 18872: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 18873: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 18874: * ) ac_file_in=$ac_file.in ;;
1.8 moko 18875: esac
18876:
1.11 ! moko 18877: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
! 18878: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1.8 moko 18879: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18880: X"$ac_file" : 'X\(//\)[^/]' \| \
18881: X"$ac_file" : 'X\(//\)$' \| \
1.11 ! moko 18882: X"$ac_file" : 'X\(/\)' \| \
! 18883: . : '\(.\)' 2>/dev/null ||
! 18884: echo X"$ac_file" |
! 18885: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 18886: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 18887: /^X\(\/\/\)$/{ s//\1/; q; }
! 18888: /^X\(\/\).*/{ s//\1/; q; }
! 18889: s/.*/./; q'`
! 18890: { if $as_mkdir_p; then
! 18891: mkdir -p "$ac_dir"
! 18892: else
! 18893: as_dir="$ac_dir"
! 18894: as_dirs=
! 18895: while test ! -d "$as_dir"; do
! 18896: as_dirs="$as_dir $as_dirs"
! 18897: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 18898: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 18899: X"$as_dir" : 'X\(//\)[^/]' \| \
! 18900: X"$as_dir" : 'X\(//\)$' \| \
! 18901: X"$as_dir" : 'X\(/\)' \| \
! 18902: . : '\(.\)' 2>/dev/null ||
! 18903: echo X"$as_dir" |
! 18904: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 18905: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 18906: /^X\(\/\/\)$/{ s//\1/; q; }
! 18907: /^X\(\/\).*/{ s//\1/; q; }
! 18908: s/.*/./; q'`
! 18909: done
! 18910: test ! -n "$as_dirs" || mkdir $as_dirs
! 18911: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 18912: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 18913: { (exit 1); exit 1; }; }; }
! 18914:
1.8 moko 18915: ac_builddir=.
18916:
1.11 ! moko 18917: if test "$ac_dir" != .; then
! 18918: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 18919: # A "../" for each directory in $ac_dir_suffix.
! 18920: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 18921: else
! 18922: ac_dir_suffix= ac_top_builddir=
! 18923: fi
1.8 moko 18924:
18925: case $srcdir in
1.11 ! moko 18926: .) # No --srcdir option. We are building in place.
1.8 moko 18927: ac_srcdir=.
1.11 ! moko 18928: if test -z "$ac_top_builddir"; then
! 18929: ac_top_srcdir=.
! 18930: else
! 18931: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 18932: fi ;;
! 18933: [\\/]* | ?:[\\/]* ) # Absolute path.
1.8 moko 18934: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 ! moko 18935: ac_top_srcdir=$srcdir ;;
! 18936: *) # Relative path.
! 18937: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 18938: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.8 moko 18939: esac
18940:
1.11 ! moko 18941: # Do not use `cd foo && pwd` to compute absolute paths, because
! 18942: # the directories may not exist.
! 18943: case `pwd` in
! 18944: .) ac_abs_builddir="$ac_dir";;
! 18945: *)
! 18946: case "$ac_dir" in
! 18947: .) ac_abs_builddir=`pwd`;;
! 18948: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
! 18949: *) ac_abs_builddir=`pwd`/"$ac_dir";;
! 18950: esac;;
! 18951: esac
! 18952: case $ac_abs_builddir in
! 18953: .) ac_abs_top_builddir=${ac_top_builddir}.;;
! 18954: *)
! 18955: case ${ac_top_builddir}. in
! 18956: .) ac_abs_top_builddir=$ac_abs_builddir;;
! 18957: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
! 18958: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
! 18959: esac;;
! 18960: esac
! 18961: case $ac_abs_builddir in
! 18962: .) ac_abs_srcdir=$ac_srcdir;;
! 18963: *)
! 18964: case $ac_srcdir in
! 18965: .) ac_abs_srcdir=$ac_abs_builddir;;
! 18966: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
! 18967: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
! 18968: esac;;
! 18969: esac
! 18970: case $ac_abs_builddir in
! 18971: .) ac_abs_top_srcdir=$ac_top_srcdir;;
! 18972: *)
! 18973: case $ac_top_srcdir in
! 18974: .) ac_abs_top_srcdir=$ac_abs_builddir;;
! 18975: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
! 18976: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
! 18977: esac;;
! 18978: esac
1.8 moko 18979:
18980:
18981: case $INSTALL in
18982: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.11 ! moko 18983: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.8 moko 18984: esac
18985:
1.11 ! moko 18986: if test x"$ac_file" != x-; then
! 18987: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 18988: echo "$as_me: creating $ac_file" >&6;}
! 18989: rm -f "$ac_file"
! 18990: fi
! 18991: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 18992: # use $as_me), people would be surprised to read:
! 18993: # /* config.h. Generated by config.status. */
! 18994: if test x"$ac_file" = x-; then
! 18995: configure_input=
! 18996: else
! 18997: configure_input="$ac_file. "
! 18998: fi
! 18999: configure_input=$configure_input"Generated from `echo $ac_file_in |
! 19000: sed 's,.*/,,'` by configure."
! 19001:
! 19002: # First look for the input files in the build tree, otherwise in the
! 19003: # src tree.
! 19004: ac_file_inputs=`IFS=:
! 19005: for f in $ac_file_in; do
! 19006: case $f in
! 19007: -) echo $tmp/stdin ;;
! 19008: [\\/$]*)
! 19009: # Absolute (can't be DOS-style, as IFS=:)
! 19010: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 19011: echo "$as_me: error: cannot find input file: $f" >&2;}
! 19012: { (exit 1); exit 1; }; }
! 19013: echo "$f";;
! 19014: *) # Relative
! 19015: if test -f "$f"; then
! 19016: # Build tree
! 19017: echo "$f"
! 19018: elif test -f "$srcdir/$f"; then
! 19019: # Source tree
! 19020: echo "$srcdir/$f"
! 19021: else
! 19022: # /dev/null tree
! 19023: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 19024: echo "$as_me: error: cannot find input file: $f" >&2;}
! 19025: { (exit 1); exit 1; }; }
! 19026: fi;;
! 19027: esac
! 19028: done` || { (exit 1); exit 1; }
1.10 moko 19029: _ACEOF
1.11 ! moko 19030: cat >>$CONFIG_STATUS <<_ACEOF
! 19031: sed "$ac_vpsub
1.8 moko 19032: $extrasub
19033: _ACEOF
1.11 ! moko 19034: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 19035: :t
19036: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.11 ! moko 19037: s,@configure_input@,$configure_input,;t t
! 19038: s,@srcdir@,$ac_srcdir,;t t
! 19039: s,@abs_srcdir@,$ac_abs_srcdir,;t t
! 19040: s,@top_srcdir@,$ac_top_srcdir,;t t
! 19041: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
! 19042: s,@builddir@,$ac_builddir,;t t
! 19043: s,@abs_builddir@,$ac_abs_builddir,;t t
! 19044: s,@top_builddir@,$ac_top_builddir,;t t
! 19045: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
! 19046: s,@INSTALL@,$ac_INSTALL,;t t
! 19047: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
! 19048: rm -f $tmp/stdin
! 19049: if test x"$ac_file" != x-; then
! 19050: mv $tmp/out $ac_file
! 19051: else
! 19052: cat $tmp/out
! 19053: rm -f $tmp/out
! 19054: fi
! 19055:
! 19056: done
! 19057: _ACEOF
! 19058: cat >>$CONFIG_STATUS <<\_ACEOF
! 19059:
! 19060: #
! 19061: # CONFIG_HEADER section.
! 19062: #
! 19063:
! 19064: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
! 19065: # NAME is the cpp macro being defined and VALUE is the value it is being given.
! 19066: #
! 19067: # ac_d sets the value in "#define NAME VALUE" lines.
! 19068: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 19069: ac_dB='[ ].*$,\1#\2'
! 19070: ac_dC=' '
! 19071: ac_dD=',;t'
! 19072: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 19073: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 19074: ac_uB='$,\1#\2define\3'
! 19075: ac_uC=' '
! 19076: ac_uD=',;t'
1.8 moko 19077:
1.11 ! moko 19078: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
! 19079: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.8 moko 19080: case $ac_file in
1.11 ! moko 19081: - | *:- | *:-:* ) # input from stdin
! 19082: cat >$tmp/stdin
! 19083: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 19084: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 19085: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 19086: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 19087: * ) ac_file_in=$ac_file.in ;;
! 19088: esac
! 19089:
! 19090: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
! 19091: echo "$as_me: creating $ac_file" >&6;}
! 19092:
! 19093: # First look for the input files in the build tree, otherwise in the
! 19094: # src tree.
! 19095: ac_file_inputs=`IFS=:
! 19096: for f in $ac_file_in; do
! 19097: case $f in
! 19098: -) echo $tmp/stdin ;;
! 19099: [\\/$]*)
! 19100: # Absolute (can't be DOS-style, as IFS=:)
! 19101: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 19102: echo "$as_me: error: cannot find input file: $f" >&2;}
! 19103: { (exit 1); exit 1; }; }
! 19104: # Do quote $f, to prevent DOS paths from being IFS'd.
! 19105: echo "$f";;
! 19106: *) # Relative
! 19107: if test -f "$f"; then
! 19108: # Build tree
! 19109: echo "$f"
! 19110: elif test -f "$srcdir/$f"; then
! 19111: # Source tree
! 19112: echo "$srcdir/$f"
! 19113: else
! 19114: # /dev/null tree
! 19115: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 19116: echo "$as_me: error: cannot find input file: $f" >&2;}
! 19117: { (exit 1); exit 1; }; }
! 19118: fi;;
! 19119: esac
! 19120: done` || { (exit 1); exit 1; }
! 19121: # Remove the trailing spaces.
! 19122: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
! 19123:
! 19124: _ACEOF
! 19125:
! 19126: # Transform confdefs.h into two sed scripts, `conftest.defines' and
! 19127: # `conftest.undefs', that substitutes the proper values into
! 19128: # config.h.in to produce config.h. The first handles `#define'
! 19129: # templates, and the second `#undef' templates.
! 19130: # And first: Protect against being on the right side of a sed subst in
! 19131: # config.status. Protect against being in an unquoted here document
! 19132: # in config.status.
! 19133: rm -f conftest.defines conftest.undefs
! 19134: # Using a here document instead of a string reduces the quoting nightmare.
! 19135: # Putting comments in sed scripts is not portable.
! 19136: #
! 19137: # `end' is used to avoid that the second main sed command (meant for
! 19138: # 0-ary CPP macros) applies to n-ary macro definitions.
! 19139: # See the Autoconf documentation for `clear'.
! 19140: cat >confdef2sed.sed <<\_ACEOF
! 19141: s/[\\&,]/\\&/g
! 19142: s,[\\$`],\\&,g
! 19143: t clear
! 19144: : clear
! 19145: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
! 19146: t end
! 19147: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! 19148: : end
! 19149: _ACEOF
! 19150: # If some macros were called several times there might be several times
! 19151: # the same #defines, which is useless. Nevertheless, we may not want to
! 19152: # sort them, since we want the *last* AC-DEFINE to be honored.
! 19153: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! 19154: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! 19155: rm -f confdef2sed.sed
! 19156:
! 19157: # This sed command replaces #undef with comments. This is necessary, for
! 19158: # example, in the case of _POSIX_SOURCE, which is predefined and required
! 19159: # on some systems where configure will not decide to define it.
! 19160: cat >>conftest.undefs <<\_ACEOF
! 19161: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
! 19162: _ACEOF
! 19163:
! 19164: # Break up conftest.defines because some shells have a limit on the size
! 19165: # of here documents, and old seds have small limits too (100 cmds).
! 19166: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
! 19167: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
! 19168: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
! 19169: echo ' :' >>$CONFIG_STATUS
! 19170: rm -f conftest.tail
! 19171: while grep . conftest.defines >/dev/null
! 19172: do
! 19173: # Write a limited-size here document to $tmp/defines.sed.
! 19174: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
! 19175: # Speed up: don't consider the non `#define' lines.
! 19176: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
! 19177: # Work around the forget-to-reset-the-flag bug.
! 19178: echo 't clr' >>$CONFIG_STATUS
! 19179: echo ': clr' >>$CONFIG_STATUS
! 19180: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
! 19181: echo 'CEOF
! 19182: sed -f $tmp/defines.sed $tmp/in >$tmp/out
! 19183: rm -f $tmp/in
! 19184: mv $tmp/out $tmp/in
! 19185: ' >>$CONFIG_STATUS
! 19186: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
! 19187: rm -f conftest.defines
! 19188: mv conftest.tail conftest.defines
! 19189: done
! 19190: rm -f conftest.defines
! 19191: echo ' fi # grep' >>$CONFIG_STATUS
! 19192: echo >>$CONFIG_STATUS
! 19193:
! 19194: # Break up conftest.undefs because some shells have a limit on the size
! 19195: # of here documents, and old seds have small limits too (100 cmds).
! 19196: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
! 19197: rm -f conftest.tail
! 19198: while grep . conftest.undefs >/dev/null
! 19199: do
! 19200: # Write a limited-size here document to $tmp/undefs.sed.
! 19201: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
! 19202: # Speed up: don't consider the non `#undef'
! 19203: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
! 19204: # Work around the forget-to-reset-the-flag bug.
! 19205: echo 't clr' >>$CONFIG_STATUS
! 19206: echo ': clr' >>$CONFIG_STATUS
! 19207: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
! 19208: echo 'CEOF
! 19209: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
! 19210: rm -f $tmp/in
! 19211: mv $tmp/out $tmp/in
! 19212: ' >>$CONFIG_STATUS
! 19213: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
! 19214: rm -f conftest.undefs
! 19215: mv conftest.tail conftest.undefs
! 19216: done
! 19217: rm -f conftest.undefs
! 19218:
! 19219: cat >>$CONFIG_STATUS <<\_ACEOF
! 19220: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 19221: # use $as_me), people would be surprised to read:
! 19222: # /* config.h. Generated by config.status. */
! 19223: if test x"$ac_file" = x-; then
! 19224: echo "/* Generated by configure. */" >$tmp/config.h
! 19225: else
! 19226: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
! 19227: fi
! 19228: cat $tmp/in >>$tmp/config.h
! 19229: rm -f $tmp/in
1.8 moko 19230: if test x"$ac_file" != x-; then
1.11 ! moko 19231: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
! 19232: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 19233: echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 19234: else
1.11 ! moko 19235: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 19236: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 19237: X"$ac_file" : 'X\(//\)[^/]' \| \
! 19238: X"$ac_file" : 'X\(//\)$' \| \
! 19239: X"$ac_file" : 'X\(/\)' \| \
! 19240: . : '\(.\)' 2>/dev/null ||
! 19241: echo X"$ac_file" |
! 19242: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19243: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19244: /^X\(\/\/\)$/{ s//\1/; q; }
! 19245: /^X\(\/\).*/{ s//\1/; q; }
! 19246: s/.*/./; q'`
! 19247: { if $as_mkdir_p; then
! 19248: mkdir -p "$ac_dir"
! 19249: else
! 19250: as_dir="$ac_dir"
! 19251: as_dirs=
! 19252: while test ! -d "$as_dir"; do
! 19253: as_dirs="$as_dir $as_dirs"
! 19254: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 19255: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 19256: X"$as_dir" : 'X\(//\)[^/]' \| \
! 19257: X"$as_dir" : 'X\(//\)$' \| \
! 19258: X"$as_dir" : 'X\(/\)' \| \
! 19259: . : '\(.\)' 2>/dev/null ||
! 19260: echo X"$as_dir" |
! 19261: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19262: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19263: /^X\(\/\/\)$/{ s//\1/; q; }
! 19264: /^X\(\/\).*/{ s//\1/; q; }
! 19265: s/.*/./; q'`
! 19266: done
! 19267: test ! -n "$as_dirs" || mkdir $as_dirs
! 19268: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 19269: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 19270: { (exit 1); exit 1; }; }; }
! 19271:
! 19272: rm -f $ac_file
! 19273: mv $tmp/config.h $ac_file
1.8 moko 19274: fi
19275: else
1.11 ! moko 19276: cat $tmp/config.h
! 19277: rm -f $tmp/config.h
1.8 moko 19278: fi
1.11 ! moko 19279: # Compute $ac_file's index in $config_headers.
1.8 moko 19280: _am_stamp_count=1
19281: for _am_header in $config_headers :; do
19282: case $_am_header in
1.11 ! moko 19283: $ac_file | $ac_file:* )
1.8 moko 19284: break ;;
19285: * )
19286: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19287: esac
19288: done
1.11 ! moko 19289: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
! 19290: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 19291: X$ac_file : 'X\(//\)[^/]' \| \
! 19292: X$ac_file : 'X\(//\)$' \| \
! 19293: X$ac_file : 'X\(/\)' \| \
! 19294: . : '\(.\)' 2>/dev/null ||
! 19295: echo X$ac_file |
! 19296: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19297: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19298: /^X\(\/\/\)$/{ s//\1/; q; }
! 19299: /^X\(\/\).*/{ s//\1/; q; }
! 19300: s/.*/./; q'`/stamp-h$_am_stamp_count
! 19301: done
! 19302: _ACEOF
! 19303: cat >>$CONFIG_STATUS <<\_ACEOF
! 19304:
! 19305: #
! 19306: # CONFIG_COMMANDS section.
! 19307: #
! 19308: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
! 19309: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
! 19310: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 19311: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
! 19312: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 19313: X"$ac_dest" : 'X\(//\)[^/]' \| \
! 19314: X"$ac_dest" : 'X\(//\)$' \| \
! 19315: X"$ac_dest" : 'X\(/\)' \| \
! 19316: . : '\(.\)' 2>/dev/null ||
! 19317: echo X"$ac_dest" |
! 19318: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19319: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19320: /^X\(\/\/\)$/{ s//\1/; q; }
! 19321: /^X\(\/\).*/{ s//\1/; q; }
! 19322: s/.*/./; q'`
! 19323: { if $as_mkdir_p; then
! 19324: mkdir -p "$ac_dir"
! 19325: else
! 19326: as_dir="$ac_dir"
! 19327: as_dirs=
! 19328: while test ! -d "$as_dir"; do
! 19329: as_dirs="$as_dir $as_dirs"
! 19330: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 19331: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 19332: X"$as_dir" : 'X\(//\)[^/]' \| \
! 19333: X"$as_dir" : 'X\(//\)$' \| \
! 19334: X"$as_dir" : 'X\(/\)' \| \
! 19335: . : '\(.\)' 2>/dev/null ||
! 19336: echo X"$as_dir" |
! 19337: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19338: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19339: /^X\(\/\/\)$/{ s//\1/; q; }
! 19340: /^X\(\/\).*/{ s//\1/; q; }
! 19341: s/.*/./; q'`
! 19342: done
! 19343: test ! -n "$as_dirs" || mkdir $as_dirs
! 19344: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 19345: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 19346: { (exit 1); exit 1; }; }; }
! 19347:
! 19348: ac_builddir=.
! 19349:
! 19350: if test "$ac_dir" != .; then
! 19351: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 19352: # A "../" for each directory in $ac_dir_suffix.
! 19353: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 19354: else
! 19355: ac_dir_suffix= ac_top_builddir=
! 19356: fi
! 19357:
! 19358: case $srcdir in
! 19359: .) # No --srcdir option. We are building in place.
! 19360: ac_srcdir=.
! 19361: if test -z "$ac_top_builddir"; then
! 19362: ac_top_srcdir=.
! 19363: else
! 19364: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 19365: fi ;;
! 19366: [\\/]* | ?:[\\/]* ) # Absolute path.
! 19367: ac_srcdir=$srcdir$ac_dir_suffix;
! 19368: ac_top_srcdir=$srcdir ;;
! 19369: *) # Relative path.
! 19370: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 19371: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 19372: esac
1.8 moko 19373:
1.11 ! moko 19374: # Do not use `cd foo && pwd` to compute absolute paths, because
! 19375: # the directories may not exist.
! 19376: case `pwd` in
! 19377: .) ac_abs_builddir="$ac_dir";;
! 19378: *)
! 19379: case "$ac_dir" in
! 19380: .) ac_abs_builddir=`pwd`;;
! 19381: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
! 19382: *) ac_abs_builddir=`pwd`/"$ac_dir";;
! 19383: esac;;
! 19384: esac
! 19385: case $ac_abs_builddir in
! 19386: .) ac_abs_top_builddir=${ac_top_builddir}.;;
! 19387: *)
! 19388: case ${ac_top_builddir}. in
! 19389: .) ac_abs_top_builddir=$ac_abs_builddir;;
! 19390: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
! 19391: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
! 19392: esac;;
! 19393: esac
! 19394: case $ac_abs_builddir in
! 19395: .) ac_abs_srcdir=$ac_srcdir;;
! 19396: *)
! 19397: case $ac_srcdir in
! 19398: .) ac_abs_srcdir=$ac_abs_builddir;;
! 19399: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
! 19400: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
! 19401: esac;;
! 19402: esac
! 19403: case $ac_abs_builddir in
! 19404: .) ac_abs_top_srcdir=$ac_top_srcdir;;
! 19405: *)
! 19406: case $ac_top_srcdir in
! 19407: .) ac_abs_top_srcdir=$ac_abs_builddir;;
! 19408: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
! 19409: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
! 19410: esac;;
! 19411: esac
1.8 moko 19412:
19413:
1.11 ! moko 19414: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
! 19415: echo "$as_me: executing $ac_dest commands" >&6;}
! 19416: case $ac_dest in
! 19417: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.8 moko 19418: # Strip MF so we end up with the name of the file.
19419: mf=`echo "$mf" | sed -e 's/:.*$//'`
19420: # Check whether this is an Automake generated Makefile or not.
19421: # We used to match only the files named `Makefile.in', but
19422: # some people rename them; so instead we look at the file content.
19423: # Grep'ing the first line is not enough: some people post-process
19424: # each Makefile.in and add a new line on top of each file to say so.
19425: # So let's grep whole file.
19426: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.11 ! moko 19427: dirpart=`(dirname "$mf") 2>/dev/null ||
1.8 moko 19428: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19429: X"$mf" : 'X\(//\)[^/]' \| \
19430: X"$mf" : 'X\(//\)$' \| \
1.11 ! moko 19431: X"$mf" : 'X\(/\)' \| \
! 19432: . : '\(.\)' 2>/dev/null ||
! 19433: echo X"$mf" |
! 19434: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19435: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19436: /^X\(\/\/\)$/{ s//\1/; q; }
! 19437: /^X\(\/\).*/{ s//\1/; q; }
! 19438: s/.*/./; q'`
1.8 moko 19439: else
19440: continue
19441: fi
19442: # Extract the definition of DEPDIR, am__include, and am__quote
19443: # from the Makefile without running `make'.
19444: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19445: test -z "$DEPDIR" && continue
19446: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19447: test -z "am__include" && continue
19448: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19449: # When using ansi2knr, U may be empty or an underscore; expand it
19450: U=`sed -n 's/^U = //p' < "$mf"`
19451: # Find all dependency output files, they are included files with
19452: # $(DEPDIR) in their names. We invoke sed twice because it is the
19453: # simplest approach to changing $(DEPDIR) to its actual value in the
19454: # expansion.
19455: for file in `sed -n "
19456: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19457: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19458: # Make sure the directory exists.
19459: test -f "$dirpart/$file" && continue
1.11 ! moko 19460: fdir=`(dirname "$file") 2>/dev/null ||
1.8 moko 19461: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19462: X"$file" : 'X\(//\)[^/]' \| \
19463: X"$file" : 'X\(//\)$' \| \
1.11 ! moko 19464: X"$file" : 'X\(/\)' \| \
! 19465: . : '\(.\)' 2>/dev/null ||
! 19466: echo X"$file" |
! 19467: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19468: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19469: /^X\(\/\/\)$/{ s//\1/; q; }
! 19470: /^X\(\/\).*/{ s//\1/; q; }
! 19471: s/.*/./; q'`
! 19472: { if $as_mkdir_p; then
! 19473: mkdir -p $dirpart/$fdir
! 19474: else
! 19475: as_dir=$dirpart/$fdir
! 19476: as_dirs=
! 19477: while test ! -d "$as_dir"; do
! 19478: as_dirs="$as_dir $as_dirs"
! 19479: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 19480: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 19481: X"$as_dir" : 'X\(//\)[^/]' \| \
! 19482: X"$as_dir" : 'X\(//\)$' \| \
! 19483: X"$as_dir" : 'X\(/\)' \| \
! 19484: . : '\(.\)' 2>/dev/null ||
! 19485: echo X"$as_dir" |
! 19486: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 19487: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 19488: /^X\(\/\/\)$/{ s//\1/; q; }
! 19489: /^X\(\/\).*/{ s//\1/; q; }
! 19490: s/.*/./; q'`
! 19491: done
! 19492: test ! -n "$as_dirs" || mkdir $as_dirs
! 19493: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
! 19494: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
! 19495: { (exit 1); exit 1; }; }; }
! 19496:
1.8 moko 19497: # echo "creating $dirpart/$file"
19498: echo '# dummy' > "$dirpart/$file"
19499: done
19500: done
19501: ;;
1.11 ! moko 19502: libtool )
1.8 moko 19503:
19504: # See if we are running on zsh, and set the options which allow our
19505: # commands through without removal of \ escapes.
19506: if test -n "${ZSH_VERSION+set}" ; then
19507: setopt NO_GLOB_SUBST
19508: fi
19509:
19510: cfgfile="${ofile}T"
19511: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19512: $RM "$cfgfile"
19513:
19514: cat <<_LT_EOF >> "$cfgfile"
19515: #! $SHELL
19516:
19517: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19518: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19519: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19520: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19521: #
19522: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19523: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19524: # Foundation, Inc.
19525: # Written by Gordon Matzigkeit, 1996
19526: #
19527: # This file is part of GNU Libtool.
19528: #
19529: # GNU Libtool is free software; you can redistribute it and/or
19530: # modify it under the terms of the GNU General Public License as
19531: # published by the Free Software Foundation; either version 2 of
19532: # the License, or (at your option) any later version.
19533: #
19534: # As a special exception to the GNU General Public License,
19535: # if you distribute this file as part of a program or library that
19536: # is built using GNU Libtool, you may include this file under the
19537: # same distribution terms that you use for the rest of that program.
19538: #
19539: # GNU Libtool is distributed in the hope that it will be useful,
19540: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19541: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19542: # GNU General Public License for more details.
19543: #
19544: # You should have received a copy of the GNU General Public License
19545: # along with GNU Libtool; see the file COPYING. If not, a copy
19546: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19547: # obtained by writing to the Free Software Foundation, Inc.,
19548: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19549:
19550:
19551: # The names of the tagged configurations supported by this script.
19552: available_tags="CXX "
19553:
19554: # ### BEGIN LIBTOOL CONFIG
19555:
19556: # Which release of libtool.m4 was used?
19557: macro_version=$macro_version
19558: macro_revision=$macro_revision
19559:
19560: # Whether or not to build shared libraries.
19561: build_libtool_libs=$enable_shared
19562:
19563: # Whether or not to build static libraries.
19564: build_old_libs=$enable_static
19565:
19566: # What type of objects to build.
19567: pic_mode=$pic_mode
19568:
19569: # Whether or not to optimize for fast installation.
19570: fast_install=$enable_fast_install
19571:
19572: # Shell to use when invoking shell scripts.
19573: SHELL=$lt_SHELL
19574:
19575: # An echo program that protects backslashes.
19576: ECHO=$lt_ECHO
19577:
19578: # The PATH separator for the build system.
19579: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19580:
19581: # The host system.
19582: host_alias=$host_alias
19583: host=$host
19584: host_os=$host_os
19585:
19586: # The build system.
19587: build_alias=$build_alias
19588: build=$build
19589: build_os=$build_os
19590:
19591: # A sed program that does not truncate output.
19592: SED=$lt_SED
19593:
19594: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19595: Xsed="\$SED -e 1s/^X//"
19596:
19597: # A grep program that handles long lines.
19598: GREP=$lt_GREP
19599:
19600: # An ERE matcher.
19601: EGREP=$lt_EGREP
19602:
19603: # A literal string matcher.
19604: FGREP=$lt_FGREP
19605:
19606: # A BSD- or MS-compatible name lister.
19607: NM=$lt_NM
19608:
19609: # Whether we need soft or hard links.
19610: LN_S=$lt_LN_S
19611:
19612: # What is the maximum length of a command?
19613: max_cmd_len=$max_cmd_len
19614:
19615: # Object file suffix (normally "o").
19616: objext=$ac_objext
19617:
19618: # Executable file suffix (normally "").
19619: exeext=$exeext
19620:
19621: # whether the shell understands "unset".
19622: lt_unset=$lt_unset
19623:
19624: # turn spaces into newlines.
19625: SP2NL=$lt_lt_SP2NL
19626:
19627: # turn newlines into spaces.
19628: NL2SP=$lt_lt_NL2SP
19629:
19630: # convert \$build file names to \$host format.
19631: to_host_file_cmd=$lt_cv_to_host_file_cmd
19632:
19633: # convert \$build files to toolchain format.
19634: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19635:
19636: # An object symbol dumper.
19637: OBJDUMP=$lt_OBJDUMP
19638:
19639: # Method to check whether dependent libraries are shared objects.
19640: deplibs_check_method=$lt_deplibs_check_method
19641:
19642: # Command to use when deplibs_check_method = "file_magic".
19643: file_magic_cmd=$lt_file_magic_cmd
19644:
19645: # How to find potential files when deplibs_check_method = "file_magic".
19646: file_magic_glob=$lt_file_magic_glob
19647:
19648: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19649: want_nocaseglob=$lt_want_nocaseglob
19650:
19651: # DLL creation program.
19652: DLLTOOL=$lt_DLLTOOL
19653:
19654: # Command to associate shared and link libraries.
19655: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19656:
19657: # The archiver.
19658: AR=$lt_AR
19659:
19660: # Flags to create an archive.
19661: AR_FLAGS=$lt_AR_FLAGS
19662:
19663: # How to feed a file listing to the archiver.
19664: archiver_list_spec=$lt_archiver_list_spec
19665:
19666: # A symbol stripping program.
19667: STRIP=$lt_STRIP
19668:
19669: # Commands used to install an old-style archive.
19670: RANLIB=$lt_RANLIB
19671: old_postinstall_cmds=$lt_old_postinstall_cmds
19672: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19673:
19674: # Whether to use a lock for old archive extraction.
19675: lock_old_archive_extraction=$lock_old_archive_extraction
19676:
19677: # A C compiler.
19678: LTCC=$lt_CC
19679:
19680: # LTCC compiler flags.
19681: LTCFLAGS=$lt_CFLAGS
19682:
19683: # Take the output of nm and produce a listing of raw symbols and C names.
19684: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19685:
19686: # Transform the output of nm in a proper C declaration.
19687: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19688:
19689: # Transform the output of nm in a C name address pair.
19690: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19691:
19692: # Transform the output of nm in a C name address pair when lib prefix is needed.
19693: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19694:
19695: # Specify filename containing input files for \$NM.
19696: nm_file_list_spec=$lt_nm_file_list_spec
19697:
19698: # The root where to search for dependent libraries,and in which our libraries should be installed.
19699: lt_sysroot=$lt_sysroot
19700:
19701: # The name of the directory that contains temporary libtool files.
19702: objdir=$objdir
19703:
19704: # Used to examine libraries when file_magic_cmd begins with "file".
19705: MAGIC_CMD=$MAGIC_CMD
19706:
19707: # Must we lock files when doing compilation?
19708: need_locks=$lt_need_locks
19709:
19710: # Manifest tool.
19711: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19712:
19713: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19714: DSYMUTIL=$lt_DSYMUTIL
19715:
19716: # Tool to change global to local symbols on Mac OS X.
19717: NMEDIT=$lt_NMEDIT
19718:
19719: # Tool to manipulate fat objects and archives on Mac OS X.
19720: LIPO=$lt_LIPO
19721:
19722: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19723: OTOOL=$lt_OTOOL
19724:
19725: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19726: OTOOL64=$lt_OTOOL64
19727:
19728: # Old archive suffix (normally "a").
19729: libext=$libext
19730:
19731: # Shared library suffix (normally ".so").
19732: shrext_cmds=$lt_shrext_cmds
19733:
19734: # The commands to extract the exported symbol list from a shared archive.
19735: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19736:
19737: # Variables whose values should be saved in libtool wrapper scripts and
19738: # restored at link time.
19739: variables_saved_for_relink=$lt_variables_saved_for_relink
19740:
19741: # Do we need the "lib" prefix for modules?
19742: need_lib_prefix=$need_lib_prefix
19743:
19744: # Do we need a version for libraries?
19745: need_version=$need_version
19746:
19747: # Library versioning type.
19748: version_type=$version_type
19749:
19750: # Shared library runtime path variable.
19751: runpath_var=$runpath_var
19752:
19753: # Shared library path variable.
19754: shlibpath_var=$shlibpath_var
19755:
19756: # Is shlibpath searched before the hard-coded library search path?
19757: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19758:
19759: # Format of library name prefix.
19760: libname_spec=$lt_libname_spec
19761:
19762: # List of archive names. First name is the real one, the rest are links.
19763: # The last name is the one that the linker finds with -lNAME
19764: library_names_spec=$lt_library_names_spec
19765:
19766: # The coded name of the library, if different from the real name.
19767: soname_spec=$lt_soname_spec
19768:
19769: # Permission mode override for installation of shared libraries.
19770: install_override_mode=$lt_install_override_mode
19771:
19772: # Command to use after installation of a shared archive.
19773: postinstall_cmds=$lt_postinstall_cmds
19774:
19775: # Command to use after uninstallation of a shared archive.
19776: postuninstall_cmds=$lt_postuninstall_cmds
19777:
19778: # Commands used to finish a libtool library installation in a directory.
19779: finish_cmds=$lt_finish_cmds
19780:
19781: # As "finish_cmds", except a single script fragment to be evaled but
19782: # not shown.
19783: finish_eval=$lt_finish_eval
19784:
19785: # Whether we should hardcode library paths into libraries.
19786: hardcode_into_libs=$hardcode_into_libs
19787:
19788: # Compile-time system search path for libraries.
19789: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19790:
19791: # Run-time system search path for libraries.
19792: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19793:
19794: # Whether dlopen is supported.
19795: dlopen_support=$enable_dlopen
19796:
19797: # Whether dlopen of programs is supported.
19798: dlopen_self=$enable_dlopen_self
19799:
19800: # Whether dlopen of statically linked programs is supported.
19801: dlopen_self_static=$enable_dlopen_self_static
19802:
19803: # Commands to strip libraries.
19804: old_striplib=$lt_old_striplib
19805: striplib=$lt_striplib
19806:
19807: # Assembler program.
19808: AS=$lt_AS
19809:
19810:
19811: # The linker used to build libraries.
19812: LD=$lt_LD
19813:
19814: # How to create reloadable object files.
19815: reload_flag=$lt_reload_flag
19816: reload_cmds=$lt_reload_cmds
19817:
19818: # Commands used to build an old-style archive.
19819: old_archive_cmds=$lt_old_archive_cmds
19820:
19821: # A language specific compiler.
19822: CC=$lt_compiler
19823:
19824: # Is the compiler the GNU compiler?
19825: with_gcc=$GCC
19826:
19827: # Compiler flag to turn off builtin functions.
19828: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19829:
19830: # Additional compiler flags for building library objects.
19831: pic_flag=$lt_lt_prog_compiler_pic
19832:
19833: # How to pass a linker flag through the compiler.
19834: wl=$lt_lt_prog_compiler_wl
19835:
19836: # Compiler flag to prevent dynamic linking.
19837: link_static_flag=$lt_lt_prog_compiler_static
19838:
19839: # Does compiler simultaneously support -c and -o options?
19840: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19841:
19842: # Whether or not to add -lc for building shared libraries.
19843: build_libtool_need_lc=$archive_cmds_need_lc
19844:
19845: # Whether or not to disallow shared libs when runtime libs are static.
19846: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19847:
19848: # Compiler flag to allow reflexive dlopens.
19849: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19850:
19851: # Compiler flag to generate shared objects directly from archives.
19852: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19853:
19854: # Whether the compiler copes with passing no objects directly.
19855: compiler_needs_object=$lt_compiler_needs_object
19856:
19857: # Create an old-style archive from a shared archive.
19858: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19859:
19860: # Create a temporary old-style archive to link instead of a shared archive.
19861: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19862:
19863: # Commands used to build a shared archive.
19864: archive_cmds=$lt_archive_cmds
19865: archive_expsym_cmds=$lt_archive_expsym_cmds
19866:
19867: # Commands used to build a loadable module if different from building
19868: # a shared archive.
19869: module_cmds=$lt_module_cmds
19870: module_expsym_cmds=$lt_module_expsym_cmds
19871:
19872: # Whether we are building with GNU ld or not.
19873: with_gnu_ld=$lt_with_gnu_ld
19874:
19875: # Flag that allows shared libraries with undefined symbols to be built.
19876: allow_undefined_flag=$lt_allow_undefined_flag
19877:
19878: # Flag that enforces no undefined symbols.
19879: no_undefined_flag=$lt_no_undefined_flag
19880:
19881: # Flag to hardcode \$libdir into a binary during linking.
19882: # This must work even if \$libdir does not exist
19883: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19884:
19885: # Whether we need a single "-rpath" flag with a separated argument.
19886: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19887:
19888: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19889: # DIR into the resulting binary.
19890: hardcode_direct=$hardcode_direct
19891:
19892: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19893: # DIR into the resulting binary and the resulting library dependency is
19894: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19895: # library is relocated.
19896: hardcode_direct_absolute=$hardcode_direct_absolute
19897:
19898: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19899: # into the resulting binary.
19900: hardcode_minus_L=$hardcode_minus_L
19901:
19902: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19903: # into the resulting binary.
19904: hardcode_shlibpath_var=$hardcode_shlibpath_var
19905:
19906: # Set to "yes" if building a shared library automatically hardcodes DIR
19907: # into the library and all subsequent libraries and executables linked
19908: # against it.
19909: hardcode_automatic=$hardcode_automatic
19910:
19911: # Set to yes if linker adds runtime paths of dependent libraries
19912: # to runtime path list.
19913: inherit_rpath=$inherit_rpath
19914:
19915: # Whether libtool must link a program against all its dependency libraries.
19916: link_all_deplibs=$link_all_deplibs
19917:
19918: # Set to "yes" if exported symbols are required.
19919: always_export_symbols=$always_export_symbols
19920:
19921: # The commands to list exported symbols.
19922: export_symbols_cmds=$lt_export_symbols_cmds
19923:
19924: # Symbols that should not be listed in the preloaded symbols.
19925: exclude_expsyms=$lt_exclude_expsyms
19926:
19927: # Symbols that must always be exported.
19928: include_expsyms=$lt_include_expsyms
19929:
19930: # Commands necessary for linking programs (against libraries) with templates.
19931: prelink_cmds=$lt_prelink_cmds
19932:
19933: # Commands necessary for finishing linking programs.
19934: postlink_cmds=$lt_postlink_cmds
19935:
19936: # Specify filename containing input files.
19937: file_list_spec=$lt_file_list_spec
19938:
19939: # How to hardcode a shared library path into an executable.
19940: hardcode_action=$hardcode_action
19941:
19942: # The directories searched by this compiler when creating a shared library.
19943: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19944:
19945: # Dependencies to place before and after the objects being linked to
19946: # create a shared library.
19947: predep_objects=$lt_predep_objects
19948: postdep_objects=$lt_postdep_objects
19949: predeps=$lt_predeps
19950: postdeps=$lt_postdeps
19951:
19952: # The library search path used internally by the compiler when linking
19953: # a shared library.
19954: compiler_lib_search_path=$lt_compiler_lib_search_path
19955:
19956: # ### END LIBTOOL CONFIG
19957:
19958: _LT_EOF
19959:
19960: case $host_os in
19961: aix3*)
19962: cat <<\_LT_EOF >> "$cfgfile"
19963: # AIX sometimes has problems with the GCC collect2 program. For some
19964: # reason, if we set the COLLECT_NAMES environment variable, the problems
19965: # vanish in a puff of smoke.
19966: if test "X${COLLECT_NAMES+set}" != Xset; then
19967: COLLECT_NAMES=
19968: export COLLECT_NAMES
19969: fi
19970: _LT_EOF
19971: ;;
19972: esac
19973:
19974:
19975: ltmain="$ac_aux_dir/ltmain.sh"
19976:
19977:
19978: # We use sed instead of cat because bash on DJGPP gets confused if
19979: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19980: # text mode, it properly converts lines to CR/LF. This bash problem
19981: # is reportedly fixed, but why not run on old versions too?
19982: sed '$q' "$ltmain" >> "$cfgfile" \
19983: || (rm -f "$cfgfile"; exit 1)
19984:
19985: if test x"$xsi_shell" = xyes; then
19986: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19987: func_dirname ()\
19988: {\
19989: \ case ${1} in\
19990: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19991: \ * ) func_dirname_result="${3}" ;;\
19992: \ esac\
19993: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19994: && mv -f "$cfgfile.tmp" "$cfgfile" \
19995: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19996: test 0 -eq $? || _lt_function_replace_fail=:
19997:
19998:
19999: sed -e '/^func_basename ()$/,/^} # func_basename /c\
20000: func_basename ()\
20001: {\
20002: \ func_basename_result="${1##*/}"\
20003: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20004: && mv -f "$cfgfile.tmp" "$cfgfile" \
20005: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20006: test 0 -eq $? || _lt_function_replace_fail=:
20007:
20008:
20009: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20010: func_dirname_and_basename ()\
20011: {\
20012: \ case ${1} in\
20013: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20014: \ * ) func_dirname_result="${3}" ;;\
20015: \ esac\
20016: \ func_basename_result="${1##*/}"\
20017: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20018: && mv -f "$cfgfile.tmp" "$cfgfile" \
20019: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20020: test 0 -eq $? || _lt_function_replace_fail=:
20021:
20022:
20023: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20024: func_stripname ()\
20025: {\
20026: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20027: \ # positional parameters, so assign one to ordinary parameter first.\
20028: \ func_stripname_result=${3}\
20029: \ func_stripname_result=${func_stripname_result#"${1}"}\
20030: \ func_stripname_result=${func_stripname_result%"${2}"}\
20031: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20032: && mv -f "$cfgfile.tmp" "$cfgfile" \
20033: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20034: test 0 -eq $? || _lt_function_replace_fail=:
20035:
20036:
20037: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20038: func_split_long_opt ()\
20039: {\
20040: \ func_split_long_opt_name=${1%%=*}\
20041: \ func_split_long_opt_arg=${1#*=}\
20042: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20043: && mv -f "$cfgfile.tmp" "$cfgfile" \
20044: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20045: test 0 -eq $? || _lt_function_replace_fail=:
20046:
20047:
20048: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20049: func_split_short_opt ()\
20050: {\
20051: \ func_split_short_opt_arg=${1#??}\
20052: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20053: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20054: && mv -f "$cfgfile.tmp" "$cfgfile" \
20055: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20056: test 0 -eq $? || _lt_function_replace_fail=:
20057:
20058:
20059: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20060: func_lo2o ()\
20061: {\
20062: \ case ${1} in\
20063: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20064: \ *) func_lo2o_result=${1} ;;\
20065: \ esac\
20066: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20067: && mv -f "$cfgfile.tmp" "$cfgfile" \
20068: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20069: test 0 -eq $? || _lt_function_replace_fail=:
20070:
20071:
20072: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20073: func_xform ()\
20074: {\
20075: func_xform_result=${1%.*}.lo\
20076: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20077: && mv -f "$cfgfile.tmp" "$cfgfile" \
20078: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20079: test 0 -eq $? || _lt_function_replace_fail=:
20080:
20081:
20082: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20083: func_arith ()\
20084: {\
20085: func_arith_result=$(( $* ))\
20086: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20087: && mv -f "$cfgfile.tmp" "$cfgfile" \
20088: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20089: test 0 -eq $? || _lt_function_replace_fail=:
20090:
20091:
20092: sed -e '/^func_len ()$/,/^} # func_len /c\
20093: func_len ()\
20094: {\
20095: func_len_result=${#1}\
20096: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20097: && mv -f "$cfgfile.tmp" "$cfgfile" \
20098: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20099: test 0 -eq $? || _lt_function_replace_fail=:
20100:
20101: fi
20102:
20103: if test x"$lt_shell_append" = xyes; then
20104: sed -e '/^func_append ()$/,/^} # func_append /c\
20105: func_append ()\
20106: {\
20107: eval "${1}+=\\${2}"\
20108: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20109: && mv -f "$cfgfile.tmp" "$cfgfile" \
20110: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20111: test 0 -eq $? || _lt_function_replace_fail=:
20112:
20113:
20114: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20115: func_append_quoted ()\
20116: {\
20117: \ func_quote_for_eval "${2}"\
20118: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20119: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20120: && mv -f "$cfgfile.tmp" "$cfgfile" \
20121: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20122: test 0 -eq $? || _lt_function_replace_fail=:
20123:
20124:
20125: # Save a `func_append' function call where possible by direct use of '+='
20126: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20127: && mv -f "$cfgfile.tmp" "$cfgfile" \
20128: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20129: test 0 -eq $? || _lt_function_replace_fail=:
20130: else
20131: # Save a `func_append' function call even when '+=' is not available
20132: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20133: && mv -f "$cfgfile.tmp" "$cfgfile" \
20134: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20135: test 0 -eq $? || _lt_function_replace_fail=:
20136: fi
20137:
20138: if test x"$_lt_function_replace_fail" = x":"; then
1.11 ! moko 20139: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
! 20140: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 20141: fi
20142:
20143:
20144: mv -f "$cfgfile" "$ofile" ||
20145: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20146: chmod +x "$ofile"
20147:
20148:
20149: cat <<_LT_EOF >> "$ofile"
20150:
20151: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20152:
20153: # The linker used to build libraries.
20154: LD=$lt_LD_CXX
20155:
20156: # How to create reloadable object files.
20157: reload_flag=$lt_reload_flag_CXX
20158: reload_cmds=$lt_reload_cmds_CXX
20159:
20160: # Commands used to build an old-style archive.
20161: old_archive_cmds=$lt_old_archive_cmds_CXX
20162:
20163: # A language specific compiler.
20164: CC=$lt_compiler_CXX
20165:
20166: # Is the compiler the GNU compiler?
20167: with_gcc=$GCC_CXX
20168:
20169: # Compiler flag to turn off builtin functions.
20170: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20171:
20172: # Additional compiler flags for building library objects.
20173: pic_flag=$lt_lt_prog_compiler_pic_CXX
20174:
20175: # How to pass a linker flag through the compiler.
20176: wl=$lt_lt_prog_compiler_wl_CXX
20177:
20178: # Compiler flag to prevent dynamic linking.
20179: link_static_flag=$lt_lt_prog_compiler_static_CXX
20180:
20181: # Does compiler simultaneously support -c and -o options?
20182: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20183:
20184: # Whether or not to add -lc for building shared libraries.
20185: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20186:
20187: # Whether or not to disallow shared libs when runtime libs are static.
20188: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20189:
20190: # Compiler flag to allow reflexive dlopens.
20191: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20192:
20193: # Compiler flag to generate shared objects directly from archives.
20194: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20195:
20196: # Whether the compiler copes with passing no objects directly.
20197: compiler_needs_object=$lt_compiler_needs_object_CXX
20198:
20199: # Create an old-style archive from a shared archive.
20200: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20201:
20202: # Create a temporary old-style archive to link instead of a shared archive.
20203: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20204:
20205: # Commands used to build a shared archive.
20206: archive_cmds=$lt_archive_cmds_CXX
20207: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20208:
20209: # Commands used to build a loadable module if different from building
20210: # a shared archive.
20211: module_cmds=$lt_module_cmds_CXX
20212: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20213:
20214: # Whether we are building with GNU ld or not.
20215: with_gnu_ld=$lt_with_gnu_ld_CXX
20216:
20217: # Flag that allows shared libraries with undefined symbols to be built.
20218: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20219:
20220: # Flag that enforces no undefined symbols.
20221: no_undefined_flag=$lt_no_undefined_flag_CXX
20222:
20223: # Flag to hardcode \$libdir into a binary during linking.
20224: # This must work even if \$libdir does not exist
20225: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20226:
20227: # Whether we need a single "-rpath" flag with a separated argument.
20228: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20229:
20230: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20231: # DIR into the resulting binary.
20232: hardcode_direct=$hardcode_direct_CXX
20233:
20234: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20235: # DIR into the resulting binary and the resulting library dependency is
20236: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20237: # library is relocated.
20238: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20239:
20240: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20241: # into the resulting binary.
20242: hardcode_minus_L=$hardcode_minus_L_CXX
20243:
20244: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20245: # into the resulting binary.
20246: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20247:
20248: # Set to "yes" if building a shared library automatically hardcodes DIR
20249: # into the library and all subsequent libraries and executables linked
20250: # against it.
20251: hardcode_automatic=$hardcode_automatic_CXX
20252:
20253: # Set to yes if linker adds runtime paths of dependent libraries
20254: # to runtime path list.
20255: inherit_rpath=$inherit_rpath_CXX
20256:
20257: # Whether libtool must link a program against all its dependency libraries.
20258: link_all_deplibs=$link_all_deplibs_CXX
20259:
20260: # Set to "yes" if exported symbols are required.
20261: always_export_symbols=$always_export_symbols_CXX
20262:
20263: # The commands to list exported symbols.
20264: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20265:
20266: # Symbols that should not be listed in the preloaded symbols.
20267: exclude_expsyms=$lt_exclude_expsyms_CXX
20268:
20269: # Symbols that must always be exported.
20270: include_expsyms=$lt_include_expsyms_CXX
20271:
20272: # Commands necessary for linking programs (against libraries) with templates.
20273: prelink_cmds=$lt_prelink_cmds_CXX
20274:
20275: # Commands necessary for finishing linking programs.
20276: postlink_cmds=$lt_postlink_cmds_CXX
20277:
20278: # Specify filename containing input files.
20279: file_list_spec=$lt_file_list_spec_CXX
20280:
20281: # How to hardcode a shared library path into an executable.
20282: hardcode_action=$hardcode_action_CXX
20283:
20284: # The directories searched by this compiler when creating a shared library.
20285: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20286:
20287: # Dependencies to place before and after the objects being linked to
20288: # create a shared library.
20289: predep_objects=$lt_predep_objects_CXX
20290: postdep_objects=$lt_postdep_objects_CXX
20291: predeps=$lt_predeps_CXX
20292: postdeps=$lt_postdeps_CXX
20293:
20294: # The library search path used internally by the compiler when linking
20295: # a shared library.
20296: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20297:
20298: # ### END LIBTOOL TAG CONFIG: CXX
20299: _LT_EOF
1.1 misha 20300:
20301: ;;
20302: esac
1.11 ! moko 20303: done
! 20304: _ACEOF
1.1 misha 20305:
1.11 ! moko 20306: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misha 20307:
1.11 ! moko 20308: { (exit 0); exit 0; }
1.1 misha 20309: _ACEOF
1.11 ! moko 20310: chmod +x $CONFIG_STATUS
1.1 misha 20311: ac_clean_files=$ac_clean_files_save
20312:
20313:
20314: # configure is writing to config.log, and then calls config.status.
20315: # config.status does its own redirection, appending to config.log.
20316: # Unfortunately, on DOS this fails, as config.log is still kept open
20317: # by configure, so config.status won't be able to write to it; its
20318: # output is simply discarded. So we exec the FD to /dev/null,
20319: # effectively closing config.log, so it can be properly (re)opened and
20320: # appended to by config.status. When coming back to configure, we
20321: # need to make the FD available again.
20322: if test "$no_create" != yes; then
20323: ac_cs_success=:
20324: ac_config_status_args=
20325: test "$silent" = yes &&
20326: ac_config_status_args="$ac_config_status_args --quiet"
20327: exec 5>/dev/null
20328: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20329: exec 5>>config.log
20330: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20331: # would make configure fail if this is the last instruction.
1.11 ! moko 20332: $ac_cs_success || { (exit 1); exit 1; }
1.1 misha 20333: fi
20334:
20335: #
20336: # CONFIG_SUBDIRS section.
20337: #
20338: if test "$no_recursion" != yes; then
20339:
1.11 ! moko 20340: # Remove --cache-file and --srcdir arguments so they do not pile up.
1.1 misha 20341: ac_sub_configure_args=
20342: ac_prev=
1.11 ! moko 20343: for ac_arg in $ac_configure_args; do
1.1 misha 20344: if test -n "$ac_prev"; then
20345: ac_prev=
20346: continue
20347: fi
20348: case $ac_arg in
20349: -cache-file | --cache-file | --cache-fil | --cache-fi \
20350: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20351: ac_prev=cache_file ;;
20352: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20353: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20354: | --c=*)
20355: ;;
20356: --config-cache | -C)
20357: ;;
20358: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20359: ac_prev=srcdir ;;
20360: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20361: ;;
20362: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20363: ac_prev=prefix ;;
20364: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20365: ;;
1.11 ! moko 20366: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1.1 misha 20367: esac
20368: done
20369:
20370: # Always prepend --prefix to ensure using the same prefix
20371: # in subdir configurations.
1.11 ! moko 20372: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
1.1 misha 20373:
20374: ac_popdir=`pwd`
20375: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20376:
20377: # Do not complain, so a configure script can configure whichever
20378: # parts of a large source tree are present.
1.11 ! moko 20379: test -d $srcdir/$ac_dir || continue
! 20380:
! 20381: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
! 20382: echo "$as_me: configuring in $ac_dir" >&6;}
! 20383: { if $as_mkdir_p; then
! 20384: mkdir -p "$ac_dir"
! 20385: else
! 20386: as_dir="$ac_dir"
! 20387: as_dirs=
! 20388: while test ! -d "$as_dir"; do
! 20389: as_dirs="$as_dir $as_dirs"
! 20390: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 20391: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 20392: X"$as_dir" : 'X\(//\)[^/]' \| \
! 20393: X"$as_dir" : 'X\(//\)$' \| \
! 20394: X"$as_dir" : 'X\(/\)' \| \
! 20395: . : '\(.\)' 2>/dev/null ||
! 20396: echo X"$as_dir" |
! 20397: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 20398: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 20399: /^X\(\/\/\)$/{ s//\1/; q; }
! 20400: /^X\(\/\).*/{ s//\1/; q; }
! 20401: s/.*/./; q'`
! 20402: done
! 20403: test ! -n "$as_dirs" || mkdir $as_dirs
! 20404: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 20405: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 20406: { (exit 1); exit 1; }; }; }
1.1 misha 20407:
20408: ac_builddir=.
20409:
1.11 ! moko 20410: if test "$ac_dir" != .; then
! 20411: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 20412: # A "../" for each directory in $ac_dir_suffix.
! 20413: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 20414: else
! 20415: ac_dir_suffix= ac_top_builddir=
! 20416: fi
1.1 misha 20417:
20418: case $srcdir in
1.11 ! moko 20419: .) # No --srcdir option. We are building in place.
1.1 misha 20420: ac_srcdir=.
1.11 ! moko 20421: if test -z "$ac_top_builddir"; then
! 20422: ac_top_srcdir=.
! 20423: else
! 20424: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 20425: fi ;;
! 20426: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 20427: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 ! moko 20428: ac_top_srcdir=$srcdir ;;
! 20429: *) # Relative path.
! 20430: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 20431: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 20432: esac
! 20433:
! 20434: # Do not use `cd foo && pwd` to compute absolute paths, because
! 20435: # the directories may not exist.
! 20436: case `pwd` in
! 20437: .) ac_abs_builddir="$ac_dir";;
! 20438: *)
! 20439: case "$ac_dir" in
! 20440: .) ac_abs_builddir=`pwd`;;
! 20441: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
! 20442: *) ac_abs_builddir=`pwd`/"$ac_dir";;
! 20443: esac;;
! 20444: esac
! 20445: case $ac_abs_builddir in
! 20446: .) ac_abs_top_builddir=${ac_top_builddir}.;;
! 20447: *)
! 20448: case ${ac_top_builddir}. in
! 20449: .) ac_abs_top_builddir=$ac_abs_builddir;;
! 20450: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
! 20451: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
! 20452: esac;;
! 20453: esac
! 20454: case $ac_abs_builddir in
! 20455: .) ac_abs_srcdir=$ac_srcdir;;
! 20456: *)
! 20457: case $ac_srcdir in
! 20458: .) ac_abs_srcdir=$ac_abs_builddir;;
! 20459: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
! 20460: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
! 20461: esac;;
! 20462: esac
! 20463: case $ac_abs_builddir in
! 20464: .) ac_abs_top_srcdir=$ac_top_srcdir;;
! 20465: *)
! 20466: case $ac_top_srcdir in
! 20467: .) ac_abs_top_srcdir=$ac_abs_builddir;;
! 20468: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
! 20469: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
! 20470: esac;;
1.1 misha 20471: esac
20472:
20473:
1.11 ! moko 20474: cd $ac_dir
1.1 misha 20475:
20476: # Check for guested configure; otherwise get Cygnus style configure.
1.11 ! moko 20477: if test -f $ac_srcdir/configure.gnu; then
! 20478: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
! 20479: elif test -f $ac_srcdir/configure; then
! 20480: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
! 20481: elif test -f $ac_srcdir/configure.in; then
! 20482: ac_sub_configure=$ac_configure
1.1 misha 20483: else
1.11 ! moko 20484: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
! 20485: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 20486: ac_sub_configure=
20487: fi
20488:
20489: # The recursion is here.
20490: if test -n "$ac_sub_configure"; then
20491: # Make the cache file name correct relative to the subdirectory.
20492: case $cache_file in
20493: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.11 ! moko 20494: *) # Relative path.
! 20495: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 misha 20496: esac
20497:
1.11 ! moko 20498: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
! 20499: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 misha 20500: # The eval makes quoting arguments work.
1.11 ! moko 20501: eval $ac_sub_configure $ac_sub_configure_args \
! 20502: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
! 20503: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
! 20504: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
! 20505: { (exit 1); exit 1; }; }
1.1 misha 20506: fi
20507:
1.11 ! moko 20508: cd $ac_popdir
1.1 misha 20509: done
20510: fi
20511:
E-mail: