Annotation of sql/sqlite/configure, revision 1.15
1.1 misha 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.13 moko 3: # Generated by GNU Autoconf 2.59 for parser3sqlite.C 10.2.
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.13 moko 243: lt_ltdl_dir='libltdl'
244:
1.1 misha 245: SHELL=${CONFIG_SHELL-/bin/sh}
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.
1.13 moko 274: PACKAGE_NAME='parser3sqlite.C'
275: PACKAGE_TARNAME='parser3sqlite-c'
276: PACKAGE_VERSION='10.2'
277: PACKAGE_STRING='parser3sqlite.C 10.2'
278: PACKAGE_BUGREPORT=''
1.1 misha 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"
1.13 moko 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 AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP 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 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 LT_DLLOADERS LIBADD_DLOPEN LIBADD_SHL_LOAD LIBADD_DLD_LINK LT_DLPREOPEN LIBADD_DL 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
1.13 moko 800: \`configure' configures parser3sqlite.C 10.2 to adapt to many kinds of systems.
1.1 misha 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
1.13 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3sqlite.C 10.2:";;
867: esac
1.1 misha 868: cat <<\_ACEOF
869:
870: Optional Features:
871: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
872: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.11 moko 875: --enable-shared[=PKGS]
876: build shared libraries [default=yes]
877: --enable-static[=PKGS]
878: build static libraries [default=yes]
1.8 moko 879: --enable-fast-install[=PKGS]
880: optimize for fast installation [default=yes]
1.1 misha 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.8 moko 882: --enable-ltdl-install install libltdl
1.1 misha 883:
884: Optional Packages:
885: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887: --with-sqlite-inc=DIR DIR is the SQLite includes directory
1.6 misha 888: --with-dynamic-stdcpp link libstdc++ dynamically
889: by default, libstdc++ is linked statically
1.11 moko 890: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.8 moko 891: both]
892: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
893: --with-sysroot=DIR Search for dependent libraries within DIR
894: (or the compiler's sysroot if not specified).
895: --with-included-ltdl use the GNU ltdl sources included here
896: --with-ltdl-include=DIR use the ltdl headers installed in DIR
897: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.1 misha 898:
899: Some influential environment variables:
900: CXX C++ compiler command
901: CXXFLAGS C++ compiler flags
902: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903: nonstandard directory <lib dir>
1.11 moko 904: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905: headers in a nonstandard directory <include dir>
1.1 misha 906: CC C compiler command
907: CFLAGS C compiler flags
908: CPP C preprocessor
1.8 moko 909: CXXCPP C++ preprocessor
1.1 misha 910:
911: Use these variables to override the choices made by `configure' or to help
912: it to find libraries and programs with nonstandard names/locations.
913:
914: _ACEOF
915: fi
916:
917: if test "$ac_init_help" = "recursive"; then
918: # If there are subdirs, report their specific --help.
1.11 moko 919: ac_popdir=`pwd`
1.1 misha 920: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.11 moko 921: test -d $ac_dir || continue
1.1 misha 922: ac_builddir=.
923:
1.11 moko 924: if test "$ac_dir" != .; then
925: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926: # A "../" for each directory in $ac_dir_suffix.
927: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928: else
929: ac_dir_suffix= ac_top_builddir=
930: fi
1.1 misha 931:
932: case $srcdir in
1.11 moko 933: .) # No --srcdir option. We are building in place.
1.1 misha 934: ac_srcdir=.
1.11 moko 935: if test -z "$ac_top_builddir"; then
936: ac_top_srcdir=.
937: else
938: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939: fi ;;
940: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 941: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 942: ac_top_srcdir=$srcdir ;;
943: *) # Relative path.
944: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945: ac_top_srcdir=$ac_top_builddir$srcdir ;;
946: esac
947:
948: # Do not use `cd foo && pwd` to compute absolute paths, because
949: # the directories may not exist.
950: case `pwd` in
951: .) ac_abs_builddir="$ac_dir";;
952: *)
953: case "$ac_dir" in
954: .) ac_abs_builddir=`pwd`;;
955: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956: *) ac_abs_builddir=`pwd`/"$ac_dir";;
957: esac;;
958: esac
959: case $ac_abs_builddir in
960: .) ac_abs_top_builddir=${ac_top_builddir}.;;
961: *)
962: case ${ac_top_builddir}. in
963: .) ac_abs_top_builddir=$ac_abs_builddir;;
964: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966: esac;;
967: esac
968: case $ac_abs_builddir in
969: .) ac_abs_srcdir=$ac_srcdir;;
970: *)
971: case $ac_srcdir in
972: .) ac_abs_srcdir=$ac_abs_builddir;;
973: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975: esac;;
976: esac
977: case $ac_abs_builddir in
978: .) ac_abs_top_srcdir=$ac_top_srcdir;;
979: *)
980: case $ac_top_srcdir in
981: .) ac_abs_top_srcdir=$ac_abs_builddir;;
982: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984: esac;;
1.1 misha 985: esac
986:
1.11 moko 987: cd $ac_dir
988: # Check for guested configure; otherwise get Cygnus style configure.
989: if test -f $ac_srcdir/configure.gnu; then
990: echo
991: $SHELL $ac_srcdir/configure.gnu --help=recursive
992: elif test -f $ac_srcdir/configure; then
993: echo
994: $SHELL $ac_srcdir/configure --help=recursive
995: elif test -f $ac_srcdir/configure.ac ||
996: test -f $ac_srcdir/configure.in; then
997: echo
998: $ac_configure --help
1.1 misha 999: else
1.11 moko 1000: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001: fi
1002: cd $ac_popdir
1.1 misha 1003: done
1004: fi
1005:
1.11 moko 1006: test -n "$ac_init_help" && exit 0
1.1 misha 1007: if $ac_init_version; then
1008: cat <<\_ACEOF
1.13 moko 1009: parser3sqlite.C configure 10.2
1010: generated by GNU Autoconf 2.59
1.1 misha 1011:
1.11 moko 1012: Copyright (C) 2003 Free Software Foundation, Inc.
1.1 misha 1013: This configure script is free software; the Free Software Foundation
1014: gives unlimited permission to copy, distribute and modify it.
1015: _ACEOF
1.11 moko 1016: exit 0
1.1 misha 1017: fi
1.11 moko 1018: exec 5>config.log
1019: cat >&5 <<_ACEOF
1020: This file contains any messages produced by compilers while
1021: running configure, to aid debugging if configure makes a mistake.
1.1 misha 1022:
1.13 moko 1023: It was created by parser3sqlite.C $as_me 10.2, which was
1.11 moko 1024: generated by GNU Autoconf 2.59. Invocation command line was
1.10 moko 1025:
1.11 moko 1026: $ $0 $@
1.1 misha 1027:
1.11 moko 1028: _ACEOF
1.1 misha 1029: {
1.11 moko 1030: cat <<_ASUNAME
1031: ## --------- ##
1032: ## Platform. ##
1033: ## --------- ##
1.10 moko 1034:
1.11 moko 1035: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 misha 1040:
1.11 moko 1041: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1.1 misha 1042: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043:
1044: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.11 moko 1047: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1.1 misha 1048: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051:
1052: _ASUNAME
1053:
1054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055: for as_dir in $PATH
1056: do
1057: IFS=$as_save_IFS
1058: test -z "$as_dir" && as_dir=.
1.11 moko 1059: echo "PATH: $as_dir"
1060: done
1.1 misha 1061:
1062: } >&5
1063:
1064: cat >&5 <<_ACEOF
1065:
1066:
1067: ## ----------- ##
1068: ## Core tests. ##
1069: ## ----------- ##
1070:
1071: _ACEOF
1072:
1073:
1074: # Keep a trace of the command line.
1075: # Strip out --no-create and --no-recursion so they do not pile up.
1076: # Strip out --silent because we don't want to record it for future runs.
1077: # Also quote any args containing shell meta-characters.
1078: # Make two passes to allow for proper duplicate-argument suppression.
1079: ac_configure_args=
1080: ac_configure_args0=
1081: ac_configure_args1=
1.11 moko 1082: ac_sep=
1.1 misha 1083: ac_must_keep_next=false
1084: for ac_pass in 1 2
1085: do
1086: for ac_arg
1087: do
1088: case $ac_arg in
1089: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091: | -silent | --silent | --silen | --sile | --sil)
1092: continue ;;
1.11 moko 1093: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1095: esac
1096: case $ac_pass in
1.11 moko 1097: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1.1 misha 1098: 2)
1.11 moko 1099: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1.1 misha 1100: if test $ac_must_keep_next = true; then
1101: ac_must_keep_next=false # Got value, back to normal.
1102: else
1103: case $ac_arg in
1104: *=* | --config-cache | -C | -disable-* | --disable-* \
1105: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107: | -with-* | --with-* | -without-* | --without-* | --x)
1108: case "$ac_configure_args0 " in
1109: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110: esac
1111: ;;
1112: -* ) ac_must_keep_next=true ;;
1113: esac
1114: fi
1.11 moko 1115: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116: # Get rid of the leading space.
1117: ac_sep=" "
1.1 misha 1118: ;;
1119: esac
1120: done
1121: done
1.11 moko 1122: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 misha 1124:
1125: # When interrupted or exit'd, cleanup temporary files, and complete
1126: # config.log. We remove comments because anyway the quotes in there
1127: # would cause problems or look ugly.
1.11 moko 1128: # WARNING: Be sure not to use single quotes in there, as some shells,
1129: # such as our DU 5.0 friend, will then `close' the trap.
1.1 misha 1130: trap 'exit_status=$?
1131: # Save into config.log some information that might help in debugging.
1132: {
1133: echo
1134:
1.11 moko 1135: cat <<\_ASBOX
1136: ## ---------------- ##
1.1 misha 1137: ## Cache variables. ##
1.11 moko 1138: ## ---------------- ##
1139: _ASBOX
1.1 misha 1140: echo
1141: # The following way of writing the cache mishandles newlines in values,
1.11 moko 1142: {
1.1 misha 1143: (set) 2>&1 |
1.11 moko 1144: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145: *ac_space=\ *)
1.1 misha 1146: sed -n \
1.11 moko 1147: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149: ;;
1.1 misha 1150: *)
1.11 moko 1151: sed -n \
1152: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.1 misha 1153: ;;
1.11 moko 1154: esac;
1155: }
1.1 misha 1156: echo
1157:
1.11 moko 1158: cat <<\_ASBOX
1159: ## ----------------- ##
1.1 misha 1160: ## Output variables. ##
1.11 moko 1161: ## ----------------- ##
1162: _ASBOX
1.1 misha 1163: echo
1164: for ac_var in $ac_subst_vars
1165: do
1.11 moko 1166: eval ac_val=$`echo $ac_var`
1167: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1168: done | sort
1169: echo
1170:
1171: if test -n "$ac_subst_files"; then
1.11 moko 1172: cat <<\_ASBOX
1173: ## ------------- ##
1174: ## Output files. ##
1175: ## ------------- ##
1176: _ASBOX
1.1 misha 1177: echo
1178: for ac_var in $ac_subst_files
1179: do
1.11 moko 1180: eval ac_val=$`echo $ac_var`
1181: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1182: done | sort
1183: echo
1184: fi
1185:
1186: if test -s confdefs.h; then
1.11 moko 1187: cat <<\_ASBOX
1188: ## ----------- ##
1.1 misha 1189: ## confdefs.h. ##
1.11 moko 1190: ## ----------- ##
1191: _ASBOX
1.1 misha 1192: echo
1.11 moko 1193: sed "/^$/d" confdefs.h | sort
1.1 misha 1194: echo
1195: fi
1196: test "$ac_signal" != 0 &&
1.11 moko 1197: echo "$as_me: caught signal $ac_signal"
1198: echo "$as_me: exit $exit_status"
1.1 misha 1199: } >&5
1.11 moko 1200: rm -f core *.core &&
1201: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.1 misha 1202: exit $exit_status
1.11 moko 1203: ' 0
1.1 misha 1204: for ac_signal in 1 2 13 15; do
1.11 moko 1205: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1.1 misha 1206: done
1207: ac_signal=0
1208:
1209: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.11 moko 1210: rm -rf conftest* confdefs.h
1211: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212: echo >confdefs.h
1.1 misha 1213:
1214: # Predefined preprocessor variables.
1215:
1216: cat >>confdefs.h <<_ACEOF
1217: #define PACKAGE_NAME "$PACKAGE_NAME"
1218: _ACEOF
1219:
1.11 moko 1220:
1.1 misha 1221: cat >>confdefs.h <<_ACEOF
1222: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223: _ACEOF
1224:
1.11 moko 1225:
1.1 misha 1226: cat >>confdefs.h <<_ACEOF
1227: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228: _ACEOF
1229:
1.11 moko 1230:
1.1 misha 1231: cat >>confdefs.h <<_ACEOF
1232: #define PACKAGE_STRING "$PACKAGE_STRING"
1233: _ACEOF
1234:
1.11 moko 1235:
1.10 moko 1236: cat >>confdefs.h <<_ACEOF
1237: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238: _ACEOF
1.1 misha 1239:
1240:
1241: # Let the site file select an alternate cache file if it wants to.
1.11 moko 1242: # Prefer explicitly selected file to automatically selected ones.
1243: if test -z "$CONFIG_SITE"; then
1244: if test "x$prefix" != xNONE; then
1245: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246: else
1247: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248: fi
1249: fi
1250: for ac_site_file in $CONFIG_SITE; do
1251: if test -r "$ac_site_file"; then
1252: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253: echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misha 1254: sed 's/^/| /' "$ac_site_file" >&5
1.11 moko 1255: . "$ac_site_file"
1.1 misha 1256: fi
1257: done
1258:
1259: if test -r "$cache_file"; then
1.11 moko 1260: # Some versions of bash will fail to source /dev/null (special
1261: # files actually), so we avoid doing that.
1262: if test -f "$cache_file"; then
1263: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264: echo "$as_me: loading cache $cache_file" >&6;}
1.1 misha 1265: case $cache_file in
1.11 moko 1266: [\\/]* | ?:[\\/]* ) . $cache_file;;
1267: *) . ./$cache_file;;
1.1 misha 1268: esac
1269: fi
1270: else
1.11 moko 1271: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272: echo "$as_me: creating cache $cache_file" >&6;}
1.1 misha 1273: >$cache_file
1274: fi
1275:
1276: # Check that the precious variables saved in the cache have kept the same
1277: # value.
1278: ac_cache_corrupted=false
1.11 moko 1279: for ac_var in `(set) 2>&1 |
1280: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.1 misha 1281: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282: eval ac_new_set=\$ac_env_${ac_var}_set
1.11 moko 1283: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284: eval ac_new_val="\$ac_env_${ac_var}_value"
1.1 misha 1285: case $ac_old_set,$ac_new_set in
1286: set,)
1.11 moko 1287: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misha 1289: ac_cache_corrupted=: ;;
1290: ,set)
1.11 moko 1291: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misha 1293: ac_cache_corrupted=: ;;
1294: ,);;
1295: *)
1296: if test "x$ac_old_val" != "x$ac_new_val"; then
1.11 moko 1297: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1298: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1299: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1300: echo "$as_me: former value: $ac_old_val" >&2;}
1301: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1302: echo "$as_me: current value: $ac_new_val" >&2;}
1303: ac_cache_corrupted=:
1.1 misha 1304: fi;;
1305: esac
1306: # Pass precious variables to config.status.
1307: if test "$ac_new_set" = set; then
1308: case $ac_new_val in
1.11 moko 1309: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1311: *) ac_arg=$ac_var=$ac_new_val ;;
1312: esac
1313: case " $ac_configure_args " in
1314: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.11 moko 1315: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.1 misha 1316: esac
1317: fi
1318: done
1319: if $ac_cache_corrupted; then
1.11 moko 1320: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324: { (exit 1); exit 1; }; }
1325: fi
1.1 misha 1326:
1327: ac_ext=c
1328: ac_cpp='$CPP $CPPFLAGS'
1329: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332:
1333:
1334:
1335:
1.11 moko 1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1351:
1352:
1.13 moko 1353:
1354:
1355:
1356:
1357:
1358:
1359:
1360: ac_config_headers="$ac_config_headers config_auto.h"
1361:
1362:
1.1 misha 1363: am__api_version="1.9"
1364: ac_aux_dir=
1.11 moko 1365: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366: if test -f $ac_dir/install-sh; then
1.1 misha 1367: ac_aux_dir=$ac_dir
1368: ac_install_sh="$ac_aux_dir/install-sh -c"
1369: break
1.11 moko 1370: elif test -f $ac_dir/install.sh; then
1.1 misha 1371: ac_aux_dir=$ac_dir
1372: ac_install_sh="$ac_aux_dir/install.sh -c"
1373: break
1.11 moko 1374: elif test -f $ac_dir/shtool; then
1.1 misha 1375: ac_aux_dir=$ac_dir
1376: ac_install_sh="$ac_aux_dir/shtool install -c"
1377: break
1378: fi
1379: done
1380: if test -z "$ac_aux_dir"; then
1.11 moko 1381: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383: { (exit 1); exit 1; }; }
1384: fi
1385: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 misha 1388:
1389: # Find a good install program. We prefer a C program (faster),
1390: # so one script is as good as another. But avoid the broken or
1391: # incompatible versions:
1392: # SysV /etc/install, /usr/sbin/install
1393: # SunOS /usr/etc/install
1394: # IRIX /sbin/install
1395: # AIX /bin/install
1396: # AmigaOS /C/install, which installs bootblocks on floppy discs
1397: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1400: # OS/2's system install, which has a completely different semantic
1401: # ./install, which can be erroneously created by make from ./install.sh.
1.11 moko 1402: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 misha 1404: if test -z "$INSTALL"; then
1.11 moko 1405: if test "${ac_cv_path_install+set}" = set; then
1406: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1407: else
1408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409: for as_dir in $PATH
1410: do
1411: IFS=$as_save_IFS
1412: test -z "$as_dir" && as_dir=.
1.11 moko 1413: # Account for people who put trailing slashes in PATH elements.
1414: case $as_dir/ in
1415: ./ | .// | /cC/* | \
1.1 misha 1416: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.11 moko 1417: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 misha 1418: /usr/ucb/* ) ;;
1419: *)
1420: # OSF1 and SCO ODT 3.0 have their own names for install.
1421: # Don't use installbsd from OSF since it installs stuff as root
1422: # by default.
1423: for ac_prog in ginstall scoinst install; do
1424: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 1425: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misha 1426: if test $ac_prog = install &&
1427: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428: # AIX install. It has an incompatible calling convention.
1429: :
1430: elif test $ac_prog = install &&
1431: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432: # program-specific install script used by HP pwplus--don't use.
1433: :
1434: else
1.11 moko 1435: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1436: break 3
1.1 misha 1437: fi
1438: fi
1439: done
1440: done
1441: ;;
1442: esac
1.11 moko 1443: done
1.1 misha 1444:
1445:
1446: fi
1447: if test "${ac_cv_path_install+set}" = set; then
1448: INSTALL=$ac_cv_path_install
1449: else
1.11 moko 1450: # As a last resort, use the slow shell script. We don't cache a
1451: # path for INSTALL within a source directory, because that will
1.1 misha 1452: # break other packages using the cache if that directory is
1.11 moko 1453: # removed, or if the path is relative.
1.1 misha 1454: INSTALL=$ac_install_sh
1455: fi
1456: fi
1.11 moko 1457: echo "$as_me:$LINENO: result: $INSTALL" >&5
1458: echo "${ECHO_T}$INSTALL" >&6
1.1 misha 1459:
1460: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461: # It thinks the first close brace ends the variable substitution.
1462: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1463:
1464: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1465:
1466: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467:
1.11 moko 1468: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 misha 1470: # Just in case
1471: sleep 1
1472: echo timestamp > conftest.file
1473: # Do `set' in a subshell so we don't clobber the current shell's
1474: # arguments. Must try -L first in case configure is actually a
1475: # symlink; some systems play weird games with the mod time of symlinks
1476: # (eg FreeBSD returns the mod time of the symlink's containing
1477: # directory).
1478: if (
1479: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1480: if test "$*" = "X"; then
1481: # -L didn't work.
1482: set X `ls -t $srcdir/configure conftest.file`
1483: fi
1484: rm -f conftest.file
1485: if test "$*" != "X $srcdir/configure conftest.file" \
1486: && test "$*" != "X conftest.file $srcdir/configure"; then
1487:
1488: # If neither matched, then we have a broken ls. This can happen
1489: # if, for instance, CONFIG_SHELL is bash and it inherits a
1490: # broken ls alias from the environment. This has actually
1491: # happened. Such a system could not be considered "sane".
1.11 moko 1492: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1493: alias in your environment" >&5
1494: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1495: alias in your environment" >&2;}
1496: { (exit 1); exit 1; }; }
1.1 misha 1497: fi
1498:
1499: test "$2" = conftest.file
1500: )
1501: then
1502: # Ok.
1503: :
1504: else
1.11 moko 1505: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506: Check your system clock" >&5
1507: echo "$as_me: error: newly created file is older than distributed files!
1508: Check your system clock" >&2;}
1509: { (exit 1); exit 1; }; }
1.1 misha 1510: fi
1.11 moko 1511: echo "$as_me:$LINENO: result: yes" >&5
1512: echo "${ECHO_T}yes" >&6
1.1 misha 1513: test "$program_prefix" != NONE &&
1.11 moko 1514: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 misha 1515: # Use a double $ so make ignores it.
1516: test "$program_suffix" != NONE &&
1.11 moko 1517: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518: # Double any \ or $. echo might interpret backslashes.
1.1 misha 1519: # By default was `s,x,x', remove it if useless.
1.11 moko 1520: cat <<\_ACEOF >conftest.sed
1521: s/[\\$]/&&/g;s/;s,x,x,$//
1522: _ACEOF
1523: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1524: rm conftest.sed
1.1 misha 1525:
1526: # expand $ac_aux_dir to an absolute path
1527: am_aux_dir=`cd $ac_aux_dir && pwd`
1528:
1529: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1530: # Use eval to expand $SHELL
1531: if eval "$MISSING --run true"; then
1532: am_missing_run="$MISSING --run "
1533: else
1534: am_missing_run=
1.11 moko 1535: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1536: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1 misha 1537: fi
1538:
1539: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1540: # We used to keeping the `.' as first argument, in order to
1541: # allow $(mkdir_p) to be used without argument. As in
1542: # $(mkdir_p) $(somedir)
1543: # where $(somedir) is conditionally defined. However this is wrong
1544: # for two reasons:
1545: # 1. if the package is installed by a user who cannot write `.'
1546: # make install will fail,
1547: # 2. the above comment should most certainly read
1548: # $(mkdir_p) $(DESTDIR)$(somedir)
1549: # so it does not work when $(somedir) is undefined and
1550: # $(DESTDIR) is not.
1551: # To support the latter case, we have to write
1552: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1553: # so the `.' trick is pointless.
1554: mkdir_p='mkdir -p --'
1555: else
1556: # On NextStep and OpenStep, the `mkdir' command does not
1557: # recognize any option. It will interpret all options as
1558: # directories to create, and then abort because `.' already
1559: # exists.
1560: for d in ./-p ./--version;
1561: do
1562: test -d $d && rmdir $d
1563: done
1564: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1565: if test -f "$ac_aux_dir/mkinstalldirs"; then
1566: mkdir_p='$(mkinstalldirs)'
1567: else
1568: mkdir_p='$(install_sh) -d'
1569: fi
1570: fi
1571:
1572: for ac_prog in gawk mawk nawk awk
1573: do
1574: # Extract the first word of "$ac_prog", so it can be a program name with args.
1575: set dummy $ac_prog; ac_word=$2
1.11 moko 1576: echo "$as_me:$LINENO: checking for $ac_word" >&5
1577: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578: if test "${ac_cv_prog_AWK+set}" = set; then
1579: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1580: else
1581: if test -n "$AWK"; then
1582: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1583: else
1584: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585: for as_dir in $PATH
1586: do
1587: IFS=$as_save_IFS
1588: test -z "$as_dir" && as_dir=.
1.11 moko 1589: for ac_exec_ext in '' $ac_executable_extensions; do
1590: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1591: ac_cv_prog_AWK="$ac_prog"
1.11 moko 1592: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1593: break 2
1594: fi
1595: done
1.11 moko 1596: done
1.1 misha 1597:
1598: fi
1599: fi
1600: AWK=$ac_cv_prog_AWK
1601: if test -n "$AWK"; then
1.11 moko 1602: echo "$as_me:$LINENO: result: $AWK" >&5
1603: echo "${ECHO_T}$AWK" >&6
1.1 misha 1604: else
1.11 moko 1605: echo "$as_me:$LINENO: result: no" >&5
1606: echo "${ECHO_T}no" >&6
1.1 misha 1607: fi
1608:
1609: test -n "$AWK" && break
1610: done
1611:
1.11 moko 1612: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1613: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1614: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1615: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1616: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1617: else
1618: cat >conftest.make <<\_ACEOF
1619: all:
1.11 moko 1620: @echo 'ac_maketemp="$(MAKE)"'
1.1 misha 1621: _ACEOF
1.11 moko 1622: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1623: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1624: if test -n "$ac_maketemp"; then
1625: eval ac_cv_prog_make_${ac_make}_set=yes
1626: else
1627: eval ac_cv_prog_make_${ac_make}_set=no
1628: fi
1.1 misha 1629: rm -f conftest.make
1630: fi
1.11 moko 1631: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1632: echo "$as_me:$LINENO: result: yes" >&5
1633: echo "${ECHO_T}yes" >&6
1.1 misha 1634: SET_MAKE=
1635: else
1.11 moko 1636: echo "$as_me:$LINENO: result: no" >&5
1637: echo "${ECHO_T}no" >&6
1.1 misha 1638: SET_MAKE="MAKE=${MAKE-make}"
1639: fi
1640:
1641: rm -rf .tst 2>/dev/null
1642: mkdir .tst 2>/dev/null
1643: if test -d .tst; then
1644: am__leading_dot=.
1645: else
1646: am__leading_dot=_
1647: fi
1648: rmdir .tst 2>/dev/null
1649:
1650: # test to see if srcdir already configured
1651: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1652: test -f $srcdir/config.status; then
1.11 moko 1653: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1654: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1655: { (exit 1); exit 1; }; }
1.1 misha 1656: fi
1657:
1658: # test whether we have cygpath
1659: if test -z "$CYGPATH_W"; then
1660: if (cygpath --version) >/dev/null 2>/dev/null; then
1661: CYGPATH_W='cygpath -w'
1662: else
1663: CYGPATH_W=echo
1664: fi
1665: fi
1666:
1667:
1668: # Define the identity of the package.
1.13 moko 1669: PACKAGE='parser3sqlite-c'
1670: VERSION='10.2'
1.1 misha 1671:
1672:
1.13 moko 1673: cat >>confdefs.h <<_ACEOF
1674: #define PACKAGE "$PACKAGE"
1675: _ACEOF
1676:
1677:
1678: cat >>confdefs.h <<_ACEOF
1679: #define VERSION "$VERSION"
1680: _ACEOF
1681:
1.1 misha 1682: # Some tools Automake needs.
1683:
1684: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1685:
1686:
1687: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1688:
1689:
1690: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1691:
1692:
1693: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1694:
1695:
1696: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1697:
1698: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1699:
1700: # Installed binaries are usually stripped using `strip' when the user
1701: # run `make install-strip'. However `strip' might not be the right
1702: # tool to use in cross-compilation environments, therefore Automake
1703: # will honor the `STRIP' environment variable to overrule this program.
1704: if test "$cross_compiling" != no; then
1705: if test -n "$ac_tool_prefix"; then
1706: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1707: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 1708: echo "$as_me:$LINENO: checking for $ac_word" >&5
1709: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710: if test "${ac_cv_prog_STRIP+set}" = set; then
1711: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1712: else
1713: if test -n "$STRIP"; then
1714: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1715: else
1716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717: for as_dir in $PATH
1718: do
1719: IFS=$as_save_IFS
1720: test -z "$as_dir" && as_dir=.
1.11 moko 1721: for ac_exec_ext in '' $ac_executable_extensions; do
1722: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1723: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 1724: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1725: break 2
1726: fi
1727: done
1.11 moko 1728: done
1729:
1.1 misha 1730: fi
1731: fi
1732: STRIP=$ac_cv_prog_STRIP
1733: if test -n "$STRIP"; then
1.11 moko 1734: echo "$as_me:$LINENO: result: $STRIP" >&5
1735: echo "${ECHO_T}$STRIP" >&6
1.1 misha 1736: else
1.11 moko 1737: echo "$as_me:$LINENO: result: no" >&5
1738: echo "${ECHO_T}no" >&6
1.1 misha 1739: fi
1740:
1741: fi
1742: if test -z "$ac_cv_prog_STRIP"; then
1743: ac_ct_STRIP=$STRIP
1744: # Extract the first word of "strip", so it can be a program name with args.
1745: set dummy strip; ac_word=$2
1.11 moko 1746: echo "$as_me:$LINENO: checking for $ac_word" >&5
1747: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1749: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1750: else
1751: if test -n "$ac_ct_STRIP"; then
1752: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1753: else
1754: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755: for as_dir in $PATH
1756: do
1757: IFS=$as_save_IFS
1758: test -z "$as_dir" && as_dir=.
1.11 moko 1759: for ac_exec_ext in '' $ac_executable_extensions; do
1760: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1761: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 1762: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1763: break 2
1764: fi
1765: done
1.11 moko 1766: done
1.1 misha 1767:
1.11 moko 1768: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 1769: fi
1770: fi
1771: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1772: if test -n "$ac_ct_STRIP"; then
1.11 moko 1773: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1774: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 misha 1775: else
1.11 moko 1776: echo "$as_me:$LINENO: result: no" >&5
1777: echo "${ECHO_T}no" >&6
1.1 misha 1778: fi
1779:
1.11 moko 1780: STRIP=$ac_ct_STRIP
1.1 misha 1781: else
1782: STRIP="$ac_cv_prog_STRIP"
1783: fi
1784:
1785: fi
1786: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1787:
1788: # We need awk for the "check" target. The system "awk" is bad on
1789: # some platforms.
1790: # Always define AMTAR for backward compatibility.
1791:
1792: AMTAR=${AMTAR-"${am_missing_run}tar"}
1793:
1794: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1795:
1796:
1797:
1798:
1799:
1800:
1801:
1802:
1803:
1.11 moko 1804: # Check whether --with-sqlite-inc or --without-sqlite-inc was given.
1805: if test "${with_sqlite_inc+set}" = set; then
1806: withval="$with_sqlite_inc"
1.1 misha 1807:
1808: if test -r "$withval/sqlite3.h"; then
1809: SQLITE_INC=$withval
1810: fi
1811:
1812:
1.4 misha 1813: if test -z "$SQLITE_INC"; then
1.11 moko 1814: { { echo "$as_me:$LINENO: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&5
1815: echo "$as_me: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&2;}
1816: { (exit 1); exit 1; }; }
1.4 misha 1817: fi
1.1 misha 1818:
1819: else
1.11 moko 1820: echo "$as_me:$LINENO: checking for SQLITE_INC directory" >&5
1821: echo $ECHO_N "checking for SQLITE_INC directory... $ECHO_C" >&6
1.1 misha 1822: for d in \
1.9 moko 1823: /usr/local/include \
1824: /usr/include \
1.1 misha 1825: /usr/local/include/sqlite \
1826: /usr/include/sqlite ; do
1827:
1828: if test -r "$d/sqlite3.h"; then
1829: SQLITE_INC=$d
1830: fi
1831:
1832: done
1833:
1.4 misha 1834: if test -z "$SQLITE_INC"; then
1.11 moko 1835: { { echo "$as_me:$LINENO: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&5
1836: echo "$as_me: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&2;}
1837: { (exit 1); exit 1; }; }
1.4 misha 1838: fi
1.1 misha 1839:
1.11 moko 1840: echo "$as_me:$LINENO: result: $SQLITE_INC" >&5
1841: echo "${ECHO_T}$SQLITE_INC" >&6
1.1 misha 1842:
1.11 moko 1843: fi;
1.1 misha 1844:
1845:
1846:
1847:
1.11 moko 1848: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
1849: if test "${with_dynamic_stdcpp+set}" = set; then
1850: withval="$with_dynamic_stdcpp"
1.6 misha 1851:
1852: LDFLAGS="-lstdc++"
1853:
1854: else
1855:
1856: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
1857:
1.11 moko 1858: fi;
1859:
1860:
1861:
1862: # Find a good install program. We prefer a C program (faster),
1863: # so one script is as good as another. But avoid the broken or
1864: # incompatible versions:
1865: # SysV /etc/install, /usr/sbin/install
1866: # SunOS /usr/etc/install
1867: # IRIX /sbin/install
1868: # AIX /bin/install
1869: # AmigaOS /C/install, which installs bootblocks on floppy discs
1870: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1871: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1872: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1873: # OS/2's system install, which has a completely different semantic
1874: # ./install, which can be erroneously created by make from ./install.sh.
1875: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1876: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1877: if test -z "$INSTALL"; then
1878: if test "${ac_cv_path_install+set}" = set; then
1879: echo $ECHO_N "(cached) $ECHO_C" >&6
1880: else
1881: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882: for as_dir in $PATH
1883: do
1884: IFS=$as_save_IFS
1885: test -z "$as_dir" && as_dir=.
1886: # Account for people who put trailing slashes in PATH elements.
1887: case $as_dir/ in
1888: ./ | .// | /cC/* | \
1889: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1890: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1891: /usr/ucb/* ) ;;
1892: *)
1893: # OSF1 and SCO ODT 3.0 have their own names for install.
1894: # Don't use installbsd from OSF since it installs stuff as root
1895: # by default.
1896: for ac_prog in ginstall scoinst install; do
1897: for ac_exec_ext in '' $ac_executable_extensions; do
1898: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1899: if test $ac_prog = install &&
1900: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1901: # AIX install. It has an incompatible calling convention.
1902: :
1903: elif test $ac_prog = install &&
1904: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1905: # program-specific install script used by HP pwplus--don't use.
1906: :
1907: else
1908: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1909: break 3
1910: fi
1911: fi
1912: done
1913: done
1914: ;;
1915: esac
1916: done
1917:
1918:
1919: fi
1920: if test "${ac_cv_path_install+set}" = set; then
1921: INSTALL=$ac_cv_path_install
1922: else
1923: # As a last resort, use the slow shell script. We don't cache a
1924: # path for INSTALL within a source directory, because that will
1925: # break other packages using the cache if that directory is
1926: # removed, or if the path is relative.
1927: INSTALL=$ac_install_sh
1928: fi
1.10 moko 1929: fi
1.11 moko 1930: echo "$as_me:$LINENO: result: $INSTALL" >&5
1931: echo "${ECHO_T}$INSTALL" >&6
1.6 misha 1932:
1.11 moko 1933: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1934: # It thinks the first close brace ends the variable substitution.
1935: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.6 misha 1936:
1.11 moko 1937: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.6 misha 1938:
1.11 moko 1939: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 misha 1940:
1.11 moko 1941: ac_ext=cc
1.1 misha 1942: ac_cpp='$CXXCPP $CPPFLAGS'
1943: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 1946: if test -n "$ac_tool_prefix"; then
1947: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1948: do
1949: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1950: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 1951: echo "$as_me:$LINENO: checking for $ac_word" >&5
1952: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953: if test "${ac_cv_prog_CXX+set}" = set; then
1954: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1955: else
1956: if test -n "$CXX"; then
1957: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1958: else
1959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960: for as_dir in $PATH
1961: do
1962: IFS=$as_save_IFS
1963: test -z "$as_dir" && as_dir=.
1.11 moko 1964: for ac_exec_ext in '' $ac_executable_extensions; do
1965: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1966: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.11 moko 1967: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1968: break 2
1969: fi
1970: done
1.11 moko 1971: done
1.1 misha 1972:
1973: fi
1974: fi
1975: CXX=$ac_cv_prog_CXX
1976: if test -n "$CXX"; then
1.11 moko 1977: echo "$as_me:$LINENO: result: $CXX" >&5
1978: echo "${ECHO_T}$CXX" >&6
1.1 misha 1979: else
1.11 moko 1980: echo "$as_me:$LINENO: result: no" >&5
1981: echo "${ECHO_T}no" >&6
1.1 misha 1982: fi
1983:
1984: test -n "$CXX" && break
1985: done
1986: fi
1987: if test -z "$CXX"; then
1988: ac_ct_CXX=$CXX
1.11 moko 1989: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1990: do
1991: # Extract the first word of "$ac_prog", so it can be a program name with args.
1992: set dummy $ac_prog; ac_word=$2
1.11 moko 1993: echo "$as_me:$LINENO: checking for $ac_word" >&5
1994: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1996: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1997: else
1998: if test -n "$ac_ct_CXX"; then
1999: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2000: else
2001: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002: for as_dir in $PATH
2003: do
2004: IFS=$as_save_IFS
2005: test -z "$as_dir" && as_dir=.
1.11 moko 2006: for ac_exec_ext in '' $ac_executable_extensions; do
2007: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2008: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.11 moko 2009: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2010: break 2
2011: fi
2012: done
1.11 moko 2013: done
1.1 misha 2014:
2015: fi
2016: fi
2017: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2018: if test -n "$ac_ct_CXX"; then
1.11 moko 2019: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2020: echo "${ECHO_T}$ac_ct_CXX" >&6
1.1 misha 2021: else
1.11 moko 2022: echo "$as_me:$LINENO: result: no" >&5
2023: echo "${ECHO_T}no" >&6
1.1 misha 2024: fi
2025:
2026: test -n "$ac_ct_CXX" && break
2027: done
1.11 moko 2028: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 misha 2029:
1.11 moko 2030: CXX=$ac_ct_CXX
1.1 misha 2031: fi
2032:
1.11 moko 2033:
1.1 misha 2034: # Provide some information about the compiler.
1.11 moko 2035: echo "$as_me:$LINENO:" \
2036: "checking for C++ compiler version" >&5
2037: ac_compiler=`set X $ac_compile; echo $2`
2038: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2039: (eval $ac_compiler --version </dev/null >&5) 2>&5
2040: ac_status=$?
2041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042: (exit $ac_status); }
2043: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2044: (eval $ac_compiler -v </dev/null >&5) 2>&5
2045: ac_status=$?
2046: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047: (exit $ac_status); }
2048: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2049: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2050: ac_status=$?
1.11 moko 2051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052: (exit $ac_status); }
1.1 misha 2053:
1.11 moko 2054: cat >conftest.$ac_ext <<_ACEOF
2055: /* confdefs.h. */
2056: _ACEOF
2057: cat confdefs.h >>conftest.$ac_ext
2058: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2059: /* end confdefs.h. */
2060:
2061: int
2062: main ()
2063: {
2064:
2065: ;
2066: return 0;
2067: }
2068: _ACEOF
2069: ac_clean_files_save=$ac_clean_files
1.11 moko 2070: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 misha 2071: # Try to create an executable without -o first, disregard a.out.
2072: # It will help us diagnose broken compilers, and finding out an intuition
2073: # of exeext.
1.11 moko 2074: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2075: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2076: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2077: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2078: (eval $ac_link_default) 2>&5
2079: ac_status=$?
2080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081: (exit $ac_status); }; then
2082: # Find the output, starting from the most likely. This scheme is
2083: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2084: # resort.
2085:
2086: # Be careful to initialize this variable, since it used to be cached.
2087: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2088: ac_cv_exeext=
2089: # b.out is created by i960 compilers.
2090: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.1 misha 2091: do
2092: test -f "$ac_file" || continue
2093: case $ac_file in
1.11 moko 2094: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2095: ;;
2096: conftest.$ac_ext )
2097: # This is the source file.
1.1 misha 2098: ;;
2099: [ab].out )
2100: # We found the default executable, but exeext='' is most
2101: # certainly right.
2102: break;;
2103: *.* )
1.11 moko 2104: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105: # FIXME: I believe we export ac_cv_exeext for Libtool,
2106: # but it would be cool to find out if it's true. Does anybody
2107: # maintain Libtool? --akim.
2108: export ac_cv_exeext
1.1 misha 2109: break;;
2110: * )
2111: break;;
2112: esac
2113: done
1.11 moko 2114: else
2115: echo "$as_me: failed program was:" >&5
2116: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2117:
1.11 moko 2118: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2119: See \`config.log' for more details." >&5
2120: echo "$as_me: error: C++ compiler cannot create executables
2121: See \`config.log' for more details." >&2;}
2122: { (exit 77); exit 77; }; }
1.10 moko 2123: fi
1.1 misha 2124:
2125: ac_exeext=$ac_cv_exeext
1.11 moko 2126: echo "$as_me:$LINENO: result: $ac_file" >&5
2127: echo "${ECHO_T}$ac_file" >&6
2128:
2129: # Check the compiler produces executables we can run. If not, either
2130: # the compiler is broken, or we cross compile.
2131: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2132: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2133: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2134: # If not cross compiling, check that we can run a simple program.
2135: if test "$cross_compiling" != yes; then
2136: if { ac_try='./$ac_file'
2137: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138: (eval $ac_try) 2>&5
2139: ac_status=$?
2140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141: (exit $ac_status); }; }; then
2142: cross_compiling=no
2143: else
2144: if test "$cross_compiling" = maybe; then
2145: cross_compiling=yes
2146: else
2147: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2148: If you meant to cross compile, use \`--host'.
2149: See \`config.log' for more details." >&5
2150: echo "$as_me: error: cannot run C++ compiled programs.
2151: If you meant to cross compile, use \`--host'.
2152: See \`config.log' for more details." >&2;}
2153: { (exit 1); exit 1; }; }
2154: fi
2155: fi
2156: fi
2157: echo "$as_me:$LINENO: result: yes" >&5
2158: echo "${ECHO_T}yes" >&6
1.1 misha 2159:
1.11 moko 2160: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 misha 2161: ac_clean_files=$ac_clean_files_save
1.11 moko 2162: # Check the compiler produces executables we can run. If not, either
2163: # the compiler is broken, or we cross compile.
2164: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2165: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2166: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2167: echo "${ECHO_T}$cross_compiling" >&6
2168:
2169: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2170: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2171: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2172: (eval $ac_link) 2>&5
1.1 misha 2173: ac_status=$?
1.11 moko 2174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175: (exit $ac_status); }; then
1.1 misha 2176: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2177: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2178: # work properly (i.e., refer to `conftest.exe'), while it won't with
2179: # `rm'.
2180: for ac_file in conftest.exe conftest conftest.*; do
2181: test -f "$ac_file" || continue
2182: case $ac_file in
1.11 moko 2183: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.1 misha 2184: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.11 moko 2185: export ac_cv_exeext
1.1 misha 2186: break;;
2187: * ) break;;
2188: esac
2189: done
2190: else
1.11 moko 2191: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2192: See \`config.log' for more details." >&5
2193: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2194: See \`config.log' for more details." >&2;}
2195: { (exit 1); exit 1; }; }
2196: fi
2197:
2198: rm -f conftest$ac_cv_exeext
2199: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2200: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 misha 2201:
2202: rm -f conftest.$ac_ext
2203: EXEEXT=$ac_cv_exeext
2204: ac_exeext=$EXEEXT
1.11 moko 2205: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2206: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2207: if test "${ac_cv_objext+set}" = set; then
2208: echo $ECHO_N "(cached) $ECHO_C" >&6
2209: else
2210: cat >conftest.$ac_ext <<_ACEOF
2211: /* confdefs.h. */
1.10 moko 2212: _ACEOF
1.11 moko 2213: cat confdefs.h >>conftest.$ac_ext
2214: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2215: /* end confdefs.h. */
2216:
2217: int
2218: main ()
2219: {
2220:
2221: ;
2222: return 0;
2223: }
2224: _ACEOF
2225: rm -f conftest.o conftest.obj
1.11 moko 2226: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227: (eval $ac_compile) 2>&5
2228: ac_status=$?
2229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230: (exit $ac_status); }; then
2231: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1.1 misha 2232: case $ac_file in
1.11 moko 2233: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.1 misha 2234: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2235: break;;
2236: esac
2237: done
2238: else
1.11 moko 2239: echo "$as_me: failed program was:" >&5
1.1 misha 2240: sed 's/^/| /' conftest.$ac_ext >&5
2241:
1.11 moko 2242: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2243: See \`config.log' for more details." >&5
2244: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2245: See \`config.log' for more details." >&2;}
2246: { (exit 1); exit 1; }; }
1.1 misha 2247: fi
1.11 moko 2248:
1.1 misha 2249: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2250: fi
1.11 moko 2251: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2252: echo "${ECHO_T}$ac_cv_objext" >&6
1.1 misha 2253: OBJEXT=$ac_cv_objext
2254: ac_objext=$OBJEXT
1.11 moko 2255: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2256: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2257: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2258: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2259: else
1.11 moko 2260: cat >conftest.$ac_ext <<_ACEOF
2261: /* confdefs.h. */
2262: _ACEOF
2263: cat confdefs.h >>conftest.$ac_ext
2264: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2265: /* end confdefs.h. */
2266:
2267: int
2268: main ()
2269: {
2270: #ifndef __GNUC__
2271: choke me
2272: #endif
2273:
2274: ;
2275: return 0;
2276: }
2277: _ACEOF
1.11 moko 2278: rm -f conftest.$ac_objext
2279: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280: (eval $ac_compile) 2>conftest.er1
2281: ac_status=$?
2282: grep -v '^ *+' conftest.er1 >conftest.err
2283: rm -f conftest.er1
2284: cat conftest.err >&5
2285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286: (exit $ac_status); } &&
2287: { ac_try='test -z "$ac_cxx_werror_flag"
2288: || test ! -s conftest.err'
2289: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290: (eval $ac_try) 2>&5
2291: ac_status=$?
2292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293: (exit $ac_status); }; } &&
2294: { ac_try='test -s conftest.$ac_objext'
2295: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296: (eval $ac_try) 2>&5
2297: ac_status=$?
2298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299: (exit $ac_status); }; }; then
1.1 misha 2300: ac_compiler_gnu=yes
2301: else
1.11 moko 2302: echo "$as_me: failed program was:" >&5
2303: sed 's/^/| /' conftest.$ac_ext >&5
2304:
2305: ac_compiler_gnu=no
1.1 misha 2306: fi
1.11 moko 2307: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 2308: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2309:
2310: fi
1.11 moko 2311: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2312: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2313: GXX=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 2314: ac_test_CXXFLAGS=${CXXFLAGS+set}
2315: ac_save_CXXFLAGS=$CXXFLAGS
1.11 moko 2316: CXXFLAGS="-g"
2317: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2318: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2319: if test "${ac_cv_prog_cxx_g+set}" = set; then
2320: echo $ECHO_N "(cached) $ECHO_C" >&6
2321: else
2322: cat >conftest.$ac_ext <<_ACEOF
2323: /* confdefs.h. */
2324: _ACEOF
2325: cat confdefs.h >>conftest.$ac_ext
2326: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2327: /* end confdefs.h. */
2328:
2329: int
2330: main ()
2331: {
2332:
2333: ;
2334: return 0;
2335: }
2336: _ACEOF
1.11 moko 2337: rm -f conftest.$ac_objext
2338: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339: (eval $ac_compile) 2>conftest.er1
2340: ac_status=$?
2341: grep -v '^ *+' conftest.er1 >conftest.err
2342: rm -f conftest.er1
2343: cat conftest.err >&5
2344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345: (exit $ac_status); } &&
2346: { ac_try='test -z "$ac_cxx_werror_flag"
2347: || test ! -s conftest.err'
2348: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349: (eval $ac_try) 2>&5
2350: ac_status=$?
2351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352: (exit $ac_status); }; } &&
2353: { ac_try='test -s conftest.$ac_objext'
2354: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355: (eval $ac_try) 2>&5
2356: ac_status=$?
2357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358: (exit $ac_status); }; }; then
1.1 misha 2359: ac_cv_prog_cxx_g=yes
2360: else
1.11 moko 2361: echo "$as_me: failed program was:" >&5
2362: sed 's/^/| /' conftest.$ac_ext >&5
2363:
2364: ac_cv_prog_cxx_g=no
2365: fi
2366: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2367: fi
2368: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2369: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2370: if test "$ac_test_CXXFLAGS" = set; then
2371: CXXFLAGS=$ac_save_CXXFLAGS
2372: elif test $ac_cv_prog_cxx_g = yes; then
2373: if test "$GXX" = yes; then
2374: CXXFLAGS="-g -O2"
2375: else
2376: CXXFLAGS="-g"
2377: fi
2378: else
2379: if test "$GXX" = yes; then
2380: CXXFLAGS="-O2"
2381: else
2382: CXXFLAGS=
2383: fi
2384: fi
2385: for ac_declaration in \
2386: '' \
2387: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2388: 'extern "C" void std::exit (int); using std::exit;' \
2389: 'extern "C" void exit (int) throw ();' \
2390: 'extern "C" void exit (int);' \
2391: 'void exit (int);'
2392: do
2393: cat >conftest.$ac_ext <<_ACEOF
2394: /* confdefs.h. */
2395: _ACEOF
2396: cat confdefs.h >>conftest.$ac_ext
2397: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2398: /* end confdefs.h. */
1.11 moko 2399: $ac_declaration
2400: #include <stdlib.h>
1.1 misha 2401: int
2402: main ()
2403: {
1.11 moko 2404: exit (42);
1.1 misha 2405: ;
2406: return 0;
2407: }
2408: _ACEOF
1.11 moko 2409: rm -f conftest.$ac_objext
2410: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411: (eval $ac_compile) 2>conftest.er1
2412: ac_status=$?
2413: grep -v '^ *+' conftest.er1 >conftest.err
2414: rm -f conftest.er1
2415: cat conftest.err >&5
2416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417: (exit $ac_status); } &&
2418: { ac_try='test -z "$ac_cxx_werror_flag"
2419: || test ! -s conftest.err'
2420: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421: (eval $ac_try) 2>&5
2422: ac_status=$?
2423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424: (exit $ac_status); }; } &&
2425: { ac_try='test -s conftest.$ac_objext'
2426: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427: (eval $ac_try) 2>&5
2428: ac_status=$?
2429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430: (exit $ac_status); }; }; then
2431: :
2432: else
2433: echo "$as_me: failed program was:" >&5
2434: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2435:
1.11 moko 2436: continue
2437: fi
2438: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439: cat >conftest.$ac_ext <<_ACEOF
2440: /* confdefs.h. */
2441: _ACEOF
2442: cat confdefs.h >>conftest.$ac_ext
2443: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2444: /* end confdefs.h. */
1.11 moko 2445: $ac_declaration
1.1 misha 2446: int
2447: main ()
2448: {
1.11 moko 2449: exit (42);
1.1 misha 2450: ;
2451: return 0;
2452: }
2453: _ACEOF
1.11 moko 2454: rm -f conftest.$ac_objext
2455: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456: (eval $ac_compile) 2>conftest.er1
2457: ac_status=$?
2458: grep -v '^ *+' conftest.er1 >conftest.err
2459: rm -f conftest.er1
2460: cat conftest.err >&5
2461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462: (exit $ac_status); } &&
2463: { ac_try='test -z "$ac_cxx_werror_flag"
2464: || test ! -s conftest.err'
2465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466: (eval $ac_try) 2>&5
2467: ac_status=$?
2468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469: (exit $ac_status); }; } &&
2470: { ac_try='test -s conftest.$ac_objext'
2471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472: (eval $ac_try) 2>&5
2473: ac_status=$?
2474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475: (exit $ac_status); }; }; then
2476: break
2477: else
2478: echo "$as_me: failed program was:" >&5
2479: sed 's/^/| /' conftest.$ac_ext >&5
2480:
1.10 moko 2481: fi
1.11 moko 2482: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483: done
2484: rm -f conftest*
2485: if test -n "$ac_declaration"; then
2486: echo '#ifdef __cplusplus' >>confdefs.h
2487: echo $ac_declaration >>confdefs.h
2488: echo '#endif' >>confdefs.h
1.1 misha 2489: fi
1.11 moko 2490:
1.1 misha 2491: ac_ext=c
2492: ac_cpp='$CPP $CPPFLAGS'
2493: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496: DEPDIR="${am__leading_dot}deps"
2497:
1.11 moko 2498: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 2499:
2500:
2501: am_make=${MAKE-make}
2502: cat > confinc << 'END'
2503: am__doit:
2504: @echo done
2505: .PHONY: am__doit
2506: END
2507: # If we don't find an include directive, just comment out the code.
1.11 moko 2508: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2509: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1.1 misha 2510: am__include="#"
2511: am__quote=
2512: _am_result=none
2513: # First try GNU make style include.
2514: echo "include confinc" > confmf
2515: # We grep out `Entering directory' and `Leaving directory'
2516: # messages which can occur if `w' ends up in MAKEFLAGS.
2517: # In particular we don't look at `^make:' because GNU make might
2518: # be invoked under some other name (usually "gmake"), in which
2519: # case it prints its new name instead of `make'.
2520: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2521: am__include=include
2522: am__quote=
2523: _am_result=GNU
2524: fi
2525: # Now try BSD make style include.
2526: if test "$am__include" = "#"; then
2527: echo '.include "confinc"' > confmf
2528: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2529: am__include=.include
2530: am__quote="\""
2531: _am_result=BSD
2532: fi
2533: fi
2534:
2535:
1.11 moko 2536: echo "$as_me:$LINENO: result: $_am_result" >&5
2537: echo "${ECHO_T}$_am_result" >&6
1.1 misha 2538: rm -f confinc confmf
2539:
1.11 moko 2540: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2541: if test "${enable_dependency_tracking+set}" = set; then
2542: enableval="$enable_dependency_tracking"
1.1 misha 2543:
1.11 moko 2544: fi;
1.1 misha 2545: if test "x$enable_dependency_tracking" != xno; then
2546: am_depcomp="$ac_aux_dir/depcomp"
2547: AMDEPBACKSLASH='\'
2548: fi
2549:
2550:
2551: if test "x$enable_dependency_tracking" != xno; then
2552: AMDEP_TRUE=
2553: AMDEP_FALSE='#'
2554: else
2555: AMDEP_TRUE='#'
2556: AMDEP_FALSE=
2557: fi
2558:
2559:
2560:
2561:
2562: depcc="$CXX" am_compiler_list=
2563:
1.11 moko 2564: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2565: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2566: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2567: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2568: else
2569: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2570: # We make a subdir and do the tests there. Otherwise we can end up
2571: # making bogus files that we don't know about and never remove. For
2572: # instance it was reported that on HP-UX the gcc test will end up
2573: # making a dummy file named `D' -- because `-MD' means `put the output
2574: # in D'.
2575: mkdir conftest.dir
2576: # Copy depcomp to subdir because otherwise we won't find it if we're
2577: # using a relative directory.
2578: cp "$am_depcomp" conftest.dir
2579: cd conftest.dir
2580: # We will build objects and dependencies in a subdirectory because
2581: # it helps to detect inapplicable dependency modes. For instance
2582: # both Tru64's cc and ICC support -MD to output dependencies as a
2583: # side effect of compilation, but ICC will put the dependencies in
2584: # the current directory while Tru64 will put them in the object
2585: # directory.
2586: mkdir sub
2587:
2588: am_cv_CXX_dependencies_compiler_type=none
2589: if test "$am_compiler_list" = ""; then
2590: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2591: fi
2592: for depmode in $am_compiler_list; do
2593: # Setup a source with many dependencies, because some compilers
2594: # like to wrap large dependency lists on column 80 (with \), and
2595: # we should not choose a depcomp mode which is confused by this.
2596: #
2597: # We need to recreate these files for each test, as the compiler may
2598: # overwrite some of them when testing with obscure command lines.
2599: # This happens at least with the AIX C compiler.
2600: : > sub/conftest.c
2601: for i in 1 2 3 4 5 6; do
2602: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2603: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2604: # Solaris 8's {/usr,}/bin/sh.
2605: touch sub/conftst$i.h
2606: done
2607: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2608:
2609: case $depmode in
2610: nosideeffect)
2611: # after this tag, mechanisms are not by side-effect, so they'll
2612: # only be used when explicitly requested
2613: if test "x$enable_dependency_tracking" = xyes; then
2614: continue
2615: else
2616: break
2617: fi
2618: ;;
2619: none) break ;;
2620: esac
2621: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2622: # mode. It turns out that the SunPro C++ compiler does not properly
2623: # handle `-M -o', and we need to detect this.
2624: if depmode=$depmode \
2625: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2626: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2627: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2628: >/dev/null 2>conftest.err &&
2629: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2630: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2631: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2632: # icc doesn't choke on unknown options, it will just issue warnings
2633: # or remarks (even with -Werror). So we grep stderr for any message
2634: # that says an option was ignored or not supported.
2635: # When given -MP, icc 7.0 and 7.1 complain thusly:
2636: # icc: Command line warning: ignoring option '-M'; no argument required
2637: # The diagnosis changed in icc 8.0:
2638: # icc: Command line remark: option '-MP' not supported
2639: if (grep 'ignoring option' conftest.err ||
2640: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2641: am_cv_CXX_dependencies_compiler_type=$depmode
2642: break
2643: fi
2644: fi
2645: done
2646:
2647: cd ..
2648: rm -rf conftest.dir
2649: else
2650: am_cv_CXX_dependencies_compiler_type=none
2651: fi
2652:
2653: fi
1.11 moko 2654: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2655: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
1.1 misha 2656: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2657:
2658:
2659:
2660: if
2661: test "x$enable_dependency_tracking" != xno \
2662: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2663: am__fastdepCXX_TRUE=
2664: am__fastdepCXX_FALSE='#'
2665: else
2666: am__fastdepCXX_TRUE='#'
2667: am__fastdepCXX_FALSE=
2668: fi
2669:
2670:
2671: ac_ext=c
2672: ac_cpp='$CPP $CPPFLAGS'
2673: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676: if test -n "$ac_tool_prefix"; then
2677: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.11 moko 2679: echo "$as_me:$LINENO: checking for $ac_word" >&5
2680: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681: if test "${ac_cv_prog_CC+set}" = set; then
2682: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2683: else
2684: if test -n "$CC"; then
2685: ac_cv_prog_CC="$CC" # Let the user override the test.
2686: else
2687: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688: for as_dir in $PATH
2689: do
2690: IFS=$as_save_IFS
2691: test -z "$as_dir" && as_dir=.
1.11 moko 2692: for ac_exec_ext in '' $ac_executable_extensions; do
2693: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2694: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.11 moko 2695: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2696: break 2
2697: fi
2698: done
1.11 moko 2699: done
1.1 misha 2700:
2701: fi
2702: fi
2703: CC=$ac_cv_prog_CC
2704: if test -n "$CC"; then
1.11 moko 2705: echo "$as_me:$LINENO: result: $CC" >&5
2706: echo "${ECHO_T}$CC" >&6
1.1 misha 2707: else
1.11 moko 2708: echo "$as_me:$LINENO: result: no" >&5
2709: echo "${ECHO_T}no" >&6
1.1 misha 2710: fi
2711:
2712: fi
2713: if test -z "$ac_cv_prog_CC"; then
2714: ac_ct_CC=$CC
2715: # Extract the first word of "gcc", so it can be a program name with args.
2716: set dummy gcc; ac_word=$2
1.11 moko 2717: echo "$as_me:$LINENO: checking for $ac_word" >&5
2718: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2719: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2721: else
2722: if test -n "$ac_ct_CC"; then
2723: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724: else
2725: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726: for as_dir in $PATH
2727: do
2728: IFS=$as_save_IFS
2729: test -z "$as_dir" && as_dir=.
1.11 moko 2730: for ac_exec_ext in '' $ac_executable_extensions; do
2731: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2732: ac_cv_prog_ac_ct_CC="gcc"
1.11 moko 2733: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2734: break 2
2735: fi
2736: done
1.11 moko 2737: done
1.1 misha 2738:
2739: fi
2740: fi
2741: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742: if test -n "$ac_ct_CC"; then
1.11 moko 2743: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2745: else
1.11 moko 2746: echo "$as_me:$LINENO: result: no" >&5
2747: echo "${ECHO_T}no" >&6
1.1 misha 2748: fi
2749:
1.11 moko 2750: CC=$ac_ct_CC
1.1 misha 2751: else
2752: CC="$ac_cv_prog_CC"
2753: fi
2754:
2755: if test -z "$CC"; then
1.11 moko 2756: if test -n "$ac_tool_prefix"; then
2757: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 2758: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.11 moko 2759: echo "$as_me:$LINENO: checking for $ac_word" >&5
2760: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761: if test "${ac_cv_prog_CC+set}" = set; then
2762: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2763: else
2764: if test -n "$CC"; then
2765: ac_cv_prog_CC="$CC" # Let the user override the test.
2766: else
2767: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768: for as_dir in $PATH
2769: do
2770: IFS=$as_save_IFS
2771: test -z "$as_dir" && as_dir=.
1.11 moko 2772: for ac_exec_ext in '' $ac_executable_extensions; do
2773: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2774: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.11 moko 2775: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2776: break 2
2777: fi
2778: done
1.11 moko 2779: done
1.1 misha 2780:
2781: fi
2782: fi
2783: CC=$ac_cv_prog_CC
2784: if test -n "$CC"; then
1.11 moko 2785: echo "$as_me:$LINENO: result: $CC" >&5
2786: echo "${ECHO_T}$CC" >&6
2787: else
2788: echo "$as_me:$LINENO: result: no" >&5
2789: echo "${ECHO_T}no" >&6
2790: fi
2791:
2792: fi
2793: if test -z "$ac_cv_prog_CC"; then
2794: ac_ct_CC=$CC
2795: # Extract the first word of "cc", so it can be a program name with args.
2796: set dummy cc; ac_word=$2
2797: echo "$as_me:$LINENO: checking for $ac_word" >&5
2798: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2800: echo $ECHO_N "(cached) $ECHO_C" >&6
2801: else
2802: if test -n "$ac_ct_CC"; then
2803: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804: else
2805: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806: for as_dir in $PATH
2807: do
2808: IFS=$as_save_IFS
2809: test -z "$as_dir" && as_dir=.
2810: for ac_exec_ext in '' $ac_executable_extensions; do
2811: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812: ac_cv_prog_ac_ct_CC="cc"
2813: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814: break 2
2815: fi
2816: done
2817: done
2818:
2819: fi
2820: fi
2821: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822: if test -n "$ac_ct_CC"; then
2823: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2825: else
1.11 moko 2826: echo "$as_me:$LINENO: result: no" >&5
2827: echo "${ECHO_T}no" >&6
1.1 misha 2828: fi
2829:
1.11 moko 2830: CC=$ac_ct_CC
2831: else
2832: CC="$ac_cv_prog_CC"
2833: fi
1.10 moko 2834:
1.1 misha 2835: fi
2836: if test -z "$CC"; then
2837: # Extract the first word of "cc", so it can be a program name with args.
2838: set dummy cc; ac_word=$2
1.11 moko 2839: echo "$as_me:$LINENO: checking for $ac_word" >&5
2840: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841: if test "${ac_cv_prog_CC+set}" = set; then
2842: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2843: else
2844: if test -n "$CC"; then
2845: ac_cv_prog_CC="$CC" # Let the user override the test.
2846: else
2847: ac_prog_rejected=no
2848: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849: for as_dir in $PATH
2850: do
2851: IFS=$as_save_IFS
2852: test -z "$as_dir" && as_dir=.
1.11 moko 2853: for ac_exec_ext in '' $ac_executable_extensions; do
2854: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2855: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2856: ac_prog_rejected=yes
2857: continue
2858: fi
2859: ac_cv_prog_CC="cc"
1.11 moko 2860: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2861: break 2
2862: fi
2863: done
1.11 moko 2864: done
1.1 misha 2865:
2866: if test $ac_prog_rejected = yes; then
2867: # We found a bogon in the path, so make sure we never use it.
2868: set dummy $ac_cv_prog_CC
2869: shift
2870: if test $# != 0; then
2871: # We chose a different compiler from the bogus one.
2872: # However, it has the same basename, so the bogon will be chosen
2873: # first if we set CC to just the basename; use the full file name.
2874: shift
2875: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2876: fi
2877: fi
2878: fi
2879: fi
2880: CC=$ac_cv_prog_CC
2881: if test -n "$CC"; then
1.11 moko 2882: echo "$as_me:$LINENO: result: $CC" >&5
2883: echo "${ECHO_T}$CC" >&6
1.1 misha 2884: else
1.11 moko 2885: echo "$as_me:$LINENO: result: no" >&5
2886: echo "${ECHO_T}no" >&6
1.1 misha 2887: fi
2888:
2889: fi
2890: if test -z "$CC"; then
2891: if test -n "$ac_tool_prefix"; then
1.11 moko 2892: for ac_prog in cl
1.1 misha 2893: do
2894: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 2896: echo "$as_me:$LINENO: checking for $ac_word" >&5
2897: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2898: if test "${ac_cv_prog_CC+set}" = set; then
2899: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2900: else
2901: if test -n "$CC"; then
2902: ac_cv_prog_CC="$CC" # Let the user override the test.
2903: else
2904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905: for as_dir in $PATH
2906: do
2907: IFS=$as_save_IFS
2908: test -z "$as_dir" && as_dir=.
1.11 moko 2909: for ac_exec_ext in '' $ac_executable_extensions; do
2910: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2911: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.11 moko 2912: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2913: break 2
2914: fi
2915: done
1.11 moko 2916: done
1.1 misha 2917:
2918: fi
2919: fi
2920: CC=$ac_cv_prog_CC
2921: if test -n "$CC"; then
1.11 moko 2922: echo "$as_me:$LINENO: result: $CC" >&5
2923: echo "${ECHO_T}$CC" >&6
1.1 misha 2924: else
1.11 moko 2925: echo "$as_me:$LINENO: result: no" >&5
2926: echo "${ECHO_T}no" >&6
1.1 misha 2927: fi
2928:
2929: test -n "$CC" && break
2930: done
2931: fi
2932: if test -z "$CC"; then
2933: ac_ct_CC=$CC
1.11 moko 2934: for ac_prog in cl
1.1 misha 2935: do
2936: # Extract the first word of "$ac_prog", so it can be a program name with args.
2937: set dummy $ac_prog; ac_word=$2
1.11 moko 2938: echo "$as_me:$LINENO: checking for $ac_word" >&5
2939: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2941: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2942: else
2943: if test -n "$ac_ct_CC"; then
2944: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945: else
2946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947: for as_dir in $PATH
2948: do
2949: IFS=$as_save_IFS
2950: test -z "$as_dir" && as_dir=.
1.11 moko 2951: for ac_exec_ext in '' $ac_executable_extensions; do
2952: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2953: ac_cv_prog_ac_ct_CC="$ac_prog"
1.11 moko 2954: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2955: break 2
2956: fi
2957: done
1.11 moko 2958: done
1.1 misha 2959:
2960: fi
2961: fi
2962: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963: if test -n "$ac_ct_CC"; then
1.11 moko 2964: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2965: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2966: else
1.11 moko 2967: echo "$as_me:$LINENO: result: no" >&5
2968: echo "${ECHO_T}no" >&6
1.1 misha 2969: fi
2970:
2971: test -n "$ac_ct_CC" && break
2972: done
2973:
1.11 moko 2974: CC=$ac_ct_CC
1.1 misha 2975: fi
2976:
2977: fi
2978:
2979:
1.11 moko 2980: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2981: See \`config.log' for more details." >&5
2982: echo "$as_me: error: no acceptable C compiler found in \$PATH
2983: See \`config.log' for more details." >&2;}
2984: { (exit 1); exit 1; }; }
1.1 misha 2985:
2986: # Provide some information about the compiler.
1.11 moko 2987: echo "$as_me:$LINENO:" \
2988: "checking for C compiler version" >&5
2989: ac_compiler=`set X $ac_compile; echo $2`
2990: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2991: (eval $ac_compiler --version </dev/null >&5) 2>&5
2992: ac_status=$?
2993: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994: (exit $ac_status); }
2995: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2996: (eval $ac_compiler -v </dev/null >&5) 2>&5
2997: ac_status=$?
2998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999: (exit $ac_status); }
3000: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3001: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 3002: ac_status=$?
1.11 moko 3003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004: (exit $ac_status); }
3005:
3006: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3008: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3010: else
1.11 moko 3011: cat >conftest.$ac_ext <<_ACEOF
3012: /* confdefs.h. */
3013: _ACEOF
3014: cat confdefs.h >>conftest.$ac_ext
3015: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 3016: /* end confdefs.h. */
3017:
3018: int
3019: main ()
3020: {
3021: #ifndef __GNUC__
3022: choke me
3023: #endif
3024:
3025: ;
3026: return 0;
3027: }
3028: _ACEOF
1.11 moko 3029: rm -f conftest.$ac_objext
3030: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031: (eval $ac_compile) 2>conftest.er1
3032: ac_status=$?
3033: grep -v '^ *+' conftest.er1 >conftest.err
3034: rm -f conftest.er1
3035: cat conftest.err >&5
3036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037: (exit $ac_status); } &&
3038: { ac_try='test -z "$ac_c_werror_flag"
3039: || test ! -s conftest.err'
3040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041: (eval $ac_try) 2>&5
3042: ac_status=$?
3043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044: (exit $ac_status); }; } &&
3045: { ac_try='test -s conftest.$ac_objext'
3046: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047: (eval $ac_try) 2>&5
3048: ac_status=$?
3049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050: (exit $ac_status); }; }; then
1.1 misha 3051: ac_compiler_gnu=yes
3052: else
1.11 moko 3053: echo "$as_me: failed program was:" >&5
3054: sed 's/^/| /' conftest.$ac_ext >&5
3055:
3056: ac_compiler_gnu=no
1.1 misha 3057: fi
1.11 moko 3058: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3059: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060:
3061: fi
1.11 moko 3062: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3063: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3064: GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 3065: ac_test_CFLAGS=${CFLAGS+set}
3066: ac_save_CFLAGS=$CFLAGS
1.11 moko 3067: CFLAGS="-g"
3068: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3070: if test "${ac_cv_prog_cc_g+set}" = set; then
3071: echo $ECHO_N "(cached) $ECHO_C" >&6
3072: else
3073: cat >conftest.$ac_ext <<_ACEOF
3074: /* confdefs.h. */
3075: _ACEOF
3076: cat confdefs.h >>conftest.$ac_ext
3077: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 3078: /* end confdefs.h. */
3079:
3080: int
3081: main ()
3082: {
3083:
3084: ;
3085: return 0;
3086: }
3087: _ACEOF
1.11 moko 3088: rm -f conftest.$ac_objext
3089: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090: (eval $ac_compile) 2>conftest.er1
3091: ac_status=$?
3092: grep -v '^ *+' conftest.er1 >conftest.err
3093: rm -f conftest.er1
3094: cat conftest.err >&5
3095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096: (exit $ac_status); } &&
3097: { ac_try='test -z "$ac_c_werror_flag"
3098: || test ! -s conftest.err'
3099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100: (eval $ac_try) 2>&5
3101: ac_status=$?
3102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103: (exit $ac_status); }; } &&
3104: { ac_try='test -s conftest.$ac_objext'
3105: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106: (eval $ac_try) 2>&5
3107: ac_status=$?
3108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109: (exit $ac_status); }; }; then
1.10 moko 3110: ac_cv_prog_cc_g=yes
1.1 misha 3111: else
1.11 moko 3112: echo "$as_me: failed program was:" >&5
3113: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misha 3114:
1.11 moko 3115: ac_cv_prog_cc_g=no
1.10 moko 3116: fi
1.11 moko 3117: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3118: fi
1.11 moko 3119: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3120: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 misha 3121: if test "$ac_test_CFLAGS" = set; then
3122: CFLAGS=$ac_save_CFLAGS
3123: elif test $ac_cv_prog_cc_g = yes; then
3124: if test "$GCC" = yes; then
3125: CFLAGS="-g -O2"
3126: else
3127: CFLAGS="-g"
3128: fi
3129: else
3130: if test "$GCC" = yes; then
3131: CFLAGS="-O2"
3132: else
3133: CFLAGS=
3134: fi
3135: fi
1.11 moko 3136: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3137: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3138: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3139: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3140: else
1.11 moko 3141: ac_cv_prog_cc_stdc=no
1.1 misha 3142: ac_save_CC=$CC
1.11 moko 3143: cat >conftest.$ac_ext <<_ACEOF
3144: /* confdefs.h. */
3145: _ACEOF
3146: cat confdefs.h >>conftest.$ac_ext
3147: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 3148: /* end confdefs.h. */
3149: #include <stdarg.h>
3150: #include <stdio.h>
3151: #include <sys/types.h>
3152: #include <sys/stat.h>
3153: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3154: struct buf { int x; };
3155: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156: static char *e (p, i)
3157: char **p;
3158: int i;
3159: {
3160: return p[i];
3161: }
3162: static char *f (char * (*g) (char **, int), char **p, ...)
3163: {
3164: char *s;
3165: va_list v;
3166: va_start (v,p);
3167: s = g (p, va_arg (v,int));
3168: va_end (v);
3169: return s;
3170: }
3171:
3172: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3173: function prototypes and stuff, but not '\xHH' hex character constants.
3174: These don't provoke an error unfortunately, instead are silently treated
1.11 moko 3175: as 'x'. The following induces an error, until -std1 is added to get
1.1 misha 3176: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3177: array size at least. It's necessary to write '\x00'==0 to get something
1.11 moko 3178: that's true only with -std1. */
1.1 misha 3179: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3180:
3181: int test (int i, double x);
3182: struct s1 {int (*f) (int a);};
3183: struct s2 {int (*f) (double a);};
3184: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185: int argc;
3186: char **argv;
3187: int
3188: main ()
3189: {
3190: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3191: ;
3192: return 0;
3193: }
3194: _ACEOF
1.11 moko 3195: # Don't try gcc -ansi; that turns off useful extensions and
3196: # breaks some systems' header files.
3197: # AIX -qlanglvl=ansi
3198: # Ultrix and OSF/1 -std1
3199: # HP-UX 10.20 and later -Ae
3200: # HP-UX older versions -Aa -D_HPUX_SOURCE
3201: # SVR4 -Xc -D__EXTENSIONS__
3202: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 3203: do
3204: CC="$ac_save_CC $ac_arg"
1.11 moko 3205: rm -f conftest.$ac_objext
3206: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207: (eval $ac_compile) 2>conftest.er1
3208: ac_status=$?
3209: grep -v '^ *+' conftest.er1 >conftest.err
3210: rm -f conftest.er1
3211: cat conftest.err >&5
3212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213: (exit $ac_status); } &&
3214: { ac_try='test -z "$ac_c_werror_flag"
3215: || test ! -s conftest.err'
3216: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217: (eval $ac_try) 2>&5
3218: ac_status=$?
3219: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220: (exit $ac_status); }; } &&
3221: { ac_try='test -s conftest.$ac_objext'
3222: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223: (eval $ac_try) 2>&5
3224: ac_status=$?
3225: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226: (exit $ac_status); }; }; then
3227: ac_cv_prog_cc_stdc=$ac_arg
3228: break
3229: else
3230: echo "$as_me: failed program was:" >&5
3231: sed 's/^/| /' conftest.$ac_ext >&5
3232:
1.1 misha 3233: fi
1.11 moko 3234: rm -f conftest.err conftest.$ac_objext
1.1 misha 3235: done
1.11 moko 3236: rm -f conftest.$ac_ext conftest.$ac_objext
1.1 misha 3237: CC=$ac_save_CC
3238:
3239: fi
1.11 moko 3240:
3241: case "x$ac_cv_prog_cc_stdc" in
3242: x|xno)
3243: echo "$as_me:$LINENO: result: none needed" >&5
3244: echo "${ECHO_T}none needed" >&6 ;;
1.1 misha 3245: *)
1.11 moko 3246: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3247: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3248: CC="$CC $ac_cv_prog_cc_stdc" ;;
1.1 misha 3249: esac
3250:
1.11 moko 3251: # Some people use a C++ compiler to compile C. Since we use `exit',
3252: # in C++ we need to declare it. In case someone uses the same compiler
3253: # for both compiling C and C++ we need to have the C++ compiler decide
3254: # the declaration of exit, since it's the most demanding environment.
3255: cat >conftest.$ac_ext <<_ACEOF
3256: #ifndef __cplusplus
3257: choke me
3258: #endif
3259: _ACEOF
3260: rm -f conftest.$ac_objext
3261: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3262: (eval $ac_compile) 2>conftest.er1
3263: ac_status=$?
3264: grep -v '^ *+' conftest.er1 >conftest.err
3265: rm -f conftest.er1
3266: cat conftest.err >&5
3267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268: (exit $ac_status); } &&
3269: { ac_try='test -z "$ac_c_werror_flag"
3270: || test ! -s conftest.err'
3271: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272: (eval $ac_try) 2>&5
3273: ac_status=$?
3274: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275: (exit $ac_status); }; } &&
3276: { ac_try='test -s conftest.$ac_objext'
3277: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278: (eval $ac_try) 2>&5
3279: ac_status=$?
3280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281: (exit $ac_status); }; }; then
3282: for ac_declaration in \
3283: '' \
3284: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3285: 'extern "C" void std::exit (int); using std::exit;' \
3286: 'extern "C" void exit (int) throw ();' \
3287: 'extern "C" void exit (int);' \
3288: 'void exit (int);'
3289: do
3290: cat >conftest.$ac_ext <<_ACEOF
3291: /* confdefs.h. */
3292: _ACEOF
3293: cat confdefs.h >>conftest.$ac_ext
3294: cat >>conftest.$ac_ext <<_ACEOF
3295: /* end confdefs.h. */
3296: $ac_declaration
3297: #include <stdlib.h>
3298: int
3299: main ()
3300: {
3301: exit (42);
3302: ;
3303: return 0;
3304: }
3305: _ACEOF
3306: rm -f conftest.$ac_objext
3307: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308: (eval $ac_compile) 2>conftest.er1
3309: ac_status=$?
3310: grep -v '^ *+' conftest.er1 >conftest.err
3311: rm -f conftest.er1
3312: cat conftest.err >&5
3313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314: (exit $ac_status); } &&
3315: { ac_try='test -z "$ac_c_werror_flag"
3316: || test ! -s conftest.err'
3317: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318: (eval $ac_try) 2>&5
3319: ac_status=$?
3320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321: (exit $ac_status); }; } &&
3322: { ac_try='test -s conftest.$ac_objext'
3323: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324: (eval $ac_try) 2>&5
3325: ac_status=$?
3326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327: (exit $ac_status); }; }; then
3328: :
3329: else
3330: echo "$as_me: failed program was:" >&5
3331: sed 's/^/| /' conftest.$ac_ext >&5
3332:
3333: continue
3334: fi
3335: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3336: cat >conftest.$ac_ext <<_ACEOF
3337: /* confdefs.h. */
3338: _ACEOF
3339: cat confdefs.h >>conftest.$ac_ext
3340: cat >>conftest.$ac_ext <<_ACEOF
3341: /* end confdefs.h. */
3342: $ac_declaration
3343: int
3344: main ()
3345: {
3346: exit (42);
3347: ;
3348: return 0;
3349: }
3350: _ACEOF
3351: rm -f conftest.$ac_objext
3352: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353: (eval $ac_compile) 2>conftest.er1
3354: ac_status=$?
3355: grep -v '^ *+' conftest.er1 >conftest.err
3356: rm -f conftest.er1
3357: cat conftest.err >&5
3358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359: (exit $ac_status); } &&
3360: { ac_try='test -z "$ac_c_werror_flag"
3361: || test ! -s conftest.err'
3362: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363: (eval $ac_try) 2>&5
3364: ac_status=$?
3365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366: (exit $ac_status); }; } &&
3367: { ac_try='test -s conftest.$ac_objext'
3368: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369: (eval $ac_try) 2>&5
3370: ac_status=$?
3371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372: (exit $ac_status); }; }; then
3373: break
3374: else
3375: echo "$as_me: failed program was:" >&5
3376: sed 's/^/| /' conftest.$ac_ext >&5
3377:
3378: fi
3379: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380: done
3381: rm -f conftest*
3382: if test -n "$ac_declaration"; then
3383: echo '#ifdef __cplusplus' >>confdefs.h
3384: echo $ac_declaration >>confdefs.h
3385: echo '#endif' >>confdefs.h
1.1 misha 3386: fi
3387:
1.11 moko 3388: else
3389: echo "$as_me: failed program was:" >&5
3390: sed 's/^/| /' conftest.$ac_ext >&5
3391:
3392: fi
3393: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3394: ac_ext=c
3395: ac_cpp='$CPP $CPPFLAGS'
3396: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399:
3400: depcc="$CC" am_compiler_list=
3401:
1.11 moko 3402: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3403: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3404: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3405: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3406: else
3407: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3408: # We make a subdir and do the tests there. Otherwise we can end up
3409: # making bogus files that we don't know about and never remove. For
3410: # instance it was reported that on HP-UX the gcc test will end up
3411: # making a dummy file named `D' -- because `-MD' means `put the output
3412: # in D'.
3413: mkdir conftest.dir
3414: # Copy depcomp to subdir because otherwise we won't find it if we're
3415: # using a relative directory.
3416: cp "$am_depcomp" conftest.dir
3417: cd conftest.dir
3418: # We will build objects and dependencies in a subdirectory because
3419: # it helps to detect inapplicable dependency modes. For instance
3420: # both Tru64's cc and ICC support -MD to output dependencies as a
3421: # side effect of compilation, but ICC will put the dependencies in
3422: # the current directory while Tru64 will put them in the object
3423: # directory.
3424: mkdir sub
3425:
3426: am_cv_CC_dependencies_compiler_type=none
3427: if test "$am_compiler_list" = ""; then
3428: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3429: fi
3430: for depmode in $am_compiler_list; do
3431: # Setup a source with many dependencies, because some compilers
3432: # like to wrap large dependency lists on column 80 (with \), and
3433: # we should not choose a depcomp mode which is confused by this.
3434: #
3435: # We need to recreate these files for each test, as the compiler may
3436: # overwrite some of them when testing with obscure command lines.
3437: # This happens at least with the AIX C compiler.
3438: : > sub/conftest.c
3439: for i in 1 2 3 4 5 6; do
3440: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3441: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3442: # Solaris 8's {/usr,}/bin/sh.
3443: touch sub/conftst$i.h
3444: done
3445: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3446:
3447: case $depmode in
3448: nosideeffect)
3449: # after this tag, mechanisms are not by side-effect, so they'll
3450: # only be used when explicitly requested
3451: if test "x$enable_dependency_tracking" = xyes; then
3452: continue
3453: else
3454: break
3455: fi
3456: ;;
3457: none) break ;;
3458: esac
3459: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3460: # mode. It turns out that the SunPro C++ compiler does not properly
3461: # handle `-M -o', and we need to detect this.
3462: if depmode=$depmode \
3463: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3464: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3465: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3466: >/dev/null 2>conftest.err &&
3467: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3468: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3469: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3470: # icc doesn't choke on unknown options, it will just issue warnings
3471: # or remarks (even with -Werror). So we grep stderr for any message
3472: # that says an option was ignored or not supported.
3473: # When given -MP, icc 7.0 and 7.1 complain thusly:
3474: # icc: Command line warning: ignoring option '-M'; no argument required
3475: # The diagnosis changed in icc 8.0:
3476: # icc: Command line remark: option '-MP' not supported
3477: if (grep 'ignoring option' conftest.err ||
3478: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3479: am_cv_CC_dependencies_compiler_type=$depmode
3480: break
3481: fi
3482: fi
3483: done
3484:
3485: cd ..
3486: rm -rf conftest.dir
3487: else
3488: am_cv_CC_dependencies_compiler_type=none
3489: fi
3490:
3491: fi
1.11 moko 3492: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3493: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1.1 misha 3494: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3495:
3496:
3497:
3498: if
3499: test "x$enable_dependency_tracking" != xno \
3500: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501: am__fastdepCC_TRUE=
3502: am__fastdepCC_FALSE='#'
3503: else
3504: am__fastdepCC_TRUE='#'
3505: am__fastdepCC_FALSE=
3506: fi
3507:
3508:
3509:
1.8 moko 3510:
1.13 moko 3511:
3512:
3513:
3514:
3515:
3516:
1.8 moko 3517: case `pwd` in
3518: *\ * | *\ *)
1.11 moko 3519: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3520: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 3521: esac
3522:
3523:
3524:
3525: macro_version='2.4.2'
3526: macro_revision='1.3337'
3527:
3528:
3529:
3530:
3531:
3532:
3533:
1.1 misha 3534:
3535:
3536:
3537:
3538:
3539:
1.8 moko 3540: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 3541:
3542: # Make sure we can run config.sub.
1.11 moko 3543: $ac_config_sub sun4 >/dev/null 2>&1 ||
3544: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3545: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3546: { (exit 1); exit 1; }; }
3547:
3548: echo "$as_me:$LINENO: checking build system type" >&5
3549: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3550: if test "${ac_cv_build+set}" = set; then
3551: echo $ECHO_N "(cached) $ECHO_C" >&6
3552: else
3553: ac_cv_build_alias=$build_alias
3554: test -z "$ac_cv_build_alias" &&
3555: ac_cv_build_alias=`$ac_config_guess`
3556: test -z "$ac_cv_build_alias" &&
3557: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3558: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3559: { (exit 1); exit 1; }; }
3560: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3561: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3562: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3563: { (exit 1); exit 1; }; }
1.1 misha 3564:
1.11 moko 3565: fi
3566: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3567: echo "${ECHO_T}$ac_cv_build" >&6
1.10 moko 3568: build=$ac_cv_build
1.11 moko 3569: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3570: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3571: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3572:
3573:
3574: echo "$as_me:$LINENO: checking host system type" >&5
3575: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3576: if test "${ac_cv_host+set}" = set; then
3577: echo $ECHO_N "(cached) $ECHO_C" >&6
3578: else
3579: ac_cv_host_alias=$host_alias
3580: test -z "$ac_cv_host_alias" &&
3581: ac_cv_host_alias=$ac_cv_build_alias
3582: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3583: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3584: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3585: { (exit 1); exit 1; }; }
1.1 misha 3586:
3587: fi
1.11 moko 3588: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3589: echo "${ECHO_T}$ac_cv_host" >&6
1.1 misha 3590: host=$ac_cv_host
1.11 moko 3591: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3592: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3593: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 misha 3594:
3595:
1.8 moko 3596: # Backslashify metacharacters that are still active within
3597: # double-quoted strings.
3598: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3599:
3600: # Same as above, but do not quote variable references.
3601: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3602:
3603: # Sed substitution to delay expansion of an escaped shell variable in a
3604: # double_quote_subst'ed string.
3605: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3606:
3607: # Sed substitution to delay expansion of an escaped single quote.
3608: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 3609:
1.8 moko 3610: # Sed substitution to avoid accidental globbing in evaled expressions
3611: no_glob_subst='s/\*/\\\*/g'
1.1 misha 3612:
1.8 moko 3613: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3614: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3615: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3616:
1.11 moko 3617: echo "$as_me:$LINENO: checking how to print strings" >&5
3618: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
1.8 moko 3619: # Test print first, because it will be a builtin if present.
3620: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3621: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3622: ECHO='print -r --'
3623: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3624: ECHO='printf %s\n'
1.1 misha 3625: else
1.8 moko 3626: # Use this function as a fallback that always works.
3627: func_fallback_echo ()
3628: {
3629: eval 'cat <<_LTECHO_EOF
3630: $1
3631: _LTECHO_EOF'
3632: }
3633: ECHO='func_fallback_echo'
1.1 misha 3634: fi
1.8 moko 3635:
3636: # func_echo_all arg...
3637: # Invoke $ECHO with all args, space-separated.
3638: func_echo_all ()
3639: {
3640: $ECHO ""
3641: }
3642:
3643: case "$ECHO" in
1.11 moko 3644: printf*) echo "$as_me:$LINENO: result: printf" >&5
3645: echo "${ECHO_T}printf" >&6 ;;
3646: print*) echo "$as_me:$LINENO: result: print -r" >&5
3647: echo "${ECHO_T}print -r" >&6 ;;
3648: *) echo "$as_me:$LINENO: result: cat" >&5
3649: echo "${ECHO_T}cat" >&6 ;;
1.8 moko 3650: esac
3651:
3652:
3653:
3654:
3655:
3656:
3657:
3658:
3659:
3660:
3661:
3662:
3663:
3664:
1.11 moko 3665: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3666: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3667: if test "${lt_cv_path_SED+set}" = set; then
3668: echo $ECHO_N "(cached) $ECHO_C" >&6
3669: else
3670: # Loop through the user's path and test for sed and gsed.
3671: # Then use that list of sed's as ones to test for truncation.
3672: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 3673: for as_dir in $PATH
3674: do
3675: IFS=$as_save_IFS
3676: test -z "$as_dir" && as_dir=.
1.11 moko 3677: for lt_ac_prog in sed gsed; do
1.8 moko 3678: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 3679: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3680: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3681: fi
1.8 moko 3682: done
3683: done
1.11 moko 3684: done
1.8 moko 3685: IFS=$as_save_IFS
1.11 moko 3686: lt_ac_max=0
3687: lt_ac_count=0
3688: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3689: # along with /bin/sed that truncates output.
3690: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3691: test ! -f $lt_ac_sed && continue
3692: cat /dev/null > conftest.in
3693: lt_ac_count=0
3694: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3695: # Check for GNU sed and select it if it is found.
3696: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3697: lt_cv_path_SED=$lt_ac_sed
3698: break
1.8 moko 3699: fi
1.11 moko 3700: while true; do
3701: cat conftest.in conftest.in >conftest.tmp
3702: mv conftest.tmp conftest.in
3703: cp conftest.in conftest.nl
3704: echo >>conftest.nl
3705: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3706: cmp -s conftest.out conftest.nl || break
3707: # 10000 chars as input seems more than enough
3708: test $lt_ac_count -gt 10 && break
3709: lt_ac_count=`expr $lt_ac_count + 1`
3710: if test $lt_ac_count -gt $lt_ac_max; then
3711: lt_ac_max=$lt_ac_count
3712: lt_cv_path_SED=$lt_ac_sed
3713: fi
3714: done
3715: done
3716:
1.10 moko 3717: fi
1.8 moko 3718:
1.11 moko 3719: SED=$lt_cv_path_SED
3720:
3721: echo "$as_me:$LINENO: result: $SED" >&5
3722: echo "${ECHO_T}$SED" >&6
1.8 moko 3723:
3724: test -z "$SED" && SED=sed
3725: Xsed="$SED -e 1s/^X//"
3726:
3727:
3728:
3729:
3730:
3731:
3732:
3733:
3734:
3735:
3736:
1.11 moko 3737: echo "$as_me:$LINENO: checking for egrep" >&5
3738: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3739: if test "${ac_cv_prog_egrep+set}" = set; then
3740: echo $ECHO_N "(cached) $ECHO_C" >&6
3741: else
3742: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3743: then ac_cv_prog_egrep='grep -E'
3744: else ac_cv_prog_egrep='egrep'
1.8 moko 3745: fi
3746: fi
1.11 moko 3747: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3748: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3749: EGREP=$ac_cv_prog_egrep
1.8 moko 3750:
3751:
1.11 moko 3752: echo "$as_me:$LINENO: checking for fgrep" >&5
3753: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3754: if test "${ac_cv_prog_fgrep+set}" = set; then
3755: echo $ECHO_N "(cached) $ECHO_C" >&6
3756: else
3757: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3758: then ac_cv_prog_fgrep='grep -F'
3759: else ac_cv_prog_fgrep='fgrep'
1.8 moko 3760: fi
3761: fi
1.11 moko 3762: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3763: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3764: FGREP=$ac_cv_prog_fgrep
1.8 moko 3765:
3766:
3767: test -z "$GREP" && GREP=grep
3768:
3769:
3770:
3771:
3772:
3773:
3774:
3775:
3776:
3777:
3778:
3779:
3780:
3781:
3782:
3783:
3784:
3785:
3786:
1.11 moko 3787: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3788: if test "${with_gnu_ld+set}" = set; then
3789: withval="$with_gnu_ld"
3790: test "$withval" = no || with_gnu_ld=yes
1.8 moko 3791: else
3792: with_gnu_ld=no
1.11 moko 3793: fi;
1.8 moko 3794: ac_prog=ld
3795: if test "$GCC" = yes; then
3796: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 3797: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3798: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 3799: case $host in
3800: *-*-mingw*)
3801: # gcc leaves a trailing carriage return which upsets mingw
3802: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3803: *)
3804: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3805: esac
3806: case $ac_prog in
3807: # Accept absolute paths.
3808: [\\/]* | ?:[\\/]*)
3809: re_direlt='/[^/][^/]*/\.\./'
3810: # Canonicalize the pathname of ld
3811: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3812: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3813: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3814: done
3815: test -z "$LD" && LD="$ac_prog"
3816: ;;
3817: "")
3818: # If it fails, then pretend we aren't using GCC.
3819: ac_prog=ld
3820: ;;
3821: *)
3822: # If it is relative, then search for the first ld in PATH.
3823: with_gnu_ld=unknown
3824: ;;
3825: esac
3826: elif test "$with_gnu_ld" = yes; then
1.11 moko 3827: echo "$as_me:$LINENO: checking for GNU ld" >&5
3828: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 3829: else
1.11 moko 3830: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 3832: fi
1.11 moko 3833: if test "${lt_cv_path_LD+set}" = set; then
3834: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3835: else
3836: if test -z "$LD"; then
1.8 moko 3837: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 3838: for ac_dir in $PATH; do
1.8 moko 3839: IFS="$lt_save_ifs"
1.1 misha 3840: test -z "$ac_dir" && ac_dir=.
3841: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842: lt_cv_path_LD="$ac_dir/$ac_prog"
3843: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 3844: # but apparently some variants of GNU ld only accept -v.
1.1 misha 3845: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 3846: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3847: *GNU* | *'with BFD'*)
1.1 misha 3848: test "$with_gnu_ld" != no && break
1.8 moko 3849: ;;
3850: *)
1.1 misha 3851: test "$with_gnu_ld" != yes && break
1.8 moko 3852: ;;
3853: esac
1.1 misha 3854: fi
3855: done
1.8 moko 3856: IFS="$lt_save_ifs"
1.1 misha 3857: else
3858: lt_cv_path_LD="$LD" # Let the user override the test with a path.
3859: fi
3860: fi
3861:
3862: LD="$lt_cv_path_LD"
3863: if test -n "$LD"; then
1.11 moko 3864: echo "$as_me:$LINENO: result: $LD" >&5
3865: echo "${ECHO_T}$LD" >&6
1.1 misha 3866: else
1.11 moko 3867: echo "$as_me:$LINENO: result: no" >&5
3868: echo "${ECHO_T}no" >&6
1.1 misha 3869: fi
1.11 moko 3870: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3871: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3872: { (exit 1); exit 1; }; }
3873: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3874: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3875: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3876: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3877: else
1.8 moko 3878: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3879: case `$LD -v 2>&1 </dev/null` in
3880: *GNU* | *'with BFD'*)
1.1 misha 3881: lt_cv_prog_gnu_ld=yes
1.8 moko 3882: ;;
3883: *)
1.1 misha 3884: lt_cv_prog_gnu_ld=no
1.8 moko 3885: ;;
3886: esac
1.1 misha 3887: fi
1.11 moko 3888: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3889: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.1 misha 3890: with_gnu_ld=$lt_cv_prog_gnu_ld
3891:
3892:
3893:
1.8 moko 3894:
3895:
3896:
3897:
3898:
3899:
1.11 moko 3900: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3901: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3902: if test "${lt_cv_path_NM+set}" = set; then
3903: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3904: else
3905: if test -n "$NM"; then
3906: # Let the user override the test.
3907: lt_cv_path_NM="$NM"
3908: else
1.8 moko 3909: lt_nm_to_check="${ac_tool_prefix}nm"
3910: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3911: lt_nm_to_check="$lt_nm_to_check nm"
3912: fi
3913: for lt_tmp_nm in $lt_nm_to_check; do
3914: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3915: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3916: IFS="$lt_save_ifs"
3917: test -z "$ac_dir" && ac_dir=.
3918: tmp_nm="$ac_dir/$lt_tmp_nm"
3919: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3920: # Check to see if the nm accepts a BSD-compat flag.
3921: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3922: # nm: unknown option "B" ignored
3923: # Tru64's nm complains that /dev/null is an invalid object file
3924: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3925: */dev/null* | *'Invalid file or object type'*)
3926: lt_cv_path_NM="$tmp_nm -B"
3927: break
3928: ;;
3929: *)
3930: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3931: */dev/null*)
3932: lt_cv_path_NM="$tmp_nm -p"
3933: break
3934: ;;
3935: *)
3936: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3937: continue # so that we can try to find one that supports BSD flags
3938: ;;
3939: esac
3940: ;;
3941: esac
1.1 misha 3942: fi
1.8 moko 3943: done
3944: IFS="$lt_save_ifs"
1.1 misha 3945: done
1.8 moko 3946: : ${lt_cv_path_NM=no}
1.1 misha 3947: fi
3948: fi
1.11 moko 3949: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3950: echo "${ECHO_T}$lt_cv_path_NM" >&6
1.8 moko 3951: if test "$lt_cv_path_NM" != "no"; then
3952: NM="$lt_cv_path_NM"
3953: else
3954: # Didn't find any BSD compatible name lister, look for dumpbin.
3955: if test -n "$DUMPBIN"; then :
3956: # Let the user override the test.
3957: else
3958: if test -n "$ac_tool_prefix"; then
3959: for ac_prog in dumpbin "link -dump"
3960: do
3961: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3962: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 3963: echo "$as_me:$LINENO: checking for $ac_word" >&5
3964: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3966: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3967: else
1.8 moko 3968: if test -n "$DUMPBIN"; then
3969: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3970: else
1.1 misha 3971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972: for as_dir in $PATH
3973: do
3974: IFS=$as_save_IFS
3975: test -z "$as_dir" && as_dir=.
1.11 moko 3976: for ac_exec_ext in '' $ac_executable_extensions; do
3977: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 3978: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.11 moko 3979: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 3980: break 2
3981: fi
3982: done
1.11 moko 3983: done
3984:
1.8 moko 3985: fi
3986: fi
3987: DUMPBIN=$ac_cv_prog_DUMPBIN
3988: if test -n "$DUMPBIN"; then
1.11 moko 3989: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3990: echo "${ECHO_T}$DUMPBIN" >&6
1.8 moko 3991: else
1.11 moko 3992: echo "$as_me:$LINENO: result: no" >&5
3993: echo "${ECHO_T}no" >&6
1.8 moko 3994: fi
1.1 misha 3995:
1.8 moko 3996: test -n "$DUMPBIN" && break
1.1 misha 3997: done
1.8 moko 3998: fi
3999: if test -z "$DUMPBIN"; then
4000: ac_ct_DUMPBIN=$DUMPBIN
4001: for ac_prog in dumpbin "link -dump"
4002: do
4003: # Extract the first word of "$ac_prog", so it can be a program name with args.
4004: set dummy $ac_prog; ac_word=$2
1.11 moko 4005: echo "$as_me:$LINENO: checking for $ac_word" >&5
4006: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4008: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4009: else
4010: if test -n "$ac_ct_DUMPBIN"; then
4011: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4012: else
4013: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014: for as_dir in $PATH
4015: do
4016: IFS=$as_save_IFS
4017: test -z "$as_dir" && as_dir=.
1.11 moko 4018: for ac_exec_ext in '' $ac_executable_extensions; do
4019: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4020: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.11 moko 4021: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4022: break 2
4023: fi
4024: done
1.11 moko 4025: done
1.1 misha 4026:
4027: fi
1.8 moko 4028: fi
4029: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4030: if test -n "$ac_ct_DUMPBIN"; then
1.11 moko 4031: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4032: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.1 misha 4033: else
1.11 moko 4034: echo "$as_me:$LINENO: result: no" >&5
4035: echo "${ECHO_T}no" >&6
1.1 misha 4036: fi
4037:
1.8 moko 4038: test -n "$ac_ct_DUMPBIN" && break
4039: done
1.11 moko 4040: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.8 moko 4041:
1.11 moko 4042: DUMPBIN=$ac_ct_DUMPBIN
1.1 misha 4043: fi
4044:
1.8 moko 4045: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4046: *COFF*)
4047: DUMPBIN="$DUMPBIN -symbols"
4048: ;;
4049: *)
4050: DUMPBIN=:
4051: ;;
4052: esac
4053: fi
4054:
4055: if test "$DUMPBIN" != ":"; then
4056: NM="$DUMPBIN"
4057: fi
4058: fi
4059: test -z "$NM" && NM=nm
4060:
4061:
4062:
4063:
4064:
4065:
1.11 moko 4066: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4067: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4068: if test "${lt_cv_nm_interface+set}" = set; then
4069: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4070: else
4071: lt_cv_nm_interface="BSD nm"
4072: echo "int some_variable = 0;" > conftest.$ac_ext
4073: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4074: (eval "$ac_compile" 2>conftest.err)
4075: cat conftest.err >&5
4076: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4077: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4078: cat conftest.err >&5
4079: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4080: cat conftest.out >&5
4081: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4082: lt_cv_nm_interface="MS dumpbin"
4083: fi
4084: rm -f conftest*
4085: fi
1.11 moko 4086: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4087: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.8 moko 4088:
1.11 moko 4089: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4090: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1.8 moko 4091: LN_S=$as_ln_s
4092: if test "$LN_S" = "ln -s"; then
1.11 moko 4093: echo "$as_me:$LINENO: result: yes" >&5
4094: echo "${ECHO_T}yes" >&6
1.8 moko 4095: else
1.11 moko 4096: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4097: echo "${ECHO_T}no, using $LN_S" >&6
1.8 moko 4098: fi
4099:
4100: # find the maximum length of command line arguments
1.11 moko 4101: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4102: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4103: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4104: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4105: else
4106: i=0
4107: teststring="ABCD"
4108:
4109: case $build_os in
4110: msdosdjgpp*)
4111: # On DJGPP, this test can blow up pretty badly due to problems in libc
4112: # (any single argument exceeding 2000 bytes causes a buffer overrun
4113: # during glob expansion). Even if it were fixed, the result of this
4114: # check would be larger than it should be.
4115: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4116: ;;
4117:
4118: gnu*)
4119: # Under GNU Hurd, this test is not required because there is
4120: # no limit to the length of command line arguments.
4121: # Libtool will interpret -1 as no limit whatsoever
4122: lt_cv_sys_max_cmd_len=-1;
4123: ;;
4124:
4125: cygwin* | mingw* | cegcc*)
4126: # On Win9x/ME, this test blows up -- it succeeds, but takes
4127: # about 5 minutes as the teststring grows exponentially.
4128: # Worse, since 9x/ME are not pre-emptively multitasking,
4129: # you end up with a "frozen" computer, even though with patience
4130: # the test eventually succeeds (with a max line length of 256k).
4131: # Instead, let's just punt: use the minimum linelength reported by
4132: # all of the supported platforms: 8192 (on NT/2K/XP).
4133: lt_cv_sys_max_cmd_len=8192;
4134: ;;
4135:
4136: mint*)
4137: # On MiNT this can take a long time and run out of memory.
4138: lt_cv_sys_max_cmd_len=8192;
4139: ;;
4140:
4141: amigaos*)
4142: # On AmigaOS with pdksh, this test takes hours, literally.
4143: # So we just punt and use a minimum line length of 8192.
4144: lt_cv_sys_max_cmd_len=8192;
4145: ;;
4146:
4147: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4148: # This has been around since 386BSD, at least. Likely further.
4149: if test -x /sbin/sysctl; then
4150: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4151: elif test -x /usr/sbin/sysctl; then
4152: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4153: else
4154: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4155: fi
4156: # And add a safety zone
4157: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4158: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4159: ;;
4160:
4161: interix*)
4162: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4163: lt_cv_sys_max_cmd_len=196608
4164: ;;
4165:
4166: os2*)
4167: # The test takes a long time on OS/2.
4168: lt_cv_sys_max_cmd_len=8192
4169: ;;
4170:
4171: osf*)
4172: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4173: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4174: # nice to cause kernel panics so lets avoid the loop below.
4175: # First set a reasonable default.
4176: lt_cv_sys_max_cmd_len=16384
4177: #
4178: if test -x /sbin/sysconfig; then
4179: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4180: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4181: esac
4182: fi
4183: ;;
4184: sco3.2v5*)
4185: lt_cv_sys_max_cmd_len=102400
4186: ;;
4187: sysv5* | sco5v6* | sysv4.2uw2*)
4188: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4189: if test -n "$kargmax"; then
4190: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4191: else
4192: lt_cv_sys_max_cmd_len=32768
4193: fi
4194: ;;
4195: *)
4196: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4197: if test -n "$lt_cv_sys_max_cmd_len"; then
4198: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4199: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4200: else
4201: # Make teststring a little bigger before we do anything with it.
4202: # a 1K string should be a reasonable start.
4203: for i in 1 2 3 4 5 6 7 8 ; do
4204: teststring=$teststring$teststring
4205: done
4206: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4207: # If test is not a shell built-in, we'll probably end up computing a
4208: # maximum length that is only half of the actual maximum length, but
4209: # we can't tell.
4210: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4211: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4212: test $i != 17 # 1/2 MB should be enough
4213: do
4214: i=`expr $i + 1`
4215: teststring=$teststring$teststring
4216: done
4217: # Only check the string length outside the loop.
4218: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4219: teststring=
4220: # Add a significant safety factor because C++ compilers can tack on
4221: # massive amounts of additional arguments before passing them to the
4222: # linker. It appears as though 1/2 is a usable value.
4223: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4224: fi
4225: ;;
4226: esac
4227:
4228: fi
4229:
4230: if test -n $lt_cv_sys_max_cmd_len ; then
1.11 moko 4231: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4232: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
1.8 moko 4233: else
1.11 moko 4234: echo "$as_me:$LINENO: result: none" >&5
4235: echo "${ECHO_T}none" >&6
1.8 moko 4236: fi
4237: max_cmd_len=$lt_cv_sys_max_cmd_len
4238:
4239:
4240:
4241:
4242:
4243:
4244: : ${CP="cp -f"}
4245: : ${MV="mv -f"}
4246: : ${RM="rm -f"}
4247:
1.11 moko 4248: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4249: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1.8 moko 4250: # Try some XSI features
4251: xsi_shell=no
4252: ( _lt_dummy="a/b/c"
4253: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4254: = c,a/b,b/c, \
4255: && eval 'test $(( 1 + 1 )) -eq 2 \
4256: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4257: && xsi_shell=yes
1.11 moko 4258: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4259: echo "${ECHO_T}$xsi_shell" >&6
1.8 moko 4260:
4261:
1.11 moko 4262: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4263: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1.8 moko 4264: lt_shell_append=no
4265: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4266: >/dev/null 2>&1 \
4267: && lt_shell_append=yes
1.11 moko 4268: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4269: echo "${ECHO_T}$lt_shell_append" >&6
1.8 moko 4270:
4271:
4272: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4273: lt_unset=unset
4274: else
4275: lt_unset=false
4276: fi
4277:
4278:
4279:
4280:
4281:
4282: # test EBCDIC or ASCII
4283: case `echo X|tr X '\101'` in
4284: A) # ASCII based system
4285: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4286: lt_SP2NL='tr \040 \012'
4287: lt_NL2SP='tr \015\012 \040\040'
4288: ;;
4289: *) # EBCDIC based system
4290: lt_SP2NL='tr \100 \n'
4291: lt_NL2SP='tr \r\n \100\100'
4292: ;;
4293: esac
4294:
4295:
4296:
4297:
4298:
4299:
4300:
4301:
4302:
1.11 moko 4303: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4304: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4305: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4306: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4307: else
4308: case $host in
4309: *-*-mingw* )
4310: case $build in
4311: *-*-mingw* ) # actually msys
4312: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4313: ;;
4314: *-*-cygwin* )
4315: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4316: ;;
4317: * ) # otherwise, assume *nix
4318: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4319: ;;
4320: esac
4321: ;;
4322: *-*-cygwin* )
4323: case $build in
4324: *-*-mingw* ) # actually msys
4325: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4326: ;;
4327: *-*-cygwin* )
4328: lt_cv_to_host_file_cmd=func_convert_file_noop
4329: ;;
4330: * ) # otherwise, assume *nix
4331: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4332: ;;
4333: esac
4334: ;;
4335: * ) # unhandled hosts (and "normal" native builds)
4336: lt_cv_to_host_file_cmd=func_convert_file_noop
4337: ;;
4338: esac
4339:
4340: fi
4341:
4342: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.11 moko 4343: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4344: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
1.8 moko 4345:
4346:
4347:
4348:
4349:
1.11 moko 4350: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4351: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4352: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4353: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4354: else
4355: #assume ordinary cross tools, or native build.
4356: lt_cv_to_tool_file_cmd=func_convert_file_noop
4357: case $host in
4358: *-*-mingw* )
4359: case $build in
4360: *-*-mingw* ) # actually msys
4361: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4362: ;;
4363: esac
4364: ;;
4365: esac
4366:
4367: fi
4368:
4369: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.11 moko 4370: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4371: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
1.8 moko 4372:
4373:
4374:
4375:
4376:
1.11 moko 4377: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4378: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4379: if test "${lt_cv_ld_reload_flag+set}" = set; then
4380: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4381: else
4382: lt_cv_ld_reload_flag='-r'
4383: fi
1.11 moko 4384: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4385: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1.8 moko 4386: reload_flag=$lt_cv_ld_reload_flag
4387: case $reload_flag in
4388: "" | " "*) ;;
4389: *) reload_flag=" $reload_flag" ;;
4390: esac
4391: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4392: case $host_os in
4393: cygwin* | mingw* | pw32* | cegcc*)
4394: if test "$GCC" != yes; then
4395: reload_cmds=false
4396: fi
4397: ;;
4398: darwin*)
4399: if test "$GCC" = yes; then
4400: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4401: else
4402: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4403: fi
4404: ;;
4405: esac
4406:
4407:
4408:
4409:
4410:
4411:
4412:
4413:
4414:
4415: if test -n "$ac_tool_prefix"; then
4416: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4417: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.11 moko 4418: echo "$as_me:$LINENO: checking for $ac_word" >&5
4419: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4421: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4422: else
4423: if test -n "$OBJDUMP"; then
4424: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4425: else
4426: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427: for as_dir in $PATH
4428: do
4429: IFS=$as_save_IFS
4430: test -z "$as_dir" && as_dir=.
1.11 moko 4431: for ac_exec_ext in '' $ac_executable_extensions; do
4432: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4433: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.11 moko 4434: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4435: break 2
4436: fi
4437: done
1.11 moko 4438: done
1.8 moko 4439:
4440: fi
4441: fi
4442: OBJDUMP=$ac_cv_prog_OBJDUMP
4443: if test -n "$OBJDUMP"; then
1.11 moko 4444: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4445: echo "${ECHO_T}$OBJDUMP" >&6
1.8 moko 4446: else
1.11 moko 4447: echo "$as_me:$LINENO: result: no" >&5
4448: echo "${ECHO_T}no" >&6
1.8 moko 4449: fi
4450:
4451: fi
4452: if test -z "$ac_cv_prog_OBJDUMP"; then
4453: ac_ct_OBJDUMP=$OBJDUMP
4454: # Extract the first word of "objdump", so it can be a program name with args.
4455: set dummy objdump; ac_word=$2
1.11 moko 4456: echo "$as_me:$LINENO: checking for $ac_word" >&5
4457: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4459: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4460: else
4461: if test -n "$ac_ct_OBJDUMP"; then
4462: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4463: else
4464: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465: for as_dir in $PATH
4466: do
4467: IFS=$as_save_IFS
4468: test -z "$as_dir" && as_dir=.
1.11 moko 4469: for ac_exec_ext in '' $ac_executable_extensions; do
4470: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4471: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.11 moko 4472: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4473: break 2
4474: fi
4475: done
1.11 moko 4476: done
1.8 moko 4477:
1.11 moko 4478: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
1.8 moko 4479: fi
4480: fi
4481: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4482: if test -n "$ac_ct_OBJDUMP"; then
1.11 moko 4483: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4484: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
1.8 moko 4485: else
1.11 moko 4486: echo "$as_me:$LINENO: result: no" >&5
4487: echo "${ECHO_T}no" >&6
1.8 moko 4488: fi
4489:
1.11 moko 4490: OBJDUMP=$ac_ct_OBJDUMP
1.8 moko 4491: else
4492: OBJDUMP="$ac_cv_prog_OBJDUMP"
4493: fi
4494:
4495: test -z "$OBJDUMP" && OBJDUMP=objdump
4496:
4497:
4498:
4499:
4500:
4501:
1.11 moko 4502: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4503: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4504: if test "${lt_cv_deplibs_check_method+set}" = set; then
4505: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4506: else
4507: lt_cv_file_magic_cmd='$MAGIC_CMD'
4508: lt_cv_file_magic_test_file=
4509: lt_cv_deplibs_check_method='unknown'
4510: # Need to set the preceding variable on all platforms that support
4511: # interlibrary dependencies.
4512: # 'none' -- dependencies not supported.
4513: # `unknown' -- same as none, but documents that we really don't know.
4514: # 'pass_all' -- all dependencies passed with no checks.
4515: # 'test_compile' -- check by making test program.
4516: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 4517: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 4518: # If you have `file' or equivalent on your system and you're not sure
4519: # whether `pass_all' will *always* work, you probably want this one.
4520:
4521: case $host_os in
1.8 moko 4522: aix[4-9]*)
1.1 misha 4523: lt_cv_deplibs_check_method=pass_all
4524: ;;
4525:
4526: beos*)
4527: lt_cv_deplibs_check_method=pass_all
4528: ;;
4529:
1.8 moko 4530: bsdi[45]*)
1.1 misha 4531: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4532: lt_cv_file_magic_cmd='/usr/bin/file -L'
4533: lt_cv_file_magic_test_file=/shlib/libc.so
4534: ;;
4535:
1.8 moko 4536: cygwin*)
4537: # func_win32_libid is a shell function defined in ltmain.sh
4538: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4539: lt_cv_file_magic_cmd='func_win32_libid'
4540: ;;
4541:
4542: mingw* | pw32*)
4543: # Base MSYS/MinGW do not provide the 'file' command needed by
4544: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4545: # unless we find 'file', for example because we are cross-compiling.
4546: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4547: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4548: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4549: lt_cv_file_magic_cmd='func_win32_libid'
4550: else
4551: # Keep this pattern in sync with the one in func_win32_libid.
4552: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4553: lt_cv_file_magic_cmd='$OBJDUMP -f'
4554: fi
4555: ;;
4556:
4557: cegcc*)
4558: # use the weaker test based on 'objdump'. See mingw*.
4559: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 4560: lt_cv_file_magic_cmd='$OBJDUMP -f'
4561: ;;
4562:
4563: darwin* | rhapsody*)
1.8 moko 4564: lt_cv_deplibs_check_method=pass_all
1.1 misha 4565: ;;
4566:
1.8 moko 4567: freebsd* | dragonfly*)
4568: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 4569: case $host_cpu in
4570: i*86 )
4571: # Not sure whether the presence of OpenBSD here was a mistake.
4572: # Let's accept both of them until this is cleared up.
1.8 moko 4573: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 4574: lt_cv_file_magic_cmd=/usr/bin/file
4575: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4576: ;;
4577: esac
4578: else
4579: lt_cv_deplibs_check_method=pass_all
4580: fi
4581: ;;
4582:
4583: gnu*)
4584: lt_cv_deplibs_check_method=pass_all
4585: ;;
4586:
1.8 moko 4587: haiku*)
4588: lt_cv_deplibs_check_method=pass_all
1.1 misha 4589: ;;
4590:
1.8 moko 4591: hpux10.20* | hpux11*)
4592: lt_cv_file_magic_cmd=/usr/bin/file
4593: case $host_cpu in
4594: ia64*)
4595: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4596: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4597: ;;
4598: hppa*64*)
4599: 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]'
4600: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 4601: ;;
4602: *)
1.8 moko 4603: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4604: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 4605: ;;
4606: esac
1.8 moko 4607: ;;
4608:
4609: interix[3-9]*)
4610: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4611: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4612: ;;
4613:
4614: irix5* | irix6* | nonstopux*)
4615: case $LD in
4616: *-32|*"-32 ") libmagic=32-bit;;
4617: *-n32|*"-n32 ") libmagic=N32;;
4618: *-64|*"-64 ") libmagic=64-bit;;
4619: *) libmagic=never-match;;
4620: esac
1.1 misha 4621: lt_cv_deplibs_check_method=pass_all
4622: ;;
4623:
1.8 moko 4624: # This must be glibc/ELF.
4625: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4626: lt_cv_deplibs_check_method=pass_all
1.1 misha 4627: ;;
4628:
4629: netbsd*)
1.8 moko 4630: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4631: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4632: else
1.8 moko 4633: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 4634: fi
4635: ;;
4636:
4637: newos6*)
4638: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4639: lt_cv_file_magic_cmd=/usr/bin/file
4640: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4641: ;;
4642:
1.8 moko 4643: *nto* | *qnx*)
4644: lt_cv_deplibs_check_method=pass_all
4645: ;;
4646:
1.1 misha 4647: openbsd*)
1.8 moko 4648: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4649: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 4650: else
1.8 moko 4651: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4652: fi
4653: ;;
4654:
4655: osf3* | osf4* | osf5*)
4656: lt_cv_deplibs_check_method=pass_all
4657: ;;
4658:
1.8 moko 4659: rdos*)
1.1 misha 4660: lt_cv_deplibs_check_method=pass_all
4661: ;;
4662:
4663: solaris*)
4664: lt_cv_deplibs_check_method=pass_all
4665: ;;
4666:
1.8 moko 4667: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 4668: lt_cv_deplibs_check_method=pass_all
4669: ;;
4670:
1.8 moko 4671: sysv4 | sysv4.3*)
1.1 misha 4672: case $host_vendor in
4673: motorola)
4674: 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]'
4675: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4676: ;;
4677: ncr)
4678: lt_cv_deplibs_check_method=pass_all
4679: ;;
4680: sequent)
4681: lt_cv_file_magic_cmd='/bin/file'
4682: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4683: ;;
4684: sni)
4685: lt_cv_file_magic_cmd='/bin/file'
4686: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4687: lt_cv_file_magic_test_file=/lib/libc.so
4688: ;;
4689: siemens)
4690: lt_cv_deplibs_check_method=pass_all
4691: ;;
1.8 moko 4692: pc)
4693: lt_cv_deplibs_check_method=pass_all
4694: ;;
1.1 misha 4695: esac
4696: ;;
1.8 moko 4697:
4698: tpf*)
4699: lt_cv_deplibs_check_method=pass_all
4700: ;;
1.1 misha 4701: esac
4702:
4703: fi
1.11 moko 4704: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4705: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.8 moko 4706:
4707: file_magic_glob=
4708: want_nocaseglob=no
4709: if test "$build" = "$host"; then
4710: case $host_os in
4711: mingw* | pw32*)
4712: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4713: want_nocaseglob=yes
4714: else
4715: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4716: fi
4717: ;;
4718: esac
4719: fi
4720:
1.1 misha 4721: file_magic_cmd=$lt_cv_file_magic_cmd
4722: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 4723: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4724:
4725:
1.1 misha 4726:
4727:
4728:
4729:
4730:
4731:
4732:
4733:
1.8 moko 4734:
4735:
4736:
4737:
4738:
4739:
4740:
4741:
4742:
4743:
4744:
4745:
4746: if test -n "$ac_tool_prefix"; then
4747: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4748: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.11 moko 4749: echo "$as_me:$LINENO: checking for $ac_word" >&5
4750: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4752: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4753: else
4754: if test -n "$DLLTOOL"; then
4755: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4756: else
4757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758: for as_dir in $PATH
4759: do
4760: IFS=$as_save_IFS
4761: test -z "$as_dir" && as_dir=.
1.11 moko 4762: for ac_exec_ext in '' $ac_executable_extensions; do
4763: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4764: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.11 moko 4765: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4766: break 2
4767: fi
4768: done
1.11 moko 4769: done
1.8 moko 4770:
4771: fi
4772: fi
4773: DLLTOOL=$ac_cv_prog_DLLTOOL
4774: if test -n "$DLLTOOL"; then
1.11 moko 4775: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4776: echo "${ECHO_T}$DLLTOOL" >&6
1.8 moko 4777: else
1.11 moko 4778: echo "$as_me:$LINENO: result: no" >&5
4779: echo "${ECHO_T}no" >&6
1.8 moko 4780: fi
4781:
4782: fi
4783: if test -z "$ac_cv_prog_DLLTOOL"; then
4784: ac_ct_DLLTOOL=$DLLTOOL
4785: # Extract the first word of "dlltool", so it can be a program name with args.
4786: set dummy dlltool; ac_word=$2
1.11 moko 4787: echo "$as_me:$LINENO: checking for $ac_word" >&5
4788: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4790: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4791: else
1.8 moko 4792: if test -n "$ac_ct_DLLTOOL"; then
4793: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4794: else
4795: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796: for as_dir in $PATH
4797: do
4798: IFS=$as_save_IFS
4799: test -z "$as_dir" && as_dir=.
1.11 moko 4800: for ac_exec_ext in '' $ac_executable_extensions; do
4801: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4802: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.11 moko 4803: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4804: break 2
4805: fi
4806: done
1.11 moko 4807: done
1.8 moko 4808:
1.11 moko 4809: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
1.8 moko 4810: fi
4811: fi
4812: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4813: if test -n "$ac_ct_DLLTOOL"; then
1.11 moko 4814: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4815: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
1.8 moko 4816: else
1.11 moko 4817: echo "$as_me:$LINENO: result: no" >&5
4818: echo "${ECHO_T}no" >&6
1.8 moko 4819: fi
4820:
1.11 moko 4821: DLLTOOL=$ac_ct_DLLTOOL
1.8 moko 4822: else
4823: DLLTOOL="$ac_cv_prog_DLLTOOL"
4824: fi
4825:
4826: test -z "$DLLTOOL" && DLLTOOL=dlltool
4827:
4828:
4829:
4830:
1.1 misha 4831:
4832:
4833:
1.11 moko 4834: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4835: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4836: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4837: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4838: else
4839: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 4840:
4841: case $host_os in
1.8 moko 4842: cygwin* | mingw* | pw32* | cegcc*)
4843: # two different shell functions defined in ltmain.sh
4844: # decide which to use based on capabilities of $DLLTOOL
4845: case `$DLLTOOL --help 2>&1` in
4846: *--identify-strict*)
4847: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4848: ;;
4849: *)
4850: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4851: ;;
4852: esac
1.1 misha 4853: ;;
1.8 moko 4854: *)
4855: # fallback: assume linklib IS sharedlib
4856: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 4857: ;;
4858: esac
4859:
4860: fi
1.11 moko 4861: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4862: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
1.8 moko 4863: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4864: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 4865:
4866:
4867:
4868:
4869:
4870:
4871:
4872:
1.8 moko 4873: if test -n "$ac_tool_prefix"; then
4874: for ac_prog in ar
4875: do
4876: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4877: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 4878: echo "$as_me:$LINENO: checking for $ac_word" >&5
4879: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4880: if test "${ac_cv_prog_AR+set}" = set; then
4881: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4882: else
4883: if test -n "$AR"; then
4884: ac_cv_prog_AR="$AR" # Let the user override the test.
4885: else
4886: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887: for as_dir in $PATH
4888: do
4889: IFS=$as_save_IFS
4890: test -z "$as_dir" && as_dir=.
1.11 moko 4891: for ac_exec_ext in '' $ac_executable_extensions; do
4892: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4893: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.11 moko 4894: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4895: break 2
1.1 misha 4896: fi
1.8 moko 4897: done
1.11 moko 4898: done
1.1 misha 4899:
4900: fi
4901: fi
1.8 moko 4902: AR=$ac_cv_prog_AR
4903: if test -n "$AR"; then
1.11 moko 4904: echo "$as_me:$LINENO: result: $AR" >&5
4905: echo "${ECHO_T}$AR" >&6
1.1 misha 4906: else
1.11 moko 4907: echo "$as_me:$LINENO: result: no" >&5
4908: echo "${ECHO_T}no" >&6
1.1 misha 4909: fi
4910:
1.8 moko 4911: test -n "$AR" && break
4912: done
1.1 misha 4913: fi
1.8 moko 4914: if test -z "$AR"; then
4915: ac_ct_AR=$AR
4916: for ac_prog in ar
4917: do
4918: # Extract the first word of "$ac_prog", so it can be a program name with args.
4919: set dummy $ac_prog; ac_word=$2
1.11 moko 4920: echo "$as_me:$LINENO: checking for $ac_word" >&5
4921: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4923: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4924: else
1.8 moko 4925: if test -n "$ac_ct_AR"; then
4926: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4927: else
4928: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929: for as_dir in $PATH
1.1 misha 4930: do
1.8 moko 4931: IFS=$as_save_IFS
4932: test -z "$as_dir" && as_dir=.
1.11 moko 4933: for ac_exec_ext in '' $ac_executable_extensions; do
4934: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4935: ac_cv_prog_ac_ct_AR="$ac_prog"
1.11 moko 4936: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4937: break 2
1.1 misha 4938: fi
1.8 moko 4939: done
1.11 moko 4940: done
1.1 misha 4941:
4942: fi
4943: fi
1.8 moko 4944: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4945: if test -n "$ac_ct_AR"; then
1.11 moko 4946: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4947: echo "${ECHO_T}$ac_ct_AR" >&6
1.1 misha 4948: else
1.11 moko 4949: echo "$as_me:$LINENO: result: no" >&5
4950: echo "${ECHO_T}no" >&6
1.1 misha 4951: fi
4952:
1.8 moko 4953: test -n "$ac_ct_AR" && break
1.1 misha 4954: done
1.11 moko 4955: test -n "$ac_ct_AR" || ac_ct_AR="false"
1.8 moko 4956:
1.11 moko 4957: AR=$ac_ct_AR
1.1 misha 4958: fi
4959:
1.8 moko 4960: : ${AR=ar}
4961: : ${AR_FLAGS=cru}
4962:
1.1 misha 4963:
4964:
4965:
4966:
4967:
4968:
4969:
4970:
4971:
4972:
1.11 moko 4973: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4974: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4975: if test "${lt_cv_ar_at_file+set}" = set; then
4976: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4977: else
1.8 moko 4978: lt_cv_ar_at_file=no
1.11 moko 4979: cat >conftest.$ac_ext <<_ACEOF
4980: /* confdefs.h. */
4981: _ACEOF
4982: cat confdefs.h >>conftest.$ac_ext
4983: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 4984: /* end confdefs.h. */
4985:
4986: int
4987: main ()
4988: {
4989:
4990: ;
4991: return 0;
4992: }
4993: _ACEOF
1.11 moko 4994: rm -f conftest.$ac_objext
4995: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996: (eval $ac_compile) 2>conftest.er1
4997: ac_status=$?
4998: grep -v '^ *+' conftest.er1 >conftest.err
4999: rm -f conftest.er1
5000: cat conftest.err >&5
5001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002: (exit $ac_status); } &&
5003: { ac_try='test -z "$ac_c_werror_flag"
5004: || test ! -s conftest.err'
5005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006: (eval $ac_try) 2>&5
5007: ac_status=$?
5008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009: (exit $ac_status); }; } &&
5010: { ac_try='test -s conftest.$ac_objext'
5011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012: (eval $ac_try) 2>&5
5013: ac_status=$?
5014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015: (exit $ac_status); }; }; then
1.8 moko 5016: echo conftest.$ac_objext > conftest.lst
5017: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.11 moko 5018: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5019: (eval $lt_ar_try) 2>&5
5020: ac_status=$?
1.11 moko 5021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022: (exit $ac_status); }
1.8 moko 5023: if test "$ac_status" -eq 0; then
5024: # Ensure the archiver fails upon bogus file names.
5025: rm -f conftest.$ac_objext libconftest.a
1.11 moko 5026: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5027: (eval $lt_ar_try) 2>&5
5028: ac_status=$?
1.11 moko 5029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030: (exit $ac_status); }
1.8 moko 5031: if test "$ac_status" -ne 0; then
5032: lt_cv_ar_at_file=@
5033: fi
5034: fi
5035: rm -f conftest.* libconftest.a
5036:
1.11 moko 5037: else
5038: echo "$as_me: failed program was:" >&5
5039: sed 's/^/| /' conftest.$ac_ext >&5
5040:
1.1 misha 5041: fi
1.11 moko 5042: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 5043:
1.8 moko 5044: fi
1.11 moko 5045: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5046: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.8 moko 5047:
5048: if test "x$lt_cv_ar_at_file" = xno; then
5049: archiver_list_spec=
1.1 misha 5050: else
1.8 moko 5051: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 5052: fi
5053:
5054:
5055:
1.8 moko 5056:
5057:
5058:
5059:
5060: if test -n "$ac_tool_prefix"; then
5061: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5062: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 5063: echo "$as_me:$LINENO: checking for $ac_word" >&5
5064: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065: if test "${ac_cv_prog_STRIP+set}" = set; then
5066: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5067: else
5068: if test -n "$STRIP"; then
5069: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5070: else
5071: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072: for as_dir in $PATH
5073: do
5074: IFS=$as_save_IFS
5075: test -z "$as_dir" && as_dir=.
1.11 moko 5076: for ac_exec_ext in '' $ac_executable_extensions; do
5077: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5078: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 5079: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5080: break 2
5081: fi
5082: done
1.11 moko 5083: done
1.8 moko 5084:
5085: fi
5086: fi
5087: STRIP=$ac_cv_prog_STRIP
5088: if test -n "$STRIP"; then
1.11 moko 5089: echo "$as_me:$LINENO: result: $STRIP" >&5
5090: echo "${ECHO_T}$STRIP" >&6
1.1 misha 5091: else
1.11 moko 5092: echo "$as_me:$LINENO: result: no" >&5
5093: echo "${ECHO_T}no" >&6
1.1 misha 5094: fi
5095:
5096: fi
1.8 moko 5097: if test -z "$ac_cv_prog_STRIP"; then
5098: ac_ct_STRIP=$STRIP
5099: # Extract the first word of "strip", so it can be a program name with args.
5100: set dummy strip; ac_word=$2
1.11 moko 5101: echo "$as_me:$LINENO: checking for $ac_word" >&5
5102: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5104: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5105: else
1.8 moko 5106: if test -n "$ac_ct_STRIP"; then
5107: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 5108: else
1.8 moko 5109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110: for as_dir in $PATH
5111: do
5112: IFS=$as_save_IFS
5113: test -z "$as_dir" && as_dir=.
1.11 moko 5114: for ac_exec_ext in '' $ac_executable_extensions; do
5115: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5116: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 5117: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5118: break 2
5119: fi
5120: done
1.11 moko 5121: done
1.1 misha 5122:
1.11 moko 5123: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 5124: fi
5125: fi
1.8 moko 5126: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5127: if test -n "$ac_ct_STRIP"; then
1.11 moko 5128: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5129: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.8 moko 5130: else
1.11 moko 5131: echo "$as_me:$LINENO: result: no" >&5
5132: echo "${ECHO_T}no" >&6
1.1 misha 5133: fi
5134:
1.11 moko 5135: STRIP=$ac_ct_STRIP
1.8 moko 5136: else
5137: STRIP="$ac_cv_prog_STRIP"
1.1 misha 5138: fi
5139:
1.8 moko 5140: test -z "$STRIP" && STRIP=:
1.1 misha 5141:
5142:
5143:
5144:
5145:
5146:
1.8 moko 5147: if test -n "$ac_tool_prefix"; then
5148: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5149: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.11 moko 5150: echo "$as_me:$LINENO: checking for $ac_word" >&5
5151: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152: if test "${ac_cv_prog_RANLIB+set}" = set; then
5153: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5154: else
1.8 moko 5155: if test -n "$RANLIB"; then
5156: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 5157: else
1.8 moko 5158: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159: for as_dir in $PATH
5160: do
5161: IFS=$as_save_IFS
5162: test -z "$as_dir" && as_dir=.
1.11 moko 5163: for ac_exec_ext in '' $ac_executable_extensions; do
5164: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5165: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.11 moko 5166: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5167: break 2
5168: fi
5169: done
1.11 moko 5170: done
1.1 misha 5171:
5172: fi
5173: fi
1.8 moko 5174: RANLIB=$ac_cv_prog_RANLIB
5175: if test -n "$RANLIB"; then
1.11 moko 5176: echo "$as_me:$LINENO: result: $RANLIB" >&5
5177: echo "${ECHO_T}$RANLIB" >&6
1.8 moko 5178: else
1.11 moko 5179: echo "$as_me:$LINENO: result: no" >&5
5180: echo "${ECHO_T}no" >&6
1.8 moko 5181: fi
1.1 misha 5182:
5183: fi
1.8 moko 5184: if test -z "$ac_cv_prog_RANLIB"; then
5185: ac_ct_RANLIB=$RANLIB
5186: # Extract the first word of "ranlib", so it can be a program name with args.
5187: set dummy ranlib; ac_word=$2
1.11 moko 5188: echo "$as_me:$LINENO: checking for $ac_word" >&5
5189: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5191: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5192: else
5193: if test -n "$ac_ct_RANLIB"; then
5194: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5195: else
5196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197: for as_dir in $PATH
5198: do
5199: IFS=$as_save_IFS
5200: test -z "$as_dir" && as_dir=.
1.11 moko 5201: for ac_exec_ext in '' $ac_executable_extensions; do
5202: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5203: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.11 moko 5204: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5205: break 2
5206: fi
5207: done
1.11 moko 5208: done
1.1 misha 5209:
1.11 moko 5210: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.8 moko 5211: fi
1.1 misha 5212: fi
1.8 moko 5213: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5214: if test -n "$ac_ct_RANLIB"; then
1.11 moko 5215: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5216: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1 misha 5217: else
1.11 moko 5218: echo "$as_me:$LINENO: result: no" >&5
5219: echo "${ECHO_T}no" >&6
1.1 misha 5220: fi
5221:
1.11 moko 5222: RANLIB=$ac_ct_RANLIB
1.1 misha 5223: else
1.8 moko 5224: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 5225: fi
5226:
1.8 moko 5227: test -z "$RANLIB" && RANLIB=:
5228:
5229:
5230:
5231:
5232:
5233:
5234: # Determine commands to create old-style static archives.
5235: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5236: old_postinstall_cmds='chmod 644 $oldlib'
5237: old_postuninstall_cmds=
1.1 misha 5238:
1.8 moko 5239: if test -n "$RANLIB"; then
5240: case $host_os in
5241: openbsd*)
5242: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 5243: ;;
1.8 moko 5244: *)
5245: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 5246: ;;
1.8 moko 5247: esac
5248: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5249: fi
5250:
5251: case $host_os in
5252: darwin*)
5253: lock_old_archive_extraction=yes ;;
5254: *)
5255: lock_old_archive_extraction=no ;;
1.1 misha 5256: esac
5257:
5258:
5259:
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
5272:
5273:
5274:
5275:
5276:
5277:
5278:
5279:
5280:
5281:
5282:
5283:
5284:
5285:
5286:
5287:
5288:
5289:
5290:
1.8 moko 5291:
5292:
5293:
5294:
5295:
5296: # If no C compiler was specified, use CC.
5297: LTCC=${LTCC-"$CC"}
5298:
5299: # If no C compiler flags were specified, use CFLAGS.
5300: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5301:
5302: # Allow CC to be a program name with arguments.
5303: compiler=$CC
5304:
5305:
5306: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.11 moko 5307: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5308: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5309: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5310: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5311: else
5312:
1.8 moko 5313: # These are sane defaults that work on at least a few old systems.
5314: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 5315:
1.8 moko 5316: # Character class describing NM global symbol codes.
5317: symcode='[BCDEGRST]'
1.1 misha 5318:
1.8 moko 5319: # Regexp to match symbols that can be accessed directly from C.
5320: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 5321:
1.8 moko 5322: # Define system-specific variables.
5323: case $host_os in
5324: aix*)
5325: symcode='[BCDT]'
5326: ;;
5327: cygwin* | mingw* | pw32* | cegcc*)
5328: symcode='[ABCDGISTW]'
5329: ;;
5330: hpux*)
5331: if test "$host_cpu" = ia64; then
5332: symcode='[ABCDEGRST]'
5333: fi
5334: ;;
5335: irix* | nonstopux*)
5336: symcode='[BCDEGRST]'
5337: ;;
5338: osf*)
5339: symcode='[BCDEGQRST]'
5340: ;;
5341: solaris*)
5342: symcode='[BDRT]'
5343: ;;
5344: sco3.2v5*)
5345: symcode='[DT]'
5346: ;;
5347: sysv4.2uw2*)
5348: symcode='[DT]'
5349: ;;
5350: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5351: symcode='[ABDT]'
5352: ;;
5353: sysv4)
5354: symcode='[DFNSTU]'
5355: ;;
5356: esac
5357:
5358: # If we're using GNU nm, then use its standard symbol codes.
5359: case `$NM -V 2>&1` in
5360: *GNU* | *'with BFD'*)
5361: symcode='[ABCDGIRSTW]' ;;
5362: esac
5363:
5364: # Transform an extracted symbol line into a proper C declaration.
5365: # Some systems (esp. on ia64) link data and code symbols differently,
5366: # so use this general approach.
5367: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5368:
5369: # Transform an extracted symbol line into symbol name and symbol address
5370: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5371: 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'"
5372:
5373: # Handle CRLF in mingw tool chain
5374: opt_cr=
5375: case $build_os in
5376: mingw*)
5377: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5378: ;;
5379: esac
5380:
5381: # Try without a prefix underscore, then with it.
5382: for ac_symprfx in "" "_"; do
5383:
5384: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5385: symxfrm="\\1 $ac_symprfx\\2 \\2"
5386:
5387: # Write the raw and C identifiers.
5388: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5389: # Fake it for dumpbin and say T for any non-static function
5390: # and D for any global variable.
5391: # Also find C++ and __fastcall symbols from MSVC++,
5392: # which start with @ or ?.
5393: lt_cv_sys_global_symbol_pipe="$AWK '"\
5394: " {last_section=section; section=\$ 3};"\
5395: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5396: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5397: " \$ 0!~/External *\|/{next};"\
5398: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5399: " {if(hide[section]) next};"\
5400: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5401: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5402: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5403: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5404: " ' prfx=^$ac_symprfx"
5405: else
5406: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5407: fi
5408: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5409:
5410: # Check to see that the pipe works correctly.
5411: pipe_works=no
1.1 misha 5412:
1.8 moko 5413: rm -f conftest*
5414: cat > conftest.$ac_ext <<_LT_EOF
5415: #ifdef __cplusplus
5416: extern "C" {
5417: #endif
5418: char nm_test_var;
5419: void nm_test_func(void);
5420: void nm_test_func(void){}
5421: #ifdef __cplusplus
1.1 misha 5422: }
1.8 moko 5423: #endif
5424: int main(){nm_test_var='a';nm_test_func();return(0);}
5425: _LT_EOF
5426:
1.11 moko 5427: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5428: (eval $ac_compile) 2>&5
1.1 misha 5429: ac_status=$?
1.11 moko 5430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431: (exit $ac_status); }; then
1.8 moko 5432: # Now try to grab the symbols.
5433: nlist=conftest.nm
1.11 moko 5434: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
1.8 moko 5435: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 5436: ac_status=$?
1.11 moko 5437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438: (exit $ac_status); } && test -s "$nlist"; then
1.8 moko 5439: # Try sorting and uniquifying the output.
5440: if sort "$nlist" | uniq > "$nlist"T; then
5441: mv -f "$nlist"T "$nlist"
5442: else
5443: rm -f "$nlist"T
5444: fi
5445:
5446: # Make sure that we snagged all the symbols we need.
5447: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5448: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5449: cat <<_LT_EOF > conftest.$ac_ext
5450: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5451: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5452: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5453: relocations are performed -- see ld's documentation on pseudo-relocs. */
5454: # define LT_DLSYM_CONST
5455: #elif defined(__osf__)
5456: /* This system does not cope well with relocations in const data. */
5457: # define LT_DLSYM_CONST
5458: #else
5459: # define LT_DLSYM_CONST const
5460: #endif
5461:
5462: #ifdef __cplusplus
5463: extern "C" {
5464: #endif
5465:
5466: _LT_EOF
5467: # Now generate the symbol file.
5468: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5469:
5470: cat <<_LT_EOF >> conftest.$ac_ext
5471:
5472: /* The mapping between symbol names and symbols. */
5473: LT_DLSYM_CONST struct {
5474: const char *name;
5475: void *address;
5476: }
5477: lt__PROGRAM__LTX_preloaded_symbols[] =
5478: {
5479: { "@PROGRAM@", (void *) 0 },
5480: _LT_EOF
5481: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5482: cat <<\_LT_EOF >> conftest.$ac_ext
5483: {0, (void *) 0}
5484: };
5485:
5486: /* This works around a problem in FreeBSD linker */
5487: #ifdef FREEBSD_WORKAROUND
5488: static const void *lt_preloaded_setup() {
5489: return lt__PROGRAM__LTX_preloaded_symbols;
5490: }
5491: #endif
5492:
5493: #ifdef __cplusplus
5494: }
5495: #endif
5496: _LT_EOF
5497: # Now try linking the two files.
5498: mv conftest.$ac_objext conftstm.$ac_objext
5499: lt_globsym_save_LIBS=$LIBS
5500: lt_globsym_save_CFLAGS=$CFLAGS
5501: LIBS="conftstm.$ac_objext"
5502: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.11 moko 5503: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 5504: (eval $ac_link) 2>&5
1.1 misha 5505: ac_status=$?
1.11 moko 5506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.8 moko 5508: pipe_works=yes
5509: fi
5510: LIBS=$lt_globsym_save_LIBS
5511: CFLAGS=$lt_globsym_save_CFLAGS
5512: else
5513: echo "cannot find nm_test_func in $nlist" >&5
5514: fi
5515: else
5516: echo "cannot find nm_test_var in $nlist" >&5
5517: fi
5518: else
5519: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5520: fi
5521: else
5522: echo "$progname: failed program was:" >&5
5523: cat conftest.$ac_ext >&5
5524: fi
5525: rm -rf conftest* conftst*
5526:
5527: # Do not use the global_symbol_pipe unless it works.
5528: if test "$pipe_works" = yes; then
5529: break
5530: else
5531: lt_cv_sys_global_symbol_pipe=
5532: fi
5533: done
5534:
5535: fi
5536:
5537: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5538: lt_cv_sys_global_symbol_to_cdecl=
5539: fi
5540: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.11 moko 5541: echo "$as_me:$LINENO: result: failed" >&5
5542: echo "${ECHO_T}failed" >&6
1.1 misha 5543: else
1.11 moko 5544: echo "$as_me:$LINENO: result: ok" >&5
5545: echo "${ECHO_T}ok" >&6
1.8 moko 5546: fi
1.1 misha 5547:
1.8 moko 5548: # Response file support.
5549: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5550: nm_file_list_spec='@'
5551: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5552: nm_file_list_spec='@'
1.1 misha 5553: fi
5554:
5555:
5556:
5557:
5558:
5559:
5560:
5561:
5562:
5563:
5564:
5565:
5566:
5567:
5568:
5569:
5570:
5571:
5572:
5573:
5574:
1.8 moko 5575:
5576:
5577:
5578:
5579:
5580:
1.11 moko 5581: echo "$as_me:$LINENO: checking for sysroot" >&5
5582: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5583:
5584: # Check whether --with-sysroot or --without-sysroot was given.
5585: if test "${with_sysroot+set}" = set; then
5586: withval="$with_sysroot"
1.8 moko 5587:
1.1 misha 5588: else
1.8 moko 5589: with_sysroot=no
1.11 moko 5590: fi;
1.1 misha 5591:
1.8 moko 5592: lt_sysroot=
5593: case ${with_sysroot} in #(
5594: yes)
5595: if test "$GCC" = yes; then
5596: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5597: fi
5598: ;; #(
5599: /*)
5600: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5601: ;; #(
5602: no|'')
5603: ;; #(
5604: *)
1.11 moko 5605: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5606: echo "${ECHO_T}${with_sysroot}" >&6
5607: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5608: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5609: { (exit 1); exit 1; }; }
1.8 moko 5610: ;;
5611: esac
5612:
1.11 moko 5613: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5614: echo "${ECHO_T}${lt_sysroot:-no}" >&6
1.8 moko 5615:
5616:
5617:
5618:
5619:
1.11 moko 5620: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5621: if test "${enable_libtool_lock+set}" = set; then
5622: enableval="$enable_libtool_lock"
1.1 misha 5623:
1.11 moko 5624: fi;
1.8 moko 5625: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 5626:
1.8 moko 5627: # Some flags need to be propagated to the compiler or linker for good
5628: # libtool support.
5629: case $host in
5630: ia64-*-hpux*)
5631: # Find out which ABI we are using.
5632: echo 'int i;' > 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
5635: ac_status=$?
1.11 moko 5636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637: (exit $ac_status); }; then
1.8 moko 5638: case `/usr/bin/file conftest.$ac_objext` in
5639: *ELF-32*)
5640: HPUX_IA64_MODE="32"
5641: ;;
5642: *ELF-64*)
5643: HPUX_IA64_MODE="64"
5644: ;;
1.1 misha 5645: esac
5646: fi
1.8 moko 5647: rm -rf conftest*
5648: ;;
5649: *-*-irix6*)
5650: # Find out which ABI we are using.
5651: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.11 moko 5652: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5653: (eval $ac_compile) 2>&5
1.1 misha 5654: ac_status=$?
1.11 moko 5655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656: (exit $ac_status); }; then
1.8 moko 5657: if test "$lt_cv_prog_gnu_ld" = yes; then
5658: case `/usr/bin/file conftest.$ac_objext` in
5659: *32-bit*)
5660: LD="${LD-ld} -melf32bsmip"
5661: ;;
5662: *N32*)
5663: LD="${LD-ld} -melf32bmipn32"
5664: ;;
5665: *64-bit*)
5666: LD="${LD-ld} -melf64bmip"
5667: ;;
5668: esac
5669: else
5670: case `/usr/bin/file conftest.$ac_objext` in
5671: *32-bit*)
5672: LD="${LD-ld} -32"
5673: ;;
5674: *N32*)
5675: LD="${LD-ld} -n32"
5676: ;;
5677: *64-bit*)
5678: LD="${LD-ld} -64"
5679: ;;
5680: esac
5681: fi
5682: fi
5683: rm -rf conftest*
5684: ;;
5685:
5686: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5687: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5688: # Find out which ABI we are using.
5689: echo 'int i;' > conftest.$ac_ext
1.11 moko 5690: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5691: (eval $ac_compile) 2>&5
1.1 misha 5692: ac_status=$?
1.11 moko 5693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694: (exit $ac_status); }; then
1.8 moko 5695: case `/usr/bin/file conftest.o` in
5696: *32-bit*)
5697: case $host in
5698: x86_64-*kfreebsd*-gnu)
5699: LD="${LD-ld} -m elf_i386_fbsd"
5700: ;;
5701: x86_64-*linux*)
5702: LD="${LD-ld} -m elf_i386"
5703: ;;
5704: ppc64-*linux*|powerpc64-*linux*)
5705: LD="${LD-ld} -m elf32ppclinux"
5706: ;;
5707: s390x-*linux*)
5708: LD="${LD-ld} -m elf_s390"
5709: ;;
5710: sparc64-*linux*)
5711: LD="${LD-ld} -m elf32_sparc"
5712: ;;
5713: esac
1.1 misha 5714: ;;
1.8 moko 5715: *64-bit*)
5716: case $host in
5717: x86_64-*kfreebsd*-gnu)
5718: LD="${LD-ld} -m elf_x86_64_fbsd"
5719: ;;
5720: x86_64-*linux*)
5721: LD="${LD-ld} -m elf_x86_64"
5722: ;;
5723: ppc*-*linux*|powerpc*-*linux*)
5724: LD="${LD-ld} -m elf64ppc"
5725: ;;
5726: s390*-*linux*|s390*-*tpf*)
5727: LD="${LD-ld} -m elf64_s390"
5728: ;;
5729: sparc*-*linux*)
5730: LD="${LD-ld} -m elf64_sparc"
5731: ;;
5732: esac
1.1 misha 5733: ;;
1.8 moko 5734: esac
1.1 misha 5735: fi
1.8 moko 5736: rm -rf conftest*
5737: ;;
1.1 misha 5738:
1.8 moko 5739: *-*-sco3.2v5*)
5740: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5741: SAVE_CFLAGS="$CFLAGS"
5742: CFLAGS="$CFLAGS -belf"
1.11 moko 5743: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5744: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5745: if test "${lt_cv_cc_needs_belf+set}" = set; then
5746: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5747: else
1.8 moko 5748: ac_ext=c
5749: ac_cpp='$CPP $CPPFLAGS'
5750: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753:
1.11 moko 5754: cat >conftest.$ac_ext <<_ACEOF
5755: /* confdefs.h. */
5756: _ACEOF
5757: cat confdefs.h >>conftest.$ac_ext
5758: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 5759: /* end confdefs.h. */
5760:
5761: int
5762: main ()
5763: {
5764:
5765: ;
5766: return 0;
5767: }
5768: _ACEOF
1.11 moko 5769: rm -f conftest.$ac_objext conftest$ac_exeext
5770: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771: (eval $ac_link) 2>conftest.er1
5772: ac_status=$?
5773: grep -v '^ *+' conftest.er1 >conftest.err
5774: rm -f conftest.er1
5775: cat conftest.err >&5
5776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777: (exit $ac_status); } &&
5778: { ac_try='test -z "$ac_c_werror_flag"
5779: || test ! -s conftest.err'
5780: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781: (eval $ac_try) 2>&5
5782: ac_status=$?
5783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784: (exit $ac_status); }; } &&
5785: { ac_try='test -s conftest$ac_exeext'
5786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787: (eval $ac_try) 2>&5
5788: ac_status=$?
5789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790: (exit $ac_status); }; }; then
1.8 moko 5791: lt_cv_cc_needs_belf=yes
1.1 misha 5792: else
1.11 moko 5793: echo "$as_me: failed program was:" >&5
5794: sed 's/^/| /' conftest.$ac_ext >&5
5795:
5796: lt_cv_cc_needs_belf=no
1.1 misha 5797: fi
1.11 moko 5798: rm -f conftest.err conftest.$ac_objext \
5799: conftest$ac_exeext conftest.$ac_ext
1.8 moko 5800: ac_ext=c
5801: ac_cpp='$CPP $CPPFLAGS'
5802: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 5805:
5806: fi
1.11 moko 5807: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5808: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1.8 moko 5809: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5810: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5811: CFLAGS="$SAVE_CFLAGS"
5812: fi
5813: ;;
5814: *-*solaris*)
5815: # Find out which ABI we are using.
5816: echo 'int i;' > conftest.$ac_ext
1.11 moko 5817: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5818: (eval $ac_compile) 2>&5
5819: ac_status=$?
1.11 moko 5820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821: (exit $ac_status); }; then
1.8 moko 5822: case `/usr/bin/file conftest.o` in
5823: *64-bit*)
5824: case $lt_cv_prog_gnu_ld in
5825: yes*)
5826: case $host in
5827: i?86-*-solaris*)
5828: LD="${LD-ld} -m elf_x86_64"
5829: ;;
5830: sparc*-*-solaris*)
5831: LD="${LD-ld} -m elf64_sparc"
5832: ;;
5833: esac
5834: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5835: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5836: LD="${LD-ld}_sol2"
5837: fi
5838: ;;
5839: *)
5840: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5841: LD="${LD-ld} -64"
5842: fi
5843: ;;
5844: esac
5845: ;;
5846: esac
5847: fi
5848: rm -rf conftest*
5849: ;;
5850: esac
1.1 misha 5851:
1.8 moko 5852: need_locks="$enable_libtool_lock"
1.1 misha 5853:
1.8 moko 5854: if test -n "$ac_tool_prefix"; then
5855: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5856: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.11 moko 5857: echo "$as_me:$LINENO: checking for $ac_word" >&5
5858: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
5860: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5861: else
1.8 moko 5862: if test -n "$MANIFEST_TOOL"; then
5863: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5864: else
5865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866: for as_dir in $PATH
5867: do
5868: IFS=$as_save_IFS
5869: test -z "$as_dir" && as_dir=.
1.11 moko 5870: for ac_exec_ext in '' $ac_executable_extensions; do
5871: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5872: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.11 moko 5873: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5874: break 2
5875: fi
5876: done
1.11 moko 5877: done
1.1 misha 5878:
1.8 moko 5879: fi
5880: fi
5881: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5882: if test -n "$MANIFEST_TOOL"; then
1.11 moko 5883: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5884: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.1 misha 5885: else
1.11 moko 5886: echo "$as_me:$LINENO: result: no" >&5
5887: echo "${ECHO_T}no" >&6
1.1 misha 5888: fi
5889:
5890: fi
1.8 moko 5891: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5892: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5893: # Extract the first word of "mt", so it can be a program name with args.
5894: set dummy mt; ac_word=$2
1.11 moko 5895: echo "$as_me:$LINENO: checking for $ac_word" >&5
5896: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5898: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5899: else
5900: if test -n "$ac_ct_MANIFEST_TOOL"; then
5901: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5902: else
5903: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904: for as_dir in $PATH
5905: do
5906: IFS=$as_save_IFS
5907: test -z "$as_dir" && as_dir=.
1.11 moko 5908: for ac_exec_ext in '' $ac_executable_extensions; do
5909: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5910: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.11 moko 5911: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5912: break 2
5913: fi
5914: done
1.11 moko 5915: done
1.1 misha 5916:
1.11 moko 5917: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
1.8 moko 5918: fi
5919: fi
5920: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5921: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.11 moko 5922: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5923: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.8 moko 5924: else
1.11 moko 5925: echo "$as_me:$LINENO: result: no" >&5
5926: echo "${ECHO_T}no" >&6
1.8 moko 5927: fi
5928:
1.11 moko 5929: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
1.8 moko 5930: else
5931: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5932: fi
1.1 misha 5933:
1.8 moko 5934: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.11 moko 5935: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5936: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5937: if test "${lt_cv_path_mainfest_tool+set}" = set; then
5938: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5939: else
1.8 moko 5940: lt_cv_path_mainfest_tool=no
5941: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5942: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5943: cat conftest.err >&5
5944: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5945: lt_cv_path_mainfest_tool=yes
5946: fi
5947: rm -f conftest*
5948: fi
1.11 moko 5949: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5950: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
1.8 moko 5951: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5952: MANIFEST_TOOL=:
5953: fi
5954:
5955:
5956:
1.1 misha 5957:
5958:
5959:
1.8 moko 5960: case $host_os in
5961: rhapsody* | darwin*)
5962: if test -n "$ac_tool_prefix"; then
5963: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5964: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.11 moko 5965: echo "$as_me:$LINENO: checking for $ac_word" >&5
5966: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5968: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5969: else
1.8 moko 5970: if test -n "$DSYMUTIL"; then
5971: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5972: else
5973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974: for as_dir in $PATH
5975: do
5976: IFS=$as_save_IFS
5977: test -z "$as_dir" && as_dir=.
1.11 moko 5978: for ac_exec_ext in '' $ac_executable_extensions; do
5979: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5980: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.11 moko 5981: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5982: break 2
5983: fi
5984: done
1.11 moko 5985: done
1.1 misha 5986:
5987: fi
1.8 moko 5988: fi
5989: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5990: if test -n "$DSYMUTIL"; then
1.11 moko 5991: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5992: echo "${ECHO_T}$DSYMUTIL" >&6
1.8 moko 5993: else
1.11 moko 5994: echo "$as_me:$LINENO: result: no" >&5
5995: echo "${ECHO_T}no" >&6
1.8 moko 5996: fi
1.1 misha 5997:
5998: fi
1.8 moko 5999: if test -z "$ac_cv_prog_DSYMUTIL"; then
6000: ac_ct_DSYMUTIL=$DSYMUTIL
6001: # Extract the first word of "dsymutil", so it can be a program name with args.
6002: set dummy dsymutil; ac_word=$2
1.11 moko 6003: echo "$as_me:$LINENO: checking for $ac_word" >&5
6004: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6005: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6006: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6007: else
6008: if test -n "$ac_ct_DSYMUTIL"; then
6009: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6010: else
6011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012: for as_dir in $PATH
6013: do
6014: IFS=$as_save_IFS
6015: test -z "$as_dir" && as_dir=.
1.11 moko 6016: for ac_exec_ext in '' $ac_executable_extensions; do
6017: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6018: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.11 moko 6019: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6020: break 2
6021: fi
6022: done
1.11 moko 6023: done
1.1 misha 6024:
1.11 moko 6025: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
1.8 moko 6026: fi
6027: fi
6028: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6029: if test -n "$ac_ct_DSYMUTIL"; then
1.11 moko 6030: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6031: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.1 misha 6032: else
1.11 moko 6033: echo "$as_me:$LINENO: result: no" >&5
6034: echo "${ECHO_T}no" >&6
1.1 misha 6035: fi
6036:
1.11 moko 6037: DSYMUTIL=$ac_ct_DSYMUTIL
1.1 misha 6038: else
1.8 moko 6039: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 6040: fi
6041:
1.8 moko 6042: if test -n "$ac_tool_prefix"; then
6043: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6044: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.11 moko 6045: echo "$as_me:$LINENO: checking for $ac_word" >&5
6046: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6047: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6049: else
6050: if test -n "$NMEDIT"; then
6051: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6052: else
6053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054: for as_dir in $PATH
6055: do
6056: IFS=$as_save_IFS
6057: test -z "$as_dir" && as_dir=.
1.11 moko 6058: for ac_exec_ext in '' $ac_executable_extensions; do
6059: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6060: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.11 moko 6061: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6062: break 2
6063: fi
6064: done
1.11 moko 6065: done
1.1 misha 6066:
1.8 moko 6067: fi
6068: fi
6069: NMEDIT=$ac_cv_prog_NMEDIT
6070: if test -n "$NMEDIT"; then
1.11 moko 6071: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6072: echo "${ECHO_T}$NMEDIT" >&6
1.8 moko 6073: else
1.11 moko 6074: echo "$as_me:$LINENO: result: no" >&5
6075: echo "${ECHO_T}no" >&6
1.8 moko 6076: fi
1.1 misha 6077:
1.8 moko 6078: fi
6079: if test -z "$ac_cv_prog_NMEDIT"; then
6080: ac_ct_NMEDIT=$NMEDIT
6081: # Extract the first word of "nmedit", so it can be a program name with args.
6082: set dummy nmedit; ac_word=$2
1.11 moko 6083: echo "$as_me:$LINENO: checking for $ac_word" >&5
6084: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6086: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6087: else
6088: if test -n "$ac_ct_NMEDIT"; then
6089: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 6090: else
1.8 moko 6091: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092: for as_dir in $PATH
6093: do
6094: IFS=$as_save_IFS
6095: test -z "$as_dir" && as_dir=.
1.11 moko 6096: for ac_exec_ext in '' $ac_executable_extensions; do
6097: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6098: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.11 moko 6099: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6100: break 2
6101: fi
6102: done
1.11 moko 6103: done
1.1 misha 6104:
1.11 moko 6105: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
1.8 moko 6106: fi
6107: fi
6108: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6109: if test -n "$ac_ct_NMEDIT"; then
1.11 moko 6110: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6111: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
1.8 moko 6112: else
1.11 moko 6113: echo "$as_me:$LINENO: result: no" >&5
6114: echo "${ECHO_T}no" >&6
1.1 misha 6115: fi
6116:
1.11 moko 6117: NMEDIT=$ac_ct_NMEDIT
1.8 moko 6118: else
6119: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 6120: fi
6121:
1.8 moko 6122: if test -n "$ac_tool_prefix"; then
6123: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6124: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.11 moko 6125: echo "$as_me:$LINENO: checking for $ac_word" >&5
6126: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6127: if test "${ac_cv_prog_LIPO+set}" = set; then
6128: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6129: else
6130: if test -n "$LIPO"; then
6131: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6132: else
6133: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134: for as_dir in $PATH
6135: do
6136: IFS=$as_save_IFS
6137: test -z "$as_dir" && as_dir=.
1.11 moko 6138: for ac_exec_ext in '' $ac_executable_extensions; do
6139: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6140: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.11 moko 6141: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6142: break 2
6143: fi
6144: done
1.11 moko 6145: done
1.1 misha 6146:
1.8 moko 6147: fi
6148: fi
6149: LIPO=$ac_cv_prog_LIPO
6150: if test -n "$LIPO"; then
1.11 moko 6151: echo "$as_me:$LINENO: result: $LIPO" >&5
6152: echo "${ECHO_T}$LIPO" >&6
1.8 moko 6153: else
1.11 moko 6154: echo "$as_me:$LINENO: result: no" >&5
6155: echo "${ECHO_T}no" >&6
1.8 moko 6156: fi
1.1 misha 6157:
1.8 moko 6158: fi
6159: if test -z "$ac_cv_prog_LIPO"; then
6160: ac_ct_LIPO=$LIPO
6161: # Extract the first word of "lipo", so it can be a program name with args.
6162: set dummy lipo; ac_word=$2
1.11 moko 6163: echo "$as_me:$LINENO: checking for $ac_word" >&5
6164: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6165: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6166: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6167: else
6168: if test -n "$ac_ct_LIPO"; then
6169: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6170: else
6171: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172: for as_dir in $PATH
6173: do
6174: IFS=$as_save_IFS
6175: test -z "$as_dir" && as_dir=.
1.11 moko 6176: for ac_exec_ext in '' $ac_executable_extensions; do
6177: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6178: ac_cv_prog_ac_ct_LIPO="lipo"
1.11 moko 6179: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6180: break 2
1.1 misha 6181: fi
1.8 moko 6182: done
1.11 moko 6183: done
1.8 moko 6184:
1.11 moko 6185: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
1.8 moko 6186: fi
6187: fi
6188: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6189: if test -n "$ac_ct_LIPO"; then
1.11 moko 6190: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6191: echo "${ECHO_T}$ac_ct_LIPO" >&6
1.8 moko 6192: else
1.11 moko 6193: echo "$as_me:$LINENO: result: no" >&5
6194: echo "${ECHO_T}no" >&6
1.8 moko 6195: fi
6196:
1.11 moko 6197: LIPO=$ac_ct_LIPO
1.8 moko 6198: else
6199: LIPO="$ac_cv_prog_LIPO"
6200: fi
1.1 misha 6201:
1.8 moko 6202: if test -n "$ac_tool_prefix"; then
6203: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6204: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.11 moko 6205: echo "$as_me:$LINENO: checking for $ac_word" >&5
6206: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6207: if test "${ac_cv_prog_OTOOL+set}" = set; then
6208: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6209: else
6210: if test -n "$OTOOL"; then
6211: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6212: else
6213: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214: for as_dir in $PATH
6215: do
6216: IFS=$as_save_IFS
6217: test -z "$as_dir" && as_dir=.
1.11 moko 6218: for ac_exec_ext in '' $ac_executable_extensions; do
6219: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6220: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.11 moko 6221: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6222: break 2
6223: fi
6224: done
1.11 moko 6225: done
1.1 misha 6226:
1.8 moko 6227: fi
6228: fi
6229: OTOOL=$ac_cv_prog_OTOOL
6230: if test -n "$OTOOL"; then
1.11 moko 6231: echo "$as_me:$LINENO: result: $OTOOL" >&5
6232: echo "${ECHO_T}$OTOOL" >&6
1.8 moko 6233: else
1.11 moko 6234: echo "$as_me:$LINENO: result: no" >&5
6235: echo "${ECHO_T}no" >&6
1.8 moko 6236: fi
1.1 misha 6237:
1.8 moko 6238: fi
6239: if test -z "$ac_cv_prog_OTOOL"; then
6240: ac_ct_OTOOL=$OTOOL
6241: # Extract the first word of "otool", so it can be a program name with args.
6242: set dummy otool; ac_word=$2
1.11 moko 6243: echo "$as_me:$LINENO: checking for $ac_word" >&5
6244: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6245: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6246: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6247: else
6248: if test -n "$ac_ct_OTOOL"; then
6249: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6250: else
6251: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252: for as_dir in $PATH
6253: do
6254: IFS=$as_save_IFS
6255: test -z "$as_dir" && as_dir=.
1.11 moko 6256: for ac_exec_ext in '' $ac_executable_extensions; do
6257: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6258: ac_cv_prog_ac_ct_OTOOL="otool"
1.11 moko 6259: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6260: break 2
6261: fi
6262: done
1.11 moko 6263: done
1.1 misha 6264:
1.11 moko 6265: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
1.8 moko 6266: fi
6267: fi
6268: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6269: if test -n "$ac_ct_OTOOL"; then
1.11 moko 6270: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6271: echo "${ECHO_T}$ac_ct_OTOOL" >&6
1.8 moko 6272: else
1.11 moko 6273: echo "$as_me:$LINENO: result: no" >&5
6274: echo "${ECHO_T}no" >&6
1.8 moko 6275: fi
1.1 misha 6276:
1.11 moko 6277: OTOOL=$ac_ct_OTOOL
1.8 moko 6278: else
6279: OTOOL="$ac_cv_prog_OTOOL"
6280: fi
1.1 misha 6281:
1.8 moko 6282: if test -n "$ac_tool_prefix"; then
6283: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6284: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.11 moko 6285: echo "$as_me:$LINENO: checking for $ac_word" >&5
6286: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6287: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6288: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6289: else
6290: if test -n "$OTOOL64"; then
6291: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6292: else
6293: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294: for as_dir in $PATH
6295: do
6296: IFS=$as_save_IFS
6297: test -z "$as_dir" && as_dir=.
1.11 moko 6298: for ac_exec_ext in '' $ac_executable_extensions; do
6299: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6300: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.11 moko 6301: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6302: break 2
6303: fi
6304: done
1.11 moko 6305: done
1.1 misha 6306:
1.8 moko 6307: fi
6308: fi
6309: OTOOL64=$ac_cv_prog_OTOOL64
6310: if test -n "$OTOOL64"; then
1.11 moko 6311: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6312: echo "${ECHO_T}$OTOOL64" >&6
1.8 moko 6313: else
1.11 moko 6314: echo "$as_me:$LINENO: result: no" >&5
6315: echo "${ECHO_T}no" >&6
1.8 moko 6316: fi
1.1 misha 6317:
1.8 moko 6318: fi
6319: if test -z "$ac_cv_prog_OTOOL64"; then
6320: ac_ct_OTOOL64=$OTOOL64
6321: # Extract the first word of "otool64", so it can be a program name with args.
6322: set dummy otool64; ac_word=$2
1.11 moko 6323: echo "$as_me:$LINENO: checking for $ac_word" >&5
6324: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6325: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6326: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6327: else
6328: if test -n "$ac_ct_OTOOL64"; then
6329: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6330: else
6331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332: for as_dir in $PATH
6333: do
6334: IFS=$as_save_IFS
6335: test -z "$as_dir" && as_dir=.
1.11 moko 6336: for ac_exec_ext in '' $ac_executable_extensions; do
6337: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6338: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.11 moko 6339: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6340: break 2
6341: fi
6342: done
1.11 moko 6343: done
1.1 misha 6344:
1.11 moko 6345: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
1.8 moko 6346: fi
6347: fi
6348: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6349: if test -n "$ac_ct_OTOOL64"; then
1.11 moko 6350: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6351: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
1.8 moko 6352: else
1.11 moko 6353: echo "$as_me:$LINENO: result: no" >&5
6354: echo "${ECHO_T}no" >&6
1.8 moko 6355: fi
1.1 misha 6356:
1.11 moko 6357: OTOOL64=$ac_ct_OTOOL64
1.8 moko 6358: else
6359: OTOOL64="$ac_cv_prog_OTOOL64"
6360: fi
1.1 misha 6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
6386:
6387:
1.11 moko 6388: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6389: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6390: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6391: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6392: else
6393: lt_cv_apple_cc_single_mod=no
6394: if test -z "${LT_MULTI_MODULE}"; then
6395: # By default we will add the -single_module flag. You can override
6396: # by either setting the environment variable LT_MULTI_MODULE
6397: # non-empty at configure time, or by adding -multi_module to the
6398: # link flags.
6399: rm -rf libconftest.dylib*
6400: echo "int foo(void){return 1;}" > conftest.c
6401: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6402: -dynamiclib -Wl,-single_module conftest.c" >&5
6403: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6404: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6405: _lt_result=$?
6406: # If there is a non-empty error log, and "single_module"
6407: # appears in it, assume the flag caused a linker warning
6408: if test -s conftest.err && $GREP single_module conftest.err; then
6409: cat conftest.err >&5
6410: # Otherwise, if the output was created with a 0 exit code from
6411: # the compiler, it worked.
6412: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6413: lt_cv_apple_cc_single_mod=yes
6414: else
6415: cat conftest.err >&5
6416: fi
6417: rm -rf libconftest.dylib*
6418: rm -f conftest.*
6419: fi
6420: fi
1.11 moko 6421: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6422: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.1 misha 6423:
1.11 moko 6424: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6425: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6426: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6427: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6428: else
6429: lt_cv_ld_exported_symbols_list=no
6430: save_LDFLAGS=$LDFLAGS
6431: echo "_main" > conftest.sym
6432: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.11 moko 6433: cat >conftest.$ac_ext <<_ACEOF
6434: /* confdefs.h. */
6435: _ACEOF
6436: cat confdefs.h >>conftest.$ac_ext
6437: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6438: /* end confdefs.h. */
1.1 misha 6439:
1.8 moko 6440: int
6441: main ()
6442: {
1.1 misha 6443:
1.8 moko 6444: ;
6445: return 0;
6446: }
6447: _ACEOF
1.11 moko 6448: rm -f conftest.$ac_objext conftest$ac_exeext
6449: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450: (eval $ac_link) 2>conftest.er1
6451: ac_status=$?
6452: grep -v '^ *+' conftest.er1 >conftest.err
6453: rm -f conftest.er1
6454: cat conftest.err >&5
6455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456: (exit $ac_status); } &&
6457: { ac_try='test -z "$ac_c_werror_flag"
6458: || test ! -s conftest.err'
6459: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460: (eval $ac_try) 2>&5
6461: ac_status=$?
6462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463: (exit $ac_status); }; } &&
6464: { ac_try='test -s conftest$ac_exeext'
6465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466: (eval $ac_try) 2>&5
6467: ac_status=$?
6468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469: (exit $ac_status); }; }; then
1.8 moko 6470: lt_cv_ld_exported_symbols_list=yes
6471: else
1.11 moko 6472: echo "$as_me: failed program was:" >&5
6473: sed 's/^/| /' conftest.$ac_ext >&5
6474:
6475: lt_cv_ld_exported_symbols_list=no
1.8 moko 6476: fi
1.11 moko 6477: rm -f conftest.err conftest.$ac_objext \
6478: conftest$ac_exeext conftest.$ac_ext
1.8 moko 6479: LDFLAGS="$save_LDFLAGS"
1.1 misha 6480:
1.8 moko 6481: fi
1.11 moko 6482: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6483: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.1 misha 6484:
1.11 moko 6485: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6486: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6487: if test "${lt_cv_ld_force_load+set}" = set; then
6488: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6489: else
6490: lt_cv_ld_force_load=no
6491: cat > conftest.c << _LT_EOF
6492: int forced_loaded() { return 2;}
6493: _LT_EOF
6494: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6495: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6496: echo "$AR cru libconftest.a conftest.o" >&5
6497: $AR cru libconftest.a conftest.o 2>&5
6498: echo "$RANLIB libconftest.a" >&5
6499: $RANLIB libconftest.a 2>&5
6500: cat > conftest.c << _LT_EOF
6501: int main() { return 0;}
6502: _LT_EOF
6503: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6504: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6505: _lt_result=$?
6506: if test -s conftest.err && $GREP force_load conftest.err; then
6507: cat conftest.err >&5
6508: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6509: lt_cv_ld_force_load=yes
6510: else
6511: cat conftest.err >&5
6512: fi
6513: rm -f conftest.err libconftest.a conftest conftest.c
6514: rm -rf conftest.dSYM
1.1 misha 6515:
1.8 moko 6516: fi
1.11 moko 6517: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6518: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
1.8 moko 6519: case $host_os in
6520: rhapsody* | darwin1.[012])
6521: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6522: darwin1.*)
6523: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6524: darwin*) # darwin 5.x on
6525: # if running on 10.5 or later, the deployment target defaults
6526: # to the OS version, if on x86, and 10.4, the deployment
6527: # target defaults to 10.4. Don't you love it?
6528: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6529: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6530: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6531: 10.[012]*)
6532: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6533: 10.*)
6534: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6535: esac
1.1 misha 6536: ;;
1.8 moko 6537: esac
6538: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6539: _lt_dar_single_mod='$single_module'
6540: fi
6541: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6542: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6543: else
6544: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 6545: fi
1.8 moko 6546: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6547: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 6548: else
1.8 moko 6549: _lt_dsymutil=
1.1 misha 6550: fi
6551: ;;
1.8 moko 6552: esac
1.1 misha 6553:
1.8 moko 6554: ac_ext=c
6555: ac_cpp='$CPP $CPPFLAGS'
6556: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6557: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 moko 6559: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6560: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.8 moko 6561: # On Suns, sometimes $CPP names a directory.
6562: if test -n "$CPP" && test -d "$CPP"; then
6563: CPP=
6564: fi
6565: if test -z "$CPP"; then
1.11 moko 6566: if test "${ac_cv_prog_CPP+set}" = set; then
6567: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6568: else
6569: # Double quotes because CPP needs to be expanded
6570: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6571: do
6572: ac_preproc_ok=false
6573: for ac_c_preproc_warn_flag in '' yes
6574: do
6575: # Use a header file that comes with gcc, so configuring glibc
6576: # with a fresh cross-compiler works.
6577: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578: # <limits.h> exists even on freestanding compilers.
6579: # On the NeXT, cc -E runs the code through the compiler's parser,
6580: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6581: cat >conftest.$ac_ext <<_ACEOF
6582: /* confdefs.h. */
6583: _ACEOF
6584: cat confdefs.h >>conftest.$ac_ext
6585: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6586: /* end confdefs.h. */
6587: #ifdef __STDC__
6588: # include <limits.h>
6589: #else
6590: # include <assert.h>
6591: #endif
6592: Syntax error
6593: _ACEOF
1.11 moko 6594: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596: ac_status=$?
6597: grep -v '^ *+' conftest.er1 >conftest.err
6598: rm -f conftest.er1
6599: cat conftest.err >&5
6600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601: (exit $ac_status); } >/dev/null; then
6602: if test -s conftest.err; then
6603: ac_cpp_err=$ac_c_preproc_warn_flag
6604: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6605: else
6606: ac_cpp_err=
6607: fi
6608: else
6609: ac_cpp_err=yes
6610: fi
6611: if test -z "$ac_cpp_err"; then
6612: :
6613: else
6614: echo "$as_me: failed program was:" >&5
6615: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6616:
1.8 moko 6617: # Broken: fails on valid input.
6618: continue
6619: fi
1.11 moko 6620: rm -f conftest.err conftest.$ac_ext
1.1 misha 6621:
1.11 moko 6622: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6623: # can be detected and how.
1.11 moko 6624: cat >conftest.$ac_ext <<_ACEOF
6625: /* confdefs.h. */
6626: _ACEOF
6627: cat confdefs.h >>conftest.$ac_ext
6628: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6629: /* end confdefs.h. */
6630: #include <ac_nonexistent.h>
6631: _ACEOF
1.11 moko 6632: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634: ac_status=$?
6635: grep -v '^ *+' conftest.er1 >conftest.err
6636: rm -f conftest.er1
6637: cat conftest.err >&5
6638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639: (exit $ac_status); } >/dev/null; then
6640: if test -s conftest.err; then
6641: ac_cpp_err=$ac_c_preproc_warn_flag
6642: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6643: else
6644: ac_cpp_err=
6645: fi
6646: else
6647: ac_cpp_err=yes
6648: fi
6649: if test -z "$ac_cpp_err"; then
1.8 moko 6650: # Broken: success on invalid input.
6651: continue
6652: else
1.11 moko 6653: echo "$as_me: failed program was:" >&5
6654: sed 's/^/| /' conftest.$ac_ext >&5
6655:
1.8 moko 6656: # Passes both tests.
6657: ac_preproc_ok=:
6658: break
1.1 misha 6659: fi
1.11 moko 6660: rm -f conftest.err conftest.$ac_ext
1.1 misha 6661:
1.8 moko 6662: done
6663: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6664: rm -f conftest.err conftest.$ac_ext
6665: if $ac_preproc_ok; then
1.8 moko 6666: break
1.1 misha 6667: fi
6668:
1.8 moko 6669: done
6670: ac_cv_prog_CPP=$CPP
1.1 misha 6671:
1.8 moko 6672: fi
6673: CPP=$ac_cv_prog_CPP
6674: else
6675: ac_cv_prog_CPP=$CPP
6676: fi
1.11 moko 6677: echo "$as_me:$LINENO: result: $CPP" >&5
6678: echo "${ECHO_T}$CPP" >&6
1.8 moko 6679: ac_preproc_ok=false
6680: for ac_c_preproc_warn_flag in '' yes
6681: do
6682: # Use a header file that comes with gcc, so configuring glibc
6683: # with a fresh cross-compiler works.
6684: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685: # <limits.h> exists even on freestanding compilers.
6686: # On the NeXT, cc -E runs the code through the compiler's parser,
6687: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6688: cat >conftest.$ac_ext <<_ACEOF
6689: /* confdefs.h. */
6690: _ACEOF
6691: cat confdefs.h >>conftest.$ac_ext
6692: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6693: /* end confdefs.h. */
6694: #ifdef __STDC__
6695: # include <limits.h>
6696: #else
6697: # include <assert.h>
6698: #endif
6699: Syntax error
6700: _ACEOF
1.11 moko 6701: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6703: ac_status=$?
6704: grep -v '^ *+' conftest.er1 >conftest.err
6705: rm -f conftest.er1
6706: cat conftest.err >&5
6707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708: (exit $ac_status); } >/dev/null; then
6709: if test -s conftest.err; then
6710: ac_cpp_err=$ac_c_preproc_warn_flag
6711: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6712: else
6713: ac_cpp_err=
6714: fi
6715: else
6716: ac_cpp_err=yes
6717: fi
6718: if test -z "$ac_cpp_err"; then
6719: :
6720: else
6721: echo "$as_me: failed program was:" >&5
6722: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6723:
1.8 moko 6724: # Broken: fails on valid input.
6725: continue
6726: fi
1.11 moko 6727: rm -f conftest.err conftest.$ac_ext
1.1 misha 6728:
1.11 moko 6729: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6730: # can be detected and how.
1.11 moko 6731: cat >conftest.$ac_ext <<_ACEOF
6732: /* confdefs.h. */
6733: _ACEOF
6734: cat confdefs.h >>conftest.$ac_ext
6735: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6736: /* end confdefs.h. */
6737: #include <ac_nonexistent.h>
6738: _ACEOF
1.11 moko 6739: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741: ac_status=$?
6742: grep -v '^ *+' conftest.er1 >conftest.err
6743: rm -f conftest.er1
6744: cat conftest.err >&5
6745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746: (exit $ac_status); } >/dev/null; then
6747: if test -s conftest.err; then
6748: ac_cpp_err=$ac_c_preproc_warn_flag
6749: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6750: else
6751: ac_cpp_err=
6752: fi
6753: else
6754: ac_cpp_err=yes
6755: fi
6756: if test -z "$ac_cpp_err"; then
1.8 moko 6757: # Broken: success on invalid input.
6758: continue
6759: else
1.11 moko 6760: echo "$as_me: failed program was:" >&5
6761: sed 's/^/| /' conftest.$ac_ext >&5
6762:
1.8 moko 6763: # Passes both tests.
6764: ac_preproc_ok=:
6765: break
6766: fi
1.11 moko 6767: rm -f conftest.err conftest.$ac_ext
1.8 moko 6768:
6769: done
6770: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6771: rm -f conftest.err conftest.$ac_ext
6772: if $ac_preproc_ok; then
6773: :
1.8 moko 6774: else
1.11 moko 6775: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6776: See \`config.log' for more details." >&5
6777: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6778: See \`config.log' for more details." >&2;}
6779: { (exit 1); exit 1; }; }
1.8 moko 6780: fi
1.1 misha 6781:
1.8 moko 6782: ac_ext=c
6783: ac_cpp='$CPP $CPPFLAGS'
6784: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 6787:
6788:
1.11 moko 6789: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6790: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6791: if test "${ac_cv_header_stdc+set}" = set; then
6792: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6793: else
1.11 moko 6794: cat >conftest.$ac_ext <<_ACEOF
6795: /* confdefs.h. */
6796: _ACEOF
6797: cat confdefs.h >>conftest.$ac_ext
6798: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6799: /* end confdefs.h. */
6800: #include <stdlib.h>
6801: #include <stdarg.h>
6802: #include <string.h>
6803: #include <float.h>
1.1 misha 6804:
1.8 moko 6805: int
6806: main ()
6807: {
1.1 misha 6808:
1.8 moko 6809: ;
6810: return 0;
6811: }
6812: _ACEOF
1.11 moko 6813: rm -f conftest.$ac_objext
6814: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815: (eval $ac_compile) 2>conftest.er1
6816: ac_status=$?
6817: grep -v '^ *+' conftest.er1 >conftest.err
6818: rm -f conftest.er1
6819: cat conftest.err >&5
6820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821: (exit $ac_status); } &&
6822: { ac_try='test -z "$ac_c_werror_flag"
6823: || test ! -s conftest.err'
6824: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825: (eval $ac_try) 2>&5
6826: ac_status=$?
6827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828: (exit $ac_status); }; } &&
6829: { ac_try='test -s conftest.$ac_objext'
6830: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831: (eval $ac_try) 2>&5
6832: ac_status=$?
6833: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834: (exit $ac_status); }; }; then
1.8 moko 6835: ac_cv_header_stdc=yes
6836: else
1.11 moko 6837: echo "$as_me: failed program was:" >&5
6838: sed 's/^/| /' conftest.$ac_ext >&5
6839:
6840: ac_cv_header_stdc=no
1.8 moko 6841: fi
1.11 moko 6842: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6843:
1.8 moko 6844: if test $ac_cv_header_stdc = yes; then
6845: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.11 moko 6846: cat >conftest.$ac_ext <<_ACEOF
6847: /* confdefs.h. */
6848: _ACEOF
6849: cat confdefs.h >>conftest.$ac_ext
6850: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6851: /* end confdefs.h. */
6852: #include <string.h>
6853:
6854: _ACEOF
6855: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6856: $EGREP "memchr" >/dev/null 2>&1; then
6857: :
1.8 moko 6858: else
6859: ac_cv_header_stdc=no
6860: fi
6861: rm -f conftest*
6862:
6863: fi
6864:
6865: if test $ac_cv_header_stdc = yes; then
6866: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.11 moko 6867: cat >conftest.$ac_ext <<_ACEOF
6868: /* confdefs.h. */
6869: _ACEOF
6870: cat confdefs.h >>conftest.$ac_ext
6871: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6872: /* end confdefs.h. */
6873: #include <stdlib.h>
6874:
6875: _ACEOF
6876: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6877: $EGREP "free" >/dev/null 2>&1; then
6878: :
1.8 moko 6879: else
6880: ac_cv_header_stdc=no
6881: fi
6882: rm -f conftest*
6883:
6884: fi
1.1 misha 6885:
1.8 moko 6886: if test $ac_cv_header_stdc = yes; then
6887: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.11 moko 6888: if test "$cross_compiling" = yes; then
1.8 moko 6889: :
6890: else
1.11 moko 6891: cat >conftest.$ac_ext <<_ACEOF
6892: /* confdefs.h. */
6893: _ACEOF
6894: cat confdefs.h >>conftest.$ac_ext
6895: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6896: /* end confdefs.h. */
6897: #include <ctype.h>
6898: #if ((' ' & 0x0FF) == 0x020)
6899: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6900: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6901: #else
6902: # define ISLOWER(c) \
6903: (('a' <= (c) && (c) <= 'i') \
6904: || ('j' <= (c) && (c) <= 'r') \
6905: || ('s' <= (c) && (c) <= 'z'))
6906: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6907: #endif
1.1 misha 6908:
1.8 moko 6909: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6910: int
6911: main ()
6912: {
6913: int i;
6914: for (i = 0; i < 256; i++)
6915: if (XOR (islower (i), ISLOWER (i))
6916: || toupper (i) != TOUPPER (i))
1.11 moko 6917: exit(2);
6918: exit (0);
1.8 moko 6919: }
6920: _ACEOF
1.11 moko 6921: rm -f conftest$ac_exeext
6922: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923: (eval $ac_link) 2>&5
6924: ac_status=$?
6925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6927: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928: (eval $ac_try) 2>&5
6929: ac_status=$?
6930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931: (exit $ac_status); }; }; then
6932: :
6933: else
6934: echo "$as_me: program exited with status $ac_status" >&5
6935: echo "$as_me: failed program was:" >&5
6936: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6937:
1.11 moko 6938: ( exit $ac_status )
6939: ac_cv_header_stdc=no
1.8 moko 6940: fi
1.11 moko 6941: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.8 moko 6942: fi
6943: fi
6944: fi
1.11 moko 6945: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6946: echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.8 moko 6947: if test $ac_cv_header_stdc = yes; then
1.1 misha 6948:
1.11 moko 6949: cat >>confdefs.h <<\_ACEOF
6950: #define STDC_HEADERS 1
6951: _ACEOF
1.1 misha 6952:
1.8 moko 6953: fi
1.1 misha 6954:
1.8 moko 6955: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 misha 6956:
6957:
6958:
6959:
6960:
6961:
1.11 moko 6962:
6963:
6964:
6965: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6966: inttypes.h stdint.h unistd.h
6967: do
6968: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6969: echo "$as_me:$LINENO: checking for $ac_header" >&5
6970: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972: echo $ECHO_N "(cached) $ECHO_C" >&6
6973: else
6974: cat >conftest.$ac_ext <<_ACEOF
6975: /* confdefs.h. */
6976: _ACEOF
6977: cat confdefs.h >>conftest.$ac_ext
6978: cat >>conftest.$ac_ext <<_ACEOF
6979: /* end confdefs.h. */
6980: $ac_includes_default
6981:
6982: #include <$ac_header>
6983: _ACEOF
6984: rm -f conftest.$ac_objext
6985: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986: (eval $ac_compile) 2>conftest.er1
6987: ac_status=$?
6988: grep -v '^ *+' conftest.er1 >conftest.err
6989: rm -f conftest.er1
6990: cat conftest.err >&5
6991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992: (exit $ac_status); } &&
6993: { ac_try='test -z "$ac_c_werror_flag"
6994: || test ! -s conftest.err'
6995: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996: (eval $ac_try) 2>&5
6997: ac_status=$?
6998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999: (exit $ac_status); }; } &&
7000: { ac_try='test -s conftest.$ac_objext'
7001: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002: (eval $ac_try) 2>&5
7003: ac_status=$?
7004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005: (exit $ac_status); }; }; then
7006: eval "$as_ac_Header=yes"
7007: else
7008: echo "$as_me: failed program was:" >&5
7009: sed 's/^/| /' conftest.$ac_ext >&5
7010:
7011: eval "$as_ac_Header=no"
7012: fi
7013: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014: fi
7015: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7016: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7017: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7018: cat >>confdefs.h <<_ACEOF
7019: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7020: _ACEOF
7021:
7022: fi
7023:
7024: done
7025:
7026:
7027:
7028: for ac_header in dlfcn.h
7029: do
7030: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7031: echo "$as_me:$LINENO: checking for $ac_header" >&5
7032: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7033: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7034: echo $ECHO_N "(cached) $ECHO_C" >&6
7035: else
7036: cat >conftest.$ac_ext <<_ACEOF
7037: /* confdefs.h. */
7038: _ACEOF
7039: cat confdefs.h >>conftest.$ac_ext
7040: cat >>conftest.$ac_ext <<_ACEOF
7041: /* end confdefs.h. */
7042: $ac_includes_default
7043:
7044: #include <$ac_header>
7045: _ACEOF
7046: rm -f conftest.$ac_objext
7047: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048: (eval $ac_compile) 2>conftest.er1
7049: ac_status=$?
7050: grep -v '^ *+' conftest.er1 >conftest.err
7051: rm -f conftest.er1
7052: cat conftest.err >&5
7053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054: (exit $ac_status); } &&
7055: { ac_try='test -z "$ac_c_werror_flag"
7056: || test ! -s conftest.err'
7057: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058: (eval $ac_try) 2>&5
7059: ac_status=$?
7060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061: (exit $ac_status); }; } &&
7062: { ac_try='test -s conftest.$ac_objext'
7063: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064: (eval $ac_try) 2>&5
7065: ac_status=$?
7066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067: (exit $ac_status); }; }; then
7068: eval "$as_ac_Header=yes"
7069: else
7070: echo "$as_me: failed program was:" >&5
7071: sed 's/^/| /' conftest.$ac_ext >&5
7072:
7073: eval "$as_ac_Header=no"
7074: fi
7075: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076: fi
7077: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7078: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7079: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7080: cat >>confdefs.h <<_ACEOF
7081: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7082: _ACEOF
7083:
7084: fi
7085:
7086: done
1.1 misha 7087:
7088:
7089:
1.8 moko 7090:
7091: func_stripname_cnf ()
1.1 misha 7092: {
1.8 moko 7093: case ${2} in
7094: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7095: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7096: esac
7097: } # func_stripname_cnf
7098:
7099:
7100:
7101:
7102:
7103: # Set options
7104: enable_dlopen=yes
1.13 moko 7105: enable_win32_dll=yes
1.8 moko 7106:
1.13 moko 7107: case $host in
7108: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7109: if test -n "$ac_tool_prefix"; then
7110: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7111: set dummy ${ac_tool_prefix}as; ac_word=$2
7112: echo "$as_me:$LINENO: checking for $ac_word" >&5
7113: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7114: if test "${ac_cv_prog_AS+set}" = set; then
7115: echo $ECHO_N "(cached) $ECHO_C" >&6
7116: else
7117: if test -n "$AS"; then
7118: ac_cv_prog_AS="$AS" # Let the user override the test.
7119: else
7120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121: for as_dir in $PATH
7122: do
7123: IFS=$as_save_IFS
7124: test -z "$as_dir" && as_dir=.
7125: for ac_exec_ext in '' $ac_executable_extensions; do
7126: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127: ac_cv_prog_AS="${ac_tool_prefix}as"
7128: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129: break 2
7130: fi
7131: done
7132: done
1.8 moko 7133:
1.13 moko 7134: fi
7135: fi
7136: AS=$ac_cv_prog_AS
7137: if test -n "$AS"; then
7138: echo "$as_me:$LINENO: result: $AS" >&5
7139: echo "${ECHO_T}$AS" >&6
7140: else
7141: echo "$as_me:$LINENO: result: no" >&5
7142: echo "${ECHO_T}no" >&6
7143: fi
1.8 moko 7144:
1.13 moko 7145: fi
7146: if test -z "$ac_cv_prog_AS"; then
7147: ac_ct_AS=$AS
7148: # Extract the first word of "as", so it can be a program name with args.
7149: set dummy as; ac_word=$2
7150: echo "$as_me:$LINENO: checking for $ac_word" >&5
7151: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7152: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7153: echo $ECHO_N "(cached) $ECHO_C" >&6
7154: else
7155: if test -n "$ac_ct_AS"; then
7156: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7157: else
7158: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159: for as_dir in $PATH
7160: do
7161: IFS=$as_save_IFS
7162: test -z "$as_dir" && as_dir=.
7163: for ac_exec_ext in '' $ac_executable_extensions; do
7164: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165: ac_cv_prog_ac_ct_AS="as"
7166: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167: break 2
7168: fi
7169: done
7170: done
1.8 moko 7171:
1.13 moko 7172: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7173: fi
7174: fi
7175: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7176: if test -n "$ac_ct_AS"; then
7177: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7178: echo "${ECHO_T}$ac_ct_AS" >&6
7179: else
7180: echo "$as_me:$LINENO: result: no" >&5
7181: echo "${ECHO_T}no" >&6
7182: fi
1.8 moko 7183:
1.13 moko 7184: AS=$ac_ct_AS
7185: else
7186: AS="$ac_cv_prog_AS"
7187: fi
1.1 misha 7188:
1.13 moko 7189: if test -n "$ac_tool_prefix"; then
7190: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7191: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7192: echo "$as_me:$LINENO: checking for $ac_word" >&5
7193: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7194: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7195: echo $ECHO_N "(cached) $ECHO_C" >&6
7196: else
7197: if test -n "$DLLTOOL"; then
7198: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.1 misha 7199: else
1.13 moko 7200: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201: for as_dir in $PATH
7202: do
7203: IFS=$as_save_IFS
7204: test -z "$as_dir" && as_dir=.
7205: for ac_exec_ext in '' $ac_executable_extensions; do
7206: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7208: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209: break 2
7210: fi
7211: done
7212: done
7213:
7214: fi
7215: fi
7216: DLLTOOL=$ac_cv_prog_DLLTOOL
7217: if test -n "$DLLTOOL"; then
7218: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7219: echo "${ECHO_T}$DLLTOOL" >&6
7220: else
7221: echo "$as_me:$LINENO: result: no" >&5
7222: echo "${ECHO_T}no" >&6
7223: fi
7224:
7225: fi
7226: if test -z "$ac_cv_prog_DLLTOOL"; then
7227: ac_ct_DLLTOOL=$DLLTOOL
7228: # Extract the first word of "dlltool", so it can be a program name with args.
7229: set dummy dlltool; ac_word=$2
7230: echo "$as_me:$LINENO: checking for $ac_word" >&5
7231: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7232: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7233: echo $ECHO_N "(cached) $ECHO_C" >&6
7234: else
7235: if test -n "$ac_ct_DLLTOOL"; then
7236: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7237: else
7238: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239: for as_dir in $PATH
7240: do
7241: IFS=$as_save_IFS
7242: test -z "$as_dir" && as_dir=.
7243: for ac_exec_ext in '' $ac_executable_extensions; do
7244: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7246: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247: break 2
7248: fi
7249: done
7250: done
7251:
7252: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7253: fi
7254: fi
7255: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7256: if test -n "$ac_ct_DLLTOOL"; then
7257: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7258: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7259: else
7260: echo "$as_me:$LINENO: result: no" >&5
7261: echo "${ECHO_T}no" >&6
7262: fi
7263:
7264: DLLTOOL=$ac_ct_DLLTOOL
7265: else
7266: DLLTOOL="$ac_cv_prog_DLLTOOL"
7267: fi
7268:
7269: if test -n "$ac_tool_prefix"; then
7270: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7271: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7272: echo "$as_me:$LINENO: checking for $ac_word" >&5
7273: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7274: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7275: echo $ECHO_N "(cached) $ECHO_C" >&6
7276: else
7277: if test -n "$OBJDUMP"; then
7278: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7279: else
7280: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281: for as_dir in $PATH
7282: do
7283: IFS=$as_save_IFS
7284: test -z "$as_dir" && as_dir=.
7285: for ac_exec_ext in '' $ac_executable_extensions; do
7286: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7288: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289: break 2
7290: fi
7291: done
7292: done
7293:
7294: fi
7295: fi
7296: OBJDUMP=$ac_cv_prog_OBJDUMP
7297: if test -n "$OBJDUMP"; then
7298: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7299: echo "${ECHO_T}$OBJDUMP" >&6
7300: else
7301: echo "$as_me:$LINENO: result: no" >&5
7302: echo "${ECHO_T}no" >&6
7303: fi
7304:
7305: fi
7306: if test -z "$ac_cv_prog_OBJDUMP"; then
7307: ac_ct_OBJDUMP=$OBJDUMP
7308: # Extract the first word of "objdump", so it can be a program name with args.
7309: set dummy objdump; ac_word=$2
7310: echo "$as_me:$LINENO: checking for $ac_word" >&5
7311: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7313: echo $ECHO_N "(cached) $ECHO_C" >&6
7314: else
7315: if test -n "$ac_ct_OBJDUMP"; then
7316: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7317: else
7318: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319: for as_dir in $PATH
7320: do
7321: IFS=$as_save_IFS
7322: test -z "$as_dir" && as_dir=.
7323: for ac_exec_ext in '' $ac_executable_extensions; do
7324: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7326: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327: break 2
7328: fi
7329: done
7330: done
7331:
7332: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7333: fi
7334: fi
7335: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7336: if test -n "$ac_ct_OBJDUMP"; then
7337: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7338: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7339: else
7340: echo "$as_me:$LINENO: result: no" >&5
7341: echo "${ECHO_T}no" >&6
7342: fi
7343:
7344: OBJDUMP=$ac_ct_OBJDUMP
7345: else
7346: OBJDUMP="$ac_cv_prog_OBJDUMP"
7347: fi
7348:
7349: ;;
7350: esac
7351:
7352: test -z "$AS" && AS=as
7353:
7354:
7355:
7356:
7357:
7358: test -z "$DLLTOOL" && DLLTOOL=dlltool
7359:
7360:
7361:
7362:
7363:
7364: test -z "$OBJDUMP" && OBJDUMP=objdump
7365:
7366:
7367:
7368:
7369:
7370:
7371:
7372:
7373:
7374: # Check whether --enable-shared or --disable-shared was given.
7375: if test "${enable_shared+set}" = set; then
7376: enableval="$enable_shared"
7377: p=${PACKAGE-default}
7378: case $enableval in
7379: yes) enable_shared=yes ;;
7380: no) enable_shared=no ;;
7381: *)
7382: enable_shared=no
7383: # Look at the argument we got. We use all the common list separators.
7384: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7385: for pkg in $enableval; do
7386: IFS="$lt_save_ifs"
7387: if test "X$pkg" = "X$p"; then
7388: enable_shared=yes
7389: fi
7390: done
7391: IFS="$lt_save_ifs"
7392: ;;
7393: esac
7394: else
7395: enable_shared=yes
7396: fi;
1.8 moko 7397:
7398:
7399:
7400:
7401:
7402:
7403:
1.1 misha 7404:
1.11 moko 7405: # Check whether --enable-static or --disable-static was given.
7406: if test "${enable_static+set}" = set; then
7407: enableval="$enable_static"
7408: p=${PACKAGE-default}
1.8 moko 7409: case $enableval in
7410: yes) enable_static=yes ;;
7411: no) enable_static=no ;;
7412: *)
7413: enable_static=no
7414: # Look at the argument we got. We use all the common list separators.
7415: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416: for pkg in $enableval; do
7417: IFS="$lt_save_ifs"
7418: if test "X$pkg" = "X$p"; then
7419: enable_static=yes
7420: fi
7421: done
7422: IFS="$lt_save_ifs"
7423: ;;
7424: esac
1.1 misha 7425: else
1.8 moko 7426: enable_static=yes
1.11 moko 7427: fi;
1.8 moko 7428:
7429:
7430:
7431:
7432:
7433:
7434:
7435:
7436:
1.11 moko 7437: # Check whether --with-pic or --without-pic was given.
7438: if test "${with_pic+set}" = set; then
7439: withval="$with_pic"
7440: lt_p=${PACKAGE-default}
1.8 moko 7441: case $withval in
7442: yes|no) pic_mode=$withval ;;
7443: *)
7444: pic_mode=default
7445: # Look at the argument we got. We use all the common list separators.
7446: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7447: for lt_pkg in $withval; do
7448: IFS="$lt_save_ifs"
7449: if test "X$lt_pkg" = "X$lt_p"; then
7450: pic_mode=yes
7451: fi
7452: done
7453: IFS="$lt_save_ifs"
7454: ;;
7455: esac
1.1 misha 7456: else
1.8 moko 7457: pic_mode=default
1.11 moko 7458: fi;
1.8 moko 7459:
7460: test -z "$pic_mode" && pic_mode=default
7461:
7462:
7463:
7464:
7465:
7466:
1.1 misha 7467:
1.11 moko 7468: # Check whether --enable-fast-install or --disable-fast-install was given.
7469: if test "${enable_fast_install+set}" = set; then
7470: enableval="$enable_fast_install"
7471: p=${PACKAGE-default}
1.8 moko 7472: case $enableval in
7473: yes) enable_fast_install=yes ;;
7474: no) enable_fast_install=no ;;
7475: *)
7476: enable_fast_install=no
7477: # Look at the argument we got. We use all the common list separators.
7478: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7479: for pkg in $enableval; do
7480: IFS="$lt_save_ifs"
7481: if test "X$pkg" = "X$p"; then
7482: enable_fast_install=yes
7483: fi
7484: done
7485: IFS="$lt_save_ifs"
7486: ;;
7487: esac
1.1 misha 7488: else
1.8 moko 7489: enable_fast_install=yes
1.11 moko 7490: fi;
1.8 moko 7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501: # This can be used to rebuild libtool when needed
7502: LIBTOOL_DEPS="$ltmain"
7503:
7504: # Always use our own libtool.
7505: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
7532:
7533:
7534:
7535:
7536: test -z "$LN_S" && LN_S="ln -s"
7537:
7538:
7539:
7540:
7541:
7542:
7543:
7544:
7545:
7546:
7547:
7548:
7549:
1.1 misha 7550:
1.8 moko 7551: if test -n "${ZSH_VERSION+set}" ; then
7552: setopt NO_GLOB_SUBST
1.1 misha 7553: fi
1.8 moko 7554:
1.11 moko 7555: echo "$as_me:$LINENO: checking for objdir" >&5
7556: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7557: if test "${lt_cv_objdir+set}" = set; then
7558: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7559: else
7560: rm -f .libs 2>/dev/null
7561: mkdir .libs 2>/dev/null
7562: if test -d .libs; then
7563: lt_cv_objdir=.libs
7564: else
7565: # MS-DOS does not allow filenames that begin with a dot.
7566: lt_cv_objdir=_libs
1.1 misha 7567: fi
1.8 moko 7568: rmdir .libs 2>/dev/null
7569: fi
1.11 moko 7570: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7571: echo "${ECHO_T}$lt_cv_objdir" >&6
1.8 moko 7572: objdir=$lt_cv_objdir
1.1 misha 7573:
7574:
7575:
7576:
7577:
1.8 moko 7578: cat >>confdefs.h <<_ACEOF
7579: #define LT_OBJDIR "$lt_cv_objdir/"
7580: _ACEOF
1.1 misha 7581:
7582:
7583:
7584:
1.8 moko 7585: case $host_os in
7586: aix3*)
7587: # AIX sometimes has problems with the GCC collect2 program. For some
7588: # reason, if we set the COLLECT_NAMES environment variable, the problems
7589: # vanish in a puff of smoke.
7590: if test "X${COLLECT_NAMES+set}" != Xset; then
7591: COLLECT_NAMES=
7592: export COLLECT_NAMES
7593: fi
7594: ;;
7595: esac
1.1 misha 7596:
1.8 moko 7597: # Global variables:
7598: ofile=libtool
7599: can_build_shared=yes
1.1 misha 7600:
1.8 moko 7601: # All known linkers require a `.a' archive for static linking (except MSVC,
7602: # which needs '.lib').
7603: libext=a
1.1 misha 7604:
1.8 moko 7605: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 7606:
1.8 moko 7607: old_CC="$CC"
7608: old_CFLAGS="$CFLAGS"
1.1 misha 7609:
1.8 moko 7610: # Set sane defaults for various variables
7611: test -z "$CC" && CC=cc
7612: test -z "$LTCC" && LTCC=$CC
7613: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7614: test -z "$LD" && LD=ld
7615: test -z "$ac_objext" && ac_objext=o
1.1 misha 7616:
1.8 moko 7617: for cc_temp in $compiler""; do
7618: case $cc_temp in
7619: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7620: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7621: \-*) ;;
7622: *) break;;
1.1 misha 7623: esac
1.8 moko 7624: done
7625: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 7626:
7627:
1.8 moko 7628: # Only perform the check for file, if the check method requires it
7629: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7630: case $deplibs_check_method in
7631: file_magic*)
7632: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.11 moko 7633: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7634: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7635: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7636: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7637: else
7638: case $MAGIC_CMD in
7639: [\\/*] | ?:[\\/]*)
7640: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7641: ;;
7642: *)
7643: lt_save_MAGIC_CMD="$MAGIC_CMD"
7644: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7645: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7646: for ac_dir in $ac_dummy; do
7647: IFS="$lt_save_ifs"
7648: test -z "$ac_dir" && ac_dir=.
7649: if test -f $ac_dir/${ac_tool_prefix}file; then
7650: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7651: if test -n "$file_magic_test_file"; then
7652: case $deplibs_check_method in
7653: "file_magic "*)
7654: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7655: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7656: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7657: $EGREP "$file_magic_regex" > /dev/null; then
7658: :
7659: else
7660: cat <<_LT_EOF 1>&2
1.1 misha 7661:
1.8 moko 7662: *** Warning: the command libtool uses to detect shared libraries,
7663: *** $file_magic_cmd, produces output that libtool cannot recognize.
7664: *** The result is that libtool may fail to recognize shared libraries
7665: *** as such. This will affect the creation of libtool libraries that
7666: *** depend on shared libraries, but programs linked with such libtool
7667: *** libraries will work regardless of this problem. Nevertheless, you
7668: *** may want to report the problem to your system manager and/or to
7669: *** bug-libtool@gnu.org
1.1 misha 7670:
1.8 moko 7671: _LT_EOF
7672: fi ;;
7673: esac
7674: fi
7675: break
7676: fi
7677: done
7678: IFS="$lt_save_ifs"
7679: MAGIC_CMD="$lt_save_MAGIC_CMD"
7680: ;;
7681: esac
7682: fi
1.1 misha 7683:
1.8 moko 7684: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685: if test -n "$MAGIC_CMD"; then
1.11 moko 7686: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7687: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 misha 7688: else
1.11 moko 7689: echo "$as_me:$LINENO: result: no" >&5
7690: echo "${ECHO_T}no" >&6
1.8 moko 7691: fi
7692:
1.1 misha 7693:
7694:
7695:
7696:
1.8 moko 7697: if test -z "$lt_cv_path_MAGIC_CMD"; then
7698: if test -n "$ac_tool_prefix"; then
1.11 moko 7699: echo "$as_me:$LINENO: checking for file" >&5
7700: echo $ECHO_N "checking for file... $ECHO_C" >&6
7701: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7702: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7703: else
7704: case $MAGIC_CMD in
7705: [\\/*] | ?:[\\/]*)
7706: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7707: ;;
7708: *)
7709: lt_save_MAGIC_CMD="$MAGIC_CMD"
7710: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7711: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7712: for ac_dir in $ac_dummy; do
7713: IFS="$lt_save_ifs"
7714: test -z "$ac_dir" && ac_dir=.
7715: if test -f $ac_dir/file; then
7716: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7717: if test -n "$file_magic_test_file"; then
7718: case $deplibs_check_method in
7719: "file_magic "*)
7720: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7721: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7722: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7723: $EGREP "$file_magic_regex" > /dev/null; then
7724: :
7725: else
7726: cat <<_LT_EOF 1>&2
7727:
7728: *** Warning: the command libtool uses to detect shared libraries,
7729: *** $file_magic_cmd, produces output that libtool cannot recognize.
7730: *** The result is that libtool may fail to recognize shared libraries
7731: *** as such. This will affect the creation of libtool libraries that
7732: *** depend on shared libraries, but programs linked with such libtool
7733: *** libraries will work regardless of this problem. Nevertheless, you
7734: *** may want to report the problem to your system manager and/or to
7735: *** bug-libtool@gnu.org
1.1 misha 7736:
1.8 moko 7737: _LT_EOF
7738: fi ;;
7739: esac
7740: fi
7741: break
7742: fi
7743: done
7744: IFS="$lt_save_ifs"
7745: MAGIC_CMD="$lt_save_MAGIC_CMD"
7746: ;;
7747: esac
7748: fi
1.1 misha 7749:
1.8 moko 7750: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751: if test -n "$MAGIC_CMD"; then
1.11 moko 7752: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7753: echo "${ECHO_T}$MAGIC_CMD" >&6
1.8 moko 7754: else
1.11 moko 7755: echo "$as_me:$LINENO: result: no" >&5
7756: echo "${ECHO_T}no" >&6
1.8 moko 7757: fi
1.1 misha 7758:
7759:
1.8 moko 7760: else
7761: MAGIC_CMD=:
1.1 misha 7762: fi
7763: fi
1.8 moko 7764:
7765: fi
7766: ;;
7767: esac
7768:
7769: # Use C for the default configuration in the libtool script
7770:
7771: lt_save_CC="$CC"
7772: ac_ext=c
7773: ac_cpp='$CPP $CPPFLAGS'
7774: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777:
7778:
7779: # Source file extension for C test sources.
7780: ac_ext=c
7781:
7782: # Object file extension for compiled C test sources.
7783: objext=o
7784: objext=$objext
7785:
7786: # Code to be used in simple compile tests
7787: lt_simple_compile_test_code="int some_variable = 0;"
7788:
7789: # Code to be used in simple link tests
7790: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 7791:
7792:
7793:
7794:
7795:
7796:
7797:
1.8 moko 7798: # If no C compiler was specified, use CC.
7799: LTCC=${LTCC-"$CC"}
1.1 misha 7800:
1.8 moko 7801: # If no C compiler flags were specified, use CFLAGS.
7802: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 7803:
1.8 moko 7804: # Allow CC to be a program name with arguments.
7805: compiler=$CC
1.1 misha 7806:
1.8 moko 7807: # Save the default compiler, since it gets overwritten when the other
7808: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7809: compiler_DEFAULT=$CC
1.1 misha 7810:
1.8 moko 7811: # save warnings/boilerplate of simple test code
7812: ac_outfile=conftest.$ac_objext
7813: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7814: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7815: _lt_compiler_boilerplate=`cat conftest.err`
7816: $RM conftest*
1.1 misha 7817:
1.8 moko 7818: ac_outfile=conftest.$ac_objext
7819: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7820: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7821: _lt_linker_boilerplate=`cat conftest.err`
7822: $RM -r conftest*
1.1 misha 7823:
7824:
1.12 moko 7825: ## CAVEAT EMPTOR:
7826: ## There is no encapsulation within the following macros, do not change
7827: ## the running order or otherwise move them around unless you know exactly
7828: ## what you are doing...
1.8 moko 7829: if test -n "$compiler"; then
1.1 misha 7830:
1.8 moko 7831: lt_prog_compiler_no_builtin_flag=
1.1 misha 7832:
1.8 moko 7833: if test "$GCC" = yes; then
7834: case $cc_basename in
7835: nvcc*)
7836: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7837: *)
7838: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 7839: esac
7840:
1.11 moko 7841: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7842: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7843: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7844: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 7845: else
1.8 moko 7846: lt_cv_prog_compiler_rtti_exceptions=no
7847: ac_outfile=conftest.$ac_objext
7848: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7849: lt_compiler_flag="-fno-rtti -fno-exceptions"
7850: # Insert the option either (1) after the last *FLAGS variable, or
7851: # (2) before a word containing "conftest.", or (3) at the end.
7852: # Note that $ac_compile itself does not contain backslashes and begins
7853: # with a dollar sign (not a hyphen), so the echo should work correctly.
7854: # The option is referenced via a variable to avoid confusing sed.
7855: lt_compile=`echo "$ac_compile" | $SED \
7856: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7857: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858: -e 's:$: $lt_compiler_flag:'`
7859: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7860: (eval "$lt_compile" 2>conftest.err)
7861: ac_status=$?
7862: cat conftest.err >&5
7863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864: if (exit $ac_status) && test -s "$ac_outfile"; then
7865: # The compiler can only warn and ignore the option if not recognized
7866: # So say no if there are warnings other than the usual output.
7867: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7868: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7869: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7870: lt_cv_prog_compiler_rtti_exceptions=yes
7871: fi
7872: fi
7873: $RM conftest*
1.1 misha 7874:
7875: fi
1.11 moko 7876: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7877: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.1 misha 7878:
1.8 moko 7879: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7880: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7881: else
7882: :
1.1 misha 7883: fi
7884:
1.8 moko 7885: fi
1.1 misha 7886:
7887:
7888:
7889:
7890:
7891:
1.8 moko 7892: lt_prog_compiler_wl=
7893: lt_prog_compiler_pic=
7894: lt_prog_compiler_static=
1.1 misha 7895:
7896:
1.8 moko 7897: if test "$GCC" = yes; then
7898: lt_prog_compiler_wl='-Wl,'
7899: lt_prog_compiler_static='-static'
1.1 misha 7900:
1.8 moko 7901: case $host_os in
7902: aix*)
7903: # All AIX code is PIC.
7904: if test "$host_cpu" = ia64; then
7905: # AIX 5 now supports IA64 processor
7906: lt_prog_compiler_static='-Bstatic'
7907: fi
7908: ;;
1.1 misha 7909:
1.8 moko 7910: amigaos*)
7911: case $host_cpu in
7912: powerpc)
7913: # see comment about AmigaOS4 .so support
7914: lt_prog_compiler_pic='-fPIC'
7915: ;;
7916: m68k)
7917: # FIXME: we need at least 68020 code to build shared libraries, but
7918: # adding the `-m68020' flag to GCC prevents building anything better,
7919: # like `-m68040'.
7920: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7921: ;;
7922: esac
7923: ;;
1.1 misha 7924:
1.8 moko 7925: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7926: # PIC is the default for these OSes.
7927: ;;
1.1 misha 7928:
1.8 moko 7929: mingw* | cygwin* | pw32* | os2* | cegcc*)
7930: # This hack is so that the source file can tell whether it is being
7931: # built for inclusion in a dll (and should export symbols for example).
7932: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7933: # (--disable-auto-import) libraries
7934: lt_prog_compiler_pic='-DDLL_EXPORT'
7935: ;;
1.1 misha 7936:
1.8 moko 7937: darwin* | rhapsody*)
7938: # PIC is the default on this platform
7939: # Common symbols not allowed in MH_DYLIB files
7940: lt_prog_compiler_pic='-fno-common'
7941: ;;
1.1 misha 7942:
1.8 moko 7943: haiku*)
7944: # PIC is the default for Haiku.
7945: # The "-static" flag exists, but is broken.
7946: lt_prog_compiler_static=
7947: ;;
1.1 misha 7948:
1.8 moko 7949: hpux*)
7950: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7951: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7952: # sets the default TLS model and affects inlining.
7953: case $host_cpu in
7954: hppa*64*)
7955: # +Z the default
7956: ;;
7957: *)
7958: lt_prog_compiler_pic='-fPIC'
7959: ;;
7960: esac
7961: ;;
1.1 misha 7962:
1.8 moko 7963: interix[3-9]*)
7964: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7965: # Instead, we relocate shared libraries at runtime.
7966: ;;
1.1 misha 7967:
1.8 moko 7968: msdosdjgpp*)
7969: # Just because we use GCC doesn't mean we suddenly get shared libraries
7970: # on systems that don't support them.
7971: lt_prog_compiler_can_build_shared=no
7972: enable_shared=no
7973: ;;
1.1 misha 7974:
1.8 moko 7975: *nto* | *qnx*)
7976: # QNX uses GNU C++, but need to define -shared option too, otherwise
7977: # it will coredump.
7978: lt_prog_compiler_pic='-fPIC -shared'
7979: ;;
1.1 misha 7980:
1.8 moko 7981: sysv4*MP*)
7982: if test -d /usr/nec; then
7983: lt_prog_compiler_pic=-Kconform_pic
7984: fi
7985: ;;
1.1 misha 7986:
1.8 moko 7987: *)
7988: lt_prog_compiler_pic='-fPIC'
7989: ;;
7990: esac
1.1 misha 7991:
1.8 moko 7992: case $cc_basename in
7993: nvcc*) # Cuda Compiler Driver 2.2
7994: lt_prog_compiler_wl='-Xlinker '
7995: if test -n "$lt_prog_compiler_pic"; then
7996: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7997: fi
7998: ;;
7999: esac
8000: else
8001: # PORTME Check for flag to pass linker flags through the system compiler.
8002: case $host_os in
8003: aix*)
8004: lt_prog_compiler_wl='-Wl,'
8005: if test "$host_cpu" = ia64; then
8006: # AIX 5 now supports IA64 processor
8007: lt_prog_compiler_static='-Bstatic'
8008: else
8009: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8010: fi
8011: ;;
1.1 misha 8012:
1.8 moko 8013: mingw* | cygwin* | pw32* | os2* | cegcc*)
8014: # This hack is so that the source file can tell whether it is being
8015: # built for inclusion in a dll (and should export symbols for example).
8016: lt_prog_compiler_pic='-DDLL_EXPORT'
8017: ;;
1.1 misha 8018:
1.8 moko 8019: hpux9* | hpux10* | hpux11*)
8020: lt_prog_compiler_wl='-Wl,'
8021: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8022: # not for PA HP-UX.
8023: case $host_cpu in
8024: hppa*64*|ia64*)
8025: # +Z the default
8026: ;;
8027: *)
8028: lt_prog_compiler_pic='+Z'
8029: ;;
8030: esac
8031: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8032: lt_prog_compiler_static='${wl}-a ${wl}archive'
8033: ;;
1.1 misha 8034:
1.8 moko 8035: irix5* | irix6* | nonstopux*)
8036: lt_prog_compiler_wl='-Wl,'
8037: # PIC (with -KPIC) is the default.
8038: lt_prog_compiler_static='-non_shared'
8039: ;;
1.1 misha 8040:
1.8 moko 8041: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8042: case $cc_basename in
8043: # old Intel for x86_64 which still supported -KPIC.
8044: ecc*)
8045: lt_prog_compiler_wl='-Wl,'
8046: lt_prog_compiler_pic='-KPIC'
8047: lt_prog_compiler_static='-static'
8048: ;;
8049: # icc used to be incompatible with GCC.
8050: # ICC 10 doesn't accept -KPIC any more.
8051: icc* | ifort*)
8052: lt_prog_compiler_wl='-Wl,'
8053: lt_prog_compiler_pic='-fPIC'
8054: lt_prog_compiler_static='-static'
8055: ;;
8056: # Lahey Fortran 8.1.
8057: lf95*)
8058: lt_prog_compiler_wl='-Wl,'
8059: lt_prog_compiler_pic='--shared'
8060: lt_prog_compiler_static='--static'
8061: ;;
8062: nagfor*)
8063: # NAG Fortran compiler
8064: lt_prog_compiler_wl='-Wl,-Wl,,'
8065: lt_prog_compiler_pic='-PIC'
8066: lt_prog_compiler_static='-Bstatic'
8067: ;;
8068: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8069: # Portland Group compilers (*not* the Pentium gcc compiler,
8070: # which looks to be a dead project)
8071: lt_prog_compiler_wl='-Wl,'
8072: lt_prog_compiler_pic='-fpic'
8073: lt_prog_compiler_static='-Bstatic'
8074: ;;
8075: ccc*)
8076: lt_prog_compiler_wl='-Wl,'
8077: # All Alpha code is PIC.
8078: lt_prog_compiler_static='-non_shared'
8079: ;;
8080: xl* | bgxl* | bgf* | mpixl*)
8081: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8082: lt_prog_compiler_wl='-Wl,'
8083: lt_prog_compiler_pic='-qpic'
8084: lt_prog_compiler_static='-qstaticlink'
8085: ;;
8086: *)
8087: case `$CC -V 2>&1 | sed 5q` in
8088: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8089: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8090: lt_prog_compiler_pic='-KPIC'
8091: lt_prog_compiler_static='-Bstatic'
8092: lt_prog_compiler_wl=''
8093: ;;
8094: *Sun\ F* | *Sun*Fortran*)
8095: lt_prog_compiler_pic='-KPIC'
8096: lt_prog_compiler_static='-Bstatic'
8097: lt_prog_compiler_wl='-Qoption ld '
8098: ;;
8099: *Sun\ C*)
8100: # Sun C 5.9
8101: lt_prog_compiler_pic='-KPIC'
8102: lt_prog_compiler_static='-Bstatic'
8103: lt_prog_compiler_wl='-Wl,'
8104: ;;
8105: *Intel*\ [CF]*Compiler*)
8106: lt_prog_compiler_wl='-Wl,'
8107: lt_prog_compiler_pic='-fPIC'
8108: lt_prog_compiler_static='-static'
8109: ;;
8110: *Portland\ Group*)
8111: lt_prog_compiler_wl='-Wl,'
8112: lt_prog_compiler_pic='-fpic'
8113: lt_prog_compiler_static='-Bstatic'
8114: ;;
8115: esac
8116: ;;
8117: esac
8118: ;;
1.1 misha 8119:
1.8 moko 8120: newsos6)
8121: lt_prog_compiler_pic='-KPIC'
8122: lt_prog_compiler_static='-Bstatic'
8123: ;;
1.1 misha 8124:
1.8 moko 8125: *nto* | *qnx*)
8126: # QNX uses GNU C++, but need to define -shared option too, otherwise
8127: # it will coredump.
8128: lt_prog_compiler_pic='-fPIC -shared'
8129: ;;
1.1 misha 8130:
1.8 moko 8131: osf3* | osf4* | osf5*)
8132: lt_prog_compiler_wl='-Wl,'
8133: # All OSF/1 code is PIC.
8134: lt_prog_compiler_static='-non_shared'
8135: ;;
1.1 misha 8136:
1.8 moko 8137: rdos*)
8138: lt_prog_compiler_static='-non_shared'
8139: ;;
1.1 misha 8140:
1.8 moko 8141: solaris*)
8142: lt_prog_compiler_pic='-KPIC'
8143: lt_prog_compiler_static='-Bstatic'
8144: case $cc_basename in
8145: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8146: lt_prog_compiler_wl='-Qoption ld ';;
8147: *)
8148: lt_prog_compiler_wl='-Wl,';;
8149: esac
8150: ;;
1.1 misha 8151:
1.8 moko 8152: sunos4*)
8153: lt_prog_compiler_wl='-Qoption ld '
8154: lt_prog_compiler_pic='-PIC'
8155: lt_prog_compiler_static='-Bstatic'
8156: ;;
1.1 misha 8157:
1.8 moko 8158: sysv4 | sysv4.2uw2* | sysv4.3*)
8159: lt_prog_compiler_wl='-Wl,'
8160: lt_prog_compiler_pic='-KPIC'
8161: lt_prog_compiler_static='-Bstatic'
8162: ;;
1.1 misha 8163:
1.8 moko 8164: sysv4*MP*)
8165: if test -d /usr/nec ;then
8166: lt_prog_compiler_pic='-Kconform_pic'
8167: lt_prog_compiler_static='-Bstatic'
8168: fi
8169: ;;
1.1 misha 8170:
1.8 moko 8171: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8172: lt_prog_compiler_wl='-Wl,'
8173: lt_prog_compiler_pic='-KPIC'
8174: lt_prog_compiler_static='-Bstatic'
8175: ;;
1.1 misha 8176:
1.8 moko 8177: unicos*)
8178: lt_prog_compiler_wl='-Wl,'
8179: lt_prog_compiler_can_build_shared=no
8180: ;;
1.1 misha 8181:
1.8 moko 8182: uts4*)
8183: lt_prog_compiler_pic='-pic'
8184: lt_prog_compiler_static='-Bstatic'
8185: ;;
1.1 misha 8186:
1.8 moko 8187: *)
8188: lt_prog_compiler_can_build_shared=no
8189: ;;
8190: esac
8191: fi
1.1 misha 8192:
1.8 moko 8193: case $host_os in
8194: # For platforms which do not support PIC, -DPIC is meaningless:
8195: *djgpp*)
8196: lt_prog_compiler_pic=
8197: ;;
8198: *)
8199: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8200: ;;
8201: esac
1.1 misha 8202:
1.11 moko 8203: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8204: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8205: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8206: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8207: else
8208: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8209: fi
1.11 moko 8210: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8211: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
1.8 moko 8212: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 8213:
1.8 moko 8214: #
8215: # Check to make sure the PIC flag actually works.
8216: #
8217: if test -n "$lt_prog_compiler_pic"; then
1.11 moko 8218: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8219: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8220: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8221: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8222: else
8223: lt_cv_prog_compiler_pic_works=no
8224: ac_outfile=conftest.$ac_objext
8225: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8227: # Insert the option either (1) after the last *FLAGS variable, or
8228: # (2) before a word containing "conftest.", or (3) at the end.
8229: # Note that $ac_compile itself does not contain backslashes and begins
8230: # with a dollar sign (not a hyphen), so the echo should work correctly.
8231: # The option is referenced via a variable to avoid confusing sed.
8232: lt_compile=`echo "$ac_compile" | $SED \
8233: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235: -e 's:$: $lt_compiler_flag:'`
8236: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8237: (eval "$lt_compile" 2>conftest.err)
8238: ac_status=$?
8239: cat conftest.err >&5
8240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241: if (exit $ac_status) && test -s "$ac_outfile"; then
8242: # The compiler can only warn and ignore the option if not recognized
8243: # So say no if there are warnings other than the usual output.
8244: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8245: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8247: lt_cv_prog_compiler_pic_works=yes
8248: fi
8249: fi
8250: $RM conftest*
1.1 misha 8251:
1.8 moko 8252: fi
1.11 moko 8253: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8254: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.1 misha 8255:
1.8 moko 8256: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8257: case $lt_prog_compiler_pic in
8258: "" | " "*) ;;
8259: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8260: esac
8261: else
8262: lt_prog_compiler_pic=
8263: lt_prog_compiler_can_build_shared=no
8264: fi
1.1 misha 8265:
1.8 moko 8266: fi
1.1 misha 8267:
8268:
8269:
8270:
8271:
8272:
8273:
8274:
8275:
8276:
8277:
1.8 moko 8278: #
8279: # Check to make sure the static flag actually works.
8280: #
8281: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.11 moko 8282: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8283: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8284: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8285: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8286: else
8287: lt_cv_prog_compiler_static_works=no
8288: save_LDFLAGS="$LDFLAGS"
8289: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8290: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8291: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8292: # The linker can only warn and ignore the option if not recognized
8293: # So say no if there are warnings
8294: if test -s conftest.err; then
8295: # Append any errors to the config.log.
8296: cat conftest.err 1>&5
8297: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8298: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8299: if diff conftest.exp conftest.er2 >/dev/null; then
8300: lt_cv_prog_compiler_static_works=yes
8301: fi
8302: else
8303: lt_cv_prog_compiler_static_works=yes
8304: fi
8305: fi
8306: $RM -r conftest*
8307: LDFLAGS="$save_LDFLAGS"
1.1 misha 8308:
1.8 moko 8309: fi
1.11 moko 8310: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8311: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.1 misha 8312:
1.8 moko 8313: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8314: :
8315: else
8316: lt_prog_compiler_static=
8317: fi
1.1 misha 8318:
8319:
8320:
8321:
8322:
8323:
8324:
1.11 moko 8325: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8326: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8327: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8328: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8329: else
8330: lt_cv_prog_compiler_c_o=no
8331: $RM -r conftest 2>/dev/null
8332: mkdir conftest
8333: cd conftest
8334: mkdir out
8335: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336:
8337: lt_compiler_flag="-o out/conftest2.$ac_objext"
8338: # Insert the option either (1) after the last *FLAGS variable, or
8339: # (2) before a word containing "conftest.", or (3) at the end.
8340: # Note that $ac_compile itself does not contain backslashes and begins
8341: # with a dollar sign (not a hyphen), so the echo should work correctly.
8342: lt_compile=`echo "$ac_compile" | $SED \
8343: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345: -e 's:$: $lt_compiler_flag:'`
8346: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347: (eval "$lt_compile" 2>out/conftest.err)
8348: ac_status=$?
8349: cat out/conftest.err >&5
8350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8352: then
8353: # The compiler can only warn and ignore the option if not recognized
8354: # So say no if there are warnings
8355: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8356: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8357: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8358: lt_cv_prog_compiler_c_o=yes
8359: fi
8360: fi
8361: chmod u+w . 2>&5
8362: $RM conftest*
8363: # SGI C++ compiler will create directory out/ii_files/ for
8364: # template instantiation
8365: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8366: $RM out/* && rmdir out
8367: cd ..
8368: $RM -r conftest
8369: $RM conftest*
1.1 misha 8370:
1.8 moko 8371: fi
1.11 moko 8372: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8373: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8374:
8375:
8376:
8377:
8378:
8379:
1.11 moko 8380: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8381: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8382: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8383: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8384: else
8385: lt_cv_prog_compiler_c_o=no
8386: $RM -r conftest 2>/dev/null
8387: mkdir conftest
8388: cd conftest
8389: mkdir out
8390: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8391:
8392: lt_compiler_flag="-o out/conftest2.$ac_objext"
8393: # Insert the option either (1) after the last *FLAGS variable, or
8394: # (2) before a word containing "conftest.", or (3) at the end.
8395: # Note that $ac_compile itself does not contain backslashes and begins
8396: # with a dollar sign (not a hyphen), so the echo should work correctly.
8397: lt_compile=`echo "$ac_compile" | $SED \
8398: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8399: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8400: -e 's:$: $lt_compiler_flag:'`
8401: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8402: (eval "$lt_compile" 2>out/conftest.err)
8403: ac_status=$?
8404: cat out/conftest.err >&5
8405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8407: then
8408: # The compiler can only warn and ignore the option if not recognized
8409: # So say no if there are warnings
8410: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8411: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8412: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8413: lt_cv_prog_compiler_c_o=yes
8414: fi
8415: fi
8416: chmod u+w . 2>&5
8417: $RM conftest*
8418: # SGI C++ compiler will create directory out/ii_files/ for
8419: # template instantiation
8420: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8421: $RM out/* && rmdir out
8422: cd ..
8423: $RM -r conftest
8424: $RM conftest*
1.1 misha 8425:
1.8 moko 8426: fi
1.11 moko 8427: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8428: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8429:
8430:
8431:
8432:
1.8 moko 8433: hard_links="nottested"
8434: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8435: # do not overwrite the value of need_locks provided by the user
1.11 moko 8436: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8437: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 8438: hard_links=yes
8439: $RM conftest*
8440: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8441: touch conftest.a
8442: ln conftest.a conftest.b 2>&5 || hard_links=no
8443: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 8444: echo "$as_me:$LINENO: result: $hard_links" >&5
8445: echo "${ECHO_T}$hard_links" >&6
1.8 moko 8446: if test "$hard_links" = no; then
1.11 moko 8447: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8448: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 8449: need_locks=warn
8450: fi
8451: else
8452: need_locks=no
8453: fi
1.1 misha 8454:
8455:
8456:
8457:
8458:
8459:
1.11 moko 8460: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8461: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.1 misha 8462:
1.8 moko 8463: runpath_var=
8464: allow_undefined_flag=
8465: always_export_symbols=no
8466: archive_cmds=
8467: archive_expsym_cmds=
8468: compiler_needs_object=no
8469: enable_shared_with_static_runtimes=no
8470: export_dynamic_flag_spec=
8471: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8472: hardcode_automatic=no
8473: hardcode_direct=no
8474: hardcode_direct_absolute=no
8475: hardcode_libdir_flag_spec=
8476: hardcode_libdir_separator=
8477: hardcode_minus_L=no
8478: hardcode_shlibpath_var=unsupported
8479: inherit_rpath=no
8480: link_all_deplibs=unknown
8481: module_cmds=
8482: module_expsym_cmds=
8483: old_archive_from_new_cmds=
8484: old_archive_from_expsyms_cmds=
8485: thread_safe_flag_spec=
8486: whole_archive_flag_spec=
8487: # include_expsyms should be a list of space-separated symbols to be *always*
8488: # included in the symbol list
8489: include_expsyms=
8490: # exclude_expsyms can be an extended regexp of symbols to exclude
8491: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8492: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8493: # as well as any symbol that contains `d'.
8494: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8495: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8496: # platforms (ab)use it in PIC code, but their linkers get confused if
8497: # the symbol is explicitly referenced. Since portable code cannot
8498: # rely on this symbol name, it's probably fine to never include it in
8499: # preloaded symbol tables.
8500: # Exclude shared library initialization/finalization symbols.
8501: extract_expsyms_cmds=
1.1 misha 8502:
1.8 moko 8503: case $host_os in
8504: cygwin* | mingw* | pw32* | cegcc*)
8505: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8506: # When not using gcc, we currently assume that we are using
8507: # Microsoft Visual C++.
8508: if test "$GCC" != yes; then
8509: with_gnu_ld=no
8510: fi
8511: ;;
8512: interix*)
8513: # we just hope/assume this is gcc and not c89 (= MSVC++)
8514: with_gnu_ld=yes
8515: ;;
8516: openbsd*)
8517: with_gnu_ld=no
8518: ;;
8519: esac
1.1 misha 8520:
1.8 moko 8521: ld_shlibs=yes
1.1 misha 8522:
1.8 moko 8523: # On some targets, GNU ld is compatible enough with the native linker
8524: # that we're better off using the native interface for both.
8525: lt_use_gnu_ld_interface=no
8526: if test "$with_gnu_ld" = yes; then
8527: case $host_os in
8528: aix*)
8529: # The AIX port of GNU ld has always aspired to compatibility
8530: # with the native linker. However, as the warning in the GNU ld
8531: # block says, versions before 2.19.5* couldn't really create working
8532: # shared libraries, regardless of the interface used.
8533: case `$LD -v 2>&1` in
8534: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8535: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8536: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8537: *)
8538: lt_use_gnu_ld_interface=yes
8539: ;;
8540: esac
8541: ;;
8542: *)
8543: lt_use_gnu_ld_interface=yes
8544: ;;
8545: esac
8546: fi
1.1 misha 8547:
1.8 moko 8548: if test "$lt_use_gnu_ld_interface" = yes; then
8549: # If archive_cmds runs LD, not CC, wlarc should be empty
8550: wlarc='${wl}'
8551:
8552: # Set some defaults for GNU ld with shared library support. These
8553: # are reset later if shared libraries are not supported. Putting them
8554: # here allows them to be overridden if necessary.
8555: runpath_var=LD_RUN_PATH
8556: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8557: export_dynamic_flag_spec='${wl}--export-dynamic'
8558: # ancient GNU ld didn't support --whole-archive et. al.
8559: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8560: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8561: else
8562: whole_archive_flag_spec=
8563: fi
8564: supports_anon_versioning=no
8565: case `$LD -v 2>&1` in
8566: *GNU\ gold*) supports_anon_versioning=yes ;;
8567: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8568: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8569: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8570: *\ 2.11.*) ;; # other 2.11 versions
8571: *) supports_anon_versioning=yes ;;
8572: esac
1.1 misha 8573:
1.8 moko 8574: # See if GNU ld supports shared libraries.
8575: case $host_os in
8576: aix[3-9]*)
8577: # On AIX/PPC, the GNU linker is very broken
8578: if test "$host_cpu" != ia64; then
8579: ld_shlibs=no
8580: cat <<_LT_EOF 1>&2
1.1 misha 8581:
1.8 moko 8582: *** Warning: the GNU linker, at least up to release 2.19, is reported
8583: *** to be unable to reliably create shared libraries on AIX.
8584: *** Therefore, libtool is disabling shared libraries support. If you
8585: *** really care for shared libraries, you may want to install binutils
8586: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8587: *** You will then need to restart the configuration process.
1.1 misha 8588:
1.8 moko 8589: _LT_EOF
8590: fi
8591: ;;
1.1 misha 8592:
1.8 moko 8593: amigaos*)
8594: case $host_cpu in
8595: powerpc)
8596: # see comment about AmigaOS4 .so support
8597: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598: archive_expsym_cmds=''
8599: ;;
8600: m68k)
8601: 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)'
8602: hardcode_libdir_flag_spec='-L$libdir'
8603: hardcode_minus_L=yes
8604: ;;
8605: esac
8606: ;;
1.1 misha 8607:
1.8 moko 8608: beos*)
8609: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610: allow_undefined_flag=unsupported
8611: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8612: # support --undefined. This deserves some investigation. FIXME
8613: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614: else
8615: ld_shlibs=no
8616: fi
8617: ;;
1.1 misha 8618:
1.8 moko 8619: cygwin* | mingw* | pw32* | cegcc*)
8620: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8621: # as there is no search path for DLLs.
8622: hardcode_libdir_flag_spec='-L$libdir'
8623: export_dynamic_flag_spec='${wl}--export-all-symbols'
8624: allow_undefined_flag=unsupported
8625: always_export_symbols=no
8626: enable_shared_with_static_runtimes=yes
8627: 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'
8628: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8629:
8630: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8631: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8632: # If the export-symbols file already is a .def file (1st line
8633: # is EXPORTS), use it as is; otherwise, prepend...
8634: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8635: cp $export_symbols $output_objdir/$soname.def;
8636: else
8637: echo EXPORTS > $output_objdir/$soname.def;
8638: cat $export_symbols >> $output_objdir/$soname.def;
8639: fi~
8640: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8641: else
8642: ld_shlibs=no
8643: fi
8644: ;;
1.1 misha 8645:
1.8 moko 8646: haiku*)
8647: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648: link_all_deplibs=yes
8649: ;;
1.1 misha 8650:
1.8 moko 8651: interix[3-9]*)
8652: hardcode_direct=no
8653: hardcode_shlibpath_var=no
8654: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8655: export_dynamic_flag_spec='${wl}-E'
8656: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8657: # Instead, shared libraries are loaded at an image base (0x10000000 by
8658: # default) and relocated if they conflict, which is a slow very memory
8659: # consuming and fragmenting process. To avoid this, we pick a random,
8660: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8661: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8662: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8663: 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'
8664: ;;
1.1 misha 8665:
1.8 moko 8666: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8667: tmp_diet=no
8668: if test "$host_os" = linux-dietlibc; then
8669: case $cc_basename in
8670: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8671: esac
8672: fi
8673: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8674: && test "$tmp_diet" = no
8675: then
8676: tmp_addflag=' $pic_flag'
8677: tmp_sharedflag='-shared'
8678: case $cc_basename,$host_cpu in
8679: pgcc*) # Portland Group C compiler
8680: 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'
8681: tmp_addflag=' $pic_flag'
8682: ;;
8683: pgf77* | pgf90* | pgf95* | pgfortran*)
8684: # Portland Group f77 and f90 compilers
8685: 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'
8686: tmp_addflag=' $pic_flag -Mnomain' ;;
8687: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8688: tmp_addflag=' -i_dynamic' ;;
8689: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8690: tmp_addflag=' -i_dynamic -nofor_main' ;;
8691: ifc* | ifort*) # Intel Fortran compiler
8692: tmp_addflag=' -nofor_main' ;;
8693: lf95*) # Lahey Fortran 8.1
8694: whole_archive_flag_spec=
8695: tmp_sharedflag='--shared' ;;
8696: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8697: tmp_sharedflag='-qmkshrobj'
8698: tmp_addflag= ;;
8699: nvcc*) # Cuda Compiler Driver 2.2
8700: 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'
8701: compiler_needs_object=yes
8702: ;;
8703: esac
8704: case `$CC -V 2>&1 | sed 5q` in
8705: *Sun\ C*) # Sun C 5.9
8706: 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'
8707: compiler_needs_object=yes
8708: tmp_sharedflag='-G' ;;
8709: *Sun\ F*) # Sun Fortran 8.3
8710: tmp_sharedflag='-G' ;;
8711: esac
8712: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 8713:
1.8 moko 8714: if test "x$supports_anon_versioning" = xyes; then
8715: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8716: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8717: echo "local: *; };" >> $output_objdir/$libname.ver~
8718: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8719: fi
8720:
8721: case $cc_basename in
8722: xlf* | bgf* | bgxlf* | mpixlf*)
8723: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8724: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8725: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8727: if test "x$supports_anon_versioning" = xyes; then
8728: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8729: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8730: echo "local: *; };" >> $output_objdir/$libname.ver~
8731: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8732: fi
8733: ;;
8734: esac
8735: else
8736: ld_shlibs=no
8737: fi
8738: ;;
1.1 misha 8739:
1.8 moko 8740: netbsd*)
8741: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8742: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8743: wlarc=
8744: else
8745: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747: fi
8748: ;;
1.1 misha 8749:
1.8 moko 8750: solaris*)
8751: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8752: ld_shlibs=no
8753: cat <<_LT_EOF 1>&2
1.1 misha 8754:
1.8 moko 8755: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8756: *** create shared libraries on Solaris systems. Therefore, libtool
8757: *** is disabling shared libraries support. We urge you to upgrade GNU
8758: *** binutils to release 2.9.1 or newer. Another option is to modify
8759: *** your PATH or compiler configuration so that the native linker is
8760: *** used, and then restart.
1.1 misha 8761:
1.8 moko 8762: _LT_EOF
8763: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8764: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8765: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766: else
8767: ld_shlibs=no
8768: fi
8769: ;;
1.1 misha 8770:
1.8 moko 8771: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8772: case `$LD -v 2>&1` in
8773: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8774: ld_shlibs=no
8775: cat <<_LT_EOF 1>&2
1.1 misha 8776:
1.8 moko 8777: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8778: *** reliably create shared libraries on SCO systems. Therefore, libtool
8779: *** is disabling shared libraries support. We urge you to upgrade GNU
8780: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8781: *** your PATH or compiler configuration so that the native linker is
8782: *** used, and then restart.
1.1 misha 8783:
1.8 moko 8784: _LT_EOF
8785: ;;
8786: *)
8787: # For security reasons, it is highly recommended that you always
8788: # use absolute paths for naming shared libraries, and exclude the
8789: # DT_RUNPATH tag from executables and libraries. But doing so
8790: # requires that you compile everything twice, which is a pain.
8791: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795: else
8796: ld_shlibs=no
8797: fi
8798: ;;
8799: esac
8800: ;;
1.1 misha 8801:
1.8 moko 8802: sunos4*)
8803: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8804: wlarc=
8805: hardcode_direct=yes
8806: hardcode_shlibpath_var=no
8807: ;;
1.1 misha 8808:
1.8 moko 8809: *)
8810: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8811: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813: else
8814: ld_shlibs=no
8815: fi
8816: ;;
8817: esac
1.1 misha 8818:
1.8 moko 8819: if test "$ld_shlibs" = no; then
8820: runpath_var=
8821: hardcode_libdir_flag_spec=
8822: export_dynamic_flag_spec=
8823: whole_archive_flag_spec=
8824: fi
8825: else
8826: # PORTME fill in a description of your system's linker (not GNU ld)
8827: case $host_os in
8828: aix3*)
8829: allow_undefined_flag=unsupported
8830: always_export_symbols=yes
8831: 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'
8832: # Note: this linker hardcodes the directories in LIBPATH if there
8833: # are no directories specified by -L.
8834: hardcode_minus_L=yes
8835: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8836: # Neither direct hardcoding nor static linking is supported with a
8837: # broken collect2.
8838: hardcode_direct=unsupported
8839: fi
8840: ;;
1.1 misha 8841:
1.8 moko 8842: aix[4-9]*)
8843: if test "$host_cpu" = ia64; then
8844: # On IA64, the linker does run time linking by default, so we don't
8845: # have to do anything special.
8846: aix_use_runtimelinking=no
8847: exp_sym_flag='-Bexport'
8848: no_entry_flag=""
8849: else
8850: # If we're using GNU nm, then we don't want the "-C" option.
8851: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8852: # Also, AIX nm treats weak defined symbols like other global
8853: # defined symbols, whereas GNU nm marks them as "W".
8854: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8855: 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'
8856: else
8857: 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'
8858: fi
8859: aix_use_runtimelinking=no
1.1 misha 8860:
1.8 moko 8861: # Test if we are trying to use run time linking or normal
8862: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8863: # need to do runtime linking.
8864: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8865: for ld_flag in $LDFLAGS; do
8866: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8867: aix_use_runtimelinking=yes
8868: break
8869: fi
8870: done
8871: ;;
8872: esac
1.1 misha 8873:
1.8 moko 8874: exp_sym_flag='-bexport'
8875: no_entry_flag='-bnoentry'
8876: fi
1.1 misha 8877:
1.8 moko 8878: # When large executables or shared objects are built, AIX ld can
8879: # have problems creating the table of contents. If linking a library
8880: # or program results in "error TOC overflow" add -mminimal-toc to
8881: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8882: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8883:
8884: archive_cmds=''
8885: hardcode_direct=yes
8886: hardcode_direct_absolute=yes
8887: hardcode_libdir_separator=':'
8888: link_all_deplibs=yes
8889: file_list_spec='${wl}-f,'
8890:
8891: if test "$GCC" = yes; then
8892: case $host_os in aix4.[012]|aix4.[012].*)
8893: # We only want to do this on AIX 4.2 and lower, the check
8894: # below for broken collect2 doesn't work under 4.3+
8895: collect2name=`${CC} -print-prog-name=collect2`
8896: if test -f "$collect2name" &&
8897: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8898: then
8899: # We have reworked collect2
8900: :
8901: else
8902: # We have old collect2
8903: hardcode_direct=unsupported
8904: # It fails to find uninstalled libraries when the uninstalled
8905: # path is not listed in the libpath. Setting hardcode_minus_L
8906: # to unsupported forces relinking
8907: hardcode_minus_L=yes
8908: hardcode_libdir_flag_spec='-L$libdir'
8909: hardcode_libdir_separator=
8910: fi
8911: ;;
8912: esac
8913: shared_flag='-shared'
8914: if test "$aix_use_runtimelinking" = yes; then
8915: shared_flag="$shared_flag "'${wl}-G'
8916: fi
8917: else
8918: # not using gcc
8919: if test "$host_cpu" = ia64; then
8920: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8921: # chokes on -Wl,-G. The following line is correct:
8922: shared_flag='-G'
8923: else
8924: if test "$aix_use_runtimelinking" = yes; then
8925: shared_flag='${wl}-G'
8926: else
8927: shared_flag='${wl}-bM:SRE'
8928: fi
8929: fi
8930: fi
1.1 misha 8931:
1.8 moko 8932: export_dynamic_flag_spec='${wl}-bexpall'
8933: # It seems that -bexpall does not export symbols beginning with
8934: # underscore (_), so it is better to generate a list of symbols to export.
8935: always_export_symbols=yes
8936: if test "$aix_use_runtimelinking" = yes; then
8937: # Warning - without using the other runtime loading flags (-brtl),
8938: # -berok will link without error, but may produce a broken library.
8939: allow_undefined_flag='-berok'
8940: # Determine the default libpath from the value encoded in an
8941: # empty executable.
8942: if test "${lt_cv_aix_libpath+set}" = set; then
8943: aix_libpath=$lt_cv_aix_libpath
8944: else
1.11 moko 8945: if test "${lt_cv_aix_libpath_+set}" = set; then
8946: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 8947: else
1.11 moko 8948: cat >conftest.$ac_ext <<_ACEOF
8949: /* confdefs.h. */
8950: _ACEOF
8951: cat confdefs.h >>conftest.$ac_ext
8952: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 8953: /* end confdefs.h. */
1.8 moko 8954:
8955: int
8956: main ()
8957: {
8958:
8959: ;
8960: return 0;
8961: }
1.1 misha 8962: _ACEOF
1.11 moko 8963: rm -f conftest.$ac_objext conftest$ac_exeext
8964: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965: (eval $ac_link) 2>conftest.er1
8966: ac_status=$?
8967: grep -v '^ *+' conftest.er1 >conftest.err
8968: rm -f conftest.er1
8969: cat conftest.err >&5
8970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971: (exit $ac_status); } &&
8972: { ac_try='test -z "$ac_c_werror_flag"
8973: || test ! -s conftest.err'
8974: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975: (eval $ac_try) 2>&5
8976: ac_status=$?
8977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978: (exit $ac_status); }; } &&
8979: { ac_try='test -s conftest$ac_exeext'
8980: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981: (eval $ac_try) 2>&5
8982: ac_status=$?
8983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984: (exit $ac_status); }; }; then
1.8 moko 8985:
8986: lt_aix_libpath_sed='
8987: /Import File Strings/,/^$/ {
8988: /^0/ {
8989: s/^0 *\([^ ]*\) *$/\1/
8990: p
8991: }
8992: }'
8993: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8994: # Check for a 64-bit object if we didn't find anything.
8995: if test -z "$lt_cv_aix_libpath_"; then
8996: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997: fi
1.11 moko 8998: else
8999: echo "$as_me: failed program was:" >&5
9000: sed 's/^/| /' conftest.$ac_ext >&5
9001:
1.1 misha 9002: fi
1.11 moko 9003: rm -f conftest.err conftest.$ac_objext \
9004: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9005: if test -z "$lt_cv_aix_libpath_"; then
9006: lt_cv_aix_libpath_="/usr/lib:/lib"
9007: fi
9008:
9009: fi
9010:
9011: aix_libpath=$lt_cv_aix_libpath_
9012: fi
1.1 misha 9013:
1.8 moko 9014: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9015: 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"
9016: else
9017: if test "$host_cpu" = ia64; then
9018: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9019: allow_undefined_flag="-z nodefs"
9020: 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"
9021: else
9022: # Determine the default libpath from the value encoded in an
9023: # empty executable.
9024: if test "${lt_cv_aix_libpath+set}" = set; then
9025: aix_libpath=$lt_cv_aix_libpath
9026: else
1.11 moko 9027: if test "${lt_cv_aix_libpath_+set}" = set; then
9028: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 9029: else
1.11 moko 9030: cat >conftest.$ac_ext <<_ACEOF
9031: /* confdefs.h. */
9032: _ACEOF
9033: cat confdefs.h >>conftest.$ac_ext
9034: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9035: /* end confdefs.h. */
1.8 moko 9036:
9037: int
9038: main ()
9039: {
9040:
9041: ;
9042: return 0;
9043: }
1.1 misha 9044: _ACEOF
1.11 moko 9045: rm -f conftest.$ac_objext conftest$ac_exeext
9046: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047: (eval $ac_link) 2>conftest.er1
9048: ac_status=$?
9049: grep -v '^ *+' conftest.er1 >conftest.err
9050: rm -f conftest.er1
9051: cat conftest.err >&5
9052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053: (exit $ac_status); } &&
9054: { ac_try='test -z "$ac_c_werror_flag"
9055: || test ! -s conftest.err'
9056: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057: (eval $ac_try) 2>&5
9058: ac_status=$?
9059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060: (exit $ac_status); }; } &&
9061: { ac_try='test -s conftest$ac_exeext'
9062: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063: (eval $ac_try) 2>&5
9064: ac_status=$?
9065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066: (exit $ac_status); }; }; then
1.8 moko 9067:
9068: lt_aix_libpath_sed='
9069: /Import File Strings/,/^$/ {
9070: /^0/ {
9071: s/^0 *\([^ ]*\) *$/\1/
9072: p
9073: }
9074: }'
9075: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9076: # Check for a 64-bit object if we didn't find anything.
9077: if test -z "$lt_cv_aix_libpath_"; then
9078: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 9079: fi
1.11 moko 9080: else
9081: echo "$as_me: failed program was:" >&5
9082: sed 's/^/| /' conftest.$ac_ext >&5
9083:
1.1 misha 9084: fi
1.11 moko 9085: rm -f conftest.err conftest.$ac_objext \
9086: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9087: if test -z "$lt_cv_aix_libpath_"; then
9088: lt_cv_aix_libpath_="/usr/lib:/lib"
9089: fi
9090:
9091: fi
9092:
9093: aix_libpath=$lt_cv_aix_libpath_
9094: fi
9095:
9096: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9097: # Warning - without using the other run time loading flags,
9098: # -berok will link without error, but may produce a broken library.
9099: no_undefined_flag=' ${wl}-bernotok'
9100: allow_undefined_flag=' ${wl}-berok'
9101: if test "$with_gnu_ld" = yes; then
9102: # We only use this code for GNU lds that support --whole-archive.
9103: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9104: else
9105: # Exported symbols can be pulled into shared objects from archives
9106: whole_archive_flag_spec='$convenience'
9107: fi
9108: archive_cmds_need_lc=yes
9109: # This is similar to how AIX traditionally builds its shared libraries.
9110: 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'
9111: fi
9112: fi
9113: ;;
9114:
9115: amigaos*)
9116: case $host_cpu in
9117: powerpc)
9118: # see comment about AmigaOS4 .so support
9119: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120: archive_expsym_cmds=''
9121: ;;
9122: m68k)
9123: 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)'
9124: hardcode_libdir_flag_spec='-L$libdir'
9125: hardcode_minus_L=yes
9126: ;;
9127: esac
9128: ;;
9129:
9130: bsdi[45]*)
9131: export_dynamic_flag_spec=-rdynamic
9132: ;;
9133:
9134: cygwin* | mingw* | pw32* | cegcc*)
9135: # When not using gcc, we currently assume that we are using
9136: # Microsoft Visual C++.
9137: # hardcode_libdir_flag_spec is actually meaningless, as there is
9138: # no search path for DLLs.
9139: case $cc_basename in
9140: cl*)
9141: # Native MSVC
9142: hardcode_libdir_flag_spec=' '
9143: allow_undefined_flag=unsupported
9144: always_export_symbols=yes
9145: file_list_spec='@'
9146: # Tell ltmain to make .lib files, not .a files.
9147: libext=lib
9148: # Tell ltmain to make .dll files, not .so files.
9149: shrext_cmds=".dll"
9150: # FIXME: Setting linknames here is a bad hack.
9151: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9152: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9153: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9154: else
9155: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9156: fi~
9157: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9158: linknames='
9159: # The linker will not automatically build a static lib if we build a DLL.
9160: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9161: enable_shared_with_static_runtimes=yes
9162: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9163: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9164: # Don't use ranlib
9165: old_postinstall_cmds='chmod 644 $oldlib'
9166: postlink_cmds='lt_outputfile="@OUTPUT@"~
9167: lt_tool_outputfile="@TOOL_OUTPUT@"~
9168: case $lt_outputfile in
9169: *.exe|*.EXE) ;;
9170: *)
9171: lt_outputfile="$lt_outputfile.exe"
9172: lt_tool_outputfile="$lt_tool_outputfile.exe"
9173: ;;
9174: esac~
9175: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9176: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9177: $RM "$lt_outputfile.manifest";
9178: fi'
9179: ;;
9180: *)
9181: # Assume MSVC wrapper
9182: hardcode_libdir_flag_spec=' '
9183: allow_undefined_flag=unsupported
9184: # Tell ltmain to make .lib files, not .a files.
9185: libext=lib
9186: # Tell ltmain to make .dll files, not .so files.
9187: shrext_cmds=".dll"
9188: # FIXME: Setting linknames here is a bad hack.
9189: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9190: # The linker will automatically build a .lib file if we build a DLL.
9191: old_archive_from_new_cmds='true'
9192: # FIXME: Should let the user specify the lib program.
9193: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9194: enable_shared_with_static_runtimes=yes
9195: ;;
9196: esac
9197: ;;
9198:
9199: darwin* | rhapsody*)
9200:
9201:
9202: archive_cmds_need_lc=no
9203: hardcode_direct=no
9204: hardcode_automatic=yes
9205: hardcode_shlibpath_var=unsupported
9206: if test "$lt_cv_ld_force_load" = "yes"; then
9207: 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\"`'
9208:
9209: else
9210: whole_archive_flag_spec=''
9211: fi
9212: link_all_deplibs=yes
9213: allow_undefined_flag="$_lt_dar_allow_undefined"
9214: case $cc_basename in
9215: ifort*) _lt_dar_can_shared=yes ;;
9216: *) _lt_dar_can_shared=$GCC ;;
9217: esac
9218: if test "$_lt_dar_can_shared" = "yes"; then
9219: output_verbose_link_cmd=func_echo_all
9220: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9221: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9222: 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}"
9223: 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}"
9224:
9225: else
9226: ld_shlibs=no
9227: fi
9228:
9229: ;;
9230:
9231: dgux*)
9232: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9233: hardcode_libdir_flag_spec='-L$libdir'
9234: hardcode_shlibpath_var=no
9235: ;;
9236:
9237: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9238: # support. Future versions do this automatically, but an explicit c++rt0.o
9239: # does not break anything, and helps significantly (at the cost of a little
9240: # extra space).
9241: freebsd2.2*)
9242: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9243: hardcode_libdir_flag_spec='-R$libdir'
9244: hardcode_direct=yes
9245: hardcode_shlibpath_var=no
9246: ;;
9247:
9248: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9249: freebsd2.*)
9250: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9251: hardcode_direct=yes
9252: hardcode_minus_L=yes
9253: hardcode_shlibpath_var=no
9254: ;;
9255:
9256: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9257: freebsd* | dragonfly*)
9258: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9259: hardcode_libdir_flag_spec='-R$libdir'
9260: hardcode_direct=yes
9261: hardcode_shlibpath_var=no
9262: ;;
9263:
9264: hpux9*)
9265: if test "$GCC" = yes; then
9266: 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'
9267: else
9268: 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'
9269: fi
9270: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271: hardcode_libdir_separator=:
9272: hardcode_direct=yes
9273:
9274: # hardcode_minus_L: Not really in the search PATH,
9275: # but as the default location of the library.
9276: hardcode_minus_L=yes
9277: export_dynamic_flag_spec='${wl}-E'
9278: ;;
9279:
9280: hpux10*)
9281: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9282: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9283: else
9284: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9285: fi
9286: if test "$with_gnu_ld" = no; then
9287: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9288: hardcode_libdir_separator=:
9289: hardcode_direct=yes
9290: hardcode_direct_absolute=yes
9291: export_dynamic_flag_spec='${wl}-E'
9292: # hardcode_minus_L: Not really in the search PATH,
9293: # but as the default location of the library.
9294: hardcode_minus_L=yes
9295: fi
9296: ;;
9297:
9298: hpux11*)
9299: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9300: case $host_cpu in
9301: hppa*64*)
9302: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9303: ;;
9304: ia64*)
9305: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9306: ;;
9307: *)
9308: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9309: ;;
9310: esac
9311: else
9312: case $host_cpu in
9313: hppa*64*)
9314: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9315: ;;
9316: ia64*)
9317: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9318: ;;
9319: *)
1.1 misha 9320:
1.8 moko 9321: # Older versions of the 11.00 compiler do not understand -b yet
9322: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.11 moko 9323: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9324: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9325: if test "${lt_cv_prog_compiler__b+set}" = set; then
9326: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9327: else
1.8 moko 9328: lt_cv_prog_compiler__b=no
9329: save_LDFLAGS="$LDFLAGS"
9330: LDFLAGS="$LDFLAGS -b"
9331: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9332: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9333: # The linker can only warn and ignore the option if not recognized
9334: # So say no if there are warnings
9335: if test -s conftest.err; then
9336: # Append any errors to the config.log.
9337: cat conftest.err 1>&5
9338: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9339: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9340: if diff conftest.exp conftest.er2 >/dev/null; then
9341: lt_cv_prog_compiler__b=yes
9342: fi
9343: else
9344: lt_cv_prog_compiler__b=yes
9345: fi
9346: fi
9347: $RM -r conftest*
9348: LDFLAGS="$save_LDFLAGS"
1.1 misha 9349:
9350: fi
1.11 moko 9351: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9352: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 misha 9353:
1.8 moko 9354: if test x"$lt_cv_prog_compiler__b" = xyes; then
9355: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9356: else
9357: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 9358: fi
9359:
1.8 moko 9360: ;;
9361: esac
9362: fi
9363: if test "$with_gnu_ld" = no; then
9364: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9365: hardcode_libdir_separator=:
9366:
9367: case $host_cpu in
9368: hppa*64*|ia64*)
9369: hardcode_direct=no
9370: hardcode_shlibpath_var=no
9371: ;;
9372: *)
9373: hardcode_direct=yes
9374: hardcode_direct_absolute=yes
9375: export_dynamic_flag_spec='${wl}-E'
1.1 misha 9376:
1.8 moko 9377: # hardcode_minus_L: Not really in the search PATH,
9378: # but as the default location of the library.
9379: hardcode_minus_L=yes
9380: ;;
9381: esac
9382: fi
9383: ;;
1.1 misha 9384:
1.8 moko 9385: irix5* | irix6* | nonstopux*)
9386: if test "$GCC" = yes; then
9387: 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'
9388: # Try to use the -exported_symbol ld option, if it does not
9389: # work, assume that -exports_file does not work either and
9390: # implicitly export all symbols.
9391: # This should be the same for all languages, so no per-tag cache variable.
1.11 moko 9392: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9393: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9394: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9395: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9396: else
1.8 moko 9397: save_LDFLAGS="$LDFLAGS"
9398: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.11 moko 9399: cat >conftest.$ac_ext <<_ACEOF
9400: /* confdefs.h. */
9401: _ACEOF
9402: cat confdefs.h >>conftest.$ac_ext
9403: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9404: /* end confdefs.h. */
1.8 moko 9405: int foo (void) { return 0; }
1.1 misha 9406: _ACEOF
1.11 moko 9407: rm -f conftest.$ac_objext conftest$ac_exeext
9408: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409: (eval $ac_link) 2>conftest.er1
9410: ac_status=$?
9411: grep -v '^ *+' conftest.er1 >conftest.err
9412: rm -f conftest.er1
9413: cat conftest.err >&5
9414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415: (exit $ac_status); } &&
9416: { ac_try='test -z "$ac_c_werror_flag"
9417: || test ! -s conftest.err'
9418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419: (eval $ac_try) 2>&5
9420: ac_status=$?
9421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422: (exit $ac_status); }; } &&
9423: { ac_try='test -s conftest$ac_exeext'
9424: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425: (eval $ac_try) 2>&5
9426: ac_status=$?
9427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428: (exit $ac_status); }; }; then
1.8 moko 9429: lt_cv_irix_exported_symbol=yes
1.1 misha 9430: else
1.11 moko 9431: echo "$as_me: failed program was:" >&5
9432: sed 's/^/| /' conftest.$ac_ext >&5
9433:
9434: lt_cv_irix_exported_symbol=no
1.1 misha 9435: fi
1.11 moko 9436: rm -f conftest.err conftest.$ac_objext \
9437: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9438: LDFLAGS="$save_LDFLAGS"
1.1 misha 9439: fi
1.11 moko 9440: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9441: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
1.8 moko 9442: if test "$lt_cv_irix_exported_symbol" = yes; then
9443: 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'
9444: fi
9445: else
9446: 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'
9447: 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'
9448: fi
9449: archive_cmds_need_lc='no'
9450: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451: hardcode_libdir_separator=:
9452: inherit_rpath=yes
9453: link_all_deplibs=yes
9454: ;;
1.1 misha 9455:
1.8 moko 9456: netbsd*)
9457: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9458: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9459: else
9460: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9461: fi
9462: hardcode_libdir_flag_spec='-R$libdir'
9463: hardcode_direct=yes
9464: hardcode_shlibpath_var=no
9465: ;;
1.1 misha 9466:
1.8 moko 9467: newsos6)
9468: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469: hardcode_direct=yes
9470: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471: hardcode_libdir_separator=:
9472: hardcode_shlibpath_var=no
9473: ;;
1.1 misha 9474:
1.8 moko 9475: *nto* | *qnx*)
9476: ;;
1.1 misha 9477:
1.8 moko 9478: openbsd*)
9479: if test -f /usr/libexec/ld.so; then
9480: hardcode_direct=yes
9481: hardcode_shlibpath_var=no
9482: hardcode_direct_absolute=yes
9483: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9484: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9485: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9486: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487: export_dynamic_flag_spec='${wl}-E'
9488: else
9489: case $host_os in
9490: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9491: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9492: hardcode_libdir_flag_spec='-R$libdir'
9493: ;;
9494: *)
9495: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9496: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9497: ;;
9498: esac
9499: fi
9500: else
9501: ld_shlibs=no
9502: fi
9503: ;;
1.1 misha 9504:
1.8 moko 9505: os2*)
9506: hardcode_libdir_flag_spec='-L$libdir'
9507: hardcode_minus_L=yes
9508: allow_undefined_flag=unsupported
9509: 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'
9510: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9511: ;;
1.1 misha 9512:
1.8 moko 9513: osf3*)
9514: if test "$GCC" = yes; then
9515: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9516: 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'
9517: else
9518: allow_undefined_flag=' -expect_unresolved \*'
9519: 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'
9520: fi
9521: archive_cmds_need_lc='no'
9522: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523: hardcode_libdir_separator=:
9524: ;;
1.1 misha 9525:
1.8 moko 9526: osf4* | osf5*) # as osf3* with the addition of -msym flag
9527: if test "$GCC" = yes; then
9528: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9529: 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'
9530: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531: else
9532: allow_undefined_flag=' -expect_unresolved \*'
9533: 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'
9534: 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~
9535: $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'
9536:
9537: # Both c and cxx compiler support -rpath directly
9538: hardcode_libdir_flag_spec='-rpath $libdir'
9539: fi
9540: archive_cmds_need_lc='no'
9541: hardcode_libdir_separator=:
9542: ;;
9543:
9544: solaris*)
9545: no_undefined_flag=' -z defs'
9546: if test "$GCC" = yes; then
9547: wlarc='${wl}'
9548: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9549: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9550: $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'
9551: else
9552: case `$CC -V 2>&1` in
9553: *"Compilers 5.0"*)
9554: wlarc=''
9555: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9556: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9557: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9558: ;;
9559: *)
9560: wlarc='${wl}'
9561: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9562: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9563: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9564: ;;
9565: esac
9566: fi
9567: hardcode_libdir_flag_spec='-R$libdir'
9568: hardcode_shlibpath_var=no
9569: case $host_os in
9570: solaris2.[0-5] | solaris2.[0-5].*) ;;
9571: *)
9572: # The compiler driver will combine and reorder linker options,
9573: # but understands `-z linker_flag'. GCC discards it without `$wl',
9574: # but is careful enough not to reorder.
9575: # Supported since Solaris 2.6 (maybe 2.5.1?)
9576: if test "$GCC" = yes; then
9577: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9578: else
9579: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9580: fi
9581: ;;
9582: esac
9583: link_all_deplibs=yes
9584: ;;
9585:
9586: sunos4*)
9587: if test "x$host_vendor" = xsequent; then
9588: # Use $CC to link under sequent, because it throws in some extra .o
9589: # files that make .init and .fini sections work.
9590: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9591: else
9592: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9593: fi
9594: hardcode_libdir_flag_spec='-L$libdir'
9595: hardcode_direct=yes
9596: hardcode_minus_L=yes
9597: hardcode_shlibpath_var=no
9598: ;;
9599:
9600: sysv4)
9601: case $host_vendor in
9602: sni)
9603: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604: hardcode_direct=yes # is this really true???
9605: ;;
9606: siemens)
9607: ## LD is ld it makes a PLAMLIB
9608: ## CC just makes a GrossModule.
9609: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9610: reload_cmds='$CC -r -o $output$reload_objs'
9611: hardcode_direct=no
9612: ;;
9613: motorola)
9614: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9616: ;;
9617: esac
9618: runpath_var='LD_RUN_PATH'
9619: hardcode_shlibpath_var=no
9620: ;;
9621:
9622: sysv4.3*)
9623: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624: hardcode_shlibpath_var=no
9625: export_dynamic_flag_spec='-Bexport'
9626: ;;
9627:
9628: sysv4*MP*)
9629: if test -d /usr/nec; then
9630: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631: hardcode_shlibpath_var=no
9632: runpath_var=LD_RUN_PATH
9633: hardcode_runpath_var=yes
9634: ld_shlibs=yes
9635: fi
9636: ;;
9637:
9638: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9639: no_undefined_flag='${wl}-z,text'
9640: archive_cmds_need_lc=no
9641: hardcode_shlibpath_var=no
9642: runpath_var='LD_RUN_PATH'
9643:
9644: if test "$GCC" = yes; then
9645: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647: else
9648: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650: fi
9651: ;;
9652:
9653: sysv5* | sco3.2v5* | sco5v6*)
9654: # Note: We can NOT use -z defs as we might desire, because we do not
9655: # link with -lc, and that would cause any symbols used from libc to
9656: # always be unresolved, which means just about no library would
9657: # ever link correctly. If we're not using GNU ld we use -z text
9658: # though, which does catch some bad symbols but isn't as heavy-handed
9659: # as -z defs.
9660: no_undefined_flag='${wl}-z,text'
9661: allow_undefined_flag='${wl}-z,nodefs'
9662: archive_cmds_need_lc=no
9663: hardcode_shlibpath_var=no
9664: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9665: hardcode_libdir_separator=':'
9666: link_all_deplibs=yes
9667: export_dynamic_flag_spec='${wl}-Bexport'
9668: runpath_var='LD_RUN_PATH'
9669:
9670: if test "$GCC" = yes; then
9671: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673: else
9674: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676: fi
9677: ;;
1.1 misha 9678:
1.8 moko 9679: uts4*)
9680: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681: hardcode_libdir_flag_spec='-L$libdir'
9682: hardcode_shlibpath_var=no
1.1 misha 9683: ;;
1.8 moko 9684:
1.1 misha 9685: *)
1.8 moko 9686: ld_shlibs=no
1.1 misha 9687: ;;
1.8 moko 9688: esac
9689:
9690: if test x$host_vendor = xsni; then
9691: case $host in
9692: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9693: export_dynamic_flag_spec='${wl}-Blargedynsym'
9694: ;;
9695: esac
9696: fi
1.1 misha 9697: fi
9698:
1.11 moko 9699: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9700: echo "${ECHO_T}$ld_shlibs" >&6
1.8 moko 9701: test "$ld_shlibs" = no && can_build_shared=no
9702:
9703: with_gnu_ld=$with_gnu_ld
1.1 misha 9704:
9705:
9706:
9707:
9708:
9709:
9710:
9711:
9712:
9713:
9714:
9715:
9716:
9717:
9718:
1.8 moko 9719: #
9720: # Do we need to explicitly link libc?
9721: #
9722: case "x$archive_cmds_need_lc" in
9723: x|xyes)
9724: # Assume -lc should be added
9725: archive_cmds_need_lc=yes
9726:
9727: if test "$enable_shared" = yes && test "$GCC" = yes; then
9728: case $archive_cmds in
9729: *'~'*)
9730: # FIXME: we may have to deal with multi-command sequences.
9731: ;;
9732: '$CC '*)
9733: # Test whether the compiler implicitly links with -lc since on some
9734: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9735: # to ld, don't add -lc before -lgcc.
1.11 moko 9736: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9737: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9738: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9740: else
1.8 moko 9741: $RM conftest*
9742: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9743:
1.11 moko 9744: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 9745: (eval $ac_compile) 2>&5
9746: ac_status=$?
1.11 moko 9747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748: (exit $ac_status); } 2>conftest.err; then
1.8 moko 9749: soname=conftest
9750: lib=conftest
9751: libobjs=conftest.$ac_objext
9752: deplibs=
9753: wl=$lt_prog_compiler_wl
9754: pic_flag=$lt_prog_compiler_pic
9755: compiler_flags=-v
9756: linker_flags=-v
9757: verstring=
9758: output_objdir=.
9759: libname=conftest
9760: lt_save_allow_undefined_flag=$allow_undefined_flag
9761: allow_undefined_flag=
1.11 moko 9762: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 9763: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9764: ac_status=$?
1.11 moko 9765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766: (exit $ac_status); }
1.8 moko 9767: then
9768: lt_cv_archive_cmds_need_lc=no
9769: else
9770: lt_cv_archive_cmds_need_lc=yes
9771: fi
9772: allow_undefined_flag=$lt_save_allow_undefined_flag
9773: else
9774: cat conftest.err 1>&5
9775: fi
9776: $RM conftest*
9777:
1.1 misha 9778: fi
1.11 moko 9779: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9780: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
1.8 moko 9781: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9782: ;;
9783: esac
9784: fi
9785: ;;
9786: esac
9787:
9788:
9789:
9790:
9791:
9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
1.1 misha 9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901:
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
9921:
9922:
9923:
9924:
9925:
9926:
9927:
9928:
9929:
9930:
9931:
9932:
9933:
9934:
9935:
9936:
9937:
9938:
1.11 moko 9939: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9940: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.1 misha 9941:
1.8 moko 9942: if test "$GCC" = yes; then
9943: case $host_os in
9944: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9945: *) lt_awk_arg="/^libraries:/" ;;
9946: esac
9947: case $host_os in
9948: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9949: *) lt_sed_strip_eq="s,=/,/,g" ;;
9950: esac
9951: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9952: case $lt_search_path_spec in
9953: *\;*)
9954: # if the path contains ";" then we assume it to be the separator
9955: # otherwise default to the standard path separator (i.e. ":") - it is
9956: # assumed that no part of a normal pathname contains ";" but that should
9957: # okay in the real world where ";" in dirpaths is itself problematic.
9958: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9959: ;;
9960: *)
9961: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9962: ;;
9963: esac
9964: # Ok, now we have the path, separated by spaces, we can step through it
9965: # and add multilib dir if necessary.
9966: lt_tmp_lt_search_path_spec=
9967: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9968: for lt_sys_path in $lt_search_path_spec; do
9969: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9970: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9971: else
9972: test -d "$lt_sys_path" && \
9973: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9974: fi
9975: done
9976: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9977: BEGIN {RS=" "; FS="/|\n";} {
9978: lt_foo="";
9979: lt_count=0;
9980: for (lt_i = NF; lt_i > 0; lt_i--) {
9981: if ($lt_i != "" && $lt_i != ".") {
9982: if ($lt_i == "..") {
9983: lt_count++;
9984: } else {
9985: if (lt_count == 0) {
9986: lt_foo="/" $lt_i lt_foo;
9987: } else {
9988: lt_count--;
9989: }
9990: }
9991: }
9992: }
9993: if (lt_foo != "") { lt_freq[lt_foo]++; }
9994: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9995: }'`
9996: # AWK program above erroneously prepends '/' to C:/dos/paths
9997: # for these hosts.
9998: case $host_os in
9999: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10000: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10001: esac
10002: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 10003: else
1.8 moko 10004: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 10005: fi
1.8 moko 10006: library_names_spec=
10007: libname_spec='lib$name'
10008: soname_spec=
10009: shrext_cmds=".so"
10010: postinstall_cmds=
10011: postuninstall_cmds=
10012: finish_cmds=
10013: finish_eval=
10014: shlibpath_var=
10015: shlibpath_overrides_runpath=unknown
10016: version_type=none
10017: dynamic_linker="$host_os ld.so"
10018: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10019: need_lib_prefix=unknown
10020: hardcode_into_libs=no
10021:
10022: # when you set need_version to no, make sure it does not cause -set_version
10023: # flags to be left without arguments
10024: need_version=unknown
10025:
10026: case $host_os in
10027: aix3*)
10028: version_type=linux # correct to gnu/linux during the next big refactor
10029: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10030: shlibpath_var=LIBPATH
10031:
10032: # AIX 3 has no versioning support, so we append a major version to the name.
10033: soname_spec='${libname}${release}${shared_ext}$major'
10034: ;;
1.1 misha 10035:
1.8 moko 10036: aix[4-9]*)
10037: version_type=linux # correct to gnu/linux during the next big refactor
10038: need_lib_prefix=no
10039: need_version=no
10040: hardcode_into_libs=yes
10041: if test "$host_cpu" = ia64; then
10042: # AIX 5 supports IA64
10043: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10044: shlibpath_var=LD_LIBRARY_PATH
10045: else
10046: # With GCC up to 2.95.x, collect2 would create an import file
10047: # for dependence libraries. The import file would start with
10048: # the line `#! .'. This would cause the generated library to
10049: # depend on `.', always an invalid library. This was fixed in
10050: # development snapshots of GCC prior to 3.0.
10051: case $host_os in
10052: aix4 | aix4.[01] | aix4.[01].*)
10053: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10054: echo ' yes '
10055: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10056: :
10057: else
10058: can_build_shared=no
10059: fi
10060: ;;
10061: esac
10062: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10063: # soname into executable. Probably we can add versioning support to
10064: # collect2, so additional links can be useful in future.
10065: if test "$aix_use_runtimelinking" = yes; then
10066: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10067: # instead of lib<name>.a to let people know that these are not
10068: # typical AIX shared libraries.
10069: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 10070: else
1.8 moko 10071: # We preserve .a as extension for shared libraries through AIX4.2
10072: # and later when we are not doing run time linking.
10073: library_names_spec='${libname}${release}.a $libname.a'
10074: soname_spec='${libname}${release}${shared_ext}$major'
10075: fi
10076: shlibpath_var=LIBPATH
10077: fi
10078: ;;
10079:
10080: amigaos*)
10081: case $host_cpu in
10082: powerpc)
10083: # Since July 2007 AmigaOS4 officially supports .so libraries.
10084: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10085: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086: ;;
10087: m68k)
10088: library_names_spec='$libname.ixlibrary $libname.a'
10089: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10090: 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'
10091: ;;
10092: esac
10093: ;;
10094:
10095: beos*)
10096: library_names_spec='${libname}${shared_ext}'
10097: dynamic_linker="$host_os ld.so"
10098: shlibpath_var=LIBRARY_PATH
10099: ;;
10100:
10101: bsdi[45]*)
10102: version_type=linux # correct to gnu/linux during the next big refactor
10103: need_version=no
10104: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105: soname_spec='${libname}${release}${shared_ext}$major'
10106: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10107: shlibpath_var=LD_LIBRARY_PATH
10108: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10109: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10110: # the default ld.so.conf also contains /usr/contrib/lib and
10111: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10112: # libtool to hard-code these into programs
10113: ;;
10114:
10115: cygwin* | mingw* | pw32* | cegcc*)
10116: version_type=windows
10117: shrext_cmds=".dll"
10118: need_version=no
10119: need_lib_prefix=no
10120:
10121: case $GCC,$cc_basename in
10122: yes,*)
10123: # gcc
10124: library_names_spec='$libname.dll.a'
10125: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10126: postinstall_cmds='base_file=`basename \${file}`~
10127: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10128: dldir=$destdir/`dirname \$dlpath`~
10129: test -d \$dldir || mkdir -p \$dldir~
10130: $install_prog $dir/$dlname \$dldir/$dlname~
10131: chmod a+x \$dldir/$dlname~
10132: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10133: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10134: fi'
10135: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10136: dlpath=$dir/\$dldll~
10137: $RM \$dlpath'
10138: shlibpath_overrides_runpath=yes
10139:
10140: case $host_os in
10141: cygwin*)
10142: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10143: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10144:
10145: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10146: ;;
10147: mingw* | cegcc*)
10148: # MinGW DLLs use traditional 'lib' prefix
10149: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10150: ;;
10151: pw32*)
10152: # pw32 DLLs use 'pw' prefix rather than 'lib'
10153: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10154: ;;
10155: esac
10156: dynamic_linker='Win32 ld.exe'
10157: ;;
10158:
10159: *,cl*)
10160: # Native MSVC
10161: libname_spec='$name'
10162: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10163: library_names_spec='${libname}.dll.lib'
10164:
10165: case $build_os in
10166: mingw*)
10167: sys_lib_search_path_spec=
10168: lt_save_ifs=$IFS
10169: IFS=';'
10170: for lt_path in $LIB
10171: do
10172: IFS=$lt_save_ifs
10173: # Let DOS variable expansion print the short 8.3 style file name.
10174: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10175: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10176: done
10177: IFS=$lt_save_ifs
10178: # Convert to MSYS style.
10179: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10180: ;;
10181: cygwin*)
10182: # Convert to unix form, then to dos form, then back to unix form
10183: # but this time dos style (no spaces!) so that the unix form looks
10184: # like /cygdrive/c/PROGRA~1:/cygdr...
10185: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10186: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10187: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10188: ;;
10189: *)
10190: sys_lib_search_path_spec="$LIB"
10191: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10192: # It is most probably a Windows format PATH.
10193: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10194: else
10195: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10196: fi
10197: # FIXME: find the short name or the path components, as spaces are
10198: # common. (e.g. "Program Files" -> "PROGRA~1")
10199: ;;
10200: esac
10201:
10202: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10203: postinstall_cmds='base_file=`basename \${file}`~
10204: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10205: dldir=$destdir/`dirname \$dlpath`~
10206: test -d \$dldir || mkdir -p \$dldir~
10207: $install_prog $dir/$dlname \$dldir/$dlname'
10208: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10209: dlpath=$dir/\$dldll~
10210: $RM \$dlpath'
10211: shlibpath_overrides_runpath=yes
10212: dynamic_linker='Win32 link.exe'
10213: ;;
10214:
10215: *)
10216: # Assume MSVC wrapper
10217: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10218: dynamic_linker='Win32 ld.exe'
10219: ;;
10220: esac
10221: # FIXME: first we should search . and the directory the executable is in
10222: shlibpath_var=PATH
10223: ;;
10224:
10225: darwin* | rhapsody*)
10226: dynamic_linker="$host_os dyld"
10227: version_type=darwin
10228: need_lib_prefix=no
10229: need_version=no
10230: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10231: soname_spec='${libname}${release}${major}$shared_ext'
10232: shlibpath_overrides_runpath=yes
10233: shlibpath_var=DYLD_LIBRARY_PATH
10234: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 10235:
1.8 moko 10236: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10237: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10238: ;;
1.1 misha 10239:
1.8 moko 10240: dgux*)
10241: version_type=linux # correct to gnu/linux during the next big refactor
10242: need_lib_prefix=no
10243: need_version=no
10244: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10245: soname_spec='${libname}${release}${shared_ext}$major'
10246: shlibpath_var=LD_LIBRARY_PATH
10247: ;;
1.1 misha 10248:
1.8 moko 10249: freebsd* | dragonfly*)
10250: # DragonFly does not have aout. When/if they implement a new
10251: # versioning mechanism, adjust this.
10252: if test -x /usr/bin/objformat; then
10253: objformat=`/usr/bin/objformat`
1.1 misha 10254: else
1.8 moko 10255: case $host_os in
10256: freebsd[23].*) objformat=aout ;;
10257: *) objformat=elf ;;
10258: esac
1.1 misha 10259: fi
1.8 moko 10260: version_type=freebsd-$objformat
10261: case $version_type in
10262: freebsd-elf*)
10263: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10264: need_version=no
10265: need_lib_prefix=no
10266: ;;
10267: freebsd-*)
10268: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10269: need_version=yes
10270: ;;
10271: esac
10272: shlibpath_var=LD_LIBRARY_PATH
10273: case $host_os in
10274: freebsd2.*)
10275: shlibpath_overrides_runpath=yes
10276: ;;
10277: freebsd3.[01]* | freebsdelf3.[01]*)
10278: shlibpath_overrides_runpath=yes
10279: hardcode_into_libs=yes
10280: ;;
10281: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10282: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10283: shlibpath_overrides_runpath=no
10284: hardcode_into_libs=yes
10285: ;;
10286: *) # from 4.6 on, and DragonFly
10287: shlibpath_overrides_runpath=yes
10288: hardcode_into_libs=yes
10289: ;;
10290: esac
10291: ;;
10292:
10293: gnu*)
10294: version_type=linux # correct to gnu/linux during the next big refactor
10295: need_lib_prefix=no
10296: need_version=no
10297: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10298: soname_spec='${libname}${release}${shared_ext}$major'
10299: shlibpath_var=LD_LIBRARY_PATH
10300: shlibpath_overrides_runpath=no
10301: hardcode_into_libs=yes
10302: ;;
10303:
10304: haiku*)
10305: version_type=linux # correct to gnu/linux during the next big refactor
10306: need_lib_prefix=no
10307: need_version=no
10308: dynamic_linker="$host_os runtime_loader"
10309: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10310: soname_spec='${libname}${release}${shared_ext}$major'
10311: shlibpath_var=LIBRARY_PATH
10312: shlibpath_overrides_runpath=yes
10313: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10314: hardcode_into_libs=yes
10315: ;;
10316:
10317: hpux9* | hpux10* | hpux11*)
10318: # Give a soname corresponding to the major version so that dld.sl refuses to
10319: # link against other versions.
10320: version_type=sunos
10321: need_lib_prefix=no
10322: need_version=no
10323: case $host_cpu in
10324: ia64*)
10325: shrext_cmds='.so'
10326: hardcode_into_libs=yes
10327: dynamic_linker="$host_os dld.so"
10328: shlibpath_var=LD_LIBRARY_PATH
10329: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10330: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331: soname_spec='${libname}${release}${shared_ext}$major'
10332: if test "X$HPUX_IA64_MODE" = X32; then
10333: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10334: else
10335: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10336: fi
10337: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10338: ;;
10339: hppa*64*)
10340: shrext_cmds='.sl'
10341: hardcode_into_libs=yes
10342: dynamic_linker="$host_os dld.sl"
10343: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10344: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10345: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346: soname_spec='${libname}${release}${shared_ext}$major'
10347: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10348: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10349: ;;
10350: *)
10351: shrext_cmds='.sl'
10352: dynamic_linker="$host_os dld.sl"
10353: shlibpath_var=SHLIB_PATH
10354: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10355: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356: soname_spec='${libname}${release}${shared_ext}$major'
10357: ;;
10358: esac
10359: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10360: postinstall_cmds='chmod 555 $lib'
10361: # or fails outright, so override atomically:
10362: install_override_mode=555
10363: ;;
10364:
10365: interix[3-9]*)
10366: version_type=linux # correct to gnu/linux during the next big refactor
10367: need_lib_prefix=no
10368: need_version=no
10369: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370: soname_spec='${libname}${release}${shared_ext}$major'
10371: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372: shlibpath_var=LD_LIBRARY_PATH
10373: shlibpath_overrides_runpath=no
10374: hardcode_into_libs=yes
10375: ;;
10376:
10377: irix5* | irix6* | nonstopux*)
10378: case $host_os in
10379: nonstopux*) version_type=nonstopux ;;
10380: *)
10381: if test "$lt_cv_prog_gnu_ld" = yes; then
10382: version_type=linux # correct to gnu/linux during the next big refactor
10383: else
10384: version_type=irix
10385: fi ;;
10386: esac
10387: need_lib_prefix=no
10388: need_version=no
10389: soname_spec='${libname}${release}${shared_ext}$major'
10390: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391: case $host_os in
10392: irix5* | nonstopux*)
10393: libsuff= shlibsuff=
10394: ;;
10395: *)
10396: case $LD in # libtool.m4 will add one of these switches to LD
10397: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398: libsuff= shlibsuff= libmagic=32-bit;;
10399: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400: libsuff=32 shlibsuff=N32 libmagic=N32;;
10401: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403: *) libsuff= shlibsuff= libmagic=never-match;;
10404: esac
10405: ;;
10406: esac
10407: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408: shlibpath_overrides_runpath=no
10409: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411: hardcode_into_libs=yes
10412: ;;
10413:
10414: # No shared lib support for Linux oldld, aout, or coff.
10415: linux*oldld* | linux*aout* | linux*coff*)
10416: dynamic_linker=no
10417: ;;
10418:
10419: # This must be glibc/ELF.
10420: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10421: version_type=linux # correct to gnu/linux during the next big refactor
10422: need_lib_prefix=no
10423: need_version=no
10424: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425: soname_spec='${libname}${release}${shared_ext}$major'
10426: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427: shlibpath_var=LD_LIBRARY_PATH
10428: shlibpath_overrides_runpath=no
10429:
10430: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 10431: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10432: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10433: else
10434: lt_cv_shlibpath_overrides_runpath=no
10435: save_LDFLAGS=$LDFLAGS
10436: save_libdir=$libdir
10437: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10438: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.11 moko 10439: cat >conftest.$ac_ext <<_ACEOF
10440: /* confdefs.h. */
10441: _ACEOF
10442: cat confdefs.h >>conftest.$ac_ext
10443: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10444: /* end confdefs.h. */
10445:
10446: int
10447: main ()
10448: {
10449:
10450: ;
10451: return 0;
10452: }
10453: _ACEOF
1.11 moko 10454: rm -f conftest.$ac_objext conftest$ac_exeext
10455: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456: (eval $ac_link) 2>conftest.er1
10457: ac_status=$?
10458: grep -v '^ *+' conftest.er1 >conftest.err
10459: rm -f conftest.er1
10460: cat conftest.err >&5
10461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462: (exit $ac_status); } &&
10463: { ac_try='test -z "$ac_c_werror_flag"
10464: || test ! -s conftest.err'
10465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466: (eval $ac_try) 2>&5
10467: ac_status=$?
10468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469: (exit $ac_status); }; } &&
10470: { ac_try='test -s conftest$ac_exeext'
10471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472: (eval $ac_try) 2>&5
10473: ac_status=$?
10474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475: (exit $ac_status); }; }; then
10476: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 10477: lt_cv_shlibpath_overrides_runpath=yes
10478: fi
1.11 moko 10479:
10480: else
10481: echo "$as_me: failed program was:" >&5
10482: sed 's/^/| /' conftest.$ac_ext >&5
10483:
1.8 moko 10484: fi
1.11 moko 10485: rm -f conftest.err conftest.$ac_objext \
10486: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10487: LDFLAGS=$save_LDFLAGS
10488: libdir=$save_libdir
10489:
10490: fi
10491:
10492: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10493:
10494: # This implies no fast_install, which is unacceptable.
10495: # Some rework will be needed to allow for fast_install
10496: # before this can be enabled.
10497: hardcode_into_libs=yes
10498:
10499: # Append ld.so.conf contents to the search path
10500: if test -f /etc/ld.so.conf; then
10501: 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' ' '`
10502: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10503: fi
10504:
10505: # We used to test for /lib/ld.so.1 and disable shared libraries on
10506: # powerpc, because MkLinux only supported shared libraries with the
10507: # GNU dynamic linker. Since this was broken with cross compilers,
10508: # most powerpc-linux boxes support dynamic linking these days and
10509: # people can always --disable-shared, the test was removed, and we
10510: # assume the GNU/Linux dynamic linker is in use.
10511: dynamic_linker='GNU/Linux ld.so'
10512: ;;
10513:
10514: netbsd*)
10515: version_type=sunos
10516: need_lib_prefix=no
10517: need_version=no
10518: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10519: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10520: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10521: dynamic_linker='NetBSD (a.out) ld.so'
10522: else
10523: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10524: soname_spec='${libname}${release}${shared_ext}$major'
10525: dynamic_linker='NetBSD ld.elf_so'
10526: fi
10527: shlibpath_var=LD_LIBRARY_PATH
10528: shlibpath_overrides_runpath=yes
10529: hardcode_into_libs=yes
10530: ;;
10531:
10532: newsos6)
10533: version_type=linux # correct to gnu/linux during the next big refactor
10534: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535: shlibpath_var=LD_LIBRARY_PATH
10536: shlibpath_overrides_runpath=yes
10537: ;;
10538:
10539: *nto* | *qnx*)
10540: version_type=qnx
10541: need_lib_prefix=no
10542: need_version=no
10543: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544: soname_spec='${libname}${release}${shared_ext}$major'
10545: shlibpath_var=LD_LIBRARY_PATH
10546: shlibpath_overrides_runpath=no
10547: hardcode_into_libs=yes
10548: dynamic_linker='ldqnx.so'
10549: ;;
10550:
10551: openbsd*)
10552: version_type=sunos
10553: sys_lib_dlsearch_path_spec="/usr/lib"
10554: need_lib_prefix=no
10555: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10556: case $host_os in
10557: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10558: *) need_version=no ;;
10559: esac
10560: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10562: shlibpath_var=LD_LIBRARY_PATH
10563: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10564: case $host_os in
10565: openbsd2.[89] | openbsd2.[89].*)
10566: shlibpath_overrides_runpath=no
10567: ;;
10568: *)
10569: shlibpath_overrides_runpath=yes
10570: ;;
10571: esac
1.1 misha 10572: else
1.8 moko 10573: shlibpath_overrides_runpath=yes
10574: fi
10575: ;;
10576:
10577: os2*)
10578: libname_spec='$name'
10579: shrext_cmds=".dll"
10580: need_lib_prefix=no
10581: library_names_spec='$libname${shared_ext} $libname.a'
10582: dynamic_linker='OS/2 ld.exe'
10583: shlibpath_var=LIBPATH
10584: ;;
10585:
10586: osf3* | osf4* | osf5*)
10587: version_type=osf
10588: need_lib_prefix=no
10589: need_version=no
10590: soname_spec='${libname}${release}${shared_ext}$major'
10591: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592: shlibpath_var=LD_LIBRARY_PATH
10593: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10594: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10595: ;;
10596:
10597: rdos*)
10598: dynamic_linker=no
10599: ;;
10600:
10601: solaris*)
10602: version_type=linux # correct to gnu/linux during the next big refactor
10603: need_lib_prefix=no
10604: need_version=no
10605: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606: soname_spec='${libname}${release}${shared_ext}$major'
10607: shlibpath_var=LD_LIBRARY_PATH
10608: shlibpath_overrides_runpath=yes
10609: hardcode_into_libs=yes
10610: # ldd complains unless libraries are executable
10611: postinstall_cmds='chmod +x $lib'
10612: ;;
10613:
10614: sunos4*)
10615: version_type=sunos
10616: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10618: shlibpath_var=LD_LIBRARY_PATH
10619: shlibpath_overrides_runpath=yes
10620: if test "$with_gnu_ld" = yes; then
10621: need_lib_prefix=no
10622: fi
10623: need_version=yes
10624: ;;
10625:
10626: sysv4 | sysv4.3*)
10627: version_type=linux # correct to gnu/linux during the next big refactor
10628: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629: soname_spec='${libname}${release}${shared_ext}$major'
10630: shlibpath_var=LD_LIBRARY_PATH
10631: case $host_vendor in
10632: sni)
10633: shlibpath_overrides_runpath=no
10634: need_lib_prefix=no
10635: runpath_var=LD_RUN_PATH
10636: ;;
10637: siemens)
10638: need_lib_prefix=no
10639: ;;
10640: motorola)
10641: need_lib_prefix=no
10642: need_version=no
10643: shlibpath_overrides_runpath=no
10644: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10645: ;;
10646: esac
10647: ;;
10648:
10649: sysv4*MP*)
10650: if test -d /usr/nec ;then
10651: version_type=linux # correct to gnu/linux during the next big refactor
10652: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10653: soname_spec='$libname${shared_ext}.$major'
10654: shlibpath_var=LD_LIBRARY_PATH
10655: fi
10656: ;;
10657:
10658: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10659: version_type=freebsd-elf
10660: need_lib_prefix=no
10661: need_version=no
10662: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10663: soname_spec='${libname}${release}${shared_ext}$major'
10664: shlibpath_var=LD_LIBRARY_PATH
10665: shlibpath_overrides_runpath=yes
10666: hardcode_into_libs=yes
10667: if test "$with_gnu_ld" = yes; then
10668: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10669: else
10670: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10671: case $host_os in
10672: sco3.2v5*)
10673: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10674: ;;
10675: esac
10676: fi
10677: sys_lib_dlsearch_path_spec='/usr/lib'
10678: ;;
10679:
10680: tpf*)
10681: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10682: version_type=linux # correct to gnu/linux during the next big refactor
10683: need_lib_prefix=no
10684: need_version=no
10685: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686: shlibpath_var=LD_LIBRARY_PATH
10687: shlibpath_overrides_runpath=no
10688: hardcode_into_libs=yes
10689: ;;
10690:
10691: uts4*)
10692: version_type=linux # correct to gnu/linux during the next big refactor
10693: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694: soname_spec='${libname}${release}${shared_ext}$major'
10695: shlibpath_var=LD_LIBRARY_PATH
10696: ;;
10697:
10698: *)
10699: dynamic_linker=no
10700: ;;
10701: esac
1.11 moko 10702: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10703: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 10704: test "$dynamic_linker" = no && can_build_shared=no
10705:
10706: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10707: if test "$GCC" = yes; then
10708: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10709: fi
10710:
10711: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10712: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10713: fi
10714: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10715: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10716: fi
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
10788:
10789:
10790:
10791:
10792:
10793:
10794:
10795:
10796:
10797:
10798:
10799:
10800:
10801:
10802:
10803:
10804:
10805:
10806:
10807:
10808:
1.11 moko 10809: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10810: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 10811: hardcode_action=
10812: if test -n "$hardcode_libdir_flag_spec" ||
10813: test -n "$runpath_var" ||
10814: test "X$hardcode_automatic" = "Xyes" ; then
10815:
10816: # We can hardcode non-existent directories.
10817: if test "$hardcode_direct" != no &&
10818: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10819: # have to relink, otherwise we might link with an installed library
10820: # when we should be linking with a yet-to-be-installed one
10821: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10822: test "$hardcode_minus_L" != no; then
10823: # Linking always hardcodes the temporary library directory.
10824: hardcode_action=relink
10825: else
10826: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10827: hardcode_action=immediate
10828: fi
10829: else
10830: # We cannot hardcode anything, or else we can only hardcode existing
10831: # directories.
10832: hardcode_action=unsupported
10833: fi
1.11 moko 10834: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10835: echo "${ECHO_T}$hardcode_action" >&6
1.8 moko 10836:
10837: if test "$hardcode_action" = relink ||
10838: test "$inherit_rpath" = yes; then
10839: # Fast installation is not supported
10840: enable_fast_install=no
10841: elif test "$shlibpath_overrides_runpath" = yes ||
10842: test "$enable_shared" = no; then
10843: # Fast installation is not necessary
10844: enable_fast_install=needless
10845: fi
10846:
10847:
10848:
10849:
10850:
10851:
10852: if test "x$enable_dlopen" != xyes; then
10853: enable_dlopen=unknown
10854: enable_dlopen_self=unknown
10855: enable_dlopen_self_static=unknown
10856: else
10857: lt_cv_dlopen=no
10858: lt_cv_dlopen_libs=
10859:
10860: case $host_os in
10861: beos*)
10862: lt_cv_dlopen="load_add_on"
10863: lt_cv_dlopen_libs=
10864: lt_cv_dlopen_self=yes
10865: ;;
10866:
10867: mingw* | pw32* | cegcc*)
10868: lt_cv_dlopen="LoadLibrary"
10869: lt_cv_dlopen_libs=
10870: ;;
10871:
10872: cygwin*)
10873: lt_cv_dlopen="dlopen"
10874: lt_cv_dlopen_libs=
10875: ;;
10876:
10877: darwin*)
10878: # if libdl is installed we need to link against it
1.11 moko 10879: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10880: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10881: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10882: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10883: else
10884: ac_check_lib_save_LIBS=$LIBS
10885: LIBS="-ldl $LIBS"
1.11 moko 10886: cat >conftest.$ac_ext <<_ACEOF
10887: /* confdefs.h. */
10888: _ACEOF
10889: cat confdefs.h >>conftest.$ac_ext
10890: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10891: /* end confdefs.h. */
10892:
1.11 moko 10893: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 10894: #ifdef __cplusplus
10895: extern "C"
10896: #endif
1.11 moko 10897: /* We use char because int might match the return type of a gcc2
10898: builtin and then its argument prototype would still apply. */
1.8 moko 10899: char dlopen ();
10900: int
10901: main ()
10902: {
1.11 moko 10903: dlopen ();
1.8 moko 10904: ;
10905: return 0;
10906: }
10907: _ACEOF
1.11 moko 10908: rm -f conftest.$ac_objext conftest$ac_exeext
10909: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910: (eval $ac_link) 2>conftest.er1
10911: ac_status=$?
10912: grep -v '^ *+' conftest.er1 >conftest.err
10913: rm -f conftest.er1
10914: cat conftest.err >&5
10915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916: (exit $ac_status); } &&
10917: { ac_try='test -z "$ac_c_werror_flag"
10918: || test ! -s conftest.err'
10919: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920: (eval $ac_try) 2>&5
10921: ac_status=$?
10922: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923: (exit $ac_status); }; } &&
10924: { ac_try='test -s conftest$ac_exeext'
10925: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926: (eval $ac_try) 2>&5
10927: ac_status=$?
10928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929: (exit $ac_status); }; }; then
1.8 moko 10930: ac_cv_lib_dl_dlopen=yes
10931: else
1.11 moko 10932: echo "$as_me: failed program was:" >&5
10933: sed 's/^/| /' conftest.$ac_ext >&5
10934:
10935: ac_cv_lib_dl_dlopen=no
1.8 moko 10936: fi
1.11 moko 10937: rm -f conftest.err conftest.$ac_objext \
10938: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10939: LIBS=$ac_check_lib_save_LIBS
10940: fi
1.11 moko 10941: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10942: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10943: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 10944: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10945: else
10946:
10947: lt_cv_dlopen="dyld"
10948: lt_cv_dlopen_libs=
10949: lt_cv_dlopen_self=yes
10950:
10951: fi
10952:
10953: ;;
10954:
10955: *)
1.11 moko 10956: echo "$as_me:$LINENO: checking for shl_load" >&5
10957: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10958: if test "${ac_cv_func_shl_load+set}" = set; then
10959: echo $ECHO_N "(cached) $ECHO_C" >&6
10960: else
10961: cat >conftest.$ac_ext <<_ACEOF
10962: /* confdefs.h. */
10963: _ACEOF
10964: cat confdefs.h >>conftest.$ac_ext
10965: cat >>conftest.$ac_ext <<_ACEOF
10966: /* end confdefs.h. */
10967: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10968: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10969: #define shl_load innocuous_shl_load
10970:
10971: /* System header to define __stub macros and hopefully few prototypes,
10972: which can conflict with char shl_load (); below.
10973: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10974: <limits.h> exists even on freestanding compilers. */
10975:
10976: #ifdef __STDC__
10977: # include <limits.h>
10978: #else
10979: # include <assert.h>
10980: #endif
10981:
10982: #undef shl_load
10983:
10984: /* Override any gcc2 internal prototype to avoid an error. */
10985: #ifdef __cplusplus
10986: extern "C"
10987: {
10988: #endif
10989: /* We use char because int might match the return type of a gcc2
10990: builtin and then its argument prototype would still apply. */
10991: char shl_load ();
10992: /* The GNU C library defines this for functions which it implements
10993: to always fail with ENOSYS. Some functions are actually named
10994: something starting with __ and the normal name is an alias. */
10995: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10996: choke me
10997: #else
10998: char (*f) () = shl_load;
10999: #endif
11000: #ifdef __cplusplus
11001: }
11002: #endif
11003:
11004: int
11005: main ()
11006: {
11007: return f != shl_load;
11008: ;
11009: return 0;
11010: }
11011: _ACEOF
11012: rm -f conftest.$ac_objext conftest$ac_exeext
11013: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014: (eval $ac_link) 2>conftest.er1
11015: ac_status=$?
11016: grep -v '^ *+' conftest.er1 >conftest.err
11017: rm -f conftest.er1
11018: cat conftest.err >&5
11019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020: (exit $ac_status); } &&
11021: { ac_try='test -z "$ac_c_werror_flag"
11022: || test ! -s conftest.err'
11023: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024: (eval $ac_try) 2>&5
11025: ac_status=$?
11026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027: (exit $ac_status); }; } &&
11028: { ac_try='test -s conftest$ac_exeext'
11029: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030: (eval $ac_try) 2>&5
11031: ac_status=$?
11032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033: (exit $ac_status); }; }; then
11034: ac_cv_func_shl_load=yes
11035: else
11036: echo "$as_me: failed program was:" >&5
11037: sed 's/^/| /' conftest.$ac_ext >&5
11038:
11039: ac_cv_func_shl_load=no
11040: fi
11041: rm -f conftest.err conftest.$ac_objext \
11042: conftest$ac_exeext conftest.$ac_ext
11043: fi
11044: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11045: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11046: if test $ac_cv_func_shl_load = yes; then
1.8 moko 11047: lt_cv_dlopen="shl_load"
11048: else
1.11 moko 11049: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11050: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11051: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11052: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11053: else
11054: ac_check_lib_save_LIBS=$LIBS
11055: LIBS="-ldld $LIBS"
1.11 moko 11056: cat >conftest.$ac_ext <<_ACEOF
11057: /* confdefs.h. */
11058: _ACEOF
11059: cat confdefs.h >>conftest.$ac_ext
11060: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11061: /* end confdefs.h. */
11062:
1.11 moko 11063: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11064: #ifdef __cplusplus
11065: extern "C"
11066: #endif
1.11 moko 11067: /* We use char because int might match the return type of a gcc2
11068: builtin and then its argument prototype would still apply. */
1.8 moko 11069: char shl_load ();
11070: int
11071: main ()
11072: {
1.11 moko 11073: shl_load ();
1.8 moko 11074: ;
11075: return 0;
11076: }
11077: _ACEOF
1.11 moko 11078: rm -f conftest.$ac_objext conftest$ac_exeext
11079: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11080: (eval $ac_link) 2>conftest.er1
11081: ac_status=$?
11082: grep -v '^ *+' conftest.er1 >conftest.err
11083: rm -f conftest.er1
11084: cat conftest.err >&5
11085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086: (exit $ac_status); } &&
11087: { ac_try='test -z "$ac_c_werror_flag"
11088: || test ! -s conftest.err'
11089: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090: (eval $ac_try) 2>&5
11091: ac_status=$?
11092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093: (exit $ac_status); }; } &&
11094: { ac_try='test -s conftest$ac_exeext'
11095: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096: (eval $ac_try) 2>&5
11097: ac_status=$?
11098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099: (exit $ac_status); }; }; then
1.8 moko 11100: ac_cv_lib_dld_shl_load=yes
11101: else
1.11 moko 11102: echo "$as_me: failed program was:" >&5
11103: sed 's/^/| /' conftest.$ac_ext >&5
11104:
11105: ac_cv_lib_dld_shl_load=no
1.8 moko 11106: fi
1.11 moko 11107: rm -f conftest.err conftest.$ac_objext \
11108: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11109: LIBS=$ac_check_lib_save_LIBS
11110: fi
1.11 moko 11111: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11112: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11113: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 11114: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11115: else
1.11 moko 11116: echo "$as_me:$LINENO: checking for dlopen" >&5
11117: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11118: if test "${ac_cv_func_dlopen+set}" = set; then
11119: echo $ECHO_N "(cached) $ECHO_C" >&6
11120: else
11121: cat >conftest.$ac_ext <<_ACEOF
11122: /* confdefs.h. */
11123: _ACEOF
11124: cat confdefs.h >>conftest.$ac_ext
11125: cat >>conftest.$ac_ext <<_ACEOF
11126: /* end confdefs.h. */
11127: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11128: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11129: #define dlopen innocuous_dlopen
11130:
11131: /* System header to define __stub macros and hopefully few prototypes,
11132: which can conflict with char dlopen (); below.
11133: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134: <limits.h> exists even on freestanding compilers. */
11135:
11136: #ifdef __STDC__
11137: # include <limits.h>
11138: #else
11139: # include <assert.h>
11140: #endif
11141:
11142: #undef dlopen
11143:
11144: /* Override any gcc2 internal prototype to avoid an error. */
11145: #ifdef __cplusplus
11146: extern "C"
11147: {
11148: #endif
11149: /* We use char because int might match the return type of a gcc2
11150: builtin and then its argument prototype would still apply. */
11151: char dlopen ();
11152: /* The GNU C library defines this for functions which it implements
11153: to always fail with ENOSYS. Some functions are actually named
11154: something starting with __ and the normal name is an alias. */
11155: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11156: choke me
11157: #else
11158: char (*f) () = dlopen;
11159: #endif
11160: #ifdef __cplusplus
11161: }
11162: #endif
11163:
11164: int
11165: main ()
11166: {
11167: return f != dlopen;
11168: ;
11169: return 0;
11170: }
11171: _ACEOF
11172: rm -f conftest.$ac_objext conftest$ac_exeext
11173: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11174: (eval $ac_link) 2>conftest.er1
11175: ac_status=$?
11176: grep -v '^ *+' conftest.er1 >conftest.err
11177: rm -f conftest.er1
11178: cat conftest.err >&5
11179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180: (exit $ac_status); } &&
11181: { ac_try='test -z "$ac_c_werror_flag"
11182: || test ! -s conftest.err'
11183: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184: (eval $ac_try) 2>&5
11185: ac_status=$?
11186: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187: (exit $ac_status); }; } &&
11188: { ac_try='test -s conftest$ac_exeext'
11189: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190: (eval $ac_try) 2>&5
11191: ac_status=$?
11192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193: (exit $ac_status); }; }; then
11194: ac_cv_func_dlopen=yes
11195: else
11196: echo "$as_me: failed program was:" >&5
11197: sed 's/^/| /' conftest.$ac_ext >&5
11198:
11199: ac_cv_func_dlopen=no
11200: fi
11201: rm -f conftest.err conftest.$ac_objext \
11202: conftest$ac_exeext conftest.$ac_ext
11203: fi
11204: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11205: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11206: if test $ac_cv_func_dlopen = yes; then
1.8 moko 11207: lt_cv_dlopen="dlopen"
11208: else
1.11 moko 11209: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11210: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11211: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11212: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11213: else
11214: ac_check_lib_save_LIBS=$LIBS
11215: LIBS="-ldl $LIBS"
1.11 moko 11216: cat >conftest.$ac_ext <<_ACEOF
11217: /* confdefs.h. */
11218: _ACEOF
11219: cat confdefs.h >>conftest.$ac_ext
11220: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11221: /* end confdefs.h. */
11222:
1.11 moko 11223: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11224: #ifdef __cplusplus
11225: extern "C"
11226: #endif
1.11 moko 11227: /* We use char because int might match the return type of a gcc2
11228: builtin and then its argument prototype would still apply. */
1.8 moko 11229: char dlopen ();
11230: int
11231: main ()
11232: {
1.11 moko 11233: dlopen ();
1.8 moko 11234: ;
11235: return 0;
11236: }
11237: _ACEOF
1.11 moko 11238: rm -f conftest.$ac_objext conftest$ac_exeext
11239: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240: (eval $ac_link) 2>conftest.er1
11241: ac_status=$?
11242: grep -v '^ *+' conftest.er1 >conftest.err
11243: rm -f conftest.er1
11244: cat conftest.err >&5
11245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246: (exit $ac_status); } &&
11247: { ac_try='test -z "$ac_c_werror_flag"
11248: || test ! -s conftest.err'
11249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250: (eval $ac_try) 2>&5
11251: ac_status=$?
11252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253: (exit $ac_status); }; } &&
11254: { ac_try='test -s conftest$ac_exeext'
11255: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256: (eval $ac_try) 2>&5
11257: ac_status=$?
11258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259: (exit $ac_status); }; }; then
1.8 moko 11260: ac_cv_lib_dl_dlopen=yes
11261: else
1.11 moko 11262: echo "$as_me: failed program was:" >&5
11263: sed 's/^/| /' conftest.$ac_ext >&5
11264:
11265: ac_cv_lib_dl_dlopen=no
1.8 moko 11266: fi
1.11 moko 11267: rm -f conftest.err conftest.$ac_objext \
11268: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11269: LIBS=$ac_check_lib_save_LIBS
11270: fi
1.11 moko 11271: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11272: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11273: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 11274: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11275: else
1.11 moko 11276: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11277: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11278: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11279: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11280: else
11281: ac_check_lib_save_LIBS=$LIBS
11282: LIBS="-lsvld $LIBS"
1.11 moko 11283: cat >conftest.$ac_ext <<_ACEOF
11284: /* confdefs.h. */
11285: _ACEOF
11286: cat confdefs.h >>conftest.$ac_ext
11287: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11288: /* end confdefs.h. */
11289:
1.11 moko 11290: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11291: #ifdef __cplusplus
11292: extern "C"
11293: #endif
1.11 moko 11294: /* We use char because int might match the return type of a gcc2
11295: builtin and then its argument prototype would still apply. */
1.8 moko 11296: char dlopen ();
11297: int
11298: main ()
11299: {
1.11 moko 11300: dlopen ();
1.8 moko 11301: ;
11302: return 0;
11303: }
11304: _ACEOF
1.11 moko 11305: rm -f conftest.$ac_objext conftest$ac_exeext
11306: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307: (eval $ac_link) 2>conftest.er1
11308: ac_status=$?
11309: grep -v '^ *+' conftest.er1 >conftest.err
11310: rm -f conftest.er1
11311: cat conftest.err >&5
11312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313: (exit $ac_status); } &&
11314: { ac_try='test -z "$ac_c_werror_flag"
11315: || test ! -s conftest.err'
11316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317: (eval $ac_try) 2>&5
11318: ac_status=$?
11319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320: (exit $ac_status); }; } &&
11321: { ac_try='test -s conftest$ac_exeext'
11322: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323: (eval $ac_try) 2>&5
11324: ac_status=$?
11325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326: (exit $ac_status); }; }; then
1.8 moko 11327: ac_cv_lib_svld_dlopen=yes
11328: else
1.11 moko 11329: echo "$as_me: failed program was:" >&5
11330: sed 's/^/| /' conftest.$ac_ext >&5
11331:
11332: ac_cv_lib_svld_dlopen=no
1.8 moko 11333: fi
1.11 moko 11334: rm -f conftest.err conftest.$ac_objext \
11335: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11336: LIBS=$ac_check_lib_save_LIBS
11337: fi
1.11 moko 11338: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11339: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11340: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 11341: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11342: else
1.11 moko 11343: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11344: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11345: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11346: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11347: else
11348: ac_check_lib_save_LIBS=$LIBS
11349: LIBS="-ldld $LIBS"
1.11 moko 11350: cat >conftest.$ac_ext <<_ACEOF
11351: /* confdefs.h. */
11352: _ACEOF
11353: cat confdefs.h >>conftest.$ac_ext
11354: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11355: /* end confdefs.h. */
11356:
1.11 moko 11357: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11358: #ifdef __cplusplus
11359: extern "C"
11360: #endif
1.11 moko 11361: /* We use char because int might match the return type of a gcc2
11362: builtin and then its argument prototype would still apply. */
1.8 moko 11363: char dld_link ();
11364: int
11365: main ()
11366: {
1.11 moko 11367: dld_link ();
1.8 moko 11368: ;
11369: return 0;
11370: }
11371: _ACEOF
1.11 moko 11372: rm -f conftest.$ac_objext conftest$ac_exeext
11373: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374: (eval $ac_link) 2>conftest.er1
11375: ac_status=$?
11376: grep -v '^ *+' conftest.er1 >conftest.err
11377: rm -f conftest.er1
11378: cat conftest.err >&5
11379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380: (exit $ac_status); } &&
11381: { ac_try='test -z "$ac_c_werror_flag"
11382: || test ! -s conftest.err'
11383: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384: (eval $ac_try) 2>&5
11385: ac_status=$?
11386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387: (exit $ac_status); }; } &&
11388: { ac_try='test -s conftest$ac_exeext'
11389: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390: (eval $ac_try) 2>&5
11391: ac_status=$?
11392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393: (exit $ac_status); }; }; then
1.8 moko 11394: ac_cv_lib_dld_dld_link=yes
11395: else
1.11 moko 11396: echo "$as_me: failed program was:" >&5
11397: sed 's/^/| /' conftest.$ac_ext >&5
11398:
11399: ac_cv_lib_dld_dld_link=no
1.8 moko 11400: fi
1.11 moko 11401: rm -f conftest.err conftest.$ac_objext \
11402: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11403: LIBS=$ac_check_lib_save_LIBS
11404: fi
1.11 moko 11405: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11406: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11407: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 11408: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11409: fi
11410:
11411:
11412: fi
11413:
11414:
11415: fi
11416:
11417:
11418: fi
11419:
11420:
11421: fi
11422:
11423:
11424: fi
11425:
11426: ;;
11427: esac
11428:
11429: if test "x$lt_cv_dlopen" != xno; then
11430: enable_dlopen=yes
11431: else
11432: enable_dlopen=no
11433: fi
11434:
11435: case $lt_cv_dlopen in
11436: dlopen)
11437: save_CPPFLAGS="$CPPFLAGS"
11438: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11439:
11440: save_LDFLAGS="$LDFLAGS"
11441: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11442:
11443: save_LIBS="$LIBS"
11444: LIBS="$lt_cv_dlopen_libs $LIBS"
11445:
1.11 moko 11446: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11447: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11448: if test "${lt_cv_dlopen_self+set}" = set; then
11449: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11450: else
11451: if test "$cross_compiling" = yes; then :
11452: lt_cv_dlopen_self=cross
11453: else
11454: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11455: lt_status=$lt_dlunknown
11456: cat > conftest.$ac_ext <<_LT_EOF
11457: #line $LINENO "configure"
11458: #include "confdefs.h"
11459:
11460: #if HAVE_DLFCN_H
11461: #include <dlfcn.h>
11462: #endif
11463:
11464: #include <stdio.h>
11465:
11466: #ifdef RTLD_GLOBAL
11467: # define LT_DLGLOBAL RTLD_GLOBAL
11468: #else
11469: # ifdef DL_GLOBAL
11470: # define LT_DLGLOBAL DL_GLOBAL
11471: # else
11472: # define LT_DLGLOBAL 0
11473: # endif
11474: #endif
11475:
11476: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11477: find out it does not work in some platform. */
11478: #ifndef LT_DLLAZY_OR_NOW
11479: # ifdef RTLD_LAZY
11480: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11481: # else
11482: # ifdef DL_LAZY
11483: # define LT_DLLAZY_OR_NOW DL_LAZY
11484: # else
11485: # ifdef RTLD_NOW
11486: # define LT_DLLAZY_OR_NOW RTLD_NOW
11487: # else
11488: # ifdef DL_NOW
11489: # define LT_DLLAZY_OR_NOW DL_NOW
11490: # else
11491: # define LT_DLLAZY_OR_NOW 0
11492: # endif
11493: # endif
11494: # endif
11495: # endif
11496: #endif
11497:
11498: /* When -fvisbility=hidden is used, assume the code has been annotated
11499: correspondingly for the symbols needed. */
11500: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11501: int fnord () __attribute__((visibility("default")));
11502: #endif
11503:
11504: int fnord () { return 42; }
11505: int main ()
11506: {
11507: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11508: int status = $lt_dlunknown;
11509:
11510: if (self)
11511: {
11512: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11513: else
11514: {
11515: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11516: else puts (dlerror ());
11517: }
11518: /* dlclose (self); */
11519: }
11520: else
11521: puts (dlerror ());
11522:
11523: return status;
11524: }
11525: _LT_EOF
1.11 moko 11526: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11527: (eval $ac_link) 2>&5
11528: ac_status=$?
1.11 moko 11529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11531: (./conftest; exit; ) >&5 2>/dev/null
11532: lt_status=$?
11533: case x$lt_status in
11534: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11535: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11536: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11537: esac
11538: else :
11539: # compilation failed
11540: lt_cv_dlopen_self=no
11541: fi
11542: fi
11543: rm -fr conftest*
11544:
11545:
11546: fi
1.11 moko 11547: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11548: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.8 moko 11549:
11550: if test "x$lt_cv_dlopen_self" = xyes; then
11551: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.11 moko 11552: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11553: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11554: if test "${lt_cv_dlopen_self_static+set}" = set; then
11555: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11556: else
11557: if test "$cross_compiling" = yes; then :
11558: lt_cv_dlopen_self_static=cross
11559: else
11560: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11561: lt_status=$lt_dlunknown
11562: cat > conftest.$ac_ext <<_LT_EOF
11563: #line $LINENO "configure"
11564: #include "confdefs.h"
11565:
11566: #if HAVE_DLFCN_H
11567: #include <dlfcn.h>
11568: #endif
11569:
11570: #include <stdio.h>
11571:
11572: #ifdef RTLD_GLOBAL
11573: # define LT_DLGLOBAL RTLD_GLOBAL
11574: #else
11575: # ifdef DL_GLOBAL
11576: # define LT_DLGLOBAL DL_GLOBAL
11577: # else
11578: # define LT_DLGLOBAL 0
11579: # endif
11580: #endif
11581:
11582: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11583: find out it does not work in some platform. */
11584: #ifndef LT_DLLAZY_OR_NOW
11585: # ifdef RTLD_LAZY
11586: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11587: # else
11588: # ifdef DL_LAZY
11589: # define LT_DLLAZY_OR_NOW DL_LAZY
11590: # else
11591: # ifdef RTLD_NOW
11592: # define LT_DLLAZY_OR_NOW RTLD_NOW
11593: # else
11594: # ifdef DL_NOW
11595: # define LT_DLLAZY_OR_NOW DL_NOW
11596: # else
11597: # define LT_DLLAZY_OR_NOW 0
11598: # endif
11599: # endif
11600: # endif
11601: # endif
11602: #endif
11603:
11604: /* When -fvisbility=hidden is used, assume the code has been annotated
11605: correspondingly for the symbols needed. */
11606: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11607: int fnord () __attribute__((visibility("default")));
11608: #endif
11609:
11610: int fnord () { return 42; }
11611: int main ()
11612: {
11613: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11614: int status = $lt_dlunknown;
11615:
11616: if (self)
11617: {
11618: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11619: else
11620: {
11621: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11622: else puts (dlerror ());
11623: }
11624: /* dlclose (self); */
11625: }
11626: else
11627: puts (dlerror ());
11628:
11629: return status;
11630: }
11631: _LT_EOF
1.11 moko 11632: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11633: (eval $ac_link) 2>&5
11634: ac_status=$?
1.11 moko 11635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11637: (./conftest; exit; ) >&5 2>/dev/null
11638: lt_status=$?
11639: case x$lt_status in
11640: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11641: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11642: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11643: esac
11644: else :
11645: # compilation failed
11646: lt_cv_dlopen_self_static=no
11647: fi
11648: fi
11649: rm -fr conftest*
11650:
11651:
11652: fi
1.11 moko 11653: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11654: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.8 moko 11655: fi
11656:
11657: CPPFLAGS="$save_CPPFLAGS"
11658: LDFLAGS="$save_LDFLAGS"
11659: LIBS="$save_LIBS"
11660: ;;
11661: esac
11662:
11663: case $lt_cv_dlopen_self in
11664: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11665: *) enable_dlopen_self=unknown ;;
11666: esac
11667:
11668: case $lt_cv_dlopen_self_static in
11669: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11670: *) enable_dlopen_self_static=unknown ;;
11671: esac
11672: fi
11673:
11674:
11675:
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683:
11684:
11685:
11686:
11687:
11688:
11689:
11690: striplib=
11691: old_striplib=
1.11 moko 11692: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11693: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.8 moko 11694: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11695: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11696: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.11 moko 11697: echo "$as_me:$LINENO: result: yes" >&5
11698: echo "${ECHO_T}yes" >&6
1.8 moko 11699: else
11700: # FIXME - insert some real tests, host_os isn't really good enough
11701: case $host_os in
11702: darwin*)
11703: if test -n "$STRIP" ; then
11704: striplib="$STRIP -x"
11705: old_striplib="$STRIP -S"
1.11 moko 11706: echo "$as_me:$LINENO: result: yes" >&5
11707: echo "${ECHO_T}yes" >&6
1.8 moko 11708: else
1.11 moko 11709: echo "$as_me:$LINENO: result: no" >&5
11710: echo "${ECHO_T}no" >&6
1.8 moko 11711: fi
11712: ;;
11713: *)
1.11 moko 11714: echo "$as_me:$LINENO: result: no" >&5
11715: echo "${ECHO_T}no" >&6
1.8 moko 11716: ;;
11717: esac
11718: fi
11719:
11720:
11721:
11722:
11723:
11724:
11725:
11726:
11727:
11728:
11729:
11730:
11731: # Report which library types will actually be built
1.11 moko 11732: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11733: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11734: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11735: echo "${ECHO_T}$can_build_shared" >&6
1.8 moko 11736:
1.11 moko 11737: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11738: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1.8 moko 11739: test "$can_build_shared" = "no" && enable_shared=no
11740:
11741: # On AIX, shared libraries and static libraries use the same namespace, and
11742: # are all built from PIC.
11743: case $host_os in
11744: aix3*)
11745: test "$enable_shared" = yes && enable_static=no
11746: if test -n "$RANLIB"; then
11747: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11748: postinstall_cmds='$RANLIB $lib'
11749: fi
11750: ;;
11751:
11752: aix[4-9]*)
11753: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11754: test "$enable_shared" = yes && enable_static=no
11755: fi
11756: ;;
11757: esac
1.11 moko 11758: echo "$as_me:$LINENO: result: $enable_shared" >&5
11759: echo "${ECHO_T}$enable_shared" >&6
1.8 moko 11760:
1.11 moko 11761: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11762: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1.8 moko 11763: # Make sure either enable_shared or enable_static is yes.
11764: test "$enable_shared" = yes || enable_static=yes
1.11 moko 11765: echo "$as_me:$LINENO: result: $enable_static" >&5
11766: echo "${ECHO_T}$enable_static" >&6
1.8 moko 11767:
11768:
11769:
11770:
11771: fi
11772: ac_ext=c
11773: ac_cpp='$CPP $CPPFLAGS'
11774: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11775: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11776: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11777:
11778: CC="$lt_save_CC"
11779:
11780: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11781: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11782: (test "X$CXX" != "Xg++"))) ; then
1.11 moko 11783: ac_ext=cc
1.8 moko 11784: ac_cpp='$CXXCPP $CPPFLAGS'
11785: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11786: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11787: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 11788: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11789: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.8 moko 11790: if test -z "$CXXCPP"; then
1.11 moko 11791: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11792: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11793: else
11794: # Double quotes because CXXCPP needs to be expanded
11795: for CXXCPP in "$CXX -E" "/lib/cpp"
11796: do
11797: ac_preproc_ok=false
11798: for ac_cxx_preproc_warn_flag in '' yes
11799: do
11800: # Use a header file that comes with gcc, so configuring glibc
11801: # with a fresh cross-compiler works.
11802: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803: # <limits.h> exists even on freestanding compilers.
11804: # On the NeXT, cc -E runs the code through the compiler's parser,
11805: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11806: cat >conftest.$ac_ext <<_ACEOF
11807: /* confdefs.h. */
11808: _ACEOF
11809: cat confdefs.h >>conftest.$ac_ext
11810: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11811: /* end confdefs.h. */
11812: #ifdef __STDC__
11813: # include <limits.h>
11814: #else
11815: # include <assert.h>
11816: #endif
11817: Syntax error
11818: _ACEOF
1.11 moko 11819: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11820: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11821: ac_status=$?
11822: grep -v '^ *+' conftest.er1 >conftest.err
11823: rm -f conftest.er1
11824: cat conftest.err >&5
11825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826: (exit $ac_status); } >/dev/null; then
11827: if test -s conftest.err; then
11828: ac_cpp_err=$ac_cxx_preproc_warn_flag
11829: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11830: else
11831: ac_cpp_err=
11832: fi
11833: else
11834: ac_cpp_err=yes
11835: fi
11836: if test -z "$ac_cpp_err"; then
11837: :
11838: else
11839: echo "$as_me: failed program was:" >&5
11840: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11841:
1.8 moko 11842: # Broken: fails on valid input.
11843: continue
11844: fi
1.11 moko 11845: rm -f conftest.err conftest.$ac_ext
1.8 moko 11846:
1.11 moko 11847: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11848: # can be detected and how.
1.11 moko 11849: cat >conftest.$ac_ext <<_ACEOF
11850: /* confdefs.h. */
11851: _ACEOF
11852: cat confdefs.h >>conftest.$ac_ext
11853: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11854: /* end confdefs.h. */
11855: #include <ac_nonexistent.h>
11856: _ACEOF
1.11 moko 11857: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11858: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11859: ac_status=$?
11860: grep -v '^ *+' conftest.er1 >conftest.err
11861: rm -f conftest.er1
11862: cat conftest.err >&5
11863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864: (exit $ac_status); } >/dev/null; then
11865: if test -s conftest.err; then
11866: ac_cpp_err=$ac_cxx_preproc_warn_flag
11867: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11868: else
11869: ac_cpp_err=
11870: fi
11871: else
11872: ac_cpp_err=yes
11873: fi
11874: if test -z "$ac_cpp_err"; then
1.8 moko 11875: # Broken: success on invalid input.
11876: continue
11877: else
1.11 moko 11878: echo "$as_me: failed program was:" >&5
11879: sed 's/^/| /' conftest.$ac_ext >&5
11880:
1.8 moko 11881: # Passes both tests.
11882: ac_preproc_ok=:
11883: break
11884: fi
1.11 moko 11885: rm -f conftest.err conftest.$ac_ext
1.8 moko 11886:
11887: done
11888: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 11889: rm -f conftest.err conftest.$ac_ext
11890: if $ac_preproc_ok; then
1.8 moko 11891: break
11892: fi
11893:
11894: done
11895: ac_cv_prog_CXXCPP=$CXXCPP
11896:
11897: fi
11898: CXXCPP=$ac_cv_prog_CXXCPP
11899: else
11900: ac_cv_prog_CXXCPP=$CXXCPP
11901: fi
1.11 moko 11902: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11903: echo "${ECHO_T}$CXXCPP" >&6
1.8 moko 11904: ac_preproc_ok=false
11905: for ac_cxx_preproc_warn_flag in '' yes
11906: do
11907: # Use a header file that comes with gcc, so configuring glibc
11908: # with a fresh cross-compiler works.
11909: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910: # <limits.h> exists even on freestanding compilers.
11911: # On the NeXT, cc -E runs the code through the compiler's parser,
11912: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11913: cat >conftest.$ac_ext <<_ACEOF
11914: /* confdefs.h. */
11915: _ACEOF
11916: cat confdefs.h >>conftest.$ac_ext
11917: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11918: /* end confdefs.h. */
11919: #ifdef __STDC__
11920: # include <limits.h>
11921: #else
11922: # include <assert.h>
11923: #endif
11924: Syntax error
11925: _ACEOF
1.11 moko 11926: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11927: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11928: ac_status=$?
11929: grep -v '^ *+' conftest.er1 >conftest.err
11930: rm -f conftest.er1
11931: cat conftest.err >&5
11932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933: (exit $ac_status); } >/dev/null; then
11934: if test -s conftest.err; then
11935: ac_cpp_err=$ac_cxx_preproc_warn_flag
11936: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11937: else
11938: ac_cpp_err=
11939: fi
11940: else
11941: ac_cpp_err=yes
11942: fi
11943: if test -z "$ac_cpp_err"; then
11944: :
11945: else
11946: echo "$as_me: failed program was:" >&5
11947: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11948:
11949: # Broken: fails on valid input.
1.8 moko 11950: continue
11951: fi
1.11 moko 11952: rm -f conftest.err conftest.$ac_ext
1.8 moko 11953:
1.11 moko 11954: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11955: # can be detected and how.
1.11 moko 11956: cat >conftest.$ac_ext <<_ACEOF
11957: /* confdefs.h. */
11958: _ACEOF
11959: cat confdefs.h >>conftest.$ac_ext
11960: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11961: /* end confdefs.h. */
11962: #include <ac_nonexistent.h>
11963: _ACEOF
1.11 moko 11964: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11965: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11966: ac_status=$?
11967: grep -v '^ *+' conftest.er1 >conftest.err
11968: rm -f conftest.er1
11969: cat conftest.err >&5
11970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971: (exit $ac_status); } >/dev/null; then
11972: if test -s conftest.err; then
11973: ac_cpp_err=$ac_cxx_preproc_warn_flag
11974: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11975: else
11976: ac_cpp_err=
11977: fi
11978: else
11979: ac_cpp_err=yes
11980: fi
11981: if test -z "$ac_cpp_err"; then
1.8 moko 11982: # Broken: success on invalid input.
11983: continue
11984: else
1.11 moko 11985: echo "$as_me: failed program was:" >&5
11986: sed 's/^/| /' conftest.$ac_ext >&5
11987:
1.8 moko 11988: # Passes both tests.
11989: ac_preproc_ok=:
11990: break
11991: fi
1.11 moko 11992: rm -f conftest.err conftest.$ac_ext
1.8 moko 11993:
11994: done
11995: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 11996: rm -f conftest.err conftest.$ac_ext
11997: if $ac_preproc_ok; then
11998: :
1.8 moko 11999: else
1.11 moko 12000: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12001: See \`config.log' for more details." >&5
12002: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12003: See \`config.log' for more details." >&2;}
12004: { (exit 1); exit 1; }; }
1.8 moko 12005: fi
12006:
12007: ac_ext=c
12008: ac_cpp='$CPP $CPPFLAGS'
12009: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12010: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12011: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12012:
12013: else
12014: _lt_caught_CXX_error=yes
12015: fi
12016:
1.11 moko 12017: ac_ext=cc
1.8 moko 12018: ac_cpp='$CXXCPP $CPPFLAGS'
12019: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12022:
12023: archive_cmds_need_lc_CXX=no
12024: allow_undefined_flag_CXX=
12025: always_export_symbols_CXX=no
12026: archive_expsym_cmds_CXX=
12027: compiler_needs_object_CXX=no
12028: export_dynamic_flag_spec_CXX=
12029: hardcode_direct_CXX=no
12030: hardcode_direct_absolute_CXX=no
12031: hardcode_libdir_flag_spec_CXX=
12032: hardcode_libdir_separator_CXX=
12033: hardcode_minus_L_CXX=no
12034: hardcode_shlibpath_var_CXX=unsupported
12035: hardcode_automatic_CXX=no
12036: inherit_rpath_CXX=no
12037: module_cmds_CXX=
12038: module_expsym_cmds_CXX=
12039: link_all_deplibs_CXX=unknown
12040: old_archive_cmds_CXX=$old_archive_cmds
12041: reload_flag_CXX=$reload_flag
12042: reload_cmds_CXX=$reload_cmds
12043: no_undefined_flag_CXX=
12044: whole_archive_flag_spec_CXX=
12045: enable_shared_with_static_runtimes_CXX=no
12046:
12047: # Source file extension for C++ test sources.
12048: ac_ext=cpp
12049:
12050: # Object file extension for compiled C++ test sources.
12051: objext=o
12052: objext_CXX=$objext
12053:
12054: # No sense in running all these tests if we already determined that
12055: # the CXX compiler isn't working. Some variables (like enable_shared)
12056: # are currently assumed to apply to all compilers on this platform,
12057: # and will be corrupted by setting them based on a non-working compiler.
12058: if test "$_lt_caught_CXX_error" != yes; then
12059: # Code to be used in simple compile tests
12060: lt_simple_compile_test_code="int some_variable = 0;"
12061:
12062: # Code to be used in simple link tests
12063: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12064:
12065: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12066:
12067:
12068:
12069:
12070:
12071:
12072: # If no C compiler was specified, use CC.
12073: LTCC=${LTCC-"$CC"}
12074:
12075: # If no C compiler flags were specified, use CFLAGS.
12076: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12077:
12078: # Allow CC to be a program name with arguments.
12079: compiler=$CC
12080:
12081:
12082: # save warnings/boilerplate of simple test code
12083: ac_outfile=conftest.$ac_objext
12084: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12085: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12086: _lt_compiler_boilerplate=`cat conftest.err`
12087: $RM conftest*
12088:
12089: ac_outfile=conftest.$ac_objext
12090: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12091: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12092: _lt_linker_boilerplate=`cat conftest.err`
12093: $RM -r conftest*
12094:
12095:
12096: # Allow CC to be a program name with arguments.
12097: lt_save_CC=$CC
12098: lt_save_CFLAGS=$CFLAGS
12099: lt_save_LD=$LD
12100: lt_save_GCC=$GCC
12101: GCC=$GXX
12102: lt_save_with_gnu_ld=$with_gnu_ld
12103: lt_save_path_LD=$lt_cv_path_LD
12104: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12105: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12106: else
12107: $as_unset lt_cv_prog_gnu_ld
12108: fi
12109: if test -n "${lt_cv_path_LDCXX+set}"; then
12110: lt_cv_path_LD=$lt_cv_path_LDCXX
12111: else
12112: $as_unset lt_cv_path_LD
12113: fi
12114: test -z "${LDCXX+set}" || LD=$LDCXX
12115: CC=${CXX-"c++"}
12116: CFLAGS=$CXXFLAGS
12117: compiler=$CC
12118: compiler_CXX=$CC
12119: for cc_temp in $compiler""; do
12120: case $cc_temp in
12121: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12122: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12123: \-*) ;;
12124: *) break;;
12125: esac
12126: done
12127: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12128:
12129:
12130: if test -n "$compiler"; then
12131: # We don't want -fno-exception when compiling C++ code, so set the
12132: # no_builtin_flag separately
12133: if test "$GXX" = yes; then
12134: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12135: else
12136: lt_prog_compiler_no_builtin_flag_CXX=
12137: fi
12138:
12139: if test "$GXX" = yes; then
12140: # Set up default GNU C++ configuration
12141:
12142:
12143:
1.11 moko 12144: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12145: if test "${with_gnu_ld+set}" = set; then
12146: withval="$with_gnu_ld"
12147: test "$withval" = no || with_gnu_ld=yes
1.8 moko 12148: else
12149: with_gnu_ld=no
1.11 moko 12150: fi;
1.8 moko 12151: ac_prog=ld
12152: if test "$GCC" = yes; then
12153: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 12154: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12155: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 12156: case $host in
12157: *-*-mingw*)
12158: # gcc leaves a trailing carriage return which upsets mingw
12159: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12160: *)
12161: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12162: esac
12163: case $ac_prog in
12164: # Accept absolute paths.
12165: [\\/]* | ?:[\\/]*)
12166: re_direlt='/[^/][^/]*/\.\./'
12167: # Canonicalize the pathname of ld
12168: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12169: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12170: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12171: done
12172: test -z "$LD" && LD="$ac_prog"
12173: ;;
12174: "")
12175: # If it fails, then pretend we aren't using GCC.
12176: ac_prog=ld
12177: ;;
12178: *)
12179: # If it is relative, then search for the first ld in PATH.
12180: with_gnu_ld=unknown
12181: ;;
12182: esac
12183: elif test "$with_gnu_ld" = yes; then
1.11 moko 12184: echo "$as_me:$LINENO: checking for GNU ld" >&5
12185: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 12186: else
1.11 moko 12187: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12188: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 12189: fi
1.11 moko 12190: if test "${lt_cv_path_LD+set}" = set; then
12191: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12192: else
12193: if test -z "$LD"; then
12194: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12195: for ac_dir in $PATH; do
12196: IFS="$lt_save_ifs"
12197: test -z "$ac_dir" && ac_dir=.
12198: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12199: lt_cv_path_LD="$ac_dir/$ac_prog"
12200: # Check to see if the program is GNU ld. I'd rather use --version,
12201: # but apparently some variants of GNU ld only accept -v.
12202: # Break only if it was the GNU/non-GNU ld that we prefer.
12203: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12204: *GNU* | *'with BFD'*)
12205: test "$with_gnu_ld" != no && break
12206: ;;
12207: *)
12208: test "$with_gnu_ld" != yes && break
12209: ;;
12210: esac
12211: fi
12212: done
12213: IFS="$lt_save_ifs"
12214: else
12215: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12216: fi
12217: fi
12218:
12219: LD="$lt_cv_path_LD"
12220: if test -n "$LD"; then
1.11 moko 12221: echo "$as_me:$LINENO: result: $LD" >&5
12222: echo "${ECHO_T}$LD" >&6
1.8 moko 12223: else
1.11 moko 12224: echo "$as_me:$LINENO: result: no" >&5
12225: echo "${ECHO_T}no" >&6
1.8 moko 12226: fi
1.11 moko 12227: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12228: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12229: { (exit 1); exit 1; }; }
12230: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12231: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12232: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12233: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12234: else
12235: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12236: case `$LD -v 2>&1 </dev/null` in
12237: *GNU* | *'with BFD'*)
12238: lt_cv_prog_gnu_ld=yes
12239: ;;
12240: *)
12241: lt_cv_prog_gnu_ld=no
12242: ;;
12243: esac
12244: fi
1.11 moko 12245: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12246: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.8 moko 12247: with_gnu_ld=$lt_cv_prog_gnu_ld
12248:
12249:
12250:
12251:
12252:
12253:
12254:
12255: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12256: # archiving commands below assume that GNU ld is being used.
12257: if test "$with_gnu_ld" = yes; then
12258: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259: 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'
12260:
12261: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12262: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263:
12264: # If archive_cmds runs LD, not CC, wlarc should be empty
12265: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12266: # investigate it a little bit more. (MM)
12267: wlarc='${wl}'
12268:
12269: # ancient GNU ld didn't support --whole-archive et. al.
12270: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12271: $GREP 'no-whole-archive' > /dev/null; then
12272: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12273: else
12274: whole_archive_flag_spec_CXX=
12275: fi
12276: else
12277: with_gnu_ld=no
12278: wlarc=
12279:
12280: # A generic and very simple default shared library creation
12281: # command for GNU C++ for the case where it uses the native
12282: # linker, instead of GNU ld. If possible, this setting should
12283: # overridden to take advantage of the native linker features on
12284: # the platform it is being used on.
12285: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12286: fi
12287:
12288: # Commands to make compiler produce verbose output that lists
12289: # what "hidden" libraries, object files and flags are used when
12290: # linking a shared library.
12291: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12292:
12293: else
12294: GXX=no
12295: with_gnu_ld=no
12296: wlarc=
12297: fi
12298:
12299: # PORTME: fill in a description of your system's C++ link characteristics
1.11 moko 12300: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12301: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 12302: ld_shlibs_CXX=yes
12303: case $host_os in
12304: aix3*)
12305: # FIXME: insert proper C++ library support
12306: ld_shlibs_CXX=no
12307: ;;
12308: aix[4-9]*)
12309: if test "$host_cpu" = ia64; then
12310: # On IA64, the linker does run time linking by default, so we don't
12311: # have to do anything special.
12312: aix_use_runtimelinking=no
12313: exp_sym_flag='-Bexport'
12314: no_entry_flag=""
12315: else
12316: aix_use_runtimelinking=no
12317:
12318: # Test if we are trying to use run time linking or normal
12319: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12320: # need to do runtime linking.
12321: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12322: for ld_flag in $LDFLAGS; do
12323: case $ld_flag in
12324: *-brtl*)
12325: aix_use_runtimelinking=yes
12326: break
12327: ;;
12328: esac
12329: done
12330: ;;
12331: esac
12332:
12333: exp_sym_flag='-bexport'
12334: no_entry_flag='-bnoentry'
12335: fi
12336:
12337: # When large executables or shared objects are built, AIX ld can
12338: # have problems creating the table of contents. If linking a library
12339: # or program results in "error TOC overflow" add -mminimal-toc to
12340: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12341: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12342:
12343: archive_cmds_CXX=''
12344: hardcode_direct_CXX=yes
12345: hardcode_direct_absolute_CXX=yes
12346: hardcode_libdir_separator_CXX=':'
12347: link_all_deplibs_CXX=yes
12348: file_list_spec_CXX='${wl}-f,'
12349:
12350: if test "$GXX" = yes; then
12351: case $host_os in aix4.[012]|aix4.[012].*)
12352: # We only want to do this on AIX 4.2 and lower, the check
12353: # below for broken collect2 doesn't work under 4.3+
12354: collect2name=`${CC} -print-prog-name=collect2`
12355: if test -f "$collect2name" &&
12356: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12357: then
12358: # We have reworked collect2
12359: :
12360: else
12361: # We have old collect2
12362: hardcode_direct_CXX=unsupported
12363: # It fails to find uninstalled libraries when the uninstalled
12364: # path is not listed in the libpath. Setting hardcode_minus_L
12365: # to unsupported forces relinking
12366: hardcode_minus_L_CXX=yes
12367: hardcode_libdir_flag_spec_CXX='-L$libdir'
12368: hardcode_libdir_separator_CXX=
12369: fi
12370: esac
12371: shared_flag='-shared'
12372: if test "$aix_use_runtimelinking" = yes; then
12373: shared_flag="$shared_flag "'${wl}-G'
12374: fi
12375: else
12376: # not using gcc
12377: if test "$host_cpu" = ia64; then
12378: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12379: # chokes on -Wl,-G. The following line is correct:
12380: shared_flag='-G'
12381: else
12382: if test "$aix_use_runtimelinking" = yes; then
12383: shared_flag='${wl}-G'
12384: else
12385: shared_flag='${wl}-bM:SRE'
12386: fi
12387: fi
12388: fi
12389:
12390: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12391: # It seems that -bexpall does not export symbols beginning with
12392: # underscore (_), so it is better to generate a list of symbols to
12393: # export.
12394: always_export_symbols_CXX=yes
12395: if test "$aix_use_runtimelinking" = yes; then
12396: # Warning - without using the other runtime loading flags (-brtl),
12397: # -berok will link without error, but may produce a broken library.
12398: allow_undefined_flag_CXX='-berok'
12399: # Determine the default libpath from the value encoded in an empty
12400: # executable.
12401: if test "${lt_cv_aix_libpath+set}" = set; then
12402: aix_libpath=$lt_cv_aix_libpath
12403: else
1.11 moko 12404: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12405: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12406: else
1.11 moko 12407: cat >conftest.$ac_ext <<_ACEOF
12408: /* confdefs.h. */
12409: _ACEOF
12410: cat confdefs.h >>conftest.$ac_ext
12411: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12412: /* end confdefs.h. */
12413:
12414: int
12415: main ()
12416: {
12417:
12418: ;
12419: return 0;
12420: }
12421: _ACEOF
1.11 moko 12422: rm -f conftest.$ac_objext conftest$ac_exeext
12423: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424: (eval $ac_link) 2>conftest.er1
12425: ac_status=$?
12426: grep -v '^ *+' conftest.er1 >conftest.err
12427: rm -f conftest.er1
12428: cat conftest.err >&5
12429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430: (exit $ac_status); } &&
12431: { ac_try='test -z "$ac_cxx_werror_flag"
12432: || test ! -s conftest.err'
12433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434: (eval $ac_try) 2>&5
12435: ac_status=$?
12436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437: (exit $ac_status); }; } &&
12438: { ac_try='test -s conftest$ac_exeext'
12439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440: (eval $ac_try) 2>&5
12441: ac_status=$?
12442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443: (exit $ac_status); }; }; then
1.8 moko 12444:
12445: lt_aix_libpath_sed='
12446: /Import File Strings/,/^$/ {
12447: /^0/ {
12448: s/^0 *\([^ ]*\) *$/\1/
12449: p
12450: }
12451: }'
12452: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12453: # Check for a 64-bit object if we didn't find anything.
12454: if test -z "$lt_cv_aix_libpath__CXX"; then
12455: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12456: fi
1.11 moko 12457: else
12458: echo "$as_me: failed program was:" >&5
12459: sed 's/^/| /' conftest.$ac_ext >&5
12460:
1.8 moko 12461: fi
1.11 moko 12462: rm -f conftest.err conftest.$ac_objext \
12463: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12464: if test -z "$lt_cv_aix_libpath__CXX"; then
12465: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12466: fi
12467:
12468: fi
12469:
12470: aix_libpath=$lt_cv_aix_libpath__CXX
12471: fi
12472:
12473: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12474:
12475: 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"
12476: else
12477: if test "$host_cpu" = ia64; then
12478: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12479: allow_undefined_flag_CXX="-z nodefs"
12480: 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"
12481: else
12482: # Determine the default libpath from the value encoded in an
12483: # empty executable.
12484: if test "${lt_cv_aix_libpath+set}" = set; then
12485: aix_libpath=$lt_cv_aix_libpath
12486: else
1.11 moko 12487: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12488: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12489: else
1.11 moko 12490: cat >conftest.$ac_ext <<_ACEOF
12491: /* confdefs.h. */
12492: _ACEOF
12493: cat confdefs.h >>conftest.$ac_ext
12494: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12495: /* end confdefs.h. */
12496:
12497: int
12498: main ()
12499: {
12500:
12501: ;
12502: return 0;
12503: }
12504: _ACEOF
1.11 moko 12505: rm -f conftest.$ac_objext conftest$ac_exeext
12506: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12507: (eval $ac_link) 2>conftest.er1
12508: ac_status=$?
12509: grep -v '^ *+' conftest.er1 >conftest.err
12510: rm -f conftest.er1
12511: cat conftest.err >&5
12512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513: (exit $ac_status); } &&
12514: { ac_try='test -z "$ac_cxx_werror_flag"
12515: || test ! -s conftest.err'
12516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517: (eval $ac_try) 2>&5
12518: ac_status=$?
12519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520: (exit $ac_status); }; } &&
12521: { ac_try='test -s conftest$ac_exeext'
12522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523: (eval $ac_try) 2>&5
12524: ac_status=$?
12525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526: (exit $ac_status); }; }; then
1.8 moko 12527:
12528: lt_aix_libpath_sed='
12529: /Import File Strings/,/^$/ {
12530: /^0/ {
12531: s/^0 *\([^ ]*\) *$/\1/
12532: p
12533: }
12534: }'
12535: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12536: # Check for a 64-bit object if we didn't find anything.
12537: if test -z "$lt_cv_aix_libpath__CXX"; then
12538: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12539: fi
1.11 moko 12540: else
12541: echo "$as_me: failed program was:" >&5
12542: sed 's/^/| /' conftest.$ac_ext >&5
12543:
1.8 moko 12544: fi
1.11 moko 12545: rm -f conftest.err conftest.$ac_objext \
12546: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12547: if test -z "$lt_cv_aix_libpath__CXX"; then
12548: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12549: fi
12550:
12551: fi
12552:
12553: aix_libpath=$lt_cv_aix_libpath__CXX
12554: fi
12555:
12556: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12557: # Warning - without using the other run time loading flags,
12558: # -berok will link without error, but may produce a broken library.
12559: no_undefined_flag_CXX=' ${wl}-bernotok'
12560: allow_undefined_flag_CXX=' ${wl}-berok'
12561: if test "$with_gnu_ld" = yes; then
12562: # We only use this code for GNU lds that support --whole-archive.
12563: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12564: else
12565: # Exported symbols can be pulled into shared objects from archives
12566: whole_archive_flag_spec_CXX='$convenience'
12567: fi
12568: archive_cmds_need_lc_CXX=yes
12569: # This is similar to how AIX traditionally builds its shared
12570: # libraries.
12571: 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'
12572: fi
12573: fi
12574: ;;
12575:
12576: beos*)
12577: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12578: allow_undefined_flag_CXX=unsupported
12579: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12580: # support --undefined. This deserves some investigation. FIXME
12581: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12582: else
12583: ld_shlibs_CXX=no
12584: fi
12585: ;;
12586:
12587: chorus*)
12588: case $cc_basename in
12589: *)
12590: # FIXME: insert proper C++ library support
12591: ld_shlibs_CXX=no
12592: ;;
12593: esac
12594: ;;
12595:
12596: cygwin* | mingw* | pw32* | cegcc*)
12597: case $GXX,$cc_basename in
12598: ,cl* | no,cl*)
12599: # Native MSVC
12600: # hardcode_libdir_flag_spec is actually meaningless, as there is
12601: # no search path for DLLs.
12602: hardcode_libdir_flag_spec_CXX=' '
12603: allow_undefined_flag_CXX=unsupported
12604: always_export_symbols_CXX=yes
12605: file_list_spec_CXX='@'
12606: # Tell ltmain to make .lib files, not .a files.
12607: libext=lib
12608: # Tell ltmain to make .dll files, not .so files.
12609: shrext_cmds=".dll"
12610: # FIXME: Setting linknames here is a bad hack.
12611: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12612: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12613: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12614: else
12615: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12616: fi~
12617: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12618: linknames='
12619: # The linker will not automatically build a static lib if we build a DLL.
12620: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12621: enable_shared_with_static_runtimes_CXX=yes
12622: # Don't use ranlib
12623: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12624: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12625: lt_tool_outputfile="@TOOL_OUTPUT@"~
12626: case $lt_outputfile in
12627: *.exe|*.EXE) ;;
12628: *)
12629: lt_outputfile="$lt_outputfile.exe"
12630: lt_tool_outputfile="$lt_tool_outputfile.exe"
12631: ;;
12632: esac~
12633: func_to_tool_file "$lt_outputfile"~
12634: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12635: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12636: $RM "$lt_outputfile.manifest";
12637: fi'
12638: ;;
12639: *)
12640: # g++
12641: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12642: # as there is no search path for DLLs.
12643: hardcode_libdir_flag_spec_CXX='-L$libdir'
12644: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12645: allow_undefined_flag_CXX=unsupported
12646: always_export_symbols_CXX=no
12647: enable_shared_with_static_runtimes_CXX=yes
12648:
12649: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12650: 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'
12651: # If the export-symbols file already is a .def file (1st line
12652: # is EXPORTS), use it as is; otherwise, prepend...
12653: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12654: cp $export_symbols $output_objdir/$soname.def;
12655: else
12656: echo EXPORTS > $output_objdir/$soname.def;
12657: cat $export_symbols >> $output_objdir/$soname.def;
12658: fi~
12659: $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'
12660: else
12661: ld_shlibs_CXX=no
12662: fi
12663: ;;
12664: esac
12665: ;;
12666: darwin* | rhapsody*)
12667:
12668:
12669: archive_cmds_need_lc_CXX=no
12670: hardcode_direct_CXX=no
12671: hardcode_automatic_CXX=yes
12672: hardcode_shlibpath_var_CXX=unsupported
12673: if test "$lt_cv_ld_force_load" = "yes"; then
12674: 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\"`'
12675:
12676: else
12677: whole_archive_flag_spec_CXX=''
12678: fi
12679: link_all_deplibs_CXX=yes
12680: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12681: case $cc_basename in
12682: ifort*) _lt_dar_can_shared=yes ;;
12683: *) _lt_dar_can_shared=$GCC ;;
12684: esac
12685: if test "$_lt_dar_can_shared" = "yes"; then
12686: output_verbose_link_cmd=func_echo_all
12687: 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}"
12688: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12689: 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}"
12690: 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}"
12691: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12692: 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}"
12693: 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}"
12694: fi
12695:
12696: else
12697: ld_shlibs_CXX=no
12698: fi
12699:
12700: ;;
12701:
12702: dgux*)
12703: case $cc_basename in
12704: ec++*)
12705: # FIXME: insert proper C++ library support
12706: ld_shlibs_CXX=no
12707: ;;
12708: ghcx*)
12709: # Green Hills C++ Compiler
12710: # FIXME: insert proper C++ library support
12711: ld_shlibs_CXX=no
12712: ;;
12713: *)
12714: # FIXME: insert proper C++ library support
12715: ld_shlibs_CXX=no
12716: ;;
12717: esac
12718: ;;
12719:
12720: freebsd2.*)
12721: # C++ shared libraries reported to be fairly broken before
12722: # switch to ELF
12723: ld_shlibs_CXX=no
12724: ;;
12725:
12726: freebsd-elf*)
12727: archive_cmds_need_lc_CXX=no
12728: ;;
12729:
12730: freebsd* | dragonfly*)
12731: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12732: # conventions
12733: ld_shlibs_CXX=yes
12734: ;;
12735:
12736: gnu*)
12737: ;;
12738:
12739: haiku*)
12740: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12741: link_all_deplibs_CXX=yes
12742: ;;
12743:
12744: hpux9*)
12745: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12746: hardcode_libdir_separator_CXX=:
12747: export_dynamic_flag_spec_CXX='${wl}-E'
12748: hardcode_direct_CXX=yes
12749: hardcode_minus_L_CXX=yes # Not in the search PATH,
12750: # but as the default
12751: # location of the library.
12752:
12753: case $cc_basename in
12754: CC*)
12755: # FIXME: insert proper C++ library support
12756: ld_shlibs_CXX=no
12757: ;;
12758: aCC*)
12759: 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'
12760: # Commands to make compiler produce verbose output that lists
12761: # what "hidden" libraries, object files and flags are used when
12762: # linking a shared library.
12763: #
12764: # There doesn't appear to be a way to prevent this compiler from
12765: # explicitly linking system object files so we need to strip them
12766: # from the output so that they don't get included in the library
12767: # dependencies.
12768: 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"'
12769: ;;
12770: *)
12771: if test "$GXX" = yes; then
12772: 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'
12773: else
12774: # FIXME: insert proper C++ library support
12775: ld_shlibs_CXX=no
12776: fi
12777: ;;
12778: esac
12779: ;;
12780:
12781: hpux10*|hpux11*)
12782: if test $with_gnu_ld = no; then
12783: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12784: hardcode_libdir_separator_CXX=:
12785:
12786: case $host_cpu in
12787: hppa*64*|ia64*)
12788: ;;
12789: *)
12790: export_dynamic_flag_spec_CXX='${wl}-E'
12791: ;;
12792: esac
12793: fi
12794: case $host_cpu in
12795: hppa*64*|ia64*)
12796: hardcode_direct_CXX=no
12797: hardcode_shlibpath_var_CXX=no
12798: ;;
12799: *)
12800: hardcode_direct_CXX=yes
12801: hardcode_direct_absolute_CXX=yes
12802: hardcode_minus_L_CXX=yes # Not in the search PATH,
12803: # but as the default
12804: # location of the library.
12805: ;;
12806: esac
12807:
12808: case $cc_basename in
12809: CC*)
12810: # FIXME: insert proper C++ library support
12811: ld_shlibs_CXX=no
12812: ;;
12813: aCC*)
12814: case $host_cpu in
12815: hppa*64*)
12816: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12817: ;;
12818: ia64*)
12819: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820: ;;
12821: *)
12822: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823: ;;
12824: esac
12825: # Commands to make compiler produce verbose output that lists
12826: # what "hidden" libraries, object files and flags are used when
12827: # linking a shared library.
12828: #
12829: # There doesn't appear to be a way to prevent this compiler from
12830: # explicitly linking system object files so we need to strip them
12831: # from the output so that they don't get included in the library
12832: # dependencies.
12833: 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"'
12834: ;;
12835: *)
12836: if test "$GXX" = yes; then
12837: if test $with_gnu_ld = no; then
12838: case $host_cpu in
12839: hppa*64*)
12840: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12841: ;;
12842: ia64*)
12843: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844: ;;
12845: *)
12846: 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'
12847: ;;
12848: esac
12849: fi
12850: else
12851: # FIXME: insert proper C++ library support
12852: ld_shlibs_CXX=no
12853: fi
12854: ;;
12855: esac
12856: ;;
12857:
12858: interix[3-9]*)
12859: hardcode_direct_CXX=no
12860: hardcode_shlibpath_var_CXX=no
12861: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12862: export_dynamic_flag_spec_CXX='${wl}-E'
12863: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12864: # Instead, shared libraries are loaded at an image base (0x10000000 by
12865: # default) and relocated if they conflict, which is a slow very memory
12866: # consuming and fragmenting process. To avoid this, we pick a random,
12867: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12868: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12869: 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'
12870: 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'
12871: ;;
12872: irix5* | irix6*)
12873: case $cc_basename in
12874: CC*)
12875: # SGI C++
12876: 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'
12877:
12878: # Archives containing C++ object files must be created using
12879: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12880: # necessary to make sure instantiated templates are included
12881: # in the archive.
12882: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12883: ;;
12884: *)
12885: if test "$GXX" = yes; then
12886: if test "$with_gnu_ld" = no; then
12887: 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'
12888: else
12889: 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'
12890: fi
12891: fi
12892: link_all_deplibs_CXX=yes
12893: ;;
12894: esac
12895: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12896: hardcode_libdir_separator_CXX=:
12897: inherit_rpath_CXX=yes
12898: ;;
12899:
12900: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12901: case $cc_basename in
12902: KCC*)
12903: # Kuck and Associates, Inc. (KAI) C++ Compiler
12904:
12905: # KCC will only create a shared library if the output file
12906: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12907: # to its proper name (with version) after linking.
12908: 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'
12909: 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'
12910: # Commands to make compiler produce verbose output that lists
12911: # what "hidden" libraries, object files and flags are used when
12912: # linking a shared library.
12913: #
12914: # There doesn't appear to be a way to prevent this compiler from
12915: # explicitly linking system object files so we need to strip them
12916: # from the output so that they don't get included in the library
12917: # dependencies.
12918: 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"'
12919:
12920: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12921: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12922:
12923: # Archives containing C++ object files must be created using
12924: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12925: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12926: ;;
12927: icpc* | ecpc* )
12928: # Intel C++
12929: with_gnu_ld=yes
12930: # version 8.0 and above of icpc choke on multiply defined symbols
12931: # if we add $predep_objects and $postdep_objects, however 7.1 and
12932: # earlier do not add the objects themselves.
12933: case `$CC -V 2>&1` in
12934: *"Version 7."*)
12935: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12936: 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'
12937: ;;
12938: *) # Version 8.0 or newer
12939: tmp_idyn=
12940: case $host_cpu in
12941: ia64*) tmp_idyn=' -i_dynamic';;
12942: esac
12943: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944: 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'
12945: ;;
12946: esac
12947: archive_cmds_need_lc_CXX=no
12948: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12949: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12950: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12951: ;;
12952: pgCC* | pgcpp*)
12953: # Portland Group C++ compiler
12954: case `$CC -V` in
12955: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12956: prelink_cmds_CXX='tpldir=Template.dir~
12957: rm -rf $tpldir~
12958: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12959: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12960: old_archive_cmds_CXX='tpldir=Template.dir~
12961: rm -rf $tpldir~
12962: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12963: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12964: $RANLIB $oldlib'
12965: archive_cmds_CXX='tpldir=Template.dir~
12966: rm -rf $tpldir~
12967: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12968: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12969: archive_expsym_cmds_CXX='tpldir=Template.dir~
12970: rm -rf $tpldir~
12971: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12972: $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'
12973: ;;
12974: *) # Version 6 and above use weak symbols
12975: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12976: 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'
12977: ;;
12978: esac
12979:
12980: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12981: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12982: 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'
12983: ;;
12984: cxx*)
12985: # Compaq C++
12986: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12987: 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'
12988:
12989: runpath_var=LD_RUN_PATH
12990: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12991: hardcode_libdir_separator_CXX=:
12992:
12993: # Commands to make compiler produce verbose output that lists
12994: # what "hidden" libraries, object files and flags are used when
12995: # linking a shared library.
12996: #
12997: # There doesn't appear to be a way to prevent this compiler from
12998: # explicitly linking system object files so we need to strip them
12999: # from the output so that they don't get included in the library
13000: # dependencies.
13001: 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'
13002: ;;
13003: xl* | mpixl* | bgxl*)
13004: # IBM XL 8.0 on PPC, with GNU ld
13005: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13006: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13007: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13008: if test "x$supports_anon_versioning" = xyes; then
13009: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13010: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13011: echo "local: *; };" >> $output_objdir/$libname.ver~
13012: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13013: fi
13014: ;;
13015: *)
13016: case `$CC -V 2>&1 | sed 5q` in
13017: *Sun\ C*)
13018: # Sun C++ 5.9
13019: no_undefined_flag_CXX=' -zdefs'
13020: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13021: 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'
13022: hardcode_libdir_flag_spec_CXX='-R$libdir'
13023: 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'
13024: compiler_needs_object_CXX=yes
13025:
13026: # Not sure whether something based on
13027: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13028: # would be better.
13029: output_verbose_link_cmd='func_echo_all'
13030:
13031: # Archives containing C++ object files must be created using
13032: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13033: # necessary to make sure instantiated templates are included
13034: # in the archive.
13035: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13036: ;;
13037: esac
13038: ;;
13039: esac
13040: ;;
13041:
13042: lynxos*)
13043: # FIXME: insert proper C++ library support
13044: ld_shlibs_CXX=no
13045: ;;
13046:
13047: m88k*)
13048: # FIXME: insert proper C++ library support
13049: ld_shlibs_CXX=no
13050: ;;
13051:
13052: mvs*)
13053: case $cc_basename in
13054: cxx*)
13055: # FIXME: insert proper C++ library support
13056: ld_shlibs_CXX=no
13057: ;;
13058: *)
13059: # FIXME: insert proper C++ library support
13060: ld_shlibs_CXX=no
13061: ;;
13062: esac
13063: ;;
13064:
13065: netbsd*)
13066: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13067: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13068: wlarc=
13069: hardcode_libdir_flag_spec_CXX='-R$libdir'
13070: hardcode_direct_CXX=yes
13071: hardcode_shlibpath_var_CXX=no
13072: fi
13073: # Workaround some broken pre-1.5 toolchains
13074: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13075: ;;
13076:
13077: *nto* | *qnx*)
13078: ld_shlibs_CXX=yes
13079: ;;
13080:
13081: openbsd2*)
13082: # C++ shared libraries are fairly broken
13083: ld_shlibs_CXX=no
13084: ;;
13085:
13086: openbsd*)
13087: if test -f /usr/libexec/ld.so; then
13088: hardcode_direct_CXX=yes
13089: hardcode_shlibpath_var_CXX=no
13090: hardcode_direct_absolute_CXX=yes
13091: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13092: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13093: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13094: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13095: export_dynamic_flag_spec_CXX='${wl}-E'
13096: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13097: fi
13098: output_verbose_link_cmd=func_echo_all
13099: else
13100: ld_shlibs_CXX=no
13101: fi
13102: ;;
13103:
13104: osf3* | osf4* | osf5*)
13105: case $cc_basename in
13106: KCC*)
13107: # Kuck and Associates, Inc. (KAI) C++ Compiler
13108:
13109: # KCC will only create a shared library if the output file
13110: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13111: # to its proper name (with version) after linking.
13112: 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'
13113:
13114: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13115: hardcode_libdir_separator_CXX=:
13116:
13117: # Archives containing C++ object files must be created using
13118: # the KAI C++ compiler.
13119: case $host in
13120: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13121: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13122: esac
13123: ;;
13124: RCC*)
13125: # Rational C++ 2.4.1
13126: # FIXME: insert proper C++ library support
13127: ld_shlibs_CXX=no
13128: ;;
13129: cxx*)
13130: case $host in
13131: osf3*)
13132: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13133: 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'
13134: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13135: ;;
13136: *)
13137: allow_undefined_flag_CXX=' -expect_unresolved \*'
13138: 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'
13139: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13140: echo "-hidden">> $lib.exp~
13141: $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~
13142: $RM $lib.exp'
13143: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13144: ;;
13145: esac
13146:
13147: hardcode_libdir_separator_CXX=:
13148:
13149: # Commands to make compiler produce verbose output that lists
13150: # what "hidden" libraries, object files and flags are used when
13151: # linking a shared library.
13152: #
13153: # There doesn't appear to be a way to prevent this compiler from
13154: # explicitly linking system object files so we need to strip them
13155: # from the output so that they don't get included in the library
13156: # dependencies.
13157: 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"'
13158: ;;
13159: *)
13160: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13161: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13162: case $host in
13163: osf3*)
13164: 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'
13165: ;;
13166: *)
13167: 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'
13168: ;;
13169: esac
13170:
13171: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13172: hardcode_libdir_separator_CXX=:
13173:
13174: # Commands to make compiler produce verbose output that lists
13175: # what "hidden" libraries, object files and flags are used when
13176: # linking a shared library.
13177: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13178:
13179: else
13180: # FIXME: insert proper C++ library support
13181: ld_shlibs_CXX=no
13182: fi
13183: ;;
13184: esac
13185: ;;
13186:
13187: psos*)
13188: # FIXME: insert proper C++ library support
13189: ld_shlibs_CXX=no
13190: ;;
13191:
13192: sunos4*)
13193: case $cc_basename in
13194: CC*)
13195: # Sun C++ 4.x
13196: # FIXME: insert proper C++ library support
13197: ld_shlibs_CXX=no
13198: ;;
13199: lcc*)
13200: # Lucid
13201: # FIXME: insert proper C++ library support
13202: ld_shlibs_CXX=no
13203: ;;
13204: *)
13205: # FIXME: insert proper C++ library support
13206: ld_shlibs_CXX=no
13207: ;;
13208: esac
13209: ;;
13210:
13211: solaris*)
13212: case $cc_basename in
13213: CC* | sunCC*)
13214: # Sun C++ 4.2, 5.x and Centerline C++
13215: archive_cmds_need_lc_CXX=yes
13216: no_undefined_flag_CXX=' -zdefs'
13217: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13218: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13219: $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'
13220:
13221: hardcode_libdir_flag_spec_CXX='-R$libdir'
13222: hardcode_shlibpath_var_CXX=no
13223: case $host_os in
13224: solaris2.[0-5] | solaris2.[0-5].*) ;;
13225: *)
13226: # The compiler driver will combine and reorder linker options,
13227: # but understands `-z linker_flag'.
13228: # Supported since Solaris 2.6 (maybe 2.5.1?)
13229: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13230: ;;
13231: esac
13232: link_all_deplibs_CXX=yes
13233:
13234: output_verbose_link_cmd='func_echo_all'
13235:
13236: # Archives containing C++ object files must be created using
13237: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13238: # necessary to make sure instantiated templates are included
13239: # in the archive.
13240: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13241: ;;
13242: gcx*)
13243: # Green Hills C++ Compiler
13244: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13245:
13246: # The C++ compiler must be used to create the archive.
13247: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13248: ;;
13249: *)
13250: # GNU C++ compiler with Solaris linker
13251: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13252: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13253: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13254: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13255: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13256: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13257:
13258: # Commands to make compiler produce verbose output that lists
13259: # what "hidden" libraries, object files and flags are used when
13260: # linking a shared library.
13261: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13262: else
13263: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13264: # platform.
13265: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13266: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13267: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13268:
13269: # Commands to make compiler produce verbose output that lists
13270: # what "hidden" libraries, object files and flags are used when
13271: # linking a shared library.
13272: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13273: fi
13274:
13275: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13276: case $host_os in
13277: solaris2.[0-5] | solaris2.[0-5].*) ;;
13278: *)
13279: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13280: ;;
13281: esac
13282: fi
13283: ;;
13284: esac
13285: ;;
13286:
13287: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13288: no_undefined_flag_CXX='${wl}-z,text'
13289: archive_cmds_need_lc_CXX=no
13290: hardcode_shlibpath_var_CXX=no
13291: runpath_var='LD_RUN_PATH'
13292:
13293: case $cc_basename in
13294: CC*)
13295: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297: ;;
13298: *)
13299: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301: ;;
13302: esac
13303: ;;
13304:
13305: sysv5* | sco3.2v5* | sco5v6*)
13306: # Note: We can NOT use -z defs as we might desire, because we do not
13307: # link with -lc, and that would cause any symbols used from libc to
13308: # always be unresolved, which means just about no library would
13309: # ever link correctly. If we're not using GNU ld we use -z text
13310: # though, which does catch some bad symbols but isn't as heavy-handed
13311: # as -z defs.
13312: no_undefined_flag_CXX='${wl}-z,text'
13313: allow_undefined_flag_CXX='${wl}-z,nodefs'
13314: archive_cmds_need_lc_CXX=no
13315: hardcode_shlibpath_var_CXX=no
13316: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13317: hardcode_libdir_separator_CXX=':'
13318: link_all_deplibs_CXX=yes
13319: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13320: runpath_var='LD_RUN_PATH'
13321:
13322: case $cc_basename in
13323: CC*)
13324: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13325: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13327: '"$old_archive_cmds_CXX"
13328: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13329: '"$reload_cmds_CXX"
13330: ;;
13331: *)
13332: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13333: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334: ;;
13335: esac
13336: ;;
13337:
13338: tandem*)
13339: case $cc_basename in
13340: NCC*)
13341: # NonStop-UX NCC 3.20
13342: # FIXME: insert proper C++ library support
13343: ld_shlibs_CXX=no
13344: ;;
13345: *)
13346: # FIXME: insert proper C++ library support
13347: ld_shlibs_CXX=no
13348: ;;
13349: esac
13350: ;;
13351:
13352: vxworks*)
13353: # FIXME: insert proper C++ library support
13354: ld_shlibs_CXX=no
13355: ;;
13356:
13357: *)
13358: # FIXME: insert proper C++ library support
13359: ld_shlibs_CXX=no
13360: ;;
13361: esac
13362:
1.11 moko 13363: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13364: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 13365: test "$ld_shlibs_CXX" = no && can_build_shared=no
13366:
13367: GCC_CXX="$GXX"
13368: LD_CXX="$LD"
13369:
13370: ## CAVEAT EMPTOR:
13371: ## There is no encapsulation within the following macros, do not change
13372: ## the running order or otherwise move them around unless you know exactly
13373: ## what you are doing...
13374: # Dependencies to place before and after the object being linked:
13375: predep_objects_CXX=
13376: postdep_objects_CXX=
13377: predeps_CXX=
13378: postdeps_CXX=
13379: compiler_lib_search_path_CXX=
13380:
13381: cat > conftest.$ac_ext <<_LT_EOF
13382: class Foo
13383: {
13384: public:
13385: Foo (void) { a = 0; }
13386: private:
13387: int a;
13388: };
13389: _LT_EOF
13390:
13391:
13392: _lt_libdeps_save_CFLAGS=$CFLAGS
13393: case "$CC $CFLAGS " in #(
13394: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13395: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13396: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13397: esac
13398:
1.11 moko 13399: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 13400: (eval $ac_compile) 2>&5
13401: ac_status=$?
1.11 moko 13402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403: (exit $ac_status); }; then
1.8 moko 13404: # Parse the compiler output and extract the necessary
13405: # objects, libraries and library flags.
13406:
13407: # Sentinel used to keep track of whether or not we are before
13408: # the conftest object file.
13409: pre_test_object_deps_done=no
13410:
13411: for p in `eval "$output_verbose_link_cmd"`; do
13412: case ${prev}${p} in
13413:
13414: -L* | -R* | -l*)
13415: # Some compilers place space between "-{L,R}" and the path.
13416: # Remove the space.
13417: if test $p = "-L" ||
13418: test $p = "-R"; then
13419: prev=$p
13420: continue
13421: fi
13422:
13423: # Expand the sysroot to ease extracting the directories later.
13424: if test -z "$prev"; then
13425: case $p in
13426: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13427: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13428: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13429: esac
13430: fi
13431: case $p in
13432: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13433: esac
13434: if test "$pre_test_object_deps_done" = no; then
13435: case ${prev} in
13436: -L | -R)
13437: # Internal compiler library paths should come after those
13438: # provided the user. The postdeps already come after the
13439: # user supplied libs so there is no need to process them.
13440: if test -z "$compiler_lib_search_path_CXX"; then
13441: compiler_lib_search_path_CXX="${prev}${p}"
13442: else
13443: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13444: fi
13445: ;;
13446: # The "-l" case would never come before the object being
13447: # linked, so don't bother handling this case.
13448: esac
13449: else
13450: if test -z "$postdeps_CXX"; then
13451: postdeps_CXX="${prev}${p}"
13452: else
13453: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13454: fi
13455: fi
13456: prev=
13457: ;;
13458:
13459: *.lto.$objext) ;; # Ignore GCC LTO objects
13460: *.$objext)
13461: # This assumes that the test object file only shows up
13462: # once in the compiler output.
13463: if test "$p" = "conftest.$objext"; then
13464: pre_test_object_deps_done=yes
13465: continue
13466: fi
13467:
13468: if test "$pre_test_object_deps_done" = no; then
13469: if test -z "$predep_objects_CXX"; then
13470: predep_objects_CXX="$p"
13471: else
13472: predep_objects_CXX="$predep_objects_CXX $p"
13473: fi
13474: else
13475: if test -z "$postdep_objects_CXX"; then
13476: postdep_objects_CXX="$p"
13477: else
13478: postdep_objects_CXX="$postdep_objects_CXX $p"
13479: fi
13480: fi
13481: ;;
13482:
13483: *) ;; # Ignore the rest.
13484:
13485: esac
13486: done
13487:
13488: # Clean up.
13489: rm -f a.out a.exe
13490: else
13491: echo "libtool.m4: error: problem compiling CXX test program"
13492: fi
13493:
13494: $RM -f confest.$objext
13495: CFLAGS=$_lt_libdeps_save_CFLAGS
13496:
13497: # PORTME: override above test on systems where it is broken
13498: case $host_os in
13499: interix[3-9]*)
13500: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13501: # hack all around it, let's just trust "g++" to DTRT.
13502: predep_objects_CXX=
13503: postdep_objects_CXX=
13504: postdeps_CXX=
13505: ;;
13506:
13507: linux*)
13508: case `$CC -V 2>&1 | sed 5q` in
13509: *Sun\ C*)
13510: # Sun C++ 5.9
13511:
13512: # The more standards-conforming stlport4 library is
13513: # incompatible with the Cstd library. Avoid specifying
13514: # it if it's in CXXFLAGS. Ignore libCrun as
13515: # -library=stlport4 depends on it.
13516: case " $CXX $CXXFLAGS " in
13517: *" -library=stlport4 "*)
13518: solaris_use_stlport4=yes
13519: ;;
13520: esac
13521:
13522: if test "$solaris_use_stlport4" != yes; then
13523: postdeps_CXX='-library=Cstd -library=Crun'
13524: fi
13525: ;;
13526: esac
13527: ;;
13528:
13529: solaris*)
13530: case $cc_basename in
13531: CC* | sunCC*)
13532: # The more standards-conforming stlport4 library is
13533: # incompatible with the Cstd library. Avoid specifying
13534: # it if it's in CXXFLAGS. Ignore libCrun as
13535: # -library=stlport4 depends on it.
13536: case " $CXX $CXXFLAGS " in
13537: *" -library=stlport4 "*)
13538: solaris_use_stlport4=yes
13539: ;;
13540: esac
13541:
13542: # Adding this requires a known-good setup of shared libraries for
13543: # Sun compiler versions before 5.6, else PIC objects from an old
13544: # archive will be linked into the output, leading to subtle bugs.
13545: if test "$solaris_use_stlport4" != yes; then
13546: postdeps_CXX='-library=Cstd -library=Crun'
13547: fi
13548: ;;
13549: esac
13550: ;;
13551: esac
13552:
13553:
13554: case " $postdeps_CXX " in
13555: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13556: esac
13557: compiler_lib_search_dirs_CXX=
13558: if test -n "${compiler_lib_search_path_CXX}"; then
13559: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13560: fi
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574:
13575:
13576:
13577:
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585:
13586:
13587:
13588:
13589:
13590:
13591:
13592: lt_prog_compiler_wl_CXX=
13593: lt_prog_compiler_pic_CXX=
13594: lt_prog_compiler_static_CXX=
13595:
13596:
13597: # C++ specific cases for pic, static, wl, etc.
13598: if test "$GXX" = yes; then
13599: lt_prog_compiler_wl_CXX='-Wl,'
13600: lt_prog_compiler_static_CXX='-static'
13601:
13602: case $host_os in
13603: aix*)
13604: # All AIX code is PIC.
13605: if test "$host_cpu" = ia64; then
13606: # AIX 5 now supports IA64 processor
13607: lt_prog_compiler_static_CXX='-Bstatic'
13608: fi
13609: ;;
13610:
13611: amigaos*)
13612: case $host_cpu in
13613: powerpc)
13614: # see comment about AmigaOS4 .so support
13615: lt_prog_compiler_pic_CXX='-fPIC'
13616: ;;
13617: m68k)
13618: # FIXME: we need at least 68020 code to build shared libraries, but
13619: # adding the `-m68020' flag to GCC prevents building anything better,
13620: # like `-m68040'.
13621: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13622: ;;
13623: esac
13624: ;;
13625:
13626: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13627: # PIC is the default for these OSes.
13628: ;;
13629: mingw* | cygwin* | os2* | pw32* | cegcc*)
13630: # This hack is so that the source file can tell whether it is being
13631: # built for inclusion in a dll (and should export symbols for example).
13632: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13633: # (--disable-auto-import) libraries
13634: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13635: ;;
13636: darwin* | rhapsody*)
13637: # PIC is the default on this platform
13638: # Common symbols not allowed in MH_DYLIB files
13639: lt_prog_compiler_pic_CXX='-fno-common'
13640: ;;
13641: *djgpp*)
13642: # DJGPP does not support shared libraries at all
13643: lt_prog_compiler_pic_CXX=
13644: ;;
13645: haiku*)
13646: # PIC is the default for Haiku.
13647: # The "-static" flag exists, but is broken.
13648: lt_prog_compiler_static_CXX=
13649: ;;
13650: interix[3-9]*)
13651: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13652: # Instead, we relocate shared libraries at runtime.
13653: ;;
13654: sysv4*MP*)
13655: if test -d /usr/nec; then
13656: lt_prog_compiler_pic_CXX=-Kconform_pic
13657: fi
13658: ;;
13659: hpux*)
13660: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13661: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13662: # sets the default TLS model and affects inlining.
13663: case $host_cpu in
13664: hppa*64*)
13665: ;;
13666: *)
13667: lt_prog_compiler_pic_CXX='-fPIC'
13668: ;;
13669: esac
13670: ;;
13671: *qnx* | *nto*)
13672: # QNX uses GNU C++, but need to define -shared option too, otherwise
13673: # it will coredump.
13674: lt_prog_compiler_pic_CXX='-fPIC -shared'
13675: ;;
13676: *)
13677: lt_prog_compiler_pic_CXX='-fPIC'
13678: ;;
13679: esac
13680: else
13681: case $host_os in
13682: aix[4-9]*)
13683: # All AIX code is PIC.
13684: if test "$host_cpu" = ia64; then
13685: # AIX 5 now supports IA64 processor
13686: lt_prog_compiler_static_CXX='-Bstatic'
13687: else
13688: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13689: fi
13690: ;;
13691: chorus*)
13692: case $cc_basename in
13693: cxch68*)
13694: # Green Hills C++ Compiler
13695: # _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"
13696: ;;
13697: esac
13698: ;;
13699: mingw* | cygwin* | os2* | pw32* | cegcc*)
13700: # This hack is so that the source file can tell whether it is being
13701: # built for inclusion in a dll (and should export symbols for example).
13702: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13703: ;;
13704: dgux*)
13705: case $cc_basename in
13706: ec++*)
13707: lt_prog_compiler_pic_CXX='-KPIC'
13708: ;;
13709: ghcx*)
13710: # Green Hills C++ Compiler
13711: lt_prog_compiler_pic_CXX='-pic'
13712: ;;
13713: *)
13714: ;;
13715: esac
13716: ;;
13717: freebsd* | dragonfly*)
13718: # FreeBSD uses GNU C++
13719: ;;
13720: hpux9* | hpux10* | hpux11*)
13721: case $cc_basename in
13722: CC*)
13723: lt_prog_compiler_wl_CXX='-Wl,'
13724: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13725: if test "$host_cpu" != ia64; then
13726: lt_prog_compiler_pic_CXX='+Z'
13727: fi
13728: ;;
13729: aCC*)
13730: lt_prog_compiler_wl_CXX='-Wl,'
13731: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13732: case $host_cpu in
13733: hppa*64*|ia64*)
13734: # +Z the default
13735: ;;
13736: *)
13737: lt_prog_compiler_pic_CXX='+Z'
13738: ;;
13739: esac
13740: ;;
13741: *)
13742: ;;
13743: esac
13744: ;;
13745: interix*)
13746: # This is c89, which is MS Visual C++ (no shared libs)
13747: # Anyone wants to do a port?
13748: ;;
13749: irix5* | irix6* | nonstopux*)
13750: case $cc_basename in
13751: CC*)
13752: lt_prog_compiler_wl_CXX='-Wl,'
13753: lt_prog_compiler_static_CXX='-non_shared'
13754: # CC pic flag -KPIC is the default.
13755: ;;
13756: *)
13757: ;;
13758: esac
13759: ;;
13760: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13761: case $cc_basename in
13762: KCC*)
13763: # KAI C++ Compiler
13764: lt_prog_compiler_wl_CXX='--backend -Wl,'
13765: lt_prog_compiler_pic_CXX='-fPIC'
13766: ;;
13767: ecpc* )
13768: # old Intel C++ for x86_64 which still supported -KPIC.
13769: lt_prog_compiler_wl_CXX='-Wl,'
13770: lt_prog_compiler_pic_CXX='-KPIC'
13771: lt_prog_compiler_static_CXX='-static'
13772: ;;
13773: icpc* )
13774: # Intel C++, used to be incompatible with GCC.
13775: # ICC 10 doesn't accept -KPIC any more.
13776: lt_prog_compiler_wl_CXX='-Wl,'
13777: lt_prog_compiler_pic_CXX='-fPIC'
13778: lt_prog_compiler_static_CXX='-static'
13779: ;;
13780: pgCC* | pgcpp*)
13781: # Portland Group C++ compiler
13782: lt_prog_compiler_wl_CXX='-Wl,'
13783: lt_prog_compiler_pic_CXX='-fpic'
13784: lt_prog_compiler_static_CXX='-Bstatic'
13785: ;;
13786: cxx*)
13787: # Compaq C++
13788: # Make sure the PIC flag is empty. It appears that all Alpha
13789: # Linux and Compaq Tru64 Unix objects are PIC.
13790: lt_prog_compiler_pic_CXX=
13791: lt_prog_compiler_static_CXX='-non_shared'
13792: ;;
13793: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13794: # IBM XL 8.0, 9.0 on PPC and BlueGene
13795: lt_prog_compiler_wl_CXX='-Wl,'
13796: lt_prog_compiler_pic_CXX='-qpic'
13797: lt_prog_compiler_static_CXX='-qstaticlink'
13798: ;;
13799: *)
13800: case `$CC -V 2>&1 | sed 5q` in
13801: *Sun\ C*)
13802: # Sun C++ 5.9
13803: lt_prog_compiler_pic_CXX='-KPIC'
13804: lt_prog_compiler_static_CXX='-Bstatic'
13805: lt_prog_compiler_wl_CXX='-Qoption ld '
13806: ;;
13807: esac
13808: ;;
13809: esac
13810: ;;
13811: lynxos*)
13812: ;;
13813: m88k*)
13814: ;;
13815: mvs*)
13816: case $cc_basename in
13817: cxx*)
13818: lt_prog_compiler_pic_CXX='-W c,exportall'
13819: ;;
13820: *)
13821: ;;
13822: esac
13823: ;;
13824: netbsd*)
13825: ;;
13826: *qnx* | *nto*)
13827: # QNX uses GNU C++, but need to define -shared option too, otherwise
13828: # it will coredump.
13829: lt_prog_compiler_pic_CXX='-fPIC -shared'
13830: ;;
13831: osf3* | osf4* | osf5*)
13832: case $cc_basename in
13833: KCC*)
13834: lt_prog_compiler_wl_CXX='--backend -Wl,'
13835: ;;
13836: RCC*)
13837: # Rational C++ 2.4.1
13838: lt_prog_compiler_pic_CXX='-pic'
13839: ;;
13840: cxx*)
13841: # Digital/Compaq C++
13842: lt_prog_compiler_wl_CXX='-Wl,'
13843: # Make sure the PIC flag is empty. It appears that all Alpha
13844: # Linux and Compaq Tru64 Unix objects are PIC.
13845: lt_prog_compiler_pic_CXX=
13846: lt_prog_compiler_static_CXX='-non_shared'
13847: ;;
13848: *)
13849: ;;
13850: esac
13851: ;;
13852: psos*)
13853: ;;
13854: solaris*)
13855: case $cc_basename in
13856: CC* | sunCC*)
13857: # Sun C++ 4.2, 5.x and Centerline C++
13858: lt_prog_compiler_pic_CXX='-KPIC'
13859: lt_prog_compiler_static_CXX='-Bstatic'
13860: lt_prog_compiler_wl_CXX='-Qoption ld '
13861: ;;
13862: gcx*)
13863: # Green Hills C++ Compiler
13864: lt_prog_compiler_pic_CXX='-PIC'
13865: ;;
13866: *)
13867: ;;
13868: esac
13869: ;;
13870: sunos4*)
13871: case $cc_basename in
13872: CC*)
13873: # Sun C++ 4.x
13874: lt_prog_compiler_pic_CXX='-pic'
13875: lt_prog_compiler_static_CXX='-Bstatic'
13876: ;;
13877: lcc*)
13878: # Lucid
13879: lt_prog_compiler_pic_CXX='-pic'
13880: ;;
13881: *)
13882: ;;
13883: esac
13884: ;;
13885: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13886: case $cc_basename in
13887: CC*)
13888: lt_prog_compiler_wl_CXX='-Wl,'
13889: lt_prog_compiler_pic_CXX='-KPIC'
13890: lt_prog_compiler_static_CXX='-Bstatic'
13891: ;;
13892: esac
13893: ;;
13894: tandem*)
13895: case $cc_basename in
13896: NCC*)
13897: # NonStop-UX NCC 3.20
13898: lt_prog_compiler_pic_CXX='-KPIC'
13899: ;;
13900: *)
13901: ;;
13902: esac
13903: ;;
13904: vxworks*)
13905: ;;
13906: *)
13907: lt_prog_compiler_can_build_shared_CXX=no
13908: ;;
13909: esac
13910: fi
13911:
13912: case $host_os in
13913: # For platforms which do not support PIC, -DPIC is meaningless:
13914: *djgpp*)
13915: lt_prog_compiler_pic_CXX=
13916: ;;
13917: *)
13918: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13919: ;;
13920: esac
13921:
1.11 moko 13922: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13923: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13924: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13925: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13926: else
13927: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13928: fi
1.11 moko 13929: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13930: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
1.8 moko 13931: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13932:
13933: #
13934: # Check to make sure the PIC flag actually works.
13935: #
13936: if test -n "$lt_prog_compiler_pic_CXX"; then
1.11 moko 13937: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13938: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13939: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13940: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13941: else
13942: lt_cv_prog_compiler_pic_works_CXX=no
13943: ac_outfile=conftest.$ac_objext
13944: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13945: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13946: # Insert the option either (1) after the last *FLAGS variable, or
13947: # (2) before a word containing "conftest.", or (3) at the end.
13948: # Note that $ac_compile itself does not contain backslashes and begins
13949: # with a dollar sign (not a hyphen), so the echo should work correctly.
13950: # The option is referenced via a variable to avoid confusing sed.
13951: lt_compile=`echo "$ac_compile" | $SED \
13952: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13953: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13954: -e 's:$: $lt_compiler_flag:'`
13955: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13956: (eval "$lt_compile" 2>conftest.err)
13957: ac_status=$?
13958: cat conftest.err >&5
13959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960: if (exit $ac_status) && test -s "$ac_outfile"; then
13961: # The compiler can only warn and ignore the option if not recognized
13962: # So say no if there are warnings other than the usual output.
13963: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13964: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13965: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13966: lt_cv_prog_compiler_pic_works_CXX=yes
13967: fi
13968: fi
13969: $RM conftest*
13970:
13971: fi
1.11 moko 13972: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13973: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
1.8 moko 13974:
13975: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13976: case $lt_prog_compiler_pic_CXX in
13977: "" | " "*) ;;
13978: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13979: esac
13980: else
13981: lt_prog_compiler_pic_CXX=
13982: lt_prog_compiler_can_build_shared_CXX=no
13983: fi
13984:
13985: fi
13986:
13987:
13988:
13989:
13990:
13991: #
13992: # Check to make sure the static flag actually works.
13993: #
13994: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.11 moko 13995: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13996: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13997: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13998: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13999: else
14000: lt_cv_prog_compiler_static_works_CXX=no
14001: save_LDFLAGS="$LDFLAGS"
14002: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14003: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14004: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14005: # The linker can only warn and ignore the option if not recognized
14006: # So say no if there are warnings
14007: if test -s conftest.err; then
14008: # Append any errors to the config.log.
14009: cat conftest.err 1>&5
14010: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14011: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14012: if diff conftest.exp conftest.er2 >/dev/null; then
14013: lt_cv_prog_compiler_static_works_CXX=yes
14014: fi
14015: else
14016: lt_cv_prog_compiler_static_works_CXX=yes
14017: fi
14018: fi
14019: $RM -r conftest*
14020: LDFLAGS="$save_LDFLAGS"
14021:
14022: fi
1.11 moko 14023: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14024: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
1.8 moko 14025:
14026: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14027: :
14028: else
14029: lt_prog_compiler_static_CXX=
14030: fi
14031:
14032:
14033:
14034:
1.11 moko 14035: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14036: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14037: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14038: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14039: else
14040: lt_cv_prog_compiler_c_o_CXX=no
14041: $RM -r conftest 2>/dev/null
14042: mkdir conftest
14043: cd conftest
14044: mkdir out
14045: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14046:
14047: lt_compiler_flag="-o out/conftest2.$ac_objext"
14048: # Insert the option either (1) after the last *FLAGS variable, or
14049: # (2) before a word containing "conftest.", or (3) at the end.
14050: # Note that $ac_compile itself does not contain backslashes and begins
14051: # with a dollar sign (not a hyphen), so the echo should work correctly.
14052: lt_compile=`echo "$ac_compile" | $SED \
14053: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14054: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14055: -e 's:$: $lt_compiler_flag:'`
14056: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14057: (eval "$lt_compile" 2>out/conftest.err)
14058: ac_status=$?
14059: cat out/conftest.err >&5
14060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14062: then
14063: # The compiler can only warn and ignore the option if not recognized
14064: # So say no if there are warnings
14065: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14066: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14067: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14068: lt_cv_prog_compiler_c_o_CXX=yes
14069: fi
14070: fi
14071: chmod u+w . 2>&5
14072: $RM conftest*
14073: # SGI C++ compiler will create directory out/ii_files/ for
14074: # template instantiation
14075: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14076: $RM out/* && rmdir out
14077: cd ..
14078: $RM -r conftest
14079: $RM conftest*
14080:
14081: fi
1.11 moko 14082: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14083: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14084:
14085:
14086:
1.11 moko 14087: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14088: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14089: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14090: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14091: else
14092: lt_cv_prog_compiler_c_o_CXX=no
14093: $RM -r conftest 2>/dev/null
14094: mkdir conftest
14095: cd conftest
14096: mkdir out
14097: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14098:
14099: lt_compiler_flag="-o out/conftest2.$ac_objext"
14100: # Insert the option either (1) after the last *FLAGS variable, or
14101: # (2) before a word containing "conftest.", or (3) at the end.
14102: # Note that $ac_compile itself does not contain backslashes and begins
14103: # with a dollar sign (not a hyphen), so the echo should work correctly.
14104: lt_compile=`echo "$ac_compile" | $SED \
14105: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14106: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14107: -e 's:$: $lt_compiler_flag:'`
14108: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14109: (eval "$lt_compile" 2>out/conftest.err)
14110: ac_status=$?
14111: cat out/conftest.err >&5
14112: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14114: then
14115: # The compiler can only warn and ignore the option if not recognized
14116: # So say no if there are warnings
14117: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14118: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14119: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14120: lt_cv_prog_compiler_c_o_CXX=yes
14121: fi
14122: fi
14123: chmod u+w . 2>&5
14124: $RM conftest*
14125: # SGI C++ compiler will create directory out/ii_files/ for
14126: # template instantiation
14127: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14128: $RM out/* && rmdir out
14129: cd ..
14130: $RM -r conftest
14131: $RM conftest*
14132:
14133: fi
1.11 moko 14134: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14135: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14136:
14137:
14138:
14139:
14140: hard_links="nottested"
14141: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14142: # do not overwrite the value of need_locks provided by the user
1.11 moko 14143: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14144: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 14145: hard_links=yes
14146: $RM conftest*
14147: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148: touch conftest.a
14149: ln conftest.a conftest.b 2>&5 || hard_links=no
14150: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 14151: echo "$as_me:$LINENO: result: $hard_links" >&5
14152: echo "${ECHO_T}$hard_links" >&6
1.8 moko 14153: if test "$hard_links" = no; then
1.11 moko 14154: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14155: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 14156: need_locks=warn
14157: fi
14158: else
14159: need_locks=no
14160: fi
14161:
14162:
14163:
1.11 moko 14164: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14165: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 14166:
14167: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14168: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14169: case $host_os in
14170: aix[4-9]*)
14171: # If we're using GNU nm, then we don't want the "-C" option.
14172: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14173: # Also, AIX nm treats weak defined symbols like other global defined
14174: # symbols, whereas GNU nm marks them as "W".
14175: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14176: 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'
14177: else
14178: 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'
14179: fi
14180: ;;
14181: pw32*)
14182: export_symbols_cmds_CXX="$ltdll_cmds"
14183: ;;
14184: cygwin* | mingw* | cegcc*)
14185: case $cc_basename in
14186: cl*)
14187: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14188: ;;
14189: *)
14190: 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'
14191: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14192: ;;
14193: esac
14194: ;;
14195: *)
14196: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14197: ;;
14198: esac
14199:
1.11 moko 14200: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14201: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 14202: test "$ld_shlibs_CXX" = no && can_build_shared=no
14203:
14204: with_gnu_ld_CXX=$with_gnu_ld
14205:
14206:
14207:
14208:
14209:
14210:
14211: #
14212: # Do we need to explicitly link libc?
14213: #
14214: case "x$archive_cmds_need_lc_CXX" in
14215: x|xyes)
14216: # Assume -lc should be added
14217: archive_cmds_need_lc_CXX=yes
14218:
14219: if test "$enable_shared" = yes && test "$GCC" = yes; then
14220: case $archive_cmds_CXX in
14221: *'~'*)
14222: # FIXME: we may have to deal with multi-command sequences.
14223: ;;
14224: '$CC '*)
14225: # Test whether the compiler implicitly links with -lc since on some
14226: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14227: # to ld, don't add -lc before -lgcc.
1.11 moko 14228: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14229: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14230: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14231: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14232: else
14233: $RM conftest*
14234: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14235:
1.11 moko 14236: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 14237: (eval $ac_compile) 2>&5
14238: ac_status=$?
1.11 moko 14239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240: (exit $ac_status); } 2>conftest.err; then
1.8 moko 14241: soname=conftest
14242: lib=conftest
14243: libobjs=conftest.$ac_objext
14244: deplibs=
14245: wl=$lt_prog_compiler_wl_CXX
14246: pic_flag=$lt_prog_compiler_pic_CXX
14247: compiler_flags=-v
14248: linker_flags=-v
14249: verstring=
14250: output_objdir=.
14251: libname=conftest
14252: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14253: allow_undefined_flag_CXX=
1.11 moko 14254: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 14255: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14256: ac_status=$?
1.11 moko 14257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258: (exit $ac_status); }
1.8 moko 14259: then
14260: lt_cv_archive_cmds_need_lc_CXX=no
14261: else
14262: lt_cv_archive_cmds_need_lc_CXX=yes
14263: fi
14264: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14265: else
14266: cat conftest.err 1>&5
14267: fi
14268: $RM conftest*
14269:
14270: fi
1.11 moko 14271: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14272: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
1.8 moko 14273: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14274: ;;
14275: esac
14276: fi
14277: ;;
14278: esac
14279:
14280:
14281:
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322:
14323:
14324:
14325:
14326:
14327:
14328:
14329:
14330:
14331:
14332:
14333:
14334:
14335:
14336:
14337:
14338:
14339:
14340:
1.11 moko 14341: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14342: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.8 moko 14343:
14344: library_names_spec=
14345: libname_spec='lib$name'
14346: soname_spec=
14347: shrext_cmds=".so"
14348: postinstall_cmds=
14349: postuninstall_cmds=
14350: finish_cmds=
14351: finish_eval=
14352: shlibpath_var=
14353: shlibpath_overrides_runpath=unknown
14354: version_type=none
14355: dynamic_linker="$host_os ld.so"
14356: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14357: need_lib_prefix=unknown
14358: hardcode_into_libs=no
14359:
14360: # when you set need_version to no, make sure it does not cause -set_version
14361: # flags to be left without arguments
14362: need_version=unknown
14363:
14364: case $host_os in
14365: aix3*)
14366: version_type=linux # correct to gnu/linux during the next big refactor
14367: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14368: shlibpath_var=LIBPATH
14369:
14370: # AIX 3 has no versioning support, so we append a major version to the name.
14371: soname_spec='${libname}${release}${shared_ext}$major'
14372: ;;
14373:
14374: aix[4-9]*)
14375: version_type=linux # correct to gnu/linux during the next big refactor
14376: need_lib_prefix=no
14377: need_version=no
14378: hardcode_into_libs=yes
14379: if test "$host_cpu" = ia64; then
14380: # AIX 5 supports IA64
14381: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14382: shlibpath_var=LD_LIBRARY_PATH
14383: else
14384: # With GCC up to 2.95.x, collect2 would create an import file
14385: # for dependence libraries. The import file would start with
14386: # the line `#! .'. This would cause the generated library to
14387: # depend on `.', always an invalid library. This was fixed in
14388: # development snapshots of GCC prior to 3.0.
14389: case $host_os in
14390: aix4 | aix4.[01] | aix4.[01].*)
14391: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14392: echo ' yes '
14393: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14394: :
14395: else
14396: can_build_shared=no
14397: fi
14398: ;;
14399: esac
14400: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14401: # soname into executable. Probably we can add versioning support to
14402: # collect2, so additional links can be useful in future.
14403: if test "$aix_use_runtimelinking" = yes; then
14404: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14405: # instead of lib<name>.a to let people know that these are not
14406: # typical AIX shared libraries.
14407: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408: else
14409: # We preserve .a as extension for shared libraries through AIX4.2
14410: # and later when we are not doing run time linking.
14411: library_names_spec='${libname}${release}.a $libname.a'
14412: soname_spec='${libname}${release}${shared_ext}$major'
14413: fi
14414: shlibpath_var=LIBPATH
14415: fi
14416: ;;
14417:
14418: amigaos*)
14419: case $host_cpu in
14420: powerpc)
14421: # Since July 2007 AmigaOS4 officially supports .so libraries.
14422: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14423: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424: ;;
14425: m68k)
14426: library_names_spec='$libname.ixlibrary $libname.a'
14427: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14428: 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'
14429: ;;
14430: esac
14431: ;;
14432:
14433: beos*)
14434: library_names_spec='${libname}${shared_ext}'
14435: dynamic_linker="$host_os ld.so"
14436: shlibpath_var=LIBRARY_PATH
14437: ;;
14438:
14439: bsdi[45]*)
14440: version_type=linux # correct to gnu/linux during the next big refactor
14441: need_version=no
14442: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443: soname_spec='${libname}${release}${shared_ext}$major'
14444: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14445: shlibpath_var=LD_LIBRARY_PATH
14446: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14447: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14448: # the default ld.so.conf also contains /usr/contrib/lib and
14449: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14450: # libtool to hard-code these into programs
14451: ;;
14452:
14453: cygwin* | mingw* | pw32* | cegcc*)
14454: version_type=windows
14455: shrext_cmds=".dll"
14456: need_version=no
14457: need_lib_prefix=no
14458:
14459: case $GCC,$cc_basename in
14460: yes,*)
14461: # gcc
14462: library_names_spec='$libname.dll.a'
14463: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14464: postinstall_cmds='base_file=`basename \${file}`~
14465: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14466: dldir=$destdir/`dirname \$dlpath`~
14467: test -d \$dldir || mkdir -p \$dldir~
14468: $install_prog $dir/$dlname \$dldir/$dlname~
14469: chmod a+x \$dldir/$dlname~
14470: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14471: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14472: fi'
14473: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14474: dlpath=$dir/\$dldll~
14475: $RM \$dlpath'
14476: shlibpath_overrides_runpath=yes
14477:
14478: case $host_os in
14479: cygwin*)
14480: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14481: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14482:
14483: ;;
14484: mingw* | cegcc*)
14485: # MinGW DLLs use traditional 'lib' prefix
14486: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487: ;;
14488: pw32*)
14489: # pw32 DLLs use 'pw' prefix rather than 'lib'
14490: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491: ;;
14492: esac
14493: dynamic_linker='Win32 ld.exe'
14494: ;;
14495:
14496: *,cl*)
14497: # Native MSVC
14498: libname_spec='$name'
14499: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500: library_names_spec='${libname}.dll.lib'
14501:
14502: case $build_os in
14503: mingw*)
14504: sys_lib_search_path_spec=
14505: lt_save_ifs=$IFS
14506: IFS=';'
14507: for lt_path in $LIB
14508: do
14509: IFS=$lt_save_ifs
14510: # Let DOS variable expansion print the short 8.3 style file name.
14511: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14512: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14513: done
14514: IFS=$lt_save_ifs
14515: # Convert to MSYS style.
14516: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14517: ;;
14518: cygwin*)
14519: # Convert to unix form, then to dos form, then back to unix form
14520: # but this time dos style (no spaces!) so that the unix form looks
14521: # like /cygdrive/c/PROGRA~1:/cygdr...
14522: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14523: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14524: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14525: ;;
14526: *)
14527: sys_lib_search_path_spec="$LIB"
14528: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14529: # It is most probably a Windows format PATH.
14530: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14531: else
14532: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14533: fi
14534: # FIXME: find the short name or the path components, as spaces are
14535: # common. (e.g. "Program Files" -> "PROGRA~1")
14536: ;;
14537: esac
14538:
14539: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14540: postinstall_cmds='base_file=`basename \${file}`~
14541: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14542: dldir=$destdir/`dirname \$dlpath`~
14543: test -d \$dldir || mkdir -p \$dldir~
14544: $install_prog $dir/$dlname \$dldir/$dlname'
14545: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14546: dlpath=$dir/\$dldll~
14547: $RM \$dlpath'
14548: shlibpath_overrides_runpath=yes
14549: dynamic_linker='Win32 link.exe'
14550: ;;
14551:
14552: *)
14553: # Assume MSVC wrapper
14554: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14555: dynamic_linker='Win32 ld.exe'
14556: ;;
14557: esac
14558: # FIXME: first we should search . and the directory the executable is in
14559: shlibpath_var=PATH
14560: ;;
14561:
14562: darwin* | rhapsody*)
14563: dynamic_linker="$host_os dyld"
14564: version_type=darwin
14565: need_lib_prefix=no
14566: need_version=no
14567: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14568: soname_spec='${libname}${release}${major}$shared_ext'
14569: shlibpath_overrides_runpath=yes
14570: shlibpath_var=DYLD_LIBRARY_PATH
14571: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14572:
14573: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14574: ;;
14575:
14576: dgux*)
14577: version_type=linux # correct to gnu/linux during the next big refactor
14578: need_lib_prefix=no
14579: need_version=no
14580: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14581: soname_spec='${libname}${release}${shared_ext}$major'
14582: shlibpath_var=LD_LIBRARY_PATH
14583: ;;
14584:
14585: freebsd* | dragonfly*)
14586: # DragonFly does not have aout. When/if they implement a new
14587: # versioning mechanism, adjust this.
14588: if test -x /usr/bin/objformat; then
14589: objformat=`/usr/bin/objformat`
14590: else
14591: case $host_os in
14592: freebsd[23].*) objformat=aout ;;
14593: *) objformat=elf ;;
14594: esac
14595: fi
14596: version_type=freebsd-$objformat
14597: case $version_type in
14598: freebsd-elf*)
14599: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14600: need_version=no
14601: need_lib_prefix=no
14602: ;;
14603: freebsd-*)
14604: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14605: need_version=yes
14606: ;;
14607: esac
14608: shlibpath_var=LD_LIBRARY_PATH
14609: case $host_os in
14610: freebsd2.*)
14611: shlibpath_overrides_runpath=yes
14612: ;;
14613: freebsd3.[01]* | freebsdelf3.[01]*)
14614: shlibpath_overrides_runpath=yes
14615: hardcode_into_libs=yes
14616: ;;
14617: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14618: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14619: shlibpath_overrides_runpath=no
14620: hardcode_into_libs=yes
14621: ;;
14622: *) # from 4.6 on, and DragonFly
14623: shlibpath_overrides_runpath=yes
14624: hardcode_into_libs=yes
14625: ;;
14626: esac
14627: ;;
14628:
14629: gnu*)
14630: version_type=linux # correct to gnu/linux during the next big refactor
14631: need_lib_prefix=no
14632: need_version=no
14633: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14634: soname_spec='${libname}${release}${shared_ext}$major'
14635: shlibpath_var=LD_LIBRARY_PATH
14636: shlibpath_overrides_runpath=no
14637: hardcode_into_libs=yes
14638: ;;
14639:
14640: haiku*)
14641: version_type=linux # correct to gnu/linux during the next big refactor
14642: need_lib_prefix=no
14643: need_version=no
14644: dynamic_linker="$host_os runtime_loader"
14645: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14646: soname_spec='${libname}${release}${shared_ext}$major'
14647: shlibpath_var=LIBRARY_PATH
14648: shlibpath_overrides_runpath=yes
14649: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14650: hardcode_into_libs=yes
14651: ;;
14652:
14653: hpux9* | hpux10* | hpux11*)
14654: # Give a soname corresponding to the major version so that dld.sl refuses to
14655: # link against other versions.
14656: version_type=sunos
14657: need_lib_prefix=no
14658: need_version=no
14659: case $host_cpu in
14660: ia64*)
14661: shrext_cmds='.so'
14662: hardcode_into_libs=yes
14663: dynamic_linker="$host_os dld.so"
14664: shlibpath_var=LD_LIBRARY_PATH
14665: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14666: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667: soname_spec='${libname}${release}${shared_ext}$major'
14668: if test "X$HPUX_IA64_MODE" = X32; then
14669: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14670: else
14671: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14672: fi
14673: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14674: ;;
14675: hppa*64*)
14676: shrext_cmds='.sl'
14677: hardcode_into_libs=yes
14678: dynamic_linker="$host_os dld.sl"
14679: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14680: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14681: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682: soname_spec='${libname}${release}${shared_ext}$major'
14683: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14684: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14685: ;;
14686: *)
14687: shrext_cmds='.sl'
14688: dynamic_linker="$host_os dld.sl"
14689: shlibpath_var=SHLIB_PATH
14690: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14691: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692: soname_spec='${libname}${release}${shared_ext}$major'
14693: ;;
14694: esac
14695: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14696: postinstall_cmds='chmod 555 $lib'
14697: # or fails outright, so override atomically:
14698: install_override_mode=555
14699: ;;
14700:
14701: interix[3-9]*)
14702: version_type=linux # correct to gnu/linux during the next big refactor
14703: need_lib_prefix=no
14704: need_version=no
14705: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14706: soname_spec='${libname}${release}${shared_ext}$major'
14707: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14708: shlibpath_var=LD_LIBRARY_PATH
14709: shlibpath_overrides_runpath=no
14710: hardcode_into_libs=yes
14711: ;;
14712:
14713: irix5* | irix6* | nonstopux*)
14714: case $host_os in
14715: nonstopux*) version_type=nonstopux ;;
14716: *)
14717: if test "$lt_cv_prog_gnu_ld" = yes; then
14718: version_type=linux # correct to gnu/linux during the next big refactor
14719: else
14720: version_type=irix
14721: fi ;;
14722: esac
14723: need_lib_prefix=no
14724: need_version=no
14725: soname_spec='${libname}${release}${shared_ext}$major'
14726: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14727: case $host_os in
14728: irix5* | nonstopux*)
14729: libsuff= shlibsuff=
14730: ;;
14731: *)
14732: case $LD in # libtool.m4 will add one of these switches to LD
14733: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14734: libsuff= shlibsuff= libmagic=32-bit;;
14735: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14736: libsuff=32 shlibsuff=N32 libmagic=N32;;
14737: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14738: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14739: *) libsuff= shlibsuff= libmagic=never-match;;
14740: esac
14741: ;;
14742: esac
14743: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14744: shlibpath_overrides_runpath=no
14745: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14746: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14747: hardcode_into_libs=yes
14748: ;;
14749:
14750: # No shared lib support for Linux oldld, aout, or coff.
14751: linux*oldld* | linux*aout* | linux*coff*)
14752: dynamic_linker=no
14753: ;;
14754:
14755: # This must be glibc/ELF.
14756: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14757: version_type=linux # correct to gnu/linux during the next big refactor
14758: need_lib_prefix=no
14759: need_version=no
14760: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761: soname_spec='${libname}${release}${shared_ext}$major'
14762: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14763: shlibpath_var=LD_LIBRARY_PATH
14764: shlibpath_overrides_runpath=no
14765:
14766: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 14767: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14768: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14769: else
14770: lt_cv_shlibpath_overrides_runpath=no
14771: save_LDFLAGS=$LDFLAGS
14772: save_libdir=$libdir
14773: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14774: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.11 moko 14775: cat >conftest.$ac_ext <<_ACEOF
14776: /* confdefs.h. */
14777: _ACEOF
14778: cat confdefs.h >>conftest.$ac_ext
14779: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 14780: /* end confdefs.h. */
14781:
14782: int
14783: main ()
14784: {
14785:
14786: ;
14787: return 0;
14788: }
14789: _ACEOF
1.11 moko 14790: rm -f conftest.$ac_objext conftest$ac_exeext
14791: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14792: (eval $ac_link) 2>conftest.er1
14793: ac_status=$?
14794: grep -v '^ *+' conftest.er1 >conftest.err
14795: rm -f conftest.er1
14796: cat conftest.err >&5
14797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798: (exit $ac_status); } &&
14799: { ac_try='test -z "$ac_cxx_werror_flag"
14800: || test ! -s conftest.err'
14801: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802: (eval $ac_try) 2>&5
14803: ac_status=$?
14804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805: (exit $ac_status); }; } &&
14806: { ac_try='test -s conftest$ac_exeext'
14807: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808: (eval $ac_try) 2>&5
14809: ac_status=$?
14810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811: (exit $ac_status); }; }; then
14812: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 14813: lt_cv_shlibpath_overrides_runpath=yes
14814: fi
1.11 moko 14815:
14816: else
14817: echo "$as_me: failed program was:" >&5
14818: sed 's/^/| /' conftest.$ac_ext >&5
14819:
1.8 moko 14820: fi
1.11 moko 14821: rm -f conftest.err conftest.$ac_objext \
14822: conftest$ac_exeext conftest.$ac_ext
1.8 moko 14823: LDFLAGS=$save_LDFLAGS
14824: libdir=$save_libdir
14825:
14826: fi
14827:
14828: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14829:
14830: # This implies no fast_install, which is unacceptable.
14831: # Some rework will be needed to allow for fast_install
14832: # before this can be enabled.
14833: hardcode_into_libs=yes
14834:
14835: # Append ld.so.conf contents to the search path
14836: if test -f /etc/ld.so.conf; then
14837: 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' ' '`
14838: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14839: fi
14840:
14841: # We used to test for /lib/ld.so.1 and disable shared libraries on
14842: # powerpc, because MkLinux only supported shared libraries with the
14843: # GNU dynamic linker. Since this was broken with cross compilers,
14844: # most powerpc-linux boxes support dynamic linking these days and
14845: # people can always --disable-shared, the test was removed, and we
14846: # assume the GNU/Linux dynamic linker is in use.
14847: dynamic_linker='GNU/Linux ld.so'
14848: ;;
14849:
14850: netbsd*)
14851: version_type=sunos
14852: need_lib_prefix=no
14853: need_version=no
14854: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14857: dynamic_linker='NetBSD (a.out) ld.so'
14858: else
14859: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14860: soname_spec='${libname}${release}${shared_ext}$major'
14861: dynamic_linker='NetBSD ld.elf_so'
14862: fi
14863: shlibpath_var=LD_LIBRARY_PATH
14864: shlibpath_overrides_runpath=yes
14865: hardcode_into_libs=yes
14866: ;;
14867:
14868: newsos6)
14869: version_type=linux # correct to gnu/linux during the next big refactor
14870: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871: shlibpath_var=LD_LIBRARY_PATH
14872: shlibpath_overrides_runpath=yes
14873: ;;
14874:
14875: *nto* | *qnx*)
14876: version_type=qnx
14877: need_lib_prefix=no
14878: need_version=no
14879: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880: soname_spec='${libname}${release}${shared_ext}$major'
14881: shlibpath_var=LD_LIBRARY_PATH
14882: shlibpath_overrides_runpath=no
14883: hardcode_into_libs=yes
14884: dynamic_linker='ldqnx.so'
14885: ;;
14886:
14887: openbsd*)
14888: version_type=sunos
14889: sys_lib_dlsearch_path_spec="/usr/lib"
14890: need_lib_prefix=no
14891: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14892: case $host_os in
14893: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14894: *) need_version=no ;;
14895: esac
14896: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14897: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14898: shlibpath_var=LD_LIBRARY_PATH
14899: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14900: case $host_os in
14901: openbsd2.[89] | openbsd2.[89].*)
14902: shlibpath_overrides_runpath=no
14903: ;;
14904: *)
14905: shlibpath_overrides_runpath=yes
14906: ;;
14907: esac
14908: else
14909: shlibpath_overrides_runpath=yes
14910: fi
14911: ;;
14912:
14913: os2*)
14914: libname_spec='$name'
14915: shrext_cmds=".dll"
14916: need_lib_prefix=no
14917: library_names_spec='$libname${shared_ext} $libname.a'
14918: dynamic_linker='OS/2 ld.exe'
14919: shlibpath_var=LIBPATH
14920: ;;
14921:
14922: osf3* | osf4* | osf5*)
14923: version_type=osf
14924: need_lib_prefix=no
14925: need_version=no
14926: soname_spec='${libname}${release}${shared_ext}$major'
14927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928: shlibpath_var=LD_LIBRARY_PATH
14929: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14930: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14931: ;;
14932:
14933: rdos*)
14934: dynamic_linker=no
14935: ;;
14936:
14937: solaris*)
14938: version_type=linux # correct to gnu/linux during the next big refactor
14939: need_lib_prefix=no
14940: need_version=no
14941: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942: soname_spec='${libname}${release}${shared_ext}$major'
14943: shlibpath_var=LD_LIBRARY_PATH
14944: shlibpath_overrides_runpath=yes
14945: hardcode_into_libs=yes
14946: # ldd complains unless libraries are executable
14947: postinstall_cmds='chmod +x $lib'
14948: ;;
14949:
14950: sunos4*)
14951: version_type=sunos
14952: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14953: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14954: shlibpath_var=LD_LIBRARY_PATH
14955: shlibpath_overrides_runpath=yes
14956: if test "$with_gnu_ld" = yes; then
14957: need_lib_prefix=no
14958: fi
14959: need_version=yes
14960: ;;
14961:
14962: sysv4 | sysv4.3*)
14963: version_type=linux # correct to gnu/linux during the next big refactor
14964: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14965: soname_spec='${libname}${release}${shared_ext}$major'
14966: shlibpath_var=LD_LIBRARY_PATH
14967: case $host_vendor in
14968: sni)
14969: shlibpath_overrides_runpath=no
14970: need_lib_prefix=no
14971: runpath_var=LD_RUN_PATH
14972: ;;
14973: siemens)
14974: need_lib_prefix=no
14975: ;;
14976: motorola)
14977: need_lib_prefix=no
14978: need_version=no
14979: shlibpath_overrides_runpath=no
14980: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14981: ;;
14982: esac
14983: ;;
14984:
14985: sysv4*MP*)
14986: if test -d /usr/nec ;then
14987: version_type=linux # correct to gnu/linux during the next big refactor
14988: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14989: soname_spec='$libname${shared_ext}.$major'
14990: shlibpath_var=LD_LIBRARY_PATH
14991: fi
14992: ;;
14993:
14994: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14995: version_type=freebsd-elf
14996: need_lib_prefix=no
14997: need_version=no
14998: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14999: soname_spec='${libname}${release}${shared_ext}$major'
15000: shlibpath_var=LD_LIBRARY_PATH
15001: shlibpath_overrides_runpath=yes
15002: hardcode_into_libs=yes
15003: if test "$with_gnu_ld" = yes; then
15004: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15005: else
15006: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15007: case $host_os in
15008: sco3.2v5*)
15009: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15010: ;;
15011: esac
15012: fi
15013: sys_lib_dlsearch_path_spec='/usr/lib'
15014: ;;
15015:
15016: tpf*)
15017: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15018: version_type=linux # correct to gnu/linux during the next big refactor
15019: need_lib_prefix=no
15020: need_version=no
15021: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022: shlibpath_var=LD_LIBRARY_PATH
15023: shlibpath_overrides_runpath=no
15024: hardcode_into_libs=yes
15025: ;;
15026:
15027: uts4*)
15028: version_type=linux # correct to gnu/linux during the next big refactor
15029: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030: soname_spec='${libname}${release}${shared_ext}$major'
15031: shlibpath_var=LD_LIBRARY_PATH
15032: ;;
15033:
15034: *)
15035: dynamic_linker=no
15036: ;;
15037: esac
1.11 moko 15038: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15039: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 15040: test "$dynamic_linker" = no && can_build_shared=no
15041:
15042: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15043: if test "$GCC" = yes; then
15044: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15045: fi
15046:
15047: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15048: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15049: fi
15050: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15051: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15052: fi
15053:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071:
15072:
15073:
15074:
15075:
15076:
15077:
15078:
15079:
15080:
15081:
15082:
15083:
15084:
15085:
15086:
15087:
15088:
15089:
15090:
1.11 moko 15091: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15092: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 15093: hardcode_action_CXX=
15094: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15095: test -n "$runpath_var_CXX" ||
15096: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15097:
15098: # We can hardcode non-existent directories.
15099: if test "$hardcode_direct_CXX" != no &&
15100: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15101: # have to relink, otherwise we might link with an installed library
15102: # when we should be linking with a yet-to-be-installed one
15103: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15104: test "$hardcode_minus_L_CXX" != no; then
15105: # Linking always hardcodes the temporary library directory.
15106: hardcode_action_CXX=relink
15107: else
15108: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15109: hardcode_action_CXX=immediate
15110: fi
15111: else
15112: # We cannot hardcode anything, or else we can only hardcode existing
15113: # directories.
15114: hardcode_action_CXX=unsupported
15115: fi
1.11 moko 15116: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15117: echo "${ECHO_T}$hardcode_action_CXX" >&6
1.8 moko 15118:
15119: if test "$hardcode_action_CXX" = relink ||
15120: test "$inherit_rpath_CXX" = yes; then
15121: # Fast installation is not supported
15122: enable_fast_install=no
15123: elif test "$shlibpath_overrides_runpath" = yes ||
15124: test "$enable_shared" = no; then
15125: # Fast installation is not necessary
15126: enable_fast_install=needless
15127: fi
15128:
15129:
15130:
15131:
15132:
15133:
15134:
15135: fi # test -n "$compiler"
15136:
15137: CC=$lt_save_CC
15138: CFLAGS=$lt_save_CFLAGS
15139: LDCXX=$LD
15140: LD=$lt_save_LD
15141: GCC=$lt_save_GCC
15142: with_gnu_ld=$lt_save_with_gnu_ld
15143: lt_cv_path_LDCXX=$lt_cv_path_LD
15144: lt_cv_path_LD=$lt_save_path_LD
15145: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15146: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15147: fi # test "$_lt_caught_CXX_error" != yes
15148:
15149: ac_ext=c
15150: ac_cpp='$CPP $CPPFLAGS'
15151: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15152: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15153: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15154:
15155:
15156:
15157:
15158:
15159:
15160:
15161:
15162:
15163:
15164:
15165:
15166:
15167:
15168:
1.11 moko 15169: ac_config_commands="$ac_config_commands libtool"
1.8 moko 15170:
15171:
15172:
15173:
15174: # Only expand once:
15175:
15176:
1.11 moko 15177: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15178: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15179: if test "${libltdl_cv_shlibext+set}" = set; then
15180: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15181: else
15182:
15183: module=yes
15184: eval libltdl_cv_shlibext=$shrext_cmds
15185: module=no
15186: eval libltdl_cv_shrext=$shrext_cmds
15187:
15188: fi
1.11 moko 15189: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15190: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
1.8 moko 15191: if test -n "$libltdl_cv_shlibext"; then
15192:
15193: cat >>confdefs.h <<_ACEOF
15194: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15195: _ACEOF
15196:
15197: fi
15198: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15199:
15200: cat >>confdefs.h <<_ACEOF
15201: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15202: _ACEOF
15203:
15204: fi
15205:
1.11 moko 15206: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15207: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15208: if test "${lt_cv_module_path_var+set}" = set; then
15209: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15210: else
15211: lt_cv_module_path_var="$shlibpath_var"
15212: fi
1.11 moko 15213: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15214: echo "${ECHO_T}$lt_cv_module_path_var" >&6
1.8 moko 15215: if test -n "$lt_cv_module_path_var"; then
15216:
15217: cat >>confdefs.h <<_ACEOF
15218: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15219: _ACEOF
15220:
15221: fi
15222:
1.11 moko 15223: echo "$as_me:$LINENO: checking for the default library search path" >&5
15224: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15225: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15226: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15227: else
15228: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15229: fi
1.11 moko 15230: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15231: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
1.8 moko 15232: if test -n "$lt_cv_sys_dlsearch_path"; then
15233: sys_dlsearch_path=
15234: for dir in $lt_cv_sys_dlsearch_path; do
15235: if test -z "$sys_dlsearch_path"; then
15236: sys_dlsearch_path="$dir"
15237: else
15238: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15239: fi
15240: done
15241:
15242: cat >>confdefs.h <<_ACEOF
15243: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15244: _ACEOF
15245:
15246: fi
15247:
15248:
15249: LT_DLLOADERS=
15250:
15251:
15252: ac_ext=c
15253: ac_cpp='$CPP $CPPFLAGS'
15254: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15255: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15256: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15257:
15258:
15259: LIBADD_DLOPEN=
1.11 moko 15260: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15261: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15262: if test "${ac_cv_search_dlopen+set}" = set; then
15263: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15264: else
15265: ac_func_search_save_LIBS=$LIBS
1.11 moko 15266: ac_cv_search_dlopen=no
15267: cat >conftest.$ac_ext <<_ACEOF
15268: /* confdefs.h. */
15269: _ACEOF
15270: cat confdefs.h >>conftest.$ac_ext
15271: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15272: /* end confdefs.h. */
15273:
1.11 moko 15274: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15275: #ifdef __cplusplus
15276: extern "C"
15277: #endif
1.11 moko 15278: /* We use char because int might match the return type of a gcc2
15279: builtin and then its argument prototype would still apply. */
1.8 moko 15280: char dlopen ();
15281: int
15282: main ()
15283: {
1.11 moko 15284: dlopen ();
1.8 moko 15285: ;
15286: return 0;
15287: }
15288: _ACEOF
1.11 moko 15289: rm -f conftest.$ac_objext conftest$ac_exeext
15290: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291: (eval $ac_link) 2>conftest.er1
15292: ac_status=$?
15293: grep -v '^ *+' conftest.er1 >conftest.err
15294: rm -f conftest.er1
15295: cat conftest.err >&5
15296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297: (exit $ac_status); } &&
15298: { ac_try='test -z "$ac_c_werror_flag"
15299: || test ! -s conftest.err'
15300: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301: (eval $ac_try) 2>&5
15302: ac_status=$?
15303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304: (exit $ac_status); }; } &&
15305: { ac_try='test -s conftest$ac_exeext'
15306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307: (eval $ac_try) 2>&5
15308: ac_status=$?
15309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310: (exit $ac_status); }; }; then
15311: ac_cv_search_dlopen="none required"
15312: else
15313: echo "$as_me: failed program was:" >&5
15314: sed 's/^/| /' conftest.$ac_ext >&5
15315:
15316: fi
15317: rm -f conftest.err conftest.$ac_objext \
15318: conftest$ac_exeext conftest.$ac_ext
15319: if test "$ac_cv_search_dlopen" = no; then
15320: for ac_lib in dl; do
1.10 moko 15321: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.11 moko 15322: cat >conftest.$ac_ext <<_ACEOF
15323: /* confdefs.h. */
15324: _ACEOF
15325: cat confdefs.h >>conftest.$ac_ext
15326: cat >>conftest.$ac_ext <<_ACEOF
15327: /* end confdefs.h. */
1.8 moko 15328:
1.11 moko 15329: /* Override any gcc2 internal prototype to avoid an error. */
15330: #ifdef __cplusplus
15331: extern "C"
15332: #endif
15333: /* We use char because int might match the return type of a gcc2
15334: builtin and then its argument prototype would still apply. */
15335: char dlopen ();
15336: int
15337: main ()
15338: {
15339: dlopen ();
15340: ;
15341: return 0;
15342: }
15343: _ACEOF
15344: rm -f conftest.$ac_objext conftest$ac_exeext
15345: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346: (eval $ac_link) 2>conftest.er1
15347: ac_status=$?
15348: grep -v '^ *+' conftest.er1 >conftest.err
15349: rm -f conftest.er1
15350: cat conftest.err >&5
15351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352: (exit $ac_status); } &&
15353: { ac_try='test -z "$ac_c_werror_flag"
15354: || test ! -s conftest.err'
15355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356: (eval $ac_try) 2>&5
15357: ac_status=$?
15358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359: (exit $ac_status); }; } &&
15360: { ac_try='test -s conftest$ac_exeext'
15361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362: (eval $ac_try) 2>&5
15363: ac_status=$?
15364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365: (exit $ac_status); }; }; then
15366: ac_cv_search_dlopen="-l$ac_lib"
15367: break
1.8 moko 15368: else
1.11 moko 15369: echo "$as_me: failed program was:" >&5
15370: sed 's/^/| /' conftest.$ac_ext >&5
15371:
15372: fi
15373: rm -f conftest.err conftest.$ac_objext \
15374: conftest$ac_exeext conftest.$ac_ext
15375: done
1.8 moko 15376: fi
15377: LIBS=$ac_func_search_save_LIBS
15378: fi
1.11 moko 15379: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15380: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15381: if test "$ac_cv_search_dlopen" != no; then
15382: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
1.8 moko 15383:
1.11 moko 15384: cat >>confdefs.h <<\_ACEOF
15385: #define HAVE_LIBDL 1
15386: _ACEOF
1.8 moko 15387:
15388: if test "$ac_cv_search_dlopen" != "none required" ; then
15389: LIBADD_DLOPEN="-ldl"
15390: fi
15391: libltdl_cv_lib_dl_dlopen="yes"
15392: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15393: else
1.11 moko 15394: cat >conftest.$ac_ext <<_ACEOF
15395: /* confdefs.h. */
15396: _ACEOF
15397: cat confdefs.h >>conftest.$ac_ext
15398: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15399: /* end confdefs.h. */
15400: #if HAVE_DLFCN_H
15401: # include <dlfcn.h>
15402: #endif
15403:
15404: int
15405: main ()
15406: {
15407: dlopen(0, 0);
15408: ;
15409: return 0;
15410: }
15411: _ACEOF
1.11 moko 15412: rm -f conftest.$ac_objext conftest$ac_exeext
15413: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15414: (eval $ac_link) 2>conftest.er1
15415: ac_status=$?
15416: grep -v '^ *+' conftest.er1 >conftest.err
15417: rm -f conftest.er1
15418: cat conftest.err >&5
15419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420: (exit $ac_status); } &&
15421: { ac_try='test -z "$ac_c_werror_flag"
15422: || test ! -s conftest.err'
15423: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424: (eval $ac_try) 2>&5
15425: ac_status=$?
15426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427: (exit $ac_status); }; } &&
15428: { ac_try='test -s conftest$ac_exeext'
15429: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430: (eval $ac_try) 2>&5
15431: ac_status=$?
15432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433: (exit $ac_status); }; }; then
1.8 moko 15434:
1.11 moko 15435: cat >>confdefs.h <<\_ACEOF
15436: #define HAVE_LIBDL 1
15437: _ACEOF
1.8 moko 15438:
15439: libltdl_cv_func_dlopen="yes"
15440: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15441: else
1.11 moko 15442: echo "$as_me: failed program was:" >&5
15443: sed 's/^/| /' conftest.$ac_ext >&5
15444:
15445: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15446: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15447: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15448: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15449: else
15450: ac_check_lib_save_LIBS=$LIBS
15451: LIBS="-lsvld $LIBS"
1.11 moko 15452: cat >conftest.$ac_ext <<_ACEOF
15453: /* confdefs.h. */
15454: _ACEOF
15455: cat confdefs.h >>conftest.$ac_ext
15456: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15457: /* end confdefs.h. */
15458:
1.11 moko 15459: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15460: #ifdef __cplusplus
15461: extern "C"
15462: #endif
1.11 moko 15463: /* We use char because int might match the return type of a gcc2
15464: builtin and then its argument prototype would still apply. */
1.8 moko 15465: char dlopen ();
15466: int
15467: main ()
15468: {
1.11 moko 15469: dlopen ();
1.8 moko 15470: ;
15471: return 0;
15472: }
15473: _ACEOF
1.11 moko 15474: rm -f conftest.$ac_objext conftest$ac_exeext
15475: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15476: (eval $ac_link) 2>conftest.er1
15477: ac_status=$?
15478: grep -v '^ *+' conftest.er1 >conftest.err
15479: rm -f conftest.er1
15480: cat conftest.err >&5
15481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482: (exit $ac_status); } &&
15483: { ac_try='test -z "$ac_c_werror_flag"
15484: || test ! -s conftest.err'
15485: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486: (eval $ac_try) 2>&5
15487: ac_status=$?
15488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489: (exit $ac_status); }; } &&
15490: { ac_try='test -s conftest$ac_exeext'
15491: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492: (eval $ac_try) 2>&5
15493: ac_status=$?
15494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495: (exit $ac_status); }; }; then
1.8 moko 15496: ac_cv_lib_svld_dlopen=yes
15497: else
1.11 moko 15498: echo "$as_me: failed program was:" >&5
15499: sed 's/^/| /' conftest.$ac_ext >&5
15500:
15501: ac_cv_lib_svld_dlopen=no
1.8 moko 15502: fi
1.11 moko 15503: rm -f conftest.err conftest.$ac_objext \
15504: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15505: LIBS=$ac_check_lib_save_LIBS
15506: fi
1.11 moko 15507: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15508: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15509: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 15510:
1.11 moko 15511: cat >>confdefs.h <<\_ACEOF
15512: #define HAVE_LIBDL 1
15513: _ACEOF
1.8 moko 15514:
15515: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15516: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15517: fi
15518:
15519: fi
1.11 moko 15520: rm -f conftest.err conftest.$ac_objext \
15521: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15522: fi
15523:
15524: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15525: then
15526: lt_save_LIBS="$LIBS"
15527: LIBS="$LIBS $LIBADD_DLOPEN"
1.11 moko 15528:
15529: for ac_func in dlerror
15530: do
15531: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15532: echo "$as_me:$LINENO: checking for $ac_func" >&5
15533: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15534: if eval "test \"\${$as_ac_var+set}\" = set"; then
15535: echo $ECHO_N "(cached) $ECHO_C" >&6
15536: else
15537: cat >conftest.$ac_ext <<_ACEOF
15538: /* confdefs.h. */
15539: _ACEOF
15540: cat confdefs.h >>conftest.$ac_ext
15541: cat >>conftest.$ac_ext <<_ACEOF
15542: /* end confdefs.h. */
15543: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15544: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15545: #define $ac_func innocuous_$ac_func
15546:
15547: /* System header to define __stub macros and hopefully few prototypes,
15548: which can conflict with char $ac_func (); below.
15549: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15550: <limits.h> exists even on freestanding compilers. */
15551:
15552: #ifdef __STDC__
15553: # include <limits.h>
15554: #else
15555: # include <assert.h>
15556: #endif
15557:
15558: #undef $ac_func
15559:
15560: /* Override any gcc2 internal prototype to avoid an error. */
15561: #ifdef __cplusplus
15562: extern "C"
15563: {
15564: #endif
15565: /* We use char because int might match the return type of a gcc2
15566: builtin and then its argument prototype would still apply. */
15567: char $ac_func ();
15568: /* The GNU C library defines this for functions which it implements
15569: to always fail with ENOSYS. Some functions are actually named
15570: something starting with __ and the normal name is an alias. */
15571: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15572: choke me
15573: #else
15574: char (*f) () = $ac_func;
15575: #endif
15576: #ifdef __cplusplus
15577: }
15578: #endif
15579:
15580: int
15581: main ()
15582: {
15583: return f != $ac_func;
15584: ;
15585: return 0;
15586: }
15587: _ACEOF
15588: rm -f conftest.$ac_objext conftest$ac_exeext
15589: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590: (eval $ac_link) 2>conftest.er1
15591: ac_status=$?
15592: grep -v '^ *+' conftest.er1 >conftest.err
15593: rm -f conftest.er1
15594: cat conftest.err >&5
15595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596: (exit $ac_status); } &&
15597: { ac_try='test -z "$ac_c_werror_flag"
15598: || test ! -s conftest.err'
15599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600: (eval $ac_try) 2>&5
15601: ac_status=$?
15602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603: (exit $ac_status); }; } &&
15604: { ac_try='test -s conftest$ac_exeext'
15605: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606: (eval $ac_try) 2>&5
15607: ac_status=$?
15608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609: (exit $ac_status); }; }; then
15610: eval "$as_ac_var=yes"
15611: else
15612: echo "$as_me: failed program was:" >&5
15613: sed 's/^/| /' conftest.$ac_ext >&5
15614:
15615: eval "$as_ac_var=no"
15616: fi
15617: rm -f conftest.err conftest.$ac_objext \
15618: conftest$ac_exeext conftest.$ac_ext
15619: fi
15620: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15621: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15622: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 15623: cat >>confdefs.h <<_ACEOF
1.11 moko 15624: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 15625: _ACEOF
15626:
15627: fi
15628: done
15629:
15630: LIBS="$lt_save_LIBS"
15631: fi
15632:
15633:
15634: LIBADD_SHL_LOAD=
1.11 moko 15635: echo "$as_me:$LINENO: checking for shl_load" >&5
15636: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15637: if test "${ac_cv_func_shl_load+set}" = set; then
15638: echo $ECHO_N "(cached) $ECHO_C" >&6
15639: else
15640: cat >conftest.$ac_ext <<_ACEOF
15641: /* confdefs.h. */
15642: _ACEOF
15643: cat confdefs.h >>conftest.$ac_ext
15644: cat >>conftest.$ac_ext <<_ACEOF
15645: /* end confdefs.h. */
15646: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15647: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15648: #define shl_load innocuous_shl_load
15649:
15650: /* System header to define __stub macros and hopefully few prototypes,
15651: which can conflict with char shl_load (); below.
15652: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653: <limits.h> exists even on freestanding compilers. */
15654:
15655: #ifdef __STDC__
15656: # include <limits.h>
15657: #else
15658: # include <assert.h>
15659: #endif
15660:
15661: #undef shl_load
15662:
15663: /* Override any gcc2 internal prototype to avoid an error. */
15664: #ifdef __cplusplus
15665: extern "C"
15666: {
15667: #endif
15668: /* We use char because int might match the return type of a gcc2
15669: builtin and then its argument prototype would still apply. */
15670: char shl_load ();
15671: /* The GNU C library defines this for functions which it implements
15672: to always fail with ENOSYS. Some functions are actually named
15673: something starting with __ and the normal name is an alias. */
15674: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15675: choke me
15676: #else
15677: char (*f) () = shl_load;
15678: #endif
15679: #ifdef __cplusplus
15680: }
15681: #endif
15682:
15683: int
15684: main ()
15685: {
15686: return f != shl_load;
15687: ;
15688: return 0;
15689: }
15690: _ACEOF
15691: rm -f conftest.$ac_objext conftest$ac_exeext
15692: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15693: (eval $ac_link) 2>conftest.er1
15694: ac_status=$?
15695: grep -v '^ *+' conftest.er1 >conftest.err
15696: rm -f conftest.er1
15697: cat conftest.err >&5
15698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699: (exit $ac_status); } &&
15700: { ac_try='test -z "$ac_c_werror_flag"
15701: || test ! -s conftest.err'
15702: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703: (eval $ac_try) 2>&5
15704: ac_status=$?
15705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706: (exit $ac_status); }; } &&
15707: { ac_try='test -s conftest$ac_exeext'
15708: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709: (eval $ac_try) 2>&5
15710: ac_status=$?
15711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712: (exit $ac_status); }; }; then
15713: ac_cv_func_shl_load=yes
15714: else
15715: echo "$as_me: failed program was:" >&5
15716: sed 's/^/| /' conftest.$ac_ext >&5
15717:
15718: ac_cv_func_shl_load=no
15719: fi
15720: rm -f conftest.err conftest.$ac_objext \
15721: conftest$ac_exeext conftest.$ac_ext
15722: fi
15723: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15724: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15725: if test $ac_cv_func_shl_load = yes; then
1.8 moko 15726:
1.11 moko 15727: cat >>confdefs.h <<\_ACEOF
15728: #define HAVE_SHL_LOAD 1
15729: _ACEOF
1.8 moko 15730:
15731: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15732: else
1.11 moko 15733: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15734: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15735: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15736: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15737: else
15738: ac_check_lib_save_LIBS=$LIBS
15739: LIBS="-ldld $LIBS"
1.11 moko 15740: cat >conftest.$ac_ext <<_ACEOF
15741: /* confdefs.h. */
15742: _ACEOF
15743: cat confdefs.h >>conftest.$ac_ext
15744: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15745: /* end confdefs.h. */
15746:
1.11 moko 15747: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15748: #ifdef __cplusplus
15749: extern "C"
15750: #endif
1.11 moko 15751: /* We use char because int might match the return type of a gcc2
15752: builtin and then its argument prototype would still apply. */
1.8 moko 15753: char shl_load ();
15754: int
15755: main ()
15756: {
1.11 moko 15757: shl_load ();
1.8 moko 15758: ;
15759: return 0;
15760: }
15761: _ACEOF
1.11 moko 15762: rm -f conftest.$ac_objext conftest$ac_exeext
15763: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764: (eval $ac_link) 2>conftest.er1
15765: ac_status=$?
15766: grep -v '^ *+' conftest.er1 >conftest.err
15767: rm -f conftest.er1
15768: cat conftest.err >&5
15769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770: (exit $ac_status); } &&
15771: { ac_try='test -z "$ac_c_werror_flag"
15772: || test ! -s conftest.err'
15773: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774: (eval $ac_try) 2>&5
15775: ac_status=$?
15776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777: (exit $ac_status); }; } &&
15778: { ac_try='test -s conftest$ac_exeext'
15779: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780: (eval $ac_try) 2>&5
15781: ac_status=$?
15782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783: (exit $ac_status); }; }; then
1.8 moko 15784: ac_cv_lib_dld_shl_load=yes
15785: else
1.11 moko 15786: echo "$as_me: failed program was:" >&5
15787: sed 's/^/| /' conftest.$ac_ext >&5
15788:
15789: ac_cv_lib_dld_shl_load=no
1.8 moko 15790: fi
1.11 moko 15791: rm -f conftest.err conftest.$ac_objext \
15792: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15793: LIBS=$ac_check_lib_save_LIBS
15794: fi
1.11 moko 15795: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15796: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15797: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 15798:
1.11 moko 15799: cat >>confdefs.h <<\_ACEOF
15800: #define HAVE_SHL_LOAD 1
15801: _ACEOF
1.8 moko 15802:
15803: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15804: LIBADD_SHL_LOAD="-ldld"
15805: fi
15806:
15807: fi
15808:
15809:
15810:
15811: case $host_os in
15812: darwin[1567].*)
15813: # We only want this for pre-Mac OS X 10.4.
1.11 moko 15814: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15815: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15816: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15817: echo $ECHO_N "(cached) $ECHO_C" >&6
15818: else
15819: cat >conftest.$ac_ext <<_ACEOF
15820: /* confdefs.h. */
15821: _ACEOF
15822: cat confdefs.h >>conftest.$ac_ext
15823: cat >>conftest.$ac_ext <<_ACEOF
15824: /* end confdefs.h. */
15825: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15826: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15827: #define _dyld_func_lookup innocuous__dyld_func_lookup
15828:
15829: /* System header to define __stub macros and hopefully few prototypes,
15830: which can conflict with char _dyld_func_lookup (); below.
15831: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15832: <limits.h> exists even on freestanding compilers. */
15833:
15834: #ifdef __STDC__
15835: # include <limits.h>
15836: #else
15837: # include <assert.h>
15838: #endif
15839:
15840: #undef _dyld_func_lookup
15841:
15842: /* Override any gcc2 internal prototype to avoid an error. */
15843: #ifdef __cplusplus
15844: extern "C"
15845: {
15846: #endif
15847: /* We use char because int might match the return type of a gcc2
15848: builtin and then its argument prototype would still apply. */
15849: char _dyld_func_lookup ();
15850: /* The GNU C library defines this for functions which it implements
15851: to always fail with ENOSYS. Some functions are actually named
15852: something starting with __ and the normal name is an alias. */
15853: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15854: choke me
15855: #else
15856: char (*f) () = _dyld_func_lookup;
15857: #endif
15858: #ifdef __cplusplus
15859: }
15860: #endif
15861:
15862: int
15863: main ()
15864: {
15865: return f != _dyld_func_lookup;
15866: ;
15867: return 0;
15868: }
15869: _ACEOF
15870: rm -f conftest.$ac_objext conftest$ac_exeext
15871: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15872: (eval $ac_link) 2>conftest.er1
15873: ac_status=$?
15874: grep -v '^ *+' conftest.er1 >conftest.err
15875: rm -f conftest.er1
15876: cat conftest.err >&5
15877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878: (exit $ac_status); } &&
15879: { ac_try='test -z "$ac_c_werror_flag"
15880: || test ! -s conftest.err'
15881: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882: (eval $ac_try) 2>&5
15883: ac_status=$?
15884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885: (exit $ac_status); }; } &&
15886: { ac_try='test -s conftest$ac_exeext'
15887: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888: (eval $ac_try) 2>&5
15889: ac_status=$?
15890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891: (exit $ac_status); }; }; then
15892: ac_cv_func__dyld_func_lookup=yes
15893: else
15894: echo "$as_me: failed program was:" >&5
15895: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 15896:
1.11 moko 15897: ac_cv_func__dyld_func_lookup=no
15898: fi
15899: rm -f conftest.err conftest.$ac_objext \
15900: conftest$ac_exeext conftest.$ac_ext
15901: fi
15902: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15903: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15904: if test $ac_cv_func__dyld_func_lookup = yes; then
15905:
15906: cat >>confdefs.h <<\_ACEOF
15907: #define HAVE_DYLD 1
15908: _ACEOF
1.8 moko 15909:
15910: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15911: fi
15912:
15913: ;;
15914: beos*)
15915: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15916: ;;
15917: cygwin* | mingw* | os2* | pw32*)
1.11 moko 15918: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15919: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15920: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15921: echo $ECHO_N "(cached) $ECHO_C" >&6
15922: else
15923: cat >conftest.$ac_ext <<_ACEOF
15924: /* confdefs.h. */
15925: _ACEOF
15926: cat confdefs.h >>conftest.$ac_ext
15927: cat >>conftest.$ac_ext <<_ACEOF
15928: /* end confdefs.h. */
15929: #include <sys/cygwin.h>
15930:
15931: int
15932: main ()
15933: {
15934: #ifndef cygwin_conv_path
15935: char *p = (char *) cygwin_conv_path;
15936: #endif
15937:
15938: ;
15939: return 0;
15940: }
15941: _ACEOF
15942: rm -f conftest.$ac_objext
15943: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944: (eval $ac_compile) 2>conftest.er1
15945: ac_status=$?
15946: grep -v '^ *+' conftest.er1 >conftest.err
15947: rm -f conftest.er1
15948: cat conftest.err >&5
15949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950: (exit $ac_status); } &&
15951: { ac_try='test -z "$ac_c_werror_flag"
15952: || test ! -s conftest.err'
15953: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954: (eval $ac_try) 2>&5
15955: ac_status=$?
15956: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957: (exit $ac_status); }; } &&
15958: { ac_try='test -s conftest.$ac_objext'
15959: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960: (eval $ac_try) 2>&5
15961: ac_status=$?
15962: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963: (exit $ac_status); }; }; then
15964: ac_cv_have_decl_cygwin_conv_path=yes
1.8 moko 15965: else
1.11 moko 15966: echo "$as_me: failed program was:" >&5
15967: sed 's/^/| /' conftest.$ac_ext >&5
15968:
15969: ac_cv_have_decl_cygwin_conv_path=no
15970: fi
15971: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.8 moko 15972: fi
1.11 moko 15973: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15974: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15975: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
1.8 moko 15976:
15977: cat >>confdefs.h <<_ACEOF
1.11 moko 15978: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15979: _ACEOF
15980:
15981:
15982: else
15983: cat >>confdefs.h <<_ACEOF
15984: #define HAVE_DECL_CYGWIN_CONV_PATH 0
1.8 moko 15985: _ACEOF
15986:
1.11 moko 15987:
15988: fi
15989:
15990:
1.8 moko 15991: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15992: ;;
15993: esac
15994:
1.11 moko 15995: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15996: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15997: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15998: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15999: else
16000: ac_check_lib_save_LIBS=$LIBS
16001: LIBS="-ldld $LIBS"
1.11 moko 16002: cat >conftest.$ac_ext <<_ACEOF
16003: /* confdefs.h. */
16004: _ACEOF
16005: cat confdefs.h >>conftest.$ac_ext
16006: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16007: /* end confdefs.h. */
16008:
1.11 moko 16009: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16010: #ifdef __cplusplus
16011: extern "C"
16012: #endif
1.11 moko 16013: /* We use char because int might match the return type of a gcc2
16014: builtin and then its argument prototype would still apply. */
1.8 moko 16015: char dld_link ();
16016: int
16017: main ()
16018: {
1.11 moko 16019: dld_link ();
1.8 moko 16020: ;
16021: return 0;
16022: }
16023: _ACEOF
1.11 moko 16024: rm -f conftest.$ac_objext conftest$ac_exeext
16025: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16026: (eval $ac_link) 2>conftest.er1
16027: ac_status=$?
16028: grep -v '^ *+' conftest.er1 >conftest.err
16029: rm -f conftest.er1
16030: cat conftest.err >&5
16031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032: (exit $ac_status); } &&
16033: { ac_try='test -z "$ac_c_werror_flag"
16034: || test ! -s conftest.err'
16035: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036: (eval $ac_try) 2>&5
16037: ac_status=$?
16038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039: (exit $ac_status); }; } &&
16040: { ac_try='test -s conftest$ac_exeext'
16041: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042: (eval $ac_try) 2>&5
16043: ac_status=$?
16044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045: (exit $ac_status); }; }; then
1.8 moko 16046: ac_cv_lib_dld_dld_link=yes
16047: else
1.11 moko 16048: echo "$as_me: failed program was:" >&5
16049: sed 's/^/| /' conftest.$ac_ext >&5
16050:
16051: ac_cv_lib_dld_dld_link=no
1.8 moko 16052: fi
1.11 moko 16053: rm -f conftest.err conftest.$ac_objext \
16054: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16055: LIBS=$ac_check_lib_save_LIBS
16056: fi
1.11 moko 16057: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16058: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16059: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 16060:
1.11 moko 16061: cat >>confdefs.h <<\_ACEOF
16062: #define HAVE_DLD 1
16063: _ACEOF
1.8 moko 16064:
16065: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16066: fi
16067:
16068:
16069:
16070:
16071: LT_DLPREOPEN=
16072: if test -n "$LT_DLLOADERS"
16073: then
16074: for lt_loader in $LT_DLLOADERS; do
16075: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16076: done
16077:
1.11 moko 16078: cat >>confdefs.h <<\_ACEOF
16079: #define HAVE_LIBDLLOADER 1
16080: _ACEOF
1.8 moko 16081:
16082: fi
16083:
16084:
16085: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16086:
16087:
16088: ac_ext=c
16089: ac_cpp='$CPP $CPPFLAGS'
16090: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16091: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16092: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16093:
16094:
1.11 moko 16095: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16096: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16097: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16098: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16099: else
16100: lt_cv_sys_symbol_underscore=no
16101: cat > conftest.$ac_ext <<_LT_EOF
16102: void nm_test_func(){}
16103: int main(){nm_test_func;return 0;}
16104: _LT_EOF
1.11 moko 16105: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 16106: (eval $ac_compile) 2>&5
16107: ac_status=$?
1.11 moko 16108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109: (exit $ac_status); }; then
1.8 moko 16110: # Now try to grab the symbols.
16111: ac_nlist=conftest.nm
1.11 moko 16112: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
1.8 moko 16113: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16114: ac_status=$?
1.11 moko 16115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116: (exit $ac_status); } && test -s "$ac_nlist"; then
1.8 moko 16117: # See whether the symbols have a leading underscore.
16118: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16119: lt_cv_sys_symbol_underscore=yes
16120: else
16121: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16122: :
16123: else
16124: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16125: fi
16126: fi
16127: else
16128: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16129: fi
16130: else
16131: echo "configure: failed program was:" >&5
16132: cat conftest.c >&5
16133: fi
16134: rm -rf conftest*
16135:
16136: fi
1.11 moko 16137: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16138: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
1.8 moko 16139: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16140:
16141:
16142: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16143: if test x"$libltdl_cv_func_dlopen" = xyes ||
16144: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.11 moko 16145: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16146: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16147: if test "${libltdl_cv_need_uscore+set}" = set; then
16148: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16149: else
16150: libltdl_cv_need_uscore=unknown
16151: save_LIBS="$LIBS"
16152: LIBS="$LIBS $LIBADD_DLOPEN"
16153: if test "$cross_compiling" = yes; then :
16154: libltdl_cv_need_uscore=cross
16155: else
16156: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16157: lt_status=$lt_dlunknown
16158: cat > conftest.$ac_ext <<_LT_EOF
16159: #line $LINENO "configure"
16160: #include "confdefs.h"
16161:
16162: #if HAVE_DLFCN_H
16163: #include <dlfcn.h>
16164: #endif
16165:
16166: #include <stdio.h>
16167:
16168: #ifdef RTLD_GLOBAL
16169: # define LT_DLGLOBAL RTLD_GLOBAL
16170: #else
16171: # ifdef DL_GLOBAL
16172: # define LT_DLGLOBAL DL_GLOBAL
16173: # else
16174: # define LT_DLGLOBAL 0
16175: # endif
16176: #endif
16177:
16178: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16179: find out it does not work in some platform. */
16180: #ifndef LT_DLLAZY_OR_NOW
16181: # ifdef RTLD_LAZY
16182: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16183: # else
16184: # ifdef DL_LAZY
16185: # define LT_DLLAZY_OR_NOW DL_LAZY
16186: # else
16187: # ifdef RTLD_NOW
16188: # define LT_DLLAZY_OR_NOW RTLD_NOW
16189: # else
16190: # ifdef DL_NOW
16191: # define LT_DLLAZY_OR_NOW DL_NOW
16192: # else
16193: # define LT_DLLAZY_OR_NOW 0
16194: # endif
16195: # endif
16196: # endif
16197: # endif
16198: #endif
16199:
16200: /* When -fvisbility=hidden is used, assume the code has been annotated
16201: correspondingly for the symbols needed. */
16202: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16203: int fnord () __attribute__((visibility("default")));
16204: #endif
16205:
16206: int fnord () { return 42; }
16207: int main ()
16208: {
16209: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16210: int status = $lt_dlunknown;
16211:
16212: if (self)
16213: {
16214: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16215: else
16216: {
16217: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16218: else puts (dlerror ());
16219: }
16220: /* dlclose (self); */
16221: }
16222: else
16223: puts (dlerror ());
16224:
16225: return status;
16226: }
16227: _LT_EOF
1.11 moko 16228: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 16229: (eval $ac_link) 2>&5
16230: ac_status=$?
1.11 moko 16231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 16233: (./conftest; exit; ) >&5 2>/dev/null
16234: lt_status=$?
16235: case x$lt_status in
16236: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16237: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16238: x$lt_dlunknown|x*) ;;
16239: esac
16240: else :
16241: # compilation failed
16242:
16243: fi
16244: fi
16245: rm -fr conftest*
16246:
16247: LIBS="$save_LIBS"
16248:
16249: fi
1.11 moko 16250: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16251: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
1.8 moko 16252: fi
16253: fi
16254:
16255: if test x"$libltdl_cv_need_uscore" = xyes; then
16256:
1.11 moko 16257: cat >>confdefs.h <<\_ACEOF
16258: #define NEED_USCORE 1
16259: _ACEOF
1.8 moko 16260:
16261: fi
16262:
1.11 moko 16263: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16264: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16265: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16266: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16267: else
16268: # PORTME does your system automatically load deplibs for dlopen?
16269: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16270: # For now, we just catch OSes we know something about -- in the
16271: # future, we'll try test this programmatically.
16272: lt_cv_sys_dlopen_deplibs=unknown
16273: case $host_os in
16274: aix3*|aix4.1.*|aix4.2.*)
16275: # Unknown whether this is true for these versions of AIX, but
16276: # we want this `case' here to explicitly catch those versions.
16277: lt_cv_sys_dlopen_deplibs=unknown
16278: ;;
16279: aix[4-9]*)
16280: lt_cv_sys_dlopen_deplibs=yes
16281: ;;
16282: amigaos*)
16283: case $host_cpu in
16284: powerpc)
16285: lt_cv_sys_dlopen_deplibs=no
16286: ;;
16287: esac
16288: ;;
16289: darwin*)
16290: # Assuming the user has installed a libdl from somewhere, this is true
16291: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16292: lt_cv_sys_dlopen_deplibs=yes
16293: ;;
16294: freebsd* | dragonfly*)
16295: lt_cv_sys_dlopen_deplibs=yes
16296: ;;
16297: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16298: # GNU and its variants, using gnu ld.so (Glibc)
16299: lt_cv_sys_dlopen_deplibs=yes
16300: ;;
16301: hpux10*|hpux11*)
16302: lt_cv_sys_dlopen_deplibs=yes
16303: ;;
16304: interix*)
16305: lt_cv_sys_dlopen_deplibs=yes
16306: ;;
16307: irix[12345]*|irix6.[01]*)
16308: # Catch all versions of IRIX before 6.2, and indicate that we don't
16309: # know how it worked for any of those versions.
16310: lt_cv_sys_dlopen_deplibs=unknown
16311: ;;
16312: irix*)
16313: # The case above catches anything before 6.2, and it's known that
16314: # at 6.2 and later dlopen does load deplibs.
16315: lt_cv_sys_dlopen_deplibs=yes
16316: ;;
16317: netbsd*)
16318: lt_cv_sys_dlopen_deplibs=yes
16319: ;;
16320: openbsd*)
16321: lt_cv_sys_dlopen_deplibs=yes
16322: ;;
16323: osf[1234]*)
16324: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16325: # it did *not* use an RPATH in a shared library to find objects the
16326: # library depends on, so we explicitly say `no'.
16327: lt_cv_sys_dlopen_deplibs=no
16328: ;;
16329: osf5.0|osf5.0a|osf5.1)
16330: # dlopen *does* load deplibs and with the right loader patch applied
16331: # it even uses RPATH in a shared library to search for shared objects
16332: # that the library depends on, but there's no easy way to know if that
16333: # patch is installed. Since this is the case, all we can really
16334: # say is unknown -- it depends on the patch being installed. If
16335: # it is, this changes to `yes'. Without it, it would be `no'.
16336: lt_cv_sys_dlopen_deplibs=unknown
16337: ;;
16338: osf*)
16339: # the two cases above should catch all versions of osf <= 5.1. Read
16340: # the comments above for what we know about them.
16341: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16342: # is used to find them so we can finally say `yes'.
16343: lt_cv_sys_dlopen_deplibs=yes
16344: ;;
16345: qnx*)
16346: lt_cv_sys_dlopen_deplibs=yes
16347: ;;
16348: solaris*)
16349: lt_cv_sys_dlopen_deplibs=yes
16350: ;;
16351: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16352: libltdl_cv_sys_dlopen_deplibs=yes
16353: ;;
16354: esac
16355:
16356: fi
1.11 moko 16357: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16358: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
1.8 moko 16359: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16360:
1.11 moko 16361: cat >>confdefs.h <<\_ACEOF
16362: #define LTDL_DLOPEN_DEPLIBS 1
16363: _ACEOF
1.8 moko 16364:
16365: fi
16366:
16367: :
16368:
1.11 moko 16369:
1.8 moko 16370: for ac_header in argz.h
1.11 moko 16371: do
16372: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16373: echo "$as_me:$LINENO: checking for $ac_header" >&5
16374: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16375: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16376: echo $ECHO_N "(cached) $ECHO_C" >&6
16377: else
16378: cat >conftest.$ac_ext <<_ACEOF
16379: /* confdefs.h. */
16380: _ACEOF
16381: cat confdefs.h >>conftest.$ac_ext
16382: cat >>conftest.$ac_ext <<_ACEOF
16383: /* end confdefs.h. */
16384: $ac_includes_default
16385:
16386: #include <$ac_header>
16387: _ACEOF
16388: rm -f conftest.$ac_objext
16389: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16390: (eval $ac_compile) 2>conftest.er1
16391: ac_status=$?
16392: grep -v '^ *+' conftest.er1 >conftest.err
16393: rm -f conftest.er1
16394: cat conftest.err >&5
16395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396: (exit $ac_status); } &&
16397: { ac_try='test -z "$ac_c_werror_flag"
16398: || test ! -s conftest.err'
16399: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400: (eval $ac_try) 2>&5
16401: ac_status=$?
16402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403: (exit $ac_status); }; } &&
16404: { ac_try='test -s conftest.$ac_objext'
16405: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406: (eval $ac_try) 2>&5
16407: ac_status=$?
16408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409: (exit $ac_status); }; }; then
16410: eval "$as_ac_Header=yes"
16411: else
16412: echo "$as_me: failed program was:" >&5
16413: sed 's/^/| /' conftest.$ac_ext >&5
16414:
16415: eval "$as_ac_Header=no"
16416: fi
16417: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418: fi
16419: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16420: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16421: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 16422: cat >>confdefs.h <<_ACEOF
1.11 moko 16423: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16424: _ACEOF
16425:
16426: fi
16427:
16428: done
16429:
16430:
1.11 moko 16431: echo "$as_me:$LINENO: checking for error_t" >&5
16432: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16433: if test "${ac_cv_type_error_t+set}" = set; then
16434: echo $ECHO_N "(cached) $ECHO_C" >&6
16435: else
16436: cat >conftest.$ac_ext <<_ACEOF
16437: /* confdefs.h. */
16438: _ACEOF
16439: cat confdefs.h >>conftest.$ac_ext
16440: cat >>conftest.$ac_ext <<_ACEOF
16441: /* end confdefs.h. */
16442: #if defined(HAVE_ARGZ_H)
1.8 moko 16443: # include <argz.h>
16444: #endif
1.11 moko 16445:
16446: int
16447: main ()
16448: {
16449: if ((error_t *) 0)
16450: return 0;
16451: if (sizeof (error_t))
16452: return 0;
16453: ;
16454: return 0;
16455: }
16456: _ACEOF
16457: rm -f conftest.$ac_objext
16458: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16459: (eval $ac_compile) 2>conftest.er1
16460: ac_status=$?
16461: grep -v '^ *+' conftest.er1 >conftest.err
16462: rm -f conftest.er1
16463: cat conftest.err >&5
16464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465: (exit $ac_status); } &&
16466: { ac_try='test -z "$ac_c_werror_flag"
16467: || test ! -s conftest.err'
16468: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469: (eval $ac_try) 2>&5
16470: ac_status=$?
16471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472: (exit $ac_status); }; } &&
16473: { ac_try='test -s conftest.$ac_objext'
16474: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475: (eval $ac_try) 2>&5
16476: ac_status=$?
16477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478: (exit $ac_status); }; }; then
16479: ac_cv_type_error_t=yes
16480: else
16481: echo "$as_me: failed program was:" >&5
16482: sed 's/^/| /' conftest.$ac_ext >&5
16483:
16484: ac_cv_type_error_t=no
16485: fi
16486: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16487: fi
16488: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16489: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16490: if test $ac_cv_type_error_t = yes; then
1.8 moko 16491:
16492: cat >>confdefs.h <<_ACEOF
16493: #define HAVE_ERROR_T 1
16494: _ACEOF
16495:
16496:
16497: else
16498:
1.11 moko 16499: cat >>confdefs.h <<\_ACEOF
16500: #define error_t int
16501: _ACEOF
1.8 moko 16502:
16503:
1.11 moko 16504: cat >>confdefs.h <<\_ACEOF
16505: #define __error_t_defined 1
16506: _ACEOF
1.8 moko 16507:
16508: fi
16509:
16510:
16511: ARGZ_H=
1.11 moko 16512:
16513:
16514:
16515:
16516:
16517:
16518:
1.8 moko 16519: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16520: argz_next argz_stringify
1.11 moko 16521: do
16522: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16523: echo "$as_me:$LINENO: checking for $ac_func" >&5
16524: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16525: if eval "test \"\${$as_ac_var+set}\" = set"; then
16526: echo $ECHO_N "(cached) $ECHO_C" >&6
16527: else
16528: cat >conftest.$ac_ext <<_ACEOF
16529: /* confdefs.h. */
16530: _ACEOF
16531: cat confdefs.h >>conftest.$ac_ext
16532: cat >>conftest.$ac_ext <<_ACEOF
16533: /* end confdefs.h. */
16534: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16535: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16536: #define $ac_func innocuous_$ac_func
16537:
16538: /* System header to define __stub macros and hopefully few prototypes,
16539: which can conflict with char $ac_func (); below.
16540: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16541: <limits.h> exists even on freestanding compilers. */
16542:
16543: #ifdef __STDC__
16544: # include <limits.h>
16545: #else
16546: # include <assert.h>
16547: #endif
16548:
16549: #undef $ac_func
16550:
16551: /* Override any gcc2 internal prototype to avoid an error. */
16552: #ifdef __cplusplus
16553: extern "C"
16554: {
16555: #endif
16556: /* We use char because int might match the return type of a gcc2
16557: builtin and then its argument prototype would still apply. */
16558: char $ac_func ();
16559: /* The GNU C library defines this for functions which it implements
16560: to always fail with ENOSYS. Some functions are actually named
16561: something starting with __ and the normal name is an alias. */
16562: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16563: choke me
16564: #else
16565: char (*f) () = $ac_func;
16566: #endif
16567: #ifdef __cplusplus
16568: }
16569: #endif
16570:
16571: int
16572: main ()
16573: {
16574: return f != $ac_func;
16575: ;
16576: return 0;
16577: }
16578: _ACEOF
16579: rm -f conftest.$ac_objext conftest$ac_exeext
16580: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16581: (eval $ac_link) 2>conftest.er1
16582: ac_status=$?
16583: grep -v '^ *+' conftest.er1 >conftest.err
16584: rm -f conftest.er1
16585: cat conftest.err >&5
16586: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587: (exit $ac_status); } &&
16588: { ac_try='test -z "$ac_c_werror_flag"
16589: || test ! -s conftest.err'
16590: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591: (eval $ac_try) 2>&5
16592: ac_status=$?
16593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594: (exit $ac_status); }; } &&
16595: { ac_try='test -s conftest$ac_exeext'
16596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597: (eval $ac_try) 2>&5
16598: ac_status=$?
16599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600: (exit $ac_status); }; }; then
16601: eval "$as_ac_var=yes"
16602: else
16603: echo "$as_me: failed program was:" >&5
16604: sed 's/^/| /' conftest.$ac_ext >&5
16605:
16606: eval "$as_ac_var=no"
16607: fi
16608: rm -f conftest.err conftest.$ac_objext \
16609: conftest$ac_exeext conftest.$ac_ext
16610: fi
16611: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16612: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16613: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 16614: cat >>confdefs.h <<_ACEOF
1.11 moko 16615: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16616: _ACEOF
16617:
16618: else
16619: ARGZ_H=argz.h;
16620:
16621: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16622:
16623: fi
16624: done
16625:
16626:
1.11 moko 16627: if test -z "$ARGZ_H"; then
16628: echo "$as_me:$LINENO: checking if argz actually works" >&5
16629: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16630: if test "${lt_cv_sys_argz_works+set}" = set; then
16631: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16632: else
16633: case $host_os in #(
16634: *cygwin*)
16635: lt_cv_sys_argz_works=no
16636: if test "$cross_compiling" != no; then
16637: lt_cv_sys_argz_works="guessing no"
16638: else
16639: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16640: save_IFS=$IFS
16641: IFS=-.
16642: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16643: IFS=$save_IFS
16644: lt_os_major=${2-0}
16645: lt_os_minor=${3-0}
16646: lt_os_micro=${4-0}
16647: if test "$lt_os_major" -gt 1 \
16648: || { test "$lt_os_major" -eq 1 \
16649: && { test "$lt_os_minor" -gt 5 \
16650: || { test "$lt_os_minor" -eq 5 \
16651: && test "$lt_os_micro" -gt 24; }; }; }; then
16652: lt_cv_sys_argz_works=yes
16653: fi
16654: fi
16655: ;; #(
16656: *) lt_cv_sys_argz_works=yes ;;
16657: esac
16658: fi
1.11 moko 16659: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16660: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16661: if test "$lt_cv_sys_argz_works" = yes; then
1.8 moko 16662:
1.11 moko 16663: cat >>confdefs.h <<\_ACEOF
16664: #define HAVE_WORKING_ARGZ 1
16665: _ACEOF
1.8 moko 16666:
16667: else
16668: ARGZ_H=argz.h
16669:
16670:
16671: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16672:
16673: fi
1.11 moko 16674:
1.8 moko 16675: fi
16676:
16677:
16678:
1.11 moko 16679:
16680: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16681: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16682: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16683: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16684: else
16685: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16686: libltdl_cv_preloaded_symbols=yes
16687: else
16688: libltdl_cv_preloaded_symbols=no
16689: fi
16690:
16691: fi
1.11 moko 16692: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16693: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
1.8 moko 16694: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16695:
1.11 moko 16696: cat >>confdefs.h <<\_ACEOF
16697: #define HAVE_PRELOADED_SYMBOLS 1
16698: _ACEOF
1.8 moko 16699:
16700: fi
16701:
16702: # Set options
16703:
16704:
16705:
16706:
16707:
16708:
16709:
16710:
16711:
16712:
16713:
16714:
1.11 moko 16715: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16716: if test "${with_included_ltdl+set}" = set; then
16717: withval="$with_included_ltdl"
1.8 moko 16718:
1.11 moko 16719: fi;
1.8 moko 16720:
16721: if test "x$with_included_ltdl" != xyes; then
16722: # We are not being forced to use the included libltdl sources, so
16723: # decide whether there is a useful installed version we can use.
1.11 moko 16724: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16725: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16726: if test "${ac_cv_header_ltdl_h+set}" = set; then
16727: echo $ECHO_N "(cached) $ECHO_C" >&6
16728: else
16729: cat >conftest.$ac_ext <<_ACEOF
16730: /* confdefs.h. */
16731: _ACEOF
16732: cat confdefs.h >>conftest.$ac_ext
16733: cat >>conftest.$ac_ext <<_ACEOF
16734: /* end confdefs.h. */
16735: $ac_includes_default
16736:
16737:
16738: #include <ltdl.h>
16739: _ACEOF
16740: rm -f conftest.$ac_objext
16741: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742: (eval $ac_compile) 2>conftest.er1
16743: ac_status=$?
16744: grep -v '^ *+' conftest.er1 >conftest.err
16745: rm -f conftest.er1
16746: cat conftest.err >&5
16747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748: (exit $ac_status); } &&
16749: { ac_try='test -z "$ac_c_werror_flag"
16750: || test ! -s conftest.err'
16751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752: (eval $ac_try) 2>&5
16753: ac_status=$?
16754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755: (exit $ac_status); }; } &&
16756: { ac_try='test -s conftest.$ac_objext'
16757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758: (eval $ac_try) 2>&5
16759: ac_status=$?
16760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761: (exit $ac_status); }; }; then
16762: ac_cv_header_ltdl_h=yes
16763: else
16764: echo "$as_me: failed program was:" >&5
16765: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 16766:
1.11 moko 16767: ac_cv_header_ltdl_h=no
16768: fi
16769: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16770: fi
16771: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16772: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16773: if test $ac_cv_header_ltdl_h = yes; then
16774: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16775: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16776: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16777: echo $ECHO_N "(cached) $ECHO_C" >&6
16778: else
16779: cat >conftest.$ac_ext <<_ACEOF
16780: /* confdefs.h. */
16781: _ACEOF
16782: cat confdefs.h >>conftest.$ac_ext
16783: cat >>conftest.$ac_ext <<_ACEOF
16784: /* end confdefs.h. */
16785: $ac_includes_default
1.8 moko 16786: #include <ltdl.h>
1.11 moko 16787:
16788: int
16789: main ()
16790: {
16791: #ifndef lt_dlinterface_register
16792: char *p = (char *) lt_dlinterface_register;
16793: #endif
16794:
16795: ;
16796: return 0;
16797: }
16798: _ACEOF
16799: rm -f conftest.$ac_objext
16800: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16801: (eval $ac_compile) 2>conftest.er1
16802: ac_status=$?
16803: grep -v '^ *+' conftest.er1 >conftest.err
16804: rm -f conftest.er1
16805: cat conftest.err >&5
16806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807: (exit $ac_status); } &&
16808: { ac_try='test -z "$ac_c_werror_flag"
16809: || test ! -s conftest.err'
16810: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811: (eval $ac_try) 2>&5
16812: ac_status=$?
16813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814: (exit $ac_status); }; } &&
16815: { ac_try='test -s conftest.$ac_objext'
16816: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817: (eval $ac_try) 2>&5
16818: ac_status=$?
16819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820: (exit $ac_status); }; }; then
16821: ac_cv_have_decl_lt_dlinterface_register=yes
16822: else
16823: echo "$as_me: failed program was:" >&5
16824: sed 's/^/| /' conftest.$ac_ext >&5
16825:
16826: ac_cv_have_decl_lt_dlinterface_register=no
16827: fi
16828: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16829: fi
16830: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16831: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16832: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16833: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16834: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16835: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16836: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16837: else
16838: ac_check_lib_save_LIBS=$LIBS
16839: LIBS="-lltdl $LIBS"
1.11 moko 16840: cat >conftest.$ac_ext <<_ACEOF
16841: /* confdefs.h. */
16842: _ACEOF
16843: cat confdefs.h >>conftest.$ac_ext
16844: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16845: /* end confdefs.h. */
16846:
1.11 moko 16847: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16848: #ifdef __cplusplus
16849: extern "C"
16850: #endif
1.11 moko 16851: /* We use char because int might match the return type of a gcc2
16852: builtin and then its argument prototype would still apply. */
1.8 moko 16853: char lt_dladvise_preload ();
16854: int
16855: main ()
16856: {
1.11 moko 16857: lt_dladvise_preload ();
1.8 moko 16858: ;
16859: return 0;
16860: }
16861: _ACEOF
1.11 moko 16862: rm -f conftest.$ac_objext conftest$ac_exeext
16863: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864: (eval $ac_link) 2>conftest.er1
16865: ac_status=$?
16866: grep -v '^ *+' conftest.er1 >conftest.err
16867: rm -f conftest.er1
16868: cat conftest.err >&5
16869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870: (exit $ac_status); } &&
16871: { ac_try='test -z "$ac_c_werror_flag"
16872: || test ! -s conftest.err'
16873: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874: (eval $ac_try) 2>&5
16875: ac_status=$?
16876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877: (exit $ac_status); }; } &&
16878: { ac_try='test -s conftest$ac_exeext'
16879: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880: (eval $ac_try) 2>&5
16881: ac_status=$?
16882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883: (exit $ac_status); }; }; then
1.8 moko 16884: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16885: else
1.11 moko 16886: echo "$as_me: failed program was:" >&5
16887: sed 's/^/| /' conftest.$ac_ext >&5
16888:
16889: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16890: fi
1.11 moko 16891: rm -f conftest.err conftest.$ac_objext \
16892: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16893: LIBS=$ac_check_lib_save_LIBS
16894: fi
1.11 moko 16895: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16896: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16897: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
1.8 moko 16898: with_included_ltdl=no
16899: else
16900: with_included_ltdl=yes
16901: fi
16902:
16903: else
16904: with_included_ltdl=yes
16905: fi
16906:
16907: else
16908: with_included_ltdl=yes
16909: fi
16910:
16911:
16912: fi
16913:
16914:
16915:
16916:
1.11 moko 16917: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16918: if test "${with_ltdl_include+set}" = set; then
16919: withval="$with_ltdl_include"
1.8 moko 16920:
1.11 moko 16921: fi;
1.8 moko 16922:
16923: if test -n "$with_ltdl_include"; then
16924: if test -f "$with_ltdl_include/ltdl.h"; then :
16925: else
1.11 moko 16926: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16927: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16928: { (exit 1); exit 1; }; }
1.8 moko 16929: fi
16930: else
16931: with_ltdl_include=no
16932: fi
16933:
16934:
1.11 moko 16935: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16936: if test "${with_ltdl_lib+set}" = set; then
16937: withval="$with_ltdl_lib"
1.8 moko 16938:
1.11 moko 16939: fi;
1.8 moko 16940:
16941: if test -n "$with_ltdl_lib"; then
16942: if test -f "$with_ltdl_lib/libltdl.la"; then :
16943: else
1.11 moko 16944: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16945: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16946: { (exit 1); exit 1; }; }
1.8 moko 16947: fi
16948: else
16949: with_ltdl_lib=no
16950: fi
16951:
16952: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16953: ,yes,no,no,)
16954: case $enable_ltdl_convenience in
1.11 moko 16955: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16956: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16957: { (exit 1); exit 1; }; } ;;
1.8 moko 16958: "") enable_ltdl_convenience=yes
16959: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16960: esac
1.11 moko 16961: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 16962: LTDLDEPS=$LIBLTDL
16963: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16964:
16965:
16966:
16967:
16968:
16969: # For backwards non-gettext consistent compatibility...
16970: INCLTDL="$LTDLINCL"
16971:
16972:
16973: ;;
16974: ,no,no,no,)
16975: # If the included ltdl is not to be used, then use the
16976: # preinstalled libltdl we found.
16977:
1.11 moko 16978: cat >>confdefs.h <<\_ACEOF
16979: #define HAVE_LTDL 1
16980: _ACEOF
1.8 moko 16981:
16982: LIBLTDL=-lltdl
16983: LTDLDEPS=
16984: LTDLINCL=
16985: ;;
16986: ,no*,no,*)
1.11 moko 16987: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16988: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16989: { (exit 1); exit 1; }; }
1.8 moko 16990: ;;
16991: *) with_included_ltdl=no
16992: LIBLTDL="-L$with_ltdl_lib -lltdl"
16993: LTDLDEPS=
16994: LTDLINCL="-I$with_ltdl_include"
16995: ;;
16996: esac
16997: INCLTDL="$LTDLINCL"
16998:
16999: # Report our decision...
1.11 moko 17000: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17001: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17002: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17003: echo "${ECHO_T}$LTDLINCL" >&6
17004: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17005: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17006: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17007: echo "${ECHO_T}$LIBLTDL" >&6
1.8 moko 17008:
17009:
17010:
1.11 moko 17011: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17012: if test "${enable_ltdl_install+set}" = set; then
17013: enableval="$enable_ltdl_install"
1.8 moko 17014:
1.11 moko 17015: fi;
1.8 moko 17016:
17017: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17018: *yes*) ;;
17019: *) enable_ltdl_convenience=yes ;;
17020: esac
17021:
17022:
17023:
17024: if test x"${enable_ltdl_install-no}" != xno; then
17025: INSTALL_LTDL_TRUE=
17026: INSTALL_LTDL_FALSE='#'
17027: else
17028: INSTALL_LTDL_TRUE='#'
17029: INSTALL_LTDL_FALSE=
17030: fi
17031:
17032:
17033:
17034: if test x"${enable_ltdl_convenience-no}" != xno; then
17035: CONVENIENCE_LTDL_TRUE=
17036: CONVENIENCE_LTDL_FALSE='#'
17037: else
17038: CONVENIENCE_LTDL_TRUE='#'
17039: CONVENIENCE_LTDL_FALSE=
17040: fi
17041:
17042:
17043:
1.11 moko 17044:
17045:
17046: subdirs="$subdirs libltdl"
1.8 moko 17047:
17048:
17049:
17050:
17051: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17052: # the user used. This is so that ltdl.h can pick up the parent projects
17053: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17054: # definitions required by ltdl.c.
17055: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17056:
17057:
17058:
1.10 moko 17059:
1.8 moko 17060:
17061:
17062:
1.11 moko 17063:
17064:
17065: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17066: do
17067: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068: echo "$as_me:$LINENO: checking for $ac_header" >&5
17069: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17070: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17071: echo $ECHO_N "(cached) $ECHO_C" >&6
17072: else
17073: cat >conftest.$ac_ext <<_ACEOF
17074: /* confdefs.h. */
17075: _ACEOF
17076: cat confdefs.h >>conftest.$ac_ext
17077: cat >>conftest.$ac_ext <<_ACEOF
17078: /* end confdefs.h. */
17079: $ac_includes_default
17080:
17081: #include <$ac_header>
17082: _ACEOF
17083: rm -f conftest.$ac_objext
17084: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17085: (eval $ac_compile) 2>conftest.er1
17086: ac_status=$?
17087: grep -v '^ *+' conftest.er1 >conftest.err
17088: rm -f conftest.er1
17089: cat conftest.err >&5
17090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091: (exit $ac_status); } &&
17092: { ac_try='test -z "$ac_c_werror_flag"
17093: || test ! -s conftest.err'
17094: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095: (eval $ac_try) 2>&5
17096: ac_status=$?
17097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098: (exit $ac_status); }; } &&
17099: { ac_try='test -s conftest.$ac_objext'
17100: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101: (eval $ac_try) 2>&5
17102: ac_status=$?
17103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104: (exit $ac_status); }; }; then
17105: eval "$as_ac_Header=yes"
17106: else
17107: echo "$as_me: failed program was:" >&5
17108: sed 's/^/| /' conftest.$ac_ext >&5
17109:
17110: eval "$as_ac_Header=no"
17111: fi
17112: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17113: fi
17114: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17115: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17116: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17117: cat >>confdefs.h <<_ACEOF
17118: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17119: _ACEOF
17120:
17121: fi
17122:
17123: done
17124:
17125:
17126:
17127:
17128:
17129: for ac_func in closedir opendir readdir
17130: do
17131: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17132: echo "$as_me:$LINENO: checking for $ac_func" >&5
17133: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17134: if eval "test \"\${$as_ac_var+set}\" = set"; then
17135: echo $ECHO_N "(cached) $ECHO_C" >&6
17136: else
17137: cat >conftest.$ac_ext <<_ACEOF
17138: /* confdefs.h. */
17139: _ACEOF
17140: cat confdefs.h >>conftest.$ac_ext
17141: cat >>conftest.$ac_ext <<_ACEOF
17142: /* end confdefs.h. */
17143: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17144: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17145: #define $ac_func innocuous_$ac_func
17146:
17147: /* System header to define __stub macros and hopefully few prototypes,
17148: which can conflict with char $ac_func (); below.
17149: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17150: <limits.h> exists even on freestanding compilers. */
17151:
17152: #ifdef __STDC__
17153: # include <limits.h>
17154: #else
17155: # include <assert.h>
17156: #endif
17157:
17158: #undef $ac_func
17159:
17160: /* Override any gcc2 internal prototype to avoid an error. */
17161: #ifdef __cplusplus
17162: extern "C"
17163: {
17164: #endif
17165: /* We use char because int might match the return type of a gcc2
17166: builtin and then its argument prototype would still apply. */
17167: char $ac_func ();
17168: /* The GNU C library defines this for functions which it implements
17169: to always fail with ENOSYS. Some functions are actually named
17170: something starting with __ and the normal name is an alias. */
17171: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17172: choke me
17173: #else
17174: char (*f) () = $ac_func;
17175: #endif
17176: #ifdef __cplusplus
17177: }
17178: #endif
17179:
17180: int
17181: main ()
17182: {
17183: return f != $ac_func;
17184: ;
17185: return 0;
17186: }
17187: _ACEOF
17188: rm -f conftest.$ac_objext conftest$ac_exeext
17189: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190: (eval $ac_link) 2>conftest.er1
17191: ac_status=$?
17192: grep -v '^ *+' conftest.er1 >conftest.err
17193: rm -f conftest.er1
17194: cat conftest.err >&5
17195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196: (exit $ac_status); } &&
17197: { ac_try='test -z "$ac_c_werror_flag"
17198: || test ! -s conftest.err'
17199: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200: (eval $ac_try) 2>&5
17201: ac_status=$?
17202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203: (exit $ac_status); }; } &&
17204: { ac_try='test -s conftest$ac_exeext'
17205: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206: (eval $ac_try) 2>&5
17207: ac_status=$?
17208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209: (exit $ac_status); }; }; then
17210: eval "$as_ac_var=yes"
17211: else
17212: echo "$as_me: failed program was:" >&5
17213: sed 's/^/| /' conftest.$ac_ext >&5
17214:
17215: eval "$as_ac_var=no"
17216: fi
17217: rm -f conftest.err conftest.$ac_objext \
17218: conftest$ac_exeext conftest.$ac_ext
17219: fi
17220: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17221: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17222: if test `eval echo '${'$as_ac_var'}'` = yes; then
17223: cat >>confdefs.h <<_ACEOF
17224: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17225: _ACEOF
1.8 moko 17226:
1.10 moko 17227: else
1.8 moko 17228:
17229:
1.10 moko 17230: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 17231:
1.10 moko 17232: fi
1.8 moko 17233: done
17234:
1.11 moko 17235:
17236:
1.8 moko 17237: for ac_func in strlcat strlcpy
1.11 moko 17238: do
17239: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17240: echo "$as_me:$LINENO: checking for $ac_func" >&5
17241: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17242: if eval "test \"\${$as_ac_var+set}\" = set"; then
17243: echo $ECHO_N "(cached) $ECHO_C" >&6
17244: else
17245: cat >conftest.$ac_ext <<_ACEOF
17246: /* confdefs.h. */
17247: _ACEOF
17248: cat confdefs.h >>conftest.$ac_ext
17249: cat >>conftest.$ac_ext <<_ACEOF
17250: /* end confdefs.h. */
17251: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17252: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17253: #define $ac_func innocuous_$ac_func
17254:
17255: /* System header to define __stub macros and hopefully few prototypes,
17256: which can conflict with char $ac_func (); below.
17257: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17258: <limits.h> exists even on freestanding compilers. */
17259:
17260: #ifdef __STDC__
17261: # include <limits.h>
17262: #else
17263: # include <assert.h>
17264: #endif
17265:
17266: #undef $ac_func
17267:
17268: /* Override any gcc2 internal prototype to avoid an error. */
17269: #ifdef __cplusplus
17270: extern "C"
17271: {
17272: #endif
17273: /* We use char because int might match the return type of a gcc2
17274: builtin and then its argument prototype would still apply. */
17275: char $ac_func ();
17276: /* The GNU C library defines this for functions which it implements
17277: to always fail with ENOSYS. Some functions are actually named
17278: something starting with __ and the normal name is an alias. */
17279: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17280: choke me
17281: #else
17282: char (*f) () = $ac_func;
17283: #endif
17284: #ifdef __cplusplus
17285: }
17286: #endif
17287:
17288: int
17289: main ()
17290: {
17291: return f != $ac_func;
17292: ;
17293: return 0;
17294: }
17295: _ACEOF
17296: rm -f conftest.$ac_objext conftest$ac_exeext
17297: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298: (eval $ac_link) 2>conftest.er1
17299: ac_status=$?
17300: grep -v '^ *+' conftest.er1 >conftest.err
17301: rm -f conftest.er1
17302: cat conftest.err >&5
17303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304: (exit $ac_status); } &&
17305: { ac_try='test -z "$ac_c_werror_flag"
17306: || test ! -s conftest.err'
17307: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308: (eval $ac_try) 2>&5
17309: ac_status=$?
17310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311: (exit $ac_status); }; } &&
17312: { ac_try='test -s conftest$ac_exeext'
17313: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314: (eval $ac_try) 2>&5
17315: ac_status=$?
17316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317: (exit $ac_status); }; }; then
17318: eval "$as_ac_var=yes"
17319: else
17320: echo "$as_me: failed program was:" >&5
17321: sed 's/^/| /' conftest.$ac_ext >&5
17322:
17323: eval "$as_ac_var=no"
17324: fi
17325: rm -f conftest.err conftest.$ac_objext \
17326: conftest$ac_exeext conftest.$ac_ext
17327: fi
17328: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17329: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17330: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 17331: cat >>confdefs.h <<_ACEOF
1.11 moko 17332: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 17333: _ACEOF
17334:
17335: else
17336:
17337:
17338: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17339:
17340: fi
17341: done
17342:
17343:
17344:
17345: cat >>confdefs.h <<_ACEOF
17346: #define LT_LIBEXT "$libext"
17347: _ACEOF
17348:
17349:
17350: name=
17351: eval "lt_libprefix=\"$libname_spec\""
17352:
17353: cat >>confdefs.h <<_ACEOF
17354: #define LT_LIBPREFIX "$lt_libprefix"
17355: _ACEOF
17356:
17357:
17358: name=ltdl
17359: eval "LTDLOPEN=\"$libname_spec\""
17360:
17361:
17362:
17363:
17364:
17365:
17366:
17367:
17368: # Only expand once:
17369:
17370:
17371:
1.13 moko 17372: # Check whether --enable-static or --disable-static was given.
17373: if test "${enable_static+set}" = set; then
17374: enableval="$enable_static"
17375: p=${PACKAGE-default}
17376: case $enableval in
17377: yes) enable_static=yes ;;
17378: no) enable_static=no ;;
17379: *)
17380: enable_static=no
17381: # Look at the argument we got. We use all the common list separators.
17382: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17383: for pkg in $enableval; do
17384: IFS="$lt_save_ifs"
17385: if test "X$pkg" = "X$p"; then
17386: enable_static=yes
17387: fi
17388: done
17389: IFS="$lt_save_ifs"
17390: ;;
17391: esac
17392: else
17393: enable_static=no
17394: fi;
17395:
17396:
17397:
17398:
17399:
17400:
17401:
1.8 moko 17402:
1.11 moko 17403:
17404:
17405:
17406:
1.8 moko 17407: for ac_header in stdio.h \
17408: stdlib.h \
17409: string.h \
17410: setjmp.h \
17411: ctype.h
17412:
1.11 moko 17413: do
17414: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17415: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17416: echo "$as_me:$LINENO: checking for $ac_header" >&5
17417: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17418: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17419: echo $ECHO_N "(cached) $ECHO_C" >&6
17420: fi
17421: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17422: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17423: else
17424: # Is the header compilable?
17425: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17426: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17427: cat >conftest.$ac_ext <<_ACEOF
17428: /* confdefs.h. */
17429: _ACEOF
17430: cat confdefs.h >>conftest.$ac_ext
17431: cat >>conftest.$ac_ext <<_ACEOF
17432: /* end confdefs.h. */
17433: $ac_includes_default
17434: #include <$ac_header>
17435: _ACEOF
17436: rm -f conftest.$ac_objext
17437: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17438: (eval $ac_compile) 2>conftest.er1
17439: ac_status=$?
17440: grep -v '^ *+' conftest.er1 >conftest.err
17441: rm -f conftest.er1
17442: cat conftest.err >&5
17443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444: (exit $ac_status); } &&
17445: { ac_try='test -z "$ac_c_werror_flag"
17446: || test ! -s conftest.err'
17447: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448: (eval $ac_try) 2>&5
17449: ac_status=$?
17450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451: (exit $ac_status); }; } &&
17452: { ac_try='test -s conftest.$ac_objext'
17453: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454: (eval $ac_try) 2>&5
17455: ac_status=$?
17456: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457: (exit $ac_status); }; }; then
17458: ac_header_compiler=yes
17459: else
17460: echo "$as_me: failed program was:" >&5
17461: sed 's/^/| /' conftest.$ac_ext >&5
17462:
17463: ac_header_compiler=no
17464: fi
17465: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17466: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17467: echo "${ECHO_T}$ac_header_compiler" >&6
17468:
17469: # Is the header present?
17470: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17471: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17472: cat >conftest.$ac_ext <<_ACEOF
17473: /* confdefs.h. */
17474: _ACEOF
17475: cat confdefs.h >>conftest.$ac_ext
17476: cat >>conftest.$ac_ext <<_ACEOF
17477: /* end confdefs.h. */
17478: #include <$ac_header>
17479: _ACEOF
17480: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17481: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17482: ac_status=$?
17483: grep -v '^ *+' conftest.er1 >conftest.err
17484: rm -f conftest.er1
17485: cat conftest.err >&5
17486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487: (exit $ac_status); } >/dev/null; then
17488: if test -s conftest.err; then
17489: ac_cpp_err=$ac_c_preproc_warn_flag
17490: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17491: else
17492: ac_cpp_err=
17493: fi
17494: else
17495: ac_cpp_err=yes
17496: fi
17497: if test -z "$ac_cpp_err"; then
17498: ac_header_preproc=yes
17499: else
17500: echo "$as_me: failed program was:" >&5
17501: sed 's/^/| /' conftest.$ac_ext >&5
17502:
17503: ac_header_preproc=no
17504: fi
17505: rm -f conftest.err conftest.$ac_ext
17506: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17507: echo "${ECHO_T}$ac_header_preproc" >&6
17508:
17509: # So? What about this header?
17510: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17511: yes:no: )
17512: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17513: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17514: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17515: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17516: ac_header_preproc=yes
17517: ;;
17518: no:yes:* )
17519: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17520: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17521: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17522: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17523: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17524: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17525: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17526: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17527: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17528: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17529: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17530: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17531: (
17532: cat <<\_ASBOX
17533: ## ------------------------------------------ ##
1.13 moko 17534: ## Report this to the parser3sqlite.C lists. ##
1.11 moko 17535: ## ------------------------------------------ ##
17536: _ASBOX
17537: ) |
17538: sed "s/^/$as_me: WARNING: /" >&2
17539: ;;
17540: esac
17541: echo "$as_me:$LINENO: checking for $ac_header" >&5
17542: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17543: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17544: echo $ECHO_N "(cached) $ECHO_C" >&6
17545: else
17546: eval "$as_ac_Header=\$ac_header_preproc"
17547: fi
17548: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17549: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17550:
17551: fi
17552: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 17553: cat >>confdefs.h <<_ACEOF
1.11 moko 17554: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 17555: _ACEOF
17556:
17557: fi
17558:
17559: done
17560:
17561:
1.11 moko 17562: echo "$as_me:$LINENO: checking for size_t" >&5
17563: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17564: if test "${ac_cv_type_size_t+set}" = set; then
17565: echo $ECHO_N "(cached) $ECHO_C" >&6
17566: else
17567: cat >conftest.$ac_ext <<_ACEOF
17568: /* confdefs.h. */
17569: _ACEOF
17570: cat confdefs.h >>conftest.$ac_ext
17571: cat >>conftest.$ac_ext <<_ACEOF
17572: /* end confdefs.h. */
17573: $ac_includes_default
17574: int
17575: main ()
17576: {
17577: if ((size_t *) 0)
17578: return 0;
17579: if (sizeof (size_t))
17580: return 0;
17581: ;
17582: return 0;
17583: }
17584: _ACEOF
17585: rm -f conftest.$ac_objext
17586: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587: (eval $ac_compile) 2>conftest.er1
17588: ac_status=$?
17589: grep -v '^ *+' conftest.er1 >conftest.err
17590: rm -f conftest.er1
17591: cat conftest.err >&5
17592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593: (exit $ac_status); } &&
17594: { ac_try='test -z "$ac_c_werror_flag"
17595: || test ! -s conftest.err'
17596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597: (eval $ac_try) 2>&5
17598: ac_status=$?
17599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600: (exit $ac_status); }; } &&
17601: { ac_try='test -s conftest.$ac_objext'
17602: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603: (eval $ac_try) 2>&5
17604: ac_status=$?
17605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606: (exit $ac_status); }; }; then
17607: ac_cv_type_size_t=yes
17608: else
17609: echo "$as_me: failed program was:" >&5
17610: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 17611:
1.11 moko 17612: ac_cv_type_size_t=no
17613: fi
17614: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17615: fi
17616: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17617: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17618: if test $ac_cv_type_size_t = yes; then
17619: :
1.8 moko 17620: else
17621:
17622: cat >>confdefs.h <<_ACEOF
1.11 moko 17623: #define size_t unsigned
1.8 moko 17624: _ACEOF
17625:
17626: fi
17627:
17628:
17629:
1.11 moko 17630: ac_config_files="$ac_config_files Makefile"
1.8 moko 17631: cat >confcache <<\_ACEOF
17632: # This file is a shell script that caches the results of configure
17633: # tests run on this system so they can be shared between configure
17634: # scripts and configure runs, see configure's option --config-cache.
17635: # It is not useful on other systems. If it contains results you don't
17636: # want to keep, you may remove or edit it.
17637: #
17638: # config.status only pays attention to the cache file if you give it
17639: # the --recheck option to rerun configure.
17640: #
17641: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17642: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17643: # following values.
17644:
17645: _ACEOF
17646:
17647: # The following way of writing the cache mishandles newlines in values,
17648: # but we know of no workaround that is simple, portable, and efficient.
1.11 moko 17649: # So, don't put newlines in cache variables' values.
1.8 moko 17650: # Ultrix sh set writes to stderr and can't be redirected directly,
17651: # and sets the high bit in the cache file unless we assign to the vars.
1.11 moko 17652: {
1.8 moko 17653: (set) 2>&1 |
1.11 moko 17654: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17655: *ac_space=\ *)
17656: # `set' does not quote correctly, so add quotes (double-quote
17657: # substitution turns \\\\ into \\, and sed turns \\ into \).
1.8 moko 17658: sed -n \
17659: "s/'/'\\\\''/g;
17660: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.11 moko 17661: ;;
1.8 moko 17662: *)
17663: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.11 moko 17664: sed -n \
17665: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.8 moko 17666: ;;
1.11 moko 17667: esac;
17668: } |
1.8 moko 17669: sed '
17670: t clear
1.11 moko 17671: : clear
1.8 moko 17672: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17673: t end
1.11 moko 17674: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17675: : end' >>confcache
17676: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17677: if test -w $cache_file; then
17678: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1.8 moko 17679: cat confcache >$cache_file
17680: else
1.11 moko 17681: echo "not updating unwritable cache $cache_file"
1.8 moko 17682: fi
17683: fi
17684: rm -f confcache
17685:
17686: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17687: # Let make expand exec_prefix.
17688: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17689:
1.11 moko 17690: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17691: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17692: # trailing colons and then remove the whole line if VPATH becomes empty
17693: # (actually we leave an empty line to preserve line numbers).
17694: if test "x$srcdir" = x.; then
17695: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17696: s/:*\$(srcdir):*/:/;
17697: s/:*\${srcdir}:*/:/;
17698: s/:*@srcdir@:*/:/;
17699: s/^\([^=]*=[ ]*\):*/\1/;
17700: s/:*$//;
17701: s/^[^=]*=[ ]*$//;
17702: }'
17703: fi
17704:
1.8 moko 17705: DEFS=-DHAVE_CONFIG_H
17706:
17707: ac_libobjs=
17708: ac_ltlibobjs=
17709: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17710: # 1. Remove the extension, and $U if already installed.
1.11 moko 17711: ac_i=`echo "$ac_i" |
17712: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17713: # 2. Add them.
17714: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17715: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.8 moko 17716: done
17717: LIBOBJS=$ac_libobjs
17718:
17719: LTLIBOBJS=$ac_ltlibobjs
17720:
17721:
17722: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.11 moko 17723: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17724: Usually this means the macro was only invoked conditionally." >&5
17725: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17726: Usually this means the macro was only invoked conditionally." >&2;}
17727: { (exit 1); exit 1; }; }
1.8 moko 17728: fi
17729: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.11 moko 17730: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17731: Usually this means the macro was only invoked conditionally." >&5
17732: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17733: Usually this means the macro was only invoked conditionally." >&2;}
17734: { (exit 1); exit 1; }; }
1.8 moko 17735: fi
17736: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.11 moko 17737: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17738: Usually this means the macro was only invoked conditionally." >&5
17739: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17740: Usually this means the macro was only invoked conditionally." >&2;}
17741: { (exit 1); exit 1; }; }
1.8 moko 17742: fi
17743: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.11 moko 17744: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17745: Usually this means the macro was only invoked conditionally." >&5
17746: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17747: Usually this means the macro was only invoked conditionally." >&2;}
17748: { (exit 1); exit 1; }; }
1.8 moko 17749: fi
17750: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.11 moko 17751: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17752: Usually this means the macro was only invoked conditionally." >&5
17753: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17754: Usually this means the macro was only invoked conditionally." >&2;}
17755: { (exit 1); exit 1; }; }
1.8 moko 17756: fi
1.11 moko 17757: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
1.8 moko 17758:
17759: _ltdl_libobjs=
17760: _ltdl_ltlibobjs=
17761: if test -n "$_LT_LIBOBJS"; then
17762: # Remove the extension.
17763: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17764: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17765: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17766: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17767: done
17768: fi
17769: ltdl_LIBOBJS=$_ltdl_libobjs
17770:
17771: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17772:
17773:
17774:
17775: : ${CONFIG_STATUS=./config.status}
17776: ac_clean_files_save=$ac_clean_files
17777: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.11 moko 17778: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17779: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17780: cat >$CONFIG_STATUS <<_ACEOF
1.8 moko 17781: #! $SHELL
17782: # Generated by $as_me.
17783: # Run this file to recreate the current configuration.
17784: # Compiler output produced by configure, useful for debugging
17785: # configure, is in config.log if it exists.
17786:
17787: debug=false
17788: ac_cs_recheck=false
17789: ac_cs_silent=false
1.11 moko 17790: SHELL=\${CONFIG_SHELL-$SHELL}
17791: _ACEOF
1.10 moko 17792:
1.11 moko 17793: cat >>$CONFIG_STATUS <<\_ACEOF
17794: ## --------------------- ##
17795: ## M4sh Initialization. ##
17796: ## --------------------- ##
1.8 moko 17797:
1.11 moko 17798: # Be Bourne compatible
17799: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.8 moko 17800: emulate sh
17801: NULLCMD=:
1.11 moko 17802: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.8 moko 17803: # is contrary to our usage. Disable this feature.
17804: alias -g '${1+"$@"}'='"$@"'
1.11 moko 17805: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17806: set -o posix
1.10 moko 17807: fi
1.11 moko 17808: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 17809:
1.11 moko 17810: # Support unset when possible.
17811: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17812: as_unset=unset
17813: else
17814: as_unset=false
1.8 moko 17815: fi
17816:
17817:
1.11 moko 17818: # Work around bugs in pre-3.0 UWIN ksh.
17819: $as_unset ENV MAIL MAILPATH
1.8 moko 17820: PS1='$ '
17821: PS2='> '
17822: PS4='+ '
17823:
17824: # NLS nuisances.
1.11 moko 17825: for as_var in \
17826: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17827: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17828: LC_TELEPHONE LC_TIME
17829: do
17830: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17831: eval $as_var=C; export $as_var
17832: else
17833: $as_unset $as_var
17834: fi
17835: done
1.8 moko 17836:
1.11 moko 17837: # Required to use basename.
17838: if expr a : '\(a\)' >/dev/null 2>&1; then
1.8 moko 17839: as_expr=expr
17840: else
17841: as_expr=false
17842: fi
17843:
1.11 moko 17844: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.8 moko 17845: as_basename=basename
17846: else
17847: as_basename=false
17848: fi
17849:
17850:
1.11 moko 17851: # Name of the executable.
17852: as_me=`$as_basename "$0" ||
1.8 moko 17853: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17854: X"$0" : 'X\(//\)$' \| \
1.11 moko 17855: X"$0" : 'X\(/\)$' \| \
17856: . : '\(.\)' 2>/dev/null ||
17857: echo X/"$0" |
17858: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17859: /^X\/\(\/\/\)$/{ s//\1/; q; }
17860: /^X\/\(\/\).*/{ s//\1/; q; }
17861: s/.*/./; q'`
17862:
1.8 moko 17863:
1.11 moko 17864: # PATH needs CR, and LINENO needs CR and PATH.
1.8 moko 17865: # Avoid depending upon Character Ranges.
17866: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17867: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17868: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17869: as_cr_digits='0123456789'
17870: as_cr_alnum=$as_cr_Letters$as_cr_digits
17871:
1.11 moko 17872: # The user is always right.
17873: if test "${PATH_SEPARATOR+set}" != set; then
17874: echo "#! /bin/sh" >conf$$.sh
17875: echo "exit 0" >>conf$$.sh
17876: chmod +x conf$$.sh
17877: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17878: PATH_SEPARATOR=';'
17879: else
17880: PATH_SEPARATOR=:
17881: fi
17882: rm -f conf$$.sh
17883: fi
17884:
17885:
17886: as_lineno_1=$LINENO
17887: as_lineno_2=$LINENO
17888: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17889: test "x$as_lineno_1" != "x$as_lineno_2" &&
17890: test "x$as_lineno_3" = "x$as_lineno_2" || {
17891: # Find who we are. Look in the path if we contain no path at all
17892: # relative or not.
17893: case $0 in
17894: *[\\/]* ) as_myself=$0 ;;
17895: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17896: for as_dir in $PATH
17897: do
17898: IFS=$as_save_IFS
17899: test -z "$as_dir" && as_dir=.
17900: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17901: done
17902:
17903: ;;
17904: esac
17905: # We did not find ourselves, most probably we were run as `sh COMMAND'
17906: # in which case we are not to be found in the path.
17907: if test "x$as_myself" = x; then
17908: as_myself=$0
17909: fi
17910: if test ! -f "$as_myself"; then
17911: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17912: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17913: { (exit 1); exit 1; }; }
17914: fi
17915: case $CONFIG_SHELL in
17916: '')
17917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17918: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17919: do
17920: IFS=$as_save_IFS
17921: test -z "$as_dir" && as_dir=.
17922: for as_base in sh bash ksh sh5; do
17923: case $as_dir in
17924: /*)
17925: if ("$as_dir/$as_base" -c '
17926: as_lineno_1=$LINENO
17927: as_lineno_2=$LINENO
17928: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17929: test "x$as_lineno_1" != "x$as_lineno_2" &&
17930: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17931: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17932: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17933: CONFIG_SHELL=$as_dir/$as_base
17934: export CONFIG_SHELL
17935: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17936: fi;;
17937: esac
17938: done
17939: done
17940: ;;
17941: esac
17942:
17943: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17944: # uniformly replaced by the line number. The first 'sed' inserts a
17945: # line-number line before each line; the second 'sed' does the real
17946: # work. The second script uses 'N' to pair each line-number line
17947: # with the numbered line, and appends trailing '-' during
17948: # substitution so that $LINENO is not a special case at line end.
17949: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17950: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17951: sed '=' <$as_myself |
17952: sed '
17953: N
17954: s,$,-,
17955: : loop
17956: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17957: t loop
17958: s,-$,,
17959: s,^['$as_cr_digits']*\n,,
17960: ' >$as_me.lineno &&
17961: chmod +x $as_me.lineno ||
17962: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17963: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17964: { (exit 1); exit 1; }; }
17965:
17966: # Don't try to exec as it changes $[0], causing all sort of problems
17967: # (the dirname of $[0] is not the place where we might find the
17968: # original and so on. Autoconf is especially sensible to this).
17969: . ./$as_me.lineno
17970: # Exit status is that of the last command.
17971: exit
17972: }
17973:
17974:
17975: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17976: *c*,-n*) ECHO_N= ECHO_C='
17977: ' ECHO_T=' ' ;;
17978: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17979: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.8 moko 17980: esac
17981:
1.11 moko 17982: if expr a : '\(a\)' >/dev/null 2>&1; then
17983: as_expr=expr
1.8 moko 17984: else
1.11 moko 17985: as_expr=false
1.8 moko 17986: fi
1.11 moko 17987:
17988: rm -f conf$$ conf$$.exe conf$$.file
17989: echo >conf$$.file
17990: if ln -s conf$$.file conf$$ 2>/dev/null; then
17991: # We could just check for DJGPP; but this test a) works b) is more generic
17992: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17993: if test -f conf$$.exe; then
17994: # Don't use ln at all; we don't have any links
17995: as_ln_s='cp -p'
17996: else
1.10 moko 17997: as_ln_s='ln -s'
1.8 moko 17998: fi
1.11 moko 17999: elif ln conf$$.file conf$$ 2>/dev/null; then
18000: as_ln_s=ln
1.8 moko 18001: else
18002: as_ln_s='cp -p'
18003: fi
1.11 moko 18004: rm -f conf$$ conf$$.exe conf$$.file
1.8 moko 18005:
18006: if mkdir -p . 2>/dev/null; then
1.11 moko 18007: as_mkdir_p=:
1.8 moko 18008: else
18009: test -d ./-p && rmdir ./-p
18010: as_mkdir_p=false
18011: fi
18012:
1.11 moko 18013: as_executable_p="test -f"
1.8 moko 18014:
18015: # Sed expression to map a string onto a valid CPP name.
18016: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18017:
18018: # Sed expression to map a string onto a valid variable name.
18019: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18020:
18021:
1.11 moko 18022: # IFS
18023: # We need space, tab and new line, in precisely that order.
18024: as_nl='
18025: '
18026: IFS=" $as_nl"
18027:
18028: # CDPATH.
18029: $as_unset CDPATH
18030:
1.8 moko 18031: exec 6>&1
18032:
1.11 moko 18033: # Open the log real soon, to keep \$[0] and so on meaningful, and to
1.8 moko 18034: # report actual input values of CONFIG_FILES etc. instead of their
1.11 moko 18035: # values after options handling. Logging --version etc. is OK.
18036: exec 5>>config.log
18037: {
18038: echo
18039: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18040: ## Running $as_me. ##
18041: _ASBOX
18042: } >&5
18043: cat >&5 <<_CSEOF
18044:
1.13 moko 18045: This file was extended by parser3sqlite.C $as_me 10.2, which was
1.11 moko 18046: generated by GNU Autoconf 2.59. Invocation command line was
1.8 moko 18047:
18048: CONFIG_FILES = $CONFIG_FILES
18049: CONFIG_HEADERS = $CONFIG_HEADERS
18050: CONFIG_LINKS = $CONFIG_LINKS
18051: CONFIG_COMMANDS = $CONFIG_COMMANDS
18052: $ $0 $@
18053:
1.11 moko 18054: _CSEOF
18055: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18056: echo >&5
1.8 moko 18057: _ACEOF
18058:
1.11 moko 18059: # Files that config.status was made for.
18060: if test -n "$ac_config_files"; then
18061: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18062: fi
1.8 moko 18063:
1.11 moko 18064: if test -n "$ac_config_headers"; then
18065: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18066: fi
1.8 moko 18067:
1.11 moko 18068: if test -n "$ac_config_links"; then
18069: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18070: fi
1.8 moko 18071:
1.11 moko 18072: if test -n "$ac_config_commands"; then
18073: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18074: fi
1.8 moko 18075:
1.11 moko 18076: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18077:
18078: ac_cs_usage="\
1.11 moko 18079: \`$as_me' instantiates files from templates according to the
18080: current configuration.
1.8 moko 18081:
1.11 moko 18082: Usage: $0 [OPTIONS] [FILE]...
1.8 moko 18083:
18084: -h, --help print this help, then exit
1.11 moko 18085: -V, --version print version number, then exit
18086: -q, --quiet do not print progress messages
1.8 moko 18087: -d, --debug don't remove temporary files
18088: --recheck update $as_me by reconfiguring in the same conditions
1.11 moko 18089: --file=FILE[:TEMPLATE]
18090: instantiate the configuration file FILE
18091: --header=FILE[:TEMPLATE]
18092: instantiate the configuration header FILE
1.8 moko 18093:
18094: Configuration files:
18095: $config_files
18096:
18097: Configuration headers:
18098: $config_headers
18099:
18100: Configuration commands:
18101: $config_commands
18102:
1.11 moko 18103: Report bugs to <bug-autoconf@gnu.org>."
18104: _ACEOF
1.10 moko 18105:
1.11 moko 18106: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18107: ac_cs_version="\\
1.13 moko 18108: parser3sqlite.C config.status 10.2
1.11 moko 18109: configured by $0, generated by GNU Autoconf 2.59,
18110: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.8 moko 18111:
1.11 moko 18112: Copyright (C) 2003 Free Software Foundation, Inc.
1.8 moko 18113: This config.status script is free software; the Free Software Foundation
18114: gives unlimited permission to copy, distribute and modify it."
1.11 moko 18115: srcdir=$srcdir
18116: INSTALL="$INSTALL"
1.8 moko 18117: _ACEOF
18118:
1.11 moko 18119: cat >>$CONFIG_STATUS <<\_ACEOF
18120: # If no file are specified by the user, then we need to provide default
18121: # value. By we need to know if files were specified by the user.
1.8 moko 18122: ac_need_defaults=:
18123: while test $# != 0
18124: do
18125: case $1 in
1.11 moko 18126: --*=*)
18127: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18128: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.8 moko 18129: ac_shift=:
18130: ;;
1.11 moko 18131: -*)
1.8 moko 18132: ac_option=$1
18133: ac_optarg=$2
18134: ac_shift=shift
18135: ;;
1.11 moko 18136: *) # This is not an option, so the user has probably given explicit
18137: # arguments.
18138: ac_option=$1
18139: ac_need_defaults=false;;
1.8 moko 18140: esac
18141:
18142: case $ac_option in
18143: # Handling of the options.
1.11 moko 18144: _ACEOF
18145: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18146: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18147: ac_cs_recheck=: ;;
1.11 moko 18148: --version | --vers* | -V )
18149: echo "$ac_cs_version"; exit 0 ;;
18150: --he | --h)
18151: # Conflict between --help and --header
18152: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18153: Try \`$0 --help' for more information." >&5
18154: echo "$as_me: error: ambiguous option: $1
18155: Try \`$0 --help' for more information." >&2;}
18156: { (exit 1); exit 1; }; };;
18157: --help | --hel | -h )
18158: echo "$ac_cs_usage"; exit 0 ;;
18159: --debug | --d* | -d )
1.8 moko 18160: debug=: ;;
18161: --file | --fil | --fi | --f )
18162: $ac_shift
1.11 moko 18163: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.8 moko 18164: ac_need_defaults=false;;
18165: --header | --heade | --head | --hea )
18166: $ac_shift
1.11 moko 18167: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.8 moko 18168: ac_need_defaults=false;;
18169: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18170: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18171: ac_cs_silent=: ;;
18172:
18173: # This is an error.
1.11 moko 18174: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18175: Try \`$0 --help' for more information." >&5
18176: echo "$as_me: error: unrecognized option: $1
18177: Try \`$0 --help' for more information." >&2;}
18178: { (exit 1); exit 1; }; } ;;
1.8 moko 18179:
1.11 moko 18180: *) ac_config_targets="$ac_config_targets $1" ;;
1.8 moko 18181:
18182: esac
18183: shift
18184: done
18185:
18186: ac_configure_extra_args=
18187:
18188: if $ac_cs_silent; then
18189: exec 6>/dev/null
18190: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 moko 18191: fi
18192:
18193: _ACEOF
1.11 moko 18194: cat >>$CONFIG_STATUS <<_ACEOF
1.10 moko 18195: if \$ac_cs_recheck; then
1.11 moko 18196: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18197: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.10 moko 18198: fi
18199:
18200: _ACEOF
1.11 moko 18201:
18202: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18203: #
1.11 moko 18204: # INIT-COMMANDS section.
1.8 moko 18205: #
1.11 moko 18206:
1.8 moko 18207: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18208:
18209:
18210: # The HP-UX ksh and POSIX shell print the target directory to stdout
18211: # if CDPATH is set.
18212: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18213:
18214: sed_quote_subst='$sed_quote_subst'
18215: double_quote_subst='$double_quote_subst'
18216: delay_variable_subst='$delay_variable_subst'
18217: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18218: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.13 moko 18219: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18220: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18221: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.8 moko 18222: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18223: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18224: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18225: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18226: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18227: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18228: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18229: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18230: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18231: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18232: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18233: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18234: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18235: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18236: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18237: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18238: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18239: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18240: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18241: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18242: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18243: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18244: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18245: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18246: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18247: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18248: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18249: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18250: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18251: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18252: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18253: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18254: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18255: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18256: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18257: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18258: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18259: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18260: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18261: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18262: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18263: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18264: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18265: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18266: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18267: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18268: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18269: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18270: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18271: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18272: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18273: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18274: 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"`'
18275: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18276: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18277: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18278: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18279: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18280: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18281: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18282: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18283: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18284: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18285: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18286: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18287: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18288: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18289: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18290: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18291: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18292: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18293: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18294: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18295: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18296: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18297: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18298: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18299: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18300: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18301: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18302: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18303: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18304: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18305: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18306: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18307: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18308: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18309: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18310: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18311: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18312: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18313: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18314: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18315: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18316: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18317: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18318: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18319: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18320: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18321: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18322: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18323: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18324: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18325: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18326: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18327: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18328: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18329: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18330: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18331: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18332: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18333: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18334: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18335: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18336: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18337: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18338: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18339: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18340: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18341: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18342: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18343: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18344: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18345: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18346: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18347: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18348: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18349: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18350: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18351: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18352: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18353: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18354: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18355: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18356: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18357: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18358: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18359: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18360: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18361: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18362: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18363: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18364: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18365: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18366: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18367: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18368: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18369: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18370: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18371: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18372: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18373: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18374: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18375: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18376: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18377: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18378: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18379: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18380: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18381: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18382: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18383: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18384: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18385: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18386: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18387: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18388: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18389: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18390: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18391: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18392: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18393: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18394: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18395: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18396: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18397: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18398: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18399: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18400: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18401: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18402:
18403: LTCC='$LTCC'
18404: LTCFLAGS='$LTCFLAGS'
18405: compiler='$compiler_DEFAULT'
18406:
18407: # A function that is used when there is no print builtin or printf.
18408: func_fallback_echo ()
18409: {
18410: eval 'cat <<_LTECHO_EOF
18411: \$1
18412: _LTECHO_EOF'
18413: }
18414:
18415: # Quote evaled strings.
1.13 moko 18416: for var in AS \
18417: DLLTOOL \
18418: OBJDUMP \
18419: SHELL \
1.8 moko 18420: ECHO \
18421: PATH_SEPARATOR \
18422: SED \
18423: GREP \
18424: EGREP \
18425: FGREP \
18426: LD \
18427: NM \
18428: LN_S \
18429: lt_SP2NL \
18430: lt_NL2SP \
18431: reload_flag \
18432: deplibs_check_method \
18433: file_magic_cmd \
18434: file_magic_glob \
18435: want_nocaseglob \
18436: sharedlib_from_linklib_cmd \
18437: AR \
18438: AR_FLAGS \
18439: archiver_list_spec \
18440: STRIP \
18441: RANLIB \
18442: CC \
18443: CFLAGS \
18444: compiler \
18445: lt_cv_sys_global_symbol_pipe \
18446: lt_cv_sys_global_symbol_to_cdecl \
18447: lt_cv_sys_global_symbol_to_c_name_address \
18448: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18449: nm_file_list_spec \
18450: lt_prog_compiler_no_builtin_flag \
18451: lt_prog_compiler_pic \
18452: lt_prog_compiler_wl \
18453: lt_prog_compiler_static \
18454: lt_cv_prog_compiler_c_o \
18455: need_locks \
18456: MANIFEST_TOOL \
18457: DSYMUTIL \
18458: NMEDIT \
18459: LIPO \
18460: OTOOL \
18461: OTOOL64 \
18462: shrext_cmds \
18463: export_dynamic_flag_spec \
18464: whole_archive_flag_spec \
18465: compiler_needs_object \
18466: with_gnu_ld \
18467: allow_undefined_flag \
18468: no_undefined_flag \
18469: hardcode_libdir_flag_spec \
18470: hardcode_libdir_separator \
18471: exclude_expsyms \
18472: include_expsyms \
18473: file_list_spec \
18474: variables_saved_for_relink \
18475: libname_spec \
18476: library_names_spec \
18477: soname_spec \
18478: install_override_mode \
18479: finish_eval \
18480: old_striplib \
18481: striplib \
18482: compiler_lib_search_dirs \
18483: predep_objects \
18484: postdep_objects \
18485: predeps \
18486: postdeps \
18487: compiler_lib_search_path \
18488: LD_CXX \
18489: reload_flag_CXX \
18490: compiler_CXX \
18491: lt_prog_compiler_no_builtin_flag_CXX \
18492: lt_prog_compiler_pic_CXX \
18493: lt_prog_compiler_wl_CXX \
18494: lt_prog_compiler_static_CXX \
18495: lt_cv_prog_compiler_c_o_CXX \
18496: export_dynamic_flag_spec_CXX \
18497: whole_archive_flag_spec_CXX \
18498: compiler_needs_object_CXX \
18499: with_gnu_ld_CXX \
18500: allow_undefined_flag_CXX \
18501: no_undefined_flag_CXX \
18502: hardcode_libdir_flag_spec_CXX \
18503: hardcode_libdir_separator_CXX \
18504: exclude_expsyms_CXX \
18505: include_expsyms_CXX \
18506: file_list_spec_CXX \
18507: compiler_lib_search_dirs_CXX \
18508: predep_objects_CXX \
18509: postdep_objects_CXX \
18510: predeps_CXX \
18511: postdeps_CXX \
18512: compiler_lib_search_path_CXX; do
18513: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18514: *[\\\\\\\`\\"\\\$]*)
18515: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18516: ;;
18517: *)
18518: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18519: ;;
18520: esac
18521: done
18522:
18523: # Double-quote double-evaled strings.
18524: for var in reload_cmds \
18525: old_postinstall_cmds \
18526: old_postuninstall_cmds \
18527: old_archive_cmds \
18528: extract_expsyms_cmds \
18529: old_archive_from_new_cmds \
18530: old_archive_from_expsyms_cmds \
18531: archive_cmds \
18532: archive_expsym_cmds \
18533: module_cmds \
18534: module_expsym_cmds \
18535: export_symbols_cmds \
18536: prelink_cmds \
18537: postlink_cmds \
18538: postinstall_cmds \
18539: postuninstall_cmds \
18540: finish_cmds \
18541: sys_lib_search_path_spec \
18542: sys_lib_dlsearch_path_spec \
18543: reload_cmds_CXX \
18544: old_archive_cmds_CXX \
18545: old_archive_from_new_cmds_CXX \
18546: old_archive_from_expsyms_cmds_CXX \
18547: archive_cmds_CXX \
18548: archive_expsym_cmds_CXX \
18549: module_cmds_CXX \
18550: module_expsym_cmds_CXX \
18551: export_symbols_cmds_CXX \
18552: prelink_cmds_CXX \
18553: postlink_cmds_CXX; do
18554: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18555: *[\\\\\\\`\\"\\\$]*)
18556: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18557: ;;
18558: *)
18559: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18560: ;;
18561: esac
18562: done
18563:
18564: ac_aux_dir='$ac_aux_dir'
18565: xsi_shell='$xsi_shell'
18566: lt_shell_append='$lt_shell_append'
18567:
18568: # See if we are running on zsh, and set the options which allow our
18569: # commands through without removal of \ escapes INIT.
18570: if test -n "\${ZSH_VERSION+set}" ; then
18571: setopt NO_GLOB_SUBST
18572: fi
18573:
18574:
18575: PACKAGE='$PACKAGE'
18576: VERSION='$VERSION'
18577: TIMESTAMP='$TIMESTAMP'
18578: RM='$RM'
18579: ofile='$ofile'
18580:
18581:
18582:
18583:
18584:
18585:
18586: _ACEOF
18587:
18588:
1.11 moko 18589:
18590: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18591: for ac_config_target in $ac_config_targets
18592: do
1.11 moko 18593: case "$ac_config_target" in
18594: # Handling of arguments.
18595: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18596: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18597: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18598: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18599: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18600: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18601: { (exit 1); exit 1; }; };;
1.8 moko 18602: esac
18603: done
18604:
18605: # If the user did not use the arguments to specify the items to instantiate,
18606: # then the envvar interface is used. Set only those that are not.
18607: # We use the long form for the default assignment because of an extremely
18608: # bizarre bug on SunOS 4.1.3.
18609: if $ac_need_defaults; then
18610: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18611: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18612: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18613: fi
18614:
18615: # Have a temporary directory for convenience. Make it in the build tree
1.11 moko 18616: # simply because there is no reason to put it here, and in addition,
1.8 moko 18617: # creating and moving files from /tmp can sometimes cause problems.
1.11 moko 18618: # Create a temporary directory, and hook for its removal unless debugging.
1.8 moko 18619: $debug ||
18620: {
1.11 moko 18621: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18622: trap '{ (exit 1); exit 1; }' 1 2 13 15
1.8 moko 18623: }
1.11 moko 18624:
1.8 moko 18625: # Create a (secure) tmp directory for tmp files.
18626:
18627: {
1.11 moko 18628: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.8 moko 18629: test -n "$tmp" && test -d "$tmp"
18630: } ||
18631: {
1.11 moko 18632: tmp=./confstat$$-$RANDOM
18633: (umask 077 && mkdir $tmp)
18634: } ||
1.8 moko 18635: {
1.11 moko 18636: echo "$me: cannot create a temporary directory in ." >&2
18637: { (exit 1); exit 1; }
1.8 moko 18638: }
18639:
18640: _ACEOF
18641:
1.11 moko 18642: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18643:
1.11 moko 18644: #
18645: # CONFIG_FILES section.
18646: #
1.8 moko 18647:
1.11 moko 18648: # No need to generate the scripts if there are no CONFIG_FILES.
18649: # This happens for instance when ./config.status config.h
18650: if test -n "\$CONFIG_FILES"; then
18651: # Protect against being on the right side of a sed subst in config.status.
18652: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18653: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18654: s,@SHELL@,$SHELL,;t t
18655: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18656: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18657: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18658: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18659: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18660: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18661: s,@exec_prefix@,$exec_prefix,;t t
18662: s,@prefix@,$prefix,;t t
18663: s,@program_transform_name@,$program_transform_name,;t t
18664: s,@bindir@,$bindir,;t t
18665: s,@sbindir@,$sbindir,;t t
18666: s,@libexecdir@,$libexecdir,;t t
18667: s,@datadir@,$datadir,;t t
18668: s,@sysconfdir@,$sysconfdir,;t t
18669: s,@sharedstatedir@,$sharedstatedir,;t t
18670: s,@localstatedir@,$localstatedir,;t t
18671: s,@libdir@,$libdir,;t t
18672: s,@includedir@,$includedir,;t t
18673: s,@oldincludedir@,$oldincludedir,;t t
18674: s,@infodir@,$infodir,;t t
18675: s,@mandir@,$mandir,;t t
18676: s,@build_alias@,$build_alias,;t t
18677: s,@host_alias@,$host_alias,;t t
18678: s,@target_alias@,$target_alias,;t t
18679: s,@DEFS@,$DEFS,;t t
18680: s,@ECHO_C@,$ECHO_C,;t t
18681: s,@ECHO_N@,$ECHO_N,;t t
18682: s,@ECHO_T@,$ECHO_T,;t t
18683: s,@LIBS@,$LIBS,;t t
18684: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18685: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18686: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18687: s,@CYGPATH_W@,$CYGPATH_W,;t t
18688: s,@PACKAGE@,$PACKAGE,;t t
18689: s,@VERSION@,$VERSION,;t t
18690: s,@ACLOCAL@,$ACLOCAL,;t t
18691: s,@AUTOCONF@,$AUTOCONF,;t t
18692: s,@AUTOMAKE@,$AUTOMAKE,;t t
18693: s,@AUTOHEADER@,$AUTOHEADER,;t t
18694: s,@MAKEINFO@,$MAKEINFO,;t t
18695: s,@install_sh@,$install_sh,;t t
18696: s,@STRIP@,$STRIP,;t t
18697: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18698: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18699: s,@mkdir_p@,$mkdir_p,;t t
18700: s,@AWK@,$AWK,;t t
18701: s,@SET_MAKE@,$SET_MAKE,;t t
18702: s,@am__leading_dot@,$am__leading_dot,;t t
18703: s,@AMTAR@,$AMTAR,;t t
18704: s,@am__tar@,$am__tar,;t t
18705: s,@am__untar@,$am__untar,;t t
18706: s,@SQLITE_INC@,$SQLITE_INC,;t t
18707: s,@LDFLAGS@,$LDFLAGS,;t t
18708: s,@CXX@,$CXX,;t t
18709: s,@CXXFLAGS@,$CXXFLAGS,;t t
18710: s,@CPPFLAGS@,$CPPFLAGS,;t t
18711: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18712: s,@EXEEXT@,$EXEEXT,;t t
18713: s,@OBJEXT@,$OBJEXT,;t t
18714: s,@DEPDIR@,$DEPDIR,;t t
18715: s,@am__include@,$am__include,;t t
18716: s,@am__quote@,$am__quote,;t t
18717: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18718: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18719: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18720: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18721: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18722: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18723: s,@CC@,$CC,;t t
18724: s,@CFLAGS@,$CFLAGS,;t t
18725: s,@ac_ct_CC@,$ac_ct_CC,;t t
18726: s,@CCDEPMODE@,$CCDEPMODE,;t t
18727: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18728: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.13 moko 18729: s,@AS@,$AS,;t t
18730: s,@ac_ct_AS@,$ac_ct_AS,;t t
18731: s,@DLLTOOL@,$DLLTOOL,;t t
18732: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18733: s,@OBJDUMP@,$OBJDUMP,;t t
18734: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.11 moko 18735: s,@LIBTOOL@,$LIBTOOL,;t t
18736: s,@build@,$build,;t t
18737: s,@build_cpu@,$build_cpu,;t t
18738: s,@build_vendor@,$build_vendor,;t t
18739: s,@build_os@,$build_os,;t t
18740: s,@host@,$host,;t t
18741: s,@host_cpu@,$host_cpu,;t t
18742: s,@host_vendor@,$host_vendor,;t t
18743: s,@host_os@,$host_os,;t t
18744: s,@SED@,$SED,;t t
18745: s,@EGREP@,$EGREP,;t t
18746: s,@FGREP@,$FGREP,;t t
18747: s,@GREP@,$GREP,;t t
18748: s,@LD@,$LD,;t t
18749: s,@DUMPBIN@,$DUMPBIN,;t t
18750: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18751: s,@NM@,$NM,;t t
18752: s,@LN_S@,$LN_S,;t t
18753: s,@AR@,$AR,;t t
18754: s,@ac_ct_AR@,$ac_ct_AR,;t t
18755: s,@RANLIB@,$RANLIB,;t t
18756: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18757: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18758: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18759: s,@DSYMUTIL@,$DSYMUTIL,;t t
18760: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18761: s,@NMEDIT@,$NMEDIT,;t t
18762: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18763: s,@LIPO@,$LIPO,;t t
18764: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18765: s,@OTOOL@,$OTOOL,;t t
18766: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18767: s,@OTOOL64@,$OTOOL64,;t t
18768: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18769: s,@CPP@,$CPP,;t t
18770: s,@CXXCPP@,$CXXCPP,;t t
18771: s,@LIBLTDL@,$LIBLTDL,;t t
18772: s,@LTDLDEPS@,$LTDLDEPS,;t t
18773: s,@LTDLINCL@,$LTDLINCL,;t t
18774: s,@INCLTDL@,$INCLTDL,;t t
18775: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18776: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18777: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18778: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18779: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.13 moko 18780: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.11 moko 18781: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18782: s,@ARGZ_H@,$ARGZ_H,;t t
18783: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18784: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18785: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18786: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18787: s,@subdirs@,$subdirs,;t t
18788: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18789: s,@LTDLOPEN@,$LTDLOPEN,;t t
18790: s,@LIBOBJS@,$LIBOBJS,;t t
18791: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18792: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18793: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18794: CEOF
18795:
18796: _ACEOF
18797:
18798: cat >>$CONFIG_STATUS <<\_ACEOF
18799: # Split the substitutions into bite-sized pieces for seds with
18800: # small command number limits, like on Digital OSF/1 and HP-UX.
18801: ac_max_sed_lines=48
18802: ac_sed_frag=1 # Number of current file.
18803: ac_beg=1 # First line for current file.
18804: ac_end=$ac_max_sed_lines # Line after last line for current file.
18805: ac_more_lines=:
18806: ac_sed_cmds=
18807: while $ac_more_lines; do
18808: if test $ac_beg -gt 1; then
18809: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18810: else
18811: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18812: fi
18813: if test ! -s $tmp/subs.frag; then
18814: ac_more_lines=false
18815: else
18816: # The purpose of the label and of the branching condition is to
18817: # speed up the sed processing (if there are no `@' at all, there
18818: # is no need to browse any of the substitutions).
18819: # These are the two extra sed commands mentioned above.
18820: (echo ':t
18821: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18822: if test -z "$ac_sed_cmds"; then
18823: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18824: else
18825: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18826: fi
18827: ac_sed_frag=`expr $ac_sed_frag + 1`
18828: ac_beg=$ac_end
18829: ac_end=`expr $ac_end + $ac_max_sed_lines`
18830: fi
18831: done
18832: if test -z "$ac_sed_cmds"; then
18833: ac_sed_cmds=cat
1.8 moko 18834: fi
1.11 moko 18835: fi # test -n "$CONFIG_FILES"
1.8 moko 18836:
18837: _ACEOF
1.11 moko 18838: cat >>$CONFIG_STATUS <<\_ACEOF
18839: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18840: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18841: case $ac_file in
18842: - | *:- | *:-:* ) # input from stdin
18843: cat >$tmp/stdin
18844: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18845: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18846: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18847: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18848: * ) ac_file_in=$ac_file.in ;;
1.8 moko 18849: esac
18850:
1.11 moko 18851: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18852: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1.8 moko 18853: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18854: X"$ac_file" : 'X\(//\)[^/]' \| \
18855: X"$ac_file" : 'X\(//\)$' \| \
1.11 moko 18856: X"$ac_file" : 'X\(/\)' \| \
18857: . : '\(.\)' 2>/dev/null ||
18858: echo X"$ac_file" |
18859: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18860: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18861: /^X\(\/\/\)$/{ s//\1/; q; }
18862: /^X\(\/\).*/{ s//\1/; q; }
18863: s/.*/./; q'`
18864: { if $as_mkdir_p; then
18865: mkdir -p "$ac_dir"
18866: else
18867: as_dir="$ac_dir"
18868: as_dirs=
18869: while test ! -d "$as_dir"; do
18870: as_dirs="$as_dir $as_dirs"
18871: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18872: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18873: X"$as_dir" : 'X\(//\)[^/]' \| \
18874: X"$as_dir" : 'X\(//\)$' \| \
18875: X"$as_dir" : 'X\(/\)' \| \
18876: . : '\(.\)' 2>/dev/null ||
18877: echo X"$as_dir" |
18878: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18879: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18880: /^X\(\/\/\)$/{ s//\1/; q; }
18881: /^X\(\/\).*/{ s//\1/; q; }
18882: s/.*/./; q'`
18883: done
18884: test ! -n "$as_dirs" || mkdir $as_dirs
18885: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18886: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18887: { (exit 1); exit 1; }; }; }
18888:
1.8 moko 18889: ac_builddir=.
18890:
1.11 moko 18891: if test "$ac_dir" != .; then
18892: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18893: # A "../" for each directory in $ac_dir_suffix.
18894: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18895: else
18896: ac_dir_suffix= ac_top_builddir=
18897: fi
1.8 moko 18898:
18899: case $srcdir in
1.11 moko 18900: .) # No --srcdir option. We are building in place.
1.8 moko 18901: ac_srcdir=.
1.11 moko 18902: if test -z "$ac_top_builddir"; then
18903: ac_top_srcdir=.
18904: else
18905: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18906: fi ;;
18907: [\\/]* | ?:[\\/]* ) # Absolute path.
1.8 moko 18908: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 18909: ac_top_srcdir=$srcdir ;;
18910: *) # Relative path.
18911: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18912: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.8 moko 18913: esac
18914:
1.11 moko 18915: # Do not use `cd foo && pwd` to compute absolute paths, because
18916: # the directories may not exist.
18917: case `pwd` in
18918: .) ac_abs_builddir="$ac_dir";;
18919: *)
18920: case "$ac_dir" in
18921: .) ac_abs_builddir=`pwd`;;
18922: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18923: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18924: esac;;
18925: esac
18926: case $ac_abs_builddir in
18927: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18928: *)
18929: case ${ac_top_builddir}. in
18930: .) ac_abs_top_builddir=$ac_abs_builddir;;
18931: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18932: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18933: esac;;
18934: esac
18935: case $ac_abs_builddir in
18936: .) ac_abs_srcdir=$ac_srcdir;;
18937: *)
18938: case $ac_srcdir in
18939: .) ac_abs_srcdir=$ac_abs_builddir;;
18940: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18941: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18942: esac;;
18943: esac
18944: case $ac_abs_builddir in
18945: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18946: *)
18947: case $ac_top_srcdir in
18948: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18949: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18950: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18951: esac;;
18952: esac
1.8 moko 18953:
18954:
18955: case $INSTALL in
18956: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.11 moko 18957: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.8 moko 18958: esac
18959:
1.11 moko 18960: if test x"$ac_file" != x-; then
18961: { echo "$as_me:$LINENO: creating $ac_file" >&5
18962: echo "$as_me: creating $ac_file" >&6;}
18963: rm -f "$ac_file"
18964: fi
18965: # Let's still pretend it is `configure' which instantiates (i.e., don't
18966: # use $as_me), people would be surprised to read:
18967: # /* config.h. Generated by config.status. */
18968: if test x"$ac_file" = x-; then
18969: configure_input=
18970: else
18971: configure_input="$ac_file. "
18972: fi
18973: configure_input=$configure_input"Generated from `echo $ac_file_in |
18974: sed 's,.*/,,'` by configure."
18975:
18976: # First look for the input files in the build tree, otherwise in the
18977: # src tree.
18978: ac_file_inputs=`IFS=:
18979: for f in $ac_file_in; do
18980: case $f in
18981: -) echo $tmp/stdin ;;
18982: [\\/$]*)
18983: # Absolute (can't be DOS-style, as IFS=:)
18984: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18985: echo "$as_me: error: cannot find input file: $f" >&2;}
18986: { (exit 1); exit 1; }; }
18987: echo "$f";;
18988: *) # Relative
18989: if test -f "$f"; then
18990: # Build tree
18991: echo "$f"
18992: elif test -f "$srcdir/$f"; then
18993: # Source tree
18994: echo "$srcdir/$f"
18995: else
18996: # /dev/null tree
18997: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18998: echo "$as_me: error: cannot find input file: $f" >&2;}
18999: { (exit 1); exit 1; }; }
19000: fi;;
19001: esac
19002: done` || { (exit 1); exit 1; }
1.10 moko 19003: _ACEOF
1.11 moko 19004: cat >>$CONFIG_STATUS <<_ACEOF
19005: sed "$ac_vpsub
1.8 moko 19006: $extrasub
19007: _ACEOF
1.11 moko 19008: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 19009: :t
19010: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.11 moko 19011: s,@configure_input@,$configure_input,;t t
19012: s,@srcdir@,$ac_srcdir,;t t
19013: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19014: s,@top_srcdir@,$ac_top_srcdir,;t t
19015: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19016: s,@builddir@,$ac_builddir,;t t
19017: s,@abs_builddir@,$ac_abs_builddir,;t t
19018: s,@top_builddir@,$ac_top_builddir,;t t
19019: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19020: s,@INSTALL@,$ac_INSTALL,;t t
19021: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19022: rm -f $tmp/stdin
19023: if test x"$ac_file" != x-; then
19024: mv $tmp/out $ac_file
19025: else
19026: cat $tmp/out
19027: rm -f $tmp/out
19028: fi
19029:
19030: done
19031: _ACEOF
19032: cat >>$CONFIG_STATUS <<\_ACEOF
19033:
19034: #
19035: # CONFIG_HEADER section.
19036: #
19037:
19038: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19039: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19040: #
19041: # ac_d sets the value in "#define NAME VALUE" lines.
19042: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19043: ac_dB='[ ].*$,\1#\2'
19044: ac_dC=' '
19045: ac_dD=',;t'
19046: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19047: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19048: ac_uB='$,\1#\2define\3'
19049: ac_uC=' '
19050: ac_uD=',;t'
1.8 moko 19051:
1.11 moko 19052: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19053: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.8 moko 19054: case $ac_file in
1.11 moko 19055: - | *:- | *:-:* ) # input from stdin
19056: cat >$tmp/stdin
19057: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19058: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19059: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19060: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19061: * ) ac_file_in=$ac_file.in ;;
19062: esac
19063:
19064: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19065: echo "$as_me: creating $ac_file" >&6;}
19066:
19067: # First look for the input files in the build tree, otherwise in the
19068: # src tree.
19069: ac_file_inputs=`IFS=:
19070: for f in $ac_file_in; do
19071: case $f in
19072: -) echo $tmp/stdin ;;
19073: [\\/$]*)
19074: # Absolute (can't be DOS-style, as IFS=:)
19075: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19076: echo "$as_me: error: cannot find input file: $f" >&2;}
19077: { (exit 1); exit 1; }; }
19078: # Do quote $f, to prevent DOS paths from being IFS'd.
19079: echo "$f";;
19080: *) # Relative
19081: if test -f "$f"; then
19082: # Build tree
19083: echo "$f"
19084: elif test -f "$srcdir/$f"; then
19085: # Source tree
19086: echo "$srcdir/$f"
19087: else
19088: # /dev/null tree
19089: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19090: echo "$as_me: error: cannot find input file: $f" >&2;}
19091: { (exit 1); exit 1; }; }
19092: fi;;
19093: esac
19094: done` || { (exit 1); exit 1; }
19095: # Remove the trailing spaces.
19096: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19097:
19098: _ACEOF
19099:
19100: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19101: # `conftest.undefs', that substitutes the proper values into
19102: # config.h.in to produce config.h. The first handles `#define'
19103: # templates, and the second `#undef' templates.
19104: # And first: Protect against being on the right side of a sed subst in
19105: # config.status. Protect against being in an unquoted here document
19106: # in config.status.
19107: rm -f conftest.defines conftest.undefs
19108: # Using a here document instead of a string reduces the quoting nightmare.
19109: # Putting comments in sed scripts is not portable.
19110: #
19111: # `end' is used to avoid that the second main sed command (meant for
19112: # 0-ary CPP macros) applies to n-ary macro definitions.
19113: # See the Autoconf documentation for `clear'.
19114: cat >confdef2sed.sed <<\_ACEOF
19115: s/[\\&,]/\\&/g
19116: s,[\\$`],\\&,g
19117: t clear
19118: : clear
19119: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19120: t end
19121: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19122: : end
19123: _ACEOF
19124: # If some macros were called several times there might be several times
19125: # the same #defines, which is useless. Nevertheless, we may not want to
19126: # sort them, since we want the *last* AC-DEFINE to be honored.
19127: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19128: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19129: rm -f confdef2sed.sed
19130:
19131: # This sed command replaces #undef with comments. This is necessary, for
19132: # example, in the case of _POSIX_SOURCE, which is predefined and required
19133: # on some systems where configure will not decide to define it.
19134: cat >>conftest.undefs <<\_ACEOF
19135: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19136: _ACEOF
19137:
19138: # Break up conftest.defines because some shells have a limit on the size
19139: # of here documents, and old seds have small limits too (100 cmds).
19140: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19141: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19142: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19143: echo ' :' >>$CONFIG_STATUS
19144: rm -f conftest.tail
19145: while grep . conftest.defines >/dev/null
19146: do
19147: # Write a limited-size here document to $tmp/defines.sed.
19148: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19149: # Speed up: don't consider the non `#define' lines.
19150: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19151: # Work around the forget-to-reset-the-flag bug.
19152: echo 't clr' >>$CONFIG_STATUS
19153: echo ': clr' >>$CONFIG_STATUS
19154: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19155: echo 'CEOF
19156: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19157: rm -f $tmp/in
19158: mv $tmp/out $tmp/in
19159: ' >>$CONFIG_STATUS
19160: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19161: rm -f conftest.defines
19162: mv conftest.tail conftest.defines
19163: done
19164: rm -f conftest.defines
19165: echo ' fi # grep' >>$CONFIG_STATUS
19166: echo >>$CONFIG_STATUS
19167:
19168: # Break up conftest.undefs because some shells have a limit on the size
19169: # of here documents, and old seds have small limits too (100 cmds).
19170: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19171: rm -f conftest.tail
19172: while grep . conftest.undefs >/dev/null
19173: do
19174: # Write a limited-size here document to $tmp/undefs.sed.
19175: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19176: # Speed up: don't consider the non `#undef'
19177: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19178: # Work around the forget-to-reset-the-flag bug.
19179: echo 't clr' >>$CONFIG_STATUS
19180: echo ': clr' >>$CONFIG_STATUS
19181: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19182: echo 'CEOF
19183: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19184: rm -f $tmp/in
19185: mv $tmp/out $tmp/in
19186: ' >>$CONFIG_STATUS
19187: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19188: rm -f conftest.undefs
19189: mv conftest.tail conftest.undefs
19190: done
19191: rm -f conftest.undefs
19192:
19193: cat >>$CONFIG_STATUS <<\_ACEOF
19194: # Let's still pretend it is `configure' which instantiates (i.e., don't
19195: # use $as_me), people would be surprised to read:
19196: # /* config.h. Generated by config.status. */
19197: if test x"$ac_file" = x-; then
19198: echo "/* Generated by configure. */" >$tmp/config.h
19199: else
19200: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19201: fi
19202: cat $tmp/in >>$tmp/config.h
19203: rm -f $tmp/in
1.8 moko 19204: if test x"$ac_file" != x-; then
1.11 moko 19205: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19206: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19207: echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 19208: else
1.11 moko 19209: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19210: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19211: X"$ac_file" : 'X\(//\)[^/]' \| \
19212: X"$ac_file" : 'X\(//\)$' \| \
19213: X"$ac_file" : 'X\(/\)' \| \
19214: . : '\(.\)' 2>/dev/null ||
19215: echo X"$ac_file" |
19216: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19217: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19218: /^X\(\/\/\)$/{ s//\1/; q; }
19219: /^X\(\/\).*/{ s//\1/; q; }
19220: s/.*/./; q'`
19221: { if $as_mkdir_p; then
19222: mkdir -p "$ac_dir"
19223: else
19224: as_dir="$ac_dir"
19225: as_dirs=
19226: while test ! -d "$as_dir"; do
19227: as_dirs="$as_dir $as_dirs"
19228: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19229: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19230: X"$as_dir" : 'X\(//\)[^/]' \| \
19231: X"$as_dir" : 'X\(//\)$' \| \
19232: X"$as_dir" : 'X\(/\)' \| \
19233: . : '\(.\)' 2>/dev/null ||
19234: echo X"$as_dir" |
19235: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19236: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19237: /^X\(\/\/\)$/{ s//\1/; q; }
19238: /^X\(\/\).*/{ s//\1/; q; }
19239: s/.*/./; q'`
19240: done
19241: test ! -n "$as_dirs" || mkdir $as_dirs
19242: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19243: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19244: { (exit 1); exit 1; }; }; }
19245:
19246: rm -f $ac_file
19247: mv $tmp/config.h $ac_file
1.8 moko 19248: fi
19249: else
1.11 moko 19250: cat $tmp/config.h
19251: rm -f $tmp/config.h
1.8 moko 19252: fi
1.11 moko 19253: # Compute $ac_file's index in $config_headers.
1.8 moko 19254: _am_stamp_count=1
19255: for _am_header in $config_headers :; do
19256: case $_am_header in
1.11 moko 19257: $ac_file | $ac_file:* )
1.8 moko 19258: break ;;
19259: * )
19260: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19261: esac
19262: done
1.11 moko 19263: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19264: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19265: X$ac_file : 'X\(//\)[^/]' \| \
19266: X$ac_file : 'X\(//\)$' \| \
19267: X$ac_file : 'X\(/\)' \| \
19268: . : '\(.\)' 2>/dev/null ||
19269: echo X$ac_file |
19270: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19271: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19272: /^X\(\/\/\)$/{ s//\1/; q; }
19273: /^X\(\/\).*/{ s//\1/; q; }
19274: s/.*/./; q'`/stamp-h$_am_stamp_count
19275: done
19276: _ACEOF
19277: cat >>$CONFIG_STATUS <<\_ACEOF
19278:
19279: #
19280: # CONFIG_COMMANDS section.
19281: #
19282: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19283: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19284: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19285: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19286: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19287: X"$ac_dest" : 'X\(//\)[^/]' \| \
19288: X"$ac_dest" : 'X\(//\)$' \| \
19289: X"$ac_dest" : 'X\(/\)' \| \
19290: . : '\(.\)' 2>/dev/null ||
19291: echo X"$ac_dest" |
19292: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19293: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19294: /^X\(\/\/\)$/{ s//\1/; q; }
19295: /^X\(\/\).*/{ s//\1/; q; }
19296: s/.*/./; q'`
19297: { if $as_mkdir_p; then
19298: mkdir -p "$ac_dir"
19299: else
19300: as_dir="$ac_dir"
19301: as_dirs=
19302: while test ! -d "$as_dir"; do
19303: as_dirs="$as_dir $as_dirs"
19304: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19305: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19306: X"$as_dir" : 'X\(//\)[^/]' \| \
19307: X"$as_dir" : 'X\(//\)$' \| \
19308: X"$as_dir" : 'X\(/\)' \| \
19309: . : '\(.\)' 2>/dev/null ||
19310: echo X"$as_dir" |
19311: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19312: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19313: /^X\(\/\/\)$/{ s//\1/; q; }
19314: /^X\(\/\).*/{ s//\1/; q; }
19315: s/.*/./; q'`
19316: done
19317: test ! -n "$as_dirs" || mkdir $as_dirs
19318: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19319: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19320: { (exit 1); exit 1; }; }; }
19321:
19322: ac_builddir=.
19323:
19324: if test "$ac_dir" != .; then
19325: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19326: # A "../" for each directory in $ac_dir_suffix.
19327: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19328: else
19329: ac_dir_suffix= ac_top_builddir=
19330: fi
19331:
19332: case $srcdir in
19333: .) # No --srcdir option. We are building in place.
19334: ac_srcdir=.
19335: if test -z "$ac_top_builddir"; then
19336: ac_top_srcdir=.
19337: else
19338: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19339: fi ;;
19340: [\\/]* | ?:[\\/]* ) # Absolute path.
19341: ac_srcdir=$srcdir$ac_dir_suffix;
19342: ac_top_srcdir=$srcdir ;;
19343: *) # Relative path.
19344: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19345: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19346: esac
1.8 moko 19347:
1.11 moko 19348: # Do not use `cd foo && pwd` to compute absolute paths, because
19349: # the directories may not exist.
19350: case `pwd` in
19351: .) ac_abs_builddir="$ac_dir";;
19352: *)
19353: case "$ac_dir" in
19354: .) ac_abs_builddir=`pwd`;;
19355: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19356: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19357: esac;;
19358: esac
19359: case $ac_abs_builddir in
19360: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19361: *)
19362: case ${ac_top_builddir}. in
19363: .) ac_abs_top_builddir=$ac_abs_builddir;;
19364: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19365: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19366: esac;;
19367: esac
19368: case $ac_abs_builddir in
19369: .) ac_abs_srcdir=$ac_srcdir;;
19370: *)
19371: case $ac_srcdir in
19372: .) ac_abs_srcdir=$ac_abs_builddir;;
19373: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19374: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19375: esac;;
19376: esac
19377: case $ac_abs_builddir in
19378: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19379: *)
19380: case $ac_top_srcdir in
19381: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19382: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19383: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19384: esac;;
19385: esac
1.8 moko 19386:
19387:
1.11 moko 19388: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19389: echo "$as_me: executing $ac_dest commands" >&6;}
19390: case $ac_dest in
19391: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.8 moko 19392: # Strip MF so we end up with the name of the file.
19393: mf=`echo "$mf" | sed -e 's/:.*$//'`
19394: # Check whether this is an Automake generated Makefile or not.
19395: # We used to match only the files named `Makefile.in', but
19396: # some people rename them; so instead we look at the file content.
19397: # Grep'ing the first line is not enough: some people post-process
19398: # each Makefile.in and add a new line on top of each file to say so.
19399: # So let's grep whole file.
19400: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.11 moko 19401: dirpart=`(dirname "$mf") 2>/dev/null ||
1.8 moko 19402: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19403: X"$mf" : 'X\(//\)[^/]' \| \
19404: X"$mf" : 'X\(//\)$' \| \
1.11 moko 19405: X"$mf" : 'X\(/\)' \| \
19406: . : '\(.\)' 2>/dev/null ||
19407: echo X"$mf" |
19408: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19409: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19410: /^X\(\/\/\)$/{ s//\1/; q; }
19411: /^X\(\/\).*/{ s//\1/; q; }
19412: s/.*/./; q'`
1.8 moko 19413: else
19414: continue
19415: fi
19416: # Extract the definition of DEPDIR, am__include, and am__quote
19417: # from the Makefile without running `make'.
19418: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19419: test -z "$DEPDIR" && continue
19420: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19421: test -z "am__include" && continue
19422: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19423: # When using ansi2knr, U may be empty or an underscore; expand it
19424: U=`sed -n 's/^U = //p' < "$mf"`
19425: # Find all dependency output files, they are included files with
19426: # $(DEPDIR) in their names. We invoke sed twice because it is the
19427: # simplest approach to changing $(DEPDIR) to its actual value in the
19428: # expansion.
19429: for file in `sed -n "
19430: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19431: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19432: # Make sure the directory exists.
19433: test -f "$dirpart/$file" && continue
1.11 moko 19434: fdir=`(dirname "$file") 2>/dev/null ||
1.8 moko 19435: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19436: X"$file" : 'X\(//\)[^/]' \| \
19437: X"$file" : 'X\(//\)$' \| \
1.11 moko 19438: X"$file" : 'X\(/\)' \| \
19439: . : '\(.\)' 2>/dev/null ||
19440: echo X"$file" |
19441: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19442: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19443: /^X\(\/\/\)$/{ s//\1/; q; }
19444: /^X\(\/\).*/{ s//\1/; q; }
19445: s/.*/./; q'`
19446: { if $as_mkdir_p; then
19447: mkdir -p $dirpart/$fdir
19448: else
19449: as_dir=$dirpart/$fdir
19450: as_dirs=
19451: while test ! -d "$as_dir"; do
19452: as_dirs="$as_dir $as_dirs"
19453: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19454: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19455: X"$as_dir" : 'X\(//\)[^/]' \| \
19456: X"$as_dir" : 'X\(//\)$' \| \
19457: X"$as_dir" : 'X\(/\)' \| \
19458: . : '\(.\)' 2>/dev/null ||
19459: echo X"$as_dir" |
19460: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19461: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19462: /^X\(\/\/\)$/{ s//\1/; q; }
19463: /^X\(\/\).*/{ s//\1/; q; }
19464: s/.*/./; q'`
19465: done
19466: test ! -n "$as_dirs" || mkdir $as_dirs
19467: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19468: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19469: { (exit 1); exit 1; }; }; }
19470:
1.8 moko 19471: # echo "creating $dirpart/$file"
19472: echo '# dummy' > "$dirpart/$file"
19473: done
19474: done
19475: ;;
1.11 moko 19476: libtool )
1.8 moko 19477:
19478: # See if we are running on zsh, and set the options which allow our
19479: # commands through without removal of \ escapes.
19480: if test -n "${ZSH_VERSION+set}" ; then
19481: setopt NO_GLOB_SUBST
19482: fi
19483:
19484: cfgfile="${ofile}T"
19485: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19486: $RM "$cfgfile"
19487:
19488: cat <<_LT_EOF >> "$cfgfile"
19489: #! $SHELL
19490:
19491: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19492: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19493: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19494: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19495: #
19496: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19497: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19498: # Foundation, Inc.
19499: # Written by Gordon Matzigkeit, 1996
19500: #
19501: # This file is part of GNU Libtool.
19502: #
19503: # GNU Libtool is free software; you can redistribute it and/or
19504: # modify it under the terms of the GNU General Public License as
19505: # published by the Free Software Foundation; either version 2 of
19506: # the License, or (at your option) any later version.
19507: #
19508: # As a special exception to the GNU General Public License,
19509: # if you distribute this file as part of a program or library that
19510: # is built using GNU Libtool, you may include this file under the
19511: # same distribution terms that you use for the rest of that program.
19512: #
19513: # GNU Libtool is distributed in the hope that it will be useful,
19514: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19515: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19516: # GNU General Public License for more details.
19517: #
19518: # You should have received a copy of the GNU General Public License
19519: # along with GNU Libtool; see the file COPYING. If not, a copy
19520: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19521: # obtained by writing to the Free Software Foundation, Inc.,
19522: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19523:
19524:
19525: # The names of the tagged configurations supported by this script.
19526: available_tags="CXX "
19527:
19528: # ### BEGIN LIBTOOL CONFIG
19529:
19530: # Which release of libtool.m4 was used?
19531: macro_version=$macro_version
19532: macro_revision=$macro_revision
19533:
1.13 moko 19534: # Assembler program.
19535: AS=$lt_AS
19536:
19537: # DLL creation program.
19538: DLLTOOL=$lt_DLLTOOL
19539:
19540: # Object dumper program.
19541: OBJDUMP=$lt_OBJDUMP
19542:
1.8 moko 19543: # Whether or not to build shared libraries.
19544: build_libtool_libs=$enable_shared
19545:
19546: # Whether or not to build static libraries.
19547: build_old_libs=$enable_static
19548:
19549: # What type of objects to build.
19550: pic_mode=$pic_mode
19551:
19552: # Whether or not to optimize for fast installation.
19553: fast_install=$enable_fast_install
19554:
19555: # Shell to use when invoking shell scripts.
19556: SHELL=$lt_SHELL
19557:
19558: # An echo program that protects backslashes.
19559: ECHO=$lt_ECHO
19560:
19561: # The PATH separator for the build system.
19562: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19563:
19564: # The host system.
19565: host_alias=$host_alias
19566: host=$host
19567: host_os=$host_os
19568:
19569: # The build system.
19570: build_alias=$build_alias
19571: build=$build
19572: build_os=$build_os
19573:
19574: # A sed program that does not truncate output.
19575: SED=$lt_SED
19576:
19577: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19578: Xsed="\$SED -e 1s/^X//"
19579:
19580: # A grep program that handles long lines.
19581: GREP=$lt_GREP
19582:
19583: # An ERE matcher.
19584: EGREP=$lt_EGREP
19585:
19586: # A literal string matcher.
19587: FGREP=$lt_FGREP
19588:
19589: # A BSD- or MS-compatible name lister.
19590: NM=$lt_NM
19591:
19592: # Whether we need soft or hard links.
19593: LN_S=$lt_LN_S
19594:
19595: # What is the maximum length of a command?
19596: max_cmd_len=$max_cmd_len
19597:
19598: # Object file suffix (normally "o").
19599: objext=$ac_objext
19600:
19601: # Executable file suffix (normally "").
19602: exeext=$exeext
19603:
19604: # whether the shell understands "unset".
19605: lt_unset=$lt_unset
19606:
19607: # turn spaces into newlines.
19608: SP2NL=$lt_lt_SP2NL
19609:
19610: # turn newlines into spaces.
19611: NL2SP=$lt_lt_NL2SP
19612:
19613: # convert \$build file names to \$host format.
19614: to_host_file_cmd=$lt_cv_to_host_file_cmd
19615:
19616: # convert \$build files to toolchain format.
19617: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19618:
19619: # Method to check whether dependent libraries are shared objects.
19620: deplibs_check_method=$lt_deplibs_check_method
19621:
19622: # Command to use when deplibs_check_method = "file_magic".
19623: file_magic_cmd=$lt_file_magic_cmd
19624:
19625: # How to find potential files when deplibs_check_method = "file_magic".
19626: file_magic_glob=$lt_file_magic_glob
19627:
19628: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19629: want_nocaseglob=$lt_want_nocaseglob
19630:
19631: # Command to associate shared and link libraries.
19632: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19633:
19634: # The archiver.
19635: AR=$lt_AR
19636:
19637: # Flags to create an archive.
19638: AR_FLAGS=$lt_AR_FLAGS
19639:
19640: # How to feed a file listing to the archiver.
19641: archiver_list_spec=$lt_archiver_list_spec
19642:
19643: # A symbol stripping program.
19644: STRIP=$lt_STRIP
19645:
19646: # Commands used to install an old-style archive.
19647: RANLIB=$lt_RANLIB
19648: old_postinstall_cmds=$lt_old_postinstall_cmds
19649: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19650:
19651: # Whether to use a lock for old archive extraction.
19652: lock_old_archive_extraction=$lock_old_archive_extraction
19653:
19654: # A C compiler.
19655: LTCC=$lt_CC
19656:
19657: # LTCC compiler flags.
19658: LTCFLAGS=$lt_CFLAGS
19659:
19660: # Take the output of nm and produce a listing of raw symbols and C names.
19661: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19662:
19663: # Transform the output of nm in a proper C declaration.
19664: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19665:
19666: # Transform the output of nm in a C name address pair.
19667: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19668:
19669: # Transform the output of nm in a C name address pair when lib prefix is needed.
19670: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19671:
19672: # Specify filename containing input files for \$NM.
19673: nm_file_list_spec=$lt_nm_file_list_spec
19674:
19675: # The root where to search for dependent libraries,and in which our libraries should be installed.
19676: lt_sysroot=$lt_sysroot
19677:
19678: # The name of the directory that contains temporary libtool files.
19679: objdir=$objdir
19680:
19681: # Used to examine libraries when file_magic_cmd begins with "file".
19682: MAGIC_CMD=$MAGIC_CMD
19683:
19684: # Must we lock files when doing compilation?
19685: need_locks=$lt_need_locks
19686:
19687: # Manifest tool.
19688: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19689:
19690: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19691: DSYMUTIL=$lt_DSYMUTIL
19692:
19693: # Tool to change global to local symbols on Mac OS X.
19694: NMEDIT=$lt_NMEDIT
19695:
19696: # Tool to manipulate fat objects and archives on Mac OS X.
19697: LIPO=$lt_LIPO
19698:
19699: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19700: OTOOL=$lt_OTOOL
19701:
19702: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19703: OTOOL64=$lt_OTOOL64
19704:
19705: # Old archive suffix (normally "a").
19706: libext=$libext
19707:
19708: # Shared library suffix (normally ".so").
19709: shrext_cmds=$lt_shrext_cmds
19710:
19711: # The commands to extract the exported symbol list from a shared archive.
19712: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19713:
19714: # Variables whose values should be saved in libtool wrapper scripts and
19715: # restored at link time.
19716: variables_saved_for_relink=$lt_variables_saved_for_relink
19717:
19718: # Do we need the "lib" prefix for modules?
19719: need_lib_prefix=$need_lib_prefix
19720:
19721: # Do we need a version for libraries?
19722: need_version=$need_version
19723:
19724: # Library versioning type.
19725: version_type=$version_type
19726:
19727: # Shared library runtime path variable.
19728: runpath_var=$runpath_var
19729:
19730: # Shared library path variable.
19731: shlibpath_var=$shlibpath_var
19732:
19733: # Is shlibpath searched before the hard-coded library search path?
19734: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19735:
19736: # Format of library name prefix.
19737: libname_spec=$lt_libname_spec
19738:
19739: # List of archive names. First name is the real one, the rest are links.
19740: # The last name is the one that the linker finds with -lNAME
19741: library_names_spec=$lt_library_names_spec
19742:
19743: # The coded name of the library, if different from the real name.
19744: soname_spec=$lt_soname_spec
19745:
19746: # Permission mode override for installation of shared libraries.
19747: install_override_mode=$lt_install_override_mode
19748:
19749: # Command to use after installation of a shared archive.
19750: postinstall_cmds=$lt_postinstall_cmds
19751:
19752: # Command to use after uninstallation of a shared archive.
19753: postuninstall_cmds=$lt_postuninstall_cmds
19754:
19755: # Commands used to finish a libtool library installation in a directory.
19756: finish_cmds=$lt_finish_cmds
19757:
19758: # As "finish_cmds", except a single script fragment to be evaled but
19759: # not shown.
19760: finish_eval=$lt_finish_eval
19761:
19762: # Whether we should hardcode library paths into libraries.
19763: hardcode_into_libs=$hardcode_into_libs
19764:
19765: # Compile-time system search path for libraries.
19766: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19767:
19768: # Run-time system search path for libraries.
19769: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19770:
19771: # Whether dlopen is supported.
19772: dlopen_support=$enable_dlopen
19773:
19774: # Whether dlopen of programs is supported.
19775: dlopen_self=$enable_dlopen_self
19776:
19777: # Whether dlopen of statically linked programs is supported.
19778: dlopen_self_static=$enable_dlopen_self_static
19779:
19780: # Commands to strip libraries.
19781: old_striplib=$lt_old_striplib
19782: striplib=$lt_striplib
19783:
19784:
19785: # The linker used to build libraries.
19786: LD=$lt_LD
19787:
19788: # How to create reloadable object files.
19789: reload_flag=$lt_reload_flag
19790: reload_cmds=$lt_reload_cmds
19791:
19792: # Commands used to build an old-style archive.
19793: old_archive_cmds=$lt_old_archive_cmds
19794:
19795: # A language specific compiler.
19796: CC=$lt_compiler
19797:
19798: # Is the compiler the GNU compiler?
19799: with_gcc=$GCC
19800:
19801: # Compiler flag to turn off builtin functions.
19802: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19803:
19804: # Additional compiler flags for building library objects.
19805: pic_flag=$lt_lt_prog_compiler_pic
19806:
19807: # How to pass a linker flag through the compiler.
19808: wl=$lt_lt_prog_compiler_wl
19809:
19810: # Compiler flag to prevent dynamic linking.
19811: link_static_flag=$lt_lt_prog_compiler_static
19812:
19813: # Does compiler simultaneously support -c and -o options?
19814: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19815:
19816: # Whether or not to add -lc for building shared libraries.
19817: build_libtool_need_lc=$archive_cmds_need_lc
19818:
19819: # Whether or not to disallow shared libs when runtime libs are static.
19820: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19821:
19822: # Compiler flag to allow reflexive dlopens.
19823: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19824:
19825: # Compiler flag to generate shared objects directly from archives.
19826: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19827:
19828: # Whether the compiler copes with passing no objects directly.
19829: compiler_needs_object=$lt_compiler_needs_object
19830:
19831: # Create an old-style archive from a shared archive.
19832: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19833:
19834: # Create a temporary old-style archive to link instead of a shared archive.
19835: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19836:
19837: # Commands used to build a shared archive.
19838: archive_cmds=$lt_archive_cmds
19839: archive_expsym_cmds=$lt_archive_expsym_cmds
19840:
19841: # Commands used to build a loadable module if different from building
19842: # a shared archive.
19843: module_cmds=$lt_module_cmds
19844: module_expsym_cmds=$lt_module_expsym_cmds
19845:
19846: # Whether we are building with GNU ld or not.
19847: with_gnu_ld=$lt_with_gnu_ld
19848:
19849: # Flag that allows shared libraries with undefined symbols to be built.
19850: allow_undefined_flag=$lt_allow_undefined_flag
19851:
19852: # Flag that enforces no undefined symbols.
19853: no_undefined_flag=$lt_no_undefined_flag
19854:
19855: # Flag to hardcode \$libdir into a binary during linking.
19856: # This must work even if \$libdir does not exist
19857: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19858:
19859: # Whether we need a single "-rpath" flag with a separated argument.
19860: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19861:
19862: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19863: # DIR into the resulting binary.
19864: hardcode_direct=$hardcode_direct
19865:
19866: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19867: # DIR into the resulting binary and the resulting library dependency is
19868: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19869: # library is relocated.
19870: hardcode_direct_absolute=$hardcode_direct_absolute
19871:
19872: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19873: # into the resulting binary.
19874: hardcode_minus_L=$hardcode_minus_L
19875:
19876: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19877: # into the resulting binary.
19878: hardcode_shlibpath_var=$hardcode_shlibpath_var
19879:
19880: # Set to "yes" if building a shared library automatically hardcodes DIR
19881: # into the library and all subsequent libraries and executables linked
19882: # against it.
19883: hardcode_automatic=$hardcode_automatic
19884:
19885: # Set to yes if linker adds runtime paths of dependent libraries
19886: # to runtime path list.
19887: inherit_rpath=$inherit_rpath
19888:
19889: # Whether libtool must link a program against all its dependency libraries.
19890: link_all_deplibs=$link_all_deplibs
19891:
19892: # Set to "yes" if exported symbols are required.
19893: always_export_symbols=$always_export_symbols
19894:
19895: # The commands to list exported symbols.
19896: export_symbols_cmds=$lt_export_symbols_cmds
19897:
19898: # Symbols that should not be listed in the preloaded symbols.
19899: exclude_expsyms=$lt_exclude_expsyms
19900:
19901: # Symbols that must always be exported.
19902: include_expsyms=$lt_include_expsyms
19903:
19904: # Commands necessary for linking programs (against libraries) with templates.
19905: prelink_cmds=$lt_prelink_cmds
19906:
19907: # Commands necessary for finishing linking programs.
19908: postlink_cmds=$lt_postlink_cmds
19909:
19910: # Specify filename containing input files.
19911: file_list_spec=$lt_file_list_spec
19912:
19913: # How to hardcode a shared library path into an executable.
19914: hardcode_action=$hardcode_action
19915:
19916: # The directories searched by this compiler when creating a shared library.
19917: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19918:
19919: # Dependencies to place before and after the objects being linked to
19920: # create a shared library.
19921: predep_objects=$lt_predep_objects
19922: postdep_objects=$lt_postdep_objects
19923: predeps=$lt_predeps
19924: postdeps=$lt_postdeps
19925:
19926: # The library search path used internally by the compiler when linking
19927: # a shared library.
19928: compiler_lib_search_path=$lt_compiler_lib_search_path
19929:
19930: # ### END LIBTOOL CONFIG
19931:
19932: _LT_EOF
19933:
19934: case $host_os in
19935: aix3*)
19936: cat <<\_LT_EOF >> "$cfgfile"
19937: # AIX sometimes has problems with the GCC collect2 program. For some
19938: # reason, if we set the COLLECT_NAMES environment variable, the problems
19939: # vanish in a puff of smoke.
19940: if test "X${COLLECT_NAMES+set}" != Xset; then
19941: COLLECT_NAMES=
19942: export COLLECT_NAMES
19943: fi
19944: _LT_EOF
19945: ;;
19946: esac
19947:
19948:
19949: ltmain="$ac_aux_dir/ltmain.sh"
19950:
19951:
19952: # We use sed instead of cat because bash on DJGPP gets confused if
19953: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19954: # text mode, it properly converts lines to CR/LF. This bash problem
19955: # is reportedly fixed, but why not run on old versions too?
19956: sed '$q' "$ltmain" >> "$cfgfile" \
19957: || (rm -f "$cfgfile"; exit 1)
19958:
19959: if test x"$xsi_shell" = xyes; then
19960: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19961: func_dirname ()\
19962: {\
19963: \ case ${1} in\
19964: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19965: \ * ) func_dirname_result="${3}" ;;\
19966: \ esac\
19967: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19968: && mv -f "$cfgfile.tmp" "$cfgfile" \
19969: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19970: test 0 -eq $? || _lt_function_replace_fail=:
19971:
19972:
19973: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19974: func_basename ()\
19975: {\
19976: \ func_basename_result="${1##*/}"\
19977: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19978: && mv -f "$cfgfile.tmp" "$cfgfile" \
19979: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19980: test 0 -eq $? || _lt_function_replace_fail=:
19981:
19982:
19983: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19984: func_dirname_and_basename ()\
19985: {\
19986: \ case ${1} in\
19987: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19988: \ * ) func_dirname_result="${3}" ;;\
19989: \ esac\
19990: \ func_basename_result="${1##*/}"\
19991: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19992: && mv -f "$cfgfile.tmp" "$cfgfile" \
19993: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19994: test 0 -eq $? || _lt_function_replace_fail=:
19995:
19996:
19997: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19998: func_stripname ()\
19999: {\
20000: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20001: \ # positional parameters, so assign one to ordinary parameter first.\
20002: \ func_stripname_result=${3}\
20003: \ func_stripname_result=${func_stripname_result#"${1}"}\
20004: \ func_stripname_result=${func_stripname_result%"${2}"}\
20005: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20006: && mv -f "$cfgfile.tmp" "$cfgfile" \
20007: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20008: test 0 -eq $? || _lt_function_replace_fail=:
20009:
20010:
20011: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20012: func_split_long_opt ()\
20013: {\
20014: \ func_split_long_opt_name=${1%%=*}\
20015: \ func_split_long_opt_arg=${1#*=}\
20016: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20017: && mv -f "$cfgfile.tmp" "$cfgfile" \
20018: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20019: test 0 -eq $? || _lt_function_replace_fail=:
20020:
20021:
20022: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20023: func_split_short_opt ()\
20024: {\
20025: \ func_split_short_opt_arg=${1#??}\
20026: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20027: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20028: && mv -f "$cfgfile.tmp" "$cfgfile" \
20029: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20030: test 0 -eq $? || _lt_function_replace_fail=:
20031:
20032:
20033: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20034: func_lo2o ()\
20035: {\
20036: \ case ${1} in\
20037: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20038: \ *) func_lo2o_result=${1} ;;\
20039: \ esac\
20040: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20041: && mv -f "$cfgfile.tmp" "$cfgfile" \
20042: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20043: test 0 -eq $? || _lt_function_replace_fail=:
20044:
20045:
20046: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20047: func_xform ()\
20048: {\
20049: func_xform_result=${1%.*}.lo\
20050: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20051: && mv -f "$cfgfile.tmp" "$cfgfile" \
20052: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20053: test 0 -eq $? || _lt_function_replace_fail=:
20054:
20055:
20056: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20057: func_arith ()\
20058: {\
20059: func_arith_result=$(( $* ))\
20060: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20061: && mv -f "$cfgfile.tmp" "$cfgfile" \
20062: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20063: test 0 -eq $? || _lt_function_replace_fail=:
20064:
20065:
20066: sed -e '/^func_len ()$/,/^} # func_len /c\
20067: func_len ()\
20068: {\
20069: func_len_result=${#1}\
20070: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20071: && mv -f "$cfgfile.tmp" "$cfgfile" \
20072: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20073: test 0 -eq $? || _lt_function_replace_fail=:
20074:
20075: fi
20076:
20077: if test x"$lt_shell_append" = xyes; then
20078: sed -e '/^func_append ()$/,/^} # func_append /c\
20079: func_append ()\
20080: {\
20081: eval "${1}+=\\${2}"\
20082: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20083: && mv -f "$cfgfile.tmp" "$cfgfile" \
20084: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20085: test 0 -eq $? || _lt_function_replace_fail=:
20086:
20087:
20088: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20089: func_append_quoted ()\
20090: {\
20091: \ func_quote_for_eval "${2}"\
20092: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20093: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20094: && mv -f "$cfgfile.tmp" "$cfgfile" \
20095: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20096: test 0 -eq $? || _lt_function_replace_fail=:
20097:
20098:
20099: # Save a `func_append' function call where possible by direct use of '+='
20100: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20101: && mv -f "$cfgfile.tmp" "$cfgfile" \
20102: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20103: test 0 -eq $? || _lt_function_replace_fail=:
20104: else
20105: # Save a `func_append' function call even when '+=' is not available
20106: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20107: && mv -f "$cfgfile.tmp" "$cfgfile" \
20108: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20109: test 0 -eq $? || _lt_function_replace_fail=:
20110: fi
20111:
20112: if test x"$_lt_function_replace_fail" = x":"; then
1.11 moko 20113: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20114: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 20115: fi
20116:
20117:
20118: mv -f "$cfgfile" "$ofile" ||
20119: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20120: chmod +x "$ofile"
20121:
20122:
20123: cat <<_LT_EOF >> "$ofile"
20124:
20125: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20126:
20127: # The linker used to build libraries.
20128: LD=$lt_LD_CXX
20129:
20130: # How to create reloadable object files.
20131: reload_flag=$lt_reload_flag_CXX
20132: reload_cmds=$lt_reload_cmds_CXX
20133:
20134: # Commands used to build an old-style archive.
20135: old_archive_cmds=$lt_old_archive_cmds_CXX
20136:
20137: # A language specific compiler.
20138: CC=$lt_compiler_CXX
20139:
20140: # Is the compiler the GNU compiler?
20141: with_gcc=$GCC_CXX
20142:
20143: # Compiler flag to turn off builtin functions.
20144: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20145:
20146: # Additional compiler flags for building library objects.
20147: pic_flag=$lt_lt_prog_compiler_pic_CXX
20148:
20149: # How to pass a linker flag through the compiler.
20150: wl=$lt_lt_prog_compiler_wl_CXX
20151:
20152: # Compiler flag to prevent dynamic linking.
20153: link_static_flag=$lt_lt_prog_compiler_static_CXX
20154:
20155: # Does compiler simultaneously support -c and -o options?
20156: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20157:
20158: # Whether or not to add -lc for building shared libraries.
20159: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20160:
20161: # Whether or not to disallow shared libs when runtime libs are static.
20162: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20163:
20164: # Compiler flag to allow reflexive dlopens.
20165: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20166:
20167: # Compiler flag to generate shared objects directly from archives.
20168: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20169:
20170: # Whether the compiler copes with passing no objects directly.
20171: compiler_needs_object=$lt_compiler_needs_object_CXX
20172:
20173: # Create an old-style archive from a shared archive.
20174: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20175:
20176: # Create a temporary old-style archive to link instead of a shared archive.
20177: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20178:
20179: # Commands used to build a shared archive.
20180: archive_cmds=$lt_archive_cmds_CXX
20181: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20182:
20183: # Commands used to build a loadable module if different from building
20184: # a shared archive.
20185: module_cmds=$lt_module_cmds_CXX
20186: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20187:
20188: # Whether we are building with GNU ld or not.
20189: with_gnu_ld=$lt_with_gnu_ld_CXX
20190:
20191: # Flag that allows shared libraries with undefined symbols to be built.
20192: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20193:
20194: # Flag that enforces no undefined symbols.
20195: no_undefined_flag=$lt_no_undefined_flag_CXX
20196:
20197: # Flag to hardcode \$libdir into a binary during linking.
20198: # This must work even if \$libdir does not exist
20199: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20200:
20201: # Whether we need a single "-rpath" flag with a separated argument.
20202: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20203:
20204: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20205: # DIR into the resulting binary.
20206: hardcode_direct=$hardcode_direct_CXX
20207:
20208: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20209: # DIR into the resulting binary and the resulting library dependency is
20210: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20211: # library is relocated.
20212: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20213:
20214: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20215: # into the resulting binary.
20216: hardcode_minus_L=$hardcode_minus_L_CXX
20217:
20218: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20219: # into the resulting binary.
20220: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20221:
20222: # Set to "yes" if building a shared library automatically hardcodes DIR
20223: # into the library and all subsequent libraries and executables linked
20224: # against it.
20225: hardcode_automatic=$hardcode_automatic_CXX
20226:
20227: # Set to yes if linker adds runtime paths of dependent libraries
20228: # to runtime path list.
20229: inherit_rpath=$inherit_rpath_CXX
20230:
20231: # Whether libtool must link a program against all its dependency libraries.
20232: link_all_deplibs=$link_all_deplibs_CXX
20233:
20234: # Set to "yes" if exported symbols are required.
20235: always_export_symbols=$always_export_symbols_CXX
20236:
20237: # The commands to list exported symbols.
20238: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20239:
20240: # Symbols that should not be listed in the preloaded symbols.
20241: exclude_expsyms=$lt_exclude_expsyms_CXX
20242:
20243: # Symbols that must always be exported.
20244: include_expsyms=$lt_include_expsyms_CXX
20245:
20246: # Commands necessary for linking programs (against libraries) with templates.
20247: prelink_cmds=$lt_prelink_cmds_CXX
20248:
20249: # Commands necessary for finishing linking programs.
20250: postlink_cmds=$lt_postlink_cmds_CXX
20251:
20252: # Specify filename containing input files.
20253: file_list_spec=$lt_file_list_spec_CXX
20254:
20255: # How to hardcode a shared library path into an executable.
20256: hardcode_action=$hardcode_action_CXX
20257:
20258: # The directories searched by this compiler when creating a shared library.
20259: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20260:
20261: # Dependencies to place before and after the objects being linked to
20262: # create a shared library.
20263: predep_objects=$lt_predep_objects_CXX
20264: postdep_objects=$lt_postdep_objects_CXX
20265: predeps=$lt_predeps_CXX
20266: postdeps=$lt_postdeps_CXX
20267:
20268: # The library search path used internally by the compiler when linking
20269: # a shared library.
20270: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20271:
20272: # ### END LIBTOOL TAG CONFIG: CXX
20273: _LT_EOF
1.1 misha 20274:
20275: ;;
20276: esac
1.11 moko 20277: done
20278: _ACEOF
1.1 misha 20279:
1.11 moko 20280: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misha 20281:
1.11 moko 20282: { (exit 0); exit 0; }
1.1 misha 20283: _ACEOF
1.11 moko 20284: chmod +x $CONFIG_STATUS
1.1 misha 20285: ac_clean_files=$ac_clean_files_save
20286:
20287:
20288: # configure is writing to config.log, and then calls config.status.
20289: # config.status does its own redirection, appending to config.log.
20290: # Unfortunately, on DOS this fails, as config.log is still kept open
20291: # by configure, so config.status won't be able to write to it; its
20292: # output is simply discarded. So we exec the FD to /dev/null,
20293: # effectively closing config.log, so it can be properly (re)opened and
20294: # appended to by config.status. When coming back to configure, we
20295: # need to make the FD available again.
20296: if test "$no_create" != yes; then
20297: ac_cs_success=:
20298: ac_config_status_args=
20299: test "$silent" = yes &&
20300: ac_config_status_args="$ac_config_status_args --quiet"
20301: exec 5>/dev/null
20302: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20303: exec 5>>config.log
20304: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20305: # would make configure fail if this is the last instruction.
1.11 moko 20306: $ac_cs_success || { (exit 1); exit 1; }
1.1 misha 20307: fi
20308:
20309: #
20310: # CONFIG_SUBDIRS section.
20311: #
20312: if test "$no_recursion" != yes; then
20313:
1.11 moko 20314: # Remove --cache-file and --srcdir arguments so they do not pile up.
1.1 misha 20315: ac_sub_configure_args=
20316: ac_prev=
1.11 moko 20317: for ac_arg in $ac_configure_args; do
1.1 misha 20318: if test -n "$ac_prev"; then
20319: ac_prev=
20320: continue
20321: fi
20322: case $ac_arg in
20323: -cache-file | --cache-file | --cache-fil | --cache-fi \
20324: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20325: ac_prev=cache_file ;;
20326: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20327: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20328: | --c=*)
20329: ;;
20330: --config-cache | -C)
20331: ;;
20332: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20333: ac_prev=srcdir ;;
20334: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20335: ;;
20336: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20337: ac_prev=prefix ;;
20338: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20339: ;;
1.11 moko 20340: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1.1 misha 20341: esac
20342: done
20343:
20344: # Always prepend --prefix to ensure using the same prefix
20345: # in subdir configurations.
1.11 moko 20346: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
1.1 misha 20347:
20348: ac_popdir=`pwd`
20349: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20350:
20351: # Do not complain, so a configure script can configure whichever
20352: # parts of a large source tree are present.
1.11 moko 20353: test -d $srcdir/$ac_dir || continue
20354:
20355: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20356: echo "$as_me: configuring in $ac_dir" >&6;}
20357: { if $as_mkdir_p; then
20358: mkdir -p "$ac_dir"
20359: else
20360: as_dir="$ac_dir"
20361: as_dirs=
20362: while test ! -d "$as_dir"; do
20363: as_dirs="$as_dir $as_dirs"
20364: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20365: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20366: X"$as_dir" : 'X\(//\)[^/]' \| \
20367: X"$as_dir" : 'X\(//\)$' \| \
20368: X"$as_dir" : 'X\(/\)' \| \
20369: . : '\(.\)' 2>/dev/null ||
20370: echo X"$as_dir" |
20371: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20372: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20373: /^X\(\/\/\)$/{ s//\1/; q; }
20374: /^X\(\/\).*/{ s//\1/; q; }
20375: s/.*/./; q'`
20376: done
20377: test ! -n "$as_dirs" || mkdir $as_dirs
20378: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20379: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20380: { (exit 1); exit 1; }; }; }
1.1 misha 20381:
20382: ac_builddir=.
20383:
1.11 moko 20384: if test "$ac_dir" != .; then
20385: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20386: # A "../" for each directory in $ac_dir_suffix.
20387: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20388: else
20389: ac_dir_suffix= ac_top_builddir=
20390: fi
1.1 misha 20391:
20392: case $srcdir in
1.11 moko 20393: .) # No --srcdir option. We are building in place.
1.1 misha 20394: ac_srcdir=.
1.11 moko 20395: if test -z "$ac_top_builddir"; then
20396: ac_top_srcdir=.
20397: else
20398: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20399: fi ;;
20400: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 20401: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 20402: ac_top_srcdir=$srcdir ;;
20403: *) # Relative path.
20404: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20405: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20406: esac
20407:
20408: # Do not use `cd foo && pwd` to compute absolute paths, because
20409: # the directories may not exist.
20410: case `pwd` in
20411: .) ac_abs_builddir="$ac_dir";;
20412: *)
20413: case "$ac_dir" in
20414: .) ac_abs_builddir=`pwd`;;
20415: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20416: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20417: esac;;
20418: esac
20419: case $ac_abs_builddir in
20420: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20421: *)
20422: case ${ac_top_builddir}. in
20423: .) ac_abs_top_builddir=$ac_abs_builddir;;
20424: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20425: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20426: esac;;
20427: esac
20428: case $ac_abs_builddir in
20429: .) ac_abs_srcdir=$ac_srcdir;;
20430: *)
20431: case $ac_srcdir in
20432: .) ac_abs_srcdir=$ac_abs_builddir;;
20433: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20434: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20435: esac;;
20436: esac
20437: case $ac_abs_builddir in
20438: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20439: *)
20440: case $ac_top_srcdir in
20441: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20442: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20443: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20444: esac;;
1.1 misha 20445: esac
20446:
20447:
1.11 moko 20448: cd $ac_dir
1.1 misha 20449:
20450: # Check for guested configure; otherwise get Cygnus style configure.
1.11 moko 20451: if test -f $ac_srcdir/configure.gnu; then
20452: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20453: elif test -f $ac_srcdir/configure; then
20454: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20455: elif test -f $ac_srcdir/configure.in; then
20456: ac_sub_configure=$ac_configure
1.1 misha 20457: else
1.11 moko 20458: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20459: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 20460: ac_sub_configure=
20461: fi
20462:
20463: # The recursion is here.
20464: if test -n "$ac_sub_configure"; then
20465: # Make the cache file name correct relative to the subdirectory.
20466: case $cache_file in
20467: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.11 moko 20468: *) # Relative path.
20469: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 misha 20470: esac
20471:
1.11 moko 20472: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20473: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 misha 20474: # The eval makes quoting arguments work.
1.11 moko 20475: eval $ac_sub_configure $ac_sub_configure_args \
20476: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20477: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20478: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20479: { (exit 1); exit 1; }; }
1.1 misha 20480: fi
20481:
1.11 moko 20482: cd $ac_popdir
1.1 misha 20483: done
20484: fi
20485:
E-mail: