Annotation of sql/sqlite/configure, revision 1.14
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:
1363:
1.1 misha 1364: am__api_version="1.9"
1365: ac_aux_dir=
1.11 moko 1366: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367: if test -f $ac_dir/install-sh; then
1.1 misha 1368: ac_aux_dir=$ac_dir
1369: ac_install_sh="$ac_aux_dir/install-sh -c"
1370: break
1.11 moko 1371: elif test -f $ac_dir/install.sh; then
1.1 misha 1372: ac_aux_dir=$ac_dir
1373: ac_install_sh="$ac_aux_dir/install.sh -c"
1374: break
1.11 moko 1375: elif test -f $ac_dir/shtool; then
1.1 misha 1376: ac_aux_dir=$ac_dir
1377: ac_install_sh="$ac_aux_dir/shtool install -c"
1378: break
1379: fi
1380: done
1381: if test -z "$ac_aux_dir"; then
1.11 moko 1382: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384: { (exit 1); exit 1; }; }
1385: fi
1386: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 misha 1389:
1390: # Find a good install program. We prefer a C program (faster),
1391: # so one script is as good as another. But avoid the broken or
1392: # incompatible versions:
1393: # SysV /etc/install, /usr/sbin/install
1394: # SunOS /usr/etc/install
1395: # IRIX /sbin/install
1396: # AIX /bin/install
1397: # AmigaOS /C/install, which installs bootblocks on floppy discs
1398: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1401: # OS/2's system install, which has a completely different semantic
1402: # ./install, which can be erroneously created by make from ./install.sh.
1.11 moko 1403: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1404: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 misha 1405: if test -z "$INSTALL"; then
1.11 moko 1406: if test "${ac_cv_path_install+set}" = set; then
1407: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1408: else
1409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410: for as_dir in $PATH
1411: do
1412: IFS=$as_save_IFS
1413: test -z "$as_dir" && as_dir=.
1.11 moko 1414: # Account for people who put trailing slashes in PATH elements.
1415: case $as_dir/ in
1416: ./ | .// | /cC/* | \
1.1 misha 1417: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.11 moko 1418: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 misha 1419: /usr/ucb/* ) ;;
1420: *)
1421: # OSF1 and SCO ODT 3.0 have their own names for install.
1422: # Don't use installbsd from OSF since it installs stuff as root
1423: # by default.
1424: for ac_prog in ginstall scoinst install; do
1425: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 1426: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misha 1427: if test $ac_prog = install &&
1428: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429: # AIX install. It has an incompatible calling convention.
1430: :
1431: elif test $ac_prog = install &&
1432: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1433: # program-specific install script used by HP pwplus--don't use.
1434: :
1435: else
1.11 moko 1436: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1437: break 3
1.1 misha 1438: fi
1439: fi
1440: done
1441: done
1442: ;;
1443: esac
1.11 moko 1444: done
1.1 misha 1445:
1446:
1447: fi
1448: if test "${ac_cv_path_install+set}" = set; then
1449: INSTALL=$ac_cv_path_install
1450: else
1.11 moko 1451: # As a last resort, use the slow shell script. We don't cache a
1452: # path for INSTALL within a source directory, because that will
1.1 misha 1453: # break other packages using the cache if that directory is
1.11 moko 1454: # removed, or if the path is relative.
1.1 misha 1455: INSTALL=$ac_install_sh
1456: fi
1457: fi
1.11 moko 1458: echo "$as_me:$LINENO: result: $INSTALL" >&5
1459: echo "${ECHO_T}$INSTALL" >&6
1.1 misha 1460:
1461: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1462: # It thinks the first close brace ends the variable substitution.
1463: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464:
1465: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1466:
1467: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468:
1.11 moko 1469: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1470: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 misha 1471: # Just in case
1472: sleep 1
1473: echo timestamp > conftest.file
1474: # Do `set' in a subshell so we don't clobber the current shell's
1475: # arguments. Must try -L first in case configure is actually a
1476: # symlink; some systems play weird games with the mod time of symlinks
1477: # (eg FreeBSD returns the mod time of the symlink's containing
1478: # directory).
1479: if (
1480: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1481: if test "$*" = "X"; then
1482: # -L didn't work.
1483: set X `ls -t $srcdir/configure conftest.file`
1484: fi
1485: rm -f conftest.file
1486: if test "$*" != "X $srcdir/configure conftest.file" \
1487: && test "$*" != "X conftest.file $srcdir/configure"; then
1488:
1489: # If neither matched, then we have a broken ls. This can happen
1490: # if, for instance, CONFIG_SHELL is bash and it inherits a
1491: # broken ls alias from the environment. This has actually
1492: # happened. Such a system could not be considered "sane".
1.11 moko 1493: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1494: alias in your environment" >&5
1495: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1496: alias in your environment" >&2;}
1497: { (exit 1); exit 1; }; }
1.1 misha 1498: fi
1499:
1500: test "$2" = conftest.file
1501: )
1502: then
1503: # Ok.
1504: :
1505: else
1.11 moko 1506: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1507: Check your system clock" >&5
1508: echo "$as_me: error: newly created file is older than distributed files!
1509: Check your system clock" >&2;}
1510: { (exit 1); exit 1; }; }
1.1 misha 1511: fi
1.11 moko 1512: echo "$as_me:$LINENO: result: yes" >&5
1513: echo "${ECHO_T}yes" >&6
1.1 misha 1514: test "$program_prefix" != NONE &&
1.11 moko 1515: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 misha 1516: # Use a double $ so make ignores it.
1517: test "$program_suffix" != NONE &&
1.11 moko 1518: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1519: # Double any \ or $. echo might interpret backslashes.
1.1 misha 1520: # By default was `s,x,x', remove it if useless.
1.11 moko 1521: cat <<\_ACEOF >conftest.sed
1522: s/[\\$]/&&/g;s/;s,x,x,$//
1523: _ACEOF
1524: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1525: rm conftest.sed
1.1 misha 1526:
1527: # expand $ac_aux_dir to an absolute path
1528: am_aux_dir=`cd $ac_aux_dir && pwd`
1529:
1530: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531: # Use eval to expand $SHELL
1532: if eval "$MISSING --run true"; then
1533: am_missing_run="$MISSING --run "
1534: else
1535: am_missing_run=
1.11 moko 1536: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1 misha 1538: fi
1539:
1540: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1541: # We used to keeping the `.' as first argument, in order to
1542: # allow $(mkdir_p) to be used without argument. As in
1543: # $(mkdir_p) $(somedir)
1544: # where $(somedir) is conditionally defined. However this is wrong
1545: # for two reasons:
1546: # 1. if the package is installed by a user who cannot write `.'
1547: # make install will fail,
1548: # 2. the above comment should most certainly read
1549: # $(mkdir_p) $(DESTDIR)$(somedir)
1550: # so it does not work when $(somedir) is undefined and
1551: # $(DESTDIR) is not.
1552: # To support the latter case, we have to write
1553: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1554: # so the `.' trick is pointless.
1555: mkdir_p='mkdir -p --'
1556: else
1557: # On NextStep and OpenStep, the `mkdir' command does not
1558: # recognize any option. It will interpret all options as
1559: # directories to create, and then abort because `.' already
1560: # exists.
1561: for d in ./-p ./--version;
1562: do
1563: test -d $d && rmdir $d
1564: done
1565: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1566: if test -f "$ac_aux_dir/mkinstalldirs"; then
1567: mkdir_p='$(mkinstalldirs)'
1568: else
1569: mkdir_p='$(install_sh) -d'
1570: fi
1571: fi
1572:
1573: for ac_prog in gawk mawk nawk awk
1574: do
1575: # Extract the first word of "$ac_prog", so it can be a program name with args.
1576: set dummy $ac_prog; ac_word=$2
1.11 moko 1577: echo "$as_me:$LINENO: checking for $ac_word" >&5
1578: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579: if test "${ac_cv_prog_AWK+set}" = set; then
1580: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1581: else
1582: if test -n "$AWK"; then
1583: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1584: else
1585: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586: for as_dir in $PATH
1587: do
1588: IFS=$as_save_IFS
1589: test -z "$as_dir" && as_dir=.
1.11 moko 1590: for ac_exec_ext in '' $ac_executable_extensions; do
1591: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1592: ac_cv_prog_AWK="$ac_prog"
1.11 moko 1593: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1594: break 2
1595: fi
1596: done
1.11 moko 1597: done
1.1 misha 1598:
1599: fi
1600: fi
1601: AWK=$ac_cv_prog_AWK
1602: if test -n "$AWK"; then
1.11 moko 1603: echo "$as_me:$LINENO: result: $AWK" >&5
1604: echo "${ECHO_T}$AWK" >&6
1.1 misha 1605: else
1.11 moko 1606: echo "$as_me:$LINENO: result: no" >&5
1607: echo "${ECHO_T}no" >&6
1.1 misha 1608: fi
1609:
1610: test -n "$AWK" && break
1611: done
1612:
1.11 moko 1613: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1614: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1615: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1616: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1617: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1618: else
1619: cat >conftest.make <<\_ACEOF
1620: all:
1.11 moko 1621: @echo 'ac_maketemp="$(MAKE)"'
1.1 misha 1622: _ACEOF
1.11 moko 1623: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1624: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1625: if test -n "$ac_maketemp"; then
1626: eval ac_cv_prog_make_${ac_make}_set=yes
1627: else
1628: eval ac_cv_prog_make_${ac_make}_set=no
1629: fi
1.1 misha 1630: rm -f conftest.make
1631: fi
1.11 moko 1632: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1633: echo "$as_me:$LINENO: result: yes" >&5
1634: echo "${ECHO_T}yes" >&6
1.1 misha 1635: SET_MAKE=
1636: else
1.11 moko 1637: echo "$as_me:$LINENO: result: no" >&5
1638: echo "${ECHO_T}no" >&6
1.1 misha 1639: SET_MAKE="MAKE=${MAKE-make}"
1640: fi
1641:
1642: rm -rf .tst 2>/dev/null
1643: mkdir .tst 2>/dev/null
1644: if test -d .tst; then
1645: am__leading_dot=.
1646: else
1647: am__leading_dot=_
1648: fi
1649: rmdir .tst 2>/dev/null
1650:
1651: # test to see if srcdir already configured
1652: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1653: test -f $srcdir/config.status; then
1.11 moko 1654: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1655: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1656: { (exit 1); exit 1; }; }
1.1 misha 1657: fi
1658:
1659: # test whether we have cygpath
1660: if test -z "$CYGPATH_W"; then
1661: if (cygpath --version) >/dev/null 2>/dev/null; then
1662: CYGPATH_W='cygpath -w'
1663: else
1664: CYGPATH_W=echo
1665: fi
1666: fi
1667:
1668:
1669: # Define the identity of the package.
1.13 moko 1670: PACKAGE='parser3sqlite-c'
1671: VERSION='10.2'
1.1 misha 1672:
1673:
1.13 moko 1674: cat >>confdefs.h <<_ACEOF
1675: #define PACKAGE "$PACKAGE"
1676: _ACEOF
1677:
1678:
1679: cat >>confdefs.h <<_ACEOF
1680: #define VERSION "$VERSION"
1681: _ACEOF
1682:
1.1 misha 1683: # Some tools Automake needs.
1684:
1685: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1686:
1687:
1688: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1689:
1690:
1691: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1692:
1693:
1694: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1695:
1696:
1697: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1698:
1699: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1700:
1701: # Installed binaries are usually stripped using `strip' when the user
1702: # run `make install-strip'. However `strip' might not be the right
1703: # tool to use in cross-compilation environments, therefore Automake
1704: # will honor the `STRIP' environment variable to overrule this program.
1705: if test "$cross_compiling" != no; then
1706: if test -n "$ac_tool_prefix"; then
1707: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1708: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 1709: echo "$as_me:$LINENO: checking for $ac_word" >&5
1710: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711: if test "${ac_cv_prog_STRIP+set}" = set; then
1712: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1713: else
1714: if test -n "$STRIP"; then
1715: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1716: else
1717: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718: for as_dir in $PATH
1719: do
1720: IFS=$as_save_IFS
1721: test -z "$as_dir" && as_dir=.
1.11 moko 1722: for ac_exec_ext in '' $ac_executable_extensions; do
1723: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1724: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 1725: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1726: break 2
1727: fi
1728: done
1.11 moko 1729: done
1730:
1.1 misha 1731: fi
1732: fi
1733: STRIP=$ac_cv_prog_STRIP
1734: if test -n "$STRIP"; then
1.11 moko 1735: echo "$as_me:$LINENO: result: $STRIP" >&5
1736: echo "${ECHO_T}$STRIP" >&6
1.1 misha 1737: else
1.11 moko 1738: echo "$as_me:$LINENO: result: no" >&5
1739: echo "${ECHO_T}no" >&6
1.1 misha 1740: fi
1741:
1742: fi
1743: if test -z "$ac_cv_prog_STRIP"; then
1744: ac_ct_STRIP=$STRIP
1745: # Extract the first word of "strip", so it can be a program name with args.
1746: set dummy strip; ac_word=$2
1.11 moko 1747: echo "$as_me:$LINENO: checking for $ac_word" >&5
1748: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1750: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1751: else
1752: if test -n "$ac_ct_STRIP"; then
1753: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1754: else
1755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756: for as_dir in $PATH
1757: do
1758: IFS=$as_save_IFS
1759: test -z "$as_dir" && as_dir=.
1.11 moko 1760: for ac_exec_ext in '' $ac_executable_extensions; do
1761: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1762: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 1763: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1764: break 2
1765: fi
1766: done
1.11 moko 1767: done
1.1 misha 1768:
1.11 moko 1769: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 1770: fi
1771: fi
1772: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1773: if test -n "$ac_ct_STRIP"; then
1.11 moko 1774: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1775: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 misha 1776: else
1.11 moko 1777: echo "$as_me:$LINENO: result: no" >&5
1778: echo "${ECHO_T}no" >&6
1.1 misha 1779: fi
1780:
1.11 moko 1781: STRIP=$ac_ct_STRIP
1.1 misha 1782: else
1783: STRIP="$ac_cv_prog_STRIP"
1784: fi
1785:
1786: fi
1787: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1788:
1789: # We need awk for the "check" target. The system "awk" is bad on
1790: # some platforms.
1791: # Always define AMTAR for backward compatibility.
1792:
1793: AMTAR=${AMTAR-"${am_missing_run}tar"}
1794:
1795: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1796:
1797:
1798:
1799:
1800:
1801:
1802:
1803:
1804:
1805:
1806:
1.11 moko 1807: # Check whether --with-sqlite-inc or --without-sqlite-inc was given.
1808: if test "${with_sqlite_inc+set}" = set; then
1809: withval="$with_sqlite_inc"
1.1 misha 1810:
1811: if test -r "$withval/sqlite3.h"; then
1812: SQLITE_INC=$withval
1813: fi
1814:
1815:
1.4 misha 1816: if test -z "$SQLITE_INC"; then
1.11 moko 1817: { { echo "$as_me:$LINENO: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&5
1818: echo "$as_me: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&2;}
1819: { (exit 1); exit 1; }; }
1.4 misha 1820: fi
1.1 misha 1821:
1822: else
1.11 moko 1823: echo "$as_me:$LINENO: checking for SQLITE_INC directory" >&5
1824: echo $ECHO_N "checking for SQLITE_INC directory... $ECHO_C" >&6
1.1 misha 1825: for d in \
1.9 moko 1826: /usr/local/include \
1827: /usr/include \
1.1 misha 1828: /usr/local/include/sqlite \
1829: /usr/include/sqlite ; do
1830:
1831: if test -r "$d/sqlite3.h"; then
1832: SQLITE_INC=$d
1833: fi
1834:
1835: done
1836:
1.4 misha 1837: if test -z "$SQLITE_INC"; then
1.11 moko 1838: { { echo "$as_me:$LINENO: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&5
1839: echo "$as_me: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&2;}
1840: { (exit 1); exit 1; }; }
1.4 misha 1841: fi
1.1 misha 1842:
1.11 moko 1843: echo "$as_me:$LINENO: result: $SQLITE_INC" >&5
1844: echo "${ECHO_T}$SQLITE_INC" >&6
1.1 misha 1845:
1.11 moko 1846: fi;
1.1 misha 1847:
1848:
1849:
1850:
1.11 moko 1851: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
1852: if test "${with_dynamic_stdcpp+set}" = set; then
1853: withval="$with_dynamic_stdcpp"
1.6 misha 1854:
1855: LDFLAGS="-lstdc++"
1856:
1857: else
1858:
1859: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
1860:
1.11 moko 1861: fi;
1862:
1863:
1864:
1.13 moko 1865:
1.11 moko 1866: # Find a good install program. We prefer a C program (faster),
1867: # so one script is as good as another. But avoid the broken or
1868: # incompatible versions:
1869: # SysV /etc/install, /usr/sbin/install
1870: # SunOS /usr/etc/install
1871: # IRIX /sbin/install
1872: # AIX /bin/install
1873: # AmigaOS /C/install, which installs bootblocks on floppy discs
1874: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1875: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877: # OS/2's system install, which has a completely different semantic
1878: # ./install, which can be erroneously created by make from ./install.sh.
1879: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1880: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1881: if test -z "$INSTALL"; then
1882: if test "${ac_cv_path_install+set}" = set; then
1883: echo $ECHO_N "(cached) $ECHO_C" >&6
1884: else
1885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886: for as_dir in $PATH
1887: do
1888: IFS=$as_save_IFS
1889: test -z "$as_dir" && as_dir=.
1890: # Account for people who put trailing slashes in PATH elements.
1891: case $as_dir/ in
1892: ./ | .// | /cC/* | \
1893: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1894: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1895: /usr/ucb/* ) ;;
1896: *)
1897: # OSF1 and SCO ODT 3.0 have their own names for install.
1898: # Don't use installbsd from OSF since it installs stuff as root
1899: # by default.
1900: for ac_prog in ginstall scoinst install; do
1901: for ac_exec_ext in '' $ac_executable_extensions; do
1902: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1903: if test $ac_prog = install &&
1904: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1905: # AIX install. It has an incompatible calling convention.
1906: :
1907: elif test $ac_prog = install &&
1908: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1909: # program-specific install script used by HP pwplus--don't use.
1910: :
1911: else
1912: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1913: break 3
1914: fi
1915: fi
1916: done
1917: done
1918: ;;
1919: esac
1920: done
1921:
1922:
1923: fi
1924: if test "${ac_cv_path_install+set}" = set; then
1925: INSTALL=$ac_cv_path_install
1926: else
1927: # As a last resort, use the slow shell script. We don't cache a
1928: # path for INSTALL within a source directory, because that will
1929: # break other packages using the cache if that directory is
1930: # removed, or if the path is relative.
1931: INSTALL=$ac_install_sh
1932: fi
1.10 moko 1933: fi
1.11 moko 1934: echo "$as_me:$LINENO: result: $INSTALL" >&5
1935: echo "${ECHO_T}$INSTALL" >&6
1.6 misha 1936:
1.11 moko 1937: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1938: # It thinks the first close brace ends the variable substitution.
1939: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.6 misha 1940:
1.11 moko 1941: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.6 misha 1942:
1.11 moko 1943: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 misha 1944:
1.11 moko 1945: ac_ext=cc
1.1 misha 1946: ac_cpp='$CXXCPP $CPPFLAGS'
1947: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 1950: if test -n "$ac_tool_prefix"; then
1951: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1952: do
1953: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1954: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 1955: echo "$as_me:$LINENO: checking for $ac_word" >&5
1956: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957: if test "${ac_cv_prog_CXX+set}" = set; then
1958: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1959: else
1960: if test -n "$CXX"; then
1961: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1962: else
1963: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964: for as_dir in $PATH
1965: do
1966: IFS=$as_save_IFS
1967: test -z "$as_dir" && as_dir=.
1.11 moko 1968: for ac_exec_ext in '' $ac_executable_extensions; do
1969: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1970: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.11 moko 1971: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1972: break 2
1973: fi
1974: done
1.11 moko 1975: done
1.1 misha 1976:
1977: fi
1978: fi
1979: CXX=$ac_cv_prog_CXX
1980: if test -n "$CXX"; then
1.11 moko 1981: echo "$as_me:$LINENO: result: $CXX" >&5
1982: echo "${ECHO_T}$CXX" >&6
1.1 misha 1983: else
1.11 moko 1984: echo "$as_me:$LINENO: result: no" >&5
1985: echo "${ECHO_T}no" >&6
1.1 misha 1986: fi
1987:
1988: test -n "$CXX" && break
1989: done
1990: fi
1991: if test -z "$CXX"; then
1992: ac_ct_CXX=$CXX
1.11 moko 1993: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1994: do
1995: # Extract the first word of "$ac_prog", so it can be a program name with args.
1996: set dummy $ac_prog; ac_word=$2
1.11 moko 1997: echo "$as_me:$LINENO: checking for $ac_word" >&5
1998: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2000: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2001: else
2002: if test -n "$ac_ct_CXX"; then
2003: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2004: else
2005: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006: for as_dir in $PATH
2007: do
2008: IFS=$as_save_IFS
2009: test -z "$as_dir" && as_dir=.
1.11 moko 2010: for ac_exec_ext in '' $ac_executable_extensions; do
2011: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2012: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.11 moko 2013: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2014: break 2
2015: fi
2016: done
1.11 moko 2017: done
1.1 misha 2018:
2019: fi
2020: fi
2021: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2022: if test -n "$ac_ct_CXX"; then
1.11 moko 2023: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2024: echo "${ECHO_T}$ac_ct_CXX" >&6
1.1 misha 2025: else
1.11 moko 2026: echo "$as_me:$LINENO: result: no" >&5
2027: echo "${ECHO_T}no" >&6
1.1 misha 2028: fi
2029:
2030: test -n "$ac_ct_CXX" && break
2031: done
1.11 moko 2032: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 misha 2033:
1.11 moko 2034: CXX=$ac_ct_CXX
1.1 misha 2035: fi
2036:
1.11 moko 2037:
1.1 misha 2038: # Provide some information about the compiler.
1.11 moko 2039: echo "$as_me:$LINENO:" \
2040: "checking for C++ compiler version" >&5
2041: ac_compiler=`set X $ac_compile; echo $2`
2042: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2043: (eval $ac_compiler --version </dev/null >&5) 2>&5
2044: ac_status=$?
2045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046: (exit $ac_status); }
2047: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2048: (eval $ac_compiler -v </dev/null >&5) 2>&5
2049: ac_status=$?
2050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051: (exit $ac_status); }
2052: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2053: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2054: ac_status=$?
1.11 moko 2055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056: (exit $ac_status); }
1.1 misha 2057:
1.11 moko 2058: cat >conftest.$ac_ext <<_ACEOF
2059: /* confdefs.h. */
2060: _ACEOF
2061: cat confdefs.h >>conftest.$ac_ext
2062: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2063: /* end confdefs.h. */
2064:
2065: int
2066: main ()
2067: {
2068:
2069: ;
2070: return 0;
2071: }
2072: _ACEOF
2073: ac_clean_files_save=$ac_clean_files
1.11 moko 2074: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 misha 2075: # Try to create an executable without -o first, disregard a.out.
2076: # It will help us diagnose broken compilers, and finding out an intuition
2077: # of exeext.
1.11 moko 2078: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2079: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2080: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2081: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2082: (eval $ac_link_default) 2>&5
2083: ac_status=$?
2084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085: (exit $ac_status); }; then
2086: # Find the output, starting from the most likely. This scheme is
2087: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2088: # resort.
2089:
2090: # Be careful to initialize this variable, since it used to be cached.
2091: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2092: ac_cv_exeext=
2093: # b.out is created by i960 compilers.
2094: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.1 misha 2095: do
2096: test -f "$ac_file" || continue
2097: case $ac_file in
1.11 moko 2098: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2099: ;;
2100: conftest.$ac_ext )
2101: # This is the source file.
1.1 misha 2102: ;;
2103: [ab].out )
2104: # We found the default executable, but exeext='' is most
2105: # certainly right.
2106: break;;
2107: *.* )
1.11 moko 2108: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109: # FIXME: I believe we export ac_cv_exeext for Libtool,
2110: # but it would be cool to find out if it's true. Does anybody
2111: # maintain Libtool? --akim.
2112: export ac_cv_exeext
1.1 misha 2113: break;;
2114: * )
2115: break;;
2116: esac
2117: done
1.11 moko 2118: else
2119: echo "$as_me: failed program was:" >&5
2120: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2121:
1.11 moko 2122: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2123: See \`config.log' for more details." >&5
2124: echo "$as_me: error: C++ compiler cannot create executables
2125: See \`config.log' for more details." >&2;}
2126: { (exit 77); exit 77; }; }
1.10 moko 2127: fi
1.1 misha 2128:
2129: ac_exeext=$ac_cv_exeext
1.11 moko 2130: echo "$as_me:$LINENO: result: $ac_file" >&5
2131: echo "${ECHO_T}$ac_file" >&6
2132:
2133: # Check the compiler produces executables we can run. If not, either
2134: # the compiler is broken, or we cross compile.
2135: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2136: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2137: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2138: # If not cross compiling, check that we can run a simple program.
2139: if test "$cross_compiling" != yes; then
2140: if { ac_try='./$ac_file'
2141: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142: (eval $ac_try) 2>&5
2143: ac_status=$?
2144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145: (exit $ac_status); }; }; then
2146: cross_compiling=no
2147: else
2148: if test "$cross_compiling" = maybe; then
2149: cross_compiling=yes
2150: else
2151: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2152: If you meant to cross compile, use \`--host'.
2153: See \`config.log' for more details." >&5
2154: echo "$as_me: error: cannot run C++ compiled programs.
2155: If you meant to cross compile, use \`--host'.
2156: See \`config.log' for more details." >&2;}
2157: { (exit 1); exit 1; }; }
2158: fi
2159: fi
2160: fi
2161: echo "$as_me:$LINENO: result: yes" >&5
2162: echo "${ECHO_T}yes" >&6
1.1 misha 2163:
1.11 moko 2164: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 misha 2165: ac_clean_files=$ac_clean_files_save
1.11 moko 2166: # Check the compiler produces executables we can run. If not, either
2167: # the compiler is broken, or we cross compile.
2168: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2169: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2170: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2171: echo "${ECHO_T}$cross_compiling" >&6
2172:
2173: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2174: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2175: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2176: (eval $ac_link) 2>&5
1.1 misha 2177: ac_status=$?
1.11 moko 2178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179: (exit $ac_status); }; then
1.1 misha 2180: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2181: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2182: # work properly (i.e., refer to `conftest.exe'), while it won't with
2183: # `rm'.
2184: for ac_file in conftest.exe conftest conftest.*; do
2185: test -f "$ac_file" || continue
2186: case $ac_file in
1.11 moko 2187: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.1 misha 2188: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.11 moko 2189: export ac_cv_exeext
1.1 misha 2190: break;;
2191: * ) break;;
2192: esac
2193: done
2194: else
1.11 moko 2195: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2196: See \`config.log' for more details." >&5
2197: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2198: See \`config.log' for more details." >&2;}
2199: { (exit 1); exit 1; }; }
2200: fi
2201:
2202: rm -f conftest$ac_cv_exeext
2203: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2204: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 misha 2205:
2206: rm -f conftest.$ac_ext
2207: EXEEXT=$ac_cv_exeext
2208: ac_exeext=$EXEEXT
1.11 moko 2209: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2210: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2211: if test "${ac_cv_objext+set}" = set; then
2212: echo $ECHO_N "(cached) $ECHO_C" >&6
2213: else
2214: cat >conftest.$ac_ext <<_ACEOF
2215: /* confdefs.h. */
1.10 moko 2216: _ACEOF
1.11 moko 2217: cat confdefs.h >>conftest.$ac_ext
2218: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2219: /* end confdefs.h. */
2220:
2221: int
2222: main ()
2223: {
2224:
2225: ;
2226: return 0;
2227: }
2228: _ACEOF
2229: rm -f conftest.o conftest.obj
1.11 moko 2230: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231: (eval $ac_compile) 2>&5
2232: ac_status=$?
2233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234: (exit $ac_status); }; then
2235: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1.1 misha 2236: case $ac_file in
1.11 moko 2237: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.1 misha 2238: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2239: break;;
2240: esac
2241: done
2242: else
1.11 moko 2243: echo "$as_me: failed program was:" >&5
1.1 misha 2244: sed 's/^/| /' conftest.$ac_ext >&5
2245:
1.11 moko 2246: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2247: See \`config.log' for more details." >&5
2248: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2249: See \`config.log' for more details." >&2;}
2250: { (exit 1); exit 1; }; }
1.1 misha 2251: fi
1.11 moko 2252:
1.1 misha 2253: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2254: fi
1.11 moko 2255: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2256: echo "${ECHO_T}$ac_cv_objext" >&6
1.1 misha 2257: OBJEXT=$ac_cv_objext
2258: ac_objext=$OBJEXT
1.11 moko 2259: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2260: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2261: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2262: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2263: else
1.11 moko 2264: cat >conftest.$ac_ext <<_ACEOF
2265: /* confdefs.h. */
2266: _ACEOF
2267: cat confdefs.h >>conftest.$ac_ext
2268: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2269: /* end confdefs.h. */
2270:
2271: int
2272: main ()
2273: {
2274: #ifndef __GNUC__
2275: choke me
2276: #endif
2277:
2278: ;
2279: return 0;
2280: }
2281: _ACEOF
1.11 moko 2282: rm -f conftest.$ac_objext
2283: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284: (eval $ac_compile) 2>conftest.er1
2285: ac_status=$?
2286: grep -v '^ *+' conftest.er1 >conftest.err
2287: rm -f conftest.er1
2288: cat conftest.err >&5
2289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290: (exit $ac_status); } &&
2291: { ac_try='test -z "$ac_cxx_werror_flag"
2292: || test ! -s conftest.err'
2293: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294: (eval $ac_try) 2>&5
2295: ac_status=$?
2296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297: (exit $ac_status); }; } &&
2298: { ac_try='test -s conftest.$ac_objext'
2299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300: (eval $ac_try) 2>&5
2301: ac_status=$?
2302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303: (exit $ac_status); }; }; then
1.1 misha 2304: ac_compiler_gnu=yes
2305: else
1.11 moko 2306: echo "$as_me: failed program was:" >&5
2307: sed 's/^/| /' conftest.$ac_ext >&5
2308:
2309: ac_compiler_gnu=no
1.1 misha 2310: fi
1.11 moko 2311: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 2312: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2313:
2314: fi
1.11 moko 2315: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2316: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2317: GXX=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 2318: ac_test_CXXFLAGS=${CXXFLAGS+set}
2319: ac_save_CXXFLAGS=$CXXFLAGS
1.11 moko 2320: CXXFLAGS="-g"
2321: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2322: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2323: if test "${ac_cv_prog_cxx_g+set}" = set; then
2324: echo $ECHO_N "(cached) $ECHO_C" >&6
2325: else
2326: cat >conftest.$ac_ext <<_ACEOF
2327: /* confdefs.h. */
2328: _ACEOF
2329: cat confdefs.h >>conftest.$ac_ext
2330: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2331: /* end confdefs.h. */
2332:
2333: int
2334: main ()
2335: {
2336:
2337: ;
2338: return 0;
2339: }
2340: _ACEOF
1.11 moko 2341: rm -f conftest.$ac_objext
2342: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343: (eval $ac_compile) 2>conftest.er1
2344: ac_status=$?
2345: grep -v '^ *+' conftest.er1 >conftest.err
2346: rm -f conftest.er1
2347: cat conftest.err >&5
2348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349: (exit $ac_status); } &&
2350: { ac_try='test -z "$ac_cxx_werror_flag"
2351: || test ! -s conftest.err'
2352: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353: (eval $ac_try) 2>&5
2354: ac_status=$?
2355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356: (exit $ac_status); }; } &&
2357: { ac_try='test -s conftest.$ac_objext'
2358: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359: (eval $ac_try) 2>&5
2360: ac_status=$?
2361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362: (exit $ac_status); }; }; then
1.1 misha 2363: ac_cv_prog_cxx_g=yes
2364: else
1.11 moko 2365: echo "$as_me: failed program was:" >&5
2366: sed 's/^/| /' conftest.$ac_ext >&5
2367:
2368: ac_cv_prog_cxx_g=no
2369: fi
2370: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371: fi
2372: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2373: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2374: if test "$ac_test_CXXFLAGS" = set; then
2375: CXXFLAGS=$ac_save_CXXFLAGS
2376: elif test $ac_cv_prog_cxx_g = yes; then
2377: if test "$GXX" = yes; then
2378: CXXFLAGS="-g -O2"
2379: else
2380: CXXFLAGS="-g"
2381: fi
2382: else
2383: if test "$GXX" = yes; then
2384: CXXFLAGS="-O2"
2385: else
2386: CXXFLAGS=
2387: fi
2388: fi
2389: for ac_declaration in \
2390: '' \
2391: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2392: 'extern "C" void std::exit (int); using std::exit;' \
2393: 'extern "C" void exit (int) throw ();' \
2394: 'extern "C" void exit (int);' \
2395: 'void exit (int);'
2396: do
2397: cat >conftest.$ac_ext <<_ACEOF
2398: /* confdefs.h. */
2399: _ACEOF
2400: cat confdefs.h >>conftest.$ac_ext
2401: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2402: /* end confdefs.h. */
1.11 moko 2403: $ac_declaration
2404: #include <stdlib.h>
1.1 misha 2405: int
2406: main ()
2407: {
1.11 moko 2408: exit (42);
1.1 misha 2409: ;
2410: return 0;
2411: }
2412: _ACEOF
1.11 moko 2413: rm -f conftest.$ac_objext
2414: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415: (eval $ac_compile) 2>conftest.er1
2416: ac_status=$?
2417: grep -v '^ *+' conftest.er1 >conftest.err
2418: rm -f conftest.er1
2419: cat conftest.err >&5
2420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421: (exit $ac_status); } &&
2422: { ac_try='test -z "$ac_cxx_werror_flag"
2423: || test ! -s conftest.err'
2424: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425: (eval $ac_try) 2>&5
2426: ac_status=$?
2427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428: (exit $ac_status); }; } &&
2429: { ac_try='test -s conftest.$ac_objext'
2430: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431: (eval $ac_try) 2>&5
2432: ac_status=$?
2433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434: (exit $ac_status); }; }; then
2435: :
2436: else
2437: echo "$as_me: failed program was:" >&5
2438: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2439:
1.11 moko 2440: continue
2441: fi
2442: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443: cat >conftest.$ac_ext <<_ACEOF
2444: /* confdefs.h. */
2445: _ACEOF
2446: cat confdefs.h >>conftest.$ac_ext
2447: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2448: /* end confdefs.h. */
1.11 moko 2449: $ac_declaration
1.1 misha 2450: int
2451: main ()
2452: {
1.11 moko 2453: exit (42);
1.1 misha 2454: ;
2455: return 0;
2456: }
2457: _ACEOF
1.11 moko 2458: rm -f conftest.$ac_objext
2459: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460: (eval $ac_compile) 2>conftest.er1
2461: ac_status=$?
2462: grep -v '^ *+' conftest.er1 >conftest.err
2463: rm -f conftest.er1
2464: cat conftest.err >&5
2465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466: (exit $ac_status); } &&
2467: { ac_try='test -z "$ac_cxx_werror_flag"
2468: || test ! -s conftest.err'
2469: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470: (eval $ac_try) 2>&5
2471: ac_status=$?
2472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473: (exit $ac_status); }; } &&
2474: { ac_try='test -s conftest.$ac_objext'
2475: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476: (eval $ac_try) 2>&5
2477: ac_status=$?
2478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479: (exit $ac_status); }; }; then
2480: break
2481: else
2482: echo "$as_me: failed program was:" >&5
2483: sed 's/^/| /' conftest.$ac_ext >&5
2484:
1.10 moko 2485: fi
1.11 moko 2486: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487: done
2488: rm -f conftest*
2489: if test -n "$ac_declaration"; then
2490: echo '#ifdef __cplusplus' >>confdefs.h
2491: echo $ac_declaration >>confdefs.h
2492: echo '#endif' >>confdefs.h
1.1 misha 2493: fi
1.11 moko 2494:
1.1 misha 2495: ac_ext=c
2496: ac_cpp='$CPP $CPPFLAGS'
2497: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500: DEPDIR="${am__leading_dot}deps"
2501:
1.11 moko 2502: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 2503:
2504:
2505: am_make=${MAKE-make}
2506: cat > confinc << 'END'
2507: am__doit:
2508: @echo done
2509: .PHONY: am__doit
2510: END
2511: # If we don't find an include directive, just comment out the code.
1.11 moko 2512: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2513: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1.1 misha 2514: am__include="#"
2515: am__quote=
2516: _am_result=none
2517: # First try GNU make style include.
2518: echo "include confinc" > confmf
2519: # We grep out `Entering directory' and `Leaving directory'
2520: # messages which can occur if `w' ends up in MAKEFLAGS.
2521: # In particular we don't look at `^make:' because GNU make might
2522: # be invoked under some other name (usually "gmake"), in which
2523: # case it prints its new name instead of `make'.
2524: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2525: am__include=include
2526: am__quote=
2527: _am_result=GNU
2528: fi
2529: # Now try BSD make style include.
2530: if test "$am__include" = "#"; then
2531: echo '.include "confinc"' > confmf
2532: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2533: am__include=.include
2534: am__quote="\""
2535: _am_result=BSD
2536: fi
2537: fi
2538:
2539:
1.11 moko 2540: echo "$as_me:$LINENO: result: $_am_result" >&5
2541: echo "${ECHO_T}$_am_result" >&6
1.1 misha 2542: rm -f confinc confmf
2543:
1.11 moko 2544: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2545: if test "${enable_dependency_tracking+set}" = set; then
2546: enableval="$enable_dependency_tracking"
1.1 misha 2547:
1.11 moko 2548: fi;
1.1 misha 2549: if test "x$enable_dependency_tracking" != xno; then
2550: am_depcomp="$ac_aux_dir/depcomp"
2551: AMDEPBACKSLASH='\'
2552: fi
2553:
2554:
2555: if test "x$enable_dependency_tracking" != xno; then
2556: AMDEP_TRUE=
2557: AMDEP_FALSE='#'
2558: else
2559: AMDEP_TRUE='#'
2560: AMDEP_FALSE=
2561: fi
2562:
2563:
2564:
2565:
2566: depcc="$CXX" am_compiler_list=
2567:
1.11 moko 2568: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2569: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2570: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2571: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2572: else
2573: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2574: # We make a subdir and do the tests there. Otherwise we can end up
2575: # making bogus files that we don't know about and never remove. For
2576: # instance it was reported that on HP-UX the gcc test will end up
2577: # making a dummy file named `D' -- because `-MD' means `put the output
2578: # in D'.
2579: mkdir conftest.dir
2580: # Copy depcomp to subdir because otherwise we won't find it if we're
2581: # using a relative directory.
2582: cp "$am_depcomp" conftest.dir
2583: cd conftest.dir
2584: # We will build objects and dependencies in a subdirectory because
2585: # it helps to detect inapplicable dependency modes. For instance
2586: # both Tru64's cc and ICC support -MD to output dependencies as a
2587: # side effect of compilation, but ICC will put the dependencies in
2588: # the current directory while Tru64 will put them in the object
2589: # directory.
2590: mkdir sub
2591:
2592: am_cv_CXX_dependencies_compiler_type=none
2593: if test "$am_compiler_list" = ""; then
2594: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2595: fi
2596: for depmode in $am_compiler_list; do
2597: # Setup a source with many dependencies, because some compilers
2598: # like to wrap large dependency lists on column 80 (with \), and
2599: # we should not choose a depcomp mode which is confused by this.
2600: #
2601: # We need to recreate these files for each test, as the compiler may
2602: # overwrite some of them when testing with obscure command lines.
2603: # This happens at least with the AIX C compiler.
2604: : > sub/conftest.c
2605: for i in 1 2 3 4 5 6; do
2606: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2607: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2608: # Solaris 8's {/usr,}/bin/sh.
2609: touch sub/conftst$i.h
2610: done
2611: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2612:
2613: case $depmode in
2614: nosideeffect)
2615: # after this tag, mechanisms are not by side-effect, so they'll
2616: # only be used when explicitly requested
2617: if test "x$enable_dependency_tracking" = xyes; then
2618: continue
2619: else
2620: break
2621: fi
2622: ;;
2623: none) break ;;
2624: esac
2625: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2626: # mode. It turns out that the SunPro C++ compiler does not properly
2627: # handle `-M -o', and we need to detect this.
2628: if depmode=$depmode \
2629: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2630: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2631: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2632: >/dev/null 2>conftest.err &&
2633: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2634: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2635: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2636: # icc doesn't choke on unknown options, it will just issue warnings
2637: # or remarks (even with -Werror). So we grep stderr for any message
2638: # that says an option was ignored or not supported.
2639: # When given -MP, icc 7.0 and 7.1 complain thusly:
2640: # icc: Command line warning: ignoring option '-M'; no argument required
2641: # The diagnosis changed in icc 8.0:
2642: # icc: Command line remark: option '-MP' not supported
2643: if (grep 'ignoring option' conftest.err ||
2644: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2645: am_cv_CXX_dependencies_compiler_type=$depmode
2646: break
2647: fi
2648: fi
2649: done
2650:
2651: cd ..
2652: rm -rf conftest.dir
2653: else
2654: am_cv_CXX_dependencies_compiler_type=none
2655: fi
2656:
2657: fi
1.11 moko 2658: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2659: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
1.1 misha 2660: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2661:
2662:
2663:
2664: if
2665: test "x$enable_dependency_tracking" != xno \
2666: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2667: am__fastdepCXX_TRUE=
2668: am__fastdepCXX_FALSE='#'
2669: else
2670: am__fastdepCXX_TRUE='#'
2671: am__fastdepCXX_FALSE=
2672: fi
2673:
2674:
2675: ac_ext=c
2676: ac_cpp='$CPP $CPPFLAGS'
2677: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680: if test -n "$ac_tool_prefix"; then
2681: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2682: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.11 moko 2683: echo "$as_me:$LINENO: checking for $ac_word" >&5
2684: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685: if test "${ac_cv_prog_CC+set}" = set; then
2686: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2687: else
2688: if test -n "$CC"; then
2689: ac_cv_prog_CC="$CC" # Let the user override the test.
2690: else
2691: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692: for as_dir in $PATH
2693: do
2694: IFS=$as_save_IFS
2695: test -z "$as_dir" && as_dir=.
1.11 moko 2696: for ac_exec_ext in '' $ac_executable_extensions; do
2697: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2698: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.11 moko 2699: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2700: break 2
2701: fi
2702: done
1.11 moko 2703: done
1.1 misha 2704:
2705: fi
2706: fi
2707: CC=$ac_cv_prog_CC
2708: if test -n "$CC"; then
1.11 moko 2709: echo "$as_me:$LINENO: result: $CC" >&5
2710: echo "${ECHO_T}$CC" >&6
1.1 misha 2711: else
1.11 moko 2712: echo "$as_me:$LINENO: result: no" >&5
2713: echo "${ECHO_T}no" >&6
1.1 misha 2714: fi
2715:
2716: fi
2717: if test -z "$ac_cv_prog_CC"; then
2718: ac_ct_CC=$CC
2719: # Extract the first word of "gcc", so it can be a program name with args.
2720: set dummy gcc; ac_word=$2
1.11 moko 2721: echo "$as_me:$LINENO: checking for $ac_word" >&5
2722: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2724: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2725: else
2726: if test -n "$ac_ct_CC"; then
2727: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728: else
2729: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730: for as_dir in $PATH
2731: do
2732: IFS=$as_save_IFS
2733: test -z "$as_dir" && as_dir=.
1.11 moko 2734: for ac_exec_ext in '' $ac_executable_extensions; do
2735: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2736: ac_cv_prog_ac_ct_CC="gcc"
1.11 moko 2737: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2738: break 2
2739: fi
2740: done
1.11 moko 2741: done
1.1 misha 2742:
2743: fi
2744: fi
2745: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746: if test -n "$ac_ct_CC"; then
1.11 moko 2747: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2748: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2749: else
1.11 moko 2750: echo "$as_me:$LINENO: result: no" >&5
2751: echo "${ECHO_T}no" >&6
1.1 misha 2752: fi
2753:
1.11 moko 2754: CC=$ac_ct_CC
1.1 misha 2755: else
2756: CC="$ac_cv_prog_CC"
2757: fi
2758:
2759: if test -z "$CC"; then
1.11 moko 2760: if test -n "$ac_tool_prefix"; then
2761: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 2762: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.11 moko 2763: echo "$as_me:$LINENO: checking for $ac_word" >&5
2764: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765: if test "${ac_cv_prog_CC+set}" = set; then
2766: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2767: else
2768: if test -n "$CC"; then
2769: ac_cv_prog_CC="$CC" # Let the user override the test.
2770: else
2771: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772: for as_dir in $PATH
2773: do
2774: IFS=$as_save_IFS
2775: test -z "$as_dir" && as_dir=.
1.11 moko 2776: for ac_exec_ext in '' $ac_executable_extensions; do
2777: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2778: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.11 moko 2779: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2780: break 2
2781: fi
2782: done
1.11 moko 2783: done
1.1 misha 2784:
2785: fi
2786: fi
2787: CC=$ac_cv_prog_CC
2788: if test -n "$CC"; then
1.11 moko 2789: echo "$as_me:$LINENO: result: $CC" >&5
2790: echo "${ECHO_T}$CC" >&6
2791: else
2792: echo "$as_me:$LINENO: result: no" >&5
2793: echo "${ECHO_T}no" >&6
2794: fi
2795:
2796: fi
2797: if test -z "$ac_cv_prog_CC"; then
2798: ac_ct_CC=$CC
2799: # Extract the first word of "cc", so it can be a program name with args.
2800: set dummy cc; ac_word=$2
2801: echo "$as_me:$LINENO: checking for $ac_word" >&5
2802: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2804: echo $ECHO_N "(cached) $ECHO_C" >&6
2805: else
2806: if test -n "$ac_ct_CC"; then
2807: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808: else
2809: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810: for as_dir in $PATH
2811: do
2812: IFS=$as_save_IFS
2813: test -z "$as_dir" && as_dir=.
2814: for ac_exec_ext in '' $ac_executable_extensions; do
2815: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816: ac_cv_prog_ac_ct_CC="cc"
2817: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818: break 2
2819: fi
2820: done
2821: done
2822:
2823: fi
2824: fi
2825: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826: if test -n "$ac_ct_CC"; then
2827: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2829: else
1.11 moko 2830: echo "$as_me:$LINENO: result: no" >&5
2831: echo "${ECHO_T}no" >&6
1.1 misha 2832: fi
2833:
1.11 moko 2834: CC=$ac_ct_CC
2835: else
2836: CC="$ac_cv_prog_CC"
2837: fi
1.10 moko 2838:
1.1 misha 2839: fi
2840: if test -z "$CC"; then
2841: # Extract the first word of "cc", so it can be a program name with args.
2842: set dummy cc; ac_word=$2
1.11 moko 2843: echo "$as_me:$LINENO: checking for $ac_word" >&5
2844: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845: if test "${ac_cv_prog_CC+set}" = set; then
2846: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2847: else
2848: if test -n "$CC"; then
2849: ac_cv_prog_CC="$CC" # Let the user override the test.
2850: else
2851: ac_prog_rejected=no
2852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853: for as_dir in $PATH
2854: do
2855: IFS=$as_save_IFS
2856: test -z "$as_dir" && as_dir=.
1.11 moko 2857: for ac_exec_ext in '' $ac_executable_extensions; do
2858: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2859: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860: ac_prog_rejected=yes
2861: continue
2862: fi
2863: ac_cv_prog_CC="cc"
1.11 moko 2864: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2865: break 2
2866: fi
2867: done
1.11 moko 2868: done
1.1 misha 2869:
2870: if test $ac_prog_rejected = yes; then
2871: # We found a bogon in the path, so make sure we never use it.
2872: set dummy $ac_cv_prog_CC
2873: shift
2874: if test $# != 0; then
2875: # We chose a different compiler from the bogus one.
2876: # However, it has the same basename, so the bogon will be chosen
2877: # first if we set CC to just the basename; use the full file name.
2878: shift
2879: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2880: fi
2881: fi
2882: fi
2883: fi
2884: CC=$ac_cv_prog_CC
2885: if test -n "$CC"; then
1.11 moko 2886: echo "$as_me:$LINENO: result: $CC" >&5
2887: echo "${ECHO_T}$CC" >&6
1.1 misha 2888: else
1.11 moko 2889: echo "$as_me:$LINENO: result: no" >&5
2890: echo "${ECHO_T}no" >&6
1.1 misha 2891: fi
2892:
2893: fi
2894: if test -z "$CC"; then
2895: if test -n "$ac_tool_prefix"; then
1.11 moko 2896: for ac_prog in cl
1.1 misha 2897: do
2898: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2899: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 2900: echo "$as_me:$LINENO: checking for $ac_word" >&5
2901: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2902: if test "${ac_cv_prog_CC+set}" = set; then
2903: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2904: else
2905: if test -n "$CC"; then
2906: ac_cv_prog_CC="$CC" # Let the user override the test.
2907: else
2908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909: for as_dir in $PATH
2910: do
2911: IFS=$as_save_IFS
2912: test -z "$as_dir" && as_dir=.
1.11 moko 2913: for ac_exec_ext in '' $ac_executable_extensions; do
2914: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2915: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.11 moko 2916: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2917: break 2
2918: fi
2919: done
1.11 moko 2920: done
1.1 misha 2921:
2922: fi
2923: fi
2924: CC=$ac_cv_prog_CC
2925: if test -n "$CC"; then
1.11 moko 2926: echo "$as_me:$LINENO: result: $CC" >&5
2927: echo "${ECHO_T}$CC" >&6
1.1 misha 2928: else
1.11 moko 2929: echo "$as_me:$LINENO: result: no" >&5
2930: echo "${ECHO_T}no" >&6
1.1 misha 2931: fi
2932:
2933: test -n "$CC" && break
2934: done
2935: fi
2936: if test -z "$CC"; then
2937: ac_ct_CC=$CC
1.11 moko 2938: for ac_prog in cl
1.1 misha 2939: do
2940: # Extract the first word of "$ac_prog", so it can be a program name with args.
2941: set dummy $ac_prog; ac_word=$2
1.11 moko 2942: echo "$as_me:$LINENO: checking for $ac_word" >&5
2943: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2945: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2946: else
2947: if test -n "$ac_ct_CC"; then
2948: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949: else
2950: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951: for as_dir in $PATH
2952: do
2953: IFS=$as_save_IFS
2954: test -z "$as_dir" && as_dir=.
1.11 moko 2955: for ac_exec_ext in '' $ac_executable_extensions; do
2956: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2957: ac_cv_prog_ac_ct_CC="$ac_prog"
1.11 moko 2958: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2959: break 2
2960: fi
2961: done
1.11 moko 2962: done
1.1 misha 2963:
2964: fi
2965: fi
2966: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967: if test -n "$ac_ct_CC"; then
1.11 moko 2968: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2969: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2970: else
1.11 moko 2971: echo "$as_me:$LINENO: result: no" >&5
2972: echo "${ECHO_T}no" >&6
1.1 misha 2973: fi
2974:
2975: test -n "$ac_ct_CC" && break
2976: done
2977:
1.11 moko 2978: CC=$ac_ct_CC
1.1 misha 2979: fi
2980:
2981: fi
2982:
2983:
1.11 moko 2984: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2985: See \`config.log' for more details." >&5
2986: echo "$as_me: error: no acceptable C compiler found in \$PATH
2987: See \`config.log' for more details." >&2;}
2988: { (exit 1); exit 1; }; }
1.1 misha 2989:
2990: # Provide some information about the compiler.
1.11 moko 2991: echo "$as_me:$LINENO:" \
2992: "checking for C compiler version" >&5
2993: ac_compiler=`set X $ac_compile; echo $2`
2994: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2995: (eval $ac_compiler --version </dev/null >&5) 2>&5
2996: ac_status=$?
2997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998: (exit $ac_status); }
2999: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3000: (eval $ac_compiler -v </dev/null >&5) 2>&5
3001: ac_status=$?
3002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003: (exit $ac_status); }
3004: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3005: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 3006: ac_status=$?
1.11 moko 3007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008: (exit $ac_status); }
3009:
3010: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3012: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3014: else
1.11 moko 3015: cat >conftest.$ac_ext <<_ACEOF
3016: /* confdefs.h. */
3017: _ACEOF
3018: cat confdefs.h >>conftest.$ac_ext
3019: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 3020: /* end confdefs.h. */
3021:
3022: int
3023: main ()
3024: {
3025: #ifndef __GNUC__
3026: choke me
3027: #endif
3028:
3029: ;
3030: return 0;
3031: }
3032: _ACEOF
1.11 moko 3033: rm -f conftest.$ac_objext
3034: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035: (eval $ac_compile) 2>conftest.er1
3036: ac_status=$?
3037: grep -v '^ *+' conftest.er1 >conftest.err
3038: rm -f conftest.er1
3039: cat conftest.err >&5
3040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041: (exit $ac_status); } &&
3042: { ac_try='test -z "$ac_c_werror_flag"
3043: || test ! -s conftest.err'
3044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045: (eval $ac_try) 2>&5
3046: ac_status=$?
3047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048: (exit $ac_status); }; } &&
3049: { ac_try='test -s conftest.$ac_objext'
3050: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051: (eval $ac_try) 2>&5
3052: ac_status=$?
3053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054: (exit $ac_status); }; }; then
1.1 misha 3055: ac_compiler_gnu=yes
3056: else
1.11 moko 3057: echo "$as_me: failed program was:" >&5
3058: sed 's/^/| /' conftest.$ac_ext >&5
3059:
3060: ac_compiler_gnu=no
1.1 misha 3061: fi
1.11 moko 3062: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3063: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064:
3065: fi
1.11 moko 3066: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3067: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3068: GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 3069: ac_test_CFLAGS=${CFLAGS+set}
3070: ac_save_CFLAGS=$CFLAGS
1.11 moko 3071: CFLAGS="-g"
3072: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3073: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3074: if test "${ac_cv_prog_cc_g+set}" = set; then
3075: echo $ECHO_N "(cached) $ECHO_C" >&6
3076: else
3077: cat >conftest.$ac_ext <<_ACEOF
3078: /* confdefs.h. */
3079: _ACEOF
3080: cat confdefs.h >>conftest.$ac_ext
3081: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 3082: /* end confdefs.h. */
3083:
3084: int
3085: main ()
3086: {
3087:
3088: ;
3089: return 0;
3090: }
3091: _ACEOF
1.11 moko 3092: rm -f conftest.$ac_objext
3093: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094: (eval $ac_compile) 2>conftest.er1
3095: ac_status=$?
3096: grep -v '^ *+' conftest.er1 >conftest.err
3097: rm -f conftest.er1
3098: cat conftest.err >&5
3099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100: (exit $ac_status); } &&
3101: { ac_try='test -z "$ac_c_werror_flag"
3102: || test ! -s conftest.err'
3103: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104: (eval $ac_try) 2>&5
3105: ac_status=$?
3106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107: (exit $ac_status); }; } &&
3108: { ac_try='test -s conftest.$ac_objext'
3109: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110: (eval $ac_try) 2>&5
3111: ac_status=$?
3112: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113: (exit $ac_status); }; }; then
1.10 moko 3114: ac_cv_prog_cc_g=yes
1.1 misha 3115: else
1.11 moko 3116: echo "$as_me: failed program was:" >&5
3117: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misha 3118:
1.11 moko 3119: ac_cv_prog_cc_g=no
1.10 moko 3120: fi
1.11 moko 3121: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3122: fi
1.11 moko 3123: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3124: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 misha 3125: if test "$ac_test_CFLAGS" = set; then
3126: CFLAGS=$ac_save_CFLAGS
3127: elif test $ac_cv_prog_cc_g = yes; then
3128: if test "$GCC" = yes; then
3129: CFLAGS="-g -O2"
3130: else
3131: CFLAGS="-g"
3132: fi
3133: else
3134: if test "$GCC" = yes; then
3135: CFLAGS="-O2"
3136: else
3137: CFLAGS=
3138: fi
3139: fi
1.11 moko 3140: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3141: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3142: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3143: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3144: else
1.11 moko 3145: ac_cv_prog_cc_stdc=no
1.1 misha 3146: ac_save_CC=$CC
1.11 moko 3147: cat >conftest.$ac_ext <<_ACEOF
3148: /* confdefs.h. */
3149: _ACEOF
3150: cat confdefs.h >>conftest.$ac_ext
3151: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 3152: /* end confdefs.h. */
3153: #include <stdarg.h>
3154: #include <stdio.h>
3155: #include <sys/types.h>
3156: #include <sys/stat.h>
3157: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3158: struct buf { int x; };
3159: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3160: static char *e (p, i)
3161: char **p;
3162: int i;
3163: {
3164: return p[i];
3165: }
3166: static char *f (char * (*g) (char **, int), char **p, ...)
3167: {
3168: char *s;
3169: va_list v;
3170: va_start (v,p);
3171: s = g (p, va_arg (v,int));
3172: va_end (v);
3173: return s;
3174: }
3175:
3176: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3177: function prototypes and stuff, but not '\xHH' hex character constants.
3178: These don't provoke an error unfortunately, instead are silently treated
1.11 moko 3179: as 'x'. The following induces an error, until -std1 is added to get
1.1 misha 3180: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3181: array size at least. It's necessary to write '\x00'==0 to get something
1.11 moko 3182: that's true only with -std1. */
1.1 misha 3183: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3184:
3185: int test (int i, double x);
3186: struct s1 {int (*f) (int a);};
3187: struct s2 {int (*f) (double a);};
3188: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3189: int argc;
3190: char **argv;
3191: int
3192: main ()
3193: {
3194: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3195: ;
3196: return 0;
3197: }
3198: _ACEOF
1.11 moko 3199: # Don't try gcc -ansi; that turns off useful extensions and
3200: # breaks some systems' header files.
3201: # AIX -qlanglvl=ansi
3202: # Ultrix and OSF/1 -std1
3203: # HP-UX 10.20 and later -Ae
3204: # HP-UX older versions -Aa -D_HPUX_SOURCE
3205: # SVR4 -Xc -D__EXTENSIONS__
3206: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 3207: do
3208: CC="$ac_save_CC $ac_arg"
1.11 moko 3209: rm -f conftest.$ac_objext
3210: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211: (eval $ac_compile) 2>conftest.er1
3212: ac_status=$?
3213: grep -v '^ *+' conftest.er1 >conftest.err
3214: rm -f conftest.er1
3215: cat conftest.err >&5
3216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217: (exit $ac_status); } &&
3218: { ac_try='test -z "$ac_c_werror_flag"
3219: || test ! -s conftest.err'
3220: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221: (eval $ac_try) 2>&5
3222: ac_status=$?
3223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224: (exit $ac_status); }; } &&
3225: { ac_try='test -s conftest.$ac_objext'
3226: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227: (eval $ac_try) 2>&5
3228: ac_status=$?
3229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230: (exit $ac_status); }; }; then
3231: ac_cv_prog_cc_stdc=$ac_arg
3232: break
3233: else
3234: echo "$as_me: failed program was:" >&5
3235: sed 's/^/| /' conftest.$ac_ext >&5
3236:
1.1 misha 3237: fi
1.11 moko 3238: rm -f conftest.err conftest.$ac_objext
1.1 misha 3239: done
1.11 moko 3240: rm -f conftest.$ac_ext conftest.$ac_objext
1.1 misha 3241: CC=$ac_save_CC
3242:
3243: fi
1.11 moko 3244:
3245: case "x$ac_cv_prog_cc_stdc" in
3246: x|xno)
3247: echo "$as_me:$LINENO: result: none needed" >&5
3248: echo "${ECHO_T}none needed" >&6 ;;
1.1 misha 3249: *)
1.11 moko 3250: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3251: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3252: CC="$CC $ac_cv_prog_cc_stdc" ;;
1.1 misha 3253: esac
3254:
1.11 moko 3255: # Some people use a C++ compiler to compile C. Since we use `exit',
3256: # in C++ we need to declare it. In case someone uses the same compiler
3257: # for both compiling C and C++ we need to have the C++ compiler decide
3258: # the declaration of exit, since it's the most demanding environment.
3259: cat >conftest.$ac_ext <<_ACEOF
3260: #ifndef __cplusplus
3261: choke me
3262: #endif
3263: _ACEOF
3264: rm -f conftest.$ac_objext
3265: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266: (eval $ac_compile) 2>conftest.er1
3267: ac_status=$?
3268: grep -v '^ *+' conftest.er1 >conftest.err
3269: rm -f conftest.er1
3270: cat conftest.err >&5
3271: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272: (exit $ac_status); } &&
3273: { ac_try='test -z "$ac_c_werror_flag"
3274: || test ! -s conftest.err'
3275: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276: (eval $ac_try) 2>&5
3277: ac_status=$?
3278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279: (exit $ac_status); }; } &&
3280: { ac_try='test -s conftest.$ac_objext'
3281: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282: (eval $ac_try) 2>&5
3283: ac_status=$?
3284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285: (exit $ac_status); }; }; then
3286: for ac_declaration in \
3287: '' \
3288: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3289: 'extern "C" void std::exit (int); using std::exit;' \
3290: 'extern "C" void exit (int) throw ();' \
3291: 'extern "C" void exit (int);' \
3292: 'void exit (int);'
3293: do
3294: cat >conftest.$ac_ext <<_ACEOF
3295: /* confdefs.h. */
3296: _ACEOF
3297: cat confdefs.h >>conftest.$ac_ext
3298: cat >>conftest.$ac_ext <<_ACEOF
3299: /* end confdefs.h. */
3300: $ac_declaration
3301: #include <stdlib.h>
3302: int
3303: main ()
3304: {
3305: exit (42);
3306: ;
3307: return 0;
3308: }
3309: _ACEOF
3310: rm -f conftest.$ac_objext
3311: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312: (eval $ac_compile) 2>conftest.er1
3313: ac_status=$?
3314: grep -v '^ *+' conftest.er1 >conftest.err
3315: rm -f conftest.er1
3316: cat conftest.err >&5
3317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318: (exit $ac_status); } &&
3319: { ac_try='test -z "$ac_c_werror_flag"
3320: || test ! -s conftest.err'
3321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322: (eval $ac_try) 2>&5
3323: ac_status=$?
3324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325: (exit $ac_status); }; } &&
3326: { ac_try='test -s conftest.$ac_objext'
3327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328: (eval $ac_try) 2>&5
3329: ac_status=$?
3330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331: (exit $ac_status); }; }; then
3332: :
3333: else
3334: echo "$as_me: failed program was:" >&5
3335: sed 's/^/| /' conftest.$ac_ext >&5
3336:
3337: continue
3338: fi
3339: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340: cat >conftest.$ac_ext <<_ACEOF
3341: /* confdefs.h. */
3342: _ACEOF
3343: cat confdefs.h >>conftest.$ac_ext
3344: cat >>conftest.$ac_ext <<_ACEOF
3345: /* end confdefs.h. */
3346: $ac_declaration
3347: int
3348: main ()
3349: {
3350: exit (42);
3351: ;
3352: return 0;
3353: }
3354: _ACEOF
3355: rm -f conftest.$ac_objext
3356: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357: (eval $ac_compile) 2>conftest.er1
3358: ac_status=$?
3359: grep -v '^ *+' conftest.er1 >conftest.err
3360: rm -f conftest.er1
3361: cat conftest.err >&5
3362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363: (exit $ac_status); } &&
3364: { ac_try='test -z "$ac_c_werror_flag"
3365: || test ! -s conftest.err'
3366: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367: (eval $ac_try) 2>&5
3368: ac_status=$?
3369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370: (exit $ac_status); }; } &&
3371: { ac_try='test -s conftest.$ac_objext'
3372: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373: (eval $ac_try) 2>&5
3374: ac_status=$?
3375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376: (exit $ac_status); }; }; then
3377: break
3378: else
3379: echo "$as_me: failed program was:" >&5
3380: sed 's/^/| /' conftest.$ac_ext >&5
3381:
3382: fi
3383: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3384: done
3385: rm -f conftest*
3386: if test -n "$ac_declaration"; then
3387: echo '#ifdef __cplusplus' >>confdefs.h
3388: echo $ac_declaration >>confdefs.h
3389: echo '#endif' >>confdefs.h
1.1 misha 3390: fi
3391:
1.11 moko 3392: else
3393: echo "$as_me: failed program was:" >&5
3394: sed 's/^/| /' conftest.$ac_ext >&5
3395:
3396: fi
3397: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3398: ac_ext=c
3399: ac_cpp='$CPP $CPPFLAGS'
3400: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403:
3404: depcc="$CC" am_compiler_list=
3405:
1.11 moko 3406: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3408: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3410: else
3411: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412: # We make a subdir and do the tests there. Otherwise we can end up
3413: # making bogus files that we don't know about and never remove. For
3414: # instance it was reported that on HP-UX the gcc test will end up
3415: # making a dummy file named `D' -- because `-MD' means `put the output
3416: # in D'.
3417: mkdir conftest.dir
3418: # Copy depcomp to subdir because otherwise we won't find it if we're
3419: # using a relative directory.
3420: cp "$am_depcomp" conftest.dir
3421: cd conftest.dir
3422: # We will build objects and dependencies in a subdirectory because
3423: # it helps to detect inapplicable dependency modes. For instance
3424: # both Tru64's cc and ICC support -MD to output dependencies as a
3425: # side effect of compilation, but ICC will put the dependencies in
3426: # the current directory while Tru64 will put them in the object
3427: # directory.
3428: mkdir sub
3429:
3430: am_cv_CC_dependencies_compiler_type=none
3431: if test "$am_compiler_list" = ""; then
3432: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3433: fi
3434: for depmode in $am_compiler_list; do
3435: # Setup a source with many dependencies, because some compilers
3436: # like to wrap large dependency lists on column 80 (with \), and
3437: # we should not choose a depcomp mode which is confused by this.
3438: #
3439: # We need to recreate these files for each test, as the compiler may
3440: # overwrite some of them when testing with obscure command lines.
3441: # This happens at least with the AIX C compiler.
3442: : > sub/conftest.c
3443: for i in 1 2 3 4 5 6; do
3444: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446: # Solaris 8's {/usr,}/bin/sh.
3447: touch sub/conftst$i.h
3448: done
3449: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450:
3451: case $depmode in
3452: nosideeffect)
3453: # after this tag, mechanisms are not by side-effect, so they'll
3454: # only be used when explicitly requested
3455: if test "x$enable_dependency_tracking" = xyes; then
3456: continue
3457: else
3458: break
3459: fi
3460: ;;
3461: none) break ;;
3462: esac
3463: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464: # mode. It turns out that the SunPro C++ compiler does not properly
3465: # handle `-M -o', and we need to detect this.
3466: if depmode=$depmode \
3467: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470: >/dev/null 2>conftest.err &&
3471: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3472: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3473: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3474: # icc doesn't choke on unknown options, it will just issue warnings
3475: # or remarks (even with -Werror). So we grep stderr for any message
3476: # that says an option was ignored or not supported.
3477: # When given -MP, icc 7.0 and 7.1 complain thusly:
3478: # icc: Command line warning: ignoring option '-M'; no argument required
3479: # The diagnosis changed in icc 8.0:
3480: # icc: Command line remark: option '-MP' not supported
3481: if (grep 'ignoring option' conftest.err ||
3482: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3483: am_cv_CC_dependencies_compiler_type=$depmode
3484: break
3485: fi
3486: fi
3487: done
3488:
3489: cd ..
3490: rm -rf conftest.dir
3491: else
3492: am_cv_CC_dependencies_compiler_type=none
3493: fi
3494:
3495: fi
1.11 moko 3496: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3497: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1.1 misha 3498: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3499:
3500:
3501:
3502: if
3503: test "x$enable_dependency_tracking" != xno \
3504: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3505: am__fastdepCC_TRUE=
3506: am__fastdepCC_FALSE='#'
3507: else
3508: am__fastdepCC_TRUE='#'
3509: am__fastdepCC_FALSE=
3510: fi
3511:
3512:
3513:
1.8 moko 3514:
1.13 moko 3515:
3516:
3517:
3518:
3519:
3520:
3521:
1.8 moko 3522: case `pwd` in
3523: *\ * | *\ *)
1.11 moko 3524: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3525: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 3526: esac
3527:
3528:
3529:
3530: macro_version='2.4.2'
3531: macro_revision='1.3337'
3532:
3533:
3534:
3535:
3536:
3537:
3538:
1.1 misha 3539:
3540:
3541:
3542:
3543:
3544:
1.8 moko 3545: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 3546:
3547: # Make sure we can run config.sub.
1.11 moko 3548: $ac_config_sub sun4 >/dev/null 2>&1 ||
3549: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3550: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3551: { (exit 1); exit 1; }; }
3552:
3553: echo "$as_me:$LINENO: checking build system type" >&5
3554: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3555: if test "${ac_cv_build+set}" = set; then
3556: echo $ECHO_N "(cached) $ECHO_C" >&6
3557: else
3558: ac_cv_build_alias=$build_alias
3559: test -z "$ac_cv_build_alias" &&
3560: ac_cv_build_alias=`$ac_config_guess`
3561: test -z "$ac_cv_build_alias" &&
3562: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3563: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3564: { (exit 1); exit 1; }; }
3565: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3566: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3567: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3568: { (exit 1); exit 1; }; }
1.1 misha 3569:
1.11 moko 3570: fi
3571: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3572: echo "${ECHO_T}$ac_cv_build" >&6
1.10 moko 3573: build=$ac_cv_build
1.11 moko 3574: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3575: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3576: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3577:
3578:
3579: echo "$as_me:$LINENO: checking host system type" >&5
3580: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3581: if test "${ac_cv_host+set}" = set; then
3582: echo $ECHO_N "(cached) $ECHO_C" >&6
3583: else
3584: ac_cv_host_alias=$host_alias
3585: test -z "$ac_cv_host_alias" &&
3586: ac_cv_host_alias=$ac_cv_build_alias
3587: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3588: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3589: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3590: { (exit 1); exit 1; }; }
1.1 misha 3591:
3592: fi
1.11 moko 3593: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3594: echo "${ECHO_T}$ac_cv_host" >&6
1.1 misha 3595: host=$ac_cv_host
1.11 moko 3596: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3597: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3598: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 misha 3599:
3600:
1.8 moko 3601: # Backslashify metacharacters that are still active within
3602: # double-quoted strings.
3603: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3604:
3605: # Same as above, but do not quote variable references.
3606: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3607:
3608: # Sed substitution to delay expansion of an escaped shell variable in a
3609: # double_quote_subst'ed string.
3610: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3611:
3612: # Sed substitution to delay expansion of an escaped single quote.
3613: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 3614:
1.8 moko 3615: # Sed substitution to avoid accidental globbing in evaled expressions
3616: no_glob_subst='s/\*/\\\*/g'
1.1 misha 3617:
1.8 moko 3618: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3619: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3620: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3621:
1.11 moko 3622: echo "$as_me:$LINENO: checking how to print strings" >&5
3623: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
1.8 moko 3624: # Test print first, because it will be a builtin if present.
3625: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3626: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3627: ECHO='print -r --'
3628: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3629: ECHO='printf %s\n'
1.1 misha 3630: else
1.8 moko 3631: # Use this function as a fallback that always works.
3632: func_fallback_echo ()
3633: {
3634: eval 'cat <<_LTECHO_EOF
3635: $1
3636: _LTECHO_EOF'
3637: }
3638: ECHO='func_fallback_echo'
1.1 misha 3639: fi
1.8 moko 3640:
3641: # func_echo_all arg...
3642: # Invoke $ECHO with all args, space-separated.
3643: func_echo_all ()
3644: {
3645: $ECHO ""
3646: }
3647:
3648: case "$ECHO" in
1.11 moko 3649: printf*) echo "$as_me:$LINENO: result: printf" >&5
3650: echo "${ECHO_T}printf" >&6 ;;
3651: print*) echo "$as_me:$LINENO: result: print -r" >&5
3652: echo "${ECHO_T}print -r" >&6 ;;
3653: *) echo "$as_me:$LINENO: result: cat" >&5
3654: echo "${ECHO_T}cat" >&6 ;;
1.8 moko 3655: esac
3656:
3657:
3658:
3659:
3660:
3661:
3662:
3663:
3664:
3665:
3666:
3667:
3668:
3669:
1.11 moko 3670: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3672: if test "${lt_cv_path_SED+set}" = set; then
3673: echo $ECHO_N "(cached) $ECHO_C" >&6
3674: else
3675: # Loop through the user's path and test for sed and gsed.
3676: # Then use that list of sed's as ones to test for truncation.
3677: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 3678: for as_dir in $PATH
3679: do
3680: IFS=$as_save_IFS
3681: test -z "$as_dir" && as_dir=.
1.11 moko 3682: for lt_ac_prog in sed gsed; do
1.8 moko 3683: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 3684: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3685: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3686: fi
1.8 moko 3687: done
3688: done
1.11 moko 3689: done
1.8 moko 3690: IFS=$as_save_IFS
1.11 moko 3691: lt_ac_max=0
3692: lt_ac_count=0
3693: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3694: # along with /bin/sed that truncates output.
3695: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3696: test ! -f $lt_ac_sed && continue
3697: cat /dev/null > conftest.in
3698: lt_ac_count=0
3699: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3700: # Check for GNU sed and select it if it is found.
3701: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3702: lt_cv_path_SED=$lt_ac_sed
3703: break
1.8 moko 3704: fi
1.11 moko 3705: while true; do
3706: cat conftest.in conftest.in >conftest.tmp
3707: mv conftest.tmp conftest.in
3708: cp conftest.in conftest.nl
3709: echo >>conftest.nl
3710: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3711: cmp -s conftest.out conftest.nl || break
3712: # 10000 chars as input seems more than enough
3713: test $lt_ac_count -gt 10 && break
3714: lt_ac_count=`expr $lt_ac_count + 1`
3715: if test $lt_ac_count -gt $lt_ac_max; then
3716: lt_ac_max=$lt_ac_count
3717: lt_cv_path_SED=$lt_ac_sed
3718: fi
3719: done
3720: done
3721:
1.10 moko 3722: fi
1.8 moko 3723:
1.11 moko 3724: SED=$lt_cv_path_SED
3725:
3726: echo "$as_me:$LINENO: result: $SED" >&5
3727: echo "${ECHO_T}$SED" >&6
1.8 moko 3728:
3729: test -z "$SED" && SED=sed
3730: Xsed="$SED -e 1s/^X//"
3731:
3732:
3733:
3734:
3735:
3736:
3737:
3738:
3739:
3740:
3741:
1.11 moko 3742: echo "$as_me:$LINENO: checking for egrep" >&5
3743: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3744: if test "${ac_cv_prog_egrep+set}" = set; then
3745: echo $ECHO_N "(cached) $ECHO_C" >&6
3746: else
3747: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3748: then ac_cv_prog_egrep='grep -E'
3749: else ac_cv_prog_egrep='egrep'
1.8 moko 3750: fi
3751: fi
1.11 moko 3752: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3753: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3754: EGREP=$ac_cv_prog_egrep
1.8 moko 3755:
3756:
1.11 moko 3757: echo "$as_me:$LINENO: checking for fgrep" >&5
3758: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3759: if test "${ac_cv_prog_fgrep+set}" = set; then
3760: echo $ECHO_N "(cached) $ECHO_C" >&6
3761: else
3762: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3763: then ac_cv_prog_fgrep='grep -F'
3764: else ac_cv_prog_fgrep='fgrep'
1.8 moko 3765: fi
3766: fi
1.11 moko 3767: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3768: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3769: FGREP=$ac_cv_prog_fgrep
1.8 moko 3770:
3771:
3772: test -z "$GREP" && GREP=grep
3773:
3774:
3775:
3776:
3777:
3778:
3779:
3780:
3781:
3782:
3783:
3784:
3785:
3786:
3787:
3788:
3789:
3790:
3791:
1.11 moko 3792: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3793: if test "${with_gnu_ld+set}" = set; then
3794: withval="$with_gnu_ld"
3795: test "$withval" = no || with_gnu_ld=yes
1.8 moko 3796: else
3797: with_gnu_ld=no
1.11 moko 3798: fi;
1.8 moko 3799: ac_prog=ld
3800: if test "$GCC" = yes; then
3801: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 3802: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3803: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 3804: case $host in
3805: *-*-mingw*)
3806: # gcc leaves a trailing carriage return which upsets mingw
3807: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3808: *)
3809: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3810: esac
3811: case $ac_prog in
3812: # Accept absolute paths.
3813: [\\/]* | ?:[\\/]*)
3814: re_direlt='/[^/][^/]*/\.\./'
3815: # Canonicalize the pathname of ld
3816: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3817: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3818: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3819: done
3820: test -z "$LD" && LD="$ac_prog"
3821: ;;
3822: "")
3823: # If it fails, then pretend we aren't using GCC.
3824: ac_prog=ld
3825: ;;
3826: *)
3827: # If it is relative, then search for the first ld in PATH.
3828: with_gnu_ld=unknown
3829: ;;
3830: esac
3831: elif test "$with_gnu_ld" = yes; then
1.11 moko 3832: echo "$as_me:$LINENO: checking for GNU ld" >&5
3833: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 3834: else
1.11 moko 3835: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3836: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 3837: fi
1.11 moko 3838: if test "${lt_cv_path_LD+set}" = set; then
3839: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3840: else
3841: if test -z "$LD"; then
1.8 moko 3842: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 3843: for ac_dir in $PATH; do
1.8 moko 3844: IFS="$lt_save_ifs"
1.1 misha 3845: test -z "$ac_dir" && ac_dir=.
3846: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3847: lt_cv_path_LD="$ac_dir/$ac_prog"
3848: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 3849: # but apparently some variants of GNU ld only accept -v.
1.1 misha 3850: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 3851: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3852: *GNU* | *'with BFD'*)
1.1 misha 3853: test "$with_gnu_ld" != no && break
1.8 moko 3854: ;;
3855: *)
1.1 misha 3856: test "$with_gnu_ld" != yes && break
1.8 moko 3857: ;;
3858: esac
1.1 misha 3859: fi
3860: done
1.8 moko 3861: IFS="$lt_save_ifs"
1.1 misha 3862: else
3863: lt_cv_path_LD="$LD" # Let the user override the test with a path.
3864: fi
3865: fi
3866:
3867: LD="$lt_cv_path_LD"
3868: if test -n "$LD"; then
1.11 moko 3869: echo "$as_me:$LINENO: result: $LD" >&5
3870: echo "${ECHO_T}$LD" >&6
1.1 misha 3871: else
1.11 moko 3872: echo "$as_me:$LINENO: result: no" >&5
3873: echo "${ECHO_T}no" >&6
1.1 misha 3874: fi
1.11 moko 3875: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3876: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3877: { (exit 1); exit 1; }; }
3878: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3879: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3880: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3881: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3882: else
1.8 moko 3883: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3884: case `$LD -v 2>&1 </dev/null` in
3885: *GNU* | *'with BFD'*)
1.1 misha 3886: lt_cv_prog_gnu_ld=yes
1.8 moko 3887: ;;
3888: *)
1.1 misha 3889: lt_cv_prog_gnu_ld=no
1.8 moko 3890: ;;
3891: esac
1.1 misha 3892: fi
1.11 moko 3893: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3894: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.1 misha 3895: with_gnu_ld=$lt_cv_prog_gnu_ld
3896:
3897:
3898:
1.8 moko 3899:
3900:
3901:
3902:
3903:
3904:
1.11 moko 3905: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3906: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3907: if test "${lt_cv_path_NM+set}" = set; then
3908: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3909: else
3910: if test -n "$NM"; then
3911: # Let the user override the test.
3912: lt_cv_path_NM="$NM"
3913: else
1.8 moko 3914: lt_nm_to_check="${ac_tool_prefix}nm"
3915: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3916: lt_nm_to_check="$lt_nm_to_check nm"
3917: fi
3918: for lt_tmp_nm in $lt_nm_to_check; do
3919: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3920: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3921: IFS="$lt_save_ifs"
3922: test -z "$ac_dir" && ac_dir=.
3923: tmp_nm="$ac_dir/$lt_tmp_nm"
3924: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3925: # Check to see if the nm accepts a BSD-compat flag.
3926: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3927: # nm: unknown option "B" ignored
3928: # Tru64's nm complains that /dev/null is an invalid object file
3929: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3930: */dev/null* | *'Invalid file or object type'*)
3931: lt_cv_path_NM="$tmp_nm -B"
3932: break
3933: ;;
3934: *)
3935: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3936: */dev/null*)
3937: lt_cv_path_NM="$tmp_nm -p"
3938: break
3939: ;;
3940: *)
3941: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3942: continue # so that we can try to find one that supports BSD flags
3943: ;;
3944: esac
3945: ;;
3946: esac
1.1 misha 3947: fi
1.8 moko 3948: done
3949: IFS="$lt_save_ifs"
1.1 misha 3950: done
1.8 moko 3951: : ${lt_cv_path_NM=no}
1.1 misha 3952: fi
3953: fi
1.11 moko 3954: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3955: echo "${ECHO_T}$lt_cv_path_NM" >&6
1.8 moko 3956: if test "$lt_cv_path_NM" != "no"; then
3957: NM="$lt_cv_path_NM"
3958: else
3959: # Didn't find any BSD compatible name lister, look for dumpbin.
3960: if test -n "$DUMPBIN"; then :
3961: # Let the user override the test.
3962: else
3963: if test -n "$ac_tool_prefix"; then
3964: for ac_prog in dumpbin "link -dump"
3965: do
3966: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3967: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 3968: echo "$as_me:$LINENO: checking for $ac_word" >&5
3969: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3971: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3972: else
1.8 moko 3973: if test -n "$DUMPBIN"; then
3974: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3975: else
1.1 misha 3976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977: for as_dir in $PATH
3978: do
3979: IFS=$as_save_IFS
3980: test -z "$as_dir" && as_dir=.
1.11 moko 3981: for ac_exec_ext in '' $ac_executable_extensions; do
3982: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 3983: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.11 moko 3984: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 3985: break 2
3986: fi
3987: done
1.11 moko 3988: done
3989:
1.8 moko 3990: fi
3991: fi
3992: DUMPBIN=$ac_cv_prog_DUMPBIN
3993: if test -n "$DUMPBIN"; then
1.11 moko 3994: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3995: echo "${ECHO_T}$DUMPBIN" >&6
1.8 moko 3996: else
1.11 moko 3997: echo "$as_me:$LINENO: result: no" >&5
3998: echo "${ECHO_T}no" >&6
1.8 moko 3999: fi
1.1 misha 4000:
1.8 moko 4001: test -n "$DUMPBIN" && break
1.1 misha 4002: done
1.8 moko 4003: fi
4004: if test -z "$DUMPBIN"; then
4005: ac_ct_DUMPBIN=$DUMPBIN
4006: for ac_prog in dumpbin "link -dump"
4007: do
4008: # Extract the first word of "$ac_prog", so it can be a program name with args.
4009: set dummy $ac_prog; ac_word=$2
1.11 moko 4010: echo "$as_me:$LINENO: checking for $ac_word" >&5
4011: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4013: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4014: else
4015: if test -n "$ac_ct_DUMPBIN"; then
4016: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4017: else
4018: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019: for as_dir in $PATH
4020: do
4021: IFS=$as_save_IFS
4022: test -z "$as_dir" && as_dir=.
1.11 moko 4023: for ac_exec_ext in '' $ac_executable_extensions; do
4024: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4025: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.11 moko 4026: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4027: break 2
4028: fi
4029: done
1.11 moko 4030: done
1.1 misha 4031:
4032: fi
1.8 moko 4033: fi
4034: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4035: if test -n "$ac_ct_DUMPBIN"; then
1.11 moko 4036: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4037: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.1 misha 4038: else
1.11 moko 4039: echo "$as_me:$LINENO: result: no" >&5
4040: echo "${ECHO_T}no" >&6
1.1 misha 4041: fi
4042:
1.8 moko 4043: test -n "$ac_ct_DUMPBIN" && break
4044: done
1.11 moko 4045: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.8 moko 4046:
1.11 moko 4047: DUMPBIN=$ac_ct_DUMPBIN
1.1 misha 4048: fi
4049:
1.8 moko 4050: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4051: *COFF*)
4052: DUMPBIN="$DUMPBIN -symbols"
4053: ;;
4054: *)
4055: DUMPBIN=:
4056: ;;
4057: esac
4058: fi
4059:
4060: if test "$DUMPBIN" != ":"; then
4061: NM="$DUMPBIN"
4062: fi
4063: fi
4064: test -z "$NM" && NM=nm
4065:
4066:
4067:
4068:
4069:
4070:
1.11 moko 4071: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4072: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4073: if test "${lt_cv_nm_interface+set}" = set; then
4074: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4075: else
4076: lt_cv_nm_interface="BSD nm"
4077: echo "int some_variable = 0;" > conftest.$ac_ext
4078: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4079: (eval "$ac_compile" 2>conftest.err)
4080: cat conftest.err >&5
4081: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4082: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4083: cat conftest.err >&5
4084: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4085: cat conftest.out >&5
4086: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4087: lt_cv_nm_interface="MS dumpbin"
4088: fi
4089: rm -f conftest*
4090: fi
1.11 moko 4091: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4092: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.8 moko 4093:
1.11 moko 4094: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4095: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1.8 moko 4096: LN_S=$as_ln_s
4097: if test "$LN_S" = "ln -s"; then
1.11 moko 4098: echo "$as_me:$LINENO: result: yes" >&5
4099: echo "${ECHO_T}yes" >&6
1.8 moko 4100: else
1.11 moko 4101: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4102: echo "${ECHO_T}no, using $LN_S" >&6
1.8 moko 4103: fi
4104:
4105: # find the maximum length of command line arguments
1.11 moko 4106: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4107: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4108: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4109: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4110: else
4111: i=0
4112: teststring="ABCD"
4113:
4114: case $build_os in
4115: msdosdjgpp*)
4116: # On DJGPP, this test can blow up pretty badly due to problems in libc
4117: # (any single argument exceeding 2000 bytes causes a buffer overrun
4118: # during glob expansion). Even if it were fixed, the result of this
4119: # check would be larger than it should be.
4120: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4121: ;;
4122:
4123: gnu*)
4124: # Under GNU Hurd, this test is not required because there is
4125: # no limit to the length of command line arguments.
4126: # Libtool will interpret -1 as no limit whatsoever
4127: lt_cv_sys_max_cmd_len=-1;
4128: ;;
4129:
4130: cygwin* | mingw* | cegcc*)
4131: # On Win9x/ME, this test blows up -- it succeeds, but takes
4132: # about 5 minutes as the teststring grows exponentially.
4133: # Worse, since 9x/ME are not pre-emptively multitasking,
4134: # you end up with a "frozen" computer, even though with patience
4135: # the test eventually succeeds (with a max line length of 256k).
4136: # Instead, let's just punt: use the minimum linelength reported by
4137: # all of the supported platforms: 8192 (on NT/2K/XP).
4138: lt_cv_sys_max_cmd_len=8192;
4139: ;;
4140:
4141: mint*)
4142: # On MiNT this can take a long time and run out of memory.
4143: lt_cv_sys_max_cmd_len=8192;
4144: ;;
4145:
4146: amigaos*)
4147: # On AmigaOS with pdksh, this test takes hours, literally.
4148: # So we just punt and use a minimum line length of 8192.
4149: lt_cv_sys_max_cmd_len=8192;
4150: ;;
4151:
4152: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4153: # This has been around since 386BSD, at least. Likely further.
4154: if test -x /sbin/sysctl; then
4155: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4156: elif test -x /usr/sbin/sysctl; then
4157: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4158: else
4159: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4160: fi
4161: # And add a safety zone
4162: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4163: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4164: ;;
4165:
4166: interix*)
4167: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4168: lt_cv_sys_max_cmd_len=196608
4169: ;;
4170:
4171: os2*)
4172: # The test takes a long time on OS/2.
4173: lt_cv_sys_max_cmd_len=8192
4174: ;;
4175:
4176: osf*)
4177: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4178: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4179: # nice to cause kernel panics so lets avoid the loop below.
4180: # First set a reasonable default.
4181: lt_cv_sys_max_cmd_len=16384
4182: #
4183: if test -x /sbin/sysconfig; then
4184: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4185: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4186: esac
4187: fi
4188: ;;
4189: sco3.2v5*)
4190: lt_cv_sys_max_cmd_len=102400
4191: ;;
4192: sysv5* | sco5v6* | sysv4.2uw2*)
4193: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4194: if test -n "$kargmax"; then
4195: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4196: else
4197: lt_cv_sys_max_cmd_len=32768
4198: fi
4199: ;;
4200: *)
4201: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4202: if test -n "$lt_cv_sys_max_cmd_len"; then
4203: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4204: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4205: else
4206: # Make teststring a little bigger before we do anything with it.
4207: # a 1K string should be a reasonable start.
4208: for i in 1 2 3 4 5 6 7 8 ; do
4209: teststring=$teststring$teststring
4210: done
4211: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4212: # If test is not a shell built-in, we'll probably end up computing a
4213: # maximum length that is only half of the actual maximum length, but
4214: # we can't tell.
4215: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4216: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4217: test $i != 17 # 1/2 MB should be enough
4218: do
4219: i=`expr $i + 1`
4220: teststring=$teststring$teststring
4221: done
4222: # Only check the string length outside the loop.
4223: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4224: teststring=
4225: # Add a significant safety factor because C++ compilers can tack on
4226: # massive amounts of additional arguments before passing them to the
4227: # linker. It appears as though 1/2 is a usable value.
4228: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4229: fi
4230: ;;
4231: esac
4232:
4233: fi
4234:
4235: if test -n $lt_cv_sys_max_cmd_len ; then
1.11 moko 4236: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4237: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
1.8 moko 4238: else
1.11 moko 4239: echo "$as_me:$LINENO: result: none" >&5
4240: echo "${ECHO_T}none" >&6
1.8 moko 4241: fi
4242: max_cmd_len=$lt_cv_sys_max_cmd_len
4243:
4244:
4245:
4246:
4247:
4248:
4249: : ${CP="cp -f"}
4250: : ${MV="mv -f"}
4251: : ${RM="rm -f"}
4252:
1.11 moko 4253: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4254: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1.8 moko 4255: # Try some XSI features
4256: xsi_shell=no
4257: ( _lt_dummy="a/b/c"
4258: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4259: = c,a/b,b/c, \
4260: && eval 'test $(( 1 + 1 )) -eq 2 \
4261: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4262: && xsi_shell=yes
1.11 moko 4263: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4264: echo "${ECHO_T}$xsi_shell" >&6
1.8 moko 4265:
4266:
1.11 moko 4267: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4268: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1.8 moko 4269: lt_shell_append=no
4270: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4271: >/dev/null 2>&1 \
4272: && lt_shell_append=yes
1.11 moko 4273: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4274: echo "${ECHO_T}$lt_shell_append" >&6
1.8 moko 4275:
4276:
4277: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4278: lt_unset=unset
4279: else
4280: lt_unset=false
4281: fi
4282:
4283:
4284:
4285:
4286:
4287: # test EBCDIC or ASCII
4288: case `echo X|tr X '\101'` in
4289: A) # ASCII based system
4290: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4291: lt_SP2NL='tr \040 \012'
4292: lt_NL2SP='tr \015\012 \040\040'
4293: ;;
4294: *) # EBCDIC based system
4295: lt_SP2NL='tr \100 \n'
4296: lt_NL2SP='tr \r\n \100\100'
4297: ;;
4298: esac
4299:
4300:
4301:
4302:
4303:
4304:
4305:
4306:
4307:
1.11 moko 4308: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4309: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4310: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4311: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4312: else
4313: case $host in
4314: *-*-mingw* )
4315: case $build in
4316: *-*-mingw* ) # actually msys
4317: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4318: ;;
4319: *-*-cygwin* )
4320: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4321: ;;
4322: * ) # otherwise, assume *nix
4323: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4324: ;;
4325: esac
4326: ;;
4327: *-*-cygwin* )
4328: case $build in
4329: *-*-mingw* ) # actually msys
4330: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4331: ;;
4332: *-*-cygwin* )
4333: lt_cv_to_host_file_cmd=func_convert_file_noop
4334: ;;
4335: * ) # otherwise, assume *nix
4336: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4337: ;;
4338: esac
4339: ;;
4340: * ) # unhandled hosts (and "normal" native builds)
4341: lt_cv_to_host_file_cmd=func_convert_file_noop
4342: ;;
4343: esac
4344:
4345: fi
4346:
4347: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.11 moko 4348: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4349: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
1.8 moko 4350:
4351:
4352:
4353:
4354:
1.11 moko 4355: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4356: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4357: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4358: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4359: else
4360: #assume ordinary cross tools, or native build.
4361: lt_cv_to_tool_file_cmd=func_convert_file_noop
4362: case $host in
4363: *-*-mingw* )
4364: case $build in
4365: *-*-mingw* ) # actually msys
4366: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4367: ;;
4368: esac
4369: ;;
4370: esac
4371:
4372: fi
4373:
4374: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.11 moko 4375: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4376: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
1.8 moko 4377:
4378:
4379:
4380:
4381:
1.11 moko 4382: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4383: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4384: if test "${lt_cv_ld_reload_flag+set}" = set; then
4385: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4386: else
4387: lt_cv_ld_reload_flag='-r'
4388: fi
1.11 moko 4389: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4390: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1.8 moko 4391: reload_flag=$lt_cv_ld_reload_flag
4392: case $reload_flag in
4393: "" | " "*) ;;
4394: *) reload_flag=" $reload_flag" ;;
4395: esac
4396: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4397: case $host_os in
4398: cygwin* | mingw* | pw32* | cegcc*)
4399: if test "$GCC" != yes; then
4400: reload_cmds=false
4401: fi
4402: ;;
4403: darwin*)
4404: if test "$GCC" = yes; then
4405: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4406: else
4407: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4408: fi
4409: ;;
4410: esac
4411:
4412:
4413:
4414:
4415:
4416:
4417:
4418:
4419:
4420: if test -n "$ac_tool_prefix"; then
4421: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4422: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.11 moko 4423: echo "$as_me:$LINENO: checking for $ac_word" >&5
4424: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4426: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4427: else
4428: if test -n "$OBJDUMP"; then
4429: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4430: else
4431: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432: for as_dir in $PATH
4433: do
4434: IFS=$as_save_IFS
4435: test -z "$as_dir" && as_dir=.
1.11 moko 4436: for ac_exec_ext in '' $ac_executable_extensions; do
4437: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4438: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.11 moko 4439: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4440: break 2
4441: fi
4442: done
1.11 moko 4443: done
1.8 moko 4444:
4445: fi
4446: fi
4447: OBJDUMP=$ac_cv_prog_OBJDUMP
4448: if test -n "$OBJDUMP"; then
1.11 moko 4449: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4450: echo "${ECHO_T}$OBJDUMP" >&6
1.8 moko 4451: else
1.11 moko 4452: echo "$as_me:$LINENO: result: no" >&5
4453: echo "${ECHO_T}no" >&6
1.8 moko 4454: fi
4455:
4456: fi
4457: if test -z "$ac_cv_prog_OBJDUMP"; then
4458: ac_ct_OBJDUMP=$OBJDUMP
4459: # Extract the first word of "objdump", so it can be a program name with args.
4460: set dummy objdump; ac_word=$2
1.11 moko 4461: echo "$as_me:$LINENO: checking for $ac_word" >&5
4462: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4464: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4465: else
4466: if test -n "$ac_ct_OBJDUMP"; then
4467: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4468: else
4469: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470: for as_dir in $PATH
4471: do
4472: IFS=$as_save_IFS
4473: test -z "$as_dir" && as_dir=.
1.11 moko 4474: for ac_exec_ext in '' $ac_executable_extensions; do
4475: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4476: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.11 moko 4477: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4478: break 2
4479: fi
4480: done
1.11 moko 4481: done
1.8 moko 4482:
1.11 moko 4483: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
1.8 moko 4484: fi
4485: fi
4486: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4487: if test -n "$ac_ct_OBJDUMP"; then
1.11 moko 4488: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4489: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
1.8 moko 4490: else
1.11 moko 4491: echo "$as_me:$LINENO: result: no" >&5
4492: echo "${ECHO_T}no" >&6
1.8 moko 4493: fi
4494:
1.11 moko 4495: OBJDUMP=$ac_ct_OBJDUMP
1.8 moko 4496: else
4497: OBJDUMP="$ac_cv_prog_OBJDUMP"
4498: fi
4499:
4500: test -z "$OBJDUMP" && OBJDUMP=objdump
4501:
4502:
4503:
4504:
4505:
4506:
1.11 moko 4507: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4508: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4509: if test "${lt_cv_deplibs_check_method+set}" = set; then
4510: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4511: else
4512: lt_cv_file_magic_cmd='$MAGIC_CMD'
4513: lt_cv_file_magic_test_file=
4514: lt_cv_deplibs_check_method='unknown'
4515: # Need to set the preceding variable on all platforms that support
4516: # interlibrary dependencies.
4517: # 'none' -- dependencies not supported.
4518: # `unknown' -- same as none, but documents that we really don't know.
4519: # 'pass_all' -- all dependencies passed with no checks.
4520: # 'test_compile' -- check by making test program.
4521: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 4522: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 4523: # If you have `file' or equivalent on your system and you're not sure
4524: # whether `pass_all' will *always* work, you probably want this one.
4525:
4526: case $host_os in
1.8 moko 4527: aix[4-9]*)
1.1 misha 4528: lt_cv_deplibs_check_method=pass_all
4529: ;;
4530:
4531: beos*)
4532: lt_cv_deplibs_check_method=pass_all
4533: ;;
4534:
1.8 moko 4535: bsdi[45]*)
1.1 misha 4536: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4537: lt_cv_file_magic_cmd='/usr/bin/file -L'
4538: lt_cv_file_magic_test_file=/shlib/libc.so
4539: ;;
4540:
1.8 moko 4541: cygwin*)
4542: # func_win32_libid is a shell function defined in ltmain.sh
4543: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4544: lt_cv_file_magic_cmd='func_win32_libid'
4545: ;;
4546:
4547: mingw* | pw32*)
4548: # Base MSYS/MinGW do not provide the 'file' command needed by
4549: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4550: # unless we find 'file', for example because we are cross-compiling.
4551: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4552: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4553: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4554: lt_cv_file_magic_cmd='func_win32_libid'
4555: else
4556: # Keep this pattern in sync with the one in func_win32_libid.
4557: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4558: lt_cv_file_magic_cmd='$OBJDUMP -f'
4559: fi
4560: ;;
4561:
4562: cegcc*)
4563: # use the weaker test based on 'objdump'. See mingw*.
4564: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 4565: lt_cv_file_magic_cmd='$OBJDUMP -f'
4566: ;;
4567:
4568: darwin* | rhapsody*)
1.8 moko 4569: lt_cv_deplibs_check_method=pass_all
1.1 misha 4570: ;;
4571:
1.8 moko 4572: freebsd* | dragonfly*)
4573: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 4574: case $host_cpu in
4575: i*86 )
4576: # Not sure whether the presence of OpenBSD here was a mistake.
4577: # Let's accept both of them until this is cleared up.
1.8 moko 4578: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 4579: lt_cv_file_magic_cmd=/usr/bin/file
4580: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4581: ;;
4582: esac
4583: else
4584: lt_cv_deplibs_check_method=pass_all
4585: fi
4586: ;;
4587:
4588: gnu*)
4589: lt_cv_deplibs_check_method=pass_all
4590: ;;
4591:
1.8 moko 4592: haiku*)
4593: lt_cv_deplibs_check_method=pass_all
1.1 misha 4594: ;;
4595:
1.8 moko 4596: hpux10.20* | hpux11*)
4597: lt_cv_file_magic_cmd=/usr/bin/file
4598: case $host_cpu in
4599: ia64*)
4600: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4601: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4602: ;;
4603: hppa*64*)
4604: 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]'
4605: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 4606: ;;
4607: *)
1.8 moko 4608: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4609: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 4610: ;;
4611: esac
1.8 moko 4612: ;;
4613:
4614: interix[3-9]*)
4615: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4616: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4617: ;;
4618:
4619: irix5* | irix6* | nonstopux*)
4620: case $LD in
4621: *-32|*"-32 ") libmagic=32-bit;;
4622: *-n32|*"-n32 ") libmagic=N32;;
4623: *-64|*"-64 ") libmagic=64-bit;;
4624: *) libmagic=never-match;;
4625: esac
1.1 misha 4626: lt_cv_deplibs_check_method=pass_all
4627: ;;
4628:
1.8 moko 4629: # This must be glibc/ELF.
4630: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4631: lt_cv_deplibs_check_method=pass_all
1.1 misha 4632: ;;
4633:
4634: netbsd*)
1.8 moko 4635: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4636: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4637: else
1.8 moko 4638: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 4639: fi
4640: ;;
4641:
4642: newos6*)
4643: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4644: lt_cv_file_magic_cmd=/usr/bin/file
4645: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4646: ;;
4647:
1.8 moko 4648: *nto* | *qnx*)
4649: lt_cv_deplibs_check_method=pass_all
4650: ;;
4651:
1.1 misha 4652: openbsd*)
1.8 moko 4653: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4654: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 4655: else
1.8 moko 4656: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4657: fi
4658: ;;
4659:
4660: osf3* | osf4* | osf5*)
4661: lt_cv_deplibs_check_method=pass_all
4662: ;;
4663:
1.8 moko 4664: rdos*)
1.1 misha 4665: lt_cv_deplibs_check_method=pass_all
4666: ;;
4667:
4668: solaris*)
4669: lt_cv_deplibs_check_method=pass_all
4670: ;;
4671:
1.8 moko 4672: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 4673: lt_cv_deplibs_check_method=pass_all
4674: ;;
4675:
1.8 moko 4676: sysv4 | sysv4.3*)
1.1 misha 4677: case $host_vendor in
4678: motorola)
4679: 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]'
4680: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4681: ;;
4682: ncr)
4683: lt_cv_deplibs_check_method=pass_all
4684: ;;
4685: sequent)
4686: lt_cv_file_magic_cmd='/bin/file'
4687: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4688: ;;
4689: sni)
4690: lt_cv_file_magic_cmd='/bin/file'
4691: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4692: lt_cv_file_magic_test_file=/lib/libc.so
4693: ;;
4694: siemens)
4695: lt_cv_deplibs_check_method=pass_all
4696: ;;
1.8 moko 4697: pc)
4698: lt_cv_deplibs_check_method=pass_all
4699: ;;
1.1 misha 4700: esac
4701: ;;
1.8 moko 4702:
4703: tpf*)
4704: lt_cv_deplibs_check_method=pass_all
4705: ;;
1.1 misha 4706: esac
4707:
4708: fi
1.11 moko 4709: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4710: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.8 moko 4711:
4712: file_magic_glob=
4713: want_nocaseglob=no
4714: if test "$build" = "$host"; then
4715: case $host_os in
4716: mingw* | pw32*)
4717: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4718: want_nocaseglob=yes
4719: else
4720: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4721: fi
4722: ;;
4723: esac
4724: fi
4725:
1.1 misha 4726: file_magic_cmd=$lt_cv_file_magic_cmd
4727: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 4728: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4729:
4730:
1.1 misha 4731:
4732:
4733:
4734:
4735:
4736:
4737:
4738:
1.8 moko 4739:
4740:
4741:
4742:
4743:
4744:
4745:
4746:
4747:
4748:
4749:
4750:
4751: if test -n "$ac_tool_prefix"; then
4752: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4753: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.11 moko 4754: echo "$as_me:$LINENO: checking for $ac_word" >&5
4755: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4756: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4757: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4758: else
4759: if test -n "$DLLTOOL"; then
4760: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4761: else
4762: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763: for as_dir in $PATH
4764: do
4765: IFS=$as_save_IFS
4766: test -z "$as_dir" && as_dir=.
1.11 moko 4767: for ac_exec_ext in '' $ac_executable_extensions; do
4768: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4769: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.11 moko 4770: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4771: break 2
4772: fi
4773: done
1.11 moko 4774: done
1.8 moko 4775:
4776: fi
4777: fi
4778: DLLTOOL=$ac_cv_prog_DLLTOOL
4779: if test -n "$DLLTOOL"; then
1.11 moko 4780: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4781: echo "${ECHO_T}$DLLTOOL" >&6
1.8 moko 4782: else
1.11 moko 4783: echo "$as_me:$LINENO: result: no" >&5
4784: echo "${ECHO_T}no" >&6
1.8 moko 4785: fi
4786:
4787: fi
4788: if test -z "$ac_cv_prog_DLLTOOL"; then
4789: ac_ct_DLLTOOL=$DLLTOOL
4790: # Extract the first word of "dlltool", so it can be a program name with args.
4791: set dummy dlltool; ac_word=$2
1.11 moko 4792: echo "$as_me:$LINENO: checking for $ac_word" >&5
4793: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4795: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4796: else
1.8 moko 4797: if test -n "$ac_ct_DLLTOOL"; then
4798: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4799: else
4800: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801: for as_dir in $PATH
4802: do
4803: IFS=$as_save_IFS
4804: test -z "$as_dir" && as_dir=.
1.11 moko 4805: for ac_exec_ext in '' $ac_executable_extensions; do
4806: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4807: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.11 moko 4808: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4809: break 2
4810: fi
4811: done
1.11 moko 4812: done
1.8 moko 4813:
1.11 moko 4814: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
1.8 moko 4815: fi
4816: fi
4817: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818: if test -n "$ac_ct_DLLTOOL"; then
1.11 moko 4819: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4820: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
1.8 moko 4821: else
1.11 moko 4822: echo "$as_me:$LINENO: result: no" >&5
4823: echo "${ECHO_T}no" >&6
1.8 moko 4824: fi
4825:
1.11 moko 4826: DLLTOOL=$ac_ct_DLLTOOL
1.8 moko 4827: else
4828: DLLTOOL="$ac_cv_prog_DLLTOOL"
4829: fi
4830:
4831: test -z "$DLLTOOL" && DLLTOOL=dlltool
4832:
4833:
4834:
4835:
1.1 misha 4836:
4837:
4838:
1.11 moko 4839: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4840: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4841: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4842: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4843: else
4844: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 4845:
4846: case $host_os in
1.8 moko 4847: cygwin* | mingw* | pw32* | cegcc*)
4848: # two different shell functions defined in ltmain.sh
4849: # decide which to use based on capabilities of $DLLTOOL
4850: case `$DLLTOOL --help 2>&1` in
4851: *--identify-strict*)
4852: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4853: ;;
4854: *)
4855: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4856: ;;
4857: esac
1.1 misha 4858: ;;
1.8 moko 4859: *)
4860: # fallback: assume linklib IS sharedlib
4861: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 4862: ;;
4863: esac
4864:
4865: fi
1.11 moko 4866: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4867: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
1.8 moko 4868: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4869: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 4870:
4871:
4872:
4873:
4874:
4875:
4876:
4877:
1.8 moko 4878: if test -n "$ac_tool_prefix"; then
4879: for ac_prog in ar
4880: do
4881: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4882: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 4883: echo "$as_me:$LINENO: checking for $ac_word" >&5
4884: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885: if test "${ac_cv_prog_AR+set}" = set; then
4886: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4887: else
4888: if test -n "$AR"; then
4889: ac_cv_prog_AR="$AR" # Let the user override the test.
4890: else
4891: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892: for as_dir in $PATH
4893: do
4894: IFS=$as_save_IFS
4895: test -z "$as_dir" && as_dir=.
1.11 moko 4896: for ac_exec_ext in '' $ac_executable_extensions; do
4897: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4898: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.11 moko 4899: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4900: break 2
1.1 misha 4901: fi
1.8 moko 4902: done
1.11 moko 4903: done
1.1 misha 4904:
4905: fi
4906: fi
1.8 moko 4907: AR=$ac_cv_prog_AR
4908: if test -n "$AR"; then
1.11 moko 4909: echo "$as_me:$LINENO: result: $AR" >&5
4910: echo "${ECHO_T}$AR" >&6
1.1 misha 4911: else
1.11 moko 4912: echo "$as_me:$LINENO: result: no" >&5
4913: echo "${ECHO_T}no" >&6
1.1 misha 4914: fi
4915:
1.8 moko 4916: test -n "$AR" && break
4917: done
1.1 misha 4918: fi
1.8 moko 4919: if test -z "$AR"; then
4920: ac_ct_AR=$AR
4921: for ac_prog in ar
4922: do
4923: # Extract the first word of "$ac_prog", so it can be a program name with args.
4924: set dummy $ac_prog; ac_word=$2
1.11 moko 4925: echo "$as_me:$LINENO: checking for $ac_word" >&5
4926: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4927: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4929: else
1.8 moko 4930: if test -n "$ac_ct_AR"; then
4931: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4932: else
4933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934: for as_dir in $PATH
1.1 misha 4935: do
1.8 moko 4936: IFS=$as_save_IFS
4937: test -z "$as_dir" && as_dir=.
1.11 moko 4938: for ac_exec_ext in '' $ac_executable_extensions; do
4939: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4940: ac_cv_prog_ac_ct_AR="$ac_prog"
1.11 moko 4941: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4942: break 2
1.1 misha 4943: fi
1.8 moko 4944: done
1.11 moko 4945: done
1.1 misha 4946:
4947: fi
4948: fi
1.8 moko 4949: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4950: if test -n "$ac_ct_AR"; then
1.11 moko 4951: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4952: echo "${ECHO_T}$ac_ct_AR" >&6
1.1 misha 4953: else
1.11 moko 4954: echo "$as_me:$LINENO: result: no" >&5
4955: echo "${ECHO_T}no" >&6
1.1 misha 4956: fi
4957:
1.8 moko 4958: test -n "$ac_ct_AR" && break
1.1 misha 4959: done
1.11 moko 4960: test -n "$ac_ct_AR" || ac_ct_AR="false"
1.8 moko 4961:
1.11 moko 4962: AR=$ac_ct_AR
1.1 misha 4963: fi
4964:
1.8 moko 4965: : ${AR=ar}
4966: : ${AR_FLAGS=cru}
4967:
1.1 misha 4968:
4969:
4970:
4971:
4972:
4973:
4974:
4975:
4976:
4977:
1.11 moko 4978: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4979: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4980: if test "${lt_cv_ar_at_file+set}" = set; then
4981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4982: else
1.8 moko 4983: lt_cv_ar_at_file=no
1.11 moko 4984: cat >conftest.$ac_ext <<_ACEOF
4985: /* confdefs.h. */
4986: _ACEOF
4987: cat confdefs.h >>conftest.$ac_ext
4988: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 4989: /* end confdefs.h. */
4990:
4991: int
4992: main ()
4993: {
4994:
4995: ;
4996: return 0;
4997: }
4998: _ACEOF
1.11 moko 4999: rm -f conftest.$ac_objext
5000: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001: (eval $ac_compile) 2>conftest.er1
5002: ac_status=$?
5003: grep -v '^ *+' conftest.er1 >conftest.err
5004: rm -f conftest.er1
5005: cat conftest.err >&5
5006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007: (exit $ac_status); } &&
5008: { ac_try='test -z "$ac_c_werror_flag"
5009: || test ! -s conftest.err'
5010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011: (eval $ac_try) 2>&5
5012: ac_status=$?
5013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014: (exit $ac_status); }; } &&
5015: { ac_try='test -s conftest.$ac_objext'
5016: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017: (eval $ac_try) 2>&5
5018: ac_status=$?
5019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020: (exit $ac_status); }; }; then
1.8 moko 5021: echo conftest.$ac_objext > conftest.lst
5022: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.11 moko 5023: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5024: (eval $lt_ar_try) 2>&5
5025: ac_status=$?
1.11 moko 5026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027: (exit $ac_status); }
1.8 moko 5028: if test "$ac_status" -eq 0; then
5029: # Ensure the archiver fails upon bogus file names.
5030: rm -f conftest.$ac_objext libconftest.a
1.11 moko 5031: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5032: (eval $lt_ar_try) 2>&5
5033: ac_status=$?
1.11 moko 5034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035: (exit $ac_status); }
1.8 moko 5036: if test "$ac_status" -ne 0; then
5037: lt_cv_ar_at_file=@
5038: fi
5039: fi
5040: rm -f conftest.* libconftest.a
5041:
1.11 moko 5042: else
5043: echo "$as_me: failed program was:" >&5
5044: sed 's/^/| /' conftest.$ac_ext >&5
5045:
1.1 misha 5046: fi
1.11 moko 5047: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 5048:
1.8 moko 5049: fi
1.11 moko 5050: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5051: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.8 moko 5052:
5053: if test "x$lt_cv_ar_at_file" = xno; then
5054: archiver_list_spec=
1.1 misha 5055: else
1.8 moko 5056: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 5057: fi
5058:
5059:
5060:
1.8 moko 5061:
5062:
5063:
5064:
5065: if test -n "$ac_tool_prefix"; then
5066: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5067: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 5068: echo "$as_me:$LINENO: checking for $ac_word" >&5
5069: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5070: if test "${ac_cv_prog_STRIP+set}" = set; then
5071: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5072: else
5073: if test -n "$STRIP"; then
5074: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5075: else
5076: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077: for as_dir in $PATH
5078: do
5079: IFS=$as_save_IFS
5080: test -z "$as_dir" && as_dir=.
1.11 moko 5081: for ac_exec_ext in '' $ac_executable_extensions; do
5082: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5083: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 5084: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5085: break 2
5086: fi
5087: done
1.11 moko 5088: done
1.8 moko 5089:
5090: fi
5091: fi
5092: STRIP=$ac_cv_prog_STRIP
5093: if test -n "$STRIP"; then
1.11 moko 5094: echo "$as_me:$LINENO: result: $STRIP" >&5
5095: echo "${ECHO_T}$STRIP" >&6
1.1 misha 5096: else
1.11 moko 5097: echo "$as_me:$LINENO: result: no" >&5
5098: echo "${ECHO_T}no" >&6
1.1 misha 5099: fi
5100:
5101: fi
1.8 moko 5102: if test -z "$ac_cv_prog_STRIP"; then
5103: ac_ct_STRIP=$STRIP
5104: # Extract the first word of "strip", so it can be a program name with args.
5105: set dummy strip; ac_word=$2
1.11 moko 5106: echo "$as_me:$LINENO: checking for $ac_word" >&5
5107: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5108: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5109: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5110: else
1.8 moko 5111: if test -n "$ac_ct_STRIP"; then
5112: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 5113: else
1.8 moko 5114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115: for as_dir in $PATH
5116: do
5117: IFS=$as_save_IFS
5118: test -z "$as_dir" && as_dir=.
1.11 moko 5119: for ac_exec_ext in '' $ac_executable_extensions; do
5120: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5121: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 5122: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5123: break 2
5124: fi
5125: done
1.11 moko 5126: done
1.1 misha 5127:
1.11 moko 5128: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 5129: fi
5130: fi
1.8 moko 5131: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5132: if test -n "$ac_ct_STRIP"; then
1.11 moko 5133: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5134: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.8 moko 5135: else
1.11 moko 5136: echo "$as_me:$LINENO: result: no" >&5
5137: echo "${ECHO_T}no" >&6
1.1 misha 5138: fi
5139:
1.11 moko 5140: STRIP=$ac_ct_STRIP
1.8 moko 5141: else
5142: STRIP="$ac_cv_prog_STRIP"
1.1 misha 5143: fi
5144:
1.8 moko 5145: test -z "$STRIP" && STRIP=:
1.1 misha 5146:
5147:
5148:
5149:
5150:
5151:
1.8 moko 5152: if test -n "$ac_tool_prefix"; then
5153: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5154: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.11 moko 5155: echo "$as_me:$LINENO: checking for $ac_word" >&5
5156: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157: if test "${ac_cv_prog_RANLIB+set}" = set; then
5158: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5159: else
1.8 moko 5160: if test -n "$RANLIB"; then
5161: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 5162: else
1.8 moko 5163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164: for as_dir in $PATH
5165: do
5166: IFS=$as_save_IFS
5167: test -z "$as_dir" && as_dir=.
1.11 moko 5168: for ac_exec_ext in '' $ac_executable_extensions; do
5169: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5170: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.11 moko 5171: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5172: break 2
5173: fi
5174: done
1.11 moko 5175: done
1.1 misha 5176:
5177: fi
5178: fi
1.8 moko 5179: RANLIB=$ac_cv_prog_RANLIB
5180: if test -n "$RANLIB"; then
1.11 moko 5181: echo "$as_me:$LINENO: result: $RANLIB" >&5
5182: echo "${ECHO_T}$RANLIB" >&6
1.8 moko 5183: else
1.11 moko 5184: echo "$as_me:$LINENO: result: no" >&5
5185: echo "${ECHO_T}no" >&6
1.8 moko 5186: fi
1.1 misha 5187:
5188: fi
1.8 moko 5189: if test -z "$ac_cv_prog_RANLIB"; then
5190: ac_ct_RANLIB=$RANLIB
5191: # Extract the first word of "ranlib", so it can be a program name with args.
5192: set dummy ranlib; ac_word=$2
1.11 moko 5193: echo "$as_me:$LINENO: checking for $ac_word" >&5
5194: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5196: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5197: else
5198: if test -n "$ac_ct_RANLIB"; then
5199: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5200: else
5201: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202: for as_dir in $PATH
5203: do
5204: IFS=$as_save_IFS
5205: test -z "$as_dir" && as_dir=.
1.11 moko 5206: for ac_exec_ext in '' $ac_executable_extensions; do
5207: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5208: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.11 moko 5209: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5210: break 2
5211: fi
5212: done
1.11 moko 5213: done
1.1 misha 5214:
1.11 moko 5215: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.8 moko 5216: fi
1.1 misha 5217: fi
1.8 moko 5218: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5219: if test -n "$ac_ct_RANLIB"; then
1.11 moko 5220: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5221: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1 misha 5222: else
1.11 moko 5223: echo "$as_me:$LINENO: result: no" >&5
5224: echo "${ECHO_T}no" >&6
1.1 misha 5225: fi
5226:
1.11 moko 5227: RANLIB=$ac_ct_RANLIB
1.1 misha 5228: else
1.8 moko 5229: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 5230: fi
5231:
1.8 moko 5232: test -z "$RANLIB" && RANLIB=:
5233:
5234:
5235:
5236:
5237:
5238:
5239: # Determine commands to create old-style static archives.
5240: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5241: old_postinstall_cmds='chmod 644 $oldlib'
5242: old_postuninstall_cmds=
1.1 misha 5243:
1.8 moko 5244: if test -n "$RANLIB"; then
5245: case $host_os in
5246: openbsd*)
5247: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 5248: ;;
1.8 moko 5249: *)
5250: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 5251: ;;
1.8 moko 5252: esac
5253: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5254: fi
5255:
5256: case $host_os in
5257: darwin*)
5258: lock_old_archive_extraction=yes ;;
5259: *)
5260: lock_old_archive_extraction=no ;;
1.1 misha 5261: esac
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:
5291:
5292:
5293:
5294:
5295:
1.8 moko 5296:
5297:
5298:
5299:
5300:
5301: # If no C compiler was specified, use CC.
5302: LTCC=${LTCC-"$CC"}
5303:
5304: # If no C compiler flags were specified, use CFLAGS.
5305: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5306:
5307: # Allow CC to be a program name with arguments.
5308: compiler=$CC
5309:
5310:
5311: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.11 moko 5312: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5313: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5314: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5315: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5316: else
5317:
1.8 moko 5318: # These are sane defaults that work on at least a few old systems.
5319: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 5320:
1.8 moko 5321: # Character class describing NM global symbol codes.
5322: symcode='[BCDEGRST]'
1.1 misha 5323:
1.8 moko 5324: # Regexp to match symbols that can be accessed directly from C.
5325: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 5326:
1.8 moko 5327: # Define system-specific variables.
5328: case $host_os in
5329: aix*)
5330: symcode='[BCDT]'
5331: ;;
5332: cygwin* | mingw* | pw32* | cegcc*)
5333: symcode='[ABCDGISTW]'
5334: ;;
5335: hpux*)
5336: if test "$host_cpu" = ia64; then
5337: symcode='[ABCDEGRST]'
5338: fi
5339: ;;
5340: irix* | nonstopux*)
5341: symcode='[BCDEGRST]'
5342: ;;
5343: osf*)
5344: symcode='[BCDEGQRST]'
5345: ;;
5346: solaris*)
5347: symcode='[BDRT]'
5348: ;;
5349: sco3.2v5*)
5350: symcode='[DT]'
5351: ;;
5352: sysv4.2uw2*)
5353: symcode='[DT]'
5354: ;;
5355: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5356: symcode='[ABDT]'
5357: ;;
5358: sysv4)
5359: symcode='[DFNSTU]'
5360: ;;
5361: esac
5362:
5363: # If we're using GNU nm, then use its standard symbol codes.
5364: case `$NM -V 2>&1` in
5365: *GNU* | *'with BFD'*)
5366: symcode='[ABCDGIRSTW]' ;;
5367: esac
5368:
5369: # Transform an extracted symbol line into a proper C declaration.
5370: # Some systems (esp. on ia64) link data and code symbols differently,
5371: # so use this general approach.
5372: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5373:
5374: # Transform an extracted symbol line into symbol name and symbol address
5375: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5376: 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'"
5377:
5378: # Handle CRLF in mingw tool chain
5379: opt_cr=
5380: case $build_os in
5381: mingw*)
5382: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5383: ;;
5384: esac
5385:
5386: # Try without a prefix underscore, then with it.
5387: for ac_symprfx in "" "_"; do
5388:
5389: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5390: symxfrm="\\1 $ac_symprfx\\2 \\2"
5391:
5392: # Write the raw and C identifiers.
5393: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5394: # Fake it for dumpbin and say T for any non-static function
5395: # and D for any global variable.
5396: # Also find C++ and __fastcall symbols from MSVC++,
5397: # which start with @ or ?.
5398: lt_cv_sys_global_symbol_pipe="$AWK '"\
5399: " {last_section=section; section=\$ 3};"\
5400: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5401: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5402: " \$ 0!~/External *\|/{next};"\
5403: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5404: " {if(hide[section]) next};"\
5405: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5406: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5407: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5408: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5409: " ' prfx=^$ac_symprfx"
5410: else
5411: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5412: fi
5413: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5414:
5415: # Check to see that the pipe works correctly.
5416: pipe_works=no
1.1 misha 5417:
1.8 moko 5418: rm -f conftest*
5419: cat > conftest.$ac_ext <<_LT_EOF
5420: #ifdef __cplusplus
5421: extern "C" {
5422: #endif
5423: char nm_test_var;
5424: void nm_test_func(void);
5425: void nm_test_func(void){}
5426: #ifdef __cplusplus
1.1 misha 5427: }
1.8 moko 5428: #endif
5429: int main(){nm_test_var='a';nm_test_func();return(0);}
5430: _LT_EOF
5431:
1.11 moko 5432: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5433: (eval $ac_compile) 2>&5
1.1 misha 5434: ac_status=$?
1.11 moko 5435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436: (exit $ac_status); }; then
1.8 moko 5437: # Now try to grab the symbols.
5438: nlist=conftest.nm
1.11 moko 5439: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
1.8 moko 5440: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 5441: ac_status=$?
1.11 moko 5442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443: (exit $ac_status); } && test -s "$nlist"; then
1.8 moko 5444: # Try sorting and uniquifying the output.
5445: if sort "$nlist" | uniq > "$nlist"T; then
5446: mv -f "$nlist"T "$nlist"
5447: else
5448: rm -f "$nlist"T
5449: fi
5450:
5451: # Make sure that we snagged all the symbols we need.
5452: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5453: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5454: cat <<_LT_EOF > conftest.$ac_ext
5455: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5456: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5457: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5458: relocations are performed -- see ld's documentation on pseudo-relocs. */
5459: # define LT_DLSYM_CONST
5460: #elif defined(__osf__)
5461: /* This system does not cope well with relocations in const data. */
5462: # define LT_DLSYM_CONST
5463: #else
5464: # define LT_DLSYM_CONST const
5465: #endif
5466:
5467: #ifdef __cplusplus
5468: extern "C" {
5469: #endif
5470:
5471: _LT_EOF
5472: # Now generate the symbol file.
5473: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5474:
5475: cat <<_LT_EOF >> conftest.$ac_ext
5476:
5477: /* The mapping between symbol names and symbols. */
5478: LT_DLSYM_CONST struct {
5479: const char *name;
5480: void *address;
5481: }
5482: lt__PROGRAM__LTX_preloaded_symbols[] =
5483: {
5484: { "@PROGRAM@", (void *) 0 },
5485: _LT_EOF
5486: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5487: cat <<\_LT_EOF >> conftest.$ac_ext
5488: {0, (void *) 0}
5489: };
5490:
5491: /* This works around a problem in FreeBSD linker */
5492: #ifdef FREEBSD_WORKAROUND
5493: static const void *lt_preloaded_setup() {
5494: return lt__PROGRAM__LTX_preloaded_symbols;
5495: }
5496: #endif
5497:
5498: #ifdef __cplusplus
5499: }
5500: #endif
5501: _LT_EOF
5502: # Now try linking the two files.
5503: mv conftest.$ac_objext conftstm.$ac_objext
5504: lt_globsym_save_LIBS=$LIBS
5505: lt_globsym_save_CFLAGS=$CFLAGS
5506: LIBS="conftstm.$ac_objext"
5507: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.11 moko 5508: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 5509: (eval $ac_link) 2>&5
1.1 misha 5510: ac_status=$?
1.11 moko 5511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.8 moko 5513: pipe_works=yes
5514: fi
5515: LIBS=$lt_globsym_save_LIBS
5516: CFLAGS=$lt_globsym_save_CFLAGS
5517: else
5518: echo "cannot find nm_test_func in $nlist" >&5
5519: fi
5520: else
5521: echo "cannot find nm_test_var in $nlist" >&5
5522: fi
5523: else
5524: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5525: fi
5526: else
5527: echo "$progname: failed program was:" >&5
5528: cat conftest.$ac_ext >&5
5529: fi
5530: rm -rf conftest* conftst*
5531:
5532: # Do not use the global_symbol_pipe unless it works.
5533: if test "$pipe_works" = yes; then
5534: break
5535: else
5536: lt_cv_sys_global_symbol_pipe=
5537: fi
5538: done
5539:
5540: fi
5541:
5542: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5543: lt_cv_sys_global_symbol_to_cdecl=
5544: fi
5545: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.11 moko 5546: echo "$as_me:$LINENO: result: failed" >&5
5547: echo "${ECHO_T}failed" >&6
1.1 misha 5548: else
1.11 moko 5549: echo "$as_me:$LINENO: result: ok" >&5
5550: echo "${ECHO_T}ok" >&6
1.8 moko 5551: fi
1.1 misha 5552:
1.8 moko 5553: # Response file support.
5554: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5555: nm_file_list_spec='@'
5556: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5557: nm_file_list_spec='@'
1.1 misha 5558: fi
5559:
5560:
5561:
5562:
5563:
5564:
5565:
5566:
5567:
5568:
5569:
5570:
5571:
5572:
5573:
5574:
5575:
5576:
5577:
5578:
5579:
1.8 moko 5580:
5581:
5582:
5583:
5584:
5585:
1.11 moko 5586: echo "$as_me:$LINENO: checking for sysroot" >&5
5587: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5588:
5589: # Check whether --with-sysroot or --without-sysroot was given.
5590: if test "${with_sysroot+set}" = set; then
5591: withval="$with_sysroot"
1.8 moko 5592:
1.1 misha 5593: else
1.8 moko 5594: with_sysroot=no
1.11 moko 5595: fi;
1.1 misha 5596:
1.8 moko 5597: lt_sysroot=
5598: case ${with_sysroot} in #(
5599: yes)
5600: if test "$GCC" = yes; then
5601: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5602: fi
5603: ;; #(
5604: /*)
5605: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5606: ;; #(
5607: no|'')
5608: ;; #(
5609: *)
1.11 moko 5610: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5611: echo "${ECHO_T}${with_sysroot}" >&6
5612: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5613: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5614: { (exit 1); exit 1; }; }
1.8 moko 5615: ;;
5616: esac
5617:
1.11 moko 5618: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5619: echo "${ECHO_T}${lt_sysroot:-no}" >&6
1.8 moko 5620:
5621:
5622:
5623:
5624:
1.11 moko 5625: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5626: if test "${enable_libtool_lock+set}" = set; then
5627: enableval="$enable_libtool_lock"
1.1 misha 5628:
1.11 moko 5629: fi;
1.8 moko 5630: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 5631:
1.8 moko 5632: # Some flags need to be propagated to the compiler or linker for good
5633: # libtool support.
5634: case $host in
5635: ia64-*-hpux*)
5636: # Find out which ABI we are using.
5637: echo 'int i;' > conftest.$ac_ext
1.11 moko 5638: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5639: (eval $ac_compile) 2>&5
5640: ac_status=$?
1.11 moko 5641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642: (exit $ac_status); }; then
1.8 moko 5643: case `/usr/bin/file conftest.$ac_objext` in
5644: *ELF-32*)
5645: HPUX_IA64_MODE="32"
5646: ;;
5647: *ELF-64*)
5648: HPUX_IA64_MODE="64"
5649: ;;
1.1 misha 5650: esac
5651: fi
1.8 moko 5652: rm -rf conftest*
5653: ;;
5654: *-*-irix6*)
5655: # Find out which ABI we are using.
5656: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.11 moko 5657: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5658: (eval $ac_compile) 2>&5
1.1 misha 5659: ac_status=$?
1.11 moko 5660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661: (exit $ac_status); }; then
1.8 moko 5662: if test "$lt_cv_prog_gnu_ld" = yes; then
5663: case `/usr/bin/file conftest.$ac_objext` in
5664: *32-bit*)
5665: LD="${LD-ld} -melf32bsmip"
5666: ;;
5667: *N32*)
5668: LD="${LD-ld} -melf32bmipn32"
5669: ;;
5670: *64-bit*)
5671: LD="${LD-ld} -melf64bmip"
5672: ;;
5673: esac
5674: else
5675: case `/usr/bin/file conftest.$ac_objext` in
5676: *32-bit*)
5677: LD="${LD-ld} -32"
5678: ;;
5679: *N32*)
5680: LD="${LD-ld} -n32"
5681: ;;
5682: *64-bit*)
5683: LD="${LD-ld} -64"
5684: ;;
5685: esac
5686: fi
5687: fi
5688: rm -rf conftest*
5689: ;;
5690:
5691: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5692: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5693: # Find out which ABI we are using.
5694: echo 'int i;' > conftest.$ac_ext
1.11 moko 5695: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5696: (eval $ac_compile) 2>&5
1.1 misha 5697: ac_status=$?
1.11 moko 5698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699: (exit $ac_status); }; then
1.8 moko 5700: case `/usr/bin/file conftest.o` in
5701: *32-bit*)
5702: case $host in
5703: x86_64-*kfreebsd*-gnu)
5704: LD="${LD-ld} -m elf_i386_fbsd"
5705: ;;
5706: x86_64-*linux*)
5707: LD="${LD-ld} -m elf_i386"
5708: ;;
5709: ppc64-*linux*|powerpc64-*linux*)
5710: LD="${LD-ld} -m elf32ppclinux"
5711: ;;
5712: s390x-*linux*)
5713: LD="${LD-ld} -m elf_s390"
5714: ;;
5715: sparc64-*linux*)
5716: LD="${LD-ld} -m elf32_sparc"
5717: ;;
5718: esac
1.1 misha 5719: ;;
1.8 moko 5720: *64-bit*)
5721: case $host in
5722: x86_64-*kfreebsd*-gnu)
5723: LD="${LD-ld} -m elf_x86_64_fbsd"
5724: ;;
5725: x86_64-*linux*)
5726: LD="${LD-ld} -m elf_x86_64"
5727: ;;
5728: ppc*-*linux*|powerpc*-*linux*)
5729: LD="${LD-ld} -m elf64ppc"
5730: ;;
5731: s390*-*linux*|s390*-*tpf*)
5732: LD="${LD-ld} -m elf64_s390"
5733: ;;
5734: sparc*-*linux*)
5735: LD="${LD-ld} -m elf64_sparc"
5736: ;;
5737: esac
1.1 misha 5738: ;;
1.8 moko 5739: esac
1.1 misha 5740: fi
1.8 moko 5741: rm -rf conftest*
5742: ;;
1.1 misha 5743:
1.8 moko 5744: *-*-sco3.2v5*)
5745: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5746: SAVE_CFLAGS="$CFLAGS"
5747: CFLAGS="$CFLAGS -belf"
1.11 moko 5748: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5749: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5750: if test "${lt_cv_cc_needs_belf+set}" = set; then
5751: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5752: else
1.8 moko 5753: ac_ext=c
5754: ac_cpp='$CPP $CPPFLAGS'
5755: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5758:
1.11 moko 5759: cat >conftest.$ac_ext <<_ACEOF
5760: /* confdefs.h. */
5761: _ACEOF
5762: cat confdefs.h >>conftest.$ac_ext
5763: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 5764: /* end confdefs.h. */
5765:
5766: int
5767: main ()
5768: {
5769:
5770: ;
5771: return 0;
5772: }
5773: _ACEOF
1.11 moko 5774: rm -f conftest.$ac_objext conftest$ac_exeext
5775: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776: (eval $ac_link) 2>conftest.er1
5777: ac_status=$?
5778: grep -v '^ *+' conftest.er1 >conftest.err
5779: rm -f conftest.er1
5780: cat conftest.err >&5
5781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782: (exit $ac_status); } &&
5783: { ac_try='test -z "$ac_c_werror_flag"
5784: || test ! -s conftest.err'
5785: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786: (eval $ac_try) 2>&5
5787: ac_status=$?
5788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789: (exit $ac_status); }; } &&
5790: { ac_try='test -s conftest$ac_exeext'
5791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792: (eval $ac_try) 2>&5
5793: ac_status=$?
5794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795: (exit $ac_status); }; }; then
1.8 moko 5796: lt_cv_cc_needs_belf=yes
1.1 misha 5797: else
1.11 moko 5798: echo "$as_me: failed program was:" >&5
5799: sed 's/^/| /' conftest.$ac_ext >&5
5800:
5801: lt_cv_cc_needs_belf=no
1.1 misha 5802: fi
1.11 moko 5803: rm -f conftest.err conftest.$ac_objext \
5804: conftest$ac_exeext conftest.$ac_ext
1.8 moko 5805: ac_ext=c
5806: ac_cpp='$CPP $CPPFLAGS'
5807: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 5810:
5811: fi
1.11 moko 5812: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5813: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1.8 moko 5814: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5815: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5816: CFLAGS="$SAVE_CFLAGS"
5817: fi
5818: ;;
5819: *-*solaris*)
5820: # Find out which ABI we are using.
5821: echo 'int i;' > conftest.$ac_ext
1.11 moko 5822: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5823: (eval $ac_compile) 2>&5
5824: ac_status=$?
1.11 moko 5825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826: (exit $ac_status); }; then
1.8 moko 5827: case `/usr/bin/file conftest.o` in
5828: *64-bit*)
5829: case $lt_cv_prog_gnu_ld in
5830: yes*)
5831: case $host in
5832: i?86-*-solaris*)
5833: LD="${LD-ld} -m elf_x86_64"
5834: ;;
5835: sparc*-*-solaris*)
5836: LD="${LD-ld} -m elf64_sparc"
5837: ;;
5838: esac
5839: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5840: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5841: LD="${LD-ld}_sol2"
5842: fi
5843: ;;
5844: *)
5845: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5846: LD="${LD-ld} -64"
5847: fi
5848: ;;
5849: esac
5850: ;;
5851: esac
5852: fi
5853: rm -rf conftest*
5854: ;;
5855: esac
1.1 misha 5856:
1.8 moko 5857: need_locks="$enable_libtool_lock"
1.1 misha 5858:
1.8 moko 5859: if test -n "$ac_tool_prefix"; then
5860: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5861: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.11 moko 5862: echo "$as_me:$LINENO: checking for $ac_word" >&5
5863: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
5865: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5866: else
1.8 moko 5867: if test -n "$MANIFEST_TOOL"; then
5868: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5869: else
5870: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871: for as_dir in $PATH
5872: do
5873: IFS=$as_save_IFS
5874: test -z "$as_dir" && as_dir=.
1.11 moko 5875: for ac_exec_ext in '' $ac_executable_extensions; do
5876: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5877: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.11 moko 5878: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5879: break 2
5880: fi
5881: done
1.11 moko 5882: done
1.1 misha 5883:
1.8 moko 5884: fi
5885: fi
5886: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5887: if test -n "$MANIFEST_TOOL"; then
1.11 moko 5888: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5889: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.1 misha 5890: else
1.11 moko 5891: echo "$as_me:$LINENO: result: no" >&5
5892: echo "${ECHO_T}no" >&6
1.1 misha 5893: fi
5894:
5895: fi
1.8 moko 5896: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5897: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5898: # Extract the first word of "mt", so it can be a program name with args.
5899: set dummy mt; ac_word=$2
1.11 moko 5900: echo "$as_me:$LINENO: checking for $ac_word" >&5
5901: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5903: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5904: else
5905: if test -n "$ac_ct_MANIFEST_TOOL"; then
5906: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5907: else
5908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909: for as_dir in $PATH
5910: do
5911: IFS=$as_save_IFS
5912: test -z "$as_dir" && as_dir=.
1.11 moko 5913: for ac_exec_ext in '' $ac_executable_extensions; do
5914: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5915: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.11 moko 5916: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5917: break 2
5918: fi
5919: done
1.11 moko 5920: done
1.1 misha 5921:
1.11 moko 5922: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
1.8 moko 5923: fi
5924: fi
5925: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5926: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.11 moko 5927: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5928: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.8 moko 5929: else
1.11 moko 5930: echo "$as_me:$LINENO: result: no" >&5
5931: echo "${ECHO_T}no" >&6
1.8 moko 5932: fi
5933:
1.11 moko 5934: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
1.8 moko 5935: else
5936: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5937: fi
1.1 misha 5938:
1.8 moko 5939: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.11 moko 5940: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5941: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5942: if test "${lt_cv_path_mainfest_tool+set}" = set; then
5943: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5944: else
1.8 moko 5945: lt_cv_path_mainfest_tool=no
5946: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5947: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5948: cat conftest.err >&5
5949: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5950: lt_cv_path_mainfest_tool=yes
5951: fi
5952: rm -f conftest*
5953: fi
1.11 moko 5954: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5955: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
1.8 moko 5956: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5957: MANIFEST_TOOL=:
5958: fi
5959:
5960:
5961:
1.1 misha 5962:
5963:
5964:
1.8 moko 5965: case $host_os in
5966: rhapsody* | darwin*)
5967: if test -n "$ac_tool_prefix"; then
5968: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5969: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.11 moko 5970: echo "$as_me:$LINENO: checking for $ac_word" >&5
5971: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5973: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5974: else
1.8 moko 5975: if test -n "$DSYMUTIL"; then
5976: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5977: else
5978: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979: for as_dir in $PATH
5980: do
5981: IFS=$as_save_IFS
5982: test -z "$as_dir" && as_dir=.
1.11 moko 5983: for ac_exec_ext in '' $ac_executable_extensions; do
5984: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5985: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.11 moko 5986: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5987: break 2
5988: fi
5989: done
1.11 moko 5990: done
1.1 misha 5991:
5992: fi
1.8 moko 5993: fi
5994: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5995: if test -n "$DSYMUTIL"; then
1.11 moko 5996: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5997: echo "${ECHO_T}$DSYMUTIL" >&6
1.8 moko 5998: else
1.11 moko 5999: echo "$as_me:$LINENO: result: no" >&5
6000: echo "${ECHO_T}no" >&6
1.8 moko 6001: fi
1.1 misha 6002:
6003: fi
1.8 moko 6004: if test -z "$ac_cv_prog_DSYMUTIL"; then
6005: ac_ct_DSYMUTIL=$DSYMUTIL
6006: # Extract the first word of "dsymutil", so it can be a program name with args.
6007: set dummy dsymutil; ac_word=$2
1.11 moko 6008: echo "$as_me:$LINENO: checking for $ac_word" >&5
6009: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6011: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6012: else
6013: if test -n "$ac_ct_DSYMUTIL"; then
6014: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6015: else
6016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017: for as_dir in $PATH
6018: do
6019: IFS=$as_save_IFS
6020: test -z "$as_dir" && as_dir=.
1.11 moko 6021: for ac_exec_ext in '' $ac_executable_extensions; do
6022: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6023: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.11 moko 6024: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6025: break 2
6026: fi
6027: done
1.11 moko 6028: done
1.1 misha 6029:
1.11 moko 6030: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
1.8 moko 6031: fi
6032: fi
6033: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6034: if test -n "$ac_ct_DSYMUTIL"; then
1.11 moko 6035: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6036: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.1 misha 6037: else
1.11 moko 6038: echo "$as_me:$LINENO: result: no" >&5
6039: echo "${ECHO_T}no" >&6
1.1 misha 6040: fi
6041:
1.11 moko 6042: DSYMUTIL=$ac_ct_DSYMUTIL
1.1 misha 6043: else
1.8 moko 6044: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 6045: fi
6046:
1.8 moko 6047: if test -n "$ac_tool_prefix"; then
6048: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6049: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.11 moko 6050: echo "$as_me:$LINENO: checking for $ac_word" >&5
6051: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6053: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6054: else
6055: if test -n "$NMEDIT"; then
6056: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6057: else
6058: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059: for as_dir in $PATH
6060: do
6061: IFS=$as_save_IFS
6062: test -z "$as_dir" && as_dir=.
1.11 moko 6063: for ac_exec_ext in '' $ac_executable_extensions; do
6064: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6065: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.11 moko 6066: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6067: break 2
6068: fi
6069: done
1.11 moko 6070: done
1.1 misha 6071:
1.8 moko 6072: fi
6073: fi
6074: NMEDIT=$ac_cv_prog_NMEDIT
6075: if test -n "$NMEDIT"; then
1.11 moko 6076: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6077: echo "${ECHO_T}$NMEDIT" >&6
1.8 moko 6078: else
1.11 moko 6079: echo "$as_me:$LINENO: result: no" >&5
6080: echo "${ECHO_T}no" >&6
1.8 moko 6081: fi
1.1 misha 6082:
1.8 moko 6083: fi
6084: if test -z "$ac_cv_prog_NMEDIT"; then
6085: ac_ct_NMEDIT=$NMEDIT
6086: # Extract the first word of "nmedit", so it can be a program name with args.
6087: set dummy nmedit; ac_word=$2
1.11 moko 6088: echo "$as_me:$LINENO: checking for $ac_word" >&5
6089: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6091: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6092: else
6093: if test -n "$ac_ct_NMEDIT"; then
6094: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 6095: else
1.8 moko 6096: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097: for as_dir in $PATH
6098: do
6099: IFS=$as_save_IFS
6100: test -z "$as_dir" && as_dir=.
1.11 moko 6101: for ac_exec_ext in '' $ac_executable_extensions; do
6102: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6103: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.11 moko 6104: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6105: break 2
6106: fi
6107: done
1.11 moko 6108: done
1.1 misha 6109:
1.11 moko 6110: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
1.8 moko 6111: fi
6112: fi
6113: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6114: if test -n "$ac_ct_NMEDIT"; then
1.11 moko 6115: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6116: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
1.8 moko 6117: else
1.11 moko 6118: echo "$as_me:$LINENO: result: no" >&5
6119: echo "${ECHO_T}no" >&6
1.1 misha 6120: fi
6121:
1.11 moko 6122: NMEDIT=$ac_ct_NMEDIT
1.8 moko 6123: else
6124: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 6125: fi
6126:
1.8 moko 6127: if test -n "$ac_tool_prefix"; then
6128: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6129: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.11 moko 6130: echo "$as_me:$LINENO: checking for $ac_word" >&5
6131: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132: if test "${ac_cv_prog_LIPO+set}" = set; then
6133: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6134: else
6135: if test -n "$LIPO"; then
6136: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6137: else
6138: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139: for as_dir in $PATH
6140: do
6141: IFS=$as_save_IFS
6142: test -z "$as_dir" && as_dir=.
1.11 moko 6143: for ac_exec_ext in '' $ac_executable_extensions; do
6144: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6145: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.11 moko 6146: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6147: break 2
6148: fi
6149: done
1.11 moko 6150: done
1.1 misha 6151:
1.8 moko 6152: fi
6153: fi
6154: LIPO=$ac_cv_prog_LIPO
6155: if test -n "$LIPO"; then
1.11 moko 6156: echo "$as_me:$LINENO: result: $LIPO" >&5
6157: echo "${ECHO_T}$LIPO" >&6
1.8 moko 6158: else
1.11 moko 6159: echo "$as_me:$LINENO: result: no" >&5
6160: echo "${ECHO_T}no" >&6
1.8 moko 6161: fi
1.1 misha 6162:
1.8 moko 6163: fi
6164: if test -z "$ac_cv_prog_LIPO"; then
6165: ac_ct_LIPO=$LIPO
6166: # Extract the first word of "lipo", so it can be a program name with args.
6167: set dummy lipo; ac_word=$2
1.11 moko 6168: echo "$as_me:$LINENO: checking for $ac_word" >&5
6169: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6170: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6171: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6172: else
6173: if test -n "$ac_ct_LIPO"; then
6174: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6175: else
6176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177: for as_dir in $PATH
6178: do
6179: IFS=$as_save_IFS
6180: test -z "$as_dir" && as_dir=.
1.11 moko 6181: for ac_exec_ext in '' $ac_executable_extensions; do
6182: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6183: ac_cv_prog_ac_ct_LIPO="lipo"
1.11 moko 6184: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6185: break 2
1.1 misha 6186: fi
1.8 moko 6187: done
1.11 moko 6188: done
1.8 moko 6189:
1.11 moko 6190: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
1.8 moko 6191: fi
6192: fi
6193: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6194: if test -n "$ac_ct_LIPO"; then
1.11 moko 6195: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6196: echo "${ECHO_T}$ac_ct_LIPO" >&6
1.8 moko 6197: else
1.11 moko 6198: echo "$as_me:$LINENO: result: no" >&5
6199: echo "${ECHO_T}no" >&6
1.8 moko 6200: fi
6201:
1.11 moko 6202: LIPO=$ac_ct_LIPO
1.8 moko 6203: else
6204: LIPO="$ac_cv_prog_LIPO"
6205: fi
1.1 misha 6206:
1.8 moko 6207: if test -n "$ac_tool_prefix"; then
6208: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6209: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.11 moko 6210: echo "$as_me:$LINENO: checking for $ac_word" >&5
6211: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212: if test "${ac_cv_prog_OTOOL+set}" = set; then
6213: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6214: else
6215: if test -n "$OTOOL"; then
6216: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6217: else
6218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219: for as_dir in $PATH
6220: do
6221: IFS=$as_save_IFS
6222: test -z "$as_dir" && as_dir=.
1.11 moko 6223: for ac_exec_ext in '' $ac_executable_extensions; do
6224: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6225: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.11 moko 6226: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6227: break 2
6228: fi
6229: done
1.11 moko 6230: done
1.1 misha 6231:
1.8 moko 6232: fi
6233: fi
6234: OTOOL=$ac_cv_prog_OTOOL
6235: if test -n "$OTOOL"; then
1.11 moko 6236: echo "$as_me:$LINENO: result: $OTOOL" >&5
6237: echo "${ECHO_T}$OTOOL" >&6
1.8 moko 6238: else
1.11 moko 6239: echo "$as_me:$LINENO: result: no" >&5
6240: echo "${ECHO_T}no" >&6
1.8 moko 6241: fi
1.1 misha 6242:
1.8 moko 6243: fi
6244: if test -z "$ac_cv_prog_OTOOL"; then
6245: ac_ct_OTOOL=$OTOOL
6246: # Extract the first word of "otool", so it can be a program name with args.
6247: set dummy otool; ac_word=$2
1.11 moko 6248: echo "$as_me:$LINENO: checking for $ac_word" >&5
6249: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6251: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6252: else
6253: if test -n "$ac_ct_OTOOL"; then
6254: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6255: else
6256: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257: for as_dir in $PATH
6258: do
6259: IFS=$as_save_IFS
6260: test -z "$as_dir" && as_dir=.
1.11 moko 6261: for ac_exec_ext in '' $ac_executable_extensions; do
6262: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6263: ac_cv_prog_ac_ct_OTOOL="otool"
1.11 moko 6264: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6265: break 2
6266: fi
6267: done
1.11 moko 6268: done
1.1 misha 6269:
1.11 moko 6270: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
1.8 moko 6271: fi
6272: fi
6273: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6274: if test -n "$ac_ct_OTOOL"; then
1.11 moko 6275: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6276: echo "${ECHO_T}$ac_ct_OTOOL" >&6
1.8 moko 6277: else
1.11 moko 6278: echo "$as_me:$LINENO: result: no" >&5
6279: echo "${ECHO_T}no" >&6
1.8 moko 6280: fi
1.1 misha 6281:
1.11 moko 6282: OTOOL=$ac_ct_OTOOL
1.8 moko 6283: else
6284: OTOOL="$ac_cv_prog_OTOOL"
6285: fi
1.1 misha 6286:
1.8 moko 6287: if test -n "$ac_tool_prefix"; then
6288: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6289: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.11 moko 6290: echo "$as_me:$LINENO: checking for $ac_word" >&5
6291: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6292: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6293: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6294: else
6295: if test -n "$OTOOL64"; then
6296: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6297: else
6298: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299: for as_dir in $PATH
6300: do
6301: IFS=$as_save_IFS
6302: test -z "$as_dir" && as_dir=.
1.11 moko 6303: for ac_exec_ext in '' $ac_executable_extensions; do
6304: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6305: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.11 moko 6306: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6307: break 2
6308: fi
6309: done
1.11 moko 6310: done
1.1 misha 6311:
1.8 moko 6312: fi
6313: fi
6314: OTOOL64=$ac_cv_prog_OTOOL64
6315: if test -n "$OTOOL64"; then
1.11 moko 6316: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6317: echo "${ECHO_T}$OTOOL64" >&6
1.8 moko 6318: else
1.11 moko 6319: echo "$as_me:$LINENO: result: no" >&5
6320: echo "${ECHO_T}no" >&6
1.8 moko 6321: fi
1.1 misha 6322:
1.8 moko 6323: fi
6324: if test -z "$ac_cv_prog_OTOOL64"; then
6325: ac_ct_OTOOL64=$OTOOL64
6326: # Extract the first word of "otool64", so it can be a program name with args.
6327: set dummy otool64; ac_word=$2
1.11 moko 6328: echo "$as_me:$LINENO: checking for $ac_word" >&5
6329: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6330: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6331: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6332: else
6333: if test -n "$ac_ct_OTOOL64"; then
6334: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6335: else
6336: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337: for as_dir in $PATH
6338: do
6339: IFS=$as_save_IFS
6340: test -z "$as_dir" && as_dir=.
1.11 moko 6341: for ac_exec_ext in '' $ac_executable_extensions; do
6342: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6343: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.11 moko 6344: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6345: break 2
6346: fi
6347: done
1.11 moko 6348: done
1.1 misha 6349:
1.11 moko 6350: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
1.8 moko 6351: fi
6352: fi
6353: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6354: if test -n "$ac_ct_OTOOL64"; then
1.11 moko 6355: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6356: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
1.8 moko 6357: else
1.11 moko 6358: echo "$as_me:$LINENO: result: no" >&5
6359: echo "${ECHO_T}no" >&6
1.8 moko 6360: fi
1.1 misha 6361:
1.11 moko 6362: OTOOL64=$ac_ct_OTOOL64
1.8 moko 6363: else
6364: OTOOL64="$ac_cv_prog_OTOOL64"
6365: fi
1.1 misha 6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
6386:
6387:
6388:
6389:
6390:
6391:
6392:
1.11 moko 6393: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6394: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6395: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6396: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6397: else
6398: lt_cv_apple_cc_single_mod=no
6399: if test -z "${LT_MULTI_MODULE}"; then
6400: # By default we will add the -single_module flag. You can override
6401: # by either setting the environment variable LT_MULTI_MODULE
6402: # non-empty at configure time, or by adding -multi_module to the
6403: # link flags.
6404: rm -rf libconftest.dylib*
6405: echo "int foo(void){return 1;}" > conftest.c
6406: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6407: -dynamiclib -Wl,-single_module conftest.c" >&5
6408: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6409: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6410: _lt_result=$?
6411: # If there is a non-empty error log, and "single_module"
6412: # appears in it, assume the flag caused a linker warning
6413: if test -s conftest.err && $GREP single_module conftest.err; then
6414: cat conftest.err >&5
6415: # Otherwise, if the output was created with a 0 exit code from
6416: # the compiler, it worked.
6417: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6418: lt_cv_apple_cc_single_mod=yes
6419: else
6420: cat conftest.err >&5
6421: fi
6422: rm -rf libconftest.dylib*
6423: rm -f conftest.*
6424: fi
6425: fi
1.11 moko 6426: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6427: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.1 misha 6428:
1.11 moko 6429: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6430: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6431: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6432: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6433: else
6434: lt_cv_ld_exported_symbols_list=no
6435: save_LDFLAGS=$LDFLAGS
6436: echo "_main" > conftest.sym
6437: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.11 moko 6438: cat >conftest.$ac_ext <<_ACEOF
6439: /* confdefs.h. */
6440: _ACEOF
6441: cat confdefs.h >>conftest.$ac_ext
6442: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6443: /* end confdefs.h. */
1.1 misha 6444:
1.8 moko 6445: int
6446: main ()
6447: {
1.1 misha 6448:
1.8 moko 6449: ;
6450: return 0;
6451: }
6452: _ACEOF
1.11 moko 6453: rm -f conftest.$ac_objext conftest$ac_exeext
6454: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455: (eval $ac_link) 2>conftest.er1
6456: ac_status=$?
6457: grep -v '^ *+' conftest.er1 >conftest.err
6458: rm -f conftest.er1
6459: cat conftest.err >&5
6460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461: (exit $ac_status); } &&
6462: { ac_try='test -z "$ac_c_werror_flag"
6463: || test ! -s conftest.err'
6464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465: (eval $ac_try) 2>&5
6466: ac_status=$?
6467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468: (exit $ac_status); }; } &&
6469: { ac_try='test -s conftest$ac_exeext'
6470: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471: (eval $ac_try) 2>&5
6472: ac_status=$?
6473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474: (exit $ac_status); }; }; then
1.8 moko 6475: lt_cv_ld_exported_symbols_list=yes
6476: else
1.11 moko 6477: echo "$as_me: failed program was:" >&5
6478: sed 's/^/| /' conftest.$ac_ext >&5
6479:
6480: lt_cv_ld_exported_symbols_list=no
1.8 moko 6481: fi
1.11 moko 6482: rm -f conftest.err conftest.$ac_objext \
6483: conftest$ac_exeext conftest.$ac_ext
1.8 moko 6484: LDFLAGS="$save_LDFLAGS"
1.1 misha 6485:
1.8 moko 6486: fi
1.11 moko 6487: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6488: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.1 misha 6489:
1.11 moko 6490: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6491: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6492: if test "${lt_cv_ld_force_load+set}" = set; then
6493: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6494: else
6495: lt_cv_ld_force_load=no
6496: cat > conftest.c << _LT_EOF
6497: int forced_loaded() { return 2;}
6498: _LT_EOF
6499: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6500: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6501: echo "$AR cru libconftest.a conftest.o" >&5
6502: $AR cru libconftest.a conftest.o 2>&5
6503: echo "$RANLIB libconftest.a" >&5
6504: $RANLIB libconftest.a 2>&5
6505: cat > conftest.c << _LT_EOF
6506: int main() { return 0;}
6507: _LT_EOF
6508: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6509: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6510: _lt_result=$?
6511: if test -s conftest.err && $GREP force_load conftest.err; then
6512: cat conftest.err >&5
6513: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6514: lt_cv_ld_force_load=yes
6515: else
6516: cat conftest.err >&5
6517: fi
6518: rm -f conftest.err libconftest.a conftest conftest.c
6519: rm -rf conftest.dSYM
1.1 misha 6520:
1.8 moko 6521: fi
1.11 moko 6522: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6523: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
1.8 moko 6524: case $host_os in
6525: rhapsody* | darwin1.[012])
6526: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6527: darwin1.*)
6528: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6529: darwin*) # darwin 5.x on
6530: # if running on 10.5 or later, the deployment target defaults
6531: # to the OS version, if on x86, and 10.4, the deployment
6532: # target defaults to 10.4. Don't you love it?
6533: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6534: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6535: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6536: 10.[012]*)
6537: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6538: 10.*)
6539: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6540: esac
1.1 misha 6541: ;;
1.8 moko 6542: esac
6543: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6544: _lt_dar_single_mod='$single_module'
6545: fi
6546: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6547: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6548: else
6549: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 6550: fi
1.8 moko 6551: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6552: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 6553: else
1.8 moko 6554: _lt_dsymutil=
1.1 misha 6555: fi
6556: ;;
1.8 moko 6557: esac
1.1 misha 6558:
1.8 moko 6559: ac_ext=c
6560: ac_cpp='$CPP $CPPFLAGS'
6561: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 moko 6564: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6565: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.8 moko 6566: # On Suns, sometimes $CPP names a directory.
6567: if test -n "$CPP" && test -d "$CPP"; then
6568: CPP=
6569: fi
6570: if test -z "$CPP"; then
1.11 moko 6571: if test "${ac_cv_prog_CPP+set}" = set; then
6572: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6573: else
6574: # Double quotes because CPP needs to be expanded
6575: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6576: do
6577: ac_preproc_ok=false
6578: for ac_c_preproc_warn_flag in '' yes
6579: do
6580: # Use a header file that comes with gcc, so configuring glibc
6581: # with a fresh cross-compiler works.
6582: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6583: # <limits.h> exists even on freestanding compilers.
6584: # On the NeXT, cc -E runs the code through the compiler's parser,
6585: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6586: cat >conftest.$ac_ext <<_ACEOF
6587: /* confdefs.h. */
6588: _ACEOF
6589: cat confdefs.h >>conftest.$ac_ext
6590: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6591: /* end confdefs.h. */
6592: #ifdef __STDC__
6593: # include <limits.h>
6594: #else
6595: # include <assert.h>
6596: #endif
6597: Syntax error
6598: _ACEOF
1.11 moko 6599: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6601: ac_status=$?
6602: grep -v '^ *+' conftest.er1 >conftest.err
6603: rm -f conftest.er1
6604: cat conftest.err >&5
6605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606: (exit $ac_status); } >/dev/null; then
6607: if test -s conftest.err; then
6608: ac_cpp_err=$ac_c_preproc_warn_flag
6609: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6610: else
6611: ac_cpp_err=
6612: fi
6613: else
6614: ac_cpp_err=yes
6615: fi
6616: if test -z "$ac_cpp_err"; then
6617: :
6618: else
6619: echo "$as_me: failed program was:" >&5
6620: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6621:
1.8 moko 6622: # Broken: fails on valid input.
6623: continue
6624: fi
1.11 moko 6625: rm -f conftest.err conftest.$ac_ext
1.1 misha 6626:
1.11 moko 6627: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6628: # can be detected and how.
1.11 moko 6629: cat >conftest.$ac_ext <<_ACEOF
6630: /* confdefs.h. */
6631: _ACEOF
6632: cat confdefs.h >>conftest.$ac_ext
6633: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6634: /* end confdefs.h. */
6635: #include <ac_nonexistent.h>
6636: _ACEOF
1.11 moko 6637: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6639: ac_status=$?
6640: grep -v '^ *+' conftest.er1 >conftest.err
6641: rm -f conftest.er1
6642: cat conftest.err >&5
6643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644: (exit $ac_status); } >/dev/null; then
6645: if test -s conftest.err; then
6646: ac_cpp_err=$ac_c_preproc_warn_flag
6647: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6648: else
6649: ac_cpp_err=
6650: fi
6651: else
6652: ac_cpp_err=yes
6653: fi
6654: if test -z "$ac_cpp_err"; then
1.8 moko 6655: # Broken: success on invalid input.
6656: continue
6657: else
1.11 moko 6658: echo "$as_me: failed program was:" >&5
6659: sed 's/^/| /' conftest.$ac_ext >&5
6660:
1.8 moko 6661: # Passes both tests.
6662: ac_preproc_ok=:
6663: break
1.1 misha 6664: fi
1.11 moko 6665: rm -f conftest.err conftest.$ac_ext
1.1 misha 6666:
1.8 moko 6667: done
6668: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6669: rm -f conftest.err conftest.$ac_ext
6670: if $ac_preproc_ok; then
1.8 moko 6671: break
1.1 misha 6672: fi
6673:
1.8 moko 6674: done
6675: ac_cv_prog_CPP=$CPP
1.1 misha 6676:
1.8 moko 6677: fi
6678: CPP=$ac_cv_prog_CPP
6679: else
6680: ac_cv_prog_CPP=$CPP
6681: fi
1.11 moko 6682: echo "$as_me:$LINENO: result: $CPP" >&5
6683: echo "${ECHO_T}$CPP" >&6
1.8 moko 6684: ac_preproc_ok=false
6685: for ac_c_preproc_warn_flag in '' yes
6686: do
6687: # Use a header file that comes with gcc, so configuring glibc
6688: # with a fresh cross-compiler works.
6689: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6690: # <limits.h> exists even on freestanding compilers.
6691: # On the NeXT, cc -E runs the code through the compiler's parser,
6692: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6693: cat >conftest.$ac_ext <<_ACEOF
6694: /* confdefs.h. */
6695: _ACEOF
6696: cat confdefs.h >>conftest.$ac_ext
6697: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6698: /* end confdefs.h. */
6699: #ifdef __STDC__
6700: # include <limits.h>
6701: #else
6702: # include <assert.h>
6703: #endif
6704: Syntax error
6705: _ACEOF
1.11 moko 6706: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6707: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6708: ac_status=$?
6709: grep -v '^ *+' conftest.er1 >conftest.err
6710: rm -f conftest.er1
6711: cat conftest.err >&5
6712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713: (exit $ac_status); } >/dev/null; then
6714: if test -s conftest.err; then
6715: ac_cpp_err=$ac_c_preproc_warn_flag
6716: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6717: else
6718: ac_cpp_err=
6719: fi
6720: else
6721: ac_cpp_err=yes
6722: fi
6723: if test -z "$ac_cpp_err"; then
6724: :
6725: else
6726: echo "$as_me: failed program was:" >&5
6727: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6728:
1.8 moko 6729: # Broken: fails on valid input.
6730: continue
6731: fi
1.11 moko 6732: rm -f conftest.err conftest.$ac_ext
1.1 misha 6733:
1.11 moko 6734: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6735: # can be detected and how.
1.11 moko 6736: cat >conftest.$ac_ext <<_ACEOF
6737: /* confdefs.h. */
6738: _ACEOF
6739: cat confdefs.h >>conftest.$ac_ext
6740: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6741: /* end confdefs.h. */
6742: #include <ac_nonexistent.h>
6743: _ACEOF
1.11 moko 6744: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6745: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6746: ac_status=$?
6747: grep -v '^ *+' conftest.er1 >conftest.err
6748: rm -f conftest.er1
6749: cat conftest.err >&5
6750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751: (exit $ac_status); } >/dev/null; then
6752: if test -s conftest.err; then
6753: ac_cpp_err=$ac_c_preproc_warn_flag
6754: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6755: else
6756: ac_cpp_err=
6757: fi
6758: else
6759: ac_cpp_err=yes
6760: fi
6761: if test -z "$ac_cpp_err"; then
1.8 moko 6762: # Broken: success on invalid input.
6763: continue
6764: else
1.11 moko 6765: echo "$as_me: failed program was:" >&5
6766: sed 's/^/| /' conftest.$ac_ext >&5
6767:
1.8 moko 6768: # Passes both tests.
6769: ac_preproc_ok=:
6770: break
6771: fi
1.11 moko 6772: rm -f conftest.err conftest.$ac_ext
1.8 moko 6773:
6774: done
6775: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6776: rm -f conftest.err conftest.$ac_ext
6777: if $ac_preproc_ok; then
6778: :
1.8 moko 6779: else
1.11 moko 6780: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6781: See \`config.log' for more details." >&5
6782: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6783: See \`config.log' for more details." >&2;}
6784: { (exit 1); exit 1; }; }
1.8 moko 6785: fi
1.1 misha 6786:
1.8 moko 6787: ac_ext=c
6788: ac_cpp='$CPP $CPPFLAGS'
6789: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 6792:
6793:
1.11 moko 6794: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6795: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6796: if test "${ac_cv_header_stdc+set}" = set; then
6797: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6798: else
1.11 moko 6799: cat >conftest.$ac_ext <<_ACEOF
6800: /* confdefs.h. */
6801: _ACEOF
6802: cat confdefs.h >>conftest.$ac_ext
6803: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6804: /* end confdefs.h. */
6805: #include <stdlib.h>
6806: #include <stdarg.h>
6807: #include <string.h>
6808: #include <float.h>
1.1 misha 6809:
1.8 moko 6810: int
6811: main ()
6812: {
1.1 misha 6813:
1.8 moko 6814: ;
6815: return 0;
6816: }
6817: _ACEOF
1.11 moko 6818: rm -f conftest.$ac_objext
6819: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820: (eval $ac_compile) 2>conftest.er1
6821: ac_status=$?
6822: grep -v '^ *+' conftest.er1 >conftest.err
6823: rm -f conftest.er1
6824: cat conftest.err >&5
6825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826: (exit $ac_status); } &&
6827: { ac_try='test -z "$ac_c_werror_flag"
6828: || test ! -s conftest.err'
6829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830: (eval $ac_try) 2>&5
6831: ac_status=$?
6832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833: (exit $ac_status); }; } &&
6834: { ac_try='test -s conftest.$ac_objext'
6835: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836: (eval $ac_try) 2>&5
6837: ac_status=$?
6838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839: (exit $ac_status); }; }; then
1.8 moko 6840: ac_cv_header_stdc=yes
6841: else
1.11 moko 6842: echo "$as_me: failed program was:" >&5
6843: sed 's/^/| /' conftest.$ac_ext >&5
6844:
6845: ac_cv_header_stdc=no
1.8 moko 6846: fi
1.11 moko 6847: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6848:
1.8 moko 6849: if test $ac_cv_header_stdc = yes; then
6850: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.11 moko 6851: cat >conftest.$ac_ext <<_ACEOF
6852: /* confdefs.h. */
6853: _ACEOF
6854: cat confdefs.h >>conftest.$ac_ext
6855: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6856: /* end confdefs.h. */
6857: #include <string.h>
6858:
6859: _ACEOF
6860: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6861: $EGREP "memchr" >/dev/null 2>&1; then
6862: :
1.8 moko 6863: else
6864: ac_cv_header_stdc=no
6865: fi
6866: rm -f conftest*
6867:
6868: fi
6869:
6870: if test $ac_cv_header_stdc = yes; then
6871: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.11 moko 6872: cat >conftest.$ac_ext <<_ACEOF
6873: /* confdefs.h. */
6874: _ACEOF
6875: cat confdefs.h >>conftest.$ac_ext
6876: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6877: /* end confdefs.h. */
6878: #include <stdlib.h>
6879:
6880: _ACEOF
6881: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6882: $EGREP "free" >/dev/null 2>&1; then
6883: :
1.8 moko 6884: else
6885: ac_cv_header_stdc=no
6886: fi
6887: rm -f conftest*
6888:
6889: fi
1.1 misha 6890:
1.8 moko 6891: if test $ac_cv_header_stdc = yes; then
6892: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.11 moko 6893: if test "$cross_compiling" = yes; then
1.8 moko 6894: :
6895: else
1.11 moko 6896: cat >conftest.$ac_ext <<_ACEOF
6897: /* confdefs.h. */
6898: _ACEOF
6899: cat confdefs.h >>conftest.$ac_ext
6900: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6901: /* end confdefs.h. */
6902: #include <ctype.h>
6903: #if ((' ' & 0x0FF) == 0x020)
6904: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6905: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6906: #else
6907: # define ISLOWER(c) \
6908: (('a' <= (c) && (c) <= 'i') \
6909: || ('j' <= (c) && (c) <= 'r') \
6910: || ('s' <= (c) && (c) <= 'z'))
6911: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6912: #endif
1.1 misha 6913:
1.8 moko 6914: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6915: int
6916: main ()
6917: {
6918: int i;
6919: for (i = 0; i < 256; i++)
6920: if (XOR (islower (i), ISLOWER (i))
6921: || toupper (i) != TOUPPER (i))
1.11 moko 6922: exit(2);
6923: exit (0);
1.8 moko 6924: }
6925: _ACEOF
1.11 moko 6926: rm -f conftest$ac_exeext
6927: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6928: (eval $ac_link) 2>&5
6929: ac_status=$?
6930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6932: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933: (eval $ac_try) 2>&5
6934: ac_status=$?
6935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936: (exit $ac_status); }; }; then
6937: :
6938: else
6939: echo "$as_me: program exited with status $ac_status" >&5
6940: echo "$as_me: failed program was:" >&5
6941: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6942:
1.11 moko 6943: ( exit $ac_status )
6944: ac_cv_header_stdc=no
1.8 moko 6945: fi
1.11 moko 6946: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.8 moko 6947: fi
6948: fi
6949: fi
1.11 moko 6950: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6951: echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.8 moko 6952: if test $ac_cv_header_stdc = yes; then
1.1 misha 6953:
1.11 moko 6954: cat >>confdefs.h <<\_ACEOF
6955: #define STDC_HEADERS 1
6956: _ACEOF
1.1 misha 6957:
1.8 moko 6958: fi
1.1 misha 6959:
1.8 moko 6960: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 misha 6961:
6962:
6963:
6964:
6965:
6966:
1.11 moko 6967:
6968:
6969:
6970: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6971: inttypes.h stdint.h unistd.h
6972: do
6973: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6974: echo "$as_me:$LINENO: checking for $ac_header" >&5
6975: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6976: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6977: echo $ECHO_N "(cached) $ECHO_C" >&6
6978: else
6979: cat >conftest.$ac_ext <<_ACEOF
6980: /* confdefs.h. */
6981: _ACEOF
6982: cat confdefs.h >>conftest.$ac_ext
6983: cat >>conftest.$ac_ext <<_ACEOF
6984: /* end confdefs.h. */
6985: $ac_includes_default
6986:
6987: #include <$ac_header>
6988: _ACEOF
6989: rm -f conftest.$ac_objext
6990: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991: (eval $ac_compile) 2>conftest.er1
6992: ac_status=$?
6993: grep -v '^ *+' conftest.er1 >conftest.err
6994: rm -f conftest.er1
6995: cat conftest.err >&5
6996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997: (exit $ac_status); } &&
6998: { ac_try='test -z "$ac_c_werror_flag"
6999: || test ! -s conftest.err'
7000: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001: (eval $ac_try) 2>&5
7002: ac_status=$?
7003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004: (exit $ac_status); }; } &&
7005: { ac_try='test -s conftest.$ac_objext'
7006: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007: (eval $ac_try) 2>&5
7008: ac_status=$?
7009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010: (exit $ac_status); }; }; then
7011: eval "$as_ac_Header=yes"
7012: else
7013: echo "$as_me: failed program was:" >&5
7014: sed 's/^/| /' conftest.$ac_ext >&5
7015:
7016: eval "$as_ac_Header=no"
7017: fi
7018: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7019: fi
7020: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7023: cat >>confdefs.h <<_ACEOF
7024: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7025: _ACEOF
7026:
7027: fi
7028:
7029: done
7030:
7031:
7032:
7033: for ac_header in dlfcn.h
7034: do
7035: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7036: echo "$as_me:$LINENO: checking for $ac_header" >&5
7037: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7038: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7039: echo $ECHO_N "(cached) $ECHO_C" >&6
7040: else
7041: cat >conftest.$ac_ext <<_ACEOF
7042: /* confdefs.h. */
7043: _ACEOF
7044: cat confdefs.h >>conftest.$ac_ext
7045: cat >>conftest.$ac_ext <<_ACEOF
7046: /* end confdefs.h. */
7047: $ac_includes_default
7048:
7049: #include <$ac_header>
7050: _ACEOF
7051: rm -f conftest.$ac_objext
7052: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053: (eval $ac_compile) 2>conftest.er1
7054: ac_status=$?
7055: grep -v '^ *+' conftest.er1 >conftest.err
7056: rm -f conftest.er1
7057: cat conftest.err >&5
7058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059: (exit $ac_status); } &&
7060: { ac_try='test -z "$ac_c_werror_flag"
7061: || test ! -s conftest.err'
7062: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063: (eval $ac_try) 2>&5
7064: ac_status=$?
7065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066: (exit $ac_status); }; } &&
7067: { ac_try='test -s conftest.$ac_objext'
7068: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069: (eval $ac_try) 2>&5
7070: ac_status=$?
7071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072: (exit $ac_status); }; }; then
7073: eval "$as_ac_Header=yes"
7074: else
7075: echo "$as_me: failed program was:" >&5
7076: sed 's/^/| /' conftest.$ac_ext >&5
7077:
7078: eval "$as_ac_Header=no"
7079: fi
7080: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7081: fi
7082: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7083: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7084: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7085: cat >>confdefs.h <<_ACEOF
7086: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087: _ACEOF
7088:
7089: fi
7090:
7091: done
1.1 misha 7092:
7093:
7094:
1.8 moko 7095:
7096: func_stripname_cnf ()
1.1 misha 7097: {
1.8 moko 7098: case ${2} in
7099: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7100: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7101: esac
7102: } # func_stripname_cnf
7103:
7104:
7105:
7106:
7107:
7108: # Set options
7109: enable_dlopen=yes
1.13 moko 7110: enable_win32_dll=yes
1.8 moko 7111:
1.13 moko 7112: case $host in
7113: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7114: if test -n "$ac_tool_prefix"; then
7115: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7116: set dummy ${ac_tool_prefix}as; ac_word=$2
7117: echo "$as_me:$LINENO: checking for $ac_word" >&5
7118: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7119: if test "${ac_cv_prog_AS+set}" = set; then
7120: echo $ECHO_N "(cached) $ECHO_C" >&6
7121: else
7122: if test -n "$AS"; then
7123: ac_cv_prog_AS="$AS" # Let the user override the test.
7124: else
7125: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126: for as_dir in $PATH
7127: do
7128: IFS=$as_save_IFS
7129: test -z "$as_dir" && as_dir=.
7130: for ac_exec_ext in '' $ac_executable_extensions; do
7131: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132: ac_cv_prog_AS="${ac_tool_prefix}as"
7133: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134: break 2
7135: fi
7136: done
7137: done
1.8 moko 7138:
1.13 moko 7139: fi
7140: fi
7141: AS=$ac_cv_prog_AS
7142: if test -n "$AS"; then
7143: echo "$as_me:$LINENO: result: $AS" >&5
7144: echo "${ECHO_T}$AS" >&6
7145: else
7146: echo "$as_me:$LINENO: result: no" >&5
7147: echo "${ECHO_T}no" >&6
7148: fi
1.8 moko 7149:
1.13 moko 7150: fi
7151: if test -z "$ac_cv_prog_AS"; then
7152: ac_ct_AS=$AS
7153: # Extract the first word of "as", so it can be a program name with args.
7154: set dummy as; ac_word=$2
7155: echo "$as_me:$LINENO: checking for $ac_word" >&5
7156: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7157: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7158: echo $ECHO_N "(cached) $ECHO_C" >&6
7159: else
7160: if test -n "$ac_ct_AS"; then
7161: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7162: else
7163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164: for as_dir in $PATH
7165: do
7166: IFS=$as_save_IFS
7167: test -z "$as_dir" && as_dir=.
7168: for ac_exec_ext in '' $ac_executable_extensions; do
7169: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170: ac_cv_prog_ac_ct_AS="as"
7171: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172: break 2
7173: fi
7174: done
7175: done
1.8 moko 7176:
1.13 moko 7177: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7178: fi
7179: fi
7180: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7181: if test -n "$ac_ct_AS"; then
7182: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7183: echo "${ECHO_T}$ac_ct_AS" >&6
7184: else
7185: echo "$as_me:$LINENO: result: no" >&5
7186: echo "${ECHO_T}no" >&6
7187: fi
1.8 moko 7188:
1.13 moko 7189: AS=$ac_ct_AS
7190: else
7191: AS="$ac_cv_prog_AS"
7192: fi
1.1 misha 7193:
1.13 moko 7194: if test -n "$ac_tool_prefix"; then
7195: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7196: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7197: echo "$as_me:$LINENO: checking for $ac_word" >&5
7198: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7199: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7200: echo $ECHO_N "(cached) $ECHO_C" >&6
7201: else
7202: if test -n "$DLLTOOL"; then
7203: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.1 misha 7204: else
1.13 moko 7205: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206: for as_dir in $PATH
7207: do
7208: IFS=$as_save_IFS
7209: test -z "$as_dir" && as_dir=.
7210: for ac_exec_ext in '' $ac_executable_extensions; do
7211: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7213: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214: break 2
7215: fi
7216: done
7217: done
7218:
7219: fi
7220: fi
7221: DLLTOOL=$ac_cv_prog_DLLTOOL
7222: if test -n "$DLLTOOL"; then
7223: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7224: echo "${ECHO_T}$DLLTOOL" >&6
7225: else
7226: echo "$as_me:$LINENO: result: no" >&5
7227: echo "${ECHO_T}no" >&6
7228: fi
7229:
7230: fi
7231: if test -z "$ac_cv_prog_DLLTOOL"; then
7232: ac_ct_DLLTOOL=$DLLTOOL
7233: # Extract the first word of "dlltool", so it can be a program name with args.
7234: set dummy dlltool; ac_word=$2
7235: echo "$as_me:$LINENO: checking for $ac_word" >&5
7236: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7237: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7238: echo $ECHO_N "(cached) $ECHO_C" >&6
7239: else
7240: if test -n "$ac_ct_DLLTOOL"; then
7241: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7242: else
7243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244: for as_dir in $PATH
7245: do
7246: IFS=$as_save_IFS
7247: test -z "$as_dir" && as_dir=.
7248: for ac_exec_ext in '' $ac_executable_extensions; do
7249: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7251: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252: break 2
7253: fi
7254: done
7255: done
7256:
7257: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7258: fi
7259: fi
7260: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7261: if test -n "$ac_ct_DLLTOOL"; then
7262: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7263: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7264: else
7265: echo "$as_me:$LINENO: result: no" >&5
7266: echo "${ECHO_T}no" >&6
7267: fi
7268:
7269: DLLTOOL=$ac_ct_DLLTOOL
7270: else
7271: DLLTOOL="$ac_cv_prog_DLLTOOL"
7272: fi
7273:
7274: if test -n "$ac_tool_prefix"; then
7275: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7276: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7277: echo "$as_me:$LINENO: checking for $ac_word" >&5
7278: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7279: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7280: echo $ECHO_N "(cached) $ECHO_C" >&6
7281: else
7282: if test -n "$OBJDUMP"; then
7283: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7284: else
7285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286: for as_dir in $PATH
7287: do
7288: IFS=$as_save_IFS
7289: test -z "$as_dir" && as_dir=.
7290: for ac_exec_ext in '' $ac_executable_extensions; do
7291: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7293: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294: break 2
7295: fi
7296: done
7297: done
7298:
7299: fi
7300: fi
7301: OBJDUMP=$ac_cv_prog_OBJDUMP
7302: if test -n "$OBJDUMP"; then
7303: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7304: echo "${ECHO_T}$OBJDUMP" >&6
7305: else
7306: echo "$as_me:$LINENO: result: no" >&5
7307: echo "${ECHO_T}no" >&6
7308: fi
7309:
7310: fi
7311: if test -z "$ac_cv_prog_OBJDUMP"; then
7312: ac_ct_OBJDUMP=$OBJDUMP
7313: # Extract the first word of "objdump", so it can be a program name with args.
7314: set dummy objdump; ac_word=$2
7315: echo "$as_me:$LINENO: checking for $ac_word" >&5
7316: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7318: echo $ECHO_N "(cached) $ECHO_C" >&6
7319: else
7320: if test -n "$ac_ct_OBJDUMP"; then
7321: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7322: else
7323: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324: for as_dir in $PATH
7325: do
7326: IFS=$as_save_IFS
7327: test -z "$as_dir" && as_dir=.
7328: for ac_exec_ext in '' $ac_executable_extensions; do
7329: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7331: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332: break 2
7333: fi
7334: done
7335: done
7336:
7337: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7338: fi
7339: fi
7340: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7341: if test -n "$ac_ct_OBJDUMP"; then
7342: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7343: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7344: else
7345: echo "$as_me:$LINENO: result: no" >&5
7346: echo "${ECHO_T}no" >&6
7347: fi
7348:
7349: OBJDUMP=$ac_ct_OBJDUMP
7350: else
7351: OBJDUMP="$ac_cv_prog_OBJDUMP"
7352: fi
7353:
7354: ;;
7355: esac
7356:
7357: test -z "$AS" && AS=as
7358:
7359:
7360:
7361:
7362:
7363: test -z "$DLLTOOL" && DLLTOOL=dlltool
7364:
7365:
7366:
7367:
7368:
7369: test -z "$OBJDUMP" && OBJDUMP=objdump
7370:
7371:
7372:
7373:
7374:
7375:
7376:
7377:
7378:
7379: # Check whether --enable-shared or --disable-shared was given.
7380: if test "${enable_shared+set}" = set; then
7381: enableval="$enable_shared"
7382: p=${PACKAGE-default}
7383: case $enableval in
7384: yes) enable_shared=yes ;;
7385: no) enable_shared=no ;;
7386: *)
7387: enable_shared=no
7388: # Look at the argument we got. We use all the common list separators.
7389: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7390: for pkg in $enableval; do
7391: IFS="$lt_save_ifs"
7392: if test "X$pkg" = "X$p"; then
7393: enable_shared=yes
7394: fi
7395: done
7396: IFS="$lt_save_ifs"
7397: ;;
7398: esac
7399: else
7400: enable_shared=yes
7401: fi;
1.8 moko 7402:
7403:
7404:
7405:
7406:
7407:
7408:
1.1 misha 7409:
1.11 moko 7410: # Check whether --enable-static or --disable-static was given.
7411: if test "${enable_static+set}" = set; then
7412: enableval="$enable_static"
7413: p=${PACKAGE-default}
1.8 moko 7414: case $enableval in
7415: yes) enable_static=yes ;;
7416: no) enable_static=no ;;
7417: *)
7418: enable_static=no
7419: # Look at the argument we got. We use all the common list separators.
7420: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7421: for pkg in $enableval; do
7422: IFS="$lt_save_ifs"
7423: if test "X$pkg" = "X$p"; then
7424: enable_static=yes
7425: fi
7426: done
7427: IFS="$lt_save_ifs"
7428: ;;
7429: esac
1.1 misha 7430: else
1.8 moko 7431: enable_static=yes
1.11 moko 7432: fi;
1.8 moko 7433:
7434:
7435:
7436:
7437:
7438:
7439:
7440:
7441:
1.11 moko 7442: # Check whether --with-pic or --without-pic was given.
7443: if test "${with_pic+set}" = set; then
7444: withval="$with_pic"
7445: lt_p=${PACKAGE-default}
1.8 moko 7446: case $withval in
7447: yes|no) pic_mode=$withval ;;
7448: *)
7449: pic_mode=default
7450: # Look at the argument we got. We use all the common list separators.
7451: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7452: for lt_pkg in $withval; do
7453: IFS="$lt_save_ifs"
7454: if test "X$lt_pkg" = "X$lt_p"; then
7455: pic_mode=yes
7456: fi
7457: done
7458: IFS="$lt_save_ifs"
7459: ;;
7460: esac
1.1 misha 7461: else
1.8 moko 7462: pic_mode=default
1.11 moko 7463: fi;
1.8 moko 7464:
7465: test -z "$pic_mode" && pic_mode=default
7466:
7467:
7468:
7469:
7470:
7471:
1.1 misha 7472:
1.11 moko 7473: # Check whether --enable-fast-install or --disable-fast-install was given.
7474: if test "${enable_fast_install+set}" = set; then
7475: enableval="$enable_fast_install"
7476: p=${PACKAGE-default}
1.8 moko 7477: case $enableval in
7478: yes) enable_fast_install=yes ;;
7479: no) enable_fast_install=no ;;
7480: *)
7481: enable_fast_install=no
7482: # Look at the argument we got. We use all the common list separators.
7483: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7484: for pkg in $enableval; do
7485: IFS="$lt_save_ifs"
7486: if test "X$pkg" = "X$p"; then
7487: enable_fast_install=yes
7488: fi
7489: done
7490: IFS="$lt_save_ifs"
7491: ;;
7492: esac
1.1 misha 7493: else
1.8 moko 7494: enable_fast_install=yes
1.11 moko 7495: fi;
1.8 moko 7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506: # This can be used to rebuild libtool when needed
7507: LIBTOOL_DEPS="$ltmain"
7508:
7509: # Always use our own libtool.
7510: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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:
7537:
7538:
7539:
7540:
7541: test -z "$LN_S" && LN_S="ln -s"
7542:
7543:
7544:
7545:
7546:
7547:
7548:
7549:
7550:
7551:
7552:
7553:
7554:
1.1 misha 7555:
1.8 moko 7556: if test -n "${ZSH_VERSION+set}" ; then
7557: setopt NO_GLOB_SUBST
1.1 misha 7558: fi
1.8 moko 7559:
1.11 moko 7560: echo "$as_me:$LINENO: checking for objdir" >&5
7561: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7562: if test "${lt_cv_objdir+set}" = set; then
7563: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7564: else
7565: rm -f .libs 2>/dev/null
7566: mkdir .libs 2>/dev/null
7567: if test -d .libs; then
7568: lt_cv_objdir=.libs
7569: else
7570: # MS-DOS does not allow filenames that begin with a dot.
7571: lt_cv_objdir=_libs
1.1 misha 7572: fi
1.8 moko 7573: rmdir .libs 2>/dev/null
7574: fi
1.11 moko 7575: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7576: echo "${ECHO_T}$lt_cv_objdir" >&6
1.8 moko 7577: objdir=$lt_cv_objdir
1.1 misha 7578:
7579:
7580:
7581:
7582:
1.8 moko 7583: cat >>confdefs.h <<_ACEOF
7584: #define LT_OBJDIR "$lt_cv_objdir/"
7585: _ACEOF
1.1 misha 7586:
7587:
7588:
7589:
1.8 moko 7590: case $host_os in
7591: aix3*)
7592: # AIX sometimes has problems with the GCC collect2 program. For some
7593: # reason, if we set the COLLECT_NAMES environment variable, the problems
7594: # vanish in a puff of smoke.
7595: if test "X${COLLECT_NAMES+set}" != Xset; then
7596: COLLECT_NAMES=
7597: export COLLECT_NAMES
7598: fi
7599: ;;
7600: esac
1.1 misha 7601:
1.8 moko 7602: # Global variables:
7603: ofile=libtool
7604: can_build_shared=yes
1.1 misha 7605:
1.8 moko 7606: # All known linkers require a `.a' archive for static linking (except MSVC,
7607: # which needs '.lib').
7608: libext=a
1.1 misha 7609:
1.8 moko 7610: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 7611:
1.8 moko 7612: old_CC="$CC"
7613: old_CFLAGS="$CFLAGS"
1.1 misha 7614:
1.8 moko 7615: # Set sane defaults for various variables
7616: test -z "$CC" && CC=cc
7617: test -z "$LTCC" && LTCC=$CC
7618: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7619: test -z "$LD" && LD=ld
7620: test -z "$ac_objext" && ac_objext=o
1.1 misha 7621:
1.8 moko 7622: for cc_temp in $compiler""; do
7623: case $cc_temp in
7624: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7626: \-*) ;;
7627: *) break;;
1.1 misha 7628: esac
1.8 moko 7629: done
7630: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 7631:
7632:
1.8 moko 7633: # Only perform the check for file, if the check method requires it
7634: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7635: case $deplibs_check_method in
7636: file_magic*)
7637: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.11 moko 7638: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7639: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7640: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7641: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7642: else
7643: case $MAGIC_CMD in
7644: [\\/*] | ?:[\\/]*)
7645: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7646: ;;
7647: *)
7648: lt_save_MAGIC_CMD="$MAGIC_CMD"
7649: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7650: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7651: for ac_dir in $ac_dummy; do
7652: IFS="$lt_save_ifs"
7653: test -z "$ac_dir" && ac_dir=.
7654: if test -f $ac_dir/${ac_tool_prefix}file; then
7655: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7656: if test -n "$file_magic_test_file"; then
7657: case $deplibs_check_method in
7658: "file_magic "*)
7659: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7660: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7662: $EGREP "$file_magic_regex" > /dev/null; then
7663: :
7664: else
7665: cat <<_LT_EOF 1>&2
1.1 misha 7666:
1.8 moko 7667: *** Warning: the command libtool uses to detect shared libraries,
7668: *** $file_magic_cmd, produces output that libtool cannot recognize.
7669: *** The result is that libtool may fail to recognize shared libraries
7670: *** as such. This will affect the creation of libtool libraries that
7671: *** depend on shared libraries, but programs linked with such libtool
7672: *** libraries will work regardless of this problem. Nevertheless, you
7673: *** may want to report the problem to your system manager and/or to
7674: *** bug-libtool@gnu.org
1.1 misha 7675:
1.8 moko 7676: _LT_EOF
7677: fi ;;
7678: esac
7679: fi
7680: break
7681: fi
7682: done
7683: IFS="$lt_save_ifs"
7684: MAGIC_CMD="$lt_save_MAGIC_CMD"
7685: ;;
7686: esac
7687: fi
1.1 misha 7688:
1.8 moko 7689: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7690: if test -n "$MAGIC_CMD"; then
1.11 moko 7691: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7692: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 misha 7693: else
1.11 moko 7694: echo "$as_me:$LINENO: result: no" >&5
7695: echo "${ECHO_T}no" >&6
1.8 moko 7696: fi
7697:
1.1 misha 7698:
7699:
7700:
7701:
1.8 moko 7702: if test -z "$lt_cv_path_MAGIC_CMD"; then
7703: if test -n "$ac_tool_prefix"; then
1.11 moko 7704: echo "$as_me:$LINENO: checking for file" >&5
7705: echo $ECHO_N "checking for file... $ECHO_C" >&6
7706: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7707: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7708: else
7709: case $MAGIC_CMD in
7710: [\\/*] | ?:[\\/]*)
7711: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7712: ;;
7713: *)
7714: lt_save_MAGIC_CMD="$MAGIC_CMD"
7715: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7716: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7717: for ac_dir in $ac_dummy; do
7718: IFS="$lt_save_ifs"
7719: test -z "$ac_dir" && ac_dir=.
7720: if test -f $ac_dir/file; then
7721: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7722: if test -n "$file_magic_test_file"; then
7723: case $deplibs_check_method in
7724: "file_magic "*)
7725: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7726: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7728: $EGREP "$file_magic_regex" > /dev/null; then
7729: :
7730: else
7731: cat <<_LT_EOF 1>&2
7732:
7733: *** Warning: the command libtool uses to detect shared libraries,
7734: *** $file_magic_cmd, produces output that libtool cannot recognize.
7735: *** The result is that libtool may fail to recognize shared libraries
7736: *** as such. This will affect the creation of libtool libraries that
7737: *** depend on shared libraries, but programs linked with such libtool
7738: *** libraries will work regardless of this problem. Nevertheless, you
7739: *** may want to report the problem to your system manager and/or to
7740: *** bug-libtool@gnu.org
1.1 misha 7741:
1.8 moko 7742: _LT_EOF
7743: fi ;;
7744: esac
7745: fi
7746: break
7747: fi
7748: done
7749: IFS="$lt_save_ifs"
7750: MAGIC_CMD="$lt_save_MAGIC_CMD"
7751: ;;
7752: esac
7753: fi
1.1 misha 7754:
1.8 moko 7755: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7756: if test -n "$MAGIC_CMD"; then
1.11 moko 7757: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7758: echo "${ECHO_T}$MAGIC_CMD" >&6
1.8 moko 7759: else
1.11 moko 7760: echo "$as_me:$LINENO: result: no" >&5
7761: echo "${ECHO_T}no" >&6
1.8 moko 7762: fi
1.1 misha 7763:
7764:
1.8 moko 7765: else
7766: MAGIC_CMD=:
1.1 misha 7767: fi
7768: fi
1.8 moko 7769:
7770: fi
7771: ;;
7772: esac
7773:
7774: # Use C for the default configuration in the libtool script
7775:
7776: lt_save_CC="$CC"
7777: ac_ext=c
7778: ac_cpp='$CPP $CPPFLAGS'
7779: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782:
7783:
7784: # Source file extension for C test sources.
7785: ac_ext=c
7786:
7787: # Object file extension for compiled C test sources.
7788: objext=o
7789: objext=$objext
7790:
7791: # Code to be used in simple compile tests
7792: lt_simple_compile_test_code="int some_variable = 0;"
7793:
7794: # Code to be used in simple link tests
7795: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 7796:
7797:
7798:
7799:
7800:
7801:
7802:
1.8 moko 7803: # If no C compiler was specified, use CC.
7804: LTCC=${LTCC-"$CC"}
1.1 misha 7805:
1.8 moko 7806: # If no C compiler flags were specified, use CFLAGS.
7807: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 7808:
1.8 moko 7809: # Allow CC to be a program name with arguments.
7810: compiler=$CC
1.1 misha 7811:
1.8 moko 7812: # Save the default compiler, since it gets overwritten when the other
7813: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7814: compiler_DEFAULT=$CC
1.1 misha 7815:
1.8 moko 7816: # save warnings/boilerplate of simple test code
7817: ac_outfile=conftest.$ac_objext
7818: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7819: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820: _lt_compiler_boilerplate=`cat conftest.err`
7821: $RM conftest*
1.1 misha 7822:
1.8 moko 7823: ac_outfile=conftest.$ac_objext
7824: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7825: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7826: _lt_linker_boilerplate=`cat conftest.err`
7827: $RM -r conftest*
1.1 misha 7828:
7829:
1.12 moko 7830: ## CAVEAT EMPTOR:
7831: ## There is no encapsulation within the following macros, do not change
7832: ## the running order or otherwise move them around unless you know exactly
7833: ## what you are doing...
1.8 moko 7834: if test -n "$compiler"; then
1.1 misha 7835:
1.8 moko 7836: lt_prog_compiler_no_builtin_flag=
1.1 misha 7837:
1.8 moko 7838: if test "$GCC" = yes; then
7839: case $cc_basename in
7840: nvcc*)
7841: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7842: *)
7843: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 7844: esac
7845:
1.11 moko 7846: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7847: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7848: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7849: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 7850: else
1.8 moko 7851: lt_cv_prog_compiler_rtti_exceptions=no
7852: ac_outfile=conftest.$ac_objext
7853: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854: lt_compiler_flag="-fno-rtti -fno-exceptions"
7855: # Insert the option either (1) after the last *FLAGS variable, or
7856: # (2) before a word containing "conftest.", or (3) at the end.
7857: # Note that $ac_compile itself does not contain backslashes and begins
7858: # with a dollar sign (not a hyphen), so the echo should work correctly.
7859: # The option is referenced via a variable to avoid confusing sed.
7860: lt_compile=`echo "$ac_compile" | $SED \
7861: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863: -e 's:$: $lt_compiler_flag:'`
7864: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7865: (eval "$lt_compile" 2>conftest.err)
7866: ac_status=$?
7867: cat conftest.err >&5
7868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869: if (exit $ac_status) && test -s "$ac_outfile"; then
7870: # The compiler can only warn and ignore the option if not recognized
7871: # So say no if there are warnings other than the usual output.
7872: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7873: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875: lt_cv_prog_compiler_rtti_exceptions=yes
7876: fi
7877: fi
7878: $RM conftest*
1.1 misha 7879:
7880: fi
1.11 moko 7881: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7882: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.1 misha 7883:
1.8 moko 7884: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7885: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7886: else
7887: :
1.1 misha 7888: fi
7889:
1.8 moko 7890: fi
1.1 misha 7891:
7892:
7893:
7894:
7895:
7896:
1.8 moko 7897: lt_prog_compiler_wl=
7898: lt_prog_compiler_pic=
7899: lt_prog_compiler_static=
1.1 misha 7900:
7901:
1.8 moko 7902: if test "$GCC" = yes; then
7903: lt_prog_compiler_wl='-Wl,'
7904: lt_prog_compiler_static='-static'
1.1 misha 7905:
1.8 moko 7906: case $host_os in
7907: aix*)
7908: # All AIX code is PIC.
7909: if test "$host_cpu" = ia64; then
7910: # AIX 5 now supports IA64 processor
7911: lt_prog_compiler_static='-Bstatic'
7912: fi
7913: ;;
1.1 misha 7914:
1.8 moko 7915: amigaos*)
7916: case $host_cpu in
7917: powerpc)
7918: # see comment about AmigaOS4 .so support
7919: lt_prog_compiler_pic='-fPIC'
7920: ;;
7921: m68k)
7922: # FIXME: we need at least 68020 code to build shared libraries, but
7923: # adding the `-m68020' flag to GCC prevents building anything better,
7924: # like `-m68040'.
7925: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7926: ;;
7927: esac
7928: ;;
1.1 misha 7929:
1.8 moko 7930: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7931: # PIC is the default for these OSes.
7932: ;;
1.1 misha 7933:
1.8 moko 7934: mingw* | cygwin* | pw32* | os2* | cegcc*)
7935: # This hack is so that the source file can tell whether it is being
7936: # built for inclusion in a dll (and should export symbols for example).
7937: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7938: # (--disable-auto-import) libraries
7939: lt_prog_compiler_pic='-DDLL_EXPORT'
7940: ;;
1.1 misha 7941:
1.8 moko 7942: darwin* | rhapsody*)
7943: # PIC is the default on this platform
7944: # Common symbols not allowed in MH_DYLIB files
7945: lt_prog_compiler_pic='-fno-common'
7946: ;;
1.1 misha 7947:
1.8 moko 7948: haiku*)
7949: # PIC is the default for Haiku.
7950: # The "-static" flag exists, but is broken.
7951: lt_prog_compiler_static=
7952: ;;
1.1 misha 7953:
1.8 moko 7954: hpux*)
7955: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7956: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7957: # sets the default TLS model and affects inlining.
7958: case $host_cpu in
7959: hppa*64*)
7960: # +Z the default
7961: ;;
7962: *)
7963: lt_prog_compiler_pic='-fPIC'
7964: ;;
7965: esac
7966: ;;
1.1 misha 7967:
1.8 moko 7968: interix[3-9]*)
7969: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7970: # Instead, we relocate shared libraries at runtime.
7971: ;;
1.1 misha 7972:
1.8 moko 7973: msdosdjgpp*)
7974: # Just because we use GCC doesn't mean we suddenly get shared libraries
7975: # on systems that don't support them.
7976: lt_prog_compiler_can_build_shared=no
7977: enable_shared=no
7978: ;;
1.1 misha 7979:
1.8 moko 7980: *nto* | *qnx*)
7981: # QNX uses GNU C++, but need to define -shared option too, otherwise
7982: # it will coredump.
7983: lt_prog_compiler_pic='-fPIC -shared'
7984: ;;
1.1 misha 7985:
1.8 moko 7986: sysv4*MP*)
7987: if test -d /usr/nec; then
7988: lt_prog_compiler_pic=-Kconform_pic
7989: fi
7990: ;;
1.1 misha 7991:
1.8 moko 7992: *)
7993: lt_prog_compiler_pic='-fPIC'
7994: ;;
7995: esac
1.1 misha 7996:
1.8 moko 7997: case $cc_basename in
7998: nvcc*) # Cuda Compiler Driver 2.2
7999: lt_prog_compiler_wl='-Xlinker '
8000: if test -n "$lt_prog_compiler_pic"; then
8001: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8002: fi
8003: ;;
8004: esac
8005: else
8006: # PORTME Check for flag to pass linker flags through the system compiler.
8007: case $host_os in
8008: aix*)
8009: lt_prog_compiler_wl='-Wl,'
8010: if test "$host_cpu" = ia64; then
8011: # AIX 5 now supports IA64 processor
8012: lt_prog_compiler_static='-Bstatic'
8013: else
8014: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8015: fi
8016: ;;
1.1 misha 8017:
1.8 moko 8018: mingw* | cygwin* | pw32* | os2* | cegcc*)
8019: # This hack is so that the source file can tell whether it is being
8020: # built for inclusion in a dll (and should export symbols for example).
8021: lt_prog_compiler_pic='-DDLL_EXPORT'
8022: ;;
1.1 misha 8023:
1.8 moko 8024: hpux9* | hpux10* | hpux11*)
8025: lt_prog_compiler_wl='-Wl,'
8026: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8027: # not for PA HP-UX.
8028: case $host_cpu in
8029: hppa*64*|ia64*)
8030: # +Z the default
8031: ;;
8032: *)
8033: lt_prog_compiler_pic='+Z'
8034: ;;
8035: esac
8036: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8037: lt_prog_compiler_static='${wl}-a ${wl}archive'
8038: ;;
1.1 misha 8039:
1.8 moko 8040: irix5* | irix6* | nonstopux*)
8041: lt_prog_compiler_wl='-Wl,'
8042: # PIC (with -KPIC) is the default.
8043: lt_prog_compiler_static='-non_shared'
8044: ;;
1.1 misha 8045:
1.8 moko 8046: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8047: case $cc_basename in
8048: # old Intel for x86_64 which still supported -KPIC.
8049: ecc*)
8050: lt_prog_compiler_wl='-Wl,'
8051: lt_prog_compiler_pic='-KPIC'
8052: lt_prog_compiler_static='-static'
8053: ;;
8054: # icc used to be incompatible with GCC.
8055: # ICC 10 doesn't accept -KPIC any more.
8056: icc* | ifort*)
8057: lt_prog_compiler_wl='-Wl,'
8058: lt_prog_compiler_pic='-fPIC'
8059: lt_prog_compiler_static='-static'
8060: ;;
8061: # Lahey Fortran 8.1.
8062: lf95*)
8063: lt_prog_compiler_wl='-Wl,'
8064: lt_prog_compiler_pic='--shared'
8065: lt_prog_compiler_static='--static'
8066: ;;
8067: nagfor*)
8068: # NAG Fortran compiler
8069: lt_prog_compiler_wl='-Wl,-Wl,,'
8070: lt_prog_compiler_pic='-PIC'
8071: lt_prog_compiler_static='-Bstatic'
8072: ;;
8073: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8074: # Portland Group compilers (*not* the Pentium gcc compiler,
8075: # which looks to be a dead project)
8076: lt_prog_compiler_wl='-Wl,'
8077: lt_prog_compiler_pic='-fpic'
8078: lt_prog_compiler_static='-Bstatic'
8079: ;;
8080: ccc*)
8081: lt_prog_compiler_wl='-Wl,'
8082: # All Alpha code is PIC.
8083: lt_prog_compiler_static='-non_shared'
8084: ;;
8085: xl* | bgxl* | bgf* | mpixl*)
8086: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8087: lt_prog_compiler_wl='-Wl,'
8088: lt_prog_compiler_pic='-qpic'
8089: lt_prog_compiler_static='-qstaticlink'
8090: ;;
8091: *)
8092: case `$CC -V 2>&1 | sed 5q` in
8093: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8094: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8095: lt_prog_compiler_pic='-KPIC'
8096: lt_prog_compiler_static='-Bstatic'
8097: lt_prog_compiler_wl=''
8098: ;;
8099: *Sun\ F* | *Sun*Fortran*)
8100: lt_prog_compiler_pic='-KPIC'
8101: lt_prog_compiler_static='-Bstatic'
8102: lt_prog_compiler_wl='-Qoption ld '
8103: ;;
8104: *Sun\ C*)
8105: # Sun C 5.9
8106: lt_prog_compiler_pic='-KPIC'
8107: lt_prog_compiler_static='-Bstatic'
8108: lt_prog_compiler_wl='-Wl,'
8109: ;;
8110: *Intel*\ [CF]*Compiler*)
8111: lt_prog_compiler_wl='-Wl,'
8112: lt_prog_compiler_pic='-fPIC'
8113: lt_prog_compiler_static='-static'
8114: ;;
8115: *Portland\ Group*)
8116: lt_prog_compiler_wl='-Wl,'
8117: lt_prog_compiler_pic='-fpic'
8118: lt_prog_compiler_static='-Bstatic'
8119: ;;
8120: esac
8121: ;;
8122: esac
8123: ;;
1.1 misha 8124:
1.8 moko 8125: newsos6)
8126: lt_prog_compiler_pic='-KPIC'
8127: lt_prog_compiler_static='-Bstatic'
8128: ;;
1.1 misha 8129:
1.8 moko 8130: *nto* | *qnx*)
8131: # QNX uses GNU C++, but need to define -shared option too, otherwise
8132: # it will coredump.
8133: lt_prog_compiler_pic='-fPIC -shared'
8134: ;;
1.1 misha 8135:
1.8 moko 8136: osf3* | osf4* | osf5*)
8137: lt_prog_compiler_wl='-Wl,'
8138: # All OSF/1 code is PIC.
8139: lt_prog_compiler_static='-non_shared'
8140: ;;
1.1 misha 8141:
1.8 moko 8142: rdos*)
8143: lt_prog_compiler_static='-non_shared'
8144: ;;
1.1 misha 8145:
1.8 moko 8146: solaris*)
8147: lt_prog_compiler_pic='-KPIC'
8148: lt_prog_compiler_static='-Bstatic'
8149: case $cc_basename in
8150: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8151: lt_prog_compiler_wl='-Qoption ld ';;
8152: *)
8153: lt_prog_compiler_wl='-Wl,';;
8154: esac
8155: ;;
1.1 misha 8156:
1.8 moko 8157: sunos4*)
8158: lt_prog_compiler_wl='-Qoption ld '
8159: lt_prog_compiler_pic='-PIC'
8160: lt_prog_compiler_static='-Bstatic'
8161: ;;
1.1 misha 8162:
1.8 moko 8163: sysv4 | sysv4.2uw2* | sysv4.3*)
8164: lt_prog_compiler_wl='-Wl,'
8165: lt_prog_compiler_pic='-KPIC'
8166: lt_prog_compiler_static='-Bstatic'
8167: ;;
1.1 misha 8168:
1.8 moko 8169: sysv4*MP*)
8170: if test -d /usr/nec ;then
8171: lt_prog_compiler_pic='-Kconform_pic'
8172: lt_prog_compiler_static='-Bstatic'
8173: fi
8174: ;;
1.1 misha 8175:
1.8 moko 8176: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8177: lt_prog_compiler_wl='-Wl,'
8178: lt_prog_compiler_pic='-KPIC'
8179: lt_prog_compiler_static='-Bstatic'
8180: ;;
1.1 misha 8181:
1.8 moko 8182: unicos*)
8183: lt_prog_compiler_wl='-Wl,'
8184: lt_prog_compiler_can_build_shared=no
8185: ;;
1.1 misha 8186:
1.8 moko 8187: uts4*)
8188: lt_prog_compiler_pic='-pic'
8189: lt_prog_compiler_static='-Bstatic'
8190: ;;
1.1 misha 8191:
1.8 moko 8192: *)
8193: lt_prog_compiler_can_build_shared=no
8194: ;;
8195: esac
8196: fi
1.1 misha 8197:
1.8 moko 8198: case $host_os in
8199: # For platforms which do not support PIC, -DPIC is meaningless:
8200: *djgpp*)
8201: lt_prog_compiler_pic=
8202: ;;
8203: *)
8204: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8205: ;;
8206: esac
1.1 misha 8207:
1.11 moko 8208: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8209: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8210: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8211: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8212: else
8213: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8214: fi
1.11 moko 8215: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8216: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
1.8 moko 8217: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 8218:
1.8 moko 8219: #
8220: # Check to make sure the PIC flag actually works.
8221: #
8222: if test -n "$lt_prog_compiler_pic"; then
1.11 moko 8223: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8224: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8225: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8226: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8227: else
8228: lt_cv_prog_compiler_pic_works=no
8229: ac_outfile=conftest.$ac_objext
8230: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8231: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8232: # Insert the option either (1) after the last *FLAGS variable, or
8233: # (2) before a word containing "conftest.", or (3) at the end.
8234: # Note that $ac_compile itself does not contain backslashes and begins
8235: # with a dollar sign (not a hyphen), so the echo should work correctly.
8236: # The option is referenced via a variable to avoid confusing sed.
8237: lt_compile=`echo "$ac_compile" | $SED \
8238: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240: -e 's:$: $lt_compiler_flag:'`
8241: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8242: (eval "$lt_compile" 2>conftest.err)
8243: ac_status=$?
8244: cat conftest.err >&5
8245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246: if (exit $ac_status) && test -s "$ac_outfile"; then
8247: # The compiler can only warn and ignore the option if not recognized
8248: # So say no if there are warnings other than the usual output.
8249: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8250: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8251: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8252: lt_cv_prog_compiler_pic_works=yes
8253: fi
8254: fi
8255: $RM conftest*
1.1 misha 8256:
1.8 moko 8257: fi
1.11 moko 8258: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8259: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.1 misha 8260:
1.8 moko 8261: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8262: case $lt_prog_compiler_pic in
8263: "" | " "*) ;;
8264: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8265: esac
8266: else
8267: lt_prog_compiler_pic=
8268: lt_prog_compiler_can_build_shared=no
8269: fi
1.1 misha 8270:
1.8 moko 8271: fi
1.1 misha 8272:
8273:
8274:
8275:
8276:
8277:
8278:
8279:
8280:
8281:
8282:
1.8 moko 8283: #
8284: # Check to make sure the static flag actually works.
8285: #
8286: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.11 moko 8287: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8288: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8289: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8290: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8291: else
8292: lt_cv_prog_compiler_static_works=no
8293: save_LDFLAGS="$LDFLAGS"
8294: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8295: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8296: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8297: # The linker can only warn and ignore the option if not recognized
8298: # So say no if there are warnings
8299: if test -s conftest.err; then
8300: # Append any errors to the config.log.
8301: cat conftest.err 1>&5
8302: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8303: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8304: if diff conftest.exp conftest.er2 >/dev/null; then
8305: lt_cv_prog_compiler_static_works=yes
8306: fi
8307: else
8308: lt_cv_prog_compiler_static_works=yes
8309: fi
8310: fi
8311: $RM -r conftest*
8312: LDFLAGS="$save_LDFLAGS"
1.1 misha 8313:
1.8 moko 8314: fi
1.11 moko 8315: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8316: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.1 misha 8317:
1.8 moko 8318: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8319: :
8320: else
8321: lt_prog_compiler_static=
8322: fi
1.1 misha 8323:
8324:
8325:
8326:
8327:
8328:
8329:
1.11 moko 8330: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8331: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8332: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8333: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8334: else
8335: lt_cv_prog_compiler_c_o=no
8336: $RM -r conftest 2>/dev/null
8337: mkdir conftest
8338: cd conftest
8339: mkdir out
8340: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8341:
8342: lt_compiler_flag="-o out/conftest2.$ac_objext"
8343: # Insert the option either (1) after the last *FLAGS variable, or
8344: # (2) before a word containing "conftest.", or (3) at the end.
8345: # Note that $ac_compile itself does not contain backslashes and begins
8346: # with a dollar sign (not a hyphen), so the echo should work correctly.
8347: lt_compile=`echo "$ac_compile" | $SED \
8348: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8349: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8350: -e 's:$: $lt_compiler_flag:'`
8351: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8352: (eval "$lt_compile" 2>out/conftest.err)
8353: ac_status=$?
8354: cat out/conftest.err >&5
8355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8357: then
8358: # The compiler can only warn and ignore the option if not recognized
8359: # So say no if there are warnings
8360: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8361: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8362: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8363: lt_cv_prog_compiler_c_o=yes
8364: fi
8365: fi
8366: chmod u+w . 2>&5
8367: $RM conftest*
8368: # SGI C++ compiler will create directory out/ii_files/ for
8369: # template instantiation
8370: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8371: $RM out/* && rmdir out
8372: cd ..
8373: $RM -r conftest
8374: $RM conftest*
1.1 misha 8375:
1.8 moko 8376: fi
1.11 moko 8377: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8378: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8379:
8380:
8381:
8382:
8383:
8384:
1.11 moko 8385: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8386: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8387: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8388: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8389: else
8390: lt_cv_prog_compiler_c_o=no
8391: $RM -r conftest 2>/dev/null
8392: mkdir conftest
8393: cd conftest
8394: mkdir out
8395: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8396:
8397: lt_compiler_flag="-o out/conftest2.$ac_objext"
8398: # Insert the option either (1) after the last *FLAGS variable, or
8399: # (2) before a word containing "conftest.", or (3) at the end.
8400: # Note that $ac_compile itself does not contain backslashes and begins
8401: # with a dollar sign (not a hyphen), so the echo should work correctly.
8402: lt_compile=`echo "$ac_compile" | $SED \
8403: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405: -e 's:$: $lt_compiler_flag:'`
8406: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8407: (eval "$lt_compile" 2>out/conftest.err)
8408: ac_status=$?
8409: cat out/conftest.err >&5
8410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8412: then
8413: # The compiler can only warn and ignore the option if not recognized
8414: # So say no if there are warnings
8415: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8416: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8417: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8418: lt_cv_prog_compiler_c_o=yes
8419: fi
8420: fi
8421: chmod u+w . 2>&5
8422: $RM conftest*
8423: # SGI C++ compiler will create directory out/ii_files/ for
8424: # template instantiation
8425: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8426: $RM out/* && rmdir out
8427: cd ..
8428: $RM -r conftest
8429: $RM conftest*
1.1 misha 8430:
1.8 moko 8431: fi
1.11 moko 8432: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8433: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8434:
8435:
8436:
8437:
1.8 moko 8438: hard_links="nottested"
8439: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8440: # do not overwrite the value of need_locks provided by the user
1.11 moko 8441: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8442: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 8443: hard_links=yes
8444: $RM conftest*
8445: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8446: touch conftest.a
8447: ln conftest.a conftest.b 2>&5 || hard_links=no
8448: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 8449: echo "$as_me:$LINENO: result: $hard_links" >&5
8450: echo "${ECHO_T}$hard_links" >&6
1.8 moko 8451: if test "$hard_links" = no; then
1.11 moko 8452: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8453: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 8454: need_locks=warn
8455: fi
8456: else
8457: need_locks=no
8458: fi
1.1 misha 8459:
8460:
8461:
8462:
8463:
8464:
1.11 moko 8465: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8466: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.1 misha 8467:
1.8 moko 8468: runpath_var=
8469: allow_undefined_flag=
8470: always_export_symbols=no
8471: archive_cmds=
8472: archive_expsym_cmds=
8473: compiler_needs_object=no
8474: enable_shared_with_static_runtimes=no
8475: export_dynamic_flag_spec=
8476: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8477: hardcode_automatic=no
8478: hardcode_direct=no
8479: hardcode_direct_absolute=no
8480: hardcode_libdir_flag_spec=
8481: hardcode_libdir_separator=
8482: hardcode_minus_L=no
8483: hardcode_shlibpath_var=unsupported
8484: inherit_rpath=no
8485: link_all_deplibs=unknown
8486: module_cmds=
8487: module_expsym_cmds=
8488: old_archive_from_new_cmds=
8489: old_archive_from_expsyms_cmds=
8490: thread_safe_flag_spec=
8491: whole_archive_flag_spec=
8492: # include_expsyms should be a list of space-separated symbols to be *always*
8493: # included in the symbol list
8494: include_expsyms=
8495: # exclude_expsyms can be an extended regexp of symbols to exclude
8496: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8497: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8498: # as well as any symbol that contains `d'.
8499: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8500: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8501: # platforms (ab)use it in PIC code, but their linkers get confused if
8502: # the symbol is explicitly referenced. Since portable code cannot
8503: # rely on this symbol name, it's probably fine to never include it in
8504: # preloaded symbol tables.
8505: # Exclude shared library initialization/finalization symbols.
8506: extract_expsyms_cmds=
1.1 misha 8507:
1.8 moko 8508: case $host_os in
8509: cygwin* | mingw* | pw32* | cegcc*)
8510: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8511: # When not using gcc, we currently assume that we are using
8512: # Microsoft Visual C++.
8513: if test "$GCC" != yes; then
8514: with_gnu_ld=no
8515: fi
8516: ;;
8517: interix*)
8518: # we just hope/assume this is gcc and not c89 (= MSVC++)
8519: with_gnu_ld=yes
8520: ;;
8521: openbsd*)
8522: with_gnu_ld=no
8523: ;;
8524: esac
1.1 misha 8525:
1.8 moko 8526: ld_shlibs=yes
1.1 misha 8527:
1.8 moko 8528: # On some targets, GNU ld is compatible enough with the native linker
8529: # that we're better off using the native interface for both.
8530: lt_use_gnu_ld_interface=no
8531: if test "$with_gnu_ld" = yes; then
8532: case $host_os in
8533: aix*)
8534: # The AIX port of GNU ld has always aspired to compatibility
8535: # with the native linker. However, as the warning in the GNU ld
8536: # block says, versions before 2.19.5* couldn't really create working
8537: # shared libraries, regardless of the interface used.
8538: case `$LD -v 2>&1` in
8539: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8540: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8541: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8542: *)
8543: lt_use_gnu_ld_interface=yes
8544: ;;
8545: esac
8546: ;;
8547: *)
8548: lt_use_gnu_ld_interface=yes
8549: ;;
8550: esac
8551: fi
1.1 misha 8552:
1.8 moko 8553: if test "$lt_use_gnu_ld_interface" = yes; then
8554: # If archive_cmds runs LD, not CC, wlarc should be empty
8555: wlarc='${wl}'
8556:
8557: # Set some defaults for GNU ld with shared library support. These
8558: # are reset later if shared libraries are not supported. Putting them
8559: # here allows them to be overridden if necessary.
8560: runpath_var=LD_RUN_PATH
8561: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8562: export_dynamic_flag_spec='${wl}--export-dynamic'
8563: # ancient GNU ld didn't support --whole-archive et. al.
8564: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8565: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8566: else
8567: whole_archive_flag_spec=
8568: fi
8569: supports_anon_versioning=no
8570: case `$LD -v 2>&1` in
8571: *GNU\ gold*) supports_anon_versioning=yes ;;
8572: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8573: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8574: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8575: *\ 2.11.*) ;; # other 2.11 versions
8576: *) supports_anon_versioning=yes ;;
8577: esac
1.1 misha 8578:
1.8 moko 8579: # See if GNU ld supports shared libraries.
8580: case $host_os in
8581: aix[3-9]*)
8582: # On AIX/PPC, the GNU linker is very broken
8583: if test "$host_cpu" != ia64; then
8584: ld_shlibs=no
8585: cat <<_LT_EOF 1>&2
1.1 misha 8586:
1.8 moko 8587: *** Warning: the GNU linker, at least up to release 2.19, is reported
8588: *** to be unable to reliably create shared libraries on AIX.
8589: *** Therefore, libtool is disabling shared libraries support. If you
8590: *** really care for shared libraries, you may want to install binutils
8591: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8592: *** You will then need to restart the configuration process.
1.1 misha 8593:
1.8 moko 8594: _LT_EOF
8595: fi
8596: ;;
1.1 misha 8597:
1.8 moko 8598: amigaos*)
8599: case $host_cpu in
8600: powerpc)
8601: # see comment about AmigaOS4 .so support
8602: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8603: archive_expsym_cmds=''
8604: ;;
8605: m68k)
8606: 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)'
8607: hardcode_libdir_flag_spec='-L$libdir'
8608: hardcode_minus_L=yes
8609: ;;
8610: esac
8611: ;;
1.1 misha 8612:
1.8 moko 8613: beos*)
8614: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8615: allow_undefined_flag=unsupported
8616: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8617: # support --undefined. This deserves some investigation. FIXME
8618: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619: else
8620: ld_shlibs=no
8621: fi
8622: ;;
1.1 misha 8623:
1.8 moko 8624: cygwin* | mingw* | pw32* | cegcc*)
8625: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8626: # as there is no search path for DLLs.
8627: hardcode_libdir_flag_spec='-L$libdir'
8628: export_dynamic_flag_spec='${wl}--export-all-symbols'
8629: allow_undefined_flag=unsupported
8630: always_export_symbols=no
8631: enable_shared_with_static_runtimes=yes
8632: 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'
8633: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8634:
8635: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8636: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8637: # If the export-symbols file already is a .def file (1st line
8638: # is EXPORTS), use it as is; otherwise, prepend...
8639: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8640: cp $export_symbols $output_objdir/$soname.def;
8641: else
8642: echo EXPORTS > $output_objdir/$soname.def;
8643: cat $export_symbols >> $output_objdir/$soname.def;
8644: fi~
8645: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8646: else
8647: ld_shlibs=no
8648: fi
8649: ;;
1.1 misha 8650:
1.8 moko 8651: haiku*)
8652: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653: link_all_deplibs=yes
8654: ;;
1.1 misha 8655:
1.8 moko 8656: interix[3-9]*)
8657: hardcode_direct=no
8658: hardcode_shlibpath_var=no
8659: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8660: export_dynamic_flag_spec='${wl}-E'
8661: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8662: # Instead, shared libraries are loaded at an image base (0x10000000 by
8663: # default) and relocated if they conflict, which is a slow very memory
8664: # consuming and fragmenting process. To avoid this, we pick a random,
8665: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8666: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8667: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8668: 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'
8669: ;;
1.1 misha 8670:
1.8 moko 8671: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8672: tmp_diet=no
8673: if test "$host_os" = linux-dietlibc; then
8674: case $cc_basename in
8675: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8676: esac
8677: fi
8678: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8679: && test "$tmp_diet" = no
8680: then
8681: tmp_addflag=' $pic_flag'
8682: tmp_sharedflag='-shared'
8683: case $cc_basename,$host_cpu in
8684: pgcc*) # Portland Group C compiler
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'
8687: ;;
8688: pgf77* | pgf90* | pgf95* | pgfortran*)
8689: # Portland Group f77 and f90 compilers
8690: 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'
8691: tmp_addflag=' $pic_flag -Mnomain' ;;
8692: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8693: tmp_addflag=' -i_dynamic' ;;
8694: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8695: tmp_addflag=' -i_dynamic -nofor_main' ;;
8696: ifc* | ifort*) # Intel Fortran compiler
8697: tmp_addflag=' -nofor_main' ;;
8698: lf95*) # Lahey Fortran 8.1
8699: whole_archive_flag_spec=
8700: tmp_sharedflag='--shared' ;;
8701: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8702: tmp_sharedflag='-qmkshrobj'
8703: tmp_addflag= ;;
8704: nvcc*) # Cuda Compiler Driver 2.2
8705: 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'
8706: compiler_needs_object=yes
8707: ;;
8708: esac
8709: case `$CC -V 2>&1 | sed 5q` in
8710: *Sun\ C*) # Sun C 5.9
8711: 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'
8712: compiler_needs_object=yes
8713: tmp_sharedflag='-G' ;;
8714: *Sun\ F*) # Sun Fortran 8.3
8715: tmp_sharedflag='-G' ;;
8716: esac
8717: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 8718:
1.8 moko 8719: if test "x$supports_anon_versioning" = xyes; then
8720: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8721: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8722: echo "local: *; };" >> $output_objdir/$libname.ver~
8723: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8724: fi
8725:
8726: case $cc_basename in
8727: xlf* | bgf* | bgxlf* | mpixlf*)
8728: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8729: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8730: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8732: if test "x$supports_anon_versioning" = xyes; then
8733: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8734: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8735: echo "local: *; };" >> $output_objdir/$libname.ver~
8736: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8737: fi
8738: ;;
8739: esac
8740: else
8741: ld_shlibs=no
8742: fi
8743: ;;
1.1 misha 8744:
1.8 moko 8745: netbsd*)
8746: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8747: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8748: wlarc=
8749: else
8750: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752: fi
8753: ;;
1.1 misha 8754:
1.8 moko 8755: solaris*)
8756: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8757: ld_shlibs=no
8758: cat <<_LT_EOF 1>&2
1.1 misha 8759:
1.8 moko 8760: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8761: *** create shared libraries on Solaris systems. Therefore, libtool
8762: *** is disabling shared libraries support. We urge you to upgrade GNU
8763: *** binutils to release 2.9.1 or newer. Another option is to modify
8764: *** your PATH or compiler configuration so that the native linker is
8765: *** used, and then restart.
1.1 misha 8766:
1.8 moko 8767: _LT_EOF
8768: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8769: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771: else
8772: ld_shlibs=no
8773: fi
8774: ;;
1.1 misha 8775:
1.8 moko 8776: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8777: case `$LD -v 2>&1` in
8778: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8779: ld_shlibs=no
8780: cat <<_LT_EOF 1>&2
1.1 misha 8781:
1.8 moko 8782: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8783: *** reliably create shared libraries on SCO systems. Therefore, libtool
8784: *** is disabling shared libraries support. We urge you to upgrade GNU
8785: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8786: *** your PATH or compiler configuration so that the native linker is
8787: *** used, and then restart.
1.1 misha 8788:
1.8 moko 8789: _LT_EOF
8790: ;;
8791: *)
8792: # For security reasons, it is highly recommended that you always
8793: # use absolute paths for naming shared libraries, and exclude the
8794: # DT_RUNPATH tag from executables and libraries. But doing so
8795: # requires that you compile everything twice, which is a pain.
8796: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8797: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8798: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800: else
8801: ld_shlibs=no
8802: fi
8803: ;;
8804: esac
8805: ;;
1.1 misha 8806:
1.8 moko 8807: sunos4*)
8808: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8809: wlarc=
8810: hardcode_direct=yes
8811: hardcode_shlibpath_var=no
8812: ;;
1.1 misha 8813:
1.8 moko 8814: *)
8815: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8816: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8818: else
8819: ld_shlibs=no
8820: fi
8821: ;;
8822: esac
1.1 misha 8823:
1.8 moko 8824: if test "$ld_shlibs" = no; then
8825: runpath_var=
8826: hardcode_libdir_flag_spec=
8827: export_dynamic_flag_spec=
8828: whole_archive_flag_spec=
8829: fi
8830: else
8831: # PORTME fill in a description of your system's linker (not GNU ld)
8832: case $host_os in
8833: aix3*)
8834: allow_undefined_flag=unsupported
8835: always_export_symbols=yes
8836: 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'
8837: # Note: this linker hardcodes the directories in LIBPATH if there
8838: # are no directories specified by -L.
8839: hardcode_minus_L=yes
8840: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8841: # Neither direct hardcoding nor static linking is supported with a
8842: # broken collect2.
8843: hardcode_direct=unsupported
8844: fi
8845: ;;
1.1 misha 8846:
1.8 moko 8847: aix[4-9]*)
8848: if test "$host_cpu" = ia64; then
8849: # On IA64, the linker does run time linking by default, so we don't
8850: # have to do anything special.
8851: aix_use_runtimelinking=no
8852: exp_sym_flag='-Bexport'
8853: no_entry_flag=""
8854: else
8855: # If we're using GNU nm, then we don't want the "-C" option.
8856: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8857: # Also, AIX nm treats weak defined symbols like other global
8858: # defined symbols, whereas GNU nm marks them as "W".
8859: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8860: 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'
8861: else
8862: 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'
8863: fi
8864: aix_use_runtimelinking=no
1.1 misha 8865:
1.8 moko 8866: # Test if we are trying to use run time linking or normal
8867: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8868: # need to do runtime linking.
8869: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8870: for ld_flag in $LDFLAGS; do
8871: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8872: aix_use_runtimelinking=yes
8873: break
8874: fi
8875: done
8876: ;;
8877: esac
1.1 misha 8878:
1.8 moko 8879: exp_sym_flag='-bexport'
8880: no_entry_flag='-bnoentry'
8881: fi
1.1 misha 8882:
1.8 moko 8883: # When large executables or shared objects are built, AIX ld can
8884: # have problems creating the table of contents. If linking a library
8885: # or program results in "error TOC overflow" add -mminimal-toc to
8886: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8887: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8888:
8889: archive_cmds=''
8890: hardcode_direct=yes
8891: hardcode_direct_absolute=yes
8892: hardcode_libdir_separator=':'
8893: link_all_deplibs=yes
8894: file_list_spec='${wl}-f,'
8895:
8896: if test "$GCC" = yes; then
8897: case $host_os in aix4.[012]|aix4.[012].*)
8898: # We only want to do this on AIX 4.2 and lower, the check
8899: # below for broken collect2 doesn't work under 4.3+
8900: collect2name=`${CC} -print-prog-name=collect2`
8901: if test -f "$collect2name" &&
8902: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8903: then
8904: # We have reworked collect2
8905: :
8906: else
8907: # We have old collect2
8908: hardcode_direct=unsupported
8909: # It fails to find uninstalled libraries when the uninstalled
8910: # path is not listed in the libpath. Setting hardcode_minus_L
8911: # to unsupported forces relinking
8912: hardcode_minus_L=yes
8913: hardcode_libdir_flag_spec='-L$libdir'
8914: hardcode_libdir_separator=
8915: fi
8916: ;;
8917: esac
8918: shared_flag='-shared'
8919: if test "$aix_use_runtimelinking" = yes; then
8920: shared_flag="$shared_flag "'${wl}-G'
8921: fi
8922: else
8923: # not using gcc
8924: if test "$host_cpu" = ia64; then
8925: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8926: # chokes on -Wl,-G. The following line is correct:
8927: shared_flag='-G'
8928: else
8929: if test "$aix_use_runtimelinking" = yes; then
8930: shared_flag='${wl}-G'
8931: else
8932: shared_flag='${wl}-bM:SRE'
8933: fi
8934: fi
8935: fi
1.1 misha 8936:
1.8 moko 8937: export_dynamic_flag_spec='${wl}-bexpall'
8938: # It seems that -bexpall does not export symbols beginning with
8939: # underscore (_), so it is better to generate a list of symbols to export.
8940: always_export_symbols=yes
8941: if test "$aix_use_runtimelinking" = yes; then
8942: # Warning - without using the other runtime loading flags (-brtl),
8943: # -berok will link without error, but may produce a broken library.
8944: allow_undefined_flag='-berok'
8945: # Determine the default libpath from the value encoded in an
8946: # empty executable.
8947: if test "${lt_cv_aix_libpath+set}" = set; then
8948: aix_libpath=$lt_cv_aix_libpath
8949: else
1.11 moko 8950: if test "${lt_cv_aix_libpath_+set}" = set; then
8951: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 8952: else
1.11 moko 8953: cat >conftest.$ac_ext <<_ACEOF
8954: /* confdefs.h. */
8955: _ACEOF
8956: cat confdefs.h >>conftest.$ac_ext
8957: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 8958: /* end confdefs.h. */
1.8 moko 8959:
8960: int
8961: main ()
8962: {
8963:
8964: ;
8965: return 0;
8966: }
1.1 misha 8967: _ACEOF
1.11 moko 8968: rm -f conftest.$ac_objext conftest$ac_exeext
8969: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970: (eval $ac_link) 2>conftest.er1
8971: ac_status=$?
8972: grep -v '^ *+' conftest.er1 >conftest.err
8973: rm -f conftest.er1
8974: cat conftest.err >&5
8975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976: (exit $ac_status); } &&
8977: { ac_try='test -z "$ac_c_werror_flag"
8978: || test ! -s conftest.err'
8979: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980: (eval $ac_try) 2>&5
8981: ac_status=$?
8982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983: (exit $ac_status); }; } &&
8984: { ac_try='test -s conftest$ac_exeext'
8985: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986: (eval $ac_try) 2>&5
8987: ac_status=$?
8988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989: (exit $ac_status); }; }; then
1.8 moko 8990:
8991: lt_aix_libpath_sed='
8992: /Import File Strings/,/^$/ {
8993: /^0/ {
8994: s/^0 *\([^ ]*\) *$/\1/
8995: p
8996: }
8997: }'
8998: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8999: # Check for a 64-bit object if we didn't find anything.
9000: if test -z "$lt_cv_aix_libpath_"; then
9001: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9002: fi
1.11 moko 9003: else
9004: echo "$as_me: failed program was:" >&5
9005: sed 's/^/| /' conftest.$ac_ext >&5
9006:
1.1 misha 9007: fi
1.11 moko 9008: rm -f conftest.err conftest.$ac_objext \
9009: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9010: if test -z "$lt_cv_aix_libpath_"; then
9011: lt_cv_aix_libpath_="/usr/lib:/lib"
9012: fi
9013:
9014: fi
9015:
9016: aix_libpath=$lt_cv_aix_libpath_
9017: fi
1.1 misha 9018:
1.8 moko 9019: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9020: 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"
9021: else
9022: if test "$host_cpu" = ia64; then
9023: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9024: allow_undefined_flag="-z nodefs"
9025: 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"
9026: else
9027: # Determine the default libpath from the value encoded in an
9028: # empty executable.
9029: if test "${lt_cv_aix_libpath+set}" = set; then
9030: aix_libpath=$lt_cv_aix_libpath
9031: else
1.11 moko 9032: if test "${lt_cv_aix_libpath_+set}" = set; then
9033: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 9034: else
1.11 moko 9035: cat >conftest.$ac_ext <<_ACEOF
9036: /* confdefs.h. */
9037: _ACEOF
9038: cat confdefs.h >>conftest.$ac_ext
9039: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9040: /* end confdefs.h. */
1.8 moko 9041:
9042: int
9043: main ()
9044: {
9045:
9046: ;
9047: return 0;
9048: }
1.1 misha 9049: _ACEOF
1.11 moko 9050: rm -f conftest.$ac_objext conftest$ac_exeext
9051: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052: (eval $ac_link) 2>conftest.er1
9053: ac_status=$?
9054: grep -v '^ *+' conftest.er1 >conftest.err
9055: rm -f conftest.er1
9056: cat conftest.err >&5
9057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058: (exit $ac_status); } &&
9059: { ac_try='test -z "$ac_c_werror_flag"
9060: || test ! -s conftest.err'
9061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062: (eval $ac_try) 2>&5
9063: ac_status=$?
9064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065: (exit $ac_status); }; } &&
9066: { ac_try='test -s conftest$ac_exeext'
9067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068: (eval $ac_try) 2>&5
9069: ac_status=$?
9070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071: (exit $ac_status); }; }; then
1.8 moko 9072:
9073: lt_aix_libpath_sed='
9074: /Import File Strings/,/^$/ {
9075: /^0/ {
9076: s/^0 *\([^ ]*\) *$/\1/
9077: p
9078: }
9079: }'
9080: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9081: # Check for a 64-bit object if we didn't find anything.
9082: if test -z "$lt_cv_aix_libpath_"; then
9083: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 9084: fi
1.11 moko 9085: else
9086: echo "$as_me: failed program was:" >&5
9087: sed 's/^/| /' conftest.$ac_ext >&5
9088:
1.1 misha 9089: fi
1.11 moko 9090: rm -f conftest.err conftest.$ac_objext \
9091: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9092: if test -z "$lt_cv_aix_libpath_"; then
9093: lt_cv_aix_libpath_="/usr/lib:/lib"
9094: fi
9095:
9096: fi
9097:
9098: aix_libpath=$lt_cv_aix_libpath_
9099: fi
9100:
9101: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9102: # Warning - without using the other run time loading flags,
9103: # -berok will link without error, but may produce a broken library.
9104: no_undefined_flag=' ${wl}-bernotok'
9105: allow_undefined_flag=' ${wl}-berok'
9106: if test "$with_gnu_ld" = yes; then
9107: # We only use this code for GNU lds that support --whole-archive.
9108: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9109: else
9110: # Exported symbols can be pulled into shared objects from archives
9111: whole_archive_flag_spec='$convenience'
9112: fi
9113: archive_cmds_need_lc=yes
9114: # This is similar to how AIX traditionally builds its shared libraries.
9115: 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'
9116: fi
9117: fi
9118: ;;
9119:
9120: amigaos*)
9121: case $host_cpu in
9122: powerpc)
9123: # see comment about AmigaOS4 .so support
9124: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125: archive_expsym_cmds=''
9126: ;;
9127: m68k)
9128: 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)'
9129: hardcode_libdir_flag_spec='-L$libdir'
9130: hardcode_minus_L=yes
9131: ;;
9132: esac
9133: ;;
9134:
9135: bsdi[45]*)
9136: export_dynamic_flag_spec=-rdynamic
9137: ;;
9138:
9139: cygwin* | mingw* | pw32* | cegcc*)
9140: # When not using gcc, we currently assume that we are using
9141: # Microsoft Visual C++.
9142: # hardcode_libdir_flag_spec is actually meaningless, as there is
9143: # no search path for DLLs.
9144: case $cc_basename in
9145: cl*)
9146: # Native MSVC
9147: hardcode_libdir_flag_spec=' '
9148: allow_undefined_flag=unsupported
9149: always_export_symbols=yes
9150: file_list_spec='@'
9151: # Tell ltmain to make .lib files, not .a files.
9152: libext=lib
9153: # Tell ltmain to make .dll files, not .so files.
9154: shrext_cmds=".dll"
9155: # FIXME: Setting linknames here is a bad hack.
9156: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9157: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9158: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9159: else
9160: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9161: fi~
9162: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9163: linknames='
9164: # The linker will not automatically build a static lib if we build a DLL.
9165: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9166: enable_shared_with_static_runtimes=yes
9167: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9168: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9169: # Don't use ranlib
9170: old_postinstall_cmds='chmod 644 $oldlib'
9171: postlink_cmds='lt_outputfile="@OUTPUT@"~
9172: lt_tool_outputfile="@TOOL_OUTPUT@"~
9173: case $lt_outputfile in
9174: *.exe|*.EXE) ;;
9175: *)
9176: lt_outputfile="$lt_outputfile.exe"
9177: lt_tool_outputfile="$lt_tool_outputfile.exe"
9178: ;;
9179: esac~
9180: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9181: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9182: $RM "$lt_outputfile.manifest";
9183: fi'
9184: ;;
9185: *)
9186: # Assume MSVC wrapper
9187: hardcode_libdir_flag_spec=' '
9188: allow_undefined_flag=unsupported
9189: # Tell ltmain to make .lib files, not .a files.
9190: libext=lib
9191: # Tell ltmain to make .dll files, not .so files.
9192: shrext_cmds=".dll"
9193: # FIXME: Setting linknames here is a bad hack.
9194: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9195: # The linker will automatically build a .lib file if we build a DLL.
9196: old_archive_from_new_cmds='true'
9197: # FIXME: Should let the user specify the lib program.
9198: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9199: enable_shared_with_static_runtimes=yes
9200: ;;
9201: esac
9202: ;;
9203:
9204: darwin* | rhapsody*)
9205:
9206:
9207: archive_cmds_need_lc=no
9208: hardcode_direct=no
9209: hardcode_automatic=yes
9210: hardcode_shlibpath_var=unsupported
9211: if test "$lt_cv_ld_force_load" = "yes"; then
9212: 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\"`'
9213:
9214: else
9215: whole_archive_flag_spec=''
9216: fi
9217: link_all_deplibs=yes
9218: allow_undefined_flag="$_lt_dar_allow_undefined"
9219: case $cc_basename in
9220: ifort*) _lt_dar_can_shared=yes ;;
9221: *) _lt_dar_can_shared=$GCC ;;
9222: esac
9223: if test "$_lt_dar_can_shared" = "yes"; then
9224: output_verbose_link_cmd=func_echo_all
9225: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9226: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9227: 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}"
9228: 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}"
9229:
9230: else
9231: ld_shlibs=no
9232: fi
9233:
9234: ;;
9235:
9236: dgux*)
9237: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9238: hardcode_libdir_flag_spec='-L$libdir'
9239: hardcode_shlibpath_var=no
9240: ;;
9241:
9242: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9243: # support. Future versions do this automatically, but an explicit c++rt0.o
9244: # does not break anything, and helps significantly (at the cost of a little
9245: # extra space).
9246: freebsd2.2*)
9247: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9248: hardcode_libdir_flag_spec='-R$libdir'
9249: hardcode_direct=yes
9250: hardcode_shlibpath_var=no
9251: ;;
9252:
9253: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9254: freebsd2.*)
9255: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9256: hardcode_direct=yes
9257: hardcode_minus_L=yes
9258: hardcode_shlibpath_var=no
9259: ;;
9260:
9261: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9262: freebsd* | dragonfly*)
9263: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264: hardcode_libdir_flag_spec='-R$libdir'
9265: hardcode_direct=yes
9266: hardcode_shlibpath_var=no
9267: ;;
9268:
9269: hpux9*)
9270: if test "$GCC" = yes; then
9271: 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'
9272: else
9273: 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'
9274: fi
9275: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9276: hardcode_libdir_separator=:
9277: hardcode_direct=yes
9278:
9279: # hardcode_minus_L: Not really in the search PATH,
9280: # but as the default location of the library.
9281: hardcode_minus_L=yes
9282: export_dynamic_flag_spec='${wl}-E'
9283: ;;
9284:
9285: hpux10*)
9286: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9287: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9288: else
9289: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9290: fi
9291: if test "$with_gnu_ld" = no; then
9292: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9293: hardcode_libdir_separator=:
9294: hardcode_direct=yes
9295: hardcode_direct_absolute=yes
9296: export_dynamic_flag_spec='${wl}-E'
9297: # hardcode_minus_L: Not really in the search PATH,
9298: # but as the default location of the library.
9299: hardcode_minus_L=yes
9300: fi
9301: ;;
9302:
9303: hpux11*)
9304: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9305: case $host_cpu in
9306: hppa*64*)
9307: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9308: ;;
9309: ia64*)
9310: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9311: ;;
9312: *)
9313: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9314: ;;
9315: esac
9316: else
9317: case $host_cpu in
9318: hppa*64*)
9319: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320: ;;
9321: ia64*)
9322: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9323: ;;
9324: *)
1.1 misha 9325:
1.8 moko 9326: # Older versions of the 11.00 compiler do not understand -b yet
9327: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.11 moko 9328: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9329: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9330: if test "${lt_cv_prog_compiler__b+set}" = set; then
9331: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9332: else
1.8 moko 9333: lt_cv_prog_compiler__b=no
9334: save_LDFLAGS="$LDFLAGS"
9335: LDFLAGS="$LDFLAGS -b"
9336: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9337: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9338: # The linker can only warn and ignore the option if not recognized
9339: # So say no if there are warnings
9340: if test -s conftest.err; then
9341: # Append any errors to the config.log.
9342: cat conftest.err 1>&5
9343: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9344: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9345: if diff conftest.exp conftest.er2 >/dev/null; then
9346: lt_cv_prog_compiler__b=yes
9347: fi
9348: else
9349: lt_cv_prog_compiler__b=yes
9350: fi
9351: fi
9352: $RM -r conftest*
9353: LDFLAGS="$save_LDFLAGS"
1.1 misha 9354:
9355: fi
1.11 moko 9356: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9357: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 misha 9358:
1.8 moko 9359: if test x"$lt_cv_prog_compiler__b" = xyes; then
9360: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9361: else
9362: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 9363: fi
9364:
1.8 moko 9365: ;;
9366: esac
9367: fi
9368: if test "$with_gnu_ld" = no; then
9369: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370: hardcode_libdir_separator=:
9371:
9372: case $host_cpu in
9373: hppa*64*|ia64*)
9374: hardcode_direct=no
9375: hardcode_shlibpath_var=no
9376: ;;
9377: *)
9378: hardcode_direct=yes
9379: hardcode_direct_absolute=yes
9380: export_dynamic_flag_spec='${wl}-E'
1.1 misha 9381:
1.8 moko 9382: # hardcode_minus_L: Not really in the search PATH,
9383: # but as the default location of the library.
9384: hardcode_minus_L=yes
9385: ;;
9386: esac
9387: fi
9388: ;;
1.1 misha 9389:
1.8 moko 9390: irix5* | irix6* | nonstopux*)
9391: if test "$GCC" = yes; then
9392: 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'
9393: # Try to use the -exported_symbol ld option, if it does not
9394: # work, assume that -exports_file does not work either and
9395: # implicitly export all symbols.
9396: # This should be the same for all languages, so no per-tag cache variable.
1.11 moko 9397: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9398: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9399: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9400: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9401: else
1.8 moko 9402: save_LDFLAGS="$LDFLAGS"
9403: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.11 moko 9404: cat >conftest.$ac_ext <<_ACEOF
9405: /* confdefs.h. */
9406: _ACEOF
9407: cat confdefs.h >>conftest.$ac_ext
9408: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9409: /* end confdefs.h. */
1.8 moko 9410: int foo (void) { return 0; }
1.1 misha 9411: _ACEOF
1.11 moko 9412: rm -f conftest.$ac_objext conftest$ac_exeext
9413: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414: (eval $ac_link) 2>conftest.er1
9415: ac_status=$?
9416: grep -v '^ *+' conftest.er1 >conftest.err
9417: rm -f conftest.er1
9418: cat conftest.err >&5
9419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420: (exit $ac_status); } &&
9421: { ac_try='test -z "$ac_c_werror_flag"
9422: || test ! -s conftest.err'
9423: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424: (eval $ac_try) 2>&5
9425: ac_status=$?
9426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427: (exit $ac_status); }; } &&
9428: { ac_try='test -s conftest$ac_exeext'
9429: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430: (eval $ac_try) 2>&5
9431: ac_status=$?
9432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433: (exit $ac_status); }; }; then
1.8 moko 9434: lt_cv_irix_exported_symbol=yes
1.1 misha 9435: else
1.11 moko 9436: echo "$as_me: failed program was:" >&5
9437: sed 's/^/| /' conftest.$ac_ext >&5
9438:
9439: lt_cv_irix_exported_symbol=no
1.1 misha 9440: fi
1.11 moko 9441: rm -f conftest.err conftest.$ac_objext \
9442: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9443: LDFLAGS="$save_LDFLAGS"
1.1 misha 9444: fi
1.11 moko 9445: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9446: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
1.8 moko 9447: if test "$lt_cv_irix_exported_symbol" = yes; then
9448: 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'
9449: fi
9450: else
9451: 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'
9452: 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'
9453: fi
9454: archive_cmds_need_lc='no'
9455: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9456: hardcode_libdir_separator=:
9457: inherit_rpath=yes
9458: link_all_deplibs=yes
9459: ;;
1.1 misha 9460:
1.8 moko 9461: netbsd*)
9462: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9463: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9464: else
9465: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9466: fi
9467: hardcode_libdir_flag_spec='-R$libdir'
9468: hardcode_direct=yes
9469: hardcode_shlibpath_var=no
9470: ;;
1.1 misha 9471:
1.8 moko 9472: newsos6)
9473: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474: hardcode_direct=yes
9475: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9476: hardcode_libdir_separator=:
9477: hardcode_shlibpath_var=no
9478: ;;
1.1 misha 9479:
1.8 moko 9480: *nto* | *qnx*)
9481: ;;
1.1 misha 9482:
1.8 moko 9483: openbsd*)
9484: if test -f /usr/libexec/ld.so; then
9485: hardcode_direct=yes
9486: hardcode_shlibpath_var=no
9487: hardcode_direct_absolute=yes
9488: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9489: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9490: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9491: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9492: export_dynamic_flag_spec='${wl}-E'
9493: else
9494: case $host_os in
9495: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9496: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9497: hardcode_libdir_flag_spec='-R$libdir'
9498: ;;
9499: *)
9500: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9501: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9502: ;;
9503: esac
9504: fi
9505: else
9506: ld_shlibs=no
9507: fi
9508: ;;
1.1 misha 9509:
1.8 moko 9510: os2*)
9511: hardcode_libdir_flag_spec='-L$libdir'
9512: hardcode_minus_L=yes
9513: allow_undefined_flag=unsupported
9514: 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'
9515: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9516: ;;
1.1 misha 9517:
1.8 moko 9518: osf3*)
9519: if test "$GCC" = yes; then
9520: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9521: 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'
9522: else
9523: allow_undefined_flag=' -expect_unresolved \*'
9524: 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'
9525: fi
9526: archive_cmds_need_lc='no'
9527: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528: hardcode_libdir_separator=:
9529: ;;
1.1 misha 9530:
1.8 moko 9531: osf4* | osf5*) # as osf3* with the addition of -msym flag
9532: if test "$GCC" = yes; then
9533: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9534: 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'
9535: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536: else
9537: allow_undefined_flag=' -expect_unresolved \*'
9538: 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'
9539: 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~
9540: $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'
9541:
9542: # Both c and cxx compiler support -rpath directly
9543: hardcode_libdir_flag_spec='-rpath $libdir'
9544: fi
9545: archive_cmds_need_lc='no'
9546: hardcode_libdir_separator=:
9547: ;;
9548:
9549: solaris*)
9550: no_undefined_flag=' -z defs'
9551: if test "$GCC" = yes; then
9552: wlarc='${wl}'
9553: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9554: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9555: $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'
9556: else
9557: case `$CC -V 2>&1` in
9558: *"Compilers 5.0"*)
9559: wlarc=''
9560: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9562: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9563: ;;
9564: *)
9565: wlarc='${wl}'
9566: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9567: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9568: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9569: ;;
9570: esac
9571: fi
9572: hardcode_libdir_flag_spec='-R$libdir'
9573: hardcode_shlibpath_var=no
9574: case $host_os in
9575: solaris2.[0-5] | solaris2.[0-5].*) ;;
9576: *)
9577: # The compiler driver will combine and reorder linker options,
9578: # but understands `-z linker_flag'. GCC discards it without `$wl',
9579: # but is careful enough not to reorder.
9580: # Supported since Solaris 2.6 (maybe 2.5.1?)
9581: if test "$GCC" = yes; then
9582: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9583: else
9584: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9585: fi
9586: ;;
9587: esac
9588: link_all_deplibs=yes
9589: ;;
9590:
9591: sunos4*)
9592: if test "x$host_vendor" = xsequent; then
9593: # Use $CC to link under sequent, because it throws in some extra .o
9594: # files that make .init and .fini sections work.
9595: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9596: else
9597: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9598: fi
9599: hardcode_libdir_flag_spec='-L$libdir'
9600: hardcode_direct=yes
9601: hardcode_minus_L=yes
9602: hardcode_shlibpath_var=no
9603: ;;
9604:
9605: sysv4)
9606: case $host_vendor in
9607: sni)
9608: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609: hardcode_direct=yes # is this really true???
9610: ;;
9611: siemens)
9612: ## LD is ld it makes a PLAMLIB
9613: ## CC just makes a GrossModule.
9614: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9615: reload_cmds='$CC -r -o $output$reload_objs'
9616: hardcode_direct=no
9617: ;;
9618: motorola)
9619: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9621: ;;
9622: esac
9623: runpath_var='LD_RUN_PATH'
9624: hardcode_shlibpath_var=no
9625: ;;
9626:
9627: sysv4.3*)
9628: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629: hardcode_shlibpath_var=no
9630: export_dynamic_flag_spec='-Bexport'
9631: ;;
9632:
9633: sysv4*MP*)
9634: if test -d /usr/nec; then
9635: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9636: hardcode_shlibpath_var=no
9637: runpath_var=LD_RUN_PATH
9638: hardcode_runpath_var=yes
9639: ld_shlibs=yes
9640: fi
9641: ;;
9642:
9643: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9644: no_undefined_flag='${wl}-z,text'
9645: archive_cmds_need_lc=no
9646: hardcode_shlibpath_var=no
9647: runpath_var='LD_RUN_PATH'
9648:
9649: if test "$GCC" = yes; then
9650: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652: else
9653: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9654: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655: fi
9656: ;;
9657:
9658: sysv5* | sco3.2v5* | sco5v6*)
9659: # Note: We can NOT use -z defs as we might desire, because we do not
9660: # link with -lc, and that would cause any symbols used from libc to
9661: # always be unresolved, which means just about no library would
9662: # ever link correctly. If we're not using GNU ld we use -z text
9663: # though, which does catch some bad symbols but isn't as heavy-handed
9664: # as -z defs.
9665: no_undefined_flag='${wl}-z,text'
9666: allow_undefined_flag='${wl}-z,nodefs'
9667: archive_cmds_need_lc=no
9668: hardcode_shlibpath_var=no
9669: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9670: hardcode_libdir_separator=':'
9671: link_all_deplibs=yes
9672: export_dynamic_flag_spec='${wl}-Bexport'
9673: runpath_var='LD_RUN_PATH'
9674:
9675: if test "$GCC" = yes; then
9676: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678: else
9679: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681: fi
9682: ;;
1.1 misha 9683:
1.8 moko 9684: uts4*)
9685: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686: hardcode_libdir_flag_spec='-L$libdir'
9687: hardcode_shlibpath_var=no
1.1 misha 9688: ;;
1.8 moko 9689:
1.1 misha 9690: *)
1.8 moko 9691: ld_shlibs=no
1.1 misha 9692: ;;
1.8 moko 9693: esac
9694:
9695: if test x$host_vendor = xsni; then
9696: case $host in
9697: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9698: export_dynamic_flag_spec='${wl}-Blargedynsym'
9699: ;;
9700: esac
9701: fi
1.1 misha 9702: fi
9703:
1.11 moko 9704: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9705: echo "${ECHO_T}$ld_shlibs" >&6
1.8 moko 9706: test "$ld_shlibs" = no && can_build_shared=no
9707:
9708: with_gnu_ld=$with_gnu_ld
1.1 misha 9709:
9710:
9711:
9712:
9713:
9714:
9715:
9716:
9717:
9718:
9719:
9720:
9721:
9722:
9723:
1.8 moko 9724: #
9725: # Do we need to explicitly link libc?
9726: #
9727: case "x$archive_cmds_need_lc" in
9728: x|xyes)
9729: # Assume -lc should be added
9730: archive_cmds_need_lc=yes
9731:
9732: if test "$enable_shared" = yes && test "$GCC" = yes; then
9733: case $archive_cmds in
9734: *'~'*)
9735: # FIXME: we may have to deal with multi-command sequences.
9736: ;;
9737: '$CC '*)
9738: # Test whether the compiler implicitly links with -lc since on some
9739: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9740: # to ld, don't add -lc before -lgcc.
1.11 moko 9741: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9742: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9743: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9744: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9745: else
1.8 moko 9746: $RM conftest*
9747: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9748:
1.11 moko 9749: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 9750: (eval $ac_compile) 2>&5
9751: ac_status=$?
1.11 moko 9752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753: (exit $ac_status); } 2>conftest.err; then
1.8 moko 9754: soname=conftest
9755: lib=conftest
9756: libobjs=conftest.$ac_objext
9757: deplibs=
9758: wl=$lt_prog_compiler_wl
9759: pic_flag=$lt_prog_compiler_pic
9760: compiler_flags=-v
9761: linker_flags=-v
9762: verstring=
9763: output_objdir=.
9764: libname=conftest
9765: lt_save_allow_undefined_flag=$allow_undefined_flag
9766: allow_undefined_flag=
1.11 moko 9767: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 9768: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9769: ac_status=$?
1.11 moko 9770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771: (exit $ac_status); }
1.8 moko 9772: then
9773: lt_cv_archive_cmds_need_lc=no
9774: else
9775: lt_cv_archive_cmds_need_lc=yes
9776: fi
9777: allow_undefined_flag=$lt_save_allow_undefined_flag
9778: else
9779: cat conftest.err 1>&5
9780: fi
9781: $RM conftest*
9782:
1.1 misha 9783: fi
1.11 moko 9784: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9785: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
1.8 moko 9786: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9787: ;;
9788: esac
9789: fi
9790: ;;
9791: esac
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:
9848:
9849:
9850:
9851:
9852:
1.1 misha 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:
9939:
9940:
9941:
9942:
9943:
1.11 moko 9944: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9945: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.1 misha 9946:
1.8 moko 9947: if test "$GCC" = yes; then
9948: case $host_os in
9949: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9950: *) lt_awk_arg="/^libraries:/" ;;
9951: esac
9952: case $host_os in
9953: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9954: *) lt_sed_strip_eq="s,=/,/,g" ;;
9955: esac
9956: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9957: case $lt_search_path_spec in
9958: *\;*)
9959: # if the path contains ";" then we assume it to be the separator
9960: # otherwise default to the standard path separator (i.e. ":") - it is
9961: # assumed that no part of a normal pathname contains ";" but that should
9962: # okay in the real world where ";" in dirpaths is itself problematic.
9963: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9964: ;;
9965: *)
9966: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9967: ;;
9968: esac
9969: # Ok, now we have the path, separated by spaces, we can step through it
9970: # and add multilib dir if necessary.
9971: lt_tmp_lt_search_path_spec=
9972: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9973: for lt_sys_path in $lt_search_path_spec; do
9974: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9975: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9976: else
9977: test -d "$lt_sys_path" && \
9978: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9979: fi
9980: done
9981: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9982: BEGIN {RS=" "; FS="/|\n";} {
9983: lt_foo="";
9984: lt_count=0;
9985: for (lt_i = NF; lt_i > 0; lt_i--) {
9986: if ($lt_i != "" && $lt_i != ".") {
9987: if ($lt_i == "..") {
9988: lt_count++;
9989: } else {
9990: if (lt_count == 0) {
9991: lt_foo="/" $lt_i lt_foo;
9992: } else {
9993: lt_count--;
9994: }
9995: }
9996: }
9997: }
9998: if (lt_foo != "") { lt_freq[lt_foo]++; }
9999: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10000: }'`
10001: # AWK program above erroneously prepends '/' to C:/dos/paths
10002: # for these hosts.
10003: case $host_os in
10004: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10005: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10006: esac
10007: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 10008: else
1.8 moko 10009: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 10010: fi
1.8 moko 10011: library_names_spec=
10012: libname_spec='lib$name'
10013: soname_spec=
10014: shrext_cmds=".so"
10015: postinstall_cmds=
10016: postuninstall_cmds=
10017: finish_cmds=
10018: finish_eval=
10019: shlibpath_var=
10020: shlibpath_overrides_runpath=unknown
10021: version_type=none
10022: dynamic_linker="$host_os ld.so"
10023: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10024: need_lib_prefix=unknown
10025: hardcode_into_libs=no
10026:
10027: # when you set need_version to no, make sure it does not cause -set_version
10028: # flags to be left without arguments
10029: need_version=unknown
10030:
10031: case $host_os in
10032: aix3*)
10033: version_type=linux # correct to gnu/linux during the next big refactor
10034: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10035: shlibpath_var=LIBPATH
10036:
10037: # AIX 3 has no versioning support, so we append a major version to the name.
10038: soname_spec='${libname}${release}${shared_ext}$major'
10039: ;;
1.1 misha 10040:
1.8 moko 10041: aix[4-9]*)
10042: version_type=linux # correct to gnu/linux during the next big refactor
10043: need_lib_prefix=no
10044: need_version=no
10045: hardcode_into_libs=yes
10046: if test "$host_cpu" = ia64; then
10047: # AIX 5 supports IA64
10048: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10049: shlibpath_var=LD_LIBRARY_PATH
10050: else
10051: # With GCC up to 2.95.x, collect2 would create an import file
10052: # for dependence libraries. The import file would start with
10053: # the line `#! .'. This would cause the generated library to
10054: # depend on `.', always an invalid library. This was fixed in
10055: # development snapshots of GCC prior to 3.0.
10056: case $host_os in
10057: aix4 | aix4.[01] | aix4.[01].*)
10058: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10059: echo ' yes '
10060: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10061: :
10062: else
10063: can_build_shared=no
10064: fi
10065: ;;
10066: esac
10067: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10068: # soname into executable. Probably we can add versioning support to
10069: # collect2, so additional links can be useful in future.
10070: if test "$aix_use_runtimelinking" = yes; then
10071: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10072: # instead of lib<name>.a to let people know that these are not
10073: # typical AIX shared libraries.
10074: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 10075: else
1.8 moko 10076: # We preserve .a as extension for shared libraries through AIX4.2
10077: # and later when we are not doing run time linking.
10078: library_names_spec='${libname}${release}.a $libname.a'
10079: soname_spec='${libname}${release}${shared_ext}$major'
10080: fi
10081: shlibpath_var=LIBPATH
10082: fi
10083: ;;
10084:
10085: amigaos*)
10086: case $host_cpu in
10087: powerpc)
10088: # Since July 2007 AmigaOS4 officially supports .so libraries.
10089: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10090: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091: ;;
10092: m68k)
10093: library_names_spec='$libname.ixlibrary $libname.a'
10094: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10095: 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'
10096: ;;
10097: esac
10098: ;;
10099:
10100: beos*)
10101: library_names_spec='${libname}${shared_ext}'
10102: dynamic_linker="$host_os ld.so"
10103: shlibpath_var=LIBRARY_PATH
10104: ;;
10105:
10106: bsdi[45]*)
10107: version_type=linux # correct to gnu/linux during the next big refactor
10108: need_version=no
10109: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110: soname_spec='${libname}${release}${shared_ext}$major'
10111: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10112: shlibpath_var=LD_LIBRARY_PATH
10113: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10114: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10115: # the default ld.so.conf also contains /usr/contrib/lib and
10116: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10117: # libtool to hard-code these into programs
10118: ;;
10119:
10120: cygwin* | mingw* | pw32* | cegcc*)
10121: version_type=windows
10122: shrext_cmds=".dll"
10123: need_version=no
10124: need_lib_prefix=no
10125:
10126: case $GCC,$cc_basename in
10127: yes,*)
10128: # gcc
10129: library_names_spec='$libname.dll.a'
10130: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10131: postinstall_cmds='base_file=`basename \${file}`~
10132: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10133: dldir=$destdir/`dirname \$dlpath`~
10134: test -d \$dldir || mkdir -p \$dldir~
10135: $install_prog $dir/$dlname \$dldir/$dlname~
10136: chmod a+x \$dldir/$dlname~
10137: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10138: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10139: fi'
10140: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10141: dlpath=$dir/\$dldll~
10142: $RM \$dlpath'
10143: shlibpath_overrides_runpath=yes
10144:
10145: case $host_os in
10146: cygwin*)
10147: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10148: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10149:
10150: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10151: ;;
10152: mingw* | cegcc*)
10153: # MinGW DLLs use traditional 'lib' prefix
10154: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10155: ;;
10156: pw32*)
10157: # pw32 DLLs use 'pw' prefix rather than 'lib'
10158: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10159: ;;
10160: esac
10161: dynamic_linker='Win32 ld.exe'
10162: ;;
10163:
10164: *,cl*)
10165: # Native MSVC
10166: libname_spec='$name'
10167: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10168: library_names_spec='${libname}.dll.lib'
10169:
10170: case $build_os in
10171: mingw*)
10172: sys_lib_search_path_spec=
10173: lt_save_ifs=$IFS
10174: IFS=';'
10175: for lt_path in $LIB
10176: do
10177: IFS=$lt_save_ifs
10178: # Let DOS variable expansion print the short 8.3 style file name.
10179: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10180: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10181: done
10182: IFS=$lt_save_ifs
10183: # Convert to MSYS style.
10184: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10185: ;;
10186: cygwin*)
10187: # Convert to unix form, then to dos form, then back to unix form
10188: # but this time dos style (no spaces!) so that the unix form looks
10189: # like /cygdrive/c/PROGRA~1:/cygdr...
10190: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10191: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10192: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10193: ;;
10194: *)
10195: sys_lib_search_path_spec="$LIB"
10196: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10197: # It is most probably a Windows format PATH.
10198: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10199: else
10200: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10201: fi
10202: # FIXME: find the short name or the path components, as spaces are
10203: # common. (e.g. "Program Files" -> "PROGRA~1")
10204: ;;
10205: esac
10206:
10207: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10208: postinstall_cmds='base_file=`basename \${file}`~
10209: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10210: dldir=$destdir/`dirname \$dlpath`~
10211: test -d \$dldir || mkdir -p \$dldir~
10212: $install_prog $dir/$dlname \$dldir/$dlname'
10213: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10214: dlpath=$dir/\$dldll~
10215: $RM \$dlpath'
10216: shlibpath_overrides_runpath=yes
10217: dynamic_linker='Win32 link.exe'
10218: ;;
10219:
10220: *)
10221: # Assume MSVC wrapper
10222: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10223: dynamic_linker='Win32 ld.exe'
10224: ;;
10225: esac
10226: # FIXME: first we should search . and the directory the executable is in
10227: shlibpath_var=PATH
10228: ;;
10229:
10230: darwin* | rhapsody*)
10231: dynamic_linker="$host_os dyld"
10232: version_type=darwin
10233: need_lib_prefix=no
10234: need_version=no
10235: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10236: soname_spec='${libname}${release}${major}$shared_ext'
10237: shlibpath_overrides_runpath=yes
10238: shlibpath_var=DYLD_LIBRARY_PATH
10239: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 10240:
1.8 moko 10241: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10242: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10243: ;;
1.1 misha 10244:
1.8 moko 10245: dgux*)
10246: version_type=linux # correct to gnu/linux during the next big refactor
10247: need_lib_prefix=no
10248: need_version=no
10249: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10250: soname_spec='${libname}${release}${shared_ext}$major'
10251: shlibpath_var=LD_LIBRARY_PATH
10252: ;;
1.1 misha 10253:
1.8 moko 10254: freebsd* | dragonfly*)
10255: # DragonFly does not have aout. When/if they implement a new
10256: # versioning mechanism, adjust this.
10257: if test -x /usr/bin/objformat; then
10258: objformat=`/usr/bin/objformat`
1.1 misha 10259: else
1.8 moko 10260: case $host_os in
10261: freebsd[23].*) objformat=aout ;;
10262: *) objformat=elf ;;
10263: esac
1.1 misha 10264: fi
1.8 moko 10265: version_type=freebsd-$objformat
10266: case $version_type in
10267: freebsd-elf*)
10268: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10269: need_version=no
10270: need_lib_prefix=no
10271: ;;
10272: freebsd-*)
10273: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10274: need_version=yes
10275: ;;
10276: esac
10277: shlibpath_var=LD_LIBRARY_PATH
10278: case $host_os in
10279: freebsd2.*)
10280: shlibpath_overrides_runpath=yes
10281: ;;
10282: freebsd3.[01]* | freebsdelf3.[01]*)
10283: shlibpath_overrides_runpath=yes
10284: hardcode_into_libs=yes
10285: ;;
10286: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10287: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10288: shlibpath_overrides_runpath=no
10289: hardcode_into_libs=yes
10290: ;;
10291: *) # from 4.6 on, and DragonFly
10292: shlibpath_overrides_runpath=yes
10293: hardcode_into_libs=yes
10294: ;;
10295: esac
10296: ;;
10297:
10298: gnu*)
10299: version_type=linux # correct to gnu/linux during the next big refactor
10300: need_lib_prefix=no
10301: need_version=no
10302: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10303: soname_spec='${libname}${release}${shared_ext}$major'
10304: shlibpath_var=LD_LIBRARY_PATH
10305: shlibpath_overrides_runpath=no
10306: hardcode_into_libs=yes
10307: ;;
10308:
10309: haiku*)
10310: version_type=linux # correct to gnu/linux during the next big refactor
10311: need_lib_prefix=no
10312: need_version=no
10313: dynamic_linker="$host_os runtime_loader"
10314: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315: soname_spec='${libname}${release}${shared_ext}$major'
10316: shlibpath_var=LIBRARY_PATH
10317: shlibpath_overrides_runpath=yes
10318: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10319: hardcode_into_libs=yes
10320: ;;
10321:
10322: hpux9* | hpux10* | hpux11*)
10323: # Give a soname corresponding to the major version so that dld.sl refuses to
10324: # link against other versions.
10325: version_type=sunos
10326: need_lib_prefix=no
10327: need_version=no
10328: case $host_cpu in
10329: ia64*)
10330: shrext_cmds='.so'
10331: hardcode_into_libs=yes
10332: dynamic_linker="$host_os dld.so"
10333: shlibpath_var=LD_LIBRARY_PATH
10334: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10335: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336: soname_spec='${libname}${release}${shared_ext}$major'
10337: if test "X$HPUX_IA64_MODE" = X32; then
10338: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10339: else
10340: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10341: fi
10342: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343: ;;
10344: hppa*64*)
10345: shrext_cmds='.sl'
10346: hardcode_into_libs=yes
10347: dynamic_linker="$host_os dld.sl"
10348: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10349: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10350: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351: soname_spec='${libname}${release}${shared_ext}$major'
10352: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10353: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10354: ;;
10355: *)
10356: shrext_cmds='.sl'
10357: dynamic_linker="$host_os dld.sl"
10358: shlibpath_var=SHLIB_PATH
10359: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10360: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361: soname_spec='${libname}${release}${shared_ext}$major'
10362: ;;
10363: esac
10364: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10365: postinstall_cmds='chmod 555 $lib'
10366: # or fails outright, so override atomically:
10367: install_override_mode=555
10368: ;;
10369:
10370: interix[3-9]*)
10371: version_type=linux # correct to gnu/linux during the next big refactor
10372: need_lib_prefix=no
10373: need_version=no
10374: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375: soname_spec='${libname}${release}${shared_ext}$major'
10376: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10377: shlibpath_var=LD_LIBRARY_PATH
10378: shlibpath_overrides_runpath=no
10379: hardcode_into_libs=yes
10380: ;;
10381:
10382: irix5* | irix6* | nonstopux*)
10383: case $host_os in
10384: nonstopux*) version_type=nonstopux ;;
10385: *)
10386: if test "$lt_cv_prog_gnu_ld" = yes; then
10387: version_type=linux # correct to gnu/linux during the next big refactor
10388: else
10389: version_type=irix
10390: fi ;;
10391: esac
10392: need_lib_prefix=no
10393: need_version=no
10394: soname_spec='${libname}${release}${shared_ext}$major'
10395: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10396: case $host_os in
10397: irix5* | nonstopux*)
10398: libsuff= shlibsuff=
10399: ;;
10400: *)
10401: case $LD in # libtool.m4 will add one of these switches to LD
10402: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10403: libsuff= shlibsuff= libmagic=32-bit;;
10404: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10405: libsuff=32 shlibsuff=N32 libmagic=N32;;
10406: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10407: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10408: *) libsuff= shlibsuff= libmagic=never-match;;
10409: esac
10410: ;;
10411: esac
10412: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10413: shlibpath_overrides_runpath=no
10414: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10415: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10416: hardcode_into_libs=yes
10417: ;;
10418:
10419: # No shared lib support for Linux oldld, aout, or coff.
10420: linux*oldld* | linux*aout* | linux*coff*)
10421: dynamic_linker=no
10422: ;;
10423:
10424: # This must be glibc/ELF.
10425: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10426: version_type=linux # correct to gnu/linux during the next big refactor
10427: need_lib_prefix=no
10428: need_version=no
10429: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430: soname_spec='${libname}${release}${shared_ext}$major'
10431: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10432: shlibpath_var=LD_LIBRARY_PATH
10433: shlibpath_overrides_runpath=no
10434:
10435: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 10436: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10437: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10438: else
10439: lt_cv_shlibpath_overrides_runpath=no
10440: save_LDFLAGS=$LDFLAGS
10441: save_libdir=$libdir
10442: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10443: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.11 moko 10444: cat >conftest.$ac_ext <<_ACEOF
10445: /* confdefs.h. */
10446: _ACEOF
10447: cat confdefs.h >>conftest.$ac_ext
10448: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10449: /* end confdefs.h. */
10450:
10451: int
10452: main ()
10453: {
10454:
10455: ;
10456: return 0;
10457: }
10458: _ACEOF
1.11 moko 10459: rm -f conftest.$ac_objext conftest$ac_exeext
10460: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10461: (eval $ac_link) 2>conftest.er1
10462: ac_status=$?
10463: grep -v '^ *+' conftest.er1 >conftest.err
10464: rm -f conftest.er1
10465: cat conftest.err >&5
10466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467: (exit $ac_status); } &&
10468: { ac_try='test -z "$ac_c_werror_flag"
10469: || test ! -s conftest.err'
10470: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471: (eval $ac_try) 2>&5
10472: ac_status=$?
10473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474: (exit $ac_status); }; } &&
10475: { ac_try='test -s conftest$ac_exeext'
10476: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477: (eval $ac_try) 2>&5
10478: ac_status=$?
10479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480: (exit $ac_status); }; }; then
10481: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 10482: lt_cv_shlibpath_overrides_runpath=yes
10483: fi
1.11 moko 10484:
10485: else
10486: echo "$as_me: failed program was:" >&5
10487: sed 's/^/| /' conftest.$ac_ext >&5
10488:
1.8 moko 10489: fi
1.11 moko 10490: rm -f conftest.err conftest.$ac_objext \
10491: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10492: LDFLAGS=$save_LDFLAGS
10493: libdir=$save_libdir
10494:
10495: fi
10496:
10497: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10498:
10499: # This implies no fast_install, which is unacceptable.
10500: # Some rework will be needed to allow for fast_install
10501: # before this can be enabled.
10502: hardcode_into_libs=yes
10503:
10504: # Append ld.so.conf contents to the search path
10505: if test -f /etc/ld.so.conf; then
10506: 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' ' '`
10507: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10508: fi
10509:
10510: # We used to test for /lib/ld.so.1 and disable shared libraries on
10511: # powerpc, because MkLinux only supported shared libraries with the
10512: # GNU dynamic linker. Since this was broken with cross compilers,
10513: # most powerpc-linux boxes support dynamic linking these days and
10514: # people can always --disable-shared, the test was removed, and we
10515: # assume the GNU/Linux dynamic linker is in use.
10516: dynamic_linker='GNU/Linux ld.so'
10517: ;;
10518:
10519: netbsd*)
10520: version_type=sunos
10521: need_lib_prefix=no
10522: need_version=no
10523: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10525: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10526: dynamic_linker='NetBSD (a.out) ld.so'
10527: else
10528: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10529: soname_spec='${libname}${release}${shared_ext}$major'
10530: dynamic_linker='NetBSD ld.elf_so'
10531: fi
10532: shlibpath_var=LD_LIBRARY_PATH
10533: shlibpath_overrides_runpath=yes
10534: hardcode_into_libs=yes
10535: ;;
10536:
10537: newsos6)
10538: version_type=linux # correct to gnu/linux during the next big refactor
10539: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540: shlibpath_var=LD_LIBRARY_PATH
10541: shlibpath_overrides_runpath=yes
10542: ;;
10543:
10544: *nto* | *qnx*)
10545: version_type=qnx
10546: need_lib_prefix=no
10547: need_version=no
10548: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549: soname_spec='${libname}${release}${shared_ext}$major'
10550: shlibpath_var=LD_LIBRARY_PATH
10551: shlibpath_overrides_runpath=no
10552: hardcode_into_libs=yes
10553: dynamic_linker='ldqnx.so'
10554: ;;
10555:
10556: openbsd*)
10557: version_type=sunos
10558: sys_lib_dlsearch_path_spec="/usr/lib"
10559: need_lib_prefix=no
10560: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10561: case $host_os in
10562: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10563: *) need_version=no ;;
10564: esac
10565: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10566: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10567: shlibpath_var=LD_LIBRARY_PATH
10568: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10569: case $host_os in
10570: openbsd2.[89] | openbsd2.[89].*)
10571: shlibpath_overrides_runpath=no
10572: ;;
10573: *)
10574: shlibpath_overrides_runpath=yes
10575: ;;
10576: esac
1.1 misha 10577: else
1.8 moko 10578: shlibpath_overrides_runpath=yes
10579: fi
10580: ;;
10581:
10582: os2*)
10583: libname_spec='$name'
10584: shrext_cmds=".dll"
10585: need_lib_prefix=no
10586: library_names_spec='$libname${shared_ext} $libname.a'
10587: dynamic_linker='OS/2 ld.exe'
10588: shlibpath_var=LIBPATH
10589: ;;
10590:
10591: osf3* | osf4* | osf5*)
10592: version_type=osf
10593: need_lib_prefix=no
10594: need_version=no
10595: soname_spec='${libname}${release}${shared_ext}$major'
10596: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597: shlibpath_var=LD_LIBRARY_PATH
10598: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10599: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10600: ;;
10601:
10602: rdos*)
10603: dynamic_linker=no
10604: ;;
10605:
10606: solaris*)
10607: version_type=linux # correct to gnu/linux during the next big refactor
10608: need_lib_prefix=no
10609: need_version=no
10610: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611: soname_spec='${libname}${release}${shared_ext}$major'
10612: shlibpath_var=LD_LIBRARY_PATH
10613: shlibpath_overrides_runpath=yes
10614: hardcode_into_libs=yes
10615: # ldd complains unless libraries are executable
10616: postinstall_cmds='chmod +x $lib'
10617: ;;
10618:
10619: sunos4*)
10620: version_type=sunos
10621: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10622: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10623: shlibpath_var=LD_LIBRARY_PATH
10624: shlibpath_overrides_runpath=yes
10625: if test "$with_gnu_ld" = yes; then
10626: need_lib_prefix=no
10627: fi
10628: need_version=yes
10629: ;;
10630:
10631: sysv4 | sysv4.3*)
10632: version_type=linux # correct to gnu/linux during the next big refactor
10633: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634: soname_spec='${libname}${release}${shared_ext}$major'
10635: shlibpath_var=LD_LIBRARY_PATH
10636: case $host_vendor in
10637: sni)
10638: shlibpath_overrides_runpath=no
10639: need_lib_prefix=no
10640: runpath_var=LD_RUN_PATH
10641: ;;
10642: siemens)
10643: need_lib_prefix=no
10644: ;;
10645: motorola)
10646: need_lib_prefix=no
10647: need_version=no
10648: shlibpath_overrides_runpath=no
10649: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10650: ;;
10651: esac
10652: ;;
10653:
10654: sysv4*MP*)
10655: if test -d /usr/nec ;then
10656: version_type=linux # correct to gnu/linux during the next big refactor
10657: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10658: soname_spec='$libname${shared_ext}.$major'
10659: shlibpath_var=LD_LIBRARY_PATH
10660: fi
10661: ;;
10662:
10663: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10664: version_type=freebsd-elf
10665: need_lib_prefix=no
10666: need_version=no
10667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10668: soname_spec='${libname}${release}${shared_ext}$major'
10669: shlibpath_var=LD_LIBRARY_PATH
10670: shlibpath_overrides_runpath=yes
10671: hardcode_into_libs=yes
10672: if test "$with_gnu_ld" = yes; then
10673: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10674: else
10675: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10676: case $host_os in
10677: sco3.2v5*)
10678: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10679: ;;
10680: esac
10681: fi
10682: sys_lib_dlsearch_path_spec='/usr/lib'
10683: ;;
10684:
10685: tpf*)
10686: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10687: version_type=linux # correct to gnu/linux during the next big refactor
10688: need_lib_prefix=no
10689: need_version=no
10690: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691: shlibpath_var=LD_LIBRARY_PATH
10692: shlibpath_overrides_runpath=no
10693: hardcode_into_libs=yes
10694: ;;
10695:
10696: uts4*)
10697: version_type=linux # correct to gnu/linux during the next big refactor
10698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699: soname_spec='${libname}${release}${shared_ext}$major'
10700: shlibpath_var=LD_LIBRARY_PATH
10701: ;;
10702:
10703: *)
10704: dynamic_linker=no
10705: ;;
10706: esac
1.11 moko 10707: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10708: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 10709: test "$dynamic_linker" = no && can_build_shared=no
10710:
10711: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10712: if test "$GCC" = yes; then
10713: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10714: fi
10715:
10716: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10717: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10718: fi
10719: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10720: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10721: fi
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:
10809:
10810:
10811:
10812:
10813:
1.11 moko 10814: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10815: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 10816: hardcode_action=
10817: if test -n "$hardcode_libdir_flag_spec" ||
10818: test -n "$runpath_var" ||
10819: test "X$hardcode_automatic" = "Xyes" ; then
10820:
10821: # We can hardcode non-existent directories.
10822: if test "$hardcode_direct" != no &&
10823: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10824: # have to relink, otherwise we might link with an installed library
10825: # when we should be linking with a yet-to-be-installed one
10826: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10827: test "$hardcode_minus_L" != no; then
10828: # Linking always hardcodes the temporary library directory.
10829: hardcode_action=relink
10830: else
10831: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10832: hardcode_action=immediate
10833: fi
10834: else
10835: # We cannot hardcode anything, or else we can only hardcode existing
10836: # directories.
10837: hardcode_action=unsupported
10838: fi
1.11 moko 10839: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10840: echo "${ECHO_T}$hardcode_action" >&6
1.8 moko 10841:
10842: if test "$hardcode_action" = relink ||
10843: test "$inherit_rpath" = yes; then
10844: # Fast installation is not supported
10845: enable_fast_install=no
10846: elif test "$shlibpath_overrides_runpath" = yes ||
10847: test "$enable_shared" = no; then
10848: # Fast installation is not necessary
10849: enable_fast_install=needless
10850: fi
10851:
10852:
10853:
10854:
10855:
10856:
10857: if test "x$enable_dlopen" != xyes; then
10858: enable_dlopen=unknown
10859: enable_dlopen_self=unknown
10860: enable_dlopen_self_static=unknown
10861: else
10862: lt_cv_dlopen=no
10863: lt_cv_dlopen_libs=
10864:
10865: case $host_os in
10866: beos*)
10867: lt_cv_dlopen="load_add_on"
10868: lt_cv_dlopen_libs=
10869: lt_cv_dlopen_self=yes
10870: ;;
10871:
10872: mingw* | pw32* | cegcc*)
10873: lt_cv_dlopen="LoadLibrary"
10874: lt_cv_dlopen_libs=
10875: ;;
10876:
10877: cygwin*)
10878: lt_cv_dlopen="dlopen"
10879: lt_cv_dlopen_libs=
10880: ;;
10881:
10882: darwin*)
10883: # if libdl is installed we need to link against it
1.11 moko 10884: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10885: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10886: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10887: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10888: else
10889: ac_check_lib_save_LIBS=$LIBS
10890: LIBS="-ldl $LIBS"
1.11 moko 10891: cat >conftest.$ac_ext <<_ACEOF
10892: /* confdefs.h. */
10893: _ACEOF
10894: cat confdefs.h >>conftest.$ac_ext
10895: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10896: /* end confdefs.h. */
10897:
1.11 moko 10898: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 10899: #ifdef __cplusplus
10900: extern "C"
10901: #endif
1.11 moko 10902: /* We use char because int might match the return type of a gcc2
10903: builtin and then its argument prototype would still apply. */
1.8 moko 10904: char dlopen ();
10905: int
10906: main ()
10907: {
1.11 moko 10908: dlopen ();
1.8 moko 10909: ;
10910: return 0;
10911: }
10912: _ACEOF
1.11 moko 10913: rm -f conftest.$ac_objext conftest$ac_exeext
10914: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915: (eval $ac_link) 2>conftest.er1
10916: ac_status=$?
10917: grep -v '^ *+' conftest.er1 >conftest.err
10918: rm -f conftest.er1
10919: cat conftest.err >&5
10920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921: (exit $ac_status); } &&
10922: { ac_try='test -z "$ac_c_werror_flag"
10923: || test ! -s conftest.err'
10924: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925: (eval $ac_try) 2>&5
10926: ac_status=$?
10927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928: (exit $ac_status); }; } &&
10929: { ac_try='test -s conftest$ac_exeext'
10930: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931: (eval $ac_try) 2>&5
10932: ac_status=$?
10933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934: (exit $ac_status); }; }; then
1.8 moko 10935: ac_cv_lib_dl_dlopen=yes
10936: else
1.11 moko 10937: echo "$as_me: failed program was:" >&5
10938: sed 's/^/| /' conftest.$ac_ext >&5
10939:
10940: ac_cv_lib_dl_dlopen=no
1.8 moko 10941: fi
1.11 moko 10942: rm -f conftest.err conftest.$ac_objext \
10943: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10944: LIBS=$ac_check_lib_save_LIBS
10945: fi
1.11 moko 10946: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10947: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10948: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 10949: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10950: else
10951:
10952: lt_cv_dlopen="dyld"
10953: lt_cv_dlopen_libs=
10954: lt_cv_dlopen_self=yes
10955:
10956: fi
10957:
10958: ;;
10959:
10960: *)
1.11 moko 10961: echo "$as_me:$LINENO: checking for shl_load" >&5
10962: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10963: if test "${ac_cv_func_shl_load+set}" = set; then
10964: echo $ECHO_N "(cached) $ECHO_C" >&6
10965: else
10966: cat >conftest.$ac_ext <<_ACEOF
10967: /* confdefs.h. */
10968: _ACEOF
10969: cat confdefs.h >>conftest.$ac_ext
10970: cat >>conftest.$ac_ext <<_ACEOF
10971: /* end confdefs.h. */
10972: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10973: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10974: #define shl_load innocuous_shl_load
10975:
10976: /* System header to define __stub macros and hopefully few prototypes,
10977: which can conflict with char shl_load (); below.
10978: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10979: <limits.h> exists even on freestanding compilers. */
10980:
10981: #ifdef __STDC__
10982: # include <limits.h>
10983: #else
10984: # include <assert.h>
10985: #endif
10986:
10987: #undef shl_load
10988:
10989: /* Override any gcc2 internal prototype to avoid an error. */
10990: #ifdef __cplusplus
10991: extern "C"
10992: {
10993: #endif
10994: /* We use char because int might match the return type of a gcc2
10995: builtin and then its argument prototype would still apply. */
10996: char shl_load ();
10997: /* The GNU C library defines this for functions which it implements
10998: to always fail with ENOSYS. Some functions are actually named
10999: something starting with __ and the normal name is an alias. */
11000: #if defined (__stub_shl_load) || defined (__stub___shl_load)
11001: choke me
11002: #else
11003: char (*f) () = shl_load;
11004: #endif
11005: #ifdef __cplusplus
11006: }
11007: #endif
11008:
11009: int
11010: main ()
11011: {
11012: return f != shl_load;
11013: ;
11014: return 0;
11015: }
11016: _ACEOF
11017: rm -f conftest.$ac_objext conftest$ac_exeext
11018: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11019: (eval $ac_link) 2>conftest.er1
11020: ac_status=$?
11021: grep -v '^ *+' conftest.er1 >conftest.err
11022: rm -f conftest.er1
11023: cat conftest.err >&5
11024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025: (exit $ac_status); } &&
11026: { ac_try='test -z "$ac_c_werror_flag"
11027: || test ! -s conftest.err'
11028: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029: (eval $ac_try) 2>&5
11030: ac_status=$?
11031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032: (exit $ac_status); }; } &&
11033: { ac_try='test -s conftest$ac_exeext'
11034: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035: (eval $ac_try) 2>&5
11036: ac_status=$?
11037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038: (exit $ac_status); }; }; then
11039: ac_cv_func_shl_load=yes
11040: else
11041: echo "$as_me: failed program was:" >&5
11042: sed 's/^/| /' conftest.$ac_ext >&5
11043:
11044: ac_cv_func_shl_load=no
11045: fi
11046: rm -f conftest.err conftest.$ac_objext \
11047: conftest$ac_exeext conftest.$ac_ext
11048: fi
11049: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11050: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11051: if test $ac_cv_func_shl_load = yes; then
1.8 moko 11052: lt_cv_dlopen="shl_load"
11053: else
1.11 moko 11054: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11055: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11056: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11057: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11058: else
11059: ac_check_lib_save_LIBS=$LIBS
11060: LIBS="-ldld $LIBS"
1.11 moko 11061: cat >conftest.$ac_ext <<_ACEOF
11062: /* confdefs.h. */
11063: _ACEOF
11064: cat confdefs.h >>conftest.$ac_ext
11065: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11066: /* end confdefs.h. */
11067:
1.11 moko 11068: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11069: #ifdef __cplusplus
11070: extern "C"
11071: #endif
1.11 moko 11072: /* We use char because int might match the return type of a gcc2
11073: builtin and then its argument prototype would still apply. */
1.8 moko 11074: char shl_load ();
11075: int
11076: main ()
11077: {
1.11 moko 11078: shl_load ();
1.8 moko 11079: ;
11080: return 0;
11081: }
11082: _ACEOF
1.11 moko 11083: rm -f conftest.$ac_objext conftest$ac_exeext
11084: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11085: (eval $ac_link) 2>conftest.er1
11086: ac_status=$?
11087: grep -v '^ *+' conftest.er1 >conftest.err
11088: rm -f conftest.er1
11089: cat conftest.err >&5
11090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091: (exit $ac_status); } &&
11092: { ac_try='test -z "$ac_c_werror_flag"
11093: || test ! -s conftest.err'
11094: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095: (eval $ac_try) 2>&5
11096: ac_status=$?
11097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098: (exit $ac_status); }; } &&
11099: { ac_try='test -s conftest$ac_exeext'
11100: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101: (eval $ac_try) 2>&5
11102: ac_status=$?
11103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104: (exit $ac_status); }; }; then
1.8 moko 11105: ac_cv_lib_dld_shl_load=yes
11106: else
1.11 moko 11107: echo "$as_me: failed program was:" >&5
11108: sed 's/^/| /' conftest.$ac_ext >&5
11109:
11110: ac_cv_lib_dld_shl_load=no
1.8 moko 11111: fi
1.11 moko 11112: rm -f conftest.err conftest.$ac_objext \
11113: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11114: LIBS=$ac_check_lib_save_LIBS
11115: fi
1.11 moko 11116: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11117: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11118: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 11119: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11120: else
1.11 moko 11121: echo "$as_me:$LINENO: checking for dlopen" >&5
11122: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11123: if test "${ac_cv_func_dlopen+set}" = set; then
11124: echo $ECHO_N "(cached) $ECHO_C" >&6
11125: else
11126: cat >conftest.$ac_ext <<_ACEOF
11127: /* confdefs.h. */
11128: _ACEOF
11129: cat confdefs.h >>conftest.$ac_ext
11130: cat >>conftest.$ac_ext <<_ACEOF
11131: /* end confdefs.h. */
11132: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11133: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11134: #define dlopen innocuous_dlopen
11135:
11136: /* System header to define __stub macros and hopefully few prototypes,
11137: which can conflict with char dlopen (); below.
11138: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11139: <limits.h> exists even on freestanding compilers. */
11140:
11141: #ifdef __STDC__
11142: # include <limits.h>
11143: #else
11144: # include <assert.h>
11145: #endif
11146:
11147: #undef dlopen
11148:
11149: /* Override any gcc2 internal prototype to avoid an error. */
11150: #ifdef __cplusplus
11151: extern "C"
11152: {
11153: #endif
11154: /* We use char because int might match the return type of a gcc2
11155: builtin and then its argument prototype would still apply. */
11156: char dlopen ();
11157: /* The GNU C library defines this for functions which it implements
11158: to always fail with ENOSYS. Some functions are actually named
11159: something starting with __ and the normal name is an alias. */
11160: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11161: choke me
11162: #else
11163: char (*f) () = dlopen;
11164: #endif
11165: #ifdef __cplusplus
11166: }
11167: #endif
11168:
11169: int
11170: main ()
11171: {
11172: return f != dlopen;
11173: ;
11174: return 0;
11175: }
11176: _ACEOF
11177: rm -f conftest.$ac_objext conftest$ac_exeext
11178: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179: (eval $ac_link) 2>conftest.er1
11180: ac_status=$?
11181: grep -v '^ *+' conftest.er1 >conftest.err
11182: rm -f conftest.er1
11183: cat conftest.err >&5
11184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185: (exit $ac_status); } &&
11186: { ac_try='test -z "$ac_c_werror_flag"
11187: || test ! -s conftest.err'
11188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189: (eval $ac_try) 2>&5
11190: ac_status=$?
11191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192: (exit $ac_status); }; } &&
11193: { ac_try='test -s conftest$ac_exeext'
11194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195: (eval $ac_try) 2>&5
11196: ac_status=$?
11197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198: (exit $ac_status); }; }; then
11199: ac_cv_func_dlopen=yes
11200: else
11201: echo "$as_me: failed program was:" >&5
11202: sed 's/^/| /' conftest.$ac_ext >&5
11203:
11204: ac_cv_func_dlopen=no
11205: fi
11206: rm -f conftest.err conftest.$ac_objext \
11207: conftest$ac_exeext conftest.$ac_ext
11208: fi
11209: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11210: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11211: if test $ac_cv_func_dlopen = yes; then
1.8 moko 11212: lt_cv_dlopen="dlopen"
11213: else
1.11 moko 11214: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11215: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11216: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11217: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11218: else
11219: ac_check_lib_save_LIBS=$LIBS
11220: LIBS="-ldl $LIBS"
1.11 moko 11221: cat >conftest.$ac_ext <<_ACEOF
11222: /* confdefs.h. */
11223: _ACEOF
11224: cat confdefs.h >>conftest.$ac_ext
11225: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11226: /* end confdefs.h. */
11227:
1.11 moko 11228: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11229: #ifdef __cplusplus
11230: extern "C"
11231: #endif
1.11 moko 11232: /* We use char because int might match the return type of a gcc2
11233: builtin and then its argument prototype would still apply. */
1.8 moko 11234: char dlopen ();
11235: int
11236: main ()
11237: {
1.11 moko 11238: dlopen ();
1.8 moko 11239: ;
11240: return 0;
11241: }
11242: _ACEOF
1.11 moko 11243: rm -f conftest.$ac_objext conftest$ac_exeext
11244: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245: (eval $ac_link) 2>conftest.er1
11246: ac_status=$?
11247: grep -v '^ *+' conftest.er1 >conftest.err
11248: rm -f conftest.er1
11249: cat conftest.err >&5
11250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251: (exit $ac_status); } &&
11252: { ac_try='test -z "$ac_c_werror_flag"
11253: || test ! -s conftest.err'
11254: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255: (eval $ac_try) 2>&5
11256: ac_status=$?
11257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258: (exit $ac_status); }; } &&
11259: { ac_try='test -s conftest$ac_exeext'
11260: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261: (eval $ac_try) 2>&5
11262: ac_status=$?
11263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264: (exit $ac_status); }; }; then
1.8 moko 11265: ac_cv_lib_dl_dlopen=yes
11266: else
1.11 moko 11267: echo "$as_me: failed program was:" >&5
11268: sed 's/^/| /' conftest.$ac_ext >&5
11269:
11270: ac_cv_lib_dl_dlopen=no
1.8 moko 11271: fi
1.11 moko 11272: rm -f conftest.err conftest.$ac_objext \
11273: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11274: LIBS=$ac_check_lib_save_LIBS
11275: fi
1.11 moko 11276: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11277: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11278: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 11279: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11280: else
1.11 moko 11281: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11282: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11283: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11284: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11285: else
11286: ac_check_lib_save_LIBS=$LIBS
11287: LIBS="-lsvld $LIBS"
1.11 moko 11288: cat >conftest.$ac_ext <<_ACEOF
11289: /* confdefs.h. */
11290: _ACEOF
11291: cat confdefs.h >>conftest.$ac_ext
11292: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11293: /* end confdefs.h. */
11294:
1.11 moko 11295: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11296: #ifdef __cplusplus
11297: extern "C"
11298: #endif
1.11 moko 11299: /* We use char because int might match the return type of a gcc2
11300: builtin and then its argument prototype would still apply. */
1.8 moko 11301: char dlopen ();
11302: int
11303: main ()
11304: {
1.11 moko 11305: dlopen ();
1.8 moko 11306: ;
11307: return 0;
11308: }
11309: _ACEOF
1.11 moko 11310: rm -f conftest.$ac_objext conftest$ac_exeext
11311: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11312: (eval $ac_link) 2>conftest.er1
11313: ac_status=$?
11314: grep -v '^ *+' conftest.er1 >conftest.err
11315: rm -f conftest.er1
11316: cat conftest.err >&5
11317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318: (exit $ac_status); } &&
11319: { ac_try='test -z "$ac_c_werror_flag"
11320: || test ! -s conftest.err'
11321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322: (eval $ac_try) 2>&5
11323: ac_status=$?
11324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325: (exit $ac_status); }; } &&
11326: { ac_try='test -s conftest$ac_exeext'
11327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328: (eval $ac_try) 2>&5
11329: ac_status=$?
11330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331: (exit $ac_status); }; }; then
1.8 moko 11332: ac_cv_lib_svld_dlopen=yes
11333: else
1.11 moko 11334: echo "$as_me: failed program was:" >&5
11335: sed 's/^/| /' conftest.$ac_ext >&5
11336:
11337: ac_cv_lib_svld_dlopen=no
1.8 moko 11338: fi
1.11 moko 11339: rm -f conftest.err conftest.$ac_objext \
11340: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11341: LIBS=$ac_check_lib_save_LIBS
11342: fi
1.11 moko 11343: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11344: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11345: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 11346: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11347: else
1.11 moko 11348: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11349: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11350: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11351: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11352: else
11353: ac_check_lib_save_LIBS=$LIBS
11354: LIBS="-ldld $LIBS"
1.11 moko 11355: cat >conftest.$ac_ext <<_ACEOF
11356: /* confdefs.h. */
11357: _ACEOF
11358: cat confdefs.h >>conftest.$ac_ext
11359: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11360: /* end confdefs.h. */
11361:
1.11 moko 11362: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11363: #ifdef __cplusplus
11364: extern "C"
11365: #endif
1.11 moko 11366: /* We use char because int might match the return type of a gcc2
11367: builtin and then its argument prototype would still apply. */
1.8 moko 11368: char dld_link ();
11369: int
11370: main ()
11371: {
1.11 moko 11372: dld_link ();
1.8 moko 11373: ;
11374: return 0;
11375: }
11376: _ACEOF
1.11 moko 11377: rm -f conftest.$ac_objext conftest$ac_exeext
11378: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11379: (eval $ac_link) 2>conftest.er1
11380: ac_status=$?
11381: grep -v '^ *+' conftest.er1 >conftest.err
11382: rm -f conftest.er1
11383: cat conftest.err >&5
11384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385: (exit $ac_status); } &&
11386: { ac_try='test -z "$ac_c_werror_flag"
11387: || test ! -s conftest.err'
11388: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389: (eval $ac_try) 2>&5
11390: ac_status=$?
11391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392: (exit $ac_status); }; } &&
11393: { ac_try='test -s conftest$ac_exeext'
11394: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395: (eval $ac_try) 2>&5
11396: ac_status=$?
11397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398: (exit $ac_status); }; }; then
1.8 moko 11399: ac_cv_lib_dld_dld_link=yes
11400: else
1.11 moko 11401: echo "$as_me: failed program was:" >&5
11402: sed 's/^/| /' conftest.$ac_ext >&5
11403:
11404: ac_cv_lib_dld_dld_link=no
1.8 moko 11405: fi
1.11 moko 11406: rm -f conftest.err conftest.$ac_objext \
11407: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11408: LIBS=$ac_check_lib_save_LIBS
11409: fi
1.11 moko 11410: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11411: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11412: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 11413: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11414: fi
11415:
11416:
11417: fi
11418:
11419:
11420: fi
11421:
11422:
11423: fi
11424:
11425:
11426: fi
11427:
11428:
11429: fi
11430:
11431: ;;
11432: esac
11433:
11434: if test "x$lt_cv_dlopen" != xno; then
11435: enable_dlopen=yes
11436: else
11437: enable_dlopen=no
11438: fi
11439:
11440: case $lt_cv_dlopen in
11441: dlopen)
11442: save_CPPFLAGS="$CPPFLAGS"
11443: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11444:
11445: save_LDFLAGS="$LDFLAGS"
11446: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11447:
11448: save_LIBS="$LIBS"
11449: LIBS="$lt_cv_dlopen_libs $LIBS"
11450:
1.11 moko 11451: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11452: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11453: if test "${lt_cv_dlopen_self+set}" = set; then
11454: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11455: else
11456: if test "$cross_compiling" = yes; then :
11457: lt_cv_dlopen_self=cross
11458: else
11459: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11460: lt_status=$lt_dlunknown
11461: cat > conftest.$ac_ext <<_LT_EOF
11462: #line $LINENO "configure"
11463: #include "confdefs.h"
11464:
11465: #if HAVE_DLFCN_H
11466: #include <dlfcn.h>
11467: #endif
11468:
11469: #include <stdio.h>
11470:
11471: #ifdef RTLD_GLOBAL
11472: # define LT_DLGLOBAL RTLD_GLOBAL
11473: #else
11474: # ifdef DL_GLOBAL
11475: # define LT_DLGLOBAL DL_GLOBAL
11476: # else
11477: # define LT_DLGLOBAL 0
11478: # endif
11479: #endif
11480:
11481: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11482: find out it does not work in some platform. */
11483: #ifndef LT_DLLAZY_OR_NOW
11484: # ifdef RTLD_LAZY
11485: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11486: # else
11487: # ifdef DL_LAZY
11488: # define LT_DLLAZY_OR_NOW DL_LAZY
11489: # else
11490: # ifdef RTLD_NOW
11491: # define LT_DLLAZY_OR_NOW RTLD_NOW
11492: # else
11493: # ifdef DL_NOW
11494: # define LT_DLLAZY_OR_NOW DL_NOW
11495: # else
11496: # define LT_DLLAZY_OR_NOW 0
11497: # endif
11498: # endif
11499: # endif
11500: # endif
11501: #endif
11502:
11503: /* When -fvisbility=hidden is used, assume the code has been annotated
11504: correspondingly for the symbols needed. */
11505: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11506: int fnord () __attribute__((visibility("default")));
11507: #endif
11508:
11509: int fnord () { return 42; }
11510: int main ()
11511: {
11512: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11513: int status = $lt_dlunknown;
11514:
11515: if (self)
11516: {
11517: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11518: else
11519: {
11520: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11521: else puts (dlerror ());
11522: }
11523: /* dlclose (self); */
11524: }
11525: else
11526: puts (dlerror ());
11527:
11528: return status;
11529: }
11530: _LT_EOF
1.11 moko 11531: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11532: (eval $ac_link) 2>&5
11533: ac_status=$?
1.11 moko 11534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11536: (./conftest; exit; ) >&5 2>/dev/null
11537: lt_status=$?
11538: case x$lt_status in
11539: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11540: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11541: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11542: esac
11543: else :
11544: # compilation failed
11545: lt_cv_dlopen_self=no
11546: fi
11547: fi
11548: rm -fr conftest*
11549:
11550:
11551: fi
1.11 moko 11552: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11553: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.8 moko 11554:
11555: if test "x$lt_cv_dlopen_self" = xyes; then
11556: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.11 moko 11557: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11558: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11559: if test "${lt_cv_dlopen_self_static+set}" = set; then
11560: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11561: else
11562: if test "$cross_compiling" = yes; then :
11563: lt_cv_dlopen_self_static=cross
11564: else
11565: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11566: lt_status=$lt_dlunknown
11567: cat > conftest.$ac_ext <<_LT_EOF
11568: #line $LINENO "configure"
11569: #include "confdefs.h"
11570:
11571: #if HAVE_DLFCN_H
11572: #include <dlfcn.h>
11573: #endif
11574:
11575: #include <stdio.h>
11576:
11577: #ifdef RTLD_GLOBAL
11578: # define LT_DLGLOBAL RTLD_GLOBAL
11579: #else
11580: # ifdef DL_GLOBAL
11581: # define LT_DLGLOBAL DL_GLOBAL
11582: # else
11583: # define LT_DLGLOBAL 0
11584: # endif
11585: #endif
11586:
11587: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11588: find out it does not work in some platform. */
11589: #ifndef LT_DLLAZY_OR_NOW
11590: # ifdef RTLD_LAZY
11591: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11592: # else
11593: # ifdef DL_LAZY
11594: # define LT_DLLAZY_OR_NOW DL_LAZY
11595: # else
11596: # ifdef RTLD_NOW
11597: # define LT_DLLAZY_OR_NOW RTLD_NOW
11598: # else
11599: # ifdef DL_NOW
11600: # define LT_DLLAZY_OR_NOW DL_NOW
11601: # else
11602: # define LT_DLLAZY_OR_NOW 0
11603: # endif
11604: # endif
11605: # endif
11606: # endif
11607: #endif
11608:
11609: /* When -fvisbility=hidden is used, assume the code has been annotated
11610: correspondingly for the symbols needed. */
11611: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11612: int fnord () __attribute__((visibility("default")));
11613: #endif
11614:
11615: int fnord () { return 42; }
11616: int main ()
11617: {
11618: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11619: int status = $lt_dlunknown;
11620:
11621: if (self)
11622: {
11623: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11624: else
11625: {
11626: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11627: else puts (dlerror ());
11628: }
11629: /* dlclose (self); */
11630: }
11631: else
11632: puts (dlerror ());
11633:
11634: return status;
11635: }
11636: _LT_EOF
1.11 moko 11637: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11638: (eval $ac_link) 2>&5
11639: ac_status=$?
1.11 moko 11640: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11642: (./conftest; exit; ) >&5 2>/dev/null
11643: lt_status=$?
11644: case x$lt_status in
11645: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11646: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11647: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11648: esac
11649: else :
11650: # compilation failed
11651: lt_cv_dlopen_self_static=no
11652: fi
11653: fi
11654: rm -fr conftest*
11655:
11656:
11657: fi
1.11 moko 11658: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11659: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.8 moko 11660: fi
11661:
11662: CPPFLAGS="$save_CPPFLAGS"
11663: LDFLAGS="$save_LDFLAGS"
11664: LIBS="$save_LIBS"
11665: ;;
11666: esac
11667:
11668: case $lt_cv_dlopen_self in
11669: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11670: *) enable_dlopen_self=unknown ;;
11671: esac
11672:
11673: case $lt_cv_dlopen_self_static in
11674: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11675: *) enable_dlopen_self_static=unknown ;;
11676: esac
11677: fi
11678:
11679:
11680:
11681:
11682:
11683:
11684:
11685:
11686:
11687:
11688:
11689:
11690:
11691:
11692:
11693:
11694:
11695: striplib=
11696: old_striplib=
1.11 moko 11697: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11698: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.8 moko 11699: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11700: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11701: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.11 moko 11702: echo "$as_me:$LINENO: result: yes" >&5
11703: echo "${ECHO_T}yes" >&6
1.8 moko 11704: else
11705: # FIXME - insert some real tests, host_os isn't really good enough
11706: case $host_os in
11707: darwin*)
11708: if test -n "$STRIP" ; then
11709: striplib="$STRIP -x"
11710: old_striplib="$STRIP -S"
1.11 moko 11711: echo "$as_me:$LINENO: result: yes" >&5
11712: echo "${ECHO_T}yes" >&6
1.8 moko 11713: else
1.11 moko 11714: echo "$as_me:$LINENO: result: no" >&5
11715: echo "${ECHO_T}no" >&6
1.8 moko 11716: fi
11717: ;;
11718: *)
1.11 moko 11719: echo "$as_me:$LINENO: result: no" >&5
11720: echo "${ECHO_T}no" >&6
1.8 moko 11721: ;;
11722: esac
11723: fi
11724:
11725:
11726:
11727:
11728:
11729:
11730:
11731:
11732:
11733:
11734:
11735:
11736: # Report which library types will actually be built
1.11 moko 11737: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11738: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11739: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11740: echo "${ECHO_T}$can_build_shared" >&6
1.8 moko 11741:
1.11 moko 11742: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11743: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1.8 moko 11744: test "$can_build_shared" = "no" && enable_shared=no
11745:
11746: # On AIX, shared libraries and static libraries use the same namespace, and
11747: # are all built from PIC.
11748: case $host_os in
11749: aix3*)
11750: test "$enable_shared" = yes && enable_static=no
11751: if test -n "$RANLIB"; then
11752: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11753: postinstall_cmds='$RANLIB $lib'
11754: fi
11755: ;;
11756:
11757: aix[4-9]*)
11758: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11759: test "$enable_shared" = yes && enable_static=no
11760: fi
11761: ;;
11762: esac
1.11 moko 11763: echo "$as_me:$LINENO: result: $enable_shared" >&5
11764: echo "${ECHO_T}$enable_shared" >&6
1.8 moko 11765:
1.11 moko 11766: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11767: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1.8 moko 11768: # Make sure either enable_shared or enable_static is yes.
11769: test "$enable_shared" = yes || enable_static=yes
1.11 moko 11770: echo "$as_me:$LINENO: result: $enable_static" >&5
11771: echo "${ECHO_T}$enable_static" >&6
1.8 moko 11772:
11773:
11774:
11775:
11776: fi
11777: ac_ext=c
11778: ac_cpp='$CPP $CPPFLAGS'
11779: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11780: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11781: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11782:
11783: CC="$lt_save_CC"
11784:
11785: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11786: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11787: (test "X$CXX" != "Xg++"))) ; then
1.11 moko 11788: ac_ext=cc
1.8 moko 11789: ac_cpp='$CXXCPP $CPPFLAGS'
11790: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 11793: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11794: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.8 moko 11795: if test -z "$CXXCPP"; then
1.11 moko 11796: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11797: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11798: else
11799: # Double quotes because CXXCPP needs to be expanded
11800: for CXXCPP in "$CXX -E" "/lib/cpp"
11801: do
11802: ac_preproc_ok=false
11803: for ac_cxx_preproc_warn_flag in '' yes
11804: do
11805: # Use a header file that comes with gcc, so configuring glibc
11806: # with a fresh cross-compiler works.
11807: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11808: # <limits.h> exists even on freestanding compilers.
11809: # On the NeXT, cc -E runs the code through the compiler's parser,
11810: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11811: cat >conftest.$ac_ext <<_ACEOF
11812: /* confdefs.h. */
11813: _ACEOF
11814: cat confdefs.h >>conftest.$ac_ext
11815: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11816: /* end confdefs.h. */
11817: #ifdef __STDC__
11818: # include <limits.h>
11819: #else
11820: # include <assert.h>
11821: #endif
11822: Syntax error
11823: _ACEOF
1.11 moko 11824: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11825: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11826: ac_status=$?
11827: grep -v '^ *+' conftest.er1 >conftest.err
11828: rm -f conftest.er1
11829: cat conftest.err >&5
11830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831: (exit $ac_status); } >/dev/null; then
11832: if test -s conftest.err; then
11833: ac_cpp_err=$ac_cxx_preproc_warn_flag
11834: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11835: else
11836: ac_cpp_err=
11837: fi
11838: else
11839: ac_cpp_err=yes
11840: fi
11841: if test -z "$ac_cpp_err"; then
11842: :
11843: else
11844: echo "$as_me: failed program was:" >&5
11845: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11846:
1.8 moko 11847: # Broken: fails on valid input.
11848: continue
11849: fi
1.11 moko 11850: rm -f conftest.err conftest.$ac_ext
1.8 moko 11851:
1.11 moko 11852: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11853: # can be detected and how.
1.11 moko 11854: cat >conftest.$ac_ext <<_ACEOF
11855: /* confdefs.h. */
11856: _ACEOF
11857: cat confdefs.h >>conftest.$ac_ext
11858: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11859: /* end confdefs.h. */
11860: #include <ac_nonexistent.h>
11861: _ACEOF
1.11 moko 11862: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11863: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864: ac_status=$?
11865: grep -v '^ *+' conftest.er1 >conftest.err
11866: rm -f conftest.er1
11867: cat conftest.err >&5
11868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869: (exit $ac_status); } >/dev/null; then
11870: if test -s conftest.err; then
11871: ac_cpp_err=$ac_cxx_preproc_warn_flag
11872: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11873: else
11874: ac_cpp_err=
11875: fi
11876: else
11877: ac_cpp_err=yes
11878: fi
11879: if test -z "$ac_cpp_err"; then
1.8 moko 11880: # Broken: success on invalid input.
11881: continue
11882: else
1.11 moko 11883: echo "$as_me: failed program was:" >&5
11884: sed 's/^/| /' conftest.$ac_ext >&5
11885:
1.8 moko 11886: # Passes both tests.
11887: ac_preproc_ok=:
11888: break
11889: fi
1.11 moko 11890: rm -f conftest.err conftest.$ac_ext
1.8 moko 11891:
11892: done
11893: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 11894: rm -f conftest.err conftest.$ac_ext
11895: if $ac_preproc_ok; then
1.8 moko 11896: break
11897: fi
11898:
11899: done
11900: ac_cv_prog_CXXCPP=$CXXCPP
11901:
11902: fi
11903: CXXCPP=$ac_cv_prog_CXXCPP
11904: else
11905: ac_cv_prog_CXXCPP=$CXXCPP
11906: fi
1.11 moko 11907: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11908: echo "${ECHO_T}$CXXCPP" >&6
1.8 moko 11909: ac_preproc_ok=false
11910: for ac_cxx_preproc_warn_flag in '' yes
11911: do
11912: # Use a header file that comes with gcc, so configuring glibc
11913: # with a fresh cross-compiler works.
11914: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915: # <limits.h> exists even on freestanding compilers.
11916: # On the NeXT, cc -E runs the code through the compiler's parser,
11917: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11918: cat >conftest.$ac_ext <<_ACEOF
11919: /* confdefs.h. */
11920: _ACEOF
11921: cat confdefs.h >>conftest.$ac_ext
11922: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11923: /* end confdefs.h. */
11924: #ifdef __STDC__
11925: # include <limits.h>
11926: #else
11927: # include <assert.h>
11928: #endif
11929: Syntax error
11930: _ACEOF
1.11 moko 11931: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11932: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11933: ac_status=$?
11934: grep -v '^ *+' conftest.er1 >conftest.err
11935: rm -f conftest.er1
11936: cat conftest.err >&5
11937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938: (exit $ac_status); } >/dev/null; then
11939: if test -s conftest.err; then
11940: ac_cpp_err=$ac_cxx_preproc_warn_flag
11941: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11942: else
11943: ac_cpp_err=
11944: fi
11945: else
11946: ac_cpp_err=yes
11947: fi
11948: if test -z "$ac_cpp_err"; then
11949: :
11950: else
11951: echo "$as_me: failed program was:" >&5
11952: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11953:
11954: # Broken: fails on valid input.
1.8 moko 11955: continue
11956: fi
1.11 moko 11957: rm -f conftest.err conftest.$ac_ext
1.8 moko 11958:
1.11 moko 11959: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11960: # can be detected and how.
1.11 moko 11961: cat >conftest.$ac_ext <<_ACEOF
11962: /* confdefs.h. */
11963: _ACEOF
11964: cat confdefs.h >>conftest.$ac_ext
11965: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11966: /* end confdefs.h. */
11967: #include <ac_nonexistent.h>
11968: _ACEOF
1.11 moko 11969: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11970: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11971: ac_status=$?
11972: grep -v '^ *+' conftest.er1 >conftest.err
11973: rm -f conftest.er1
11974: cat conftest.err >&5
11975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976: (exit $ac_status); } >/dev/null; then
11977: if test -s conftest.err; then
11978: ac_cpp_err=$ac_cxx_preproc_warn_flag
11979: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11980: else
11981: ac_cpp_err=
11982: fi
11983: else
11984: ac_cpp_err=yes
11985: fi
11986: if test -z "$ac_cpp_err"; then
1.8 moko 11987: # Broken: success on invalid input.
11988: continue
11989: else
1.11 moko 11990: echo "$as_me: failed program was:" >&5
11991: sed 's/^/| /' conftest.$ac_ext >&5
11992:
1.8 moko 11993: # Passes both tests.
11994: ac_preproc_ok=:
11995: break
11996: fi
1.11 moko 11997: rm -f conftest.err conftest.$ac_ext
1.8 moko 11998:
11999: done
12000: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 12001: rm -f conftest.err conftest.$ac_ext
12002: if $ac_preproc_ok; then
12003: :
1.8 moko 12004: else
1.11 moko 12005: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12006: See \`config.log' for more details." >&5
12007: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12008: See \`config.log' for more details." >&2;}
12009: { (exit 1); exit 1; }; }
1.8 moko 12010: fi
12011:
12012: ac_ext=c
12013: ac_cpp='$CPP $CPPFLAGS'
12014: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017:
12018: else
12019: _lt_caught_CXX_error=yes
12020: fi
12021:
1.11 moko 12022: ac_ext=cc
1.8 moko 12023: ac_cpp='$CXXCPP $CPPFLAGS'
12024: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12025: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12026: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12027:
12028: archive_cmds_need_lc_CXX=no
12029: allow_undefined_flag_CXX=
12030: always_export_symbols_CXX=no
12031: archive_expsym_cmds_CXX=
12032: compiler_needs_object_CXX=no
12033: export_dynamic_flag_spec_CXX=
12034: hardcode_direct_CXX=no
12035: hardcode_direct_absolute_CXX=no
12036: hardcode_libdir_flag_spec_CXX=
12037: hardcode_libdir_separator_CXX=
12038: hardcode_minus_L_CXX=no
12039: hardcode_shlibpath_var_CXX=unsupported
12040: hardcode_automatic_CXX=no
12041: inherit_rpath_CXX=no
12042: module_cmds_CXX=
12043: module_expsym_cmds_CXX=
12044: link_all_deplibs_CXX=unknown
12045: old_archive_cmds_CXX=$old_archive_cmds
12046: reload_flag_CXX=$reload_flag
12047: reload_cmds_CXX=$reload_cmds
12048: no_undefined_flag_CXX=
12049: whole_archive_flag_spec_CXX=
12050: enable_shared_with_static_runtimes_CXX=no
12051:
12052: # Source file extension for C++ test sources.
12053: ac_ext=cpp
12054:
12055: # Object file extension for compiled C++ test sources.
12056: objext=o
12057: objext_CXX=$objext
12058:
12059: # No sense in running all these tests if we already determined that
12060: # the CXX compiler isn't working. Some variables (like enable_shared)
12061: # are currently assumed to apply to all compilers on this platform,
12062: # and will be corrupted by setting them based on a non-working compiler.
12063: if test "$_lt_caught_CXX_error" != yes; then
12064: # Code to be used in simple compile tests
12065: lt_simple_compile_test_code="int some_variable = 0;"
12066:
12067: # Code to be used in simple link tests
12068: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12069:
12070: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12071:
12072:
12073:
12074:
12075:
12076:
12077: # If no C compiler was specified, use CC.
12078: LTCC=${LTCC-"$CC"}
12079:
12080: # If no C compiler flags were specified, use CFLAGS.
12081: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12082:
12083: # Allow CC to be a program name with arguments.
12084: compiler=$CC
12085:
12086:
12087: # save warnings/boilerplate of simple test code
12088: ac_outfile=conftest.$ac_objext
12089: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12090: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12091: _lt_compiler_boilerplate=`cat conftest.err`
12092: $RM conftest*
12093:
12094: ac_outfile=conftest.$ac_objext
12095: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12096: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12097: _lt_linker_boilerplate=`cat conftest.err`
12098: $RM -r conftest*
12099:
12100:
12101: # Allow CC to be a program name with arguments.
12102: lt_save_CC=$CC
12103: lt_save_CFLAGS=$CFLAGS
12104: lt_save_LD=$LD
12105: lt_save_GCC=$GCC
12106: GCC=$GXX
12107: lt_save_with_gnu_ld=$with_gnu_ld
12108: lt_save_path_LD=$lt_cv_path_LD
12109: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12110: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12111: else
12112: $as_unset lt_cv_prog_gnu_ld
12113: fi
12114: if test -n "${lt_cv_path_LDCXX+set}"; then
12115: lt_cv_path_LD=$lt_cv_path_LDCXX
12116: else
12117: $as_unset lt_cv_path_LD
12118: fi
12119: test -z "${LDCXX+set}" || LD=$LDCXX
12120: CC=${CXX-"c++"}
12121: CFLAGS=$CXXFLAGS
12122: compiler=$CC
12123: compiler_CXX=$CC
12124: for cc_temp in $compiler""; do
12125: case $cc_temp in
12126: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12127: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12128: \-*) ;;
12129: *) break;;
12130: esac
12131: done
12132: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12133:
12134:
12135: if test -n "$compiler"; then
12136: # We don't want -fno-exception when compiling C++ code, so set the
12137: # no_builtin_flag separately
12138: if test "$GXX" = yes; then
12139: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12140: else
12141: lt_prog_compiler_no_builtin_flag_CXX=
12142: fi
12143:
12144: if test "$GXX" = yes; then
12145: # Set up default GNU C++ configuration
12146:
12147:
12148:
1.11 moko 12149: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12150: if test "${with_gnu_ld+set}" = set; then
12151: withval="$with_gnu_ld"
12152: test "$withval" = no || with_gnu_ld=yes
1.8 moko 12153: else
12154: with_gnu_ld=no
1.11 moko 12155: fi;
1.8 moko 12156: ac_prog=ld
12157: if test "$GCC" = yes; then
12158: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 12159: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12160: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 12161: case $host in
12162: *-*-mingw*)
12163: # gcc leaves a trailing carriage return which upsets mingw
12164: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12165: *)
12166: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12167: esac
12168: case $ac_prog in
12169: # Accept absolute paths.
12170: [\\/]* | ?:[\\/]*)
12171: re_direlt='/[^/][^/]*/\.\./'
12172: # Canonicalize the pathname of ld
12173: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12174: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12175: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12176: done
12177: test -z "$LD" && LD="$ac_prog"
12178: ;;
12179: "")
12180: # If it fails, then pretend we aren't using GCC.
12181: ac_prog=ld
12182: ;;
12183: *)
12184: # If it is relative, then search for the first ld in PATH.
12185: with_gnu_ld=unknown
12186: ;;
12187: esac
12188: elif test "$with_gnu_ld" = yes; then
1.11 moko 12189: echo "$as_me:$LINENO: checking for GNU ld" >&5
12190: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 12191: else
1.11 moko 12192: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12193: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 12194: fi
1.11 moko 12195: if test "${lt_cv_path_LD+set}" = set; then
12196: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12197: else
12198: if test -z "$LD"; then
12199: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12200: for ac_dir in $PATH; do
12201: IFS="$lt_save_ifs"
12202: test -z "$ac_dir" && ac_dir=.
12203: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12204: lt_cv_path_LD="$ac_dir/$ac_prog"
12205: # Check to see if the program is GNU ld. I'd rather use --version,
12206: # but apparently some variants of GNU ld only accept -v.
12207: # Break only if it was the GNU/non-GNU ld that we prefer.
12208: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12209: *GNU* | *'with BFD'*)
12210: test "$with_gnu_ld" != no && break
12211: ;;
12212: *)
12213: test "$with_gnu_ld" != yes && break
12214: ;;
12215: esac
12216: fi
12217: done
12218: IFS="$lt_save_ifs"
12219: else
12220: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12221: fi
12222: fi
12223:
12224: LD="$lt_cv_path_LD"
12225: if test -n "$LD"; then
1.11 moko 12226: echo "$as_me:$LINENO: result: $LD" >&5
12227: echo "${ECHO_T}$LD" >&6
1.8 moko 12228: else
1.11 moko 12229: echo "$as_me:$LINENO: result: no" >&5
12230: echo "${ECHO_T}no" >&6
1.8 moko 12231: fi
1.11 moko 12232: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12233: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12234: { (exit 1); exit 1; }; }
12235: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12236: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12237: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12238: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12239: else
12240: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12241: case `$LD -v 2>&1 </dev/null` in
12242: *GNU* | *'with BFD'*)
12243: lt_cv_prog_gnu_ld=yes
12244: ;;
12245: *)
12246: lt_cv_prog_gnu_ld=no
12247: ;;
12248: esac
12249: fi
1.11 moko 12250: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12251: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.8 moko 12252: with_gnu_ld=$lt_cv_prog_gnu_ld
12253:
12254:
12255:
12256:
12257:
12258:
12259:
12260: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12261: # archiving commands below assume that GNU ld is being used.
12262: if test "$with_gnu_ld" = yes; then
12263: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264: 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'
12265:
12266: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12267: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12268:
12269: # If archive_cmds runs LD, not CC, wlarc should be empty
12270: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12271: # investigate it a little bit more. (MM)
12272: wlarc='${wl}'
12273:
12274: # ancient GNU ld didn't support --whole-archive et. al.
12275: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12276: $GREP 'no-whole-archive' > /dev/null; then
12277: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12278: else
12279: whole_archive_flag_spec_CXX=
12280: fi
12281: else
12282: with_gnu_ld=no
12283: wlarc=
12284:
12285: # A generic and very simple default shared library creation
12286: # command for GNU C++ for the case where it uses the native
12287: # linker, instead of GNU ld. If possible, this setting should
12288: # overridden to take advantage of the native linker features on
12289: # the platform it is being used on.
12290: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12291: fi
12292:
12293: # Commands to make compiler produce verbose output that lists
12294: # what "hidden" libraries, object files and flags are used when
12295: # linking a shared library.
12296: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12297:
12298: else
12299: GXX=no
12300: with_gnu_ld=no
12301: wlarc=
12302: fi
12303:
12304: # PORTME: fill in a description of your system's C++ link characteristics
1.11 moko 12305: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12306: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 12307: ld_shlibs_CXX=yes
12308: case $host_os in
12309: aix3*)
12310: # FIXME: insert proper C++ library support
12311: ld_shlibs_CXX=no
12312: ;;
12313: aix[4-9]*)
12314: if test "$host_cpu" = ia64; then
12315: # On IA64, the linker does run time linking by default, so we don't
12316: # have to do anything special.
12317: aix_use_runtimelinking=no
12318: exp_sym_flag='-Bexport'
12319: no_entry_flag=""
12320: else
12321: aix_use_runtimelinking=no
12322:
12323: # Test if we are trying to use run time linking or normal
12324: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12325: # need to do runtime linking.
12326: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12327: for ld_flag in $LDFLAGS; do
12328: case $ld_flag in
12329: *-brtl*)
12330: aix_use_runtimelinking=yes
12331: break
12332: ;;
12333: esac
12334: done
12335: ;;
12336: esac
12337:
12338: exp_sym_flag='-bexport'
12339: no_entry_flag='-bnoentry'
12340: fi
12341:
12342: # When large executables or shared objects are built, AIX ld can
12343: # have problems creating the table of contents. If linking a library
12344: # or program results in "error TOC overflow" add -mminimal-toc to
12345: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12346: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12347:
12348: archive_cmds_CXX=''
12349: hardcode_direct_CXX=yes
12350: hardcode_direct_absolute_CXX=yes
12351: hardcode_libdir_separator_CXX=':'
12352: link_all_deplibs_CXX=yes
12353: file_list_spec_CXX='${wl}-f,'
12354:
12355: if test "$GXX" = yes; then
12356: case $host_os in aix4.[012]|aix4.[012].*)
12357: # We only want to do this on AIX 4.2 and lower, the check
12358: # below for broken collect2 doesn't work under 4.3+
12359: collect2name=`${CC} -print-prog-name=collect2`
12360: if test -f "$collect2name" &&
12361: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12362: then
12363: # We have reworked collect2
12364: :
12365: else
12366: # We have old collect2
12367: hardcode_direct_CXX=unsupported
12368: # It fails to find uninstalled libraries when the uninstalled
12369: # path is not listed in the libpath. Setting hardcode_minus_L
12370: # to unsupported forces relinking
12371: hardcode_minus_L_CXX=yes
12372: hardcode_libdir_flag_spec_CXX='-L$libdir'
12373: hardcode_libdir_separator_CXX=
12374: fi
12375: esac
12376: shared_flag='-shared'
12377: if test "$aix_use_runtimelinking" = yes; then
12378: shared_flag="$shared_flag "'${wl}-G'
12379: fi
12380: else
12381: # not using gcc
12382: if test "$host_cpu" = ia64; then
12383: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12384: # chokes on -Wl,-G. The following line is correct:
12385: shared_flag='-G'
12386: else
12387: if test "$aix_use_runtimelinking" = yes; then
12388: shared_flag='${wl}-G'
12389: else
12390: shared_flag='${wl}-bM:SRE'
12391: fi
12392: fi
12393: fi
12394:
12395: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12396: # It seems that -bexpall does not export symbols beginning with
12397: # underscore (_), so it is better to generate a list of symbols to
12398: # export.
12399: always_export_symbols_CXX=yes
12400: if test "$aix_use_runtimelinking" = yes; then
12401: # Warning - without using the other runtime loading flags (-brtl),
12402: # -berok will link without error, but may produce a broken library.
12403: allow_undefined_flag_CXX='-berok'
12404: # Determine the default libpath from the value encoded in an empty
12405: # executable.
12406: if test "${lt_cv_aix_libpath+set}" = set; then
12407: aix_libpath=$lt_cv_aix_libpath
12408: else
1.11 moko 12409: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12410: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12411: else
1.11 moko 12412: cat >conftest.$ac_ext <<_ACEOF
12413: /* confdefs.h. */
12414: _ACEOF
12415: cat confdefs.h >>conftest.$ac_ext
12416: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12417: /* end confdefs.h. */
12418:
12419: int
12420: main ()
12421: {
12422:
12423: ;
12424: return 0;
12425: }
12426: _ACEOF
1.11 moko 12427: rm -f conftest.$ac_objext conftest$ac_exeext
12428: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429: (eval $ac_link) 2>conftest.er1
12430: ac_status=$?
12431: grep -v '^ *+' conftest.er1 >conftest.err
12432: rm -f conftest.er1
12433: cat conftest.err >&5
12434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435: (exit $ac_status); } &&
12436: { ac_try='test -z "$ac_cxx_werror_flag"
12437: || test ! -s conftest.err'
12438: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439: (eval $ac_try) 2>&5
12440: ac_status=$?
12441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442: (exit $ac_status); }; } &&
12443: { ac_try='test -s conftest$ac_exeext'
12444: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445: (eval $ac_try) 2>&5
12446: ac_status=$?
12447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448: (exit $ac_status); }; }; then
1.8 moko 12449:
12450: lt_aix_libpath_sed='
12451: /Import File Strings/,/^$/ {
12452: /^0/ {
12453: s/^0 *\([^ ]*\) *$/\1/
12454: p
12455: }
12456: }'
12457: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12458: # Check for a 64-bit object if we didn't find anything.
12459: if test -z "$lt_cv_aix_libpath__CXX"; then
12460: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12461: fi
1.11 moko 12462: else
12463: echo "$as_me: failed program was:" >&5
12464: sed 's/^/| /' conftest.$ac_ext >&5
12465:
1.8 moko 12466: fi
1.11 moko 12467: rm -f conftest.err conftest.$ac_objext \
12468: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12469: if test -z "$lt_cv_aix_libpath__CXX"; then
12470: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12471: fi
12472:
12473: fi
12474:
12475: aix_libpath=$lt_cv_aix_libpath__CXX
12476: fi
12477:
12478: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12479:
12480: 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"
12481: else
12482: if test "$host_cpu" = ia64; then
12483: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12484: allow_undefined_flag_CXX="-z nodefs"
12485: 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"
12486: else
12487: # Determine the default libpath from the value encoded in an
12488: # empty executable.
12489: if test "${lt_cv_aix_libpath+set}" = set; then
12490: aix_libpath=$lt_cv_aix_libpath
12491: else
1.11 moko 12492: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12493: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12494: else
1.11 moko 12495: cat >conftest.$ac_ext <<_ACEOF
12496: /* confdefs.h. */
12497: _ACEOF
12498: cat confdefs.h >>conftest.$ac_ext
12499: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12500: /* end confdefs.h. */
12501:
12502: int
12503: main ()
12504: {
12505:
12506: ;
12507: return 0;
12508: }
12509: _ACEOF
1.11 moko 12510: rm -f conftest.$ac_objext conftest$ac_exeext
12511: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512: (eval $ac_link) 2>conftest.er1
12513: ac_status=$?
12514: grep -v '^ *+' conftest.er1 >conftest.err
12515: rm -f conftest.er1
12516: cat conftest.err >&5
12517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518: (exit $ac_status); } &&
12519: { ac_try='test -z "$ac_cxx_werror_flag"
12520: || test ! -s conftest.err'
12521: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522: (eval $ac_try) 2>&5
12523: ac_status=$?
12524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525: (exit $ac_status); }; } &&
12526: { ac_try='test -s conftest$ac_exeext'
12527: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528: (eval $ac_try) 2>&5
12529: ac_status=$?
12530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531: (exit $ac_status); }; }; then
1.8 moko 12532:
12533: lt_aix_libpath_sed='
12534: /Import File Strings/,/^$/ {
12535: /^0/ {
12536: s/^0 *\([^ ]*\) *$/\1/
12537: p
12538: }
12539: }'
12540: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12541: # Check for a 64-bit object if we didn't find anything.
12542: if test -z "$lt_cv_aix_libpath__CXX"; then
12543: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12544: fi
1.11 moko 12545: else
12546: echo "$as_me: failed program was:" >&5
12547: sed 's/^/| /' conftest.$ac_ext >&5
12548:
1.8 moko 12549: fi
1.11 moko 12550: rm -f conftest.err conftest.$ac_objext \
12551: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12552: if test -z "$lt_cv_aix_libpath__CXX"; then
12553: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12554: fi
12555:
12556: fi
12557:
12558: aix_libpath=$lt_cv_aix_libpath__CXX
12559: fi
12560:
12561: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12562: # Warning - without using the other run time loading flags,
12563: # -berok will link without error, but may produce a broken library.
12564: no_undefined_flag_CXX=' ${wl}-bernotok'
12565: allow_undefined_flag_CXX=' ${wl}-berok'
12566: if test "$with_gnu_ld" = yes; then
12567: # We only use this code for GNU lds that support --whole-archive.
12568: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12569: else
12570: # Exported symbols can be pulled into shared objects from archives
12571: whole_archive_flag_spec_CXX='$convenience'
12572: fi
12573: archive_cmds_need_lc_CXX=yes
12574: # This is similar to how AIX traditionally builds its shared
12575: # libraries.
12576: 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'
12577: fi
12578: fi
12579: ;;
12580:
12581: beos*)
12582: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12583: allow_undefined_flag_CXX=unsupported
12584: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12585: # support --undefined. This deserves some investigation. FIXME
12586: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12587: else
12588: ld_shlibs_CXX=no
12589: fi
12590: ;;
12591:
12592: chorus*)
12593: case $cc_basename in
12594: *)
12595: # FIXME: insert proper C++ library support
12596: ld_shlibs_CXX=no
12597: ;;
12598: esac
12599: ;;
12600:
12601: cygwin* | mingw* | pw32* | cegcc*)
12602: case $GXX,$cc_basename in
12603: ,cl* | no,cl*)
12604: # Native MSVC
12605: # hardcode_libdir_flag_spec is actually meaningless, as there is
12606: # no search path for DLLs.
12607: hardcode_libdir_flag_spec_CXX=' '
12608: allow_undefined_flag_CXX=unsupported
12609: always_export_symbols_CXX=yes
12610: file_list_spec_CXX='@'
12611: # Tell ltmain to make .lib files, not .a files.
12612: libext=lib
12613: # Tell ltmain to make .dll files, not .so files.
12614: shrext_cmds=".dll"
12615: # FIXME: Setting linknames here is a bad hack.
12616: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12617: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12618: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12619: else
12620: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12621: fi~
12622: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12623: linknames='
12624: # The linker will not automatically build a static lib if we build a DLL.
12625: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12626: enable_shared_with_static_runtimes_CXX=yes
12627: # Don't use ranlib
12628: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12629: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12630: lt_tool_outputfile="@TOOL_OUTPUT@"~
12631: case $lt_outputfile in
12632: *.exe|*.EXE) ;;
12633: *)
12634: lt_outputfile="$lt_outputfile.exe"
12635: lt_tool_outputfile="$lt_tool_outputfile.exe"
12636: ;;
12637: esac~
12638: func_to_tool_file "$lt_outputfile"~
12639: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12640: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12641: $RM "$lt_outputfile.manifest";
12642: fi'
12643: ;;
12644: *)
12645: # g++
12646: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12647: # as there is no search path for DLLs.
12648: hardcode_libdir_flag_spec_CXX='-L$libdir'
12649: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12650: allow_undefined_flag_CXX=unsupported
12651: always_export_symbols_CXX=no
12652: enable_shared_with_static_runtimes_CXX=yes
12653:
12654: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12655: 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'
12656: # If the export-symbols file already is a .def file (1st line
12657: # is EXPORTS), use it as is; otherwise, prepend...
12658: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12659: cp $export_symbols $output_objdir/$soname.def;
12660: else
12661: echo EXPORTS > $output_objdir/$soname.def;
12662: cat $export_symbols >> $output_objdir/$soname.def;
12663: fi~
12664: $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'
12665: else
12666: ld_shlibs_CXX=no
12667: fi
12668: ;;
12669: esac
12670: ;;
12671: darwin* | rhapsody*)
12672:
12673:
12674: archive_cmds_need_lc_CXX=no
12675: hardcode_direct_CXX=no
12676: hardcode_automatic_CXX=yes
12677: hardcode_shlibpath_var_CXX=unsupported
12678: if test "$lt_cv_ld_force_load" = "yes"; then
12679: 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\"`'
12680:
12681: else
12682: whole_archive_flag_spec_CXX=''
12683: fi
12684: link_all_deplibs_CXX=yes
12685: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12686: case $cc_basename in
12687: ifort*) _lt_dar_can_shared=yes ;;
12688: *) _lt_dar_can_shared=$GCC ;;
12689: esac
12690: if test "$_lt_dar_can_shared" = "yes"; then
12691: output_verbose_link_cmd=func_echo_all
12692: 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}"
12693: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12694: 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}"
12695: 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}"
12696: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12697: 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}"
12698: 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}"
12699: fi
12700:
12701: else
12702: ld_shlibs_CXX=no
12703: fi
12704:
12705: ;;
12706:
12707: dgux*)
12708: case $cc_basename in
12709: ec++*)
12710: # FIXME: insert proper C++ library support
12711: ld_shlibs_CXX=no
12712: ;;
12713: ghcx*)
12714: # Green Hills C++ Compiler
12715: # FIXME: insert proper C++ library support
12716: ld_shlibs_CXX=no
12717: ;;
12718: *)
12719: # FIXME: insert proper C++ library support
12720: ld_shlibs_CXX=no
12721: ;;
12722: esac
12723: ;;
12724:
12725: freebsd2.*)
12726: # C++ shared libraries reported to be fairly broken before
12727: # switch to ELF
12728: ld_shlibs_CXX=no
12729: ;;
12730:
12731: freebsd-elf*)
12732: archive_cmds_need_lc_CXX=no
12733: ;;
12734:
12735: freebsd* | dragonfly*)
12736: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12737: # conventions
12738: ld_shlibs_CXX=yes
12739: ;;
12740:
12741: gnu*)
12742: ;;
12743:
12744: haiku*)
12745: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12746: link_all_deplibs_CXX=yes
12747: ;;
12748:
12749: hpux9*)
12750: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12751: hardcode_libdir_separator_CXX=:
12752: export_dynamic_flag_spec_CXX='${wl}-E'
12753: hardcode_direct_CXX=yes
12754: hardcode_minus_L_CXX=yes # Not in the search PATH,
12755: # but as the default
12756: # location of the library.
12757:
12758: case $cc_basename in
12759: CC*)
12760: # FIXME: insert proper C++ library support
12761: ld_shlibs_CXX=no
12762: ;;
12763: aCC*)
12764: 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'
12765: # Commands to make compiler produce verbose output that lists
12766: # what "hidden" libraries, object files and flags are used when
12767: # linking a shared library.
12768: #
12769: # There doesn't appear to be a way to prevent this compiler from
12770: # explicitly linking system object files so we need to strip them
12771: # from the output so that they don't get included in the library
12772: # dependencies.
12773: 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"'
12774: ;;
12775: *)
12776: if test "$GXX" = yes; then
12777: 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'
12778: else
12779: # FIXME: insert proper C++ library support
12780: ld_shlibs_CXX=no
12781: fi
12782: ;;
12783: esac
12784: ;;
12785:
12786: hpux10*|hpux11*)
12787: if test $with_gnu_ld = no; then
12788: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12789: hardcode_libdir_separator_CXX=:
12790:
12791: case $host_cpu in
12792: hppa*64*|ia64*)
12793: ;;
12794: *)
12795: export_dynamic_flag_spec_CXX='${wl}-E'
12796: ;;
12797: esac
12798: fi
12799: case $host_cpu in
12800: hppa*64*|ia64*)
12801: hardcode_direct_CXX=no
12802: hardcode_shlibpath_var_CXX=no
12803: ;;
12804: *)
12805: hardcode_direct_CXX=yes
12806: hardcode_direct_absolute_CXX=yes
12807: hardcode_minus_L_CXX=yes # Not in the search PATH,
12808: # but as the default
12809: # location of the library.
12810: ;;
12811: esac
12812:
12813: case $cc_basename in
12814: CC*)
12815: # FIXME: insert proper C++ library support
12816: ld_shlibs_CXX=no
12817: ;;
12818: aCC*)
12819: case $host_cpu in
12820: hppa*64*)
12821: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12822: ;;
12823: ia64*)
12824: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825: ;;
12826: *)
12827: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828: ;;
12829: esac
12830: # Commands to make compiler produce verbose output that lists
12831: # what "hidden" libraries, object files and flags are used when
12832: # linking a shared library.
12833: #
12834: # There doesn't appear to be a way to prevent this compiler from
12835: # explicitly linking system object files so we need to strip them
12836: # from the output so that they don't get included in the library
12837: # dependencies.
12838: 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"'
12839: ;;
12840: *)
12841: if test "$GXX" = yes; then
12842: if test $with_gnu_ld = no; then
12843: case $host_cpu in
12844: hppa*64*)
12845: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846: ;;
12847: ia64*)
12848: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849: ;;
12850: *)
12851: 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'
12852: ;;
12853: esac
12854: fi
12855: else
12856: # FIXME: insert proper C++ library support
12857: ld_shlibs_CXX=no
12858: fi
12859: ;;
12860: esac
12861: ;;
12862:
12863: interix[3-9]*)
12864: hardcode_direct_CXX=no
12865: hardcode_shlibpath_var_CXX=no
12866: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12867: export_dynamic_flag_spec_CXX='${wl}-E'
12868: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12869: # Instead, shared libraries are loaded at an image base (0x10000000 by
12870: # default) and relocated if they conflict, which is a slow very memory
12871: # consuming and fragmenting process. To avoid this, we pick a random,
12872: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12873: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12874: 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'
12875: 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'
12876: ;;
12877: irix5* | irix6*)
12878: case $cc_basename in
12879: CC*)
12880: # SGI C++
12881: 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'
12882:
12883: # Archives containing C++ object files must be created using
12884: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12885: # necessary to make sure instantiated templates are included
12886: # in the archive.
12887: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12888: ;;
12889: *)
12890: if test "$GXX" = yes; then
12891: if test "$with_gnu_ld" = no; then
12892: 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'
12893: else
12894: 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'
12895: fi
12896: fi
12897: link_all_deplibs_CXX=yes
12898: ;;
12899: esac
12900: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12901: hardcode_libdir_separator_CXX=:
12902: inherit_rpath_CXX=yes
12903: ;;
12904:
12905: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12906: case $cc_basename in
12907: KCC*)
12908: # Kuck and Associates, Inc. (KAI) C++ Compiler
12909:
12910: # KCC will only create a shared library if the output file
12911: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12912: # to its proper name (with version) after linking.
12913: 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'
12914: 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'
12915: # Commands to make compiler produce verbose output that lists
12916: # what "hidden" libraries, object files and flags are used when
12917: # linking a shared library.
12918: #
12919: # There doesn't appear to be a way to prevent this compiler from
12920: # explicitly linking system object files so we need to strip them
12921: # from the output so that they don't get included in the library
12922: # dependencies.
12923: 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"'
12924:
12925: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12926: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12927:
12928: # Archives containing C++ object files must be created using
12929: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12930: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12931: ;;
12932: icpc* | ecpc* )
12933: # Intel C++
12934: with_gnu_ld=yes
12935: # version 8.0 and above of icpc choke on multiply defined symbols
12936: # if we add $predep_objects and $postdep_objects, however 7.1 and
12937: # earlier do not add the objects themselves.
12938: case `$CC -V 2>&1` in
12939: *"Version 7."*)
12940: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941: 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'
12942: ;;
12943: *) # Version 8.0 or newer
12944: tmp_idyn=
12945: case $host_cpu in
12946: ia64*) tmp_idyn=' -i_dynamic';;
12947: esac
12948: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949: 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'
12950: ;;
12951: esac
12952: archive_cmds_need_lc_CXX=no
12953: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12954: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12955: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12956: ;;
12957: pgCC* | pgcpp*)
12958: # Portland Group C++ compiler
12959: case `$CC -V` in
12960: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12961: prelink_cmds_CXX='tpldir=Template.dir~
12962: rm -rf $tpldir~
12963: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12964: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12965: old_archive_cmds_CXX='tpldir=Template.dir~
12966: rm -rf $tpldir~
12967: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12968: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12969: $RANLIB $oldlib'
12970: archive_cmds_CXX='tpldir=Template.dir~
12971: rm -rf $tpldir~
12972: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12973: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12974: archive_expsym_cmds_CXX='tpldir=Template.dir~
12975: rm -rf $tpldir~
12976: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12977: $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'
12978: ;;
12979: *) # Version 6 and above use weak symbols
12980: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12981: 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'
12982: ;;
12983: esac
12984:
12985: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12986: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12987: 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'
12988: ;;
12989: cxx*)
12990: # Compaq C++
12991: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12992: 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'
12993:
12994: runpath_var=LD_RUN_PATH
12995: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12996: hardcode_libdir_separator_CXX=:
12997:
12998: # Commands to make compiler produce verbose output that lists
12999: # what "hidden" libraries, object files and flags are used when
13000: # linking a shared library.
13001: #
13002: # There doesn't appear to be a way to prevent this compiler from
13003: # explicitly linking system object files so we need to strip them
13004: # from the output so that they don't get included in the library
13005: # dependencies.
13006: 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'
13007: ;;
13008: xl* | mpixl* | bgxl*)
13009: # IBM XL 8.0 on PPC, with GNU ld
13010: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13011: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13012: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13013: if test "x$supports_anon_versioning" = xyes; then
13014: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13015: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13016: echo "local: *; };" >> $output_objdir/$libname.ver~
13017: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13018: fi
13019: ;;
13020: *)
13021: case `$CC -V 2>&1 | sed 5q` in
13022: *Sun\ C*)
13023: # Sun C++ 5.9
13024: no_undefined_flag_CXX=' -zdefs'
13025: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026: 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'
13027: hardcode_libdir_flag_spec_CXX='-R$libdir'
13028: 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'
13029: compiler_needs_object_CXX=yes
13030:
13031: # Not sure whether something based on
13032: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13033: # would be better.
13034: output_verbose_link_cmd='func_echo_all'
13035:
13036: # Archives containing C++ object files must be created using
13037: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13038: # necessary to make sure instantiated templates are included
13039: # in the archive.
13040: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13041: ;;
13042: esac
13043: ;;
13044: esac
13045: ;;
13046:
13047: lynxos*)
13048: # FIXME: insert proper C++ library support
13049: ld_shlibs_CXX=no
13050: ;;
13051:
13052: m88k*)
13053: # FIXME: insert proper C++ library support
13054: ld_shlibs_CXX=no
13055: ;;
13056:
13057: mvs*)
13058: case $cc_basename in
13059: cxx*)
13060: # FIXME: insert proper C++ library support
13061: ld_shlibs_CXX=no
13062: ;;
13063: *)
13064: # FIXME: insert proper C++ library support
13065: ld_shlibs_CXX=no
13066: ;;
13067: esac
13068: ;;
13069:
13070: netbsd*)
13071: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13072: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13073: wlarc=
13074: hardcode_libdir_flag_spec_CXX='-R$libdir'
13075: hardcode_direct_CXX=yes
13076: hardcode_shlibpath_var_CXX=no
13077: fi
13078: # Workaround some broken pre-1.5 toolchains
13079: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13080: ;;
13081:
13082: *nto* | *qnx*)
13083: ld_shlibs_CXX=yes
13084: ;;
13085:
13086: openbsd2*)
13087: # C++ shared libraries are fairly broken
13088: ld_shlibs_CXX=no
13089: ;;
13090:
13091: openbsd*)
13092: if test -f /usr/libexec/ld.so; then
13093: hardcode_direct_CXX=yes
13094: hardcode_shlibpath_var_CXX=no
13095: hardcode_direct_absolute_CXX=yes
13096: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13097: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13098: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13099: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13100: export_dynamic_flag_spec_CXX='${wl}-E'
13101: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13102: fi
13103: output_verbose_link_cmd=func_echo_all
13104: else
13105: ld_shlibs_CXX=no
13106: fi
13107: ;;
13108:
13109: osf3* | osf4* | osf5*)
13110: case $cc_basename in
13111: KCC*)
13112: # Kuck and Associates, Inc. (KAI) C++ Compiler
13113:
13114: # KCC will only create a shared library if the output file
13115: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13116: # to its proper name (with version) after linking.
13117: 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'
13118:
13119: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120: hardcode_libdir_separator_CXX=:
13121:
13122: # Archives containing C++ object files must be created using
13123: # the KAI C++ compiler.
13124: case $host in
13125: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13126: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13127: esac
13128: ;;
13129: RCC*)
13130: # Rational C++ 2.4.1
13131: # FIXME: insert proper C++ library support
13132: ld_shlibs_CXX=no
13133: ;;
13134: cxx*)
13135: case $host in
13136: osf3*)
13137: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13138: 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'
13139: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13140: ;;
13141: *)
13142: allow_undefined_flag_CXX=' -expect_unresolved \*'
13143: 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'
13144: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13145: echo "-hidden">> $lib.exp~
13146: $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~
13147: $RM $lib.exp'
13148: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13149: ;;
13150: esac
13151:
13152: hardcode_libdir_separator_CXX=:
13153:
13154: # Commands to make compiler produce verbose output that lists
13155: # what "hidden" libraries, object files and flags are used when
13156: # linking a shared library.
13157: #
13158: # There doesn't appear to be a way to prevent this compiler from
13159: # explicitly linking system object files so we need to strip them
13160: # from the output so that they don't get included in the library
13161: # dependencies.
13162: 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"'
13163: ;;
13164: *)
13165: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13166: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13167: case $host in
13168: osf3*)
13169: 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'
13170: ;;
13171: *)
13172: 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'
13173: ;;
13174: esac
13175:
13176: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177: hardcode_libdir_separator_CXX=:
13178:
13179: # Commands to make compiler produce verbose output that lists
13180: # what "hidden" libraries, object files and flags are used when
13181: # linking a shared library.
13182: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13183:
13184: else
13185: # FIXME: insert proper C++ library support
13186: ld_shlibs_CXX=no
13187: fi
13188: ;;
13189: esac
13190: ;;
13191:
13192: psos*)
13193: # FIXME: insert proper C++ library support
13194: ld_shlibs_CXX=no
13195: ;;
13196:
13197: sunos4*)
13198: case $cc_basename in
13199: CC*)
13200: # Sun C++ 4.x
13201: # FIXME: insert proper C++ library support
13202: ld_shlibs_CXX=no
13203: ;;
13204: lcc*)
13205: # Lucid
13206: # FIXME: insert proper C++ library support
13207: ld_shlibs_CXX=no
13208: ;;
13209: *)
13210: # FIXME: insert proper C++ library support
13211: ld_shlibs_CXX=no
13212: ;;
13213: esac
13214: ;;
13215:
13216: solaris*)
13217: case $cc_basename in
13218: CC* | sunCC*)
13219: # Sun C++ 4.2, 5.x and Centerline C++
13220: archive_cmds_need_lc_CXX=yes
13221: no_undefined_flag_CXX=' -zdefs'
13222: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13223: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13224: $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'
13225:
13226: hardcode_libdir_flag_spec_CXX='-R$libdir'
13227: hardcode_shlibpath_var_CXX=no
13228: case $host_os in
13229: solaris2.[0-5] | solaris2.[0-5].*) ;;
13230: *)
13231: # The compiler driver will combine and reorder linker options,
13232: # but understands `-z linker_flag'.
13233: # Supported since Solaris 2.6 (maybe 2.5.1?)
13234: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13235: ;;
13236: esac
13237: link_all_deplibs_CXX=yes
13238:
13239: output_verbose_link_cmd='func_echo_all'
13240:
13241: # Archives containing C++ object files must be created using
13242: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13243: # necessary to make sure instantiated templates are included
13244: # in the archive.
13245: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13246: ;;
13247: gcx*)
13248: # Green Hills C++ Compiler
13249: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13250:
13251: # The C++ compiler must be used to create the archive.
13252: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13253: ;;
13254: *)
13255: # GNU C++ compiler with Solaris linker
13256: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13257: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13258: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13259: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13260: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13261: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13262:
13263: # Commands to make compiler produce verbose output that lists
13264: # what "hidden" libraries, object files and flags are used when
13265: # linking a shared library.
13266: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13267: else
13268: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13269: # platform.
13270: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13271: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13272: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13273:
13274: # Commands to make compiler produce verbose output that lists
13275: # what "hidden" libraries, object files and flags are used when
13276: # linking a shared library.
13277: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13278: fi
13279:
13280: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13281: case $host_os in
13282: solaris2.[0-5] | solaris2.[0-5].*) ;;
13283: *)
13284: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13285: ;;
13286: esac
13287: fi
13288: ;;
13289: esac
13290: ;;
13291:
13292: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13293: no_undefined_flag_CXX='${wl}-z,text'
13294: archive_cmds_need_lc_CXX=no
13295: hardcode_shlibpath_var_CXX=no
13296: runpath_var='LD_RUN_PATH'
13297:
13298: case $cc_basename in
13299: CC*)
13300: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302: ;;
13303: *)
13304: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306: ;;
13307: esac
13308: ;;
13309:
13310: sysv5* | sco3.2v5* | sco5v6*)
13311: # Note: We can NOT use -z defs as we might desire, because we do not
13312: # link with -lc, and that would cause any symbols used from libc to
13313: # always be unresolved, which means just about no library would
13314: # ever link correctly. If we're not using GNU ld we use -z text
13315: # though, which does catch some bad symbols but isn't as heavy-handed
13316: # as -z defs.
13317: no_undefined_flag_CXX='${wl}-z,text'
13318: allow_undefined_flag_CXX='${wl}-z,nodefs'
13319: archive_cmds_need_lc_CXX=no
13320: hardcode_shlibpath_var_CXX=no
13321: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13322: hardcode_libdir_separator_CXX=':'
13323: link_all_deplibs_CXX=yes
13324: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13325: runpath_var='LD_RUN_PATH'
13326:
13327: case $cc_basename in
13328: CC*)
13329: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13332: '"$old_archive_cmds_CXX"
13333: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13334: '"$reload_cmds_CXX"
13335: ;;
13336: *)
13337: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339: ;;
13340: esac
13341: ;;
13342:
13343: tandem*)
13344: case $cc_basename in
13345: NCC*)
13346: # NonStop-UX NCC 3.20
13347: # FIXME: insert proper C++ library support
13348: ld_shlibs_CXX=no
13349: ;;
13350: *)
13351: # FIXME: insert proper C++ library support
13352: ld_shlibs_CXX=no
13353: ;;
13354: esac
13355: ;;
13356:
13357: vxworks*)
13358: # FIXME: insert proper C++ library support
13359: ld_shlibs_CXX=no
13360: ;;
13361:
13362: *)
13363: # FIXME: insert proper C++ library support
13364: ld_shlibs_CXX=no
13365: ;;
13366: esac
13367:
1.11 moko 13368: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13369: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 13370: test "$ld_shlibs_CXX" = no && can_build_shared=no
13371:
13372: GCC_CXX="$GXX"
13373: LD_CXX="$LD"
13374:
13375: ## CAVEAT EMPTOR:
13376: ## There is no encapsulation within the following macros, do not change
13377: ## the running order or otherwise move them around unless you know exactly
13378: ## what you are doing...
13379: # Dependencies to place before and after the object being linked:
13380: predep_objects_CXX=
13381: postdep_objects_CXX=
13382: predeps_CXX=
13383: postdeps_CXX=
13384: compiler_lib_search_path_CXX=
13385:
13386: cat > conftest.$ac_ext <<_LT_EOF
13387: class Foo
13388: {
13389: public:
13390: Foo (void) { a = 0; }
13391: private:
13392: int a;
13393: };
13394: _LT_EOF
13395:
13396:
13397: _lt_libdeps_save_CFLAGS=$CFLAGS
13398: case "$CC $CFLAGS " in #(
13399: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13400: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13401: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13402: esac
13403:
1.11 moko 13404: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 13405: (eval $ac_compile) 2>&5
13406: ac_status=$?
1.11 moko 13407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408: (exit $ac_status); }; then
1.8 moko 13409: # Parse the compiler output and extract the necessary
13410: # objects, libraries and library flags.
13411:
13412: # Sentinel used to keep track of whether or not we are before
13413: # the conftest object file.
13414: pre_test_object_deps_done=no
13415:
13416: for p in `eval "$output_verbose_link_cmd"`; do
13417: case ${prev}${p} in
13418:
13419: -L* | -R* | -l*)
13420: # Some compilers place space between "-{L,R}" and the path.
13421: # Remove the space.
13422: if test $p = "-L" ||
13423: test $p = "-R"; then
13424: prev=$p
13425: continue
13426: fi
13427:
13428: # Expand the sysroot to ease extracting the directories later.
13429: if test -z "$prev"; then
13430: case $p in
13431: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13432: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13433: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13434: esac
13435: fi
13436: case $p in
13437: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13438: esac
13439: if test "$pre_test_object_deps_done" = no; then
13440: case ${prev} in
13441: -L | -R)
13442: # Internal compiler library paths should come after those
13443: # provided the user. The postdeps already come after the
13444: # user supplied libs so there is no need to process them.
13445: if test -z "$compiler_lib_search_path_CXX"; then
13446: compiler_lib_search_path_CXX="${prev}${p}"
13447: else
13448: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13449: fi
13450: ;;
13451: # The "-l" case would never come before the object being
13452: # linked, so don't bother handling this case.
13453: esac
13454: else
13455: if test -z "$postdeps_CXX"; then
13456: postdeps_CXX="${prev}${p}"
13457: else
13458: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13459: fi
13460: fi
13461: prev=
13462: ;;
13463:
13464: *.lto.$objext) ;; # Ignore GCC LTO objects
13465: *.$objext)
13466: # This assumes that the test object file only shows up
13467: # once in the compiler output.
13468: if test "$p" = "conftest.$objext"; then
13469: pre_test_object_deps_done=yes
13470: continue
13471: fi
13472:
13473: if test "$pre_test_object_deps_done" = no; then
13474: if test -z "$predep_objects_CXX"; then
13475: predep_objects_CXX="$p"
13476: else
13477: predep_objects_CXX="$predep_objects_CXX $p"
13478: fi
13479: else
13480: if test -z "$postdep_objects_CXX"; then
13481: postdep_objects_CXX="$p"
13482: else
13483: postdep_objects_CXX="$postdep_objects_CXX $p"
13484: fi
13485: fi
13486: ;;
13487:
13488: *) ;; # Ignore the rest.
13489:
13490: esac
13491: done
13492:
13493: # Clean up.
13494: rm -f a.out a.exe
13495: else
13496: echo "libtool.m4: error: problem compiling CXX test program"
13497: fi
13498:
13499: $RM -f confest.$objext
13500: CFLAGS=$_lt_libdeps_save_CFLAGS
13501:
13502: # PORTME: override above test on systems where it is broken
13503: case $host_os in
13504: interix[3-9]*)
13505: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13506: # hack all around it, let's just trust "g++" to DTRT.
13507: predep_objects_CXX=
13508: postdep_objects_CXX=
13509: postdeps_CXX=
13510: ;;
13511:
13512: linux*)
13513: case `$CC -V 2>&1 | sed 5q` in
13514: *Sun\ C*)
13515: # Sun C++ 5.9
13516:
13517: # The more standards-conforming stlport4 library is
13518: # incompatible with the Cstd library. Avoid specifying
13519: # it if it's in CXXFLAGS. Ignore libCrun as
13520: # -library=stlport4 depends on it.
13521: case " $CXX $CXXFLAGS " in
13522: *" -library=stlport4 "*)
13523: solaris_use_stlport4=yes
13524: ;;
13525: esac
13526:
13527: if test "$solaris_use_stlport4" != yes; then
13528: postdeps_CXX='-library=Cstd -library=Crun'
13529: fi
13530: ;;
13531: esac
13532: ;;
13533:
13534: solaris*)
13535: case $cc_basename in
13536: CC* | sunCC*)
13537: # The more standards-conforming stlport4 library is
13538: # incompatible with the Cstd library. Avoid specifying
13539: # it if it's in CXXFLAGS. Ignore libCrun as
13540: # -library=stlport4 depends on it.
13541: case " $CXX $CXXFLAGS " in
13542: *" -library=stlport4 "*)
13543: solaris_use_stlport4=yes
13544: ;;
13545: esac
13546:
13547: # Adding this requires a known-good setup of shared libraries for
13548: # Sun compiler versions before 5.6, else PIC objects from an old
13549: # archive will be linked into the output, leading to subtle bugs.
13550: if test "$solaris_use_stlport4" != yes; then
13551: postdeps_CXX='-library=Cstd -library=Crun'
13552: fi
13553: ;;
13554: esac
13555: ;;
13556: esac
13557:
13558:
13559: case " $postdeps_CXX " in
13560: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13561: esac
13562: compiler_lib_search_dirs_CXX=
13563: if test -n "${compiler_lib_search_path_CXX}"; then
13564: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13565: fi
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:
13593:
13594:
13595:
13596:
13597: lt_prog_compiler_wl_CXX=
13598: lt_prog_compiler_pic_CXX=
13599: lt_prog_compiler_static_CXX=
13600:
13601:
13602: # C++ specific cases for pic, static, wl, etc.
13603: if test "$GXX" = yes; then
13604: lt_prog_compiler_wl_CXX='-Wl,'
13605: lt_prog_compiler_static_CXX='-static'
13606:
13607: case $host_os in
13608: aix*)
13609: # All AIX code is PIC.
13610: if test "$host_cpu" = ia64; then
13611: # AIX 5 now supports IA64 processor
13612: lt_prog_compiler_static_CXX='-Bstatic'
13613: fi
13614: ;;
13615:
13616: amigaos*)
13617: case $host_cpu in
13618: powerpc)
13619: # see comment about AmigaOS4 .so support
13620: lt_prog_compiler_pic_CXX='-fPIC'
13621: ;;
13622: m68k)
13623: # FIXME: we need at least 68020 code to build shared libraries, but
13624: # adding the `-m68020' flag to GCC prevents building anything better,
13625: # like `-m68040'.
13626: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13627: ;;
13628: esac
13629: ;;
13630:
13631: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13632: # PIC is the default for these OSes.
13633: ;;
13634: mingw* | cygwin* | os2* | pw32* | cegcc*)
13635: # This hack is so that the source file can tell whether it is being
13636: # built for inclusion in a dll (and should export symbols for example).
13637: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13638: # (--disable-auto-import) libraries
13639: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13640: ;;
13641: darwin* | rhapsody*)
13642: # PIC is the default on this platform
13643: # Common symbols not allowed in MH_DYLIB files
13644: lt_prog_compiler_pic_CXX='-fno-common'
13645: ;;
13646: *djgpp*)
13647: # DJGPP does not support shared libraries at all
13648: lt_prog_compiler_pic_CXX=
13649: ;;
13650: haiku*)
13651: # PIC is the default for Haiku.
13652: # The "-static" flag exists, but is broken.
13653: lt_prog_compiler_static_CXX=
13654: ;;
13655: interix[3-9]*)
13656: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13657: # Instead, we relocate shared libraries at runtime.
13658: ;;
13659: sysv4*MP*)
13660: if test -d /usr/nec; then
13661: lt_prog_compiler_pic_CXX=-Kconform_pic
13662: fi
13663: ;;
13664: hpux*)
13665: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13666: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13667: # sets the default TLS model and affects inlining.
13668: case $host_cpu in
13669: hppa*64*)
13670: ;;
13671: *)
13672: lt_prog_compiler_pic_CXX='-fPIC'
13673: ;;
13674: esac
13675: ;;
13676: *qnx* | *nto*)
13677: # QNX uses GNU C++, but need to define -shared option too, otherwise
13678: # it will coredump.
13679: lt_prog_compiler_pic_CXX='-fPIC -shared'
13680: ;;
13681: *)
13682: lt_prog_compiler_pic_CXX='-fPIC'
13683: ;;
13684: esac
13685: else
13686: case $host_os in
13687: aix[4-9]*)
13688: # All AIX code is PIC.
13689: if test "$host_cpu" = ia64; then
13690: # AIX 5 now supports IA64 processor
13691: lt_prog_compiler_static_CXX='-Bstatic'
13692: else
13693: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13694: fi
13695: ;;
13696: chorus*)
13697: case $cc_basename in
13698: cxch68*)
13699: # Green Hills C++ Compiler
13700: # _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"
13701: ;;
13702: esac
13703: ;;
13704: mingw* | cygwin* | os2* | pw32* | cegcc*)
13705: # This hack is so that the source file can tell whether it is being
13706: # built for inclusion in a dll (and should export symbols for example).
13707: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13708: ;;
13709: dgux*)
13710: case $cc_basename in
13711: ec++*)
13712: lt_prog_compiler_pic_CXX='-KPIC'
13713: ;;
13714: ghcx*)
13715: # Green Hills C++ Compiler
13716: lt_prog_compiler_pic_CXX='-pic'
13717: ;;
13718: *)
13719: ;;
13720: esac
13721: ;;
13722: freebsd* | dragonfly*)
13723: # FreeBSD uses GNU C++
13724: ;;
13725: hpux9* | hpux10* | hpux11*)
13726: case $cc_basename in
13727: CC*)
13728: lt_prog_compiler_wl_CXX='-Wl,'
13729: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13730: if test "$host_cpu" != ia64; then
13731: lt_prog_compiler_pic_CXX='+Z'
13732: fi
13733: ;;
13734: aCC*)
13735: lt_prog_compiler_wl_CXX='-Wl,'
13736: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13737: case $host_cpu in
13738: hppa*64*|ia64*)
13739: # +Z the default
13740: ;;
13741: *)
13742: lt_prog_compiler_pic_CXX='+Z'
13743: ;;
13744: esac
13745: ;;
13746: *)
13747: ;;
13748: esac
13749: ;;
13750: interix*)
13751: # This is c89, which is MS Visual C++ (no shared libs)
13752: # Anyone wants to do a port?
13753: ;;
13754: irix5* | irix6* | nonstopux*)
13755: case $cc_basename in
13756: CC*)
13757: lt_prog_compiler_wl_CXX='-Wl,'
13758: lt_prog_compiler_static_CXX='-non_shared'
13759: # CC pic flag -KPIC is the default.
13760: ;;
13761: *)
13762: ;;
13763: esac
13764: ;;
13765: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13766: case $cc_basename in
13767: KCC*)
13768: # KAI C++ Compiler
13769: lt_prog_compiler_wl_CXX='--backend -Wl,'
13770: lt_prog_compiler_pic_CXX='-fPIC'
13771: ;;
13772: ecpc* )
13773: # old Intel C++ for x86_64 which still supported -KPIC.
13774: lt_prog_compiler_wl_CXX='-Wl,'
13775: lt_prog_compiler_pic_CXX='-KPIC'
13776: lt_prog_compiler_static_CXX='-static'
13777: ;;
13778: icpc* )
13779: # Intel C++, used to be incompatible with GCC.
13780: # ICC 10 doesn't accept -KPIC any more.
13781: lt_prog_compiler_wl_CXX='-Wl,'
13782: lt_prog_compiler_pic_CXX='-fPIC'
13783: lt_prog_compiler_static_CXX='-static'
13784: ;;
13785: pgCC* | pgcpp*)
13786: # Portland Group C++ compiler
13787: lt_prog_compiler_wl_CXX='-Wl,'
13788: lt_prog_compiler_pic_CXX='-fpic'
13789: lt_prog_compiler_static_CXX='-Bstatic'
13790: ;;
13791: cxx*)
13792: # Compaq C++
13793: # Make sure the PIC flag is empty. It appears that all Alpha
13794: # Linux and Compaq Tru64 Unix objects are PIC.
13795: lt_prog_compiler_pic_CXX=
13796: lt_prog_compiler_static_CXX='-non_shared'
13797: ;;
13798: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13799: # IBM XL 8.0, 9.0 on PPC and BlueGene
13800: lt_prog_compiler_wl_CXX='-Wl,'
13801: lt_prog_compiler_pic_CXX='-qpic'
13802: lt_prog_compiler_static_CXX='-qstaticlink'
13803: ;;
13804: *)
13805: case `$CC -V 2>&1 | sed 5q` in
13806: *Sun\ C*)
13807: # Sun C++ 5.9
13808: lt_prog_compiler_pic_CXX='-KPIC'
13809: lt_prog_compiler_static_CXX='-Bstatic'
13810: lt_prog_compiler_wl_CXX='-Qoption ld '
13811: ;;
13812: esac
13813: ;;
13814: esac
13815: ;;
13816: lynxos*)
13817: ;;
13818: m88k*)
13819: ;;
13820: mvs*)
13821: case $cc_basename in
13822: cxx*)
13823: lt_prog_compiler_pic_CXX='-W c,exportall'
13824: ;;
13825: *)
13826: ;;
13827: esac
13828: ;;
13829: netbsd*)
13830: ;;
13831: *qnx* | *nto*)
13832: # QNX uses GNU C++, but need to define -shared option too, otherwise
13833: # it will coredump.
13834: lt_prog_compiler_pic_CXX='-fPIC -shared'
13835: ;;
13836: osf3* | osf4* | osf5*)
13837: case $cc_basename in
13838: KCC*)
13839: lt_prog_compiler_wl_CXX='--backend -Wl,'
13840: ;;
13841: RCC*)
13842: # Rational C++ 2.4.1
13843: lt_prog_compiler_pic_CXX='-pic'
13844: ;;
13845: cxx*)
13846: # Digital/Compaq C++
13847: lt_prog_compiler_wl_CXX='-Wl,'
13848: # Make sure the PIC flag is empty. It appears that all Alpha
13849: # Linux and Compaq Tru64 Unix objects are PIC.
13850: lt_prog_compiler_pic_CXX=
13851: lt_prog_compiler_static_CXX='-non_shared'
13852: ;;
13853: *)
13854: ;;
13855: esac
13856: ;;
13857: psos*)
13858: ;;
13859: solaris*)
13860: case $cc_basename in
13861: CC* | sunCC*)
13862: # Sun C++ 4.2, 5.x and Centerline C++
13863: lt_prog_compiler_pic_CXX='-KPIC'
13864: lt_prog_compiler_static_CXX='-Bstatic'
13865: lt_prog_compiler_wl_CXX='-Qoption ld '
13866: ;;
13867: gcx*)
13868: # Green Hills C++ Compiler
13869: lt_prog_compiler_pic_CXX='-PIC'
13870: ;;
13871: *)
13872: ;;
13873: esac
13874: ;;
13875: sunos4*)
13876: case $cc_basename in
13877: CC*)
13878: # Sun C++ 4.x
13879: lt_prog_compiler_pic_CXX='-pic'
13880: lt_prog_compiler_static_CXX='-Bstatic'
13881: ;;
13882: lcc*)
13883: # Lucid
13884: lt_prog_compiler_pic_CXX='-pic'
13885: ;;
13886: *)
13887: ;;
13888: esac
13889: ;;
13890: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13891: case $cc_basename in
13892: CC*)
13893: lt_prog_compiler_wl_CXX='-Wl,'
13894: lt_prog_compiler_pic_CXX='-KPIC'
13895: lt_prog_compiler_static_CXX='-Bstatic'
13896: ;;
13897: esac
13898: ;;
13899: tandem*)
13900: case $cc_basename in
13901: NCC*)
13902: # NonStop-UX NCC 3.20
13903: lt_prog_compiler_pic_CXX='-KPIC'
13904: ;;
13905: *)
13906: ;;
13907: esac
13908: ;;
13909: vxworks*)
13910: ;;
13911: *)
13912: lt_prog_compiler_can_build_shared_CXX=no
13913: ;;
13914: esac
13915: fi
13916:
13917: case $host_os in
13918: # For platforms which do not support PIC, -DPIC is meaningless:
13919: *djgpp*)
13920: lt_prog_compiler_pic_CXX=
13921: ;;
13922: *)
13923: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13924: ;;
13925: esac
13926:
1.11 moko 13927: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13928: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13929: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13930: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13931: else
13932: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13933: fi
1.11 moko 13934: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13935: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
1.8 moko 13936: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13937:
13938: #
13939: # Check to make sure the PIC flag actually works.
13940: #
13941: if test -n "$lt_prog_compiler_pic_CXX"; then
1.11 moko 13942: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13943: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13944: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13945: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13946: else
13947: lt_cv_prog_compiler_pic_works_CXX=no
13948: ac_outfile=conftest.$ac_objext
13949: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13950: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13951: # Insert the option either (1) after the last *FLAGS variable, or
13952: # (2) before a word containing "conftest.", or (3) at the end.
13953: # Note that $ac_compile itself does not contain backslashes and begins
13954: # with a dollar sign (not a hyphen), so the echo should work correctly.
13955: # The option is referenced via a variable to avoid confusing sed.
13956: lt_compile=`echo "$ac_compile" | $SED \
13957: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13958: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13959: -e 's:$: $lt_compiler_flag:'`
13960: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13961: (eval "$lt_compile" 2>conftest.err)
13962: ac_status=$?
13963: cat conftest.err >&5
13964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965: if (exit $ac_status) && test -s "$ac_outfile"; then
13966: # The compiler can only warn and ignore the option if not recognized
13967: # So say no if there are warnings other than the usual output.
13968: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13969: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13970: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13971: lt_cv_prog_compiler_pic_works_CXX=yes
13972: fi
13973: fi
13974: $RM conftest*
13975:
13976: fi
1.11 moko 13977: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13978: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
1.8 moko 13979:
13980: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13981: case $lt_prog_compiler_pic_CXX in
13982: "" | " "*) ;;
13983: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13984: esac
13985: else
13986: lt_prog_compiler_pic_CXX=
13987: lt_prog_compiler_can_build_shared_CXX=no
13988: fi
13989:
13990: fi
13991:
13992:
13993:
13994:
13995:
13996: #
13997: # Check to make sure the static flag actually works.
13998: #
13999: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.11 moko 14000: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14001: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14002: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14003: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14004: else
14005: lt_cv_prog_compiler_static_works_CXX=no
14006: save_LDFLAGS="$LDFLAGS"
14007: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14008: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14009: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14010: # The linker can only warn and ignore the option if not recognized
14011: # So say no if there are warnings
14012: if test -s conftest.err; then
14013: # Append any errors to the config.log.
14014: cat conftest.err 1>&5
14015: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14016: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14017: if diff conftest.exp conftest.er2 >/dev/null; then
14018: lt_cv_prog_compiler_static_works_CXX=yes
14019: fi
14020: else
14021: lt_cv_prog_compiler_static_works_CXX=yes
14022: fi
14023: fi
14024: $RM -r conftest*
14025: LDFLAGS="$save_LDFLAGS"
14026:
14027: fi
1.11 moko 14028: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14029: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
1.8 moko 14030:
14031: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14032: :
14033: else
14034: lt_prog_compiler_static_CXX=
14035: fi
14036:
14037:
14038:
14039:
1.11 moko 14040: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14041: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14042: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14043: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14044: else
14045: lt_cv_prog_compiler_c_o_CXX=no
14046: $RM -r conftest 2>/dev/null
14047: mkdir conftest
14048: cd conftest
14049: mkdir out
14050: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14051:
14052: lt_compiler_flag="-o out/conftest2.$ac_objext"
14053: # Insert the option either (1) after the last *FLAGS variable, or
14054: # (2) before a word containing "conftest.", or (3) at the end.
14055: # Note that $ac_compile itself does not contain backslashes and begins
14056: # with a dollar sign (not a hyphen), so the echo should work correctly.
14057: lt_compile=`echo "$ac_compile" | $SED \
14058: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14059: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14060: -e 's:$: $lt_compiler_flag:'`
14061: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14062: (eval "$lt_compile" 2>out/conftest.err)
14063: ac_status=$?
14064: cat out/conftest.err >&5
14065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14067: then
14068: # The compiler can only warn and ignore the option if not recognized
14069: # So say no if there are warnings
14070: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14071: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14072: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14073: lt_cv_prog_compiler_c_o_CXX=yes
14074: fi
14075: fi
14076: chmod u+w . 2>&5
14077: $RM conftest*
14078: # SGI C++ compiler will create directory out/ii_files/ for
14079: # template instantiation
14080: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14081: $RM out/* && rmdir out
14082: cd ..
14083: $RM -r conftest
14084: $RM conftest*
14085:
14086: fi
1.11 moko 14087: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14088: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14089:
14090:
14091:
1.11 moko 14092: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14093: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14094: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14095: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14096: else
14097: lt_cv_prog_compiler_c_o_CXX=no
14098: $RM -r conftest 2>/dev/null
14099: mkdir conftest
14100: cd conftest
14101: mkdir out
14102: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14103:
14104: lt_compiler_flag="-o out/conftest2.$ac_objext"
14105: # Insert the option either (1) after the last *FLAGS variable, or
14106: # (2) before a word containing "conftest.", or (3) at the end.
14107: # Note that $ac_compile itself does not contain backslashes and begins
14108: # with a dollar sign (not a hyphen), so the echo should work correctly.
14109: lt_compile=`echo "$ac_compile" | $SED \
14110: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14111: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14112: -e 's:$: $lt_compiler_flag:'`
14113: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14114: (eval "$lt_compile" 2>out/conftest.err)
14115: ac_status=$?
14116: cat out/conftest.err >&5
14117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14119: then
14120: # The compiler can only warn and ignore the option if not recognized
14121: # So say no if there are warnings
14122: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14123: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14124: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14125: lt_cv_prog_compiler_c_o_CXX=yes
14126: fi
14127: fi
14128: chmod u+w . 2>&5
14129: $RM conftest*
14130: # SGI C++ compiler will create directory out/ii_files/ for
14131: # template instantiation
14132: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14133: $RM out/* && rmdir out
14134: cd ..
14135: $RM -r conftest
14136: $RM conftest*
14137:
14138: fi
1.11 moko 14139: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14140: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14141:
14142:
14143:
14144:
14145: hard_links="nottested"
14146: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14147: # do not overwrite the value of need_locks provided by the user
1.11 moko 14148: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14149: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 14150: hard_links=yes
14151: $RM conftest*
14152: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14153: touch conftest.a
14154: ln conftest.a conftest.b 2>&5 || hard_links=no
14155: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 14156: echo "$as_me:$LINENO: result: $hard_links" >&5
14157: echo "${ECHO_T}$hard_links" >&6
1.8 moko 14158: if test "$hard_links" = no; then
1.11 moko 14159: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14160: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 14161: need_locks=warn
14162: fi
14163: else
14164: need_locks=no
14165: fi
14166:
14167:
14168:
1.11 moko 14169: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14170: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 14171:
14172: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14173: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14174: case $host_os in
14175: aix[4-9]*)
14176: # If we're using GNU nm, then we don't want the "-C" option.
14177: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14178: # Also, AIX nm treats weak defined symbols like other global defined
14179: # symbols, whereas GNU nm marks them as "W".
14180: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14181: 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'
14182: else
14183: 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'
14184: fi
14185: ;;
14186: pw32*)
14187: export_symbols_cmds_CXX="$ltdll_cmds"
14188: ;;
14189: cygwin* | mingw* | cegcc*)
14190: case $cc_basename in
14191: cl*)
14192: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14193: ;;
14194: *)
14195: 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'
14196: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14197: ;;
14198: esac
14199: ;;
14200: *)
14201: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14202: ;;
14203: esac
14204:
1.11 moko 14205: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14206: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 14207: test "$ld_shlibs_CXX" = no && can_build_shared=no
14208:
14209: with_gnu_ld_CXX=$with_gnu_ld
14210:
14211:
14212:
14213:
14214:
14215:
14216: #
14217: # Do we need to explicitly link libc?
14218: #
14219: case "x$archive_cmds_need_lc_CXX" in
14220: x|xyes)
14221: # Assume -lc should be added
14222: archive_cmds_need_lc_CXX=yes
14223:
14224: if test "$enable_shared" = yes && test "$GCC" = yes; then
14225: case $archive_cmds_CXX in
14226: *'~'*)
14227: # FIXME: we may have to deal with multi-command sequences.
14228: ;;
14229: '$CC '*)
14230: # Test whether the compiler implicitly links with -lc since on some
14231: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14232: # to ld, don't add -lc before -lgcc.
1.11 moko 14233: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14234: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14235: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14236: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14237: else
14238: $RM conftest*
14239: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14240:
1.11 moko 14241: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 14242: (eval $ac_compile) 2>&5
14243: ac_status=$?
1.11 moko 14244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245: (exit $ac_status); } 2>conftest.err; then
1.8 moko 14246: soname=conftest
14247: lib=conftest
14248: libobjs=conftest.$ac_objext
14249: deplibs=
14250: wl=$lt_prog_compiler_wl_CXX
14251: pic_flag=$lt_prog_compiler_pic_CXX
14252: compiler_flags=-v
14253: linker_flags=-v
14254: verstring=
14255: output_objdir=.
14256: libname=conftest
14257: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14258: allow_undefined_flag_CXX=
1.11 moko 14259: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 14260: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14261: ac_status=$?
1.11 moko 14262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263: (exit $ac_status); }
1.8 moko 14264: then
14265: lt_cv_archive_cmds_need_lc_CXX=no
14266: else
14267: lt_cv_archive_cmds_need_lc_CXX=yes
14268: fi
14269: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14270: else
14271: cat conftest.err 1>&5
14272: fi
14273: $RM conftest*
14274:
14275: fi
1.11 moko 14276: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14277: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
1.8 moko 14278: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14279: ;;
14280: esac
14281: fi
14282: ;;
14283: esac
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:
14341:
14342:
14343:
14344:
14345:
1.11 moko 14346: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14347: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.8 moko 14348:
14349: library_names_spec=
14350: libname_spec='lib$name'
14351: soname_spec=
14352: shrext_cmds=".so"
14353: postinstall_cmds=
14354: postuninstall_cmds=
14355: finish_cmds=
14356: finish_eval=
14357: shlibpath_var=
14358: shlibpath_overrides_runpath=unknown
14359: version_type=none
14360: dynamic_linker="$host_os ld.so"
14361: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14362: need_lib_prefix=unknown
14363: hardcode_into_libs=no
14364:
14365: # when you set need_version to no, make sure it does not cause -set_version
14366: # flags to be left without arguments
14367: need_version=unknown
14368:
14369: case $host_os in
14370: aix3*)
14371: version_type=linux # correct to gnu/linux during the next big refactor
14372: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14373: shlibpath_var=LIBPATH
14374:
14375: # AIX 3 has no versioning support, so we append a major version to the name.
14376: soname_spec='${libname}${release}${shared_ext}$major'
14377: ;;
14378:
14379: aix[4-9]*)
14380: version_type=linux # correct to gnu/linux during the next big refactor
14381: need_lib_prefix=no
14382: need_version=no
14383: hardcode_into_libs=yes
14384: if test "$host_cpu" = ia64; then
14385: # AIX 5 supports IA64
14386: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14387: shlibpath_var=LD_LIBRARY_PATH
14388: else
14389: # With GCC up to 2.95.x, collect2 would create an import file
14390: # for dependence libraries. The import file would start with
14391: # the line `#! .'. This would cause the generated library to
14392: # depend on `.', always an invalid library. This was fixed in
14393: # development snapshots of GCC prior to 3.0.
14394: case $host_os in
14395: aix4 | aix4.[01] | aix4.[01].*)
14396: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14397: echo ' yes '
14398: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14399: :
14400: else
14401: can_build_shared=no
14402: fi
14403: ;;
14404: esac
14405: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14406: # soname into executable. Probably we can add versioning support to
14407: # collect2, so additional links can be useful in future.
14408: if test "$aix_use_runtimelinking" = yes; then
14409: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14410: # instead of lib<name>.a to let people know that these are not
14411: # typical AIX shared libraries.
14412: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413: else
14414: # We preserve .a as extension for shared libraries through AIX4.2
14415: # and later when we are not doing run time linking.
14416: library_names_spec='${libname}${release}.a $libname.a'
14417: soname_spec='${libname}${release}${shared_ext}$major'
14418: fi
14419: shlibpath_var=LIBPATH
14420: fi
14421: ;;
14422:
14423: amigaos*)
14424: case $host_cpu in
14425: powerpc)
14426: # Since July 2007 AmigaOS4 officially supports .so libraries.
14427: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14428: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429: ;;
14430: m68k)
14431: library_names_spec='$libname.ixlibrary $libname.a'
14432: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14433: 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'
14434: ;;
14435: esac
14436: ;;
14437:
14438: beos*)
14439: library_names_spec='${libname}${shared_ext}'
14440: dynamic_linker="$host_os ld.so"
14441: shlibpath_var=LIBRARY_PATH
14442: ;;
14443:
14444: bsdi[45]*)
14445: version_type=linux # correct to gnu/linux during the next big refactor
14446: need_version=no
14447: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448: soname_spec='${libname}${release}${shared_ext}$major'
14449: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14450: shlibpath_var=LD_LIBRARY_PATH
14451: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14452: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14453: # the default ld.so.conf also contains /usr/contrib/lib and
14454: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14455: # libtool to hard-code these into programs
14456: ;;
14457:
14458: cygwin* | mingw* | pw32* | cegcc*)
14459: version_type=windows
14460: shrext_cmds=".dll"
14461: need_version=no
14462: need_lib_prefix=no
14463:
14464: case $GCC,$cc_basename in
14465: yes,*)
14466: # gcc
14467: library_names_spec='$libname.dll.a'
14468: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14469: postinstall_cmds='base_file=`basename \${file}`~
14470: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14471: dldir=$destdir/`dirname \$dlpath`~
14472: test -d \$dldir || mkdir -p \$dldir~
14473: $install_prog $dir/$dlname \$dldir/$dlname~
14474: chmod a+x \$dldir/$dlname~
14475: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14476: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14477: fi'
14478: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14479: dlpath=$dir/\$dldll~
14480: $RM \$dlpath'
14481: shlibpath_overrides_runpath=yes
14482:
14483: case $host_os in
14484: cygwin*)
14485: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14486: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487:
14488: ;;
14489: mingw* | cegcc*)
14490: # MinGW DLLs use traditional 'lib' prefix
14491: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14492: ;;
14493: pw32*)
14494: # pw32 DLLs use 'pw' prefix rather than 'lib'
14495: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496: ;;
14497: esac
14498: dynamic_linker='Win32 ld.exe'
14499: ;;
14500:
14501: *,cl*)
14502: # Native MSVC
14503: libname_spec='$name'
14504: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505: library_names_spec='${libname}.dll.lib'
14506:
14507: case $build_os in
14508: mingw*)
14509: sys_lib_search_path_spec=
14510: lt_save_ifs=$IFS
14511: IFS=';'
14512: for lt_path in $LIB
14513: do
14514: IFS=$lt_save_ifs
14515: # Let DOS variable expansion print the short 8.3 style file name.
14516: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14517: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14518: done
14519: IFS=$lt_save_ifs
14520: # Convert to MSYS style.
14521: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14522: ;;
14523: cygwin*)
14524: # Convert to unix form, then to dos form, then back to unix form
14525: # but this time dos style (no spaces!) so that the unix form looks
14526: # like /cygdrive/c/PROGRA~1:/cygdr...
14527: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14528: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14529: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14530: ;;
14531: *)
14532: sys_lib_search_path_spec="$LIB"
14533: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14534: # It is most probably a Windows format PATH.
14535: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14536: else
14537: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14538: fi
14539: # FIXME: find the short name or the path components, as spaces are
14540: # common. (e.g. "Program Files" -> "PROGRA~1")
14541: ;;
14542: esac
14543:
14544: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14545: postinstall_cmds='base_file=`basename \${file}`~
14546: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14547: dldir=$destdir/`dirname \$dlpath`~
14548: test -d \$dldir || mkdir -p \$dldir~
14549: $install_prog $dir/$dlname \$dldir/$dlname'
14550: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14551: dlpath=$dir/\$dldll~
14552: $RM \$dlpath'
14553: shlibpath_overrides_runpath=yes
14554: dynamic_linker='Win32 link.exe'
14555: ;;
14556:
14557: *)
14558: # Assume MSVC wrapper
14559: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14560: dynamic_linker='Win32 ld.exe'
14561: ;;
14562: esac
14563: # FIXME: first we should search . and the directory the executable is in
14564: shlibpath_var=PATH
14565: ;;
14566:
14567: darwin* | rhapsody*)
14568: dynamic_linker="$host_os dyld"
14569: version_type=darwin
14570: need_lib_prefix=no
14571: need_version=no
14572: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14573: soname_spec='${libname}${release}${major}$shared_ext'
14574: shlibpath_overrides_runpath=yes
14575: shlibpath_var=DYLD_LIBRARY_PATH
14576: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14577:
14578: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14579: ;;
14580:
14581: dgux*)
14582: version_type=linux # correct to gnu/linux during the next big refactor
14583: need_lib_prefix=no
14584: need_version=no
14585: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14586: soname_spec='${libname}${release}${shared_ext}$major'
14587: shlibpath_var=LD_LIBRARY_PATH
14588: ;;
14589:
14590: freebsd* | dragonfly*)
14591: # DragonFly does not have aout. When/if they implement a new
14592: # versioning mechanism, adjust this.
14593: if test -x /usr/bin/objformat; then
14594: objformat=`/usr/bin/objformat`
14595: else
14596: case $host_os in
14597: freebsd[23].*) objformat=aout ;;
14598: *) objformat=elf ;;
14599: esac
14600: fi
14601: version_type=freebsd-$objformat
14602: case $version_type in
14603: freebsd-elf*)
14604: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14605: need_version=no
14606: need_lib_prefix=no
14607: ;;
14608: freebsd-*)
14609: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14610: need_version=yes
14611: ;;
14612: esac
14613: shlibpath_var=LD_LIBRARY_PATH
14614: case $host_os in
14615: freebsd2.*)
14616: shlibpath_overrides_runpath=yes
14617: ;;
14618: freebsd3.[01]* | freebsdelf3.[01]*)
14619: shlibpath_overrides_runpath=yes
14620: hardcode_into_libs=yes
14621: ;;
14622: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14623: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14624: shlibpath_overrides_runpath=no
14625: hardcode_into_libs=yes
14626: ;;
14627: *) # from 4.6 on, and DragonFly
14628: shlibpath_overrides_runpath=yes
14629: hardcode_into_libs=yes
14630: ;;
14631: esac
14632: ;;
14633:
14634: gnu*)
14635: version_type=linux # correct to gnu/linux during the next big refactor
14636: need_lib_prefix=no
14637: need_version=no
14638: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14639: soname_spec='${libname}${release}${shared_ext}$major'
14640: shlibpath_var=LD_LIBRARY_PATH
14641: shlibpath_overrides_runpath=no
14642: hardcode_into_libs=yes
14643: ;;
14644:
14645: haiku*)
14646: version_type=linux # correct to gnu/linux during the next big refactor
14647: need_lib_prefix=no
14648: need_version=no
14649: dynamic_linker="$host_os runtime_loader"
14650: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14651: soname_spec='${libname}${release}${shared_ext}$major'
14652: shlibpath_var=LIBRARY_PATH
14653: shlibpath_overrides_runpath=yes
14654: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14655: hardcode_into_libs=yes
14656: ;;
14657:
14658: hpux9* | hpux10* | hpux11*)
14659: # Give a soname corresponding to the major version so that dld.sl refuses to
14660: # link against other versions.
14661: version_type=sunos
14662: need_lib_prefix=no
14663: need_version=no
14664: case $host_cpu in
14665: ia64*)
14666: shrext_cmds='.so'
14667: hardcode_into_libs=yes
14668: dynamic_linker="$host_os dld.so"
14669: shlibpath_var=LD_LIBRARY_PATH
14670: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14671: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672: soname_spec='${libname}${release}${shared_ext}$major'
14673: if test "X$HPUX_IA64_MODE" = X32; then
14674: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14675: else
14676: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14677: fi
14678: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14679: ;;
14680: hppa*64*)
14681: shrext_cmds='.sl'
14682: hardcode_into_libs=yes
14683: dynamic_linker="$host_os dld.sl"
14684: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14685: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14686: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687: soname_spec='${libname}${release}${shared_ext}$major'
14688: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14689: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14690: ;;
14691: *)
14692: shrext_cmds='.sl'
14693: dynamic_linker="$host_os dld.sl"
14694: shlibpath_var=SHLIB_PATH
14695: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14696: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697: soname_spec='${libname}${release}${shared_ext}$major'
14698: ;;
14699: esac
14700: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14701: postinstall_cmds='chmod 555 $lib'
14702: # or fails outright, so override atomically:
14703: install_override_mode=555
14704: ;;
14705:
14706: interix[3-9]*)
14707: version_type=linux # correct to gnu/linux during the next big refactor
14708: need_lib_prefix=no
14709: need_version=no
14710: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14711: soname_spec='${libname}${release}${shared_ext}$major'
14712: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14713: shlibpath_var=LD_LIBRARY_PATH
14714: shlibpath_overrides_runpath=no
14715: hardcode_into_libs=yes
14716: ;;
14717:
14718: irix5* | irix6* | nonstopux*)
14719: case $host_os in
14720: nonstopux*) version_type=nonstopux ;;
14721: *)
14722: if test "$lt_cv_prog_gnu_ld" = yes; then
14723: version_type=linux # correct to gnu/linux during the next big refactor
14724: else
14725: version_type=irix
14726: fi ;;
14727: esac
14728: need_lib_prefix=no
14729: need_version=no
14730: soname_spec='${libname}${release}${shared_ext}$major'
14731: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14732: case $host_os in
14733: irix5* | nonstopux*)
14734: libsuff= shlibsuff=
14735: ;;
14736: *)
14737: case $LD in # libtool.m4 will add one of these switches to LD
14738: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14739: libsuff= shlibsuff= libmagic=32-bit;;
14740: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14741: libsuff=32 shlibsuff=N32 libmagic=N32;;
14742: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14743: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14744: *) libsuff= shlibsuff= libmagic=never-match;;
14745: esac
14746: ;;
14747: esac
14748: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14749: shlibpath_overrides_runpath=no
14750: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14751: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14752: hardcode_into_libs=yes
14753: ;;
14754:
14755: # No shared lib support for Linux oldld, aout, or coff.
14756: linux*oldld* | linux*aout* | linux*coff*)
14757: dynamic_linker=no
14758: ;;
14759:
14760: # This must be glibc/ELF.
14761: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14762: version_type=linux # correct to gnu/linux during the next big refactor
14763: need_lib_prefix=no
14764: need_version=no
14765: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766: soname_spec='${libname}${release}${shared_ext}$major'
14767: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14768: shlibpath_var=LD_LIBRARY_PATH
14769: shlibpath_overrides_runpath=no
14770:
14771: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 14772: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14773: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14774: else
14775: lt_cv_shlibpath_overrides_runpath=no
14776: save_LDFLAGS=$LDFLAGS
14777: save_libdir=$libdir
14778: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14779: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.11 moko 14780: cat >conftest.$ac_ext <<_ACEOF
14781: /* confdefs.h. */
14782: _ACEOF
14783: cat confdefs.h >>conftest.$ac_ext
14784: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 14785: /* end confdefs.h. */
14786:
14787: int
14788: main ()
14789: {
14790:
14791: ;
14792: return 0;
14793: }
14794: _ACEOF
1.11 moko 14795: rm -f conftest.$ac_objext conftest$ac_exeext
14796: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14797: (eval $ac_link) 2>conftest.er1
14798: ac_status=$?
14799: grep -v '^ *+' conftest.er1 >conftest.err
14800: rm -f conftest.er1
14801: cat conftest.err >&5
14802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803: (exit $ac_status); } &&
14804: { ac_try='test -z "$ac_cxx_werror_flag"
14805: || test ! -s conftest.err'
14806: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807: (eval $ac_try) 2>&5
14808: ac_status=$?
14809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810: (exit $ac_status); }; } &&
14811: { ac_try='test -s conftest$ac_exeext'
14812: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813: (eval $ac_try) 2>&5
14814: ac_status=$?
14815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816: (exit $ac_status); }; }; then
14817: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 14818: lt_cv_shlibpath_overrides_runpath=yes
14819: fi
1.11 moko 14820:
14821: else
14822: echo "$as_me: failed program was:" >&5
14823: sed 's/^/| /' conftest.$ac_ext >&5
14824:
1.8 moko 14825: fi
1.11 moko 14826: rm -f conftest.err conftest.$ac_objext \
14827: conftest$ac_exeext conftest.$ac_ext
1.8 moko 14828: LDFLAGS=$save_LDFLAGS
14829: libdir=$save_libdir
14830:
14831: fi
14832:
14833: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14834:
14835: # This implies no fast_install, which is unacceptable.
14836: # Some rework will be needed to allow for fast_install
14837: # before this can be enabled.
14838: hardcode_into_libs=yes
14839:
14840: # Append ld.so.conf contents to the search path
14841: if test -f /etc/ld.so.conf; then
14842: 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' ' '`
14843: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14844: fi
14845:
14846: # We used to test for /lib/ld.so.1 and disable shared libraries on
14847: # powerpc, because MkLinux only supported shared libraries with the
14848: # GNU dynamic linker. Since this was broken with cross compilers,
14849: # most powerpc-linux boxes support dynamic linking these days and
14850: # people can always --disable-shared, the test was removed, and we
14851: # assume the GNU/Linux dynamic linker is in use.
14852: dynamic_linker='GNU/Linux ld.so'
14853: ;;
14854:
14855: netbsd*)
14856: version_type=sunos
14857: need_lib_prefix=no
14858: need_version=no
14859: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14860: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14861: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14862: dynamic_linker='NetBSD (a.out) ld.so'
14863: else
14864: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14865: soname_spec='${libname}${release}${shared_ext}$major'
14866: dynamic_linker='NetBSD ld.elf_so'
14867: fi
14868: shlibpath_var=LD_LIBRARY_PATH
14869: shlibpath_overrides_runpath=yes
14870: hardcode_into_libs=yes
14871: ;;
14872:
14873: newsos6)
14874: version_type=linux # correct to gnu/linux during the next big refactor
14875: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876: shlibpath_var=LD_LIBRARY_PATH
14877: shlibpath_overrides_runpath=yes
14878: ;;
14879:
14880: *nto* | *qnx*)
14881: version_type=qnx
14882: need_lib_prefix=no
14883: need_version=no
14884: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885: soname_spec='${libname}${release}${shared_ext}$major'
14886: shlibpath_var=LD_LIBRARY_PATH
14887: shlibpath_overrides_runpath=no
14888: hardcode_into_libs=yes
14889: dynamic_linker='ldqnx.so'
14890: ;;
14891:
14892: openbsd*)
14893: version_type=sunos
14894: sys_lib_dlsearch_path_spec="/usr/lib"
14895: need_lib_prefix=no
14896: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14897: case $host_os in
14898: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14899: *) need_version=no ;;
14900: esac
14901: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14902: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14903: shlibpath_var=LD_LIBRARY_PATH
14904: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14905: case $host_os in
14906: openbsd2.[89] | openbsd2.[89].*)
14907: shlibpath_overrides_runpath=no
14908: ;;
14909: *)
14910: shlibpath_overrides_runpath=yes
14911: ;;
14912: esac
14913: else
14914: shlibpath_overrides_runpath=yes
14915: fi
14916: ;;
14917:
14918: os2*)
14919: libname_spec='$name'
14920: shrext_cmds=".dll"
14921: need_lib_prefix=no
14922: library_names_spec='$libname${shared_ext} $libname.a'
14923: dynamic_linker='OS/2 ld.exe'
14924: shlibpath_var=LIBPATH
14925: ;;
14926:
14927: osf3* | osf4* | osf5*)
14928: version_type=osf
14929: need_lib_prefix=no
14930: need_version=no
14931: soname_spec='${libname}${release}${shared_ext}$major'
14932: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933: shlibpath_var=LD_LIBRARY_PATH
14934: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14935: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14936: ;;
14937:
14938: rdos*)
14939: dynamic_linker=no
14940: ;;
14941:
14942: solaris*)
14943: version_type=linux # correct to gnu/linux during the next big refactor
14944: need_lib_prefix=no
14945: need_version=no
14946: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947: soname_spec='${libname}${release}${shared_ext}$major'
14948: shlibpath_var=LD_LIBRARY_PATH
14949: shlibpath_overrides_runpath=yes
14950: hardcode_into_libs=yes
14951: # ldd complains unless libraries are executable
14952: postinstall_cmds='chmod +x $lib'
14953: ;;
14954:
14955: sunos4*)
14956: version_type=sunos
14957: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14958: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14959: shlibpath_var=LD_LIBRARY_PATH
14960: shlibpath_overrides_runpath=yes
14961: if test "$with_gnu_ld" = yes; then
14962: need_lib_prefix=no
14963: fi
14964: need_version=yes
14965: ;;
14966:
14967: sysv4 | sysv4.3*)
14968: version_type=linux # correct to gnu/linux during the next big refactor
14969: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970: soname_spec='${libname}${release}${shared_ext}$major'
14971: shlibpath_var=LD_LIBRARY_PATH
14972: case $host_vendor in
14973: sni)
14974: shlibpath_overrides_runpath=no
14975: need_lib_prefix=no
14976: runpath_var=LD_RUN_PATH
14977: ;;
14978: siemens)
14979: need_lib_prefix=no
14980: ;;
14981: motorola)
14982: need_lib_prefix=no
14983: need_version=no
14984: shlibpath_overrides_runpath=no
14985: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14986: ;;
14987: esac
14988: ;;
14989:
14990: sysv4*MP*)
14991: if test -d /usr/nec ;then
14992: version_type=linux # correct to gnu/linux during the next big refactor
14993: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14994: soname_spec='$libname${shared_ext}.$major'
14995: shlibpath_var=LD_LIBRARY_PATH
14996: fi
14997: ;;
14998:
14999: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15000: version_type=freebsd-elf
15001: need_lib_prefix=no
15002: need_version=no
15003: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15004: soname_spec='${libname}${release}${shared_ext}$major'
15005: shlibpath_var=LD_LIBRARY_PATH
15006: shlibpath_overrides_runpath=yes
15007: hardcode_into_libs=yes
15008: if test "$with_gnu_ld" = yes; then
15009: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15010: else
15011: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15012: case $host_os in
15013: sco3.2v5*)
15014: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15015: ;;
15016: esac
15017: fi
15018: sys_lib_dlsearch_path_spec='/usr/lib'
15019: ;;
15020:
15021: tpf*)
15022: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15023: version_type=linux # correct to gnu/linux during the next big refactor
15024: need_lib_prefix=no
15025: need_version=no
15026: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027: shlibpath_var=LD_LIBRARY_PATH
15028: shlibpath_overrides_runpath=no
15029: hardcode_into_libs=yes
15030: ;;
15031:
15032: uts4*)
15033: version_type=linux # correct to gnu/linux during the next big refactor
15034: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035: soname_spec='${libname}${release}${shared_ext}$major'
15036: shlibpath_var=LD_LIBRARY_PATH
15037: ;;
15038:
15039: *)
15040: dynamic_linker=no
15041: ;;
15042: esac
1.11 moko 15043: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15044: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 15045: test "$dynamic_linker" = no && can_build_shared=no
15046:
15047: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15048: if test "$GCC" = yes; then
15049: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15050: fi
15051:
15052: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15053: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15054: fi
15055: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15056: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15057: fi
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:
15091:
15092:
15093:
15094:
15095:
1.11 moko 15096: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15097: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 15098: hardcode_action_CXX=
15099: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15100: test -n "$runpath_var_CXX" ||
15101: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15102:
15103: # We can hardcode non-existent directories.
15104: if test "$hardcode_direct_CXX" != no &&
15105: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15106: # have to relink, otherwise we might link with an installed library
15107: # when we should be linking with a yet-to-be-installed one
15108: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15109: test "$hardcode_minus_L_CXX" != no; then
15110: # Linking always hardcodes the temporary library directory.
15111: hardcode_action_CXX=relink
15112: else
15113: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15114: hardcode_action_CXX=immediate
15115: fi
15116: else
15117: # We cannot hardcode anything, or else we can only hardcode existing
15118: # directories.
15119: hardcode_action_CXX=unsupported
15120: fi
1.11 moko 15121: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15122: echo "${ECHO_T}$hardcode_action_CXX" >&6
1.8 moko 15123:
15124: if test "$hardcode_action_CXX" = relink ||
15125: test "$inherit_rpath_CXX" = yes; then
15126: # Fast installation is not supported
15127: enable_fast_install=no
15128: elif test "$shlibpath_overrides_runpath" = yes ||
15129: test "$enable_shared" = no; then
15130: # Fast installation is not necessary
15131: enable_fast_install=needless
15132: fi
15133:
15134:
15135:
15136:
15137:
15138:
15139:
15140: fi # test -n "$compiler"
15141:
15142: CC=$lt_save_CC
15143: CFLAGS=$lt_save_CFLAGS
15144: LDCXX=$LD
15145: LD=$lt_save_LD
15146: GCC=$lt_save_GCC
15147: with_gnu_ld=$lt_save_with_gnu_ld
15148: lt_cv_path_LDCXX=$lt_cv_path_LD
15149: lt_cv_path_LD=$lt_save_path_LD
15150: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15151: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15152: fi # test "$_lt_caught_CXX_error" != yes
15153:
15154: ac_ext=c
15155: ac_cpp='$CPP $CPPFLAGS'
15156: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15157: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15158: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15159:
15160:
15161:
15162:
15163:
15164:
15165:
15166:
15167:
15168:
15169:
15170:
15171:
15172:
15173:
1.11 moko 15174: ac_config_commands="$ac_config_commands libtool"
1.8 moko 15175:
15176:
15177:
15178:
15179: # Only expand once:
15180:
15181:
1.11 moko 15182: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15183: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15184: if test "${libltdl_cv_shlibext+set}" = set; then
15185: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15186: else
15187:
15188: module=yes
15189: eval libltdl_cv_shlibext=$shrext_cmds
15190: module=no
15191: eval libltdl_cv_shrext=$shrext_cmds
15192:
15193: fi
1.11 moko 15194: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15195: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
1.8 moko 15196: if test -n "$libltdl_cv_shlibext"; then
15197:
15198: cat >>confdefs.h <<_ACEOF
15199: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15200: _ACEOF
15201:
15202: fi
15203: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15204:
15205: cat >>confdefs.h <<_ACEOF
15206: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15207: _ACEOF
15208:
15209: fi
15210:
1.11 moko 15211: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15212: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15213: if test "${lt_cv_module_path_var+set}" = set; then
15214: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15215: else
15216: lt_cv_module_path_var="$shlibpath_var"
15217: fi
1.11 moko 15218: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15219: echo "${ECHO_T}$lt_cv_module_path_var" >&6
1.8 moko 15220: if test -n "$lt_cv_module_path_var"; then
15221:
15222: cat >>confdefs.h <<_ACEOF
15223: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15224: _ACEOF
15225:
15226: fi
15227:
1.11 moko 15228: echo "$as_me:$LINENO: checking for the default library search path" >&5
15229: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15230: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15231: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15232: else
15233: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15234: fi
1.11 moko 15235: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15236: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
1.8 moko 15237: if test -n "$lt_cv_sys_dlsearch_path"; then
15238: sys_dlsearch_path=
15239: for dir in $lt_cv_sys_dlsearch_path; do
15240: if test -z "$sys_dlsearch_path"; then
15241: sys_dlsearch_path="$dir"
15242: else
15243: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15244: fi
15245: done
15246:
15247: cat >>confdefs.h <<_ACEOF
15248: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15249: _ACEOF
15250:
15251: fi
15252:
15253:
15254: LT_DLLOADERS=
15255:
15256:
15257: ac_ext=c
15258: ac_cpp='$CPP $CPPFLAGS'
15259: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15260: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15261: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15262:
15263:
15264: LIBADD_DLOPEN=
1.11 moko 15265: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15266: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15267: if test "${ac_cv_search_dlopen+set}" = set; then
15268: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15269: else
15270: ac_func_search_save_LIBS=$LIBS
1.11 moko 15271: ac_cv_search_dlopen=no
15272: cat >conftest.$ac_ext <<_ACEOF
15273: /* confdefs.h. */
15274: _ACEOF
15275: cat confdefs.h >>conftest.$ac_ext
15276: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15277: /* end confdefs.h. */
15278:
1.11 moko 15279: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15280: #ifdef __cplusplus
15281: extern "C"
15282: #endif
1.11 moko 15283: /* We use char because int might match the return type of a gcc2
15284: builtin and then its argument prototype would still apply. */
1.8 moko 15285: char dlopen ();
15286: int
15287: main ()
15288: {
1.11 moko 15289: dlopen ();
1.8 moko 15290: ;
15291: return 0;
15292: }
15293: _ACEOF
1.11 moko 15294: rm -f conftest.$ac_objext conftest$ac_exeext
15295: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296: (eval $ac_link) 2>conftest.er1
15297: ac_status=$?
15298: grep -v '^ *+' conftest.er1 >conftest.err
15299: rm -f conftest.er1
15300: cat conftest.err >&5
15301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302: (exit $ac_status); } &&
15303: { ac_try='test -z "$ac_c_werror_flag"
15304: || test ! -s conftest.err'
15305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306: (eval $ac_try) 2>&5
15307: ac_status=$?
15308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309: (exit $ac_status); }; } &&
15310: { ac_try='test -s conftest$ac_exeext'
15311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312: (eval $ac_try) 2>&5
15313: ac_status=$?
15314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315: (exit $ac_status); }; }; then
15316: ac_cv_search_dlopen="none required"
15317: else
15318: echo "$as_me: failed program was:" >&5
15319: sed 's/^/| /' conftest.$ac_ext >&5
15320:
15321: fi
15322: rm -f conftest.err conftest.$ac_objext \
15323: conftest$ac_exeext conftest.$ac_ext
15324: if test "$ac_cv_search_dlopen" = no; then
15325: for ac_lib in dl; do
1.10 moko 15326: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.11 moko 15327: cat >conftest.$ac_ext <<_ACEOF
15328: /* confdefs.h. */
15329: _ACEOF
15330: cat confdefs.h >>conftest.$ac_ext
15331: cat >>conftest.$ac_ext <<_ACEOF
15332: /* end confdefs.h. */
1.8 moko 15333:
1.11 moko 15334: /* Override any gcc2 internal prototype to avoid an error. */
15335: #ifdef __cplusplus
15336: extern "C"
15337: #endif
15338: /* We use char because int might match the return type of a gcc2
15339: builtin and then its argument prototype would still apply. */
15340: char dlopen ();
15341: int
15342: main ()
15343: {
15344: dlopen ();
15345: ;
15346: return 0;
15347: }
15348: _ACEOF
15349: rm -f conftest.$ac_objext conftest$ac_exeext
15350: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351: (eval $ac_link) 2>conftest.er1
15352: ac_status=$?
15353: grep -v '^ *+' conftest.er1 >conftest.err
15354: rm -f conftest.er1
15355: cat conftest.err >&5
15356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357: (exit $ac_status); } &&
15358: { ac_try='test -z "$ac_c_werror_flag"
15359: || test ! -s conftest.err'
15360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361: (eval $ac_try) 2>&5
15362: ac_status=$?
15363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364: (exit $ac_status); }; } &&
15365: { ac_try='test -s conftest$ac_exeext'
15366: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367: (eval $ac_try) 2>&5
15368: ac_status=$?
15369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370: (exit $ac_status); }; }; then
15371: ac_cv_search_dlopen="-l$ac_lib"
15372: break
1.8 moko 15373: else
1.11 moko 15374: echo "$as_me: failed program was:" >&5
15375: sed 's/^/| /' conftest.$ac_ext >&5
15376:
15377: fi
15378: rm -f conftest.err conftest.$ac_objext \
15379: conftest$ac_exeext conftest.$ac_ext
15380: done
1.8 moko 15381: fi
15382: LIBS=$ac_func_search_save_LIBS
15383: fi
1.11 moko 15384: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15385: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15386: if test "$ac_cv_search_dlopen" != no; then
15387: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
1.8 moko 15388:
1.11 moko 15389: cat >>confdefs.h <<\_ACEOF
15390: #define HAVE_LIBDL 1
15391: _ACEOF
1.8 moko 15392:
15393: if test "$ac_cv_search_dlopen" != "none required" ; then
15394: LIBADD_DLOPEN="-ldl"
15395: fi
15396: libltdl_cv_lib_dl_dlopen="yes"
15397: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15398: else
1.11 moko 15399: cat >conftest.$ac_ext <<_ACEOF
15400: /* confdefs.h. */
15401: _ACEOF
15402: cat confdefs.h >>conftest.$ac_ext
15403: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15404: /* end confdefs.h. */
15405: #if HAVE_DLFCN_H
15406: # include <dlfcn.h>
15407: #endif
15408:
15409: int
15410: main ()
15411: {
15412: dlopen(0, 0);
15413: ;
15414: return 0;
15415: }
15416: _ACEOF
1.11 moko 15417: rm -f conftest.$ac_objext conftest$ac_exeext
15418: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15419: (eval $ac_link) 2>conftest.er1
15420: ac_status=$?
15421: grep -v '^ *+' conftest.er1 >conftest.err
15422: rm -f conftest.er1
15423: cat conftest.err >&5
15424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425: (exit $ac_status); } &&
15426: { ac_try='test -z "$ac_c_werror_flag"
15427: || test ! -s conftest.err'
15428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429: (eval $ac_try) 2>&5
15430: ac_status=$?
15431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432: (exit $ac_status); }; } &&
15433: { ac_try='test -s conftest$ac_exeext'
15434: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435: (eval $ac_try) 2>&5
15436: ac_status=$?
15437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438: (exit $ac_status); }; }; then
1.8 moko 15439:
1.11 moko 15440: cat >>confdefs.h <<\_ACEOF
15441: #define HAVE_LIBDL 1
15442: _ACEOF
1.8 moko 15443:
15444: libltdl_cv_func_dlopen="yes"
15445: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15446: else
1.11 moko 15447: echo "$as_me: failed program was:" >&5
15448: sed 's/^/| /' conftest.$ac_ext >&5
15449:
15450: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15451: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15452: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15453: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15454: else
15455: ac_check_lib_save_LIBS=$LIBS
15456: LIBS="-lsvld $LIBS"
1.11 moko 15457: cat >conftest.$ac_ext <<_ACEOF
15458: /* confdefs.h. */
15459: _ACEOF
15460: cat confdefs.h >>conftest.$ac_ext
15461: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15462: /* end confdefs.h. */
15463:
1.11 moko 15464: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15465: #ifdef __cplusplus
15466: extern "C"
15467: #endif
1.11 moko 15468: /* We use char because int might match the return type of a gcc2
15469: builtin and then its argument prototype would still apply. */
1.8 moko 15470: char dlopen ();
15471: int
15472: main ()
15473: {
1.11 moko 15474: dlopen ();
1.8 moko 15475: ;
15476: return 0;
15477: }
15478: _ACEOF
1.11 moko 15479: rm -f conftest.$ac_objext conftest$ac_exeext
15480: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15481: (eval $ac_link) 2>conftest.er1
15482: ac_status=$?
15483: grep -v '^ *+' conftest.er1 >conftest.err
15484: rm -f conftest.er1
15485: cat conftest.err >&5
15486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487: (exit $ac_status); } &&
15488: { ac_try='test -z "$ac_c_werror_flag"
15489: || test ! -s conftest.err'
15490: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491: (eval $ac_try) 2>&5
15492: ac_status=$?
15493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494: (exit $ac_status); }; } &&
15495: { ac_try='test -s conftest$ac_exeext'
15496: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497: (eval $ac_try) 2>&5
15498: ac_status=$?
15499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500: (exit $ac_status); }; }; then
1.8 moko 15501: ac_cv_lib_svld_dlopen=yes
15502: else
1.11 moko 15503: echo "$as_me: failed program was:" >&5
15504: sed 's/^/| /' conftest.$ac_ext >&5
15505:
15506: ac_cv_lib_svld_dlopen=no
1.8 moko 15507: fi
1.11 moko 15508: rm -f conftest.err conftest.$ac_objext \
15509: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15510: LIBS=$ac_check_lib_save_LIBS
15511: fi
1.11 moko 15512: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15513: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15514: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 15515:
1.11 moko 15516: cat >>confdefs.h <<\_ACEOF
15517: #define HAVE_LIBDL 1
15518: _ACEOF
1.8 moko 15519:
15520: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15521: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15522: fi
15523:
15524: fi
1.11 moko 15525: rm -f conftest.err conftest.$ac_objext \
15526: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15527: fi
15528:
15529: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15530: then
15531: lt_save_LIBS="$LIBS"
15532: LIBS="$LIBS $LIBADD_DLOPEN"
1.11 moko 15533:
15534: for ac_func in dlerror
15535: do
15536: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15537: echo "$as_me:$LINENO: checking for $ac_func" >&5
15538: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15539: if eval "test \"\${$as_ac_var+set}\" = set"; then
15540: echo $ECHO_N "(cached) $ECHO_C" >&6
15541: else
15542: cat >conftest.$ac_ext <<_ACEOF
15543: /* confdefs.h. */
15544: _ACEOF
15545: cat confdefs.h >>conftest.$ac_ext
15546: cat >>conftest.$ac_ext <<_ACEOF
15547: /* end confdefs.h. */
15548: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15549: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15550: #define $ac_func innocuous_$ac_func
15551:
15552: /* System header to define __stub macros and hopefully few prototypes,
15553: which can conflict with char $ac_func (); below.
15554: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15555: <limits.h> exists even on freestanding compilers. */
15556:
15557: #ifdef __STDC__
15558: # include <limits.h>
15559: #else
15560: # include <assert.h>
15561: #endif
15562:
15563: #undef $ac_func
15564:
15565: /* Override any gcc2 internal prototype to avoid an error. */
15566: #ifdef __cplusplus
15567: extern "C"
15568: {
15569: #endif
15570: /* We use char because int might match the return type of a gcc2
15571: builtin and then its argument prototype would still apply. */
15572: char $ac_func ();
15573: /* The GNU C library defines this for functions which it implements
15574: to always fail with ENOSYS. Some functions are actually named
15575: something starting with __ and the normal name is an alias. */
15576: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15577: choke me
15578: #else
15579: char (*f) () = $ac_func;
15580: #endif
15581: #ifdef __cplusplus
15582: }
15583: #endif
15584:
15585: int
15586: main ()
15587: {
15588: return f != $ac_func;
15589: ;
15590: return 0;
15591: }
15592: _ACEOF
15593: rm -f conftest.$ac_objext conftest$ac_exeext
15594: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15595: (eval $ac_link) 2>conftest.er1
15596: ac_status=$?
15597: grep -v '^ *+' conftest.er1 >conftest.err
15598: rm -f conftest.er1
15599: cat conftest.err >&5
15600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601: (exit $ac_status); } &&
15602: { ac_try='test -z "$ac_c_werror_flag"
15603: || test ! -s conftest.err'
15604: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605: (eval $ac_try) 2>&5
15606: ac_status=$?
15607: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608: (exit $ac_status); }; } &&
15609: { ac_try='test -s conftest$ac_exeext'
15610: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611: (eval $ac_try) 2>&5
15612: ac_status=$?
15613: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614: (exit $ac_status); }; }; then
15615: eval "$as_ac_var=yes"
15616: else
15617: echo "$as_me: failed program was:" >&5
15618: sed 's/^/| /' conftest.$ac_ext >&5
15619:
15620: eval "$as_ac_var=no"
15621: fi
15622: rm -f conftest.err conftest.$ac_objext \
15623: conftest$ac_exeext conftest.$ac_ext
15624: fi
15625: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15626: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15627: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 15628: cat >>confdefs.h <<_ACEOF
1.11 moko 15629: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 15630: _ACEOF
15631:
15632: fi
15633: done
15634:
15635: LIBS="$lt_save_LIBS"
15636: fi
15637:
15638:
15639: LIBADD_SHL_LOAD=
1.11 moko 15640: echo "$as_me:$LINENO: checking for shl_load" >&5
15641: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15642: if test "${ac_cv_func_shl_load+set}" = set; then
15643: echo $ECHO_N "(cached) $ECHO_C" >&6
15644: else
15645: cat >conftest.$ac_ext <<_ACEOF
15646: /* confdefs.h. */
15647: _ACEOF
15648: cat confdefs.h >>conftest.$ac_ext
15649: cat >>conftest.$ac_ext <<_ACEOF
15650: /* end confdefs.h. */
15651: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15652: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15653: #define shl_load innocuous_shl_load
15654:
15655: /* System header to define __stub macros and hopefully few prototypes,
15656: which can conflict with char shl_load (); below.
15657: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15658: <limits.h> exists even on freestanding compilers. */
15659:
15660: #ifdef __STDC__
15661: # include <limits.h>
15662: #else
15663: # include <assert.h>
15664: #endif
15665:
15666: #undef shl_load
15667:
15668: /* Override any gcc2 internal prototype to avoid an error. */
15669: #ifdef __cplusplus
15670: extern "C"
15671: {
15672: #endif
15673: /* We use char because int might match the return type of a gcc2
15674: builtin and then its argument prototype would still apply. */
15675: char shl_load ();
15676: /* The GNU C library defines this for functions which it implements
15677: to always fail with ENOSYS. Some functions are actually named
15678: something starting with __ and the normal name is an alias. */
15679: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15680: choke me
15681: #else
15682: char (*f) () = shl_load;
15683: #endif
15684: #ifdef __cplusplus
15685: }
15686: #endif
15687:
15688: int
15689: main ()
15690: {
15691: return f != shl_load;
15692: ;
15693: return 0;
15694: }
15695: _ACEOF
15696: rm -f conftest.$ac_objext conftest$ac_exeext
15697: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15698: (eval $ac_link) 2>conftest.er1
15699: ac_status=$?
15700: grep -v '^ *+' conftest.er1 >conftest.err
15701: rm -f conftest.er1
15702: cat conftest.err >&5
15703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704: (exit $ac_status); } &&
15705: { ac_try='test -z "$ac_c_werror_flag"
15706: || test ! -s conftest.err'
15707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708: (eval $ac_try) 2>&5
15709: ac_status=$?
15710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711: (exit $ac_status); }; } &&
15712: { ac_try='test -s conftest$ac_exeext'
15713: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714: (eval $ac_try) 2>&5
15715: ac_status=$?
15716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717: (exit $ac_status); }; }; then
15718: ac_cv_func_shl_load=yes
15719: else
15720: echo "$as_me: failed program was:" >&5
15721: sed 's/^/| /' conftest.$ac_ext >&5
15722:
15723: ac_cv_func_shl_load=no
15724: fi
15725: rm -f conftest.err conftest.$ac_objext \
15726: conftest$ac_exeext conftest.$ac_ext
15727: fi
15728: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15729: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15730: if test $ac_cv_func_shl_load = yes; then
1.8 moko 15731:
1.11 moko 15732: cat >>confdefs.h <<\_ACEOF
15733: #define HAVE_SHL_LOAD 1
15734: _ACEOF
1.8 moko 15735:
15736: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15737: else
1.11 moko 15738: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15739: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15740: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15741: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15742: else
15743: ac_check_lib_save_LIBS=$LIBS
15744: LIBS="-ldld $LIBS"
1.11 moko 15745: cat >conftest.$ac_ext <<_ACEOF
15746: /* confdefs.h. */
15747: _ACEOF
15748: cat confdefs.h >>conftest.$ac_ext
15749: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15750: /* end confdefs.h. */
15751:
1.11 moko 15752: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15753: #ifdef __cplusplus
15754: extern "C"
15755: #endif
1.11 moko 15756: /* We use char because int might match the return type of a gcc2
15757: builtin and then its argument prototype would still apply. */
1.8 moko 15758: char shl_load ();
15759: int
15760: main ()
15761: {
1.11 moko 15762: shl_load ();
1.8 moko 15763: ;
15764: return 0;
15765: }
15766: _ACEOF
1.11 moko 15767: rm -f conftest.$ac_objext conftest$ac_exeext
15768: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769: (eval $ac_link) 2>conftest.er1
15770: ac_status=$?
15771: grep -v '^ *+' conftest.er1 >conftest.err
15772: rm -f conftest.er1
15773: cat conftest.err >&5
15774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775: (exit $ac_status); } &&
15776: { ac_try='test -z "$ac_c_werror_flag"
15777: || test ! -s conftest.err'
15778: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779: (eval $ac_try) 2>&5
15780: ac_status=$?
15781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782: (exit $ac_status); }; } &&
15783: { ac_try='test -s conftest$ac_exeext'
15784: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785: (eval $ac_try) 2>&5
15786: ac_status=$?
15787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788: (exit $ac_status); }; }; then
1.8 moko 15789: ac_cv_lib_dld_shl_load=yes
15790: else
1.11 moko 15791: echo "$as_me: failed program was:" >&5
15792: sed 's/^/| /' conftest.$ac_ext >&5
15793:
15794: ac_cv_lib_dld_shl_load=no
1.8 moko 15795: fi
1.11 moko 15796: rm -f conftest.err conftest.$ac_objext \
15797: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15798: LIBS=$ac_check_lib_save_LIBS
15799: fi
1.11 moko 15800: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15801: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15802: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 15803:
1.11 moko 15804: cat >>confdefs.h <<\_ACEOF
15805: #define HAVE_SHL_LOAD 1
15806: _ACEOF
1.8 moko 15807:
15808: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15809: LIBADD_SHL_LOAD="-ldld"
15810: fi
15811:
15812: fi
15813:
15814:
15815:
15816: case $host_os in
15817: darwin[1567].*)
15818: # We only want this for pre-Mac OS X 10.4.
1.11 moko 15819: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15820: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15821: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15822: echo $ECHO_N "(cached) $ECHO_C" >&6
15823: else
15824: cat >conftest.$ac_ext <<_ACEOF
15825: /* confdefs.h. */
15826: _ACEOF
15827: cat confdefs.h >>conftest.$ac_ext
15828: cat >>conftest.$ac_ext <<_ACEOF
15829: /* end confdefs.h. */
15830: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15831: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15832: #define _dyld_func_lookup innocuous__dyld_func_lookup
15833:
15834: /* System header to define __stub macros and hopefully few prototypes,
15835: which can conflict with char _dyld_func_lookup (); below.
15836: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15837: <limits.h> exists even on freestanding compilers. */
15838:
15839: #ifdef __STDC__
15840: # include <limits.h>
15841: #else
15842: # include <assert.h>
15843: #endif
15844:
15845: #undef _dyld_func_lookup
15846:
15847: /* Override any gcc2 internal prototype to avoid an error. */
15848: #ifdef __cplusplus
15849: extern "C"
15850: {
15851: #endif
15852: /* We use char because int might match the return type of a gcc2
15853: builtin and then its argument prototype would still apply. */
15854: char _dyld_func_lookup ();
15855: /* The GNU C library defines this for functions which it implements
15856: to always fail with ENOSYS. Some functions are actually named
15857: something starting with __ and the normal name is an alias. */
15858: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15859: choke me
15860: #else
15861: char (*f) () = _dyld_func_lookup;
15862: #endif
15863: #ifdef __cplusplus
15864: }
15865: #endif
15866:
15867: int
15868: main ()
15869: {
15870: return f != _dyld_func_lookup;
15871: ;
15872: return 0;
15873: }
15874: _ACEOF
15875: rm -f conftest.$ac_objext conftest$ac_exeext
15876: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877: (eval $ac_link) 2>conftest.er1
15878: ac_status=$?
15879: grep -v '^ *+' conftest.er1 >conftest.err
15880: rm -f conftest.er1
15881: cat conftest.err >&5
15882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883: (exit $ac_status); } &&
15884: { ac_try='test -z "$ac_c_werror_flag"
15885: || test ! -s conftest.err'
15886: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887: (eval $ac_try) 2>&5
15888: ac_status=$?
15889: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890: (exit $ac_status); }; } &&
15891: { ac_try='test -s conftest$ac_exeext'
15892: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893: (eval $ac_try) 2>&5
15894: ac_status=$?
15895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896: (exit $ac_status); }; }; then
15897: ac_cv_func__dyld_func_lookup=yes
15898: else
15899: echo "$as_me: failed program was:" >&5
15900: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 15901:
1.11 moko 15902: ac_cv_func__dyld_func_lookup=no
15903: fi
15904: rm -f conftest.err conftest.$ac_objext \
15905: conftest$ac_exeext conftest.$ac_ext
15906: fi
15907: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15908: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15909: if test $ac_cv_func__dyld_func_lookup = yes; then
15910:
15911: cat >>confdefs.h <<\_ACEOF
15912: #define HAVE_DYLD 1
15913: _ACEOF
1.8 moko 15914:
15915: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15916: fi
15917:
15918: ;;
15919: beos*)
15920: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15921: ;;
15922: cygwin* | mingw* | os2* | pw32*)
1.11 moko 15923: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15924: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15925: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15926: echo $ECHO_N "(cached) $ECHO_C" >&6
15927: else
15928: cat >conftest.$ac_ext <<_ACEOF
15929: /* confdefs.h. */
15930: _ACEOF
15931: cat confdefs.h >>conftest.$ac_ext
15932: cat >>conftest.$ac_ext <<_ACEOF
15933: /* end confdefs.h. */
15934: #include <sys/cygwin.h>
15935:
15936: int
15937: main ()
15938: {
15939: #ifndef cygwin_conv_path
15940: char *p = (char *) cygwin_conv_path;
15941: #endif
15942:
15943: ;
15944: return 0;
15945: }
15946: _ACEOF
15947: rm -f conftest.$ac_objext
15948: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949: (eval $ac_compile) 2>conftest.er1
15950: ac_status=$?
15951: grep -v '^ *+' conftest.er1 >conftest.err
15952: rm -f conftest.er1
15953: cat conftest.err >&5
15954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955: (exit $ac_status); } &&
15956: { ac_try='test -z "$ac_c_werror_flag"
15957: || test ! -s conftest.err'
15958: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959: (eval $ac_try) 2>&5
15960: ac_status=$?
15961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962: (exit $ac_status); }; } &&
15963: { ac_try='test -s conftest.$ac_objext'
15964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965: (eval $ac_try) 2>&5
15966: ac_status=$?
15967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968: (exit $ac_status); }; }; then
15969: ac_cv_have_decl_cygwin_conv_path=yes
1.8 moko 15970: else
1.11 moko 15971: echo "$as_me: failed program was:" >&5
15972: sed 's/^/| /' conftest.$ac_ext >&5
15973:
15974: ac_cv_have_decl_cygwin_conv_path=no
15975: fi
15976: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.8 moko 15977: fi
1.11 moko 15978: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15979: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15980: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
1.8 moko 15981:
15982: cat >>confdefs.h <<_ACEOF
1.11 moko 15983: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15984: _ACEOF
15985:
15986:
15987: else
15988: cat >>confdefs.h <<_ACEOF
15989: #define HAVE_DECL_CYGWIN_CONV_PATH 0
1.8 moko 15990: _ACEOF
15991:
1.11 moko 15992:
15993: fi
15994:
15995:
1.8 moko 15996: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15997: ;;
15998: esac
15999:
1.11 moko 16000: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16001: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16002: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16003: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16004: else
16005: ac_check_lib_save_LIBS=$LIBS
16006: LIBS="-ldld $LIBS"
1.11 moko 16007: cat >conftest.$ac_ext <<_ACEOF
16008: /* confdefs.h. */
16009: _ACEOF
16010: cat confdefs.h >>conftest.$ac_ext
16011: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16012: /* end confdefs.h. */
16013:
1.11 moko 16014: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16015: #ifdef __cplusplus
16016: extern "C"
16017: #endif
1.11 moko 16018: /* We use char because int might match the return type of a gcc2
16019: builtin and then its argument prototype would still apply. */
1.8 moko 16020: char dld_link ();
16021: int
16022: main ()
16023: {
1.11 moko 16024: dld_link ();
1.8 moko 16025: ;
16026: return 0;
16027: }
16028: _ACEOF
1.11 moko 16029: rm -f conftest.$ac_objext conftest$ac_exeext
16030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16031: (eval $ac_link) 2>conftest.er1
16032: ac_status=$?
16033: grep -v '^ *+' conftest.er1 >conftest.err
16034: rm -f conftest.er1
16035: cat conftest.err >&5
16036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037: (exit $ac_status); } &&
16038: { ac_try='test -z "$ac_c_werror_flag"
16039: || test ! -s conftest.err'
16040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041: (eval $ac_try) 2>&5
16042: ac_status=$?
16043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044: (exit $ac_status); }; } &&
16045: { ac_try='test -s conftest$ac_exeext'
16046: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047: (eval $ac_try) 2>&5
16048: ac_status=$?
16049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050: (exit $ac_status); }; }; then
1.8 moko 16051: ac_cv_lib_dld_dld_link=yes
16052: else
1.11 moko 16053: echo "$as_me: failed program was:" >&5
16054: sed 's/^/| /' conftest.$ac_ext >&5
16055:
16056: ac_cv_lib_dld_dld_link=no
1.8 moko 16057: fi
1.11 moko 16058: rm -f conftest.err conftest.$ac_objext \
16059: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16060: LIBS=$ac_check_lib_save_LIBS
16061: fi
1.11 moko 16062: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16063: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16064: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 16065:
1.11 moko 16066: cat >>confdefs.h <<\_ACEOF
16067: #define HAVE_DLD 1
16068: _ACEOF
1.8 moko 16069:
16070: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16071: fi
16072:
16073:
16074:
16075:
16076: LT_DLPREOPEN=
16077: if test -n "$LT_DLLOADERS"
16078: then
16079: for lt_loader in $LT_DLLOADERS; do
16080: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16081: done
16082:
1.11 moko 16083: cat >>confdefs.h <<\_ACEOF
16084: #define HAVE_LIBDLLOADER 1
16085: _ACEOF
1.8 moko 16086:
16087: fi
16088:
16089:
16090: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16091:
16092:
16093: ac_ext=c
16094: ac_cpp='$CPP $CPPFLAGS'
16095: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16096: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16097: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16098:
16099:
1.11 moko 16100: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16101: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16102: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16103: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16104: else
16105: lt_cv_sys_symbol_underscore=no
16106: cat > conftest.$ac_ext <<_LT_EOF
16107: void nm_test_func(){}
16108: int main(){nm_test_func;return 0;}
16109: _LT_EOF
1.11 moko 16110: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 16111: (eval $ac_compile) 2>&5
16112: ac_status=$?
1.11 moko 16113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114: (exit $ac_status); }; then
1.8 moko 16115: # Now try to grab the symbols.
16116: ac_nlist=conftest.nm
1.11 moko 16117: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
1.8 moko 16118: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16119: ac_status=$?
1.11 moko 16120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121: (exit $ac_status); } && test -s "$ac_nlist"; then
1.8 moko 16122: # See whether the symbols have a leading underscore.
16123: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16124: lt_cv_sys_symbol_underscore=yes
16125: else
16126: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16127: :
16128: else
16129: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16130: fi
16131: fi
16132: else
16133: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16134: fi
16135: else
16136: echo "configure: failed program was:" >&5
16137: cat conftest.c >&5
16138: fi
16139: rm -rf conftest*
16140:
16141: fi
1.11 moko 16142: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16143: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
1.8 moko 16144: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16145:
16146:
16147: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16148: if test x"$libltdl_cv_func_dlopen" = xyes ||
16149: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.11 moko 16150: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16151: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16152: if test "${libltdl_cv_need_uscore+set}" = set; then
16153: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16154: else
16155: libltdl_cv_need_uscore=unknown
16156: save_LIBS="$LIBS"
16157: LIBS="$LIBS $LIBADD_DLOPEN"
16158: if test "$cross_compiling" = yes; then :
16159: libltdl_cv_need_uscore=cross
16160: else
16161: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16162: lt_status=$lt_dlunknown
16163: cat > conftest.$ac_ext <<_LT_EOF
16164: #line $LINENO "configure"
16165: #include "confdefs.h"
16166:
16167: #if HAVE_DLFCN_H
16168: #include <dlfcn.h>
16169: #endif
16170:
16171: #include <stdio.h>
16172:
16173: #ifdef RTLD_GLOBAL
16174: # define LT_DLGLOBAL RTLD_GLOBAL
16175: #else
16176: # ifdef DL_GLOBAL
16177: # define LT_DLGLOBAL DL_GLOBAL
16178: # else
16179: # define LT_DLGLOBAL 0
16180: # endif
16181: #endif
16182:
16183: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16184: find out it does not work in some platform. */
16185: #ifndef LT_DLLAZY_OR_NOW
16186: # ifdef RTLD_LAZY
16187: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16188: # else
16189: # ifdef DL_LAZY
16190: # define LT_DLLAZY_OR_NOW DL_LAZY
16191: # else
16192: # ifdef RTLD_NOW
16193: # define LT_DLLAZY_OR_NOW RTLD_NOW
16194: # else
16195: # ifdef DL_NOW
16196: # define LT_DLLAZY_OR_NOW DL_NOW
16197: # else
16198: # define LT_DLLAZY_OR_NOW 0
16199: # endif
16200: # endif
16201: # endif
16202: # endif
16203: #endif
16204:
16205: /* When -fvisbility=hidden is used, assume the code has been annotated
16206: correspondingly for the symbols needed. */
16207: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16208: int fnord () __attribute__((visibility("default")));
16209: #endif
16210:
16211: int fnord () { return 42; }
16212: int main ()
16213: {
16214: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16215: int status = $lt_dlunknown;
16216:
16217: if (self)
16218: {
16219: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16220: else
16221: {
16222: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16223: else puts (dlerror ());
16224: }
16225: /* dlclose (self); */
16226: }
16227: else
16228: puts (dlerror ());
16229:
16230: return status;
16231: }
16232: _LT_EOF
1.11 moko 16233: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 16234: (eval $ac_link) 2>&5
16235: ac_status=$?
1.11 moko 16236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 16238: (./conftest; exit; ) >&5 2>/dev/null
16239: lt_status=$?
16240: case x$lt_status in
16241: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16242: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16243: x$lt_dlunknown|x*) ;;
16244: esac
16245: else :
16246: # compilation failed
16247:
16248: fi
16249: fi
16250: rm -fr conftest*
16251:
16252: LIBS="$save_LIBS"
16253:
16254: fi
1.11 moko 16255: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16256: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
1.8 moko 16257: fi
16258: fi
16259:
16260: if test x"$libltdl_cv_need_uscore" = xyes; then
16261:
1.11 moko 16262: cat >>confdefs.h <<\_ACEOF
16263: #define NEED_USCORE 1
16264: _ACEOF
1.8 moko 16265:
16266: fi
16267:
1.11 moko 16268: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16269: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16270: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16271: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16272: else
16273: # PORTME does your system automatically load deplibs for dlopen?
16274: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16275: # For now, we just catch OSes we know something about -- in the
16276: # future, we'll try test this programmatically.
16277: lt_cv_sys_dlopen_deplibs=unknown
16278: case $host_os in
16279: aix3*|aix4.1.*|aix4.2.*)
16280: # Unknown whether this is true for these versions of AIX, but
16281: # we want this `case' here to explicitly catch those versions.
16282: lt_cv_sys_dlopen_deplibs=unknown
16283: ;;
16284: aix[4-9]*)
16285: lt_cv_sys_dlopen_deplibs=yes
16286: ;;
16287: amigaos*)
16288: case $host_cpu in
16289: powerpc)
16290: lt_cv_sys_dlopen_deplibs=no
16291: ;;
16292: esac
16293: ;;
16294: darwin*)
16295: # Assuming the user has installed a libdl from somewhere, this is true
16296: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16297: lt_cv_sys_dlopen_deplibs=yes
16298: ;;
16299: freebsd* | dragonfly*)
16300: lt_cv_sys_dlopen_deplibs=yes
16301: ;;
16302: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16303: # GNU and its variants, using gnu ld.so (Glibc)
16304: lt_cv_sys_dlopen_deplibs=yes
16305: ;;
16306: hpux10*|hpux11*)
16307: lt_cv_sys_dlopen_deplibs=yes
16308: ;;
16309: interix*)
16310: lt_cv_sys_dlopen_deplibs=yes
16311: ;;
16312: irix[12345]*|irix6.[01]*)
16313: # Catch all versions of IRIX before 6.2, and indicate that we don't
16314: # know how it worked for any of those versions.
16315: lt_cv_sys_dlopen_deplibs=unknown
16316: ;;
16317: irix*)
16318: # The case above catches anything before 6.2, and it's known that
16319: # at 6.2 and later dlopen does load deplibs.
16320: lt_cv_sys_dlopen_deplibs=yes
16321: ;;
16322: netbsd*)
16323: lt_cv_sys_dlopen_deplibs=yes
16324: ;;
16325: openbsd*)
16326: lt_cv_sys_dlopen_deplibs=yes
16327: ;;
16328: osf[1234]*)
16329: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16330: # it did *not* use an RPATH in a shared library to find objects the
16331: # library depends on, so we explicitly say `no'.
16332: lt_cv_sys_dlopen_deplibs=no
16333: ;;
16334: osf5.0|osf5.0a|osf5.1)
16335: # dlopen *does* load deplibs and with the right loader patch applied
16336: # it even uses RPATH in a shared library to search for shared objects
16337: # that the library depends on, but there's no easy way to know if that
16338: # patch is installed. Since this is the case, all we can really
16339: # say is unknown -- it depends on the patch being installed. If
16340: # it is, this changes to `yes'. Without it, it would be `no'.
16341: lt_cv_sys_dlopen_deplibs=unknown
16342: ;;
16343: osf*)
16344: # the two cases above should catch all versions of osf <= 5.1. Read
16345: # the comments above for what we know about them.
16346: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16347: # is used to find them so we can finally say `yes'.
16348: lt_cv_sys_dlopen_deplibs=yes
16349: ;;
16350: qnx*)
16351: lt_cv_sys_dlopen_deplibs=yes
16352: ;;
16353: solaris*)
16354: lt_cv_sys_dlopen_deplibs=yes
16355: ;;
16356: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16357: libltdl_cv_sys_dlopen_deplibs=yes
16358: ;;
16359: esac
16360:
16361: fi
1.11 moko 16362: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16363: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
1.8 moko 16364: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16365:
1.11 moko 16366: cat >>confdefs.h <<\_ACEOF
16367: #define LTDL_DLOPEN_DEPLIBS 1
16368: _ACEOF
1.8 moko 16369:
16370: fi
16371:
16372: :
16373:
1.11 moko 16374:
1.8 moko 16375: for ac_header in argz.h
1.11 moko 16376: do
16377: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16378: echo "$as_me:$LINENO: checking for $ac_header" >&5
16379: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16380: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16381: echo $ECHO_N "(cached) $ECHO_C" >&6
16382: else
16383: cat >conftest.$ac_ext <<_ACEOF
16384: /* confdefs.h. */
16385: _ACEOF
16386: cat confdefs.h >>conftest.$ac_ext
16387: cat >>conftest.$ac_ext <<_ACEOF
16388: /* end confdefs.h. */
16389: $ac_includes_default
16390:
16391: #include <$ac_header>
16392: _ACEOF
16393: rm -f conftest.$ac_objext
16394: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395: (eval $ac_compile) 2>conftest.er1
16396: ac_status=$?
16397: grep -v '^ *+' conftest.er1 >conftest.err
16398: rm -f conftest.er1
16399: cat conftest.err >&5
16400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401: (exit $ac_status); } &&
16402: { ac_try='test -z "$ac_c_werror_flag"
16403: || test ! -s conftest.err'
16404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405: (eval $ac_try) 2>&5
16406: ac_status=$?
16407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408: (exit $ac_status); }; } &&
16409: { ac_try='test -s conftest.$ac_objext'
16410: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411: (eval $ac_try) 2>&5
16412: ac_status=$?
16413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414: (exit $ac_status); }; }; then
16415: eval "$as_ac_Header=yes"
16416: else
16417: echo "$as_me: failed program was:" >&5
16418: sed 's/^/| /' conftest.$ac_ext >&5
16419:
16420: eval "$as_ac_Header=no"
16421: fi
16422: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16423: fi
16424: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16425: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16426: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 16427: cat >>confdefs.h <<_ACEOF
1.11 moko 16428: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16429: _ACEOF
16430:
16431: fi
16432:
16433: done
16434:
16435:
1.11 moko 16436: echo "$as_me:$LINENO: checking for error_t" >&5
16437: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16438: if test "${ac_cv_type_error_t+set}" = set; then
16439: echo $ECHO_N "(cached) $ECHO_C" >&6
16440: else
16441: cat >conftest.$ac_ext <<_ACEOF
16442: /* confdefs.h. */
16443: _ACEOF
16444: cat confdefs.h >>conftest.$ac_ext
16445: cat >>conftest.$ac_ext <<_ACEOF
16446: /* end confdefs.h. */
16447: #if defined(HAVE_ARGZ_H)
1.8 moko 16448: # include <argz.h>
16449: #endif
1.11 moko 16450:
16451: int
16452: main ()
16453: {
16454: if ((error_t *) 0)
16455: return 0;
16456: if (sizeof (error_t))
16457: return 0;
16458: ;
16459: return 0;
16460: }
16461: _ACEOF
16462: rm -f conftest.$ac_objext
16463: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464: (eval $ac_compile) 2>conftest.er1
16465: ac_status=$?
16466: grep -v '^ *+' conftest.er1 >conftest.err
16467: rm -f conftest.er1
16468: cat conftest.err >&5
16469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470: (exit $ac_status); } &&
16471: { ac_try='test -z "$ac_c_werror_flag"
16472: || test ! -s conftest.err'
16473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474: (eval $ac_try) 2>&5
16475: ac_status=$?
16476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477: (exit $ac_status); }; } &&
16478: { ac_try='test -s conftest.$ac_objext'
16479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480: (eval $ac_try) 2>&5
16481: ac_status=$?
16482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483: (exit $ac_status); }; }; then
16484: ac_cv_type_error_t=yes
16485: else
16486: echo "$as_me: failed program was:" >&5
16487: sed 's/^/| /' conftest.$ac_ext >&5
16488:
16489: ac_cv_type_error_t=no
16490: fi
16491: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16492: fi
16493: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16494: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16495: if test $ac_cv_type_error_t = yes; then
1.8 moko 16496:
16497: cat >>confdefs.h <<_ACEOF
16498: #define HAVE_ERROR_T 1
16499: _ACEOF
16500:
16501:
16502: else
16503:
1.11 moko 16504: cat >>confdefs.h <<\_ACEOF
16505: #define error_t int
16506: _ACEOF
1.8 moko 16507:
16508:
1.11 moko 16509: cat >>confdefs.h <<\_ACEOF
16510: #define __error_t_defined 1
16511: _ACEOF
1.8 moko 16512:
16513: fi
16514:
16515:
16516: ARGZ_H=
1.11 moko 16517:
16518:
16519:
16520:
16521:
16522:
16523:
1.8 moko 16524: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16525: argz_next argz_stringify
1.11 moko 16526: do
16527: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16528: echo "$as_me:$LINENO: checking for $ac_func" >&5
16529: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16530: if eval "test \"\${$as_ac_var+set}\" = set"; then
16531: echo $ECHO_N "(cached) $ECHO_C" >&6
16532: else
16533: cat >conftest.$ac_ext <<_ACEOF
16534: /* confdefs.h. */
16535: _ACEOF
16536: cat confdefs.h >>conftest.$ac_ext
16537: cat >>conftest.$ac_ext <<_ACEOF
16538: /* end confdefs.h. */
16539: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16540: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16541: #define $ac_func innocuous_$ac_func
16542:
16543: /* System header to define __stub macros and hopefully few prototypes,
16544: which can conflict with char $ac_func (); below.
16545: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16546: <limits.h> exists even on freestanding compilers. */
16547:
16548: #ifdef __STDC__
16549: # include <limits.h>
16550: #else
16551: # include <assert.h>
16552: #endif
16553:
16554: #undef $ac_func
16555:
16556: /* Override any gcc2 internal prototype to avoid an error. */
16557: #ifdef __cplusplus
16558: extern "C"
16559: {
16560: #endif
16561: /* We use char because int might match the return type of a gcc2
16562: builtin and then its argument prototype would still apply. */
16563: char $ac_func ();
16564: /* The GNU C library defines this for functions which it implements
16565: to always fail with ENOSYS. Some functions are actually named
16566: something starting with __ and the normal name is an alias. */
16567: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16568: choke me
16569: #else
16570: char (*f) () = $ac_func;
16571: #endif
16572: #ifdef __cplusplus
16573: }
16574: #endif
16575:
16576: int
16577: main ()
16578: {
16579: return f != $ac_func;
16580: ;
16581: return 0;
16582: }
16583: _ACEOF
16584: rm -f conftest.$ac_objext conftest$ac_exeext
16585: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16586: (eval $ac_link) 2>conftest.er1
16587: ac_status=$?
16588: grep -v '^ *+' conftest.er1 >conftest.err
16589: rm -f conftest.er1
16590: cat conftest.err >&5
16591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592: (exit $ac_status); } &&
16593: { ac_try='test -z "$ac_c_werror_flag"
16594: || test ! -s conftest.err'
16595: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596: (eval $ac_try) 2>&5
16597: ac_status=$?
16598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599: (exit $ac_status); }; } &&
16600: { ac_try='test -s conftest$ac_exeext'
16601: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602: (eval $ac_try) 2>&5
16603: ac_status=$?
16604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605: (exit $ac_status); }; }; then
16606: eval "$as_ac_var=yes"
16607: else
16608: echo "$as_me: failed program was:" >&5
16609: sed 's/^/| /' conftest.$ac_ext >&5
16610:
16611: eval "$as_ac_var=no"
16612: fi
16613: rm -f conftest.err conftest.$ac_objext \
16614: conftest$ac_exeext conftest.$ac_ext
16615: fi
16616: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16617: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16618: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 16619: cat >>confdefs.h <<_ACEOF
1.11 moko 16620: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16621: _ACEOF
16622:
16623: else
16624: ARGZ_H=argz.h;
16625:
16626: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16627:
16628: fi
16629: done
16630:
16631:
1.11 moko 16632: if test -z "$ARGZ_H"; then
16633: echo "$as_me:$LINENO: checking if argz actually works" >&5
16634: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16635: if test "${lt_cv_sys_argz_works+set}" = set; then
16636: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16637: else
16638: case $host_os in #(
16639: *cygwin*)
16640: lt_cv_sys_argz_works=no
16641: if test "$cross_compiling" != no; then
16642: lt_cv_sys_argz_works="guessing no"
16643: else
16644: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16645: save_IFS=$IFS
16646: IFS=-.
16647: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16648: IFS=$save_IFS
16649: lt_os_major=${2-0}
16650: lt_os_minor=${3-0}
16651: lt_os_micro=${4-0}
16652: if test "$lt_os_major" -gt 1 \
16653: || { test "$lt_os_major" -eq 1 \
16654: && { test "$lt_os_minor" -gt 5 \
16655: || { test "$lt_os_minor" -eq 5 \
16656: && test "$lt_os_micro" -gt 24; }; }; }; then
16657: lt_cv_sys_argz_works=yes
16658: fi
16659: fi
16660: ;; #(
16661: *) lt_cv_sys_argz_works=yes ;;
16662: esac
16663: fi
1.11 moko 16664: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16665: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16666: if test "$lt_cv_sys_argz_works" = yes; then
1.8 moko 16667:
1.11 moko 16668: cat >>confdefs.h <<\_ACEOF
16669: #define HAVE_WORKING_ARGZ 1
16670: _ACEOF
1.8 moko 16671:
16672: else
16673: ARGZ_H=argz.h
16674:
16675:
16676: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16677:
16678: fi
1.11 moko 16679:
1.8 moko 16680: fi
16681:
16682:
16683:
1.11 moko 16684:
16685: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16686: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16687: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16688: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16689: else
16690: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16691: libltdl_cv_preloaded_symbols=yes
16692: else
16693: libltdl_cv_preloaded_symbols=no
16694: fi
16695:
16696: fi
1.11 moko 16697: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16698: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
1.8 moko 16699: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16700:
1.11 moko 16701: cat >>confdefs.h <<\_ACEOF
16702: #define HAVE_PRELOADED_SYMBOLS 1
16703: _ACEOF
1.8 moko 16704:
16705: fi
16706:
16707: # Set options
16708:
16709:
16710:
16711:
16712:
16713:
16714:
16715:
16716:
16717:
16718:
16719:
1.11 moko 16720: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16721: if test "${with_included_ltdl+set}" = set; then
16722: withval="$with_included_ltdl"
1.8 moko 16723:
1.11 moko 16724: fi;
1.8 moko 16725:
16726: if test "x$with_included_ltdl" != xyes; then
16727: # We are not being forced to use the included libltdl sources, so
16728: # decide whether there is a useful installed version we can use.
1.11 moko 16729: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16730: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16731: if test "${ac_cv_header_ltdl_h+set}" = set; then
16732: echo $ECHO_N "(cached) $ECHO_C" >&6
16733: else
16734: cat >conftest.$ac_ext <<_ACEOF
16735: /* confdefs.h. */
16736: _ACEOF
16737: cat confdefs.h >>conftest.$ac_ext
16738: cat >>conftest.$ac_ext <<_ACEOF
16739: /* end confdefs.h. */
16740: $ac_includes_default
16741:
16742:
16743: #include <ltdl.h>
16744: _ACEOF
16745: rm -f conftest.$ac_objext
16746: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16747: (eval $ac_compile) 2>conftest.er1
16748: ac_status=$?
16749: grep -v '^ *+' conftest.er1 >conftest.err
16750: rm -f conftest.er1
16751: cat conftest.err >&5
16752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753: (exit $ac_status); } &&
16754: { ac_try='test -z "$ac_c_werror_flag"
16755: || test ! -s conftest.err'
16756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757: (eval $ac_try) 2>&5
16758: ac_status=$?
16759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760: (exit $ac_status); }; } &&
16761: { ac_try='test -s conftest.$ac_objext'
16762: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763: (eval $ac_try) 2>&5
16764: ac_status=$?
16765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766: (exit $ac_status); }; }; then
16767: ac_cv_header_ltdl_h=yes
16768: else
16769: echo "$as_me: failed program was:" >&5
16770: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 16771:
1.11 moko 16772: ac_cv_header_ltdl_h=no
16773: fi
16774: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775: fi
16776: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16777: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16778: if test $ac_cv_header_ltdl_h = yes; then
16779: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16780: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16781: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16782: echo $ECHO_N "(cached) $ECHO_C" >&6
16783: else
16784: cat >conftest.$ac_ext <<_ACEOF
16785: /* confdefs.h. */
16786: _ACEOF
16787: cat confdefs.h >>conftest.$ac_ext
16788: cat >>conftest.$ac_ext <<_ACEOF
16789: /* end confdefs.h. */
16790: $ac_includes_default
1.8 moko 16791: #include <ltdl.h>
1.11 moko 16792:
16793: int
16794: main ()
16795: {
16796: #ifndef lt_dlinterface_register
16797: char *p = (char *) lt_dlinterface_register;
16798: #endif
16799:
16800: ;
16801: return 0;
16802: }
16803: _ACEOF
16804: rm -f conftest.$ac_objext
16805: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806: (eval $ac_compile) 2>conftest.er1
16807: ac_status=$?
16808: grep -v '^ *+' conftest.er1 >conftest.err
16809: rm -f conftest.er1
16810: cat conftest.err >&5
16811: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812: (exit $ac_status); } &&
16813: { ac_try='test -z "$ac_c_werror_flag"
16814: || test ! -s conftest.err'
16815: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816: (eval $ac_try) 2>&5
16817: ac_status=$?
16818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819: (exit $ac_status); }; } &&
16820: { ac_try='test -s conftest.$ac_objext'
16821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822: (eval $ac_try) 2>&5
16823: ac_status=$?
16824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825: (exit $ac_status); }; }; then
16826: ac_cv_have_decl_lt_dlinterface_register=yes
16827: else
16828: echo "$as_me: failed program was:" >&5
16829: sed 's/^/| /' conftest.$ac_ext >&5
16830:
16831: ac_cv_have_decl_lt_dlinterface_register=no
16832: fi
16833: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16834: fi
16835: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16836: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16837: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16838: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16839: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16840: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16841: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16842: else
16843: ac_check_lib_save_LIBS=$LIBS
16844: LIBS="-lltdl $LIBS"
1.11 moko 16845: cat >conftest.$ac_ext <<_ACEOF
16846: /* confdefs.h. */
16847: _ACEOF
16848: cat confdefs.h >>conftest.$ac_ext
16849: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16850: /* end confdefs.h. */
16851:
1.11 moko 16852: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16853: #ifdef __cplusplus
16854: extern "C"
16855: #endif
1.11 moko 16856: /* We use char because int might match the return type of a gcc2
16857: builtin and then its argument prototype would still apply. */
1.8 moko 16858: char lt_dladvise_preload ();
16859: int
16860: main ()
16861: {
1.11 moko 16862: lt_dladvise_preload ();
1.8 moko 16863: ;
16864: return 0;
16865: }
16866: _ACEOF
1.11 moko 16867: rm -f conftest.$ac_objext conftest$ac_exeext
16868: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16869: (eval $ac_link) 2>conftest.er1
16870: ac_status=$?
16871: grep -v '^ *+' conftest.er1 >conftest.err
16872: rm -f conftest.er1
16873: cat conftest.err >&5
16874: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875: (exit $ac_status); } &&
16876: { ac_try='test -z "$ac_c_werror_flag"
16877: || test ! -s conftest.err'
16878: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879: (eval $ac_try) 2>&5
16880: ac_status=$?
16881: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882: (exit $ac_status); }; } &&
16883: { ac_try='test -s conftest$ac_exeext'
16884: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885: (eval $ac_try) 2>&5
16886: ac_status=$?
16887: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888: (exit $ac_status); }; }; then
1.8 moko 16889: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16890: else
1.11 moko 16891: echo "$as_me: failed program was:" >&5
16892: sed 's/^/| /' conftest.$ac_ext >&5
16893:
16894: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16895: fi
1.11 moko 16896: rm -f conftest.err conftest.$ac_objext \
16897: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16898: LIBS=$ac_check_lib_save_LIBS
16899: fi
1.11 moko 16900: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16901: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16902: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
1.8 moko 16903: with_included_ltdl=no
16904: else
16905: with_included_ltdl=yes
16906: fi
16907:
16908: else
16909: with_included_ltdl=yes
16910: fi
16911:
16912: else
16913: with_included_ltdl=yes
16914: fi
16915:
16916:
16917: fi
16918:
16919:
16920:
16921:
1.11 moko 16922: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16923: if test "${with_ltdl_include+set}" = set; then
16924: withval="$with_ltdl_include"
1.8 moko 16925:
1.11 moko 16926: fi;
1.8 moko 16927:
16928: if test -n "$with_ltdl_include"; then
16929: if test -f "$with_ltdl_include/ltdl.h"; then :
16930: else
1.11 moko 16931: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16932: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16933: { (exit 1); exit 1; }; }
1.8 moko 16934: fi
16935: else
16936: with_ltdl_include=no
16937: fi
16938:
16939:
1.11 moko 16940: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16941: if test "${with_ltdl_lib+set}" = set; then
16942: withval="$with_ltdl_lib"
1.8 moko 16943:
1.11 moko 16944: fi;
1.8 moko 16945:
16946: if test -n "$with_ltdl_lib"; then
16947: if test -f "$with_ltdl_lib/libltdl.la"; then :
16948: else
1.11 moko 16949: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16950: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16951: { (exit 1); exit 1; }; }
1.8 moko 16952: fi
16953: else
16954: with_ltdl_lib=no
16955: fi
16956:
16957: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16958: ,yes,no,no,)
16959: case $enable_ltdl_convenience in
1.11 moko 16960: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16961: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16962: { (exit 1); exit 1; }; } ;;
1.8 moko 16963: "") enable_ltdl_convenience=yes
16964: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16965: esac
1.11 moko 16966: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 16967: LTDLDEPS=$LIBLTDL
16968: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16969:
16970:
16971:
16972:
16973:
16974: # For backwards non-gettext consistent compatibility...
16975: INCLTDL="$LTDLINCL"
16976:
16977:
16978: ;;
16979: ,no,no,no,)
16980: # If the included ltdl is not to be used, then use the
16981: # preinstalled libltdl we found.
16982:
1.11 moko 16983: cat >>confdefs.h <<\_ACEOF
16984: #define HAVE_LTDL 1
16985: _ACEOF
1.8 moko 16986:
16987: LIBLTDL=-lltdl
16988: LTDLDEPS=
16989: LTDLINCL=
16990: ;;
16991: ,no*,no,*)
1.11 moko 16992: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16993: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16994: { (exit 1); exit 1; }; }
1.8 moko 16995: ;;
16996: *) with_included_ltdl=no
16997: LIBLTDL="-L$with_ltdl_lib -lltdl"
16998: LTDLDEPS=
16999: LTDLINCL="-I$with_ltdl_include"
17000: ;;
17001: esac
17002: INCLTDL="$LTDLINCL"
17003:
17004: # Report our decision...
1.11 moko 17005: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17006: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17007: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17008: echo "${ECHO_T}$LTDLINCL" >&6
17009: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17010: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17011: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17012: echo "${ECHO_T}$LIBLTDL" >&6
1.8 moko 17013:
17014:
17015:
1.11 moko 17016: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17017: if test "${enable_ltdl_install+set}" = set; then
17018: enableval="$enable_ltdl_install"
1.8 moko 17019:
1.11 moko 17020: fi;
1.8 moko 17021:
17022: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17023: *yes*) ;;
17024: *) enable_ltdl_convenience=yes ;;
17025: esac
17026:
17027:
17028:
17029: if test x"${enable_ltdl_install-no}" != xno; then
17030: INSTALL_LTDL_TRUE=
17031: INSTALL_LTDL_FALSE='#'
17032: else
17033: INSTALL_LTDL_TRUE='#'
17034: INSTALL_LTDL_FALSE=
17035: fi
17036:
17037:
17038:
17039: if test x"${enable_ltdl_convenience-no}" != xno; then
17040: CONVENIENCE_LTDL_TRUE=
17041: CONVENIENCE_LTDL_FALSE='#'
17042: else
17043: CONVENIENCE_LTDL_TRUE='#'
17044: CONVENIENCE_LTDL_FALSE=
17045: fi
17046:
17047:
17048:
1.11 moko 17049:
17050:
17051: subdirs="$subdirs libltdl"
1.8 moko 17052:
17053:
17054:
17055:
17056: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17057: # the user used. This is so that ltdl.h can pick up the parent projects
17058: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17059: # definitions required by ltdl.c.
17060: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17061:
17062:
17063:
1.10 moko 17064:
1.8 moko 17065:
17066:
17067:
1.11 moko 17068:
17069:
17070: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17071: do
17072: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17073: echo "$as_me:$LINENO: checking for $ac_header" >&5
17074: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17075: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17076: echo $ECHO_N "(cached) $ECHO_C" >&6
17077: else
17078: cat >conftest.$ac_ext <<_ACEOF
17079: /* confdefs.h. */
17080: _ACEOF
17081: cat confdefs.h >>conftest.$ac_ext
17082: cat >>conftest.$ac_ext <<_ACEOF
17083: /* end confdefs.h. */
17084: $ac_includes_default
17085:
17086: #include <$ac_header>
17087: _ACEOF
17088: rm -f conftest.$ac_objext
17089: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17090: (eval $ac_compile) 2>conftest.er1
17091: ac_status=$?
17092: grep -v '^ *+' conftest.er1 >conftest.err
17093: rm -f conftest.er1
17094: cat conftest.err >&5
17095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096: (exit $ac_status); } &&
17097: { ac_try='test -z "$ac_c_werror_flag"
17098: || test ! -s conftest.err'
17099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100: (eval $ac_try) 2>&5
17101: ac_status=$?
17102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103: (exit $ac_status); }; } &&
17104: { ac_try='test -s conftest.$ac_objext'
17105: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106: (eval $ac_try) 2>&5
17107: ac_status=$?
17108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109: (exit $ac_status); }; }; then
17110: eval "$as_ac_Header=yes"
17111: else
17112: echo "$as_me: failed program was:" >&5
17113: sed 's/^/| /' conftest.$ac_ext >&5
17114:
17115: eval "$as_ac_Header=no"
17116: fi
17117: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17118: fi
17119: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17120: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17121: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17122: cat >>confdefs.h <<_ACEOF
17123: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17124: _ACEOF
17125:
17126: fi
17127:
17128: done
17129:
17130:
17131:
17132:
17133:
17134: for ac_func in closedir opendir readdir
17135: do
17136: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17137: echo "$as_me:$LINENO: checking for $ac_func" >&5
17138: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17139: if eval "test \"\${$as_ac_var+set}\" = set"; then
17140: echo $ECHO_N "(cached) $ECHO_C" >&6
17141: else
17142: cat >conftest.$ac_ext <<_ACEOF
17143: /* confdefs.h. */
17144: _ACEOF
17145: cat confdefs.h >>conftest.$ac_ext
17146: cat >>conftest.$ac_ext <<_ACEOF
17147: /* end confdefs.h. */
17148: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17149: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17150: #define $ac_func innocuous_$ac_func
17151:
17152: /* System header to define __stub macros and hopefully few prototypes,
17153: which can conflict with char $ac_func (); below.
17154: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17155: <limits.h> exists even on freestanding compilers. */
17156:
17157: #ifdef __STDC__
17158: # include <limits.h>
17159: #else
17160: # include <assert.h>
17161: #endif
17162:
17163: #undef $ac_func
17164:
17165: /* Override any gcc2 internal prototype to avoid an error. */
17166: #ifdef __cplusplus
17167: extern "C"
17168: {
17169: #endif
17170: /* We use char because int might match the return type of a gcc2
17171: builtin and then its argument prototype would still apply. */
17172: char $ac_func ();
17173: /* The GNU C library defines this for functions which it implements
17174: to always fail with ENOSYS. Some functions are actually named
17175: something starting with __ and the normal name is an alias. */
17176: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17177: choke me
17178: #else
17179: char (*f) () = $ac_func;
17180: #endif
17181: #ifdef __cplusplus
17182: }
17183: #endif
17184:
17185: int
17186: main ()
17187: {
17188: return f != $ac_func;
17189: ;
17190: return 0;
17191: }
17192: _ACEOF
17193: rm -f conftest.$ac_objext conftest$ac_exeext
17194: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17195: (eval $ac_link) 2>conftest.er1
17196: ac_status=$?
17197: grep -v '^ *+' conftest.er1 >conftest.err
17198: rm -f conftest.er1
17199: cat conftest.err >&5
17200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201: (exit $ac_status); } &&
17202: { ac_try='test -z "$ac_c_werror_flag"
17203: || test ! -s conftest.err'
17204: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205: (eval $ac_try) 2>&5
17206: ac_status=$?
17207: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208: (exit $ac_status); }; } &&
17209: { ac_try='test -s conftest$ac_exeext'
17210: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211: (eval $ac_try) 2>&5
17212: ac_status=$?
17213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214: (exit $ac_status); }; }; then
17215: eval "$as_ac_var=yes"
17216: else
17217: echo "$as_me: failed program was:" >&5
17218: sed 's/^/| /' conftest.$ac_ext >&5
17219:
17220: eval "$as_ac_var=no"
17221: fi
17222: rm -f conftest.err conftest.$ac_objext \
17223: conftest$ac_exeext conftest.$ac_ext
17224: fi
17225: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17226: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17227: if test `eval echo '${'$as_ac_var'}'` = yes; then
17228: cat >>confdefs.h <<_ACEOF
17229: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17230: _ACEOF
1.8 moko 17231:
1.10 moko 17232: else
1.8 moko 17233:
17234:
1.10 moko 17235: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 17236:
1.10 moko 17237: fi
1.8 moko 17238: done
17239:
1.11 moko 17240:
17241:
1.8 moko 17242: for ac_func in strlcat strlcpy
1.11 moko 17243: do
17244: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17245: echo "$as_me:$LINENO: checking for $ac_func" >&5
17246: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17247: if eval "test \"\${$as_ac_var+set}\" = set"; then
17248: echo $ECHO_N "(cached) $ECHO_C" >&6
17249: else
17250: cat >conftest.$ac_ext <<_ACEOF
17251: /* confdefs.h. */
17252: _ACEOF
17253: cat confdefs.h >>conftest.$ac_ext
17254: cat >>conftest.$ac_ext <<_ACEOF
17255: /* end confdefs.h. */
17256: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17257: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17258: #define $ac_func innocuous_$ac_func
17259:
17260: /* System header to define __stub macros and hopefully few prototypes,
17261: which can conflict with char $ac_func (); below.
17262: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17263: <limits.h> exists even on freestanding compilers. */
17264:
17265: #ifdef __STDC__
17266: # include <limits.h>
17267: #else
17268: # include <assert.h>
17269: #endif
17270:
17271: #undef $ac_func
17272:
17273: /* Override any gcc2 internal prototype to avoid an error. */
17274: #ifdef __cplusplus
17275: extern "C"
17276: {
17277: #endif
17278: /* We use char because int might match the return type of a gcc2
17279: builtin and then its argument prototype would still apply. */
17280: char $ac_func ();
17281: /* The GNU C library defines this for functions which it implements
17282: to always fail with ENOSYS. Some functions are actually named
17283: something starting with __ and the normal name is an alias. */
17284: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17285: choke me
17286: #else
17287: char (*f) () = $ac_func;
17288: #endif
17289: #ifdef __cplusplus
17290: }
17291: #endif
17292:
17293: int
17294: main ()
17295: {
17296: return f != $ac_func;
17297: ;
17298: return 0;
17299: }
17300: _ACEOF
17301: rm -f conftest.$ac_objext conftest$ac_exeext
17302: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17303: (eval $ac_link) 2>conftest.er1
17304: ac_status=$?
17305: grep -v '^ *+' conftest.er1 >conftest.err
17306: rm -f conftest.er1
17307: cat conftest.err >&5
17308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309: (exit $ac_status); } &&
17310: { ac_try='test -z "$ac_c_werror_flag"
17311: || test ! -s conftest.err'
17312: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313: (eval $ac_try) 2>&5
17314: ac_status=$?
17315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316: (exit $ac_status); }; } &&
17317: { ac_try='test -s conftest$ac_exeext'
17318: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319: (eval $ac_try) 2>&5
17320: ac_status=$?
17321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322: (exit $ac_status); }; }; then
17323: eval "$as_ac_var=yes"
17324: else
17325: echo "$as_me: failed program was:" >&5
17326: sed 's/^/| /' conftest.$ac_ext >&5
17327:
17328: eval "$as_ac_var=no"
17329: fi
17330: rm -f conftest.err conftest.$ac_objext \
17331: conftest$ac_exeext conftest.$ac_ext
17332: fi
17333: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17334: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17335: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 17336: cat >>confdefs.h <<_ACEOF
1.11 moko 17337: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 17338: _ACEOF
17339:
17340: else
17341:
17342:
17343: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17344:
17345: fi
17346: done
17347:
17348:
17349:
17350: cat >>confdefs.h <<_ACEOF
17351: #define LT_LIBEXT "$libext"
17352: _ACEOF
17353:
17354:
17355: name=
17356: eval "lt_libprefix=\"$libname_spec\""
17357:
17358: cat >>confdefs.h <<_ACEOF
17359: #define LT_LIBPREFIX "$lt_libprefix"
17360: _ACEOF
17361:
17362:
17363: name=ltdl
17364: eval "LTDLOPEN=\"$libname_spec\""
17365:
17366:
17367:
17368:
17369:
17370:
17371:
17372:
17373: # Only expand once:
17374:
17375:
17376:
17377:
1.13 moko 17378: # Check whether --enable-static or --disable-static was given.
17379: if test "${enable_static+set}" = set; then
17380: enableval="$enable_static"
17381: p=${PACKAGE-default}
17382: case $enableval in
17383: yes) enable_static=yes ;;
17384: no) enable_static=no ;;
17385: *)
17386: enable_static=no
17387: # Look at the argument we got. We use all the common list separators.
17388: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17389: for pkg in $enableval; do
17390: IFS="$lt_save_ifs"
17391: if test "X$pkg" = "X$p"; then
17392: enable_static=yes
17393: fi
17394: done
17395: IFS="$lt_save_ifs"
17396: ;;
17397: esac
17398: else
17399: enable_static=no
17400: fi;
17401:
17402:
17403:
17404:
17405:
17406:
17407:
1.8 moko 17408:
1.11 moko 17409:
17410:
17411:
17412:
17413:
1.8 moko 17414: for ac_header in stdio.h \
17415: stdlib.h \
17416: string.h \
17417: setjmp.h \
17418: ctype.h
17419:
1.11 moko 17420: do
17421: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17422: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17423: echo "$as_me:$LINENO: checking for $ac_header" >&5
17424: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17425: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17426: echo $ECHO_N "(cached) $ECHO_C" >&6
17427: fi
17428: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17429: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17430: else
17431: # Is the header compilable?
17432: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17433: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17434: cat >conftest.$ac_ext <<_ACEOF
17435: /* confdefs.h. */
17436: _ACEOF
17437: cat confdefs.h >>conftest.$ac_ext
17438: cat >>conftest.$ac_ext <<_ACEOF
17439: /* end confdefs.h. */
17440: $ac_includes_default
17441: #include <$ac_header>
17442: _ACEOF
17443: rm -f conftest.$ac_objext
17444: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17445: (eval $ac_compile) 2>conftest.er1
17446: ac_status=$?
17447: grep -v '^ *+' conftest.er1 >conftest.err
17448: rm -f conftest.er1
17449: cat conftest.err >&5
17450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451: (exit $ac_status); } &&
17452: { ac_try='test -z "$ac_c_werror_flag"
17453: || test ! -s conftest.err'
17454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455: (eval $ac_try) 2>&5
17456: ac_status=$?
17457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458: (exit $ac_status); }; } &&
17459: { ac_try='test -s conftest.$ac_objext'
17460: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461: (eval $ac_try) 2>&5
17462: ac_status=$?
17463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464: (exit $ac_status); }; }; then
17465: ac_header_compiler=yes
17466: else
17467: echo "$as_me: failed program was:" >&5
17468: sed 's/^/| /' conftest.$ac_ext >&5
17469:
17470: ac_header_compiler=no
17471: fi
17472: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17473: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17474: echo "${ECHO_T}$ac_header_compiler" >&6
17475:
17476: # Is the header present?
17477: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17478: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17479: cat >conftest.$ac_ext <<_ACEOF
17480: /* confdefs.h. */
17481: _ACEOF
17482: cat confdefs.h >>conftest.$ac_ext
17483: cat >>conftest.$ac_ext <<_ACEOF
17484: /* end confdefs.h. */
17485: #include <$ac_header>
17486: _ACEOF
17487: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17488: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17489: ac_status=$?
17490: grep -v '^ *+' conftest.er1 >conftest.err
17491: rm -f conftest.er1
17492: cat conftest.err >&5
17493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494: (exit $ac_status); } >/dev/null; then
17495: if test -s conftest.err; then
17496: ac_cpp_err=$ac_c_preproc_warn_flag
17497: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17498: else
17499: ac_cpp_err=
17500: fi
17501: else
17502: ac_cpp_err=yes
17503: fi
17504: if test -z "$ac_cpp_err"; then
17505: ac_header_preproc=yes
17506: else
17507: echo "$as_me: failed program was:" >&5
17508: sed 's/^/| /' conftest.$ac_ext >&5
17509:
17510: ac_header_preproc=no
17511: fi
17512: rm -f conftest.err conftest.$ac_ext
17513: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17514: echo "${ECHO_T}$ac_header_preproc" >&6
17515:
17516: # So? What about this header?
17517: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17518: yes:no: )
17519: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17520: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17521: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17522: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17523: ac_header_preproc=yes
17524: ;;
17525: no:yes:* )
17526: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17527: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17528: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17529: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17530: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17531: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17532: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17533: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17534: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17535: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17536: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17537: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17538: (
17539: cat <<\_ASBOX
17540: ## ------------------------------------------ ##
1.13 moko 17541: ## Report this to the parser3sqlite.C lists. ##
1.11 moko 17542: ## ------------------------------------------ ##
17543: _ASBOX
17544: ) |
17545: sed "s/^/$as_me: WARNING: /" >&2
17546: ;;
17547: esac
17548: echo "$as_me:$LINENO: checking for $ac_header" >&5
17549: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17550: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17551: echo $ECHO_N "(cached) $ECHO_C" >&6
17552: else
17553: eval "$as_ac_Header=\$ac_header_preproc"
17554: fi
17555: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17556: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17557:
17558: fi
17559: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 17560: cat >>confdefs.h <<_ACEOF
1.11 moko 17561: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 17562: _ACEOF
17563:
17564: fi
17565:
17566: done
17567:
17568:
17569:
1.11 moko 17570: echo "$as_me:$LINENO: checking for size_t" >&5
17571: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17572: if test "${ac_cv_type_size_t+set}" = set; then
17573: echo $ECHO_N "(cached) $ECHO_C" >&6
17574: else
17575: cat >conftest.$ac_ext <<_ACEOF
17576: /* confdefs.h. */
17577: _ACEOF
17578: cat confdefs.h >>conftest.$ac_ext
17579: cat >>conftest.$ac_ext <<_ACEOF
17580: /* end confdefs.h. */
17581: $ac_includes_default
17582: int
17583: main ()
17584: {
17585: if ((size_t *) 0)
17586: return 0;
17587: if (sizeof (size_t))
17588: return 0;
17589: ;
17590: return 0;
17591: }
17592: _ACEOF
17593: rm -f conftest.$ac_objext
17594: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595: (eval $ac_compile) 2>conftest.er1
17596: ac_status=$?
17597: grep -v '^ *+' conftest.er1 >conftest.err
17598: rm -f conftest.er1
17599: cat conftest.err >&5
17600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601: (exit $ac_status); } &&
17602: { ac_try='test -z "$ac_c_werror_flag"
17603: || test ! -s conftest.err'
17604: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605: (eval $ac_try) 2>&5
17606: ac_status=$?
17607: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608: (exit $ac_status); }; } &&
17609: { ac_try='test -s conftest.$ac_objext'
17610: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611: (eval $ac_try) 2>&5
17612: ac_status=$?
17613: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614: (exit $ac_status); }; }; then
17615: ac_cv_type_size_t=yes
17616: else
17617: echo "$as_me: failed program was:" >&5
17618: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 17619:
1.11 moko 17620: ac_cv_type_size_t=no
17621: fi
17622: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17623: fi
17624: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17625: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17626: if test $ac_cv_type_size_t = yes; then
17627: :
1.8 moko 17628: else
17629:
17630: cat >>confdefs.h <<_ACEOF
1.11 moko 17631: #define size_t unsigned
1.8 moko 17632: _ACEOF
17633:
17634: fi
17635:
17636:
17637:
17638:
1.11 moko 17639: ac_config_files="$ac_config_files Makefile"
1.8 moko 17640: cat >confcache <<\_ACEOF
17641: # This file is a shell script that caches the results of configure
17642: # tests run on this system so they can be shared between configure
17643: # scripts and configure runs, see configure's option --config-cache.
17644: # It is not useful on other systems. If it contains results you don't
17645: # want to keep, you may remove or edit it.
17646: #
17647: # config.status only pays attention to the cache file if you give it
17648: # the --recheck option to rerun configure.
17649: #
17650: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17651: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17652: # following values.
17653:
17654: _ACEOF
17655:
17656: # The following way of writing the cache mishandles newlines in values,
17657: # but we know of no workaround that is simple, portable, and efficient.
1.11 moko 17658: # So, don't put newlines in cache variables' values.
1.8 moko 17659: # Ultrix sh set writes to stderr and can't be redirected directly,
17660: # and sets the high bit in the cache file unless we assign to the vars.
1.11 moko 17661: {
1.8 moko 17662: (set) 2>&1 |
1.11 moko 17663: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17664: *ac_space=\ *)
17665: # `set' does not quote correctly, so add quotes (double-quote
17666: # substitution turns \\\\ into \\, and sed turns \\ into \).
1.8 moko 17667: sed -n \
17668: "s/'/'\\\\''/g;
17669: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.11 moko 17670: ;;
1.8 moko 17671: *)
17672: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.11 moko 17673: sed -n \
17674: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.8 moko 17675: ;;
1.11 moko 17676: esac;
17677: } |
1.8 moko 17678: sed '
17679: t clear
1.11 moko 17680: : clear
1.8 moko 17681: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17682: t end
1.11 moko 17683: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17684: : end' >>confcache
17685: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17686: if test -w $cache_file; then
17687: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1.8 moko 17688: cat confcache >$cache_file
17689: else
1.11 moko 17690: echo "not updating unwritable cache $cache_file"
1.8 moko 17691: fi
17692: fi
17693: rm -f confcache
17694:
17695: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17696: # Let make expand exec_prefix.
17697: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17698:
1.11 moko 17699: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17700: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17701: # trailing colons and then remove the whole line if VPATH becomes empty
17702: # (actually we leave an empty line to preserve line numbers).
17703: if test "x$srcdir" = x.; then
17704: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17705: s/:*\$(srcdir):*/:/;
17706: s/:*\${srcdir}:*/:/;
17707: s/:*@srcdir@:*/:/;
17708: s/^\([^=]*=[ ]*\):*/\1/;
17709: s/:*$//;
17710: s/^[^=]*=[ ]*$//;
17711: }'
17712: fi
17713:
1.8 moko 17714: DEFS=-DHAVE_CONFIG_H
17715:
17716: ac_libobjs=
17717: ac_ltlibobjs=
17718: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17719: # 1. Remove the extension, and $U if already installed.
1.11 moko 17720: ac_i=`echo "$ac_i" |
17721: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17722: # 2. Add them.
17723: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17724: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.8 moko 17725: done
17726: LIBOBJS=$ac_libobjs
17727:
17728: LTLIBOBJS=$ac_ltlibobjs
17729:
17730:
17731: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.11 moko 17732: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17733: Usually this means the macro was only invoked conditionally." >&5
17734: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17735: Usually this means the macro was only invoked conditionally." >&2;}
17736: { (exit 1); exit 1; }; }
1.8 moko 17737: fi
17738: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.11 moko 17739: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17740: Usually this means the macro was only invoked conditionally." >&5
17741: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17742: Usually this means the macro was only invoked conditionally." >&2;}
17743: { (exit 1); exit 1; }; }
1.8 moko 17744: fi
17745: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.11 moko 17746: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17747: Usually this means the macro was only invoked conditionally." >&5
17748: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17749: Usually this means the macro was only invoked conditionally." >&2;}
17750: { (exit 1); exit 1; }; }
1.8 moko 17751: fi
17752: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.11 moko 17753: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17754: Usually this means the macro was only invoked conditionally." >&5
17755: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17756: Usually this means the macro was only invoked conditionally." >&2;}
17757: { (exit 1); exit 1; }; }
1.8 moko 17758: fi
17759: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.11 moko 17760: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17761: Usually this means the macro was only invoked conditionally." >&5
17762: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17763: Usually this means the macro was only invoked conditionally." >&2;}
17764: { (exit 1); exit 1; }; }
1.8 moko 17765: fi
1.11 moko 17766: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
1.8 moko 17767:
17768: _ltdl_libobjs=
17769: _ltdl_ltlibobjs=
17770: if test -n "$_LT_LIBOBJS"; then
17771: # Remove the extension.
17772: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17773: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17774: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17775: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17776: done
17777: fi
17778: ltdl_LIBOBJS=$_ltdl_libobjs
17779:
17780: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17781:
17782:
17783:
17784: : ${CONFIG_STATUS=./config.status}
17785: ac_clean_files_save=$ac_clean_files
17786: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.11 moko 17787: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17788: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17789: cat >$CONFIG_STATUS <<_ACEOF
1.8 moko 17790: #! $SHELL
17791: # Generated by $as_me.
17792: # Run this file to recreate the current configuration.
17793: # Compiler output produced by configure, useful for debugging
17794: # configure, is in config.log if it exists.
17795:
17796: debug=false
17797: ac_cs_recheck=false
17798: ac_cs_silent=false
1.11 moko 17799: SHELL=\${CONFIG_SHELL-$SHELL}
17800: _ACEOF
1.10 moko 17801:
1.11 moko 17802: cat >>$CONFIG_STATUS <<\_ACEOF
17803: ## --------------------- ##
17804: ## M4sh Initialization. ##
17805: ## --------------------- ##
1.8 moko 17806:
1.11 moko 17807: # Be Bourne compatible
17808: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.8 moko 17809: emulate sh
17810: NULLCMD=:
1.11 moko 17811: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.8 moko 17812: # is contrary to our usage. Disable this feature.
17813: alias -g '${1+"$@"}'='"$@"'
1.11 moko 17814: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17815: set -o posix
1.10 moko 17816: fi
1.11 moko 17817: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 17818:
1.11 moko 17819: # Support unset when possible.
17820: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17821: as_unset=unset
17822: else
17823: as_unset=false
1.8 moko 17824: fi
17825:
17826:
1.11 moko 17827: # Work around bugs in pre-3.0 UWIN ksh.
17828: $as_unset ENV MAIL MAILPATH
1.8 moko 17829: PS1='$ '
17830: PS2='> '
17831: PS4='+ '
17832:
17833: # NLS nuisances.
1.11 moko 17834: for as_var in \
17835: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17836: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17837: LC_TELEPHONE LC_TIME
17838: do
17839: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17840: eval $as_var=C; export $as_var
17841: else
17842: $as_unset $as_var
17843: fi
17844: done
1.8 moko 17845:
1.11 moko 17846: # Required to use basename.
17847: if expr a : '\(a\)' >/dev/null 2>&1; then
1.8 moko 17848: as_expr=expr
17849: else
17850: as_expr=false
17851: fi
17852:
1.11 moko 17853: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.8 moko 17854: as_basename=basename
17855: else
17856: as_basename=false
17857: fi
17858:
17859:
1.11 moko 17860: # Name of the executable.
17861: as_me=`$as_basename "$0" ||
1.8 moko 17862: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17863: X"$0" : 'X\(//\)$' \| \
1.11 moko 17864: X"$0" : 'X\(/\)$' \| \
17865: . : '\(.\)' 2>/dev/null ||
17866: echo X/"$0" |
17867: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17868: /^X\/\(\/\/\)$/{ s//\1/; q; }
17869: /^X\/\(\/\).*/{ s//\1/; q; }
17870: s/.*/./; q'`
17871:
1.8 moko 17872:
1.11 moko 17873: # PATH needs CR, and LINENO needs CR and PATH.
1.8 moko 17874: # Avoid depending upon Character Ranges.
17875: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17876: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17877: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17878: as_cr_digits='0123456789'
17879: as_cr_alnum=$as_cr_Letters$as_cr_digits
17880:
1.11 moko 17881: # The user is always right.
17882: if test "${PATH_SEPARATOR+set}" != set; then
17883: echo "#! /bin/sh" >conf$$.sh
17884: echo "exit 0" >>conf$$.sh
17885: chmod +x conf$$.sh
17886: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17887: PATH_SEPARATOR=';'
17888: else
17889: PATH_SEPARATOR=:
17890: fi
17891: rm -f conf$$.sh
17892: fi
17893:
17894:
17895: as_lineno_1=$LINENO
17896: as_lineno_2=$LINENO
17897: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17898: test "x$as_lineno_1" != "x$as_lineno_2" &&
17899: test "x$as_lineno_3" = "x$as_lineno_2" || {
17900: # Find who we are. Look in the path if we contain no path at all
17901: # relative or not.
17902: case $0 in
17903: *[\\/]* ) as_myself=$0 ;;
17904: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17905: for as_dir in $PATH
17906: do
17907: IFS=$as_save_IFS
17908: test -z "$as_dir" && as_dir=.
17909: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17910: done
17911:
17912: ;;
17913: esac
17914: # We did not find ourselves, most probably we were run as `sh COMMAND'
17915: # in which case we are not to be found in the path.
17916: if test "x$as_myself" = x; then
17917: as_myself=$0
17918: fi
17919: if test ! -f "$as_myself"; then
17920: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17921: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17922: { (exit 1); exit 1; }; }
17923: fi
17924: case $CONFIG_SHELL in
17925: '')
17926: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17927: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17928: do
17929: IFS=$as_save_IFS
17930: test -z "$as_dir" && as_dir=.
17931: for as_base in sh bash ksh sh5; do
17932: case $as_dir in
17933: /*)
17934: if ("$as_dir/$as_base" -c '
17935: as_lineno_1=$LINENO
17936: as_lineno_2=$LINENO
17937: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17938: test "x$as_lineno_1" != "x$as_lineno_2" &&
17939: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17940: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17941: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17942: CONFIG_SHELL=$as_dir/$as_base
17943: export CONFIG_SHELL
17944: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17945: fi;;
17946: esac
17947: done
17948: done
17949: ;;
17950: esac
17951:
17952: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17953: # uniformly replaced by the line number. The first 'sed' inserts a
17954: # line-number line before each line; the second 'sed' does the real
17955: # work. The second script uses 'N' to pair each line-number line
17956: # with the numbered line, and appends trailing '-' during
17957: # substitution so that $LINENO is not a special case at line end.
17958: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17959: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17960: sed '=' <$as_myself |
17961: sed '
17962: N
17963: s,$,-,
17964: : loop
17965: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17966: t loop
17967: s,-$,,
17968: s,^['$as_cr_digits']*\n,,
17969: ' >$as_me.lineno &&
17970: chmod +x $as_me.lineno ||
17971: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17972: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17973: { (exit 1); exit 1; }; }
17974:
17975: # Don't try to exec as it changes $[0], causing all sort of problems
17976: # (the dirname of $[0] is not the place where we might find the
17977: # original and so on. Autoconf is especially sensible to this).
17978: . ./$as_me.lineno
17979: # Exit status is that of the last command.
17980: exit
17981: }
17982:
17983:
17984: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17985: *c*,-n*) ECHO_N= ECHO_C='
17986: ' ECHO_T=' ' ;;
17987: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17988: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.8 moko 17989: esac
17990:
1.11 moko 17991: if expr a : '\(a\)' >/dev/null 2>&1; then
17992: as_expr=expr
1.8 moko 17993: else
1.11 moko 17994: as_expr=false
1.8 moko 17995: fi
1.11 moko 17996:
17997: rm -f conf$$ conf$$.exe conf$$.file
17998: echo >conf$$.file
17999: if ln -s conf$$.file conf$$ 2>/dev/null; then
18000: # We could just check for DJGPP; but this test a) works b) is more generic
18001: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18002: if test -f conf$$.exe; then
18003: # Don't use ln at all; we don't have any links
18004: as_ln_s='cp -p'
18005: else
1.10 moko 18006: as_ln_s='ln -s'
1.8 moko 18007: fi
1.11 moko 18008: elif ln conf$$.file conf$$ 2>/dev/null; then
18009: as_ln_s=ln
1.8 moko 18010: else
18011: as_ln_s='cp -p'
18012: fi
1.11 moko 18013: rm -f conf$$ conf$$.exe conf$$.file
1.8 moko 18014:
18015: if mkdir -p . 2>/dev/null; then
1.11 moko 18016: as_mkdir_p=:
1.8 moko 18017: else
18018: test -d ./-p && rmdir ./-p
18019: as_mkdir_p=false
18020: fi
18021:
1.11 moko 18022: as_executable_p="test -f"
1.8 moko 18023:
18024: # Sed expression to map a string onto a valid CPP name.
18025: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18026:
18027: # Sed expression to map a string onto a valid variable name.
18028: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18029:
18030:
1.11 moko 18031: # IFS
18032: # We need space, tab and new line, in precisely that order.
18033: as_nl='
18034: '
18035: IFS=" $as_nl"
18036:
18037: # CDPATH.
18038: $as_unset CDPATH
18039:
1.8 moko 18040: exec 6>&1
18041:
1.11 moko 18042: # Open the log real soon, to keep \$[0] and so on meaningful, and to
1.8 moko 18043: # report actual input values of CONFIG_FILES etc. instead of their
1.11 moko 18044: # values after options handling. Logging --version etc. is OK.
18045: exec 5>>config.log
18046: {
18047: echo
18048: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18049: ## Running $as_me. ##
18050: _ASBOX
18051: } >&5
18052: cat >&5 <<_CSEOF
18053:
1.13 moko 18054: This file was extended by parser3sqlite.C $as_me 10.2, which was
1.11 moko 18055: generated by GNU Autoconf 2.59. Invocation command line was
1.8 moko 18056:
18057: CONFIG_FILES = $CONFIG_FILES
18058: CONFIG_HEADERS = $CONFIG_HEADERS
18059: CONFIG_LINKS = $CONFIG_LINKS
18060: CONFIG_COMMANDS = $CONFIG_COMMANDS
18061: $ $0 $@
18062:
1.11 moko 18063: _CSEOF
18064: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18065: echo >&5
1.8 moko 18066: _ACEOF
18067:
1.11 moko 18068: # Files that config.status was made for.
18069: if test -n "$ac_config_files"; then
18070: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18071: fi
1.8 moko 18072:
1.11 moko 18073: if test -n "$ac_config_headers"; then
18074: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18075: fi
1.8 moko 18076:
1.11 moko 18077: if test -n "$ac_config_links"; then
18078: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18079: fi
1.8 moko 18080:
1.11 moko 18081: if test -n "$ac_config_commands"; then
18082: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18083: fi
1.8 moko 18084:
1.11 moko 18085: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18086:
18087: ac_cs_usage="\
1.11 moko 18088: \`$as_me' instantiates files from templates according to the
18089: current configuration.
1.8 moko 18090:
1.11 moko 18091: Usage: $0 [OPTIONS] [FILE]...
1.8 moko 18092:
18093: -h, --help print this help, then exit
1.11 moko 18094: -V, --version print version number, then exit
18095: -q, --quiet do not print progress messages
1.8 moko 18096: -d, --debug don't remove temporary files
18097: --recheck update $as_me by reconfiguring in the same conditions
1.11 moko 18098: --file=FILE[:TEMPLATE]
18099: instantiate the configuration file FILE
18100: --header=FILE[:TEMPLATE]
18101: instantiate the configuration header FILE
1.8 moko 18102:
18103: Configuration files:
18104: $config_files
18105:
18106: Configuration headers:
18107: $config_headers
18108:
18109: Configuration commands:
18110: $config_commands
18111:
1.11 moko 18112: Report bugs to <bug-autoconf@gnu.org>."
18113: _ACEOF
1.10 moko 18114:
1.11 moko 18115: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18116: ac_cs_version="\\
1.13 moko 18117: parser3sqlite.C config.status 10.2
1.11 moko 18118: configured by $0, generated by GNU Autoconf 2.59,
18119: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.8 moko 18120:
1.11 moko 18121: Copyright (C) 2003 Free Software Foundation, Inc.
1.8 moko 18122: This config.status script is free software; the Free Software Foundation
18123: gives unlimited permission to copy, distribute and modify it."
1.11 moko 18124: srcdir=$srcdir
18125: INSTALL="$INSTALL"
1.8 moko 18126: _ACEOF
18127:
1.11 moko 18128: cat >>$CONFIG_STATUS <<\_ACEOF
18129: # If no file are specified by the user, then we need to provide default
18130: # value. By we need to know if files were specified by the user.
1.8 moko 18131: ac_need_defaults=:
18132: while test $# != 0
18133: do
18134: case $1 in
1.11 moko 18135: --*=*)
18136: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18137: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.8 moko 18138: ac_shift=:
18139: ;;
1.11 moko 18140: -*)
1.8 moko 18141: ac_option=$1
18142: ac_optarg=$2
18143: ac_shift=shift
18144: ;;
1.11 moko 18145: *) # This is not an option, so the user has probably given explicit
18146: # arguments.
18147: ac_option=$1
18148: ac_need_defaults=false;;
1.8 moko 18149: esac
18150:
18151: case $ac_option in
18152: # Handling of the options.
1.11 moko 18153: _ACEOF
18154: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18155: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18156: ac_cs_recheck=: ;;
1.11 moko 18157: --version | --vers* | -V )
18158: echo "$ac_cs_version"; exit 0 ;;
18159: --he | --h)
18160: # Conflict between --help and --header
18161: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18162: Try \`$0 --help' for more information." >&5
18163: echo "$as_me: error: ambiguous option: $1
18164: Try \`$0 --help' for more information." >&2;}
18165: { (exit 1); exit 1; }; };;
18166: --help | --hel | -h )
18167: echo "$ac_cs_usage"; exit 0 ;;
18168: --debug | --d* | -d )
1.8 moko 18169: debug=: ;;
18170: --file | --fil | --fi | --f )
18171: $ac_shift
1.11 moko 18172: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.8 moko 18173: ac_need_defaults=false;;
18174: --header | --heade | --head | --hea )
18175: $ac_shift
1.11 moko 18176: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.8 moko 18177: ac_need_defaults=false;;
18178: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18179: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18180: ac_cs_silent=: ;;
18181:
18182: # This is an error.
1.11 moko 18183: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18184: Try \`$0 --help' for more information." >&5
18185: echo "$as_me: error: unrecognized option: $1
18186: Try \`$0 --help' for more information." >&2;}
18187: { (exit 1); exit 1; }; } ;;
1.8 moko 18188:
1.11 moko 18189: *) ac_config_targets="$ac_config_targets $1" ;;
1.8 moko 18190:
18191: esac
18192: shift
18193: done
18194:
18195: ac_configure_extra_args=
18196:
18197: if $ac_cs_silent; then
18198: exec 6>/dev/null
18199: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 moko 18200: fi
18201:
18202: _ACEOF
1.11 moko 18203: cat >>$CONFIG_STATUS <<_ACEOF
1.10 moko 18204: if \$ac_cs_recheck; then
1.11 moko 18205: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18206: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.10 moko 18207: fi
18208:
18209: _ACEOF
1.11 moko 18210:
18211: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18212: #
1.11 moko 18213: # INIT-COMMANDS section.
1.8 moko 18214: #
1.11 moko 18215:
1.8 moko 18216: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18217:
18218:
18219: # The HP-UX ksh and POSIX shell print the target directory to stdout
18220: # if CDPATH is set.
18221: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18222:
18223: sed_quote_subst='$sed_quote_subst'
18224: double_quote_subst='$double_quote_subst'
18225: delay_variable_subst='$delay_variable_subst'
18226: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18227: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.13 moko 18228: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18229: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18230: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.8 moko 18231: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18232: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18233: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18234: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18235: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18236: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18237: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18238: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18239: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18240: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18241: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18242: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18243: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18244: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18245: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18246: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18247: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18248: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18249: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18250: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18251: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18252: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18253: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18254: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18255: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18256: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18257: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18258: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18259: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18260: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18261: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18262: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18263: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18264: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18265: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18266: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18267: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18268: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18269: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18270: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18271: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18272: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18273: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18274: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18275: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18276: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18277: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18278: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18279: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18280: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18281: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18282: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18283: 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"`'
18284: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18285: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18286: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18287: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18288: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18289: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18290: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18291: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18292: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18293: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18294: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18295: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18296: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18297: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18298: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18299: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18300: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18301: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18302: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18303: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18304: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18305: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18306: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18307: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18308: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18309: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18310: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18311: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18312: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18313: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18314: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18315: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18316: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18317: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18318: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18319: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18320: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18321: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18322: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18323: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18324: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18325: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18326: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18327: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18328: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18329: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18330: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18331: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18332: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18333: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18334: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18335: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18336: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18337: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18338: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18339: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18340: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18341: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18342: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18343: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18344: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18345: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18346: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18347: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18348: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18349: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18350: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18351: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18352: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18353: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18354: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18355: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18356: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18357: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18358: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18359: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18360: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18361: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18362: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18363: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18364: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18365: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18366: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18367: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18368: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18369: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18370: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18371: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18372: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18373: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18374: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18375: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18376: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18377: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18378: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18379: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18380: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18381: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18382: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18383: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18384: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18385: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18386: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18387: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18388: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18389: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18390: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18391: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18392: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18393: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18394: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18395: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18396: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18397: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18398: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18399: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18400: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18401: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18402: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18403: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18404: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18405: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18406: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18407: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18408: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18409: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18410: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18411:
18412: LTCC='$LTCC'
18413: LTCFLAGS='$LTCFLAGS'
18414: compiler='$compiler_DEFAULT'
18415:
18416: # A function that is used when there is no print builtin or printf.
18417: func_fallback_echo ()
18418: {
18419: eval 'cat <<_LTECHO_EOF
18420: \$1
18421: _LTECHO_EOF'
18422: }
18423:
18424: # Quote evaled strings.
1.13 moko 18425: for var in AS \
18426: DLLTOOL \
18427: OBJDUMP \
18428: SHELL \
1.8 moko 18429: ECHO \
18430: PATH_SEPARATOR \
18431: SED \
18432: GREP \
18433: EGREP \
18434: FGREP \
18435: LD \
18436: NM \
18437: LN_S \
18438: lt_SP2NL \
18439: lt_NL2SP \
18440: reload_flag \
18441: deplibs_check_method \
18442: file_magic_cmd \
18443: file_magic_glob \
18444: want_nocaseglob \
18445: sharedlib_from_linklib_cmd \
18446: AR \
18447: AR_FLAGS \
18448: archiver_list_spec \
18449: STRIP \
18450: RANLIB \
18451: CC \
18452: CFLAGS \
18453: compiler \
18454: lt_cv_sys_global_symbol_pipe \
18455: lt_cv_sys_global_symbol_to_cdecl \
18456: lt_cv_sys_global_symbol_to_c_name_address \
18457: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18458: nm_file_list_spec \
18459: lt_prog_compiler_no_builtin_flag \
18460: lt_prog_compiler_pic \
18461: lt_prog_compiler_wl \
18462: lt_prog_compiler_static \
18463: lt_cv_prog_compiler_c_o \
18464: need_locks \
18465: MANIFEST_TOOL \
18466: DSYMUTIL \
18467: NMEDIT \
18468: LIPO \
18469: OTOOL \
18470: OTOOL64 \
18471: shrext_cmds \
18472: export_dynamic_flag_spec \
18473: whole_archive_flag_spec \
18474: compiler_needs_object \
18475: with_gnu_ld \
18476: allow_undefined_flag \
18477: no_undefined_flag \
18478: hardcode_libdir_flag_spec \
18479: hardcode_libdir_separator \
18480: exclude_expsyms \
18481: include_expsyms \
18482: file_list_spec \
18483: variables_saved_for_relink \
18484: libname_spec \
18485: library_names_spec \
18486: soname_spec \
18487: install_override_mode \
18488: finish_eval \
18489: old_striplib \
18490: striplib \
18491: compiler_lib_search_dirs \
18492: predep_objects \
18493: postdep_objects \
18494: predeps \
18495: postdeps \
18496: compiler_lib_search_path \
18497: LD_CXX \
18498: reload_flag_CXX \
18499: compiler_CXX \
18500: lt_prog_compiler_no_builtin_flag_CXX \
18501: lt_prog_compiler_pic_CXX \
18502: lt_prog_compiler_wl_CXX \
18503: lt_prog_compiler_static_CXX \
18504: lt_cv_prog_compiler_c_o_CXX \
18505: export_dynamic_flag_spec_CXX \
18506: whole_archive_flag_spec_CXX \
18507: compiler_needs_object_CXX \
18508: with_gnu_ld_CXX \
18509: allow_undefined_flag_CXX \
18510: no_undefined_flag_CXX \
18511: hardcode_libdir_flag_spec_CXX \
18512: hardcode_libdir_separator_CXX \
18513: exclude_expsyms_CXX \
18514: include_expsyms_CXX \
18515: file_list_spec_CXX \
18516: compiler_lib_search_dirs_CXX \
18517: predep_objects_CXX \
18518: postdep_objects_CXX \
18519: predeps_CXX \
18520: postdeps_CXX \
18521: compiler_lib_search_path_CXX; do
18522: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18523: *[\\\\\\\`\\"\\\$]*)
18524: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18525: ;;
18526: *)
18527: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18528: ;;
18529: esac
18530: done
18531:
18532: # Double-quote double-evaled strings.
18533: for var in reload_cmds \
18534: old_postinstall_cmds \
18535: old_postuninstall_cmds \
18536: old_archive_cmds \
18537: extract_expsyms_cmds \
18538: old_archive_from_new_cmds \
18539: old_archive_from_expsyms_cmds \
18540: archive_cmds \
18541: archive_expsym_cmds \
18542: module_cmds \
18543: module_expsym_cmds \
18544: export_symbols_cmds \
18545: prelink_cmds \
18546: postlink_cmds \
18547: postinstall_cmds \
18548: postuninstall_cmds \
18549: finish_cmds \
18550: sys_lib_search_path_spec \
18551: sys_lib_dlsearch_path_spec \
18552: reload_cmds_CXX \
18553: old_archive_cmds_CXX \
18554: old_archive_from_new_cmds_CXX \
18555: old_archive_from_expsyms_cmds_CXX \
18556: archive_cmds_CXX \
18557: archive_expsym_cmds_CXX \
18558: module_cmds_CXX \
18559: module_expsym_cmds_CXX \
18560: export_symbols_cmds_CXX \
18561: prelink_cmds_CXX \
18562: postlink_cmds_CXX; do
18563: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18564: *[\\\\\\\`\\"\\\$]*)
18565: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18566: ;;
18567: *)
18568: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18569: ;;
18570: esac
18571: done
18572:
18573: ac_aux_dir='$ac_aux_dir'
18574: xsi_shell='$xsi_shell'
18575: lt_shell_append='$lt_shell_append'
18576:
18577: # See if we are running on zsh, and set the options which allow our
18578: # commands through without removal of \ escapes INIT.
18579: if test -n "\${ZSH_VERSION+set}" ; then
18580: setopt NO_GLOB_SUBST
18581: fi
18582:
18583:
18584: PACKAGE='$PACKAGE'
18585: VERSION='$VERSION'
18586: TIMESTAMP='$TIMESTAMP'
18587: RM='$RM'
18588: ofile='$ofile'
18589:
18590:
18591:
18592:
18593:
18594:
18595: _ACEOF
18596:
18597:
1.11 moko 18598:
18599: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18600: for ac_config_target in $ac_config_targets
18601: do
1.11 moko 18602: case "$ac_config_target" in
18603: # Handling of arguments.
18604: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18605: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18606: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18607: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18608: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18609: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18610: { (exit 1); exit 1; }; };;
1.8 moko 18611: esac
18612: done
18613:
18614: # If the user did not use the arguments to specify the items to instantiate,
18615: # then the envvar interface is used. Set only those that are not.
18616: # We use the long form for the default assignment because of an extremely
18617: # bizarre bug on SunOS 4.1.3.
18618: if $ac_need_defaults; then
18619: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18620: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18621: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18622: fi
18623:
18624: # Have a temporary directory for convenience. Make it in the build tree
1.11 moko 18625: # simply because there is no reason to put it here, and in addition,
1.8 moko 18626: # creating and moving files from /tmp can sometimes cause problems.
1.11 moko 18627: # Create a temporary directory, and hook for its removal unless debugging.
1.8 moko 18628: $debug ||
18629: {
1.11 moko 18630: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18631: trap '{ (exit 1); exit 1; }' 1 2 13 15
1.8 moko 18632: }
1.11 moko 18633:
1.8 moko 18634: # Create a (secure) tmp directory for tmp files.
18635:
18636: {
1.11 moko 18637: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.8 moko 18638: test -n "$tmp" && test -d "$tmp"
18639: } ||
18640: {
1.11 moko 18641: tmp=./confstat$$-$RANDOM
18642: (umask 077 && mkdir $tmp)
18643: } ||
1.8 moko 18644: {
1.11 moko 18645: echo "$me: cannot create a temporary directory in ." >&2
18646: { (exit 1); exit 1; }
1.8 moko 18647: }
18648:
18649: _ACEOF
18650:
1.11 moko 18651: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18652:
1.11 moko 18653: #
18654: # CONFIG_FILES section.
18655: #
1.8 moko 18656:
1.11 moko 18657: # No need to generate the scripts if there are no CONFIG_FILES.
18658: # This happens for instance when ./config.status config.h
18659: if test -n "\$CONFIG_FILES"; then
18660: # Protect against being on the right side of a sed subst in config.status.
18661: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18662: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18663: s,@SHELL@,$SHELL,;t t
18664: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18665: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18666: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18667: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18668: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18669: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18670: s,@exec_prefix@,$exec_prefix,;t t
18671: s,@prefix@,$prefix,;t t
18672: s,@program_transform_name@,$program_transform_name,;t t
18673: s,@bindir@,$bindir,;t t
18674: s,@sbindir@,$sbindir,;t t
18675: s,@libexecdir@,$libexecdir,;t t
18676: s,@datadir@,$datadir,;t t
18677: s,@sysconfdir@,$sysconfdir,;t t
18678: s,@sharedstatedir@,$sharedstatedir,;t t
18679: s,@localstatedir@,$localstatedir,;t t
18680: s,@libdir@,$libdir,;t t
18681: s,@includedir@,$includedir,;t t
18682: s,@oldincludedir@,$oldincludedir,;t t
18683: s,@infodir@,$infodir,;t t
18684: s,@mandir@,$mandir,;t t
18685: s,@build_alias@,$build_alias,;t t
18686: s,@host_alias@,$host_alias,;t t
18687: s,@target_alias@,$target_alias,;t t
18688: s,@DEFS@,$DEFS,;t t
18689: s,@ECHO_C@,$ECHO_C,;t t
18690: s,@ECHO_N@,$ECHO_N,;t t
18691: s,@ECHO_T@,$ECHO_T,;t t
18692: s,@LIBS@,$LIBS,;t t
18693: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18694: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18695: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18696: s,@CYGPATH_W@,$CYGPATH_W,;t t
18697: s,@PACKAGE@,$PACKAGE,;t t
18698: s,@VERSION@,$VERSION,;t t
18699: s,@ACLOCAL@,$ACLOCAL,;t t
18700: s,@AUTOCONF@,$AUTOCONF,;t t
18701: s,@AUTOMAKE@,$AUTOMAKE,;t t
18702: s,@AUTOHEADER@,$AUTOHEADER,;t t
18703: s,@MAKEINFO@,$MAKEINFO,;t t
18704: s,@install_sh@,$install_sh,;t t
18705: s,@STRIP@,$STRIP,;t t
18706: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18707: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18708: s,@mkdir_p@,$mkdir_p,;t t
18709: s,@AWK@,$AWK,;t t
18710: s,@SET_MAKE@,$SET_MAKE,;t t
18711: s,@am__leading_dot@,$am__leading_dot,;t t
18712: s,@AMTAR@,$AMTAR,;t t
18713: s,@am__tar@,$am__tar,;t t
18714: s,@am__untar@,$am__untar,;t t
18715: s,@SQLITE_INC@,$SQLITE_INC,;t t
18716: s,@LDFLAGS@,$LDFLAGS,;t t
18717: s,@CXX@,$CXX,;t t
18718: s,@CXXFLAGS@,$CXXFLAGS,;t t
18719: s,@CPPFLAGS@,$CPPFLAGS,;t t
18720: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18721: s,@EXEEXT@,$EXEEXT,;t t
18722: s,@OBJEXT@,$OBJEXT,;t t
18723: s,@DEPDIR@,$DEPDIR,;t t
18724: s,@am__include@,$am__include,;t t
18725: s,@am__quote@,$am__quote,;t t
18726: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18727: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18728: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18729: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18730: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18731: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18732: s,@CC@,$CC,;t t
18733: s,@CFLAGS@,$CFLAGS,;t t
18734: s,@ac_ct_CC@,$ac_ct_CC,;t t
18735: s,@CCDEPMODE@,$CCDEPMODE,;t t
18736: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18737: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.13 moko 18738: s,@AS@,$AS,;t t
18739: s,@ac_ct_AS@,$ac_ct_AS,;t t
18740: s,@DLLTOOL@,$DLLTOOL,;t t
18741: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18742: s,@OBJDUMP@,$OBJDUMP,;t t
18743: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.11 moko 18744: s,@LIBTOOL@,$LIBTOOL,;t t
18745: s,@build@,$build,;t t
18746: s,@build_cpu@,$build_cpu,;t t
18747: s,@build_vendor@,$build_vendor,;t t
18748: s,@build_os@,$build_os,;t t
18749: s,@host@,$host,;t t
18750: s,@host_cpu@,$host_cpu,;t t
18751: s,@host_vendor@,$host_vendor,;t t
18752: s,@host_os@,$host_os,;t t
18753: s,@SED@,$SED,;t t
18754: s,@EGREP@,$EGREP,;t t
18755: s,@FGREP@,$FGREP,;t t
18756: s,@GREP@,$GREP,;t t
18757: s,@LD@,$LD,;t t
18758: s,@DUMPBIN@,$DUMPBIN,;t t
18759: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18760: s,@NM@,$NM,;t t
18761: s,@LN_S@,$LN_S,;t t
18762: s,@AR@,$AR,;t t
18763: s,@ac_ct_AR@,$ac_ct_AR,;t t
18764: s,@RANLIB@,$RANLIB,;t t
18765: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18766: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18767: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18768: s,@DSYMUTIL@,$DSYMUTIL,;t t
18769: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18770: s,@NMEDIT@,$NMEDIT,;t t
18771: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18772: s,@LIPO@,$LIPO,;t t
18773: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18774: s,@OTOOL@,$OTOOL,;t t
18775: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18776: s,@OTOOL64@,$OTOOL64,;t t
18777: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18778: s,@CPP@,$CPP,;t t
18779: s,@CXXCPP@,$CXXCPP,;t t
18780: s,@LIBLTDL@,$LIBLTDL,;t t
18781: s,@LTDLDEPS@,$LTDLDEPS,;t t
18782: s,@LTDLINCL@,$LTDLINCL,;t t
18783: s,@INCLTDL@,$INCLTDL,;t t
18784: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18785: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18786: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18787: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18788: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.13 moko 18789: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.11 moko 18790: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18791: s,@ARGZ_H@,$ARGZ_H,;t t
18792: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18793: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18794: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18795: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18796: s,@subdirs@,$subdirs,;t t
18797: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18798: s,@LTDLOPEN@,$LTDLOPEN,;t t
18799: s,@LIBOBJS@,$LIBOBJS,;t t
18800: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18801: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18802: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18803: CEOF
18804:
18805: _ACEOF
18806:
18807: cat >>$CONFIG_STATUS <<\_ACEOF
18808: # Split the substitutions into bite-sized pieces for seds with
18809: # small command number limits, like on Digital OSF/1 and HP-UX.
18810: ac_max_sed_lines=48
18811: ac_sed_frag=1 # Number of current file.
18812: ac_beg=1 # First line for current file.
18813: ac_end=$ac_max_sed_lines # Line after last line for current file.
18814: ac_more_lines=:
18815: ac_sed_cmds=
18816: while $ac_more_lines; do
18817: if test $ac_beg -gt 1; then
18818: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18819: else
18820: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18821: fi
18822: if test ! -s $tmp/subs.frag; then
18823: ac_more_lines=false
18824: else
18825: # The purpose of the label and of the branching condition is to
18826: # speed up the sed processing (if there are no `@' at all, there
18827: # is no need to browse any of the substitutions).
18828: # These are the two extra sed commands mentioned above.
18829: (echo ':t
18830: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18831: if test -z "$ac_sed_cmds"; then
18832: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18833: else
18834: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18835: fi
18836: ac_sed_frag=`expr $ac_sed_frag + 1`
18837: ac_beg=$ac_end
18838: ac_end=`expr $ac_end + $ac_max_sed_lines`
18839: fi
18840: done
18841: if test -z "$ac_sed_cmds"; then
18842: ac_sed_cmds=cat
1.8 moko 18843: fi
1.11 moko 18844: fi # test -n "$CONFIG_FILES"
1.8 moko 18845:
18846: _ACEOF
1.11 moko 18847: cat >>$CONFIG_STATUS <<\_ACEOF
18848: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18849: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18850: case $ac_file in
18851: - | *:- | *:-:* ) # input from stdin
18852: cat >$tmp/stdin
18853: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18854: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18855: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18856: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18857: * ) ac_file_in=$ac_file.in ;;
1.8 moko 18858: esac
18859:
1.11 moko 18860: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18861: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1.8 moko 18862: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18863: X"$ac_file" : 'X\(//\)[^/]' \| \
18864: X"$ac_file" : 'X\(//\)$' \| \
1.11 moko 18865: X"$ac_file" : 'X\(/\)' \| \
18866: . : '\(.\)' 2>/dev/null ||
18867: echo X"$ac_file" |
18868: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18869: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18870: /^X\(\/\/\)$/{ s//\1/; q; }
18871: /^X\(\/\).*/{ s//\1/; q; }
18872: s/.*/./; q'`
18873: { if $as_mkdir_p; then
18874: mkdir -p "$ac_dir"
18875: else
18876: as_dir="$ac_dir"
18877: as_dirs=
18878: while test ! -d "$as_dir"; do
18879: as_dirs="$as_dir $as_dirs"
18880: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18881: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18882: X"$as_dir" : 'X\(//\)[^/]' \| \
18883: X"$as_dir" : 'X\(//\)$' \| \
18884: X"$as_dir" : 'X\(/\)' \| \
18885: . : '\(.\)' 2>/dev/null ||
18886: echo X"$as_dir" |
18887: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18888: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18889: /^X\(\/\/\)$/{ s//\1/; q; }
18890: /^X\(\/\).*/{ s//\1/; q; }
18891: s/.*/./; q'`
18892: done
18893: test ! -n "$as_dirs" || mkdir $as_dirs
18894: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18895: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18896: { (exit 1); exit 1; }; }; }
18897:
1.8 moko 18898: ac_builddir=.
18899:
1.11 moko 18900: if test "$ac_dir" != .; then
18901: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18902: # A "../" for each directory in $ac_dir_suffix.
18903: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18904: else
18905: ac_dir_suffix= ac_top_builddir=
18906: fi
1.8 moko 18907:
18908: case $srcdir in
1.11 moko 18909: .) # No --srcdir option. We are building in place.
1.8 moko 18910: ac_srcdir=.
1.11 moko 18911: if test -z "$ac_top_builddir"; then
18912: ac_top_srcdir=.
18913: else
18914: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18915: fi ;;
18916: [\\/]* | ?:[\\/]* ) # Absolute path.
1.8 moko 18917: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 18918: ac_top_srcdir=$srcdir ;;
18919: *) # Relative path.
18920: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18921: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.8 moko 18922: esac
18923:
1.11 moko 18924: # Do not use `cd foo && pwd` to compute absolute paths, because
18925: # the directories may not exist.
18926: case `pwd` in
18927: .) ac_abs_builddir="$ac_dir";;
18928: *)
18929: case "$ac_dir" in
18930: .) ac_abs_builddir=`pwd`;;
18931: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18932: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18933: esac;;
18934: esac
18935: case $ac_abs_builddir in
18936: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18937: *)
18938: case ${ac_top_builddir}. in
18939: .) ac_abs_top_builddir=$ac_abs_builddir;;
18940: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18941: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18942: esac;;
18943: esac
18944: case $ac_abs_builddir in
18945: .) ac_abs_srcdir=$ac_srcdir;;
18946: *)
18947: case $ac_srcdir in
18948: .) ac_abs_srcdir=$ac_abs_builddir;;
18949: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18950: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18951: esac;;
18952: esac
18953: case $ac_abs_builddir in
18954: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18955: *)
18956: case $ac_top_srcdir in
18957: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18958: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18959: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18960: esac;;
18961: esac
1.8 moko 18962:
18963:
18964: case $INSTALL in
18965: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.11 moko 18966: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.8 moko 18967: esac
18968:
1.11 moko 18969: if test x"$ac_file" != x-; then
18970: { echo "$as_me:$LINENO: creating $ac_file" >&5
18971: echo "$as_me: creating $ac_file" >&6;}
18972: rm -f "$ac_file"
18973: fi
18974: # Let's still pretend it is `configure' which instantiates (i.e., don't
18975: # use $as_me), people would be surprised to read:
18976: # /* config.h. Generated by config.status. */
18977: if test x"$ac_file" = x-; then
18978: configure_input=
18979: else
18980: configure_input="$ac_file. "
18981: fi
18982: configure_input=$configure_input"Generated from `echo $ac_file_in |
18983: sed 's,.*/,,'` by configure."
18984:
18985: # First look for the input files in the build tree, otherwise in the
18986: # src tree.
18987: ac_file_inputs=`IFS=:
18988: for f in $ac_file_in; do
18989: case $f in
18990: -) echo $tmp/stdin ;;
18991: [\\/$]*)
18992: # Absolute (can't be DOS-style, as IFS=:)
18993: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18994: echo "$as_me: error: cannot find input file: $f" >&2;}
18995: { (exit 1); exit 1; }; }
18996: echo "$f";;
18997: *) # Relative
18998: if test -f "$f"; then
18999: # Build tree
19000: echo "$f"
19001: elif test -f "$srcdir/$f"; then
19002: # Source tree
19003: echo "$srcdir/$f"
19004: else
19005: # /dev/null tree
19006: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19007: echo "$as_me: error: cannot find input file: $f" >&2;}
19008: { (exit 1); exit 1; }; }
19009: fi;;
19010: esac
19011: done` || { (exit 1); exit 1; }
1.10 moko 19012: _ACEOF
1.11 moko 19013: cat >>$CONFIG_STATUS <<_ACEOF
19014: sed "$ac_vpsub
1.8 moko 19015: $extrasub
19016: _ACEOF
1.11 moko 19017: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 19018: :t
19019: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.11 moko 19020: s,@configure_input@,$configure_input,;t t
19021: s,@srcdir@,$ac_srcdir,;t t
19022: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19023: s,@top_srcdir@,$ac_top_srcdir,;t t
19024: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19025: s,@builddir@,$ac_builddir,;t t
19026: s,@abs_builddir@,$ac_abs_builddir,;t t
19027: s,@top_builddir@,$ac_top_builddir,;t t
19028: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19029: s,@INSTALL@,$ac_INSTALL,;t t
19030: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19031: rm -f $tmp/stdin
19032: if test x"$ac_file" != x-; then
19033: mv $tmp/out $ac_file
19034: else
19035: cat $tmp/out
19036: rm -f $tmp/out
19037: fi
19038:
19039: done
19040: _ACEOF
19041: cat >>$CONFIG_STATUS <<\_ACEOF
19042:
19043: #
19044: # CONFIG_HEADER section.
19045: #
19046:
19047: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19048: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19049: #
19050: # ac_d sets the value in "#define NAME VALUE" lines.
19051: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19052: ac_dB='[ ].*$,\1#\2'
19053: ac_dC=' '
19054: ac_dD=',;t'
19055: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19056: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19057: ac_uB='$,\1#\2define\3'
19058: ac_uC=' '
19059: ac_uD=',;t'
1.8 moko 19060:
1.11 moko 19061: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19062: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.8 moko 19063: case $ac_file in
1.11 moko 19064: - | *:- | *:-:* ) # input from stdin
19065: cat >$tmp/stdin
19066: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19067: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19068: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19069: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19070: * ) ac_file_in=$ac_file.in ;;
19071: esac
19072:
19073: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19074: echo "$as_me: creating $ac_file" >&6;}
19075:
19076: # First look for the input files in the build tree, otherwise in the
19077: # src tree.
19078: ac_file_inputs=`IFS=:
19079: for f in $ac_file_in; do
19080: case $f in
19081: -) echo $tmp/stdin ;;
19082: [\\/$]*)
19083: # Absolute (can't be DOS-style, as IFS=:)
19084: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19085: echo "$as_me: error: cannot find input file: $f" >&2;}
19086: { (exit 1); exit 1; }; }
19087: # Do quote $f, to prevent DOS paths from being IFS'd.
19088: echo "$f";;
19089: *) # Relative
19090: if test -f "$f"; then
19091: # Build tree
19092: echo "$f"
19093: elif test -f "$srcdir/$f"; then
19094: # Source tree
19095: echo "$srcdir/$f"
19096: else
19097: # /dev/null tree
19098: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19099: echo "$as_me: error: cannot find input file: $f" >&2;}
19100: { (exit 1); exit 1; }; }
19101: fi;;
19102: esac
19103: done` || { (exit 1); exit 1; }
19104: # Remove the trailing spaces.
19105: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19106:
19107: _ACEOF
19108:
19109: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19110: # `conftest.undefs', that substitutes the proper values into
19111: # config.h.in to produce config.h. The first handles `#define'
19112: # templates, and the second `#undef' templates.
19113: # And first: Protect against being on the right side of a sed subst in
19114: # config.status. Protect against being in an unquoted here document
19115: # in config.status.
19116: rm -f conftest.defines conftest.undefs
19117: # Using a here document instead of a string reduces the quoting nightmare.
19118: # Putting comments in sed scripts is not portable.
19119: #
19120: # `end' is used to avoid that the second main sed command (meant for
19121: # 0-ary CPP macros) applies to n-ary macro definitions.
19122: # See the Autoconf documentation for `clear'.
19123: cat >confdef2sed.sed <<\_ACEOF
19124: s/[\\&,]/\\&/g
19125: s,[\\$`],\\&,g
19126: t clear
19127: : clear
19128: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19129: t end
19130: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19131: : end
19132: _ACEOF
19133: # If some macros were called several times there might be several times
19134: # the same #defines, which is useless. Nevertheless, we may not want to
19135: # sort them, since we want the *last* AC-DEFINE to be honored.
19136: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19137: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19138: rm -f confdef2sed.sed
19139:
19140: # This sed command replaces #undef with comments. This is necessary, for
19141: # example, in the case of _POSIX_SOURCE, which is predefined and required
19142: # on some systems where configure will not decide to define it.
19143: cat >>conftest.undefs <<\_ACEOF
19144: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19145: _ACEOF
19146:
19147: # Break up conftest.defines because some shells have a limit on the size
19148: # of here documents, and old seds have small limits too (100 cmds).
19149: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19150: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19151: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19152: echo ' :' >>$CONFIG_STATUS
19153: rm -f conftest.tail
19154: while grep . conftest.defines >/dev/null
19155: do
19156: # Write a limited-size here document to $tmp/defines.sed.
19157: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19158: # Speed up: don't consider the non `#define' lines.
19159: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19160: # Work around the forget-to-reset-the-flag bug.
19161: echo 't clr' >>$CONFIG_STATUS
19162: echo ': clr' >>$CONFIG_STATUS
19163: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19164: echo 'CEOF
19165: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19166: rm -f $tmp/in
19167: mv $tmp/out $tmp/in
19168: ' >>$CONFIG_STATUS
19169: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19170: rm -f conftest.defines
19171: mv conftest.tail conftest.defines
19172: done
19173: rm -f conftest.defines
19174: echo ' fi # grep' >>$CONFIG_STATUS
19175: echo >>$CONFIG_STATUS
19176:
19177: # Break up conftest.undefs because some shells have a limit on the size
19178: # of here documents, and old seds have small limits too (100 cmds).
19179: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19180: rm -f conftest.tail
19181: while grep . conftest.undefs >/dev/null
19182: do
19183: # Write a limited-size here document to $tmp/undefs.sed.
19184: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19185: # Speed up: don't consider the non `#undef'
19186: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19187: # Work around the forget-to-reset-the-flag bug.
19188: echo 't clr' >>$CONFIG_STATUS
19189: echo ': clr' >>$CONFIG_STATUS
19190: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19191: echo 'CEOF
19192: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19193: rm -f $tmp/in
19194: mv $tmp/out $tmp/in
19195: ' >>$CONFIG_STATUS
19196: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19197: rm -f conftest.undefs
19198: mv conftest.tail conftest.undefs
19199: done
19200: rm -f conftest.undefs
19201:
19202: cat >>$CONFIG_STATUS <<\_ACEOF
19203: # Let's still pretend it is `configure' which instantiates (i.e., don't
19204: # use $as_me), people would be surprised to read:
19205: # /* config.h. Generated by config.status. */
19206: if test x"$ac_file" = x-; then
19207: echo "/* Generated by configure. */" >$tmp/config.h
19208: else
19209: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19210: fi
19211: cat $tmp/in >>$tmp/config.h
19212: rm -f $tmp/in
1.8 moko 19213: if test x"$ac_file" != x-; then
1.11 moko 19214: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19215: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19216: echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 19217: else
1.11 moko 19218: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19219: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19220: X"$ac_file" : 'X\(//\)[^/]' \| \
19221: X"$ac_file" : 'X\(//\)$' \| \
19222: X"$ac_file" : 'X\(/\)' \| \
19223: . : '\(.\)' 2>/dev/null ||
19224: echo X"$ac_file" |
19225: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19226: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19227: /^X\(\/\/\)$/{ s//\1/; q; }
19228: /^X\(\/\).*/{ s//\1/; q; }
19229: s/.*/./; q'`
19230: { if $as_mkdir_p; then
19231: mkdir -p "$ac_dir"
19232: else
19233: as_dir="$ac_dir"
19234: as_dirs=
19235: while test ! -d "$as_dir"; do
19236: as_dirs="$as_dir $as_dirs"
19237: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19238: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19239: X"$as_dir" : 'X\(//\)[^/]' \| \
19240: X"$as_dir" : 'X\(//\)$' \| \
19241: X"$as_dir" : 'X\(/\)' \| \
19242: . : '\(.\)' 2>/dev/null ||
19243: echo X"$as_dir" |
19244: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19245: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19246: /^X\(\/\/\)$/{ s//\1/; q; }
19247: /^X\(\/\).*/{ s//\1/; q; }
19248: s/.*/./; q'`
19249: done
19250: test ! -n "$as_dirs" || mkdir $as_dirs
19251: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19252: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19253: { (exit 1); exit 1; }; }; }
19254:
19255: rm -f $ac_file
19256: mv $tmp/config.h $ac_file
1.8 moko 19257: fi
19258: else
1.11 moko 19259: cat $tmp/config.h
19260: rm -f $tmp/config.h
1.8 moko 19261: fi
1.11 moko 19262: # Compute $ac_file's index in $config_headers.
1.8 moko 19263: _am_stamp_count=1
19264: for _am_header in $config_headers :; do
19265: case $_am_header in
1.11 moko 19266: $ac_file | $ac_file:* )
1.8 moko 19267: break ;;
19268: * )
19269: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19270: esac
19271: done
1.11 moko 19272: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19273: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19274: X$ac_file : 'X\(//\)[^/]' \| \
19275: X$ac_file : 'X\(//\)$' \| \
19276: X$ac_file : 'X\(/\)' \| \
19277: . : '\(.\)' 2>/dev/null ||
19278: echo X$ac_file |
19279: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19280: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19281: /^X\(\/\/\)$/{ s//\1/; q; }
19282: /^X\(\/\).*/{ s//\1/; q; }
19283: s/.*/./; q'`/stamp-h$_am_stamp_count
19284: done
19285: _ACEOF
19286: cat >>$CONFIG_STATUS <<\_ACEOF
19287:
19288: #
19289: # CONFIG_COMMANDS section.
19290: #
19291: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19292: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19293: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19294: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19295: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19296: X"$ac_dest" : 'X\(//\)[^/]' \| \
19297: X"$ac_dest" : 'X\(//\)$' \| \
19298: X"$ac_dest" : 'X\(/\)' \| \
19299: . : '\(.\)' 2>/dev/null ||
19300: echo X"$ac_dest" |
19301: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19302: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19303: /^X\(\/\/\)$/{ s//\1/; q; }
19304: /^X\(\/\).*/{ s//\1/; q; }
19305: s/.*/./; q'`
19306: { if $as_mkdir_p; then
19307: mkdir -p "$ac_dir"
19308: else
19309: as_dir="$ac_dir"
19310: as_dirs=
19311: while test ! -d "$as_dir"; do
19312: as_dirs="$as_dir $as_dirs"
19313: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19314: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19315: X"$as_dir" : 'X\(//\)[^/]' \| \
19316: X"$as_dir" : 'X\(//\)$' \| \
19317: X"$as_dir" : 'X\(/\)' \| \
19318: . : '\(.\)' 2>/dev/null ||
19319: echo X"$as_dir" |
19320: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19321: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19322: /^X\(\/\/\)$/{ s//\1/; q; }
19323: /^X\(\/\).*/{ s//\1/; q; }
19324: s/.*/./; q'`
19325: done
19326: test ! -n "$as_dirs" || mkdir $as_dirs
19327: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19328: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19329: { (exit 1); exit 1; }; }; }
19330:
19331: ac_builddir=.
19332:
19333: if test "$ac_dir" != .; then
19334: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19335: # A "../" for each directory in $ac_dir_suffix.
19336: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19337: else
19338: ac_dir_suffix= ac_top_builddir=
19339: fi
19340:
19341: case $srcdir in
19342: .) # No --srcdir option. We are building in place.
19343: ac_srcdir=.
19344: if test -z "$ac_top_builddir"; then
19345: ac_top_srcdir=.
19346: else
19347: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19348: fi ;;
19349: [\\/]* | ?:[\\/]* ) # Absolute path.
19350: ac_srcdir=$srcdir$ac_dir_suffix;
19351: ac_top_srcdir=$srcdir ;;
19352: *) # Relative path.
19353: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19354: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19355: esac
1.8 moko 19356:
1.11 moko 19357: # Do not use `cd foo && pwd` to compute absolute paths, because
19358: # the directories may not exist.
19359: case `pwd` in
19360: .) ac_abs_builddir="$ac_dir";;
19361: *)
19362: case "$ac_dir" in
19363: .) ac_abs_builddir=`pwd`;;
19364: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19365: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19366: esac;;
19367: esac
19368: case $ac_abs_builddir in
19369: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19370: *)
19371: case ${ac_top_builddir}. in
19372: .) ac_abs_top_builddir=$ac_abs_builddir;;
19373: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19374: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19375: esac;;
19376: esac
19377: case $ac_abs_builddir in
19378: .) ac_abs_srcdir=$ac_srcdir;;
19379: *)
19380: case $ac_srcdir in
19381: .) ac_abs_srcdir=$ac_abs_builddir;;
19382: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19383: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19384: esac;;
19385: esac
19386: case $ac_abs_builddir in
19387: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19388: *)
19389: case $ac_top_srcdir in
19390: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19391: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19392: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19393: esac;;
19394: esac
1.8 moko 19395:
19396:
1.11 moko 19397: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19398: echo "$as_me: executing $ac_dest commands" >&6;}
19399: case $ac_dest in
19400: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.8 moko 19401: # Strip MF so we end up with the name of the file.
19402: mf=`echo "$mf" | sed -e 's/:.*$//'`
19403: # Check whether this is an Automake generated Makefile or not.
19404: # We used to match only the files named `Makefile.in', but
19405: # some people rename them; so instead we look at the file content.
19406: # Grep'ing the first line is not enough: some people post-process
19407: # each Makefile.in and add a new line on top of each file to say so.
19408: # So let's grep whole file.
19409: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.11 moko 19410: dirpart=`(dirname "$mf") 2>/dev/null ||
1.8 moko 19411: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19412: X"$mf" : 'X\(//\)[^/]' \| \
19413: X"$mf" : 'X\(//\)$' \| \
1.11 moko 19414: X"$mf" : 'X\(/\)' \| \
19415: . : '\(.\)' 2>/dev/null ||
19416: echo X"$mf" |
19417: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19418: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19419: /^X\(\/\/\)$/{ s//\1/; q; }
19420: /^X\(\/\).*/{ s//\1/; q; }
19421: s/.*/./; q'`
1.8 moko 19422: else
19423: continue
19424: fi
19425: # Extract the definition of DEPDIR, am__include, and am__quote
19426: # from the Makefile without running `make'.
19427: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19428: test -z "$DEPDIR" && continue
19429: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19430: test -z "am__include" && continue
19431: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19432: # When using ansi2knr, U may be empty or an underscore; expand it
19433: U=`sed -n 's/^U = //p' < "$mf"`
19434: # Find all dependency output files, they are included files with
19435: # $(DEPDIR) in their names. We invoke sed twice because it is the
19436: # simplest approach to changing $(DEPDIR) to its actual value in the
19437: # expansion.
19438: for file in `sed -n "
19439: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19440: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19441: # Make sure the directory exists.
19442: test -f "$dirpart/$file" && continue
1.11 moko 19443: fdir=`(dirname "$file") 2>/dev/null ||
1.8 moko 19444: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19445: X"$file" : 'X\(//\)[^/]' \| \
19446: X"$file" : 'X\(//\)$' \| \
1.11 moko 19447: X"$file" : 'X\(/\)' \| \
19448: . : '\(.\)' 2>/dev/null ||
19449: echo X"$file" |
19450: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19451: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19452: /^X\(\/\/\)$/{ s//\1/; q; }
19453: /^X\(\/\).*/{ s//\1/; q; }
19454: s/.*/./; q'`
19455: { if $as_mkdir_p; then
19456: mkdir -p $dirpart/$fdir
19457: else
19458: as_dir=$dirpart/$fdir
19459: as_dirs=
19460: while test ! -d "$as_dir"; do
19461: as_dirs="$as_dir $as_dirs"
19462: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19463: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19464: X"$as_dir" : 'X\(//\)[^/]' \| \
19465: X"$as_dir" : 'X\(//\)$' \| \
19466: X"$as_dir" : 'X\(/\)' \| \
19467: . : '\(.\)' 2>/dev/null ||
19468: echo X"$as_dir" |
19469: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19470: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19471: /^X\(\/\/\)$/{ s//\1/; q; }
19472: /^X\(\/\).*/{ s//\1/; q; }
19473: s/.*/./; q'`
19474: done
19475: test ! -n "$as_dirs" || mkdir $as_dirs
19476: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19477: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19478: { (exit 1); exit 1; }; }; }
19479:
1.8 moko 19480: # echo "creating $dirpart/$file"
19481: echo '# dummy' > "$dirpart/$file"
19482: done
19483: done
19484: ;;
1.11 moko 19485: libtool )
1.8 moko 19486:
19487: # See if we are running on zsh, and set the options which allow our
19488: # commands through without removal of \ escapes.
19489: if test -n "${ZSH_VERSION+set}" ; then
19490: setopt NO_GLOB_SUBST
19491: fi
19492:
19493: cfgfile="${ofile}T"
19494: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19495: $RM "$cfgfile"
19496:
19497: cat <<_LT_EOF >> "$cfgfile"
19498: #! $SHELL
19499:
19500: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19501: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19502: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19503: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19504: #
19505: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19506: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19507: # Foundation, Inc.
19508: # Written by Gordon Matzigkeit, 1996
19509: #
19510: # This file is part of GNU Libtool.
19511: #
19512: # GNU Libtool is free software; you can redistribute it and/or
19513: # modify it under the terms of the GNU General Public License as
19514: # published by the Free Software Foundation; either version 2 of
19515: # the License, or (at your option) any later version.
19516: #
19517: # As a special exception to the GNU General Public License,
19518: # if you distribute this file as part of a program or library that
19519: # is built using GNU Libtool, you may include this file under the
19520: # same distribution terms that you use for the rest of that program.
19521: #
19522: # GNU Libtool is distributed in the hope that it will be useful,
19523: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19524: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19525: # GNU General Public License for more details.
19526: #
19527: # You should have received a copy of the GNU General Public License
19528: # along with GNU Libtool; see the file COPYING. If not, a copy
19529: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19530: # obtained by writing to the Free Software Foundation, Inc.,
19531: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19532:
19533:
19534: # The names of the tagged configurations supported by this script.
19535: available_tags="CXX "
19536:
19537: # ### BEGIN LIBTOOL CONFIG
19538:
19539: # Which release of libtool.m4 was used?
19540: macro_version=$macro_version
19541: macro_revision=$macro_revision
19542:
1.13 moko 19543: # Assembler program.
19544: AS=$lt_AS
19545:
19546: # DLL creation program.
19547: DLLTOOL=$lt_DLLTOOL
19548:
19549: # Object dumper program.
19550: OBJDUMP=$lt_OBJDUMP
19551:
1.8 moko 19552: # Whether or not to build shared libraries.
19553: build_libtool_libs=$enable_shared
19554:
19555: # Whether or not to build static libraries.
19556: build_old_libs=$enable_static
19557:
19558: # What type of objects to build.
19559: pic_mode=$pic_mode
19560:
19561: # Whether or not to optimize for fast installation.
19562: fast_install=$enable_fast_install
19563:
19564: # Shell to use when invoking shell scripts.
19565: SHELL=$lt_SHELL
19566:
19567: # An echo program that protects backslashes.
19568: ECHO=$lt_ECHO
19569:
19570: # The PATH separator for the build system.
19571: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19572:
19573: # The host system.
19574: host_alias=$host_alias
19575: host=$host
19576: host_os=$host_os
19577:
19578: # The build system.
19579: build_alias=$build_alias
19580: build=$build
19581: build_os=$build_os
19582:
19583: # A sed program that does not truncate output.
19584: SED=$lt_SED
19585:
19586: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19587: Xsed="\$SED -e 1s/^X//"
19588:
19589: # A grep program that handles long lines.
19590: GREP=$lt_GREP
19591:
19592: # An ERE matcher.
19593: EGREP=$lt_EGREP
19594:
19595: # A literal string matcher.
19596: FGREP=$lt_FGREP
19597:
19598: # A BSD- or MS-compatible name lister.
19599: NM=$lt_NM
19600:
19601: # Whether we need soft or hard links.
19602: LN_S=$lt_LN_S
19603:
19604: # What is the maximum length of a command?
19605: max_cmd_len=$max_cmd_len
19606:
19607: # Object file suffix (normally "o").
19608: objext=$ac_objext
19609:
19610: # Executable file suffix (normally "").
19611: exeext=$exeext
19612:
19613: # whether the shell understands "unset".
19614: lt_unset=$lt_unset
19615:
19616: # turn spaces into newlines.
19617: SP2NL=$lt_lt_SP2NL
19618:
19619: # turn newlines into spaces.
19620: NL2SP=$lt_lt_NL2SP
19621:
19622: # convert \$build file names to \$host format.
19623: to_host_file_cmd=$lt_cv_to_host_file_cmd
19624:
19625: # convert \$build files to toolchain format.
19626: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19627:
19628: # Method to check whether dependent libraries are shared objects.
19629: deplibs_check_method=$lt_deplibs_check_method
19630:
19631: # Command to use when deplibs_check_method = "file_magic".
19632: file_magic_cmd=$lt_file_magic_cmd
19633:
19634: # How to find potential files when deplibs_check_method = "file_magic".
19635: file_magic_glob=$lt_file_magic_glob
19636:
19637: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19638: want_nocaseglob=$lt_want_nocaseglob
19639:
19640: # Command to associate shared and link libraries.
19641: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19642:
19643: # The archiver.
19644: AR=$lt_AR
19645:
19646: # Flags to create an archive.
19647: AR_FLAGS=$lt_AR_FLAGS
19648:
19649: # How to feed a file listing to the archiver.
19650: archiver_list_spec=$lt_archiver_list_spec
19651:
19652: # A symbol stripping program.
19653: STRIP=$lt_STRIP
19654:
19655: # Commands used to install an old-style archive.
19656: RANLIB=$lt_RANLIB
19657: old_postinstall_cmds=$lt_old_postinstall_cmds
19658: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19659:
19660: # Whether to use a lock for old archive extraction.
19661: lock_old_archive_extraction=$lock_old_archive_extraction
19662:
19663: # A C compiler.
19664: LTCC=$lt_CC
19665:
19666: # LTCC compiler flags.
19667: LTCFLAGS=$lt_CFLAGS
19668:
19669: # Take the output of nm and produce a listing of raw symbols and C names.
19670: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19671:
19672: # Transform the output of nm in a proper C declaration.
19673: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19674:
19675: # Transform the output of nm in a C name address pair.
19676: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19677:
19678: # Transform the output of nm in a C name address pair when lib prefix is needed.
19679: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19680:
19681: # Specify filename containing input files for \$NM.
19682: nm_file_list_spec=$lt_nm_file_list_spec
19683:
19684: # The root where to search for dependent libraries,and in which our libraries should be installed.
19685: lt_sysroot=$lt_sysroot
19686:
19687: # The name of the directory that contains temporary libtool files.
19688: objdir=$objdir
19689:
19690: # Used to examine libraries when file_magic_cmd begins with "file".
19691: MAGIC_CMD=$MAGIC_CMD
19692:
19693: # Must we lock files when doing compilation?
19694: need_locks=$lt_need_locks
19695:
19696: # Manifest tool.
19697: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19698:
19699: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19700: DSYMUTIL=$lt_DSYMUTIL
19701:
19702: # Tool to change global to local symbols on Mac OS X.
19703: NMEDIT=$lt_NMEDIT
19704:
19705: # Tool to manipulate fat objects and archives on Mac OS X.
19706: LIPO=$lt_LIPO
19707:
19708: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19709: OTOOL=$lt_OTOOL
19710:
19711: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19712: OTOOL64=$lt_OTOOL64
19713:
19714: # Old archive suffix (normally "a").
19715: libext=$libext
19716:
19717: # Shared library suffix (normally ".so").
19718: shrext_cmds=$lt_shrext_cmds
19719:
19720: # The commands to extract the exported symbol list from a shared archive.
19721: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19722:
19723: # Variables whose values should be saved in libtool wrapper scripts and
19724: # restored at link time.
19725: variables_saved_for_relink=$lt_variables_saved_for_relink
19726:
19727: # Do we need the "lib" prefix for modules?
19728: need_lib_prefix=$need_lib_prefix
19729:
19730: # Do we need a version for libraries?
19731: need_version=$need_version
19732:
19733: # Library versioning type.
19734: version_type=$version_type
19735:
19736: # Shared library runtime path variable.
19737: runpath_var=$runpath_var
19738:
19739: # Shared library path variable.
19740: shlibpath_var=$shlibpath_var
19741:
19742: # Is shlibpath searched before the hard-coded library search path?
19743: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19744:
19745: # Format of library name prefix.
19746: libname_spec=$lt_libname_spec
19747:
19748: # List of archive names. First name is the real one, the rest are links.
19749: # The last name is the one that the linker finds with -lNAME
19750: library_names_spec=$lt_library_names_spec
19751:
19752: # The coded name of the library, if different from the real name.
19753: soname_spec=$lt_soname_spec
19754:
19755: # Permission mode override for installation of shared libraries.
19756: install_override_mode=$lt_install_override_mode
19757:
19758: # Command to use after installation of a shared archive.
19759: postinstall_cmds=$lt_postinstall_cmds
19760:
19761: # Command to use after uninstallation of a shared archive.
19762: postuninstall_cmds=$lt_postuninstall_cmds
19763:
19764: # Commands used to finish a libtool library installation in a directory.
19765: finish_cmds=$lt_finish_cmds
19766:
19767: # As "finish_cmds", except a single script fragment to be evaled but
19768: # not shown.
19769: finish_eval=$lt_finish_eval
19770:
19771: # Whether we should hardcode library paths into libraries.
19772: hardcode_into_libs=$hardcode_into_libs
19773:
19774: # Compile-time system search path for libraries.
19775: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19776:
19777: # Run-time system search path for libraries.
19778: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19779:
19780: # Whether dlopen is supported.
19781: dlopen_support=$enable_dlopen
19782:
19783: # Whether dlopen of programs is supported.
19784: dlopen_self=$enable_dlopen_self
19785:
19786: # Whether dlopen of statically linked programs is supported.
19787: dlopen_self_static=$enable_dlopen_self_static
19788:
19789: # Commands to strip libraries.
19790: old_striplib=$lt_old_striplib
19791: striplib=$lt_striplib
19792:
19793:
19794: # The linker used to build libraries.
19795: LD=$lt_LD
19796:
19797: # How to create reloadable object files.
19798: reload_flag=$lt_reload_flag
19799: reload_cmds=$lt_reload_cmds
19800:
19801: # Commands used to build an old-style archive.
19802: old_archive_cmds=$lt_old_archive_cmds
19803:
19804: # A language specific compiler.
19805: CC=$lt_compiler
19806:
19807: # Is the compiler the GNU compiler?
19808: with_gcc=$GCC
19809:
19810: # Compiler flag to turn off builtin functions.
19811: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19812:
19813: # Additional compiler flags for building library objects.
19814: pic_flag=$lt_lt_prog_compiler_pic
19815:
19816: # How to pass a linker flag through the compiler.
19817: wl=$lt_lt_prog_compiler_wl
19818:
19819: # Compiler flag to prevent dynamic linking.
19820: link_static_flag=$lt_lt_prog_compiler_static
19821:
19822: # Does compiler simultaneously support -c and -o options?
19823: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19824:
19825: # Whether or not to add -lc for building shared libraries.
19826: build_libtool_need_lc=$archive_cmds_need_lc
19827:
19828: # Whether or not to disallow shared libs when runtime libs are static.
19829: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19830:
19831: # Compiler flag to allow reflexive dlopens.
19832: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19833:
19834: # Compiler flag to generate shared objects directly from archives.
19835: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19836:
19837: # Whether the compiler copes with passing no objects directly.
19838: compiler_needs_object=$lt_compiler_needs_object
19839:
19840: # Create an old-style archive from a shared archive.
19841: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19842:
19843: # Create a temporary old-style archive to link instead of a shared archive.
19844: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19845:
19846: # Commands used to build a shared archive.
19847: archive_cmds=$lt_archive_cmds
19848: archive_expsym_cmds=$lt_archive_expsym_cmds
19849:
19850: # Commands used to build a loadable module if different from building
19851: # a shared archive.
19852: module_cmds=$lt_module_cmds
19853: module_expsym_cmds=$lt_module_expsym_cmds
19854:
19855: # Whether we are building with GNU ld or not.
19856: with_gnu_ld=$lt_with_gnu_ld
19857:
19858: # Flag that allows shared libraries with undefined symbols to be built.
19859: allow_undefined_flag=$lt_allow_undefined_flag
19860:
19861: # Flag that enforces no undefined symbols.
19862: no_undefined_flag=$lt_no_undefined_flag
19863:
19864: # Flag to hardcode \$libdir into a binary during linking.
19865: # This must work even if \$libdir does not exist
19866: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19867:
19868: # Whether we need a single "-rpath" flag with a separated argument.
19869: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19870:
19871: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19872: # DIR into the resulting binary.
19873: hardcode_direct=$hardcode_direct
19874:
19875: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19876: # DIR into the resulting binary and the resulting library dependency is
19877: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19878: # library is relocated.
19879: hardcode_direct_absolute=$hardcode_direct_absolute
19880:
19881: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19882: # into the resulting binary.
19883: hardcode_minus_L=$hardcode_minus_L
19884:
19885: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19886: # into the resulting binary.
19887: hardcode_shlibpath_var=$hardcode_shlibpath_var
19888:
19889: # Set to "yes" if building a shared library automatically hardcodes DIR
19890: # into the library and all subsequent libraries and executables linked
19891: # against it.
19892: hardcode_automatic=$hardcode_automatic
19893:
19894: # Set to yes if linker adds runtime paths of dependent libraries
19895: # to runtime path list.
19896: inherit_rpath=$inherit_rpath
19897:
19898: # Whether libtool must link a program against all its dependency libraries.
19899: link_all_deplibs=$link_all_deplibs
19900:
19901: # Set to "yes" if exported symbols are required.
19902: always_export_symbols=$always_export_symbols
19903:
19904: # The commands to list exported symbols.
19905: export_symbols_cmds=$lt_export_symbols_cmds
19906:
19907: # Symbols that should not be listed in the preloaded symbols.
19908: exclude_expsyms=$lt_exclude_expsyms
19909:
19910: # Symbols that must always be exported.
19911: include_expsyms=$lt_include_expsyms
19912:
19913: # Commands necessary for linking programs (against libraries) with templates.
19914: prelink_cmds=$lt_prelink_cmds
19915:
19916: # Commands necessary for finishing linking programs.
19917: postlink_cmds=$lt_postlink_cmds
19918:
19919: # Specify filename containing input files.
19920: file_list_spec=$lt_file_list_spec
19921:
19922: # How to hardcode a shared library path into an executable.
19923: hardcode_action=$hardcode_action
19924:
19925: # The directories searched by this compiler when creating a shared library.
19926: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19927:
19928: # Dependencies to place before and after the objects being linked to
19929: # create a shared library.
19930: predep_objects=$lt_predep_objects
19931: postdep_objects=$lt_postdep_objects
19932: predeps=$lt_predeps
19933: postdeps=$lt_postdeps
19934:
19935: # The library search path used internally by the compiler when linking
19936: # a shared library.
19937: compiler_lib_search_path=$lt_compiler_lib_search_path
19938:
19939: # ### END LIBTOOL CONFIG
19940:
19941: _LT_EOF
19942:
19943: case $host_os in
19944: aix3*)
19945: cat <<\_LT_EOF >> "$cfgfile"
19946: # AIX sometimes has problems with the GCC collect2 program. For some
19947: # reason, if we set the COLLECT_NAMES environment variable, the problems
19948: # vanish in a puff of smoke.
19949: if test "X${COLLECT_NAMES+set}" != Xset; then
19950: COLLECT_NAMES=
19951: export COLLECT_NAMES
19952: fi
19953: _LT_EOF
19954: ;;
19955: esac
19956:
19957:
19958: ltmain="$ac_aux_dir/ltmain.sh"
19959:
19960:
19961: # We use sed instead of cat because bash on DJGPP gets confused if
19962: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19963: # text mode, it properly converts lines to CR/LF. This bash problem
19964: # is reportedly fixed, but why not run on old versions too?
19965: sed '$q' "$ltmain" >> "$cfgfile" \
19966: || (rm -f "$cfgfile"; exit 1)
19967:
19968: if test x"$xsi_shell" = xyes; then
19969: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19970: func_dirname ()\
19971: {\
19972: \ case ${1} in\
19973: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19974: \ * ) func_dirname_result="${3}" ;;\
19975: \ esac\
19976: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19977: && mv -f "$cfgfile.tmp" "$cfgfile" \
19978: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19979: test 0 -eq $? || _lt_function_replace_fail=:
19980:
19981:
19982: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19983: func_basename ()\
19984: {\
19985: \ func_basename_result="${1##*/}"\
19986: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19987: && mv -f "$cfgfile.tmp" "$cfgfile" \
19988: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19989: test 0 -eq $? || _lt_function_replace_fail=:
19990:
19991:
19992: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19993: func_dirname_and_basename ()\
19994: {\
19995: \ case ${1} in\
19996: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19997: \ * ) func_dirname_result="${3}" ;;\
19998: \ esac\
19999: \ func_basename_result="${1##*/}"\
20000: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20001: && mv -f "$cfgfile.tmp" "$cfgfile" \
20002: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20003: test 0 -eq $? || _lt_function_replace_fail=:
20004:
20005:
20006: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20007: func_stripname ()\
20008: {\
20009: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20010: \ # positional parameters, so assign one to ordinary parameter first.\
20011: \ func_stripname_result=${3}\
20012: \ func_stripname_result=${func_stripname_result#"${1}"}\
20013: \ func_stripname_result=${func_stripname_result%"${2}"}\
20014: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20015: && mv -f "$cfgfile.tmp" "$cfgfile" \
20016: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20017: test 0 -eq $? || _lt_function_replace_fail=:
20018:
20019:
20020: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20021: func_split_long_opt ()\
20022: {\
20023: \ func_split_long_opt_name=${1%%=*}\
20024: \ func_split_long_opt_arg=${1#*=}\
20025: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20026: && mv -f "$cfgfile.tmp" "$cfgfile" \
20027: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20028: test 0 -eq $? || _lt_function_replace_fail=:
20029:
20030:
20031: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20032: func_split_short_opt ()\
20033: {\
20034: \ func_split_short_opt_arg=${1#??}\
20035: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20036: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20037: && mv -f "$cfgfile.tmp" "$cfgfile" \
20038: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20039: test 0 -eq $? || _lt_function_replace_fail=:
20040:
20041:
20042: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20043: func_lo2o ()\
20044: {\
20045: \ case ${1} in\
20046: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20047: \ *) func_lo2o_result=${1} ;;\
20048: \ esac\
20049: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20050: && mv -f "$cfgfile.tmp" "$cfgfile" \
20051: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20052: test 0 -eq $? || _lt_function_replace_fail=:
20053:
20054:
20055: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20056: func_xform ()\
20057: {\
20058: func_xform_result=${1%.*}.lo\
20059: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20060: && mv -f "$cfgfile.tmp" "$cfgfile" \
20061: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20062: test 0 -eq $? || _lt_function_replace_fail=:
20063:
20064:
20065: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20066: func_arith ()\
20067: {\
20068: func_arith_result=$(( $* ))\
20069: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20070: && mv -f "$cfgfile.tmp" "$cfgfile" \
20071: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072: test 0 -eq $? || _lt_function_replace_fail=:
20073:
20074:
20075: sed -e '/^func_len ()$/,/^} # func_len /c\
20076: func_len ()\
20077: {\
20078: func_len_result=${#1}\
20079: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20080: && mv -f "$cfgfile.tmp" "$cfgfile" \
20081: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20082: test 0 -eq $? || _lt_function_replace_fail=:
20083:
20084: fi
20085:
20086: if test x"$lt_shell_append" = xyes; then
20087: sed -e '/^func_append ()$/,/^} # func_append /c\
20088: func_append ()\
20089: {\
20090: eval "${1}+=\\${2}"\
20091: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20092: && mv -f "$cfgfile.tmp" "$cfgfile" \
20093: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20094: test 0 -eq $? || _lt_function_replace_fail=:
20095:
20096:
20097: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20098: func_append_quoted ()\
20099: {\
20100: \ func_quote_for_eval "${2}"\
20101: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20102: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20103: && mv -f "$cfgfile.tmp" "$cfgfile" \
20104: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20105: test 0 -eq $? || _lt_function_replace_fail=:
20106:
20107:
20108: # Save a `func_append' function call where possible by direct use of '+='
20109: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20110: && mv -f "$cfgfile.tmp" "$cfgfile" \
20111: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20112: test 0 -eq $? || _lt_function_replace_fail=:
20113: else
20114: # Save a `func_append' function call even when '+=' is not available
20115: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20116: && mv -f "$cfgfile.tmp" "$cfgfile" \
20117: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20118: test 0 -eq $? || _lt_function_replace_fail=:
20119: fi
20120:
20121: if test x"$_lt_function_replace_fail" = x":"; then
1.11 moko 20122: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20123: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 20124: fi
20125:
20126:
20127: mv -f "$cfgfile" "$ofile" ||
20128: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20129: chmod +x "$ofile"
20130:
20131:
20132: cat <<_LT_EOF >> "$ofile"
20133:
20134: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20135:
20136: # The linker used to build libraries.
20137: LD=$lt_LD_CXX
20138:
20139: # How to create reloadable object files.
20140: reload_flag=$lt_reload_flag_CXX
20141: reload_cmds=$lt_reload_cmds_CXX
20142:
20143: # Commands used to build an old-style archive.
20144: old_archive_cmds=$lt_old_archive_cmds_CXX
20145:
20146: # A language specific compiler.
20147: CC=$lt_compiler_CXX
20148:
20149: # Is the compiler the GNU compiler?
20150: with_gcc=$GCC_CXX
20151:
20152: # Compiler flag to turn off builtin functions.
20153: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20154:
20155: # Additional compiler flags for building library objects.
20156: pic_flag=$lt_lt_prog_compiler_pic_CXX
20157:
20158: # How to pass a linker flag through the compiler.
20159: wl=$lt_lt_prog_compiler_wl_CXX
20160:
20161: # Compiler flag to prevent dynamic linking.
20162: link_static_flag=$lt_lt_prog_compiler_static_CXX
20163:
20164: # Does compiler simultaneously support -c and -o options?
20165: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20166:
20167: # Whether or not to add -lc for building shared libraries.
20168: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20169:
20170: # Whether or not to disallow shared libs when runtime libs are static.
20171: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20172:
20173: # Compiler flag to allow reflexive dlopens.
20174: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20175:
20176: # Compiler flag to generate shared objects directly from archives.
20177: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20178:
20179: # Whether the compiler copes with passing no objects directly.
20180: compiler_needs_object=$lt_compiler_needs_object_CXX
20181:
20182: # Create an old-style archive from a shared archive.
20183: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20184:
20185: # Create a temporary old-style archive to link instead of a shared archive.
20186: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20187:
20188: # Commands used to build a shared archive.
20189: archive_cmds=$lt_archive_cmds_CXX
20190: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20191:
20192: # Commands used to build a loadable module if different from building
20193: # a shared archive.
20194: module_cmds=$lt_module_cmds_CXX
20195: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20196:
20197: # Whether we are building with GNU ld or not.
20198: with_gnu_ld=$lt_with_gnu_ld_CXX
20199:
20200: # Flag that allows shared libraries with undefined symbols to be built.
20201: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20202:
20203: # Flag that enforces no undefined symbols.
20204: no_undefined_flag=$lt_no_undefined_flag_CXX
20205:
20206: # Flag to hardcode \$libdir into a binary during linking.
20207: # This must work even if \$libdir does not exist
20208: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20209:
20210: # Whether we need a single "-rpath" flag with a separated argument.
20211: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20212:
20213: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20214: # DIR into the resulting binary.
20215: hardcode_direct=$hardcode_direct_CXX
20216:
20217: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20218: # DIR into the resulting binary and the resulting library dependency is
20219: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20220: # library is relocated.
20221: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20222:
20223: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20224: # into the resulting binary.
20225: hardcode_minus_L=$hardcode_minus_L_CXX
20226:
20227: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20228: # into the resulting binary.
20229: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20230:
20231: # Set to "yes" if building a shared library automatically hardcodes DIR
20232: # into the library and all subsequent libraries and executables linked
20233: # against it.
20234: hardcode_automatic=$hardcode_automatic_CXX
20235:
20236: # Set to yes if linker adds runtime paths of dependent libraries
20237: # to runtime path list.
20238: inherit_rpath=$inherit_rpath_CXX
20239:
20240: # Whether libtool must link a program against all its dependency libraries.
20241: link_all_deplibs=$link_all_deplibs_CXX
20242:
20243: # Set to "yes" if exported symbols are required.
20244: always_export_symbols=$always_export_symbols_CXX
20245:
20246: # The commands to list exported symbols.
20247: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20248:
20249: # Symbols that should not be listed in the preloaded symbols.
20250: exclude_expsyms=$lt_exclude_expsyms_CXX
20251:
20252: # Symbols that must always be exported.
20253: include_expsyms=$lt_include_expsyms_CXX
20254:
20255: # Commands necessary for linking programs (against libraries) with templates.
20256: prelink_cmds=$lt_prelink_cmds_CXX
20257:
20258: # Commands necessary for finishing linking programs.
20259: postlink_cmds=$lt_postlink_cmds_CXX
20260:
20261: # Specify filename containing input files.
20262: file_list_spec=$lt_file_list_spec_CXX
20263:
20264: # How to hardcode a shared library path into an executable.
20265: hardcode_action=$hardcode_action_CXX
20266:
20267: # The directories searched by this compiler when creating a shared library.
20268: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20269:
20270: # Dependencies to place before and after the objects being linked to
20271: # create a shared library.
20272: predep_objects=$lt_predep_objects_CXX
20273: postdep_objects=$lt_postdep_objects_CXX
20274: predeps=$lt_predeps_CXX
20275: postdeps=$lt_postdeps_CXX
20276:
20277: # The library search path used internally by the compiler when linking
20278: # a shared library.
20279: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20280:
20281: # ### END LIBTOOL TAG CONFIG: CXX
20282: _LT_EOF
1.1 misha 20283:
20284: ;;
20285: esac
1.11 moko 20286: done
20287: _ACEOF
1.1 misha 20288:
1.11 moko 20289: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misha 20290:
1.11 moko 20291: { (exit 0); exit 0; }
1.1 misha 20292: _ACEOF
1.11 moko 20293: chmod +x $CONFIG_STATUS
1.1 misha 20294: ac_clean_files=$ac_clean_files_save
20295:
20296:
20297: # configure is writing to config.log, and then calls config.status.
20298: # config.status does its own redirection, appending to config.log.
20299: # Unfortunately, on DOS this fails, as config.log is still kept open
20300: # by configure, so config.status won't be able to write to it; its
20301: # output is simply discarded. So we exec the FD to /dev/null,
20302: # effectively closing config.log, so it can be properly (re)opened and
20303: # appended to by config.status. When coming back to configure, we
20304: # need to make the FD available again.
20305: if test "$no_create" != yes; then
20306: ac_cs_success=:
20307: ac_config_status_args=
20308: test "$silent" = yes &&
20309: ac_config_status_args="$ac_config_status_args --quiet"
20310: exec 5>/dev/null
20311: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20312: exec 5>>config.log
20313: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20314: # would make configure fail if this is the last instruction.
1.11 moko 20315: $ac_cs_success || { (exit 1); exit 1; }
1.1 misha 20316: fi
20317:
20318: #
20319: # CONFIG_SUBDIRS section.
20320: #
20321: if test "$no_recursion" != yes; then
20322:
1.11 moko 20323: # Remove --cache-file and --srcdir arguments so they do not pile up.
1.1 misha 20324: ac_sub_configure_args=
20325: ac_prev=
1.11 moko 20326: for ac_arg in $ac_configure_args; do
1.1 misha 20327: if test -n "$ac_prev"; then
20328: ac_prev=
20329: continue
20330: fi
20331: case $ac_arg in
20332: -cache-file | --cache-file | --cache-fil | --cache-fi \
20333: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20334: ac_prev=cache_file ;;
20335: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20336: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20337: | --c=*)
20338: ;;
20339: --config-cache | -C)
20340: ;;
20341: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20342: ac_prev=srcdir ;;
20343: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20344: ;;
20345: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20346: ac_prev=prefix ;;
20347: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20348: ;;
1.11 moko 20349: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1.1 misha 20350: esac
20351: done
20352:
20353: # Always prepend --prefix to ensure using the same prefix
20354: # in subdir configurations.
1.11 moko 20355: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
1.1 misha 20356:
20357: ac_popdir=`pwd`
20358: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20359:
20360: # Do not complain, so a configure script can configure whichever
20361: # parts of a large source tree are present.
1.11 moko 20362: test -d $srcdir/$ac_dir || continue
20363:
20364: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20365: echo "$as_me: configuring in $ac_dir" >&6;}
20366: { if $as_mkdir_p; then
20367: mkdir -p "$ac_dir"
20368: else
20369: as_dir="$ac_dir"
20370: as_dirs=
20371: while test ! -d "$as_dir"; do
20372: as_dirs="$as_dir $as_dirs"
20373: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20374: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20375: X"$as_dir" : 'X\(//\)[^/]' \| \
20376: X"$as_dir" : 'X\(//\)$' \| \
20377: X"$as_dir" : 'X\(/\)' \| \
20378: . : '\(.\)' 2>/dev/null ||
20379: echo X"$as_dir" |
20380: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20381: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20382: /^X\(\/\/\)$/{ s//\1/; q; }
20383: /^X\(\/\).*/{ s//\1/; q; }
20384: s/.*/./; q'`
20385: done
20386: test ! -n "$as_dirs" || mkdir $as_dirs
20387: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20388: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20389: { (exit 1); exit 1; }; }; }
1.1 misha 20390:
20391: ac_builddir=.
20392:
1.11 moko 20393: if test "$ac_dir" != .; then
20394: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20395: # A "../" for each directory in $ac_dir_suffix.
20396: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20397: else
20398: ac_dir_suffix= ac_top_builddir=
20399: fi
1.1 misha 20400:
20401: case $srcdir in
1.11 moko 20402: .) # No --srcdir option. We are building in place.
1.1 misha 20403: ac_srcdir=.
1.11 moko 20404: if test -z "$ac_top_builddir"; then
20405: ac_top_srcdir=.
20406: else
20407: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20408: fi ;;
20409: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 20410: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 20411: ac_top_srcdir=$srcdir ;;
20412: *) # Relative path.
20413: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20414: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20415: esac
20416:
20417: # Do not use `cd foo && pwd` to compute absolute paths, because
20418: # the directories may not exist.
20419: case `pwd` in
20420: .) ac_abs_builddir="$ac_dir";;
20421: *)
20422: case "$ac_dir" in
20423: .) ac_abs_builddir=`pwd`;;
20424: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20425: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20426: esac;;
20427: esac
20428: case $ac_abs_builddir in
20429: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20430: *)
20431: case ${ac_top_builddir}. in
20432: .) ac_abs_top_builddir=$ac_abs_builddir;;
20433: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20434: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20435: esac;;
20436: esac
20437: case $ac_abs_builddir in
20438: .) ac_abs_srcdir=$ac_srcdir;;
20439: *)
20440: case $ac_srcdir in
20441: .) ac_abs_srcdir=$ac_abs_builddir;;
20442: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20443: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20444: esac;;
20445: esac
20446: case $ac_abs_builddir in
20447: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20448: *)
20449: case $ac_top_srcdir in
20450: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20451: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20452: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20453: esac;;
1.1 misha 20454: esac
20455:
20456:
1.11 moko 20457: cd $ac_dir
1.1 misha 20458:
20459: # Check for guested configure; otherwise get Cygnus style configure.
1.11 moko 20460: if test -f $ac_srcdir/configure.gnu; then
20461: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20462: elif test -f $ac_srcdir/configure; then
20463: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20464: elif test -f $ac_srcdir/configure.in; then
20465: ac_sub_configure=$ac_configure
1.1 misha 20466: else
1.11 moko 20467: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20468: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 20469: ac_sub_configure=
20470: fi
20471:
20472: # The recursion is here.
20473: if test -n "$ac_sub_configure"; then
20474: # Make the cache file name correct relative to the subdirectory.
20475: case $cache_file in
20476: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.11 moko 20477: *) # Relative path.
20478: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 misha 20479: esac
20480:
1.11 moko 20481: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20482: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 misha 20483: # The eval makes quoting arguments work.
1.11 moko 20484: eval $ac_sub_configure $ac_sub_configure_args \
20485: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20486: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20487: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20488: { (exit 1); exit 1; }; }
1.1 misha 20489: fi
20490:
1.11 moko 20491: cd $ac_popdir
1.1 misha 20492: done
20493: fi
20494:
E-mail: