Annotation of sql/sqlite/configure, revision 1.17
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.17 ! 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 CXX CXXFLAGS LDFLAGS 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.11 moko 888: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.8 moko 889: both]
890: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
891: --with-sysroot=DIR Search for dependent libraries within DIR
892: (or the compiler's sysroot if not specified).
893: --with-included-ltdl use the GNU ltdl sources included here
894: --with-ltdl-include=DIR use the ltdl headers installed in DIR
895: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.1 misha 896:
897: Some influential environment variables:
898: CXX C++ compiler command
899: CXXFLAGS C++ compiler flags
900: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901: nonstandard directory <lib dir>
1.11 moko 902: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903: headers in a nonstandard directory <include dir>
1.1 misha 904: CC C compiler command
905: CFLAGS C compiler flags
906: CPP C preprocessor
1.8 moko 907: CXXCPP C++ preprocessor
1.1 misha 908:
909: Use these variables to override the choices made by `configure' or to help
910: it to find libraries and programs with nonstandard names/locations.
911:
912: _ACEOF
913: fi
914:
915: if test "$ac_init_help" = "recursive"; then
916: # If there are subdirs, report their specific --help.
1.11 moko 917: ac_popdir=`pwd`
1.1 misha 918: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.11 moko 919: test -d $ac_dir || continue
1.1 misha 920: ac_builddir=.
921:
1.11 moko 922: if test "$ac_dir" != .; then
923: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924: # A "../" for each directory in $ac_dir_suffix.
925: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926: else
927: ac_dir_suffix= ac_top_builddir=
928: fi
1.1 misha 929:
930: case $srcdir in
1.11 moko 931: .) # No --srcdir option. We are building in place.
1.1 misha 932: ac_srcdir=.
1.11 moko 933: if test -z "$ac_top_builddir"; then
934: ac_top_srcdir=.
935: else
936: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937: fi ;;
938: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 939: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 940: ac_top_srcdir=$srcdir ;;
941: *) # Relative path.
942: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943: ac_top_srcdir=$ac_top_builddir$srcdir ;;
944: esac
945:
946: # Do not use `cd foo && pwd` to compute absolute paths, because
947: # the directories may not exist.
948: case `pwd` in
949: .) ac_abs_builddir="$ac_dir";;
950: *)
951: case "$ac_dir" in
952: .) ac_abs_builddir=`pwd`;;
953: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954: *) ac_abs_builddir=`pwd`/"$ac_dir";;
955: esac;;
956: esac
957: case $ac_abs_builddir in
958: .) ac_abs_top_builddir=${ac_top_builddir}.;;
959: *)
960: case ${ac_top_builddir}. in
961: .) ac_abs_top_builddir=$ac_abs_builddir;;
962: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964: esac;;
965: esac
966: case $ac_abs_builddir in
967: .) ac_abs_srcdir=$ac_srcdir;;
968: *)
969: case $ac_srcdir in
970: .) ac_abs_srcdir=$ac_abs_builddir;;
971: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973: esac;;
974: esac
975: case $ac_abs_builddir in
976: .) ac_abs_top_srcdir=$ac_top_srcdir;;
977: *)
978: case $ac_top_srcdir in
979: .) ac_abs_top_srcdir=$ac_abs_builddir;;
980: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982: esac;;
1.1 misha 983: esac
984:
1.11 moko 985: cd $ac_dir
986: # Check for guested configure; otherwise get Cygnus style configure.
987: if test -f $ac_srcdir/configure.gnu; then
988: echo
989: $SHELL $ac_srcdir/configure.gnu --help=recursive
990: elif test -f $ac_srcdir/configure; then
991: echo
992: $SHELL $ac_srcdir/configure --help=recursive
993: elif test -f $ac_srcdir/configure.ac ||
994: test -f $ac_srcdir/configure.in; then
995: echo
996: $ac_configure --help
1.1 misha 997: else
1.11 moko 998: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999: fi
1000: cd $ac_popdir
1.1 misha 1001: done
1002: fi
1003:
1.11 moko 1004: test -n "$ac_init_help" && exit 0
1.1 misha 1005: if $ac_init_version; then
1006: cat <<\_ACEOF
1.13 moko 1007: parser3sqlite.C configure 10.2
1008: generated by GNU Autoconf 2.59
1.1 misha 1009:
1.11 moko 1010: Copyright (C) 2003 Free Software Foundation, Inc.
1.1 misha 1011: This configure script is free software; the Free Software Foundation
1012: gives unlimited permission to copy, distribute and modify it.
1013: _ACEOF
1.11 moko 1014: exit 0
1.1 misha 1015: fi
1.11 moko 1016: exec 5>config.log
1017: cat >&5 <<_ACEOF
1018: This file contains any messages produced by compilers while
1019: running configure, to aid debugging if configure makes a mistake.
1.1 misha 1020:
1.13 moko 1021: It was created by parser3sqlite.C $as_me 10.2, which was
1.11 moko 1022: generated by GNU Autoconf 2.59. Invocation command line was
1.10 moko 1023:
1.11 moko 1024: $ $0 $@
1.1 misha 1025:
1.11 moko 1026: _ACEOF
1.1 misha 1027: {
1.11 moko 1028: cat <<_ASUNAME
1029: ## --------- ##
1030: ## Platform. ##
1031: ## --------- ##
1.10 moko 1032:
1.11 moko 1033: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 misha 1038:
1.11 moko 1039: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1.1 misha 1040: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041:
1042: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.11 moko 1045: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1.1 misha 1046: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049:
1050: _ASUNAME
1051:
1052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053: for as_dir in $PATH
1054: do
1055: IFS=$as_save_IFS
1056: test -z "$as_dir" && as_dir=.
1.11 moko 1057: echo "PATH: $as_dir"
1058: done
1.1 misha 1059:
1060: } >&5
1061:
1062: cat >&5 <<_ACEOF
1063:
1064:
1065: ## ----------- ##
1066: ## Core tests. ##
1067: ## ----------- ##
1068:
1069: _ACEOF
1070:
1071:
1072: # Keep a trace of the command line.
1073: # Strip out --no-create and --no-recursion so they do not pile up.
1074: # Strip out --silent because we don't want to record it for future runs.
1075: # Also quote any args containing shell meta-characters.
1076: # Make two passes to allow for proper duplicate-argument suppression.
1077: ac_configure_args=
1078: ac_configure_args0=
1079: ac_configure_args1=
1.11 moko 1080: ac_sep=
1.1 misha 1081: ac_must_keep_next=false
1082: for ac_pass in 1 2
1083: do
1084: for ac_arg
1085: do
1086: case $ac_arg in
1087: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089: | -silent | --silent | --silen | --sile | --sil)
1090: continue ;;
1.11 moko 1091: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1093: esac
1094: case $ac_pass in
1.11 moko 1095: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1.1 misha 1096: 2)
1.11 moko 1097: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1.1 misha 1098: if test $ac_must_keep_next = true; then
1099: ac_must_keep_next=false # Got value, back to normal.
1100: else
1101: case $ac_arg in
1102: *=* | --config-cache | -C | -disable-* | --disable-* \
1103: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105: | -with-* | --with-* | -without-* | --without-* | --x)
1106: case "$ac_configure_args0 " in
1107: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108: esac
1109: ;;
1110: -* ) ac_must_keep_next=true ;;
1111: esac
1112: fi
1.11 moko 1113: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114: # Get rid of the leading space.
1115: ac_sep=" "
1.1 misha 1116: ;;
1117: esac
1118: done
1119: done
1.11 moko 1120: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 misha 1122:
1123: # When interrupted or exit'd, cleanup temporary files, and complete
1124: # config.log. We remove comments because anyway the quotes in there
1125: # would cause problems or look ugly.
1.11 moko 1126: # WARNING: Be sure not to use single quotes in there, as some shells,
1127: # such as our DU 5.0 friend, will then `close' the trap.
1.1 misha 1128: trap 'exit_status=$?
1129: # Save into config.log some information that might help in debugging.
1130: {
1131: echo
1132:
1.11 moko 1133: cat <<\_ASBOX
1134: ## ---------------- ##
1.1 misha 1135: ## Cache variables. ##
1.11 moko 1136: ## ---------------- ##
1137: _ASBOX
1.1 misha 1138: echo
1139: # The following way of writing the cache mishandles newlines in values,
1.11 moko 1140: {
1.1 misha 1141: (set) 2>&1 |
1.11 moko 1142: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143: *ac_space=\ *)
1.1 misha 1144: sed -n \
1.11 moko 1145: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147: ;;
1.1 misha 1148: *)
1.11 moko 1149: sed -n \
1150: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.1 misha 1151: ;;
1.11 moko 1152: esac;
1153: }
1.1 misha 1154: echo
1155:
1.11 moko 1156: cat <<\_ASBOX
1157: ## ----------------- ##
1.1 misha 1158: ## Output variables. ##
1.11 moko 1159: ## ----------------- ##
1160: _ASBOX
1.1 misha 1161: echo
1162: for ac_var in $ac_subst_vars
1163: do
1.11 moko 1164: eval ac_val=$`echo $ac_var`
1165: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1166: done | sort
1167: echo
1168:
1169: if test -n "$ac_subst_files"; then
1.11 moko 1170: cat <<\_ASBOX
1171: ## ------------- ##
1172: ## Output files. ##
1173: ## ------------- ##
1174: _ASBOX
1.1 misha 1175: echo
1176: for ac_var in $ac_subst_files
1177: do
1.11 moko 1178: eval ac_val=$`echo $ac_var`
1179: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1180: done | sort
1181: echo
1182: fi
1183:
1184: if test -s confdefs.h; then
1.11 moko 1185: cat <<\_ASBOX
1186: ## ----------- ##
1.1 misha 1187: ## confdefs.h. ##
1.11 moko 1188: ## ----------- ##
1189: _ASBOX
1.1 misha 1190: echo
1.11 moko 1191: sed "/^$/d" confdefs.h | sort
1.1 misha 1192: echo
1193: fi
1194: test "$ac_signal" != 0 &&
1.11 moko 1195: echo "$as_me: caught signal $ac_signal"
1196: echo "$as_me: exit $exit_status"
1.1 misha 1197: } >&5
1.11 moko 1198: rm -f core *.core &&
1199: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.1 misha 1200: exit $exit_status
1.11 moko 1201: ' 0
1.1 misha 1202: for ac_signal in 1 2 13 15; do
1.11 moko 1203: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1.1 misha 1204: done
1205: ac_signal=0
1206:
1207: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.11 moko 1208: rm -rf conftest* confdefs.h
1209: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210: echo >confdefs.h
1.1 misha 1211:
1212: # Predefined preprocessor variables.
1213:
1214: cat >>confdefs.h <<_ACEOF
1215: #define PACKAGE_NAME "$PACKAGE_NAME"
1216: _ACEOF
1217:
1.11 moko 1218:
1.1 misha 1219: cat >>confdefs.h <<_ACEOF
1220: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221: _ACEOF
1222:
1.11 moko 1223:
1.1 misha 1224: cat >>confdefs.h <<_ACEOF
1225: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226: _ACEOF
1227:
1.11 moko 1228:
1.1 misha 1229: cat >>confdefs.h <<_ACEOF
1230: #define PACKAGE_STRING "$PACKAGE_STRING"
1231: _ACEOF
1232:
1.11 moko 1233:
1.10 moko 1234: cat >>confdefs.h <<_ACEOF
1235: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236: _ACEOF
1.1 misha 1237:
1238:
1239: # Let the site file select an alternate cache file if it wants to.
1.11 moko 1240: # Prefer explicitly selected file to automatically selected ones.
1241: if test -z "$CONFIG_SITE"; then
1242: if test "x$prefix" != xNONE; then
1243: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244: else
1245: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246: fi
1247: fi
1248: for ac_site_file in $CONFIG_SITE; do
1249: if test -r "$ac_site_file"; then
1250: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251: echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misha 1252: sed 's/^/| /' "$ac_site_file" >&5
1.11 moko 1253: . "$ac_site_file"
1.1 misha 1254: fi
1255: done
1256:
1257: if test -r "$cache_file"; then
1.11 moko 1258: # Some versions of bash will fail to source /dev/null (special
1259: # files actually), so we avoid doing that.
1260: if test -f "$cache_file"; then
1261: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262: echo "$as_me: loading cache $cache_file" >&6;}
1.1 misha 1263: case $cache_file in
1.11 moko 1264: [\\/]* | ?:[\\/]* ) . $cache_file;;
1265: *) . ./$cache_file;;
1.1 misha 1266: esac
1267: fi
1268: else
1.11 moko 1269: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270: echo "$as_me: creating cache $cache_file" >&6;}
1.1 misha 1271: >$cache_file
1272: fi
1273:
1274: # Check that the precious variables saved in the cache have kept the same
1275: # value.
1276: ac_cache_corrupted=false
1.11 moko 1277: for ac_var in `(set) 2>&1 |
1278: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.1 misha 1279: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280: eval ac_new_set=\$ac_env_${ac_var}_set
1.11 moko 1281: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282: eval ac_new_val="\$ac_env_${ac_var}_value"
1.1 misha 1283: case $ac_old_set,$ac_new_set in
1284: set,)
1.11 moko 1285: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misha 1287: ac_cache_corrupted=: ;;
1288: ,set)
1.11 moko 1289: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misha 1291: ac_cache_corrupted=: ;;
1292: ,);;
1293: *)
1294: if test "x$ac_old_val" != "x$ac_new_val"; then
1.11 moko 1295: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1298: echo "$as_me: former value: $ac_old_val" >&2;}
1299: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1300: echo "$as_me: current value: $ac_new_val" >&2;}
1301: ac_cache_corrupted=:
1.1 misha 1302: fi;;
1303: esac
1304: # Pass precious variables to config.status.
1305: if test "$ac_new_set" = set; then
1306: case $ac_new_val in
1.11 moko 1307: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1309: *) ac_arg=$ac_var=$ac_new_val ;;
1310: esac
1311: case " $ac_configure_args " in
1312: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.11 moko 1313: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.1 misha 1314: esac
1315: fi
1316: done
1317: if $ac_cache_corrupted; then
1.11 moko 1318: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322: { (exit 1); exit 1; }; }
1323: fi
1.1 misha 1324:
1325: ac_ext=c
1326: ac_cpp='$CPP $CPPFLAGS'
1327: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330:
1331:
1332:
1333:
1.11 moko 1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1.13 moko 1351:
1352:
1353:
1354:
1355:
1356:
1357:
1358: ac_config_headers="$ac_config_headers config_auto.h"
1359:
1360:
1.1 misha 1361: am__api_version="1.9"
1362: ac_aux_dir=
1.11 moko 1363: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1364: if test -f $ac_dir/install-sh; then
1.1 misha 1365: ac_aux_dir=$ac_dir
1366: ac_install_sh="$ac_aux_dir/install-sh -c"
1367: break
1.11 moko 1368: elif test -f $ac_dir/install.sh; then
1.1 misha 1369: ac_aux_dir=$ac_dir
1370: ac_install_sh="$ac_aux_dir/install.sh -c"
1371: break
1.11 moko 1372: elif test -f $ac_dir/shtool; then
1.1 misha 1373: ac_aux_dir=$ac_dir
1374: ac_install_sh="$ac_aux_dir/shtool install -c"
1375: break
1376: fi
1377: done
1378: if test -z "$ac_aux_dir"; then
1.11 moko 1379: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1380: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1381: { (exit 1); exit 1; }; }
1382: fi
1383: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1384: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1385: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 misha 1386:
1387: # Find a good install program. We prefer a C program (faster),
1388: # so one script is as good as another. But avoid the broken or
1389: # incompatible versions:
1390: # SysV /etc/install, /usr/sbin/install
1391: # SunOS /usr/etc/install
1392: # IRIX /sbin/install
1393: # AIX /bin/install
1394: # AmigaOS /C/install, which installs bootblocks on floppy discs
1395: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1396: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1397: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1398: # OS/2's system install, which has a completely different semantic
1399: # ./install, which can be erroneously created by make from ./install.sh.
1.11 moko 1400: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1401: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 misha 1402: if test -z "$INSTALL"; then
1.11 moko 1403: if test "${ac_cv_path_install+set}" = set; then
1404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1405: else
1406: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407: for as_dir in $PATH
1408: do
1409: IFS=$as_save_IFS
1410: test -z "$as_dir" && as_dir=.
1.11 moko 1411: # Account for people who put trailing slashes in PATH elements.
1412: case $as_dir/ in
1413: ./ | .// | /cC/* | \
1.1 misha 1414: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.11 moko 1415: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 misha 1416: /usr/ucb/* ) ;;
1417: *)
1418: # OSF1 and SCO ODT 3.0 have their own names for install.
1419: # Don't use installbsd from OSF since it installs stuff as root
1420: # by default.
1421: for ac_prog in ginstall scoinst install; do
1422: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 1423: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misha 1424: if test $ac_prog = install &&
1425: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1426: # AIX install. It has an incompatible calling convention.
1427: :
1428: elif test $ac_prog = install &&
1429: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1430: # program-specific install script used by HP pwplus--don't use.
1431: :
1432: else
1.11 moko 1433: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1434: break 3
1.1 misha 1435: fi
1436: fi
1437: done
1438: done
1439: ;;
1440: esac
1.11 moko 1441: done
1.1 misha 1442:
1443:
1444: fi
1445: if test "${ac_cv_path_install+set}" = set; then
1446: INSTALL=$ac_cv_path_install
1447: else
1.11 moko 1448: # As a last resort, use the slow shell script. We don't cache a
1449: # path for INSTALL within a source directory, because that will
1.1 misha 1450: # break other packages using the cache if that directory is
1.11 moko 1451: # removed, or if the path is relative.
1.1 misha 1452: INSTALL=$ac_install_sh
1453: fi
1454: fi
1.11 moko 1455: echo "$as_me:$LINENO: result: $INSTALL" >&5
1456: echo "${ECHO_T}$INSTALL" >&6
1.1 misha 1457:
1458: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1459: # It thinks the first close brace ends the variable substitution.
1460: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461:
1462: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1463:
1464: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1465:
1.11 moko 1466: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1467: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 misha 1468: # Just in case
1469: sleep 1
1470: echo timestamp > conftest.file
1471: # Do `set' in a subshell so we don't clobber the current shell's
1472: # arguments. Must try -L first in case configure is actually a
1473: # symlink; some systems play weird games with the mod time of symlinks
1474: # (eg FreeBSD returns the mod time of the symlink's containing
1475: # directory).
1476: if (
1477: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1478: if test "$*" = "X"; then
1479: # -L didn't work.
1480: set X `ls -t $srcdir/configure conftest.file`
1481: fi
1482: rm -f conftest.file
1483: if test "$*" != "X $srcdir/configure conftest.file" \
1484: && test "$*" != "X conftest.file $srcdir/configure"; then
1485:
1486: # If neither matched, then we have a broken ls. This can happen
1487: # if, for instance, CONFIG_SHELL is bash and it inherits a
1488: # broken ls alias from the environment. This has actually
1489: # happened. Such a system could not be considered "sane".
1.11 moko 1490: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1491: alias in your environment" >&5
1492: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1493: alias in your environment" >&2;}
1494: { (exit 1); exit 1; }; }
1.1 misha 1495: fi
1496:
1497: test "$2" = conftest.file
1498: )
1499: then
1500: # Ok.
1501: :
1502: else
1.11 moko 1503: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1504: Check your system clock" >&5
1505: echo "$as_me: error: newly created file is older than distributed files!
1506: Check your system clock" >&2;}
1507: { (exit 1); exit 1; }; }
1.1 misha 1508: fi
1.11 moko 1509: echo "$as_me:$LINENO: result: yes" >&5
1510: echo "${ECHO_T}yes" >&6
1.1 misha 1511: test "$program_prefix" != NONE &&
1.11 moko 1512: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 misha 1513: # Use a double $ so make ignores it.
1514: test "$program_suffix" != NONE &&
1.11 moko 1515: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1516: # Double any \ or $. echo might interpret backslashes.
1.1 misha 1517: # By default was `s,x,x', remove it if useless.
1.11 moko 1518: cat <<\_ACEOF >conftest.sed
1519: s/[\\$]/&&/g;s/;s,x,x,$//
1520: _ACEOF
1521: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1522: rm conftest.sed
1.1 misha 1523:
1524: # expand $ac_aux_dir to an absolute path
1525: am_aux_dir=`cd $ac_aux_dir && pwd`
1526:
1527: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1528: # Use eval to expand $SHELL
1529: if eval "$MISSING --run true"; then
1530: am_missing_run="$MISSING --run "
1531: else
1532: am_missing_run=
1.11 moko 1533: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1534: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1 misha 1535: fi
1536:
1537: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1538: # We used to keeping the `.' as first argument, in order to
1539: # allow $(mkdir_p) to be used without argument. As in
1540: # $(mkdir_p) $(somedir)
1541: # where $(somedir) is conditionally defined. However this is wrong
1542: # for two reasons:
1543: # 1. if the package is installed by a user who cannot write `.'
1544: # make install will fail,
1545: # 2. the above comment should most certainly read
1546: # $(mkdir_p) $(DESTDIR)$(somedir)
1547: # so it does not work when $(somedir) is undefined and
1548: # $(DESTDIR) is not.
1549: # To support the latter case, we have to write
1550: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1551: # so the `.' trick is pointless.
1552: mkdir_p='mkdir -p --'
1553: else
1554: # On NextStep and OpenStep, the `mkdir' command does not
1555: # recognize any option. It will interpret all options as
1556: # directories to create, and then abort because `.' already
1557: # exists.
1558: for d in ./-p ./--version;
1559: do
1560: test -d $d && rmdir $d
1561: done
1562: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1563: if test -f "$ac_aux_dir/mkinstalldirs"; then
1564: mkdir_p='$(mkinstalldirs)'
1565: else
1566: mkdir_p='$(install_sh) -d'
1567: fi
1568: fi
1569:
1570: for ac_prog in gawk mawk nawk awk
1571: do
1572: # Extract the first word of "$ac_prog", so it can be a program name with args.
1573: set dummy $ac_prog; ac_word=$2
1.11 moko 1574: echo "$as_me:$LINENO: checking for $ac_word" >&5
1575: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576: if test "${ac_cv_prog_AWK+set}" = set; then
1577: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1578: else
1579: if test -n "$AWK"; then
1580: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1581: else
1582: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583: for as_dir in $PATH
1584: do
1585: IFS=$as_save_IFS
1586: test -z "$as_dir" && as_dir=.
1.11 moko 1587: for ac_exec_ext in '' $ac_executable_extensions; do
1588: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1589: ac_cv_prog_AWK="$ac_prog"
1.11 moko 1590: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1591: break 2
1592: fi
1593: done
1.11 moko 1594: done
1.1 misha 1595:
1596: fi
1597: fi
1598: AWK=$ac_cv_prog_AWK
1599: if test -n "$AWK"; then
1.11 moko 1600: echo "$as_me:$LINENO: result: $AWK" >&5
1601: echo "${ECHO_T}$AWK" >&6
1.1 misha 1602: else
1.11 moko 1603: echo "$as_me:$LINENO: result: no" >&5
1604: echo "${ECHO_T}no" >&6
1.1 misha 1605: fi
1606:
1607: test -n "$AWK" && break
1608: done
1609:
1.11 moko 1610: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1611: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1612: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1613: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1615: else
1616: cat >conftest.make <<\_ACEOF
1617: all:
1.11 moko 1618: @echo 'ac_maketemp="$(MAKE)"'
1.1 misha 1619: _ACEOF
1.11 moko 1620: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1621: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1622: if test -n "$ac_maketemp"; then
1623: eval ac_cv_prog_make_${ac_make}_set=yes
1624: else
1625: eval ac_cv_prog_make_${ac_make}_set=no
1626: fi
1.1 misha 1627: rm -f conftest.make
1628: fi
1.11 moko 1629: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1630: echo "$as_me:$LINENO: result: yes" >&5
1631: echo "${ECHO_T}yes" >&6
1.1 misha 1632: SET_MAKE=
1633: else
1.11 moko 1634: echo "$as_me:$LINENO: result: no" >&5
1635: echo "${ECHO_T}no" >&6
1.1 misha 1636: SET_MAKE="MAKE=${MAKE-make}"
1637: fi
1638:
1639: rm -rf .tst 2>/dev/null
1640: mkdir .tst 2>/dev/null
1641: if test -d .tst; then
1642: am__leading_dot=.
1643: else
1644: am__leading_dot=_
1645: fi
1646: rmdir .tst 2>/dev/null
1647:
1648: # test to see if srcdir already configured
1649: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1650: test -f $srcdir/config.status; then
1.11 moko 1651: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1652: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1653: { (exit 1); exit 1; }; }
1.1 misha 1654: fi
1655:
1656: # test whether we have cygpath
1657: if test -z "$CYGPATH_W"; then
1658: if (cygpath --version) >/dev/null 2>/dev/null; then
1659: CYGPATH_W='cygpath -w'
1660: else
1661: CYGPATH_W=echo
1662: fi
1663: fi
1664:
1665:
1666: # Define the identity of the package.
1.13 moko 1667: PACKAGE='parser3sqlite-c'
1668: VERSION='10.2'
1.1 misha 1669:
1670:
1.13 moko 1671: cat >>confdefs.h <<_ACEOF
1672: #define PACKAGE "$PACKAGE"
1673: _ACEOF
1674:
1675:
1676: cat >>confdefs.h <<_ACEOF
1677: #define VERSION "$VERSION"
1678: _ACEOF
1679:
1.1 misha 1680: # Some tools Automake needs.
1681:
1682: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1683:
1684:
1685: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1686:
1687:
1688: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1689:
1690:
1691: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1692:
1693:
1694: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1695:
1696: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1697:
1698: # Installed binaries are usually stripped using `strip' when the user
1699: # run `make install-strip'. However `strip' might not be the right
1700: # tool to use in cross-compilation environments, therefore Automake
1701: # will honor the `STRIP' environment variable to overrule this program.
1702: if test "$cross_compiling" != no; then
1703: if test -n "$ac_tool_prefix"; then
1704: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1705: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 1706: echo "$as_me:$LINENO: checking for $ac_word" >&5
1707: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708: if test "${ac_cv_prog_STRIP+set}" = set; then
1709: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1710: else
1711: if test -n "$STRIP"; then
1712: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1713: else
1714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715: for as_dir in $PATH
1716: do
1717: IFS=$as_save_IFS
1718: test -z "$as_dir" && as_dir=.
1.11 moko 1719: for ac_exec_ext in '' $ac_executable_extensions; do
1720: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1721: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 1722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1723: break 2
1724: fi
1725: done
1.11 moko 1726: done
1727:
1.1 misha 1728: fi
1729: fi
1730: STRIP=$ac_cv_prog_STRIP
1731: if test -n "$STRIP"; then
1.11 moko 1732: echo "$as_me:$LINENO: result: $STRIP" >&5
1733: echo "${ECHO_T}$STRIP" >&6
1.1 misha 1734: else
1.11 moko 1735: echo "$as_me:$LINENO: result: no" >&5
1736: echo "${ECHO_T}no" >&6
1.1 misha 1737: fi
1738:
1739: fi
1740: if test -z "$ac_cv_prog_STRIP"; then
1741: ac_ct_STRIP=$STRIP
1742: # Extract the first word of "strip", so it can be a program name with args.
1743: set dummy strip; ac_word=$2
1.11 moko 1744: echo "$as_me:$LINENO: checking for $ac_word" >&5
1745: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1748: else
1749: if test -n "$ac_ct_STRIP"; then
1750: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1751: else
1752: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753: for as_dir in $PATH
1754: do
1755: IFS=$as_save_IFS
1756: test -z "$as_dir" && as_dir=.
1.11 moko 1757: for ac_exec_ext in '' $ac_executable_extensions; do
1758: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1759: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 1760: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1761: break 2
1762: fi
1763: done
1.11 moko 1764: done
1.1 misha 1765:
1.11 moko 1766: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 1767: fi
1768: fi
1769: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1770: if test -n "$ac_ct_STRIP"; then
1.11 moko 1771: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1772: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 misha 1773: else
1.11 moko 1774: echo "$as_me:$LINENO: result: no" >&5
1775: echo "${ECHO_T}no" >&6
1.1 misha 1776: fi
1777:
1.11 moko 1778: STRIP=$ac_ct_STRIP
1.1 misha 1779: else
1780: STRIP="$ac_cv_prog_STRIP"
1781: fi
1782:
1783: fi
1784: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1785:
1786: # We need awk for the "check" target. The system "awk" is bad on
1787: # some platforms.
1788: # Always define AMTAR for backward compatibility.
1789:
1790: AMTAR=${AMTAR-"${am_missing_run}tar"}
1791:
1792: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1793:
1794:
1795:
1796:
1797:
1798:
1799:
1800:
1801:
1.11 moko 1802: # Check whether --with-sqlite-inc or --without-sqlite-inc was given.
1803: if test "${with_sqlite_inc+set}" = set; then
1804: withval="$with_sqlite_inc"
1.1 misha 1805:
1806: if test -r "$withval/sqlite3.h"; then
1807: SQLITE_INC=$withval
1808: fi
1809:
1810:
1.4 misha 1811: if test -z "$SQLITE_INC"; then
1.11 moko 1812: { { echo "$as_me:$LINENO: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&5
1813: echo "$as_me: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&2;}
1814: { (exit 1); exit 1; }; }
1.4 misha 1815: fi
1.1 misha 1816:
1817: else
1.11 moko 1818: echo "$as_me:$LINENO: checking for SQLITE_INC directory" >&5
1819: echo $ECHO_N "checking for SQLITE_INC directory... $ECHO_C" >&6
1.1 misha 1820: for d in \
1.9 moko 1821: /usr/local/include \
1822: /usr/include \
1.1 misha 1823: /usr/local/include/sqlite \
1824: /usr/include/sqlite ; do
1825:
1826: if test -r "$d/sqlite3.h"; then
1827: SQLITE_INC=$d
1828: fi
1829:
1830: done
1831:
1.4 misha 1832: if test -z "$SQLITE_INC"; then
1.11 moko 1833: { { echo "$as_me:$LINENO: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&5
1834: echo "$as_me: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&2;}
1835: { (exit 1); exit 1; }; }
1.4 misha 1836: fi
1.1 misha 1837:
1.11 moko 1838: echo "$as_me:$LINENO: result: $SQLITE_INC" >&5
1839: echo "${ECHO_T}$SQLITE_INC" >&6
1.1 misha 1840:
1.11 moko 1841: fi;
1.1 misha 1842:
1843:
1844:
1.11 moko 1845: # Find a good install program. We prefer a C program (faster),
1846: # so one script is as good as another. But avoid the broken or
1847: # incompatible versions:
1848: # SysV /etc/install, /usr/sbin/install
1849: # SunOS /usr/etc/install
1850: # IRIX /sbin/install
1851: # AIX /bin/install
1852: # AmigaOS /C/install, which installs bootblocks on floppy discs
1853: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1854: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1855: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1856: # OS/2's system install, which has a completely different semantic
1857: # ./install, which can be erroneously created by make from ./install.sh.
1858: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1859: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1860: if test -z "$INSTALL"; then
1861: if test "${ac_cv_path_install+set}" = set; then
1862: echo $ECHO_N "(cached) $ECHO_C" >&6
1863: else
1864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865: for as_dir in $PATH
1866: do
1867: IFS=$as_save_IFS
1868: test -z "$as_dir" && as_dir=.
1869: # Account for people who put trailing slashes in PATH elements.
1870: case $as_dir/ in
1871: ./ | .// | /cC/* | \
1872: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1873: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1874: /usr/ucb/* ) ;;
1875: *)
1876: # OSF1 and SCO ODT 3.0 have their own names for install.
1877: # Don't use installbsd from OSF since it installs stuff as root
1878: # by default.
1879: for ac_prog in ginstall scoinst install; do
1880: for ac_exec_ext in '' $ac_executable_extensions; do
1881: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1882: if test $ac_prog = install &&
1883: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1884: # AIX install. It has an incompatible calling convention.
1885: :
1886: elif test $ac_prog = install &&
1887: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1888: # program-specific install script used by HP pwplus--don't use.
1889: :
1890: else
1891: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1892: break 3
1893: fi
1894: fi
1895: done
1896: done
1897: ;;
1898: esac
1899: done
1900:
1901:
1902: fi
1903: if test "${ac_cv_path_install+set}" = set; then
1904: INSTALL=$ac_cv_path_install
1905: else
1906: # As a last resort, use the slow shell script. We don't cache a
1907: # path for INSTALL within a source directory, because that will
1908: # break other packages using the cache if that directory is
1909: # removed, or if the path is relative.
1910: INSTALL=$ac_install_sh
1911: fi
1.10 moko 1912: fi
1.11 moko 1913: echo "$as_me:$LINENO: result: $INSTALL" >&5
1914: echo "${ECHO_T}$INSTALL" >&6
1.6 misha 1915:
1.11 moko 1916: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1917: # It thinks the first close brace ends the variable substitution.
1918: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.6 misha 1919:
1.11 moko 1920: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.6 misha 1921:
1.11 moko 1922: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 misha 1923:
1.11 moko 1924: ac_ext=cc
1.1 misha 1925: ac_cpp='$CXXCPP $CPPFLAGS'
1926: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 1929: if test -n "$ac_tool_prefix"; then
1930: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1931: do
1932: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 1934: echo "$as_me:$LINENO: checking for $ac_word" >&5
1935: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936: if test "${ac_cv_prog_CXX+set}" = set; then
1937: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1938: else
1939: if test -n "$CXX"; then
1940: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1941: else
1942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943: for as_dir in $PATH
1944: do
1945: IFS=$as_save_IFS
1946: test -z "$as_dir" && as_dir=.
1.11 moko 1947: for ac_exec_ext in '' $ac_executable_extensions; do
1948: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1949: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.11 moko 1950: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1951: break 2
1952: fi
1953: done
1.11 moko 1954: done
1.1 misha 1955:
1956: fi
1957: fi
1958: CXX=$ac_cv_prog_CXX
1959: if test -n "$CXX"; then
1.11 moko 1960: echo "$as_me:$LINENO: result: $CXX" >&5
1961: echo "${ECHO_T}$CXX" >&6
1.1 misha 1962: else
1.11 moko 1963: echo "$as_me:$LINENO: result: no" >&5
1964: echo "${ECHO_T}no" >&6
1.1 misha 1965: fi
1966:
1967: test -n "$CXX" && break
1968: done
1969: fi
1970: if test -z "$CXX"; then
1971: ac_ct_CXX=$CXX
1.11 moko 1972: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1973: do
1974: # Extract the first word of "$ac_prog", so it can be a program name with args.
1975: set dummy $ac_prog; ac_word=$2
1.11 moko 1976: echo "$as_me:$LINENO: checking for $ac_word" >&5
1977: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1979: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1980: else
1981: if test -n "$ac_ct_CXX"; then
1982: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1983: else
1984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985: for as_dir in $PATH
1986: do
1987: IFS=$as_save_IFS
1988: test -z "$as_dir" && as_dir=.
1.11 moko 1989: for ac_exec_ext in '' $ac_executable_extensions; do
1990: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1991: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.11 moko 1992: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1993: break 2
1994: fi
1995: done
1.11 moko 1996: done
1.1 misha 1997:
1998: fi
1999: fi
2000: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2001: if test -n "$ac_ct_CXX"; then
1.11 moko 2002: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2003: echo "${ECHO_T}$ac_ct_CXX" >&6
1.1 misha 2004: else
1.11 moko 2005: echo "$as_me:$LINENO: result: no" >&5
2006: echo "${ECHO_T}no" >&6
1.1 misha 2007: fi
2008:
2009: test -n "$ac_ct_CXX" && break
2010: done
1.11 moko 2011: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 misha 2012:
1.11 moko 2013: CXX=$ac_ct_CXX
1.1 misha 2014: fi
2015:
1.11 moko 2016:
1.1 misha 2017: # Provide some information about the compiler.
1.11 moko 2018: echo "$as_me:$LINENO:" \
2019: "checking for C++ compiler version" >&5
2020: ac_compiler=`set X $ac_compile; echo $2`
2021: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022: (eval $ac_compiler --version </dev/null >&5) 2>&5
2023: ac_status=$?
2024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025: (exit $ac_status); }
2026: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027: (eval $ac_compiler -v </dev/null >&5) 2>&5
2028: ac_status=$?
2029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030: (exit $ac_status); }
2031: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2033: ac_status=$?
1.11 moko 2034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035: (exit $ac_status); }
1.1 misha 2036:
1.11 moko 2037: cat >conftest.$ac_ext <<_ACEOF
2038: /* confdefs.h. */
2039: _ACEOF
2040: cat confdefs.h >>conftest.$ac_ext
2041: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2042: /* end confdefs.h. */
2043:
2044: int
2045: main ()
2046: {
2047:
2048: ;
2049: return 0;
2050: }
2051: _ACEOF
2052: ac_clean_files_save=$ac_clean_files
1.11 moko 2053: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 misha 2054: # Try to create an executable without -o first, disregard a.out.
2055: # It will help us diagnose broken compilers, and finding out an intuition
2056: # of exeext.
1.11 moko 2057: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2058: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2059: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061: (eval $ac_link_default) 2>&5
2062: ac_status=$?
2063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064: (exit $ac_status); }; then
2065: # Find the output, starting from the most likely. This scheme is
2066: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067: # resort.
2068:
2069: # Be careful to initialize this variable, since it used to be cached.
2070: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071: ac_cv_exeext=
2072: # b.out is created by i960 compilers.
2073: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.1 misha 2074: do
2075: test -f "$ac_file" || continue
2076: case $ac_file in
1.11 moko 2077: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2078: ;;
2079: conftest.$ac_ext )
2080: # This is the source file.
1.1 misha 2081: ;;
2082: [ab].out )
2083: # We found the default executable, but exeext='' is most
2084: # certainly right.
2085: break;;
2086: *.* )
1.11 moko 2087: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088: # FIXME: I believe we export ac_cv_exeext for Libtool,
2089: # but it would be cool to find out if it's true. Does anybody
2090: # maintain Libtool? --akim.
2091: export ac_cv_exeext
1.1 misha 2092: break;;
2093: * )
2094: break;;
2095: esac
2096: done
1.11 moko 2097: else
2098: echo "$as_me: failed program was:" >&5
2099: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2100:
1.11 moko 2101: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2102: See \`config.log' for more details." >&5
2103: echo "$as_me: error: C++ compiler cannot create executables
2104: See \`config.log' for more details." >&2;}
2105: { (exit 77); exit 77; }; }
1.10 moko 2106: fi
1.1 misha 2107:
2108: ac_exeext=$ac_cv_exeext
1.11 moko 2109: echo "$as_me:$LINENO: result: $ac_file" >&5
2110: echo "${ECHO_T}$ac_file" >&6
2111:
2112: # Check the compiler produces executables we can run. If not, either
2113: # the compiler is broken, or we cross compile.
2114: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2115: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2116: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117: # If not cross compiling, check that we can run a simple program.
2118: if test "$cross_compiling" != yes; then
2119: if { ac_try='./$ac_file'
2120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121: (eval $ac_try) 2>&5
2122: ac_status=$?
2123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124: (exit $ac_status); }; }; then
2125: cross_compiling=no
2126: else
2127: if test "$cross_compiling" = maybe; then
2128: cross_compiling=yes
2129: else
2130: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2131: If you meant to cross compile, use \`--host'.
2132: See \`config.log' for more details." >&5
2133: echo "$as_me: error: cannot run C++ compiled programs.
2134: If you meant to cross compile, use \`--host'.
2135: See \`config.log' for more details." >&2;}
2136: { (exit 1); exit 1; }; }
2137: fi
2138: fi
2139: fi
2140: echo "$as_me:$LINENO: result: yes" >&5
2141: echo "${ECHO_T}yes" >&6
1.1 misha 2142:
1.11 moko 2143: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 misha 2144: ac_clean_files=$ac_clean_files_save
1.11 moko 2145: # Check the compiler produces executables we can run. If not, either
2146: # the compiler is broken, or we cross compile.
2147: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150: echo "${ECHO_T}$cross_compiling" >&6
2151:
2152: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155: (eval $ac_link) 2>&5
1.1 misha 2156: ac_status=$?
1.11 moko 2157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158: (exit $ac_status); }; then
1.1 misha 2159: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161: # work properly (i.e., refer to `conftest.exe'), while it won't with
2162: # `rm'.
2163: for ac_file in conftest.exe conftest conftest.*; do
2164: test -f "$ac_file" || continue
2165: case $ac_file in
1.11 moko 2166: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.1 misha 2167: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.11 moko 2168: export ac_cv_exeext
1.1 misha 2169: break;;
2170: * ) break;;
2171: esac
2172: done
2173: else
1.11 moko 2174: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175: See \`config.log' for more details." >&5
2176: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177: See \`config.log' for more details." >&2;}
2178: { (exit 1); exit 1; }; }
2179: fi
2180:
2181: rm -f conftest$ac_cv_exeext
2182: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 misha 2184:
2185: rm -f conftest.$ac_ext
2186: EXEEXT=$ac_cv_exeext
2187: ac_exeext=$EXEEXT
1.11 moko 2188: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190: if test "${ac_cv_objext+set}" = set; then
2191: echo $ECHO_N "(cached) $ECHO_C" >&6
2192: else
2193: cat >conftest.$ac_ext <<_ACEOF
2194: /* confdefs.h. */
1.10 moko 2195: _ACEOF
1.11 moko 2196: cat confdefs.h >>conftest.$ac_ext
2197: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2198: /* end confdefs.h. */
2199:
2200: int
2201: main ()
2202: {
2203:
2204: ;
2205: return 0;
2206: }
2207: _ACEOF
2208: rm -f conftest.o conftest.obj
1.11 moko 2209: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210: (eval $ac_compile) 2>&5
2211: ac_status=$?
2212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213: (exit $ac_status); }; then
2214: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1.1 misha 2215: case $ac_file in
1.11 moko 2216: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.1 misha 2217: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218: break;;
2219: esac
2220: done
2221: else
1.11 moko 2222: echo "$as_me: failed program was:" >&5
1.1 misha 2223: sed 's/^/| /' conftest.$ac_ext >&5
2224:
1.11 moko 2225: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226: See \`config.log' for more details." >&5
2227: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228: See \`config.log' for more details." >&2;}
2229: { (exit 1); exit 1; }; }
1.1 misha 2230: fi
1.11 moko 2231:
1.1 misha 2232: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2233: fi
1.11 moko 2234: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235: echo "${ECHO_T}$ac_cv_objext" >&6
1.1 misha 2236: OBJEXT=$ac_cv_objext
2237: ac_objext=$OBJEXT
1.11 moko 2238: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2242: else
1.11 moko 2243: cat >conftest.$ac_ext <<_ACEOF
2244: /* confdefs.h. */
2245: _ACEOF
2246: cat confdefs.h >>conftest.$ac_ext
2247: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2248: /* end confdefs.h. */
2249:
2250: int
2251: main ()
2252: {
2253: #ifndef __GNUC__
2254: choke me
2255: #endif
2256:
2257: ;
2258: return 0;
2259: }
2260: _ACEOF
1.11 moko 2261: rm -f conftest.$ac_objext
2262: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263: (eval $ac_compile) 2>conftest.er1
2264: ac_status=$?
2265: grep -v '^ *+' conftest.er1 >conftest.err
2266: rm -f conftest.er1
2267: cat conftest.err >&5
2268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269: (exit $ac_status); } &&
2270: { ac_try='test -z "$ac_cxx_werror_flag"
2271: || test ! -s conftest.err'
2272: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273: (eval $ac_try) 2>&5
2274: ac_status=$?
2275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276: (exit $ac_status); }; } &&
2277: { ac_try='test -s conftest.$ac_objext'
2278: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279: (eval $ac_try) 2>&5
2280: ac_status=$?
2281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282: (exit $ac_status); }; }; then
1.1 misha 2283: ac_compiler_gnu=yes
2284: else
1.11 moko 2285: echo "$as_me: failed program was:" >&5
2286: sed 's/^/| /' conftest.$ac_ext >&5
2287:
2288: ac_compiler_gnu=no
1.1 misha 2289: fi
1.11 moko 2290: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 2291: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2292:
2293: fi
1.11 moko 2294: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2295: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2296: GXX=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 2297: ac_test_CXXFLAGS=${CXXFLAGS+set}
2298: ac_save_CXXFLAGS=$CXXFLAGS
1.11 moko 2299: CXXFLAGS="-g"
2300: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2301: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2302: if test "${ac_cv_prog_cxx_g+set}" = set; then
2303: echo $ECHO_N "(cached) $ECHO_C" >&6
2304: else
2305: cat >conftest.$ac_ext <<_ACEOF
2306: /* confdefs.h. */
2307: _ACEOF
2308: cat confdefs.h >>conftest.$ac_ext
2309: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2310: /* end confdefs.h. */
2311:
2312: int
2313: main ()
2314: {
2315:
2316: ;
2317: return 0;
2318: }
2319: _ACEOF
1.11 moko 2320: rm -f conftest.$ac_objext
2321: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322: (eval $ac_compile) 2>conftest.er1
2323: ac_status=$?
2324: grep -v '^ *+' conftest.er1 >conftest.err
2325: rm -f conftest.er1
2326: cat conftest.err >&5
2327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328: (exit $ac_status); } &&
2329: { ac_try='test -z "$ac_cxx_werror_flag"
2330: || test ! -s conftest.err'
2331: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332: (eval $ac_try) 2>&5
2333: ac_status=$?
2334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335: (exit $ac_status); }; } &&
2336: { ac_try='test -s conftest.$ac_objext'
2337: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338: (eval $ac_try) 2>&5
2339: ac_status=$?
2340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341: (exit $ac_status); }; }; then
1.1 misha 2342: ac_cv_prog_cxx_g=yes
2343: else
1.11 moko 2344: echo "$as_me: failed program was:" >&5
2345: sed 's/^/| /' conftest.$ac_ext >&5
2346:
2347: ac_cv_prog_cxx_g=no
2348: fi
2349: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350: fi
2351: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2352: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2353: if test "$ac_test_CXXFLAGS" = set; then
2354: CXXFLAGS=$ac_save_CXXFLAGS
2355: elif test $ac_cv_prog_cxx_g = yes; then
2356: if test "$GXX" = yes; then
2357: CXXFLAGS="-g -O2"
2358: else
2359: CXXFLAGS="-g"
2360: fi
2361: else
2362: if test "$GXX" = yes; then
2363: CXXFLAGS="-O2"
2364: else
2365: CXXFLAGS=
2366: fi
2367: fi
2368: for ac_declaration in \
2369: '' \
2370: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2371: 'extern "C" void std::exit (int); using std::exit;' \
2372: 'extern "C" void exit (int) throw ();' \
2373: 'extern "C" void exit (int);' \
2374: 'void exit (int);'
2375: do
2376: cat >conftest.$ac_ext <<_ACEOF
2377: /* confdefs.h. */
2378: _ACEOF
2379: cat confdefs.h >>conftest.$ac_ext
2380: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2381: /* end confdefs.h. */
1.11 moko 2382: $ac_declaration
2383: #include <stdlib.h>
1.1 misha 2384: int
2385: main ()
2386: {
1.11 moko 2387: exit (42);
1.1 misha 2388: ;
2389: return 0;
2390: }
2391: _ACEOF
1.11 moko 2392: rm -f conftest.$ac_objext
2393: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394: (eval $ac_compile) 2>conftest.er1
2395: ac_status=$?
2396: grep -v '^ *+' conftest.er1 >conftest.err
2397: rm -f conftest.er1
2398: cat conftest.err >&5
2399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400: (exit $ac_status); } &&
2401: { ac_try='test -z "$ac_cxx_werror_flag"
2402: || test ! -s conftest.err'
2403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404: (eval $ac_try) 2>&5
2405: ac_status=$?
2406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407: (exit $ac_status); }; } &&
2408: { ac_try='test -s conftest.$ac_objext'
2409: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410: (eval $ac_try) 2>&5
2411: ac_status=$?
2412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413: (exit $ac_status); }; }; then
2414: :
2415: else
2416: echo "$as_me: failed program was:" >&5
2417: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2418:
1.11 moko 2419: continue
2420: fi
2421: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422: cat >conftest.$ac_ext <<_ACEOF
2423: /* confdefs.h. */
2424: _ACEOF
2425: cat confdefs.h >>conftest.$ac_ext
2426: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2427: /* end confdefs.h. */
1.11 moko 2428: $ac_declaration
1.1 misha 2429: int
2430: main ()
2431: {
1.11 moko 2432: exit (42);
1.1 misha 2433: ;
2434: return 0;
2435: }
2436: _ACEOF
1.11 moko 2437: rm -f conftest.$ac_objext
2438: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439: (eval $ac_compile) 2>conftest.er1
2440: ac_status=$?
2441: grep -v '^ *+' conftest.er1 >conftest.err
2442: rm -f conftest.er1
2443: cat conftest.err >&5
2444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445: (exit $ac_status); } &&
2446: { ac_try='test -z "$ac_cxx_werror_flag"
2447: || test ! -s conftest.err'
2448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449: (eval $ac_try) 2>&5
2450: ac_status=$?
2451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452: (exit $ac_status); }; } &&
2453: { ac_try='test -s conftest.$ac_objext'
2454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455: (eval $ac_try) 2>&5
2456: ac_status=$?
2457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458: (exit $ac_status); }; }; then
2459: break
2460: else
2461: echo "$as_me: failed program was:" >&5
2462: sed 's/^/| /' conftest.$ac_ext >&5
2463:
1.10 moko 2464: fi
1.11 moko 2465: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466: done
2467: rm -f conftest*
2468: if test -n "$ac_declaration"; then
2469: echo '#ifdef __cplusplus' >>confdefs.h
2470: echo $ac_declaration >>confdefs.h
2471: echo '#endif' >>confdefs.h
1.1 misha 2472: fi
1.11 moko 2473:
1.1 misha 2474: ac_ext=c
2475: ac_cpp='$CPP $CPPFLAGS'
2476: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479: DEPDIR="${am__leading_dot}deps"
2480:
1.11 moko 2481: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 2482:
2483:
2484: am_make=${MAKE-make}
2485: cat > confinc << 'END'
2486: am__doit:
2487: @echo done
2488: .PHONY: am__doit
2489: END
2490: # If we don't find an include directive, just comment out the code.
1.11 moko 2491: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2492: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1.1 misha 2493: am__include="#"
2494: am__quote=
2495: _am_result=none
2496: # First try GNU make style include.
2497: echo "include confinc" > confmf
2498: # We grep out `Entering directory' and `Leaving directory'
2499: # messages which can occur if `w' ends up in MAKEFLAGS.
2500: # In particular we don't look at `^make:' because GNU make might
2501: # be invoked under some other name (usually "gmake"), in which
2502: # case it prints its new name instead of `make'.
2503: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2504: am__include=include
2505: am__quote=
2506: _am_result=GNU
2507: fi
2508: # Now try BSD make style include.
2509: if test "$am__include" = "#"; then
2510: echo '.include "confinc"' > confmf
2511: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2512: am__include=.include
2513: am__quote="\""
2514: _am_result=BSD
2515: fi
2516: fi
2517:
2518:
1.11 moko 2519: echo "$as_me:$LINENO: result: $_am_result" >&5
2520: echo "${ECHO_T}$_am_result" >&6
1.1 misha 2521: rm -f confinc confmf
2522:
1.11 moko 2523: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2524: if test "${enable_dependency_tracking+set}" = set; then
2525: enableval="$enable_dependency_tracking"
1.1 misha 2526:
1.11 moko 2527: fi;
1.1 misha 2528: if test "x$enable_dependency_tracking" != xno; then
2529: am_depcomp="$ac_aux_dir/depcomp"
2530: AMDEPBACKSLASH='\'
2531: fi
2532:
2533:
2534: if test "x$enable_dependency_tracking" != xno; then
2535: AMDEP_TRUE=
2536: AMDEP_FALSE='#'
2537: else
2538: AMDEP_TRUE='#'
2539: AMDEP_FALSE=
2540: fi
2541:
2542:
2543:
2544:
2545: depcc="$CXX" am_compiler_list=
2546:
1.11 moko 2547: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2548: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2549: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2550: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2551: else
2552: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2553: # We make a subdir and do the tests there. Otherwise we can end up
2554: # making bogus files that we don't know about and never remove. For
2555: # instance it was reported that on HP-UX the gcc test will end up
2556: # making a dummy file named `D' -- because `-MD' means `put the output
2557: # in D'.
2558: mkdir conftest.dir
2559: # Copy depcomp to subdir because otherwise we won't find it if we're
2560: # using a relative directory.
2561: cp "$am_depcomp" conftest.dir
2562: cd conftest.dir
2563: # We will build objects and dependencies in a subdirectory because
2564: # it helps to detect inapplicable dependency modes. For instance
2565: # both Tru64's cc and ICC support -MD to output dependencies as a
2566: # side effect of compilation, but ICC will put the dependencies in
2567: # the current directory while Tru64 will put them in the object
2568: # directory.
2569: mkdir sub
2570:
2571: am_cv_CXX_dependencies_compiler_type=none
2572: if test "$am_compiler_list" = ""; then
2573: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2574: fi
2575: for depmode in $am_compiler_list; do
2576: # Setup a source with many dependencies, because some compilers
2577: # like to wrap large dependency lists on column 80 (with \), and
2578: # we should not choose a depcomp mode which is confused by this.
2579: #
2580: # We need to recreate these files for each test, as the compiler may
2581: # overwrite some of them when testing with obscure command lines.
2582: # This happens at least with the AIX C compiler.
2583: : > sub/conftest.c
2584: for i in 1 2 3 4 5 6; do
2585: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2586: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2587: # Solaris 8's {/usr,}/bin/sh.
2588: touch sub/conftst$i.h
2589: done
2590: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2591:
2592: case $depmode in
2593: nosideeffect)
2594: # after this tag, mechanisms are not by side-effect, so they'll
2595: # only be used when explicitly requested
2596: if test "x$enable_dependency_tracking" = xyes; then
2597: continue
2598: else
2599: break
2600: fi
2601: ;;
2602: none) break ;;
2603: esac
2604: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2605: # mode. It turns out that the SunPro C++ compiler does not properly
2606: # handle `-M -o', and we need to detect this.
2607: if depmode=$depmode \
2608: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2609: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2610: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2611: >/dev/null 2>conftest.err &&
2612: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2613: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2614: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2615: # icc doesn't choke on unknown options, it will just issue warnings
2616: # or remarks (even with -Werror). So we grep stderr for any message
2617: # that says an option was ignored or not supported.
2618: # When given -MP, icc 7.0 and 7.1 complain thusly:
2619: # icc: Command line warning: ignoring option '-M'; no argument required
2620: # The diagnosis changed in icc 8.0:
2621: # icc: Command line remark: option '-MP' not supported
2622: if (grep 'ignoring option' conftest.err ||
2623: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2624: am_cv_CXX_dependencies_compiler_type=$depmode
2625: break
2626: fi
2627: fi
2628: done
2629:
2630: cd ..
2631: rm -rf conftest.dir
2632: else
2633: am_cv_CXX_dependencies_compiler_type=none
2634: fi
2635:
2636: fi
1.11 moko 2637: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2638: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
1.1 misha 2639: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2640:
2641:
2642:
2643: if
2644: test "x$enable_dependency_tracking" != xno \
2645: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2646: am__fastdepCXX_TRUE=
2647: am__fastdepCXX_FALSE='#'
2648: else
2649: am__fastdepCXX_TRUE='#'
2650: am__fastdepCXX_FALSE=
2651: fi
2652:
2653:
2654: ac_ext=c
2655: ac_cpp='$CPP $CPPFLAGS'
2656: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659: if test -n "$ac_tool_prefix"; then
2660: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2661: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.11 moko 2662: echo "$as_me:$LINENO: checking for $ac_word" >&5
2663: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2664: if test "${ac_cv_prog_CC+set}" = set; then
2665: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2666: else
2667: if test -n "$CC"; then
2668: ac_cv_prog_CC="$CC" # Let the user override the test.
2669: else
2670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671: for as_dir in $PATH
2672: do
2673: IFS=$as_save_IFS
2674: test -z "$as_dir" && as_dir=.
1.11 moko 2675: for ac_exec_ext in '' $ac_executable_extensions; do
2676: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2677: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.11 moko 2678: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2679: break 2
2680: fi
2681: done
1.11 moko 2682: done
1.1 misha 2683:
2684: fi
2685: fi
2686: CC=$ac_cv_prog_CC
2687: if test -n "$CC"; then
1.11 moko 2688: echo "$as_me:$LINENO: result: $CC" >&5
2689: echo "${ECHO_T}$CC" >&6
1.1 misha 2690: else
1.11 moko 2691: echo "$as_me:$LINENO: result: no" >&5
2692: echo "${ECHO_T}no" >&6
1.1 misha 2693: fi
2694:
2695: fi
2696: if test -z "$ac_cv_prog_CC"; then
2697: ac_ct_CC=$CC
2698: # Extract the first word of "gcc", so it can be a program name with args.
2699: set dummy gcc; ac_word=$2
1.11 moko 2700: echo "$as_me:$LINENO: checking for $ac_word" >&5
2701: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2704: else
2705: if test -n "$ac_ct_CC"; then
2706: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707: else
2708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709: for as_dir in $PATH
2710: do
2711: IFS=$as_save_IFS
2712: test -z "$as_dir" && as_dir=.
1.11 moko 2713: for ac_exec_ext in '' $ac_executable_extensions; do
2714: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2715: ac_cv_prog_ac_ct_CC="gcc"
1.11 moko 2716: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2717: break 2
2718: fi
2719: done
1.11 moko 2720: done
1.1 misha 2721:
2722: fi
2723: fi
2724: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725: if test -n "$ac_ct_CC"; then
1.11 moko 2726: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2728: else
1.11 moko 2729: echo "$as_me:$LINENO: result: no" >&5
2730: echo "${ECHO_T}no" >&6
1.1 misha 2731: fi
2732:
1.11 moko 2733: CC=$ac_ct_CC
1.1 misha 2734: else
2735: CC="$ac_cv_prog_CC"
2736: fi
2737:
2738: if test -z "$CC"; then
1.11 moko 2739: if test -n "$ac_tool_prefix"; then
2740: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 2741: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.11 moko 2742: echo "$as_me:$LINENO: checking for $ac_word" >&5
2743: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744: if test "${ac_cv_prog_CC+set}" = set; then
2745: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2746: else
2747: if test -n "$CC"; then
2748: ac_cv_prog_CC="$CC" # Let the user override the test.
2749: else
2750: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751: for as_dir in $PATH
2752: do
2753: IFS=$as_save_IFS
2754: test -z "$as_dir" && as_dir=.
1.11 moko 2755: for ac_exec_ext in '' $ac_executable_extensions; do
2756: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2757: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.11 moko 2758: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2759: break 2
2760: fi
2761: done
1.11 moko 2762: done
1.1 misha 2763:
2764: fi
2765: fi
2766: CC=$ac_cv_prog_CC
2767: if test -n "$CC"; then
1.11 moko 2768: echo "$as_me:$LINENO: result: $CC" >&5
2769: echo "${ECHO_T}$CC" >&6
2770: else
2771: echo "$as_me:$LINENO: result: no" >&5
2772: echo "${ECHO_T}no" >&6
2773: fi
2774:
2775: fi
2776: if test -z "$ac_cv_prog_CC"; then
2777: ac_ct_CC=$CC
2778: # Extract the first word of "cc", so it can be a program name with args.
2779: set dummy cc; ac_word=$2
2780: echo "$as_me:$LINENO: checking for $ac_word" >&5
2781: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2783: echo $ECHO_N "(cached) $ECHO_C" >&6
2784: else
2785: if test -n "$ac_ct_CC"; then
2786: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787: else
2788: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789: for as_dir in $PATH
2790: do
2791: IFS=$as_save_IFS
2792: test -z "$as_dir" && as_dir=.
2793: for ac_exec_ext in '' $ac_executable_extensions; do
2794: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795: ac_cv_prog_ac_ct_CC="cc"
2796: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797: break 2
2798: fi
2799: done
2800: done
2801:
2802: fi
2803: fi
2804: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805: if test -n "$ac_ct_CC"; then
2806: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2807: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2808: else
1.11 moko 2809: echo "$as_me:$LINENO: result: no" >&5
2810: echo "${ECHO_T}no" >&6
1.1 misha 2811: fi
2812:
1.11 moko 2813: CC=$ac_ct_CC
2814: else
2815: CC="$ac_cv_prog_CC"
2816: fi
1.10 moko 2817:
1.1 misha 2818: fi
2819: if test -z "$CC"; then
2820: # Extract the first word of "cc", so it can be a program name with args.
2821: set dummy cc; ac_word=$2
1.11 moko 2822: echo "$as_me:$LINENO: checking for $ac_word" >&5
2823: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824: if test "${ac_cv_prog_CC+set}" = set; then
2825: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2826: else
2827: if test -n "$CC"; then
2828: ac_cv_prog_CC="$CC" # Let the user override the test.
2829: else
2830: ac_prog_rejected=no
2831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832: for as_dir in $PATH
2833: do
2834: IFS=$as_save_IFS
2835: test -z "$as_dir" && as_dir=.
1.11 moko 2836: for ac_exec_ext in '' $ac_executable_extensions; do
2837: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2838: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2839: ac_prog_rejected=yes
2840: continue
2841: fi
2842: ac_cv_prog_CC="cc"
1.11 moko 2843: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2844: break 2
2845: fi
2846: done
1.11 moko 2847: done
1.1 misha 2848:
2849: if test $ac_prog_rejected = yes; then
2850: # We found a bogon in the path, so make sure we never use it.
2851: set dummy $ac_cv_prog_CC
2852: shift
2853: if test $# != 0; then
2854: # We chose a different compiler from the bogus one.
2855: # However, it has the same basename, so the bogon will be chosen
2856: # first if we set CC to just the basename; use the full file name.
2857: shift
2858: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2859: fi
2860: fi
2861: fi
2862: fi
2863: CC=$ac_cv_prog_CC
2864: if test -n "$CC"; then
1.11 moko 2865: echo "$as_me:$LINENO: result: $CC" >&5
2866: echo "${ECHO_T}$CC" >&6
1.1 misha 2867: else
1.11 moko 2868: echo "$as_me:$LINENO: result: no" >&5
2869: echo "${ECHO_T}no" >&6
1.1 misha 2870: fi
2871:
2872: fi
2873: if test -z "$CC"; then
2874: if test -n "$ac_tool_prefix"; then
1.11 moko 2875: for ac_prog in cl
1.1 misha 2876: do
2877: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 2879: echo "$as_me:$LINENO: checking for $ac_word" >&5
2880: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881: if test "${ac_cv_prog_CC+set}" = set; then
2882: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2883: else
2884: if test -n "$CC"; then
2885: ac_cv_prog_CC="$CC" # Let the user override the test.
2886: else
2887: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888: for as_dir in $PATH
2889: do
2890: IFS=$as_save_IFS
2891: test -z "$as_dir" && as_dir=.
1.11 moko 2892: for ac_exec_ext in '' $ac_executable_extensions; do
2893: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2894: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.11 moko 2895: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2896: break 2
2897: fi
2898: done
1.11 moko 2899: done
1.1 misha 2900:
2901: fi
2902: fi
2903: CC=$ac_cv_prog_CC
2904: if test -n "$CC"; then
1.11 moko 2905: echo "$as_me:$LINENO: result: $CC" >&5
2906: echo "${ECHO_T}$CC" >&6
1.1 misha 2907: else
1.11 moko 2908: echo "$as_me:$LINENO: result: no" >&5
2909: echo "${ECHO_T}no" >&6
1.1 misha 2910: fi
2911:
2912: test -n "$CC" && break
2913: done
2914: fi
2915: if test -z "$CC"; then
2916: ac_ct_CC=$CC
1.11 moko 2917: for ac_prog in cl
1.1 misha 2918: do
2919: # Extract the first word of "$ac_prog", so it can be a program name with args.
2920: set dummy $ac_prog; ac_word=$2
1.11 moko 2921: echo "$as_me:$LINENO: checking for $ac_word" >&5
2922: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2923: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2924: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2925: else
2926: if test -n "$ac_ct_CC"; then
2927: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928: else
2929: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930: for as_dir in $PATH
2931: do
2932: IFS=$as_save_IFS
2933: test -z "$as_dir" && as_dir=.
1.11 moko 2934: for ac_exec_ext in '' $ac_executable_extensions; do
2935: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2936: ac_cv_prog_ac_ct_CC="$ac_prog"
1.11 moko 2937: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2938: break 2
2939: fi
2940: done
1.11 moko 2941: done
1.1 misha 2942:
2943: fi
2944: fi
2945: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946: if test -n "$ac_ct_CC"; then
1.11 moko 2947: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2948: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2949: else
1.11 moko 2950: echo "$as_me:$LINENO: result: no" >&5
2951: echo "${ECHO_T}no" >&6
1.1 misha 2952: fi
2953:
2954: test -n "$ac_ct_CC" && break
2955: done
2956:
1.11 moko 2957: CC=$ac_ct_CC
1.1 misha 2958: fi
2959:
2960: fi
2961:
2962:
1.11 moko 2963: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2964: See \`config.log' for more details." >&5
2965: echo "$as_me: error: no acceptable C compiler found in \$PATH
2966: See \`config.log' for more details." >&2;}
2967: { (exit 1); exit 1; }; }
1.1 misha 2968:
2969: # Provide some information about the compiler.
1.11 moko 2970: echo "$as_me:$LINENO:" \
2971: "checking for C compiler version" >&5
2972: ac_compiler=`set X $ac_compile; echo $2`
2973: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2974: (eval $ac_compiler --version </dev/null >&5) 2>&5
2975: ac_status=$?
2976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977: (exit $ac_status); }
2978: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2979: (eval $ac_compiler -v </dev/null >&5) 2>&5
2980: ac_status=$?
2981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982: (exit $ac_status); }
2983: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2984: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2985: ac_status=$?
1.11 moko 2986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987: (exit $ac_status); }
2988:
2989: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2990: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2991: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2992: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2993: else
1.11 moko 2994: cat >conftest.$ac_ext <<_ACEOF
2995: /* confdefs.h. */
2996: _ACEOF
2997: cat confdefs.h >>conftest.$ac_ext
2998: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2999: /* end confdefs.h. */
3000:
3001: int
3002: main ()
3003: {
3004: #ifndef __GNUC__
3005: choke me
3006: #endif
3007:
3008: ;
3009: return 0;
3010: }
3011: _ACEOF
1.11 moko 3012: rm -f conftest.$ac_objext
3013: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014: (eval $ac_compile) 2>conftest.er1
3015: ac_status=$?
3016: grep -v '^ *+' conftest.er1 >conftest.err
3017: rm -f conftest.er1
3018: cat conftest.err >&5
3019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020: (exit $ac_status); } &&
3021: { ac_try='test -z "$ac_c_werror_flag"
3022: || test ! -s conftest.err'
3023: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024: (eval $ac_try) 2>&5
3025: ac_status=$?
3026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027: (exit $ac_status); }; } &&
3028: { ac_try='test -s conftest.$ac_objext'
3029: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030: (eval $ac_try) 2>&5
3031: ac_status=$?
3032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033: (exit $ac_status); }; }; then
1.1 misha 3034: ac_compiler_gnu=yes
3035: else
1.11 moko 3036: echo "$as_me: failed program was:" >&5
3037: sed 's/^/| /' conftest.$ac_ext >&5
3038:
3039: ac_compiler_gnu=no
1.1 misha 3040: fi
1.11 moko 3041: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3042: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043:
3044: fi
1.11 moko 3045: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3047: GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 3048: ac_test_CFLAGS=${CFLAGS+set}
3049: ac_save_CFLAGS=$CFLAGS
1.11 moko 3050: CFLAGS="-g"
3051: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3053: if test "${ac_cv_prog_cc_g+set}" = set; then
3054: echo $ECHO_N "(cached) $ECHO_C" >&6
3055: else
3056: cat >conftest.$ac_ext <<_ACEOF
3057: /* confdefs.h. */
3058: _ACEOF
3059: cat confdefs.h >>conftest.$ac_ext
3060: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 3061: /* end confdefs.h. */
3062:
3063: int
3064: main ()
3065: {
3066:
3067: ;
3068: return 0;
3069: }
3070: _ACEOF
1.11 moko 3071: rm -f conftest.$ac_objext
3072: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073: (eval $ac_compile) 2>conftest.er1
3074: ac_status=$?
3075: grep -v '^ *+' conftest.er1 >conftest.err
3076: rm -f conftest.er1
3077: cat conftest.err >&5
3078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079: (exit $ac_status); } &&
3080: { ac_try='test -z "$ac_c_werror_flag"
3081: || test ! -s conftest.err'
3082: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083: (eval $ac_try) 2>&5
3084: ac_status=$?
3085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086: (exit $ac_status); }; } &&
3087: { ac_try='test -s conftest.$ac_objext'
3088: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089: (eval $ac_try) 2>&5
3090: ac_status=$?
3091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092: (exit $ac_status); }; }; then
1.10 moko 3093: ac_cv_prog_cc_g=yes
1.1 misha 3094: else
1.11 moko 3095: echo "$as_me: failed program was:" >&5
3096: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misha 3097:
1.11 moko 3098: ac_cv_prog_cc_g=no
1.10 moko 3099: fi
1.11 moko 3100: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3101: fi
1.11 moko 3102: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3103: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 misha 3104: if test "$ac_test_CFLAGS" = set; then
3105: CFLAGS=$ac_save_CFLAGS
3106: elif test $ac_cv_prog_cc_g = yes; then
3107: if test "$GCC" = yes; then
3108: CFLAGS="-g -O2"
3109: else
3110: CFLAGS="-g"
3111: fi
3112: else
3113: if test "$GCC" = yes; then
3114: CFLAGS="-O2"
3115: else
3116: CFLAGS=
3117: fi
3118: fi
1.11 moko 3119: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3120: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3121: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3122: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3123: else
1.11 moko 3124: ac_cv_prog_cc_stdc=no
1.1 misha 3125: ac_save_CC=$CC
1.11 moko 3126: cat >conftest.$ac_ext <<_ACEOF
3127: /* confdefs.h. */
3128: _ACEOF
3129: cat confdefs.h >>conftest.$ac_ext
3130: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 3131: /* end confdefs.h. */
3132: #include <stdarg.h>
3133: #include <stdio.h>
3134: #include <sys/types.h>
3135: #include <sys/stat.h>
3136: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3137: struct buf { int x; };
3138: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3139: static char *e (p, i)
3140: char **p;
3141: int i;
3142: {
3143: return p[i];
3144: }
3145: static char *f (char * (*g) (char **, int), char **p, ...)
3146: {
3147: char *s;
3148: va_list v;
3149: va_start (v,p);
3150: s = g (p, va_arg (v,int));
3151: va_end (v);
3152: return s;
3153: }
3154:
3155: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3156: function prototypes and stuff, but not '\xHH' hex character constants.
3157: These don't provoke an error unfortunately, instead are silently treated
1.11 moko 3158: as 'x'. The following induces an error, until -std1 is added to get
1.1 misha 3159: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3160: array size at least. It's necessary to write '\x00'==0 to get something
1.11 moko 3161: that's true only with -std1. */
1.1 misha 3162: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3163:
3164: int test (int i, double x);
3165: struct s1 {int (*f) (int a);};
3166: struct s2 {int (*f) (double a);};
3167: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168: int argc;
3169: char **argv;
3170: int
3171: main ()
3172: {
3173: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3174: ;
3175: return 0;
3176: }
3177: _ACEOF
1.11 moko 3178: # Don't try gcc -ansi; that turns off useful extensions and
3179: # breaks some systems' header files.
3180: # AIX -qlanglvl=ansi
3181: # Ultrix and OSF/1 -std1
3182: # HP-UX 10.20 and later -Ae
3183: # HP-UX older versions -Aa -D_HPUX_SOURCE
3184: # SVR4 -Xc -D__EXTENSIONS__
3185: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 3186: do
3187: CC="$ac_save_CC $ac_arg"
1.11 moko 3188: rm -f conftest.$ac_objext
3189: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190: (eval $ac_compile) 2>conftest.er1
3191: ac_status=$?
3192: grep -v '^ *+' conftest.er1 >conftest.err
3193: rm -f conftest.er1
3194: cat conftest.err >&5
3195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196: (exit $ac_status); } &&
3197: { ac_try='test -z "$ac_c_werror_flag"
3198: || test ! -s conftest.err'
3199: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200: (eval $ac_try) 2>&5
3201: ac_status=$?
3202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203: (exit $ac_status); }; } &&
3204: { ac_try='test -s conftest.$ac_objext'
3205: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206: (eval $ac_try) 2>&5
3207: ac_status=$?
3208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209: (exit $ac_status); }; }; then
3210: ac_cv_prog_cc_stdc=$ac_arg
3211: break
3212: else
3213: echo "$as_me: failed program was:" >&5
3214: sed 's/^/| /' conftest.$ac_ext >&5
3215:
1.1 misha 3216: fi
1.11 moko 3217: rm -f conftest.err conftest.$ac_objext
1.1 misha 3218: done
1.11 moko 3219: rm -f conftest.$ac_ext conftest.$ac_objext
1.1 misha 3220: CC=$ac_save_CC
3221:
3222: fi
1.11 moko 3223:
3224: case "x$ac_cv_prog_cc_stdc" in
3225: x|xno)
3226: echo "$as_me:$LINENO: result: none needed" >&5
3227: echo "${ECHO_T}none needed" >&6 ;;
1.1 misha 3228: *)
1.11 moko 3229: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3230: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3231: CC="$CC $ac_cv_prog_cc_stdc" ;;
1.1 misha 3232: esac
3233:
1.11 moko 3234: # Some people use a C++ compiler to compile C. Since we use `exit',
3235: # in C++ we need to declare it. In case someone uses the same compiler
3236: # for both compiling C and C++ we need to have the C++ compiler decide
3237: # the declaration of exit, since it's the most demanding environment.
3238: cat >conftest.$ac_ext <<_ACEOF
3239: #ifndef __cplusplus
3240: choke me
3241: #endif
3242: _ACEOF
3243: rm -f conftest.$ac_objext
3244: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245: (eval $ac_compile) 2>conftest.er1
3246: ac_status=$?
3247: grep -v '^ *+' conftest.er1 >conftest.err
3248: rm -f conftest.er1
3249: cat conftest.err >&5
3250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251: (exit $ac_status); } &&
3252: { ac_try='test -z "$ac_c_werror_flag"
3253: || test ! -s conftest.err'
3254: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255: (eval $ac_try) 2>&5
3256: ac_status=$?
3257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258: (exit $ac_status); }; } &&
3259: { ac_try='test -s conftest.$ac_objext'
3260: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261: (eval $ac_try) 2>&5
3262: ac_status=$?
3263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264: (exit $ac_status); }; }; then
3265: for ac_declaration in \
3266: '' \
3267: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3268: 'extern "C" void std::exit (int); using std::exit;' \
3269: 'extern "C" void exit (int) throw ();' \
3270: 'extern "C" void exit (int);' \
3271: 'void exit (int);'
3272: do
3273: cat >conftest.$ac_ext <<_ACEOF
3274: /* confdefs.h. */
3275: _ACEOF
3276: cat confdefs.h >>conftest.$ac_ext
3277: cat >>conftest.$ac_ext <<_ACEOF
3278: /* end confdefs.h. */
3279: $ac_declaration
3280: #include <stdlib.h>
3281: int
3282: main ()
3283: {
3284: exit (42);
3285: ;
3286: return 0;
3287: }
3288: _ACEOF
3289: rm -f conftest.$ac_objext
3290: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291: (eval $ac_compile) 2>conftest.er1
3292: ac_status=$?
3293: grep -v '^ *+' conftest.er1 >conftest.err
3294: rm -f conftest.er1
3295: cat conftest.err >&5
3296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297: (exit $ac_status); } &&
3298: { ac_try='test -z "$ac_c_werror_flag"
3299: || test ! -s conftest.err'
3300: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301: (eval $ac_try) 2>&5
3302: ac_status=$?
3303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304: (exit $ac_status); }; } &&
3305: { ac_try='test -s conftest.$ac_objext'
3306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307: (eval $ac_try) 2>&5
3308: ac_status=$?
3309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310: (exit $ac_status); }; }; then
3311: :
3312: else
3313: echo "$as_me: failed program was:" >&5
3314: sed 's/^/| /' conftest.$ac_ext >&5
3315:
3316: continue
3317: fi
3318: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319: cat >conftest.$ac_ext <<_ACEOF
3320: /* confdefs.h. */
3321: _ACEOF
3322: cat confdefs.h >>conftest.$ac_ext
3323: cat >>conftest.$ac_ext <<_ACEOF
3324: /* end confdefs.h. */
3325: $ac_declaration
3326: int
3327: main ()
3328: {
3329: exit (42);
3330: ;
3331: return 0;
3332: }
3333: _ACEOF
3334: rm -f conftest.$ac_objext
3335: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336: (eval $ac_compile) 2>conftest.er1
3337: ac_status=$?
3338: grep -v '^ *+' conftest.er1 >conftest.err
3339: rm -f conftest.er1
3340: cat conftest.err >&5
3341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342: (exit $ac_status); } &&
3343: { ac_try='test -z "$ac_c_werror_flag"
3344: || test ! -s conftest.err'
3345: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346: (eval $ac_try) 2>&5
3347: ac_status=$?
3348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349: (exit $ac_status); }; } &&
3350: { ac_try='test -s conftest.$ac_objext'
3351: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352: (eval $ac_try) 2>&5
3353: ac_status=$?
3354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355: (exit $ac_status); }; }; then
3356: break
3357: else
3358: echo "$as_me: failed program was:" >&5
3359: sed 's/^/| /' conftest.$ac_ext >&5
3360:
3361: fi
3362: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363: done
3364: rm -f conftest*
3365: if test -n "$ac_declaration"; then
3366: echo '#ifdef __cplusplus' >>confdefs.h
3367: echo $ac_declaration >>confdefs.h
3368: echo '#endif' >>confdefs.h
1.1 misha 3369: fi
3370:
1.11 moko 3371: else
3372: echo "$as_me: failed program was:" >&5
3373: sed 's/^/| /' conftest.$ac_ext >&5
3374:
3375: fi
3376: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3377: ac_ext=c
3378: ac_cpp='$CPP $CPPFLAGS'
3379: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382:
3383: depcc="$CC" am_compiler_list=
3384:
1.11 moko 3385: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3386: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3387: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3388: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3389: else
3390: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3391: # We make a subdir and do the tests there. Otherwise we can end up
3392: # making bogus files that we don't know about and never remove. For
3393: # instance it was reported that on HP-UX the gcc test will end up
3394: # making a dummy file named `D' -- because `-MD' means `put the output
3395: # in D'.
3396: mkdir conftest.dir
3397: # Copy depcomp to subdir because otherwise we won't find it if we're
3398: # using a relative directory.
3399: cp "$am_depcomp" conftest.dir
3400: cd conftest.dir
3401: # We will build objects and dependencies in a subdirectory because
3402: # it helps to detect inapplicable dependency modes. For instance
3403: # both Tru64's cc and ICC support -MD to output dependencies as a
3404: # side effect of compilation, but ICC will put the dependencies in
3405: # the current directory while Tru64 will put them in the object
3406: # directory.
3407: mkdir sub
3408:
3409: am_cv_CC_dependencies_compiler_type=none
3410: if test "$am_compiler_list" = ""; then
3411: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3412: fi
3413: for depmode in $am_compiler_list; do
3414: # Setup a source with many dependencies, because some compilers
3415: # like to wrap large dependency lists on column 80 (with \), and
3416: # we should not choose a depcomp mode which is confused by this.
3417: #
3418: # We need to recreate these files for each test, as the compiler may
3419: # overwrite some of them when testing with obscure command lines.
3420: # This happens at least with the AIX C compiler.
3421: : > sub/conftest.c
3422: for i in 1 2 3 4 5 6; do
3423: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3424: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3425: # Solaris 8's {/usr,}/bin/sh.
3426: touch sub/conftst$i.h
3427: done
3428: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3429:
3430: case $depmode in
3431: nosideeffect)
3432: # after this tag, mechanisms are not by side-effect, so they'll
3433: # only be used when explicitly requested
3434: if test "x$enable_dependency_tracking" = xyes; then
3435: continue
3436: else
3437: break
3438: fi
3439: ;;
3440: none) break ;;
3441: esac
3442: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3443: # mode. It turns out that the SunPro C++ compiler does not properly
3444: # handle `-M -o', and we need to detect this.
3445: if depmode=$depmode \
3446: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3447: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3448: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3449: >/dev/null 2>conftest.err &&
3450: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3451: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3452: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3453: # icc doesn't choke on unknown options, it will just issue warnings
3454: # or remarks (even with -Werror). So we grep stderr for any message
3455: # that says an option was ignored or not supported.
3456: # When given -MP, icc 7.0 and 7.1 complain thusly:
3457: # icc: Command line warning: ignoring option '-M'; no argument required
3458: # The diagnosis changed in icc 8.0:
3459: # icc: Command line remark: option '-MP' not supported
3460: if (grep 'ignoring option' conftest.err ||
3461: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3462: am_cv_CC_dependencies_compiler_type=$depmode
3463: break
3464: fi
3465: fi
3466: done
3467:
3468: cd ..
3469: rm -rf conftest.dir
3470: else
3471: am_cv_CC_dependencies_compiler_type=none
3472: fi
3473:
3474: fi
1.11 moko 3475: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3476: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1.1 misha 3477: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3478:
3479:
3480:
3481: if
3482: test "x$enable_dependency_tracking" != xno \
3483: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3484: am__fastdepCC_TRUE=
3485: am__fastdepCC_FALSE='#'
3486: else
3487: am__fastdepCC_TRUE='#'
3488: am__fastdepCC_FALSE=
3489: fi
3490:
3491:
3492:
1.8 moko 3493:
1.13 moko 3494:
3495:
3496:
3497:
3498:
3499:
1.8 moko 3500: case `pwd` in
3501: *\ * | *\ *)
1.11 moko 3502: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3503: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 3504: esac
3505:
3506:
3507:
3508: macro_version='2.4.2'
3509: macro_revision='1.3337'
3510:
3511:
3512:
3513:
3514:
3515:
3516:
1.1 misha 3517:
3518:
3519:
3520:
3521:
3522:
1.8 moko 3523: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 3524:
3525: # Make sure we can run config.sub.
1.11 moko 3526: $ac_config_sub sun4 >/dev/null 2>&1 ||
3527: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3528: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3529: { (exit 1); exit 1; }; }
3530:
3531: echo "$as_me:$LINENO: checking build system type" >&5
3532: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3533: if test "${ac_cv_build+set}" = set; then
3534: echo $ECHO_N "(cached) $ECHO_C" >&6
3535: else
3536: ac_cv_build_alias=$build_alias
3537: test -z "$ac_cv_build_alias" &&
3538: ac_cv_build_alias=`$ac_config_guess`
3539: test -z "$ac_cv_build_alias" &&
3540: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3541: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3542: { (exit 1); exit 1; }; }
3543: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3544: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3545: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3546: { (exit 1); exit 1; }; }
1.1 misha 3547:
1.11 moko 3548: fi
3549: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3550: echo "${ECHO_T}$ac_cv_build" >&6
1.10 moko 3551: build=$ac_cv_build
1.11 moko 3552: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3553: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3554: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3555:
3556:
3557: echo "$as_me:$LINENO: checking host system type" >&5
3558: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3559: if test "${ac_cv_host+set}" = set; then
3560: echo $ECHO_N "(cached) $ECHO_C" >&6
3561: else
3562: ac_cv_host_alias=$host_alias
3563: test -z "$ac_cv_host_alias" &&
3564: ac_cv_host_alias=$ac_cv_build_alias
3565: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3566: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3567: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3568: { (exit 1); exit 1; }; }
1.1 misha 3569:
3570: fi
1.11 moko 3571: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3572: echo "${ECHO_T}$ac_cv_host" >&6
1.1 misha 3573: host=$ac_cv_host
1.11 moko 3574: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3575: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3576: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 misha 3577:
3578:
1.8 moko 3579: # Backslashify metacharacters that are still active within
3580: # double-quoted strings.
3581: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3582:
3583: # Same as above, but do not quote variable references.
3584: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3585:
3586: # Sed substitution to delay expansion of an escaped shell variable in a
3587: # double_quote_subst'ed string.
3588: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3589:
3590: # Sed substitution to delay expansion of an escaped single quote.
3591: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 3592:
1.8 moko 3593: # Sed substitution to avoid accidental globbing in evaled expressions
3594: no_glob_subst='s/\*/\\\*/g'
1.1 misha 3595:
1.8 moko 3596: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3597: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3598: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3599:
1.11 moko 3600: echo "$as_me:$LINENO: checking how to print strings" >&5
3601: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
1.8 moko 3602: # Test print first, because it will be a builtin if present.
3603: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3604: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3605: ECHO='print -r --'
3606: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3607: ECHO='printf %s\n'
1.1 misha 3608: else
1.8 moko 3609: # Use this function as a fallback that always works.
3610: func_fallback_echo ()
3611: {
3612: eval 'cat <<_LTECHO_EOF
3613: $1
3614: _LTECHO_EOF'
3615: }
3616: ECHO='func_fallback_echo'
1.1 misha 3617: fi
1.8 moko 3618:
3619: # func_echo_all arg...
3620: # Invoke $ECHO with all args, space-separated.
3621: func_echo_all ()
3622: {
3623: $ECHO ""
3624: }
3625:
3626: case "$ECHO" in
1.11 moko 3627: printf*) echo "$as_me:$LINENO: result: printf" >&5
3628: echo "${ECHO_T}printf" >&6 ;;
3629: print*) echo "$as_me:$LINENO: result: print -r" >&5
3630: echo "${ECHO_T}print -r" >&6 ;;
3631: *) echo "$as_me:$LINENO: result: cat" >&5
3632: echo "${ECHO_T}cat" >&6 ;;
1.8 moko 3633: esac
3634:
3635:
3636:
3637:
3638:
3639:
3640:
3641:
3642:
3643:
3644:
3645:
3646:
3647:
1.11 moko 3648: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3649: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3650: if test "${lt_cv_path_SED+set}" = set; then
3651: echo $ECHO_N "(cached) $ECHO_C" >&6
3652: else
3653: # Loop through the user's path and test for sed and gsed.
3654: # Then use that list of sed's as ones to test for truncation.
3655: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 3656: for as_dir in $PATH
3657: do
3658: IFS=$as_save_IFS
3659: test -z "$as_dir" && as_dir=.
1.11 moko 3660: for lt_ac_prog in sed gsed; do
1.8 moko 3661: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 3662: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3663: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3664: fi
1.8 moko 3665: done
3666: done
1.11 moko 3667: done
1.8 moko 3668: IFS=$as_save_IFS
1.11 moko 3669: lt_ac_max=0
3670: lt_ac_count=0
3671: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3672: # along with /bin/sed that truncates output.
3673: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3674: test ! -f $lt_ac_sed && continue
3675: cat /dev/null > conftest.in
3676: lt_ac_count=0
3677: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3678: # Check for GNU sed and select it if it is found.
3679: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3680: lt_cv_path_SED=$lt_ac_sed
3681: break
1.8 moko 3682: fi
1.11 moko 3683: while true; do
3684: cat conftest.in conftest.in >conftest.tmp
3685: mv conftest.tmp conftest.in
3686: cp conftest.in conftest.nl
3687: echo >>conftest.nl
3688: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3689: cmp -s conftest.out conftest.nl || break
3690: # 10000 chars as input seems more than enough
3691: test $lt_ac_count -gt 10 && break
3692: lt_ac_count=`expr $lt_ac_count + 1`
3693: if test $lt_ac_count -gt $lt_ac_max; then
3694: lt_ac_max=$lt_ac_count
3695: lt_cv_path_SED=$lt_ac_sed
3696: fi
3697: done
3698: done
3699:
1.10 moko 3700: fi
1.8 moko 3701:
1.11 moko 3702: SED=$lt_cv_path_SED
3703:
3704: echo "$as_me:$LINENO: result: $SED" >&5
3705: echo "${ECHO_T}$SED" >&6
1.8 moko 3706:
3707: test -z "$SED" && SED=sed
3708: Xsed="$SED -e 1s/^X//"
3709:
3710:
3711:
3712:
3713:
3714:
3715:
3716:
3717:
3718:
3719:
1.11 moko 3720: echo "$as_me:$LINENO: checking for egrep" >&5
3721: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3722: if test "${ac_cv_prog_egrep+set}" = set; then
3723: echo $ECHO_N "(cached) $ECHO_C" >&6
3724: else
3725: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3726: then ac_cv_prog_egrep='grep -E'
3727: else ac_cv_prog_egrep='egrep'
1.8 moko 3728: fi
3729: fi
1.11 moko 3730: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3731: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3732: EGREP=$ac_cv_prog_egrep
1.8 moko 3733:
3734:
1.11 moko 3735: echo "$as_me:$LINENO: checking for fgrep" >&5
3736: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3737: if test "${ac_cv_prog_fgrep+set}" = set; then
3738: echo $ECHO_N "(cached) $ECHO_C" >&6
3739: else
3740: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3741: then ac_cv_prog_fgrep='grep -F'
3742: else ac_cv_prog_fgrep='fgrep'
1.8 moko 3743: fi
3744: fi
1.11 moko 3745: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3746: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3747: FGREP=$ac_cv_prog_fgrep
1.8 moko 3748:
3749:
3750: test -z "$GREP" && GREP=grep
3751:
3752:
3753:
3754:
3755:
3756:
3757:
3758:
3759:
3760:
3761:
3762:
3763:
3764:
3765:
3766:
3767:
3768:
3769:
1.11 moko 3770: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3771: if test "${with_gnu_ld+set}" = set; then
3772: withval="$with_gnu_ld"
3773: test "$withval" = no || with_gnu_ld=yes
1.8 moko 3774: else
3775: with_gnu_ld=no
1.11 moko 3776: fi;
1.8 moko 3777: ac_prog=ld
3778: if test "$GCC" = yes; then
3779: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 3780: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3781: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 3782: case $host in
3783: *-*-mingw*)
3784: # gcc leaves a trailing carriage return which upsets mingw
3785: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3786: *)
3787: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3788: esac
3789: case $ac_prog in
3790: # Accept absolute paths.
3791: [\\/]* | ?:[\\/]*)
3792: re_direlt='/[^/][^/]*/\.\./'
3793: # Canonicalize the pathname of ld
3794: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3795: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3796: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3797: done
3798: test -z "$LD" && LD="$ac_prog"
3799: ;;
3800: "")
3801: # If it fails, then pretend we aren't using GCC.
3802: ac_prog=ld
3803: ;;
3804: *)
3805: # If it is relative, then search for the first ld in PATH.
3806: with_gnu_ld=unknown
3807: ;;
3808: esac
3809: elif test "$with_gnu_ld" = yes; then
1.11 moko 3810: echo "$as_me:$LINENO: checking for GNU ld" >&5
3811: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 3812: else
1.11 moko 3813: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3814: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 3815: fi
1.11 moko 3816: if test "${lt_cv_path_LD+set}" = set; then
3817: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3818: else
3819: if test -z "$LD"; then
1.8 moko 3820: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 3821: for ac_dir in $PATH; do
1.8 moko 3822: IFS="$lt_save_ifs"
1.1 misha 3823: test -z "$ac_dir" && ac_dir=.
3824: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3825: lt_cv_path_LD="$ac_dir/$ac_prog"
3826: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 3827: # but apparently some variants of GNU ld only accept -v.
1.1 misha 3828: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 3829: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3830: *GNU* | *'with BFD'*)
1.1 misha 3831: test "$with_gnu_ld" != no && break
1.8 moko 3832: ;;
3833: *)
1.1 misha 3834: test "$with_gnu_ld" != yes && break
1.8 moko 3835: ;;
3836: esac
1.1 misha 3837: fi
3838: done
1.8 moko 3839: IFS="$lt_save_ifs"
1.1 misha 3840: else
3841: lt_cv_path_LD="$LD" # Let the user override the test with a path.
3842: fi
3843: fi
3844:
3845: LD="$lt_cv_path_LD"
3846: if test -n "$LD"; then
1.11 moko 3847: echo "$as_me:$LINENO: result: $LD" >&5
3848: echo "${ECHO_T}$LD" >&6
1.1 misha 3849: else
1.11 moko 3850: echo "$as_me:$LINENO: result: no" >&5
3851: echo "${ECHO_T}no" >&6
1.1 misha 3852: fi
1.11 moko 3853: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3854: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3855: { (exit 1); exit 1; }; }
3856: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3857: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3858: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3859: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3860: else
1.8 moko 3861: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3862: case `$LD -v 2>&1 </dev/null` in
3863: *GNU* | *'with BFD'*)
1.1 misha 3864: lt_cv_prog_gnu_ld=yes
1.8 moko 3865: ;;
3866: *)
1.1 misha 3867: lt_cv_prog_gnu_ld=no
1.8 moko 3868: ;;
3869: esac
1.1 misha 3870: fi
1.11 moko 3871: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3872: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.1 misha 3873: with_gnu_ld=$lt_cv_prog_gnu_ld
3874:
3875:
3876:
1.8 moko 3877:
3878:
3879:
3880:
3881:
3882:
1.11 moko 3883: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3884: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3885: if test "${lt_cv_path_NM+set}" = set; then
3886: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3887: else
3888: if test -n "$NM"; then
3889: # Let the user override the test.
3890: lt_cv_path_NM="$NM"
3891: else
1.8 moko 3892: lt_nm_to_check="${ac_tool_prefix}nm"
3893: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3894: lt_nm_to_check="$lt_nm_to_check nm"
3895: fi
3896: for lt_tmp_nm in $lt_nm_to_check; do
3897: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3898: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3899: IFS="$lt_save_ifs"
3900: test -z "$ac_dir" && ac_dir=.
3901: tmp_nm="$ac_dir/$lt_tmp_nm"
3902: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3903: # Check to see if the nm accepts a BSD-compat flag.
3904: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3905: # nm: unknown option "B" ignored
3906: # Tru64's nm complains that /dev/null is an invalid object file
3907: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3908: */dev/null* | *'Invalid file or object type'*)
3909: lt_cv_path_NM="$tmp_nm -B"
3910: break
3911: ;;
3912: *)
3913: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3914: */dev/null*)
3915: lt_cv_path_NM="$tmp_nm -p"
3916: break
3917: ;;
3918: *)
3919: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3920: continue # so that we can try to find one that supports BSD flags
3921: ;;
3922: esac
3923: ;;
3924: esac
1.1 misha 3925: fi
1.8 moko 3926: done
3927: IFS="$lt_save_ifs"
1.1 misha 3928: done
1.8 moko 3929: : ${lt_cv_path_NM=no}
1.1 misha 3930: fi
3931: fi
1.11 moko 3932: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3933: echo "${ECHO_T}$lt_cv_path_NM" >&6
1.8 moko 3934: if test "$lt_cv_path_NM" != "no"; then
3935: NM="$lt_cv_path_NM"
3936: else
3937: # Didn't find any BSD compatible name lister, look for dumpbin.
3938: if test -n "$DUMPBIN"; then :
3939: # Let the user override the test.
3940: else
3941: if test -n "$ac_tool_prefix"; then
3942: for ac_prog in dumpbin "link -dump"
3943: do
3944: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3945: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 3946: echo "$as_me:$LINENO: checking for $ac_word" >&5
3947: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3949: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3950: else
1.8 moko 3951: if test -n "$DUMPBIN"; then
3952: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3953: else
1.1 misha 3954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955: for as_dir in $PATH
3956: do
3957: IFS=$as_save_IFS
3958: test -z "$as_dir" && as_dir=.
1.11 moko 3959: for ac_exec_ext in '' $ac_executable_extensions; do
3960: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 3961: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.11 moko 3962: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 3963: break 2
3964: fi
3965: done
1.11 moko 3966: done
3967:
1.8 moko 3968: fi
3969: fi
3970: DUMPBIN=$ac_cv_prog_DUMPBIN
3971: if test -n "$DUMPBIN"; then
1.11 moko 3972: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3973: echo "${ECHO_T}$DUMPBIN" >&6
1.8 moko 3974: else
1.11 moko 3975: echo "$as_me:$LINENO: result: no" >&5
3976: echo "${ECHO_T}no" >&6
1.8 moko 3977: fi
1.1 misha 3978:
1.8 moko 3979: test -n "$DUMPBIN" && break
1.1 misha 3980: done
1.8 moko 3981: fi
3982: if test -z "$DUMPBIN"; then
3983: ac_ct_DUMPBIN=$DUMPBIN
3984: for ac_prog in dumpbin "link -dump"
3985: do
3986: # Extract the first word of "$ac_prog", so it can be a program name with args.
3987: set dummy $ac_prog; ac_word=$2
1.11 moko 3988: echo "$as_me:$LINENO: checking for $ac_word" >&5
3989: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3991: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 3992: else
3993: if test -n "$ac_ct_DUMPBIN"; then
3994: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3995: else
3996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997: for as_dir in $PATH
3998: do
3999: IFS=$as_save_IFS
4000: test -z "$as_dir" && as_dir=.
1.11 moko 4001: for ac_exec_ext in '' $ac_executable_extensions; do
4002: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4003: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.11 moko 4004: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4005: break 2
4006: fi
4007: done
1.11 moko 4008: done
1.1 misha 4009:
4010: fi
1.8 moko 4011: fi
4012: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4013: if test -n "$ac_ct_DUMPBIN"; then
1.11 moko 4014: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4015: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.1 misha 4016: else
1.11 moko 4017: echo "$as_me:$LINENO: result: no" >&5
4018: echo "${ECHO_T}no" >&6
1.1 misha 4019: fi
4020:
1.8 moko 4021: test -n "$ac_ct_DUMPBIN" && break
4022: done
1.11 moko 4023: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.8 moko 4024:
1.11 moko 4025: DUMPBIN=$ac_ct_DUMPBIN
1.1 misha 4026: fi
4027:
1.8 moko 4028: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4029: *COFF*)
4030: DUMPBIN="$DUMPBIN -symbols"
4031: ;;
4032: *)
4033: DUMPBIN=:
4034: ;;
4035: esac
4036: fi
4037:
4038: if test "$DUMPBIN" != ":"; then
4039: NM="$DUMPBIN"
4040: fi
4041: fi
4042: test -z "$NM" && NM=nm
4043:
4044:
4045:
4046:
4047:
4048:
1.11 moko 4049: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4050: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4051: if test "${lt_cv_nm_interface+set}" = set; then
4052: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4053: else
4054: lt_cv_nm_interface="BSD nm"
4055: echo "int some_variable = 0;" > conftest.$ac_ext
4056: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4057: (eval "$ac_compile" 2>conftest.err)
4058: cat conftest.err >&5
4059: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4060: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4061: cat conftest.err >&5
4062: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4063: cat conftest.out >&5
4064: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4065: lt_cv_nm_interface="MS dumpbin"
4066: fi
4067: rm -f conftest*
4068: fi
1.11 moko 4069: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4070: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.8 moko 4071:
1.11 moko 4072: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4073: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1.8 moko 4074: LN_S=$as_ln_s
4075: if test "$LN_S" = "ln -s"; then
1.11 moko 4076: echo "$as_me:$LINENO: result: yes" >&5
4077: echo "${ECHO_T}yes" >&6
1.8 moko 4078: else
1.11 moko 4079: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4080: echo "${ECHO_T}no, using $LN_S" >&6
1.8 moko 4081: fi
4082:
4083: # find the maximum length of command line arguments
1.11 moko 4084: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4085: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4086: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4088: else
4089: i=0
4090: teststring="ABCD"
4091:
4092: case $build_os in
4093: msdosdjgpp*)
4094: # On DJGPP, this test can blow up pretty badly due to problems in libc
4095: # (any single argument exceeding 2000 bytes causes a buffer overrun
4096: # during glob expansion). Even if it were fixed, the result of this
4097: # check would be larger than it should be.
4098: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4099: ;;
4100:
4101: gnu*)
4102: # Under GNU Hurd, this test is not required because there is
4103: # no limit to the length of command line arguments.
4104: # Libtool will interpret -1 as no limit whatsoever
4105: lt_cv_sys_max_cmd_len=-1;
4106: ;;
4107:
4108: cygwin* | mingw* | cegcc*)
4109: # On Win9x/ME, this test blows up -- it succeeds, but takes
4110: # about 5 minutes as the teststring grows exponentially.
4111: # Worse, since 9x/ME are not pre-emptively multitasking,
4112: # you end up with a "frozen" computer, even though with patience
4113: # the test eventually succeeds (with a max line length of 256k).
4114: # Instead, let's just punt: use the minimum linelength reported by
4115: # all of the supported platforms: 8192 (on NT/2K/XP).
4116: lt_cv_sys_max_cmd_len=8192;
4117: ;;
4118:
4119: mint*)
4120: # On MiNT this can take a long time and run out of memory.
4121: lt_cv_sys_max_cmd_len=8192;
4122: ;;
4123:
4124: amigaos*)
4125: # On AmigaOS with pdksh, this test takes hours, literally.
4126: # So we just punt and use a minimum line length of 8192.
4127: lt_cv_sys_max_cmd_len=8192;
4128: ;;
4129:
4130: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4131: # This has been around since 386BSD, at least. Likely further.
4132: if test -x /sbin/sysctl; then
4133: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4134: elif test -x /usr/sbin/sysctl; then
4135: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4136: else
4137: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4138: fi
4139: # And add a safety zone
4140: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4141: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4142: ;;
4143:
4144: interix*)
4145: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4146: lt_cv_sys_max_cmd_len=196608
4147: ;;
4148:
4149: os2*)
4150: # The test takes a long time on OS/2.
4151: lt_cv_sys_max_cmd_len=8192
4152: ;;
4153:
4154: osf*)
4155: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4156: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4157: # nice to cause kernel panics so lets avoid the loop below.
4158: # First set a reasonable default.
4159: lt_cv_sys_max_cmd_len=16384
4160: #
4161: if test -x /sbin/sysconfig; then
4162: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4163: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4164: esac
4165: fi
4166: ;;
4167: sco3.2v5*)
4168: lt_cv_sys_max_cmd_len=102400
4169: ;;
4170: sysv5* | sco5v6* | sysv4.2uw2*)
4171: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4172: if test -n "$kargmax"; then
4173: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4174: else
4175: lt_cv_sys_max_cmd_len=32768
4176: fi
4177: ;;
4178: *)
4179: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4180: if test -n "$lt_cv_sys_max_cmd_len"; then
4181: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4182: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4183: else
4184: # Make teststring a little bigger before we do anything with it.
4185: # a 1K string should be a reasonable start.
4186: for i in 1 2 3 4 5 6 7 8 ; do
4187: teststring=$teststring$teststring
4188: done
4189: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4190: # If test is not a shell built-in, we'll probably end up computing a
4191: # maximum length that is only half of the actual maximum length, but
4192: # we can't tell.
4193: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4194: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4195: test $i != 17 # 1/2 MB should be enough
4196: do
4197: i=`expr $i + 1`
4198: teststring=$teststring$teststring
4199: done
4200: # Only check the string length outside the loop.
4201: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4202: teststring=
4203: # Add a significant safety factor because C++ compilers can tack on
4204: # massive amounts of additional arguments before passing them to the
4205: # linker. It appears as though 1/2 is a usable value.
4206: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4207: fi
4208: ;;
4209: esac
4210:
4211: fi
4212:
4213: if test -n $lt_cv_sys_max_cmd_len ; then
1.11 moko 4214: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4215: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
1.8 moko 4216: else
1.11 moko 4217: echo "$as_me:$LINENO: result: none" >&5
4218: echo "${ECHO_T}none" >&6
1.8 moko 4219: fi
4220: max_cmd_len=$lt_cv_sys_max_cmd_len
4221:
4222:
4223:
4224:
4225:
4226:
4227: : ${CP="cp -f"}
4228: : ${MV="mv -f"}
4229: : ${RM="rm -f"}
4230:
1.11 moko 4231: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4232: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1.8 moko 4233: # Try some XSI features
4234: xsi_shell=no
4235: ( _lt_dummy="a/b/c"
4236: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4237: = c,a/b,b/c, \
4238: && eval 'test $(( 1 + 1 )) -eq 2 \
4239: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4240: && xsi_shell=yes
1.11 moko 4241: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4242: echo "${ECHO_T}$xsi_shell" >&6
1.8 moko 4243:
4244:
1.11 moko 4245: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4246: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1.8 moko 4247: lt_shell_append=no
4248: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4249: >/dev/null 2>&1 \
4250: && lt_shell_append=yes
1.11 moko 4251: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4252: echo "${ECHO_T}$lt_shell_append" >&6
1.8 moko 4253:
4254:
4255: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4256: lt_unset=unset
4257: else
4258: lt_unset=false
4259: fi
4260:
4261:
4262:
4263:
4264:
4265: # test EBCDIC or ASCII
4266: case `echo X|tr X '\101'` in
4267: A) # ASCII based system
4268: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4269: lt_SP2NL='tr \040 \012'
4270: lt_NL2SP='tr \015\012 \040\040'
4271: ;;
4272: *) # EBCDIC based system
4273: lt_SP2NL='tr \100 \n'
4274: lt_NL2SP='tr \r\n \100\100'
4275: ;;
4276: esac
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284:
4285:
1.11 moko 4286: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4287: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4288: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4289: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4290: else
4291: case $host in
4292: *-*-mingw* )
4293: case $build in
4294: *-*-mingw* ) # actually msys
4295: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4296: ;;
4297: *-*-cygwin* )
4298: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4299: ;;
4300: * ) # otherwise, assume *nix
4301: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4302: ;;
4303: esac
4304: ;;
4305: *-*-cygwin* )
4306: case $build in
4307: *-*-mingw* ) # actually msys
4308: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4309: ;;
4310: *-*-cygwin* )
4311: lt_cv_to_host_file_cmd=func_convert_file_noop
4312: ;;
4313: * ) # otherwise, assume *nix
4314: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4315: ;;
4316: esac
4317: ;;
4318: * ) # unhandled hosts (and "normal" native builds)
4319: lt_cv_to_host_file_cmd=func_convert_file_noop
4320: ;;
4321: esac
4322:
4323: fi
4324:
4325: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.11 moko 4326: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4327: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
1.8 moko 4328:
4329:
4330:
4331:
4332:
1.11 moko 4333: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4334: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4335: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4336: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4337: else
4338: #assume ordinary cross tools, or native build.
4339: lt_cv_to_tool_file_cmd=func_convert_file_noop
4340: case $host in
4341: *-*-mingw* )
4342: case $build in
4343: *-*-mingw* ) # actually msys
4344: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4345: ;;
4346: esac
4347: ;;
4348: esac
4349:
4350: fi
4351:
4352: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.11 moko 4353: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4354: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
1.8 moko 4355:
4356:
4357:
4358:
4359:
1.11 moko 4360: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4361: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4362: if test "${lt_cv_ld_reload_flag+set}" = set; then
4363: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4364: else
4365: lt_cv_ld_reload_flag='-r'
4366: fi
1.11 moko 4367: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4368: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1.8 moko 4369: reload_flag=$lt_cv_ld_reload_flag
4370: case $reload_flag in
4371: "" | " "*) ;;
4372: *) reload_flag=" $reload_flag" ;;
4373: esac
4374: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4375: case $host_os in
4376: cygwin* | mingw* | pw32* | cegcc*)
4377: if test "$GCC" != yes; then
4378: reload_cmds=false
4379: fi
4380: ;;
4381: darwin*)
4382: if test "$GCC" = yes; then
4383: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4384: else
4385: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4386: fi
4387: ;;
4388: esac
4389:
4390:
4391:
4392:
4393:
4394:
4395:
4396:
4397:
4398: if test -n "$ac_tool_prefix"; then
4399: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4400: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.11 moko 4401: echo "$as_me:$LINENO: checking for $ac_word" >&5
4402: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4405: else
4406: if test -n "$OBJDUMP"; then
4407: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4408: else
4409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410: for as_dir in $PATH
4411: do
4412: IFS=$as_save_IFS
4413: test -z "$as_dir" && as_dir=.
1.11 moko 4414: for ac_exec_ext in '' $ac_executable_extensions; do
4415: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4416: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.11 moko 4417: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4418: break 2
4419: fi
4420: done
1.11 moko 4421: done
1.8 moko 4422:
4423: fi
4424: fi
4425: OBJDUMP=$ac_cv_prog_OBJDUMP
4426: if test -n "$OBJDUMP"; then
1.11 moko 4427: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4428: echo "${ECHO_T}$OBJDUMP" >&6
1.8 moko 4429: else
1.11 moko 4430: echo "$as_me:$LINENO: result: no" >&5
4431: echo "${ECHO_T}no" >&6
1.8 moko 4432: fi
4433:
4434: fi
4435: if test -z "$ac_cv_prog_OBJDUMP"; then
4436: ac_ct_OBJDUMP=$OBJDUMP
4437: # Extract the first word of "objdump", so it can be a program name with args.
4438: set dummy objdump; ac_word=$2
1.11 moko 4439: echo "$as_me:$LINENO: checking for $ac_word" >&5
4440: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4442: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4443: else
4444: if test -n "$ac_ct_OBJDUMP"; then
4445: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4446: else
4447: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448: for as_dir in $PATH
4449: do
4450: IFS=$as_save_IFS
4451: test -z "$as_dir" && as_dir=.
1.11 moko 4452: for ac_exec_ext in '' $ac_executable_extensions; do
4453: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4454: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.11 moko 4455: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4456: break 2
4457: fi
4458: done
1.11 moko 4459: done
1.8 moko 4460:
1.11 moko 4461: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
1.8 moko 4462: fi
4463: fi
4464: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4465: if test -n "$ac_ct_OBJDUMP"; then
1.11 moko 4466: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4467: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
1.8 moko 4468: else
1.11 moko 4469: echo "$as_me:$LINENO: result: no" >&5
4470: echo "${ECHO_T}no" >&6
1.8 moko 4471: fi
4472:
1.11 moko 4473: OBJDUMP=$ac_ct_OBJDUMP
1.8 moko 4474: else
4475: OBJDUMP="$ac_cv_prog_OBJDUMP"
4476: fi
4477:
4478: test -z "$OBJDUMP" && OBJDUMP=objdump
4479:
4480:
4481:
4482:
4483:
4484:
1.11 moko 4485: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4486: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4487: if test "${lt_cv_deplibs_check_method+set}" = set; then
4488: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4489: else
4490: lt_cv_file_magic_cmd='$MAGIC_CMD'
4491: lt_cv_file_magic_test_file=
4492: lt_cv_deplibs_check_method='unknown'
4493: # Need to set the preceding variable on all platforms that support
4494: # interlibrary dependencies.
4495: # 'none' -- dependencies not supported.
4496: # `unknown' -- same as none, but documents that we really don't know.
4497: # 'pass_all' -- all dependencies passed with no checks.
4498: # 'test_compile' -- check by making test program.
4499: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 4500: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 4501: # If you have `file' or equivalent on your system and you're not sure
4502: # whether `pass_all' will *always* work, you probably want this one.
4503:
4504: case $host_os in
1.8 moko 4505: aix[4-9]*)
1.1 misha 4506: lt_cv_deplibs_check_method=pass_all
4507: ;;
4508:
4509: beos*)
4510: lt_cv_deplibs_check_method=pass_all
4511: ;;
4512:
1.8 moko 4513: bsdi[45]*)
1.1 misha 4514: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4515: lt_cv_file_magic_cmd='/usr/bin/file -L'
4516: lt_cv_file_magic_test_file=/shlib/libc.so
4517: ;;
4518:
1.8 moko 4519: cygwin*)
4520: # func_win32_libid is a shell function defined in ltmain.sh
4521: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522: lt_cv_file_magic_cmd='func_win32_libid'
4523: ;;
4524:
4525: mingw* | pw32*)
4526: # Base MSYS/MinGW do not provide the 'file' command needed by
4527: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4528: # unless we find 'file', for example because we are cross-compiling.
4529: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4530: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4531: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4532: lt_cv_file_magic_cmd='func_win32_libid'
4533: else
4534: # Keep this pattern in sync with the one in func_win32_libid.
4535: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4536: lt_cv_file_magic_cmd='$OBJDUMP -f'
4537: fi
4538: ;;
4539:
4540: cegcc*)
4541: # use the weaker test based on 'objdump'. See mingw*.
4542: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 4543: lt_cv_file_magic_cmd='$OBJDUMP -f'
4544: ;;
4545:
4546: darwin* | rhapsody*)
1.8 moko 4547: lt_cv_deplibs_check_method=pass_all
1.1 misha 4548: ;;
4549:
1.8 moko 4550: freebsd* | dragonfly*)
4551: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 4552: case $host_cpu in
4553: i*86 )
4554: # Not sure whether the presence of OpenBSD here was a mistake.
4555: # Let's accept both of them until this is cleared up.
1.8 moko 4556: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 4557: lt_cv_file_magic_cmd=/usr/bin/file
4558: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4559: ;;
4560: esac
4561: else
4562: lt_cv_deplibs_check_method=pass_all
4563: fi
4564: ;;
4565:
4566: gnu*)
4567: lt_cv_deplibs_check_method=pass_all
4568: ;;
4569:
1.8 moko 4570: haiku*)
4571: lt_cv_deplibs_check_method=pass_all
1.1 misha 4572: ;;
4573:
1.8 moko 4574: hpux10.20* | hpux11*)
4575: lt_cv_file_magic_cmd=/usr/bin/file
4576: case $host_cpu in
4577: ia64*)
4578: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4579: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4580: ;;
4581: hppa*64*)
4582: 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]'
4583: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 4584: ;;
4585: *)
1.8 moko 4586: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4587: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 4588: ;;
4589: esac
1.8 moko 4590: ;;
4591:
4592: interix[3-9]*)
4593: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4594: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4595: ;;
4596:
4597: irix5* | irix6* | nonstopux*)
4598: case $LD in
4599: *-32|*"-32 ") libmagic=32-bit;;
4600: *-n32|*"-n32 ") libmagic=N32;;
4601: *-64|*"-64 ") libmagic=64-bit;;
4602: *) libmagic=never-match;;
4603: esac
1.1 misha 4604: lt_cv_deplibs_check_method=pass_all
4605: ;;
4606:
1.8 moko 4607: # This must be glibc/ELF.
4608: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4609: lt_cv_deplibs_check_method=pass_all
1.1 misha 4610: ;;
4611:
4612: netbsd*)
1.8 moko 4613: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4614: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4615: else
1.8 moko 4616: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 4617: fi
4618: ;;
4619:
4620: newos6*)
4621: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4622: lt_cv_file_magic_cmd=/usr/bin/file
4623: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4624: ;;
4625:
1.8 moko 4626: *nto* | *qnx*)
4627: lt_cv_deplibs_check_method=pass_all
4628: ;;
4629:
1.1 misha 4630: openbsd*)
1.8 moko 4631: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4632: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 4633: else
1.8 moko 4634: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4635: fi
4636: ;;
4637:
4638: osf3* | osf4* | osf5*)
4639: lt_cv_deplibs_check_method=pass_all
4640: ;;
4641:
1.8 moko 4642: rdos*)
1.1 misha 4643: lt_cv_deplibs_check_method=pass_all
4644: ;;
4645:
4646: solaris*)
4647: lt_cv_deplibs_check_method=pass_all
4648: ;;
4649:
1.8 moko 4650: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 4651: lt_cv_deplibs_check_method=pass_all
4652: ;;
4653:
1.8 moko 4654: sysv4 | sysv4.3*)
1.1 misha 4655: case $host_vendor in
4656: motorola)
4657: 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]'
4658: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4659: ;;
4660: ncr)
4661: lt_cv_deplibs_check_method=pass_all
4662: ;;
4663: sequent)
4664: lt_cv_file_magic_cmd='/bin/file'
4665: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4666: ;;
4667: sni)
4668: lt_cv_file_magic_cmd='/bin/file'
4669: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4670: lt_cv_file_magic_test_file=/lib/libc.so
4671: ;;
4672: siemens)
4673: lt_cv_deplibs_check_method=pass_all
4674: ;;
1.8 moko 4675: pc)
4676: lt_cv_deplibs_check_method=pass_all
4677: ;;
1.1 misha 4678: esac
4679: ;;
1.8 moko 4680:
4681: tpf*)
4682: lt_cv_deplibs_check_method=pass_all
4683: ;;
1.1 misha 4684: esac
4685:
4686: fi
1.11 moko 4687: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4688: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.8 moko 4689:
4690: file_magic_glob=
4691: want_nocaseglob=no
4692: if test "$build" = "$host"; then
4693: case $host_os in
4694: mingw* | pw32*)
4695: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4696: want_nocaseglob=yes
4697: else
4698: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4699: fi
4700: ;;
4701: esac
4702: fi
4703:
1.1 misha 4704: file_magic_cmd=$lt_cv_file_magic_cmd
4705: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 4706: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4707:
4708:
1.1 misha 4709:
4710:
4711:
4712:
4713:
4714:
4715:
4716:
1.8 moko 4717:
4718:
4719:
4720:
4721:
4722:
4723:
4724:
4725:
4726:
4727:
4728:
4729: if test -n "$ac_tool_prefix"; then
4730: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4731: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.11 moko 4732: echo "$as_me:$LINENO: checking for $ac_word" >&5
4733: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4735: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4736: else
4737: if test -n "$DLLTOOL"; then
4738: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4739: else
4740: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741: for as_dir in $PATH
4742: do
4743: IFS=$as_save_IFS
4744: test -z "$as_dir" && as_dir=.
1.11 moko 4745: for ac_exec_ext in '' $ac_executable_extensions; do
4746: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4747: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.11 moko 4748: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4749: break 2
4750: fi
4751: done
1.11 moko 4752: done
1.8 moko 4753:
4754: fi
4755: fi
4756: DLLTOOL=$ac_cv_prog_DLLTOOL
4757: if test -n "$DLLTOOL"; then
1.11 moko 4758: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4759: echo "${ECHO_T}$DLLTOOL" >&6
1.8 moko 4760: else
1.11 moko 4761: echo "$as_me:$LINENO: result: no" >&5
4762: echo "${ECHO_T}no" >&6
1.8 moko 4763: fi
4764:
4765: fi
4766: if test -z "$ac_cv_prog_DLLTOOL"; then
4767: ac_ct_DLLTOOL=$DLLTOOL
4768: # Extract the first word of "dlltool", so it can be a program name with args.
4769: set dummy dlltool; ac_word=$2
1.11 moko 4770: echo "$as_me:$LINENO: checking for $ac_word" >&5
4771: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4773: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4774: else
1.8 moko 4775: if test -n "$ac_ct_DLLTOOL"; then
4776: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4777: else
4778: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779: for as_dir in $PATH
4780: do
4781: IFS=$as_save_IFS
4782: test -z "$as_dir" && as_dir=.
1.11 moko 4783: for ac_exec_ext in '' $ac_executable_extensions; do
4784: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4785: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.11 moko 4786: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4787: break 2
4788: fi
4789: done
1.11 moko 4790: done
1.8 moko 4791:
1.11 moko 4792: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
1.8 moko 4793: fi
4794: fi
4795: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4796: if test -n "$ac_ct_DLLTOOL"; then
1.11 moko 4797: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4798: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
1.8 moko 4799: else
1.11 moko 4800: echo "$as_me:$LINENO: result: no" >&5
4801: echo "${ECHO_T}no" >&6
1.8 moko 4802: fi
4803:
1.11 moko 4804: DLLTOOL=$ac_ct_DLLTOOL
1.8 moko 4805: else
4806: DLLTOOL="$ac_cv_prog_DLLTOOL"
4807: fi
4808:
4809: test -z "$DLLTOOL" && DLLTOOL=dlltool
4810:
4811:
4812:
4813:
1.1 misha 4814:
4815:
4816:
1.11 moko 4817: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4818: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4819: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4820: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4821: else
4822: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 4823:
4824: case $host_os in
1.8 moko 4825: cygwin* | mingw* | pw32* | cegcc*)
4826: # two different shell functions defined in ltmain.sh
4827: # decide which to use based on capabilities of $DLLTOOL
4828: case `$DLLTOOL --help 2>&1` in
4829: *--identify-strict*)
4830: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4831: ;;
4832: *)
4833: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4834: ;;
4835: esac
1.1 misha 4836: ;;
1.8 moko 4837: *)
4838: # fallback: assume linklib IS sharedlib
4839: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 4840: ;;
4841: esac
4842:
4843: fi
1.11 moko 4844: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4845: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
1.8 moko 4846: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4847: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 4848:
4849:
4850:
4851:
4852:
4853:
4854:
4855:
1.8 moko 4856: if test -n "$ac_tool_prefix"; then
4857: for ac_prog in ar
4858: do
4859: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4860: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 4861: echo "$as_me:$LINENO: checking for $ac_word" >&5
4862: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4863: if test "${ac_cv_prog_AR+set}" = set; then
4864: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4865: else
4866: if test -n "$AR"; then
4867: ac_cv_prog_AR="$AR" # Let the user override the test.
4868: else
4869: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870: for as_dir in $PATH
4871: do
4872: IFS=$as_save_IFS
4873: test -z "$as_dir" && as_dir=.
1.11 moko 4874: for ac_exec_ext in '' $ac_executable_extensions; do
4875: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4876: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.11 moko 4877: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4878: break 2
1.1 misha 4879: fi
1.8 moko 4880: done
1.11 moko 4881: done
1.1 misha 4882:
4883: fi
4884: fi
1.8 moko 4885: AR=$ac_cv_prog_AR
4886: if test -n "$AR"; then
1.11 moko 4887: echo "$as_me:$LINENO: result: $AR" >&5
4888: echo "${ECHO_T}$AR" >&6
1.1 misha 4889: else
1.11 moko 4890: echo "$as_me:$LINENO: result: no" >&5
4891: echo "${ECHO_T}no" >&6
1.1 misha 4892: fi
4893:
1.8 moko 4894: test -n "$AR" && break
4895: done
1.1 misha 4896: fi
1.8 moko 4897: if test -z "$AR"; then
4898: ac_ct_AR=$AR
4899: for ac_prog in ar
4900: do
4901: # Extract the first word of "$ac_prog", so it can be a program name with args.
4902: set dummy $ac_prog; ac_word=$2
1.11 moko 4903: echo "$as_me:$LINENO: checking for $ac_word" >&5
4904: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4907: else
1.8 moko 4908: if test -n "$ac_ct_AR"; then
4909: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4910: else
4911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912: for as_dir in $PATH
1.1 misha 4913: do
1.8 moko 4914: IFS=$as_save_IFS
4915: test -z "$as_dir" && as_dir=.
1.11 moko 4916: for ac_exec_ext in '' $ac_executable_extensions; do
4917: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4918: ac_cv_prog_ac_ct_AR="$ac_prog"
1.11 moko 4919: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4920: break 2
1.1 misha 4921: fi
1.8 moko 4922: done
1.11 moko 4923: done
1.1 misha 4924:
4925: fi
4926: fi
1.8 moko 4927: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4928: if test -n "$ac_ct_AR"; then
1.11 moko 4929: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4930: echo "${ECHO_T}$ac_ct_AR" >&6
1.1 misha 4931: else
1.11 moko 4932: echo "$as_me:$LINENO: result: no" >&5
4933: echo "${ECHO_T}no" >&6
1.1 misha 4934: fi
4935:
1.8 moko 4936: test -n "$ac_ct_AR" && break
1.1 misha 4937: done
1.11 moko 4938: test -n "$ac_ct_AR" || ac_ct_AR="false"
1.8 moko 4939:
1.11 moko 4940: AR=$ac_ct_AR
1.1 misha 4941: fi
4942:
1.8 moko 4943: : ${AR=ar}
4944: : ${AR_FLAGS=cru}
4945:
1.1 misha 4946:
4947:
4948:
4949:
4950:
4951:
4952:
4953:
4954:
4955:
1.11 moko 4956: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4957: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4958: if test "${lt_cv_ar_at_file+set}" = set; then
4959: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4960: else
1.8 moko 4961: lt_cv_ar_at_file=no
1.11 moko 4962: cat >conftest.$ac_ext <<_ACEOF
4963: /* confdefs.h. */
4964: _ACEOF
4965: cat confdefs.h >>conftest.$ac_ext
4966: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 4967: /* end confdefs.h. */
4968:
4969: int
4970: main ()
4971: {
4972:
4973: ;
4974: return 0;
4975: }
4976: _ACEOF
1.11 moko 4977: rm -f conftest.$ac_objext
4978: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979: (eval $ac_compile) 2>conftest.er1
4980: ac_status=$?
4981: grep -v '^ *+' conftest.er1 >conftest.err
4982: rm -f conftest.er1
4983: cat conftest.err >&5
4984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985: (exit $ac_status); } &&
4986: { ac_try='test -z "$ac_c_werror_flag"
4987: || test ! -s conftest.err'
4988: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989: (eval $ac_try) 2>&5
4990: ac_status=$?
4991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992: (exit $ac_status); }; } &&
4993: { ac_try='test -s conftest.$ac_objext'
4994: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995: (eval $ac_try) 2>&5
4996: ac_status=$?
4997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998: (exit $ac_status); }; }; then
1.8 moko 4999: echo conftest.$ac_objext > conftest.lst
5000: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.11 moko 5001: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5002: (eval $lt_ar_try) 2>&5
5003: ac_status=$?
1.11 moko 5004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005: (exit $ac_status); }
1.8 moko 5006: if test "$ac_status" -eq 0; then
5007: # Ensure the archiver fails upon bogus file names.
5008: rm -f conftest.$ac_objext libconftest.a
1.11 moko 5009: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5010: (eval $lt_ar_try) 2>&5
5011: ac_status=$?
1.11 moko 5012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013: (exit $ac_status); }
1.8 moko 5014: if test "$ac_status" -ne 0; then
5015: lt_cv_ar_at_file=@
5016: fi
5017: fi
5018: rm -f conftest.* libconftest.a
5019:
1.11 moko 5020: else
5021: echo "$as_me: failed program was:" >&5
5022: sed 's/^/| /' conftest.$ac_ext >&5
5023:
1.1 misha 5024: fi
1.11 moko 5025: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 5026:
1.8 moko 5027: fi
1.11 moko 5028: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5029: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.8 moko 5030:
5031: if test "x$lt_cv_ar_at_file" = xno; then
5032: archiver_list_spec=
1.1 misha 5033: else
1.8 moko 5034: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 5035: fi
5036:
5037:
5038:
1.8 moko 5039:
5040:
5041:
5042:
5043: if test -n "$ac_tool_prefix"; then
5044: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5045: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 5046: echo "$as_me:$LINENO: checking for $ac_word" >&5
5047: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048: if test "${ac_cv_prog_STRIP+set}" = set; then
5049: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5050: else
5051: if test -n "$STRIP"; then
5052: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5053: else
5054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055: for as_dir in $PATH
5056: do
5057: IFS=$as_save_IFS
5058: test -z "$as_dir" && as_dir=.
1.11 moko 5059: for ac_exec_ext in '' $ac_executable_extensions; do
5060: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5061: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 5062: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5063: break 2
5064: fi
5065: done
1.11 moko 5066: done
1.8 moko 5067:
5068: fi
5069: fi
5070: STRIP=$ac_cv_prog_STRIP
5071: if test -n "$STRIP"; then
1.11 moko 5072: echo "$as_me:$LINENO: result: $STRIP" >&5
5073: echo "${ECHO_T}$STRIP" >&6
1.1 misha 5074: else
1.11 moko 5075: echo "$as_me:$LINENO: result: no" >&5
5076: echo "${ECHO_T}no" >&6
1.1 misha 5077: fi
5078:
5079: fi
1.8 moko 5080: if test -z "$ac_cv_prog_STRIP"; then
5081: ac_ct_STRIP=$STRIP
5082: # Extract the first word of "strip", so it can be a program name with args.
5083: set dummy strip; ac_word=$2
1.11 moko 5084: echo "$as_me:$LINENO: checking for $ac_word" >&5
5085: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5088: else
1.8 moko 5089: if test -n "$ac_ct_STRIP"; then
5090: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 5091: else
1.8 moko 5092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093: for as_dir in $PATH
5094: do
5095: IFS=$as_save_IFS
5096: test -z "$as_dir" && as_dir=.
1.11 moko 5097: for ac_exec_ext in '' $ac_executable_extensions; do
5098: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5099: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 5100: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5101: break 2
5102: fi
5103: done
1.11 moko 5104: done
1.1 misha 5105:
1.11 moko 5106: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 5107: fi
5108: fi
1.8 moko 5109: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5110: if test -n "$ac_ct_STRIP"; then
1.11 moko 5111: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5112: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.8 moko 5113: else
1.11 moko 5114: echo "$as_me:$LINENO: result: no" >&5
5115: echo "${ECHO_T}no" >&6
1.1 misha 5116: fi
5117:
1.11 moko 5118: STRIP=$ac_ct_STRIP
1.8 moko 5119: else
5120: STRIP="$ac_cv_prog_STRIP"
1.1 misha 5121: fi
5122:
1.8 moko 5123: test -z "$STRIP" && STRIP=:
1.1 misha 5124:
5125:
5126:
5127:
5128:
5129:
1.8 moko 5130: if test -n "$ac_tool_prefix"; then
5131: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5132: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.11 moko 5133: echo "$as_me:$LINENO: checking for $ac_word" >&5
5134: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135: if test "${ac_cv_prog_RANLIB+set}" = set; then
5136: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5137: else
1.8 moko 5138: if test -n "$RANLIB"; then
5139: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 5140: else
1.8 moko 5141: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142: for as_dir in $PATH
5143: do
5144: IFS=$as_save_IFS
5145: test -z "$as_dir" && as_dir=.
1.11 moko 5146: for ac_exec_ext in '' $ac_executable_extensions; do
5147: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5148: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.11 moko 5149: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5150: break 2
5151: fi
5152: done
1.11 moko 5153: done
1.1 misha 5154:
5155: fi
5156: fi
1.8 moko 5157: RANLIB=$ac_cv_prog_RANLIB
5158: if test -n "$RANLIB"; then
1.11 moko 5159: echo "$as_me:$LINENO: result: $RANLIB" >&5
5160: echo "${ECHO_T}$RANLIB" >&6
1.8 moko 5161: else
1.11 moko 5162: echo "$as_me:$LINENO: result: no" >&5
5163: echo "${ECHO_T}no" >&6
1.8 moko 5164: fi
1.1 misha 5165:
5166: fi
1.8 moko 5167: if test -z "$ac_cv_prog_RANLIB"; then
5168: ac_ct_RANLIB=$RANLIB
5169: # Extract the first word of "ranlib", so it can be a program name with args.
5170: set dummy ranlib; ac_word=$2
1.11 moko 5171: echo "$as_me:$LINENO: checking for $ac_word" >&5
5172: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5174: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5175: else
5176: if test -n "$ac_ct_RANLIB"; then
5177: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5178: else
5179: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180: for as_dir in $PATH
5181: do
5182: IFS=$as_save_IFS
5183: test -z "$as_dir" && as_dir=.
1.11 moko 5184: for ac_exec_ext in '' $ac_executable_extensions; do
5185: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5186: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.11 moko 5187: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5188: break 2
5189: fi
5190: done
1.11 moko 5191: done
1.1 misha 5192:
1.11 moko 5193: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.8 moko 5194: fi
1.1 misha 5195: fi
1.8 moko 5196: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5197: if test -n "$ac_ct_RANLIB"; then
1.11 moko 5198: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5199: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1 misha 5200: else
1.11 moko 5201: echo "$as_me:$LINENO: result: no" >&5
5202: echo "${ECHO_T}no" >&6
1.1 misha 5203: fi
5204:
1.11 moko 5205: RANLIB=$ac_ct_RANLIB
1.1 misha 5206: else
1.8 moko 5207: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 5208: fi
5209:
1.8 moko 5210: test -z "$RANLIB" && RANLIB=:
5211:
5212:
5213:
5214:
5215:
5216:
5217: # Determine commands to create old-style static archives.
5218: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5219: old_postinstall_cmds='chmod 644 $oldlib'
5220: old_postuninstall_cmds=
1.1 misha 5221:
1.8 moko 5222: if test -n "$RANLIB"; then
5223: case $host_os in
5224: openbsd*)
5225: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 5226: ;;
1.8 moko 5227: *)
5228: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 5229: ;;
1.8 moko 5230: esac
5231: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5232: fi
5233:
5234: case $host_os in
5235: darwin*)
5236: lock_old_archive_extraction=yes ;;
5237: *)
5238: lock_old_archive_extraction=no ;;
1.1 misha 5239: esac
5240:
5241:
5242:
5243:
5244:
5245:
5246:
5247:
5248:
5249:
5250:
5251:
5252:
5253:
5254:
5255:
5256:
5257:
5258:
5259:
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
5272:
5273:
1.8 moko 5274:
5275:
5276:
5277:
5278:
5279: # If no C compiler was specified, use CC.
5280: LTCC=${LTCC-"$CC"}
5281:
5282: # If no C compiler flags were specified, use CFLAGS.
5283: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5284:
5285: # Allow CC to be a program name with arguments.
5286: compiler=$CC
5287:
5288:
5289: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.11 moko 5290: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5291: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5292: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5293: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5294: else
5295:
1.8 moko 5296: # These are sane defaults that work on at least a few old systems.
5297: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 5298:
1.8 moko 5299: # Character class describing NM global symbol codes.
5300: symcode='[BCDEGRST]'
1.1 misha 5301:
1.8 moko 5302: # Regexp to match symbols that can be accessed directly from C.
5303: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 5304:
1.8 moko 5305: # Define system-specific variables.
5306: case $host_os in
5307: aix*)
5308: symcode='[BCDT]'
5309: ;;
5310: cygwin* | mingw* | pw32* | cegcc*)
5311: symcode='[ABCDGISTW]'
5312: ;;
5313: hpux*)
5314: if test "$host_cpu" = ia64; then
5315: symcode='[ABCDEGRST]'
5316: fi
5317: ;;
5318: irix* | nonstopux*)
5319: symcode='[BCDEGRST]'
5320: ;;
5321: osf*)
5322: symcode='[BCDEGQRST]'
5323: ;;
5324: solaris*)
5325: symcode='[BDRT]'
5326: ;;
5327: sco3.2v5*)
5328: symcode='[DT]'
5329: ;;
5330: sysv4.2uw2*)
5331: symcode='[DT]'
5332: ;;
5333: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5334: symcode='[ABDT]'
5335: ;;
5336: sysv4)
5337: symcode='[DFNSTU]'
5338: ;;
5339: esac
5340:
5341: # If we're using GNU nm, then use its standard symbol codes.
5342: case `$NM -V 2>&1` in
5343: *GNU* | *'with BFD'*)
5344: symcode='[ABCDGIRSTW]' ;;
5345: esac
5346:
5347: # Transform an extracted symbol line into a proper C declaration.
5348: # Some systems (esp. on ia64) link data and code symbols differently,
5349: # so use this general approach.
5350: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5351:
5352: # Transform an extracted symbol line into symbol name and symbol address
5353: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5354: 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'"
5355:
5356: # Handle CRLF in mingw tool chain
5357: opt_cr=
5358: case $build_os in
5359: mingw*)
5360: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5361: ;;
5362: esac
5363:
5364: # Try without a prefix underscore, then with it.
5365: for ac_symprfx in "" "_"; do
5366:
5367: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5368: symxfrm="\\1 $ac_symprfx\\2 \\2"
5369:
5370: # Write the raw and C identifiers.
5371: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5372: # Fake it for dumpbin and say T for any non-static function
5373: # and D for any global variable.
5374: # Also find C++ and __fastcall symbols from MSVC++,
5375: # which start with @ or ?.
5376: lt_cv_sys_global_symbol_pipe="$AWK '"\
5377: " {last_section=section; section=\$ 3};"\
5378: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5379: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5380: " \$ 0!~/External *\|/{next};"\
5381: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5382: " {if(hide[section]) next};"\
5383: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5384: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5385: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5386: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5387: " ' prfx=^$ac_symprfx"
5388: else
5389: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5390: fi
5391: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5392:
5393: # Check to see that the pipe works correctly.
5394: pipe_works=no
1.1 misha 5395:
1.8 moko 5396: rm -f conftest*
5397: cat > conftest.$ac_ext <<_LT_EOF
5398: #ifdef __cplusplus
5399: extern "C" {
5400: #endif
5401: char nm_test_var;
5402: void nm_test_func(void);
5403: void nm_test_func(void){}
5404: #ifdef __cplusplus
1.1 misha 5405: }
1.8 moko 5406: #endif
5407: int main(){nm_test_var='a';nm_test_func();return(0);}
5408: _LT_EOF
5409:
1.11 moko 5410: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5411: (eval $ac_compile) 2>&5
1.1 misha 5412: ac_status=$?
1.11 moko 5413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414: (exit $ac_status); }; then
1.8 moko 5415: # Now try to grab the symbols.
5416: nlist=conftest.nm
1.11 moko 5417: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
1.8 moko 5418: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 5419: ac_status=$?
1.11 moko 5420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421: (exit $ac_status); } && test -s "$nlist"; then
1.8 moko 5422: # Try sorting and uniquifying the output.
5423: if sort "$nlist" | uniq > "$nlist"T; then
5424: mv -f "$nlist"T "$nlist"
5425: else
5426: rm -f "$nlist"T
5427: fi
5428:
5429: # Make sure that we snagged all the symbols we need.
5430: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5431: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5432: cat <<_LT_EOF > conftest.$ac_ext
5433: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5434: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5435: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5436: relocations are performed -- see ld's documentation on pseudo-relocs. */
5437: # define LT_DLSYM_CONST
5438: #elif defined(__osf__)
5439: /* This system does not cope well with relocations in const data. */
5440: # define LT_DLSYM_CONST
5441: #else
5442: # define LT_DLSYM_CONST const
5443: #endif
5444:
5445: #ifdef __cplusplus
5446: extern "C" {
5447: #endif
5448:
5449: _LT_EOF
5450: # Now generate the symbol file.
5451: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5452:
5453: cat <<_LT_EOF >> conftest.$ac_ext
5454:
5455: /* The mapping between symbol names and symbols. */
5456: LT_DLSYM_CONST struct {
5457: const char *name;
5458: void *address;
5459: }
5460: lt__PROGRAM__LTX_preloaded_symbols[] =
5461: {
5462: { "@PROGRAM@", (void *) 0 },
5463: _LT_EOF
5464: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5465: cat <<\_LT_EOF >> conftest.$ac_ext
5466: {0, (void *) 0}
5467: };
5468:
5469: /* This works around a problem in FreeBSD linker */
5470: #ifdef FREEBSD_WORKAROUND
5471: static const void *lt_preloaded_setup() {
5472: return lt__PROGRAM__LTX_preloaded_symbols;
5473: }
5474: #endif
5475:
5476: #ifdef __cplusplus
5477: }
5478: #endif
5479: _LT_EOF
5480: # Now try linking the two files.
5481: mv conftest.$ac_objext conftstm.$ac_objext
5482: lt_globsym_save_LIBS=$LIBS
5483: lt_globsym_save_CFLAGS=$CFLAGS
5484: LIBS="conftstm.$ac_objext"
5485: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.11 moko 5486: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 5487: (eval $ac_link) 2>&5
1.1 misha 5488: ac_status=$?
1.11 moko 5489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.8 moko 5491: pipe_works=yes
5492: fi
5493: LIBS=$lt_globsym_save_LIBS
5494: CFLAGS=$lt_globsym_save_CFLAGS
5495: else
5496: echo "cannot find nm_test_func in $nlist" >&5
5497: fi
5498: else
5499: echo "cannot find nm_test_var in $nlist" >&5
5500: fi
5501: else
5502: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5503: fi
5504: else
5505: echo "$progname: failed program was:" >&5
5506: cat conftest.$ac_ext >&5
5507: fi
5508: rm -rf conftest* conftst*
5509:
5510: # Do not use the global_symbol_pipe unless it works.
5511: if test "$pipe_works" = yes; then
5512: break
5513: else
5514: lt_cv_sys_global_symbol_pipe=
5515: fi
5516: done
5517:
5518: fi
5519:
5520: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5521: lt_cv_sys_global_symbol_to_cdecl=
5522: fi
5523: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.11 moko 5524: echo "$as_me:$LINENO: result: failed" >&5
5525: echo "${ECHO_T}failed" >&6
1.1 misha 5526: else
1.11 moko 5527: echo "$as_me:$LINENO: result: ok" >&5
5528: echo "${ECHO_T}ok" >&6
1.8 moko 5529: fi
1.1 misha 5530:
1.8 moko 5531: # Response file support.
5532: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5533: nm_file_list_spec='@'
5534: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5535: nm_file_list_spec='@'
1.1 misha 5536: fi
5537:
5538:
5539:
5540:
5541:
5542:
5543:
5544:
5545:
5546:
5547:
5548:
5549:
5550:
5551:
5552:
5553:
5554:
5555:
5556:
5557:
1.8 moko 5558:
5559:
5560:
5561:
5562:
5563:
1.11 moko 5564: echo "$as_me:$LINENO: checking for sysroot" >&5
5565: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5566:
5567: # Check whether --with-sysroot or --without-sysroot was given.
5568: if test "${with_sysroot+set}" = set; then
5569: withval="$with_sysroot"
1.8 moko 5570:
1.1 misha 5571: else
1.8 moko 5572: with_sysroot=no
1.11 moko 5573: fi;
1.1 misha 5574:
1.8 moko 5575: lt_sysroot=
5576: case ${with_sysroot} in #(
5577: yes)
5578: if test "$GCC" = yes; then
5579: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5580: fi
5581: ;; #(
5582: /*)
5583: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5584: ;; #(
5585: no|'')
5586: ;; #(
5587: *)
1.11 moko 5588: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5589: echo "${ECHO_T}${with_sysroot}" >&6
5590: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5591: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5592: { (exit 1); exit 1; }; }
1.8 moko 5593: ;;
5594: esac
5595:
1.11 moko 5596: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5597: echo "${ECHO_T}${lt_sysroot:-no}" >&6
1.8 moko 5598:
5599:
5600:
5601:
5602:
1.11 moko 5603: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5604: if test "${enable_libtool_lock+set}" = set; then
5605: enableval="$enable_libtool_lock"
1.1 misha 5606:
1.11 moko 5607: fi;
1.8 moko 5608: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 5609:
1.8 moko 5610: # Some flags need to be propagated to the compiler or linker for good
5611: # libtool support.
5612: case $host in
5613: ia64-*-hpux*)
5614: # Find out which ABI we are using.
5615: echo 'int i;' > conftest.$ac_ext
1.11 moko 5616: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5617: (eval $ac_compile) 2>&5
5618: ac_status=$?
1.11 moko 5619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620: (exit $ac_status); }; then
1.8 moko 5621: case `/usr/bin/file conftest.$ac_objext` in
5622: *ELF-32*)
5623: HPUX_IA64_MODE="32"
5624: ;;
5625: *ELF-64*)
5626: HPUX_IA64_MODE="64"
5627: ;;
1.1 misha 5628: esac
5629: fi
1.8 moko 5630: rm -rf conftest*
5631: ;;
5632: *-*-irix6*)
5633: # Find out which ABI we are using.
5634: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.11 moko 5635: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5636: (eval $ac_compile) 2>&5
1.1 misha 5637: ac_status=$?
1.11 moko 5638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639: (exit $ac_status); }; then
1.8 moko 5640: if test "$lt_cv_prog_gnu_ld" = yes; then
5641: case `/usr/bin/file conftest.$ac_objext` in
5642: *32-bit*)
5643: LD="${LD-ld} -melf32bsmip"
5644: ;;
5645: *N32*)
5646: LD="${LD-ld} -melf32bmipn32"
5647: ;;
5648: *64-bit*)
5649: LD="${LD-ld} -melf64bmip"
5650: ;;
5651: esac
5652: else
5653: case `/usr/bin/file conftest.$ac_objext` in
5654: *32-bit*)
5655: LD="${LD-ld} -32"
5656: ;;
5657: *N32*)
5658: LD="${LD-ld} -n32"
5659: ;;
5660: *64-bit*)
5661: LD="${LD-ld} -64"
5662: ;;
5663: esac
5664: fi
5665: fi
5666: rm -rf conftest*
5667: ;;
5668:
5669: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5670: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5671: # Find out which ABI we are using.
5672: echo 'int i;' > conftest.$ac_ext
1.11 moko 5673: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5674: (eval $ac_compile) 2>&5
1.1 misha 5675: ac_status=$?
1.11 moko 5676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677: (exit $ac_status); }; then
1.8 moko 5678: case `/usr/bin/file conftest.o` in
5679: *32-bit*)
5680: case $host in
5681: x86_64-*kfreebsd*-gnu)
5682: LD="${LD-ld} -m elf_i386_fbsd"
5683: ;;
5684: x86_64-*linux*)
5685: LD="${LD-ld} -m elf_i386"
5686: ;;
5687: ppc64-*linux*|powerpc64-*linux*)
5688: LD="${LD-ld} -m elf32ppclinux"
5689: ;;
5690: s390x-*linux*)
5691: LD="${LD-ld} -m elf_s390"
5692: ;;
5693: sparc64-*linux*)
5694: LD="${LD-ld} -m elf32_sparc"
5695: ;;
5696: esac
1.1 misha 5697: ;;
1.8 moko 5698: *64-bit*)
5699: case $host in
5700: x86_64-*kfreebsd*-gnu)
5701: LD="${LD-ld} -m elf_x86_64_fbsd"
5702: ;;
5703: x86_64-*linux*)
5704: LD="${LD-ld} -m elf_x86_64"
5705: ;;
5706: ppc*-*linux*|powerpc*-*linux*)
5707: LD="${LD-ld} -m elf64ppc"
5708: ;;
5709: s390*-*linux*|s390*-*tpf*)
5710: LD="${LD-ld} -m elf64_s390"
5711: ;;
5712: sparc*-*linux*)
5713: LD="${LD-ld} -m elf64_sparc"
5714: ;;
5715: esac
1.1 misha 5716: ;;
1.8 moko 5717: esac
1.1 misha 5718: fi
1.8 moko 5719: rm -rf conftest*
5720: ;;
1.1 misha 5721:
1.8 moko 5722: *-*-sco3.2v5*)
5723: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5724: SAVE_CFLAGS="$CFLAGS"
5725: CFLAGS="$CFLAGS -belf"
1.11 moko 5726: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5727: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5728: if test "${lt_cv_cc_needs_belf+set}" = set; then
5729: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5730: else
1.8 moko 5731: ac_ext=c
5732: ac_cpp='$CPP $CPPFLAGS'
5733: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736:
1.11 moko 5737: cat >conftest.$ac_ext <<_ACEOF
5738: /* confdefs.h. */
5739: _ACEOF
5740: cat confdefs.h >>conftest.$ac_ext
5741: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 5742: /* end confdefs.h. */
5743:
5744: int
5745: main ()
5746: {
5747:
5748: ;
5749: return 0;
5750: }
5751: _ACEOF
1.11 moko 5752: rm -f conftest.$ac_objext conftest$ac_exeext
5753: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754: (eval $ac_link) 2>conftest.er1
5755: ac_status=$?
5756: grep -v '^ *+' conftest.er1 >conftest.err
5757: rm -f conftest.er1
5758: cat conftest.err >&5
5759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760: (exit $ac_status); } &&
5761: { ac_try='test -z "$ac_c_werror_flag"
5762: || test ! -s conftest.err'
5763: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764: (eval $ac_try) 2>&5
5765: ac_status=$?
5766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767: (exit $ac_status); }; } &&
5768: { ac_try='test -s conftest$ac_exeext'
5769: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770: (eval $ac_try) 2>&5
5771: ac_status=$?
5772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773: (exit $ac_status); }; }; then
1.8 moko 5774: lt_cv_cc_needs_belf=yes
1.1 misha 5775: else
1.11 moko 5776: echo "$as_me: failed program was:" >&5
5777: sed 's/^/| /' conftest.$ac_ext >&5
5778:
5779: lt_cv_cc_needs_belf=no
1.1 misha 5780: fi
1.11 moko 5781: rm -f conftest.err conftest.$ac_objext \
5782: conftest$ac_exeext conftest.$ac_ext
1.8 moko 5783: ac_ext=c
5784: ac_cpp='$CPP $CPPFLAGS'
5785: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 5788:
5789: fi
1.11 moko 5790: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5791: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1.8 moko 5792: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5793: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5794: CFLAGS="$SAVE_CFLAGS"
5795: fi
5796: ;;
5797: *-*solaris*)
5798: # Find out which ABI we are using.
5799: echo 'int i;' > conftest.$ac_ext
1.11 moko 5800: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5801: (eval $ac_compile) 2>&5
5802: ac_status=$?
1.11 moko 5803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804: (exit $ac_status); }; then
1.8 moko 5805: case `/usr/bin/file conftest.o` in
5806: *64-bit*)
5807: case $lt_cv_prog_gnu_ld in
5808: yes*)
5809: case $host in
5810: i?86-*-solaris*)
5811: LD="${LD-ld} -m elf_x86_64"
5812: ;;
5813: sparc*-*-solaris*)
5814: LD="${LD-ld} -m elf64_sparc"
5815: ;;
5816: esac
5817: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5818: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5819: LD="${LD-ld}_sol2"
5820: fi
5821: ;;
5822: *)
5823: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5824: LD="${LD-ld} -64"
5825: fi
5826: ;;
5827: esac
5828: ;;
5829: esac
5830: fi
5831: rm -rf conftest*
5832: ;;
5833: esac
1.1 misha 5834:
1.8 moko 5835: need_locks="$enable_libtool_lock"
1.1 misha 5836:
1.8 moko 5837: if test -n "$ac_tool_prefix"; then
5838: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5839: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.11 moko 5840: echo "$as_me:$LINENO: checking for $ac_word" >&5
5841: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5842: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
5843: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5844: else
1.8 moko 5845: if test -n "$MANIFEST_TOOL"; then
5846: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5847: else
5848: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849: for as_dir in $PATH
5850: do
5851: IFS=$as_save_IFS
5852: test -z "$as_dir" && as_dir=.
1.11 moko 5853: for ac_exec_ext in '' $ac_executable_extensions; do
5854: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5855: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.11 moko 5856: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5857: break 2
5858: fi
5859: done
1.11 moko 5860: done
1.1 misha 5861:
1.8 moko 5862: fi
5863: fi
5864: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5865: if test -n "$MANIFEST_TOOL"; then
1.11 moko 5866: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5867: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.1 misha 5868: else
1.11 moko 5869: echo "$as_me:$LINENO: result: no" >&5
5870: echo "${ECHO_T}no" >&6
1.1 misha 5871: fi
5872:
5873: fi
1.8 moko 5874: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5875: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5876: # Extract the first word of "mt", so it can be a program name with args.
5877: set dummy mt; ac_word=$2
1.11 moko 5878: echo "$as_me:$LINENO: checking for $ac_word" >&5
5879: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5881: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5882: else
5883: if test -n "$ac_ct_MANIFEST_TOOL"; then
5884: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5885: else
5886: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887: for as_dir in $PATH
5888: do
5889: IFS=$as_save_IFS
5890: test -z "$as_dir" && as_dir=.
1.11 moko 5891: for ac_exec_ext in '' $ac_executable_extensions; do
5892: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5893: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.11 moko 5894: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5895: break 2
5896: fi
5897: done
1.11 moko 5898: done
1.1 misha 5899:
1.11 moko 5900: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
1.8 moko 5901: fi
5902: fi
5903: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5904: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.11 moko 5905: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5906: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.8 moko 5907: else
1.11 moko 5908: echo "$as_me:$LINENO: result: no" >&5
5909: echo "${ECHO_T}no" >&6
1.8 moko 5910: fi
5911:
1.11 moko 5912: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
1.8 moko 5913: else
5914: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5915: fi
1.1 misha 5916:
1.8 moko 5917: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.11 moko 5918: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5919: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5920: if test "${lt_cv_path_mainfest_tool+set}" = set; then
5921: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5922: else
1.8 moko 5923: lt_cv_path_mainfest_tool=no
5924: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5925: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5926: cat conftest.err >&5
5927: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5928: lt_cv_path_mainfest_tool=yes
5929: fi
5930: rm -f conftest*
5931: fi
1.11 moko 5932: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5933: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
1.8 moko 5934: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5935: MANIFEST_TOOL=:
5936: fi
5937:
5938:
5939:
1.1 misha 5940:
5941:
5942:
1.8 moko 5943: case $host_os in
5944: rhapsody* | darwin*)
5945: if test -n "$ac_tool_prefix"; then
5946: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5947: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.11 moko 5948: echo "$as_me:$LINENO: checking for $ac_word" >&5
5949: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5951: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5952: else
1.8 moko 5953: if test -n "$DSYMUTIL"; then
5954: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5955: else
5956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957: for as_dir in $PATH
5958: do
5959: IFS=$as_save_IFS
5960: test -z "$as_dir" && as_dir=.
1.11 moko 5961: for ac_exec_ext in '' $ac_executable_extensions; do
5962: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5963: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.11 moko 5964: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5965: break 2
5966: fi
5967: done
1.11 moko 5968: done
1.1 misha 5969:
5970: fi
1.8 moko 5971: fi
5972: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5973: if test -n "$DSYMUTIL"; then
1.11 moko 5974: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5975: echo "${ECHO_T}$DSYMUTIL" >&6
1.8 moko 5976: else
1.11 moko 5977: echo "$as_me:$LINENO: result: no" >&5
5978: echo "${ECHO_T}no" >&6
1.8 moko 5979: fi
1.1 misha 5980:
5981: fi
1.8 moko 5982: if test -z "$ac_cv_prog_DSYMUTIL"; then
5983: ac_ct_DSYMUTIL=$DSYMUTIL
5984: # Extract the first word of "dsymutil", so it can be a program name with args.
5985: set dummy dsymutil; ac_word=$2
1.11 moko 5986: echo "$as_me:$LINENO: checking for $ac_word" >&5
5987: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5988: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5989: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5990: else
5991: if test -n "$ac_ct_DSYMUTIL"; then
5992: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5993: else
5994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995: for as_dir in $PATH
5996: do
5997: IFS=$as_save_IFS
5998: test -z "$as_dir" && as_dir=.
1.11 moko 5999: for ac_exec_ext in '' $ac_executable_extensions; do
6000: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6001: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.11 moko 6002: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6003: break 2
6004: fi
6005: done
1.11 moko 6006: done
1.1 misha 6007:
1.11 moko 6008: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
1.8 moko 6009: fi
6010: fi
6011: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6012: if test -n "$ac_ct_DSYMUTIL"; then
1.11 moko 6013: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6014: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.1 misha 6015: else
1.11 moko 6016: echo "$as_me:$LINENO: result: no" >&5
6017: echo "${ECHO_T}no" >&6
1.1 misha 6018: fi
6019:
1.11 moko 6020: DSYMUTIL=$ac_ct_DSYMUTIL
1.1 misha 6021: else
1.8 moko 6022: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 6023: fi
6024:
1.8 moko 6025: if test -n "$ac_tool_prefix"; then
6026: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6027: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.11 moko 6028: echo "$as_me:$LINENO: checking for $ac_word" >&5
6029: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6031: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6032: else
6033: if test -n "$NMEDIT"; then
6034: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6035: else
6036: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037: for as_dir in $PATH
6038: do
6039: IFS=$as_save_IFS
6040: test -z "$as_dir" && as_dir=.
1.11 moko 6041: for ac_exec_ext in '' $ac_executable_extensions; do
6042: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6043: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.11 moko 6044: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6045: break 2
6046: fi
6047: done
1.11 moko 6048: done
1.1 misha 6049:
1.8 moko 6050: fi
6051: fi
6052: NMEDIT=$ac_cv_prog_NMEDIT
6053: if test -n "$NMEDIT"; then
1.11 moko 6054: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6055: echo "${ECHO_T}$NMEDIT" >&6
1.8 moko 6056: else
1.11 moko 6057: echo "$as_me:$LINENO: result: no" >&5
6058: echo "${ECHO_T}no" >&6
1.8 moko 6059: fi
1.1 misha 6060:
1.8 moko 6061: fi
6062: if test -z "$ac_cv_prog_NMEDIT"; then
6063: ac_ct_NMEDIT=$NMEDIT
6064: # Extract the first word of "nmedit", so it can be a program name with args.
6065: set dummy nmedit; ac_word=$2
1.11 moko 6066: echo "$as_me:$LINENO: checking for $ac_word" >&5
6067: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6069: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6070: else
6071: if test -n "$ac_ct_NMEDIT"; then
6072: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 6073: else
1.8 moko 6074: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075: for as_dir in $PATH
6076: do
6077: IFS=$as_save_IFS
6078: test -z "$as_dir" && as_dir=.
1.11 moko 6079: for ac_exec_ext in '' $ac_executable_extensions; do
6080: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6081: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.11 moko 6082: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6083: break 2
6084: fi
6085: done
1.11 moko 6086: done
1.1 misha 6087:
1.11 moko 6088: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
1.8 moko 6089: fi
6090: fi
6091: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6092: if test -n "$ac_ct_NMEDIT"; then
1.11 moko 6093: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6094: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
1.8 moko 6095: else
1.11 moko 6096: echo "$as_me:$LINENO: result: no" >&5
6097: echo "${ECHO_T}no" >&6
1.1 misha 6098: fi
6099:
1.11 moko 6100: NMEDIT=$ac_ct_NMEDIT
1.8 moko 6101: else
6102: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 6103: fi
6104:
1.8 moko 6105: if test -n "$ac_tool_prefix"; then
6106: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6107: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.11 moko 6108: echo "$as_me:$LINENO: checking for $ac_word" >&5
6109: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6110: if test "${ac_cv_prog_LIPO+set}" = set; then
6111: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6112: else
6113: if test -n "$LIPO"; then
6114: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6115: else
6116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117: for as_dir in $PATH
6118: do
6119: IFS=$as_save_IFS
6120: test -z "$as_dir" && as_dir=.
1.11 moko 6121: for ac_exec_ext in '' $ac_executable_extensions; do
6122: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6123: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.11 moko 6124: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6125: break 2
6126: fi
6127: done
1.11 moko 6128: done
1.1 misha 6129:
1.8 moko 6130: fi
6131: fi
6132: LIPO=$ac_cv_prog_LIPO
6133: if test -n "$LIPO"; then
1.11 moko 6134: echo "$as_me:$LINENO: result: $LIPO" >&5
6135: echo "${ECHO_T}$LIPO" >&6
1.8 moko 6136: else
1.11 moko 6137: echo "$as_me:$LINENO: result: no" >&5
6138: echo "${ECHO_T}no" >&6
1.8 moko 6139: fi
1.1 misha 6140:
1.8 moko 6141: fi
6142: if test -z "$ac_cv_prog_LIPO"; then
6143: ac_ct_LIPO=$LIPO
6144: # Extract the first word of "lipo", so it can be a program name with args.
6145: set dummy lipo; ac_word=$2
1.11 moko 6146: echo "$as_me:$LINENO: checking for $ac_word" >&5
6147: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6149: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6150: else
6151: if test -n "$ac_ct_LIPO"; then
6152: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6153: else
6154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155: for as_dir in $PATH
6156: do
6157: IFS=$as_save_IFS
6158: test -z "$as_dir" && as_dir=.
1.11 moko 6159: for ac_exec_ext in '' $ac_executable_extensions; do
6160: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6161: ac_cv_prog_ac_ct_LIPO="lipo"
1.11 moko 6162: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6163: break 2
1.1 misha 6164: fi
1.8 moko 6165: done
1.11 moko 6166: done
1.8 moko 6167:
1.11 moko 6168: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
1.8 moko 6169: fi
6170: fi
6171: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6172: if test -n "$ac_ct_LIPO"; then
1.11 moko 6173: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6174: echo "${ECHO_T}$ac_ct_LIPO" >&6
1.8 moko 6175: else
1.11 moko 6176: echo "$as_me:$LINENO: result: no" >&5
6177: echo "${ECHO_T}no" >&6
1.8 moko 6178: fi
6179:
1.11 moko 6180: LIPO=$ac_ct_LIPO
1.8 moko 6181: else
6182: LIPO="$ac_cv_prog_LIPO"
6183: fi
1.1 misha 6184:
1.8 moko 6185: if test -n "$ac_tool_prefix"; then
6186: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6187: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.11 moko 6188: echo "$as_me:$LINENO: checking for $ac_word" >&5
6189: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6190: if test "${ac_cv_prog_OTOOL+set}" = set; then
6191: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6192: else
6193: if test -n "$OTOOL"; then
6194: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6195: else
6196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197: for as_dir in $PATH
6198: do
6199: IFS=$as_save_IFS
6200: test -z "$as_dir" && as_dir=.
1.11 moko 6201: for ac_exec_ext in '' $ac_executable_extensions; do
6202: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6203: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.11 moko 6204: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6205: break 2
6206: fi
6207: done
1.11 moko 6208: done
1.1 misha 6209:
1.8 moko 6210: fi
6211: fi
6212: OTOOL=$ac_cv_prog_OTOOL
6213: if test -n "$OTOOL"; then
1.11 moko 6214: echo "$as_me:$LINENO: result: $OTOOL" >&5
6215: echo "${ECHO_T}$OTOOL" >&6
1.8 moko 6216: else
1.11 moko 6217: echo "$as_me:$LINENO: result: no" >&5
6218: echo "${ECHO_T}no" >&6
1.8 moko 6219: fi
1.1 misha 6220:
1.8 moko 6221: fi
6222: if test -z "$ac_cv_prog_OTOOL"; then
6223: ac_ct_OTOOL=$OTOOL
6224: # Extract the first word of "otool", so it can be a program name with args.
6225: set dummy otool; ac_word=$2
1.11 moko 6226: echo "$as_me:$LINENO: checking for $ac_word" >&5
6227: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6228: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6229: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6230: else
6231: if test -n "$ac_ct_OTOOL"; then
6232: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6233: else
6234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235: for as_dir in $PATH
6236: do
6237: IFS=$as_save_IFS
6238: test -z "$as_dir" && as_dir=.
1.11 moko 6239: for ac_exec_ext in '' $ac_executable_extensions; do
6240: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6241: ac_cv_prog_ac_ct_OTOOL="otool"
1.11 moko 6242: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6243: break 2
6244: fi
6245: done
1.11 moko 6246: done
1.1 misha 6247:
1.11 moko 6248: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
1.8 moko 6249: fi
6250: fi
6251: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6252: if test -n "$ac_ct_OTOOL"; then
1.11 moko 6253: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6254: echo "${ECHO_T}$ac_ct_OTOOL" >&6
1.8 moko 6255: else
1.11 moko 6256: echo "$as_me:$LINENO: result: no" >&5
6257: echo "${ECHO_T}no" >&6
1.8 moko 6258: fi
1.1 misha 6259:
1.11 moko 6260: OTOOL=$ac_ct_OTOOL
1.8 moko 6261: else
6262: OTOOL="$ac_cv_prog_OTOOL"
6263: fi
1.1 misha 6264:
1.8 moko 6265: if test -n "$ac_tool_prefix"; then
6266: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6267: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.11 moko 6268: echo "$as_me:$LINENO: checking for $ac_word" >&5
6269: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6270: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6271: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6272: else
6273: if test -n "$OTOOL64"; then
6274: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6275: else
6276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277: for as_dir in $PATH
6278: do
6279: IFS=$as_save_IFS
6280: test -z "$as_dir" && as_dir=.
1.11 moko 6281: for ac_exec_ext in '' $ac_executable_extensions; do
6282: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6283: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.11 moko 6284: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6285: break 2
6286: fi
6287: done
1.11 moko 6288: done
1.1 misha 6289:
1.8 moko 6290: fi
6291: fi
6292: OTOOL64=$ac_cv_prog_OTOOL64
6293: if test -n "$OTOOL64"; then
1.11 moko 6294: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6295: echo "${ECHO_T}$OTOOL64" >&6
1.8 moko 6296: else
1.11 moko 6297: echo "$as_me:$LINENO: result: no" >&5
6298: echo "${ECHO_T}no" >&6
1.8 moko 6299: fi
1.1 misha 6300:
1.8 moko 6301: fi
6302: if test -z "$ac_cv_prog_OTOOL64"; then
6303: ac_ct_OTOOL64=$OTOOL64
6304: # Extract the first word of "otool64", so it can be a program name with args.
6305: set dummy otool64; ac_word=$2
1.11 moko 6306: echo "$as_me:$LINENO: checking for $ac_word" >&5
6307: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6308: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6309: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6310: else
6311: if test -n "$ac_ct_OTOOL64"; then
6312: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6313: else
6314: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315: for as_dir in $PATH
6316: do
6317: IFS=$as_save_IFS
6318: test -z "$as_dir" && as_dir=.
1.11 moko 6319: for ac_exec_ext in '' $ac_executable_extensions; do
6320: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6321: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.11 moko 6322: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6323: break 2
6324: fi
6325: done
1.11 moko 6326: done
1.1 misha 6327:
1.11 moko 6328: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
1.8 moko 6329: fi
6330: fi
6331: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6332: if test -n "$ac_ct_OTOOL64"; then
1.11 moko 6333: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6334: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
1.8 moko 6335: else
1.11 moko 6336: echo "$as_me:$LINENO: result: no" >&5
6337: echo "${ECHO_T}no" >&6
1.8 moko 6338: fi
1.1 misha 6339:
1.11 moko 6340: OTOOL64=$ac_ct_OTOOL64
1.8 moko 6341: else
6342: OTOOL64="$ac_cv_prog_OTOOL64"
6343: fi
1.1 misha 6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
1.11 moko 6371: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6372: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6373: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6374: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6375: else
6376: lt_cv_apple_cc_single_mod=no
6377: if test -z "${LT_MULTI_MODULE}"; then
6378: # By default we will add the -single_module flag. You can override
6379: # by either setting the environment variable LT_MULTI_MODULE
6380: # non-empty at configure time, or by adding -multi_module to the
6381: # link flags.
6382: rm -rf libconftest.dylib*
6383: echo "int foo(void){return 1;}" > conftest.c
6384: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6385: -dynamiclib -Wl,-single_module conftest.c" >&5
6386: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6387: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6388: _lt_result=$?
6389: # If there is a non-empty error log, and "single_module"
6390: # appears in it, assume the flag caused a linker warning
6391: if test -s conftest.err && $GREP single_module conftest.err; then
6392: cat conftest.err >&5
6393: # Otherwise, if the output was created with a 0 exit code from
6394: # the compiler, it worked.
6395: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6396: lt_cv_apple_cc_single_mod=yes
6397: else
6398: cat conftest.err >&5
6399: fi
6400: rm -rf libconftest.dylib*
6401: rm -f conftest.*
6402: fi
6403: fi
1.11 moko 6404: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6405: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.1 misha 6406:
1.11 moko 6407: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6408: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6409: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6410: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6411: else
6412: lt_cv_ld_exported_symbols_list=no
6413: save_LDFLAGS=$LDFLAGS
6414: echo "_main" > conftest.sym
6415: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.11 moko 6416: cat >conftest.$ac_ext <<_ACEOF
6417: /* confdefs.h. */
6418: _ACEOF
6419: cat confdefs.h >>conftest.$ac_ext
6420: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6421: /* end confdefs.h. */
1.1 misha 6422:
1.8 moko 6423: int
6424: main ()
6425: {
1.1 misha 6426:
1.8 moko 6427: ;
6428: return 0;
6429: }
6430: _ACEOF
1.11 moko 6431: rm -f conftest.$ac_objext conftest$ac_exeext
6432: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433: (eval $ac_link) 2>conftest.er1
6434: ac_status=$?
6435: grep -v '^ *+' conftest.er1 >conftest.err
6436: rm -f conftest.er1
6437: cat conftest.err >&5
6438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439: (exit $ac_status); } &&
6440: { ac_try='test -z "$ac_c_werror_flag"
6441: || test ! -s conftest.err'
6442: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443: (eval $ac_try) 2>&5
6444: ac_status=$?
6445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446: (exit $ac_status); }; } &&
6447: { ac_try='test -s conftest$ac_exeext'
6448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449: (eval $ac_try) 2>&5
6450: ac_status=$?
6451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452: (exit $ac_status); }; }; then
1.8 moko 6453: lt_cv_ld_exported_symbols_list=yes
6454: else
1.11 moko 6455: echo "$as_me: failed program was:" >&5
6456: sed 's/^/| /' conftest.$ac_ext >&5
6457:
6458: lt_cv_ld_exported_symbols_list=no
1.8 moko 6459: fi
1.11 moko 6460: rm -f conftest.err conftest.$ac_objext \
6461: conftest$ac_exeext conftest.$ac_ext
1.8 moko 6462: LDFLAGS="$save_LDFLAGS"
1.1 misha 6463:
1.8 moko 6464: fi
1.11 moko 6465: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6466: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.1 misha 6467:
1.11 moko 6468: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6469: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6470: if test "${lt_cv_ld_force_load+set}" = set; then
6471: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6472: else
6473: lt_cv_ld_force_load=no
6474: cat > conftest.c << _LT_EOF
6475: int forced_loaded() { return 2;}
6476: _LT_EOF
6477: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6478: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6479: echo "$AR cru libconftest.a conftest.o" >&5
6480: $AR cru libconftest.a conftest.o 2>&5
6481: echo "$RANLIB libconftest.a" >&5
6482: $RANLIB libconftest.a 2>&5
6483: cat > conftest.c << _LT_EOF
6484: int main() { return 0;}
6485: _LT_EOF
6486: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6487: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6488: _lt_result=$?
6489: if test -s conftest.err && $GREP force_load conftest.err; then
6490: cat conftest.err >&5
6491: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6492: lt_cv_ld_force_load=yes
6493: else
6494: cat conftest.err >&5
6495: fi
6496: rm -f conftest.err libconftest.a conftest conftest.c
6497: rm -rf conftest.dSYM
1.1 misha 6498:
1.8 moko 6499: fi
1.11 moko 6500: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6501: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
1.8 moko 6502: case $host_os in
6503: rhapsody* | darwin1.[012])
6504: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6505: darwin1.*)
6506: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6507: darwin*) # darwin 5.x on
6508: # if running on 10.5 or later, the deployment target defaults
6509: # to the OS version, if on x86, and 10.4, the deployment
6510: # target defaults to 10.4. Don't you love it?
6511: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6512: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6513: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6514: 10.[012]*)
6515: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6516: 10.*)
6517: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6518: esac
1.1 misha 6519: ;;
1.8 moko 6520: esac
6521: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6522: _lt_dar_single_mod='$single_module'
6523: fi
6524: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6525: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6526: else
6527: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 6528: fi
1.8 moko 6529: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6530: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 6531: else
1.8 moko 6532: _lt_dsymutil=
1.1 misha 6533: fi
6534: ;;
1.8 moko 6535: esac
1.1 misha 6536:
1.8 moko 6537: ac_ext=c
6538: ac_cpp='$CPP $CPPFLAGS'
6539: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 moko 6542: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6543: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.8 moko 6544: # On Suns, sometimes $CPP names a directory.
6545: if test -n "$CPP" && test -d "$CPP"; then
6546: CPP=
6547: fi
6548: if test -z "$CPP"; then
1.11 moko 6549: if test "${ac_cv_prog_CPP+set}" = set; then
6550: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6551: else
6552: # Double quotes because CPP needs to be expanded
6553: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6554: do
6555: ac_preproc_ok=false
6556: for ac_c_preproc_warn_flag in '' yes
6557: do
6558: # Use a header file that comes with gcc, so configuring glibc
6559: # with a fresh cross-compiler works.
6560: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6561: # <limits.h> exists even on freestanding compilers.
6562: # On the NeXT, cc -E runs the code through the compiler's parser,
6563: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6564: cat >conftest.$ac_ext <<_ACEOF
6565: /* confdefs.h. */
6566: _ACEOF
6567: cat confdefs.h >>conftest.$ac_ext
6568: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6569: /* end confdefs.h. */
6570: #ifdef __STDC__
6571: # include <limits.h>
6572: #else
6573: # include <assert.h>
6574: #endif
6575: Syntax error
6576: _ACEOF
1.11 moko 6577: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6578: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6579: ac_status=$?
6580: grep -v '^ *+' conftest.er1 >conftest.err
6581: rm -f conftest.er1
6582: cat conftest.err >&5
6583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584: (exit $ac_status); } >/dev/null; then
6585: if test -s conftest.err; then
6586: ac_cpp_err=$ac_c_preproc_warn_flag
6587: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6588: else
6589: ac_cpp_err=
6590: fi
6591: else
6592: ac_cpp_err=yes
6593: fi
6594: if test -z "$ac_cpp_err"; then
6595: :
6596: else
6597: echo "$as_me: failed program was:" >&5
6598: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6599:
1.8 moko 6600: # Broken: fails on valid input.
6601: continue
6602: fi
1.11 moko 6603: rm -f conftest.err conftest.$ac_ext
1.1 misha 6604:
1.11 moko 6605: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6606: # can be detected and how.
1.11 moko 6607: cat >conftest.$ac_ext <<_ACEOF
6608: /* confdefs.h. */
6609: _ACEOF
6610: cat confdefs.h >>conftest.$ac_ext
6611: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6612: /* end confdefs.h. */
6613: #include <ac_nonexistent.h>
6614: _ACEOF
1.11 moko 6615: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6616: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6617: ac_status=$?
6618: grep -v '^ *+' conftest.er1 >conftest.err
6619: rm -f conftest.er1
6620: cat conftest.err >&5
6621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622: (exit $ac_status); } >/dev/null; then
6623: if test -s conftest.err; then
6624: ac_cpp_err=$ac_c_preproc_warn_flag
6625: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6626: else
6627: ac_cpp_err=
6628: fi
6629: else
6630: ac_cpp_err=yes
6631: fi
6632: if test -z "$ac_cpp_err"; then
1.8 moko 6633: # Broken: success on invalid input.
6634: continue
6635: else
1.11 moko 6636: echo "$as_me: failed program was:" >&5
6637: sed 's/^/| /' conftest.$ac_ext >&5
6638:
1.8 moko 6639: # Passes both tests.
6640: ac_preproc_ok=:
6641: break
1.1 misha 6642: fi
1.11 moko 6643: rm -f conftest.err conftest.$ac_ext
1.1 misha 6644:
1.8 moko 6645: done
6646: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6647: rm -f conftest.err conftest.$ac_ext
6648: if $ac_preproc_ok; then
1.8 moko 6649: break
1.1 misha 6650: fi
6651:
1.8 moko 6652: done
6653: ac_cv_prog_CPP=$CPP
1.1 misha 6654:
1.8 moko 6655: fi
6656: CPP=$ac_cv_prog_CPP
6657: else
6658: ac_cv_prog_CPP=$CPP
6659: fi
1.11 moko 6660: echo "$as_me:$LINENO: result: $CPP" >&5
6661: echo "${ECHO_T}$CPP" >&6
1.8 moko 6662: ac_preproc_ok=false
6663: for ac_c_preproc_warn_flag in '' yes
6664: do
6665: # Use a header file that comes with gcc, so configuring glibc
6666: # with a fresh cross-compiler works.
6667: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6668: # <limits.h> exists even on freestanding compilers.
6669: # On the NeXT, cc -E runs the code through the compiler's parser,
6670: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6671: cat >conftest.$ac_ext <<_ACEOF
6672: /* confdefs.h. */
6673: _ACEOF
6674: cat confdefs.h >>conftest.$ac_ext
6675: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6676: /* end confdefs.h. */
6677: #ifdef __STDC__
6678: # include <limits.h>
6679: #else
6680: # include <assert.h>
6681: #endif
6682: Syntax error
6683: _ACEOF
1.11 moko 6684: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6686: ac_status=$?
6687: grep -v '^ *+' conftest.er1 >conftest.err
6688: rm -f conftest.er1
6689: cat conftest.err >&5
6690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691: (exit $ac_status); } >/dev/null; then
6692: if test -s conftest.err; then
6693: ac_cpp_err=$ac_c_preproc_warn_flag
6694: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695: else
6696: ac_cpp_err=
6697: fi
6698: else
6699: ac_cpp_err=yes
6700: fi
6701: if test -z "$ac_cpp_err"; then
6702: :
6703: else
6704: echo "$as_me: failed program was:" >&5
6705: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6706:
1.8 moko 6707: # Broken: fails on valid input.
6708: continue
6709: fi
1.11 moko 6710: rm -f conftest.err conftest.$ac_ext
1.1 misha 6711:
1.11 moko 6712: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6713: # can be detected and how.
1.11 moko 6714: cat >conftest.$ac_ext <<_ACEOF
6715: /* confdefs.h. */
6716: _ACEOF
6717: cat confdefs.h >>conftest.$ac_ext
6718: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6719: /* end confdefs.h. */
6720: #include <ac_nonexistent.h>
6721: _ACEOF
1.11 moko 6722: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6723: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6724: ac_status=$?
6725: grep -v '^ *+' conftest.er1 >conftest.err
6726: rm -f conftest.er1
6727: cat conftest.err >&5
6728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729: (exit $ac_status); } >/dev/null; then
6730: if test -s conftest.err; then
6731: ac_cpp_err=$ac_c_preproc_warn_flag
6732: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6733: else
6734: ac_cpp_err=
6735: fi
6736: else
6737: ac_cpp_err=yes
6738: fi
6739: if test -z "$ac_cpp_err"; then
1.8 moko 6740: # Broken: success on invalid input.
6741: continue
6742: else
1.11 moko 6743: echo "$as_me: failed program was:" >&5
6744: sed 's/^/| /' conftest.$ac_ext >&5
6745:
1.8 moko 6746: # Passes both tests.
6747: ac_preproc_ok=:
6748: break
6749: fi
1.11 moko 6750: rm -f conftest.err conftest.$ac_ext
1.8 moko 6751:
6752: done
6753: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6754: rm -f conftest.err conftest.$ac_ext
6755: if $ac_preproc_ok; then
6756: :
1.8 moko 6757: else
1.11 moko 6758: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6759: See \`config.log' for more details." >&5
6760: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6761: See \`config.log' for more details." >&2;}
6762: { (exit 1); exit 1; }; }
1.8 moko 6763: fi
1.1 misha 6764:
1.8 moko 6765: ac_ext=c
6766: ac_cpp='$CPP $CPPFLAGS'
6767: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 6770:
6771:
1.11 moko 6772: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6773: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6774: if test "${ac_cv_header_stdc+set}" = set; then
6775: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6776: else
1.11 moko 6777: cat >conftest.$ac_ext <<_ACEOF
6778: /* confdefs.h. */
6779: _ACEOF
6780: cat confdefs.h >>conftest.$ac_ext
6781: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6782: /* end confdefs.h. */
6783: #include <stdlib.h>
6784: #include <stdarg.h>
6785: #include <string.h>
6786: #include <float.h>
1.1 misha 6787:
1.8 moko 6788: int
6789: main ()
6790: {
1.1 misha 6791:
1.8 moko 6792: ;
6793: return 0;
6794: }
6795: _ACEOF
1.11 moko 6796: rm -f conftest.$ac_objext
6797: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798: (eval $ac_compile) 2>conftest.er1
6799: ac_status=$?
6800: grep -v '^ *+' conftest.er1 >conftest.err
6801: rm -f conftest.er1
6802: cat conftest.err >&5
6803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804: (exit $ac_status); } &&
6805: { ac_try='test -z "$ac_c_werror_flag"
6806: || test ! -s conftest.err'
6807: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808: (eval $ac_try) 2>&5
6809: ac_status=$?
6810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811: (exit $ac_status); }; } &&
6812: { ac_try='test -s conftest.$ac_objext'
6813: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814: (eval $ac_try) 2>&5
6815: ac_status=$?
6816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817: (exit $ac_status); }; }; then
1.8 moko 6818: ac_cv_header_stdc=yes
6819: else
1.11 moko 6820: echo "$as_me: failed program was:" >&5
6821: sed 's/^/| /' conftest.$ac_ext >&5
6822:
6823: ac_cv_header_stdc=no
1.8 moko 6824: fi
1.11 moko 6825: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6826:
1.8 moko 6827: if test $ac_cv_header_stdc = yes; then
6828: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.11 moko 6829: cat >conftest.$ac_ext <<_ACEOF
6830: /* confdefs.h. */
6831: _ACEOF
6832: cat confdefs.h >>conftest.$ac_ext
6833: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6834: /* end confdefs.h. */
6835: #include <string.h>
6836:
6837: _ACEOF
6838: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6839: $EGREP "memchr" >/dev/null 2>&1; then
6840: :
1.8 moko 6841: else
6842: ac_cv_header_stdc=no
6843: fi
6844: rm -f conftest*
6845:
6846: fi
6847:
6848: if test $ac_cv_header_stdc = yes; then
6849: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.11 moko 6850: cat >conftest.$ac_ext <<_ACEOF
6851: /* confdefs.h. */
6852: _ACEOF
6853: cat confdefs.h >>conftest.$ac_ext
6854: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6855: /* end confdefs.h. */
6856: #include <stdlib.h>
6857:
6858: _ACEOF
6859: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6860: $EGREP "free" >/dev/null 2>&1; then
6861: :
1.8 moko 6862: else
6863: ac_cv_header_stdc=no
6864: fi
6865: rm -f conftest*
6866:
6867: fi
1.1 misha 6868:
1.8 moko 6869: if test $ac_cv_header_stdc = yes; then
6870: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.11 moko 6871: if test "$cross_compiling" = yes; then
1.8 moko 6872: :
6873: else
1.11 moko 6874: cat >conftest.$ac_ext <<_ACEOF
6875: /* confdefs.h. */
6876: _ACEOF
6877: cat confdefs.h >>conftest.$ac_ext
6878: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6879: /* end confdefs.h. */
6880: #include <ctype.h>
6881: #if ((' ' & 0x0FF) == 0x020)
6882: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6883: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6884: #else
6885: # define ISLOWER(c) \
6886: (('a' <= (c) && (c) <= 'i') \
6887: || ('j' <= (c) && (c) <= 'r') \
6888: || ('s' <= (c) && (c) <= 'z'))
6889: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6890: #endif
1.1 misha 6891:
1.8 moko 6892: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6893: int
6894: main ()
6895: {
6896: int i;
6897: for (i = 0; i < 256; i++)
6898: if (XOR (islower (i), ISLOWER (i))
6899: || toupper (i) != TOUPPER (i))
1.11 moko 6900: exit(2);
6901: exit (0);
1.8 moko 6902: }
6903: _ACEOF
1.11 moko 6904: rm -f conftest$ac_exeext
6905: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6906: (eval $ac_link) 2>&5
6907: ac_status=$?
6908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6910: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911: (eval $ac_try) 2>&5
6912: ac_status=$?
6913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914: (exit $ac_status); }; }; then
6915: :
6916: else
6917: echo "$as_me: program exited with status $ac_status" >&5
6918: echo "$as_me: failed program was:" >&5
6919: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6920:
1.11 moko 6921: ( exit $ac_status )
6922: ac_cv_header_stdc=no
1.8 moko 6923: fi
1.11 moko 6924: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.8 moko 6925: fi
6926: fi
6927: fi
1.11 moko 6928: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6929: echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.8 moko 6930: if test $ac_cv_header_stdc = yes; then
1.1 misha 6931:
1.11 moko 6932: cat >>confdefs.h <<\_ACEOF
6933: #define STDC_HEADERS 1
6934: _ACEOF
1.1 misha 6935:
1.8 moko 6936: fi
1.1 misha 6937:
1.8 moko 6938: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 misha 6939:
6940:
6941:
6942:
6943:
6944:
1.11 moko 6945:
6946:
6947:
6948: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6949: inttypes.h stdint.h unistd.h
6950: do
6951: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6952: echo "$as_me:$LINENO: checking for $ac_header" >&5
6953: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6954: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6955: echo $ECHO_N "(cached) $ECHO_C" >&6
6956: else
6957: cat >conftest.$ac_ext <<_ACEOF
6958: /* confdefs.h. */
6959: _ACEOF
6960: cat confdefs.h >>conftest.$ac_ext
6961: cat >>conftest.$ac_ext <<_ACEOF
6962: /* end confdefs.h. */
6963: $ac_includes_default
6964:
6965: #include <$ac_header>
6966: _ACEOF
6967: rm -f conftest.$ac_objext
6968: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969: (eval $ac_compile) 2>conftest.er1
6970: ac_status=$?
6971: grep -v '^ *+' conftest.er1 >conftest.err
6972: rm -f conftest.er1
6973: cat conftest.err >&5
6974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975: (exit $ac_status); } &&
6976: { ac_try='test -z "$ac_c_werror_flag"
6977: || test ! -s conftest.err'
6978: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979: (eval $ac_try) 2>&5
6980: ac_status=$?
6981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982: (exit $ac_status); }; } &&
6983: { ac_try='test -s conftest.$ac_objext'
6984: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985: (eval $ac_try) 2>&5
6986: ac_status=$?
6987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988: (exit $ac_status); }; }; then
6989: eval "$as_ac_Header=yes"
6990: else
6991: echo "$as_me: failed program was:" >&5
6992: sed 's/^/| /' conftest.$ac_ext >&5
6993:
6994: eval "$as_ac_Header=no"
6995: fi
6996: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997: fi
6998: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6999: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7000: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7001: cat >>confdefs.h <<_ACEOF
7002: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7003: _ACEOF
7004:
7005: fi
7006:
7007: done
7008:
7009:
7010:
7011: for ac_header in dlfcn.h
7012: do
7013: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7014: echo "$as_me:$LINENO: checking for $ac_header" >&5
7015: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7016: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7017: echo $ECHO_N "(cached) $ECHO_C" >&6
7018: else
7019: cat >conftest.$ac_ext <<_ACEOF
7020: /* confdefs.h. */
7021: _ACEOF
7022: cat confdefs.h >>conftest.$ac_ext
7023: cat >>conftest.$ac_ext <<_ACEOF
7024: /* end confdefs.h. */
7025: $ac_includes_default
7026:
7027: #include <$ac_header>
7028: _ACEOF
7029: rm -f conftest.$ac_objext
7030: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031: (eval $ac_compile) 2>conftest.er1
7032: ac_status=$?
7033: grep -v '^ *+' conftest.er1 >conftest.err
7034: rm -f conftest.er1
7035: cat conftest.err >&5
7036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037: (exit $ac_status); } &&
7038: { ac_try='test -z "$ac_c_werror_flag"
7039: || test ! -s conftest.err'
7040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041: (eval $ac_try) 2>&5
7042: ac_status=$?
7043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044: (exit $ac_status); }; } &&
7045: { ac_try='test -s conftest.$ac_objext'
7046: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047: (eval $ac_try) 2>&5
7048: ac_status=$?
7049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050: (exit $ac_status); }; }; then
7051: eval "$as_ac_Header=yes"
7052: else
7053: echo "$as_me: failed program was:" >&5
7054: sed 's/^/| /' conftest.$ac_ext >&5
7055:
7056: eval "$as_ac_Header=no"
7057: fi
7058: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7059: fi
7060: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7062: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7063: cat >>confdefs.h <<_ACEOF
7064: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7065: _ACEOF
7066:
7067: fi
7068:
7069: done
1.1 misha 7070:
7071:
7072:
1.8 moko 7073:
7074: func_stripname_cnf ()
1.1 misha 7075: {
1.8 moko 7076: case ${2} in
7077: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7078: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7079: esac
7080: } # func_stripname_cnf
7081:
7082:
7083:
7084:
7085:
7086: # Set options
7087: enable_dlopen=yes
1.13 moko 7088: enable_win32_dll=yes
1.8 moko 7089:
1.13 moko 7090: case $host in
7091: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7092: if test -n "$ac_tool_prefix"; then
7093: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7094: set dummy ${ac_tool_prefix}as; ac_word=$2
7095: echo "$as_me:$LINENO: checking for $ac_word" >&5
7096: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097: if test "${ac_cv_prog_AS+set}" = set; then
7098: echo $ECHO_N "(cached) $ECHO_C" >&6
7099: else
7100: if test -n "$AS"; then
7101: ac_cv_prog_AS="$AS" # Let the user override the test.
7102: else
7103: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104: for as_dir in $PATH
7105: do
7106: IFS=$as_save_IFS
7107: test -z "$as_dir" && as_dir=.
7108: for ac_exec_ext in '' $ac_executable_extensions; do
7109: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110: ac_cv_prog_AS="${ac_tool_prefix}as"
7111: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112: break 2
7113: fi
7114: done
7115: done
1.8 moko 7116:
1.13 moko 7117: fi
7118: fi
7119: AS=$ac_cv_prog_AS
7120: if test -n "$AS"; then
7121: echo "$as_me:$LINENO: result: $AS" >&5
7122: echo "${ECHO_T}$AS" >&6
7123: else
7124: echo "$as_me:$LINENO: result: no" >&5
7125: echo "${ECHO_T}no" >&6
7126: fi
1.8 moko 7127:
1.13 moko 7128: fi
7129: if test -z "$ac_cv_prog_AS"; then
7130: ac_ct_AS=$AS
7131: # Extract the first word of "as", so it can be a program name with args.
7132: set dummy as; ac_word=$2
7133: echo "$as_me:$LINENO: checking for $ac_word" >&5
7134: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7136: echo $ECHO_N "(cached) $ECHO_C" >&6
7137: else
7138: if test -n "$ac_ct_AS"; then
7139: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7140: else
7141: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142: for as_dir in $PATH
7143: do
7144: IFS=$as_save_IFS
7145: test -z "$as_dir" && as_dir=.
7146: for ac_exec_ext in '' $ac_executable_extensions; do
7147: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148: ac_cv_prog_ac_ct_AS="as"
7149: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150: break 2
7151: fi
7152: done
7153: done
1.8 moko 7154:
1.13 moko 7155: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7156: fi
7157: fi
7158: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7159: if test -n "$ac_ct_AS"; then
7160: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7161: echo "${ECHO_T}$ac_ct_AS" >&6
7162: else
7163: echo "$as_me:$LINENO: result: no" >&5
7164: echo "${ECHO_T}no" >&6
7165: fi
1.8 moko 7166:
1.13 moko 7167: AS=$ac_ct_AS
7168: else
7169: AS="$ac_cv_prog_AS"
7170: fi
1.1 misha 7171:
1.13 moko 7172: if test -n "$ac_tool_prefix"; then
7173: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7174: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7175: echo "$as_me:$LINENO: checking for $ac_word" >&5
7176: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7178: echo $ECHO_N "(cached) $ECHO_C" >&6
7179: else
7180: if test -n "$DLLTOOL"; then
7181: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.1 misha 7182: else
1.13 moko 7183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184: for as_dir in $PATH
7185: do
7186: IFS=$as_save_IFS
7187: test -z "$as_dir" && as_dir=.
7188: for ac_exec_ext in '' $ac_executable_extensions; do
7189: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7191: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192: break 2
7193: fi
7194: done
7195: done
7196:
7197: fi
7198: fi
7199: DLLTOOL=$ac_cv_prog_DLLTOOL
7200: if test -n "$DLLTOOL"; then
7201: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7202: echo "${ECHO_T}$DLLTOOL" >&6
7203: else
7204: echo "$as_me:$LINENO: result: no" >&5
7205: echo "${ECHO_T}no" >&6
7206: fi
7207:
7208: fi
7209: if test -z "$ac_cv_prog_DLLTOOL"; then
7210: ac_ct_DLLTOOL=$DLLTOOL
7211: # Extract the first word of "dlltool", so it can be a program name with args.
7212: set dummy dlltool; ac_word=$2
7213: echo "$as_me:$LINENO: checking for $ac_word" >&5
7214: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7216: echo $ECHO_N "(cached) $ECHO_C" >&6
7217: else
7218: if test -n "$ac_ct_DLLTOOL"; then
7219: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7220: else
7221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222: for as_dir in $PATH
7223: do
7224: IFS=$as_save_IFS
7225: test -z "$as_dir" && as_dir=.
7226: for ac_exec_ext in '' $ac_executable_extensions; do
7227: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7229: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230: break 2
7231: fi
7232: done
7233: done
7234:
7235: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7236: fi
7237: fi
7238: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7239: if test -n "$ac_ct_DLLTOOL"; then
7240: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7241: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7242: else
7243: echo "$as_me:$LINENO: result: no" >&5
7244: echo "${ECHO_T}no" >&6
7245: fi
7246:
7247: DLLTOOL=$ac_ct_DLLTOOL
7248: else
7249: DLLTOOL="$ac_cv_prog_DLLTOOL"
7250: fi
7251:
7252: if test -n "$ac_tool_prefix"; then
7253: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7254: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7255: echo "$as_me:$LINENO: checking for $ac_word" >&5
7256: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7257: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7258: echo $ECHO_N "(cached) $ECHO_C" >&6
7259: else
7260: if test -n "$OBJDUMP"; then
7261: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7262: else
7263: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264: for as_dir in $PATH
7265: do
7266: IFS=$as_save_IFS
7267: test -z "$as_dir" && as_dir=.
7268: for ac_exec_ext in '' $ac_executable_extensions; do
7269: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7271: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272: break 2
7273: fi
7274: done
7275: done
7276:
7277: fi
7278: fi
7279: OBJDUMP=$ac_cv_prog_OBJDUMP
7280: if test -n "$OBJDUMP"; then
7281: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7282: echo "${ECHO_T}$OBJDUMP" >&6
7283: else
7284: echo "$as_me:$LINENO: result: no" >&5
7285: echo "${ECHO_T}no" >&6
7286: fi
7287:
7288: fi
7289: if test -z "$ac_cv_prog_OBJDUMP"; then
7290: ac_ct_OBJDUMP=$OBJDUMP
7291: # Extract the first word of "objdump", so it can be a program name with args.
7292: set dummy objdump; ac_word=$2
7293: echo "$as_me:$LINENO: checking for $ac_word" >&5
7294: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7296: echo $ECHO_N "(cached) $ECHO_C" >&6
7297: else
7298: if test -n "$ac_ct_OBJDUMP"; then
7299: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7300: else
7301: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302: for as_dir in $PATH
7303: do
7304: IFS=$as_save_IFS
7305: test -z "$as_dir" && as_dir=.
7306: for ac_exec_ext in '' $ac_executable_extensions; do
7307: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7309: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310: break 2
7311: fi
7312: done
7313: done
7314:
7315: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7316: fi
7317: fi
7318: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7319: if test -n "$ac_ct_OBJDUMP"; then
7320: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7321: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7322: else
7323: echo "$as_me:$LINENO: result: no" >&5
7324: echo "${ECHO_T}no" >&6
7325: fi
7326:
7327: OBJDUMP=$ac_ct_OBJDUMP
7328: else
7329: OBJDUMP="$ac_cv_prog_OBJDUMP"
7330: fi
7331:
7332: ;;
7333: esac
7334:
7335: test -z "$AS" && AS=as
7336:
7337:
7338:
7339:
7340:
7341: test -z "$DLLTOOL" && DLLTOOL=dlltool
7342:
7343:
7344:
7345:
7346:
7347: test -z "$OBJDUMP" && OBJDUMP=objdump
7348:
7349:
7350:
7351:
7352:
7353:
7354:
7355:
7356:
7357: # Check whether --enable-shared or --disable-shared was given.
7358: if test "${enable_shared+set}" = set; then
7359: enableval="$enable_shared"
7360: p=${PACKAGE-default}
7361: case $enableval in
7362: yes) enable_shared=yes ;;
7363: no) enable_shared=no ;;
7364: *)
7365: enable_shared=no
7366: # Look at the argument we got. We use all the common list separators.
7367: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7368: for pkg in $enableval; do
7369: IFS="$lt_save_ifs"
7370: if test "X$pkg" = "X$p"; then
7371: enable_shared=yes
7372: fi
7373: done
7374: IFS="$lt_save_ifs"
7375: ;;
7376: esac
7377: else
7378: enable_shared=yes
7379: fi;
1.8 moko 7380:
7381:
7382:
7383:
7384:
7385:
7386:
1.1 misha 7387:
1.11 moko 7388: # Check whether --enable-static or --disable-static was given.
7389: if test "${enable_static+set}" = set; then
7390: enableval="$enable_static"
7391: p=${PACKAGE-default}
1.8 moko 7392: case $enableval in
7393: yes) enable_static=yes ;;
7394: no) enable_static=no ;;
7395: *)
7396: enable_static=no
7397: # Look at the argument we got. We use all the common list separators.
7398: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7399: for pkg in $enableval; do
7400: IFS="$lt_save_ifs"
7401: if test "X$pkg" = "X$p"; then
7402: enable_static=yes
7403: fi
7404: done
7405: IFS="$lt_save_ifs"
7406: ;;
7407: esac
1.1 misha 7408: else
1.8 moko 7409: enable_static=yes
1.11 moko 7410: fi;
1.8 moko 7411:
7412:
7413:
7414:
7415:
7416:
7417:
7418:
7419:
1.11 moko 7420: # Check whether --with-pic or --without-pic was given.
7421: if test "${with_pic+set}" = set; then
7422: withval="$with_pic"
7423: lt_p=${PACKAGE-default}
1.8 moko 7424: case $withval in
7425: yes|no) pic_mode=$withval ;;
7426: *)
7427: pic_mode=default
7428: # Look at the argument we got. We use all the common list separators.
7429: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7430: for lt_pkg in $withval; do
7431: IFS="$lt_save_ifs"
7432: if test "X$lt_pkg" = "X$lt_p"; then
7433: pic_mode=yes
7434: fi
7435: done
7436: IFS="$lt_save_ifs"
7437: ;;
7438: esac
1.1 misha 7439: else
1.8 moko 7440: pic_mode=default
1.11 moko 7441: fi;
1.8 moko 7442:
7443: test -z "$pic_mode" && pic_mode=default
7444:
7445:
7446:
7447:
7448:
7449:
1.1 misha 7450:
1.11 moko 7451: # Check whether --enable-fast-install or --disable-fast-install was given.
7452: if test "${enable_fast_install+set}" = set; then
7453: enableval="$enable_fast_install"
7454: p=${PACKAGE-default}
1.8 moko 7455: case $enableval in
7456: yes) enable_fast_install=yes ;;
7457: no) enable_fast_install=no ;;
7458: *)
7459: enable_fast_install=no
7460: # Look at the argument we got. We use all the common list separators.
7461: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7462: for pkg in $enableval; do
7463: IFS="$lt_save_ifs"
7464: if test "X$pkg" = "X$p"; then
7465: enable_fast_install=yes
7466: fi
7467: done
7468: IFS="$lt_save_ifs"
7469: ;;
7470: esac
1.1 misha 7471: else
1.8 moko 7472: enable_fast_install=yes
1.11 moko 7473: fi;
1.8 moko 7474:
7475:
7476:
7477:
7478:
7479:
7480:
7481:
7482:
7483:
7484: # This can be used to rebuild libtool when needed
7485: LIBTOOL_DEPS="$ltmain"
7486:
7487: # Always use our own libtool.
7488: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7489:
7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519: test -z "$LN_S" && LN_S="ln -s"
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
7532:
1.1 misha 7533:
1.8 moko 7534: if test -n "${ZSH_VERSION+set}" ; then
7535: setopt NO_GLOB_SUBST
1.1 misha 7536: fi
1.8 moko 7537:
1.11 moko 7538: echo "$as_me:$LINENO: checking for objdir" >&5
7539: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7540: if test "${lt_cv_objdir+set}" = set; then
7541: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7542: else
7543: rm -f .libs 2>/dev/null
7544: mkdir .libs 2>/dev/null
7545: if test -d .libs; then
7546: lt_cv_objdir=.libs
7547: else
7548: # MS-DOS does not allow filenames that begin with a dot.
7549: lt_cv_objdir=_libs
1.1 misha 7550: fi
1.8 moko 7551: rmdir .libs 2>/dev/null
7552: fi
1.11 moko 7553: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7554: echo "${ECHO_T}$lt_cv_objdir" >&6
1.8 moko 7555: objdir=$lt_cv_objdir
1.1 misha 7556:
7557:
7558:
7559:
7560:
1.8 moko 7561: cat >>confdefs.h <<_ACEOF
7562: #define LT_OBJDIR "$lt_cv_objdir/"
7563: _ACEOF
1.1 misha 7564:
7565:
7566:
7567:
1.8 moko 7568: case $host_os in
7569: aix3*)
7570: # AIX sometimes has problems with the GCC collect2 program. For some
7571: # reason, if we set the COLLECT_NAMES environment variable, the problems
7572: # vanish in a puff of smoke.
7573: if test "X${COLLECT_NAMES+set}" != Xset; then
7574: COLLECT_NAMES=
7575: export COLLECT_NAMES
7576: fi
7577: ;;
7578: esac
1.1 misha 7579:
1.8 moko 7580: # Global variables:
7581: ofile=libtool
7582: can_build_shared=yes
1.1 misha 7583:
1.8 moko 7584: # All known linkers require a `.a' archive for static linking (except MSVC,
7585: # which needs '.lib').
7586: libext=a
1.1 misha 7587:
1.8 moko 7588: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 7589:
1.8 moko 7590: old_CC="$CC"
7591: old_CFLAGS="$CFLAGS"
1.1 misha 7592:
1.8 moko 7593: # Set sane defaults for various variables
7594: test -z "$CC" && CC=cc
7595: test -z "$LTCC" && LTCC=$CC
7596: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7597: test -z "$LD" && LD=ld
7598: test -z "$ac_objext" && ac_objext=o
1.1 misha 7599:
1.8 moko 7600: for cc_temp in $compiler""; do
7601: case $cc_temp in
7602: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7603: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7604: \-*) ;;
7605: *) break;;
1.1 misha 7606: esac
1.8 moko 7607: done
7608: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 7609:
7610:
1.8 moko 7611: # Only perform the check for file, if the check method requires it
7612: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7613: case $deplibs_check_method in
7614: file_magic*)
7615: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.11 moko 7616: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7617: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7618: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7619: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7620: else
7621: case $MAGIC_CMD in
7622: [\\/*] | ?:[\\/]*)
7623: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7624: ;;
7625: *)
7626: lt_save_MAGIC_CMD="$MAGIC_CMD"
7627: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7628: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7629: for ac_dir in $ac_dummy; do
7630: IFS="$lt_save_ifs"
7631: test -z "$ac_dir" && ac_dir=.
7632: if test -f $ac_dir/${ac_tool_prefix}file; then
7633: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7634: if test -n "$file_magic_test_file"; then
7635: case $deplibs_check_method in
7636: "file_magic "*)
7637: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7638: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7639: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7640: $EGREP "$file_magic_regex" > /dev/null; then
7641: :
7642: else
7643: cat <<_LT_EOF 1>&2
1.1 misha 7644:
1.8 moko 7645: *** Warning: the command libtool uses to detect shared libraries,
7646: *** $file_magic_cmd, produces output that libtool cannot recognize.
7647: *** The result is that libtool may fail to recognize shared libraries
7648: *** as such. This will affect the creation of libtool libraries that
7649: *** depend on shared libraries, but programs linked with such libtool
7650: *** libraries will work regardless of this problem. Nevertheless, you
7651: *** may want to report the problem to your system manager and/or to
7652: *** bug-libtool@gnu.org
1.1 misha 7653:
1.8 moko 7654: _LT_EOF
7655: fi ;;
7656: esac
7657: fi
7658: break
7659: fi
7660: done
7661: IFS="$lt_save_ifs"
7662: MAGIC_CMD="$lt_save_MAGIC_CMD"
7663: ;;
7664: esac
7665: fi
1.1 misha 7666:
1.8 moko 7667: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7668: if test -n "$MAGIC_CMD"; then
1.11 moko 7669: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7670: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 misha 7671: else
1.11 moko 7672: echo "$as_me:$LINENO: result: no" >&5
7673: echo "${ECHO_T}no" >&6
1.8 moko 7674: fi
7675:
1.1 misha 7676:
7677:
7678:
7679:
1.8 moko 7680: if test -z "$lt_cv_path_MAGIC_CMD"; then
7681: if test -n "$ac_tool_prefix"; then
1.11 moko 7682: echo "$as_me:$LINENO: checking for file" >&5
7683: echo $ECHO_N "checking for file... $ECHO_C" >&6
7684: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7685: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7686: else
7687: case $MAGIC_CMD in
7688: [\\/*] | ?:[\\/]*)
7689: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7690: ;;
7691: *)
7692: lt_save_MAGIC_CMD="$MAGIC_CMD"
7693: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7694: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7695: for ac_dir in $ac_dummy; do
7696: IFS="$lt_save_ifs"
7697: test -z "$ac_dir" && ac_dir=.
7698: if test -f $ac_dir/file; then
7699: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7700: if test -n "$file_magic_test_file"; then
7701: case $deplibs_check_method in
7702: "file_magic "*)
7703: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7704: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7705: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7706: $EGREP "$file_magic_regex" > /dev/null; then
7707: :
7708: else
7709: cat <<_LT_EOF 1>&2
7710:
7711: *** Warning: the command libtool uses to detect shared libraries,
7712: *** $file_magic_cmd, produces output that libtool cannot recognize.
7713: *** The result is that libtool may fail to recognize shared libraries
7714: *** as such. This will affect the creation of libtool libraries that
7715: *** depend on shared libraries, but programs linked with such libtool
7716: *** libraries will work regardless of this problem. Nevertheless, you
7717: *** may want to report the problem to your system manager and/or to
7718: *** bug-libtool@gnu.org
1.1 misha 7719:
1.8 moko 7720: _LT_EOF
7721: fi ;;
7722: esac
7723: fi
7724: break
7725: fi
7726: done
7727: IFS="$lt_save_ifs"
7728: MAGIC_CMD="$lt_save_MAGIC_CMD"
7729: ;;
7730: esac
7731: fi
1.1 misha 7732:
1.8 moko 7733: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7734: if test -n "$MAGIC_CMD"; then
1.11 moko 7735: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7736: echo "${ECHO_T}$MAGIC_CMD" >&6
1.8 moko 7737: else
1.11 moko 7738: echo "$as_me:$LINENO: result: no" >&5
7739: echo "${ECHO_T}no" >&6
1.8 moko 7740: fi
1.1 misha 7741:
7742:
1.8 moko 7743: else
7744: MAGIC_CMD=:
1.1 misha 7745: fi
7746: fi
1.8 moko 7747:
7748: fi
7749: ;;
7750: esac
7751:
7752: # Use C for the default configuration in the libtool script
7753:
7754: lt_save_CC="$CC"
7755: ac_ext=c
7756: ac_cpp='$CPP $CPPFLAGS'
7757: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760:
7761:
7762: # Source file extension for C test sources.
7763: ac_ext=c
7764:
7765: # Object file extension for compiled C test sources.
7766: objext=o
7767: objext=$objext
7768:
7769: # Code to be used in simple compile tests
7770: lt_simple_compile_test_code="int some_variable = 0;"
7771:
7772: # Code to be used in simple link tests
7773: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 7774:
7775:
7776:
7777:
7778:
7779:
7780:
1.8 moko 7781: # If no C compiler was specified, use CC.
7782: LTCC=${LTCC-"$CC"}
1.1 misha 7783:
1.8 moko 7784: # If no C compiler flags were specified, use CFLAGS.
7785: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 7786:
1.8 moko 7787: # Allow CC to be a program name with arguments.
7788: compiler=$CC
1.1 misha 7789:
1.8 moko 7790: # Save the default compiler, since it gets overwritten when the other
7791: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7792: compiler_DEFAULT=$CC
1.1 misha 7793:
1.8 moko 7794: # save warnings/boilerplate of simple test code
7795: ac_outfile=conftest.$ac_objext
7796: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7797: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7798: _lt_compiler_boilerplate=`cat conftest.err`
7799: $RM conftest*
1.1 misha 7800:
1.8 moko 7801: ac_outfile=conftest.$ac_objext
7802: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7803: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7804: _lt_linker_boilerplate=`cat conftest.err`
7805: $RM -r conftest*
1.1 misha 7806:
7807:
1.12 moko 7808: ## CAVEAT EMPTOR:
7809: ## There is no encapsulation within the following macros, do not change
7810: ## the running order or otherwise move them around unless you know exactly
7811: ## what you are doing...
1.8 moko 7812: if test -n "$compiler"; then
1.1 misha 7813:
1.8 moko 7814: lt_prog_compiler_no_builtin_flag=
1.1 misha 7815:
1.8 moko 7816: if test "$GCC" = yes; then
7817: case $cc_basename in
7818: nvcc*)
7819: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7820: *)
7821: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 7822: esac
7823:
1.11 moko 7824: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7825: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7826: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7827: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 7828: else
1.8 moko 7829: lt_cv_prog_compiler_rtti_exceptions=no
7830: ac_outfile=conftest.$ac_objext
7831: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832: lt_compiler_flag="-fno-rtti -fno-exceptions"
7833: # Insert the option either (1) after the last *FLAGS variable, or
7834: # (2) before a word containing "conftest.", or (3) at the end.
7835: # Note that $ac_compile itself does not contain backslashes and begins
7836: # with a dollar sign (not a hyphen), so the echo should work correctly.
7837: # The option is referenced via a variable to avoid confusing sed.
7838: lt_compile=`echo "$ac_compile" | $SED \
7839: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841: -e 's:$: $lt_compiler_flag:'`
7842: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7843: (eval "$lt_compile" 2>conftest.err)
7844: ac_status=$?
7845: cat conftest.err >&5
7846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847: if (exit $ac_status) && test -s "$ac_outfile"; then
7848: # The compiler can only warn and ignore the option if not recognized
7849: # So say no if there are warnings other than the usual output.
7850: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7851: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7853: lt_cv_prog_compiler_rtti_exceptions=yes
7854: fi
7855: fi
7856: $RM conftest*
1.1 misha 7857:
7858: fi
1.11 moko 7859: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7860: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.1 misha 7861:
1.8 moko 7862: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7863: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7864: else
7865: :
1.1 misha 7866: fi
7867:
1.8 moko 7868: fi
1.1 misha 7869:
7870:
7871:
7872:
7873:
7874:
1.8 moko 7875: lt_prog_compiler_wl=
7876: lt_prog_compiler_pic=
7877: lt_prog_compiler_static=
1.1 misha 7878:
7879:
1.8 moko 7880: if test "$GCC" = yes; then
7881: lt_prog_compiler_wl='-Wl,'
7882: lt_prog_compiler_static='-static'
1.1 misha 7883:
1.8 moko 7884: case $host_os in
7885: aix*)
7886: # All AIX code is PIC.
7887: if test "$host_cpu" = ia64; then
7888: # AIX 5 now supports IA64 processor
7889: lt_prog_compiler_static='-Bstatic'
7890: fi
7891: ;;
1.1 misha 7892:
1.8 moko 7893: amigaos*)
7894: case $host_cpu in
7895: powerpc)
7896: # see comment about AmigaOS4 .so support
7897: lt_prog_compiler_pic='-fPIC'
7898: ;;
7899: m68k)
7900: # FIXME: we need at least 68020 code to build shared libraries, but
7901: # adding the `-m68020' flag to GCC prevents building anything better,
7902: # like `-m68040'.
7903: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7904: ;;
7905: esac
7906: ;;
1.1 misha 7907:
1.8 moko 7908: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7909: # PIC is the default for these OSes.
7910: ;;
1.1 misha 7911:
1.8 moko 7912: mingw* | cygwin* | pw32* | os2* | cegcc*)
7913: # This hack is so that the source file can tell whether it is being
7914: # built for inclusion in a dll (and should export symbols for example).
7915: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7916: # (--disable-auto-import) libraries
7917: lt_prog_compiler_pic='-DDLL_EXPORT'
7918: ;;
1.1 misha 7919:
1.8 moko 7920: darwin* | rhapsody*)
7921: # PIC is the default on this platform
7922: # Common symbols not allowed in MH_DYLIB files
7923: lt_prog_compiler_pic='-fno-common'
7924: ;;
1.1 misha 7925:
1.8 moko 7926: haiku*)
7927: # PIC is the default for Haiku.
7928: # The "-static" flag exists, but is broken.
7929: lt_prog_compiler_static=
7930: ;;
1.1 misha 7931:
1.8 moko 7932: hpux*)
7933: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7934: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7935: # sets the default TLS model and affects inlining.
7936: case $host_cpu in
7937: hppa*64*)
7938: # +Z the default
7939: ;;
7940: *)
7941: lt_prog_compiler_pic='-fPIC'
7942: ;;
7943: esac
7944: ;;
1.1 misha 7945:
1.8 moko 7946: interix[3-9]*)
7947: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7948: # Instead, we relocate shared libraries at runtime.
7949: ;;
1.1 misha 7950:
1.8 moko 7951: msdosdjgpp*)
7952: # Just because we use GCC doesn't mean we suddenly get shared libraries
7953: # on systems that don't support them.
7954: lt_prog_compiler_can_build_shared=no
7955: enable_shared=no
7956: ;;
1.1 misha 7957:
1.8 moko 7958: *nto* | *qnx*)
7959: # QNX uses GNU C++, but need to define -shared option too, otherwise
7960: # it will coredump.
7961: lt_prog_compiler_pic='-fPIC -shared'
7962: ;;
1.1 misha 7963:
1.8 moko 7964: sysv4*MP*)
7965: if test -d /usr/nec; then
7966: lt_prog_compiler_pic=-Kconform_pic
7967: fi
7968: ;;
1.1 misha 7969:
1.8 moko 7970: *)
7971: lt_prog_compiler_pic='-fPIC'
7972: ;;
7973: esac
1.1 misha 7974:
1.8 moko 7975: case $cc_basename in
7976: nvcc*) # Cuda Compiler Driver 2.2
7977: lt_prog_compiler_wl='-Xlinker '
7978: if test -n "$lt_prog_compiler_pic"; then
7979: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7980: fi
7981: ;;
7982: esac
7983: else
7984: # PORTME Check for flag to pass linker flags through the system compiler.
7985: case $host_os in
7986: aix*)
7987: lt_prog_compiler_wl='-Wl,'
7988: if test "$host_cpu" = ia64; then
7989: # AIX 5 now supports IA64 processor
7990: lt_prog_compiler_static='-Bstatic'
7991: else
7992: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7993: fi
7994: ;;
1.1 misha 7995:
1.8 moko 7996: mingw* | cygwin* | pw32* | os2* | cegcc*)
7997: # This hack is so that the source file can tell whether it is being
7998: # built for inclusion in a dll (and should export symbols for example).
7999: lt_prog_compiler_pic='-DDLL_EXPORT'
8000: ;;
1.1 misha 8001:
1.8 moko 8002: hpux9* | hpux10* | hpux11*)
8003: lt_prog_compiler_wl='-Wl,'
8004: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8005: # not for PA HP-UX.
8006: case $host_cpu in
8007: hppa*64*|ia64*)
8008: # +Z the default
8009: ;;
8010: *)
8011: lt_prog_compiler_pic='+Z'
8012: ;;
8013: esac
8014: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8015: lt_prog_compiler_static='${wl}-a ${wl}archive'
8016: ;;
1.1 misha 8017:
1.8 moko 8018: irix5* | irix6* | nonstopux*)
8019: lt_prog_compiler_wl='-Wl,'
8020: # PIC (with -KPIC) is the default.
8021: lt_prog_compiler_static='-non_shared'
8022: ;;
1.1 misha 8023:
1.8 moko 8024: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8025: case $cc_basename in
8026: # old Intel for x86_64 which still supported -KPIC.
8027: ecc*)
8028: lt_prog_compiler_wl='-Wl,'
8029: lt_prog_compiler_pic='-KPIC'
8030: lt_prog_compiler_static='-static'
8031: ;;
8032: # icc used to be incompatible with GCC.
8033: # ICC 10 doesn't accept -KPIC any more.
8034: icc* | ifort*)
8035: lt_prog_compiler_wl='-Wl,'
8036: lt_prog_compiler_pic='-fPIC'
8037: lt_prog_compiler_static='-static'
8038: ;;
8039: # Lahey Fortran 8.1.
8040: lf95*)
8041: lt_prog_compiler_wl='-Wl,'
8042: lt_prog_compiler_pic='--shared'
8043: lt_prog_compiler_static='--static'
8044: ;;
8045: nagfor*)
8046: # NAG Fortran compiler
8047: lt_prog_compiler_wl='-Wl,-Wl,,'
8048: lt_prog_compiler_pic='-PIC'
8049: lt_prog_compiler_static='-Bstatic'
8050: ;;
8051: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8052: # Portland Group compilers (*not* the Pentium gcc compiler,
8053: # which looks to be a dead project)
8054: lt_prog_compiler_wl='-Wl,'
8055: lt_prog_compiler_pic='-fpic'
8056: lt_prog_compiler_static='-Bstatic'
8057: ;;
8058: ccc*)
8059: lt_prog_compiler_wl='-Wl,'
8060: # All Alpha code is PIC.
8061: lt_prog_compiler_static='-non_shared'
8062: ;;
8063: xl* | bgxl* | bgf* | mpixl*)
8064: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8065: lt_prog_compiler_wl='-Wl,'
8066: lt_prog_compiler_pic='-qpic'
8067: lt_prog_compiler_static='-qstaticlink'
8068: ;;
8069: *)
8070: case `$CC -V 2>&1 | sed 5q` in
8071: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8072: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8073: lt_prog_compiler_pic='-KPIC'
8074: lt_prog_compiler_static='-Bstatic'
8075: lt_prog_compiler_wl=''
8076: ;;
8077: *Sun\ F* | *Sun*Fortran*)
8078: lt_prog_compiler_pic='-KPIC'
8079: lt_prog_compiler_static='-Bstatic'
8080: lt_prog_compiler_wl='-Qoption ld '
8081: ;;
8082: *Sun\ C*)
8083: # Sun C 5.9
8084: lt_prog_compiler_pic='-KPIC'
8085: lt_prog_compiler_static='-Bstatic'
8086: lt_prog_compiler_wl='-Wl,'
8087: ;;
8088: *Intel*\ [CF]*Compiler*)
8089: lt_prog_compiler_wl='-Wl,'
8090: lt_prog_compiler_pic='-fPIC'
8091: lt_prog_compiler_static='-static'
8092: ;;
8093: *Portland\ Group*)
8094: lt_prog_compiler_wl='-Wl,'
8095: lt_prog_compiler_pic='-fpic'
8096: lt_prog_compiler_static='-Bstatic'
8097: ;;
8098: esac
8099: ;;
8100: esac
8101: ;;
1.1 misha 8102:
1.8 moko 8103: newsos6)
8104: lt_prog_compiler_pic='-KPIC'
8105: lt_prog_compiler_static='-Bstatic'
8106: ;;
1.1 misha 8107:
1.8 moko 8108: *nto* | *qnx*)
8109: # QNX uses GNU C++, but need to define -shared option too, otherwise
8110: # it will coredump.
8111: lt_prog_compiler_pic='-fPIC -shared'
8112: ;;
1.1 misha 8113:
1.8 moko 8114: osf3* | osf4* | osf5*)
8115: lt_prog_compiler_wl='-Wl,'
8116: # All OSF/1 code is PIC.
8117: lt_prog_compiler_static='-non_shared'
8118: ;;
1.1 misha 8119:
1.8 moko 8120: rdos*)
8121: lt_prog_compiler_static='-non_shared'
8122: ;;
1.1 misha 8123:
1.8 moko 8124: solaris*)
8125: lt_prog_compiler_pic='-KPIC'
8126: lt_prog_compiler_static='-Bstatic'
8127: case $cc_basename in
8128: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8129: lt_prog_compiler_wl='-Qoption ld ';;
8130: *)
8131: lt_prog_compiler_wl='-Wl,';;
8132: esac
8133: ;;
1.1 misha 8134:
1.8 moko 8135: sunos4*)
8136: lt_prog_compiler_wl='-Qoption ld '
8137: lt_prog_compiler_pic='-PIC'
8138: lt_prog_compiler_static='-Bstatic'
8139: ;;
1.1 misha 8140:
1.8 moko 8141: sysv4 | sysv4.2uw2* | sysv4.3*)
8142: lt_prog_compiler_wl='-Wl,'
8143: lt_prog_compiler_pic='-KPIC'
8144: lt_prog_compiler_static='-Bstatic'
8145: ;;
1.1 misha 8146:
1.8 moko 8147: sysv4*MP*)
8148: if test -d /usr/nec ;then
8149: lt_prog_compiler_pic='-Kconform_pic'
8150: lt_prog_compiler_static='-Bstatic'
8151: fi
8152: ;;
1.1 misha 8153:
1.8 moko 8154: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8155: lt_prog_compiler_wl='-Wl,'
8156: lt_prog_compiler_pic='-KPIC'
8157: lt_prog_compiler_static='-Bstatic'
8158: ;;
1.1 misha 8159:
1.8 moko 8160: unicos*)
8161: lt_prog_compiler_wl='-Wl,'
8162: lt_prog_compiler_can_build_shared=no
8163: ;;
1.1 misha 8164:
1.8 moko 8165: uts4*)
8166: lt_prog_compiler_pic='-pic'
8167: lt_prog_compiler_static='-Bstatic'
8168: ;;
1.1 misha 8169:
1.8 moko 8170: *)
8171: lt_prog_compiler_can_build_shared=no
8172: ;;
8173: esac
8174: fi
1.1 misha 8175:
1.8 moko 8176: case $host_os in
8177: # For platforms which do not support PIC, -DPIC is meaningless:
8178: *djgpp*)
8179: lt_prog_compiler_pic=
8180: ;;
8181: *)
8182: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8183: ;;
8184: esac
1.1 misha 8185:
1.11 moko 8186: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8187: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8188: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8189: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8190: else
8191: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8192: fi
1.11 moko 8193: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8194: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
1.8 moko 8195: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 8196:
1.8 moko 8197: #
8198: # Check to make sure the PIC flag actually works.
8199: #
8200: if test -n "$lt_prog_compiler_pic"; then
1.11 moko 8201: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8202: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8203: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8204: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8205: else
8206: lt_cv_prog_compiler_pic_works=no
8207: ac_outfile=conftest.$ac_objext
8208: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8209: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8210: # Insert the option either (1) after the last *FLAGS variable, or
8211: # (2) before a word containing "conftest.", or (3) at the end.
8212: # Note that $ac_compile itself does not contain backslashes and begins
8213: # with a dollar sign (not a hyphen), so the echo should work correctly.
8214: # The option is referenced via a variable to avoid confusing sed.
8215: lt_compile=`echo "$ac_compile" | $SED \
8216: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218: -e 's:$: $lt_compiler_flag:'`
8219: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8220: (eval "$lt_compile" 2>conftest.err)
8221: ac_status=$?
8222: cat conftest.err >&5
8223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224: if (exit $ac_status) && test -s "$ac_outfile"; then
8225: # The compiler can only warn and ignore the option if not recognized
8226: # So say no if there are warnings other than the usual output.
8227: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8228: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8229: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8230: lt_cv_prog_compiler_pic_works=yes
8231: fi
8232: fi
8233: $RM conftest*
1.1 misha 8234:
1.8 moko 8235: fi
1.11 moko 8236: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8237: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.1 misha 8238:
1.8 moko 8239: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8240: case $lt_prog_compiler_pic in
8241: "" | " "*) ;;
8242: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8243: esac
8244: else
8245: lt_prog_compiler_pic=
8246: lt_prog_compiler_can_build_shared=no
8247: fi
1.1 misha 8248:
1.8 moko 8249: fi
1.1 misha 8250:
8251:
8252:
8253:
8254:
8255:
8256:
8257:
8258:
8259:
8260:
1.8 moko 8261: #
8262: # Check to make sure the static flag actually works.
8263: #
8264: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.11 moko 8265: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8266: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8267: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8268: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8269: else
8270: lt_cv_prog_compiler_static_works=no
8271: save_LDFLAGS="$LDFLAGS"
8272: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8273: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8274: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8275: # The linker can only warn and ignore the option if not recognized
8276: # So say no if there are warnings
8277: if test -s conftest.err; then
8278: # Append any errors to the config.log.
8279: cat conftest.err 1>&5
8280: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8281: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8282: if diff conftest.exp conftest.er2 >/dev/null; then
8283: lt_cv_prog_compiler_static_works=yes
8284: fi
8285: else
8286: lt_cv_prog_compiler_static_works=yes
8287: fi
8288: fi
8289: $RM -r conftest*
8290: LDFLAGS="$save_LDFLAGS"
1.1 misha 8291:
1.8 moko 8292: fi
1.11 moko 8293: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8294: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.1 misha 8295:
1.8 moko 8296: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8297: :
8298: else
8299: lt_prog_compiler_static=
8300: fi
1.1 misha 8301:
8302:
8303:
8304:
8305:
8306:
8307:
1.11 moko 8308: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8309: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8310: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8311: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8312: else
8313: lt_cv_prog_compiler_c_o=no
8314: $RM -r conftest 2>/dev/null
8315: mkdir conftest
8316: cd conftest
8317: mkdir out
8318: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319:
8320: lt_compiler_flag="-o out/conftest2.$ac_objext"
8321: # Insert the option either (1) after the last *FLAGS variable, or
8322: # (2) before a word containing "conftest.", or (3) at the end.
8323: # Note that $ac_compile itself does not contain backslashes and begins
8324: # with a dollar sign (not a hyphen), so the echo should work correctly.
8325: lt_compile=`echo "$ac_compile" | $SED \
8326: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328: -e 's:$: $lt_compiler_flag:'`
8329: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8330: (eval "$lt_compile" 2>out/conftest.err)
8331: ac_status=$?
8332: cat out/conftest.err >&5
8333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8335: then
8336: # The compiler can only warn and ignore the option if not recognized
8337: # So say no if there are warnings
8338: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8339: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8340: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8341: lt_cv_prog_compiler_c_o=yes
8342: fi
8343: fi
8344: chmod u+w . 2>&5
8345: $RM conftest*
8346: # SGI C++ compiler will create directory out/ii_files/ for
8347: # template instantiation
8348: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8349: $RM out/* && rmdir out
8350: cd ..
8351: $RM -r conftest
8352: $RM conftest*
1.1 misha 8353:
1.8 moko 8354: fi
1.11 moko 8355: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8356: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8357:
8358:
8359:
8360:
8361:
8362:
1.11 moko 8363: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8364: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8365: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8366: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8367: else
8368: lt_cv_prog_compiler_c_o=no
8369: $RM -r conftest 2>/dev/null
8370: mkdir conftest
8371: cd conftest
8372: mkdir out
8373: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8374:
8375: lt_compiler_flag="-o out/conftest2.$ac_objext"
8376: # Insert the option either (1) after the last *FLAGS variable, or
8377: # (2) before a word containing "conftest.", or (3) at the end.
8378: # Note that $ac_compile itself does not contain backslashes and begins
8379: # with a dollar sign (not a hyphen), so the echo should work correctly.
8380: lt_compile=`echo "$ac_compile" | $SED \
8381: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8382: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8383: -e 's:$: $lt_compiler_flag:'`
8384: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8385: (eval "$lt_compile" 2>out/conftest.err)
8386: ac_status=$?
8387: cat out/conftest.err >&5
8388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8390: then
8391: # The compiler can only warn and ignore the option if not recognized
8392: # So say no if there are warnings
8393: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8394: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8395: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8396: lt_cv_prog_compiler_c_o=yes
8397: fi
8398: fi
8399: chmod u+w . 2>&5
8400: $RM conftest*
8401: # SGI C++ compiler will create directory out/ii_files/ for
8402: # template instantiation
8403: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8404: $RM out/* && rmdir out
8405: cd ..
8406: $RM -r conftest
8407: $RM conftest*
1.1 misha 8408:
1.8 moko 8409: fi
1.11 moko 8410: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8411: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8412:
8413:
8414:
8415:
1.8 moko 8416: hard_links="nottested"
8417: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8418: # do not overwrite the value of need_locks provided by the user
1.11 moko 8419: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8420: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 8421: hard_links=yes
8422: $RM conftest*
8423: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424: touch conftest.a
8425: ln conftest.a conftest.b 2>&5 || hard_links=no
8426: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 8427: echo "$as_me:$LINENO: result: $hard_links" >&5
8428: echo "${ECHO_T}$hard_links" >&6
1.8 moko 8429: if test "$hard_links" = no; then
1.11 moko 8430: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8431: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 8432: need_locks=warn
8433: fi
8434: else
8435: need_locks=no
8436: fi
1.1 misha 8437:
8438:
8439:
8440:
8441:
8442:
1.11 moko 8443: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8444: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.1 misha 8445:
1.8 moko 8446: runpath_var=
8447: allow_undefined_flag=
8448: always_export_symbols=no
8449: archive_cmds=
8450: archive_expsym_cmds=
8451: compiler_needs_object=no
8452: enable_shared_with_static_runtimes=no
8453: export_dynamic_flag_spec=
8454: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8455: hardcode_automatic=no
8456: hardcode_direct=no
8457: hardcode_direct_absolute=no
8458: hardcode_libdir_flag_spec=
8459: hardcode_libdir_separator=
8460: hardcode_minus_L=no
8461: hardcode_shlibpath_var=unsupported
8462: inherit_rpath=no
8463: link_all_deplibs=unknown
8464: module_cmds=
8465: module_expsym_cmds=
8466: old_archive_from_new_cmds=
8467: old_archive_from_expsyms_cmds=
8468: thread_safe_flag_spec=
8469: whole_archive_flag_spec=
8470: # include_expsyms should be a list of space-separated symbols to be *always*
8471: # included in the symbol list
8472: include_expsyms=
8473: # exclude_expsyms can be an extended regexp of symbols to exclude
8474: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8475: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8476: # as well as any symbol that contains `d'.
8477: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8478: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8479: # platforms (ab)use it in PIC code, but their linkers get confused if
8480: # the symbol is explicitly referenced. Since portable code cannot
8481: # rely on this symbol name, it's probably fine to never include it in
8482: # preloaded symbol tables.
8483: # Exclude shared library initialization/finalization symbols.
8484: extract_expsyms_cmds=
1.1 misha 8485:
1.8 moko 8486: case $host_os in
8487: cygwin* | mingw* | pw32* | cegcc*)
8488: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8489: # When not using gcc, we currently assume that we are using
8490: # Microsoft Visual C++.
8491: if test "$GCC" != yes; then
8492: with_gnu_ld=no
8493: fi
8494: ;;
8495: interix*)
8496: # we just hope/assume this is gcc and not c89 (= MSVC++)
8497: with_gnu_ld=yes
8498: ;;
8499: openbsd*)
8500: with_gnu_ld=no
8501: ;;
8502: esac
1.1 misha 8503:
1.8 moko 8504: ld_shlibs=yes
1.1 misha 8505:
1.8 moko 8506: # On some targets, GNU ld is compatible enough with the native linker
8507: # that we're better off using the native interface for both.
8508: lt_use_gnu_ld_interface=no
8509: if test "$with_gnu_ld" = yes; then
8510: case $host_os in
8511: aix*)
8512: # The AIX port of GNU ld has always aspired to compatibility
8513: # with the native linker. However, as the warning in the GNU ld
8514: # block says, versions before 2.19.5* couldn't really create working
8515: # shared libraries, regardless of the interface used.
8516: case `$LD -v 2>&1` in
8517: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8518: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8519: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8520: *)
8521: lt_use_gnu_ld_interface=yes
8522: ;;
8523: esac
8524: ;;
8525: *)
8526: lt_use_gnu_ld_interface=yes
8527: ;;
8528: esac
8529: fi
1.1 misha 8530:
1.8 moko 8531: if test "$lt_use_gnu_ld_interface" = yes; then
8532: # If archive_cmds runs LD, not CC, wlarc should be empty
8533: wlarc='${wl}'
8534:
8535: # Set some defaults for GNU ld with shared library support. These
8536: # are reset later if shared libraries are not supported. Putting them
8537: # here allows them to be overridden if necessary.
8538: runpath_var=LD_RUN_PATH
8539: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8540: export_dynamic_flag_spec='${wl}--export-dynamic'
8541: # ancient GNU ld didn't support --whole-archive et. al.
8542: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8543: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8544: else
8545: whole_archive_flag_spec=
8546: fi
8547: supports_anon_versioning=no
8548: case `$LD -v 2>&1` in
8549: *GNU\ gold*) supports_anon_versioning=yes ;;
8550: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8551: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8552: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8553: *\ 2.11.*) ;; # other 2.11 versions
8554: *) supports_anon_versioning=yes ;;
8555: esac
1.1 misha 8556:
1.8 moko 8557: # See if GNU ld supports shared libraries.
8558: case $host_os in
8559: aix[3-9]*)
8560: # On AIX/PPC, the GNU linker is very broken
8561: if test "$host_cpu" != ia64; then
8562: ld_shlibs=no
8563: cat <<_LT_EOF 1>&2
1.1 misha 8564:
1.8 moko 8565: *** Warning: the GNU linker, at least up to release 2.19, is reported
8566: *** to be unable to reliably create shared libraries on AIX.
8567: *** Therefore, libtool is disabling shared libraries support. If you
8568: *** really care for shared libraries, you may want to install binutils
8569: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8570: *** You will then need to restart the configuration process.
1.1 misha 8571:
1.8 moko 8572: _LT_EOF
8573: fi
8574: ;;
1.1 misha 8575:
1.8 moko 8576: amigaos*)
8577: case $host_cpu in
8578: powerpc)
8579: # see comment about AmigaOS4 .so support
8580: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581: archive_expsym_cmds=''
8582: ;;
8583: m68k)
8584: 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)'
8585: hardcode_libdir_flag_spec='-L$libdir'
8586: hardcode_minus_L=yes
8587: ;;
8588: esac
8589: ;;
1.1 misha 8590:
1.8 moko 8591: beos*)
8592: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8593: allow_undefined_flag=unsupported
8594: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8595: # support --undefined. This deserves some investigation. FIXME
8596: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597: else
8598: ld_shlibs=no
8599: fi
8600: ;;
1.1 misha 8601:
1.8 moko 8602: cygwin* | mingw* | pw32* | cegcc*)
8603: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8604: # as there is no search path for DLLs.
8605: hardcode_libdir_flag_spec='-L$libdir'
8606: export_dynamic_flag_spec='${wl}--export-all-symbols'
8607: allow_undefined_flag=unsupported
8608: always_export_symbols=no
8609: enable_shared_with_static_runtimes=yes
8610: 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'
8611: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8612:
8613: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8614: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615: # If the export-symbols file already is a .def file (1st line
8616: # is EXPORTS), use it as is; otherwise, prepend...
8617: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8618: cp $export_symbols $output_objdir/$soname.def;
8619: else
8620: echo EXPORTS > $output_objdir/$soname.def;
8621: cat $export_symbols >> $output_objdir/$soname.def;
8622: fi~
8623: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624: else
8625: ld_shlibs=no
8626: fi
8627: ;;
1.1 misha 8628:
1.8 moko 8629: haiku*)
8630: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631: link_all_deplibs=yes
8632: ;;
1.1 misha 8633:
1.8 moko 8634: interix[3-9]*)
8635: hardcode_direct=no
8636: hardcode_shlibpath_var=no
8637: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8638: export_dynamic_flag_spec='${wl}-E'
8639: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8640: # Instead, shared libraries are loaded at an image base (0x10000000 by
8641: # default) and relocated if they conflict, which is a slow very memory
8642: # consuming and fragmenting process. To avoid this, we pick a random,
8643: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8644: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8645: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8646: 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'
8647: ;;
1.1 misha 8648:
1.8 moko 8649: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8650: tmp_diet=no
8651: if test "$host_os" = linux-dietlibc; then
8652: case $cc_basename in
8653: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8654: esac
8655: fi
8656: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8657: && test "$tmp_diet" = no
8658: then
8659: tmp_addflag=' $pic_flag'
8660: tmp_sharedflag='-shared'
8661: case $cc_basename,$host_cpu in
8662: pgcc*) # Portland Group C compiler
8663: 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'
8664: tmp_addflag=' $pic_flag'
8665: ;;
8666: pgf77* | pgf90* | pgf95* | pgfortran*)
8667: # Portland Group f77 and f90 compilers
8668: 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'
8669: tmp_addflag=' $pic_flag -Mnomain' ;;
8670: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8671: tmp_addflag=' -i_dynamic' ;;
8672: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8673: tmp_addflag=' -i_dynamic -nofor_main' ;;
8674: ifc* | ifort*) # Intel Fortran compiler
8675: tmp_addflag=' -nofor_main' ;;
8676: lf95*) # Lahey Fortran 8.1
8677: whole_archive_flag_spec=
8678: tmp_sharedflag='--shared' ;;
8679: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8680: tmp_sharedflag='-qmkshrobj'
8681: tmp_addflag= ;;
8682: nvcc*) # Cuda Compiler Driver 2.2
8683: 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'
8684: compiler_needs_object=yes
8685: ;;
8686: esac
8687: case `$CC -V 2>&1 | sed 5q` in
8688: *Sun\ C*) # Sun C 5.9
8689: 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'
8690: compiler_needs_object=yes
8691: tmp_sharedflag='-G' ;;
8692: *Sun\ F*) # Sun Fortran 8.3
8693: tmp_sharedflag='-G' ;;
8694: esac
8695: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 8696:
1.8 moko 8697: if test "x$supports_anon_versioning" = xyes; then
8698: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8699: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8700: echo "local: *; };" >> $output_objdir/$libname.ver~
8701: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8702: fi
8703:
8704: case $cc_basename in
8705: xlf* | bgf* | bgxlf* | mpixlf*)
8706: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8707: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8708: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8710: if test "x$supports_anon_versioning" = xyes; then
8711: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8712: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8713: echo "local: *; };" >> $output_objdir/$libname.ver~
8714: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8715: fi
8716: ;;
8717: esac
8718: else
8719: ld_shlibs=no
8720: fi
8721: ;;
1.1 misha 8722:
1.8 moko 8723: netbsd*)
8724: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8725: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8726: wlarc=
8727: else
8728: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730: fi
8731: ;;
1.1 misha 8732:
1.8 moko 8733: solaris*)
8734: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8735: ld_shlibs=no
8736: cat <<_LT_EOF 1>&2
1.1 misha 8737:
1.8 moko 8738: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8739: *** create shared libraries on Solaris systems. Therefore, libtool
8740: *** is disabling shared libraries support. We urge you to upgrade GNU
8741: *** binutils to release 2.9.1 or newer. Another option is to modify
8742: *** your PATH or compiler configuration so that the native linker is
8743: *** used, and then restart.
1.1 misha 8744:
1.8 moko 8745: _LT_EOF
8746: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8747: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749: else
8750: ld_shlibs=no
8751: fi
8752: ;;
1.1 misha 8753:
1.8 moko 8754: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8755: case `$LD -v 2>&1` in
8756: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8757: ld_shlibs=no
8758: cat <<_LT_EOF 1>&2
1.1 misha 8759:
1.8 moko 8760: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8761: *** reliably create shared libraries on SCO systems. Therefore, libtool
8762: *** is disabling shared libraries support. We urge you to upgrade GNU
8763: *** binutils to release 2.16.91.0.3 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: ;;
8769: *)
8770: # For security reasons, it is highly recommended that you always
8771: # use absolute paths for naming shared libraries, and exclude the
8772: # DT_RUNPATH tag from executables and libraries. But doing so
8773: # requires that you compile everything twice, which is a pain.
8774: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8775: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8777: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778: else
8779: ld_shlibs=no
8780: fi
8781: ;;
8782: esac
8783: ;;
1.1 misha 8784:
1.8 moko 8785: sunos4*)
8786: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787: wlarc=
8788: hardcode_direct=yes
8789: hardcode_shlibpath_var=no
8790: ;;
1.1 misha 8791:
1.8 moko 8792: *)
8793: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8794: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8796: else
8797: ld_shlibs=no
8798: fi
8799: ;;
8800: esac
1.1 misha 8801:
1.8 moko 8802: if test "$ld_shlibs" = no; then
8803: runpath_var=
8804: hardcode_libdir_flag_spec=
8805: export_dynamic_flag_spec=
8806: whole_archive_flag_spec=
8807: fi
8808: else
8809: # PORTME fill in a description of your system's linker (not GNU ld)
8810: case $host_os in
8811: aix3*)
8812: allow_undefined_flag=unsupported
8813: always_export_symbols=yes
8814: 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'
8815: # Note: this linker hardcodes the directories in LIBPATH if there
8816: # are no directories specified by -L.
8817: hardcode_minus_L=yes
8818: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8819: # Neither direct hardcoding nor static linking is supported with a
8820: # broken collect2.
8821: hardcode_direct=unsupported
8822: fi
8823: ;;
1.1 misha 8824:
1.8 moko 8825: aix[4-9]*)
8826: if test "$host_cpu" = ia64; then
8827: # On IA64, the linker does run time linking by default, so we don't
8828: # have to do anything special.
8829: aix_use_runtimelinking=no
8830: exp_sym_flag='-Bexport'
8831: no_entry_flag=""
8832: else
8833: # If we're using GNU nm, then we don't want the "-C" option.
8834: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8835: # Also, AIX nm treats weak defined symbols like other global
8836: # defined symbols, whereas GNU nm marks them as "W".
8837: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8838: 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'
8839: else
8840: 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'
8841: fi
8842: aix_use_runtimelinking=no
1.1 misha 8843:
1.8 moko 8844: # Test if we are trying to use run time linking or normal
8845: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8846: # need to do runtime linking.
8847: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8848: for ld_flag in $LDFLAGS; do
8849: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8850: aix_use_runtimelinking=yes
8851: break
8852: fi
8853: done
8854: ;;
8855: esac
1.1 misha 8856:
1.8 moko 8857: exp_sym_flag='-bexport'
8858: no_entry_flag='-bnoentry'
8859: fi
1.1 misha 8860:
1.8 moko 8861: # When large executables or shared objects are built, AIX ld can
8862: # have problems creating the table of contents. If linking a library
8863: # or program results in "error TOC overflow" add -mminimal-toc to
8864: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8865: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8866:
8867: archive_cmds=''
8868: hardcode_direct=yes
8869: hardcode_direct_absolute=yes
8870: hardcode_libdir_separator=':'
8871: link_all_deplibs=yes
8872: file_list_spec='${wl}-f,'
8873:
8874: if test "$GCC" = yes; then
8875: case $host_os in aix4.[012]|aix4.[012].*)
8876: # We only want to do this on AIX 4.2 and lower, the check
8877: # below for broken collect2 doesn't work under 4.3+
8878: collect2name=`${CC} -print-prog-name=collect2`
8879: if test -f "$collect2name" &&
8880: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8881: then
8882: # We have reworked collect2
8883: :
8884: else
8885: # We have old collect2
8886: hardcode_direct=unsupported
8887: # It fails to find uninstalled libraries when the uninstalled
8888: # path is not listed in the libpath. Setting hardcode_minus_L
8889: # to unsupported forces relinking
8890: hardcode_minus_L=yes
8891: hardcode_libdir_flag_spec='-L$libdir'
8892: hardcode_libdir_separator=
8893: fi
8894: ;;
8895: esac
8896: shared_flag='-shared'
8897: if test "$aix_use_runtimelinking" = yes; then
8898: shared_flag="$shared_flag "'${wl}-G'
8899: fi
8900: else
8901: # not using gcc
8902: if test "$host_cpu" = ia64; then
8903: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8904: # chokes on -Wl,-G. The following line is correct:
8905: shared_flag='-G'
8906: else
8907: if test "$aix_use_runtimelinking" = yes; then
8908: shared_flag='${wl}-G'
8909: else
8910: shared_flag='${wl}-bM:SRE'
8911: fi
8912: fi
8913: fi
1.1 misha 8914:
1.8 moko 8915: export_dynamic_flag_spec='${wl}-bexpall'
8916: # It seems that -bexpall does not export symbols beginning with
8917: # underscore (_), so it is better to generate a list of symbols to export.
8918: always_export_symbols=yes
8919: if test "$aix_use_runtimelinking" = yes; then
8920: # Warning - without using the other runtime loading flags (-brtl),
8921: # -berok will link without error, but may produce a broken library.
8922: allow_undefined_flag='-berok'
8923: # Determine the default libpath from the value encoded in an
8924: # empty executable.
8925: if test "${lt_cv_aix_libpath+set}" = set; then
8926: aix_libpath=$lt_cv_aix_libpath
8927: else
1.11 moko 8928: if test "${lt_cv_aix_libpath_+set}" = set; then
8929: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 8930: else
1.11 moko 8931: cat >conftest.$ac_ext <<_ACEOF
8932: /* confdefs.h. */
8933: _ACEOF
8934: cat confdefs.h >>conftest.$ac_ext
8935: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 8936: /* end confdefs.h. */
1.8 moko 8937:
8938: int
8939: main ()
8940: {
8941:
8942: ;
8943: return 0;
8944: }
1.1 misha 8945: _ACEOF
1.11 moko 8946: rm -f conftest.$ac_objext conftest$ac_exeext
8947: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948: (eval $ac_link) 2>conftest.er1
8949: ac_status=$?
8950: grep -v '^ *+' conftest.er1 >conftest.err
8951: rm -f conftest.er1
8952: cat conftest.err >&5
8953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954: (exit $ac_status); } &&
8955: { ac_try='test -z "$ac_c_werror_flag"
8956: || test ! -s conftest.err'
8957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958: (eval $ac_try) 2>&5
8959: ac_status=$?
8960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961: (exit $ac_status); }; } &&
8962: { ac_try='test -s conftest$ac_exeext'
8963: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964: (eval $ac_try) 2>&5
8965: ac_status=$?
8966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967: (exit $ac_status); }; }; then
1.8 moko 8968:
8969: lt_aix_libpath_sed='
8970: /Import File Strings/,/^$/ {
8971: /^0/ {
8972: s/^0 *\([^ ]*\) *$/\1/
8973: p
8974: }
8975: }'
8976: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8977: # Check for a 64-bit object if we didn't find anything.
8978: if test -z "$lt_cv_aix_libpath_"; then
8979: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8980: fi
1.11 moko 8981: else
8982: echo "$as_me: failed program was:" >&5
8983: sed 's/^/| /' conftest.$ac_ext >&5
8984:
1.1 misha 8985: fi
1.11 moko 8986: rm -f conftest.err conftest.$ac_objext \
8987: conftest$ac_exeext conftest.$ac_ext
1.8 moko 8988: if test -z "$lt_cv_aix_libpath_"; then
8989: lt_cv_aix_libpath_="/usr/lib:/lib"
8990: fi
8991:
8992: fi
8993:
8994: aix_libpath=$lt_cv_aix_libpath_
8995: fi
1.1 misha 8996:
1.8 moko 8997: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8998: 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"
8999: else
9000: if test "$host_cpu" = ia64; then
9001: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9002: allow_undefined_flag="-z nodefs"
9003: 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"
9004: else
9005: # Determine the default libpath from the value encoded in an
9006: # empty executable.
9007: if test "${lt_cv_aix_libpath+set}" = set; then
9008: aix_libpath=$lt_cv_aix_libpath
9009: else
1.11 moko 9010: if test "${lt_cv_aix_libpath_+set}" = set; then
9011: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 9012: else
1.11 moko 9013: cat >conftest.$ac_ext <<_ACEOF
9014: /* confdefs.h. */
9015: _ACEOF
9016: cat confdefs.h >>conftest.$ac_ext
9017: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9018: /* end confdefs.h. */
1.8 moko 9019:
9020: int
9021: main ()
9022: {
9023:
9024: ;
9025: return 0;
9026: }
1.1 misha 9027: _ACEOF
1.11 moko 9028: rm -f conftest.$ac_objext conftest$ac_exeext
9029: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030: (eval $ac_link) 2>conftest.er1
9031: ac_status=$?
9032: grep -v '^ *+' conftest.er1 >conftest.err
9033: rm -f conftest.er1
9034: cat conftest.err >&5
9035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036: (exit $ac_status); } &&
9037: { ac_try='test -z "$ac_c_werror_flag"
9038: || test ! -s conftest.err'
9039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040: (eval $ac_try) 2>&5
9041: ac_status=$?
9042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043: (exit $ac_status); }; } &&
9044: { ac_try='test -s conftest$ac_exeext'
9045: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046: (eval $ac_try) 2>&5
9047: ac_status=$?
9048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049: (exit $ac_status); }; }; then
1.8 moko 9050:
9051: lt_aix_libpath_sed='
9052: /Import File Strings/,/^$/ {
9053: /^0/ {
9054: s/^0 *\([^ ]*\) *$/\1/
9055: p
9056: }
9057: }'
9058: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059: # Check for a 64-bit object if we didn't find anything.
9060: if test -z "$lt_cv_aix_libpath_"; then
9061: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 9062: fi
1.11 moko 9063: else
9064: echo "$as_me: failed program was:" >&5
9065: sed 's/^/| /' conftest.$ac_ext >&5
9066:
1.1 misha 9067: fi
1.11 moko 9068: rm -f conftest.err conftest.$ac_objext \
9069: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9070: if test -z "$lt_cv_aix_libpath_"; then
9071: lt_cv_aix_libpath_="/usr/lib:/lib"
9072: fi
9073:
9074: fi
9075:
9076: aix_libpath=$lt_cv_aix_libpath_
9077: fi
9078:
9079: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9080: # Warning - without using the other run time loading flags,
9081: # -berok will link without error, but may produce a broken library.
9082: no_undefined_flag=' ${wl}-bernotok'
9083: allow_undefined_flag=' ${wl}-berok'
9084: if test "$with_gnu_ld" = yes; then
9085: # We only use this code for GNU lds that support --whole-archive.
9086: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9087: else
9088: # Exported symbols can be pulled into shared objects from archives
9089: whole_archive_flag_spec='$convenience'
9090: fi
9091: archive_cmds_need_lc=yes
9092: # This is similar to how AIX traditionally builds its shared libraries.
9093: 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'
9094: fi
9095: fi
9096: ;;
9097:
9098: amigaos*)
9099: case $host_cpu in
9100: powerpc)
9101: # see comment about AmigaOS4 .so support
9102: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103: archive_expsym_cmds=''
9104: ;;
9105: m68k)
9106: 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)'
9107: hardcode_libdir_flag_spec='-L$libdir'
9108: hardcode_minus_L=yes
9109: ;;
9110: esac
9111: ;;
9112:
9113: bsdi[45]*)
9114: export_dynamic_flag_spec=-rdynamic
9115: ;;
9116:
9117: cygwin* | mingw* | pw32* | cegcc*)
9118: # When not using gcc, we currently assume that we are using
9119: # Microsoft Visual C++.
9120: # hardcode_libdir_flag_spec is actually meaningless, as there is
9121: # no search path for DLLs.
9122: case $cc_basename in
9123: cl*)
9124: # Native MSVC
9125: hardcode_libdir_flag_spec=' '
9126: allow_undefined_flag=unsupported
9127: always_export_symbols=yes
9128: file_list_spec='@'
9129: # Tell ltmain to make .lib files, not .a files.
9130: libext=lib
9131: # Tell ltmain to make .dll files, not .so files.
9132: shrext_cmds=".dll"
9133: # FIXME: Setting linknames here is a bad hack.
9134: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9135: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9136: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9137: else
9138: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9139: fi~
9140: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9141: linknames='
9142: # The linker will not automatically build a static lib if we build a DLL.
9143: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9144: enable_shared_with_static_runtimes=yes
9145: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9146: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9147: # Don't use ranlib
9148: old_postinstall_cmds='chmod 644 $oldlib'
9149: postlink_cmds='lt_outputfile="@OUTPUT@"~
9150: lt_tool_outputfile="@TOOL_OUTPUT@"~
9151: case $lt_outputfile in
9152: *.exe|*.EXE) ;;
9153: *)
9154: lt_outputfile="$lt_outputfile.exe"
9155: lt_tool_outputfile="$lt_tool_outputfile.exe"
9156: ;;
9157: esac~
9158: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9159: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9160: $RM "$lt_outputfile.manifest";
9161: fi'
9162: ;;
9163: *)
9164: # Assume MSVC wrapper
9165: hardcode_libdir_flag_spec=' '
9166: allow_undefined_flag=unsupported
9167: # Tell ltmain to make .lib files, not .a files.
9168: libext=lib
9169: # Tell ltmain to make .dll files, not .so files.
9170: shrext_cmds=".dll"
9171: # FIXME: Setting linknames here is a bad hack.
9172: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9173: # The linker will automatically build a .lib file if we build a DLL.
9174: old_archive_from_new_cmds='true'
9175: # FIXME: Should let the user specify the lib program.
9176: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9177: enable_shared_with_static_runtimes=yes
9178: ;;
9179: esac
9180: ;;
9181:
9182: darwin* | rhapsody*)
9183:
9184:
9185: archive_cmds_need_lc=no
9186: hardcode_direct=no
9187: hardcode_automatic=yes
9188: hardcode_shlibpath_var=unsupported
9189: if test "$lt_cv_ld_force_load" = "yes"; then
9190: 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\"`'
9191:
9192: else
9193: whole_archive_flag_spec=''
9194: fi
9195: link_all_deplibs=yes
9196: allow_undefined_flag="$_lt_dar_allow_undefined"
9197: case $cc_basename in
9198: ifort*) _lt_dar_can_shared=yes ;;
9199: *) _lt_dar_can_shared=$GCC ;;
9200: esac
9201: if test "$_lt_dar_can_shared" = "yes"; then
9202: output_verbose_link_cmd=func_echo_all
9203: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9204: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9205: 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}"
9206: 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}"
9207:
9208: else
9209: ld_shlibs=no
9210: fi
9211:
9212: ;;
9213:
9214: dgux*)
9215: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216: hardcode_libdir_flag_spec='-L$libdir'
9217: hardcode_shlibpath_var=no
9218: ;;
9219:
9220: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9221: # support. Future versions do this automatically, but an explicit c++rt0.o
9222: # does not break anything, and helps significantly (at the cost of a little
9223: # extra space).
9224: freebsd2.2*)
9225: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9226: hardcode_libdir_flag_spec='-R$libdir'
9227: hardcode_direct=yes
9228: hardcode_shlibpath_var=no
9229: ;;
9230:
9231: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9232: freebsd2.*)
9233: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9234: hardcode_direct=yes
9235: hardcode_minus_L=yes
9236: hardcode_shlibpath_var=no
9237: ;;
9238:
9239: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9240: freebsd* | dragonfly*)
9241: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9242: hardcode_libdir_flag_spec='-R$libdir'
9243: hardcode_direct=yes
9244: hardcode_shlibpath_var=no
9245: ;;
9246:
9247: hpux9*)
9248: if test "$GCC" = yes; then
9249: 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'
9250: else
9251: 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'
9252: fi
9253: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254: hardcode_libdir_separator=:
9255: hardcode_direct=yes
9256:
9257: # hardcode_minus_L: Not really in the search PATH,
9258: # but as the default location of the library.
9259: hardcode_minus_L=yes
9260: export_dynamic_flag_spec='${wl}-E'
9261: ;;
9262:
9263: hpux10*)
9264: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9265: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9266: else
9267: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9268: fi
9269: if test "$with_gnu_ld" = no; then
9270: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271: hardcode_libdir_separator=:
9272: hardcode_direct=yes
9273: hardcode_direct_absolute=yes
9274: export_dynamic_flag_spec='${wl}-E'
9275: # hardcode_minus_L: Not really in the search PATH,
9276: # but as the default location of the library.
9277: hardcode_minus_L=yes
9278: fi
9279: ;;
9280:
9281: hpux11*)
9282: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9283: case $host_cpu in
9284: hppa*64*)
9285: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9286: ;;
9287: ia64*)
9288: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9289: ;;
9290: *)
9291: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9292: ;;
9293: esac
9294: else
9295: case $host_cpu in
9296: hppa*64*)
9297: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9298: ;;
9299: ia64*)
9300: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9301: ;;
9302: *)
1.1 misha 9303:
1.8 moko 9304: # Older versions of the 11.00 compiler do not understand -b yet
9305: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.11 moko 9306: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9307: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9308: if test "${lt_cv_prog_compiler__b+set}" = set; then
9309: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9310: else
1.8 moko 9311: lt_cv_prog_compiler__b=no
9312: save_LDFLAGS="$LDFLAGS"
9313: LDFLAGS="$LDFLAGS -b"
9314: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9315: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9316: # The linker can only warn and ignore the option if not recognized
9317: # So say no if there are warnings
9318: if test -s conftest.err; then
9319: # Append any errors to the config.log.
9320: cat conftest.err 1>&5
9321: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9322: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9323: if diff conftest.exp conftest.er2 >/dev/null; then
9324: lt_cv_prog_compiler__b=yes
9325: fi
9326: else
9327: lt_cv_prog_compiler__b=yes
9328: fi
9329: fi
9330: $RM -r conftest*
9331: LDFLAGS="$save_LDFLAGS"
1.1 misha 9332:
9333: fi
1.11 moko 9334: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9335: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 misha 9336:
1.8 moko 9337: if test x"$lt_cv_prog_compiler__b" = xyes; then
9338: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9339: else
9340: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 9341: fi
9342:
1.8 moko 9343: ;;
9344: esac
9345: fi
9346: if test "$with_gnu_ld" = no; then
9347: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9348: hardcode_libdir_separator=:
9349:
9350: case $host_cpu in
9351: hppa*64*|ia64*)
9352: hardcode_direct=no
9353: hardcode_shlibpath_var=no
9354: ;;
9355: *)
9356: hardcode_direct=yes
9357: hardcode_direct_absolute=yes
9358: export_dynamic_flag_spec='${wl}-E'
1.1 misha 9359:
1.8 moko 9360: # hardcode_minus_L: Not really in the search PATH,
9361: # but as the default location of the library.
9362: hardcode_minus_L=yes
9363: ;;
9364: esac
9365: fi
9366: ;;
1.1 misha 9367:
1.8 moko 9368: irix5* | irix6* | nonstopux*)
9369: if test "$GCC" = yes; then
9370: 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'
9371: # Try to use the -exported_symbol ld option, if it does not
9372: # work, assume that -exports_file does not work either and
9373: # implicitly export all symbols.
9374: # This should be the same for all languages, so no per-tag cache variable.
1.11 moko 9375: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9376: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9377: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9378: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9379: else
1.8 moko 9380: save_LDFLAGS="$LDFLAGS"
9381: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.11 moko 9382: cat >conftest.$ac_ext <<_ACEOF
9383: /* confdefs.h. */
9384: _ACEOF
9385: cat confdefs.h >>conftest.$ac_ext
9386: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9387: /* end confdefs.h. */
1.8 moko 9388: int foo (void) { return 0; }
1.1 misha 9389: _ACEOF
1.11 moko 9390: rm -f conftest.$ac_objext conftest$ac_exeext
9391: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392: (eval $ac_link) 2>conftest.er1
9393: ac_status=$?
9394: grep -v '^ *+' conftest.er1 >conftest.err
9395: rm -f conftest.er1
9396: cat conftest.err >&5
9397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398: (exit $ac_status); } &&
9399: { ac_try='test -z "$ac_c_werror_flag"
9400: || test ! -s conftest.err'
9401: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402: (eval $ac_try) 2>&5
9403: ac_status=$?
9404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405: (exit $ac_status); }; } &&
9406: { ac_try='test -s conftest$ac_exeext'
9407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408: (eval $ac_try) 2>&5
9409: ac_status=$?
9410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411: (exit $ac_status); }; }; then
1.8 moko 9412: lt_cv_irix_exported_symbol=yes
1.1 misha 9413: else
1.11 moko 9414: echo "$as_me: failed program was:" >&5
9415: sed 's/^/| /' conftest.$ac_ext >&5
9416:
9417: lt_cv_irix_exported_symbol=no
1.1 misha 9418: fi
1.11 moko 9419: rm -f conftest.err conftest.$ac_objext \
9420: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9421: LDFLAGS="$save_LDFLAGS"
1.1 misha 9422: fi
1.11 moko 9423: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9424: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
1.8 moko 9425: if test "$lt_cv_irix_exported_symbol" = yes; then
9426: 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'
9427: fi
9428: else
9429: 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'
9430: 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'
9431: fi
9432: archive_cmds_need_lc='no'
9433: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9434: hardcode_libdir_separator=:
9435: inherit_rpath=yes
9436: link_all_deplibs=yes
9437: ;;
1.1 misha 9438:
1.8 moko 9439: netbsd*)
9440: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9441: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9442: else
9443: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9444: fi
9445: hardcode_libdir_flag_spec='-R$libdir'
9446: hardcode_direct=yes
9447: hardcode_shlibpath_var=no
9448: ;;
1.1 misha 9449:
1.8 moko 9450: newsos6)
9451: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452: hardcode_direct=yes
9453: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454: hardcode_libdir_separator=:
9455: hardcode_shlibpath_var=no
9456: ;;
1.1 misha 9457:
1.8 moko 9458: *nto* | *qnx*)
9459: ;;
1.1 misha 9460:
1.8 moko 9461: openbsd*)
9462: if test -f /usr/libexec/ld.so; then
9463: hardcode_direct=yes
9464: hardcode_shlibpath_var=no
9465: hardcode_direct_absolute=yes
9466: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9467: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9468: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9469: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9470: export_dynamic_flag_spec='${wl}-E'
9471: else
9472: case $host_os in
9473: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9474: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9475: hardcode_libdir_flag_spec='-R$libdir'
9476: ;;
9477: *)
9478: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9479: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9480: ;;
9481: esac
9482: fi
9483: else
9484: ld_shlibs=no
9485: fi
9486: ;;
1.1 misha 9487:
1.8 moko 9488: os2*)
9489: hardcode_libdir_flag_spec='-L$libdir'
9490: hardcode_minus_L=yes
9491: allow_undefined_flag=unsupported
9492: 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'
9493: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9494: ;;
1.1 misha 9495:
1.8 moko 9496: osf3*)
9497: if test "$GCC" = yes; then
9498: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9499: 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'
9500: else
9501: allow_undefined_flag=' -expect_unresolved \*'
9502: 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'
9503: fi
9504: archive_cmds_need_lc='no'
9505: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9506: hardcode_libdir_separator=:
9507: ;;
1.1 misha 9508:
1.8 moko 9509: osf4* | osf5*) # as osf3* with the addition of -msym flag
9510: if test "$GCC" = yes; then
9511: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9512: 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'
9513: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514: else
9515: allow_undefined_flag=' -expect_unresolved \*'
9516: 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'
9517: 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~
9518: $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'
9519:
9520: # Both c and cxx compiler support -rpath directly
9521: hardcode_libdir_flag_spec='-rpath $libdir'
9522: fi
9523: archive_cmds_need_lc='no'
9524: hardcode_libdir_separator=:
9525: ;;
9526:
9527: solaris*)
9528: no_undefined_flag=' -z defs'
9529: if test "$GCC" = yes; then
9530: wlarc='${wl}'
9531: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9532: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9533: $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'
9534: else
9535: case `$CC -V 2>&1` in
9536: *"Compilers 5.0"*)
9537: wlarc=''
9538: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9540: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9541: ;;
9542: *)
9543: wlarc='${wl}'
9544: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9545: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9546: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9547: ;;
9548: esac
9549: fi
9550: hardcode_libdir_flag_spec='-R$libdir'
9551: hardcode_shlibpath_var=no
9552: case $host_os in
9553: solaris2.[0-5] | solaris2.[0-5].*) ;;
9554: *)
9555: # The compiler driver will combine and reorder linker options,
9556: # but understands `-z linker_flag'. GCC discards it without `$wl',
9557: # but is careful enough not to reorder.
9558: # Supported since Solaris 2.6 (maybe 2.5.1?)
9559: if test "$GCC" = yes; then
9560: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9561: else
9562: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9563: fi
9564: ;;
9565: esac
9566: link_all_deplibs=yes
9567: ;;
9568:
9569: sunos4*)
9570: if test "x$host_vendor" = xsequent; then
9571: # Use $CC to link under sequent, because it throws in some extra .o
9572: # files that make .init and .fini sections work.
9573: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9574: else
9575: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9576: fi
9577: hardcode_libdir_flag_spec='-L$libdir'
9578: hardcode_direct=yes
9579: hardcode_minus_L=yes
9580: hardcode_shlibpath_var=no
9581: ;;
9582:
9583: sysv4)
9584: case $host_vendor in
9585: sni)
9586: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587: hardcode_direct=yes # is this really true???
9588: ;;
9589: siemens)
9590: ## LD is ld it makes a PLAMLIB
9591: ## CC just makes a GrossModule.
9592: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9593: reload_cmds='$CC -r -o $output$reload_objs'
9594: hardcode_direct=no
9595: ;;
9596: motorola)
9597: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9599: ;;
9600: esac
9601: runpath_var='LD_RUN_PATH'
9602: hardcode_shlibpath_var=no
9603: ;;
9604:
9605: sysv4.3*)
9606: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607: hardcode_shlibpath_var=no
9608: export_dynamic_flag_spec='-Bexport'
9609: ;;
9610:
9611: sysv4*MP*)
9612: if test -d /usr/nec; then
9613: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614: hardcode_shlibpath_var=no
9615: runpath_var=LD_RUN_PATH
9616: hardcode_runpath_var=yes
9617: ld_shlibs=yes
9618: fi
9619: ;;
9620:
9621: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9622: no_undefined_flag='${wl}-z,text'
9623: archive_cmds_need_lc=no
9624: hardcode_shlibpath_var=no
9625: runpath_var='LD_RUN_PATH'
9626:
9627: if test "$GCC" = yes; then
9628: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630: else
9631: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633: fi
9634: ;;
9635:
9636: sysv5* | sco3.2v5* | sco5v6*)
9637: # Note: We can NOT use -z defs as we might desire, because we do not
9638: # link with -lc, and that would cause any symbols used from libc to
9639: # always be unresolved, which means just about no library would
9640: # ever link correctly. If we're not using GNU ld we use -z text
9641: # though, which does catch some bad symbols but isn't as heavy-handed
9642: # as -z defs.
9643: no_undefined_flag='${wl}-z,text'
9644: allow_undefined_flag='${wl}-z,nodefs'
9645: archive_cmds_need_lc=no
9646: hardcode_shlibpath_var=no
9647: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9648: hardcode_libdir_separator=':'
9649: link_all_deplibs=yes
9650: export_dynamic_flag_spec='${wl}-Bexport'
9651: runpath_var='LD_RUN_PATH'
9652:
9653: if test "$GCC" = yes; then
9654: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656: else
9657: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9658: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659: fi
9660: ;;
1.1 misha 9661:
1.8 moko 9662: uts4*)
9663: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664: hardcode_libdir_flag_spec='-L$libdir'
9665: hardcode_shlibpath_var=no
1.1 misha 9666: ;;
1.8 moko 9667:
1.1 misha 9668: *)
1.8 moko 9669: ld_shlibs=no
1.1 misha 9670: ;;
1.8 moko 9671: esac
9672:
9673: if test x$host_vendor = xsni; then
9674: case $host in
9675: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9676: export_dynamic_flag_spec='${wl}-Blargedynsym'
9677: ;;
9678: esac
9679: fi
1.1 misha 9680: fi
9681:
1.11 moko 9682: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9683: echo "${ECHO_T}$ld_shlibs" >&6
1.8 moko 9684: test "$ld_shlibs" = no && can_build_shared=no
9685:
9686: with_gnu_ld=$with_gnu_ld
1.1 misha 9687:
9688:
9689:
9690:
9691:
9692:
9693:
9694:
9695:
9696:
9697:
9698:
9699:
9700:
9701:
1.8 moko 9702: #
9703: # Do we need to explicitly link libc?
9704: #
9705: case "x$archive_cmds_need_lc" in
9706: x|xyes)
9707: # Assume -lc should be added
9708: archive_cmds_need_lc=yes
9709:
9710: if test "$enable_shared" = yes && test "$GCC" = yes; then
9711: case $archive_cmds in
9712: *'~'*)
9713: # FIXME: we may have to deal with multi-command sequences.
9714: ;;
9715: '$CC '*)
9716: # Test whether the compiler implicitly links with -lc since on some
9717: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9718: # to ld, don't add -lc before -lgcc.
1.11 moko 9719: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9720: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9721: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9722: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9723: else
1.8 moko 9724: $RM conftest*
9725: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9726:
1.11 moko 9727: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 9728: (eval $ac_compile) 2>&5
9729: ac_status=$?
1.11 moko 9730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731: (exit $ac_status); } 2>conftest.err; then
1.8 moko 9732: soname=conftest
9733: lib=conftest
9734: libobjs=conftest.$ac_objext
9735: deplibs=
9736: wl=$lt_prog_compiler_wl
9737: pic_flag=$lt_prog_compiler_pic
9738: compiler_flags=-v
9739: linker_flags=-v
9740: verstring=
9741: output_objdir=.
9742: libname=conftest
9743: lt_save_allow_undefined_flag=$allow_undefined_flag
9744: allow_undefined_flag=
1.11 moko 9745: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 9746: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9747: ac_status=$?
1.11 moko 9748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749: (exit $ac_status); }
1.8 moko 9750: then
9751: lt_cv_archive_cmds_need_lc=no
9752: else
9753: lt_cv_archive_cmds_need_lc=yes
9754: fi
9755: allow_undefined_flag=$lt_save_allow_undefined_flag
9756: else
9757: cat conftest.err 1>&5
9758: fi
9759: $RM conftest*
9760:
1.1 misha 9761: fi
1.11 moko 9762: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9763: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
1.8 moko 9764: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9765: ;;
9766: esac
9767: fi
9768: ;;
9769: esac
9770:
9771:
9772:
9773:
9774:
9775:
9776:
9777:
9778:
9779:
9780:
9781:
9782:
9783:
9784:
9785:
9786:
9787:
9788:
9789:
9790:
9791:
9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
1.1 misha 9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901:
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
9921:
1.11 moko 9922: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9923: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.1 misha 9924:
1.8 moko 9925: if test "$GCC" = yes; then
9926: case $host_os in
9927: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9928: *) lt_awk_arg="/^libraries:/" ;;
9929: esac
9930: case $host_os in
9931: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9932: *) lt_sed_strip_eq="s,=/,/,g" ;;
9933: esac
9934: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9935: case $lt_search_path_spec in
9936: *\;*)
9937: # if the path contains ";" then we assume it to be the separator
9938: # otherwise default to the standard path separator (i.e. ":") - it is
9939: # assumed that no part of a normal pathname contains ";" but that should
9940: # okay in the real world where ";" in dirpaths is itself problematic.
9941: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9942: ;;
9943: *)
9944: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9945: ;;
9946: esac
9947: # Ok, now we have the path, separated by spaces, we can step through it
9948: # and add multilib dir if necessary.
9949: lt_tmp_lt_search_path_spec=
9950: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9951: for lt_sys_path in $lt_search_path_spec; do
9952: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9953: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9954: else
9955: test -d "$lt_sys_path" && \
9956: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9957: fi
9958: done
9959: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9960: BEGIN {RS=" "; FS="/|\n";} {
9961: lt_foo="";
9962: lt_count=0;
9963: for (lt_i = NF; lt_i > 0; lt_i--) {
9964: if ($lt_i != "" && $lt_i != ".") {
9965: if ($lt_i == "..") {
9966: lt_count++;
9967: } else {
9968: if (lt_count == 0) {
9969: lt_foo="/" $lt_i lt_foo;
9970: } else {
9971: lt_count--;
9972: }
9973: }
9974: }
9975: }
9976: if (lt_foo != "") { lt_freq[lt_foo]++; }
9977: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9978: }'`
9979: # AWK program above erroneously prepends '/' to C:/dos/paths
9980: # for these hosts.
9981: case $host_os in
9982: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9983: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9984: esac
9985: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 9986: else
1.8 moko 9987: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 9988: fi
1.8 moko 9989: library_names_spec=
9990: libname_spec='lib$name'
9991: soname_spec=
9992: shrext_cmds=".so"
9993: postinstall_cmds=
9994: postuninstall_cmds=
9995: finish_cmds=
9996: finish_eval=
9997: shlibpath_var=
9998: shlibpath_overrides_runpath=unknown
9999: version_type=none
10000: dynamic_linker="$host_os ld.so"
10001: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10002: need_lib_prefix=unknown
10003: hardcode_into_libs=no
10004:
10005: # when you set need_version to no, make sure it does not cause -set_version
10006: # flags to be left without arguments
10007: need_version=unknown
10008:
10009: case $host_os in
10010: aix3*)
10011: version_type=linux # correct to gnu/linux during the next big refactor
10012: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10013: shlibpath_var=LIBPATH
10014:
10015: # AIX 3 has no versioning support, so we append a major version to the name.
10016: soname_spec='${libname}${release}${shared_ext}$major'
10017: ;;
1.1 misha 10018:
1.8 moko 10019: aix[4-9]*)
10020: version_type=linux # correct to gnu/linux during the next big refactor
10021: need_lib_prefix=no
10022: need_version=no
10023: hardcode_into_libs=yes
10024: if test "$host_cpu" = ia64; then
10025: # AIX 5 supports IA64
10026: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10027: shlibpath_var=LD_LIBRARY_PATH
10028: else
10029: # With GCC up to 2.95.x, collect2 would create an import file
10030: # for dependence libraries. The import file would start with
10031: # the line `#! .'. This would cause the generated library to
10032: # depend on `.', always an invalid library. This was fixed in
10033: # development snapshots of GCC prior to 3.0.
10034: case $host_os in
10035: aix4 | aix4.[01] | aix4.[01].*)
10036: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10037: echo ' yes '
10038: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10039: :
10040: else
10041: can_build_shared=no
10042: fi
10043: ;;
10044: esac
10045: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10046: # soname into executable. Probably we can add versioning support to
10047: # collect2, so additional links can be useful in future.
10048: if test "$aix_use_runtimelinking" = yes; then
10049: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10050: # instead of lib<name>.a to let people know that these are not
10051: # typical AIX shared libraries.
10052: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 10053: else
1.8 moko 10054: # We preserve .a as extension for shared libraries through AIX4.2
10055: # and later when we are not doing run time linking.
10056: library_names_spec='${libname}${release}.a $libname.a'
10057: soname_spec='${libname}${release}${shared_ext}$major'
10058: fi
10059: shlibpath_var=LIBPATH
10060: fi
10061: ;;
10062:
10063: amigaos*)
10064: case $host_cpu in
10065: powerpc)
10066: # Since July 2007 AmigaOS4 officially supports .so libraries.
10067: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10068: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069: ;;
10070: m68k)
10071: library_names_spec='$libname.ixlibrary $libname.a'
10072: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10073: 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'
10074: ;;
10075: esac
10076: ;;
10077:
10078: beos*)
10079: library_names_spec='${libname}${shared_ext}'
10080: dynamic_linker="$host_os ld.so"
10081: shlibpath_var=LIBRARY_PATH
10082: ;;
10083:
10084: bsdi[45]*)
10085: version_type=linux # correct to gnu/linux during the next big refactor
10086: need_version=no
10087: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088: soname_spec='${libname}${release}${shared_ext}$major'
10089: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10090: shlibpath_var=LD_LIBRARY_PATH
10091: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10092: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10093: # the default ld.so.conf also contains /usr/contrib/lib and
10094: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10095: # libtool to hard-code these into programs
10096: ;;
10097:
10098: cygwin* | mingw* | pw32* | cegcc*)
10099: version_type=windows
10100: shrext_cmds=".dll"
10101: need_version=no
10102: need_lib_prefix=no
10103:
10104: case $GCC,$cc_basename in
10105: yes,*)
10106: # gcc
10107: library_names_spec='$libname.dll.a'
10108: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10109: postinstall_cmds='base_file=`basename \${file}`~
10110: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10111: dldir=$destdir/`dirname \$dlpath`~
10112: test -d \$dldir || mkdir -p \$dldir~
10113: $install_prog $dir/$dlname \$dldir/$dlname~
10114: chmod a+x \$dldir/$dlname~
10115: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10116: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10117: fi'
10118: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10119: dlpath=$dir/\$dldll~
10120: $RM \$dlpath'
10121: shlibpath_overrides_runpath=yes
10122:
10123: case $host_os in
10124: cygwin*)
10125: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10126: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10127:
10128: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10129: ;;
10130: mingw* | cegcc*)
10131: # MinGW DLLs use traditional 'lib' prefix
10132: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10133: ;;
10134: pw32*)
10135: # pw32 DLLs use 'pw' prefix rather than 'lib'
10136: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10137: ;;
10138: esac
10139: dynamic_linker='Win32 ld.exe'
10140: ;;
10141:
10142: *,cl*)
10143: # Native MSVC
10144: libname_spec='$name'
10145: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10146: library_names_spec='${libname}.dll.lib'
10147:
10148: case $build_os in
10149: mingw*)
10150: sys_lib_search_path_spec=
10151: lt_save_ifs=$IFS
10152: IFS=';'
10153: for lt_path in $LIB
10154: do
10155: IFS=$lt_save_ifs
10156: # Let DOS variable expansion print the short 8.3 style file name.
10157: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10158: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10159: done
10160: IFS=$lt_save_ifs
10161: # Convert to MSYS style.
10162: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10163: ;;
10164: cygwin*)
10165: # Convert to unix form, then to dos form, then back to unix form
10166: # but this time dos style (no spaces!) so that the unix form looks
10167: # like /cygdrive/c/PROGRA~1:/cygdr...
10168: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10169: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10170: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10171: ;;
10172: *)
10173: sys_lib_search_path_spec="$LIB"
10174: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10175: # It is most probably a Windows format PATH.
10176: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10177: else
10178: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10179: fi
10180: # FIXME: find the short name or the path components, as spaces are
10181: # common. (e.g. "Program Files" -> "PROGRA~1")
10182: ;;
10183: esac
10184:
10185: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10186: postinstall_cmds='base_file=`basename \${file}`~
10187: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10188: dldir=$destdir/`dirname \$dlpath`~
10189: test -d \$dldir || mkdir -p \$dldir~
10190: $install_prog $dir/$dlname \$dldir/$dlname'
10191: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10192: dlpath=$dir/\$dldll~
10193: $RM \$dlpath'
10194: shlibpath_overrides_runpath=yes
10195: dynamic_linker='Win32 link.exe'
10196: ;;
10197:
10198: *)
10199: # Assume MSVC wrapper
10200: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10201: dynamic_linker='Win32 ld.exe'
10202: ;;
10203: esac
10204: # FIXME: first we should search . and the directory the executable is in
10205: shlibpath_var=PATH
10206: ;;
10207:
10208: darwin* | rhapsody*)
10209: dynamic_linker="$host_os dyld"
10210: version_type=darwin
10211: need_lib_prefix=no
10212: need_version=no
10213: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10214: soname_spec='${libname}${release}${major}$shared_ext'
10215: shlibpath_overrides_runpath=yes
10216: shlibpath_var=DYLD_LIBRARY_PATH
10217: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 10218:
1.8 moko 10219: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10220: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10221: ;;
1.1 misha 10222:
1.8 moko 10223: dgux*)
10224: version_type=linux # correct to gnu/linux during the next big refactor
10225: need_lib_prefix=no
10226: need_version=no
10227: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10228: soname_spec='${libname}${release}${shared_ext}$major'
10229: shlibpath_var=LD_LIBRARY_PATH
10230: ;;
1.1 misha 10231:
1.8 moko 10232: freebsd* | dragonfly*)
10233: # DragonFly does not have aout. When/if they implement a new
10234: # versioning mechanism, adjust this.
10235: if test -x /usr/bin/objformat; then
10236: objformat=`/usr/bin/objformat`
1.1 misha 10237: else
1.8 moko 10238: case $host_os in
10239: freebsd[23].*) objformat=aout ;;
10240: *) objformat=elf ;;
10241: esac
1.1 misha 10242: fi
1.8 moko 10243: version_type=freebsd-$objformat
10244: case $version_type in
10245: freebsd-elf*)
10246: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10247: need_version=no
10248: need_lib_prefix=no
10249: ;;
10250: freebsd-*)
10251: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10252: need_version=yes
10253: ;;
10254: esac
10255: shlibpath_var=LD_LIBRARY_PATH
10256: case $host_os in
10257: freebsd2.*)
10258: shlibpath_overrides_runpath=yes
10259: ;;
10260: freebsd3.[01]* | freebsdelf3.[01]*)
10261: shlibpath_overrides_runpath=yes
10262: hardcode_into_libs=yes
10263: ;;
10264: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10265: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10266: shlibpath_overrides_runpath=no
10267: hardcode_into_libs=yes
10268: ;;
10269: *) # from 4.6 on, and DragonFly
10270: shlibpath_overrides_runpath=yes
10271: hardcode_into_libs=yes
10272: ;;
10273: esac
10274: ;;
10275:
10276: gnu*)
10277: version_type=linux # correct to gnu/linux during the next big refactor
10278: need_lib_prefix=no
10279: need_version=no
10280: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10281: soname_spec='${libname}${release}${shared_ext}$major'
10282: shlibpath_var=LD_LIBRARY_PATH
10283: shlibpath_overrides_runpath=no
10284: hardcode_into_libs=yes
10285: ;;
10286:
10287: haiku*)
10288: version_type=linux # correct to gnu/linux during the next big refactor
10289: need_lib_prefix=no
10290: need_version=no
10291: dynamic_linker="$host_os runtime_loader"
10292: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10293: soname_spec='${libname}${release}${shared_ext}$major'
10294: shlibpath_var=LIBRARY_PATH
10295: shlibpath_overrides_runpath=yes
10296: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10297: hardcode_into_libs=yes
10298: ;;
10299:
10300: hpux9* | hpux10* | hpux11*)
10301: # Give a soname corresponding to the major version so that dld.sl refuses to
10302: # link against other versions.
10303: version_type=sunos
10304: need_lib_prefix=no
10305: need_version=no
10306: case $host_cpu in
10307: ia64*)
10308: shrext_cmds='.so'
10309: hardcode_into_libs=yes
10310: dynamic_linker="$host_os dld.so"
10311: shlibpath_var=LD_LIBRARY_PATH
10312: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10313: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314: soname_spec='${libname}${release}${shared_ext}$major'
10315: if test "X$HPUX_IA64_MODE" = X32; then
10316: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10317: else
10318: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10319: fi
10320: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10321: ;;
10322: hppa*64*)
10323: shrext_cmds='.sl'
10324: hardcode_into_libs=yes
10325: dynamic_linker="$host_os dld.sl"
10326: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10327: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329: soname_spec='${libname}${release}${shared_ext}$major'
10330: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10331: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10332: ;;
10333: *)
10334: shrext_cmds='.sl'
10335: dynamic_linker="$host_os dld.sl"
10336: shlibpath_var=SHLIB_PATH
10337: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10338: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339: soname_spec='${libname}${release}${shared_ext}$major'
10340: ;;
10341: esac
10342: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10343: postinstall_cmds='chmod 555 $lib'
10344: # or fails outright, so override atomically:
10345: install_override_mode=555
10346: ;;
10347:
10348: interix[3-9]*)
10349: version_type=linux # correct to gnu/linux during the next big refactor
10350: need_lib_prefix=no
10351: need_version=no
10352: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10353: soname_spec='${libname}${release}${shared_ext}$major'
10354: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10355: shlibpath_var=LD_LIBRARY_PATH
10356: shlibpath_overrides_runpath=no
10357: hardcode_into_libs=yes
10358: ;;
10359:
10360: irix5* | irix6* | nonstopux*)
10361: case $host_os in
10362: nonstopux*) version_type=nonstopux ;;
10363: *)
10364: if test "$lt_cv_prog_gnu_ld" = yes; then
10365: version_type=linux # correct to gnu/linux during the next big refactor
10366: else
10367: version_type=irix
10368: fi ;;
10369: esac
10370: need_lib_prefix=no
10371: need_version=no
10372: soname_spec='${libname}${release}${shared_ext}$major'
10373: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10374: case $host_os in
10375: irix5* | nonstopux*)
10376: libsuff= shlibsuff=
10377: ;;
10378: *)
10379: case $LD in # libtool.m4 will add one of these switches to LD
10380: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10381: libsuff= shlibsuff= libmagic=32-bit;;
10382: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10383: libsuff=32 shlibsuff=N32 libmagic=N32;;
10384: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10385: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10386: *) libsuff= shlibsuff= libmagic=never-match;;
10387: esac
10388: ;;
10389: esac
10390: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10391: shlibpath_overrides_runpath=no
10392: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10393: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10394: hardcode_into_libs=yes
10395: ;;
10396:
10397: # No shared lib support for Linux oldld, aout, or coff.
10398: linux*oldld* | linux*aout* | linux*coff*)
10399: dynamic_linker=no
10400: ;;
10401:
10402: # This must be glibc/ELF.
10403: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10404: version_type=linux # correct to gnu/linux during the next big refactor
10405: need_lib_prefix=no
10406: need_version=no
10407: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408: soname_spec='${libname}${release}${shared_ext}$major'
10409: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10410: shlibpath_var=LD_LIBRARY_PATH
10411: shlibpath_overrides_runpath=no
10412:
10413: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 10414: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10415: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10416: else
10417: lt_cv_shlibpath_overrides_runpath=no
10418: save_LDFLAGS=$LDFLAGS
10419: save_libdir=$libdir
10420: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10421: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.11 moko 10422: cat >conftest.$ac_ext <<_ACEOF
10423: /* confdefs.h. */
10424: _ACEOF
10425: cat confdefs.h >>conftest.$ac_ext
10426: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10427: /* end confdefs.h. */
10428:
10429: int
10430: main ()
10431: {
10432:
10433: ;
10434: return 0;
10435: }
10436: _ACEOF
1.11 moko 10437: rm -f conftest.$ac_objext conftest$ac_exeext
10438: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439: (eval $ac_link) 2>conftest.er1
10440: ac_status=$?
10441: grep -v '^ *+' conftest.er1 >conftest.err
10442: rm -f conftest.er1
10443: cat conftest.err >&5
10444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445: (exit $ac_status); } &&
10446: { ac_try='test -z "$ac_c_werror_flag"
10447: || test ! -s conftest.err'
10448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449: (eval $ac_try) 2>&5
10450: ac_status=$?
10451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452: (exit $ac_status); }; } &&
10453: { ac_try='test -s conftest$ac_exeext'
10454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455: (eval $ac_try) 2>&5
10456: ac_status=$?
10457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458: (exit $ac_status); }; }; then
10459: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 10460: lt_cv_shlibpath_overrides_runpath=yes
10461: fi
1.11 moko 10462:
10463: else
10464: echo "$as_me: failed program was:" >&5
10465: sed 's/^/| /' conftest.$ac_ext >&5
10466:
1.8 moko 10467: fi
1.11 moko 10468: rm -f conftest.err conftest.$ac_objext \
10469: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10470: LDFLAGS=$save_LDFLAGS
10471: libdir=$save_libdir
10472:
10473: fi
10474:
10475: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10476:
10477: # This implies no fast_install, which is unacceptable.
10478: # Some rework will be needed to allow for fast_install
10479: # before this can be enabled.
10480: hardcode_into_libs=yes
10481:
10482: # Append ld.so.conf contents to the search path
10483: if test -f /etc/ld.so.conf; then
10484: 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' ' '`
10485: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10486: fi
10487:
10488: # We used to test for /lib/ld.so.1 and disable shared libraries on
10489: # powerpc, because MkLinux only supported shared libraries with the
10490: # GNU dynamic linker. Since this was broken with cross compilers,
10491: # most powerpc-linux boxes support dynamic linking these days and
10492: # people can always --disable-shared, the test was removed, and we
10493: # assume the GNU/Linux dynamic linker is in use.
10494: dynamic_linker='GNU/Linux ld.so'
10495: ;;
10496:
10497: netbsd*)
10498: version_type=sunos
10499: need_lib_prefix=no
10500: need_version=no
10501: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10502: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10503: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10504: dynamic_linker='NetBSD (a.out) ld.so'
10505: else
10506: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10507: soname_spec='${libname}${release}${shared_ext}$major'
10508: dynamic_linker='NetBSD ld.elf_so'
10509: fi
10510: shlibpath_var=LD_LIBRARY_PATH
10511: shlibpath_overrides_runpath=yes
10512: hardcode_into_libs=yes
10513: ;;
10514:
10515: newsos6)
10516: version_type=linux # correct to gnu/linux during the next big refactor
10517: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518: shlibpath_var=LD_LIBRARY_PATH
10519: shlibpath_overrides_runpath=yes
10520: ;;
10521:
10522: *nto* | *qnx*)
10523: version_type=qnx
10524: need_lib_prefix=no
10525: need_version=no
10526: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527: soname_spec='${libname}${release}${shared_ext}$major'
10528: shlibpath_var=LD_LIBRARY_PATH
10529: shlibpath_overrides_runpath=no
10530: hardcode_into_libs=yes
10531: dynamic_linker='ldqnx.so'
10532: ;;
10533:
10534: openbsd*)
10535: version_type=sunos
10536: sys_lib_dlsearch_path_spec="/usr/lib"
10537: need_lib_prefix=no
10538: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10539: case $host_os in
10540: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10541: *) need_version=no ;;
10542: esac
10543: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10544: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10545: shlibpath_var=LD_LIBRARY_PATH
10546: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10547: case $host_os in
10548: openbsd2.[89] | openbsd2.[89].*)
10549: shlibpath_overrides_runpath=no
10550: ;;
10551: *)
10552: shlibpath_overrides_runpath=yes
10553: ;;
10554: esac
1.1 misha 10555: else
1.8 moko 10556: shlibpath_overrides_runpath=yes
10557: fi
10558: ;;
10559:
10560: os2*)
10561: libname_spec='$name'
10562: shrext_cmds=".dll"
10563: need_lib_prefix=no
10564: library_names_spec='$libname${shared_ext} $libname.a'
10565: dynamic_linker='OS/2 ld.exe'
10566: shlibpath_var=LIBPATH
10567: ;;
10568:
10569: osf3* | osf4* | osf5*)
10570: version_type=osf
10571: need_lib_prefix=no
10572: need_version=no
10573: soname_spec='${libname}${release}${shared_ext}$major'
10574: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575: shlibpath_var=LD_LIBRARY_PATH
10576: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10577: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10578: ;;
10579:
10580: rdos*)
10581: dynamic_linker=no
10582: ;;
10583:
10584: solaris*)
10585: version_type=linux # correct to gnu/linux during the next big refactor
10586: need_lib_prefix=no
10587: need_version=no
10588: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589: soname_spec='${libname}${release}${shared_ext}$major'
10590: shlibpath_var=LD_LIBRARY_PATH
10591: shlibpath_overrides_runpath=yes
10592: hardcode_into_libs=yes
10593: # ldd complains unless libraries are executable
10594: postinstall_cmds='chmod +x $lib'
10595: ;;
10596:
10597: sunos4*)
10598: version_type=sunos
10599: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10600: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10601: shlibpath_var=LD_LIBRARY_PATH
10602: shlibpath_overrides_runpath=yes
10603: if test "$with_gnu_ld" = yes; then
10604: need_lib_prefix=no
10605: fi
10606: need_version=yes
10607: ;;
10608:
10609: sysv4 | sysv4.3*)
10610: version_type=linux # correct to gnu/linux during the next big refactor
10611: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612: soname_spec='${libname}${release}${shared_ext}$major'
10613: shlibpath_var=LD_LIBRARY_PATH
10614: case $host_vendor in
10615: sni)
10616: shlibpath_overrides_runpath=no
10617: need_lib_prefix=no
10618: runpath_var=LD_RUN_PATH
10619: ;;
10620: siemens)
10621: need_lib_prefix=no
10622: ;;
10623: motorola)
10624: need_lib_prefix=no
10625: need_version=no
10626: shlibpath_overrides_runpath=no
10627: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10628: ;;
10629: esac
10630: ;;
10631:
10632: sysv4*MP*)
10633: if test -d /usr/nec ;then
10634: version_type=linux # correct to gnu/linux during the next big refactor
10635: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10636: soname_spec='$libname${shared_ext}.$major'
10637: shlibpath_var=LD_LIBRARY_PATH
10638: fi
10639: ;;
10640:
10641: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642: version_type=freebsd-elf
10643: need_lib_prefix=no
10644: need_version=no
10645: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10646: soname_spec='${libname}${release}${shared_ext}$major'
10647: shlibpath_var=LD_LIBRARY_PATH
10648: shlibpath_overrides_runpath=yes
10649: hardcode_into_libs=yes
10650: if test "$with_gnu_ld" = yes; then
10651: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10652: else
10653: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10654: case $host_os in
10655: sco3.2v5*)
10656: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10657: ;;
10658: esac
10659: fi
10660: sys_lib_dlsearch_path_spec='/usr/lib'
10661: ;;
10662:
10663: tpf*)
10664: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10665: version_type=linux # correct to gnu/linux during the next big refactor
10666: need_lib_prefix=no
10667: need_version=no
10668: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669: shlibpath_var=LD_LIBRARY_PATH
10670: shlibpath_overrides_runpath=no
10671: hardcode_into_libs=yes
10672: ;;
10673:
10674: uts4*)
10675: version_type=linux # correct to gnu/linux during the next big refactor
10676: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677: soname_spec='${libname}${release}${shared_ext}$major'
10678: shlibpath_var=LD_LIBRARY_PATH
10679: ;;
10680:
10681: *)
10682: dynamic_linker=no
10683: ;;
10684: esac
1.11 moko 10685: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10686: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 10687: test "$dynamic_linker" = no && can_build_shared=no
10688:
10689: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10690: if test "$GCC" = yes; then
10691: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10692: fi
10693:
10694: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10695: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10696: fi
10697: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10698: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10699: fi
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
10788:
10789:
10790:
10791:
1.11 moko 10792: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10793: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 10794: hardcode_action=
10795: if test -n "$hardcode_libdir_flag_spec" ||
10796: test -n "$runpath_var" ||
10797: test "X$hardcode_automatic" = "Xyes" ; then
10798:
10799: # We can hardcode non-existent directories.
10800: if test "$hardcode_direct" != no &&
10801: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10802: # have to relink, otherwise we might link with an installed library
10803: # when we should be linking with a yet-to-be-installed one
10804: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10805: test "$hardcode_minus_L" != no; then
10806: # Linking always hardcodes the temporary library directory.
10807: hardcode_action=relink
10808: else
10809: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10810: hardcode_action=immediate
10811: fi
10812: else
10813: # We cannot hardcode anything, or else we can only hardcode existing
10814: # directories.
10815: hardcode_action=unsupported
10816: fi
1.11 moko 10817: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10818: echo "${ECHO_T}$hardcode_action" >&6
1.8 moko 10819:
10820: if test "$hardcode_action" = relink ||
10821: test "$inherit_rpath" = yes; then
10822: # Fast installation is not supported
10823: enable_fast_install=no
10824: elif test "$shlibpath_overrides_runpath" = yes ||
10825: test "$enable_shared" = no; then
10826: # Fast installation is not necessary
10827: enable_fast_install=needless
10828: fi
10829:
10830:
10831:
10832:
10833:
10834:
10835: if test "x$enable_dlopen" != xyes; then
10836: enable_dlopen=unknown
10837: enable_dlopen_self=unknown
10838: enable_dlopen_self_static=unknown
10839: else
10840: lt_cv_dlopen=no
10841: lt_cv_dlopen_libs=
10842:
10843: case $host_os in
10844: beos*)
10845: lt_cv_dlopen="load_add_on"
10846: lt_cv_dlopen_libs=
10847: lt_cv_dlopen_self=yes
10848: ;;
10849:
10850: mingw* | pw32* | cegcc*)
10851: lt_cv_dlopen="LoadLibrary"
10852: lt_cv_dlopen_libs=
10853: ;;
10854:
10855: cygwin*)
10856: lt_cv_dlopen="dlopen"
10857: lt_cv_dlopen_libs=
10858: ;;
10859:
10860: darwin*)
10861: # if libdl is installed we need to link against it
1.11 moko 10862: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10863: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10864: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10865: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10866: else
10867: ac_check_lib_save_LIBS=$LIBS
10868: LIBS="-ldl $LIBS"
1.11 moko 10869: cat >conftest.$ac_ext <<_ACEOF
10870: /* confdefs.h. */
10871: _ACEOF
10872: cat confdefs.h >>conftest.$ac_ext
10873: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10874: /* end confdefs.h. */
10875:
1.11 moko 10876: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 10877: #ifdef __cplusplus
10878: extern "C"
10879: #endif
1.11 moko 10880: /* We use char because int might match the return type of a gcc2
10881: builtin and then its argument prototype would still apply. */
1.8 moko 10882: char dlopen ();
10883: int
10884: main ()
10885: {
1.11 moko 10886: dlopen ();
1.8 moko 10887: ;
10888: return 0;
10889: }
10890: _ACEOF
1.11 moko 10891: rm -f conftest.$ac_objext conftest$ac_exeext
10892: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893: (eval $ac_link) 2>conftest.er1
10894: ac_status=$?
10895: grep -v '^ *+' conftest.er1 >conftest.err
10896: rm -f conftest.er1
10897: cat conftest.err >&5
10898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899: (exit $ac_status); } &&
10900: { ac_try='test -z "$ac_c_werror_flag"
10901: || test ! -s conftest.err'
10902: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903: (eval $ac_try) 2>&5
10904: ac_status=$?
10905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906: (exit $ac_status); }; } &&
10907: { ac_try='test -s conftest$ac_exeext'
10908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909: (eval $ac_try) 2>&5
10910: ac_status=$?
10911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912: (exit $ac_status); }; }; then
1.8 moko 10913: ac_cv_lib_dl_dlopen=yes
10914: else
1.11 moko 10915: echo "$as_me: failed program was:" >&5
10916: sed 's/^/| /' conftest.$ac_ext >&5
10917:
10918: ac_cv_lib_dl_dlopen=no
1.8 moko 10919: fi
1.11 moko 10920: rm -f conftest.err conftest.$ac_objext \
10921: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10922: LIBS=$ac_check_lib_save_LIBS
10923: fi
1.11 moko 10924: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10925: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10926: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 10927: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10928: else
10929:
10930: lt_cv_dlopen="dyld"
10931: lt_cv_dlopen_libs=
10932: lt_cv_dlopen_self=yes
10933:
10934: fi
10935:
10936: ;;
10937:
10938: *)
1.11 moko 10939: echo "$as_me:$LINENO: checking for shl_load" >&5
10940: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10941: if test "${ac_cv_func_shl_load+set}" = set; then
10942: echo $ECHO_N "(cached) $ECHO_C" >&6
10943: else
10944: cat >conftest.$ac_ext <<_ACEOF
10945: /* confdefs.h. */
10946: _ACEOF
10947: cat confdefs.h >>conftest.$ac_ext
10948: cat >>conftest.$ac_ext <<_ACEOF
10949: /* end confdefs.h. */
10950: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10951: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10952: #define shl_load innocuous_shl_load
10953:
10954: /* System header to define __stub macros and hopefully few prototypes,
10955: which can conflict with char shl_load (); below.
10956: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10957: <limits.h> exists even on freestanding compilers. */
10958:
10959: #ifdef __STDC__
10960: # include <limits.h>
10961: #else
10962: # include <assert.h>
10963: #endif
10964:
10965: #undef shl_load
10966:
10967: /* Override any gcc2 internal prototype to avoid an error. */
10968: #ifdef __cplusplus
10969: extern "C"
10970: {
10971: #endif
10972: /* We use char because int might match the return type of a gcc2
10973: builtin and then its argument prototype would still apply. */
10974: char shl_load ();
10975: /* The GNU C library defines this for functions which it implements
10976: to always fail with ENOSYS. Some functions are actually named
10977: something starting with __ and the normal name is an alias. */
10978: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10979: choke me
10980: #else
10981: char (*f) () = shl_load;
10982: #endif
10983: #ifdef __cplusplus
10984: }
10985: #endif
10986:
10987: int
10988: main ()
10989: {
10990: return f != shl_load;
10991: ;
10992: return 0;
10993: }
10994: _ACEOF
10995: rm -f conftest.$ac_objext conftest$ac_exeext
10996: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10997: (eval $ac_link) 2>conftest.er1
10998: ac_status=$?
10999: grep -v '^ *+' conftest.er1 >conftest.err
11000: rm -f conftest.er1
11001: cat conftest.err >&5
11002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003: (exit $ac_status); } &&
11004: { ac_try='test -z "$ac_c_werror_flag"
11005: || test ! -s conftest.err'
11006: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007: (eval $ac_try) 2>&5
11008: ac_status=$?
11009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010: (exit $ac_status); }; } &&
11011: { ac_try='test -s conftest$ac_exeext'
11012: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013: (eval $ac_try) 2>&5
11014: ac_status=$?
11015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016: (exit $ac_status); }; }; then
11017: ac_cv_func_shl_load=yes
11018: else
11019: echo "$as_me: failed program was:" >&5
11020: sed 's/^/| /' conftest.$ac_ext >&5
11021:
11022: ac_cv_func_shl_load=no
11023: fi
11024: rm -f conftest.err conftest.$ac_objext \
11025: conftest$ac_exeext conftest.$ac_ext
11026: fi
11027: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11028: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11029: if test $ac_cv_func_shl_load = yes; then
1.8 moko 11030: lt_cv_dlopen="shl_load"
11031: else
1.11 moko 11032: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11033: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11034: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11035: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11036: else
11037: ac_check_lib_save_LIBS=$LIBS
11038: LIBS="-ldld $LIBS"
1.11 moko 11039: cat >conftest.$ac_ext <<_ACEOF
11040: /* confdefs.h. */
11041: _ACEOF
11042: cat confdefs.h >>conftest.$ac_ext
11043: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11044: /* end confdefs.h. */
11045:
1.11 moko 11046: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11047: #ifdef __cplusplus
11048: extern "C"
11049: #endif
1.11 moko 11050: /* We use char because int might match the return type of a gcc2
11051: builtin and then its argument prototype would still apply. */
1.8 moko 11052: char shl_load ();
11053: int
11054: main ()
11055: {
1.11 moko 11056: shl_load ();
1.8 moko 11057: ;
11058: return 0;
11059: }
11060: _ACEOF
1.11 moko 11061: rm -f conftest.$ac_objext conftest$ac_exeext
11062: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063: (eval $ac_link) 2>conftest.er1
11064: ac_status=$?
11065: grep -v '^ *+' conftest.er1 >conftest.err
11066: rm -f conftest.er1
11067: cat conftest.err >&5
11068: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069: (exit $ac_status); } &&
11070: { ac_try='test -z "$ac_c_werror_flag"
11071: || test ! -s conftest.err'
11072: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073: (eval $ac_try) 2>&5
11074: ac_status=$?
11075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076: (exit $ac_status); }; } &&
11077: { ac_try='test -s conftest$ac_exeext'
11078: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079: (eval $ac_try) 2>&5
11080: ac_status=$?
11081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082: (exit $ac_status); }; }; then
1.8 moko 11083: ac_cv_lib_dld_shl_load=yes
11084: else
1.11 moko 11085: echo "$as_me: failed program was:" >&5
11086: sed 's/^/| /' conftest.$ac_ext >&5
11087:
11088: ac_cv_lib_dld_shl_load=no
1.8 moko 11089: fi
1.11 moko 11090: rm -f conftest.err conftest.$ac_objext \
11091: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11092: LIBS=$ac_check_lib_save_LIBS
11093: fi
1.11 moko 11094: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11095: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11096: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 11097: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11098: else
1.11 moko 11099: echo "$as_me:$LINENO: checking for dlopen" >&5
11100: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11101: if test "${ac_cv_func_dlopen+set}" = set; then
11102: echo $ECHO_N "(cached) $ECHO_C" >&6
11103: else
11104: cat >conftest.$ac_ext <<_ACEOF
11105: /* confdefs.h. */
11106: _ACEOF
11107: cat confdefs.h >>conftest.$ac_ext
11108: cat >>conftest.$ac_ext <<_ACEOF
11109: /* end confdefs.h. */
11110: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11111: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11112: #define dlopen innocuous_dlopen
11113:
11114: /* System header to define __stub macros and hopefully few prototypes,
11115: which can conflict with char dlopen (); below.
11116: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117: <limits.h> exists even on freestanding compilers. */
11118:
11119: #ifdef __STDC__
11120: # include <limits.h>
11121: #else
11122: # include <assert.h>
11123: #endif
11124:
11125: #undef dlopen
11126:
11127: /* Override any gcc2 internal prototype to avoid an error. */
11128: #ifdef __cplusplus
11129: extern "C"
11130: {
11131: #endif
11132: /* We use char because int might match the return type of a gcc2
11133: builtin and then its argument prototype would still apply. */
11134: char dlopen ();
11135: /* The GNU C library defines this for functions which it implements
11136: to always fail with ENOSYS. Some functions are actually named
11137: something starting with __ and the normal name is an alias. */
11138: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11139: choke me
11140: #else
11141: char (*f) () = dlopen;
11142: #endif
11143: #ifdef __cplusplus
11144: }
11145: #endif
11146:
11147: int
11148: main ()
11149: {
11150: return f != dlopen;
11151: ;
11152: return 0;
11153: }
11154: _ACEOF
11155: rm -f conftest.$ac_objext conftest$ac_exeext
11156: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11157: (eval $ac_link) 2>conftest.er1
11158: ac_status=$?
11159: grep -v '^ *+' conftest.er1 >conftest.err
11160: rm -f conftest.er1
11161: cat conftest.err >&5
11162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163: (exit $ac_status); } &&
11164: { ac_try='test -z "$ac_c_werror_flag"
11165: || test ! -s conftest.err'
11166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167: (eval $ac_try) 2>&5
11168: ac_status=$?
11169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170: (exit $ac_status); }; } &&
11171: { ac_try='test -s conftest$ac_exeext'
11172: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173: (eval $ac_try) 2>&5
11174: ac_status=$?
11175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176: (exit $ac_status); }; }; then
11177: ac_cv_func_dlopen=yes
11178: else
11179: echo "$as_me: failed program was:" >&5
11180: sed 's/^/| /' conftest.$ac_ext >&5
11181:
11182: ac_cv_func_dlopen=no
11183: fi
11184: rm -f conftest.err conftest.$ac_objext \
11185: conftest$ac_exeext conftest.$ac_ext
11186: fi
11187: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11188: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11189: if test $ac_cv_func_dlopen = yes; then
1.8 moko 11190: lt_cv_dlopen="dlopen"
11191: else
1.11 moko 11192: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11193: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11194: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11195: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11196: else
11197: ac_check_lib_save_LIBS=$LIBS
11198: LIBS="-ldl $LIBS"
1.11 moko 11199: cat >conftest.$ac_ext <<_ACEOF
11200: /* confdefs.h. */
11201: _ACEOF
11202: cat confdefs.h >>conftest.$ac_ext
11203: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11204: /* end confdefs.h. */
11205:
1.11 moko 11206: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11207: #ifdef __cplusplus
11208: extern "C"
11209: #endif
1.11 moko 11210: /* We use char because int might match the return type of a gcc2
11211: builtin and then its argument prototype would still apply. */
1.8 moko 11212: char dlopen ();
11213: int
11214: main ()
11215: {
1.11 moko 11216: dlopen ();
1.8 moko 11217: ;
11218: return 0;
11219: }
11220: _ACEOF
1.11 moko 11221: rm -f conftest.$ac_objext conftest$ac_exeext
11222: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223: (eval $ac_link) 2>conftest.er1
11224: ac_status=$?
11225: grep -v '^ *+' conftest.er1 >conftest.err
11226: rm -f conftest.er1
11227: cat conftest.err >&5
11228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229: (exit $ac_status); } &&
11230: { ac_try='test -z "$ac_c_werror_flag"
11231: || test ! -s conftest.err'
11232: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233: (eval $ac_try) 2>&5
11234: ac_status=$?
11235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236: (exit $ac_status); }; } &&
11237: { ac_try='test -s conftest$ac_exeext'
11238: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239: (eval $ac_try) 2>&5
11240: ac_status=$?
11241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242: (exit $ac_status); }; }; then
1.8 moko 11243: ac_cv_lib_dl_dlopen=yes
11244: else
1.11 moko 11245: echo "$as_me: failed program was:" >&5
11246: sed 's/^/| /' conftest.$ac_ext >&5
11247:
11248: ac_cv_lib_dl_dlopen=no
1.8 moko 11249: fi
1.11 moko 11250: rm -f conftest.err conftest.$ac_objext \
11251: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11252: LIBS=$ac_check_lib_save_LIBS
11253: fi
1.11 moko 11254: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11255: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11256: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 11257: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11258: else
1.11 moko 11259: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11260: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11261: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11262: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11263: else
11264: ac_check_lib_save_LIBS=$LIBS
11265: LIBS="-lsvld $LIBS"
1.11 moko 11266: cat >conftest.$ac_ext <<_ACEOF
11267: /* confdefs.h. */
11268: _ACEOF
11269: cat confdefs.h >>conftest.$ac_ext
11270: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11271: /* end confdefs.h. */
11272:
1.11 moko 11273: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11274: #ifdef __cplusplus
11275: extern "C"
11276: #endif
1.11 moko 11277: /* We use char because int might match the return type of a gcc2
11278: builtin and then its argument prototype would still apply. */
1.8 moko 11279: char dlopen ();
11280: int
11281: main ()
11282: {
1.11 moko 11283: dlopen ();
1.8 moko 11284: ;
11285: return 0;
11286: }
11287: _ACEOF
1.11 moko 11288: rm -f conftest.$ac_objext conftest$ac_exeext
11289: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290: (eval $ac_link) 2>conftest.er1
11291: ac_status=$?
11292: grep -v '^ *+' conftest.er1 >conftest.err
11293: rm -f conftest.er1
11294: cat conftest.err >&5
11295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296: (exit $ac_status); } &&
11297: { ac_try='test -z "$ac_c_werror_flag"
11298: || test ! -s conftest.err'
11299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300: (eval $ac_try) 2>&5
11301: ac_status=$?
11302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303: (exit $ac_status); }; } &&
11304: { ac_try='test -s conftest$ac_exeext'
11305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306: (eval $ac_try) 2>&5
11307: ac_status=$?
11308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309: (exit $ac_status); }; }; then
1.8 moko 11310: ac_cv_lib_svld_dlopen=yes
11311: else
1.11 moko 11312: echo "$as_me: failed program was:" >&5
11313: sed 's/^/| /' conftest.$ac_ext >&5
11314:
11315: ac_cv_lib_svld_dlopen=no
1.8 moko 11316: fi
1.11 moko 11317: rm -f conftest.err conftest.$ac_objext \
11318: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11319: LIBS=$ac_check_lib_save_LIBS
11320: fi
1.11 moko 11321: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11322: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11323: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 11324: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11325: else
1.11 moko 11326: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11327: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11328: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11329: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11330: else
11331: ac_check_lib_save_LIBS=$LIBS
11332: LIBS="-ldld $LIBS"
1.11 moko 11333: cat >conftest.$ac_ext <<_ACEOF
11334: /* confdefs.h. */
11335: _ACEOF
11336: cat confdefs.h >>conftest.$ac_ext
11337: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11338: /* end confdefs.h. */
11339:
1.11 moko 11340: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11341: #ifdef __cplusplus
11342: extern "C"
11343: #endif
1.11 moko 11344: /* We use char because int might match the return type of a gcc2
11345: builtin and then its argument prototype would still apply. */
1.8 moko 11346: char dld_link ();
11347: int
11348: main ()
11349: {
1.11 moko 11350: dld_link ();
1.8 moko 11351: ;
11352: return 0;
11353: }
11354: _ACEOF
1.11 moko 11355: rm -f conftest.$ac_objext conftest$ac_exeext
11356: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357: (eval $ac_link) 2>conftest.er1
11358: ac_status=$?
11359: grep -v '^ *+' conftest.er1 >conftest.err
11360: rm -f conftest.er1
11361: cat conftest.err >&5
11362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363: (exit $ac_status); } &&
11364: { ac_try='test -z "$ac_c_werror_flag"
11365: || test ! -s conftest.err'
11366: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367: (eval $ac_try) 2>&5
11368: ac_status=$?
11369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370: (exit $ac_status); }; } &&
11371: { ac_try='test -s conftest$ac_exeext'
11372: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373: (eval $ac_try) 2>&5
11374: ac_status=$?
11375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376: (exit $ac_status); }; }; then
1.8 moko 11377: ac_cv_lib_dld_dld_link=yes
11378: else
1.11 moko 11379: echo "$as_me: failed program was:" >&5
11380: sed 's/^/| /' conftest.$ac_ext >&5
11381:
11382: ac_cv_lib_dld_dld_link=no
1.8 moko 11383: fi
1.11 moko 11384: rm -f conftest.err conftest.$ac_objext \
11385: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11386: LIBS=$ac_check_lib_save_LIBS
11387: fi
1.11 moko 11388: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11389: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11390: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 11391: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11392: fi
11393:
11394:
11395: fi
11396:
11397:
11398: fi
11399:
11400:
11401: fi
11402:
11403:
11404: fi
11405:
11406:
11407: fi
11408:
11409: ;;
11410: esac
11411:
11412: if test "x$lt_cv_dlopen" != xno; then
11413: enable_dlopen=yes
11414: else
11415: enable_dlopen=no
11416: fi
11417:
11418: case $lt_cv_dlopen in
11419: dlopen)
11420: save_CPPFLAGS="$CPPFLAGS"
11421: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11422:
11423: save_LDFLAGS="$LDFLAGS"
11424: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11425:
11426: save_LIBS="$LIBS"
11427: LIBS="$lt_cv_dlopen_libs $LIBS"
11428:
1.11 moko 11429: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11430: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11431: if test "${lt_cv_dlopen_self+set}" = set; then
11432: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11433: else
11434: if test "$cross_compiling" = yes; then :
11435: lt_cv_dlopen_self=cross
11436: else
11437: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11438: lt_status=$lt_dlunknown
11439: cat > conftest.$ac_ext <<_LT_EOF
11440: #line $LINENO "configure"
11441: #include "confdefs.h"
11442:
11443: #if HAVE_DLFCN_H
11444: #include <dlfcn.h>
11445: #endif
11446:
11447: #include <stdio.h>
11448:
11449: #ifdef RTLD_GLOBAL
11450: # define LT_DLGLOBAL RTLD_GLOBAL
11451: #else
11452: # ifdef DL_GLOBAL
11453: # define LT_DLGLOBAL DL_GLOBAL
11454: # else
11455: # define LT_DLGLOBAL 0
11456: # endif
11457: #endif
11458:
11459: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11460: find out it does not work in some platform. */
11461: #ifndef LT_DLLAZY_OR_NOW
11462: # ifdef RTLD_LAZY
11463: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11464: # else
11465: # ifdef DL_LAZY
11466: # define LT_DLLAZY_OR_NOW DL_LAZY
11467: # else
11468: # ifdef RTLD_NOW
11469: # define LT_DLLAZY_OR_NOW RTLD_NOW
11470: # else
11471: # ifdef DL_NOW
11472: # define LT_DLLAZY_OR_NOW DL_NOW
11473: # else
11474: # define LT_DLLAZY_OR_NOW 0
11475: # endif
11476: # endif
11477: # endif
11478: # endif
11479: #endif
11480:
11481: /* When -fvisbility=hidden is used, assume the code has been annotated
11482: correspondingly for the symbols needed. */
11483: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11484: int fnord () __attribute__((visibility("default")));
11485: #endif
11486:
11487: int fnord () { return 42; }
11488: int main ()
11489: {
11490: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11491: int status = $lt_dlunknown;
11492:
11493: if (self)
11494: {
11495: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11496: else
11497: {
11498: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11499: else puts (dlerror ());
11500: }
11501: /* dlclose (self); */
11502: }
11503: else
11504: puts (dlerror ());
11505:
11506: return status;
11507: }
11508: _LT_EOF
1.11 moko 11509: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11510: (eval $ac_link) 2>&5
11511: ac_status=$?
1.11 moko 11512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11514: (./conftest; exit; ) >&5 2>/dev/null
11515: lt_status=$?
11516: case x$lt_status in
11517: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11518: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11519: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11520: esac
11521: else :
11522: # compilation failed
11523: lt_cv_dlopen_self=no
11524: fi
11525: fi
11526: rm -fr conftest*
11527:
11528:
11529: fi
1.11 moko 11530: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11531: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.8 moko 11532:
11533: if test "x$lt_cv_dlopen_self" = xyes; then
11534: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.11 moko 11535: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11536: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11537: if test "${lt_cv_dlopen_self_static+set}" = set; then
11538: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11539: else
11540: if test "$cross_compiling" = yes; then :
11541: lt_cv_dlopen_self_static=cross
11542: else
11543: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11544: lt_status=$lt_dlunknown
11545: cat > conftest.$ac_ext <<_LT_EOF
11546: #line $LINENO "configure"
11547: #include "confdefs.h"
11548:
11549: #if HAVE_DLFCN_H
11550: #include <dlfcn.h>
11551: #endif
11552:
11553: #include <stdio.h>
11554:
11555: #ifdef RTLD_GLOBAL
11556: # define LT_DLGLOBAL RTLD_GLOBAL
11557: #else
11558: # ifdef DL_GLOBAL
11559: # define LT_DLGLOBAL DL_GLOBAL
11560: # else
11561: # define LT_DLGLOBAL 0
11562: # endif
11563: #endif
11564:
11565: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11566: find out it does not work in some platform. */
11567: #ifndef LT_DLLAZY_OR_NOW
11568: # ifdef RTLD_LAZY
11569: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11570: # else
11571: # ifdef DL_LAZY
11572: # define LT_DLLAZY_OR_NOW DL_LAZY
11573: # else
11574: # ifdef RTLD_NOW
11575: # define LT_DLLAZY_OR_NOW RTLD_NOW
11576: # else
11577: # ifdef DL_NOW
11578: # define LT_DLLAZY_OR_NOW DL_NOW
11579: # else
11580: # define LT_DLLAZY_OR_NOW 0
11581: # endif
11582: # endif
11583: # endif
11584: # endif
11585: #endif
11586:
11587: /* When -fvisbility=hidden is used, assume the code has been annotated
11588: correspondingly for the symbols needed. */
11589: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11590: int fnord () __attribute__((visibility("default")));
11591: #endif
11592:
11593: int fnord () { return 42; }
11594: int main ()
11595: {
11596: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11597: int status = $lt_dlunknown;
11598:
11599: if (self)
11600: {
11601: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11602: else
11603: {
11604: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11605: else puts (dlerror ());
11606: }
11607: /* dlclose (self); */
11608: }
11609: else
11610: puts (dlerror ());
11611:
11612: return status;
11613: }
11614: _LT_EOF
1.11 moko 11615: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11616: (eval $ac_link) 2>&5
11617: ac_status=$?
1.11 moko 11618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11620: (./conftest; exit; ) >&5 2>/dev/null
11621: lt_status=$?
11622: case x$lt_status in
11623: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11624: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11625: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11626: esac
11627: else :
11628: # compilation failed
11629: lt_cv_dlopen_self_static=no
11630: fi
11631: fi
11632: rm -fr conftest*
11633:
11634:
11635: fi
1.11 moko 11636: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11637: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.8 moko 11638: fi
11639:
11640: CPPFLAGS="$save_CPPFLAGS"
11641: LDFLAGS="$save_LDFLAGS"
11642: LIBS="$save_LIBS"
11643: ;;
11644: esac
11645:
11646: case $lt_cv_dlopen_self in
11647: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11648: *) enable_dlopen_self=unknown ;;
11649: esac
11650:
11651: case $lt_cv_dlopen_self_static in
11652: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11653: *) enable_dlopen_self_static=unknown ;;
11654: esac
11655: fi
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666:
11667:
11668:
11669:
11670:
11671:
11672:
11673: striplib=
11674: old_striplib=
1.11 moko 11675: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11676: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.8 moko 11677: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11678: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11679: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.11 moko 11680: echo "$as_me:$LINENO: result: yes" >&5
11681: echo "${ECHO_T}yes" >&6
1.8 moko 11682: else
11683: # FIXME - insert some real tests, host_os isn't really good enough
11684: case $host_os in
11685: darwin*)
11686: if test -n "$STRIP" ; then
11687: striplib="$STRIP -x"
11688: old_striplib="$STRIP -S"
1.11 moko 11689: echo "$as_me:$LINENO: result: yes" >&5
11690: echo "${ECHO_T}yes" >&6
1.8 moko 11691: else
1.11 moko 11692: echo "$as_me:$LINENO: result: no" >&5
11693: echo "${ECHO_T}no" >&6
1.8 moko 11694: fi
11695: ;;
11696: *)
1.11 moko 11697: echo "$as_me:$LINENO: result: no" >&5
11698: echo "${ECHO_T}no" >&6
1.8 moko 11699: ;;
11700: esac
11701: fi
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
11712:
11713:
11714: # Report which library types will actually be built
1.11 moko 11715: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11716: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11717: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11718: echo "${ECHO_T}$can_build_shared" >&6
1.8 moko 11719:
1.11 moko 11720: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11721: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1.8 moko 11722: test "$can_build_shared" = "no" && enable_shared=no
11723:
11724: # On AIX, shared libraries and static libraries use the same namespace, and
11725: # are all built from PIC.
11726: case $host_os in
11727: aix3*)
11728: test "$enable_shared" = yes && enable_static=no
11729: if test -n "$RANLIB"; then
11730: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11731: postinstall_cmds='$RANLIB $lib'
11732: fi
11733: ;;
11734:
11735: aix[4-9]*)
11736: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11737: test "$enable_shared" = yes && enable_static=no
11738: fi
11739: ;;
11740: esac
1.11 moko 11741: echo "$as_me:$LINENO: result: $enable_shared" >&5
11742: echo "${ECHO_T}$enable_shared" >&6
1.8 moko 11743:
1.11 moko 11744: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11745: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1.8 moko 11746: # Make sure either enable_shared or enable_static is yes.
11747: test "$enable_shared" = yes || enable_static=yes
1.11 moko 11748: echo "$as_me:$LINENO: result: $enable_static" >&5
11749: echo "${ECHO_T}$enable_static" >&6
1.8 moko 11750:
11751:
11752:
11753:
11754: fi
11755: ac_ext=c
11756: ac_cpp='$CPP $CPPFLAGS'
11757: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760:
11761: CC="$lt_save_CC"
11762:
11763: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11764: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11765: (test "X$CXX" != "Xg++"))) ; then
1.11 moko 11766: ac_ext=cc
1.8 moko 11767: ac_cpp='$CXXCPP $CPPFLAGS'
11768: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 11771: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11772: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.8 moko 11773: if test -z "$CXXCPP"; then
1.11 moko 11774: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11775: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11776: else
11777: # Double quotes because CXXCPP needs to be expanded
11778: for CXXCPP in "$CXX -E" "/lib/cpp"
11779: do
11780: ac_preproc_ok=false
11781: for ac_cxx_preproc_warn_flag in '' yes
11782: do
11783: # Use a header file that comes with gcc, so configuring glibc
11784: # with a fresh cross-compiler works.
11785: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786: # <limits.h> exists even on freestanding compilers.
11787: # On the NeXT, cc -E runs the code through the compiler's parser,
11788: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11789: cat >conftest.$ac_ext <<_ACEOF
11790: /* confdefs.h. */
11791: _ACEOF
11792: cat confdefs.h >>conftest.$ac_ext
11793: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11794: /* end confdefs.h. */
11795: #ifdef __STDC__
11796: # include <limits.h>
11797: #else
11798: # include <assert.h>
11799: #endif
11800: Syntax error
11801: _ACEOF
1.11 moko 11802: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11803: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11804: ac_status=$?
11805: grep -v '^ *+' conftest.er1 >conftest.err
11806: rm -f conftest.er1
11807: cat conftest.err >&5
11808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809: (exit $ac_status); } >/dev/null; then
11810: if test -s conftest.err; then
11811: ac_cpp_err=$ac_cxx_preproc_warn_flag
11812: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11813: else
11814: ac_cpp_err=
11815: fi
11816: else
11817: ac_cpp_err=yes
11818: fi
11819: if test -z "$ac_cpp_err"; then
11820: :
11821: else
11822: echo "$as_me: failed program was:" >&5
11823: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11824:
1.8 moko 11825: # Broken: fails on valid input.
11826: continue
11827: fi
1.11 moko 11828: rm -f conftest.err conftest.$ac_ext
1.8 moko 11829:
1.11 moko 11830: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11831: # can be detected and how.
1.11 moko 11832: cat >conftest.$ac_ext <<_ACEOF
11833: /* confdefs.h. */
11834: _ACEOF
11835: cat confdefs.h >>conftest.$ac_ext
11836: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11837: /* end confdefs.h. */
11838: #include <ac_nonexistent.h>
11839: _ACEOF
1.11 moko 11840: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11841: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11842: ac_status=$?
11843: grep -v '^ *+' conftest.er1 >conftest.err
11844: rm -f conftest.er1
11845: cat conftest.err >&5
11846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847: (exit $ac_status); } >/dev/null; then
11848: if test -s conftest.err; then
11849: ac_cpp_err=$ac_cxx_preproc_warn_flag
11850: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11851: else
11852: ac_cpp_err=
11853: fi
11854: else
11855: ac_cpp_err=yes
11856: fi
11857: if test -z "$ac_cpp_err"; then
1.8 moko 11858: # Broken: success on invalid input.
11859: continue
11860: else
1.11 moko 11861: echo "$as_me: failed program was:" >&5
11862: sed 's/^/| /' conftest.$ac_ext >&5
11863:
1.8 moko 11864: # Passes both tests.
11865: ac_preproc_ok=:
11866: break
11867: fi
1.11 moko 11868: rm -f conftest.err conftest.$ac_ext
1.8 moko 11869:
11870: done
11871: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 11872: rm -f conftest.err conftest.$ac_ext
11873: if $ac_preproc_ok; then
1.8 moko 11874: break
11875: fi
11876:
11877: done
11878: ac_cv_prog_CXXCPP=$CXXCPP
11879:
11880: fi
11881: CXXCPP=$ac_cv_prog_CXXCPP
11882: else
11883: ac_cv_prog_CXXCPP=$CXXCPP
11884: fi
1.11 moko 11885: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11886: echo "${ECHO_T}$CXXCPP" >&6
1.8 moko 11887: ac_preproc_ok=false
11888: for ac_cxx_preproc_warn_flag in '' yes
11889: do
11890: # Use a header file that comes with gcc, so configuring glibc
11891: # with a fresh cross-compiler works.
11892: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11893: # <limits.h> exists even on freestanding compilers.
11894: # On the NeXT, cc -E runs the code through the compiler's parser,
11895: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11896: cat >conftest.$ac_ext <<_ACEOF
11897: /* confdefs.h. */
11898: _ACEOF
11899: cat confdefs.h >>conftest.$ac_ext
11900: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11901: /* end confdefs.h. */
11902: #ifdef __STDC__
11903: # include <limits.h>
11904: #else
11905: # include <assert.h>
11906: #endif
11907: Syntax error
11908: _ACEOF
1.11 moko 11909: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11910: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11911: ac_status=$?
11912: grep -v '^ *+' conftest.er1 >conftest.err
11913: rm -f conftest.er1
11914: cat conftest.err >&5
11915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916: (exit $ac_status); } >/dev/null; then
11917: if test -s conftest.err; then
11918: ac_cpp_err=$ac_cxx_preproc_warn_flag
11919: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11920: else
11921: ac_cpp_err=
11922: fi
11923: else
11924: ac_cpp_err=yes
11925: fi
11926: if test -z "$ac_cpp_err"; then
11927: :
11928: else
11929: echo "$as_me: failed program was:" >&5
11930: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11931:
11932: # Broken: fails on valid input.
1.8 moko 11933: continue
11934: fi
1.11 moko 11935: rm -f conftest.err conftest.$ac_ext
1.8 moko 11936:
1.11 moko 11937: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11938: # can be detected and how.
1.11 moko 11939: cat >conftest.$ac_ext <<_ACEOF
11940: /* confdefs.h. */
11941: _ACEOF
11942: cat confdefs.h >>conftest.$ac_ext
11943: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11944: /* end confdefs.h. */
11945: #include <ac_nonexistent.h>
11946: _ACEOF
1.11 moko 11947: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11948: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11949: ac_status=$?
11950: grep -v '^ *+' conftest.er1 >conftest.err
11951: rm -f conftest.er1
11952: cat conftest.err >&5
11953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954: (exit $ac_status); } >/dev/null; then
11955: if test -s conftest.err; then
11956: ac_cpp_err=$ac_cxx_preproc_warn_flag
11957: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11958: else
11959: ac_cpp_err=
11960: fi
11961: else
11962: ac_cpp_err=yes
11963: fi
11964: if test -z "$ac_cpp_err"; then
1.8 moko 11965: # Broken: success on invalid input.
11966: continue
11967: else
1.11 moko 11968: echo "$as_me: failed program was:" >&5
11969: sed 's/^/| /' conftest.$ac_ext >&5
11970:
1.8 moko 11971: # Passes both tests.
11972: ac_preproc_ok=:
11973: break
11974: fi
1.11 moko 11975: rm -f conftest.err conftest.$ac_ext
1.8 moko 11976:
11977: done
11978: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 11979: rm -f conftest.err conftest.$ac_ext
11980: if $ac_preproc_ok; then
11981: :
1.8 moko 11982: else
1.11 moko 11983: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11984: See \`config.log' for more details." >&5
11985: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11986: See \`config.log' for more details." >&2;}
11987: { (exit 1); exit 1; }; }
1.8 moko 11988: fi
11989:
11990: ac_ext=c
11991: ac_cpp='$CPP $CPPFLAGS'
11992: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11993: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11994: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11995:
11996: else
11997: _lt_caught_CXX_error=yes
11998: fi
11999:
1.11 moko 12000: ac_ext=cc
1.8 moko 12001: ac_cpp='$CXXCPP $CPPFLAGS'
12002: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12003: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12004: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12005:
12006: archive_cmds_need_lc_CXX=no
12007: allow_undefined_flag_CXX=
12008: always_export_symbols_CXX=no
12009: archive_expsym_cmds_CXX=
12010: compiler_needs_object_CXX=no
12011: export_dynamic_flag_spec_CXX=
12012: hardcode_direct_CXX=no
12013: hardcode_direct_absolute_CXX=no
12014: hardcode_libdir_flag_spec_CXX=
12015: hardcode_libdir_separator_CXX=
12016: hardcode_minus_L_CXX=no
12017: hardcode_shlibpath_var_CXX=unsupported
12018: hardcode_automatic_CXX=no
12019: inherit_rpath_CXX=no
12020: module_cmds_CXX=
12021: module_expsym_cmds_CXX=
12022: link_all_deplibs_CXX=unknown
12023: old_archive_cmds_CXX=$old_archive_cmds
12024: reload_flag_CXX=$reload_flag
12025: reload_cmds_CXX=$reload_cmds
12026: no_undefined_flag_CXX=
12027: whole_archive_flag_spec_CXX=
12028: enable_shared_with_static_runtimes_CXX=no
12029:
12030: # Source file extension for C++ test sources.
12031: ac_ext=cpp
12032:
12033: # Object file extension for compiled C++ test sources.
12034: objext=o
12035: objext_CXX=$objext
12036:
12037: # No sense in running all these tests if we already determined that
12038: # the CXX compiler isn't working. Some variables (like enable_shared)
12039: # are currently assumed to apply to all compilers on this platform,
12040: # and will be corrupted by setting them based on a non-working compiler.
12041: if test "$_lt_caught_CXX_error" != yes; then
12042: # Code to be used in simple compile tests
12043: lt_simple_compile_test_code="int some_variable = 0;"
12044:
12045: # Code to be used in simple link tests
12046: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12047:
12048: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12049:
12050:
12051:
12052:
12053:
12054:
12055: # If no C compiler was specified, use CC.
12056: LTCC=${LTCC-"$CC"}
12057:
12058: # If no C compiler flags were specified, use CFLAGS.
12059: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12060:
12061: # Allow CC to be a program name with arguments.
12062: compiler=$CC
12063:
12064:
12065: # save warnings/boilerplate of simple test code
12066: ac_outfile=conftest.$ac_objext
12067: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12068: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12069: _lt_compiler_boilerplate=`cat conftest.err`
12070: $RM conftest*
12071:
12072: ac_outfile=conftest.$ac_objext
12073: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12074: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12075: _lt_linker_boilerplate=`cat conftest.err`
12076: $RM -r conftest*
12077:
12078:
12079: # Allow CC to be a program name with arguments.
12080: lt_save_CC=$CC
12081: lt_save_CFLAGS=$CFLAGS
12082: lt_save_LD=$LD
12083: lt_save_GCC=$GCC
12084: GCC=$GXX
12085: lt_save_with_gnu_ld=$with_gnu_ld
12086: lt_save_path_LD=$lt_cv_path_LD
12087: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12088: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12089: else
12090: $as_unset lt_cv_prog_gnu_ld
12091: fi
12092: if test -n "${lt_cv_path_LDCXX+set}"; then
12093: lt_cv_path_LD=$lt_cv_path_LDCXX
12094: else
12095: $as_unset lt_cv_path_LD
12096: fi
12097: test -z "${LDCXX+set}" || LD=$LDCXX
12098: CC=${CXX-"c++"}
12099: CFLAGS=$CXXFLAGS
12100: compiler=$CC
12101: compiler_CXX=$CC
12102: for cc_temp in $compiler""; do
12103: case $cc_temp in
12104: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12105: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12106: \-*) ;;
12107: *) break;;
12108: esac
12109: done
12110: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12111:
12112:
12113: if test -n "$compiler"; then
12114: # We don't want -fno-exception when compiling C++ code, so set the
12115: # no_builtin_flag separately
12116: if test "$GXX" = yes; then
12117: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12118: else
12119: lt_prog_compiler_no_builtin_flag_CXX=
12120: fi
12121:
12122: if test "$GXX" = yes; then
12123: # Set up default GNU C++ configuration
12124:
12125:
12126:
1.11 moko 12127: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12128: if test "${with_gnu_ld+set}" = set; then
12129: withval="$with_gnu_ld"
12130: test "$withval" = no || with_gnu_ld=yes
1.8 moko 12131: else
12132: with_gnu_ld=no
1.11 moko 12133: fi;
1.8 moko 12134: ac_prog=ld
12135: if test "$GCC" = yes; then
12136: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 12137: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12138: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 12139: case $host in
12140: *-*-mingw*)
12141: # gcc leaves a trailing carriage return which upsets mingw
12142: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12143: *)
12144: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12145: esac
12146: case $ac_prog in
12147: # Accept absolute paths.
12148: [\\/]* | ?:[\\/]*)
12149: re_direlt='/[^/][^/]*/\.\./'
12150: # Canonicalize the pathname of ld
12151: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12152: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12153: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12154: done
12155: test -z "$LD" && LD="$ac_prog"
12156: ;;
12157: "")
12158: # If it fails, then pretend we aren't using GCC.
12159: ac_prog=ld
12160: ;;
12161: *)
12162: # If it is relative, then search for the first ld in PATH.
12163: with_gnu_ld=unknown
12164: ;;
12165: esac
12166: elif test "$with_gnu_ld" = yes; then
1.11 moko 12167: echo "$as_me:$LINENO: checking for GNU ld" >&5
12168: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 12169: else
1.11 moko 12170: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12171: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 12172: fi
1.11 moko 12173: if test "${lt_cv_path_LD+set}" = set; then
12174: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12175: else
12176: if test -z "$LD"; then
12177: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12178: for ac_dir in $PATH; do
12179: IFS="$lt_save_ifs"
12180: test -z "$ac_dir" && ac_dir=.
12181: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12182: lt_cv_path_LD="$ac_dir/$ac_prog"
12183: # Check to see if the program is GNU ld. I'd rather use --version,
12184: # but apparently some variants of GNU ld only accept -v.
12185: # Break only if it was the GNU/non-GNU ld that we prefer.
12186: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12187: *GNU* | *'with BFD'*)
12188: test "$with_gnu_ld" != no && break
12189: ;;
12190: *)
12191: test "$with_gnu_ld" != yes && break
12192: ;;
12193: esac
12194: fi
12195: done
12196: IFS="$lt_save_ifs"
12197: else
12198: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12199: fi
12200: fi
12201:
12202: LD="$lt_cv_path_LD"
12203: if test -n "$LD"; then
1.11 moko 12204: echo "$as_me:$LINENO: result: $LD" >&5
12205: echo "${ECHO_T}$LD" >&6
1.8 moko 12206: else
1.11 moko 12207: echo "$as_me:$LINENO: result: no" >&5
12208: echo "${ECHO_T}no" >&6
1.8 moko 12209: fi
1.11 moko 12210: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12211: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12212: { (exit 1); exit 1; }; }
12213: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12214: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12215: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12216: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12217: else
12218: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12219: case `$LD -v 2>&1 </dev/null` in
12220: *GNU* | *'with BFD'*)
12221: lt_cv_prog_gnu_ld=yes
12222: ;;
12223: *)
12224: lt_cv_prog_gnu_ld=no
12225: ;;
12226: esac
12227: fi
1.11 moko 12228: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12229: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.8 moko 12230: with_gnu_ld=$lt_cv_prog_gnu_ld
12231:
12232:
12233:
12234:
12235:
12236:
12237:
12238: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12239: # archiving commands below assume that GNU ld is being used.
12240: if test "$with_gnu_ld" = yes; then
12241: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242: 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'
12243:
12244: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12245: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12246:
12247: # If archive_cmds runs LD, not CC, wlarc should be empty
12248: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12249: # investigate it a little bit more. (MM)
12250: wlarc='${wl}'
12251:
12252: # ancient GNU ld didn't support --whole-archive et. al.
12253: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12254: $GREP 'no-whole-archive' > /dev/null; then
12255: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12256: else
12257: whole_archive_flag_spec_CXX=
12258: fi
12259: else
12260: with_gnu_ld=no
12261: wlarc=
12262:
12263: # A generic and very simple default shared library creation
12264: # command for GNU C++ for the case where it uses the native
12265: # linker, instead of GNU ld. If possible, this setting should
12266: # overridden to take advantage of the native linker features on
12267: # the platform it is being used on.
12268: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12269: fi
12270:
12271: # Commands to make compiler produce verbose output that lists
12272: # what "hidden" libraries, object files and flags are used when
12273: # linking a shared library.
12274: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12275:
12276: else
12277: GXX=no
12278: with_gnu_ld=no
12279: wlarc=
12280: fi
12281:
12282: # PORTME: fill in a description of your system's C++ link characteristics
1.11 moko 12283: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12284: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 12285: ld_shlibs_CXX=yes
12286: case $host_os in
12287: aix3*)
12288: # FIXME: insert proper C++ library support
12289: ld_shlibs_CXX=no
12290: ;;
12291: aix[4-9]*)
12292: if test "$host_cpu" = ia64; then
12293: # On IA64, the linker does run time linking by default, so we don't
12294: # have to do anything special.
12295: aix_use_runtimelinking=no
12296: exp_sym_flag='-Bexport'
12297: no_entry_flag=""
12298: else
12299: aix_use_runtimelinking=no
12300:
12301: # Test if we are trying to use run time linking or normal
12302: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12303: # need to do runtime linking.
12304: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12305: for ld_flag in $LDFLAGS; do
12306: case $ld_flag in
12307: *-brtl*)
12308: aix_use_runtimelinking=yes
12309: break
12310: ;;
12311: esac
12312: done
12313: ;;
12314: esac
12315:
12316: exp_sym_flag='-bexport'
12317: no_entry_flag='-bnoentry'
12318: fi
12319:
12320: # When large executables or shared objects are built, AIX ld can
12321: # have problems creating the table of contents. If linking a library
12322: # or program results in "error TOC overflow" add -mminimal-toc to
12323: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12324: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12325:
12326: archive_cmds_CXX=''
12327: hardcode_direct_CXX=yes
12328: hardcode_direct_absolute_CXX=yes
12329: hardcode_libdir_separator_CXX=':'
12330: link_all_deplibs_CXX=yes
12331: file_list_spec_CXX='${wl}-f,'
12332:
12333: if test "$GXX" = yes; then
12334: case $host_os in aix4.[012]|aix4.[012].*)
12335: # We only want to do this on AIX 4.2 and lower, the check
12336: # below for broken collect2 doesn't work under 4.3+
12337: collect2name=`${CC} -print-prog-name=collect2`
12338: if test -f "$collect2name" &&
12339: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12340: then
12341: # We have reworked collect2
12342: :
12343: else
12344: # We have old collect2
12345: hardcode_direct_CXX=unsupported
12346: # It fails to find uninstalled libraries when the uninstalled
12347: # path is not listed in the libpath. Setting hardcode_minus_L
12348: # to unsupported forces relinking
12349: hardcode_minus_L_CXX=yes
12350: hardcode_libdir_flag_spec_CXX='-L$libdir'
12351: hardcode_libdir_separator_CXX=
12352: fi
12353: esac
12354: shared_flag='-shared'
12355: if test "$aix_use_runtimelinking" = yes; then
12356: shared_flag="$shared_flag "'${wl}-G'
12357: fi
12358: else
12359: # not using gcc
12360: if test "$host_cpu" = ia64; then
12361: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12362: # chokes on -Wl,-G. The following line is correct:
12363: shared_flag='-G'
12364: else
12365: if test "$aix_use_runtimelinking" = yes; then
12366: shared_flag='${wl}-G'
12367: else
12368: shared_flag='${wl}-bM:SRE'
12369: fi
12370: fi
12371: fi
12372:
12373: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12374: # It seems that -bexpall does not export symbols beginning with
12375: # underscore (_), so it is better to generate a list of symbols to
12376: # export.
12377: always_export_symbols_CXX=yes
12378: if test "$aix_use_runtimelinking" = yes; then
12379: # Warning - without using the other runtime loading flags (-brtl),
12380: # -berok will link without error, but may produce a broken library.
12381: allow_undefined_flag_CXX='-berok'
12382: # Determine the default libpath from the value encoded in an empty
12383: # executable.
12384: if test "${lt_cv_aix_libpath+set}" = set; then
12385: aix_libpath=$lt_cv_aix_libpath
12386: else
1.11 moko 12387: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12388: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12389: else
1.11 moko 12390: cat >conftest.$ac_ext <<_ACEOF
12391: /* confdefs.h. */
12392: _ACEOF
12393: cat confdefs.h >>conftest.$ac_ext
12394: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12395: /* end confdefs.h. */
12396:
12397: int
12398: main ()
12399: {
12400:
12401: ;
12402: return 0;
12403: }
12404: _ACEOF
1.11 moko 12405: rm -f conftest.$ac_objext conftest$ac_exeext
12406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407: (eval $ac_link) 2>conftest.er1
12408: ac_status=$?
12409: grep -v '^ *+' conftest.er1 >conftest.err
12410: rm -f conftest.er1
12411: cat conftest.err >&5
12412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413: (exit $ac_status); } &&
12414: { ac_try='test -z "$ac_cxx_werror_flag"
12415: || test ! -s conftest.err'
12416: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417: (eval $ac_try) 2>&5
12418: ac_status=$?
12419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420: (exit $ac_status); }; } &&
12421: { ac_try='test -s conftest$ac_exeext'
12422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423: (eval $ac_try) 2>&5
12424: ac_status=$?
12425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426: (exit $ac_status); }; }; then
1.8 moko 12427:
12428: lt_aix_libpath_sed='
12429: /Import File Strings/,/^$/ {
12430: /^0/ {
12431: s/^0 *\([^ ]*\) *$/\1/
12432: p
12433: }
12434: }'
12435: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12436: # Check for a 64-bit object if we didn't find anything.
12437: if test -z "$lt_cv_aix_libpath__CXX"; then
12438: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12439: fi
1.11 moko 12440: else
12441: echo "$as_me: failed program was:" >&5
12442: sed 's/^/| /' conftest.$ac_ext >&5
12443:
1.8 moko 12444: fi
1.11 moko 12445: rm -f conftest.err conftest.$ac_objext \
12446: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12447: if test -z "$lt_cv_aix_libpath__CXX"; then
12448: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12449: fi
12450:
12451: fi
12452:
12453: aix_libpath=$lt_cv_aix_libpath__CXX
12454: fi
12455:
12456: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12457:
12458: 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"
12459: else
12460: if test "$host_cpu" = ia64; then
12461: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12462: allow_undefined_flag_CXX="-z nodefs"
12463: 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"
12464: else
12465: # Determine the default libpath from the value encoded in an
12466: # empty executable.
12467: if test "${lt_cv_aix_libpath+set}" = set; then
12468: aix_libpath=$lt_cv_aix_libpath
12469: else
1.11 moko 12470: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12471: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12472: else
1.11 moko 12473: cat >conftest.$ac_ext <<_ACEOF
12474: /* confdefs.h. */
12475: _ACEOF
12476: cat confdefs.h >>conftest.$ac_ext
12477: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12478: /* end confdefs.h. */
12479:
12480: int
12481: main ()
12482: {
12483:
12484: ;
12485: return 0;
12486: }
12487: _ACEOF
1.11 moko 12488: rm -f conftest.$ac_objext conftest$ac_exeext
12489: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490: (eval $ac_link) 2>conftest.er1
12491: ac_status=$?
12492: grep -v '^ *+' conftest.er1 >conftest.err
12493: rm -f conftest.er1
12494: cat conftest.err >&5
12495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496: (exit $ac_status); } &&
12497: { ac_try='test -z "$ac_cxx_werror_flag"
12498: || test ! -s conftest.err'
12499: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500: (eval $ac_try) 2>&5
12501: ac_status=$?
12502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503: (exit $ac_status); }; } &&
12504: { ac_try='test -s conftest$ac_exeext'
12505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506: (eval $ac_try) 2>&5
12507: ac_status=$?
12508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509: (exit $ac_status); }; }; then
1.8 moko 12510:
12511: lt_aix_libpath_sed='
12512: /Import File Strings/,/^$/ {
12513: /^0/ {
12514: s/^0 *\([^ ]*\) *$/\1/
12515: p
12516: }
12517: }'
12518: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12519: # Check for a 64-bit object if we didn't find anything.
12520: if test -z "$lt_cv_aix_libpath__CXX"; then
12521: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12522: fi
1.11 moko 12523: else
12524: echo "$as_me: failed program was:" >&5
12525: sed 's/^/| /' conftest.$ac_ext >&5
12526:
1.8 moko 12527: fi
1.11 moko 12528: rm -f conftest.err conftest.$ac_objext \
12529: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12530: if test -z "$lt_cv_aix_libpath__CXX"; then
12531: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12532: fi
12533:
12534: fi
12535:
12536: aix_libpath=$lt_cv_aix_libpath__CXX
12537: fi
12538:
12539: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12540: # Warning - without using the other run time loading flags,
12541: # -berok will link without error, but may produce a broken library.
12542: no_undefined_flag_CXX=' ${wl}-bernotok'
12543: allow_undefined_flag_CXX=' ${wl}-berok'
12544: if test "$with_gnu_ld" = yes; then
12545: # We only use this code for GNU lds that support --whole-archive.
12546: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12547: else
12548: # Exported symbols can be pulled into shared objects from archives
12549: whole_archive_flag_spec_CXX='$convenience'
12550: fi
12551: archive_cmds_need_lc_CXX=yes
12552: # This is similar to how AIX traditionally builds its shared
12553: # libraries.
12554: 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'
12555: fi
12556: fi
12557: ;;
12558:
12559: beos*)
12560: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12561: allow_undefined_flag_CXX=unsupported
12562: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12563: # support --undefined. This deserves some investigation. FIXME
12564: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12565: else
12566: ld_shlibs_CXX=no
12567: fi
12568: ;;
12569:
12570: chorus*)
12571: case $cc_basename in
12572: *)
12573: # FIXME: insert proper C++ library support
12574: ld_shlibs_CXX=no
12575: ;;
12576: esac
12577: ;;
12578:
12579: cygwin* | mingw* | pw32* | cegcc*)
12580: case $GXX,$cc_basename in
12581: ,cl* | no,cl*)
12582: # Native MSVC
12583: # hardcode_libdir_flag_spec is actually meaningless, as there is
12584: # no search path for DLLs.
12585: hardcode_libdir_flag_spec_CXX=' '
12586: allow_undefined_flag_CXX=unsupported
12587: always_export_symbols_CXX=yes
12588: file_list_spec_CXX='@'
12589: # Tell ltmain to make .lib files, not .a files.
12590: libext=lib
12591: # Tell ltmain to make .dll files, not .so files.
12592: shrext_cmds=".dll"
12593: # FIXME: Setting linknames here is a bad hack.
12594: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12595: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12596: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12597: else
12598: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12599: fi~
12600: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12601: linknames='
12602: # The linker will not automatically build a static lib if we build a DLL.
12603: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12604: enable_shared_with_static_runtimes_CXX=yes
12605: # Don't use ranlib
12606: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12607: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12608: lt_tool_outputfile="@TOOL_OUTPUT@"~
12609: case $lt_outputfile in
12610: *.exe|*.EXE) ;;
12611: *)
12612: lt_outputfile="$lt_outputfile.exe"
12613: lt_tool_outputfile="$lt_tool_outputfile.exe"
12614: ;;
12615: esac~
12616: func_to_tool_file "$lt_outputfile"~
12617: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12618: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12619: $RM "$lt_outputfile.manifest";
12620: fi'
12621: ;;
12622: *)
12623: # g++
12624: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12625: # as there is no search path for DLLs.
12626: hardcode_libdir_flag_spec_CXX='-L$libdir'
12627: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12628: allow_undefined_flag_CXX=unsupported
12629: always_export_symbols_CXX=no
12630: enable_shared_with_static_runtimes_CXX=yes
12631:
12632: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12633: 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'
12634: # If the export-symbols file already is a .def file (1st line
12635: # is EXPORTS), use it as is; otherwise, prepend...
12636: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12637: cp $export_symbols $output_objdir/$soname.def;
12638: else
12639: echo EXPORTS > $output_objdir/$soname.def;
12640: cat $export_symbols >> $output_objdir/$soname.def;
12641: fi~
12642: $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'
12643: else
12644: ld_shlibs_CXX=no
12645: fi
12646: ;;
12647: esac
12648: ;;
12649: darwin* | rhapsody*)
12650:
12651:
12652: archive_cmds_need_lc_CXX=no
12653: hardcode_direct_CXX=no
12654: hardcode_automatic_CXX=yes
12655: hardcode_shlibpath_var_CXX=unsupported
12656: if test "$lt_cv_ld_force_load" = "yes"; then
12657: 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\"`'
12658:
12659: else
12660: whole_archive_flag_spec_CXX=''
12661: fi
12662: link_all_deplibs_CXX=yes
12663: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12664: case $cc_basename in
12665: ifort*) _lt_dar_can_shared=yes ;;
12666: *) _lt_dar_can_shared=$GCC ;;
12667: esac
12668: if test "$_lt_dar_can_shared" = "yes"; then
12669: output_verbose_link_cmd=func_echo_all
12670: 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}"
12671: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12672: 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}"
12673: 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}"
12674: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12675: 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}"
12676: 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}"
12677: fi
12678:
12679: else
12680: ld_shlibs_CXX=no
12681: fi
12682:
12683: ;;
12684:
12685: dgux*)
12686: case $cc_basename in
12687: ec++*)
12688: # FIXME: insert proper C++ library support
12689: ld_shlibs_CXX=no
12690: ;;
12691: ghcx*)
12692: # Green Hills C++ Compiler
12693: # FIXME: insert proper C++ library support
12694: ld_shlibs_CXX=no
12695: ;;
12696: *)
12697: # FIXME: insert proper C++ library support
12698: ld_shlibs_CXX=no
12699: ;;
12700: esac
12701: ;;
12702:
12703: freebsd2.*)
12704: # C++ shared libraries reported to be fairly broken before
12705: # switch to ELF
12706: ld_shlibs_CXX=no
12707: ;;
12708:
12709: freebsd-elf*)
12710: archive_cmds_need_lc_CXX=no
12711: ;;
12712:
12713: freebsd* | dragonfly*)
12714: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12715: # conventions
12716: ld_shlibs_CXX=yes
12717: ;;
12718:
12719: gnu*)
12720: ;;
12721:
12722: haiku*)
12723: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724: link_all_deplibs_CXX=yes
12725: ;;
12726:
12727: hpux9*)
12728: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12729: hardcode_libdir_separator_CXX=:
12730: export_dynamic_flag_spec_CXX='${wl}-E'
12731: hardcode_direct_CXX=yes
12732: hardcode_minus_L_CXX=yes # Not in the search PATH,
12733: # but as the default
12734: # location of the library.
12735:
12736: case $cc_basename in
12737: CC*)
12738: # FIXME: insert proper C++ library support
12739: ld_shlibs_CXX=no
12740: ;;
12741: aCC*)
12742: 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'
12743: # Commands to make compiler produce verbose output that lists
12744: # what "hidden" libraries, object files and flags are used when
12745: # linking a shared library.
12746: #
12747: # There doesn't appear to be a way to prevent this compiler from
12748: # explicitly linking system object files so we need to strip them
12749: # from the output so that they don't get included in the library
12750: # dependencies.
12751: 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"'
12752: ;;
12753: *)
12754: if test "$GXX" = yes; then
12755: 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'
12756: else
12757: # FIXME: insert proper C++ library support
12758: ld_shlibs_CXX=no
12759: fi
12760: ;;
12761: esac
12762: ;;
12763:
12764: hpux10*|hpux11*)
12765: if test $with_gnu_ld = no; then
12766: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12767: hardcode_libdir_separator_CXX=:
12768:
12769: case $host_cpu in
12770: hppa*64*|ia64*)
12771: ;;
12772: *)
12773: export_dynamic_flag_spec_CXX='${wl}-E'
12774: ;;
12775: esac
12776: fi
12777: case $host_cpu in
12778: hppa*64*|ia64*)
12779: hardcode_direct_CXX=no
12780: hardcode_shlibpath_var_CXX=no
12781: ;;
12782: *)
12783: hardcode_direct_CXX=yes
12784: hardcode_direct_absolute_CXX=yes
12785: hardcode_minus_L_CXX=yes # Not in the search PATH,
12786: # but as the default
12787: # location of the library.
12788: ;;
12789: esac
12790:
12791: case $cc_basename in
12792: CC*)
12793: # FIXME: insert proper C++ library support
12794: ld_shlibs_CXX=no
12795: ;;
12796: aCC*)
12797: case $host_cpu in
12798: hppa*64*)
12799: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12800: ;;
12801: ia64*)
12802: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12803: ;;
12804: *)
12805: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12806: ;;
12807: esac
12808: # Commands to make compiler produce verbose output that lists
12809: # what "hidden" libraries, object files and flags are used when
12810: # linking a shared library.
12811: #
12812: # There doesn't appear to be a way to prevent this compiler from
12813: # explicitly linking system object files so we need to strip them
12814: # from the output so that they don't get included in the library
12815: # dependencies.
12816: 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"'
12817: ;;
12818: *)
12819: if test "$GXX" = yes; then
12820: if test $with_gnu_ld = no; then
12821: case $host_cpu in
12822: hppa*64*)
12823: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12824: ;;
12825: ia64*)
12826: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12827: ;;
12828: *)
12829: 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'
12830: ;;
12831: esac
12832: fi
12833: else
12834: # FIXME: insert proper C++ library support
12835: ld_shlibs_CXX=no
12836: fi
12837: ;;
12838: esac
12839: ;;
12840:
12841: interix[3-9]*)
12842: hardcode_direct_CXX=no
12843: hardcode_shlibpath_var_CXX=no
12844: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12845: export_dynamic_flag_spec_CXX='${wl}-E'
12846: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12847: # Instead, shared libraries are loaded at an image base (0x10000000 by
12848: # default) and relocated if they conflict, which is a slow very memory
12849: # consuming and fragmenting process. To avoid this, we pick a random,
12850: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12851: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12852: 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'
12853: 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'
12854: ;;
12855: irix5* | irix6*)
12856: case $cc_basename in
12857: CC*)
12858: # SGI C++
12859: 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'
12860:
12861: # Archives containing C++ object files must be created using
12862: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12863: # necessary to make sure instantiated templates are included
12864: # in the archive.
12865: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12866: ;;
12867: *)
12868: if test "$GXX" = yes; then
12869: if test "$with_gnu_ld" = no; then
12870: 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'
12871: else
12872: 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'
12873: fi
12874: fi
12875: link_all_deplibs_CXX=yes
12876: ;;
12877: esac
12878: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12879: hardcode_libdir_separator_CXX=:
12880: inherit_rpath_CXX=yes
12881: ;;
12882:
12883: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12884: case $cc_basename in
12885: KCC*)
12886: # Kuck and Associates, Inc. (KAI) C++ Compiler
12887:
12888: # KCC will only create a shared library if the output file
12889: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12890: # to its proper name (with version) after linking.
12891: 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'
12892: 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'
12893: # Commands to make compiler produce verbose output that lists
12894: # what "hidden" libraries, object files and flags are used when
12895: # linking a shared library.
12896: #
12897: # There doesn't appear to be a way to prevent this compiler from
12898: # explicitly linking system object files so we need to strip them
12899: # from the output so that they don't get included in the library
12900: # dependencies.
12901: 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"'
12902:
12903: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12904: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12905:
12906: # Archives containing C++ object files must be created using
12907: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12908: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12909: ;;
12910: icpc* | ecpc* )
12911: # Intel C++
12912: with_gnu_ld=yes
12913: # version 8.0 and above of icpc choke on multiply defined symbols
12914: # if we add $predep_objects and $postdep_objects, however 7.1 and
12915: # earlier do not add the objects themselves.
12916: case `$CC -V 2>&1` in
12917: *"Version 7."*)
12918: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919: 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'
12920: ;;
12921: *) # Version 8.0 or newer
12922: tmp_idyn=
12923: case $host_cpu in
12924: ia64*) tmp_idyn=' -i_dynamic';;
12925: esac
12926: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927: 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'
12928: ;;
12929: esac
12930: archive_cmds_need_lc_CXX=no
12931: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12932: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12933: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12934: ;;
12935: pgCC* | pgcpp*)
12936: # Portland Group C++ compiler
12937: case `$CC -V` in
12938: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12939: prelink_cmds_CXX='tpldir=Template.dir~
12940: rm -rf $tpldir~
12941: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12942: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12943: old_archive_cmds_CXX='tpldir=Template.dir~
12944: rm -rf $tpldir~
12945: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12946: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12947: $RANLIB $oldlib'
12948: archive_cmds_CXX='tpldir=Template.dir~
12949: rm -rf $tpldir~
12950: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12951: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12952: archive_expsym_cmds_CXX='tpldir=Template.dir~
12953: rm -rf $tpldir~
12954: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12955: $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'
12956: ;;
12957: *) # Version 6 and above use weak symbols
12958: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12959: 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'
12960: ;;
12961: esac
12962:
12963: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12964: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12965: 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'
12966: ;;
12967: cxx*)
12968: # Compaq C++
12969: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970: 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'
12971:
12972: runpath_var=LD_RUN_PATH
12973: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12974: hardcode_libdir_separator_CXX=:
12975:
12976: # Commands to make compiler produce verbose output that lists
12977: # what "hidden" libraries, object files and flags are used when
12978: # linking a shared library.
12979: #
12980: # There doesn't appear to be a way to prevent this compiler from
12981: # explicitly linking system object files so we need to strip them
12982: # from the output so that they don't get included in the library
12983: # dependencies.
12984: 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'
12985: ;;
12986: xl* | mpixl* | bgxl*)
12987: # IBM XL 8.0 on PPC, with GNU ld
12988: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12989: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12990: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991: if test "x$supports_anon_versioning" = xyes; then
12992: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12993: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12994: echo "local: *; };" >> $output_objdir/$libname.ver~
12995: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12996: fi
12997: ;;
12998: *)
12999: case `$CC -V 2>&1 | sed 5q` in
13000: *Sun\ C*)
13001: # Sun C++ 5.9
13002: no_undefined_flag_CXX=' -zdefs'
13003: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004: 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'
13005: hardcode_libdir_flag_spec_CXX='-R$libdir'
13006: 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'
13007: compiler_needs_object_CXX=yes
13008:
13009: # Not sure whether something based on
13010: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13011: # would be better.
13012: output_verbose_link_cmd='func_echo_all'
13013:
13014: # Archives containing C++ object files must be created using
13015: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13016: # necessary to make sure instantiated templates are included
13017: # in the archive.
13018: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13019: ;;
13020: esac
13021: ;;
13022: esac
13023: ;;
13024:
13025: lynxos*)
13026: # FIXME: insert proper C++ library support
13027: ld_shlibs_CXX=no
13028: ;;
13029:
13030: m88k*)
13031: # FIXME: insert proper C++ library support
13032: ld_shlibs_CXX=no
13033: ;;
13034:
13035: mvs*)
13036: case $cc_basename in
13037: cxx*)
13038: # FIXME: insert proper C++ library support
13039: ld_shlibs_CXX=no
13040: ;;
13041: *)
13042: # FIXME: insert proper C++ library support
13043: ld_shlibs_CXX=no
13044: ;;
13045: esac
13046: ;;
13047:
13048: netbsd*)
13049: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13050: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13051: wlarc=
13052: hardcode_libdir_flag_spec_CXX='-R$libdir'
13053: hardcode_direct_CXX=yes
13054: hardcode_shlibpath_var_CXX=no
13055: fi
13056: # Workaround some broken pre-1.5 toolchains
13057: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13058: ;;
13059:
13060: *nto* | *qnx*)
13061: ld_shlibs_CXX=yes
13062: ;;
13063:
13064: openbsd2*)
13065: # C++ shared libraries are fairly broken
13066: ld_shlibs_CXX=no
13067: ;;
13068:
13069: openbsd*)
13070: if test -f /usr/libexec/ld.so; then
13071: hardcode_direct_CXX=yes
13072: hardcode_shlibpath_var_CXX=no
13073: hardcode_direct_absolute_CXX=yes
13074: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13075: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13076: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13077: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13078: export_dynamic_flag_spec_CXX='${wl}-E'
13079: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13080: fi
13081: output_verbose_link_cmd=func_echo_all
13082: else
13083: ld_shlibs_CXX=no
13084: fi
13085: ;;
13086:
13087: osf3* | osf4* | osf5*)
13088: case $cc_basename in
13089: KCC*)
13090: # Kuck and Associates, Inc. (KAI) C++ Compiler
13091:
13092: # KCC will only create a shared library if the output file
13093: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13094: # to its proper name (with version) after linking.
13095: 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'
13096:
13097: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13098: hardcode_libdir_separator_CXX=:
13099:
13100: # Archives containing C++ object files must be created using
13101: # the KAI C++ compiler.
13102: case $host in
13103: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13104: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13105: esac
13106: ;;
13107: RCC*)
13108: # Rational C++ 2.4.1
13109: # FIXME: insert proper C++ library support
13110: ld_shlibs_CXX=no
13111: ;;
13112: cxx*)
13113: case $host in
13114: osf3*)
13115: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13116: 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'
13117: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13118: ;;
13119: *)
13120: allow_undefined_flag_CXX=' -expect_unresolved \*'
13121: 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'
13122: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13123: echo "-hidden">> $lib.exp~
13124: $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~
13125: $RM $lib.exp'
13126: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13127: ;;
13128: esac
13129:
13130: hardcode_libdir_separator_CXX=:
13131:
13132: # Commands to make compiler produce verbose output that lists
13133: # what "hidden" libraries, object files and flags are used when
13134: # linking a shared library.
13135: #
13136: # There doesn't appear to be a way to prevent this compiler from
13137: # explicitly linking system object files so we need to strip them
13138: # from the output so that they don't get included in the library
13139: # dependencies.
13140: 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"'
13141: ;;
13142: *)
13143: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13144: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13145: case $host in
13146: osf3*)
13147: 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'
13148: ;;
13149: *)
13150: 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'
13151: ;;
13152: esac
13153:
13154: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13155: hardcode_libdir_separator_CXX=:
13156:
13157: # Commands to make compiler produce verbose output that lists
13158: # what "hidden" libraries, object files and flags are used when
13159: # linking a shared library.
13160: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13161:
13162: else
13163: # FIXME: insert proper C++ library support
13164: ld_shlibs_CXX=no
13165: fi
13166: ;;
13167: esac
13168: ;;
13169:
13170: psos*)
13171: # FIXME: insert proper C++ library support
13172: ld_shlibs_CXX=no
13173: ;;
13174:
13175: sunos4*)
13176: case $cc_basename in
13177: CC*)
13178: # Sun C++ 4.x
13179: # FIXME: insert proper C++ library support
13180: ld_shlibs_CXX=no
13181: ;;
13182: lcc*)
13183: # Lucid
13184: # FIXME: insert proper C++ library support
13185: ld_shlibs_CXX=no
13186: ;;
13187: *)
13188: # FIXME: insert proper C++ library support
13189: ld_shlibs_CXX=no
13190: ;;
13191: esac
13192: ;;
13193:
13194: solaris*)
13195: case $cc_basename in
13196: CC* | sunCC*)
13197: # Sun C++ 4.2, 5.x and Centerline C++
13198: archive_cmds_need_lc_CXX=yes
13199: no_undefined_flag_CXX=' -zdefs'
13200: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13202: $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'
13203:
13204: hardcode_libdir_flag_spec_CXX='-R$libdir'
13205: hardcode_shlibpath_var_CXX=no
13206: case $host_os in
13207: solaris2.[0-5] | solaris2.[0-5].*) ;;
13208: *)
13209: # The compiler driver will combine and reorder linker options,
13210: # but understands `-z linker_flag'.
13211: # Supported since Solaris 2.6 (maybe 2.5.1?)
13212: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13213: ;;
13214: esac
13215: link_all_deplibs_CXX=yes
13216:
13217: output_verbose_link_cmd='func_echo_all'
13218:
13219: # Archives containing C++ object files must be created using
13220: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13221: # necessary to make sure instantiated templates are included
13222: # in the archive.
13223: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13224: ;;
13225: gcx*)
13226: # Green Hills C++ Compiler
13227: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13228:
13229: # The C++ compiler must be used to create the archive.
13230: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13231: ;;
13232: *)
13233: # GNU C++ compiler with Solaris linker
13234: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13235: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13236: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13237: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13238: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13239: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13240:
13241: # Commands to make compiler produce verbose output that lists
13242: # what "hidden" libraries, object files and flags are used when
13243: # linking a shared library.
13244: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13245: else
13246: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13247: # platform.
13248: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13249: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13250: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13251:
13252: # Commands to make compiler produce verbose output that lists
13253: # what "hidden" libraries, object files and flags are used when
13254: # linking a shared library.
13255: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13256: fi
13257:
13258: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13259: case $host_os in
13260: solaris2.[0-5] | solaris2.[0-5].*) ;;
13261: *)
13262: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13263: ;;
13264: esac
13265: fi
13266: ;;
13267: esac
13268: ;;
13269:
13270: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13271: no_undefined_flag_CXX='${wl}-z,text'
13272: archive_cmds_need_lc_CXX=no
13273: hardcode_shlibpath_var_CXX=no
13274: runpath_var='LD_RUN_PATH'
13275:
13276: case $cc_basename in
13277: CC*)
13278: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280: ;;
13281: *)
13282: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13284: ;;
13285: esac
13286: ;;
13287:
13288: sysv5* | sco3.2v5* | sco5v6*)
13289: # Note: We can NOT use -z defs as we might desire, because we do not
13290: # link with -lc, and that would cause any symbols used from libc to
13291: # always be unresolved, which means just about no library would
13292: # ever link correctly. If we're not using GNU ld we use -z text
13293: # though, which does catch some bad symbols but isn't as heavy-handed
13294: # as -z defs.
13295: no_undefined_flag_CXX='${wl}-z,text'
13296: allow_undefined_flag_CXX='${wl}-z,nodefs'
13297: archive_cmds_need_lc_CXX=no
13298: hardcode_shlibpath_var_CXX=no
13299: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13300: hardcode_libdir_separator_CXX=':'
13301: link_all_deplibs_CXX=yes
13302: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13303: runpath_var='LD_RUN_PATH'
13304:
13305: case $cc_basename in
13306: CC*)
13307: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13310: '"$old_archive_cmds_CXX"
13311: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13312: '"$reload_cmds_CXX"
13313: ;;
13314: *)
13315: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317: ;;
13318: esac
13319: ;;
13320:
13321: tandem*)
13322: case $cc_basename in
13323: NCC*)
13324: # NonStop-UX NCC 3.20
13325: # FIXME: insert proper C++ library support
13326: ld_shlibs_CXX=no
13327: ;;
13328: *)
13329: # FIXME: insert proper C++ library support
13330: ld_shlibs_CXX=no
13331: ;;
13332: esac
13333: ;;
13334:
13335: vxworks*)
13336: # FIXME: insert proper C++ library support
13337: ld_shlibs_CXX=no
13338: ;;
13339:
13340: *)
13341: # FIXME: insert proper C++ library support
13342: ld_shlibs_CXX=no
13343: ;;
13344: esac
13345:
1.11 moko 13346: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13347: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 13348: test "$ld_shlibs_CXX" = no && can_build_shared=no
13349:
13350: GCC_CXX="$GXX"
13351: LD_CXX="$LD"
13352:
13353: ## CAVEAT EMPTOR:
13354: ## There is no encapsulation within the following macros, do not change
13355: ## the running order or otherwise move them around unless you know exactly
13356: ## what you are doing...
13357: # Dependencies to place before and after the object being linked:
13358: predep_objects_CXX=
13359: postdep_objects_CXX=
13360: predeps_CXX=
13361: postdeps_CXX=
13362: compiler_lib_search_path_CXX=
13363:
13364: cat > conftest.$ac_ext <<_LT_EOF
13365: class Foo
13366: {
13367: public:
13368: Foo (void) { a = 0; }
13369: private:
13370: int a;
13371: };
13372: _LT_EOF
13373:
13374:
13375: _lt_libdeps_save_CFLAGS=$CFLAGS
13376: case "$CC $CFLAGS " in #(
13377: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13378: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13379: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13380: esac
13381:
1.11 moko 13382: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 13383: (eval $ac_compile) 2>&5
13384: ac_status=$?
1.11 moko 13385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386: (exit $ac_status); }; then
1.8 moko 13387: # Parse the compiler output and extract the necessary
13388: # objects, libraries and library flags.
13389:
13390: # Sentinel used to keep track of whether or not we are before
13391: # the conftest object file.
13392: pre_test_object_deps_done=no
13393:
13394: for p in `eval "$output_verbose_link_cmd"`; do
13395: case ${prev}${p} in
13396:
13397: -L* | -R* | -l*)
13398: # Some compilers place space between "-{L,R}" and the path.
13399: # Remove the space.
13400: if test $p = "-L" ||
13401: test $p = "-R"; then
13402: prev=$p
13403: continue
13404: fi
13405:
13406: # Expand the sysroot to ease extracting the directories later.
13407: if test -z "$prev"; then
13408: case $p in
13409: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13410: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13411: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13412: esac
13413: fi
13414: case $p in
13415: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13416: esac
13417: if test "$pre_test_object_deps_done" = no; then
13418: case ${prev} in
13419: -L | -R)
13420: # Internal compiler library paths should come after those
13421: # provided the user. The postdeps already come after the
13422: # user supplied libs so there is no need to process them.
13423: if test -z "$compiler_lib_search_path_CXX"; then
13424: compiler_lib_search_path_CXX="${prev}${p}"
13425: else
13426: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13427: fi
13428: ;;
13429: # The "-l" case would never come before the object being
13430: # linked, so don't bother handling this case.
13431: esac
13432: else
13433: if test -z "$postdeps_CXX"; then
13434: postdeps_CXX="${prev}${p}"
13435: else
13436: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13437: fi
13438: fi
13439: prev=
13440: ;;
13441:
13442: *.lto.$objext) ;; # Ignore GCC LTO objects
13443: *.$objext)
13444: # This assumes that the test object file only shows up
13445: # once in the compiler output.
13446: if test "$p" = "conftest.$objext"; then
13447: pre_test_object_deps_done=yes
13448: continue
13449: fi
13450:
13451: if test "$pre_test_object_deps_done" = no; then
13452: if test -z "$predep_objects_CXX"; then
13453: predep_objects_CXX="$p"
13454: else
13455: predep_objects_CXX="$predep_objects_CXX $p"
13456: fi
13457: else
13458: if test -z "$postdep_objects_CXX"; then
13459: postdep_objects_CXX="$p"
13460: else
13461: postdep_objects_CXX="$postdep_objects_CXX $p"
13462: fi
13463: fi
13464: ;;
13465:
13466: *) ;; # Ignore the rest.
13467:
13468: esac
13469: done
13470:
13471: # Clean up.
13472: rm -f a.out a.exe
13473: else
13474: echo "libtool.m4: error: problem compiling CXX test program"
13475: fi
13476:
13477: $RM -f confest.$objext
13478: CFLAGS=$_lt_libdeps_save_CFLAGS
13479:
13480: # PORTME: override above test on systems where it is broken
13481: case $host_os in
13482: interix[3-9]*)
13483: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13484: # hack all around it, let's just trust "g++" to DTRT.
13485: predep_objects_CXX=
13486: postdep_objects_CXX=
13487: postdeps_CXX=
13488: ;;
13489:
13490: linux*)
13491: case `$CC -V 2>&1 | sed 5q` in
13492: *Sun\ C*)
13493: # Sun C++ 5.9
13494:
13495: # The more standards-conforming stlport4 library is
13496: # incompatible with the Cstd library. Avoid specifying
13497: # it if it's in CXXFLAGS. Ignore libCrun as
13498: # -library=stlport4 depends on it.
13499: case " $CXX $CXXFLAGS " in
13500: *" -library=stlport4 "*)
13501: solaris_use_stlport4=yes
13502: ;;
13503: esac
13504:
13505: if test "$solaris_use_stlport4" != yes; then
13506: postdeps_CXX='-library=Cstd -library=Crun'
13507: fi
13508: ;;
13509: esac
13510: ;;
13511:
13512: solaris*)
13513: case $cc_basename in
13514: CC* | sunCC*)
13515: # The more standards-conforming stlport4 library is
13516: # incompatible with the Cstd library. Avoid specifying
13517: # it if it's in CXXFLAGS. Ignore libCrun as
13518: # -library=stlport4 depends on it.
13519: case " $CXX $CXXFLAGS " in
13520: *" -library=stlport4 "*)
13521: solaris_use_stlport4=yes
13522: ;;
13523: esac
13524:
13525: # Adding this requires a known-good setup of shared libraries for
13526: # Sun compiler versions before 5.6, else PIC objects from an old
13527: # archive will be linked into the output, leading to subtle bugs.
13528: if test "$solaris_use_stlport4" != yes; then
13529: postdeps_CXX='-library=Cstd -library=Crun'
13530: fi
13531: ;;
13532: esac
13533: ;;
13534: esac
13535:
13536:
13537: case " $postdeps_CXX " in
13538: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13539: esac
13540: compiler_lib_search_dirs_CXX=
13541: if test -n "${compiler_lib_search_path_CXX}"; then
13542: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13543: fi
13544:
13545:
13546:
13547:
13548:
13549:
13550:
13551:
13552:
13553:
13554:
13555:
13556:
13557:
13558:
13559:
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574:
13575: lt_prog_compiler_wl_CXX=
13576: lt_prog_compiler_pic_CXX=
13577: lt_prog_compiler_static_CXX=
13578:
13579:
13580: # C++ specific cases for pic, static, wl, etc.
13581: if test "$GXX" = yes; then
13582: lt_prog_compiler_wl_CXX='-Wl,'
13583: lt_prog_compiler_static_CXX='-static'
13584:
13585: case $host_os in
13586: aix*)
13587: # All AIX code is PIC.
13588: if test "$host_cpu" = ia64; then
13589: # AIX 5 now supports IA64 processor
13590: lt_prog_compiler_static_CXX='-Bstatic'
13591: fi
13592: ;;
13593:
13594: amigaos*)
13595: case $host_cpu in
13596: powerpc)
13597: # see comment about AmigaOS4 .so support
13598: lt_prog_compiler_pic_CXX='-fPIC'
13599: ;;
13600: m68k)
13601: # FIXME: we need at least 68020 code to build shared libraries, but
13602: # adding the `-m68020' flag to GCC prevents building anything better,
13603: # like `-m68040'.
13604: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13605: ;;
13606: esac
13607: ;;
13608:
13609: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13610: # PIC is the default for these OSes.
13611: ;;
13612: mingw* | cygwin* | os2* | pw32* | cegcc*)
13613: # This hack is so that the source file can tell whether it is being
13614: # built for inclusion in a dll (and should export symbols for example).
13615: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13616: # (--disable-auto-import) libraries
13617: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13618: ;;
13619: darwin* | rhapsody*)
13620: # PIC is the default on this platform
13621: # Common symbols not allowed in MH_DYLIB files
13622: lt_prog_compiler_pic_CXX='-fno-common'
13623: ;;
13624: *djgpp*)
13625: # DJGPP does not support shared libraries at all
13626: lt_prog_compiler_pic_CXX=
13627: ;;
13628: haiku*)
13629: # PIC is the default for Haiku.
13630: # The "-static" flag exists, but is broken.
13631: lt_prog_compiler_static_CXX=
13632: ;;
13633: interix[3-9]*)
13634: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13635: # Instead, we relocate shared libraries at runtime.
13636: ;;
13637: sysv4*MP*)
13638: if test -d /usr/nec; then
13639: lt_prog_compiler_pic_CXX=-Kconform_pic
13640: fi
13641: ;;
13642: hpux*)
13643: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13644: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13645: # sets the default TLS model and affects inlining.
13646: case $host_cpu in
13647: hppa*64*)
13648: ;;
13649: *)
13650: lt_prog_compiler_pic_CXX='-fPIC'
13651: ;;
13652: esac
13653: ;;
13654: *qnx* | *nto*)
13655: # QNX uses GNU C++, but need to define -shared option too, otherwise
13656: # it will coredump.
13657: lt_prog_compiler_pic_CXX='-fPIC -shared'
13658: ;;
13659: *)
13660: lt_prog_compiler_pic_CXX='-fPIC'
13661: ;;
13662: esac
13663: else
13664: case $host_os in
13665: aix[4-9]*)
13666: # All AIX code is PIC.
13667: if test "$host_cpu" = ia64; then
13668: # AIX 5 now supports IA64 processor
13669: lt_prog_compiler_static_CXX='-Bstatic'
13670: else
13671: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13672: fi
13673: ;;
13674: chorus*)
13675: case $cc_basename in
13676: cxch68*)
13677: # Green Hills C++ Compiler
13678: # _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"
13679: ;;
13680: esac
13681: ;;
13682: mingw* | cygwin* | os2* | pw32* | cegcc*)
13683: # This hack is so that the source file can tell whether it is being
13684: # built for inclusion in a dll (and should export symbols for example).
13685: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13686: ;;
13687: dgux*)
13688: case $cc_basename in
13689: ec++*)
13690: lt_prog_compiler_pic_CXX='-KPIC'
13691: ;;
13692: ghcx*)
13693: # Green Hills C++ Compiler
13694: lt_prog_compiler_pic_CXX='-pic'
13695: ;;
13696: *)
13697: ;;
13698: esac
13699: ;;
13700: freebsd* | dragonfly*)
13701: # FreeBSD uses GNU C++
13702: ;;
13703: hpux9* | hpux10* | hpux11*)
13704: case $cc_basename in
13705: CC*)
13706: lt_prog_compiler_wl_CXX='-Wl,'
13707: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13708: if test "$host_cpu" != ia64; then
13709: lt_prog_compiler_pic_CXX='+Z'
13710: fi
13711: ;;
13712: aCC*)
13713: lt_prog_compiler_wl_CXX='-Wl,'
13714: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13715: case $host_cpu in
13716: hppa*64*|ia64*)
13717: # +Z the default
13718: ;;
13719: *)
13720: lt_prog_compiler_pic_CXX='+Z'
13721: ;;
13722: esac
13723: ;;
13724: *)
13725: ;;
13726: esac
13727: ;;
13728: interix*)
13729: # This is c89, which is MS Visual C++ (no shared libs)
13730: # Anyone wants to do a port?
13731: ;;
13732: irix5* | irix6* | nonstopux*)
13733: case $cc_basename in
13734: CC*)
13735: lt_prog_compiler_wl_CXX='-Wl,'
13736: lt_prog_compiler_static_CXX='-non_shared'
13737: # CC pic flag -KPIC is the default.
13738: ;;
13739: *)
13740: ;;
13741: esac
13742: ;;
13743: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13744: case $cc_basename in
13745: KCC*)
13746: # KAI C++ Compiler
13747: lt_prog_compiler_wl_CXX='--backend -Wl,'
13748: lt_prog_compiler_pic_CXX='-fPIC'
13749: ;;
13750: ecpc* )
13751: # old Intel C++ for x86_64 which still supported -KPIC.
13752: lt_prog_compiler_wl_CXX='-Wl,'
13753: lt_prog_compiler_pic_CXX='-KPIC'
13754: lt_prog_compiler_static_CXX='-static'
13755: ;;
13756: icpc* )
13757: # Intel C++, used to be incompatible with GCC.
13758: # ICC 10 doesn't accept -KPIC any more.
13759: lt_prog_compiler_wl_CXX='-Wl,'
13760: lt_prog_compiler_pic_CXX='-fPIC'
13761: lt_prog_compiler_static_CXX='-static'
13762: ;;
13763: pgCC* | pgcpp*)
13764: # Portland Group C++ compiler
13765: lt_prog_compiler_wl_CXX='-Wl,'
13766: lt_prog_compiler_pic_CXX='-fpic'
13767: lt_prog_compiler_static_CXX='-Bstatic'
13768: ;;
13769: cxx*)
13770: # Compaq C++
13771: # Make sure the PIC flag is empty. It appears that all Alpha
13772: # Linux and Compaq Tru64 Unix objects are PIC.
13773: lt_prog_compiler_pic_CXX=
13774: lt_prog_compiler_static_CXX='-non_shared'
13775: ;;
13776: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13777: # IBM XL 8.0, 9.0 on PPC and BlueGene
13778: lt_prog_compiler_wl_CXX='-Wl,'
13779: lt_prog_compiler_pic_CXX='-qpic'
13780: lt_prog_compiler_static_CXX='-qstaticlink'
13781: ;;
13782: *)
13783: case `$CC -V 2>&1 | sed 5q` in
13784: *Sun\ C*)
13785: # Sun C++ 5.9
13786: lt_prog_compiler_pic_CXX='-KPIC'
13787: lt_prog_compiler_static_CXX='-Bstatic'
13788: lt_prog_compiler_wl_CXX='-Qoption ld '
13789: ;;
13790: esac
13791: ;;
13792: esac
13793: ;;
13794: lynxos*)
13795: ;;
13796: m88k*)
13797: ;;
13798: mvs*)
13799: case $cc_basename in
13800: cxx*)
13801: lt_prog_compiler_pic_CXX='-W c,exportall'
13802: ;;
13803: *)
13804: ;;
13805: esac
13806: ;;
13807: netbsd*)
13808: ;;
13809: *qnx* | *nto*)
13810: # QNX uses GNU C++, but need to define -shared option too, otherwise
13811: # it will coredump.
13812: lt_prog_compiler_pic_CXX='-fPIC -shared'
13813: ;;
13814: osf3* | osf4* | osf5*)
13815: case $cc_basename in
13816: KCC*)
13817: lt_prog_compiler_wl_CXX='--backend -Wl,'
13818: ;;
13819: RCC*)
13820: # Rational C++ 2.4.1
13821: lt_prog_compiler_pic_CXX='-pic'
13822: ;;
13823: cxx*)
13824: # Digital/Compaq C++
13825: lt_prog_compiler_wl_CXX='-Wl,'
13826: # Make sure the PIC flag is empty. It appears that all Alpha
13827: # Linux and Compaq Tru64 Unix objects are PIC.
13828: lt_prog_compiler_pic_CXX=
13829: lt_prog_compiler_static_CXX='-non_shared'
13830: ;;
13831: *)
13832: ;;
13833: esac
13834: ;;
13835: psos*)
13836: ;;
13837: solaris*)
13838: case $cc_basename in
13839: CC* | sunCC*)
13840: # Sun C++ 4.2, 5.x and Centerline C++
13841: lt_prog_compiler_pic_CXX='-KPIC'
13842: lt_prog_compiler_static_CXX='-Bstatic'
13843: lt_prog_compiler_wl_CXX='-Qoption ld '
13844: ;;
13845: gcx*)
13846: # Green Hills C++ Compiler
13847: lt_prog_compiler_pic_CXX='-PIC'
13848: ;;
13849: *)
13850: ;;
13851: esac
13852: ;;
13853: sunos4*)
13854: case $cc_basename in
13855: CC*)
13856: # Sun C++ 4.x
13857: lt_prog_compiler_pic_CXX='-pic'
13858: lt_prog_compiler_static_CXX='-Bstatic'
13859: ;;
13860: lcc*)
13861: # Lucid
13862: lt_prog_compiler_pic_CXX='-pic'
13863: ;;
13864: *)
13865: ;;
13866: esac
13867: ;;
13868: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13869: case $cc_basename in
13870: CC*)
13871: lt_prog_compiler_wl_CXX='-Wl,'
13872: lt_prog_compiler_pic_CXX='-KPIC'
13873: lt_prog_compiler_static_CXX='-Bstatic'
13874: ;;
13875: esac
13876: ;;
13877: tandem*)
13878: case $cc_basename in
13879: NCC*)
13880: # NonStop-UX NCC 3.20
13881: lt_prog_compiler_pic_CXX='-KPIC'
13882: ;;
13883: *)
13884: ;;
13885: esac
13886: ;;
13887: vxworks*)
13888: ;;
13889: *)
13890: lt_prog_compiler_can_build_shared_CXX=no
13891: ;;
13892: esac
13893: fi
13894:
13895: case $host_os in
13896: # For platforms which do not support PIC, -DPIC is meaningless:
13897: *djgpp*)
13898: lt_prog_compiler_pic_CXX=
13899: ;;
13900: *)
13901: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13902: ;;
13903: esac
13904:
1.11 moko 13905: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13906: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13907: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13908: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13909: else
13910: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13911: fi
1.11 moko 13912: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13913: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
1.8 moko 13914: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13915:
13916: #
13917: # Check to make sure the PIC flag actually works.
13918: #
13919: if test -n "$lt_prog_compiler_pic_CXX"; then
1.11 moko 13920: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13921: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13922: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13923: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13924: else
13925: lt_cv_prog_compiler_pic_works_CXX=no
13926: ac_outfile=conftest.$ac_objext
13927: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13928: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13929: # Insert the option either (1) after the last *FLAGS variable, or
13930: # (2) before a word containing "conftest.", or (3) at the end.
13931: # Note that $ac_compile itself does not contain backslashes and begins
13932: # with a dollar sign (not a hyphen), so the echo should work correctly.
13933: # The option is referenced via a variable to avoid confusing sed.
13934: lt_compile=`echo "$ac_compile" | $SED \
13935: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13936: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13937: -e 's:$: $lt_compiler_flag:'`
13938: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13939: (eval "$lt_compile" 2>conftest.err)
13940: ac_status=$?
13941: cat conftest.err >&5
13942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943: if (exit $ac_status) && test -s "$ac_outfile"; then
13944: # The compiler can only warn and ignore the option if not recognized
13945: # So say no if there are warnings other than the usual output.
13946: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13947: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13948: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13949: lt_cv_prog_compiler_pic_works_CXX=yes
13950: fi
13951: fi
13952: $RM conftest*
13953:
13954: fi
1.11 moko 13955: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13956: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
1.8 moko 13957:
13958: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13959: case $lt_prog_compiler_pic_CXX in
13960: "" | " "*) ;;
13961: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13962: esac
13963: else
13964: lt_prog_compiler_pic_CXX=
13965: lt_prog_compiler_can_build_shared_CXX=no
13966: fi
13967:
13968: fi
13969:
13970:
13971:
13972:
13973:
13974: #
13975: # Check to make sure the static flag actually works.
13976: #
13977: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.11 moko 13978: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13979: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13980: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13982: else
13983: lt_cv_prog_compiler_static_works_CXX=no
13984: save_LDFLAGS="$LDFLAGS"
13985: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13986: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13987: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13988: # The linker can only warn and ignore the option if not recognized
13989: # So say no if there are warnings
13990: if test -s conftest.err; then
13991: # Append any errors to the config.log.
13992: cat conftest.err 1>&5
13993: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13994: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13995: if diff conftest.exp conftest.er2 >/dev/null; then
13996: lt_cv_prog_compiler_static_works_CXX=yes
13997: fi
13998: else
13999: lt_cv_prog_compiler_static_works_CXX=yes
14000: fi
14001: fi
14002: $RM -r conftest*
14003: LDFLAGS="$save_LDFLAGS"
14004:
14005: fi
1.11 moko 14006: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14007: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
1.8 moko 14008:
14009: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14010: :
14011: else
14012: lt_prog_compiler_static_CXX=
14013: fi
14014:
14015:
14016:
14017:
1.11 moko 14018: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14019: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14020: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14021: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14022: else
14023: lt_cv_prog_compiler_c_o_CXX=no
14024: $RM -r conftest 2>/dev/null
14025: mkdir conftest
14026: cd conftest
14027: mkdir out
14028: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14029:
14030: lt_compiler_flag="-o out/conftest2.$ac_objext"
14031: # Insert the option either (1) after the last *FLAGS variable, or
14032: # (2) before a word containing "conftest.", or (3) at the end.
14033: # Note that $ac_compile itself does not contain backslashes and begins
14034: # with a dollar sign (not a hyphen), so the echo should work correctly.
14035: lt_compile=`echo "$ac_compile" | $SED \
14036: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14037: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14038: -e 's:$: $lt_compiler_flag:'`
14039: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14040: (eval "$lt_compile" 2>out/conftest.err)
14041: ac_status=$?
14042: cat out/conftest.err >&5
14043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14045: then
14046: # The compiler can only warn and ignore the option if not recognized
14047: # So say no if there are warnings
14048: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14049: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14050: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14051: lt_cv_prog_compiler_c_o_CXX=yes
14052: fi
14053: fi
14054: chmod u+w . 2>&5
14055: $RM conftest*
14056: # SGI C++ compiler will create directory out/ii_files/ for
14057: # template instantiation
14058: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14059: $RM out/* && rmdir out
14060: cd ..
14061: $RM -r conftest
14062: $RM conftest*
14063:
14064: fi
1.11 moko 14065: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14066: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14067:
14068:
14069:
1.11 moko 14070: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14071: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14072: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14073: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14074: else
14075: lt_cv_prog_compiler_c_o_CXX=no
14076: $RM -r conftest 2>/dev/null
14077: mkdir conftest
14078: cd conftest
14079: mkdir out
14080: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14081:
14082: lt_compiler_flag="-o out/conftest2.$ac_objext"
14083: # Insert the option either (1) after the last *FLAGS variable, or
14084: # (2) before a word containing "conftest.", or (3) at the end.
14085: # Note that $ac_compile itself does not contain backslashes and begins
14086: # with a dollar sign (not a hyphen), so the echo should work correctly.
14087: lt_compile=`echo "$ac_compile" | $SED \
14088: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14089: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14090: -e 's:$: $lt_compiler_flag:'`
14091: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14092: (eval "$lt_compile" 2>out/conftest.err)
14093: ac_status=$?
14094: cat out/conftest.err >&5
14095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14097: then
14098: # The compiler can only warn and ignore the option if not recognized
14099: # So say no if there are warnings
14100: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14101: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14102: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14103: lt_cv_prog_compiler_c_o_CXX=yes
14104: fi
14105: fi
14106: chmod u+w . 2>&5
14107: $RM conftest*
14108: # SGI C++ compiler will create directory out/ii_files/ for
14109: # template instantiation
14110: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14111: $RM out/* && rmdir out
14112: cd ..
14113: $RM -r conftest
14114: $RM conftest*
14115:
14116: fi
1.11 moko 14117: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14118: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14119:
14120:
14121:
14122:
14123: hard_links="nottested"
14124: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14125: # do not overwrite the value of need_locks provided by the user
1.11 moko 14126: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14127: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 14128: hard_links=yes
14129: $RM conftest*
14130: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14131: touch conftest.a
14132: ln conftest.a conftest.b 2>&5 || hard_links=no
14133: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 14134: echo "$as_me:$LINENO: result: $hard_links" >&5
14135: echo "${ECHO_T}$hard_links" >&6
1.8 moko 14136: if test "$hard_links" = no; then
1.11 moko 14137: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14138: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 14139: need_locks=warn
14140: fi
14141: else
14142: need_locks=no
14143: fi
14144:
14145:
14146:
1.11 moko 14147: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14148: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 14149:
14150: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14151: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14152: case $host_os in
14153: aix[4-9]*)
14154: # If we're using GNU nm, then we don't want the "-C" option.
14155: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14156: # Also, AIX nm treats weak defined symbols like other global defined
14157: # symbols, whereas GNU nm marks them as "W".
14158: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14159: 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'
14160: else
14161: 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'
14162: fi
14163: ;;
14164: pw32*)
14165: export_symbols_cmds_CXX="$ltdll_cmds"
14166: ;;
14167: cygwin* | mingw* | cegcc*)
14168: case $cc_basename in
14169: cl*)
14170: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14171: ;;
14172: *)
14173: 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'
14174: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14175: ;;
14176: esac
14177: ;;
14178: *)
14179: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14180: ;;
14181: esac
14182:
1.11 moko 14183: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14184: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 14185: test "$ld_shlibs_CXX" = no && can_build_shared=no
14186:
14187: with_gnu_ld_CXX=$with_gnu_ld
14188:
14189:
14190:
14191:
14192:
14193:
14194: #
14195: # Do we need to explicitly link libc?
14196: #
14197: case "x$archive_cmds_need_lc_CXX" in
14198: x|xyes)
14199: # Assume -lc should be added
14200: archive_cmds_need_lc_CXX=yes
14201:
14202: if test "$enable_shared" = yes && test "$GCC" = yes; then
14203: case $archive_cmds_CXX in
14204: *'~'*)
14205: # FIXME: we may have to deal with multi-command sequences.
14206: ;;
14207: '$CC '*)
14208: # Test whether the compiler implicitly links with -lc since on some
14209: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14210: # to ld, don't add -lc before -lgcc.
1.11 moko 14211: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14212: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14213: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14214: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14215: else
14216: $RM conftest*
14217: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14218:
1.11 moko 14219: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 14220: (eval $ac_compile) 2>&5
14221: ac_status=$?
1.11 moko 14222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223: (exit $ac_status); } 2>conftest.err; then
1.8 moko 14224: soname=conftest
14225: lib=conftest
14226: libobjs=conftest.$ac_objext
14227: deplibs=
14228: wl=$lt_prog_compiler_wl_CXX
14229: pic_flag=$lt_prog_compiler_pic_CXX
14230: compiler_flags=-v
14231: linker_flags=-v
14232: verstring=
14233: output_objdir=.
14234: libname=conftest
14235: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14236: allow_undefined_flag_CXX=
1.11 moko 14237: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 14238: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14239: ac_status=$?
1.11 moko 14240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241: (exit $ac_status); }
1.8 moko 14242: then
14243: lt_cv_archive_cmds_need_lc_CXX=no
14244: else
14245: lt_cv_archive_cmds_need_lc_CXX=yes
14246: fi
14247: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14248: else
14249: cat conftest.err 1>&5
14250: fi
14251: $RM conftest*
14252:
14253: fi
1.11 moko 14254: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14255: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
1.8 moko 14256: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14257: ;;
14258: esac
14259: fi
14260: ;;
14261: esac
14262:
14263:
14264:
14265:
14266:
14267:
14268:
14269:
14270:
14271:
14272:
14273:
14274:
14275:
14276:
14277:
14278:
14279:
14280:
14281:
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322:
14323:
1.11 moko 14324: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14325: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.8 moko 14326:
14327: library_names_spec=
14328: libname_spec='lib$name'
14329: soname_spec=
14330: shrext_cmds=".so"
14331: postinstall_cmds=
14332: postuninstall_cmds=
14333: finish_cmds=
14334: finish_eval=
14335: shlibpath_var=
14336: shlibpath_overrides_runpath=unknown
14337: version_type=none
14338: dynamic_linker="$host_os ld.so"
14339: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14340: need_lib_prefix=unknown
14341: hardcode_into_libs=no
14342:
14343: # when you set need_version to no, make sure it does not cause -set_version
14344: # flags to be left without arguments
14345: need_version=unknown
14346:
14347: case $host_os in
14348: aix3*)
14349: version_type=linux # correct to gnu/linux during the next big refactor
14350: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14351: shlibpath_var=LIBPATH
14352:
14353: # AIX 3 has no versioning support, so we append a major version to the name.
14354: soname_spec='${libname}${release}${shared_ext}$major'
14355: ;;
14356:
14357: aix[4-9]*)
14358: version_type=linux # correct to gnu/linux during the next big refactor
14359: need_lib_prefix=no
14360: need_version=no
14361: hardcode_into_libs=yes
14362: if test "$host_cpu" = ia64; then
14363: # AIX 5 supports IA64
14364: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14365: shlibpath_var=LD_LIBRARY_PATH
14366: else
14367: # With GCC up to 2.95.x, collect2 would create an import file
14368: # for dependence libraries. The import file would start with
14369: # the line `#! .'. This would cause the generated library to
14370: # depend on `.', always an invalid library. This was fixed in
14371: # development snapshots of GCC prior to 3.0.
14372: case $host_os in
14373: aix4 | aix4.[01] | aix4.[01].*)
14374: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14375: echo ' yes '
14376: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14377: :
14378: else
14379: can_build_shared=no
14380: fi
14381: ;;
14382: esac
14383: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14384: # soname into executable. Probably we can add versioning support to
14385: # collect2, so additional links can be useful in future.
14386: if test "$aix_use_runtimelinking" = yes; then
14387: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14388: # instead of lib<name>.a to let people know that these are not
14389: # typical AIX shared libraries.
14390: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391: else
14392: # We preserve .a as extension for shared libraries through AIX4.2
14393: # and later when we are not doing run time linking.
14394: library_names_spec='${libname}${release}.a $libname.a'
14395: soname_spec='${libname}${release}${shared_ext}$major'
14396: fi
14397: shlibpath_var=LIBPATH
14398: fi
14399: ;;
14400:
14401: amigaos*)
14402: case $host_cpu in
14403: powerpc)
14404: # Since July 2007 AmigaOS4 officially supports .so libraries.
14405: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14406: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407: ;;
14408: m68k)
14409: library_names_spec='$libname.ixlibrary $libname.a'
14410: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14411: 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'
14412: ;;
14413: esac
14414: ;;
14415:
14416: beos*)
14417: library_names_spec='${libname}${shared_ext}'
14418: dynamic_linker="$host_os ld.so"
14419: shlibpath_var=LIBRARY_PATH
14420: ;;
14421:
14422: bsdi[45]*)
14423: version_type=linux # correct to gnu/linux during the next big refactor
14424: need_version=no
14425: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426: soname_spec='${libname}${release}${shared_ext}$major'
14427: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14428: shlibpath_var=LD_LIBRARY_PATH
14429: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14430: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14431: # the default ld.so.conf also contains /usr/contrib/lib and
14432: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14433: # libtool to hard-code these into programs
14434: ;;
14435:
14436: cygwin* | mingw* | pw32* | cegcc*)
14437: version_type=windows
14438: shrext_cmds=".dll"
14439: need_version=no
14440: need_lib_prefix=no
14441:
14442: case $GCC,$cc_basename in
14443: yes,*)
14444: # gcc
14445: library_names_spec='$libname.dll.a'
14446: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14447: postinstall_cmds='base_file=`basename \${file}`~
14448: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14449: dldir=$destdir/`dirname \$dlpath`~
14450: test -d \$dldir || mkdir -p \$dldir~
14451: $install_prog $dir/$dlname \$dldir/$dlname~
14452: chmod a+x \$dldir/$dlname~
14453: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14454: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14455: fi'
14456: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14457: dlpath=$dir/\$dldll~
14458: $RM \$dlpath'
14459: shlibpath_overrides_runpath=yes
14460:
14461: case $host_os in
14462: cygwin*)
14463: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14464: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14465:
14466: ;;
14467: mingw* | cegcc*)
14468: # MinGW DLLs use traditional 'lib' prefix
14469: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14470: ;;
14471: pw32*)
14472: # pw32 DLLs use 'pw' prefix rather than 'lib'
14473: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474: ;;
14475: esac
14476: dynamic_linker='Win32 ld.exe'
14477: ;;
14478:
14479: *,cl*)
14480: # Native MSVC
14481: libname_spec='$name'
14482: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483: library_names_spec='${libname}.dll.lib'
14484:
14485: case $build_os in
14486: mingw*)
14487: sys_lib_search_path_spec=
14488: lt_save_ifs=$IFS
14489: IFS=';'
14490: for lt_path in $LIB
14491: do
14492: IFS=$lt_save_ifs
14493: # Let DOS variable expansion print the short 8.3 style file name.
14494: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14495: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14496: done
14497: IFS=$lt_save_ifs
14498: # Convert to MSYS style.
14499: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14500: ;;
14501: cygwin*)
14502: # Convert to unix form, then to dos form, then back to unix form
14503: # but this time dos style (no spaces!) so that the unix form looks
14504: # like /cygdrive/c/PROGRA~1:/cygdr...
14505: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14506: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14507: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14508: ;;
14509: *)
14510: sys_lib_search_path_spec="$LIB"
14511: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14512: # It is most probably a Windows format PATH.
14513: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14514: else
14515: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14516: fi
14517: # FIXME: find the short name or the path components, as spaces are
14518: # common. (e.g. "Program Files" -> "PROGRA~1")
14519: ;;
14520: esac
14521:
14522: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14523: postinstall_cmds='base_file=`basename \${file}`~
14524: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14525: dldir=$destdir/`dirname \$dlpath`~
14526: test -d \$dldir || mkdir -p \$dldir~
14527: $install_prog $dir/$dlname \$dldir/$dlname'
14528: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14529: dlpath=$dir/\$dldll~
14530: $RM \$dlpath'
14531: shlibpath_overrides_runpath=yes
14532: dynamic_linker='Win32 link.exe'
14533: ;;
14534:
14535: *)
14536: # Assume MSVC wrapper
14537: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14538: dynamic_linker='Win32 ld.exe'
14539: ;;
14540: esac
14541: # FIXME: first we should search . and the directory the executable is in
14542: shlibpath_var=PATH
14543: ;;
14544:
14545: darwin* | rhapsody*)
14546: dynamic_linker="$host_os dyld"
14547: version_type=darwin
14548: need_lib_prefix=no
14549: need_version=no
14550: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14551: soname_spec='${libname}${release}${major}$shared_ext'
14552: shlibpath_overrides_runpath=yes
14553: shlibpath_var=DYLD_LIBRARY_PATH
14554: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14555:
14556: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14557: ;;
14558:
14559: dgux*)
14560: version_type=linux # correct to gnu/linux during the next big refactor
14561: need_lib_prefix=no
14562: need_version=no
14563: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14564: soname_spec='${libname}${release}${shared_ext}$major'
14565: shlibpath_var=LD_LIBRARY_PATH
14566: ;;
14567:
14568: freebsd* | dragonfly*)
14569: # DragonFly does not have aout. When/if they implement a new
14570: # versioning mechanism, adjust this.
14571: if test -x /usr/bin/objformat; then
14572: objformat=`/usr/bin/objformat`
14573: else
14574: case $host_os in
14575: freebsd[23].*) objformat=aout ;;
14576: *) objformat=elf ;;
14577: esac
14578: fi
14579: version_type=freebsd-$objformat
14580: case $version_type in
14581: freebsd-elf*)
14582: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14583: need_version=no
14584: need_lib_prefix=no
14585: ;;
14586: freebsd-*)
14587: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14588: need_version=yes
14589: ;;
14590: esac
14591: shlibpath_var=LD_LIBRARY_PATH
14592: case $host_os in
14593: freebsd2.*)
14594: shlibpath_overrides_runpath=yes
14595: ;;
14596: freebsd3.[01]* | freebsdelf3.[01]*)
14597: shlibpath_overrides_runpath=yes
14598: hardcode_into_libs=yes
14599: ;;
14600: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14601: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14602: shlibpath_overrides_runpath=no
14603: hardcode_into_libs=yes
14604: ;;
14605: *) # from 4.6 on, and DragonFly
14606: shlibpath_overrides_runpath=yes
14607: hardcode_into_libs=yes
14608: ;;
14609: esac
14610: ;;
14611:
14612: gnu*)
14613: version_type=linux # correct to gnu/linux during the next big refactor
14614: need_lib_prefix=no
14615: need_version=no
14616: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14617: soname_spec='${libname}${release}${shared_ext}$major'
14618: shlibpath_var=LD_LIBRARY_PATH
14619: shlibpath_overrides_runpath=no
14620: hardcode_into_libs=yes
14621: ;;
14622:
14623: haiku*)
14624: version_type=linux # correct to gnu/linux during the next big refactor
14625: need_lib_prefix=no
14626: need_version=no
14627: dynamic_linker="$host_os runtime_loader"
14628: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14629: soname_spec='${libname}${release}${shared_ext}$major'
14630: shlibpath_var=LIBRARY_PATH
14631: shlibpath_overrides_runpath=yes
14632: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14633: hardcode_into_libs=yes
14634: ;;
14635:
14636: hpux9* | hpux10* | hpux11*)
14637: # Give a soname corresponding to the major version so that dld.sl refuses to
14638: # link against other versions.
14639: version_type=sunos
14640: need_lib_prefix=no
14641: need_version=no
14642: case $host_cpu in
14643: ia64*)
14644: shrext_cmds='.so'
14645: hardcode_into_libs=yes
14646: dynamic_linker="$host_os dld.so"
14647: shlibpath_var=LD_LIBRARY_PATH
14648: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14649: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14650: soname_spec='${libname}${release}${shared_ext}$major'
14651: if test "X$HPUX_IA64_MODE" = X32; then
14652: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14653: else
14654: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14655: fi
14656: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14657: ;;
14658: hppa*64*)
14659: shrext_cmds='.sl'
14660: hardcode_into_libs=yes
14661: dynamic_linker="$host_os dld.sl"
14662: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14663: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14664: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665: soname_spec='${libname}${release}${shared_ext}$major'
14666: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14667: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14668: ;;
14669: *)
14670: shrext_cmds='.sl'
14671: dynamic_linker="$host_os dld.sl"
14672: shlibpath_var=SHLIB_PATH
14673: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14674: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675: soname_spec='${libname}${release}${shared_ext}$major'
14676: ;;
14677: esac
14678: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14679: postinstall_cmds='chmod 555 $lib'
14680: # or fails outright, so override atomically:
14681: install_override_mode=555
14682: ;;
14683:
14684: interix[3-9]*)
14685: version_type=linux # correct to gnu/linux during the next big refactor
14686: need_lib_prefix=no
14687: need_version=no
14688: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14689: soname_spec='${libname}${release}${shared_ext}$major'
14690: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14691: shlibpath_var=LD_LIBRARY_PATH
14692: shlibpath_overrides_runpath=no
14693: hardcode_into_libs=yes
14694: ;;
14695:
14696: irix5* | irix6* | nonstopux*)
14697: case $host_os in
14698: nonstopux*) version_type=nonstopux ;;
14699: *)
14700: if test "$lt_cv_prog_gnu_ld" = yes; then
14701: version_type=linux # correct to gnu/linux during the next big refactor
14702: else
14703: version_type=irix
14704: fi ;;
14705: esac
14706: need_lib_prefix=no
14707: need_version=no
14708: soname_spec='${libname}${release}${shared_ext}$major'
14709: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14710: case $host_os in
14711: irix5* | nonstopux*)
14712: libsuff= shlibsuff=
14713: ;;
14714: *)
14715: case $LD in # libtool.m4 will add one of these switches to LD
14716: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14717: libsuff= shlibsuff= libmagic=32-bit;;
14718: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14719: libsuff=32 shlibsuff=N32 libmagic=N32;;
14720: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14721: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14722: *) libsuff= shlibsuff= libmagic=never-match;;
14723: esac
14724: ;;
14725: esac
14726: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14727: shlibpath_overrides_runpath=no
14728: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14729: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14730: hardcode_into_libs=yes
14731: ;;
14732:
14733: # No shared lib support for Linux oldld, aout, or coff.
14734: linux*oldld* | linux*aout* | linux*coff*)
14735: dynamic_linker=no
14736: ;;
14737:
14738: # This must be glibc/ELF.
14739: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14740: version_type=linux # correct to gnu/linux during the next big refactor
14741: need_lib_prefix=no
14742: need_version=no
14743: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744: soname_spec='${libname}${release}${shared_ext}$major'
14745: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14746: shlibpath_var=LD_LIBRARY_PATH
14747: shlibpath_overrides_runpath=no
14748:
14749: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 14750: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14751: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14752: else
14753: lt_cv_shlibpath_overrides_runpath=no
14754: save_LDFLAGS=$LDFLAGS
14755: save_libdir=$libdir
14756: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14757: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.11 moko 14758: cat >conftest.$ac_ext <<_ACEOF
14759: /* confdefs.h. */
14760: _ACEOF
14761: cat confdefs.h >>conftest.$ac_ext
14762: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 14763: /* end confdefs.h. */
14764:
14765: int
14766: main ()
14767: {
14768:
14769: ;
14770: return 0;
14771: }
14772: _ACEOF
1.11 moko 14773: rm -f conftest.$ac_objext conftest$ac_exeext
14774: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14775: (eval $ac_link) 2>conftest.er1
14776: ac_status=$?
14777: grep -v '^ *+' conftest.er1 >conftest.err
14778: rm -f conftest.er1
14779: cat conftest.err >&5
14780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781: (exit $ac_status); } &&
14782: { ac_try='test -z "$ac_cxx_werror_flag"
14783: || test ! -s conftest.err'
14784: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785: (eval $ac_try) 2>&5
14786: ac_status=$?
14787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788: (exit $ac_status); }; } &&
14789: { ac_try='test -s conftest$ac_exeext'
14790: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791: (eval $ac_try) 2>&5
14792: ac_status=$?
14793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794: (exit $ac_status); }; }; then
14795: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 14796: lt_cv_shlibpath_overrides_runpath=yes
14797: fi
1.11 moko 14798:
14799: else
14800: echo "$as_me: failed program was:" >&5
14801: sed 's/^/| /' conftest.$ac_ext >&5
14802:
1.8 moko 14803: fi
1.11 moko 14804: rm -f conftest.err conftest.$ac_objext \
14805: conftest$ac_exeext conftest.$ac_ext
1.8 moko 14806: LDFLAGS=$save_LDFLAGS
14807: libdir=$save_libdir
14808:
14809: fi
14810:
14811: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14812:
14813: # This implies no fast_install, which is unacceptable.
14814: # Some rework will be needed to allow for fast_install
14815: # before this can be enabled.
14816: hardcode_into_libs=yes
14817:
14818: # Append ld.so.conf contents to the search path
14819: if test -f /etc/ld.so.conf; then
14820: 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' ' '`
14821: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14822: fi
14823:
14824: # We used to test for /lib/ld.so.1 and disable shared libraries on
14825: # powerpc, because MkLinux only supported shared libraries with the
14826: # GNU dynamic linker. Since this was broken with cross compilers,
14827: # most powerpc-linux boxes support dynamic linking these days and
14828: # people can always --disable-shared, the test was removed, and we
14829: # assume the GNU/Linux dynamic linker is in use.
14830: dynamic_linker='GNU/Linux ld.so'
14831: ;;
14832:
14833: netbsd*)
14834: version_type=sunos
14835: need_lib_prefix=no
14836: need_version=no
14837: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14838: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14839: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14840: dynamic_linker='NetBSD (a.out) ld.so'
14841: else
14842: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14843: soname_spec='${libname}${release}${shared_ext}$major'
14844: dynamic_linker='NetBSD ld.elf_so'
14845: fi
14846: shlibpath_var=LD_LIBRARY_PATH
14847: shlibpath_overrides_runpath=yes
14848: hardcode_into_libs=yes
14849: ;;
14850:
14851: newsos6)
14852: version_type=linux # correct to gnu/linux during the next big refactor
14853: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854: shlibpath_var=LD_LIBRARY_PATH
14855: shlibpath_overrides_runpath=yes
14856: ;;
14857:
14858: *nto* | *qnx*)
14859: version_type=qnx
14860: need_lib_prefix=no
14861: need_version=no
14862: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863: soname_spec='${libname}${release}${shared_ext}$major'
14864: shlibpath_var=LD_LIBRARY_PATH
14865: shlibpath_overrides_runpath=no
14866: hardcode_into_libs=yes
14867: dynamic_linker='ldqnx.so'
14868: ;;
14869:
14870: openbsd*)
14871: version_type=sunos
14872: sys_lib_dlsearch_path_spec="/usr/lib"
14873: need_lib_prefix=no
14874: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14875: case $host_os in
14876: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14877: *) need_version=no ;;
14878: esac
14879: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14880: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14881: shlibpath_var=LD_LIBRARY_PATH
14882: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14883: case $host_os in
14884: openbsd2.[89] | openbsd2.[89].*)
14885: shlibpath_overrides_runpath=no
14886: ;;
14887: *)
14888: shlibpath_overrides_runpath=yes
14889: ;;
14890: esac
14891: else
14892: shlibpath_overrides_runpath=yes
14893: fi
14894: ;;
14895:
14896: os2*)
14897: libname_spec='$name'
14898: shrext_cmds=".dll"
14899: need_lib_prefix=no
14900: library_names_spec='$libname${shared_ext} $libname.a'
14901: dynamic_linker='OS/2 ld.exe'
14902: shlibpath_var=LIBPATH
14903: ;;
14904:
14905: osf3* | osf4* | osf5*)
14906: version_type=osf
14907: need_lib_prefix=no
14908: need_version=no
14909: soname_spec='${libname}${release}${shared_ext}$major'
14910: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911: shlibpath_var=LD_LIBRARY_PATH
14912: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14913: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14914: ;;
14915:
14916: rdos*)
14917: dynamic_linker=no
14918: ;;
14919:
14920: solaris*)
14921: version_type=linux # correct to gnu/linux during the next big refactor
14922: need_lib_prefix=no
14923: need_version=no
14924: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925: soname_spec='${libname}${release}${shared_ext}$major'
14926: shlibpath_var=LD_LIBRARY_PATH
14927: shlibpath_overrides_runpath=yes
14928: hardcode_into_libs=yes
14929: # ldd complains unless libraries are executable
14930: postinstall_cmds='chmod +x $lib'
14931: ;;
14932:
14933: sunos4*)
14934: version_type=sunos
14935: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14936: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14937: shlibpath_var=LD_LIBRARY_PATH
14938: shlibpath_overrides_runpath=yes
14939: if test "$with_gnu_ld" = yes; then
14940: need_lib_prefix=no
14941: fi
14942: need_version=yes
14943: ;;
14944:
14945: sysv4 | sysv4.3*)
14946: version_type=linux # correct to gnu/linux during the next big refactor
14947: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948: soname_spec='${libname}${release}${shared_ext}$major'
14949: shlibpath_var=LD_LIBRARY_PATH
14950: case $host_vendor in
14951: sni)
14952: shlibpath_overrides_runpath=no
14953: need_lib_prefix=no
14954: runpath_var=LD_RUN_PATH
14955: ;;
14956: siemens)
14957: need_lib_prefix=no
14958: ;;
14959: motorola)
14960: need_lib_prefix=no
14961: need_version=no
14962: shlibpath_overrides_runpath=no
14963: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14964: ;;
14965: esac
14966: ;;
14967:
14968: sysv4*MP*)
14969: if test -d /usr/nec ;then
14970: version_type=linux # correct to gnu/linux during the next big refactor
14971: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14972: soname_spec='$libname${shared_ext}.$major'
14973: shlibpath_var=LD_LIBRARY_PATH
14974: fi
14975: ;;
14976:
14977: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14978: version_type=freebsd-elf
14979: need_lib_prefix=no
14980: need_version=no
14981: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14982: soname_spec='${libname}${release}${shared_ext}$major'
14983: shlibpath_var=LD_LIBRARY_PATH
14984: shlibpath_overrides_runpath=yes
14985: hardcode_into_libs=yes
14986: if test "$with_gnu_ld" = yes; then
14987: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14988: else
14989: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14990: case $host_os in
14991: sco3.2v5*)
14992: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14993: ;;
14994: esac
14995: fi
14996: sys_lib_dlsearch_path_spec='/usr/lib'
14997: ;;
14998:
14999: tpf*)
15000: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15001: version_type=linux # correct to gnu/linux during the next big refactor
15002: need_lib_prefix=no
15003: need_version=no
15004: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005: shlibpath_var=LD_LIBRARY_PATH
15006: shlibpath_overrides_runpath=no
15007: hardcode_into_libs=yes
15008: ;;
15009:
15010: uts4*)
15011: version_type=linux # correct to gnu/linux during the next big refactor
15012: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013: soname_spec='${libname}${release}${shared_ext}$major'
15014: shlibpath_var=LD_LIBRARY_PATH
15015: ;;
15016:
15017: *)
15018: dynamic_linker=no
15019: ;;
15020: esac
1.11 moko 15021: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15022: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 15023: test "$dynamic_linker" = no && can_build_shared=no
15024:
15025: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15026: if test "$GCC" = yes; then
15027: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15028: fi
15029:
15030: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15031: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15032: fi
15033: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15034: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15035: fi
15036:
15037:
15038:
15039:
15040:
15041:
15042:
15043:
15044:
15045:
15046:
15047:
15048:
15049:
15050:
15051:
15052:
15053:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071:
15072:
15073:
1.11 moko 15074: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15075: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 15076: hardcode_action_CXX=
15077: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15078: test -n "$runpath_var_CXX" ||
15079: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15080:
15081: # We can hardcode non-existent directories.
15082: if test "$hardcode_direct_CXX" != no &&
15083: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15084: # have to relink, otherwise we might link with an installed library
15085: # when we should be linking with a yet-to-be-installed one
15086: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15087: test "$hardcode_minus_L_CXX" != no; then
15088: # Linking always hardcodes the temporary library directory.
15089: hardcode_action_CXX=relink
15090: else
15091: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15092: hardcode_action_CXX=immediate
15093: fi
15094: else
15095: # We cannot hardcode anything, or else we can only hardcode existing
15096: # directories.
15097: hardcode_action_CXX=unsupported
15098: fi
1.11 moko 15099: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15100: echo "${ECHO_T}$hardcode_action_CXX" >&6
1.8 moko 15101:
15102: if test "$hardcode_action_CXX" = relink ||
15103: test "$inherit_rpath_CXX" = yes; then
15104: # Fast installation is not supported
15105: enable_fast_install=no
15106: elif test "$shlibpath_overrides_runpath" = yes ||
15107: test "$enable_shared" = no; then
15108: # Fast installation is not necessary
15109: enable_fast_install=needless
15110: fi
15111:
15112:
15113:
15114:
15115:
15116:
15117:
15118: fi # test -n "$compiler"
15119:
15120: CC=$lt_save_CC
15121: CFLAGS=$lt_save_CFLAGS
15122: LDCXX=$LD
15123: LD=$lt_save_LD
15124: GCC=$lt_save_GCC
15125: with_gnu_ld=$lt_save_with_gnu_ld
15126: lt_cv_path_LDCXX=$lt_cv_path_LD
15127: lt_cv_path_LD=$lt_save_path_LD
15128: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15129: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15130: fi # test "$_lt_caught_CXX_error" != yes
15131:
15132: ac_ext=c
15133: ac_cpp='$CPP $CPPFLAGS'
15134: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137:
15138:
15139:
15140:
15141:
15142:
15143:
15144:
15145:
15146:
15147:
15148:
15149:
15150:
15151:
1.11 moko 15152: ac_config_commands="$ac_config_commands libtool"
1.8 moko 15153:
15154:
15155:
15156:
15157: # Only expand once:
15158:
15159:
1.11 moko 15160: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15161: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15162: if test "${libltdl_cv_shlibext+set}" = set; then
15163: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15164: else
15165:
15166: module=yes
15167: eval libltdl_cv_shlibext=$shrext_cmds
15168: module=no
15169: eval libltdl_cv_shrext=$shrext_cmds
15170:
15171: fi
1.11 moko 15172: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15173: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
1.8 moko 15174: if test -n "$libltdl_cv_shlibext"; then
15175:
15176: cat >>confdefs.h <<_ACEOF
15177: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15178: _ACEOF
15179:
15180: fi
15181: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15182:
15183: cat >>confdefs.h <<_ACEOF
15184: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15185: _ACEOF
15186:
15187: fi
15188:
1.11 moko 15189: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15190: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15191: if test "${lt_cv_module_path_var+set}" = set; then
15192: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15193: else
15194: lt_cv_module_path_var="$shlibpath_var"
15195: fi
1.11 moko 15196: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15197: echo "${ECHO_T}$lt_cv_module_path_var" >&6
1.8 moko 15198: if test -n "$lt_cv_module_path_var"; then
15199:
15200: cat >>confdefs.h <<_ACEOF
15201: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15202: _ACEOF
15203:
15204: fi
15205:
1.11 moko 15206: echo "$as_me:$LINENO: checking for the default library search path" >&5
15207: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15208: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15209: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15210: else
15211: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15212: fi
1.11 moko 15213: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15214: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
1.8 moko 15215: if test -n "$lt_cv_sys_dlsearch_path"; then
15216: sys_dlsearch_path=
15217: for dir in $lt_cv_sys_dlsearch_path; do
15218: if test -z "$sys_dlsearch_path"; then
15219: sys_dlsearch_path="$dir"
15220: else
15221: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15222: fi
15223: done
15224:
15225: cat >>confdefs.h <<_ACEOF
15226: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15227: _ACEOF
15228:
15229: fi
15230:
15231:
15232: LT_DLLOADERS=
15233:
15234:
15235: ac_ext=c
15236: ac_cpp='$CPP $CPPFLAGS'
15237: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15238: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15239: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15240:
15241:
15242: LIBADD_DLOPEN=
1.11 moko 15243: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15244: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15245: if test "${ac_cv_search_dlopen+set}" = set; then
15246: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15247: else
15248: ac_func_search_save_LIBS=$LIBS
1.11 moko 15249: ac_cv_search_dlopen=no
15250: cat >conftest.$ac_ext <<_ACEOF
15251: /* confdefs.h. */
15252: _ACEOF
15253: cat confdefs.h >>conftest.$ac_ext
15254: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15255: /* end confdefs.h. */
15256:
1.11 moko 15257: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15258: #ifdef __cplusplus
15259: extern "C"
15260: #endif
1.11 moko 15261: /* We use char because int might match the return type of a gcc2
15262: builtin and then its argument prototype would still apply. */
1.8 moko 15263: char dlopen ();
15264: int
15265: main ()
15266: {
1.11 moko 15267: dlopen ();
1.8 moko 15268: ;
15269: return 0;
15270: }
15271: _ACEOF
1.11 moko 15272: rm -f conftest.$ac_objext conftest$ac_exeext
15273: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274: (eval $ac_link) 2>conftest.er1
15275: ac_status=$?
15276: grep -v '^ *+' conftest.er1 >conftest.err
15277: rm -f conftest.er1
15278: cat conftest.err >&5
15279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280: (exit $ac_status); } &&
15281: { ac_try='test -z "$ac_c_werror_flag"
15282: || test ! -s conftest.err'
15283: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284: (eval $ac_try) 2>&5
15285: ac_status=$?
15286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287: (exit $ac_status); }; } &&
15288: { ac_try='test -s conftest$ac_exeext'
15289: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290: (eval $ac_try) 2>&5
15291: ac_status=$?
15292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293: (exit $ac_status); }; }; then
15294: ac_cv_search_dlopen="none required"
15295: else
15296: echo "$as_me: failed program was:" >&5
15297: sed 's/^/| /' conftest.$ac_ext >&5
15298:
15299: fi
15300: rm -f conftest.err conftest.$ac_objext \
15301: conftest$ac_exeext conftest.$ac_ext
15302: if test "$ac_cv_search_dlopen" = no; then
15303: for ac_lib in dl; do
1.10 moko 15304: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.11 moko 15305: cat >conftest.$ac_ext <<_ACEOF
15306: /* confdefs.h. */
15307: _ACEOF
15308: cat confdefs.h >>conftest.$ac_ext
15309: cat >>conftest.$ac_ext <<_ACEOF
15310: /* end confdefs.h. */
1.8 moko 15311:
1.11 moko 15312: /* Override any gcc2 internal prototype to avoid an error. */
15313: #ifdef __cplusplus
15314: extern "C"
15315: #endif
15316: /* We use char because int might match the return type of a gcc2
15317: builtin and then its argument prototype would still apply. */
15318: char dlopen ();
15319: int
15320: main ()
15321: {
15322: dlopen ();
15323: ;
15324: return 0;
15325: }
15326: _ACEOF
15327: rm -f conftest.$ac_objext conftest$ac_exeext
15328: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15329: (eval $ac_link) 2>conftest.er1
15330: ac_status=$?
15331: grep -v '^ *+' conftest.er1 >conftest.err
15332: rm -f conftest.er1
15333: cat conftest.err >&5
15334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335: (exit $ac_status); } &&
15336: { ac_try='test -z "$ac_c_werror_flag"
15337: || test ! -s conftest.err'
15338: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339: (eval $ac_try) 2>&5
15340: ac_status=$?
15341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342: (exit $ac_status); }; } &&
15343: { ac_try='test -s conftest$ac_exeext'
15344: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345: (eval $ac_try) 2>&5
15346: ac_status=$?
15347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348: (exit $ac_status); }; }; then
15349: ac_cv_search_dlopen="-l$ac_lib"
15350: break
1.8 moko 15351: else
1.11 moko 15352: echo "$as_me: failed program was:" >&5
15353: sed 's/^/| /' conftest.$ac_ext >&5
15354:
15355: fi
15356: rm -f conftest.err conftest.$ac_objext \
15357: conftest$ac_exeext conftest.$ac_ext
15358: done
1.8 moko 15359: fi
15360: LIBS=$ac_func_search_save_LIBS
15361: fi
1.11 moko 15362: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15363: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15364: if test "$ac_cv_search_dlopen" != no; then
15365: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
1.8 moko 15366:
1.11 moko 15367: cat >>confdefs.h <<\_ACEOF
15368: #define HAVE_LIBDL 1
15369: _ACEOF
1.8 moko 15370:
15371: if test "$ac_cv_search_dlopen" != "none required" ; then
15372: LIBADD_DLOPEN="-ldl"
15373: fi
15374: libltdl_cv_lib_dl_dlopen="yes"
15375: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15376: else
1.11 moko 15377: cat >conftest.$ac_ext <<_ACEOF
15378: /* confdefs.h. */
15379: _ACEOF
15380: cat confdefs.h >>conftest.$ac_ext
15381: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15382: /* end confdefs.h. */
15383: #if HAVE_DLFCN_H
15384: # include <dlfcn.h>
15385: #endif
15386:
15387: int
15388: main ()
15389: {
15390: dlopen(0, 0);
15391: ;
15392: return 0;
15393: }
15394: _ACEOF
1.11 moko 15395: rm -f conftest.$ac_objext conftest$ac_exeext
15396: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15397: (eval $ac_link) 2>conftest.er1
15398: ac_status=$?
15399: grep -v '^ *+' conftest.er1 >conftest.err
15400: rm -f conftest.er1
15401: cat conftest.err >&5
15402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403: (exit $ac_status); } &&
15404: { ac_try='test -z "$ac_c_werror_flag"
15405: || test ! -s conftest.err'
15406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407: (eval $ac_try) 2>&5
15408: ac_status=$?
15409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410: (exit $ac_status); }; } &&
15411: { ac_try='test -s conftest$ac_exeext'
15412: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413: (eval $ac_try) 2>&5
15414: ac_status=$?
15415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416: (exit $ac_status); }; }; then
1.8 moko 15417:
1.11 moko 15418: cat >>confdefs.h <<\_ACEOF
15419: #define HAVE_LIBDL 1
15420: _ACEOF
1.8 moko 15421:
15422: libltdl_cv_func_dlopen="yes"
15423: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15424: else
1.11 moko 15425: echo "$as_me: failed program was:" >&5
15426: sed 's/^/| /' conftest.$ac_ext >&5
15427:
15428: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15429: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15430: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15431: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15432: else
15433: ac_check_lib_save_LIBS=$LIBS
15434: LIBS="-lsvld $LIBS"
1.11 moko 15435: cat >conftest.$ac_ext <<_ACEOF
15436: /* confdefs.h. */
15437: _ACEOF
15438: cat confdefs.h >>conftest.$ac_ext
15439: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15440: /* end confdefs.h. */
15441:
1.11 moko 15442: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15443: #ifdef __cplusplus
15444: extern "C"
15445: #endif
1.11 moko 15446: /* We use char because int might match the return type of a gcc2
15447: builtin and then its argument prototype would still apply. */
1.8 moko 15448: char dlopen ();
15449: int
15450: main ()
15451: {
1.11 moko 15452: dlopen ();
1.8 moko 15453: ;
15454: return 0;
15455: }
15456: _ACEOF
1.11 moko 15457: rm -f conftest.$ac_objext conftest$ac_exeext
15458: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15459: (eval $ac_link) 2>conftest.er1
15460: ac_status=$?
15461: grep -v '^ *+' conftest.er1 >conftest.err
15462: rm -f conftest.er1
15463: cat conftest.err >&5
15464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465: (exit $ac_status); } &&
15466: { ac_try='test -z "$ac_c_werror_flag"
15467: || test ! -s conftest.err'
15468: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469: (eval $ac_try) 2>&5
15470: ac_status=$?
15471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472: (exit $ac_status); }; } &&
15473: { ac_try='test -s conftest$ac_exeext'
15474: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475: (eval $ac_try) 2>&5
15476: ac_status=$?
15477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478: (exit $ac_status); }; }; then
1.8 moko 15479: ac_cv_lib_svld_dlopen=yes
15480: else
1.11 moko 15481: echo "$as_me: failed program was:" >&5
15482: sed 's/^/| /' conftest.$ac_ext >&5
15483:
15484: ac_cv_lib_svld_dlopen=no
1.8 moko 15485: fi
1.11 moko 15486: rm -f conftest.err conftest.$ac_objext \
15487: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15488: LIBS=$ac_check_lib_save_LIBS
15489: fi
1.11 moko 15490: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15491: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15492: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 15493:
1.11 moko 15494: cat >>confdefs.h <<\_ACEOF
15495: #define HAVE_LIBDL 1
15496: _ACEOF
1.8 moko 15497:
15498: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15499: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15500: fi
15501:
15502: fi
1.11 moko 15503: rm -f conftest.err conftest.$ac_objext \
15504: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15505: fi
15506:
15507: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15508: then
15509: lt_save_LIBS="$LIBS"
15510: LIBS="$LIBS $LIBADD_DLOPEN"
1.11 moko 15511:
15512: for ac_func in dlerror
15513: do
15514: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15515: echo "$as_me:$LINENO: checking for $ac_func" >&5
15516: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15517: if eval "test \"\${$as_ac_var+set}\" = set"; then
15518: echo $ECHO_N "(cached) $ECHO_C" >&6
15519: else
15520: cat >conftest.$ac_ext <<_ACEOF
15521: /* confdefs.h. */
15522: _ACEOF
15523: cat confdefs.h >>conftest.$ac_ext
15524: cat >>conftest.$ac_ext <<_ACEOF
15525: /* end confdefs.h. */
15526: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15527: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15528: #define $ac_func innocuous_$ac_func
15529:
15530: /* System header to define __stub macros and hopefully few prototypes,
15531: which can conflict with char $ac_func (); below.
15532: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15533: <limits.h> exists even on freestanding compilers. */
15534:
15535: #ifdef __STDC__
15536: # include <limits.h>
15537: #else
15538: # include <assert.h>
15539: #endif
15540:
15541: #undef $ac_func
15542:
15543: /* Override any gcc2 internal prototype to avoid an error. */
15544: #ifdef __cplusplus
15545: extern "C"
15546: {
15547: #endif
15548: /* We use char because int might match the return type of a gcc2
15549: builtin and then its argument prototype would still apply. */
15550: char $ac_func ();
15551: /* The GNU C library defines this for functions which it implements
15552: to always fail with ENOSYS. Some functions are actually named
15553: something starting with __ and the normal name is an alias. */
15554: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15555: choke me
15556: #else
15557: char (*f) () = $ac_func;
15558: #endif
15559: #ifdef __cplusplus
15560: }
15561: #endif
15562:
15563: int
15564: main ()
15565: {
15566: return f != $ac_func;
15567: ;
15568: return 0;
15569: }
15570: _ACEOF
15571: rm -f conftest.$ac_objext conftest$ac_exeext
15572: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573: (eval $ac_link) 2>conftest.er1
15574: ac_status=$?
15575: grep -v '^ *+' conftest.er1 >conftest.err
15576: rm -f conftest.er1
15577: cat conftest.err >&5
15578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579: (exit $ac_status); } &&
15580: { ac_try='test -z "$ac_c_werror_flag"
15581: || test ! -s conftest.err'
15582: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583: (eval $ac_try) 2>&5
15584: ac_status=$?
15585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586: (exit $ac_status); }; } &&
15587: { ac_try='test -s conftest$ac_exeext'
15588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589: (eval $ac_try) 2>&5
15590: ac_status=$?
15591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592: (exit $ac_status); }; }; then
15593: eval "$as_ac_var=yes"
15594: else
15595: echo "$as_me: failed program was:" >&5
15596: sed 's/^/| /' conftest.$ac_ext >&5
15597:
15598: eval "$as_ac_var=no"
15599: fi
15600: rm -f conftest.err conftest.$ac_objext \
15601: conftest$ac_exeext conftest.$ac_ext
15602: fi
15603: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15604: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15605: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 15606: cat >>confdefs.h <<_ACEOF
1.11 moko 15607: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 15608: _ACEOF
15609:
15610: fi
15611: done
15612:
15613: LIBS="$lt_save_LIBS"
15614: fi
15615:
15616:
15617: LIBADD_SHL_LOAD=
1.11 moko 15618: echo "$as_me:$LINENO: checking for shl_load" >&5
15619: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15620: if test "${ac_cv_func_shl_load+set}" = set; then
15621: echo $ECHO_N "(cached) $ECHO_C" >&6
15622: else
15623: cat >conftest.$ac_ext <<_ACEOF
15624: /* confdefs.h. */
15625: _ACEOF
15626: cat confdefs.h >>conftest.$ac_ext
15627: cat >>conftest.$ac_ext <<_ACEOF
15628: /* end confdefs.h. */
15629: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15630: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15631: #define shl_load innocuous_shl_load
15632:
15633: /* System header to define __stub macros and hopefully few prototypes,
15634: which can conflict with char shl_load (); below.
15635: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15636: <limits.h> exists even on freestanding compilers. */
15637:
15638: #ifdef __STDC__
15639: # include <limits.h>
15640: #else
15641: # include <assert.h>
15642: #endif
15643:
15644: #undef shl_load
15645:
15646: /* Override any gcc2 internal prototype to avoid an error. */
15647: #ifdef __cplusplus
15648: extern "C"
15649: {
15650: #endif
15651: /* We use char because int might match the return type of a gcc2
15652: builtin and then its argument prototype would still apply. */
15653: char shl_load ();
15654: /* The GNU C library defines this for functions which it implements
15655: to always fail with ENOSYS. Some functions are actually named
15656: something starting with __ and the normal name is an alias. */
15657: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15658: choke me
15659: #else
15660: char (*f) () = shl_load;
15661: #endif
15662: #ifdef __cplusplus
15663: }
15664: #endif
15665:
15666: int
15667: main ()
15668: {
15669: return f != shl_load;
15670: ;
15671: return 0;
15672: }
15673: _ACEOF
15674: rm -f conftest.$ac_objext conftest$ac_exeext
15675: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15676: (eval $ac_link) 2>conftest.er1
15677: ac_status=$?
15678: grep -v '^ *+' conftest.er1 >conftest.err
15679: rm -f conftest.er1
15680: cat conftest.err >&5
15681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682: (exit $ac_status); } &&
15683: { ac_try='test -z "$ac_c_werror_flag"
15684: || test ! -s conftest.err'
15685: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686: (eval $ac_try) 2>&5
15687: ac_status=$?
15688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689: (exit $ac_status); }; } &&
15690: { ac_try='test -s conftest$ac_exeext'
15691: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692: (eval $ac_try) 2>&5
15693: ac_status=$?
15694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695: (exit $ac_status); }; }; then
15696: ac_cv_func_shl_load=yes
15697: else
15698: echo "$as_me: failed program was:" >&5
15699: sed 's/^/| /' conftest.$ac_ext >&5
15700:
15701: ac_cv_func_shl_load=no
15702: fi
15703: rm -f conftest.err conftest.$ac_objext \
15704: conftest$ac_exeext conftest.$ac_ext
15705: fi
15706: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15707: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15708: if test $ac_cv_func_shl_load = yes; then
1.8 moko 15709:
1.11 moko 15710: cat >>confdefs.h <<\_ACEOF
15711: #define HAVE_SHL_LOAD 1
15712: _ACEOF
1.8 moko 15713:
15714: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15715: else
1.11 moko 15716: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15717: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15718: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15719: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15720: else
15721: ac_check_lib_save_LIBS=$LIBS
15722: LIBS="-ldld $LIBS"
1.11 moko 15723: cat >conftest.$ac_ext <<_ACEOF
15724: /* confdefs.h. */
15725: _ACEOF
15726: cat confdefs.h >>conftest.$ac_ext
15727: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15728: /* end confdefs.h. */
15729:
1.11 moko 15730: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15731: #ifdef __cplusplus
15732: extern "C"
15733: #endif
1.11 moko 15734: /* We use char because int might match the return type of a gcc2
15735: builtin and then its argument prototype would still apply. */
1.8 moko 15736: char shl_load ();
15737: int
15738: main ()
15739: {
1.11 moko 15740: shl_load ();
1.8 moko 15741: ;
15742: return 0;
15743: }
15744: _ACEOF
1.11 moko 15745: rm -f conftest.$ac_objext conftest$ac_exeext
15746: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747: (eval $ac_link) 2>conftest.er1
15748: ac_status=$?
15749: grep -v '^ *+' conftest.er1 >conftest.err
15750: rm -f conftest.er1
15751: cat conftest.err >&5
15752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753: (exit $ac_status); } &&
15754: { ac_try='test -z "$ac_c_werror_flag"
15755: || test ! -s conftest.err'
15756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757: (eval $ac_try) 2>&5
15758: ac_status=$?
15759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760: (exit $ac_status); }; } &&
15761: { ac_try='test -s conftest$ac_exeext'
15762: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763: (eval $ac_try) 2>&5
15764: ac_status=$?
15765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766: (exit $ac_status); }; }; then
1.8 moko 15767: ac_cv_lib_dld_shl_load=yes
15768: else
1.11 moko 15769: echo "$as_me: failed program was:" >&5
15770: sed 's/^/| /' conftest.$ac_ext >&5
15771:
15772: ac_cv_lib_dld_shl_load=no
1.8 moko 15773: fi
1.11 moko 15774: rm -f conftest.err conftest.$ac_objext \
15775: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15776: LIBS=$ac_check_lib_save_LIBS
15777: fi
1.11 moko 15778: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15779: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15780: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 15781:
1.11 moko 15782: cat >>confdefs.h <<\_ACEOF
15783: #define HAVE_SHL_LOAD 1
15784: _ACEOF
1.8 moko 15785:
15786: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15787: LIBADD_SHL_LOAD="-ldld"
15788: fi
15789:
15790: fi
15791:
15792:
15793:
15794: case $host_os in
15795: darwin[1567].*)
15796: # We only want this for pre-Mac OS X 10.4.
1.11 moko 15797: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15798: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15799: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15800: echo $ECHO_N "(cached) $ECHO_C" >&6
15801: else
15802: cat >conftest.$ac_ext <<_ACEOF
15803: /* confdefs.h. */
15804: _ACEOF
15805: cat confdefs.h >>conftest.$ac_ext
15806: cat >>conftest.$ac_ext <<_ACEOF
15807: /* end confdefs.h. */
15808: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15809: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15810: #define _dyld_func_lookup innocuous__dyld_func_lookup
15811:
15812: /* System header to define __stub macros and hopefully few prototypes,
15813: which can conflict with char _dyld_func_lookup (); below.
15814: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815: <limits.h> exists even on freestanding compilers. */
15816:
15817: #ifdef __STDC__
15818: # include <limits.h>
15819: #else
15820: # include <assert.h>
15821: #endif
15822:
15823: #undef _dyld_func_lookup
15824:
15825: /* Override any gcc2 internal prototype to avoid an error. */
15826: #ifdef __cplusplus
15827: extern "C"
15828: {
15829: #endif
15830: /* We use char because int might match the return type of a gcc2
15831: builtin and then its argument prototype would still apply. */
15832: char _dyld_func_lookup ();
15833: /* The GNU C library defines this for functions which it implements
15834: to always fail with ENOSYS. Some functions are actually named
15835: something starting with __ and the normal name is an alias. */
15836: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15837: choke me
15838: #else
15839: char (*f) () = _dyld_func_lookup;
15840: #endif
15841: #ifdef __cplusplus
15842: }
15843: #endif
15844:
15845: int
15846: main ()
15847: {
15848: return f != _dyld_func_lookup;
15849: ;
15850: return 0;
15851: }
15852: _ACEOF
15853: rm -f conftest.$ac_objext conftest$ac_exeext
15854: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855: (eval $ac_link) 2>conftest.er1
15856: ac_status=$?
15857: grep -v '^ *+' conftest.er1 >conftest.err
15858: rm -f conftest.er1
15859: cat conftest.err >&5
15860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861: (exit $ac_status); } &&
15862: { ac_try='test -z "$ac_c_werror_flag"
15863: || test ! -s conftest.err'
15864: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865: (eval $ac_try) 2>&5
15866: ac_status=$?
15867: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868: (exit $ac_status); }; } &&
15869: { ac_try='test -s conftest$ac_exeext'
15870: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871: (eval $ac_try) 2>&5
15872: ac_status=$?
15873: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874: (exit $ac_status); }; }; then
15875: ac_cv_func__dyld_func_lookup=yes
15876: else
15877: echo "$as_me: failed program was:" >&5
15878: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 15879:
1.11 moko 15880: ac_cv_func__dyld_func_lookup=no
15881: fi
15882: rm -f conftest.err conftest.$ac_objext \
15883: conftest$ac_exeext conftest.$ac_ext
15884: fi
15885: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15886: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15887: if test $ac_cv_func__dyld_func_lookup = yes; then
15888:
15889: cat >>confdefs.h <<\_ACEOF
15890: #define HAVE_DYLD 1
15891: _ACEOF
1.8 moko 15892:
15893: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15894: fi
15895:
15896: ;;
15897: beos*)
15898: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15899: ;;
15900: cygwin* | mingw* | os2* | pw32*)
1.11 moko 15901: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15902: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15903: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15904: echo $ECHO_N "(cached) $ECHO_C" >&6
15905: else
15906: cat >conftest.$ac_ext <<_ACEOF
15907: /* confdefs.h. */
15908: _ACEOF
15909: cat confdefs.h >>conftest.$ac_ext
15910: cat >>conftest.$ac_ext <<_ACEOF
15911: /* end confdefs.h. */
15912: #include <sys/cygwin.h>
15913:
15914: int
15915: main ()
15916: {
15917: #ifndef cygwin_conv_path
15918: char *p = (char *) cygwin_conv_path;
15919: #endif
15920:
15921: ;
15922: return 0;
15923: }
15924: _ACEOF
15925: rm -f conftest.$ac_objext
15926: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15927: (eval $ac_compile) 2>conftest.er1
15928: ac_status=$?
15929: grep -v '^ *+' conftest.er1 >conftest.err
15930: rm -f conftest.er1
15931: cat conftest.err >&5
15932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933: (exit $ac_status); } &&
15934: { ac_try='test -z "$ac_c_werror_flag"
15935: || test ! -s conftest.err'
15936: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937: (eval $ac_try) 2>&5
15938: ac_status=$?
15939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940: (exit $ac_status); }; } &&
15941: { ac_try='test -s conftest.$ac_objext'
15942: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943: (eval $ac_try) 2>&5
15944: ac_status=$?
15945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946: (exit $ac_status); }; }; then
15947: ac_cv_have_decl_cygwin_conv_path=yes
1.8 moko 15948: else
1.11 moko 15949: echo "$as_me: failed program was:" >&5
15950: sed 's/^/| /' conftest.$ac_ext >&5
15951:
15952: ac_cv_have_decl_cygwin_conv_path=no
15953: fi
15954: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.8 moko 15955: fi
1.11 moko 15956: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15957: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15958: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
1.8 moko 15959:
15960: cat >>confdefs.h <<_ACEOF
1.11 moko 15961: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15962: _ACEOF
15963:
15964:
15965: else
15966: cat >>confdefs.h <<_ACEOF
15967: #define HAVE_DECL_CYGWIN_CONV_PATH 0
1.8 moko 15968: _ACEOF
15969:
1.11 moko 15970:
15971: fi
15972:
15973:
1.8 moko 15974: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15975: ;;
15976: esac
15977:
1.11 moko 15978: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15979: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15980: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15982: else
15983: ac_check_lib_save_LIBS=$LIBS
15984: LIBS="-ldld $LIBS"
1.11 moko 15985: cat >conftest.$ac_ext <<_ACEOF
15986: /* confdefs.h. */
15987: _ACEOF
15988: cat confdefs.h >>conftest.$ac_ext
15989: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15990: /* end confdefs.h. */
15991:
1.11 moko 15992: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15993: #ifdef __cplusplus
15994: extern "C"
15995: #endif
1.11 moko 15996: /* We use char because int might match the return type of a gcc2
15997: builtin and then its argument prototype would still apply. */
1.8 moko 15998: char dld_link ();
15999: int
16000: main ()
16001: {
1.11 moko 16002: dld_link ();
1.8 moko 16003: ;
16004: return 0;
16005: }
16006: _ACEOF
1.11 moko 16007: rm -f conftest.$ac_objext conftest$ac_exeext
16008: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009: (eval $ac_link) 2>conftest.er1
16010: ac_status=$?
16011: grep -v '^ *+' conftest.er1 >conftest.err
16012: rm -f conftest.er1
16013: cat conftest.err >&5
16014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015: (exit $ac_status); } &&
16016: { ac_try='test -z "$ac_c_werror_flag"
16017: || test ! -s conftest.err'
16018: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019: (eval $ac_try) 2>&5
16020: ac_status=$?
16021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022: (exit $ac_status); }; } &&
16023: { ac_try='test -s conftest$ac_exeext'
16024: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025: (eval $ac_try) 2>&5
16026: ac_status=$?
16027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028: (exit $ac_status); }; }; then
1.8 moko 16029: ac_cv_lib_dld_dld_link=yes
16030: else
1.11 moko 16031: echo "$as_me: failed program was:" >&5
16032: sed 's/^/| /' conftest.$ac_ext >&5
16033:
16034: ac_cv_lib_dld_dld_link=no
1.8 moko 16035: fi
1.11 moko 16036: rm -f conftest.err conftest.$ac_objext \
16037: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16038: LIBS=$ac_check_lib_save_LIBS
16039: fi
1.11 moko 16040: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16041: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16042: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 16043:
1.11 moko 16044: cat >>confdefs.h <<\_ACEOF
16045: #define HAVE_DLD 1
16046: _ACEOF
1.8 moko 16047:
16048: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16049: fi
16050:
16051:
16052:
16053:
16054: LT_DLPREOPEN=
16055: if test -n "$LT_DLLOADERS"
16056: then
16057: for lt_loader in $LT_DLLOADERS; do
16058: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16059: done
16060:
1.11 moko 16061: cat >>confdefs.h <<\_ACEOF
16062: #define HAVE_LIBDLLOADER 1
16063: _ACEOF
1.8 moko 16064:
16065: fi
16066:
16067:
16068: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16069:
16070:
16071: ac_ext=c
16072: ac_cpp='$CPP $CPPFLAGS'
16073: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16074: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16075: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16076:
16077:
1.11 moko 16078: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16079: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16080: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16081: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16082: else
16083: lt_cv_sys_symbol_underscore=no
16084: cat > conftest.$ac_ext <<_LT_EOF
16085: void nm_test_func(){}
16086: int main(){nm_test_func;return 0;}
16087: _LT_EOF
1.11 moko 16088: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 16089: (eval $ac_compile) 2>&5
16090: ac_status=$?
1.11 moko 16091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092: (exit $ac_status); }; then
1.8 moko 16093: # Now try to grab the symbols.
16094: ac_nlist=conftest.nm
1.11 moko 16095: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
1.8 moko 16096: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16097: ac_status=$?
1.11 moko 16098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099: (exit $ac_status); } && test -s "$ac_nlist"; then
1.8 moko 16100: # See whether the symbols have a leading underscore.
16101: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16102: lt_cv_sys_symbol_underscore=yes
16103: else
16104: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16105: :
16106: else
16107: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16108: fi
16109: fi
16110: else
16111: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16112: fi
16113: else
16114: echo "configure: failed program was:" >&5
16115: cat conftest.c >&5
16116: fi
16117: rm -rf conftest*
16118:
16119: fi
1.11 moko 16120: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16121: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
1.8 moko 16122: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16123:
16124:
16125: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16126: if test x"$libltdl_cv_func_dlopen" = xyes ||
16127: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.11 moko 16128: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16129: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16130: if test "${libltdl_cv_need_uscore+set}" = set; then
16131: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16132: else
16133: libltdl_cv_need_uscore=unknown
16134: save_LIBS="$LIBS"
16135: LIBS="$LIBS $LIBADD_DLOPEN"
16136: if test "$cross_compiling" = yes; then :
16137: libltdl_cv_need_uscore=cross
16138: else
16139: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16140: lt_status=$lt_dlunknown
16141: cat > conftest.$ac_ext <<_LT_EOF
16142: #line $LINENO "configure"
16143: #include "confdefs.h"
16144:
16145: #if HAVE_DLFCN_H
16146: #include <dlfcn.h>
16147: #endif
16148:
16149: #include <stdio.h>
16150:
16151: #ifdef RTLD_GLOBAL
16152: # define LT_DLGLOBAL RTLD_GLOBAL
16153: #else
16154: # ifdef DL_GLOBAL
16155: # define LT_DLGLOBAL DL_GLOBAL
16156: # else
16157: # define LT_DLGLOBAL 0
16158: # endif
16159: #endif
16160:
16161: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16162: find out it does not work in some platform. */
16163: #ifndef LT_DLLAZY_OR_NOW
16164: # ifdef RTLD_LAZY
16165: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16166: # else
16167: # ifdef DL_LAZY
16168: # define LT_DLLAZY_OR_NOW DL_LAZY
16169: # else
16170: # ifdef RTLD_NOW
16171: # define LT_DLLAZY_OR_NOW RTLD_NOW
16172: # else
16173: # ifdef DL_NOW
16174: # define LT_DLLAZY_OR_NOW DL_NOW
16175: # else
16176: # define LT_DLLAZY_OR_NOW 0
16177: # endif
16178: # endif
16179: # endif
16180: # endif
16181: #endif
16182:
16183: /* When -fvisbility=hidden is used, assume the code has been annotated
16184: correspondingly for the symbols needed. */
16185: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16186: int fnord () __attribute__((visibility("default")));
16187: #endif
16188:
16189: int fnord () { return 42; }
16190: int main ()
16191: {
16192: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16193: int status = $lt_dlunknown;
16194:
16195: if (self)
16196: {
16197: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16198: else
16199: {
16200: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16201: else puts (dlerror ());
16202: }
16203: /* dlclose (self); */
16204: }
16205: else
16206: puts (dlerror ());
16207:
16208: return status;
16209: }
16210: _LT_EOF
1.11 moko 16211: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 16212: (eval $ac_link) 2>&5
16213: ac_status=$?
1.11 moko 16214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 16216: (./conftest; exit; ) >&5 2>/dev/null
16217: lt_status=$?
16218: case x$lt_status in
16219: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16220: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16221: x$lt_dlunknown|x*) ;;
16222: esac
16223: else :
16224: # compilation failed
16225:
16226: fi
16227: fi
16228: rm -fr conftest*
16229:
16230: LIBS="$save_LIBS"
16231:
16232: fi
1.11 moko 16233: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16234: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
1.8 moko 16235: fi
16236: fi
16237:
16238: if test x"$libltdl_cv_need_uscore" = xyes; then
16239:
1.11 moko 16240: cat >>confdefs.h <<\_ACEOF
16241: #define NEED_USCORE 1
16242: _ACEOF
1.8 moko 16243:
16244: fi
16245:
1.11 moko 16246: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16247: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16248: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16249: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16250: else
16251: # PORTME does your system automatically load deplibs for dlopen?
16252: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16253: # For now, we just catch OSes we know something about -- in the
16254: # future, we'll try test this programmatically.
16255: lt_cv_sys_dlopen_deplibs=unknown
16256: case $host_os in
16257: aix3*|aix4.1.*|aix4.2.*)
16258: # Unknown whether this is true for these versions of AIX, but
16259: # we want this `case' here to explicitly catch those versions.
16260: lt_cv_sys_dlopen_deplibs=unknown
16261: ;;
16262: aix[4-9]*)
16263: lt_cv_sys_dlopen_deplibs=yes
16264: ;;
16265: amigaos*)
16266: case $host_cpu in
16267: powerpc)
16268: lt_cv_sys_dlopen_deplibs=no
16269: ;;
16270: esac
16271: ;;
16272: darwin*)
16273: # Assuming the user has installed a libdl from somewhere, this is true
16274: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16275: lt_cv_sys_dlopen_deplibs=yes
16276: ;;
16277: freebsd* | dragonfly*)
16278: lt_cv_sys_dlopen_deplibs=yes
16279: ;;
16280: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16281: # GNU and its variants, using gnu ld.so (Glibc)
16282: lt_cv_sys_dlopen_deplibs=yes
16283: ;;
16284: hpux10*|hpux11*)
16285: lt_cv_sys_dlopen_deplibs=yes
16286: ;;
16287: interix*)
16288: lt_cv_sys_dlopen_deplibs=yes
16289: ;;
16290: irix[12345]*|irix6.[01]*)
16291: # Catch all versions of IRIX before 6.2, and indicate that we don't
16292: # know how it worked for any of those versions.
16293: lt_cv_sys_dlopen_deplibs=unknown
16294: ;;
16295: irix*)
16296: # The case above catches anything before 6.2, and it's known that
16297: # at 6.2 and later dlopen does load deplibs.
16298: lt_cv_sys_dlopen_deplibs=yes
16299: ;;
16300: netbsd*)
16301: lt_cv_sys_dlopen_deplibs=yes
16302: ;;
16303: openbsd*)
16304: lt_cv_sys_dlopen_deplibs=yes
16305: ;;
16306: osf[1234]*)
16307: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16308: # it did *not* use an RPATH in a shared library to find objects the
16309: # library depends on, so we explicitly say `no'.
16310: lt_cv_sys_dlopen_deplibs=no
16311: ;;
16312: osf5.0|osf5.0a|osf5.1)
16313: # dlopen *does* load deplibs and with the right loader patch applied
16314: # it even uses RPATH in a shared library to search for shared objects
16315: # that the library depends on, but there's no easy way to know if that
16316: # patch is installed. Since this is the case, all we can really
16317: # say is unknown -- it depends on the patch being installed. If
16318: # it is, this changes to `yes'. Without it, it would be `no'.
16319: lt_cv_sys_dlopen_deplibs=unknown
16320: ;;
16321: osf*)
16322: # the two cases above should catch all versions of osf <= 5.1. Read
16323: # the comments above for what we know about them.
16324: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16325: # is used to find them so we can finally say `yes'.
16326: lt_cv_sys_dlopen_deplibs=yes
16327: ;;
16328: qnx*)
16329: lt_cv_sys_dlopen_deplibs=yes
16330: ;;
16331: solaris*)
16332: lt_cv_sys_dlopen_deplibs=yes
16333: ;;
16334: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16335: libltdl_cv_sys_dlopen_deplibs=yes
16336: ;;
16337: esac
16338:
16339: fi
1.11 moko 16340: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16341: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
1.8 moko 16342: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16343:
1.11 moko 16344: cat >>confdefs.h <<\_ACEOF
16345: #define LTDL_DLOPEN_DEPLIBS 1
16346: _ACEOF
1.8 moko 16347:
16348: fi
16349:
16350: :
16351:
1.11 moko 16352:
1.8 moko 16353: for ac_header in argz.h
1.11 moko 16354: do
16355: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356: echo "$as_me:$LINENO: checking for $ac_header" >&5
16357: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16358: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16359: echo $ECHO_N "(cached) $ECHO_C" >&6
16360: else
16361: cat >conftest.$ac_ext <<_ACEOF
16362: /* confdefs.h. */
16363: _ACEOF
16364: cat confdefs.h >>conftest.$ac_ext
16365: cat >>conftest.$ac_ext <<_ACEOF
16366: /* end confdefs.h. */
16367: $ac_includes_default
16368:
16369: #include <$ac_header>
16370: _ACEOF
16371: rm -f conftest.$ac_objext
16372: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16373: (eval $ac_compile) 2>conftest.er1
16374: ac_status=$?
16375: grep -v '^ *+' conftest.er1 >conftest.err
16376: rm -f conftest.er1
16377: cat conftest.err >&5
16378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379: (exit $ac_status); } &&
16380: { ac_try='test -z "$ac_c_werror_flag"
16381: || test ! -s conftest.err'
16382: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383: (eval $ac_try) 2>&5
16384: ac_status=$?
16385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386: (exit $ac_status); }; } &&
16387: { ac_try='test -s conftest.$ac_objext'
16388: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389: (eval $ac_try) 2>&5
16390: ac_status=$?
16391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392: (exit $ac_status); }; }; then
16393: eval "$as_ac_Header=yes"
16394: else
16395: echo "$as_me: failed program was:" >&5
16396: sed 's/^/| /' conftest.$ac_ext >&5
16397:
16398: eval "$as_ac_Header=no"
16399: fi
16400: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16401: fi
16402: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16403: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16404: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 16405: cat >>confdefs.h <<_ACEOF
1.11 moko 16406: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16407: _ACEOF
16408:
16409: fi
16410:
16411: done
16412:
16413:
1.11 moko 16414: echo "$as_me:$LINENO: checking for error_t" >&5
16415: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16416: if test "${ac_cv_type_error_t+set}" = set; then
16417: echo $ECHO_N "(cached) $ECHO_C" >&6
16418: else
16419: cat >conftest.$ac_ext <<_ACEOF
16420: /* confdefs.h. */
16421: _ACEOF
16422: cat confdefs.h >>conftest.$ac_ext
16423: cat >>conftest.$ac_ext <<_ACEOF
16424: /* end confdefs.h. */
16425: #if defined(HAVE_ARGZ_H)
1.8 moko 16426: # include <argz.h>
16427: #endif
1.11 moko 16428:
16429: int
16430: main ()
16431: {
16432: if ((error_t *) 0)
16433: return 0;
16434: if (sizeof (error_t))
16435: return 0;
16436: ;
16437: return 0;
16438: }
16439: _ACEOF
16440: rm -f conftest.$ac_objext
16441: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16442: (eval $ac_compile) 2>conftest.er1
16443: ac_status=$?
16444: grep -v '^ *+' conftest.er1 >conftest.err
16445: rm -f conftest.er1
16446: cat conftest.err >&5
16447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448: (exit $ac_status); } &&
16449: { ac_try='test -z "$ac_c_werror_flag"
16450: || test ! -s conftest.err'
16451: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452: (eval $ac_try) 2>&5
16453: ac_status=$?
16454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455: (exit $ac_status); }; } &&
16456: { ac_try='test -s conftest.$ac_objext'
16457: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458: (eval $ac_try) 2>&5
16459: ac_status=$?
16460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461: (exit $ac_status); }; }; then
16462: ac_cv_type_error_t=yes
16463: else
16464: echo "$as_me: failed program was:" >&5
16465: sed 's/^/| /' conftest.$ac_ext >&5
16466:
16467: ac_cv_type_error_t=no
16468: fi
16469: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16470: fi
16471: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16472: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16473: if test $ac_cv_type_error_t = yes; then
1.8 moko 16474:
16475: cat >>confdefs.h <<_ACEOF
16476: #define HAVE_ERROR_T 1
16477: _ACEOF
16478:
16479:
16480: else
16481:
1.11 moko 16482: cat >>confdefs.h <<\_ACEOF
16483: #define error_t int
16484: _ACEOF
1.8 moko 16485:
16486:
1.11 moko 16487: cat >>confdefs.h <<\_ACEOF
16488: #define __error_t_defined 1
16489: _ACEOF
1.8 moko 16490:
16491: fi
16492:
16493:
16494: ARGZ_H=
1.11 moko 16495:
16496:
16497:
16498:
16499:
16500:
16501:
1.8 moko 16502: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16503: argz_next argz_stringify
1.11 moko 16504: do
16505: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16506: echo "$as_me:$LINENO: checking for $ac_func" >&5
16507: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16508: if eval "test \"\${$as_ac_var+set}\" = set"; then
16509: echo $ECHO_N "(cached) $ECHO_C" >&6
16510: else
16511: cat >conftest.$ac_ext <<_ACEOF
16512: /* confdefs.h. */
16513: _ACEOF
16514: cat confdefs.h >>conftest.$ac_ext
16515: cat >>conftest.$ac_ext <<_ACEOF
16516: /* end confdefs.h. */
16517: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16518: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16519: #define $ac_func innocuous_$ac_func
16520:
16521: /* System header to define __stub macros and hopefully few prototypes,
16522: which can conflict with char $ac_func (); below.
16523: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16524: <limits.h> exists even on freestanding compilers. */
16525:
16526: #ifdef __STDC__
16527: # include <limits.h>
16528: #else
16529: # include <assert.h>
16530: #endif
16531:
16532: #undef $ac_func
16533:
16534: /* Override any gcc2 internal prototype to avoid an error. */
16535: #ifdef __cplusplus
16536: extern "C"
16537: {
16538: #endif
16539: /* We use char because int might match the return type of a gcc2
16540: builtin and then its argument prototype would still apply. */
16541: char $ac_func ();
16542: /* The GNU C library defines this for functions which it implements
16543: to always fail with ENOSYS. Some functions are actually named
16544: something starting with __ and the normal name is an alias. */
16545: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16546: choke me
16547: #else
16548: char (*f) () = $ac_func;
16549: #endif
16550: #ifdef __cplusplus
16551: }
16552: #endif
16553:
16554: int
16555: main ()
16556: {
16557: return f != $ac_func;
16558: ;
16559: return 0;
16560: }
16561: _ACEOF
16562: rm -f conftest.$ac_objext conftest$ac_exeext
16563: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564: (eval $ac_link) 2>conftest.er1
16565: ac_status=$?
16566: grep -v '^ *+' conftest.er1 >conftest.err
16567: rm -f conftest.er1
16568: cat conftest.err >&5
16569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570: (exit $ac_status); } &&
16571: { ac_try='test -z "$ac_c_werror_flag"
16572: || test ! -s conftest.err'
16573: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574: (eval $ac_try) 2>&5
16575: ac_status=$?
16576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577: (exit $ac_status); }; } &&
16578: { ac_try='test -s conftest$ac_exeext'
16579: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580: (eval $ac_try) 2>&5
16581: ac_status=$?
16582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583: (exit $ac_status); }; }; then
16584: eval "$as_ac_var=yes"
16585: else
16586: echo "$as_me: failed program was:" >&5
16587: sed 's/^/| /' conftest.$ac_ext >&5
16588:
16589: eval "$as_ac_var=no"
16590: fi
16591: rm -f conftest.err conftest.$ac_objext \
16592: conftest$ac_exeext conftest.$ac_ext
16593: fi
16594: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16595: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16596: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 16597: cat >>confdefs.h <<_ACEOF
1.11 moko 16598: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16599: _ACEOF
16600:
16601: else
16602: ARGZ_H=argz.h;
16603:
16604: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16605:
16606: fi
16607: done
16608:
16609:
1.11 moko 16610: if test -z "$ARGZ_H"; then
16611: echo "$as_me:$LINENO: checking if argz actually works" >&5
16612: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16613: if test "${lt_cv_sys_argz_works+set}" = set; then
16614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16615: else
16616: case $host_os in #(
16617: *cygwin*)
16618: lt_cv_sys_argz_works=no
16619: if test "$cross_compiling" != no; then
16620: lt_cv_sys_argz_works="guessing no"
16621: else
16622: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16623: save_IFS=$IFS
16624: IFS=-.
16625: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16626: IFS=$save_IFS
16627: lt_os_major=${2-0}
16628: lt_os_minor=${3-0}
16629: lt_os_micro=${4-0}
16630: if test "$lt_os_major" -gt 1 \
16631: || { test "$lt_os_major" -eq 1 \
16632: && { test "$lt_os_minor" -gt 5 \
16633: || { test "$lt_os_minor" -eq 5 \
16634: && test "$lt_os_micro" -gt 24; }; }; }; then
16635: lt_cv_sys_argz_works=yes
16636: fi
16637: fi
16638: ;; #(
16639: *) lt_cv_sys_argz_works=yes ;;
16640: esac
16641: fi
1.11 moko 16642: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16643: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16644: if test "$lt_cv_sys_argz_works" = yes; then
1.8 moko 16645:
1.11 moko 16646: cat >>confdefs.h <<\_ACEOF
16647: #define HAVE_WORKING_ARGZ 1
16648: _ACEOF
1.8 moko 16649:
16650: else
16651: ARGZ_H=argz.h
16652:
16653:
16654: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16655:
16656: fi
1.11 moko 16657:
1.8 moko 16658: fi
16659:
16660:
16661:
1.11 moko 16662:
16663: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16664: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16665: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16666: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16667: else
16668: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16669: libltdl_cv_preloaded_symbols=yes
16670: else
16671: libltdl_cv_preloaded_symbols=no
16672: fi
16673:
16674: fi
1.11 moko 16675: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16676: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
1.8 moko 16677: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16678:
1.11 moko 16679: cat >>confdefs.h <<\_ACEOF
16680: #define HAVE_PRELOADED_SYMBOLS 1
16681: _ACEOF
1.8 moko 16682:
16683: fi
16684:
16685: # Set options
16686:
16687:
16688:
16689:
16690:
16691:
16692:
16693:
16694:
16695:
16696:
16697:
1.11 moko 16698: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16699: if test "${with_included_ltdl+set}" = set; then
16700: withval="$with_included_ltdl"
1.8 moko 16701:
1.11 moko 16702: fi;
1.8 moko 16703:
16704: if test "x$with_included_ltdl" != xyes; then
16705: # We are not being forced to use the included libltdl sources, so
16706: # decide whether there is a useful installed version we can use.
1.11 moko 16707: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16708: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16709: if test "${ac_cv_header_ltdl_h+set}" = set; then
16710: echo $ECHO_N "(cached) $ECHO_C" >&6
16711: else
16712: cat >conftest.$ac_ext <<_ACEOF
16713: /* confdefs.h. */
16714: _ACEOF
16715: cat confdefs.h >>conftest.$ac_ext
16716: cat >>conftest.$ac_ext <<_ACEOF
16717: /* end confdefs.h. */
16718: $ac_includes_default
16719:
16720:
16721: #include <ltdl.h>
16722: _ACEOF
16723: rm -f conftest.$ac_objext
16724: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16725: (eval $ac_compile) 2>conftest.er1
16726: ac_status=$?
16727: grep -v '^ *+' conftest.er1 >conftest.err
16728: rm -f conftest.er1
16729: cat conftest.err >&5
16730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731: (exit $ac_status); } &&
16732: { ac_try='test -z "$ac_c_werror_flag"
16733: || test ! -s conftest.err'
16734: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735: (eval $ac_try) 2>&5
16736: ac_status=$?
16737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738: (exit $ac_status); }; } &&
16739: { ac_try='test -s conftest.$ac_objext'
16740: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741: (eval $ac_try) 2>&5
16742: ac_status=$?
16743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744: (exit $ac_status); }; }; then
16745: ac_cv_header_ltdl_h=yes
16746: else
16747: echo "$as_me: failed program was:" >&5
16748: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 16749:
1.11 moko 16750: ac_cv_header_ltdl_h=no
16751: fi
16752: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16753: fi
16754: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16755: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16756: if test $ac_cv_header_ltdl_h = yes; then
16757: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16758: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16759: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16760: echo $ECHO_N "(cached) $ECHO_C" >&6
16761: else
16762: cat >conftest.$ac_ext <<_ACEOF
16763: /* confdefs.h. */
16764: _ACEOF
16765: cat confdefs.h >>conftest.$ac_ext
16766: cat >>conftest.$ac_ext <<_ACEOF
16767: /* end confdefs.h. */
16768: $ac_includes_default
1.8 moko 16769: #include <ltdl.h>
1.11 moko 16770:
16771: int
16772: main ()
16773: {
16774: #ifndef lt_dlinterface_register
16775: char *p = (char *) lt_dlinterface_register;
16776: #endif
16777:
16778: ;
16779: return 0;
16780: }
16781: _ACEOF
16782: rm -f conftest.$ac_objext
16783: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16784: (eval $ac_compile) 2>conftest.er1
16785: ac_status=$?
16786: grep -v '^ *+' conftest.er1 >conftest.err
16787: rm -f conftest.er1
16788: cat conftest.err >&5
16789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790: (exit $ac_status); } &&
16791: { ac_try='test -z "$ac_c_werror_flag"
16792: || test ! -s conftest.err'
16793: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794: (eval $ac_try) 2>&5
16795: ac_status=$?
16796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797: (exit $ac_status); }; } &&
16798: { ac_try='test -s conftest.$ac_objext'
16799: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800: (eval $ac_try) 2>&5
16801: ac_status=$?
16802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803: (exit $ac_status); }; }; then
16804: ac_cv_have_decl_lt_dlinterface_register=yes
16805: else
16806: echo "$as_me: failed program was:" >&5
16807: sed 's/^/| /' conftest.$ac_ext >&5
16808:
16809: ac_cv_have_decl_lt_dlinterface_register=no
16810: fi
16811: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16812: fi
16813: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16814: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16815: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16816: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16817: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16818: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16819: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16820: else
16821: ac_check_lib_save_LIBS=$LIBS
16822: LIBS="-lltdl $LIBS"
1.11 moko 16823: cat >conftest.$ac_ext <<_ACEOF
16824: /* confdefs.h. */
16825: _ACEOF
16826: cat confdefs.h >>conftest.$ac_ext
16827: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16828: /* end confdefs.h. */
16829:
1.11 moko 16830: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16831: #ifdef __cplusplus
16832: extern "C"
16833: #endif
1.11 moko 16834: /* We use char because int might match the return type of a gcc2
16835: builtin and then its argument prototype would still apply. */
1.8 moko 16836: char lt_dladvise_preload ();
16837: int
16838: main ()
16839: {
1.11 moko 16840: lt_dladvise_preload ();
1.8 moko 16841: ;
16842: return 0;
16843: }
16844: _ACEOF
1.11 moko 16845: rm -f conftest.$ac_objext conftest$ac_exeext
16846: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847: (eval $ac_link) 2>conftest.er1
16848: ac_status=$?
16849: grep -v '^ *+' conftest.er1 >conftest.err
16850: rm -f conftest.er1
16851: cat conftest.err >&5
16852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853: (exit $ac_status); } &&
16854: { ac_try='test -z "$ac_c_werror_flag"
16855: || test ! -s conftest.err'
16856: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857: (eval $ac_try) 2>&5
16858: ac_status=$?
16859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860: (exit $ac_status); }; } &&
16861: { ac_try='test -s conftest$ac_exeext'
16862: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863: (eval $ac_try) 2>&5
16864: ac_status=$?
16865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866: (exit $ac_status); }; }; then
1.8 moko 16867: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16868: else
1.11 moko 16869: echo "$as_me: failed program was:" >&5
16870: sed 's/^/| /' conftest.$ac_ext >&5
16871:
16872: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16873: fi
1.11 moko 16874: rm -f conftest.err conftest.$ac_objext \
16875: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16876: LIBS=$ac_check_lib_save_LIBS
16877: fi
1.11 moko 16878: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16879: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16880: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
1.8 moko 16881: with_included_ltdl=no
16882: else
16883: with_included_ltdl=yes
16884: fi
16885:
16886: else
16887: with_included_ltdl=yes
16888: fi
16889:
16890: else
16891: with_included_ltdl=yes
16892: fi
16893:
16894:
16895: fi
16896:
16897:
16898:
16899:
1.11 moko 16900: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16901: if test "${with_ltdl_include+set}" = set; then
16902: withval="$with_ltdl_include"
1.8 moko 16903:
1.11 moko 16904: fi;
1.8 moko 16905:
16906: if test -n "$with_ltdl_include"; then
16907: if test -f "$with_ltdl_include/ltdl.h"; then :
16908: else
1.11 moko 16909: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16910: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16911: { (exit 1); exit 1; }; }
1.8 moko 16912: fi
16913: else
16914: with_ltdl_include=no
16915: fi
16916:
16917:
1.11 moko 16918: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16919: if test "${with_ltdl_lib+set}" = set; then
16920: withval="$with_ltdl_lib"
1.8 moko 16921:
1.11 moko 16922: fi;
1.8 moko 16923:
16924: if test -n "$with_ltdl_lib"; then
16925: if test -f "$with_ltdl_lib/libltdl.la"; then :
16926: else
1.11 moko 16927: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16928: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16929: { (exit 1); exit 1; }; }
1.8 moko 16930: fi
16931: else
16932: with_ltdl_lib=no
16933: fi
16934:
16935: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16936: ,yes,no,no,)
16937: case $enable_ltdl_convenience in
1.11 moko 16938: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16939: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16940: { (exit 1); exit 1; }; } ;;
1.8 moko 16941: "") enable_ltdl_convenience=yes
16942: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16943: esac
1.11 moko 16944: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 16945: LTDLDEPS=$LIBLTDL
16946: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16947:
16948:
16949:
16950:
16951:
16952: # For backwards non-gettext consistent compatibility...
16953: INCLTDL="$LTDLINCL"
16954:
16955:
16956: ;;
16957: ,no,no,no,)
16958: # If the included ltdl is not to be used, then use the
16959: # preinstalled libltdl we found.
16960:
1.11 moko 16961: cat >>confdefs.h <<\_ACEOF
16962: #define HAVE_LTDL 1
16963: _ACEOF
1.8 moko 16964:
16965: LIBLTDL=-lltdl
16966: LTDLDEPS=
16967: LTDLINCL=
16968: ;;
16969: ,no*,no,*)
1.11 moko 16970: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16971: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16972: { (exit 1); exit 1; }; }
1.8 moko 16973: ;;
16974: *) with_included_ltdl=no
16975: LIBLTDL="-L$with_ltdl_lib -lltdl"
16976: LTDLDEPS=
16977: LTDLINCL="-I$with_ltdl_include"
16978: ;;
16979: esac
16980: INCLTDL="$LTDLINCL"
16981:
16982: # Report our decision...
1.11 moko 16983: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16984: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
16985: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16986: echo "${ECHO_T}$LTDLINCL" >&6
16987: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16988: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
16989: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
16990: echo "${ECHO_T}$LIBLTDL" >&6
1.8 moko 16991:
16992:
16993:
1.11 moko 16994: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
16995: if test "${enable_ltdl_install+set}" = set; then
16996: enableval="$enable_ltdl_install"
1.8 moko 16997:
1.11 moko 16998: fi;
1.8 moko 16999:
17000: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17001: *yes*) ;;
17002: *) enable_ltdl_convenience=yes ;;
17003: esac
17004:
17005:
17006:
17007: if test x"${enable_ltdl_install-no}" != xno; then
17008: INSTALL_LTDL_TRUE=
17009: INSTALL_LTDL_FALSE='#'
17010: else
17011: INSTALL_LTDL_TRUE='#'
17012: INSTALL_LTDL_FALSE=
17013: fi
17014:
17015:
17016:
17017: if test x"${enable_ltdl_convenience-no}" != xno; then
17018: CONVENIENCE_LTDL_TRUE=
17019: CONVENIENCE_LTDL_FALSE='#'
17020: else
17021: CONVENIENCE_LTDL_TRUE='#'
17022: CONVENIENCE_LTDL_FALSE=
17023: fi
17024:
17025:
17026:
1.11 moko 17027:
17028:
17029: subdirs="$subdirs libltdl"
1.8 moko 17030:
17031:
17032:
17033:
17034: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17035: # the user used. This is so that ltdl.h can pick up the parent projects
17036: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17037: # definitions required by ltdl.c.
17038: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17039:
17040:
17041:
1.10 moko 17042:
1.8 moko 17043:
17044:
17045:
1.11 moko 17046:
17047:
17048: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17049: do
17050: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17051: echo "$as_me:$LINENO: checking for $ac_header" >&5
17052: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17053: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17054: echo $ECHO_N "(cached) $ECHO_C" >&6
17055: else
17056: cat >conftest.$ac_ext <<_ACEOF
17057: /* confdefs.h. */
17058: _ACEOF
17059: cat confdefs.h >>conftest.$ac_ext
17060: cat >>conftest.$ac_ext <<_ACEOF
17061: /* end confdefs.h. */
17062: $ac_includes_default
17063:
17064: #include <$ac_header>
17065: _ACEOF
17066: rm -f conftest.$ac_objext
17067: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068: (eval $ac_compile) 2>conftest.er1
17069: ac_status=$?
17070: grep -v '^ *+' conftest.er1 >conftest.err
17071: rm -f conftest.er1
17072: cat conftest.err >&5
17073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074: (exit $ac_status); } &&
17075: { ac_try='test -z "$ac_c_werror_flag"
17076: || test ! -s conftest.err'
17077: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078: (eval $ac_try) 2>&5
17079: ac_status=$?
17080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081: (exit $ac_status); }; } &&
17082: { ac_try='test -s conftest.$ac_objext'
17083: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084: (eval $ac_try) 2>&5
17085: ac_status=$?
17086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087: (exit $ac_status); }; }; then
17088: eval "$as_ac_Header=yes"
17089: else
17090: echo "$as_me: failed program was:" >&5
17091: sed 's/^/| /' conftest.$ac_ext >&5
17092:
17093: eval "$as_ac_Header=no"
17094: fi
17095: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096: fi
17097: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17098: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17099: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17100: cat >>confdefs.h <<_ACEOF
17101: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17102: _ACEOF
17103:
17104: fi
17105:
17106: done
17107:
17108:
17109:
17110:
17111:
17112: for ac_func in closedir opendir readdir
17113: do
17114: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17115: echo "$as_me:$LINENO: checking for $ac_func" >&5
17116: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17117: if eval "test \"\${$as_ac_var+set}\" = set"; then
17118: echo $ECHO_N "(cached) $ECHO_C" >&6
17119: else
17120: cat >conftest.$ac_ext <<_ACEOF
17121: /* confdefs.h. */
17122: _ACEOF
17123: cat confdefs.h >>conftest.$ac_ext
17124: cat >>conftest.$ac_ext <<_ACEOF
17125: /* end confdefs.h. */
17126: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17127: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17128: #define $ac_func innocuous_$ac_func
17129:
17130: /* System header to define __stub macros and hopefully few prototypes,
17131: which can conflict with char $ac_func (); below.
17132: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17133: <limits.h> exists even on freestanding compilers. */
17134:
17135: #ifdef __STDC__
17136: # include <limits.h>
17137: #else
17138: # include <assert.h>
17139: #endif
17140:
17141: #undef $ac_func
17142:
17143: /* Override any gcc2 internal prototype to avoid an error. */
17144: #ifdef __cplusplus
17145: extern "C"
17146: {
17147: #endif
17148: /* We use char because int might match the return type of a gcc2
17149: builtin and then its argument prototype would still apply. */
17150: char $ac_func ();
17151: /* The GNU C library defines this for functions which it implements
17152: to always fail with ENOSYS. Some functions are actually named
17153: something starting with __ and the normal name is an alias. */
17154: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17155: choke me
17156: #else
17157: char (*f) () = $ac_func;
17158: #endif
17159: #ifdef __cplusplus
17160: }
17161: #endif
17162:
17163: int
17164: main ()
17165: {
17166: return f != $ac_func;
17167: ;
17168: return 0;
17169: }
17170: _ACEOF
17171: rm -f conftest.$ac_objext conftest$ac_exeext
17172: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17173: (eval $ac_link) 2>conftest.er1
17174: ac_status=$?
17175: grep -v '^ *+' conftest.er1 >conftest.err
17176: rm -f conftest.er1
17177: cat conftest.err >&5
17178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179: (exit $ac_status); } &&
17180: { ac_try='test -z "$ac_c_werror_flag"
17181: || test ! -s conftest.err'
17182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183: (eval $ac_try) 2>&5
17184: ac_status=$?
17185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186: (exit $ac_status); }; } &&
17187: { ac_try='test -s conftest$ac_exeext'
17188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189: (eval $ac_try) 2>&5
17190: ac_status=$?
17191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192: (exit $ac_status); }; }; then
17193: eval "$as_ac_var=yes"
17194: else
17195: echo "$as_me: failed program was:" >&5
17196: sed 's/^/| /' conftest.$ac_ext >&5
17197:
17198: eval "$as_ac_var=no"
17199: fi
17200: rm -f conftest.err conftest.$ac_objext \
17201: conftest$ac_exeext conftest.$ac_ext
17202: fi
17203: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17204: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17205: if test `eval echo '${'$as_ac_var'}'` = yes; then
17206: cat >>confdefs.h <<_ACEOF
17207: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17208: _ACEOF
1.8 moko 17209:
1.10 moko 17210: else
1.8 moko 17211:
17212:
1.10 moko 17213: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 17214:
1.10 moko 17215: fi
1.8 moko 17216: done
17217:
1.11 moko 17218:
17219:
1.8 moko 17220: for ac_func in strlcat strlcpy
1.11 moko 17221: do
17222: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17223: echo "$as_me:$LINENO: checking for $ac_func" >&5
17224: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17225: if eval "test \"\${$as_ac_var+set}\" = set"; then
17226: echo $ECHO_N "(cached) $ECHO_C" >&6
17227: else
17228: cat >conftest.$ac_ext <<_ACEOF
17229: /* confdefs.h. */
17230: _ACEOF
17231: cat confdefs.h >>conftest.$ac_ext
17232: cat >>conftest.$ac_ext <<_ACEOF
17233: /* end confdefs.h. */
17234: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17235: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17236: #define $ac_func innocuous_$ac_func
17237:
17238: /* System header to define __stub macros and hopefully few prototypes,
17239: which can conflict with char $ac_func (); below.
17240: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241: <limits.h> exists even on freestanding compilers. */
17242:
17243: #ifdef __STDC__
17244: # include <limits.h>
17245: #else
17246: # include <assert.h>
17247: #endif
17248:
17249: #undef $ac_func
17250:
17251: /* Override any gcc2 internal prototype to avoid an error. */
17252: #ifdef __cplusplus
17253: extern "C"
17254: {
17255: #endif
17256: /* We use char because int might match the return type of a gcc2
17257: builtin and then its argument prototype would still apply. */
17258: char $ac_func ();
17259: /* The GNU C library defines this for functions which it implements
17260: to always fail with ENOSYS. Some functions are actually named
17261: something starting with __ and the normal name is an alias. */
17262: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17263: choke me
17264: #else
17265: char (*f) () = $ac_func;
17266: #endif
17267: #ifdef __cplusplus
17268: }
17269: #endif
17270:
17271: int
17272: main ()
17273: {
17274: return f != $ac_func;
17275: ;
17276: return 0;
17277: }
17278: _ACEOF
17279: rm -f conftest.$ac_objext conftest$ac_exeext
17280: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281: (eval $ac_link) 2>conftest.er1
17282: ac_status=$?
17283: grep -v '^ *+' conftest.er1 >conftest.err
17284: rm -f conftest.er1
17285: cat conftest.err >&5
17286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287: (exit $ac_status); } &&
17288: { ac_try='test -z "$ac_c_werror_flag"
17289: || test ! -s conftest.err'
17290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291: (eval $ac_try) 2>&5
17292: ac_status=$?
17293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294: (exit $ac_status); }; } &&
17295: { ac_try='test -s conftest$ac_exeext'
17296: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297: (eval $ac_try) 2>&5
17298: ac_status=$?
17299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300: (exit $ac_status); }; }; then
17301: eval "$as_ac_var=yes"
17302: else
17303: echo "$as_me: failed program was:" >&5
17304: sed 's/^/| /' conftest.$ac_ext >&5
17305:
17306: eval "$as_ac_var=no"
17307: fi
17308: rm -f conftest.err conftest.$ac_objext \
17309: conftest$ac_exeext conftest.$ac_ext
17310: fi
17311: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17312: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17313: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 17314: cat >>confdefs.h <<_ACEOF
1.11 moko 17315: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 17316: _ACEOF
17317:
17318: else
17319:
17320:
17321: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17322:
17323: fi
17324: done
17325:
17326:
17327:
17328: cat >>confdefs.h <<_ACEOF
17329: #define LT_LIBEXT "$libext"
17330: _ACEOF
17331:
17332:
17333: name=
17334: eval "lt_libprefix=\"$libname_spec\""
17335:
17336: cat >>confdefs.h <<_ACEOF
17337: #define LT_LIBPREFIX "$lt_libprefix"
17338: _ACEOF
17339:
17340:
17341: name=ltdl
17342: eval "LTDLOPEN=\"$libname_spec\""
17343:
17344:
17345:
17346:
17347:
17348:
17349:
17350:
17351: # Only expand once:
17352:
17353:
17354:
1.13 moko 17355: # Check whether --enable-static or --disable-static was given.
17356: if test "${enable_static+set}" = set; then
17357: enableval="$enable_static"
17358: p=${PACKAGE-default}
17359: case $enableval in
17360: yes) enable_static=yes ;;
17361: no) enable_static=no ;;
17362: *)
17363: enable_static=no
17364: # Look at the argument we got. We use all the common list separators.
17365: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17366: for pkg in $enableval; do
17367: IFS="$lt_save_ifs"
17368: if test "X$pkg" = "X$p"; then
17369: enable_static=yes
17370: fi
17371: done
17372: IFS="$lt_save_ifs"
17373: ;;
17374: esac
17375: else
17376: enable_static=no
17377: fi;
17378:
17379:
17380:
17381:
17382:
17383:
17384:
1.8 moko 17385:
1.11 moko 17386:
17387:
17388:
17389:
1.8 moko 17390: for ac_header in stdio.h \
17391: stdlib.h \
17392: string.h \
17393: setjmp.h \
17394: ctype.h
17395:
1.11 moko 17396: do
17397: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17398: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17399: echo "$as_me:$LINENO: checking for $ac_header" >&5
17400: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17401: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17402: echo $ECHO_N "(cached) $ECHO_C" >&6
17403: fi
17404: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17405: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17406: else
17407: # Is the header compilable?
17408: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17409: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17410: cat >conftest.$ac_ext <<_ACEOF
17411: /* confdefs.h. */
17412: _ACEOF
17413: cat confdefs.h >>conftest.$ac_ext
17414: cat >>conftest.$ac_ext <<_ACEOF
17415: /* end confdefs.h. */
17416: $ac_includes_default
17417: #include <$ac_header>
17418: _ACEOF
17419: rm -f conftest.$ac_objext
17420: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17421: (eval $ac_compile) 2>conftest.er1
17422: ac_status=$?
17423: grep -v '^ *+' conftest.er1 >conftest.err
17424: rm -f conftest.er1
17425: cat conftest.err >&5
17426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427: (exit $ac_status); } &&
17428: { ac_try='test -z "$ac_c_werror_flag"
17429: || test ! -s conftest.err'
17430: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431: (eval $ac_try) 2>&5
17432: ac_status=$?
17433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434: (exit $ac_status); }; } &&
17435: { ac_try='test -s conftest.$ac_objext'
17436: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437: (eval $ac_try) 2>&5
17438: ac_status=$?
17439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440: (exit $ac_status); }; }; then
17441: ac_header_compiler=yes
17442: else
17443: echo "$as_me: failed program was:" >&5
17444: sed 's/^/| /' conftest.$ac_ext >&5
17445:
17446: ac_header_compiler=no
17447: fi
17448: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17449: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17450: echo "${ECHO_T}$ac_header_compiler" >&6
17451:
17452: # Is the header present?
17453: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17454: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17455: cat >conftest.$ac_ext <<_ACEOF
17456: /* confdefs.h. */
17457: _ACEOF
17458: cat confdefs.h >>conftest.$ac_ext
17459: cat >>conftest.$ac_ext <<_ACEOF
17460: /* end confdefs.h. */
17461: #include <$ac_header>
17462: _ACEOF
17463: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17464: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17465: ac_status=$?
17466: grep -v '^ *+' conftest.er1 >conftest.err
17467: rm -f conftest.er1
17468: cat conftest.err >&5
17469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470: (exit $ac_status); } >/dev/null; then
17471: if test -s conftest.err; then
17472: ac_cpp_err=$ac_c_preproc_warn_flag
17473: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17474: else
17475: ac_cpp_err=
17476: fi
17477: else
17478: ac_cpp_err=yes
17479: fi
17480: if test -z "$ac_cpp_err"; then
17481: ac_header_preproc=yes
17482: else
17483: echo "$as_me: failed program was:" >&5
17484: sed 's/^/| /' conftest.$ac_ext >&5
17485:
17486: ac_header_preproc=no
17487: fi
17488: rm -f conftest.err conftest.$ac_ext
17489: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17490: echo "${ECHO_T}$ac_header_preproc" >&6
17491:
17492: # So? What about this header?
17493: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17494: yes:no: )
17495: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17496: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17497: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17498: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17499: ac_header_preproc=yes
17500: ;;
17501: no:yes:* )
17502: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17503: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17504: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17505: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17506: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17507: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17508: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17509: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17510: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17511: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17512: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17513: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17514: (
17515: cat <<\_ASBOX
17516: ## ------------------------------------------ ##
1.13 moko 17517: ## Report this to the parser3sqlite.C lists. ##
1.11 moko 17518: ## ------------------------------------------ ##
17519: _ASBOX
17520: ) |
17521: sed "s/^/$as_me: WARNING: /" >&2
17522: ;;
17523: esac
17524: echo "$as_me:$LINENO: checking for $ac_header" >&5
17525: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17526: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17527: echo $ECHO_N "(cached) $ECHO_C" >&6
17528: else
17529: eval "$as_ac_Header=\$ac_header_preproc"
17530: fi
17531: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17532: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17533:
17534: fi
17535: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 17536: cat >>confdefs.h <<_ACEOF
1.11 moko 17537: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 17538: _ACEOF
17539:
17540: fi
17541:
17542: done
17543:
17544:
1.11 moko 17545: echo "$as_me:$LINENO: checking for size_t" >&5
17546: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17547: if test "${ac_cv_type_size_t+set}" = set; then
17548: echo $ECHO_N "(cached) $ECHO_C" >&6
17549: else
17550: cat >conftest.$ac_ext <<_ACEOF
17551: /* confdefs.h. */
17552: _ACEOF
17553: cat confdefs.h >>conftest.$ac_ext
17554: cat >>conftest.$ac_ext <<_ACEOF
17555: /* end confdefs.h. */
17556: $ac_includes_default
17557: int
17558: main ()
17559: {
17560: if ((size_t *) 0)
17561: return 0;
17562: if (sizeof (size_t))
17563: return 0;
17564: ;
17565: return 0;
17566: }
17567: _ACEOF
17568: rm -f conftest.$ac_objext
17569: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17570: (eval $ac_compile) 2>conftest.er1
17571: ac_status=$?
17572: grep -v '^ *+' conftest.er1 >conftest.err
17573: rm -f conftest.er1
17574: cat conftest.err >&5
17575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576: (exit $ac_status); } &&
17577: { ac_try='test -z "$ac_c_werror_flag"
17578: || test ! -s conftest.err'
17579: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580: (eval $ac_try) 2>&5
17581: ac_status=$?
17582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583: (exit $ac_status); }; } &&
17584: { ac_try='test -s conftest.$ac_objext'
17585: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586: (eval $ac_try) 2>&5
17587: ac_status=$?
17588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589: (exit $ac_status); }; }; then
17590: ac_cv_type_size_t=yes
17591: else
17592: echo "$as_me: failed program was:" >&5
17593: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 17594:
1.11 moko 17595: ac_cv_type_size_t=no
17596: fi
17597: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17598: fi
17599: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17600: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17601: if test $ac_cv_type_size_t = yes; then
17602: :
1.8 moko 17603: else
17604:
17605: cat >>confdefs.h <<_ACEOF
1.11 moko 17606: #define size_t unsigned
1.8 moko 17607: _ACEOF
17608:
17609: fi
17610:
17611:
17612:
1.11 moko 17613: ac_config_files="$ac_config_files Makefile"
1.8 moko 17614: cat >confcache <<\_ACEOF
17615: # This file is a shell script that caches the results of configure
17616: # tests run on this system so they can be shared between configure
17617: # scripts and configure runs, see configure's option --config-cache.
17618: # It is not useful on other systems. If it contains results you don't
17619: # want to keep, you may remove or edit it.
17620: #
17621: # config.status only pays attention to the cache file if you give it
17622: # the --recheck option to rerun configure.
17623: #
17624: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17625: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17626: # following values.
17627:
17628: _ACEOF
17629:
17630: # The following way of writing the cache mishandles newlines in values,
17631: # but we know of no workaround that is simple, portable, and efficient.
1.11 moko 17632: # So, don't put newlines in cache variables' values.
1.8 moko 17633: # Ultrix sh set writes to stderr and can't be redirected directly,
17634: # and sets the high bit in the cache file unless we assign to the vars.
1.11 moko 17635: {
1.8 moko 17636: (set) 2>&1 |
1.11 moko 17637: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17638: *ac_space=\ *)
17639: # `set' does not quote correctly, so add quotes (double-quote
17640: # substitution turns \\\\ into \\, and sed turns \\ into \).
1.8 moko 17641: sed -n \
17642: "s/'/'\\\\''/g;
17643: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.11 moko 17644: ;;
1.8 moko 17645: *)
17646: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.11 moko 17647: sed -n \
17648: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.8 moko 17649: ;;
1.11 moko 17650: esac;
17651: } |
1.8 moko 17652: sed '
17653: t clear
1.11 moko 17654: : clear
1.8 moko 17655: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17656: t end
1.11 moko 17657: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17658: : end' >>confcache
17659: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17660: if test -w $cache_file; then
17661: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1.8 moko 17662: cat confcache >$cache_file
17663: else
1.11 moko 17664: echo "not updating unwritable cache $cache_file"
1.8 moko 17665: fi
17666: fi
17667: rm -f confcache
17668:
17669: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17670: # Let make expand exec_prefix.
17671: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17672:
1.11 moko 17673: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17674: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17675: # trailing colons and then remove the whole line if VPATH becomes empty
17676: # (actually we leave an empty line to preserve line numbers).
17677: if test "x$srcdir" = x.; then
17678: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17679: s/:*\$(srcdir):*/:/;
17680: s/:*\${srcdir}:*/:/;
17681: s/:*@srcdir@:*/:/;
17682: s/^\([^=]*=[ ]*\):*/\1/;
17683: s/:*$//;
17684: s/^[^=]*=[ ]*$//;
17685: }'
17686: fi
17687:
1.8 moko 17688: DEFS=-DHAVE_CONFIG_H
17689:
17690: ac_libobjs=
17691: ac_ltlibobjs=
17692: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17693: # 1. Remove the extension, and $U if already installed.
1.11 moko 17694: ac_i=`echo "$ac_i" |
17695: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17696: # 2. Add them.
17697: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17698: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.8 moko 17699: done
17700: LIBOBJS=$ac_libobjs
17701:
17702: LTLIBOBJS=$ac_ltlibobjs
17703:
17704:
17705: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.11 moko 17706: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17707: Usually this means the macro was only invoked conditionally." >&5
17708: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17709: Usually this means the macro was only invoked conditionally." >&2;}
17710: { (exit 1); exit 1; }; }
1.8 moko 17711: fi
17712: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.11 moko 17713: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17714: Usually this means the macro was only invoked conditionally." >&5
17715: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17716: Usually this means the macro was only invoked conditionally." >&2;}
17717: { (exit 1); exit 1; }; }
1.8 moko 17718: fi
17719: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.11 moko 17720: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17721: Usually this means the macro was only invoked conditionally." >&5
17722: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17723: Usually this means the macro was only invoked conditionally." >&2;}
17724: { (exit 1); exit 1; }; }
1.8 moko 17725: fi
17726: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.11 moko 17727: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17728: Usually this means the macro was only invoked conditionally." >&5
17729: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17730: Usually this means the macro was only invoked conditionally." >&2;}
17731: { (exit 1); exit 1; }; }
1.8 moko 17732: fi
17733: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.11 moko 17734: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17735: Usually this means the macro was only invoked conditionally." >&5
17736: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17737: Usually this means the macro was only invoked conditionally." >&2;}
17738: { (exit 1); exit 1; }; }
1.8 moko 17739: fi
1.11 moko 17740: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
1.8 moko 17741:
17742: _ltdl_libobjs=
17743: _ltdl_ltlibobjs=
17744: if test -n "$_LT_LIBOBJS"; then
17745: # Remove the extension.
17746: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17747: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17748: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17749: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17750: done
17751: fi
17752: ltdl_LIBOBJS=$_ltdl_libobjs
17753:
17754: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17755:
17756:
17757:
17758: : ${CONFIG_STATUS=./config.status}
17759: ac_clean_files_save=$ac_clean_files
17760: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.11 moko 17761: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17762: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17763: cat >$CONFIG_STATUS <<_ACEOF
1.8 moko 17764: #! $SHELL
17765: # Generated by $as_me.
17766: # Run this file to recreate the current configuration.
17767: # Compiler output produced by configure, useful for debugging
17768: # configure, is in config.log if it exists.
17769:
17770: debug=false
17771: ac_cs_recheck=false
17772: ac_cs_silent=false
1.11 moko 17773: SHELL=\${CONFIG_SHELL-$SHELL}
17774: _ACEOF
1.10 moko 17775:
1.11 moko 17776: cat >>$CONFIG_STATUS <<\_ACEOF
17777: ## --------------------- ##
17778: ## M4sh Initialization. ##
17779: ## --------------------- ##
1.8 moko 17780:
1.11 moko 17781: # Be Bourne compatible
17782: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.8 moko 17783: emulate sh
17784: NULLCMD=:
1.11 moko 17785: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.8 moko 17786: # is contrary to our usage. Disable this feature.
17787: alias -g '${1+"$@"}'='"$@"'
1.11 moko 17788: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17789: set -o posix
1.10 moko 17790: fi
1.11 moko 17791: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 17792:
1.11 moko 17793: # Support unset when possible.
17794: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17795: as_unset=unset
17796: else
17797: as_unset=false
1.8 moko 17798: fi
17799:
17800:
1.11 moko 17801: # Work around bugs in pre-3.0 UWIN ksh.
17802: $as_unset ENV MAIL MAILPATH
1.8 moko 17803: PS1='$ '
17804: PS2='> '
17805: PS4='+ '
17806:
17807: # NLS nuisances.
1.11 moko 17808: for as_var in \
17809: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17810: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17811: LC_TELEPHONE LC_TIME
17812: do
17813: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17814: eval $as_var=C; export $as_var
17815: else
17816: $as_unset $as_var
17817: fi
17818: done
1.8 moko 17819:
1.11 moko 17820: # Required to use basename.
17821: if expr a : '\(a\)' >/dev/null 2>&1; then
1.8 moko 17822: as_expr=expr
17823: else
17824: as_expr=false
17825: fi
17826:
1.11 moko 17827: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.8 moko 17828: as_basename=basename
17829: else
17830: as_basename=false
17831: fi
17832:
17833:
1.11 moko 17834: # Name of the executable.
17835: as_me=`$as_basename "$0" ||
1.8 moko 17836: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17837: X"$0" : 'X\(//\)$' \| \
1.11 moko 17838: X"$0" : 'X\(/\)$' \| \
17839: . : '\(.\)' 2>/dev/null ||
17840: echo X/"$0" |
17841: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17842: /^X\/\(\/\/\)$/{ s//\1/; q; }
17843: /^X\/\(\/\).*/{ s//\1/; q; }
17844: s/.*/./; q'`
17845:
1.8 moko 17846:
1.11 moko 17847: # PATH needs CR, and LINENO needs CR and PATH.
1.8 moko 17848: # Avoid depending upon Character Ranges.
17849: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17850: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17851: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17852: as_cr_digits='0123456789'
17853: as_cr_alnum=$as_cr_Letters$as_cr_digits
17854:
1.11 moko 17855: # The user is always right.
17856: if test "${PATH_SEPARATOR+set}" != set; then
17857: echo "#! /bin/sh" >conf$$.sh
17858: echo "exit 0" >>conf$$.sh
17859: chmod +x conf$$.sh
17860: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17861: PATH_SEPARATOR=';'
17862: else
17863: PATH_SEPARATOR=:
17864: fi
17865: rm -f conf$$.sh
17866: fi
17867:
17868:
17869: as_lineno_1=$LINENO
17870: as_lineno_2=$LINENO
17871: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17872: test "x$as_lineno_1" != "x$as_lineno_2" &&
17873: test "x$as_lineno_3" = "x$as_lineno_2" || {
17874: # Find who we are. Look in the path if we contain no path at all
17875: # relative or not.
17876: case $0 in
17877: *[\\/]* ) as_myself=$0 ;;
17878: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17879: for as_dir in $PATH
17880: do
17881: IFS=$as_save_IFS
17882: test -z "$as_dir" && as_dir=.
17883: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17884: done
17885:
17886: ;;
17887: esac
17888: # We did not find ourselves, most probably we were run as `sh COMMAND'
17889: # in which case we are not to be found in the path.
17890: if test "x$as_myself" = x; then
17891: as_myself=$0
17892: fi
17893: if test ! -f "$as_myself"; then
17894: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17895: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17896: { (exit 1); exit 1; }; }
17897: fi
17898: case $CONFIG_SHELL in
17899: '')
17900: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17901: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17902: do
17903: IFS=$as_save_IFS
17904: test -z "$as_dir" && as_dir=.
17905: for as_base in sh bash ksh sh5; do
17906: case $as_dir in
17907: /*)
17908: if ("$as_dir/$as_base" -c '
17909: as_lineno_1=$LINENO
17910: as_lineno_2=$LINENO
17911: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17912: test "x$as_lineno_1" != "x$as_lineno_2" &&
17913: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17914: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17915: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17916: CONFIG_SHELL=$as_dir/$as_base
17917: export CONFIG_SHELL
17918: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17919: fi;;
17920: esac
17921: done
17922: done
17923: ;;
17924: esac
17925:
17926: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17927: # uniformly replaced by the line number. The first 'sed' inserts a
17928: # line-number line before each line; the second 'sed' does the real
17929: # work. The second script uses 'N' to pair each line-number line
17930: # with the numbered line, and appends trailing '-' during
17931: # substitution so that $LINENO is not a special case at line end.
17932: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17933: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17934: sed '=' <$as_myself |
17935: sed '
17936: N
17937: s,$,-,
17938: : loop
17939: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17940: t loop
17941: s,-$,,
17942: s,^['$as_cr_digits']*\n,,
17943: ' >$as_me.lineno &&
17944: chmod +x $as_me.lineno ||
17945: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17946: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17947: { (exit 1); exit 1; }; }
17948:
17949: # Don't try to exec as it changes $[0], causing all sort of problems
17950: # (the dirname of $[0] is not the place where we might find the
17951: # original and so on. Autoconf is especially sensible to this).
17952: . ./$as_me.lineno
17953: # Exit status is that of the last command.
17954: exit
17955: }
17956:
17957:
17958: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17959: *c*,-n*) ECHO_N= ECHO_C='
17960: ' ECHO_T=' ' ;;
17961: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17962: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.8 moko 17963: esac
17964:
1.11 moko 17965: if expr a : '\(a\)' >/dev/null 2>&1; then
17966: as_expr=expr
1.8 moko 17967: else
1.11 moko 17968: as_expr=false
1.8 moko 17969: fi
1.11 moko 17970:
17971: rm -f conf$$ conf$$.exe conf$$.file
17972: echo >conf$$.file
17973: if ln -s conf$$.file conf$$ 2>/dev/null; then
17974: # We could just check for DJGPP; but this test a) works b) is more generic
17975: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17976: if test -f conf$$.exe; then
17977: # Don't use ln at all; we don't have any links
17978: as_ln_s='cp -p'
17979: else
1.10 moko 17980: as_ln_s='ln -s'
1.8 moko 17981: fi
1.11 moko 17982: elif ln conf$$.file conf$$ 2>/dev/null; then
17983: as_ln_s=ln
1.8 moko 17984: else
17985: as_ln_s='cp -p'
17986: fi
1.11 moko 17987: rm -f conf$$ conf$$.exe conf$$.file
1.8 moko 17988:
17989: if mkdir -p . 2>/dev/null; then
1.11 moko 17990: as_mkdir_p=:
1.8 moko 17991: else
17992: test -d ./-p && rmdir ./-p
17993: as_mkdir_p=false
17994: fi
17995:
1.11 moko 17996: as_executable_p="test -f"
1.8 moko 17997:
17998: # Sed expression to map a string onto a valid CPP name.
17999: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18000:
18001: # Sed expression to map a string onto a valid variable name.
18002: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18003:
18004:
1.11 moko 18005: # IFS
18006: # We need space, tab and new line, in precisely that order.
18007: as_nl='
18008: '
18009: IFS=" $as_nl"
18010:
18011: # CDPATH.
18012: $as_unset CDPATH
18013:
1.8 moko 18014: exec 6>&1
18015:
1.11 moko 18016: # Open the log real soon, to keep \$[0] and so on meaningful, and to
1.8 moko 18017: # report actual input values of CONFIG_FILES etc. instead of their
1.11 moko 18018: # values after options handling. Logging --version etc. is OK.
18019: exec 5>>config.log
18020: {
18021: echo
18022: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18023: ## Running $as_me. ##
18024: _ASBOX
18025: } >&5
18026: cat >&5 <<_CSEOF
18027:
1.13 moko 18028: This file was extended by parser3sqlite.C $as_me 10.2, which was
1.11 moko 18029: generated by GNU Autoconf 2.59. Invocation command line was
1.8 moko 18030:
18031: CONFIG_FILES = $CONFIG_FILES
18032: CONFIG_HEADERS = $CONFIG_HEADERS
18033: CONFIG_LINKS = $CONFIG_LINKS
18034: CONFIG_COMMANDS = $CONFIG_COMMANDS
18035: $ $0 $@
18036:
1.11 moko 18037: _CSEOF
18038: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18039: echo >&5
1.8 moko 18040: _ACEOF
18041:
1.11 moko 18042: # Files that config.status was made for.
18043: if test -n "$ac_config_files"; then
18044: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18045: fi
1.8 moko 18046:
1.11 moko 18047: if test -n "$ac_config_headers"; then
18048: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18049: fi
1.8 moko 18050:
1.11 moko 18051: if test -n "$ac_config_links"; then
18052: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18053: fi
1.8 moko 18054:
1.11 moko 18055: if test -n "$ac_config_commands"; then
18056: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18057: fi
1.8 moko 18058:
1.11 moko 18059: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18060:
18061: ac_cs_usage="\
1.11 moko 18062: \`$as_me' instantiates files from templates according to the
18063: current configuration.
1.8 moko 18064:
1.11 moko 18065: Usage: $0 [OPTIONS] [FILE]...
1.8 moko 18066:
18067: -h, --help print this help, then exit
1.11 moko 18068: -V, --version print version number, then exit
18069: -q, --quiet do not print progress messages
1.8 moko 18070: -d, --debug don't remove temporary files
18071: --recheck update $as_me by reconfiguring in the same conditions
1.11 moko 18072: --file=FILE[:TEMPLATE]
18073: instantiate the configuration file FILE
18074: --header=FILE[:TEMPLATE]
18075: instantiate the configuration header FILE
1.8 moko 18076:
18077: Configuration files:
18078: $config_files
18079:
18080: Configuration headers:
18081: $config_headers
18082:
18083: Configuration commands:
18084: $config_commands
18085:
1.11 moko 18086: Report bugs to <bug-autoconf@gnu.org>."
18087: _ACEOF
1.10 moko 18088:
1.11 moko 18089: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18090: ac_cs_version="\\
1.13 moko 18091: parser3sqlite.C config.status 10.2
1.11 moko 18092: configured by $0, generated by GNU Autoconf 2.59,
18093: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.8 moko 18094:
1.11 moko 18095: Copyright (C) 2003 Free Software Foundation, Inc.
1.8 moko 18096: This config.status script is free software; the Free Software Foundation
18097: gives unlimited permission to copy, distribute and modify it."
1.11 moko 18098: srcdir=$srcdir
18099: INSTALL="$INSTALL"
1.8 moko 18100: _ACEOF
18101:
1.11 moko 18102: cat >>$CONFIG_STATUS <<\_ACEOF
18103: # If no file are specified by the user, then we need to provide default
18104: # value. By we need to know if files were specified by the user.
1.8 moko 18105: ac_need_defaults=:
18106: while test $# != 0
18107: do
18108: case $1 in
1.11 moko 18109: --*=*)
18110: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18111: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.8 moko 18112: ac_shift=:
18113: ;;
1.11 moko 18114: -*)
1.8 moko 18115: ac_option=$1
18116: ac_optarg=$2
18117: ac_shift=shift
18118: ;;
1.11 moko 18119: *) # This is not an option, so the user has probably given explicit
18120: # arguments.
18121: ac_option=$1
18122: ac_need_defaults=false;;
1.8 moko 18123: esac
18124:
18125: case $ac_option in
18126: # Handling of the options.
1.11 moko 18127: _ACEOF
18128: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18129: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18130: ac_cs_recheck=: ;;
1.11 moko 18131: --version | --vers* | -V )
18132: echo "$ac_cs_version"; exit 0 ;;
18133: --he | --h)
18134: # Conflict between --help and --header
18135: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18136: Try \`$0 --help' for more information." >&5
18137: echo "$as_me: error: ambiguous option: $1
18138: Try \`$0 --help' for more information." >&2;}
18139: { (exit 1); exit 1; }; };;
18140: --help | --hel | -h )
18141: echo "$ac_cs_usage"; exit 0 ;;
18142: --debug | --d* | -d )
1.8 moko 18143: debug=: ;;
18144: --file | --fil | --fi | --f )
18145: $ac_shift
1.11 moko 18146: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.8 moko 18147: ac_need_defaults=false;;
18148: --header | --heade | --head | --hea )
18149: $ac_shift
1.11 moko 18150: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.8 moko 18151: ac_need_defaults=false;;
18152: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18153: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18154: ac_cs_silent=: ;;
18155:
18156: # This is an error.
1.11 moko 18157: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18158: Try \`$0 --help' for more information." >&5
18159: echo "$as_me: error: unrecognized option: $1
18160: Try \`$0 --help' for more information." >&2;}
18161: { (exit 1); exit 1; }; } ;;
1.8 moko 18162:
1.11 moko 18163: *) ac_config_targets="$ac_config_targets $1" ;;
1.8 moko 18164:
18165: esac
18166: shift
18167: done
18168:
18169: ac_configure_extra_args=
18170:
18171: if $ac_cs_silent; then
18172: exec 6>/dev/null
18173: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 moko 18174: fi
18175:
18176: _ACEOF
1.11 moko 18177: cat >>$CONFIG_STATUS <<_ACEOF
1.10 moko 18178: if \$ac_cs_recheck; then
1.11 moko 18179: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18180: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.10 moko 18181: fi
18182:
18183: _ACEOF
1.11 moko 18184:
18185: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18186: #
1.11 moko 18187: # INIT-COMMANDS section.
1.8 moko 18188: #
1.11 moko 18189:
1.8 moko 18190: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18191:
18192:
18193: # The HP-UX ksh and POSIX shell print the target directory to stdout
18194: # if CDPATH is set.
18195: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18196:
18197: sed_quote_subst='$sed_quote_subst'
18198: double_quote_subst='$double_quote_subst'
18199: delay_variable_subst='$delay_variable_subst'
18200: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18201: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.13 moko 18202: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18203: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18204: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.8 moko 18205: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18206: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18207: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18208: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18209: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18210: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18211: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18212: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18213: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18214: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18215: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18216: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18217: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18218: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18219: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18220: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18221: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18222: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18223: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18224: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18225: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18226: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18227: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18228: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18229: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18230: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18231: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18232: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18233: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18234: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18235: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18236: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18237: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18238: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18239: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18240: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18241: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18242: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18243: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18244: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18245: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18246: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18247: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18248: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18249: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18250: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18251: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18252: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18253: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18254: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18255: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18256: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18257: 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"`'
18258: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18259: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18260: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18261: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18262: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18263: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18264: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18265: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18266: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18267: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18268: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18269: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18270: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18271: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18272: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18273: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18274: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18275: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18276: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18277: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18278: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18279: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18280: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18281: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18282: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18283: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18284: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18285: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18286: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18287: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18288: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18289: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18290: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18291: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18292: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18293: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18294: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18295: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18296: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18297: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18298: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18299: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18300: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18301: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18302: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18303: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18304: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18305: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18306: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18307: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18308: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18309: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18310: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18311: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18312: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18313: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18314: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18315: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18316: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18317: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18318: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18319: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18320: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18321: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18322: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18323: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18324: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18325: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18326: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18327: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18328: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18329: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18330: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18331: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18332: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18333: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18334: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18335: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18336: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18337: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18338: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18339: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18340: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18341: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18342: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18343: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18344: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18345: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18346: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18347: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18348: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18349: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18350: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18351: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18352: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18353: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18354: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18355: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18356: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18357: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18358: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18359: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18360: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18361: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18362: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18363: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18364: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18365: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18366: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18367: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18368: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18369: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18370: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18371: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18372: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18373: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18374: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18375: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18376: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18377: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18378: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18379: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18380: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18381: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18382: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18383: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18384: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18385:
18386: LTCC='$LTCC'
18387: LTCFLAGS='$LTCFLAGS'
18388: compiler='$compiler_DEFAULT'
18389:
18390: # A function that is used when there is no print builtin or printf.
18391: func_fallback_echo ()
18392: {
18393: eval 'cat <<_LTECHO_EOF
18394: \$1
18395: _LTECHO_EOF'
18396: }
18397:
18398: # Quote evaled strings.
1.13 moko 18399: for var in AS \
18400: DLLTOOL \
18401: OBJDUMP \
18402: SHELL \
1.8 moko 18403: ECHO \
18404: PATH_SEPARATOR \
18405: SED \
18406: GREP \
18407: EGREP \
18408: FGREP \
18409: LD \
18410: NM \
18411: LN_S \
18412: lt_SP2NL \
18413: lt_NL2SP \
18414: reload_flag \
18415: deplibs_check_method \
18416: file_magic_cmd \
18417: file_magic_glob \
18418: want_nocaseglob \
18419: sharedlib_from_linklib_cmd \
18420: AR \
18421: AR_FLAGS \
18422: archiver_list_spec \
18423: STRIP \
18424: RANLIB \
18425: CC \
18426: CFLAGS \
18427: compiler \
18428: lt_cv_sys_global_symbol_pipe \
18429: lt_cv_sys_global_symbol_to_cdecl \
18430: lt_cv_sys_global_symbol_to_c_name_address \
18431: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18432: nm_file_list_spec \
18433: lt_prog_compiler_no_builtin_flag \
18434: lt_prog_compiler_pic \
18435: lt_prog_compiler_wl \
18436: lt_prog_compiler_static \
18437: lt_cv_prog_compiler_c_o \
18438: need_locks \
18439: MANIFEST_TOOL \
18440: DSYMUTIL \
18441: NMEDIT \
18442: LIPO \
18443: OTOOL \
18444: OTOOL64 \
18445: shrext_cmds \
18446: export_dynamic_flag_spec \
18447: whole_archive_flag_spec \
18448: compiler_needs_object \
18449: with_gnu_ld \
18450: allow_undefined_flag \
18451: no_undefined_flag \
18452: hardcode_libdir_flag_spec \
18453: hardcode_libdir_separator \
18454: exclude_expsyms \
18455: include_expsyms \
18456: file_list_spec \
18457: variables_saved_for_relink \
18458: libname_spec \
18459: library_names_spec \
18460: soname_spec \
18461: install_override_mode \
18462: finish_eval \
18463: old_striplib \
18464: striplib \
18465: compiler_lib_search_dirs \
18466: predep_objects \
18467: postdep_objects \
18468: predeps \
18469: postdeps \
18470: compiler_lib_search_path \
18471: LD_CXX \
18472: reload_flag_CXX \
18473: compiler_CXX \
18474: lt_prog_compiler_no_builtin_flag_CXX \
18475: lt_prog_compiler_pic_CXX \
18476: lt_prog_compiler_wl_CXX \
18477: lt_prog_compiler_static_CXX \
18478: lt_cv_prog_compiler_c_o_CXX \
18479: export_dynamic_flag_spec_CXX \
18480: whole_archive_flag_spec_CXX \
18481: compiler_needs_object_CXX \
18482: with_gnu_ld_CXX \
18483: allow_undefined_flag_CXX \
18484: no_undefined_flag_CXX \
18485: hardcode_libdir_flag_spec_CXX \
18486: hardcode_libdir_separator_CXX \
18487: exclude_expsyms_CXX \
18488: include_expsyms_CXX \
18489: file_list_spec_CXX \
18490: compiler_lib_search_dirs_CXX \
18491: predep_objects_CXX \
18492: postdep_objects_CXX \
18493: predeps_CXX \
18494: postdeps_CXX \
18495: compiler_lib_search_path_CXX; do
18496: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18497: *[\\\\\\\`\\"\\\$]*)
18498: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18499: ;;
18500: *)
18501: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18502: ;;
18503: esac
18504: done
18505:
18506: # Double-quote double-evaled strings.
18507: for var in reload_cmds \
18508: old_postinstall_cmds \
18509: old_postuninstall_cmds \
18510: old_archive_cmds \
18511: extract_expsyms_cmds \
18512: old_archive_from_new_cmds \
18513: old_archive_from_expsyms_cmds \
18514: archive_cmds \
18515: archive_expsym_cmds \
18516: module_cmds \
18517: module_expsym_cmds \
18518: export_symbols_cmds \
18519: prelink_cmds \
18520: postlink_cmds \
18521: postinstall_cmds \
18522: postuninstall_cmds \
18523: finish_cmds \
18524: sys_lib_search_path_spec \
18525: sys_lib_dlsearch_path_spec \
18526: reload_cmds_CXX \
18527: old_archive_cmds_CXX \
18528: old_archive_from_new_cmds_CXX \
18529: old_archive_from_expsyms_cmds_CXX \
18530: archive_cmds_CXX \
18531: archive_expsym_cmds_CXX \
18532: module_cmds_CXX \
18533: module_expsym_cmds_CXX \
18534: export_symbols_cmds_CXX \
18535: prelink_cmds_CXX \
18536: postlink_cmds_CXX; do
18537: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18538: *[\\\\\\\`\\"\\\$]*)
18539: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18540: ;;
18541: *)
18542: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18543: ;;
18544: esac
18545: done
18546:
18547: ac_aux_dir='$ac_aux_dir'
18548: xsi_shell='$xsi_shell'
18549: lt_shell_append='$lt_shell_append'
18550:
18551: # See if we are running on zsh, and set the options which allow our
18552: # commands through without removal of \ escapes INIT.
18553: if test -n "\${ZSH_VERSION+set}" ; then
18554: setopt NO_GLOB_SUBST
18555: fi
18556:
18557:
18558: PACKAGE='$PACKAGE'
18559: VERSION='$VERSION'
18560: TIMESTAMP='$TIMESTAMP'
18561: RM='$RM'
18562: ofile='$ofile'
18563:
18564:
18565:
18566:
18567:
18568:
18569: _ACEOF
18570:
18571:
1.11 moko 18572:
18573: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18574: for ac_config_target in $ac_config_targets
18575: do
1.11 moko 18576: case "$ac_config_target" in
18577: # Handling of arguments.
18578: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18579: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18580: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18581: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18582: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18583: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18584: { (exit 1); exit 1; }; };;
1.8 moko 18585: esac
18586: done
18587:
18588: # If the user did not use the arguments to specify the items to instantiate,
18589: # then the envvar interface is used. Set only those that are not.
18590: # We use the long form for the default assignment because of an extremely
18591: # bizarre bug on SunOS 4.1.3.
18592: if $ac_need_defaults; then
18593: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18594: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18595: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18596: fi
18597:
18598: # Have a temporary directory for convenience. Make it in the build tree
1.11 moko 18599: # simply because there is no reason to put it here, and in addition,
1.8 moko 18600: # creating and moving files from /tmp can sometimes cause problems.
1.11 moko 18601: # Create a temporary directory, and hook for its removal unless debugging.
1.8 moko 18602: $debug ||
18603: {
1.11 moko 18604: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18605: trap '{ (exit 1); exit 1; }' 1 2 13 15
1.8 moko 18606: }
1.11 moko 18607:
1.8 moko 18608: # Create a (secure) tmp directory for tmp files.
18609:
18610: {
1.11 moko 18611: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.8 moko 18612: test -n "$tmp" && test -d "$tmp"
18613: } ||
18614: {
1.11 moko 18615: tmp=./confstat$$-$RANDOM
18616: (umask 077 && mkdir $tmp)
18617: } ||
1.8 moko 18618: {
1.11 moko 18619: echo "$me: cannot create a temporary directory in ." >&2
18620: { (exit 1); exit 1; }
1.8 moko 18621: }
18622:
18623: _ACEOF
18624:
1.11 moko 18625: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18626:
1.11 moko 18627: #
18628: # CONFIG_FILES section.
18629: #
1.8 moko 18630:
1.11 moko 18631: # No need to generate the scripts if there are no CONFIG_FILES.
18632: # This happens for instance when ./config.status config.h
18633: if test -n "\$CONFIG_FILES"; then
18634: # Protect against being on the right side of a sed subst in config.status.
18635: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18636: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18637: s,@SHELL@,$SHELL,;t t
18638: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18639: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18640: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18641: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18642: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18643: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18644: s,@exec_prefix@,$exec_prefix,;t t
18645: s,@prefix@,$prefix,;t t
18646: s,@program_transform_name@,$program_transform_name,;t t
18647: s,@bindir@,$bindir,;t t
18648: s,@sbindir@,$sbindir,;t t
18649: s,@libexecdir@,$libexecdir,;t t
18650: s,@datadir@,$datadir,;t t
18651: s,@sysconfdir@,$sysconfdir,;t t
18652: s,@sharedstatedir@,$sharedstatedir,;t t
18653: s,@localstatedir@,$localstatedir,;t t
18654: s,@libdir@,$libdir,;t t
18655: s,@includedir@,$includedir,;t t
18656: s,@oldincludedir@,$oldincludedir,;t t
18657: s,@infodir@,$infodir,;t t
18658: s,@mandir@,$mandir,;t t
18659: s,@build_alias@,$build_alias,;t t
18660: s,@host_alias@,$host_alias,;t t
18661: s,@target_alias@,$target_alias,;t t
18662: s,@DEFS@,$DEFS,;t t
18663: s,@ECHO_C@,$ECHO_C,;t t
18664: s,@ECHO_N@,$ECHO_N,;t t
18665: s,@ECHO_T@,$ECHO_T,;t t
18666: s,@LIBS@,$LIBS,;t t
18667: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18668: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18669: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18670: s,@CYGPATH_W@,$CYGPATH_W,;t t
18671: s,@PACKAGE@,$PACKAGE,;t t
18672: s,@VERSION@,$VERSION,;t t
18673: s,@ACLOCAL@,$ACLOCAL,;t t
18674: s,@AUTOCONF@,$AUTOCONF,;t t
18675: s,@AUTOMAKE@,$AUTOMAKE,;t t
18676: s,@AUTOHEADER@,$AUTOHEADER,;t t
18677: s,@MAKEINFO@,$MAKEINFO,;t t
18678: s,@install_sh@,$install_sh,;t t
18679: s,@STRIP@,$STRIP,;t t
18680: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18681: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18682: s,@mkdir_p@,$mkdir_p,;t t
18683: s,@AWK@,$AWK,;t t
18684: s,@SET_MAKE@,$SET_MAKE,;t t
18685: s,@am__leading_dot@,$am__leading_dot,;t t
18686: s,@AMTAR@,$AMTAR,;t t
18687: s,@am__tar@,$am__tar,;t t
18688: s,@am__untar@,$am__untar,;t t
18689: s,@SQLITE_INC@,$SQLITE_INC,;t t
18690: s,@CXX@,$CXX,;t t
18691: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.17 ! moko 18692: s,@LDFLAGS@,$LDFLAGS,;t t
1.11 moko 18693: s,@CPPFLAGS@,$CPPFLAGS,;t t
18694: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18695: s,@EXEEXT@,$EXEEXT,;t t
18696: s,@OBJEXT@,$OBJEXT,;t t
18697: s,@DEPDIR@,$DEPDIR,;t t
18698: s,@am__include@,$am__include,;t t
18699: s,@am__quote@,$am__quote,;t t
18700: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18701: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18702: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18703: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18704: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18705: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18706: s,@CC@,$CC,;t t
18707: s,@CFLAGS@,$CFLAGS,;t t
18708: s,@ac_ct_CC@,$ac_ct_CC,;t t
18709: s,@CCDEPMODE@,$CCDEPMODE,;t t
18710: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18711: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.13 moko 18712: s,@AS@,$AS,;t t
18713: s,@ac_ct_AS@,$ac_ct_AS,;t t
18714: s,@DLLTOOL@,$DLLTOOL,;t t
18715: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18716: s,@OBJDUMP@,$OBJDUMP,;t t
18717: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.11 moko 18718: s,@LIBTOOL@,$LIBTOOL,;t t
18719: s,@build@,$build,;t t
18720: s,@build_cpu@,$build_cpu,;t t
18721: s,@build_vendor@,$build_vendor,;t t
18722: s,@build_os@,$build_os,;t t
18723: s,@host@,$host,;t t
18724: s,@host_cpu@,$host_cpu,;t t
18725: s,@host_vendor@,$host_vendor,;t t
18726: s,@host_os@,$host_os,;t t
18727: s,@SED@,$SED,;t t
18728: s,@EGREP@,$EGREP,;t t
18729: s,@FGREP@,$FGREP,;t t
18730: s,@GREP@,$GREP,;t t
18731: s,@LD@,$LD,;t t
18732: s,@DUMPBIN@,$DUMPBIN,;t t
18733: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18734: s,@NM@,$NM,;t t
18735: s,@LN_S@,$LN_S,;t t
18736: s,@AR@,$AR,;t t
18737: s,@ac_ct_AR@,$ac_ct_AR,;t t
18738: s,@RANLIB@,$RANLIB,;t t
18739: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18740: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18741: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18742: s,@DSYMUTIL@,$DSYMUTIL,;t t
18743: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18744: s,@NMEDIT@,$NMEDIT,;t t
18745: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18746: s,@LIPO@,$LIPO,;t t
18747: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18748: s,@OTOOL@,$OTOOL,;t t
18749: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18750: s,@OTOOL64@,$OTOOL64,;t t
18751: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18752: s,@CPP@,$CPP,;t t
18753: s,@CXXCPP@,$CXXCPP,;t t
18754: s,@LIBLTDL@,$LIBLTDL,;t t
18755: s,@LTDLDEPS@,$LTDLDEPS,;t t
18756: s,@LTDLINCL@,$LTDLINCL,;t t
18757: s,@INCLTDL@,$INCLTDL,;t t
18758: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18759: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18760: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18761: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18762: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.13 moko 18763: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.11 moko 18764: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18765: s,@ARGZ_H@,$ARGZ_H,;t t
18766: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18767: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18768: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18769: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18770: s,@subdirs@,$subdirs,;t t
18771: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18772: s,@LTDLOPEN@,$LTDLOPEN,;t t
18773: s,@LIBOBJS@,$LIBOBJS,;t t
18774: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18775: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18776: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18777: CEOF
18778:
18779: _ACEOF
18780:
18781: cat >>$CONFIG_STATUS <<\_ACEOF
18782: # Split the substitutions into bite-sized pieces for seds with
18783: # small command number limits, like on Digital OSF/1 and HP-UX.
18784: ac_max_sed_lines=48
18785: ac_sed_frag=1 # Number of current file.
18786: ac_beg=1 # First line for current file.
18787: ac_end=$ac_max_sed_lines # Line after last line for current file.
18788: ac_more_lines=:
18789: ac_sed_cmds=
18790: while $ac_more_lines; do
18791: if test $ac_beg -gt 1; then
18792: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18793: else
18794: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18795: fi
18796: if test ! -s $tmp/subs.frag; then
18797: ac_more_lines=false
18798: else
18799: # The purpose of the label and of the branching condition is to
18800: # speed up the sed processing (if there are no `@' at all, there
18801: # is no need to browse any of the substitutions).
18802: # These are the two extra sed commands mentioned above.
18803: (echo ':t
18804: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18805: if test -z "$ac_sed_cmds"; then
18806: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18807: else
18808: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18809: fi
18810: ac_sed_frag=`expr $ac_sed_frag + 1`
18811: ac_beg=$ac_end
18812: ac_end=`expr $ac_end + $ac_max_sed_lines`
18813: fi
18814: done
18815: if test -z "$ac_sed_cmds"; then
18816: ac_sed_cmds=cat
1.8 moko 18817: fi
1.11 moko 18818: fi # test -n "$CONFIG_FILES"
1.8 moko 18819:
18820: _ACEOF
1.11 moko 18821: cat >>$CONFIG_STATUS <<\_ACEOF
18822: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18823: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18824: case $ac_file in
18825: - | *:- | *:-:* ) # input from stdin
18826: cat >$tmp/stdin
18827: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18828: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18829: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18830: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18831: * ) ac_file_in=$ac_file.in ;;
1.8 moko 18832: esac
18833:
1.11 moko 18834: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18835: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1.8 moko 18836: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837: X"$ac_file" : 'X\(//\)[^/]' \| \
18838: X"$ac_file" : 'X\(//\)$' \| \
1.11 moko 18839: X"$ac_file" : 'X\(/\)' \| \
18840: . : '\(.\)' 2>/dev/null ||
18841: echo X"$ac_file" |
18842: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18843: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18844: /^X\(\/\/\)$/{ s//\1/; q; }
18845: /^X\(\/\).*/{ s//\1/; q; }
18846: s/.*/./; q'`
18847: { if $as_mkdir_p; then
18848: mkdir -p "$ac_dir"
18849: else
18850: as_dir="$ac_dir"
18851: as_dirs=
18852: while test ! -d "$as_dir"; do
18853: as_dirs="$as_dir $as_dirs"
18854: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18855: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18856: X"$as_dir" : 'X\(//\)[^/]' \| \
18857: X"$as_dir" : 'X\(//\)$' \| \
18858: X"$as_dir" : 'X\(/\)' \| \
18859: . : '\(.\)' 2>/dev/null ||
18860: echo X"$as_dir" |
18861: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18862: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18863: /^X\(\/\/\)$/{ s//\1/; q; }
18864: /^X\(\/\).*/{ s//\1/; q; }
18865: s/.*/./; q'`
18866: done
18867: test ! -n "$as_dirs" || mkdir $as_dirs
18868: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18869: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18870: { (exit 1); exit 1; }; }; }
18871:
1.8 moko 18872: ac_builddir=.
18873:
1.11 moko 18874: if test "$ac_dir" != .; then
18875: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18876: # A "../" for each directory in $ac_dir_suffix.
18877: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18878: else
18879: ac_dir_suffix= ac_top_builddir=
18880: fi
1.8 moko 18881:
18882: case $srcdir in
1.11 moko 18883: .) # No --srcdir option. We are building in place.
1.8 moko 18884: ac_srcdir=.
1.11 moko 18885: if test -z "$ac_top_builddir"; then
18886: ac_top_srcdir=.
18887: else
18888: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18889: fi ;;
18890: [\\/]* | ?:[\\/]* ) # Absolute path.
1.8 moko 18891: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 18892: ac_top_srcdir=$srcdir ;;
18893: *) # Relative path.
18894: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18895: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.8 moko 18896: esac
18897:
1.11 moko 18898: # Do not use `cd foo && pwd` to compute absolute paths, because
18899: # the directories may not exist.
18900: case `pwd` in
18901: .) ac_abs_builddir="$ac_dir";;
18902: *)
18903: case "$ac_dir" in
18904: .) ac_abs_builddir=`pwd`;;
18905: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18906: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18907: esac;;
18908: esac
18909: case $ac_abs_builddir in
18910: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18911: *)
18912: case ${ac_top_builddir}. in
18913: .) ac_abs_top_builddir=$ac_abs_builddir;;
18914: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18915: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18916: esac;;
18917: esac
18918: case $ac_abs_builddir in
18919: .) ac_abs_srcdir=$ac_srcdir;;
18920: *)
18921: case $ac_srcdir in
18922: .) ac_abs_srcdir=$ac_abs_builddir;;
18923: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18924: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18925: esac;;
18926: esac
18927: case $ac_abs_builddir in
18928: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18929: *)
18930: case $ac_top_srcdir in
18931: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18932: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18933: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18934: esac;;
18935: esac
1.8 moko 18936:
18937:
18938: case $INSTALL in
18939: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.11 moko 18940: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.8 moko 18941: esac
18942:
1.11 moko 18943: if test x"$ac_file" != x-; then
18944: { echo "$as_me:$LINENO: creating $ac_file" >&5
18945: echo "$as_me: creating $ac_file" >&6;}
18946: rm -f "$ac_file"
18947: fi
18948: # Let's still pretend it is `configure' which instantiates (i.e., don't
18949: # use $as_me), people would be surprised to read:
18950: # /* config.h. Generated by config.status. */
18951: if test x"$ac_file" = x-; then
18952: configure_input=
18953: else
18954: configure_input="$ac_file. "
18955: fi
18956: configure_input=$configure_input"Generated from `echo $ac_file_in |
18957: sed 's,.*/,,'` by configure."
18958:
18959: # First look for the input files in the build tree, otherwise in the
18960: # src tree.
18961: ac_file_inputs=`IFS=:
18962: for f in $ac_file_in; do
18963: case $f in
18964: -) echo $tmp/stdin ;;
18965: [\\/$]*)
18966: # Absolute (can't be DOS-style, as IFS=:)
18967: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18968: echo "$as_me: error: cannot find input file: $f" >&2;}
18969: { (exit 1); exit 1; }; }
18970: echo "$f";;
18971: *) # Relative
18972: if test -f "$f"; then
18973: # Build tree
18974: echo "$f"
18975: elif test -f "$srcdir/$f"; then
18976: # Source tree
18977: echo "$srcdir/$f"
18978: else
18979: # /dev/null tree
18980: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18981: echo "$as_me: error: cannot find input file: $f" >&2;}
18982: { (exit 1); exit 1; }; }
18983: fi;;
18984: esac
18985: done` || { (exit 1); exit 1; }
1.10 moko 18986: _ACEOF
1.11 moko 18987: cat >>$CONFIG_STATUS <<_ACEOF
18988: sed "$ac_vpsub
1.8 moko 18989: $extrasub
18990: _ACEOF
1.11 moko 18991: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18992: :t
18993: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.11 moko 18994: s,@configure_input@,$configure_input,;t t
18995: s,@srcdir@,$ac_srcdir,;t t
18996: s,@abs_srcdir@,$ac_abs_srcdir,;t t
18997: s,@top_srcdir@,$ac_top_srcdir,;t t
18998: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18999: s,@builddir@,$ac_builddir,;t t
19000: s,@abs_builddir@,$ac_abs_builddir,;t t
19001: s,@top_builddir@,$ac_top_builddir,;t t
19002: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19003: s,@INSTALL@,$ac_INSTALL,;t t
19004: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19005: rm -f $tmp/stdin
19006: if test x"$ac_file" != x-; then
19007: mv $tmp/out $ac_file
19008: else
19009: cat $tmp/out
19010: rm -f $tmp/out
19011: fi
19012:
19013: done
19014: _ACEOF
19015: cat >>$CONFIG_STATUS <<\_ACEOF
19016:
19017: #
19018: # CONFIG_HEADER section.
19019: #
19020:
19021: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19022: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19023: #
19024: # ac_d sets the value in "#define NAME VALUE" lines.
19025: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19026: ac_dB='[ ].*$,\1#\2'
19027: ac_dC=' '
19028: ac_dD=',;t'
19029: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19030: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19031: ac_uB='$,\1#\2define\3'
19032: ac_uC=' '
19033: ac_uD=',;t'
1.8 moko 19034:
1.11 moko 19035: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19036: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.8 moko 19037: case $ac_file in
1.11 moko 19038: - | *:- | *:-:* ) # input from stdin
19039: cat >$tmp/stdin
19040: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19041: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19042: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19043: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19044: * ) ac_file_in=$ac_file.in ;;
19045: esac
19046:
19047: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19048: echo "$as_me: creating $ac_file" >&6;}
19049:
19050: # First look for the input files in the build tree, otherwise in the
19051: # src tree.
19052: ac_file_inputs=`IFS=:
19053: for f in $ac_file_in; do
19054: case $f in
19055: -) echo $tmp/stdin ;;
19056: [\\/$]*)
19057: # Absolute (can't be DOS-style, as IFS=:)
19058: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19059: echo "$as_me: error: cannot find input file: $f" >&2;}
19060: { (exit 1); exit 1; }; }
19061: # Do quote $f, to prevent DOS paths from being IFS'd.
19062: echo "$f";;
19063: *) # Relative
19064: if test -f "$f"; then
19065: # Build tree
19066: echo "$f"
19067: elif test -f "$srcdir/$f"; then
19068: # Source tree
19069: echo "$srcdir/$f"
19070: else
19071: # /dev/null tree
19072: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19073: echo "$as_me: error: cannot find input file: $f" >&2;}
19074: { (exit 1); exit 1; }; }
19075: fi;;
19076: esac
19077: done` || { (exit 1); exit 1; }
19078: # Remove the trailing spaces.
19079: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19080:
19081: _ACEOF
19082:
19083: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19084: # `conftest.undefs', that substitutes the proper values into
19085: # config.h.in to produce config.h. The first handles `#define'
19086: # templates, and the second `#undef' templates.
19087: # And first: Protect against being on the right side of a sed subst in
19088: # config.status. Protect against being in an unquoted here document
19089: # in config.status.
19090: rm -f conftest.defines conftest.undefs
19091: # Using a here document instead of a string reduces the quoting nightmare.
19092: # Putting comments in sed scripts is not portable.
19093: #
19094: # `end' is used to avoid that the second main sed command (meant for
19095: # 0-ary CPP macros) applies to n-ary macro definitions.
19096: # See the Autoconf documentation for `clear'.
19097: cat >confdef2sed.sed <<\_ACEOF
19098: s/[\\&,]/\\&/g
19099: s,[\\$`],\\&,g
19100: t clear
19101: : clear
19102: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19103: t end
19104: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19105: : end
19106: _ACEOF
19107: # If some macros were called several times there might be several times
19108: # the same #defines, which is useless. Nevertheless, we may not want to
19109: # sort them, since we want the *last* AC-DEFINE to be honored.
19110: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19111: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19112: rm -f confdef2sed.sed
19113:
19114: # This sed command replaces #undef with comments. This is necessary, for
19115: # example, in the case of _POSIX_SOURCE, which is predefined and required
19116: # on some systems where configure will not decide to define it.
19117: cat >>conftest.undefs <<\_ACEOF
19118: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19119: _ACEOF
19120:
19121: # Break up conftest.defines because some shells have a limit on the size
19122: # of here documents, and old seds have small limits too (100 cmds).
19123: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19124: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19125: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19126: echo ' :' >>$CONFIG_STATUS
19127: rm -f conftest.tail
19128: while grep . conftest.defines >/dev/null
19129: do
19130: # Write a limited-size here document to $tmp/defines.sed.
19131: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19132: # Speed up: don't consider the non `#define' lines.
19133: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19134: # Work around the forget-to-reset-the-flag bug.
19135: echo 't clr' >>$CONFIG_STATUS
19136: echo ': clr' >>$CONFIG_STATUS
19137: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19138: echo 'CEOF
19139: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19140: rm -f $tmp/in
19141: mv $tmp/out $tmp/in
19142: ' >>$CONFIG_STATUS
19143: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19144: rm -f conftest.defines
19145: mv conftest.tail conftest.defines
19146: done
19147: rm -f conftest.defines
19148: echo ' fi # grep' >>$CONFIG_STATUS
19149: echo >>$CONFIG_STATUS
19150:
19151: # Break up conftest.undefs because some shells have a limit on the size
19152: # of here documents, and old seds have small limits too (100 cmds).
19153: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19154: rm -f conftest.tail
19155: while grep . conftest.undefs >/dev/null
19156: do
19157: # Write a limited-size here document to $tmp/undefs.sed.
19158: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19159: # Speed up: don't consider the non `#undef'
19160: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19161: # Work around the forget-to-reset-the-flag bug.
19162: echo 't clr' >>$CONFIG_STATUS
19163: echo ': clr' >>$CONFIG_STATUS
19164: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19165: echo 'CEOF
19166: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19167: rm -f $tmp/in
19168: mv $tmp/out $tmp/in
19169: ' >>$CONFIG_STATUS
19170: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19171: rm -f conftest.undefs
19172: mv conftest.tail conftest.undefs
19173: done
19174: rm -f conftest.undefs
19175:
19176: cat >>$CONFIG_STATUS <<\_ACEOF
19177: # Let's still pretend it is `configure' which instantiates (i.e., don't
19178: # use $as_me), people would be surprised to read:
19179: # /* config.h. Generated by config.status. */
19180: if test x"$ac_file" = x-; then
19181: echo "/* Generated by configure. */" >$tmp/config.h
19182: else
19183: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19184: fi
19185: cat $tmp/in >>$tmp/config.h
19186: rm -f $tmp/in
1.8 moko 19187: if test x"$ac_file" != x-; then
1.11 moko 19188: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19189: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19190: echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 19191: else
1.11 moko 19192: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19193: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19194: X"$ac_file" : 'X\(//\)[^/]' \| \
19195: X"$ac_file" : 'X\(//\)$' \| \
19196: X"$ac_file" : 'X\(/\)' \| \
19197: . : '\(.\)' 2>/dev/null ||
19198: echo X"$ac_file" |
19199: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19200: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19201: /^X\(\/\/\)$/{ s//\1/; q; }
19202: /^X\(\/\).*/{ s//\1/; q; }
19203: s/.*/./; q'`
19204: { if $as_mkdir_p; then
19205: mkdir -p "$ac_dir"
19206: else
19207: as_dir="$ac_dir"
19208: as_dirs=
19209: while test ! -d "$as_dir"; do
19210: as_dirs="$as_dir $as_dirs"
19211: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19212: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19213: X"$as_dir" : 'X\(//\)[^/]' \| \
19214: X"$as_dir" : 'X\(//\)$' \| \
19215: X"$as_dir" : 'X\(/\)' \| \
19216: . : '\(.\)' 2>/dev/null ||
19217: echo X"$as_dir" |
19218: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19219: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19220: /^X\(\/\/\)$/{ s//\1/; q; }
19221: /^X\(\/\).*/{ s//\1/; q; }
19222: s/.*/./; q'`
19223: done
19224: test ! -n "$as_dirs" || mkdir $as_dirs
19225: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19226: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19227: { (exit 1); exit 1; }; }; }
19228:
19229: rm -f $ac_file
19230: mv $tmp/config.h $ac_file
1.8 moko 19231: fi
19232: else
1.11 moko 19233: cat $tmp/config.h
19234: rm -f $tmp/config.h
1.8 moko 19235: fi
1.11 moko 19236: # Compute $ac_file's index in $config_headers.
1.8 moko 19237: _am_stamp_count=1
19238: for _am_header in $config_headers :; do
19239: case $_am_header in
1.11 moko 19240: $ac_file | $ac_file:* )
1.8 moko 19241: break ;;
19242: * )
19243: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19244: esac
19245: done
1.11 moko 19246: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19247: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19248: X$ac_file : 'X\(//\)[^/]' \| \
19249: X$ac_file : 'X\(//\)$' \| \
19250: X$ac_file : 'X\(/\)' \| \
19251: . : '\(.\)' 2>/dev/null ||
19252: echo X$ac_file |
19253: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19254: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19255: /^X\(\/\/\)$/{ s//\1/; q; }
19256: /^X\(\/\).*/{ s//\1/; q; }
19257: s/.*/./; q'`/stamp-h$_am_stamp_count
19258: done
19259: _ACEOF
19260: cat >>$CONFIG_STATUS <<\_ACEOF
19261:
19262: #
19263: # CONFIG_COMMANDS section.
19264: #
19265: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19266: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19267: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19268: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19269: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19270: X"$ac_dest" : 'X\(//\)[^/]' \| \
19271: X"$ac_dest" : 'X\(//\)$' \| \
19272: X"$ac_dest" : 'X\(/\)' \| \
19273: . : '\(.\)' 2>/dev/null ||
19274: echo X"$ac_dest" |
19275: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19276: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19277: /^X\(\/\/\)$/{ s//\1/; q; }
19278: /^X\(\/\).*/{ s//\1/; q; }
19279: s/.*/./; q'`
19280: { if $as_mkdir_p; then
19281: mkdir -p "$ac_dir"
19282: else
19283: as_dir="$ac_dir"
19284: as_dirs=
19285: while test ! -d "$as_dir"; do
19286: as_dirs="$as_dir $as_dirs"
19287: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19288: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19289: X"$as_dir" : 'X\(//\)[^/]' \| \
19290: X"$as_dir" : 'X\(//\)$' \| \
19291: X"$as_dir" : 'X\(/\)' \| \
19292: . : '\(.\)' 2>/dev/null ||
19293: echo X"$as_dir" |
19294: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19295: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19296: /^X\(\/\/\)$/{ s//\1/; q; }
19297: /^X\(\/\).*/{ s//\1/; q; }
19298: s/.*/./; q'`
19299: done
19300: test ! -n "$as_dirs" || mkdir $as_dirs
19301: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19302: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19303: { (exit 1); exit 1; }; }; }
19304:
19305: ac_builddir=.
19306:
19307: if test "$ac_dir" != .; then
19308: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19309: # A "../" for each directory in $ac_dir_suffix.
19310: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19311: else
19312: ac_dir_suffix= ac_top_builddir=
19313: fi
19314:
19315: case $srcdir in
19316: .) # No --srcdir option. We are building in place.
19317: ac_srcdir=.
19318: if test -z "$ac_top_builddir"; then
19319: ac_top_srcdir=.
19320: else
19321: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19322: fi ;;
19323: [\\/]* | ?:[\\/]* ) # Absolute path.
19324: ac_srcdir=$srcdir$ac_dir_suffix;
19325: ac_top_srcdir=$srcdir ;;
19326: *) # Relative path.
19327: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19328: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19329: esac
1.8 moko 19330:
1.11 moko 19331: # Do not use `cd foo && pwd` to compute absolute paths, because
19332: # the directories may not exist.
19333: case `pwd` in
19334: .) ac_abs_builddir="$ac_dir";;
19335: *)
19336: case "$ac_dir" in
19337: .) ac_abs_builddir=`pwd`;;
19338: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19339: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19340: esac;;
19341: esac
19342: case $ac_abs_builddir in
19343: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19344: *)
19345: case ${ac_top_builddir}. in
19346: .) ac_abs_top_builddir=$ac_abs_builddir;;
19347: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19348: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19349: esac;;
19350: esac
19351: case $ac_abs_builddir in
19352: .) ac_abs_srcdir=$ac_srcdir;;
19353: *)
19354: case $ac_srcdir in
19355: .) ac_abs_srcdir=$ac_abs_builddir;;
19356: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19357: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19358: esac;;
19359: esac
19360: case $ac_abs_builddir in
19361: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19362: *)
19363: case $ac_top_srcdir in
19364: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19365: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19366: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19367: esac;;
19368: esac
1.8 moko 19369:
19370:
1.11 moko 19371: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19372: echo "$as_me: executing $ac_dest commands" >&6;}
19373: case $ac_dest in
19374: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.8 moko 19375: # Strip MF so we end up with the name of the file.
19376: mf=`echo "$mf" | sed -e 's/:.*$//'`
19377: # Check whether this is an Automake generated Makefile or not.
19378: # We used to match only the files named `Makefile.in', but
19379: # some people rename them; so instead we look at the file content.
19380: # Grep'ing the first line is not enough: some people post-process
19381: # each Makefile.in and add a new line on top of each file to say so.
19382: # So let's grep whole file.
19383: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.11 moko 19384: dirpart=`(dirname "$mf") 2>/dev/null ||
1.8 moko 19385: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19386: X"$mf" : 'X\(//\)[^/]' \| \
19387: X"$mf" : 'X\(//\)$' \| \
1.11 moko 19388: X"$mf" : 'X\(/\)' \| \
19389: . : '\(.\)' 2>/dev/null ||
19390: echo X"$mf" |
19391: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19392: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19393: /^X\(\/\/\)$/{ s//\1/; q; }
19394: /^X\(\/\).*/{ s//\1/; q; }
19395: s/.*/./; q'`
1.8 moko 19396: else
19397: continue
19398: fi
19399: # Extract the definition of DEPDIR, am__include, and am__quote
19400: # from the Makefile without running `make'.
19401: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19402: test -z "$DEPDIR" && continue
19403: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19404: test -z "am__include" && continue
19405: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19406: # When using ansi2knr, U may be empty or an underscore; expand it
19407: U=`sed -n 's/^U = //p' < "$mf"`
19408: # Find all dependency output files, they are included files with
19409: # $(DEPDIR) in their names. We invoke sed twice because it is the
19410: # simplest approach to changing $(DEPDIR) to its actual value in the
19411: # expansion.
19412: for file in `sed -n "
19413: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19414: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19415: # Make sure the directory exists.
19416: test -f "$dirpart/$file" && continue
1.11 moko 19417: fdir=`(dirname "$file") 2>/dev/null ||
1.8 moko 19418: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19419: X"$file" : 'X\(//\)[^/]' \| \
19420: X"$file" : 'X\(//\)$' \| \
1.11 moko 19421: X"$file" : 'X\(/\)' \| \
19422: . : '\(.\)' 2>/dev/null ||
19423: echo X"$file" |
19424: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19425: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19426: /^X\(\/\/\)$/{ s//\1/; q; }
19427: /^X\(\/\).*/{ s//\1/; q; }
19428: s/.*/./; q'`
19429: { if $as_mkdir_p; then
19430: mkdir -p $dirpart/$fdir
19431: else
19432: as_dir=$dirpart/$fdir
19433: as_dirs=
19434: while test ! -d "$as_dir"; do
19435: as_dirs="$as_dir $as_dirs"
19436: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19437: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19438: X"$as_dir" : 'X\(//\)[^/]' \| \
19439: X"$as_dir" : 'X\(//\)$' \| \
19440: X"$as_dir" : 'X\(/\)' \| \
19441: . : '\(.\)' 2>/dev/null ||
19442: echo X"$as_dir" |
19443: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19444: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19445: /^X\(\/\/\)$/{ s//\1/; q; }
19446: /^X\(\/\).*/{ s//\1/; q; }
19447: s/.*/./; q'`
19448: done
19449: test ! -n "$as_dirs" || mkdir $as_dirs
19450: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19451: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19452: { (exit 1); exit 1; }; }; }
19453:
1.8 moko 19454: # echo "creating $dirpart/$file"
19455: echo '# dummy' > "$dirpart/$file"
19456: done
19457: done
19458: ;;
1.11 moko 19459: libtool )
1.8 moko 19460:
19461: # See if we are running on zsh, and set the options which allow our
19462: # commands through without removal of \ escapes.
19463: if test -n "${ZSH_VERSION+set}" ; then
19464: setopt NO_GLOB_SUBST
19465: fi
19466:
19467: cfgfile="${ofile}T"
19468: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19469: $RM "$cfgfile"
19470:
19471: cat <<_LT_EOF >> "$cfgfile"
19472: #! $SHELL
19473:
19474: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19475: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19476: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19477: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19478: #
19479: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19480: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19481: # Foundation, Inc.
19482: # Written by Gordon Matzigkeit, 1996
19483: #
19484: # This file is part of GNU Libtool.
19485: #
19486: # GNU Libtool is free software; you can redistribute it and/or
19487: # modify it under the terms of the GNU General Public License as
19488: # published by the Free Software Foundation; either version 2 of
19489: # the License, or (at your option) any later version.
19490: #
19491: # As a special exception to the GNU General Public License,
19492: # if you distribute this file as part of a program or library that
19493: # is built using GNU Libtool, you may include this file under the
19494: # same distribution terms that you use for the rest of that program.
19495: #
19496: # GNU Libtool is distributed in the hope that it will be useful,
19497: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19498: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19499: # GNU General Public License for more details.
19500: #
19501: # You should have received a copy of the GNU General Public License
19502: # along with GNU Libtool; see the file COPYING. If not, a copy
19503: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19504: # obtained by writing to the Free Software Foundation, Inc.,
19505: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19506:
19507:
19508: # The names of the tagged configurations supported by this script.
19509: available_tags="CXX "
19510:
19511: # ### BEGIN LIBTOOL CONFIG
19512:
19513: # Which release of libtool.m4 was used?
19514: macro_version=$macro_version
19515: macro_revision=$macro_revision
19516:
1.13 moko 19517: # Assembler program.
19518: AS=$lt_AS
19519:
19520: # DLL creation program.
19521: DLLTOOL=$lt_DLLTOOL
19522:
19523: # Object dumper program.
19524: OBJDUMP=$lt_OBJDUMP
19525:
1.8 moko 19526: # Whether or not to build shared libraries.
19527: build_libtool_libs=$enable_shared
19528:
19529: # Whether or not to build static libraries.
19530: build_old_libs=$enable_static
19531:
19532: # What type of objects to build.
19533: pic_mode=$pic_mode
19534:
19535: # Whether or not to optimize for fast installation.
19536: fast_install=$enable_fast_install
19537:
19538: # Shell to use when invoking shell scripts.
19539: SHELL=$lt_SHELL
19540:
19541: # An echo program that protects backslashes.
19542: ECHO=$lt_ECHO
19543:
19544: # The PATH separator for the build system.
19545: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19546:
19547: # The host system.
19548: host_alias=$host_alias
19549: host=$host
19550: host_os=$host_os
19551:
19552: # The build system.
19553: build_alias=$build_alias
19554: build=$build
19555: build_os=$build_os
19556:
19557: # A sed program that does not truncate output.
19558: SED=$lt_SED
19559:
19560: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19561: Xsed="\$SED -e 1s/^X//"
19562:
19563: # A grep program that handles long lines.
19564: GREP=$lt_GREP
19565:
19566: # An ERE matcher.
19567: EGREP=$lt_EGREP
19568:
19569: # A literal string matcher.
19570: FGREP=$lt_FGREP
19571:
19572: # A BSD- or MS-compatible name lister.
19573: NM=$lt_NM
19574:
19575: # Whether we need soft or hard links.
19576: LN_S=$lt_LN_S
19577:
19578: # What is the maximum length of a command?
19579: max_cmd_len=$max_cmd_len
19580:
19581: # Object file suffix (normally "o").
19582: objext=$ac_objext
19583:
19584: # Executable file suffix (normally "").
19585: exeext=$exeext
19586:
19587: # whether the shell understands "unset".
19588: lt_unset=$lt_unset
19589:
19590: # turn spaces into newlines.
19591: SP2NL=$lt_lt_SP2NL
19592:
19593: # turn newlines into spaces.
19594: NL2SP=$lt_lt_NL2SP
19595:
19596: # convert \$build file names to \$host format.
19597: to_host_file_cmd=$lt_cv_to_host_file_cmd
19598:
19599: # convert \$build files to toolchain format.
19600: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19601:
19602: # Method to check whether dependent libraries are shared objects.
19603: deplibs_check_method=$lt_deplibs_check_method
19604:
19605: # Command to use when deplibs_check_method = "file_magic".
19606: file_magic_cmd=$lt_file_magic_cmd
19607:
19608: # How to find potential files when deplibs_check_method = "file_magic".
19609: file_magic_glob=$lt_file_magic_glob
19610:
19611: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19612: want_nocaseglob=$lt_want_nocaseglob
19613:
19614: # Command to associate shared and link libraries.
19615: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19616:
19617: # The archiver.
19618: AR=$lt_AR
19619:
19620: # Flags to create an archive.
19621: AR_FLAGS=$lt_AR_FLAGS
19622:
19623: # How to feed a file listing to the archiver.
19624: archiver_list_spec=$lt_archiver_list_spec
19625:
19626: # A symbol stripping program.
19627: STRIP=$lt_STRIP
19628:
19629: # Commands used to install an old-style archive.
19630: RANLIB=$lt_RANLIB
19631: old_postinstall_cmds=$lt_old_postinstall_cmds
19632: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19633:
19634: # Whether to use a lock for old archive extraction.
19635: lock_old_archive_extraction=$lock_old_archive_extraction
19636:
19637: # A C compiler.
19638: LTCC=$lt_CC
19639:
19640: # LTCC compiler flags.
19641: LTCFLAGS=$lt_CFLAGS
19642:
19643: # Take the output of nm and produce a listing of raw symbols and C names.
19644: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19645:
19646: # Transform the output of nm in a proper C declaration.
19647: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19648:
19649: # Transform the output of nm in a C name address pair.
19650: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19651:
19652: # Transform the output of nm in a C name address pair when lib prefix is needed.
19653: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19654:
19655: # Specify filename containing input files for \$NM.
19656: nm_file_list_spec=$lt_nm_file_list_spec
19657:
19658: # The root where to search for dependent libraries,and in which our libraries should be installed.
19659: lt_sysroot=$lt_sysroot
19660:
19661: # The name of the directory that contains temporary libtool files.
19662: objdir=$objdir
19663:
19664: # Used to examine libraries when file_magic_cmd begins with "file".
19665: MAGIC_CMD=$MAGIC_CMD
19666:
19667: # Must we lock files when doing compilation?
19668: need_locks=$lt_need_locks
19669:
19670: # Manifest tool.
19671: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19672:
19673: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19674: DSYMUTIL=$lt_DSYMUTIL
19675:
19676: # Tool to change global to local symbols on Mac OS X.
19677: NMEDIT=$lt_NMEDIT
19678:
19679: # Tool to manipulate fat objects and archives on Mac OS X.
19680: LIPO=$lt_LIPO
19681:
19682: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19683: OTOOL=$lt_OTOOL
19684:
19685: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19686: OTOOL64=$lt_OTOOL64
19687:
19688: # Old archive suffix (normally "a").
19689: libext=$libext
19690:
19691: # Shared library suffix (normally ".so").
19692: shrext_cmds=$lt_shrext_cmds
19693:
19694: # The commands to extract the exported symbol list from a shared archive.
19695: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19696:
19697: # Variables whose values should be saved in libtool wrapper scripts and
19698: # restored at link time.
19699: variables_saved_for_relink=$lt_variables_saved_for_relink
19700:
19701: # Do we need the "lib" prefix for modules?
19702: need_lib_prefix=$need_lib_prefix
19703:
19704: # Do we need a version for libraries?
19705: need_version=$need_version
19706:
19707: # Library versioning type.
19708: version_type=$version_type
19709:
19710: # Shared library runtime path variable.
19711: runpath_var=$runpath_var
19712:
19713: # Shared library path variable.
19714: shlibpath_var=$shlibpath_var
19715:
19716: # Is shlibpath searched before the hard-coded library search path?
19717: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19718:
19719: # Format of library name prefix.
19720: libname_spec=$lt_libname_spec
19721:
19722: # List of archive names. First name is the real one, the rest are links.
19723: # The last name is the one that the linker finds with -lNAME
19724: library_names_spec=$lt_library_names_spec
19725:
19726: # The coded name of the library, if different from the real name.
19727: soname_spec=$lt_soname_spec
19728:
19729: # Permission mode override for installation of shared libraries.
19730: install_override_mode=$lt_install_override_mode
19731:
19732: # Command to use after installation of a shared archive.
19733: postinstall_cmds=$lt_postinstall_cmds
19734:
19735: # Command to use after uninstallation of a shared archive.
19736: postuninstall_cmds=$lt_postuninstall_cmds
19737:
19738: # Commands used to finish a libtool library installation in a directory.
19739: finish_cmds=$lt_finish_cmds
19740:
19741: # As "finish_cmds", except a single script fragment to be evaled but
19742: # not shown.
19743: finish_eval=$lt_finish_eval
19744:
19745: # Whether we should hardcode library paths into libraries.
19746: hardcode_into_libs=$hardcode_into_libs
19747:
19748: # Compile-time system search path for libraries.
19749: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19750:
19751: # Run-time system search path for libraries.
19752: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19753:
19754: # Whether dlopen is supported.
19755: dlopen_support=$enable_dlopen
19756:
19757: # Whether dlopen of programs is supported.
19758: dlopen_self=$enable_dlopen_self
19759:
19760: # Whether dlopen of statically linked programs is supported.
19761: dlopen_self_static=$enable_dlopen_self_static
19762:
19763: # Commands to strip libraries.
19764: old_striplib=$lt_old_striplib
19765: striplib=$lt_striplib
19766:
19767:
19768: # The linker used to build libraries.
19769: LD=$lt_LD
19770:
19771: # How to create reloadable object files.
19772: reload_flag=$lt_reload_flag
19773: reload_cmds=$lt_reload_cmds
19774:
19775: # Commands used to build an old-style archive.
19776: old_archive_cmds=$lt_old_archive_cmds
19777:
19778: # A language specific compiler.
19779: CC=$lt_compiler
19780:
19781: # Is the compiler the GNU compiler?
19782: with_gcc=$GCC
19783:
19784: # Compiler flag to turn off builtin functions.
19785: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19786:
19787: # Additional compiler flags for building library objects.
19788: pic_flag=$lt_lt_prog_compiler_pic
19789:
19790: # How to pass a linker flag through the compiler.
19791: wl=$lt_lt_prog_compiler_wl
19792:
19793: # Compiler flag to prevent dynamic linking.
19794: link_static_flag=$lt_lt_prog_compiler_static
19795:
19796: # Does compiler simultaneously support -c and -o options?
19797: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19798:
19799: # Whether or not to add -lc for building shared libraries.
19800: build_libtool_need_lc=$archive_cmds_need_lc
19801:
19802: # Whether or not to disallow shared libs when runtime libs are static.
19803: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19804:
19805: # Compiler flag to allow reflexive dlopens.
19806: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19807:
19808: # Compiler flag to generate shared objects directly from archives.
19809: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19810:
19811: # Whether the compiler copes with passing no objects directly.
19812: compiler_needs_object=$lt_compiler_needs_object
19813:
19814: # Create an old-style archive from a shared archive.
19815: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19816:
19817: # Create a temporary old-style archive to link instead of a shared archive.
19818: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19819:
19820: # Commands used to build a shared archive.
19821: archive_cmds=$lt_archive_cmds
19822: archive_expsym_cmds=$lt_archive_expsym_cmds
19823:
19824: # Commands used to build a loadable module if different from building
19825: # a shared archive.
19826: module_cmds=$lt_module_cmds
19827: module_expsym_cmds=$lt_module_expsym_cmds
19828:
19829: # Whether we are building with GNU ld or not.
19830: with_gnu_ld=$lt_with_gnu_ld
19831:
19832: # Flag that allows shared libraries with undefined symbols to be built.
19833: allow_undefined_flag=$lt_allow_undefined_flag
19834:
19835: # Flag that enforces no undefined symbols.
19836: no_undefined_flag=$lt_no_undefined_flag
19837:
19838: # Flag to hardcode \$libdir into a binary during linking.
19839: # This must work even if \$libdir does not exist
19840: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19841:
19842: # Whether we need a single "-rpath" flag with a separated argument.
19843: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19844:
19845: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19846: # DIR into the resulting binary.
19847: hardcode_direct=$hardcode_direct
19848:
19849: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19850: # DIR into the resulting binary and the resulting library dependency is
19851: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19852: # library is relocated.
19853: hardcode_direct_absolute=$hardcode_direct_absolute
19854:
19855: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19856: # into the resulting binary.
19857: hardcode_minus_L=$hardcode_minus_L
19858:
19859: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19860: # into the resulting binary.
19861: hardcode_shlibpath_var=$hardcode_shlibpath_var
19862:
19863: # Set to "yes" if building a shared library automatically hardcodes DIR
19864: # into the library and all subsequent libraries and executables linked
19865: # against it.
19866: hardcode_automatic=$hardcode_automatic
19867:
19868: # Set to yes if linker adds runtime paths of dependent libraries
19869: # to runtime path list.
19870: inherit_rpath=$inherit_rpath
19871:
19872: # Whether libtool must link a program against all its dependency libraries.
19873: link_all_deplibs=$link_all_deplibs
19874:
19875: # Set to "yes" if exported symbols are required.
19876: always_export_symbols=$always_export_symbols
19877:
19878: # The commands to list exported symbols.
19879: export_symbols_cmds=$lt_export_symbols_cmds
19880:
19881: # Symbols that should not be listed in the preloaded symbols.
19882: exclude_expsyms=$lt_exclude_expsyms
19883:
19884: # Symbols that must always be exported.
19885: include_expsyms=$lt_include_expsyms
19886:
19887: # Commands necessary for linking programs (against libraries) with templates.
19888: prelink_cmds=$lt_prelink_cmds
19889:
19890: # Commands necessary for finishing linking programs.
19891: postlink_cmds=$lt_postlink_cmds
19892:
19893: # Specify filename containing input files.
19894: file_list_spec=$lt_file_list_spec
19895:
19896: # How to hardcode a shared library path into an executable.
19897: hardcode_action=$hardcode_action
19898:
19899: # The directories searched by this compiler when creating a shared library.
19900: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19901:
19902: # Dependencies to place before and after the objects being linked to
19903: # create a shared library.
19904: predep_objects=$lt_predep_objects
19905: postdep_objects=$lt_postdep_objects
19906: predeps=$lt_predeps
19907: postdeps=$lt_postdeps
19908:
19909: # The library search path used internally by the compiler when linking
19910: # a shared library.
19911: compiler_lib_search_path=$lt_compiler_lib_search_path
19912:
19913: # ### END LIBTOOL CONFIG
19914:
19915: _LT_EOF
19916:
19917: case $host_os in
19918: aix3*)
19919: cat <<\_LT_EOF >> "$cfgfile"
19920: # AIX sometimes has problems with the GCC collect2 program. For some
19921: # reason, if we set the COLLECT_NAMES environment variable, the problems
19922: # vanish in a puff of smoke.
19923: if test "X${COLLECT_NAMES+set}" != Xset; then
19924: COLLECT_NAMES=
19925: export COLLECT_NAMES
19926: fi
19927: _LT_EOF
19928: ;;
19929: esac
19930:
19931:
19932: ltmain="$ac_aux_dir/ltmain.sh"
19933:
19934:
19935: # We use sed instead of cat because bash on DJGPP gets confused if
19936: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19937: # text mode, it properly converts lines to CR/LF. This bash problem
19938: # is reportedly fixed, but why not run on old versions too?
19939: sed '$q' "$ltmain" >> "$cfgfile" \
19940: || (rm -f "$cfgfile"; exit 1)
19941:
19942: if test x"$xsi_shell" = xyes; then
19943: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19944: func_dirname ()\
19945: {\
19946: \ case ${1} in\
19947: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19948: \ * ) func_dirname_result="${3}" ;;\
19949: \ esac\
19950: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19951: && mv -f "$cfgfile.tmp" "$cfgfile" \
19952: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19953: test 0 -eq $? || _lt_function_replace_fail=:
19954:
19955:
19956: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19957: func_basename ()\
19958: {\
19959: \ func_basename_result="${1##*/}"\
19960: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19961: && mv -f "$cfgfile.tmp" "$cfgfile" \
19962: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19963: test 0 -eq $? || _lt_function_replace_fail=:
19964:
19965:
19966: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19967: func_dirname_and_basename ()\
19968: {\
19969: \ case ${1} in\
19970: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19971: \ * ) func_dirname_result="${3}" ;;\
19972: \ esac\
19973: \ func_basename_result="${1##*/}"\
19974: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19975: && mv -f "$cfgfile.tmp" "$cfgfile" \
19976: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19977: test 0 -eq $? || _lt_function_replace_fail=:
19978:
19979:
19980: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19981: func_stripname ()\
19982: {\
19983: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19984: \ # positional parameters, so assign one to ordinary parameter first.\
19985: \ func_stripname_result=${3}\
19986: \ func_stripname_result=${func_stripname_result#"${1}"}\
19987: \ func_stripname_result=${func_stripname_result%"${2}"}\
19988: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19989: && mv -f "$cfgfile.tmp" "$cfgfile" \
19990: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19991: test 0 -eq $? || _lt_function_replace_fail=:
19992:
19993:
19994: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19995: func_split_long_opt ()\
19996: {\
19997: \ func_split_long_opt_name=${1%%=*}\
19998: \ func_split_long_opt_arg=${1#*=}\
19999: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20000: && mv -f "$cfgfile.tmp" "$cfgfile" \
20001: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20002: test 0 -eq $? || _lt_function_replace_fail=:
20003:
20004:
20005: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20006: func_split_short_opt ()\
20007: {\
20008: \ func_split_short_opt_arg=${1#??}\
20009: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20010: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20011: && mv -f "$cfgfile.tmp" "$cfgfile" \
20012: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20013: test 0 -eq $? || _lt_function_replace_fail=:
20014:
20015:
20016: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20017: func_lo2o ()\
20018: {\
20019: \ case ${1} in\
20020: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20021: \ *) func_lo2o_result=${1} ;;\
20022: \ esac\
20023: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20024: && mv -f "$cfgfile.tmp" "$cfgfile" \
20025: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20026: test 0 -eq $? || _lt_function_replace_fail=:
20027:
20028:
20029: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20030: func_xform ()\
20031: {\
20032: func_xform_result=${1%.*}.lo\
20033: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20034: && mv -f "$cfgfile.tmp" "$cfgfile" \
20035: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20036: test 0 -eq $? || _lt_function_replace_fail=:
20037:
20038:
20039: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20040: func_arith ()\
20041: {\
20042: func_arith_result=$(( $* ))\
20043: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20044: && mv -f "$cfgfile.tmp" "$cfgfile" \
20045: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20046: test 0 -eq $? || _lt_function_replace_fail=:
20047:
20048:
20049: sed -e '/^func_len ()$/,/^} # func_len /c\
20050: func_len ()\
20051: {\
20052: func_len_result=${#1}\
20053: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20054: && mv -f "$cfgfile.tmp" "$cfgfile" \
20055: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20056: test 0 -eq $? || _lt_function_replace_fail=:
20057:
20058: fi
20059:
20060: if test x"$lt_shell_append" = xyes; then
20061: sed -e '/^func_append ()$/,/^} # func_append /c\
20062: func_append ()\
20063: {\
20064: eval "${1}+=\\${2}"\
20065: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20066: && mv -f "$cfgfile.tmp" "$cfgfile" \
20067: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20068: test 0 -eq $? || _lt_function_replace_fail=:
20069:
20070:
20071: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20072: func_append_quoted ()\
20073: {\
20074: \ func_quote_for_eval "${2}"\
20075: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20076: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20077: && mv -f "$cfgfile.tmp" "$cfgfile" \
20078: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20079: test 0 -eq $? || _lt_function_replace_fail=:
20080:
20081:
20082: # Save a `func_append' function call where possible by direct use of '+='
20083: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20084: && mv -f "$cfgfile.tmp" "$cfgfile" \
20085: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20086: test 0 -eq $? || _lt_function_replace_fail=:
20087: else
20088: # Save a `func_append' function call even when '+=' is not available
20089: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20090: && mv -f "$cfgfile.tmp" "$cfgfile" \
20091: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20092: test 0 -eq $? || _lt_function_replace_fail=:
20093: fi
20094:
20095: if test x"$_lt_function_replace_fail" = x":"; then
1.11 moko 20096: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20097: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 20098: fi
20099:
20100:
20101: mv -f "$cfgfile" "$ofile" ||
20102: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20103: chmod +x "$ofile"
20104:
20105:
20106: cat <<_LT_EOF >> "$ofile"
20107:
20108: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20109:
20110: # The linker used to build libraries.
20111: LD=$lt_LD_CXX
20112:
20113: # How to create reloadable object files.
20114: reload_flag=$lt_reload_flag_CXX
20115: reload_cmds=$lt_reload_cmds_CXX
20116:
20117: # Commands used to build an old-style archive.
20118: old_archive_cmds=$lt_old_archive_cmds_CXX
20119:
20120: # A language specific compiler.
20121: CC=$lt_compiler_CXX
20122:
20123: # Is the compiler the GNU compiler?
20124: with_gcc=$GCC_CXX
20125:
20126: # Compiler flag to turn off builtin functions.
20127: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20128:
20129: # Additional compiler flags for building library objects.
20130: pic_flag=$lt_lt_prog_compiler_pic_CXX
20131:
20132: # How to pass a linker flag through the compiler.
20133: wl=$lt_lt_prog_compiler_wl_CXX
20134:
20135: # Compiler flag to prevent dynamic linking.
20136: link_static_flag=$lt_lt_prog_compiler_static_CXX
20137:
20138: # Does compiler simultaneously support -c and -o options?
20139: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20140:
20141: # Whether or not to add -lc for building shared libraries.
20142: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20143:
20144: # Whether or not to disallow shared libs when runtime libs are static.
20145: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20146:
20147: # Compiler flag to allow reflexive dlopens.
20148: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20149:
20150: # Compiler flag to generate shared objects directly from archives.
20151: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20152:
20153: # Whether the compiler copes with passing no objects directly.
20154: compiler_needs_object=$lt_compiler_needs_object_CXX
20155:
20156: # Create an old-style archive from a shared archive.
20157: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20158:
20159: # Create a temporary old-style archive to link instead of a shared archive.
20160: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20161:
20162: # Commands used to build a shared archive.
20163: archive_cmds=$lt_archive_cmds_CXX
20164: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20165:
20166: # Commands used to build a loadable module if different from building
20167: # a shared archive.
20168: module_cmds=$lt_module_cmds_CXX
20169: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20170:
20171: # Whether we are building with GNU ld or not.
20172: with_gnu_ld=$lt_with_gnu_ld_CXX
20173:
20174: # Flag that allows shared libraries with undefined symbols to be built.
20175: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20176:
20177: # Flag that enforces no undefined symbols.
20178: no_undefined_flag=$lt_no_undefined_flag_CXX
20179:
20180: # Flag to hardcode \$libdir into a binary during linking.
20181: # This must work even if \$libdir does not exist
20182: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20183:
20184: # Whether we need a single "-rpath" flag with a separated argument.
20185: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20186:
20187: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20188: # DIR into the resulting binary.
20189: hardcode_direct=$hardcode_direct_CXX
20190:
20191: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20192: # DIR into the resulting binary and the resulting library dependency is
20193: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20194: # library is relocated.
20195: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20196:
20197: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20198: # into the resulting binary.
20199: hardcode_minus_L=$hardcode_minus_L_CXX
20200:
20201: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20202: # into the resulting binary.
20203: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20204:
20205: # Set to "yes" if building a shared library automatically hardcodes DIR
20206: # into the library and all subsequent libraries and executables linked
20207: # against it.
20208: hardcode_automatic=$hardcode_automatic_CXX
20209:
20210: # Set to yes if linker adds runtime paths of dependent libraries
20211: # to runtime path list.
20212: inherit_rpath=$inherit_rpath_CXX
20213:
20214: # Whether libtool must link a program against all its dependency libraries.
20215: link_all_deplibs=$link_all_deplibs_CXX
20216:
20217: # Set to "yes" if exported symbols are required.
20218: always_export_symbols=$always_export_symbols_CXX
20219:
20220: # The commands to list exported symbols.
20221: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20222:
20223: # Symbols that should not be listed in the preloaded symbols.
20224: exclude_expsyms=$lt_exclude_expsyms_CXX
20225:
20226: # Symbols that must always be exported.
20227: include_expsyms=$lt_include_expsyms_CXX
20228:
20229: # Commands necessary for linking programs (against libraries) with templates.
20230: prelink_cmds=$lt_prelink_cmds_CXX
20231:
20232: # Commands necessary for finishing linking programs.
20233: postlink_cmds=$lt_postlink_cmds_CXX
20234:
20235: # Specify filename containing input files.
20236: file_list_spec=$lt_file_list_spec_CXX
20237:
20238: # How to hardcode a shared library path into an executable.
20239: hardcode_action=$hardcode_action_CXX
20240:
20241: # The directories searched by this compiler when creating a shared library.
20242: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20243:
20244: # Dependencies to place before and after the objects being linked to
20245: # create a shared library.
20246: predep_objects=$lt_predep_objects_CXX
20247: postdep_objects=$lt_postdep_objects_CXX
20248: predeps=$lt_predeps_CXX
20249: postdeps=$lt_postdeps_CXX
20250:
20251: # The library search path used internally by the compiler when linking
20252: # a shared library.
20253: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20254:
20255: # ### END LIBTOOL TAG CONFIG: CXX
20256: _LT_EOF
1.1 misha 20257:
20258: ;;
20259: esac
1.11 moko 20260: done
20261: _ACEOF
1.1 misha 20262:
1.11 moko 20263: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misha 20264:
1.11 moko 20265: { (exit 0); exit 0; }
1.1 misha 20266: _ACEOF
1.11 moko 20267: chmod +x $CONFIG_STATUS
1.1 misha 20268: ac_clean_files=$ac_clean_files_save
20269:
20270:
20271: # configure is writing to config.log, and then calls config.status.
20272: # config.status does its own redirection, appending to config.log.
20273: # Unfortunately, on DOS this fails, as config.log is still kept open
20274: # by configure, so config.status won't be able to write to it; its
20275: # output is simply discarded. So we exec the FD to /dev/null,
20276: # effectively closing config.log, so it can be properly (re)opened and
20277: # appended to by config.status. When coming back to configure, we
20278: # need to make the FD available again.
20279: if test "$no_create" != yes; then
20280: ac_cs_success=:
20281: ac_config_status_args=
20282: test "$silent" = yes &&
20283: ac_config_status_args="$ac_config_status_args --quiet"
20284: exec 5>/dev/null
20285: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20286: exec 5>>config.log
20287: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20288: # would make configure fail if this is the last instruction.
1.11 moko 20289: $ac_cs_success || { (exit 1); exit 1; }
1.1 misha 20290: fi
20291:
20292: #
20293: # CONFIG_SUBDIRS section.
20294: #
20295: if test "$no_recursion" != yes; then
20296:
1.11 moko 20297: # Remove --cache-file and --srcdir arguments so they do not pile up.
1.1 misha 20298: ac_sub_configure_args=
20299: ac_prev=
1.11 moko 20300: for ac_arg in $ac_configure_args; do
1.1 misha 20301: if test -n "$ac_prev"; then
20302: ac_prev=
20303: continue
20304: fi
20305: case $ac_arg in
20306: -cache-file | --cache-file | --cache-fil | --cache-fi \
20307: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20308: ac_prev=cache_file ;;
20309: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20310: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20311: | --c=*)
20312: ;;
20313: --config-cache | -C)
20314: ;;
20315: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20316: ac_prev=srcdir ;;
20317: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20318: ;;
20319: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20320: ac_prev=prefix ;;
20321: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20322: ;;
1.11 moko 20323: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1.1 misha 20324: esac
20325: done
20326:
20327: # Always prepend --prefix to ensure using the same prefix
20328: # in subdir configurations.
1.11 moko 20329: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
1.1 misha 20330:
20331: ac_popdir=`pwd`
20332: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20333:
20334: # Do not complain, so a configure script can configure whichever
20335: # parts of a large source tree are present.
1.11 moko 20336: test -d $srcdir/$ac_dir || continue
20337:
20338: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20339: echo "$as_me: configuring in $ac_dir" >&6;}
20340: { if $as_mkdir_p; then
20341: mkdir -p "$ac_dir"
20342: else
20343: as_dir="$ac_dir"
20344: as_dirs=
20345: while test ! -d "$as_dir"; do
20346: as_dirs="$as_dir $as_dirs"
20347: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20348: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20349: X"$as_dir" : 'X\(//\)[^/]' \| \
20350: X"$as_dir" : 'X\(//\)$' \| \
20351: X"$as_dir" : 'X\(/\)' \| \
20352: . : '\(.\)' 2>/dev/null ||
20353: echo X"$as_dir" |
20354: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20355: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20356: /^X\(\/\/\)$/{ s//\1/; q; }
20357: /^X\(\/\).*/{ s//\1/; q; }
20358: s/.*/./; q'`
20359: done
20360: test ! -n "$as_dirs" || mkdir $as_dirs
20361: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20362: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20363: { (exit 1); exit 1; }; }; }
1.1 misha 20364:
20365: ac_builddir=.
20366:
1.11 moko 20367: if test "$ac_dir" != .; then
20368: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20369: # A "../" for each directory in $ac_dir_suffix.
20370: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20371: else
20372: ac_dir_suffix= ac_top_builddir=
20373: fi
1.1 misha 20374:
20375: case $srcdir in
1.11 moko 20376: .) # No --srcdir option. We are building in place.
1.1 misha 20377: ac_srcdir=.
1.11 moko 20378: if test -z "$ac_top_builddir"; then
20379: ac_top_srcdir=.
20380: else
20381: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20382: fi ;;
20383: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 20384: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 20385: ac_top_srcdir=$srcdir ;;
20386: *) # Relative path.
20387: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20388: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20389: esac
20390:
20391: # Do not use `cd foo && pwd` to compute absolute paths, because
20392: # the directories may not exist.
20393: case `pwd` in
20394: .) ac_abs_builddir="$ac_dir";;
20395: *)
20396: case "$ac_dir" in
20397: .) ac_abs_builddir=`pwd`;;
20398: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20399: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20400: esac;;
20401: esac
20402: case $ac_abs_builddir in
20403: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20404: *)
20405: case ${ac_top_builddir}. in
20406: .) ac_abs_top_builddir=$ac_abs_builddir;;
20407: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20408: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20409: esac;;
20410: esac
20411: case $ac_abs_builddir in
20412: .) ac_abs_srcdir=$ac_srcdir;;
20413: *)
20414: case $ac_srcdir in
20415: .) ac_abs_srcdir=$ac_abs_builddir;;
20416: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20417: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20418: esac;;
20419: esac
20420: case $ac_abs_builddir in
20421: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20422: *)
20423: case $ac_top_srcdir in
20424: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20425: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20426: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20427: esac;;
1.1 misha 20428: esac
20429:
20430:
1.11 moko 20431: cd $ac_dir
1.1 misha 20432:
20433: # Check for guested configure; otherwise get Cygnus style configure.
1.11 moko 20434: if test -f $ac_srcdir/configure.gnu; then
20435: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20436: elif test -f $ac_srcdir/configure; then
20437: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20438: elif test -f $ac_srcdir/configure.in; then
20439: ac_sub_configure=$ac_configure
1.1 misha 20440: else
1.11 moko 20441: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20442: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 20443: ac_sub_configure=
20444: fi
20445:
20446: # The recursion is here.
20447: if test -n "$ac_sub_configure"; then
20448: # Make the cache file name correct relative to the subdirectory.
20449: case $cache_file in
20450: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.11 moko 20451: *) # Relative path.
20452: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 misha 20453: esac
20454:
1.11 moko 20455: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20456: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 misha 20457: # The eval makes quoting arguments work.
1.11 moko 20458: eval $ac_sub_configure $ac_sub_configure_args \
20459: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20460: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20461: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20462: { (exit 1); exit 1; }; }
1.1 misha 20463: fi
20464:
1.11 moko 20465: cd $ac_popdir
1.1 misha 20466: done
20467: fi
20468:
E-mail: