Annotation of sql/oracle/configure, revision 1.27
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.25 moko 3: # Generated by GNU Autoconf 2.59 for parser3 10.2.
1.1 parser 4: #
1.18 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 parser 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.11 paf 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.18 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.11 paf 23:
24: # Support unset when possible.
1.18 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.11 paf 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
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
43: do
1.18 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.11 paf 45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
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:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
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:
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
155:
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 |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
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; }; }
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
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
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= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
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
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
1.18 paf 221: test -d ./-p && rmdir ./-p
1.11 paf 222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.18 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.18 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 232:
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.25 moko 243: lt_ltdl_dir='libltdl'
1.11 paf 244:
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
1.25 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.11 paf 248:
249:
250: # Name of the host.
251: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252: # so uname gets run too.
253: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 254:
1.11 paf 255: exec 6>&1
256:
257: #
258: # Initializations.
259: #
1.1 parser 260: ac_default_prefix=/usr/local
1.11 paf 261: ac_config_libobj_dir=.
262: cross_compiling=no
263: subdirs=
264: MFLAGS=
265: MAKEFLAGS=
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}
272:
273: # Identity of this package.
1.25 moko 274: PACKAGE_NAME='parser3'
275: PACKAGE_TARNAME='parser3'
276: PACKAGE_VERSION='10.2'
277: PACKAGE_STRING='parser3 10.2'
278: PACKAGE_BUGREPORT=''
1.11 paf 279:
280: ac_unique_file="parser3oracle.C"
281: # Factoring default headers for most tests.
282: ac_includes_default="\
283: #include <stdio.h>
284: #if HAVE_SYS_TYPES_H
285: # include <sys/types.h>
286: #endif
287: #if HAVE_SYS_STAT_H
288: # include <sys/stat.h>
289: #endif
290: #if STDC_HEADERS
291: # include <stdlib.h>
292: # include <stddef.h>
293: #else
294: # if HAVE_STDLIB_H
295: # include <stdlib.h>
296: # endif
297: #endif
298: #if HAVE_STRING_H
299: # if !STDC_HEADERS && HAVE_MEMORY_H
300: # include <memory.h>
301: # endif
302: # include <string.h>
303: #endif
304: #if HAVE_STRINGS_H
305: # include <strings.h>
306: #endif
307: #if HAVE_INTTYPES_H
308: # include <inttypes.h>
309: #else
310: # if HAVE_STDINT_H
311: # include <stdint.h>
312: # endif
313: #endif
314: #if HAVE_UNISTD_H
315: # include <unistd.h>
316: #endif"
317:
318: ac_subdirs_all="$ac_subdirs_all libltdl"
1.25 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 ORACLE_OCI_INC ORACLE_PUBLIC_INC LDFLAGS CXX CXXFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB MANIFEST_TOOL ac_ct_MANIFEST_TOOL DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CXXCPP LIBLTDL LTDLDEPS LTDLINCL INCLTDL LT_DLLOADERS LIBADD_DLOPEN LIBADD_SHL_LOAD LIBADD_DLD_LINK LT_DLPREOPEN LIBADD_DL sys_symbol_underscore ARGZ_H INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE subdirs LT_CONFIG_H LTDLOPEN LIBOBJS LTLIBOBJS ltdl_LIBOBJS ltdl_LTLIBOBJS'
1.11 paf 320: ac_subst_files=''
1.1 parser 321:
322: # Initialize some variables set by options.
1.11 paf 323: ac_init_help=
324: ac_init_version=false
1.1 parser 325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
1.11 paf 327: cache_file=/dev/null
1.1 parser 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
1.11 paf 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.
1.1 parser 347: bindir='${exec_prefix}/bin'
348: sbindir='${exec_prefix}/sbin'
349: libexecdir='${exec_prefix}/libexec'
350: datadir='${prefix}/share'
351: sysconfdir='${prefix}/etc'
352: sharedstatedir='${prefix}/com'
353: localstatedir='${prefix}/var'
354: libdir='${exec_prefix}/lib'
355: includedir='${prefix}/include'
356: oldincludedir='/usr/include'
357: infodir='${prefix}/info'
358: mandir='${prefix}/man'
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
365: eval "$ac_prev=\$ac_option"
366: ac_prev=
367: continue
368: fi
369:
1.11 paf 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.11 paf 374: case $ac_option in
1.1 parser 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.11 paf 379: bindir=$ac_optarg ;;
1.1 parser 380:
381: -build | --build | --buil | --bui | --bu)
1.11 paf 382: ac_prev=build_alias ;;
1.1 parser 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.11 paf 384: build_alias=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
1.1 parser 395:
396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397: ac_prev=datadir ;;
398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.11 paf 400: datadir=$ac_optarg ;;
1.1 parser 401:
402: -disable-* | --disable-*)
1.11 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 404: # Reject names that are not valid shell variable names.
1.11 paf 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 parser 410:
411: -enable-* | --enable-*)
1.11 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 413: # Reject names that are not valid shell variable names.
1.11 paf 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"`;;
1.1 parser 420: *) ac_optarg=yes ;;
421: esac
1.11 paf 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 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=*)
1.11 paf 431: exec_prefix=$ac_optarg ;;
1.1 parser 432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
1.11 paf 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 ;;
1.1 parser 443:
444: -host | --host | --hos | --ho)
1.11 paf 445: ac_prev=host_alias ;;
1.1 parser 446: -host=* | --host=* | --hos=* | --ho=*)
1.11 paf 447: host_alias=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 454: includedir=$ac_optarg ;;
1.1 parser 455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.11 paf 459: infodir=$ac_optarg ;;
1.1 parser 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.11 paf 464: libdir=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 471: libexecdir=$ac_optarg ;;
1.1 parser 472:
473: -localstatedir | --localstatedir | --localstatedi | --localstated \
474: | --localstate | --localstat | --localsta | --localst \
475: | --locals | --local | --loca | --loc | --lo)
476: ac_prev=localstatedir ;;
477: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
478: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
479: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.11 paf 480: localstatedir=$ac_optarg ;;
1.1 parser 481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.11 paf 485: mandir=$ac_optarg ;;
1.1 parser 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 \
1.11 paf 492: | --no-cr | --no-c | -n)
1.1 parser 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=*)
1.11 paf 506: oldincludedir=$ac_optarg ;;
1.1 parser 507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.11 paf 511: prefix=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 518: program_prefix=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 525: program_suffix=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 542: program_transform_name=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 552: sbindir=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 563: sharedstatedir=$ac_optarg ;;
1.1 parser 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.11 paf 568: site=$ac_optarg ;;
1.1 parser 569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.11 paf 573: srcdir=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 580: sysconfdir=$ac_optarg ;;
1.1 parser 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.11 paf 583: ac_prev=target_alias ;;
1.1 parser 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.11 paf 585: target_alias=$ac_optarg ;;
1.1 parser 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.11 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 parser 592:
593: -with-* | --with-*)
1.11 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 595: # Reject names that are not valid shell variable names.
1.11 paf 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; }; }
1.1 parser 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.11 paf 600: case $ac_option in
601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 602: *) ac_optarg=yes ;;
603: esac
1.11 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 605:
606: -without-* | --without-*)
1.11 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 608: # Reject names that are not valid shell variable names.
1.11 paf 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 parser 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=*)
1.11 paf 624: x_includes=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 631: x_libraries=$ac_optarg ;;
1.1 parser 632:
1.11 paf 633: -*) { echo "$as_me: error: unrecognized option: $ac_option
634: Try \`$0 --help' for more information." >&2
635: { (exit 1); exit 1; }; }
1.1 parser 636: ;;
637:
1.11 paf 638: *=*)
639: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
640: # Reject names that are not valid shell variable names.
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'"
646: export $ac_envvar ;;
647:
1.1 parser 648: *)
1.11 paf 649: # FIXME: should be removed in autoconf 3.0.
650: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
651: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
652: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
653: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
1.11 paf 660: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
661: { echo "$as_me: error: missing argument to $ac_option" >&2
662: { (exit 1); exit 1; }; }
1.1 parser 663: fi
664:
1.11 paf 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; }; };;
673: esac
674: done
1.1 parser 675:
1.11 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.18 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 679: do
1.11 paf 680: eval ac_val=$`echo $ac_var`
681: case $ac_val in
682: [\\/$]* | ?:[\\/]* ) ;;
683: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
684: { (exit 1); exit 1; }; };;
1.1 parser 685: esac
686: done
687:
1.11 paf 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
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
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-
1.1 parser 708:
1.11 paf 709: test "$silent" = yes && exec 6>/dev/null
1.1 parser 710:
711:
712: # Find the source files, if location was not specified.
713: if test -z "$srcdir"; then
714: ac_srcdir_defaulted=yes
715: # Try the directory containing this script, then its parent.
1.11 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.11 paf 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 parser 728: srcdir=$ac_confdir
729: if test ! -r $srcdir/$ac_unique_file; then
730: srcdir=..
731: fi
732: else
733: ac_srcdir_defaulted=no
734: fi
735: if test ! -r $srcdir/$ac_unique_file; then
736: if test "$ac_srcdir_defaulted" = yes; then
1.11 paf 737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
738: { (exit 1); exit 1; }; }
1.1 parser 739: else
1.11 paf 740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
741: { (exit 1); exit 1; }; }
1.1 parser 742: fi
743: fi
1.11 paf 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
1.15 paf 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
1.25 moko 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.11 paf 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.25 moko 800: \`configure' configures parser3 10.2 to adapt to many kinds of systems.
1.11 paf 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
814: -q, --quiet, --silent do not print \`checking...' messages
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:
820: _ACEOF
821:
822: cat <<_ACEOF
823: Installation directories:
824: --prefix=PREFIX install architecture-independent files in PREFIX
1.18 paf 825: [$ac_default_prefix]
1.11 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.18 paf 827: [PREFIX]
1.11 paf 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:
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]
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.25 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3 10.2:";;
867: esac
1.11 paf 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]
1.18 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.25 moko 875: --enable-shared[=PKGS]
876: build shared libraries [default=yes]
877: --enable-static[=PKGS]
878: build static libraries [default=yes]
879: --enable-fast-install[=PKGS]
880: optimize for fast installation [default=yes]
1.11 paf 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.25 moko 882: --enable-ltdl-install install libltdl
1.11 paf 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-oracleoci-inc=DIR DIR is the Oracle OCI includes directory
888: --with-oraclepublic-inc=DIR DIR is the Oracle public includes directory
1.23 misha 889: --with-dynamic-stdcpp link libstdc++ dynamically
890: by default, libstdc++ is linked statically
1.25 moko 891: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
892: both]
893: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
894: --with-sysroot=DIR Search for dependent libraries within DIR
895: (or the compiler's sysroot if not specified).
896: --with-included-ltdl use the GNU ltdl sources included here
897: --with-ltdl-include=DIR use the ltdl headers installed in DIR
898: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.11 paf 899:
900: Some influential environment variables:
901: CXX C++ compiler command
902: CXXFLAGS C++ compiler flags
903: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904: nonstandard directory <lib dir>
905: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906: headers in a nonstandard directory <include dir>
907: CC C compiler command
908: CFLAGS C compiler flags
1.15 paf 909: CPP C preprocessor
1.25 moko 910: CXXCPP C++ preprocessor
1.11 paf 911:
912: Use these variables to override the choices made by `configure' or to help
913: it to find libraries and programs with nonstandard names/locations.
914:
915: _ACEOF
916: fi
917:
918: if test "$ac_init_help" = "recursive"; then
919: # If there are subdirs, report their specific --help.
920: ac_popdir=`pwd`
921: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922: test -d $ac_dir || continue
923: ac_builddir=.
924:
925: if test "$ac_dir" != .; then
926: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927: # A "../" for each directory in $ac_dir_suffix.
928: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929: else
930: ac_dir_suffix= ac_top_builddir=
931: fi
932:
933: case $srcdir in
934: .) # No --srcdir option. We are building in place.
935: ac_srcdir=.
936: if test -z "$ac_top_builddir"; then
937: ac_top_srcdir=.
938: else
939: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940: fi ;;
941: [\\/]* | ?:[\\/]* ) # Absolute path.
942: ac_srcdir=$srcdir$ac_dir_suffix;
943: ac_top_srcdir=$srcdir ;;
944: *) # Relative path.
945: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946: ac_top_srcdir=$ac_top_builddir$srcdir ;;
947: esac
1.18 paf 948:
949: # Do not use `cd foo && pwd` to compute absolute paths, because
950: # the directories may not exist.
951: case `pwd` in
952: .) ac_abs_builddir="$ac_dir";;
953: *)
954: case "$ac_dir" in
955: .) ac_abs_builddir=`pwd`;;
956: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957: *) ac_abs_builddir=`pwd`/"$ac_dir";;
958: esac;;
959: esac
960: case $ac_abs_builddir in
961: .) ac_abs_top_builddir=${ac_top_builddir}.;;
962: *)
963: case ${ac_top_builddir}. in
964: .) ac_abs_top_builddir=$ac_abs_builddir;;
965: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967: esac;;
968: esac
969: case $ac_abs_builddir in
970: .) ac_abs_srcdir=$ac_srcdir;;
971: *)
972: case $ac_srcdir in
973: .) ac_abs_srcdir=$ac_abs_builddir;;
974: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976: esac;;
977: esac
978: case $ac_abs_builddir in
979: .) ac_abs_top_srcdir=$ac_top_srcdir;;
980: *)
981: case $ac_top_srcdir in
982: .) ac_abs_top_srcdir=$ac_abs_builddir;;
983: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985: esac;;
986: esac
1.11 paf 987:
988: cd $ac_dir
989: # Check for guested configure; otherwise get Cygnus style configure.
990: if test -f $ac_srcdir/configure.gnu; then
991: echo
992: $SHELL $ac_srcdir/configure.gnu --help=recursive
993: elif test -f $ac_srcdir/configure; then
994: echo
995: $SHELL $ac_srcdir/configure --help=recursive
996: elif test -f $ac_srcdir/configure.ac ||
1.18 paf 997: test -f $ac_srcdir/configure.in; then
1.11 paf 998: echo
999: $ac_configure --help
1000: else
1001: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002: fi
1003: cd $ac_popdir
1004: done
1005: fi
1.1 parser 1006:
1.11 paf 1007: test -n "$ac_init_help" && exit 0
1008: if $ac_init_version; then
1009: cat <<\_ACEOF
1.25 moko 1010: parser3 configure 10.2
1011: generated by GNU Autoconf 2.59
1.11 paf 1012:
1.18 paf 1013: Copyright (C) 2003 Free Software Foundation, Inc.
1.11 paf 1014: This configure script is free software; the Free Software Foundation
1015: gives unlimited permission to copy, distribute and modify it.
1016: _ACEOF
1017: exit 0
1018: fi
1019: exec 5>config.log
1020: cat >&5 <<_ACEOF
1021: This file contains any messages produced by compilers while
1022: running configure, to aid debugging if configure makes a mistake.
1023:
1.25 moko 1024: It was created by parser3 $as_me 10.2, which was
1.18 paf 1025: generated by GNU Autoconf 2.59. Invocation command line was
1.11 paf 1026:
1027: $ $0 $@
1028:
1029: _ACEOF
1030: {
1031: cat <<_ASUNAME
1032: ## --------- ##
1033: ## Platform. ##
1034: ## --------- ##
1035:
1036: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041:
1042: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044:
1045: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052:
1053: _ASUNAME
1054:
1055: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056: for as_dir in $PATH
1057: do
1058: IFS=$as_save_IFS
1059: test -z "$as_dir" && as_dir=.
1060: echo "PATH: $as_dir"
1061: done
1062:
1063: } >&5
1064:
1065: cat >&5 <<_ACEOF
1066:
1067:
1068: ## ----------- ##
1069: ## Core tests. ##
1070: ## ----------- ##
1071:
1072: _ACEOF
1073:
1074:
1075: # Keep a trace of the command line.
1076: # Strip out --no-create and --no-recursion so they do not pile up.
1077: # Strip out --silent because we don't want to record it for future runs.
1078: # Also quote any args containing shell meta-characters.
1079: # Make two passes to allow for proper duplicate-argument suppression.
1080: ac_configure_args=
1081: ac_configure_args0=
1082: ac_configure_args1=
1083: ac_sep=
1084: ac_must_keep_next=false
1085: for ac_pass in 1 2
1086: do
1087: for ac_arg
1088: do
1089: case $ac_arg in
1090: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092: | -silent | --silent | --silen | --sile | --sil)
1093: continue ;;
1094: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096: esac
1097: case $ac_pass in
1098: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099: 2)
1100: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101: if test $ac_must_keep_next = true; then
1.18 paf 1102: ac_must_keep_next=false # Got value, back to normal.
1.11 paf 1103: else
1.18 paf 1104: case $ac_arg in
1105: *=* | --config-cache | -C | -disable-* | --disable-* \
1106: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108: | -with-* | --with-* | -without-* | --without-* | --x)
1109: case "$ac_configure_args0 " in
1110: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111: esac
1112: ;;
1113: -* ) ac_must_keep_next=true ;;
1114: esac
1.11 paf 1115: fi
1116: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117: # Get rid of the leading space.
1118: ac_sep=" "
1119: ;;
1120: esac
1121: done
1122: done
1123: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125:
1126: # When interrupted or exit'd, cleanup temporary files, and complete
1127: # config.log. We remove comments because anyway the quotes in there
1128: # would cause problems or look ugly.
1129: # WARNING: Be sure not to use single quotes in there, as some shells,
1130: # such as our DU 5.0 friend, will then `close' the trap.
1131: trap 'exit_status=$?
1132: # Save into config.log some information that might help in debugging.
1133: {
1134: echo
1135:
1136: cat <<\_ASBOX
1137: ## ---------------- ##
1138: ## Cache variables. ##
1139: ## ---------------- ##
1140: _ASBOX
1141: echo
1142: # The following way of writing the cache mishandles newlines in values,
1143: {
1144: (set) 2>&1 |
1145: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146: *ac_space=\ *)
1147: sed -n \
1.18 paf 1148: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.11 paf 1150: ;;
1151: *)
1152: sed -n \
1.18 paf 1153: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.11 paf 1154: ;;
1155: esac;
1156: }
1157: echo
1158:
1159: cat <<\_ASBOX
1160: ## ----------------- ##
1161: ## Output variables. ##
1162: ## ----------------- ##
1163: _ASBOX
1164: echo
1165: for ac_var in $ac_subst_vars
1166: do
1167: eval ac_val=$`echo $ac_var`
1168: echo "$ac_var='"'"'$ac_val'"'"'"
1169: done | sort
1170: echo
1171:
1172: if test -n "$ac_subst_files"; then
1173: cat <<\_ASBOX
1174: ## ------------- ##
1175: ## Output files. ##
1176: ## ------------- ##
1177: _ASBOX
1178: echo
1179: for ac_var in $ac_subst_files
1180: do
1181: eval ac_val=$`echo $ac_var`
1.18 paf 1182: echo "$ac_var='"'"'$ac_val'"'"'"
1.11 paf 1183: done | sort
1184: echo
1185: fi
1186:
1187: if test -s confdefs.h; then
1188: cat <<\_ASBOX
1189: ## ----------- ##
1190: ## confdefs.h. ##
1191: ## ----------- ##
1192: _ASBOX
1193: echo
1194: sed "/^$/d" confdefs.h | sort
1195: echo
1196: fi
1197: test "$ac_signal" != 0 &&
1198: echo "$as_me: caught signal $ac_signal"
1199: echo "$as_me: exit $exit_status"
1200: } >&5
1.18 paf 1201: rm -f core *.core &&
1.11 paf 1202: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203: exit $exit_status
1204: ' 0
1205: for ac_signal in 1 2 13 15; do
1206: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207: done
1208: ac_signal=0
1209:
1210: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211: rm -rf conftest* confdefs.h
1212: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213: echo >confdefs.h
1214:
1215: # Predefined preprocessor variables.
1216:
1217: cat >>confdefs.h <<_ACEOF
1218: #define PACKAGE_NAME "$PACKAGE_NAME"
1219: _ACEOF
1220:
1221:
1222: cat >>confdefs.h <<_ACEOF
1223: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224: _ACEOF
1225:
1226:
1227: cat >>confdefs.h <<_ACEOF
1228: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229: _ACEOF
1230:
1231:
1232: cat >>confdefs.h <<_ACEOF
1233: #define PACKAGE_STRING "$PACKAGE_STRING"
1234: _ACEOF
1235:
1236:
1237: cat >>confdefs.h <<_ACEOF
1238: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239: _ACEOF
1240:
1241:
1242: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1243: # Prefer explicitly selected file to automatically selected ones.
1244: if test -z "$CONFIG_SITE"; then
1245: if test "x$prefix" != xNONE; then
1246: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247: else
1248: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249: fi
1250: fi
1251: for ac_site_file in $CONFIG_SITE; do
1252: if test -r "$ac_site_file"; then
1.11 paf 1253: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254: echo "$as_me: loading site script $ac_site_file" >&6;}
1255: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1256: . "$ac_site_file"
1257: fi
1258: done
1259:
1260: if test -r "$cache_file"; then
1.11 paf 1261: # Some versions of bash will fail to source /dev/null (special
1262: # files actually), so we avoid doing that.
1263: if test -f "$cache_file"; then
1264: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265: echo "$as_me: loading cache $cache_file" >&6;}
1266: case $cache_file in
1267: [\\/]* | ?:[\\/]* ) . $cache_file;;
1268: *) . ./$cache_file;;
1269: esac
1270: fi
1.1 parser 1271: else
1.11 paf 1272: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273: echo "$as_me: creating cache $cache_file" >&6;}
1274: >$cache_file
1275: fi
1276:
1277: # Check that the precious variables saved in the cache have kept the same
1278: # value.
1279: ac_cache_corrupted=false
1280: for ac_var in `(set) 2>&1 |
1.18 paf 1281: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.11 paf 1282: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283: eval ac_new_set=\$ac_env_${ac_var}_set
1284: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285: eval ac_new_val="\$ac_env_${ac_var}_value"
1286: case $ac_old_set,$ac_new_set in
1287: set,)
1288: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290: ac_cache_corrupted=: ;;
1291: ,set)
1292: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294: ac_cache_corrupted=: ;;
1295: ,);;
1296: *)
1297: if test "x$ac_old_val" != "x$ac_new_val"; then
1.18 paf 1298: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.11 paf 1299: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.18 paf 1300: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.11 paf 1301: echo "$as_me: former value: $ac_old_val" >&2;}
1.18 paf 1302: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.11 paf 1303: echo "$as_me: current value: $ac_new_val" >&2;}
1.18 paf 1304: ac_cache_corrupted=:
1.11 paf 1305: fi;;
1306: esac
1307: # Pass precious variables to config.status.
1308: if test "$ac_new_set" = set; then
1309: case $ac_new_val in
1310: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312: *) ac_arg=$ac_var=$ac_new_val ;;
1313: esac
1314: case " $ac_configure_args " in
1315: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317: esac
1318: fi
1319: done
1320: if $ac_cache_corrupted; then
1321: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325: { (exit 1); exit 1; }; }
1.1 parser 1326: fi
1327:
1328: ac_ext=c
1329: ac_cpp='$CPP $CPPFLAGS'
1.11 paf 1330: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1333:
1334:
1.11 paf 1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1351:
1.25 moko 1352:
1353:
1354:
1355:
1356:
1357:
1358:
1359:
1360:
1361: ac_config_headers="$ac_config_headers config_auto.h"
1362:
1363:
1.18 paf 1364: am__api_version="1.9"
1.1 parser 1365: ac_aux_dir=
1366: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367: if test -f $ac_dir/install-sh; then
1368: ac_aux_dir=$ac_dir
1369: ac_install_sh="$ac_aux_dir/install-sh -c"
1370: break
1371: elif test -f $ac_dir/install.sh; then
1372: ac_aux_dir=$ac_dir
1373: ac_install_sh="$ac_aux_dir/install.sh -c"
1374: break
1.11 paf 1375: elif test -f $ac_dir/shtool; then
1376: ac_aux_dir=$ac_dir
1377: ac_install_sh="$ac_aux_dir/shtool install -c"
1378: break
1.1 parser 1379: fi
1380: done
1381: if test -z "$ac_aux_dir"; then
1.11 paf 1382: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384: { (exit 1); exit 1; }; }
1385: fi
1386: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1389:
1390: # Find a good install program. We prefer a C program (faster),
1391: # so one script is as good as another. But avoid the broken or
1392: # incompatible versions:
1393: # SysV /etc/install, /usr/sbin/install
1394: # SunOS /usr/etc/install
1395: # IRIX /sbin/install
1396: # AIX /bin/install
1.11 paf 1397: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1398: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 1401: # OS/2's system install, which has a completely different semantic
1.1 parser 1402: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1403: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1404: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1405: if test -z "$INSTALL"; then
1.11 paf 1406: if test "${ac_cv_path_install+set}" = set; then
1407: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1408: else
1.11 paf 1409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410: for as_dir in $PATH
1411: do
1412: IFS=$as_save_IFS
1413: test -z "$as_dir" && as_dir=.
1414: # Account for people who put trailing slashes in PATH elements.
1415: case $as_dir/ in
1416: ./ | .// | /cC/* | \
1417: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.18 paf 1418: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.11 paf 1419: /usr/ucb/* ) ;;
1420: *)
1421: # OSF1 and SCO ODT 3.0 have their own names for install.
1422: # Don't use installbsd from OSF since it installs stuff as root
1423: # by default.
1424: for ac_prog in ginstall scoinst install; do
1425: for ac_exec_ext in '' $ac_executable_extensions; do
1.18 paf 1426: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1427: if test $ac_prog = install &&
1428: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429: # AIX install. It has an incompatible calling convention.
1430: :
1431: elif test $ac_prog = install &&
1432: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1433: # program-specific install script used by HP pwplus--don't use.
1434: :
1435: else
1436: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1437: break 3
1438: fi
1439: fi
1.1 parser 1440: done
1.11 paf 1441: done
1442: ;;
1443: esac
1444: done
1445:
1.1 parser 1446:
1447: fi
1448: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 1449: INSTALL=$ac_cv_path_install
1.1 parser 1450: else
1451: # As a last resort, use the slow shell script. We don't cache a
1452: # path for INSTALL within a source directory, because that will
1453: # break other packages using the cache if that directory is
1454: # removed, or if the path is relative.
1.11 paf 1455: INSTALL=$ac_install_sh
1.1 parser 1456: fi
1457: fi
1.11 paf 1458: echo "$as_me:$LINENO: result: $INSTALL" >&5
1459: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1460:
1461: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1462: # It thinks the first close brace ends the variable substitution.
1463: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464:
1.11 paf 1465: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1466:
1467: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468:
1.11 paf 1469: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1470: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1471: # Just in case
1472: sleep 1
1.11 paf 1473: echo timestamp > conftest.file
1.1 parser 1474: # Do `set' in a subshell so we don't clobber the current shell's
1475: # arguments. Must try -L first in case configure is actually a
1476: # symlink; some systems play weird games with the mod time of symlinks
1477: # (eg FreeBSD returns the mod time of the symlink's containing
1478: # directory).
1479: if (
1.11 paf 1480: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1481: if test "$*" = "X"; then
1482: # -L didn't work.
1.11 paf 1483: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1484: fi
1.11 paf 1485: rm -f conftest.file
1486: if test "$*" != "X $srcdir/configure conftest.file" \
1487: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1488:
1489: # If neither matched, then we have a broken ls. This can happen
1490: # if, for instance, CONFIG_SHELL is bash and it inherits a
1491: # broken ls alias from the environment. This has actually
1492: # happened. Such a system could not be considered "sane".
1.11 paf 1493: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1494: alias in your environment" >&5
1495: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1496: alias in your environment" >&2;}
1497: { (exit 1); exit 1; }; }
1.1 parser 1498: fi
1499:
1.11 paf 1500: test "$2" = conftest.file
1.1 parser 1501: )
1502: then
1503: # Ok.
1504: :
1505: else
1.11 paf 1506: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1507: Check your system clock" >&5
1508: echo "$as_me: error: newly created file is older than distributed files!
1509: Check your system clock" >&2;}
1510: { (exit 1); exit 1; }; }
1.1 parser 1511: fi
1.11 paf 1512: echo "$as_me:$LINENO: result: yes" >&5
1513: echo "${ECHO_T}yes" >&6
1.1 parser 1514: test "$program_prefix" != NONE &&
1.11 paf 1515: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1516: # Use a double $ so make ignores it.
1517: test "$program_suffix" != NONE &&
1.11 paf 1518: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1519: # Double any \ or $. echo might interpret backslashes.
1520: # By default was `s,x,x', remove it if useless.
1521: cat <<\_ACEOF >conftest.sed
1522: s/[\\$]/&&/g;s/;s,x,x,$//
1523: _ACEOF
1524: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1525: rm conftest.sed
1526:
1527: # expand $ac_aux_dir to an absolute path
1528: am_aux_dir=`cd $ac_aux_dir && pwd`
1529:
1530: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531: # Use eval to expand $SHELL
1532: if eval "$MISSING --run true"; then
1533: am_missing_run="$MISSING --run "
1534: else
1535: am_missing_run=
1536: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1538: fi
1539:
1.18 paf 1540: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1541: # We used to keeping the `.' as first argument, in order to
1542: # allow $(mkdir_p) to be used without argument. As in
1543: # $(mkdir_p) $(somedir)
1544: # where $(somedir) is conditionally defined. However this is wrong
1545: # for two reasons:
1546: # 1. if the package is installed by a user who cannot write `.'
1547: # make install will fail,
1548: # 2. the above comment should most certainly read
1549: # $(mkdir_p) $(DESTDIR)$(somedir)
1550: # so it does not work when $(somedir) is undefined and
1551: # $(DESTDIR) is not.
1552: # To support the latter case, we have to write
1553: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1554: # so the `.' trick is pointless.
1555: mkdir_p='mkdir -p --'
1556: else
1557: # On NextStep and OpenStep, the `mkdir' command does not
1558: # recognize any option. It will interpret all options as
1559: # directories to create, and then abort because `.' already
1560: # exists.
1561: for d in ./-p ./--version;
1562: do
1563: test -d $d && rmdir $d
1564: done
1565: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1566: if test -f "$ac_aux_dir/mkinstalldirs"; then
1567: mkdir_p='$(mkinstalldirs)'
1568: else
1569: mkdir_p='$(install_sh) -d'
1570: fi
1571: fi
1572:
1.11 paf 1573: for ac_prog in gawk mawk nawk awk
1574: do
1575: # Extract the first word of "$ac_prog", so it can be a program name with args.
1576: set dummy $ac_prog; ac_word=$2
1577: echo "$as_me:$LINENO: checking for $ac_word" >&5
1578: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579: if test "${ac_cv_prog_AWK+set}" = set; then
1580: echo $ECHO_N "(cached) $ECHO_C" >&6
1581: else
1582: if test -n "$AWK"; then
1583: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1584: else
1585: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586: for as_dir in $PATH
1587: do
1588: IFS=$as_save_IFS
1589: test -z "$as_dir" && as_dir=.
1590: for ac_exec_ext in '' $ac_executable_extensions; do
1591: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592: ac_cv_prog_AWK="$ac_prog"
1593: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594: break 2
1595: fi
1596: done
1597: done
1598:
1599: fi
1600: fi
1601: AWK=$ac_cv_prog_AWK
1602: if test -n "$AWK"; then
1603: echo "$as_me:$LINENO: result: $AWK" >&5
1604: echo "${ECHO_T}$AWK" >&6
1605: else
1606: echo "$as_me:$LINENO: result: no" >&5
1607: echo "${ECHO_T}no" >&6
1608: fi
1.1 parser 1609:
1.11 paf 1610: test -n "$AWK" && break
1611: done
1.1 parser 1612:
1.11 paf 1613: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1614: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.18 paf 1615: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.11 paf 1616: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1617: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1618: else
1.11 paf 1619: cat >conftest.make <<\_ACEOF
1.1 parser 1620: all:
1.11 paf 1621: @echo 'ac_maketemp="$(MAKE)"'
1622: _ACEOF
1.1 parser 1623: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.11 paf 1624: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1625: if test -n "$ac_maketemp"; then
1626: eval ac_cv_prog_make_${ac_make}_set=yes
1627: else
1628: eval ac_cv_prog_make_${ac_make}_set=no
1629: fi
1.11 paf 1630: rm -f conftest.make
1.1 parser 1631: fi
1632: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.11 paf 1633: echo "$as_me:$LINENO: result: yes" >&5
1634: echo "${ECHO_T}yes" >&6
1.1 parser 1635: SET_MAKE=
1636: else
1.11 paf 1637: echo "$as_me:$LINENO: result: no" >&5
1638: echo "${ECHO_T}no" >&6
1.1 parser 1639: SET_MAKE="MAKE=${MAKE-make}"
1640: fi
1641:
1.18 paf 1642: rm -rf .tst 2>/dev/null
1643: mkdir .tst 2>/dev/null
1644: if test -d .tst; then
1645: am__leading_dot=.
1646: else
1647: am__leading_dot=_
1648: fi
1649: rmdir .tst 2>/dev/null
1650:
1651: # test to see if srcdir already configured
1.11 paf 1652: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1653: test -f $srcdir/config.status; then
1654: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1655: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1656: { (exit 1); exit 1; }; }
1657: fi
1658:
1659: # test whether we have cygpath
1660: if test -z "$CYGPATH_W"; then
1661: if (cygpath --version) >/dev/null 2>/dev/null; then
1662: CYGPATH_W='cygpath -w'
1663: else
1664: CYGPATH_W=echo
1665: fi
1666: fi
1667:
1668:
1669: # Define the identity of the package.
1.25 moko 1670: PACKAGE='parser3'
1671: VERSION='10.2'
1.1 parser 1672:
1673:
1.25 moko 1674: cat >>confdefs.h <<_ACEOF
1675: #define PACKAGE "$PACKAGE"
1676: _ACEOF
1677:
1678:
1679: cat >>confdefs.h <<_ACEOF
1680: #define VERSION "$VERSION"
1681: _ACEOF
1682:
1.11 paf 1683: # Some tools Automake needs.
1684:
1685: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1686:
1687:
1688: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1689:
1690:
1691: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1692:
1693:
1694: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1695:
1696:
1697: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1698:
1.11 paf 1699: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1700:
1.11 paf 1701: # Installed binaries are usually stripped using `strip' when the user
1702: # run `make install-strip'. However `strip' might not be the right
1703: # tool to use in cross-compilation environments, therefore Automake
1704: # will honor the `STRIP' environment variable to overrule this program.
1705: if test "$cross_compiling" != no; then
1706: if test -n "$ac_tool_prefix"; then
1707: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1708: set dummy ${ac_tool_prefix}strip; ac_word=$2
1709: echo "$as_me:$LINENO: checking for $ac_word" >&5
1710: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711: if test "${ac_cv_prog_STRIP+set}" = set; then
1712: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1713: else
1.11 paf 1714: if test -n "$STRIP"; then
1715: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1716: else
1717: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718: for as_dir in $PATH
1719: do
1720: IFS=$as_save_IFS
1721: test -z "$as_dir" && as_dir=.
1722: for ac_exec_ext in '' $ac_executable_extensions; do
1723: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1725: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726: break 2
1727: fi
1728: done
1729: done
1730:
1731: fi
1732: fi
1733: STRIP=$ac_cv_prog_STRIP
1734: if test -n "$STRIP"; then
1735: echo "$as_me:$LINENO: result: $STRIP" >&5
1736: echo "${ECHO_T}$STRIP" >&6
1737: else
1738: echo "$as_me:$LINENO: result: no" >&5
1739: echo "${ECHO_T}no" >&6
1.1 parser 1740: fi
1741:
1.11 paf 1742: fi
1743: if test -z "$ac_cv_prog_STRIP"; then
1744: ac_ct_STRIP=$STRIP
1745: # Extract the first word of "strip", so it can be a program name with args.
1746: set dummy strip; ac_word=$2
1747: echo "$as_me:$LINENO: checking for $ac_word" >&5
1748: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1750: echo $ECHO_N "(cached) $ECHO_C" >&6
1751: else
1752: if test -n "$ac_ct_STRIP"; then
1753: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1754: else
1.11 paf 1755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756: for as_dir in $PATH
1757: do
1758: IFS=$as_save_IFS
1759: test -z "$as_dir" && as_dir=.
1760: for ac_exec_ext in '' $ac_executable_extensions; do
1761: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762: ac_cv_prog_ac_ct_STRIP="strip"
1763: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764: break 2
1765: fi
1766: done
1767: done
1768:
1769: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1770: fi
1.1 parser 1771: fi
1.11 paf 1772: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1773: if test -n "$ac_ct_STRIP"; then
1774: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1775: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1776: else
1.11 paf 1777: echo "$as_me:$LINENO: result: no" >&5
1778: echo "${ECHO_T}no" >&6
1.1 parser 1779: fi
1780:
1.11 paf 1781: STRIP=$ac_ct_STRIP
1.1 parser 1782: else
1.11 paf 1783: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1784: fi
1785:
1786: fi
1.11 paf 1787: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1788:
1.11 paf 1789: # We need awk for the "check" target. The system "awk" is bad on
1790: # some platforms.
1.18 paf 1791: # Always define AMTAR for backward compatibility.
1792:
1793: AMTAR=${AMTAR-"${am_missing_run}tar"}
1794:
1795: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1796:
1797:
1.1 parser 1798:
1799:
1800:
1801:
1802:
1.2 parser 1803: # Check whether --with-oracleoci-inc or --without-oracleoci-inc was given.
1.1 parser 1804: if test "${with_oracleoci_inc+set}" = set; then
1805: withval="$with_oracleoci_inc"
1.11 paf 1806:
1.1 parser 1807: else
1808: withval="$ORACLE_HOME/rdbms/demo"
1809:
1.11 paf 1810: fi;
1.25 moko 1811:
1.2 parser 1812: ORACLE_OCI_INC=$withval
1.1 parser 1813:
1814:
1.2 parser 1815: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
1.11 paf 1816: { { echo "$as_me:$LINENO: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&5
1817: echo "$as_me: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&2;}
1818: { (exit 1); exit 1; }; }
1.2 parser 1819: fi
1820:
1821:
1822: # Check whether --with-oraclepublic-inc or --without-oraclepublic-inc was given.
1.1 parser 1823: if test "${with_oraclepublic_inc+set}" = set; then
1824: withval="$with_oraclepublic_inc"
1.11 paf 1825:
1.1 parser 1826: else
1827: withval="$ORACLE_HOME/network/public"
1828:
1.11 paf 1829: fi;
1.25 moko 1830:
1.2 parser 1831: ORACLE_PUBLIC_INC=$withval
1.1 parser 1832:
1833:
1.2 parser 1834: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
1.11 paf 1835: { { echo "$as_me:$LINENO: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&5
1836: echo "$as_me: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&2;}
1837: { (exit 1); exit 1; }; }
1.2 parser 1838: fi
1839:
1.1 parser 1840:
1.23 misha 1841: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
1842: if test "${with_dynamic_stdcpp+set}" = set; then
1843: withval="$with_dynamic_stdcpp"
1844:
1845: LDFLAGS="-lstdc++"
1846:
1847: else
1848:
1849: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
1850:
1851: fi;
1852:
1853:
1854:
1.1 parser 1855: # Find a good install program. We prefer a C program (faster),
1856: # so one script is as good as another. But avoid the broken or
1857: # incompatible versions:
1858: # SysV /etc/install, /usr/sbin/install
1859: # SunOS /usr/etc/install
1860: # IRIX /sbin/install
1861: # AIX /bin/install
1.11 paf 1862: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1863: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1864: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1865: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 1866: # OS/2's system install, which has a completely different semantic
1.1 parser 1867: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1868: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1869: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1870: if test -z "$INSTALL"; then
1.11 paf 1871: if test "${ac_cv_path_install+set}" = set; then
1872: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1873: else
1.11 paf 1874: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875: for as_dir in $PATH
1876: do
1877: IFS=$as_save_IFS
1878: test -z "$as_dir" && as_dir=.
1879: # Account for people who put trailing slashes in PATH elements.
1880: case $as_dir/ in
1881: ./ | .// | /cC/* | \
1882: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.18 paf 1883: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.11 paf 1884: /usr/ucb/* ) ;;
1885: *)
1886: # OSF1 and SCO ODT 3.0 have their own names for install.
1887: # Don't use installbsd from OSF since it installs stuff as root
1888: # by default.
1889: for ac_prog in ginstall scoinst install; do
1890: for ac_exec_ext in '' $ac_executable_extensions; do
1.18 paf 1891: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1892: if test $ac_prog = install &&
1893: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1894: # AIX install. It has an incompatible calling convention.
1895: :
1896: elif test $ac_prog = install &&
1897: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1898: # program-specific install script used by HP pwplus--don't use.
1899: :
1900: else
1901: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1902: break 3
1903: fi
1904: fi
1.1 parser 1905: done
1.11 paf 1906: done
1907: ;;
1908: esac
1909: done
1910:
1.1 parser 1911:
1912: fi
1913: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 1914: INSTALL=$ac_cv_path_install
1.1 parser 1915: else
1916: # As a last resort, use the slow shell script. We don't cache a
1917: # path for INSTALL within a source directory, because that will
1918: # break other packages using the cache if that directory is
1919: # removed, or if the path is relative.
1.11 paf 1920: INSTALL=$ac_install_sh
1.1 parser 1921: fi
1922: fi
1.11 paf 1923: echo "$as_me:$LINENO: result: $INSTALL" >&5
1924: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1925:
1926: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1927: # It thinks the first close brace ends the variable substitution.
1928: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1929:
1.11 paf 1930: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1931:
1932: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1933:
1.11 paf 1934: ac_ext=cc
1.1 parser 1935: ac_cpp='$CXXCPP $CPPFLAGS'
1.11 paf 1936: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1939: if test -n "$ac_tool_prefix"; then
1940: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1941: do
1942: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1943: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1944: echo "$as_me:$LINENO: checking for $ac_word" >&5
1945: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946: if test "${ac_cv_prog_CXX+set}" = set; then
1947: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1948: else
1949: if test -n "$CXX"; then
1950: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1951: else
1.11 paf 1952: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953: for as_dir in $PATH
1954: do
1955: IFS=$as_save_IFS
1956: test -z "$as_dir" && as_dir=.
1957: for ac_exec_ext in '' $ac_executable_extensions; do
1958: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1960: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961: break 2
1962: fi
1963: done
1964: done
1965:
1.1 parser 1966: fi
1967: fi
1.11 paf 1968: CXX=$ac_cv_prog_CXX
1.1 parser 1969: if test -n "$CXX"; then
1.11 paf 1970: echo "$as_me:$LINENO: result: $CXX" >&5
1971: echo "${ECHO_T}$CXX" >&6
1.1 parser 1972: else
1.11 paf 1973: echo "$as_me:$LINENO: result: no" >&5
1974: echo "${ECHO_T}no" >&6
1.1 parser 1975: fi
1976:
1.11 paf 1977: test -n "$CXX" && break
1978: done
1979: fi
1980: if test -z "$CXX"; then
1981: ac_ct_CXX=$CXX
1982: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1983: do
1984: # Extract the first word of "$ac_prog", so it can be a program name with args.
1985: set dummy $ac_prog; ac_word=$2
1986: echo "$as_me:$LINENO: checking for $ac_word" >&5
1987: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1989: echo $ECHO_N "(cached) $ECHO_C" >&6
1990: else
1991: if test -n "$ac_ct_CXX"; then
1992: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1993: else
1994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995: for as_dir in $PATH
1996: do
1997: IFS=$as_save_IFS
1998: test -z "$as_dir" && as_dir=.
1999: for ac_exec_ext in '' $ac_executable_extensions; do
2000: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001: ac_cv_prog_ac_ct_CXX="$ac_prog"
2002: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003: break 2
2004: fi
2005: done
1.1 parser 2006: done
2007:
1.11 paf 2008: fi
2009: fi
2010: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2011: if test -n "$ac_ct_CXX"; then
2012: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2013: echo "${ECHO_T}$ac_ct_CXX" >&6
2014: else
2015: echo "$as_me:$LINENO: result: no" >&5
2016: echo "${ECHO_T}no" >&6
2017: fi
1.1 parser 2018:
1.11 paf 2019: test -n "$ac_ct_CXX" && break
2020: done
2021: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2022:
1.11 paf 2023: CXX=$ac_ct_CXX
2024: fi
1.1 parser 2025:
2026:
1.11 paf 2027: # Provide some information about the compiler.
2028: echo "$as_me:$LINENO:" \
2029: "checking for C++ compiler version" >&5
2030: ac_compiler=`set X $ac_compile; echo $2`
2031: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2032: (eval $ac_compiler --version </dev/null >&5) 2>&5
2033: ac_status=$?
2034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035: (exit $ac_status); }
2036: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2037: (eval $ac_compiler -v </dev/null >&5) 2>&5
2038: ac_status=$?
2039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040: (exit $ac_status); }
2041: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2042: (eval $ac_compiler -V </dev/null >&5) 2>&5
2043: ac_status=$?
2044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045: (exit $ac_status); }
2046:
2047: cat >conftest.$ac_ext <<_ACEOF
2048: /* confdefs.h. */
2049: _ACEOF
2050: cat confdefs.h >>conftest.$ac_ext
2051: cat >>conftest.$ac_ext <<_ACEOF
2052: /* end confdefs.h. */
2053:
2054: int
2055: main ()
2056: {
2057:
2058: ;
2059: return 0;
2060: }
2061: _ACEOF
2062: ac_clean_files_save=$ac_clean_files
2063: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2064: # Try to create an executable without -o first, disregard a.out.
2065: # It will help us diagnose broken compilers, and finding out an intuition
2066: # of exeext.
1.18 paf 2067: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2068: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.11 paf 2069: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2071: (eval $ac_link_default) 2>&5
2072: ac_status=$?
2073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074: (exit $ac_status); }; then
2075: # Find the output, starting from the most likely. This scheme is
2076: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077: # resort.
2078:
2079: # Be careful to initialize this variable, since it used to be cached.
2080: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2081: ac_cv_exeext=
2082: # b.out is created by i960 compilers.
2083: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2084: do
2085: test -f "$ac_file" || continue
2086: case $ac_file in
2087: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.18 paf 2088: ;;
1.11 paf 2089: conftest.$ac_ext )
1.18 paf 2090: # This is the source file.
2091: ;;
1.11 paf 2092: [ab].out )
1.18 paf 2093: # We found the default executable, but exeext='' is most
2094: # certainly right.
2095: break;;
1.11 paf 2096: *.* )
1.18 paf 2097: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2098: # FIXME: I believe we export ac_cv_exeext for Libtool,
2099: # but it would be cool to find out if it's true. Does anybody
2100: # maintain Libtool? --akim.
2101: export ac_cv_exeext
2102: break;;
1.11 paf 2103: * )
1.18 paf 2104: break;;
1.11 paf 2105: esac
2106: done
2107: else
2108: echo "$as_me: failed program was:" >&5
2109: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2110:
1.11 paf 2111: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2112: See \`config.log' for more details." >&5
2113: echo "$as_me: error: C++ compiler cannot create executables
2114: See \`config.log' for more details." >&2;}
2115: { (exit 77); exit 77; }; }
2116: fi
2117:
2118: ac_exeext=$ac_cv_exeext
2119: echo "$as_me:$LINENO: result: $ac_file" >&5
2120: echo "${ECHO_T}$ac_file" >&6
2121:
2122: # Check the compiler produces executables we can run. If not, either
2123: # the compiler is broken, or we cross compile.
2124: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2125: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2126: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2127: # If not cross compiling, check that we can run a simple program.
2128: if test "$cross_compiling" != yes; then
2129: if { ac_try='./$ac_file'
2130: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131: (eval $ac_try) 2>&5
2132: ac_status=$?
2133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134: (exit $ac_status); }; }; then
2135: cross_compiling=no
2136: else
2137: if test "$cross_compiling" = maybe; then
2138: cross_compiling=yes
2139: else
2140: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2141: If you meant to cross compile, use \`--host'.
2142: See \`config.log' for more details." >&5
2143: echo "$as_me: error: cannot run C++ compiled programs.
2144: If you meant to cross compile, use \`--host'.
2145: See \`config.log' for more details." >&2;}
2146: { (exit 1); exit 1; }; }
2147: fi
1.1 parser 2148: fi
1.11 paf 2149: fi
2150: echo "$as_me:$LINENO: result: yes" >&5
2151: echo "${ECHO_T}yes" >&6
2152:
2153: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2154: ac_clean_files=$ac_clean_files_save
2155: # Check the compiler produces executables we can run. If not, either
2156: # the compiler is broken, or we cross compile.
2157: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2158: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2159: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2160: echo "${ECHO_T}$cross_compiling" >&6
2161:
2162: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2163: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2164: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2165: (eval $ac_link) 2>&5
2166: ac_status=$?
2167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168: (exit $ac_status); }; then
2169: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2170: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2171: # work properly (i.e., refer to `conftest.exe'), while it won't with
2172: # `rm'.
2173: for ac_file in conftest.exe conftest conftest.*; do
2174: test -f "$ac_file" || continue
2175: case $ac_file in
2176: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2177: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.18 paf 2178: export ac_cv_exeext
2179: break;;
1.11 paf 2180: * ) break;;
2181: esac
2182: done
1.1 parser 2183: else
1.11 paf 2184: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2185: See \`config.log' for more details." >&5
2186: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2187: See \`config.log' for more details." >&2;}
2188: { (exit 1); exit 1; }; }
2189: fi
2190:
2191: rm -f conftest$ac_cv_exeext
2192: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2193: echo "${ECHO_T}$ac_cv_exeext" >&6
2194:
2195: rm -f conftest.$ac_ext
2196: EXEEXT=$ac_cv_exeext
2197: ac_exeext=$EXEEXT
2198: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2199: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2200: if test "${ac_cv_objext+set}" = set; then
2201: echo $ECHO_N "(cached) $ECHO_C" >&6
2202: else
2203: cat >conftest.$ac_ext <<_ACEOF
2204: /* confdefs.h. */
2205: _ACEOF
2206: cat confdefs.h >>conftest.$ac_ext
2207: cat >>conftest.$ac_ext <<_ACEOF
2208: /* end confdefs.h. */
2209:
2210: int
2211: main ()
2212: {
2213:
2214: ;
2215: return 0;
2216: }
2217: _ACEOF
2218: rm -f conftest.o conftest.obj
2219: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220: (eval $ac_compile) 2>&5
2221: ac_status=$?
2222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223: (exit $ac_status); }; then
2224: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2225: case $ac_file in
2226: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2227: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2228: break;;
2229: esac
2230: done
1.1 parser 2231: else
1.11 paf 2232: echo "$as_me: failed program was:" >&5
2233: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2234:
1.11 paf 2235: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2236: See \`config.log' for more details." >&5
2237: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2238: See \`config.log' for more details." >&2;}
2239: { (exit 1); exit 1; }; }
2240: fi
2241:
2242: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2243: fi
2244: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2245: echo "${ECHO_T}$ac_cv_objext" >&6
2246: OBJEXT=$ac_cv_objext
2247: ac_objext=$OBJEXT
2248: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2249: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2250: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2251: echo $ECHO_N "(cached) $ECHO_C" >&6
2252: else
2253: cat >conftest.$ac_ext <<_ACEOF
2254: /* confdefs.h. */
2255: _ACEOF
2256: cat confdefs.h >>conftest.$ac_ext
2257: cat >>conftest.$ac_ext <<_ACEOF
2258: /* end confdefs.h. */
2259:
2260: int
2261: main ()
2262: {
2263: #ifndef __GNUC__
2264: choke me
2265: #endif
1.1 parser 2266:
1.11 paf 2267: ;
2268: return 0;
2269: }
2270: _ACEOF
2271: rm -f conftest.$ac_objext
2272: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2273: (eval $ac_compile) 2>conftest.er1
1.11 paf 2274: ac_status=$?
1.18 paf 2275: grep -v '^ *+' conftest.er1 >conftest.err
2276: rm -f conftest.er1
2277: cat conftest.err >&5
1.11 paf 2278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279: (exit $ac_status); } &&
1.18 paf 2280: { ac_try='test -z "$ac_cxx_werror_flag"
2281: || test ! -s conftest.err'
2282: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283: (eval $ac_try) 2>&5
2284: ac_status=$?
2285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286: (exit $ac_status); }; } &&
2287: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2288: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289: (eval $ac_try) 2>&5
2290: ac_status=$?
2291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292: (exit $ac_status); }; }; then
2293: ac_compiler_gnu=yes
2294: else
2295: echo "$as_me: failed program was:" >&5
2296: sed 's/^/| /' conftest.$ac_ext >&5
2297:
2298: ac_compiler_gnu=no
2299: fi
1.18 paf 2300: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2301: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2302:
2303: fi
2304: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2305: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2306: GXX=`test $ac_compiler_gnu = yes && echo yes`
2307: ac_test_CXXFLAGS=${CXXFLAGS+set}
2308: ac_save_CXXFLAGS=$CXXFLAGS
2309: CXXFLAGS="-g"
2310: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2311: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2312: if test "${ac_cv_prog_cxx_g+set}" = set; then
2313: echo $ECHO_N "(cached) $ECHO_C" >&6
2314: else
2315: cat >conftest.$ac_ext <<_ACEOF
2316: /* confdefs.h. */
2317: _ACEOF
2318: cat confdefs.h >>conftest.$ac_ext
2319: cat >>conftest.$ac_ext <<_ACEOF
2320: /* end confdefs.h. */
2321:
2322: int
2323: main ()
2324: {
2325:
2326: ;
2327: return 0;
2328: }
2329: _ACEOF
2330: rm -f conftest.$ac_objext
2331: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2332: (eval $ac_compile) 2>conftest.er1
1.11 paf 2333: ac_status=$?
1.18 paf 2334: grep -v '^ *+' conftest.er1 >conftest.err
2335: rm -f conftest.er1
2336: cat conftest.err >&5
1.11 paf 2337: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338: (exit $ac_status); } &&
1.18 paf 2339: { ac_try='test -z "$ac_cxx_werror_flag"
2340: || test ! -s conftest.err'
2341: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342: (eval $ac_try) 2>&5
2343: ac_status=$?
2344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345: (exit $ac_status); }; } &&
2346: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2347: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348: (eval $ac_try) 2>&5
2349: ac_status=$?
2350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351: (exit $ac_status); }; }; then
2352: ac_cv_prog_cxx_g=yes
1.1 parser 2353: else
1.11 paf 2354: echo "$as_me: failed program was:" >&5
2355: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2356:
1.11 paf 2357: ac_cv_prog_cxx_g=no
1.1 parser 2358: fi
1.18 paf 2359: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2360: fi
1.11 paf 2361: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2362: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2363: if test "$ac_test_CXXFLAGS" = set; then
1.11 paf 2364: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2365: elif test $ac_cv_prog_cxx_g = yes; then
2366: if test "$GXX" = yes; then
2367: CXXFLAGS="-g -O2"
2368: else
2369: CXXFLAGS="-g"
2370: fi
2371: else
2372: if test "$GXX" = yes; then
2373: CXXFLAGS="-O2"
2374: else
2375: CXXFLAGS=
2376: fi
2377: fi
1.11 paf 2378: for ac_declaration in \
1.18 paf 2379: '' \
1.11 paf 2380: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2381: 'extern "C" void std::exit (int); using std::exit;' \
2382: 'extern "C" void exit (int) throw ();' \
2383: 'extern "C" void exit (int);' \
2384: 'void exit (int);'
2385: do
2386: cat >conftest.$ac_ext <<_ACEOF
2387: /* confdefs.h. */
2388: _ACEOF
2389: cat confdefs.h >>conftest.$ac_ext
2390: cat >>conftest.$ac_ext <<_ACEOF
2391: /* end confdefs.h. */
1.18 paf 2392: $ac_declaration
1.11 paf 2393: #include <stdlib.h>
2394: int
2395: main ()
2396: {
2397: exit (42);
2398: ;
2399: return 0;
2400: }
2401: _ACEOF
2402: rm -f conftest.$ac_objext
2403: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2404: (eval $ac_compile) 2>conftest.er1
1.11 paf 2405: ac_status=$?
1.18 paf 2406: grep -v '^ *+' conftest.er1 >conftest.err
2407: rm -f conftest.er1
2408: cat conftest.err >&5
1.11 paf 2409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410: (exit $ac_status); } &&
1.18 paf 2411: { ac_try='test -z "$ac_cxx_werror_flag"
2412: || test ! -s conftest.err'
2413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414: (eval $ac_try) 2>&5
2415: ac_status=$?
2416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417: (exit $ac_status); }; } &&
2418: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420: (eval $ac_try) 2>&5
2421: ac_status=$?
2422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423: (exit $ac_status); }; }; then
2424: :
2425: else
2426: echo "$as_me: failed program was:" >&5
2427: sed 's/^/| /' conftest.$ac_ext >&5
2428:
2429: continue
2430: fi
1.18 paf 2431: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2432: cat >conftest.$ac_ext <<_ACEOF
2433: /* confdefs.h. */
2434: _ACEOF
2435: cat confdefs.h >>conftest.$ac_ext
2436: cat >>conftest.$ac_ext <<_ACEOF
2437: /* end confdefs.h. */
2438: $ac_declaration
2439: int
2440: main ()
2441: {
2442: exit (42);
2443: ;
2444: return 0;
2445: }
2446: _ACEOF
2447: rm -f conftest.$ac_objext
2448: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2449: (eval $ac_compile) 2>conftest.er1
1.11 paf 2450: ac_status=$?
1.18 paf 2451: grep -v '^ *+' conftest.er1 >conftest.err
2452: rm -f conftest.er1
2453: cat conftest.err >&5
1.11 paf 2454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455: (exit $ac_status); } &&
1.18 paf 2456: { ac_try='test -z "$ac_cxx_werror_flag"
2457: || test ! -s conftest.err'
2458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459: (eval $ac_try) 2>&5
2460: ac_status=$?
2461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462: (exit $ac_status); }; } &&
2463: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465: (eval $ac_try) 2>&5
2466: ac_status=$?
2467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468: (exit $ac_status); }; }; then
2469: break
2470: else
2471: echo "$as_me: failed program was:" >&5
2472: sed 's/^/| /' conftest.$ac_ext >&5
2473:
2474: fi
1.18 paf 2475: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2476: done
2477: rm -f conftest*
2478: if test -n "$ac_declaration"; then
2479: echo '#ifdef __cplusplus' >>confdefs.h
2480: echo $ac_declaration >>confdefs.h
2481: echo '#endif' >>confdefs.h
2482: fi
2483:
1.15 paf 2484: ac_ext=c
2485: ac_cpp='$CPP $CPPFLAGS'
2486: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.18 paf 2489: DEPDIR="${am__leading_dot}deps"
1.11 paf 2490:
2491: ac_config_commands="$ac_config_commands depfiles"
2492:
2493:
2494: am_make=${MAKE-make}
2495: cat > confinc << 'END'
1.18 paf 2496: am__doit:
1.11 paf 2497: @echo done
1.18 paf 2498: .PHONY: am__doit
1.11 paf 2499: END
2500: # If we don't find an include directive, just comment out the code.
2501: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2502: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2503: am__include="#"
2504: am__quote=
2505: _am_result=none
2506: # First try GNU make style include.
2507: echo "include confinc" > confmf
2508: # We grep out `Entering directory' and `Leaving directory'
2509: # messages which can occur if `w' ends up in MAKEFLAGS.
2510: # In particular we don't look at `^make:' because GNU make might
2511: # be invoked under some other name (usually "gmake"), in which
2512: # case it prints its new name instead of `make'.
2513: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2514: am__include=include
2515: am__quote=
2516: _am_result=GNU
2517: fi
2518: # Now try BSD make style include.
2519: if test "$am__include" = "#"; then
2520: echo '.include "confinc"' > confmf
2521: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2522: am__include=.include
2523: am__quote="\""
2524: _am_result=BSD
2525: fi
2526: fi
2527:
2528:
2529: echo "$as_me:$LINENO: result: $_am_result" >&5
2530: echo "${ECHO_T}$_am_result" >&6
2531: rm -f confinc confmf
2532:
2533: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2534: if test "${enable_dependency_tracking+set}" = set; then
2535: enableval="$enable_dependency_tracking"
2536:
2537: fi;
2538: if test "x$enable_dependency_tracking" != xno; then
2539: am_depcomp="$ac_aux_dir/depcomp"
2540: AMDEPBACKSLASH='\'
2541: fi
2542:
2543:
2544: if test "x$enable_dependency_tracking" != xno; then
2545: AMDEP_TRUE=
2546: AMDEP_FALSE='#'
2547: else
2548: AMDEP_TRUE='#'
2549: AMDEP_FALSE=
2550: fi
2551:
2552:
2553:
2554:
2555: depcc="$CXX" am_compiler_list=
2556:
2557: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2558: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2559: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2560: echo $ECHO_N "(cached) $ECHO_C" >&6
2561: else
2562: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2563: # We make a subdir and do the tests there. Otherwise we can end up
2564: # making bogus files that we don't know about and never remove. For
2565: # instance it was reported that on HP-UX the gcc test will end up
2566: # making a dummy file named `D' -- because `-MD' means `put the output
2567: # in D'.
2568: mkdir conftest.dir
2569: # Copy depcomp to subdir because otherwise we won't find it if we're
2570: # using a relative directory.
2571: cp "$am_depcomp" conftest.dir
2572: cd conftest.dir
1.18 paf 2573: # We will build objects and dependencies in a subdirectory because
2574: # it helps to detect inapplicable dependency modes. For instance
2575: # both Tru64's cc and ICC support -MD to output dependencies as a
2576: # side effect of compilation, but ICC will put the dependencies in
2577: # the current directory while Tru64 will put them in the object
2578: # directory.
2579: mkdir sub
1.11 paf 2580:
2581: am_cv_CXX_dependencies_compiler_type=none
2582: if test "$am_compiler_list" = ""; then
2583: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2584: fi
2585: for depmode in $am_compiler_list; do
1.18 paf 2586: # Setup a source with many dependencies, because some compilers
2587: # like to wrap large dependency lists on column 80 (with \), and
2588: # we should not choose a depcomp mode which is confused by this.
2589: #
1.11 paf 2590: # We need to recreate these files for each test, as the compiler may
2591: # overwrite some of them when testing with obscure command lines.
2592: # This happens at least with the AIX C compiler.
1.18 paf 2593: : > sub/conftest.c
2594: for i in 1 2 3 4 5 6; do
2595: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2596: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2597: # Solaris 8's {/usr,}/bin/sh.
2598: touch sub/conftst$i.h
2599: done
2600: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 2601:
2602: case $depmode in
2603: nosideeffect)
2604: # after this tag, mechanisms are not by side-effect, so they'll
2605: # only be used when explicitly requested
2606: if test "x$enable_dependency_tracking" = xyes; then
2607: continue
2608: else
2609: break
2610: fi
2611: ;;
2612: none) break ;;
2613: esac
2614: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2615: # mode. It turns out that the SunPro C++ compiler does not properly
2616: # handle `-M -o', and we need to detect this.
2617: if depmode=$depmode \
1.18 paf 2618: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2619: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2620: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2621: >/dev/null 2>conftest.err &&
2622: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2623: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 2624: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 2625: # icc doesn't choke on unknown options, it will just issue warnings
2626: # or remarks (even with -Werror). So we grep stderr for any message
2627: # that says an option was ignored or not supported.
2628: # When given -MP, icc 7.0 and 7.1 complain thusly:
2629: # icc: Command line warning: ignoring option '-M'; no argument required
2630: # The diagnosis changed in icc 8.0:
2631: # icc: Command line remark: option '-MP' not supported
2632: if (grep 'ignoring option' conftest.err ||
2633: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2634: am_cv_CXX_dependencies_compiler_type=$depmode
2635: break
2636: fi
1.11 paf 2637: fi
2638: done
2639:
2640: cd ..
2641: rm -rf conftest.dir
2642: else
2643: am_cv_CXX_dependencies_compiler_type=none
2644: fi
2645:
2646: fi
2647: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2648: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2649: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2650:
1.1 parser 2651:
2652:
1.11 paf 2653: if
2654: test "x$enable_dependency_tracking" != xno \
2655: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2656: am__fastdepCXX_TRUE=
2657: am__fastdepCXX_FALSE='#'
2658: else
2659: am__fastdepCXX_TRUE='#'
2660: am__fastdepCXX_FALSE=
2661: fi
2662:
2663:
2664: ac_ext=c
2665: ac_cpp='$CPP $CPPFLAGS'
2666: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669: if test -n "$ac_tool_prefix"; then
2670: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2672: echo "$as_me:$LINENO: checking for $ac_word" >&5
2673: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674: if test "${ac_cv_prog_CC+set}" = set; then
2675: echo $ECHO_N "(cached) $ECHO_C" >&6
2676: else
2677: if test -n "$CC"; then
2678: ac_cv_prog_CC="$CC" # Let the user override the test.
2679: else
2680: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681: for as_dir in $PATH
2682: do
2683: IFS=$as_save_IFS
2684: test -z "$as_dir" && as_dir=.
2685: for ac_exec_ext in '' $ac_executable_extensions; do
2686: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2688: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689: break 2
2690: fi
2691: done
2692: done
1.1 parser 2693:
1.11 paf 2694: fi
2695: fi
2696: CC=$ac_cv_prog_CC
2697: if test -n "$CC"; then
2698: echo "$as_me:$LINENO: result: $CC" >&5
2699: echo "${ECHO_T}$CC" >&6
2700: else
2701: echo "$as_me:$LINENO: result: no" >&5
2702: echo "${ECHO_T}no" >&6
2703: fi
1.1 parser 2704:
1.11 paf 2705: fi
2706: if test -z "$ac_cv_prog_CC"; then
2707: ac_ct_CC=$CC
2708: # Extract the first word of "gcc", so it can be a program name with args.
2709: set dummy gcc; ac_word=$2
2710: echo "$as_me:$LINENO: checking for $ac_word" >&5
2711: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2713: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2714: else
1.11 paf 2715: if test -n "$ac_ct_CC"; then
2716: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2717: else
1.11 paf 2718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719: for as_dir in $PATH
2720: do
2721: IFS=$as_save_IFS
2722: test -z "$as_dir" && as_dir=.
2723: for ac_exec_ext in '' $ac_executable_extensions; do
2724: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725: ac_cv_prog_ac_ct_CC="gcc"
2726: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727: break 2
2728: fi
2729: done
2730: done
2731:
2732: fi
1.1 parser 2733: fi
1.11 paf 2734: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735: if test -n "$ac_ct_CC"; then
2736: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737: echo "${ECHO_T}$ac_ct_CC" >&6
2738: else
2739: echo "$as_me:$LINENO: result: no" >&5
2740: echo "${ECHO_T}no" >&6
1.1 parser 2741: fi
1.11 paf 2742:
2743: CC=$ac_ct_CC
1.1 parser 2744: else
1.11 paf 2745: CC="$ac_cv_prog_CC"
1.1 parser 2746: fi
2747:
1.11 paf 2748: if test -z "$CC"; then
2749: if test -n "$ac_tool_prefix"; then
2750: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751: set dummy ${ac_tool_prefix}cc; ac_word=$2
2752: echo "$as_me:$LINENO: checking for $ac_word" >&5
2753: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754: if test "${ac_cv_prog_CC+set}" = set; then
2755: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2756: else
2757: if test -n "$CC"; then
2758: ac_cv_prog_CC="$CC" # Let the user override the test.
2759: else
1.11 paf 2760: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761: for as_dir in $PATH
2762: do
2763: IFS=$as_save_IFS
2764: test -z "$as_dir" && as_dir=.
2765: for ac_exec_ext in '' $ac_executable_extensions; do
2766: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767: ac_cv_prog_CC="${ac_tool_prefix}cc"
2768: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769: break 2
2770: fi
2771: done
2772: done
2773:
1.1 parser 2774: fi
2775: fi
1.11 paf 2776: CC=$ac_cv_prog_CC
1.1 parser 2777: if test -n "$CC"; then
1.11 paf 2778: echo "$as_me:$LINENO: result: $CC" >&5
2779: echo "${ECHO_T}$CC" >&6
2780: else
2781: echo "$as_me:$LINENO: result: no" >&5
2782: echo "${ECHO_T}no" >&6
2783: fi
2784:
2785: fi
2786: if test -z "$ac_cv_prog_CC"; then
2787: ac_ct_CC=$CC
2788: # Extract the first word of "cc", so it can be a program name with args.
2789: set dummy cc; ac_word=$2
2790: echo "$as_me:$LINENO: checking for $ac_word" >&5
2791: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2793: echo $ECHO_N "(cached) $ECHO_C" >&6
2794: else
2795: if test -n "$ac_ct_CC"; then
2796: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797: else
2798: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799: for as_dir in $PATH
2800: do
2801: IFS=$as_save_IFS
2802: test -z "$as_dir" && as_dir=.
2803: for ac_exec_ext in '' $ac_executable_extensions; do
2804: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805: ac_cv_prog_ac_ct_CC="cc"
2806: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807: break 2
2808: fi
2809: done
2810: done
2811:
2812: fi
2813: fi
2814: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815: if test -n "$ac_ct_CC"; then
2816: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817: echo "${ECHO_T}$ac_ct_CC" >&6
2818: else
2819: echo "$as_me:$LINENO: result: no" >&5
2820: echo "${ECHO_T}no" >&6
2821: fi
2822:
2823: CC=$ac_ct_CC
1.1 parser 2824: else
1.11 paf 2825: CC="$ac_cv_prog_CC"
1.1 parser 2826: fi
2827:
1.11 paf 2828: fi
1.1 parser 2829: if test -z "$CC"; then
2830: # Extract the first word of "cc", so it can be a program name with args.
2831: set dummy cc; ac_word=$2
1.11 paf 2832: echo "$as_me:$LINENO: checking for $ac_word" >&5
2833: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834: if test "${ac_cv_prog_CC+set}" = set; then
2835: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2836: else
2837: if test -n "$CC"; then
2838: ac_cv_prog_CC="$CC" # Let the user override the test.
2839: else
2840: ac_prog_rejected=no
1.11 paf 2841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842: for as_dir in $PATH
2843: do
2844: IFS=$as_save_IFS
2845: test -z "$as_dir" && as_dir=.
2846: for ac_exec_ext in '' $ac_executable_extensions; do
2847: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2849: ac_prog_rejected=yes
2850: continue
2851: fi
2852: ac_cv_prog_CC="cc"
2853: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854: break 2
2855: fi
2856: done
2857: done
2858:
1.1 parser 2859: if test $ac_prog_rejected = yes; then
2860: # We found a bogon in the path, so make sure we never use it.
2861: set dummy $ac_cv_prog_CC
2862: shift
1.11 paf 2863: if test $# != 0; then
1.1 parser 2864: # We chose a different compiler from the bogus one.
2865: # However, it has the same basename, so the bogon will be chosen
2866: # first if we set CC to just the basename; use the full file name.
2867: shift
1.11 paf 2868: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2869: fi
2870: fi
2871: fi
2872: fi
1.11 paf 2873: CC=$ac_cv_prog_CC
1.1 parser 2874: if test -n "$CC"; then
1.11 paf 2875: echo "$as_me:$LINENO: result: $CC" >&5
2876: echo "${ECHO_T}$CC" >&6
1.1 parser 2877: else
1.11 paf 2878: echo "$as_me:$LINENO: result: no" >&5
2879: echo "${ECHO_T}no" >&6
1.1 parser 2880: fi
2881:
1.11 paf 2882: fi
2883: if test -z "$CC"; then
2884: if test -n "$ac_tool_prefix"; then
2885: for ac_prog in cl
2886: do
2887: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2888: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2889: echo "$as_me:$LINENO: checking for $ac_word" >&5
2890: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891: if test "${ac_cv_prog_CC+set}" = set; then
2892: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2893: else
2894: if test -n "$CC"; then
2895: ac_cv_prog_CC="$CC" # Let the user override the test.
2896: else
1.11 paf 2897: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898: for as_dir in $PATH
2899: do
2900: IFS=$as_save_IFS
2901: test -z "$as_dir" && as_dir=.
2902: for ac_exec_ext in '' $ac_executable_extensions; do
2903: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2905: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906: break 2
2907: fi
2908: done
2909: done
2910:
1.1 parser 2911: fi
2912: fi
1.11 paf 2913: CC=$ac_cv_prog_CC
1.1 parser 2914: if test -n "$CC"; then
1.11 paf 2915: echo "$as_me:$LINENO: result: $CC" >&5
2916: echo "${ECHO_T}$CC" >&6
1.1 parser 2917: else
1.11 paf 2918: echo "$as_me:$LINENO: result: no" >&5
2919: echo "${ECHO_T}no" >&6
1.1 parser 2920: fi
1.11 paf 2921:
2922: test -n "$CC" && break
2923: done
2924: fi
2925: if test -z "$CC"; then
2926: ac_ct_CC=$CC
2927: for ac_prog in cl
2928: do
2929: # Extract the first word of "$ac_prog", so it can be a program name with args.
2930: set dummy $ac_prog; ac_word=$2
2931: echo "$as_me:$LINENO: checking for $ac_word" >&5
2932: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2934: echo $ECHO_N "(cached) $ECHO_C" >&6
2935: else
2936: if test -n "$ac_ct_CC"; then
2937: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938: else
2939: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940: for as_dir in $PATH
2941: do
2942: IFS=$as_save_IFS
2943: test -z "$as_dir" && as_dir=.
2944: for ac_exec_ext in '' $ac_executable_extensions; do
2945: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946: ac_cv_prog_ac_ct_CC="$ac_prog"
2947: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948: break 2
1.1 parser 2949: fi
1.11 paf 2950: done
2951: done
2952:
2953: fi
2954: fi
2955: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956: if test -n "$ac_ct_CC"; then
2957: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2958: echo "${ECHO_T}$ac_ct_CC" >&6
2959: else
2960: echo "$as_me:$LINENO: result: no" >&5
2961: echo "${ECHO_T}no" >&6
1.1 parser 2962: fi
2963:
1.11 paf 2964: test -n "$ac_ct_CC" && break
2965: done
1.1 parser 2966:
1.11 paf 2967: CC=$ac_ct_CC
2968: fi
1.1 parser 2969:
1.11 paf 2970: fi
1.1 parser 2971:
2972:
1.11 paf 2973: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2974: See \`config.log' for more details." >&5
2975: echo "$as_me: error: no acceptable C compiler found in \$PATH
2976: See \`config.log' for more details." >&2;}
2977: { (exit 1); exit 1; }; }
2978:
2979: # Provide some information about the compiler.
2980: echo "$as_me:$LINENO:" \
2981: "checking for C compiler version" >&5
2982: ac_compiler=`set X $ac_compile; echo $2`
2983: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2984: (eval $ac_compiler --version </dev/null >&5) 2>&5
2985: ac_status=$?
2986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987: (exit $ac_status); }
2988: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2989: (eval $ac_compiler -v </dev/null >&5) 2>&5
2990: ac_status=$?
2991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992: (exit $ac_status); }
2993: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2994: (eval $ac_compiler -V </dev/null >&5) 2>&5
2995: ac_status=$?
2996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997: (exit $ac_status); }
2998:
2999: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3000: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3001: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3002: echo $ECHO_N "(cached) $ECHO_C" >&6
3003: else
3004: cat >conftest.$ac_ext <<_ACEOF
3005: /* confdefs.h. */
3006: _ACEOF
3007: cat confdefs.h >>conftest.$ac_ext
3008: cat >>conftest.$ac_ext <<_ACEOF
3009: /* end confdefs.h. */
3010:
3011: int
3012: main ()
3013: {
3014: #ifndef __GNUC__
3015: choke me
1.1 parser 3016: #endif
3017:
1.11 paf 3018: ;
3019: return 0;
3020: }
3021: _ACEOF
3022: rm -f conftest.$ac_objext
3023: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3024: (eval $ac_compile) 2>conftest.er1
1.11 paf 3025: ac_status=$?
1.18 paf 3026: grep -v '^ *+' conftest.er1 >conftest.err
3027: rm -f conftest.er1
3028: cat conftest.err >&5
1.11 paf 3029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030: (exit $ac_status); } &&
1.18 paf 3031: { ac_try='test -z "$ac_c_werror_flag"
3032: || test ! -s conftest.err'
3033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034: (eval $ac_try) 2>&5
3035: ac_status=$?
3036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037: (exit $ac_status); }; } &&
3038: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040: (eval $ac_try) 2>&5
3041: ac_status=$?
3042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043: (exit $ac_status); }; }; then
3044: ac_compiler_gnu=yes
3045: else
3046: echo "$as_me: failed program was:" >&5
3047: sed 's/^/| /' conftest.$ac_ext >&5
3048:
3049: ac_compiler_gnu=no
3050: fi
1.18 paf 3051: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3052: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3053:
3054: fi
3055: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3057: GCC=`test $ac_compiler_gnu = yes && echo yes`
3058: ac_test_CFLAGS=${CFLAGS+set}
3059: ac_save_CFLAGS=$CFLAGS
3060: CFLAGS="-g"
3061: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3062: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3063: if test "${ac_cv_prog_cc_g+set}" = set; then
3064: echo $ECHO_N "(cached) $ECHO_C" >&6
3065: else
3066: cat >conftest.$ac_ext <<_ACEOF
3067: /* confdefs.h. */
3068: _ACEOF
3069: cat confdefs.h >>conftest.$ac_ext
3070: cat >>conftest.$ac_ext <<_ACEOF
3071: /* end confdefs.h. */
3072:
3073: int
3074: main ()
3075: {
3076:
3077: ;
3078: return 0;
3079: }
3080: _ACEOF
3081: rm -f conftest.$ac_objext
3082: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3083: (eval $ac_compile) 2>conftest.er1
1.11 paf 3084: ac_status=$?
1.18 paf 3085: grep -v '^ *+' conftest.er1 >conftest.err
3086: rm -f conftest.er1
3087: cat conftest.err >&5
1.11 paf 3088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089: (exit $ac_status); } &&
1.18 paf 3090: { ac_try='test -z "$ac_c_werror_flag"
3091: || test ! -s conftest.err'
3092: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093: (eval $ac_try) 2>&5
3094: ac_status=$?
3095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096: (exit $ac_status); }; } &&
3097: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099: (eval $ac_try) 2>&5
3100: ac_status=$?
3101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102: (exit $ac_status); }; }; then
3103: ac_cv_prog_cc_g=yes
1.1 parser 3104: else
1.11 paf 3105: echo "$as_me: failed program was:" >&5
3106: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3107:
1.11 paf 3108: ac_cv_prog_cc_g=no
1.1 parser 3109: fi
1.18 paf 3110: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3111: fi
1.11 paf 3112: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3114: if test "$ac_test_CFLAGS" = set; then
1.11 paf 3115: CFLAGS=$ac_save_CFLAGS
1.1 parser 3116: elif test $ac_cv_prog_cc_g = yes; then
3117: if test "$GCC" = yes; then
3118: CFLAGS="-g -O2"
3119: else
3120: CFLAGS="-g"
3121: fi
3122: else
3123: if test "$GCC" = yes; then
3124: CFLAGS="-O2"
3125: else
3126: CFLAGS=
3127: fi
3128: fi
1.11 paf 3129: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3130: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3131: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3132: echo $ECHO_N "(cached) $ECHO_C" >&6
3133: else
3134: ac_cv_prog_cc_stdc=no
3135: ac_save_CC=$CC
3136: cat >conftest.$ac_ext <<_ACEOF
3137: /* confdefs.h. */
3138: _ACEOF
3139: cat confdefs.h >>conftest.$ac_ext
3140: cat >>conftest.$ac_ext <<_ACEOF
3141: /* end confdefs.h. */
3142: #include <stdarg.h>
3143: #include <stdio.h>
3144: #include <sys/types.h>
3145: #include <sys/stat.h>
3146: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3147: struct buf { int x; };
3148: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149: static char *e (p, i)
3150: char **p;
3151: int i;
3152: {
3153: return p[i];
3154: }
3155: static char *f (char * (*g) (char **, int), char **p, ...)
3156: {
3157: char *s;
3158: va_list v;
3159: va_start (v,p);
3160: s = g (p, va_arg (v,int));
3161: va_end (v);
3162: return s;
3163: }
1.18 paf 3164:
3165: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3166: function prototypes and stuff, but not '\xHH' hex character constants.
3167: These don't provoke an error unfortunately, instead are silently treated
3168: as 'x'. The following induces an error, until -std1 is added to get
3169: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3170: array size at least. It's necessary to write '\x00'==0 to get something
3171: that's true only with -std1. */
3172: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173:
1.11 paf 3174: int test (int i, double x);
3175: struct s1 {int (*f) (int a);};
3176: struct s2 {int (*f) (double a);};
3177: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3178: int argc;
3179: char **argv;
3180: int
3181: main ()
3182: {
3183: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3184: ;
3185: return 0;
3186: }
3187: _ACEOF
3188: # Don't try gcc -ansi; that turns off useful extensions and
3189: # breaks some systems' header files.
3190: # AIX -qlanglvl=ansi
3191: # Ultrix and OSF/1 -std1
3192: # HP-UX 10.20 and later -Ae
3193: # HP-UX older versions -Aa -D_HPUX_SOURCE
3194: # SVR4 -Xc -D__EXTENSIONS__
3195: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196: do
3197: CC="$ac_save_CC $ac_arg"
3198: rm -f conftest.$ac_objext
3199: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3200: (eval $ac_compile) 2>conftest.er1
1.11 paf 3201: ac_status=$?
1.18 paf 3202: grep -v '^ *+' conftest.er1 >conftest.err
3203: rm -f conftest.er1
3204: cat conftest.err >&5
1.11 paf 3205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206: (exit $ac_status); } &&
1.18 paf 3207: { ac_try='test -z "$ac_c_werror_flag"
3208: || test ! -s conftest.err'
3209: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210: (eval $ac_try) 2>&5
3211: ac_status=$?
3212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213: (exit $ac_status); }; } &&
3214: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3215: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216: (eval $ac_try) 2>&5
3217: ac_status=$?
3218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219: (exit $ac_status); }; }; then
3220: ac_cv_prog_cc_stdc=$ac_arg
3221: break
3222: else
3223: echo "$as_me: failed program was:" >&5
3224: sed 's/^/| /' conftest.$ac_ext >&5
3225:
3226: fi
1.18 paf 3227: rm -f conftest.err conftest.$ac_objext
1.11 paf 3228: done
3229: rm -f conftest.$ac_ext conftest.$ac_objext
3230: CC=$ac_save_CC
3231:
3232: fi
3233:
3234: case "x$ac_cv_prog_cc_stdc" in
3235: x|xno)
3236: echo "$as_me:$LINENO: result: none needed" >&5
3237: echo "${ECHO_T}none needed" >&6 ;;
3238: *)
3239: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3240: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3241: CC="$CC $ac_cv_prog_cc_stdc" ;;
3242: esac
3243:
3244: # Some people use a C++ compiler to compile C. Since we use `exit',
3245: # in C++ we need to declare it. In case someone uses the same compiler
3246: # for both compiling C and C++ we need to have the C++ compiler decide
3247: # the declaration of exit, since it's the most demanding environment.
3248: cat >conftest.$ac_ext <<_ACEOF
3249: #ifndef __cplusplus
3250: choke me
3251: #endif
3252: _ACEOF
3253: rm -f conftest.$ac_objext
3254: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3255: (eval $ac_compile) 2>conftest.er1
1.11 paf 3256: ac_status=$?
1.18 paf 3257: grep -v '^ *+' conftest.er1 >conftest.err
3258: rm -f conftest.er1
3259: cat conftest.err >&5
1.11 paf 3260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261: (exit $ac_status); } &&
1.18 paf 3262: { ac_try='test -z "$ac_c_werror_flag"
3263: || test ! -s conftest.err'
3264: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265: (eval $ac_try) 2>&5
3266: ac_status=$?
3267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268: (exit $ac_status); }; } &&
3269: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271: (eval $ac_try) 2>&5
3272: ac_status=$?
3273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274: (exit $ac_status); }; }; then
3275: for ac_declaration in \
1.18 paf 3276: '' \
1.11 paf 3277: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3278: 'extern "C" void std::exit (int); using std::exit;' \
3279: 'extern "C" void exit (int) throw ();' \
3280: 'extern "C" void exit (int);' \
3281: 'void exit (int);'
3282: do
3283: cat >conftest.$ac_ext <<_ACEOF
3284: /* confdefs.h. */
3285: _ACEOF
3286: cat confdefs.h >>conftest.$ac_ext
3287: cat >>conftest.$ac_ext <<_ACEOF
3288: /* end confdefs.h. */
1.18 paf 3289: $ac_declaration
1.11 paf 3290: #include <stdlib.h>
3291: int
3292: main ()
3293: {
3294: exit (42);
3295: ;
3296: return 0;
3297: }
3298: _ACEOF
3299: rm -f conftest.$ac_objext
3300: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3301: (eval $ac_compile) 2>conftest.er1
1.11 paf 3302: ac_status=$?
1.18 paf 3303: grep -v '^ *+' conftest.er1 >conftest.err
3304: rm -f conftest.er1
3305: cat conftest.err >&5
1.11 paf 3306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307: (exit $ac_status); } &&
1.18 paf 3308: { ac_try='test -z "$ac_c_werror_flag"
3309: || test ! -s conftest.err'
3310: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311: (eval $ac_try) 2>&5
3312: ac_status=$?
3313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314: (exit $ac_status); }; } &&
3315: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317: (eval $ac_try) 2>&5
3318: ac_status=$?
3319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320: (exit $ac_status); }; }; then
3321: :
3322: else
3323: echo "$as_me: failed program was:" >&5
3324: sed 's/^/| /' conftest.$ac_ext >&5
3325:
3326: continue
3327: fi
1.18 paf 3328: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3329: cat >conftest.$ac_ext <<_ACEOF
3330: /* confdefs.h. */
3331: _ACEOF
3332: cat confdefs.h >>conftest.$ac_ext
3333: cat >>conftest.$ac_ext <<_ACEOF
3334: /* end confdefs.h. */
3335: $ac_declaration
3336: int
3337: main ()
3338: {
3339: exit (42);
3340: ;
3341: return 0;
3342: }
3343: _ACEOF
3344: rm -f conftest.$ac_objext
3345: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3346: (eval $ac_compile) 2>conftest.er1
1.11 paf 3347: ac_status=$?
1.18 paf 3348: grep -v '^ *+' conftest.er1 >conftest.err
3349: rm -f conftest.er1
3350: cat conftest.err >&5
1.11 paf 3351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352: (exit $ac_status); } &&
1.18 paf 3353: { ac_try='test -z "$ac_c_werror_flag"
3354: || test ! -s conftest.err'
3355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356: (eval $ac_try) 2>&5
3357: ac_status=$?
3358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359: (exit $ac_status); }; } &&
3360: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362: (eval $ac_try) 2>&5
3363: ac_status=$?
3364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365: (exit $ac_status); }; }; then
3366: break
3367: else
3368: echo "$as_me: failed program was:" >&5
3369: sed 's/^/| /' conftest.$ac_ext >&5
3370:
3371: fi
1.18 paf 3372: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3373: done
3374: rm -f conftest*
3375: if test -n "$ac_declaration"; then
3376: echo '#ifdef __cplusplus' >>confdefs.h
3377: echo $ac_declaration >>confdefs.h
3378: echo '#endif' >>confdefs.h
3379: fi
3380:
3381: else
3382: echo "$as_me: failed program was:" >&5
3383: sed 's/^/| /' conftest.$ac_ext >&5
3384:
3385: fi
1.18 paf 3386: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3387: ac_ext=c
3388: ac_cpp='$CPP $CPPFLAGS'
3389: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 3392:
3393: depcc="$CC" am_compiler_list=
3394:
3395: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3396: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3397: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3398: echo $ECHO_N "(cached) $ECHO_C" >&6
3399: else
3400: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3401: # We make a subdir and do the tests there. Otherwise we can end up
3402: # making bogus files that we don't know about and never remove. For
3403: # instance it was reported that on HP-UX the gcc test will end up
3404: # making a dummy file named `D' -- because `-MD' means `put the output
3405: # in D'.
3406: mkdir conftest.dir
3407: # Copy depcomp to subdir because otherwise we won't find it if we're
3408: # using a relative directory.
3409: cp "$am_depcomp" conftest.dir
3410: cd conftest.dir
1.18 paf 3411: # We will build objects and dependencies in a subdirectory because
3412: # it helps to detect inapplicable dependency modes. For instance
3413: # both Tru64's cc and ICC support -MD to output dependencies as a
3414: # side effect of compilation, but ICC will put the dependencies in
3415: # the current directory while Tru64 will put them in the object
3416: # directory.
3417: mkdir sub
1.11 paf 3418:
3419: am_cv_CC_dependencies_compiler_type=none
3420: if test "$am_compiler_list" = ""; then
3421: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3422: fi
3423: for depmode in $am_compiler_list; do
1.18 paf 3424: # Setup a source with many dependencies, because some compilers
3425: # like to wrap large dependency lists on column 80 (with \), and
3426: # we should not choose a depcomp mode which is confused by this.
3427: #
1.11 paf 3428: # We need to recreate these files for each test, as the compiler may
3429: # overwrite some of them when testing with obscure command lines.
3430: # This happens at least with the AIX C compiler.
1.18 paf 3431: : > sub/conftest.c
3432: for i in 1 2 3 4 5 6; do
3433: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3434: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3435: # Solaris 8's {/usr,}/bin/sh.
3436: touch sub/conftst$i.h
3437: done
3438: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 3439:
3440: case $depmode in
3441: nosideeffect)
3442: # after this tag, mechanisms are not by side-effect, so they'll
3443: # only be used when explicitly requested
3444: if test "x$enable_dependency_tracking" = xyes; then
3445: continue
3446: else
3447: break
3448: fi
3449: ;;
3450: none) break ;;
3451: esac
3452: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3453: # mode. It turns out that the SunPro C++ compiler does not properly
3454: # handle `-M -o', and we need to detect this.
3455: if depmode=$depmode \
1.18 paf 3456: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3457: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3458: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3459: >/dev/null 2>conftest.err &&
3460: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3461: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 3462: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 3463: # icc doesn't choke on unknown options, it will just issue warnings
3464: # or remarks (even with -Werror). So we grep stderr for any message
3465: # that says an option was ignored or not supported.
3466: # When given -MP, icc 7.0 and 7.1 complain thusly:
3467: # icc: Command line warning: ignoring option '-M'; no argument required
3468: # The diagnosis changed in icc 8.0:
3469: # icc: Command line remark: option '-MP' not supported
3470: if (grep 'ignoring option' conftest.err ||
3471: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3472: am_cv_CC_dependencies_compiler_type=$depmode
3473: break
3474: fi
1.11 paf 3475: fi
3476: done
3477:
3478: cd ..
3479: rm -rf conftest.dir
3480: else
3481: am_cv_CC_dependencies_compiler_type=none
3482: fi
3483:
3484: fi
3485: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3486: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3487: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3488:
3489:
3490:
3491: if
3492: test "x$enable_dependency_tracking" != xno \
3493: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3494: am__fastdepCC_TRUE=
3495: am__fastdepCC_FALSE='#'
3496: else
3497: am__fastdepCC_TRUE='#'
3498: am__fastdepCC_FALSE=
3499: fi
3500:
3501:
1.15 paf 3502:
3503:
3504:
3505:
3506:
3507:
3508:
3509:
1.25 moko 3510: case `pwd` in
3511: *\ * | *\ *)
3512: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3513: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 3514: esac
3515:
1.25 moko 3516:
3517:
3518: macro_version='2.4.2'
3519: macro_revision='1.3337'
3520:
3521:
3522:
3523:
3524:
3525:
3526:
3527:
3528:
3529:
3530:
3531:
3532:
3533: ltmain="$ac_aux_dir/ltmain.sh"
3534:
1.15 paf 3535: # Make sure we can run config.sub.
3536: $ac_config_sub sun4 >/dev/null 2>&1 ||
3537: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3538: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3539: { (exit 1); exit 1; }; }
3540:
3541: echo "$as_me:$LINENO: checking build system type" >&5
3542: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3543: if test "${ac_cv_build+set}" = set; then
3544: echo $ECHO_N "(cached) $ECHO_C" >&6
3545: else
3546: ac_cv_build_alias=$build_alias
3547: test -z "$ac_cv_build_alias" &&
3548: ac_cv_build_alias=`$ac_config_guess`
3549: test -z "$ac_cv_build_alias" &&
3550: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3551: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3552: { (exit 1); exit 1; }; }
3553: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3554: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3555: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3556: { (exit 1); exit 1; }; }
3557:
3558: fi
3559: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3560: echo "${ECHO_T}$ac_cv_build" >&6
3561: build=$ac_cv_build
3562: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3563: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3564: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3565:
3566:
3567: echo "$as_me:$LINENO: checking host system type" >&5
3568: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3569: if test "${ac_cv_host+set}" = set; then
3570: echo $ECHO_N "(cached) $ECHO_C" >&6
3571: else
3572: ac_cv_host_alias=$host_alias
3573: test -z "$ac_cv_host_alias" &&
3574: ac_cv_host_alias=$ac_cv_build_alias
3575: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3576: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3577: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3578: { (exit 1); exit 1; }; }
3579:
3580: fi
3581: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3582: echo "${ECHO_T}$ac_cv_host" >&6
3583: host=$ac_cv_host
3584: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3585: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3586: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3587:
3588:
1.25 moko 3589: # Backslashify metacharacters that are still active within
3590: # double-quoted strings.
3591: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3592:
3593: # Same as above, but do not quote variable references.
3594: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3595:
3596: # Sed substitution to delay expansion of an escaped shell variable in a
3597: # double_quote_subst'ed string.
3598: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3599:
3600: # Sed substitution to delay expansion of an escaped single quote.
3601: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3602:
3603: # Sed substitution to avoid accidental globbing in evaled expressions
3604: no_glob_subst='s/\*/\\\*/g'
3605:
3606: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3607: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3608: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3609:
3610: echo "$as_me:$LINENO: checking how to print strings" >&5
3611: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
3612: # Test print first, because it will be a builtin if present.
3613: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3614: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3615: ECHO='print -r --'
3616: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3617: ECHO='printf %s\n'
3618: else
3619: # Use this function as a fallback that always works.
3620: func_fallback_echo ()
3621: {
3622: eval 'cat <<_LTECHO_EOF
3623: $1
3624: _LTECHO_EOF'
3625: }
3626: ECHO='func_fallback_echo'
1.11 paf 3627: fi
3628:
1.25 moko 3629: # func_echo_all arg...
3630: # Invoke $ECHO with all args, space-separated.
3631: func_echo_all ()
3632: {
3633: $ECHO ""
3634: }
3635:
3636: case "$ECHO" in
3637: printf*) echo "$as_me:$LINENO: result: printf" >&5
3638: echo "${ECHO_T}printf" >&6 ;;
3639: print*) echo "$as_me:$LINENO: result: print -r" >&5
3640: echo "${ECHO_T}print -r" >&6 ;;
3641: *) echo "$as_me:$LINENO: result: cat" >&5
3642: echo "${ECHO_T}cat" >&6 ;;
3643: esac
3644:
3645:
3646:
3647:
3648:
3649:
3650:
3651:
3652:
3653:
3654:
3655:
1.1 parser 3656:
1.25 moko 3657:
3658: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3659: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3660: if test "${lt_cv_path_SED+set}" = set; then
3661: echo $ECHO_N "(cached) $ECHO_C" >&6
3662: else
3663: # Loop through the user's path and test for sed and gsed.
3664: # Then use that list of sed's as ones to test for truncation.
3665: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666: for as_dir in $PATH
3667: do
3668: IFS=$as_save_IFS
3669: test -z "$as_dir" && as_dir=.
3670: for lt_ac_prog in sed gsed; do
3671: for ac_exec_ext in '' $ac_executable_extensions; do
3672: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3673: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3674: fi
3675: done
3676: done
3677: done
3678: IFS=$as_save_IFS
3679: lt_ac_max=0
3680: lt_ac_count=0
3681: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3682: # along with /bin/sed that truncates output.
3683: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3684: test ! -f $lt_ac_sed && continue
3685: cat /dev/null > conftest.in
3686: lt_ac_count=0
3687: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3688: # Check for GNU sed and select it if it is found.
3689: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3690: lt_cv_path_SED=$lt_ac_sed
3691: break
3692: fi
3693: while true; do
3694: cat conftest.in conftest.in >conftest.tmp
3695: mv conftest.tmp conftest.in
3696: cp conftest.in conftest.nl
3697: echo >>conftest.nl
3698: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3699: cmp -s conftest.out conftest.nl || break
3700: # 10000 chars as input seems more than enough
3701: test $lt_ac_count -gt 10 && break
3702: lt_ac_count=`expr $lt_ac_count + 1`
3703: if test $lt_ac_count -gt $lt_ac_max; then
3704: lt_ac_max=$lt_ac_count
3705: lt_cv_path_SED=$lt_ac_sed
3706: fi
3707: done
3708: done
3709:
3710: fi
3711:
3712: SED=$lt_cv_path_SED
3713:
3714: echo "$as_me:$LINENO: result: $SED" >&5
3715: echo "${ECHO_T}$SED" >&6
3716:
3717: test -z "$SED" && SED=sed
3718: Xsed="$SED -e 1s/^X//"
3719:
3720:
3721:
3722:
3723:
3724:
3725:
3726:
3727:
3728:
3729:
3730: echo "$as_me:$LINENO: checking for egrep" >&5
3731: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3732: if test "${ac_cv_prog_egrep+set}" = set; then
3733: echo $ECHO_N "(cached) $ECHO_C" >&6
3734: else
3735: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3736: then ac_cv_prog_egrep='grep -E'
3737: else ac_cv_prog_egrep='egrep'
3738: fi
3739: fi
3740: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3741: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3742: EGREP=$ac_cv_prog_egrep
3743:
3744:
3745: echo "$as_me:$LINENO: checking for fgrep" >&5
3746: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3747: if test "${ac_cv_prog_fgrep+set}" = set; then
3748: echo $ECHO_N "(cached) $ECHO_C" >&6
3749: else
3750: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3751: then ac_cv_prog_fgrep='grep -F'
3752: else ac_cv_prog_fgrep='fgrep'
3753: fi
3754: fi
3755: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3756: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3757: FGREP=$ac_cv_prog_fgrep
3758:
3759:
3760: test -z "$GREP" && GREP=grep
3761:
3762:
3763:
3764:
3765:
3766:
3767:
3768:
3769:
3770:
3771:
3772:
3773:
3774:
3775:
3776:
3777:
3778:
3779:
3780: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3781: if test "${with_gnu_ld+set}" = set; then
3782: withval="$with_gnu_ld"
3783: test "$withval" = no || with_gnu_ld=yes
1.1 parser 3784: else
3785: with_gnu_ld=no
1.11 paf 3786: fi;
1.1 parser 3787: ac_prog=ld
1.11 paf 3788: if test "$GCC" = yes; then
1.1 parser 3789: # Check if gcc -print-prog-name=ld gives a path.
1.25 moko 3790: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3791: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.11 paf 3792: case $host in
3793: *-*-mingw*)
3794: # gcc leaves a trailing carriage return which upsets mingw
3795: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3796: *)
3797: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3798: esac
3799: case $ac_prog in
1.1 parser 3800: # Accept absolute paths.
1.25 moko 3801: [\\/]* | ?:[\\/]*)
1.1 parser 3802: re_direlt='/[^/][^/]*/\.\./'
1.25 moko 3803: # Canonicalize the pathname of ld
3804: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3805: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3806: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 3807: done
3808: test -z "$LD" && LD="$ac_prog"
3809: ;;
3810: "")
3811: # If it fails, then pretend we aren't using GCC.
3812: ac_prog=ld
3813: ;;
3814: *)
3815: # If it is relative, then search for the first ld in PATH.
3816: with_gnu_ld=unknown
3817: ;;
3818: esac
3819: elif test "$with_gnu_ld" = yes; then
1.11 paf 3820: echo "$as_me:$LINENO: checking for GNU ld" >&5
3821: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3822: else
1.11 paf 3823: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3824: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3825: fi
1.11 paf 3826: if test "${lt_cv_path_LD+set}" = set; then
3827: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3828: else
3829: if test -z "$LD"; then
1.25 moko 3830: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3831: for ac_dir in $PATH; do
1.25 moko 3832: IFS="$lt_save_ifs"
1.1 parser 3833: test -z "$ac_dir" && ac_dir=.
3834: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.11 paf 3835: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3836: # Check to see if the program is GNU ld. I'd rather use --version,
1.25 moko 3837: # but apparently some variants of GNU ld only accept -v.
1.1 parser 3838: # Break only if it was the GNU/non-GNU ld that we prefer.
1.25 moko 3839: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3840: *GNU* | *'with BFD'*)
1.1 parser 3841: test "$with_gnu_ld" != no && break
1.25 moko 3842: ;;
3843: *)
1.1 parser 3844: test "$with_gnu_ld" != yes && break
1.25 moko 3845: ;;
3846: esac
1.1 parser 3847: fi
3848: done
1.25 moko 3849: IFS="$lt_save_ifs"
1.1 parser 3850: else
1.11 paf 3851: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3852: fi
3853: fi
3854:
1.11 paf 3855: LD="$lt_cv_path_LD"
1.1 parser 3856: if test -n "$LD"; then
1.11 paf 3857: echo "$as_me:$LINENO: result: $LD" >&5
3858: echo "${ECHO_T}$LD" >&6
1.1 parser 3859: else
1.11 paf 3860: echo "$as_me:$LINENO: result: no" >&5
3861: echo "${ECHO_T}no" >&6
1.1 parser 3862: fi
1.11 paf 3863: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3864: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3865: { (exit 1); exit 1; }; }
3866: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3867: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3868: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3869: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3870: else
1.25 moko 3871: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3872: case `$LD -v 2>&1 </dev/null` in
3873: *GNU* | *'with BFD'*)
1.11 paf 3874: lt_cv_prog_gnu_ld=yes
1.25 moko 3875: ;;
3876: *)
1.11 paf 3877: lt_cv_prog_gnu_ld=no
1.25 moko 3878: ;;
3879: esac
1.1 parser 3880: fi
1.11 paf 3881: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3882: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3883: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3884:
3885:
3886:
1.25 moko 3887:
3888:
3889:
3890:
3891:
3892:
3893: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3894: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1.11 paf 3895: if test "${lt_cv_path_NM+set}" = set; then
3896: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3897: else
3898: if test -n "$NM"; then
3899: # Let the user override the test.
1.11 paf 3900: lt_cv_path_NM="$NM"
1.1 parser 3901: else
1.25 moko 3902: lt_nm_to_check="${ac_tool_prefix}nm"
3903: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3904: lt_nm_to_check="$lt_nm_to_check nm"
3905: fi
3906: for lt_tmp_nm in $lt_nm_to_check; do
3907: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3908: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3909: IFS="$lt_save_ifs"
3910: test -z "$ac_dir" && ac_dir=.
3911: tmp_nm="$ac_dir/$lt_tmp_nm"
3912: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3913: # Check to see if the nm accepts a BSD-compat flag.
3914: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3915: # nm: unknown option "B" ignored
3916: # Tru64's nm complains that /dev/null is an invalid object file
3917: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3918: */dev/null* | *'Invalid file or object type'*)
3919: lt_cv_path_NM="$tmp_nm -B"
3920: break
3921: ;;
3922: *)
3923: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3924: */dev/null*)
3925: lt_cv_path_NM="$tmp_nm -p"
3926: break
3927: ;;
3928: *)
3929: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3930: continue # so that we can try to find one that supports BSD flags
3931: ;;
3932: esac
3933: ;;
3934: esac
1.1 parser 3935: fi
1.25 moko 3936: done
3937: IFS="$lt_save_ifs"
1.1 parser 3938: done
1.25 moko 3939: : ${lt_cv_path_NM=no}
1.1 parser 3940: fi
3941: fi
1.25 moko 3942: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3943: echo "${ECHO_T}$lt_cv_path_NM" >&6
3944: if test "$lt_cv_path_NM" != "no"; then
3945: NM="$lt_cv_path_NM"
3946: else
3947: # Didn't find any BSD compatible name lister, look for dumpbin.
3948: if test -n "$DUMPBIN"; then :
3949: # Let the user override the test.
3950: else
3951: if test -n "$ac_tool_prefix"; then
3952: for ac_prog in dumpbin "link -dump"
3953: do
3954: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956: echo "$as_me:$LINENO: checking for $ac_word" >&5
3957: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3959: echo $ECHO_N "(cached) $ECHO_C" >&6
3960: else
3961: if test -n "$DUMPBIN"; then
3962: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3963: else
3964: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965: for as_dir in $PATH
3966: do
3967: IFS=$as_save_IFS
3968: test -z "$as_dir" && as_dir=.
3969: for ac_exec_ext in '' $ac_executable_extensions; do
3970: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3972: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973: break 2
3974: fi
3975: done
3976: done
1.1 parser 3977:
1.25 moko 3978: fi
3979: fi
3980: DUMPBIN=$ac_cv_prog_DUMPBIN
3981: if test -n "$DUMPBIN"; then
3982: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3983: echo "${ECHO_T}$DUMPBIN" >&6
3984: else
3985: echo "$as_me:$LINENO: result: no" >&5
3986: echo "${ECHO_T}no" >&6
3987: fi
1.1 parser 3988:
1.25 moko 3989: test -n "$DUMPBIN" && break
3990: done
3991: fi
3992: if test -z "$DUMPBIN"; then
3993: ac_ct_DUMPBIN=$DUMPBIN
3994: for ac_prog in dumpbin "link -dump"
3995: do
3996: # Extract the first word of "$ac_prog", so it can be a program name with args.
3997: set dummy $ac_prog; ac_word=$2
3998: echo "$as_me:$LINENO: checking for $ac_word" >&5
3999: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
1.11 paf 4001: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 4002: else
1.25 moko 4003: if test -n "$ac_ct_DUMPBIN"; then
4004: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4005: else
1.11 paf 4006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007: for as_dir in $PATH
4008: do
4009: IFS=$as_save_IFS
4010: test -z "$as_dir" && as_dir=.
1.25 moko 4011: for ac_exec_ext in '' $ac_executable_extensions; do
4012: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4014: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015: break 2
4016: fi
4017: done
4018: done
4019:
4020: fi
4021: fi
4022: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4023: if test -n "$ac_ct_DUMPBIN"; then
4024: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4025: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4026: else
4027: echo "$as_me:$LINENO: result: no" >&5
4028: echo "${ECHO_T}no" >&6
4029: fi
4030:
4031: test -n "$ac_ct_DUMPBIN" && break
1.11 paf 4032: done
1.25 moko 4033: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.11 paf 4034:
1.25 moko 4035: DUMPBIN=$ac_ct_DUMPBIN
4036: fi
1.11 paf 4037:
1.25 moko 4038: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4039: *COFF*)
4040: DUMPBIN="$DUMPBIN -symbols"
4041: ;;
4042: *)
4043: DUMPBIN=:
4044: ;;
4045: esac
4046: fi
1.11 paf 4047:
1.25 moko 4048: if test "$DUMPBIN" != ":"; then
4049: NM="$DUMPBIN"
4050: fi
1.1 parser 4051: fi
1.25 moko 4052: test -z "$NM" && NM=nm
4053:
4054:
4055:
4056:
4057:
1.1 parser 4058:
1.25 moko 4059: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4060: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4061: if test "${lt_cv_nm_interface+set}" = set; then
4062: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 paf 4063: else
1.25 moko 4064: lt_cv_nm_interface="BSD nm"
4065: echo "int some_variable = 0;" > conftest.$ac_ext
4066: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4067: (eval "$ac_compile" 2>conftest.err)
4068: cat conftest.err >&5
4069: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4070: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4071: cat conftest.err >&5
4072: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4073: cat conftest.out >&5
4074: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4075: lt_cv_nm_interface="MS dumpbin"
4076: fi
4077: rm -f conftest*
1.7 paf 4078: fi
1.25 moko 4079: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4080: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.11 paf 4081:
4082: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4083: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4084: LN_S=$as_ln_s
4085: if test "$LN_S" = "ln -s"; then
4086: echo "$as_me:$LINENO: result: yes" >&5
4087: echo "${ECHO_T}yes" >&6
4088: else
4089: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4090: echo "${ECHO_T}no, using $LN_S" >&6
4091: fi
4092:
1.25 moko 4093: # find the maximum length of command line arguments
4094: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4095: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4096: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
1.11 paf 4097: echo $ECHO_N "(cached) $ECHO_C" >&6
4098: else
1.25 moko 4099: i=0
4100: teststring="ABCD"
4101:
4102: case $build_os in
4103: msdosdjgpp*)
4104: # On DJGPP, this test can blow up pretty badly due to problems in libc
4105: # (any single argument exceeding 2000 bytes causes a buffer overrun
4106: # during glob expansion). Even if it were fixed, the result of this
4107: # check would be larger than it should be.
4108: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4109: ;;
1.11 paf 4110:
1.25 moko 4111: gnu*)
4112: # Under GNU Hurd, this test is not required because there is
4113: # no limit to the length of command line arguments.
4114: # Libtool will interpret -1 as no limit whatsoever
4115: lt_cv_sys_max_cmd_len=-1;
4116: ;;
1.7 paf 4117:
1.25 moko 4118: cygwin* | mingw* | cegcc*)
4119: # On Win9x/ME, this test blows up -- it succeeds, but takes
4120: # about 5 minutes as the teststring grows exponentially.
4121: # Worse, since 9x/ME are not pre-emptively multitasking,
4122: # you end up with a "frozen" computer, even though with patience
4123: # the test eventually succeeds (with a max line length of 256k).
4124: # Instead, let's just punt: use the minimum linelength reported by
4125: # all of the supported platforms: 8192 (on NT/2K/XP).
4126: lt_cv_sys_max_cmd_len=8192;
4127: ;;
1.1 parser 4128:
1.25 moko 4129: mint*)
4130: # On MiNT this can take a long time and run out of memory.
4131: lt_cv_sys_max_cmd_len=8192;
4132: ;;
1.1 parser 4133:
1.25 moko 4134: amigaos*)
4135: # On AmigaOS with pdksh, this test takes hours, literally.
4136: # So we just punt and use a minimum line length of 8192.
4137: lt_cv_sys_max_cmd_len=8192;
4138: ;;
1.1 parser 4139:
1.25 moko 4140: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4141: # This has been around since 386BSD, at least. Likely further.
4142: if test -x /sbin/sysctl; then
4143: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4144: elif test -x /usr/sbin/sysctl; then
4145: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4146: else
4147: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4148: fi
4149: # And add a safety zone
4150: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4151: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1.11 paf 4152: ;;
1.25 moko 4153:
4154: interix*)
4155: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4156: lt_cv_sys_max_cmd_len=196608
1.11 paf 4157: ;;
1.1 parser 4158:
1.25 moko 4159: os2*)
4160: # The test takes a long time on OS/2.
4161: lt_cv_sys_max_cmd_len=8192
4162: ;;
4163:
4164: osf*)
4165: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4166: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4167: # nice to cause kernel panics so lets avoid the loop below.
4168: # First set a reasonable default.
4169: lt_cv_sys_max_cmd_len=16384
4170: #
4171: if test -x /sbin/sysconfig; then
4172: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4173: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4174: esac
4175: fi
4176: ;;
4177: sco3.2v5*)
4178: lt_cv_sys_max_cmd_len=102400
4179: ;;
4180: sysv5* | sco5v6* | sysv4.2uw2*)
4181: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4182: if test -n "$kargmax"; then
4183: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4184: else
4185: lt_cv_sys_max_cmd_len=32768
4186: fi
4187: ;;
4188: *)
4189: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4190: if test -n "$lt_cv_sys_max_cmd_len"; then
4191: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4192: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4193: else
4194: # Make teststring a little bigger before we do anything with it.
4195: # a 1K string should be a reasonable start.
4196: for i in 1 2 3 4 5 6 7 8 ; do
4197: teststring=$teststring$teststring
4198: done
4199: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4200: # If test is not a shell built-in, we'll probably end up computing a
4201: # maximum length that is only half of the actual maximum length, but
4202: # we can't tell.
4203: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4204: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4205: test $i != 17 # 1/2 MB should be enough
4206: do
4207: i=`expr $i + 1`
4208: teststring=$teststring$teststring
4209: done
4210: # Only check the string length outside the loop.
4211: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4212: teststring=
4213: # Add a significant safety factor because C++ compilers can tack on
4214: # massive amounts of additional arguments before passing them to the
4215: # linker. It appears as though 1/2 is a usable value.
4216: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4217: fi
4218: ;;
4219: esac
4220:
4221: fi
4222:
4223: if test -n $lt_cv_sys_max_cmd_len ; then
4224: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4225: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4226: else
4227: echo "$as_me:$LINENO: result: none" >&5
4228: echo "${ECHO_T}none" >&6
4229: fi
4230: max_cmd_len=$lt_cv_sys_max_cmd_len
4231:
4232:
4233:
4234:
4235:
4236:
4237: : ${CP="cp -f"}
4238: : ${MV="mv -f"}
4239: : ${RM="rm -f"}
4240:
4241: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4242: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4243: # Try some XSI features
4244: xsi_shell=no
4245: ( _lt_dummy="a/b/c"
4246: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4247: = c,a/b,b/c, \
4248: && eval 'test $(( 1 + 1 )) -eq 2 \
4249: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4250: && xsi_shell=yes
4251: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4252: echo "${ECHO_T}$xsi_shell" >&6
4253:
4254:
4255: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4256: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4257: lt_shell_append=no
4258: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4259: >/dev/null 2>&1 \
4260: && lt_shell_append=yes
4261: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4262: echo "${ECHO_T}$lt_shell_append" >&6
4263:
4264:
4265: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4266: lt_unset=unset
4267: else
4268: lt_unset=false
4269: fi
4270:
4271:
4272:
4273:
4274:
4275: # test EBCDIC or ASCII
4276: case `echo X|tr X '\101'` in
4277: A) # ASCII based system
4278: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4279: lt_SP2NL='tr \040 \012'
4280: lt_NL2SP='tr \015\012 \040\040'
4281: ;;
4282: *) # EBCDIC based system
4283: lt_SP2NL='tr \100 \n'
4284: lt_NL2SP='tr \r\n \100\100'
4285: ;;
4286: esac
4287:
4288:
4289:
4290:
4291:
4292:
4293:
4294:
4295:
4296: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4297: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4298: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4299: echo $ECHO_N "(cached) $ECHO_C" >&6
4300: else
4301: case $host in
4302: *-*-mingw* )
4303: case $build in
4304: *-*-mingw* ) # actually msys
4305: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4306: ;;
4307: *-*-cygwin* )
4308: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4309: ;;
4310: * ) # otherwise, assume *nix
4311: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4312: ;;
4313: esac
4314: ;;
4315: *-*-cygwin* )
4316: case $build in
4317: *-*-mingw* ) # actually msys
4318: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4319: ;;
4320: *-*-cygwin* )
4321: lt_cv_to_host_file_cmd=func_convert_file_noop
4322: ;;
4323: * ) # otherwise, assume *nix
4324: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4325: ;;
4326: esac
4327: ;;
4328: * ) # unhandled hosts (and "normal" native builds)
4329: lt_cv_to_host_file_cmd=func_convert_file_noop
4330: ;;
4331: esac
4332:
4333: fi
4334:
4335: to_host_file_cmd=$lt_cv_to_host_file_cmd
4336: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4337: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4338:
4339:
4340:
4341:
4342:
4343: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4344: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4345: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4346: echo $ECHO_N "(cached) $ECHO_C" >&6
4347: else
4348: #assume ordinary cross tools, or native build.
4349: lt_cv_to_tool_file_cmd=func_convert_file_noop
4350: case $host in
4351: *-*-mingw* )
4352: case $build in
4353: *-*-mingw* ) # actually msys
4354: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4355: ;;
4356: esac
4357: ;;
4358: esac
4359:
4360: fi
4361:
4362: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4363: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4364: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4365:
4366:
4367:
4368:
4369:
4370: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4371: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4372: if test "${lt_cv_ld_reload_flag+set}" = set; then
4373: echo $ECHO_N "(cached) $ECHO_C" >&6
4374: else
4375: lt_cv_ld_reload_flag='-r'
4376: fi
4377: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4378: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4379: reload_flag=$lt_cv_ld_reload_flag
4380: case $reload_flag in
4381: "" | " "*) ;;
4382: *) reload_flag=" $reload_flag" ;;
4383: esac
4384: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4385: case $host_os in
4386: cygwin* | mingw* | pw32* | cegcc*)
4387: if test "$GCC" != yes; then
4388: reload_cmds=false
4389: fi
4390: ;;
4391: darwin*)
4392: if test "$GCC" = yes; then
4393: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4394: else
4395: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4396: fi
4397: ;;
4398: esac
4399:
4400:
4401:
4402:
4403:
4404:
4405:
4406:
4407:
4408: if test -n "$ac_tool_prefix"; then
4409: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4410: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4411: echo "$as_me:$LINENO: checking for $ac_word" >&5
4412: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4414: echo $ECHO_N "(cached) $ECHO_C" >&6
4415: else
4416: if test -n "$OBJDUMP"; then
4417: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4418: else
4419: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420: for as_dir in $PATH
4421: do
4422: IFS=$as_save_IFS
4423: test -z "$as_dir" && as_dir=.
4424: for ac_exec_ext in '' $ac_executable_extensions; do
4425: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4427: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428: break 2
4429: fi
4430: done
4431: done
4432:
4433: fi
4434: fi
4435: OBJDUMP=$ac_cv_prog_OBJDUMP
4436: if test -n "$OBJDUMP"; then
4437: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4438: echo "${ECHO_T}$OBJDUMP" >&6
4439: else
4440: echo "$as_me:$LINENO: result: no" >&5
4441: echo "${ECHO_T}no" >&6
4442: fi
4443:
4444: fi
4445: if test -z "$ac_cv_prog_OBJDUMP"; then
4446: ac_ct_OBJDUMP=$OBJDUMP
4447: # Extract the first word of "objdump", so it can be a program name with args.
4448: set dummy objdump; ac_word=$2
4449: echo "$as_me:$LINENO: checking for $ac_word" >&5
4450: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4452: echo $ECHO_N "(cached) $ECHO_C" >&6
4453: else
4454: if test -n "$ac_ct_OBJDUMP"; then
4455: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4456: else
4457: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458: for as_dir in $PATH
4459: do
4460: IFS=$as_save_IFS
4461: test -z "$as_dir" && as_dir=.
4462: for ac_exec_ext in '' $ac_executable_extensions; do
4463: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4465: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466: break 2
4467: fi
4468: done
4469: done
4470:
4471: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4472: fi
4473: fi
4474: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4475: if test -n "$ac_ct_OBJDUMP"; then
4476: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4477: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4478: else
4479: echo "$as_me:$LINENO: result: no" >&5
4480: echo "${ECHO_T}no" >&6
4481: fi
4482:
4483: OBJDUMP=$ac_ct_OBJDUMP
4484: else
4485: OBJDUMP="$ac_cv_prog_OBJDUMP"
4486: fi
4487:
4488: test -z "$OBJDUMP" && OBJDUMP=objdump
4489:
4490:
4491:
4492:
4493:
4494:
4495: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4496: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4497: if test "${lt_cv_deplibs_check_method+set}" = set; then
4498: echo $ECHO_N "(cached) $ECHO_C" >&6
4499: else
4500: lt_cv_file_magic_cmd='$MAGIC_CMD'
4501: lt_cv_file_magic_test_file=
4502: lt_cv_deplibs_check_method='unknown'
4503: # Need to set the preceding variable on all platforms that support
4504: # interlibrary dependencies.
4505: # 'none' -- dependencies not supported.
4506: # `unknown' -- same as none, but documents that we really don't know.
4507: # 'pass_all' -- all dependencies passed with no checks.
4508: # 'test_compile' -- check by making test program.
4509: # 'file_magic [[regex]]' -- check by looking for files in library path
4510: # which responds to the $file_magic_cmd with a given extended regex.
4511: # If you have `file' or equivalent on your system and you're not sure
4512: # whether `pass_all' will *always* work, you probably want this one.
4513:
4514: case $host_os in
4515: aix[4-9]*)
4516: lt_cv_deplibs_check_method=pass_all
4517: ;;
4518:
4519: beos*)
4520: lt_cv_deplibs_check_method=pass_all
4521: ;;
4522:
4523: bsdi[45]*)
4524: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4525: lt_cv_file_magic_cmd='/usr/bin/file -L'
4526: lt_cv_file_magic_test_file=/shlib/libc.so
4527: ;;
4528:
4529: cygwin*)
4530: # func_win32_libid is a shell function defined in ltmain.sh
4531: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4532: lt_cv_file_magic_cmd='func_win32_libid'
4533: ;;
4534:
4535: mingw* | pw32*)
4536: # Base MSYS/MinGW do not provide the 'file' command needed by
4537: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4538: # unless we find 'file', for example because we are cross-compiling.
4539: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4540: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4541: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4542: lt_cv_file_magic_cmd='func_win32_libid'
4543: else
4544: # Keep this pattern in sync with the one in func_win32_libid.
4545: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4546: lt_cv_file_magic_cmd='$OBJDUMP -f'
4547: fi
4548: ;;
4549:
4550: cegcc*)
4551: # use the weaker test based on 'objdump'. See mingw*.
4552: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4553: lt_cv_file_magic_cmd='$OBJDUMP -f'
4554: ;;
4555:
4556: darwin* | rhapsody*)
4557: lt_cv_deplibs_check_method=pass_all
4558: ;;
4559:
4560: freebsd* | dragonfly*)
4561: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.11 paf 4562: case $host_cpu in
4563: i*86 )
4564: # Not sure whether the presence of OpenBSD here was a mistake.
4565: # Let's accept both of them until this is cleared up.
1.25 moko 4566: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.11 paf 4567: lt_cv_file_magic_cmd=/usr/bin/file
4568: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4569: ;;
4570: esac
1.11 paf 4571: else
4572: lt_cv_deplibs_check_method=pass_all
1.1 parser 4573: fi
4574: ;;
4575:
1.11 paf 4576: gnu*)
4577: lt_cv_deplibs_check_method=pass_all
4578: ;;
1.1 parser 4579:
1.25 moko 4580: haiku*)
4581: lt_cv_deplibs_check_method=pass_all
1.11 paf 4582: ;;
1.1 parser 4583:
1.25 moko 4584: hpux10.20* | hpux11*)
4585: lt_cv_file_magic_cmd=/usr/bin/file
4586: case $host_cpu in
4587: ia64*)
4588: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4589: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4590: ;;
4591: hppa*64*)
4592: 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]'
4593: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.11 paf 4594: ;;
4595: *)
1.25 moko 4596: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4597: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.11 paf 4598: ;;
4599: esac
1.25 moko 4600: ;;
4601:
4602: interix[3-9]*)
4603: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4604: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4605: ;;
4606:
4607: irix5* | irix6* | nonstopux*)
4608: case $LD in
4609: *-32|*"-32 ") libmagic=32-bit;;
4610: *-n32|*"-n32 ") libmagic=N32;;
4611: *-64|*"-64 ") libmagic=64-bit;;
4612: *) libmagic=never-match;;
4613: esac
1.11 paf 4614: lt_cv_deplibs_check_method=pass_all
4615: ;;
4616:
1.25 moko 4617: # This must be glibc/ELF.
4618: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4619: lt_cv_deplibs_check_method=pass_all
1.11 paf 4620: ;;
4621:
4622: netbsd*)
1.25 moko 4623: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4624: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 4625: else
1.25 moko 4626: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.11 paf 4627: fi
4628: ;;
4629:
4630: newos6*)
4631: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4632: lt_cv_file_magic_cmd=/usr/bin/file
4633: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4634: ;;
4635:
1.25 moko 4636: *nto* | *qnx*)
4637: lt_cv_deplibs_check_method=pass_all
4638: ;;
4639:
1.11 paf 4640: openbsd*)
1.25 moko 4641: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4642: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.11 paf 4643: else
1.25 moko 4644: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 4645: fi
4646: ;;
4647:
4648: osf3* | osf4* | osf5*)
4649: lt_cv_deplibs_check_method=pass_all
4650: ;;
4651:
1.25 moko 4652: rdos*)
1.11 paf 4653: lt_cv_deplibs_check_method=pass_all
4654: ;;
4655:
4656: solaris*)
4657: lt_cv_deplibs_check_method=pass_all
4658: ;;
4659:
1.25 moko 4660: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.11 paf 4661: lt_cv_deplibs_check_method=pass_all
4662: ;;
4663:
1.25 moko 4664: sysv4 | sysv4.3*)
1.11 paf 4665: case $host_vendor in
4666: motorola)
4667: 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]'
4668: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4669: ;;
4670: ncr)
4671: lt_cv_deplibs_check_method=pass_all
4672: ;;
4673: sequent)
4674: lt_cv_file_magic_cmd='/bin/file'
4675: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4676: ;;
4677: sni)
4678: lt_cv_file_magic_cmd='/bin/file'
4679: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4680: lt_cv_file_magic_test_file=/lib/libc.so
4681: ;;
4682: siemens)
4683: lt_cv_deplibs_check_method=pass_all
4684: ;;
1.25 moko 4685: pc)
4686: lt_cv_deplibs_check_method=pass_all
4687: ;;
1.11 paf 4688: esac
4689: ;;
1.25 moko 4690:
4691: tpf*)
4692: lt_cv_deplibs_check_method=pass_all
4693: ;;
4694: esac
1.11 paf 4695:
4696: fi
4697: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4698: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.25 moko 4699:
4700: file_magic_glob=
4701: want_nocaseglob=no
4702: if test "$build" = "$host"; then
4703: case $host_os in
4704: mingw* | pw32*)
4705: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4706: want_nocaseglob=yes
4707: else
4708: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4709: fi
4710: ;;
4711: esac
4712: fi
4713:
1.11 paf 4714: file_magic_cmd=$lt_cv_file_magic_cmd
4715: deplibs_check_method=$lt_cv_deplibs_check_method
1.25 moko 4716: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4717:
4718:
4719:
1.11 paf 4720:
4721:
4722:
4723:
4724:
4725:
4726:
4727:
1.25 moko 4728:
4729:
4730:
4731:
4732:
4733:
4734:
4735:
4736:
4737:
4738:
4739: if test -n "$ac_tool_prefix"; then
4740: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4741: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4742: echo "$as_me:$LINENO: checking for $ac_word" >&5
4743: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4745: echo $ECHO_N "(cached) $ECHO_C" >&6
4746: else
4747: if test -n "$DLLTOOL"; then
4748: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4749: else
4750: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751: for as_dir in $PATH
4752: do
4753: IFS=$as_save_IFS
4754: test -z "$as_dir" && as_dir=.
4755: for ac_exec_ext in '' $ac_executable_extensions; do
4756: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4758: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759: break 2
4760: fi
4761: done
4762: done
4763:
4764: fi
4765: fi
4766: DLLTOOL=$ac_cv_prog_DLLTOOL
4767: if test -n "$DLLTOOL"; then
4768: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4769: echo "${ECHO_T}$DLLTOOL" >&6
4770: else
4771: echo "$as_me:$LINENO: result: no" >&5
4772: echo "${ECHO_T}no" >&6
4773: fi
4774:
4775: fi
4776: if test -z "$ac_cv_prog_DLLTOOL"; then
4777: ac_ct_DLLTOOL=$DLLTOOL
4778: # Extract the first word of "dlltool", so it can be a program name with args.
4779: set dummy dlltool; ac_word=$2
4780: echo "$as_me:$LINENO: checking for $ac_word" >&5
4781: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.11 paf 4783: echo $ECHO_N "(cached) $ECHO_C" >&6
4784: else
1.25 moko 4785: if test -n "$ac_ct_DLLTOOL"; then
4786: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4787: else
4788: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789: for as_dir in $PATH
4790: do
4791: IFS=$as_save_IFS
4792: test -z "$as_dir" && as_dir=.
4793: for ac_exec_ext in '' $ac_executable_extensions; do
4794: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4796: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797: break 2
4798: fi
4799: done
4800: done
4801:
4802: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4803: fi
4804: fi
4805: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4806: if test -n "$ac_ct_DLLTOOL"; then
4807: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4808: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4809: else
4810: echo "$as_me:$LINENO: result: no" >&5
4811: echo "${ECHO_T}no" >&6
4812: fi
4813:
4814: DLLTOOL=$ac_ct_DLLTOOL
4815: else
4816: DLLTOOL="$ac_cv_prog_DLLTOOL"
4817: fi
4818:
4819: test -z "$DLLTOOL" && DLLTOOL=dlltool
4820:
1.11 paf 4821:
4822:
4823:
4824:
4825:
4826:
1.25 moko 4827: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4828: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4829: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4830: echo $ECHO_N "(cached) $ECHO_C" >&6
4831: else
4832: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.11 paf 4833:
4834: case $host_os in
1.25 moko 4835: cygwin* | mingw* | pw32* | cegcc*)
4836: # two different shell functions defined in ltmain.sh
4837: # decide which to use based on capabilities of $DLLTOOL
4838: case `$DLLTOOL --help 2>&1` in
4839: *--identify-strict*)
4840: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4841: ;;
4842: *)
4843: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4844: ;;
4845: esac
1.11 paf 4846: ;;
1.25 moko 4847: *)
4848: # fallback: assume linklib IS sharedlib
4849: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.11 paf 4850: ;;
4851: esac
4852:
4853: fi
1.25 moko 4854: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4855: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
4856: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4857: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.11 paf 4858:
4859:
4860:
4861:
4862:
4863:
4864:
4865:
1.25 moko 4866: if test -n "$ac_tool_prefix"; then
4867: for ac_prog in ar
4868: do
4869: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4870: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4871: echo "$as_me:$LINENO: checking for $ac_word" >&5
4872: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4873: if test "${ac_cv_prog_AR+set}" = set; then
4874: echo $ECHO_N "(cached) $ECHO_C" >&6
4875: else
4876: if test -n "$AR"; then
4877: ac_cv_prog_AR="$AR" # Let the user override the test.
4878: else
4879: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880: for as_dir in $PATH
4881: do
4882: IFS=$as_save_IFS
4883: test -z "$as_dir" && as_dir=.
4884: for ac_exec_ext in '' $ac_executable_extensions; do
4885: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4887: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888: break 2
1.11 paf 4889: fi
4890: done
1.25 moko 4891: done
1.11 paf 4892:
4893: fi
4894: fi
1.25 moko 4895: AR=$ac_cv_prog_AR
4896: if test -n "$AR"; then
4897: echo "$as_me:$LINENO: result: $AR" >&5
4898: echo "${ECHO_T}$AR" >&6
1.11 paf 4899: else
1.25 moko 4900: echo "$as_me:$LINENO: result: no" >&5
4901: echo "${ECHO_T}no" >&6
1.11 paf 4902: fi
4903:
1.25 moko 4904: test -n "$AR" && break
4905: done
1.15 paf 4906: fi
1.25 moko 4907: if test -z "$AR"; then
4908: ac_ct_AR=$AR
4909: for ac_prog in ar
4910: do
4911: # Extract the first word of "$ac_prog", so it can be a program name with args.
4912: set dummy $ac_prog; ac_word=$2
4913: echo "$as_me:$LINENO: checking for $ac_word" >&5
4914: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.11 paf 4916: echo $ECHO_N "(cached) $ECHO_C" >&6
4917: else
1.25 moko 4918: if test -n "$ac_ct_AR"; then
4919: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4920: else
4921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922: for as_dir in $PATH
1.11 paf 4923: do
1.25 moko 4924: IFS=$as_save_IFS
4925: test -z "$as_dir" && as_dir=.
4926: for ac_exec_ext in '' $ac_executable_extensions; do
4927: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928: ac_cv_prog_ac_ct_AR="$ac_prog"
4929: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930: break 2
1.11 paf 4931: fi
1.25 moko 4932: done
4933: done
1.11 paf 4934:
4935: fi
4936: fi
1.25 moko 4937: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4938: if test -n "$ac_ct_AR"; then
4939: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4940: echo "${ECHO_T}$ac_ct_AR" >&6
1.1 parser 4941: else
1.25 moko 4942: echo "$as_me:$LINENO: result: no" >&5
4943: echo "${ECHO_T}no" >&6
1.1 parser 4944: fi
1.11 paf 4945:
1.25 moko 4946: test -n "$ac_ct_AR" && break
1.11 paf 4947: done
1.25 moko 4948: test -n "$ac_ct_AR" || ac_ct_AR="false"
4949:
4950: AR=$ac_ct_AR
1.1 parser 4951: fi
4952:
1.25 moko 4953: : ${AR=ar}
4954: : ${AR_FLAGS=cru}
4955:
1.11 paf 4956:
4957:
1.1 parser 4958:
1.11 paf 4959:
4960:
4961:
4962:
4963:
4964:
4965:
1.25 moko 4966: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4967: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4968: if test "${lt_cv_ar_at_file+set}" = set; then
1.11 paf 4969: echo $ECHO_N "(cached) $ECHO_C" >&6
4970: else
1.25 moko 4971: lt_cv_ar_at_file=no
4972: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 4973: /* confdefs.h. */
4974: _ACEOF
4975: cat confdefs.h >>conftest.$ac_ext
4976: cat >>conftest.$ac_ext <<_ACEOF
4977: /* end confdefs.h. */
4978:
4979: int
4980: main ()
4981: {
4982:
4983: ;
4984: return 0;
4985: }
4986: _ACEOF
4987: rm -f conftest.$ac_objext
4988: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 4989: (eval $ac_compile) 2>conftest.er1
1.11 paf 4990: ac_status=$?
1.18 paf 4991: grep -v '^ *+' conftest.er1 >conftest.err
4992: rm -f conftest.er1
4993: cat conftest.err >&5
1.11 paf 4994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995: (exit $ac_status); } &&
1.18 paf 4996: { ac_try='test -z "$ac_c_werror_flag"
4997: || test ! -s conftest.err'
4998: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999: (eval $ac_try) 2>&5
5000: ac_status=$?
5001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002: (exit $ac_status); }; } &&
5003: { ac_try='test -s conftest.$ac_objext'
1.11 paf 5004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005: (eval $ac_try) 2>&5
5006: ac_status=$?
5007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008: (exit $ac_status); }; }; then
1.25 moko 5009: echo conftest.$ac_objext > conftest.lst
5010: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5011: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5012: (eval $lt_ar_try) 2>&5
5013: ac_status=$?
5014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015: (exit $ac_status); }
5016: if test "$ac_status" -eq 0; then
5017: # Ensure the archiver fails upon bogus file names.
5018: rm -f conftest.$ac_objext libconftest.a
5019: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5020: (eval $lt_ar_try) 2>&5
5021: ac_status=$?
5022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023: (exit $ac_status); }
5024: if test "$ac_status" -ne 0; then
5025: lt_cv_ar_at_file=@
5026: fi
5027: fi
5028: rm -f conftest.* libconftest.a
5029:
1.11 paf 5030: else
5031: echo "$as_me: failed program was:" >&5
5032: sed 's/^/| /' conftest.$ac_ext >&5
5033:
5034: fi
1.18 paf 5035: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 5036:
1.25 moko 5037: fi
5038: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5039: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.11 paf 5040:
1.25 moko 5041: if test "x$lt_cv_ar_at_file" = xno; then
5042: archiver_list_spec=
1.11 paf 5043: else
1.25 moko 5044: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 5045: fi
5046:
5047:
5048:
1.25 moko 5049:
5050:
5051:
5052:
5053: if test -n "$ac_tool_prefix"; then
5054: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5055: set dummy ${ac_tool_prefix}strip; ac_word=$2
5056: echo "$as_me:$LINENO: checking for $ac_word" >&5
5057: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058: if test "${ac_cv_prog_STRIP+set}" = set; then
5059: echo $ECHO_N "(cached) $ECHO_C" >&6
5060: else
5061: if test -n "$STRIP"; then
5062: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5063: else
5064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065: for as_dir in $PATH
5066: do
5067: IFS=$as_save_IFS
5068: test -z "$as_dir" && as_dir=.
5069: for ac_exec_ext in '' $ac_executable_extensions; do
5070: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5072: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073: break 2
5074: fi
5075: done
5076: done
5077:
5078: fi
5079: fi
5080: STRIP=$ac_cv_prog_STRIP
5081: if test -n "$STRIP"; then
5082: echo "$as_me:$LINENO: result: $STRIP" >&5
5083: echo "${ECHO_T}$STRIP" >&6
1.7 paf 5084: else
1.25 moko 5085: echo "$as_me:$LINENO: result: no" >&5
5086: echo "${ECHO_T}no" >&6
1.11 paf 5087: fi
5088:
1.7 paf 5089: fi
1.25 moko 5090: if test -z "$ac_cv_prog_STRIP"; then
5091: ac_ct_STRIP=$STRIP
5092: # Extract the first word of "strip", so it can be a program name with args.
5093: set dummy strip; ac_word=$2
5094: echo "$as_me:$LINENO: checking for $ac_word" >&5
5095: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5097: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 5098: else
1.25 moko 5099: if test -n "$ac_ct_STRIP"; then
5100: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.7 paf 5101: else
1.25 moko 5102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103: for as_dir in $PATH
5104: do
5105: IFS=$as_save_IFS
5106: test -z "$as_dir" && as_dir=.
5107: for ac_exec_ext in '' $ac_executable_extensions; do
5108: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109: ac_cv_prog_ac_ct_STRIP="strip"
5110: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111: break 2
5112: fi
5113: done
5114: done
1.11 paf 5115:
1.25 moko 5116: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.11 paf 5117: fi
5118: fi
1.25 moko 5119: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5120: if test -n "$ac_ct_STRIP"; then
5121: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5122: echo "${ECHO_T}$ac_ct_STRIP" >&6
5123: else
5124: echo "$as_me:$LINENO: result: no" >&5
5125: echo "${ECHO_T}no" >&6
1.11 paf 5126: fi
5127:
1.25 moko 5128: STRIP=$ac_ct_STRIP
5129: else
5130: STRIP="$ac_cv_prog_STRIP"
1.11 paf 5131: fi
5132:
1.25 moko 5133: test -z "$STRIP" && STRIP=:
1.11 paf 5134:
5135:
5136:
5137:
5138:
5139:
1.25 moko 5140: if test -n "$ac_tool_prefix"; then
5141: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5142: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5143: echo "$as_me:$LINENO: checking for $ac_word" >&5
5144: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.11 paf 5146: echo $ECHO_N "(cached) $ECHO_C" >&6
5147: else
1.25 moko 5148: if test -n "$RANLIB"; then
5149: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.11 paf 5150: else
1.25 moko 5151: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152: for as_dir in $PATH
5153: do
5154: IFS=$as_save_IFS
5155: test -z "$as_dir" && as_dir=.
5156: for ac_exec_ext in '' $ac_executable_extensions; do
5157: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5159: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160: break 2
5161: fi
5162: done
5163: done
1.11 paf 5164:
5165: fi
5166: fi
1.25 moko 5167: RANLIB=$ac_cv_prog_RANLIB
5168: if test -n "$RANLIB"; then
5169: echo "$as_me:$LINENO: result: $RANLIB" >&5
5170: echo "${ECHO_T}$RANLIB" >&6
5171: else
5172: echo "$as_me:$LINENO: result: no" >&5
5173: echo "${ECHO_T}no" >&6
5174: fi
1.11 paf 5175:
5176: fi
1.25 moko 5177: if test -z "$ac_cv_prog_RANLIB"; then
5178: ac_ct_RANLIB=$RANLIB
5179: # Extract the first word of "ranlib", so it can be a program name with args.
5180: set dummy ranlib; ac_word=$2
5181: echo "$as_me:$LINENO: checking for $ac_word" >&5
5182: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184: echo $ECHO_N "(cached) $ECHO_C" >&6
5185: else
5186: if test -n "$ac_ct_RANLIB"; then
5187: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188: else
5189: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190: for as_dir in $PATH
5191: do
5192: IFS=$as_save_IFS
5193: test -z "$as_dir" && as_dir=.
5194: for ac_exec_ext in '' $ac_executable_extensions; do
5195: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196: ac_cv_prog_ac_ct_RANLIB="ranlib"
5197: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198: break 2
5199: fi
5200: done
1.11 paf 5201: done
5202:
1.25 moko 5203: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5204: fi
5205: fi
5206: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207: if test -n "$ac_ct_RANLIB"; then
5208: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.11 paf 5210: else
1.25 moko 5211: echo "$as_me:$LINENO: result: no" >&5
5212: echo "${ECHO_T}no" >&6
1.11 paf 5213: fi
5214:
1.25 moko 5215: RANLIB=$ac_ct_RANLIB
1.7 paf 5216: else
1.25 moko 5217: RANLIB="$ac_cv_prog_RANLIB"
1.7 paf 5218: fi
1.11 paf 5219:
1.25 moko 5220: test -z "$RANLIB" && RANLIB=:
5221:
5222:
5223:
5224:
5225:
5226:
5227: # Determine commands to create old-style static archives.
5228: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5229: old_postinstall_cmds='chmod 644 $oldlib'
5230: old_postuninstall_cmds=
1.11 paf 5231:
1.25 moko 5232: if test -n "$RANLIB"; then
5233: case $host_os in
5234: openbsd*)
5235: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.11 paf 5236: ;;
1.25 moko 5237: *)
5238: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 5239: ;;
1.25 moko 5240: esac
5241: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 5242: fi
5243:
1.25 moko 5244: case $host_os in
5245: darwin*)
5246: lock_old_archive_extraction=yes ;;
5247: *)
5248: lock_old_archive_extraction=no ;;
5249: esac
1.11 paf 5250:
5251:
5252:
5253:
5254:
5255:
5256:
5257:
5258:
5259:
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
5272:
5273:
5274:
5275:
5276:
5277:
5278:
5279:
5280:
5281:
5282:
5283:
5284:
5285:
5286:
5287:
5288:
1.25 moko 5289: # If no C compiler was specified, use CC.
5290: LTCC=${LTCC-"$CC"}
1.11 paf 5291:
1.25 moko 5292: # If no C compiler flags were specified, use CFLAGS.
5293: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.11 paf 5294:
1.25 moko 5295: # Allow CC to be a program name with arguments.
5296: compiler=$CC
1.11 paf 5297:
5298:
1.25 moko 5299: # Check for command to grab the raw symbol name followed by C symbol from nm.
5300: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5301: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5302: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5303: echo $ECHO_N "(cached) $ECHO_C" >&6
5304: else
5305:
5306: # These are sane defaults that work on at least a few old systems.
5307: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.11 paf 5308:
1.25 moko 5309: # Character class describing NM global symbol codes.
5310: symcode='[BCDEGRST]'
1.11 paf 5311:
1.25 moko 5312: # Regexp to match symbols that can be accessed directly from C.
5313: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.11 paf 5314:
1.25 moko 5315: # Define system-specific variables.
5316: case $host_os in
5317: aix*)
5318: symcode='[BCDT]'
5319: ;;
5320: cygwin* | mingw* | pw32* | cegcc*)
5321: symcode='[ABCDGISTW]'
5322: ;;
5323: hpux*)
5324: if test "$host_cpu" = ia64; then
5325: symcode='[ABCDEGRST]'
5326: fi
5327: ;;
5328: irix* | nonstopux*)
5329: symcode='[BCDEGRST]'
5330: ;;
5331: osf*)
5332: symcode='[BCDEGQRST]'
5333: ;;
5334: solaris*)
5335: symcode='[BDRT]'
5336: ;;
5337: sco3.2v5*)
5338: symcode='[DT]'
5339: ;;
5340: sysv4.2uw2*)
5341: symcode='[DT]'
5342: ;;
5343: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5344: symcode='[ABDT]'
5345: ;;
5346: sysv4)
5347: symcode='[DFNSTU]'
5348: ;;
5349: esac
1.11 paf 5350:
1.25 moko 5351: # If we're using GNU nm, then use its standard symbol codes.
5352: case `$NM -V 2>&1` in
5353: *GNU* | *'with BFD'*)
5354: symcode='[ABCDGIRSTW]' ;;
5355: esac
1.11 paf 5356:
1.25 moko 5357: # Transform an extracted symbol line into a proper C declaration.
5358: # Some systems (esp. on ia64) link data and code symbols differently,
5359: # so use this general approach.
5360: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.11 paf 5361:
1.25 moko 5362: # Transform an extracted symbol line into symbol name and symbol address
5363: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5364: 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'"
1.11 paf 5365:
1.25 moko 5366: # Handle CRLF in mingw tool chain
5367: opt_cr=
5368: case $build_os in
5369: mingw*)
5370: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5371: ;;
5372: esac
1.11 paf 5373:
1.25 moko 5374: # Try without a prefix underscore, then with it.
5375: for ac_symprfx in "" "_"; do
1.11 paf 5376:
1.25 moko 5377: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5378: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.11 paf 5379:
1.25 moko 5380: # Write the raw and C identifiers.
5381: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5382: # Fake it for dumpbin and say T for any non-static function
5383: # and D for any global variable.
5384: # Also find C++ and __fastcall symbols from MSVC++,
5385: # which start with @ or ?.
5386: lt_cv_sys_global_symbol_pipe="$AWK '"\
5387: " {last_section=section; section=\$ 3};"\
5388: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5389: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5390: " \$ 0!~/External *\|/{next};"\
5391: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5392: " {if(hide[section]) next};"\
5393: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5394: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5395: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5396: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5397: " ' prfx=^$ac_symprfx"
5398: else
5399: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.11 paf 5400: fi
1.25 moko 5401: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.11 paf 5402:
1.25 moko 5403: # Check to see that the pipe works correctly.
5404: pipe_works=no
1.11 paf 5405:
1.25 moko 5406: rm -f conftest*
5407: cat > conftest.$ac_ext <<_LT_EOF
5408: #ifdef __cplusplus
5409: extern "C" {
5410: #endif
5411: char nm_test_var;
5412: void nm_test_func(void);
5413: void nm_test_func(void){}
5414: #ifdef __cplusplus
5415: }
5416: #endif
5417: int main(){nm_test_var='a';nm_test_func();return(0);}
5418: _LT_EOF
1.11 paf 5419:
1.25 moko 5420: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421: (eval $ac_compile) 2>&5
5422: ac_status=$?
5423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424: (exit $ac_status); }; then
5425: # Now try to grab the symbols.
5426: nlist=conftest.nm
5427: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5428: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5429: ac_status=$?
5430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431: (exit $ac_status); } && test -s "$nlist"; then
5432: # Try sorting and uniquifying the output.
5433: if sort "$nlist" | uniq > "$nlist"T; then
5434: mv -f "$nlist"T "$nlist"
5435: else
5436: rm -f "$nlist"T
5437: fi
1.11 paf 5438:
1.25 moko 5439: # Make sure that we snagged all the symbols we need.
5440: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5441: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5442: cat <<_LT_EOF > conftest.$ac_ext
5443: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5444: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5445: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5446: relocations are performed -- see ld's documentation on pseudo-relocs. */
5447: # define LT_DLSYM_CONST
5448: #elif defined(__osf__)
5449: /* This system does not cope well with relocations in const data. */
5450: # define LT_DLSYM_CONST
5451: #else
5452: # define LT_DLSYM_CONST const
5453: #endif
1.11 paf 5454:
1.25 moko 5455: #ifdef __cplusplus
5456: extern "C" {
5457: #endif
1.11 paf 5458:
1.25 moko 5459: _LT_EOF
5460: # Now generate the symbol file.
5461: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.11 paf 5462:
1.25 moko 5463: cat <<_LT_EOF >> conftest.$ac_ext
1.11 paf 5464:
1.25 moko 5465: /* The mapping between symbol names and symbols. */
5466: LT_DLSYM_CONST struct {
5467: const char *name;
5468: void *address;
5469: }
5470: lt__PROGRAM__LTX_preloaded_symbols[] =
5471: {
5472: { "@PROGRAM@", (void *) 0 },
5473: _LT_EOF
5474: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5475: cat <<\_LT_EOF >> conftest.$ac_ext
5476: {0, (void *) 0}
5477: };
1.11 paf 5478:
1.25 moko 5479: /* This works around a problem in FreeBSD linker */
5480: #ifdef FREEBSD_WORKAROUND
5481: static const void *lt_preloaded_setup() {
5482: return lt__PROGRAM__LTX_preloaded_symbols;
5483: }
5484: #endif
1.11 paf 5485:
1.25 moko 5486: #ifdef __cplusplus
5487: }
5488: #endif
5489: _LT_EOF
5490: # Now try linking the two files.
5491: mv conftest.$ac_objext conftstm.$ac_objext
5492: lt_globsym_save_LIBS=$LIBS
5493: lt_globsym_save_CFLAGS=$CFLAGS
5494: LIBS="conftstm.$ac_objext"
5495: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5496: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5497: (eval $ac_link) 2>&5
5498: ac_status=$?
5499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5501: pipe_works=yes
5502: fi
5503: LIBS=$lt_globsym_save_LIBS
5504: CFLAGS=$lt_globsym_save_CFLAGS
5505: else
5506: echo "cannot find nm_test_func in $nlist" >&5
5507: fi
5508: else
5509: echo "cannot find nm_test_var in $nlist" >&5
1.11 paf 5510: fi
1.25 moko 5511: else
5512: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5513: fi
5514: else
5515: echo "$progname: failed program was:" >&5
5516: cat conftest.$ac_ext >&5
5517: fi
5518: rm -rf conftest* conftst*
5519:
5520: # Do not use the global_symbol_pipe unless it works.
5521: if test "$pipe_works" = yes; then
5522: break
1.11 paf 5523: else
1.25 moko 5524: lt_cv_sys_global_symbol_pipe=
5525: fi
5526: done
5527:
5528: fi
1.11 paf 5529:
1.25 moko 5530: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5531: lt_cv_sys_global_symbol_to_cdecl=
5532: fi
5533: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5534: echo "$as_me:$LINENO: result: failed" >&5
5535: echo "${ECHO_T}failed" >&6
5536: else
5537: echo "$as_me:$LINENO: result: ok" >&5
5538: echo "${ECHO_T}ok" >&6
5539: fi
1.11 paf 5540:
1.25 moko 5541: # Response file support.
5542: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5543: nm_file_list_spec='@'
5544: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5545: nm_file_list_spec='@'
5546: fi
1.11 paf 5547:
5548:
5549:
5550:
5551:
5552:
5553:
5554:
5555:
5556:
5557:
5558:
1.25 moko 5559:
5560:
5561:
5562:
5563:
5564:
5565:
5566:
5567:
5568:
5569:
5570:
5571:
5572:
5573:
5574: echo "$as_me:$LINENO: checking for sysroot" >&5
5575: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5576:
5577: # Check whether --with-sysroot or --without-sysroot was given.
5578: if test "${with_sysroot+set}" = set; then
5579: withval="$with_sysroot"
5580:
1.11 paf 5581: else
1.25 moko 5582: with_sysroot=no
5583: fi;
5584:
5585: lt_sysroot=
5586: case ${with_sysroot} in #(
5587: yes)
5588: if test "$GCC" = yes; then
5589: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5590: fi
5591: ;; #(
5592: /*)
5593: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5594: ;; #(
5595: no|'')
5596: ;; #(
5597: *)
5598: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5599: echo "${ECHO_T}${with_sysroot}" >&6
5600: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5601: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5602: { (exit 1); exit 1; }; }
5603: ;;
5604: esac
5605:
5606: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5607: echo "${ECHO_T}${lt_sysroot:-no}" >&6
5608:
5609:
1.11 paf 5610:
5611:
5612:
1.25 moko 5613: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5614: if test "${enable_libtool_lock+set}" = set; then
5615: enableval="$enable_libtool_lock"
5616:
5617: fi;
5618: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5619:
5620: # Some flags need to be propagated to the compiler or linker for good
5621: # libtool support.
5622: case $host in
5623: ia64-*-hpux*)
5624: # Find out which ABI we are using.
5625: echo 'int i;' > conftest.$ac_ext
5626: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627: (eval $ac_compile) 2>&5
1.11 paf 5628: ac_status=$?
5629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 moko 5630: (exit $ac_status); }; then
5631: case `/usr/bin/file conftest.$ac_objext` in
5632: *ELF-32*)
5633: HPUX_IA64_MODE="32"
5634: ;;
5635: *ELF-64*)
5636: HPUX_IA64_MODE="64"
5637: ;;
5638: esac
5639: fi
5640: rm -rf conftest*
5641: ;;
5642: *-*-irix6*)
5643: # Find out which ABI we are using.
5644: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5645: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646: (eval $ac_compile) 2>&5
1.18 paf 5647: ac_status=$?
5648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 moko 5649: (exit $ac_status); }; then
5650: if test "$lt_cv_prog_gnu_ld" = yes; then
5651: case `/usr/bin/file conftest.$ac_objext` in
5652: *32-bit*)
5653: LD="${LD-ld} -melf32bsmip"
5654: ;;
5655: *N32*)
5656: LD="${LD-ld} -melf32bmipn32"
5657: ;;
5658: *64-bit*)
5659: LD="${LD-ld} -melf64bmip"
5660: ;;
5661: esac
5662: else
5663: case `/usr/bin/file conftest.$ac_objext` in
5664: *32-bit*)
5665: LD="${LD-ld} -32"
5666: ;;
5667: *N32*)
5668: LD="${LD-ld} -n32"
5669: ;;
5670: *64-bit*)
5671: LD="${LD-ld} -64"
5672: ;;
5673: esac
5674: fi
5675: fi
5676: rm -rf conftest*
5677: ;;
5678:
5679: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5680: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5681: # Find out which ABI we are using.
5682: echo 'int i;' > conftest.$ac_ext
5683: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684: (eval $ac_compile) 2>&5
1.11 paf 5685: ac_status=$?
5686: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 moko 5687: (exit $ac_status); }; then
5688: case `/usr/bin/file conftest.o` in
5689: *32-bit*)
5690: case $host in
5691: x86_64-*kfreebsd*-gnu)
5692: LD="${LD-ld} -m elf_i386_fbsd"
5693: ;;
5694: x86_64-*linux*)
5695: LD="${LD-ld} -m elf_i386"
5696: ;;
5697: ppc64-*linux*|powerpc64-*linux*)
5698: LD="${LD-ld} -m elf32ppclinux"
5699: ;;
5700: s390x-*linux*)
5701: LD="${LD-ld} -m elf_s390"
5702: ;;
5703: sparc64-*linux*)
5704: LD="${LD-ld} -m elf32_sparc"
5705: ;;
5706: esac
1.11 paf 5707: ;;
1.25 moko 5708: *64-bit*)
5709: case $host in
5710: x86_64-*kfreebsd*-gnu)
5711: LD="${LD-ld} -m elf_x86_64_fbsd"
5712: ;;
5713: x86_64-*linux*)
5714: LD="${LD-ld} -m elf_x86_64"
5715: ;;
5716: ppc*-*linux*|powerpc*-*linux*)
5717: LD="${LD-ld} -m elf64ppc"
5718: ;;
5719: s390*-*linux*|s390*-*tpf*)
5720: LD="${LD-ld} -m elf64_s390"
5721: ;;
5722: sparc*-*linux*)
5723: LD="${LD-ld} -m elf64_sparc"
5724: ;;
5725: esac
1.11 paf 5726: ;;
1.25 moko 5727: esac
1.11 paf 5728: fi
1.25 moko 5729: rm -rf conftest*
5730: ;;
1.11 paf 5731:
1.25 moko 5732: *-*-sco3.2v5*)
5733: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5734: SAVE_CFLAGS="$CFLAGS"
5735: CFLAGS="$CFLAGS -belf"
5736: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5737: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5738: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.11 paf 5739: echo $ECHO_N "(cached) $ECHO_C" >&6
5740: else
1.25 moko 5741: ac_ext=c
5742: ac_cpp='$CPP $CPPFLAGS'
5743: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5746:
5747: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 5748: /* confdefs.h. */
5749: _ACEOF
5750: cat confdefs.h >>conftest.$ac_ext
5751: cat >>conftest.$ac_ext <<_ACEOF
5752: /* end confdefs.h. */
5753:
5754: int
5755: main ()
5756: {
5757:
5758: ;
5759: return 0;
5760: }
5761: _ACEOF
5762: rm -f conftest.$ac_objext conftest$ac_exeext
5763: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 5764: (eval $ac_link) 2>conftest.er1
1.11 paf 5765: ac_status=$?
1.18 paf 5766: grep -v '^ *+' conftest.er1 >conftest.err
5767: rm -f conftest.er1
5768: cat conftest.err >&5
1.11 paf 5769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770: (exit $ac_status); } &&
1.18 paf 5771: { ac_try='test -z "$ac_c_werror_flag"
5772: || test ! -s conftest.err'
5773: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774: (eval $ac_try) 2>&5
5775: ac_status=$?
5776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777: (exit $ac_status); }; } &&
5778: { ac_try='test -s conftest$ac_exeext'
1.11 paf 5779: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780: (eval $ac_try) 2>&5
5781: ac_status=$?
5782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783: (exit $ac_status); }; }; then
1.25 moko 5784: lt_cv_cc_needs_belf=yes
1.11 paf 5785: else
5786: echo "$as_me: failed program was:" >&5
5787: sed 's/^/| /' conftest.$ac_ext >&5
5788:
1.25 moko 5789: lt_cv_cc_needs_belf=no
1.11 paf 5790: fi
1.18 paf 5791: rm -f conftest.err conftest.$ac_objext \
5792: conftest$ac_exeext conftest.$ac_ext
1.25 moko 5793: ac_ext=c
5794: ac_cpp='$CPP $CPPFLAGS'
5795: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 5798:
5799: fi
1.25 moko 5800: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5801: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5802: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5803: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5804: CFLAGS="$SAVE_CFLAGS"
5805: fi
5806: ;;
5807: *-*solaris*)
5808: # Find out which ABI we are using.
5809: echo 'int i;' > conftest.$ac_ext
5810: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811: (eval $ac_compile) 2>&5
5812: ac_status=$?
5813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814: (exit $ac_status); }; then
5815: case `/usr/bin/file conftest.o` in
5816: *64-bit*)
5817: case $lt_cv_prog_gnu_ld in
5818: yes*)
5819: case $host in
5820: i?86-*-solaris*)
5821: LD="${LD-ld} -m elf_x86_64"
5822: ;;
5823: sparc*-*-solaris*)
5824: LD="${LD-ld} -m elf64_sparc"
5825: ;;
5826: esac
5827: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5828: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5829: LD="${LD-ld}_sol2"
5830: fi
5831: ;;
5832: *)
5833: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5834: LD="${LD-ld} -64"
5835: fi
5836: ;;
5837: esac
5838: ;;
5839: esac
5840: fi
5841: rm -rf conftest*
5842: ;;
5843: esac
1.11 paf 5844:
1.25 moko 5845: need_locks="$enable_libtool_lock"
1.11 paf 5846:
1.25 moko 5847: if test -n "$ac_tool_prefix"; then
5848: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5849: set dummy ${ac_tool_prefix}mt; ac_word=$2
5850: echo "$as_me:$LINENO: checking for $ac_word" >&5
5851: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
5853: echo $ECHO_N "(cached) $ECHO_C" >&6
5854: else
5855: if test -n "$MANIFEST_TOOL"; then
5856: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5857: else
5858: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859: for as_dir in $PATH
5860: do
5861: IFS=$as_save_IFS
5862: test -z "$as_dir" && as_dir=.
5863: for ac_exec_ext in '' $ac_executable_extensions; do
5864: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5866: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867: break 2
5868: fi
5869: done
5870: done
1.11 paf 5871:
1.25 moko 5872: fi
5873: fi
5874: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5875: if test -n "$MANIFEST_TOOL"; then
5876: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5877: echo "${ECHO_T}$MANIFEST_TOOL" >&6
5878: else
5879: echo "$as_me:$LINENO: result: no" >&5
5880: echo "${ECHO_T}no" >&6
5881: fi
1.11 paf 5882:
1.25 moko 5883: fi
5884: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5885: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5886: # Extract the first word of "mt", so it can be a program name with args.
5887: set dummy mt; ac_word=$2
5888: echo "$as_me:$LINENO: checking for $ac_word" >&5
5889: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
1.11 paf 5891: echo $ECHO_N "(cached) $ECHO_C" >&6
5892: else
1.25 moko 5893: if test -n "$ac_ct_MANIFEST_TOOL"; then
5894: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5895: else
5896: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897: for as_dir in $PATH
5898: do
5899: IFS=$as_save_IFS
5900: test -z "$as_dir" && as_dir=.
5901: for ac_exec_ext in '' $ac_executable_extensions; do
5902: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5904: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905: break 2
5906: fi
5907: done
5908: done
1.11 paf 5909:
1.25 moko 5910: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
5911: fi
5912: fi
5913: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5914: if test -n "$ac_ct_MANIFEST_TOOL"; then
5915: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5916: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.11 paf 5917: else
1.25 moko 5918: echo "$as_me:$LINENO: result: no" >&5
5919: echo "${ECHO_T}no" >&6
1.11 paf 5920: fi
5921:
1.25 moko 5922: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5923: else
5924: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.11 paf 5925: fi
5926:
1.25 moko 5927: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5928: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5929: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5930: if test "${lt_cv_path_mainfest_tool+set}" = set; then
1.11 paf 5931: echo $ECHO_N "(cached) $ECHO_C" >&6
5932: else
1.25 moko 5933: lt_cv_path_mainfest_tool=no
5934: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5935: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5936: cat conftest.err >&5
5937: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5938: lt_cv_path_mainfest_tool=yes
5939: fi
5940: rm -f conftest*
5941: fi
5942: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5943: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
5944: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5945: MANIFEST_TOOL=:
5946: fi
5947:
5948:
5949:
5950:
1.11 paf 5951:
5952:
1.25 moko 5953: case $host_os in
5954: rhapsody* | darwin*)
5955: if test -n "$ac_tool_prefix"; then
5956: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5957: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5958: echo "$as_me:$LINENO: checking for $ac_word" >&5
5959: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5961: echo $ECHO_N "(cached) $ECHO_C" >&6
5962: else
5963: if test -n "$DSYMUTIL"; then
5964: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5965: else
5966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967: for as_dir in $PATH
5968: do
5969: IFS=$as_save_IFS
5970: test -z "$as_dir" && as_dir=.
5971: for ac_exec_ext in '' $ac_executable_extensions; do
5972: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5974: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975: break 2
5976: fi
5977: done
5978: done
1.11 paf 5979:
1.25 moko 5980: fi
5981: fi
5982: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5983: if test -n "$DSYMUTIL"; then
5984: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5985: echo "${ECHO_T}$DSYMUTIL" >&6
1.11 paf 5986: else
1.25 moko 5987: echo "$as_me:$LINENO: result: no" >&5
5988: echo "${ECHO_T}no" >&6
5989: fi
1.11 paf 5990:
5991: fi
1.25 moko 5992: if test -z "$ac_cv_prog_DSYMUTIL"; then
5993: ac_ct_DSYMUTIL=$DSYMUTIL
5994: # Extract the first word of "dsymutil", so it can be a program name with args.
5995: set dummy dsymutil; ac_word=$2
5996: echo "$as_me:$LINENO: checking for $ac_word" >&5
5997: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5999: echo $ECHO_N "(cached) $ECHO_C" >&6
6000: else
6001: if test -n "$ac_ct_DSYMUTIL"; then
6002: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6003: else
6004: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005: for as_dir in $PATH
6006: do
6007: IFS=$as_save_IFS
6008: test -z "$as_dir" && as_dir=.
6009: for ac_exec_ext in '' $ac_executable_extensions; do
6010: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6012: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013: break 2
6014: fi
6015: done
6016: done
1.11 paf 6017:
1.25 moko 6018: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6019: fi
6020: fi
6021: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6022: if test -n "$ac_ct_DSYMUTIL"; then
6023: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6024: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6025: else
6026: echo "$as_me:$LINENO: result: no" >&5
6027: echo "${ECHO_T}no" >&6
1.11 paf 6028: fi
6029:
1.25 moko 6030: DSYMUTIL=$ac_ct_DSYMUTIL
1.11 paf 6031: else
1.25 moko 6032: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.11 paf 6033: fi
6034:
1.25 moko 6035: if test -n "$ac_tool_prefix"; then
6036: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6037: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6038: echo "$as_me:$LINENO: checking for $ac_word" >&5
6039: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6041: echo $ECHO_N "(cached) $ECHO_C" >&6
6042: else
6043: if test -n "$NMEDIT"; then
6044: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6045: else
6046: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047: for as_dir in $PATH
6048: do
6049: IFS=$as_save_IFS
6050: test -z "$as_dir" && as_dir=.
6051: for ac_exec_ext in '' $ac_executable_extensions; do
6052: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6054: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055: break 2
1.11 paf 6056: fi
1.25 moko 6057: done
6058: done
6059:
6060: fi
6061: fi
6062: NMEDIT=$ac_cv_prog_NMEDIT
6063: if test -n "$NMEDIT"; then
6064: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6065: echo "${ECHO_T}$NMEDIT" >&6
1.11 paf 6066: else
1.25 moko 6067: echo "$as_me:$LINENO: result: no" >&5
6068: echo "${ECHO_T}no" >&6
1.11 paf 6069: fi
6070:
1.25 moko 6071: fi
6072: if test -z "$ac_cv_prog_NMEDIT"; then
6073: ac_ct_NMEDIT=$NMEDIT
6074: # Extract the first word of "nmedit", so it can be a program name with args.
6075: set dummy nmedit; ac_word=$2
6076: echo "$as_me:$LINENO: checking for $ac_word" >&5
6077: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6078: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6079: echo $ECHO_N "(cached) $ECHO_C" >&6
6080: else
6081: if test -n "$ac_ct_NMEDIT"; then
6082: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6083: else
6084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085: for as_dir in $PATH
6086: do
6087: IFS=$as_save_IFS
6088: test -z "$as_dir" && as_dir=.
6089: for ac_exec_ext in '' $ac_executable_extensions; do
6090: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6092: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093: break 2
6094: fi
6095: done
6096: done
1.11 paf 6097:
1.25 moko 6098: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6099: fi
6100: fi
6101: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6102: if test -n "$ac_ct_NMEDIT"; then
6103: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6104: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6105: else
6106: echo "$as_me:$LINENO: result: no" >&5
6107: echo "${ECHO_T}no" >&6
6108: fi
1.11 paf 6109:
1.25 moko 6110: NMEDIT=$ac_ct_NMEDIT
1.11 paf 6111: else
1.25 moko 6112: NMEDIT="$ac_cv_prog_NMEDIT"
1.11 paf 6113: fi
6114:
1.25 moko 6115: if test -n "$ac_tool_prefix"; then
6116: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6117: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6118: echo "$as_me:$LINENO: checking for $ac_word" >&5
6119: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120: if test "${ac_cv_prog_LIPO+set}" = set; then
6121: echo $ECHO_N "(cached) $ECHO_C" >&6
6122: else
6123: if test -n "$LIPO"; then
6124: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6125: else
6126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127: for as_dir in $PATH
6128: do
6129: IFS=$as_save_IFS
6130: test -z "$as_dir" && as_dir=.
6131: for ac_exec_ext in '' $ac_executable_extensions; do
6132: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6134: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135: break 2
1.11 paf 6136: fi
1.25 moko 6137: done
6138: done
6139:
6140: fi
6141: fi
6142: LIPO=$ac_cv_prog_LIPO
6143: if test -n "$LIPO"; then
6144: echo "$as_me:$LINENO: result: $LIPO" >&5
6145: echo "${ECHO_T}$LIPO" >&6
6146: else
6147: echo "$as_me:$LINENO: result: no" >&5
6148: echo "${ECHO_T}no" >&6
1.11 paf 6149: fi
6150:
1.25 moko 6151: fi
6152: if test -z "$ac_cv_prog_LIPO"; then
6153: ac_ct_LIPO=$LIPO
6154: # Extract the first word of "lipo", so it can be a program name with args.
6155: set dummy lipo; ac_word=$2
6156: echo "$as_me:$LINENO: checking for $ac_word" >&5
6157: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6158: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6159: echo $ECHO_N "(cached) $ECHO_C" >&6
6160: else
6161: if test -n "$ac_ct_LIPO"; then
6162: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6163: else
6164: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165: for as_dir in $PATH
6166: do
6167: IFS=$as_save_IFS
6168: test -z "$as_dir" && as_dir=.
6169: for ac_exec_ext in '' $ac_executable_extensions; do
6170: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171: ac_cv_prog_ac_ct_LIPO="lipo"
6172: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173: break 2
1.11 paf 6174: fi
1.25 moko 6175: done
6176: done
1.11 paf 6177:
1.25 moko 6178: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6179: fi
6180: fi
6181: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6182: if test -n "$ac_ct_LIPO"; then
6183: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6184: echo "${ECHO_T}$ac_ct_LIPO" >&6
6185: else
6186: echo "$as_me:$LINENO: result: no" >&5
6187: echo "${ECHO_T}no" >&6
6188: fi
1.11 paf 6189:
1.25 moko 6190: LIPO=$ac_ct_LIPO
6191: else
6192: LIPO="$ac_cv_prog_LIPO"
6193: fi
1.11 paf 6194:
1.25 moko 6195: if test -n "$ac_tool_prefix"; then
6196: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6197: set dummy ${ac_tool_prefix}otool; ac_word=$2
6198: echo "$as_me:$LINENO: checking for $ac_word" >&5
6199: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200: if test "${ac_cv_prog_OTOOL+set}" = set; then
6201: echo $ECHO_N "(cached) $ECHO_C" >&6
6202: else
6203: if test -n "$OTOOL"; then
6204: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6205: else
6206: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207: for as_dir in $PATH
6208: do
6209: IFS=$as_save_IFS
6210: test -z "$as_dir" && as_dir=.
6211: for ac_exec_ext in '' $ac_executable_extensions; do
6212: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6214: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215: break 2
6216: fi
6217: done
6218: done
1.11 paf 6219:
1.25 moko 6220: fi
6221: fi
6222: OTOOL=$ac_cv_prog_OTOOL
6223: if test -n "$OTOOL"; then
6224: echo "$as_me:$LINENO: result: $OTOOL" >&5
6225: echo "${ECHO_T}$OTOOL" >&6
6226: else
6227: echo "$as_me:$LINENO: result: no" >&5
6228: echo "${ECHO_T}no" >&6
6229: fi
1.11 paf 6230:
1.25 moko 6231: fi
6232: if test -z "$ac_cv_prog_OTOOL"; then
6233: ac_ct_OTOOL=$OTOOL
6234: # Extract the first word of "otool", so it can be a program name with args.
6235: set dummy otool; ac_word=$2
6236: echo "$as_me:$LINENO: checking for $ac_word" >&5
6237: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6238: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6239: echo $ECHO_N "(cached) $ECHO_C" >&6
6240: else
6241: if test -n "$ac_ct_OTOOL"; then
6242: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6243: else
6244: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245: for as_dir in $PATH
6246: do
6247: IFS=$as_save_IFS
6248: test -z "$as_dir" && as_dir=.
6249: for ac_exec_ext in '' $ac_executable_extensions; do
6250: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251: ac_cv_prog_ac_ct_OTOOL="otool"
6252: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253: break 2
6254: fi
6255: done
6256: done
1.11 paf 6257:
1.25 moko 6258: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6259: fi
6260: fi
6261: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6262: if test -n "$ac_ct_OTOOL"; then
6263: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6264: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6265: else
6266: echo "$as_me:$LINENO: result: no" >&5
6267: echo "${ECHO_T}no" >&6
6268: fi
1.11 paf 6269:
1.25 moko 6270: OTOOL=$ac_ct_OTOOL
6271: else
6272: OTOOL="$ac_cv_prog_OTOOL"
6273: fi
1.11 paf 6274:
1.25 moko 6275: if test -n "$ac_tool_prefix"; then
6276: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6277: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6278: echo "$as_me:$LINENO: checking for $ac_word" >&5
6279: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6280: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6281: echo $ECHO_N "(cached) $ECHO_C" >&6
6282: else
6283: if test -n "$OTOOL64"; then
6284: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6285: else
6286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287: for as_dir in $PATH
6288: do
6289: IFS=$as_save_IFS
6290: test -z "$as_dir" && as_dir=.
6291: for ac_exec_ext in '' $ac_executable_extensions; do
6292: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6294: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295: break 2
6296: fi
6297: done
6298: done
1.11 paf 6299:
1.25 moko 6300: fi
6301: fi
6302: OTOOL64=$ac_cv_prog_OTOOL64
6303: if test -n "$OTOOL64"; then
6304: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6305: echo "${ECHO_T}$OTOOL64" >&6
6306: else
6307: echo "$as_me:$LINENO: result: no" >&5
6308: echo "${ECHO_T}no" >&6
6309: fi
1.11 paf 6310:
1.25 moko 6311: fi
6312: if test -z "$ac_cv_prog_OTOOL64"; then
6313: ac_ct_OTOOL64=$OTOOL64
6314: # Extract the first word of "otool64", so it can be a program name with args.
6315: set dummy otool64; ac_word=$2
6316: echo "$as_me:$LINENO: checking for $ac_word" >&5
6317: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6318: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6319: echo $ECHO_N "(cached) $ECHO_C" >&6
6320: else
6321: if test -n "$ac_ct_OTOOL64"; then
6322: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6323: else
6324: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325: for as_dir in $PATH
6326: do
6327: IFS=$as_save_IFS
6328: test -z "$as_dir" && as_dir=.
6329: for ac_exec_ext in '' $ac_executable_extensions; do
6330: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331: ac_cv_prog_ac_ct_OTOOL64="otool64"
6332: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333: break 2
6334: fi
6335: done
6336: done
1.11 paf 6337:
1.25 moko 6338: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6339: fi
6340: fi
6341: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6342: if test -n "$ac_ct_OTOOL64"; then
6343: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6344: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6345: else
6346: echo "$as_me:$LINENO: result: no" >&5
6347: echo "${ECHO_T}no" >&6
6348: fi
1.11 paf 6349:
1.25 moko 6350: OTOOL64=$ac_ct_OTOOL64
6351: else
6352: OTOOL64="$ac_cv_prog_OTOOL64"
6353: fi
1.11 paf 6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
6380:
1.25 moko 6381: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6382: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6383: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6384: echo $ECHO_N "(cached) $ECHO_C" >&6
6385: else
6386: lt_cv_apple_cc_single_mod=no
6387: if test -z "${LT_MULTI_MODULE}"; then
6388: # By default we will add the -single_module flag. You can override
6389: # by either setting the environment variable LT_MULTI_MODULE
6390: # non-empty at configure time, or by adding -multi_module to the
6391: # link flags.
6392: rm -rf libconftest.dylib*
6393: echo "int foo(void){return 1;}" > conftest.c
6394: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6395: -dynamiclib -Wl,-single_module conftest.c" >&5
6396: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6397: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6398: _lt_result=$?
6399: # If there is a non-empty error log, and "single_module"
6400: # appears in it, assume the flag caused a linker warning
6401: if test -s conftest.err && $GREP single_module conftest.err; then
6402: cat conftest.err >&5
6403: # Otherwise, if the output was created with a 0 exit code from
6404: # the compiler, it worked.
6405: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6406: lt_cv_apple_cc_single_mod=yes
6407: else
6408: cat conftest.err >&5
6409: fi
6410: rm -rf libconftest.dylib*
6411: rm -f conftest.*
6412: fi
6413: fi
6414: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6415: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.11 paf 6416:
1.25 moko 6417: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6418: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6419: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6420: echo $ECHO_N "(cached) $ECHO_C" >&6
6421: else
6422: lt_cv_ld_exported_symbols_list=no
6423: save_LDFLAGS=$LDFLAGS
6424: echo "_main" > conftest.sym
6425: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6426: cat >conftest.$ac_ext <<_ACEOF
6427: /* confdefs.h. */
6428: _ACEOF
6429: cat confdefs.h >>conftest.$ac_ext
6430: cat >>conftest.$ac_ext <<_ACEOF
6431: /* end confdefs.h. */
1.11 paf 6432:
1.25 moko 6433: int
6434: main ()
6435: {
1.11 paf 6436:
1.25 moko 6437: ;
6438: return 0;
6439: }
6440: _ACEOF
6441: rm -f conftest.$ac_objext conftest$ac_exeext
6442: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6443: (eval $ac_link) 2>conftest.er1
6444: ac_status=$?
6445: grep -v '^ *+' conftest.er1 >conftest.err
6446: rm -f conftest.er1
6447: cat conftest.err >&5
6448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449: (exit $ac_status); } &&
6450: { ac_try='test -z "$ac_c_werror_flag"
6451: || test ! -s conftest.err'
6452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453: (eval $ac_try) 2>&5
6454: ac_status=$?
6455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456: (exit $ac_status); }; } &&
6457: { ac_try='test -s conftest$ac_exeext'
6458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459: (eval $ac_try) 2>&5
6460: ac_status=$?
6461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462: (exit $ac_status); }; }; then
6463: lt_cv_ld_exported_symbols_list=yes
6464: else
6465: echo "$as_me: failed program was:" >&5
6466: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6467:
1.25 moko 6468: lt_cv_ld_exported_symbols_list=no
6469: fi
6470: rm -f conftest.err conftest.$ac_objext \
6471: conftest$ac_exeext conftest.$ac_ext
6472: LDFLAGS="$save_LDFLAGS"
1.11 paf 6473:
1.25 moko 6474: fi
6475: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6476: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.11 paf 6477:
1.25 moko 6478: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6479: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6480: if test "${lt_cv_ld_force_load+set}" = set; then
6481: echo $ECHO_N "(cached) $ECHO_C" >&6
6482: else
6483: lt_cv_ld_force_load=no
6484: cat > conftest.c << _LT_EOF
6485: int forced_loaded() { return 2;}
6486: _LT_EOF
6487: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6488: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6489: echo "$AR cru libconftest.a conftest.o" >&5
6490: $AR cru libconftest.a conftest.o 2>&5
6491: echo "$RANLIB libconftest.a" >&5
6492: $RANLIB libconftest.a 2>&5
6493: cat > conftest.c << _LT_EOF
6494: int main() { return 0;}
6495: _LT_EOF
6496: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6497: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6498: _lt_result=$?
6499: if test -s conftest.err && $GREP force_load conftest.err; then
6500: cat conftest.err >&5
6501: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6502: lt_cv_ld_force_load=yes
6503: else
6504: cat conftest.err >&5
6505: fi
6506: rm -f conftest.err libconftest.a conftest conftest.c
6507: rm -rf conftest.dSYM
1.11 paf 6508:
1.25 moko 6509: fi
6510: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6511: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
6512: case $host_os in
6513: rhapsody* | darwin1.[012])
6514: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6515: darwin1.*)
6516: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6517: darwin*) # darwin 5.x on
6518: # if running on 10.5 or later, the deployment target defaults
6519: # to the OS version, if on x86, and 10.4, the deployment
6520: # target defaults to 10.4. Don't you love it?
6521: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6522: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6523: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6524: 10.[012]*)
6525: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6526: 10.*)
6527: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6528: esac
1.11 paf 6529: ;;
1.25 moko 6530: esac
6531: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6532: _lt_dar_single_mod='$single_module'
6533: fi
6534: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6535: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6536: else
6537: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.11 paf 6538: fi
1.25 moko 6539: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6540: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.11 paf 6541: else
1.25 moko 6542: _lt_dsymutil=
1.11 paf 6543: fi
6544: ;;
1.25 moko 6545: esac
1.11 paf 6546:
1.25 moko 6547: ac_ext=c
6548: ac_cpp='$CPP $CPPFLAGS'
6549: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6552: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6553: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6554: # On Suns, sometimes $CPP names a directory.
6555: if test -n "$CPP" && test -d "$CPP"; then
6556: CPP=
6557: fi
6558: if test -z "$CPP"; then
6559: if test "${ac_cv_prog_CPP+set}" = set; then
6560: echo $ECHO_N "(cached) $ECHO_C" >&6
6561: else
6562: # Double quotes because CPP needs to be expanded
6563: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6564: do
6565: ac_preproc_ok=false
6566: for ac_c_preproc_warn_flag in '' yes
6567: do
6568: # Use a header file that comes with gcc, so configuring glibc
6569: # with a fresh cross-compiler works.
6570: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6571: # <limits.h> exists even on freestanding compilers.
6572: # On the NeXT, cc -E runs the code through the compiler's parser,
6573: # not just through cpp. "Syntax error" is here to catch this case.
6574: cat >conftest.$ac_ext <<_ACEOF
6575: /* confdefs.h. */
6576: _ACEOF
6577: cat confdefs.h >>conftest.$ac_ext
6578: cat >>conftest.$ac_ext <<_ACEOF
6579: /* end confdefs.h. */
6580: #ifdef __STDC__
6581: # include <limits.h>
6582: #else
6583: # include <assert.h>
6584: #endif
6585: Syntax error
6586: _ACEOF
6587: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6588: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6589: ac_status=$?
6590: grep -v '^ *+' conftest.er1 >conftest.err
6591: rm -f conftest.er1
6592: cat conftest.err >&5
6593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594: (exit $ac_status); } >/dev/null; then
6595: if test -s conftest.err; then
6596: ac_cpp_err=$ac_c_preproc_warn_flag
6597: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6598: else
6599: ac_cpp_err=
6600: fi
6601: else
6602: ac_cpp_err=yes
1.11 paf 6603: fi
1.25 moko 6604: if test -z "$ac_cpp_err"; then
6605: :
6606: else
6607: echo "$as_me: failed program was:" >&5
6608: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6609:
1.25 moko 6610: # Broken: fails on valid input.
6611: continue
6612: fi
6613: rm -f conftest.err conftest.$ac_ext
1.11 paf 6614:
1.25 moko 6615: # OK, works on sane cases. Now check whether non-existent headers
6616: # can be detected and how.
6617: cat >conftest.$ac_ext <<_ACEOF
6618: /* confdefs.h. */
6619: _ACEOF
6620: cat confdefs.h >>conftest.$ac_ext
6621: cat >>conftest.$ac_ext <<_ACEOF
6622: /* end confdefs.h. */
6623: #include <ac_nonexistent.h>
6624: _ACEOF
6625: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6626: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6627: ac_status=$?
6628: grep -v '^ *+' conftest.er1 >conftest.err
6629: rm -f conftest.er1
6630: cat conftest.err >&5
6631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632: (exit $ac_status); } >/dev/null; then
6633: if test -s conftest.err; then
6634: ac_cpp_err=$ac_c_preproc_warn_flag
6635: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 6636: else
1.25 moko 6637: ac_cpp_err=
1.11 paf 6638: fi
6639: else
1.25 moko 6640: ac_cpp_err=yes
1.11 paf 6641: fi
1.25 moko 6642: if test -z "$ac_cpp_err"; then
6643: # Broken: success on invalid input.
6644: continue
6645: else
6646: echo "$as_me: failed program was:" >&5
6647: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6648:
1.25 moko 6649: # Passes both tests.
6650: ac_preproc_ok=:
6651: break
1.11 paf 6652: fi
1.25 moko 6653: rm -f conftest.err conftest.$ac_ext
1.11 paf 6654:
1.25 moko 6655: done
6656: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6657: rm -f conftest.err conftest.$ac_ext
6658: if $ac_preproc_ok; then
6659: break
6660: fi
1.11 paf 6661:
1.25 moko 6662: done
6663: ac_cv_prog_CPP=$CPP
1.11 paf 6664:
1.25 moko 6665: fi
6666: CPP=$ac_cv_prog_CPP
6667: else
6668: ac_cv_prog_CPP=$CPP
6669: fi
6670: echo "$as_me:$LINENO: result: $CPP" >&5
6671: echo "${ECHO_T}$CPP" >&6
6672: ac_preproc_ok=false
6673: for ac_c_preproc_warn_flag in '' yes
6674: do
6675: # Use a header file that comes with gcc, so configuring glibc
6676: # with a fresh cross-compiler works.
6677: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678: # <limits.h> exists even on freestanding compilers.
6679: # On the NeXT, cc -E runs the code through the compiler's parser,
6680: # not just through cpp. "Syntax error" is here to catch this case.
6681: cat >conftest.$ac_ext <<_ACEOF
6682: /* confdefs.h. */
6683: _ACEOF
6684: cat confdefs.h >>conftest.$ac_ext
6685: cat >>conftest.$ac_ext <<_ACEOF
6686: /* end confdefs.h. */
6687: #ifdef __STDC__
6688: # include <limits.h>
6689: #else
6690: # include <assert.h>
6691: #endif
6692: Syntax error
6693: _ACEOF
6694: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6696: ac_status=$?
6697: grep -v '^ *+' conftest.er1 >conftest.err
6698: rm -f conftest.er1
6699: cat conftest.err >&5
6700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701: (exit $ac_status); } >/dev/null; then
6702: if test -s conftest.err; then
6703: ac_cpp_err=$ac_c_preproc_warn_flag
6704: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6705: else
6706: ac_cpp_err=
6707: fi
6708: else
6709: ac_cpp_err=yes
6710: fi
6711: if test -z "$ac_cpp_err"; then
6712: :
6713: else
6714: echo "$as_me: failed program was:" >&5
6715: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6716:
1.25 moko 6717: # Broken: fails on valid input.
6718: continue
6719: fi
6720: rm -f conftest.err conftest.$ac_ext
1.11 paf 6721:
1.25 moko 6722: # OK, works on sane cases. Now check whether non-existent headers
6723: # can be detected and how.
6724: cat >conftest.$ac_ext <<_ACEOF
6725: /* confdefs.h. */
6726: _ACEOF
6727: cat confdefs.h >>conftest.$ac_ext
6728: cat >>conftest.$ac_ext <<_ACEOF
6729: /* end confdefs.h. */
6730: #include <ac_nonexistent.h>
6731: _ACEOF
6732: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6733: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6734: ac_status=$?
6735: grep -v '^ *+' conftest.er1 >conftest.err
6736: rm -f conftest.er1
6737: cat conftest.err >&5
6738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739: (exit $ac_status); } >/dev/null; then
6740: if test -s conftest.err; then
6741: ac_cpp_err=$ac_c_preproc_warn_flag
6742: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 6743: else
1.25 moko 6744: ac_cpp_err=
1.11 paf 6745: fi
1.25 moko 6746: else
6747: ac_cpp_err=yes
6748: fi
6749: if test -z "$ac_cpp_err"; then
6750: # Broken: success on invalid input.
6751: continue
6752: else
6753: echo "$as_me: failed program was:" >&5
6754: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6755:
1.25 moko 6756: # Passes both tests.
6757: ac_preproc_ok=:
6758: break
6759: fi
6760: rm -f conftest.err conftest.$ac_ext
1.11 paf 6761:
1.25 moko 6762: done
6763: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6764: rm -f conftest.err conftest.$ac_ext
6765: if $ac_preproc_ok; then
6766: :
6767: else
6768: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6769: See \`config.log' for more details." >&5
6770: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6771: See \`config.log' for more details." >&2;}
6772: { (exit 1); exit 1; }; }
6773: fi
1.11 paf 6774:
1.25 moko 6775: ac_ext=c
6776: ac_cpp='$CPP $CPPFLAGS'
6777: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 6780:
6781:
1.25 moko 6782: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784: if test "${ac_cv_header_stdc+set}" = set; then
6785: echo $ECHO_N "(cached) $ECHO_C" >&6
6786: else
6787: cat >conftest.$ac_ext <<_ACEOF
6788: /* confdefs.h. */
6789: _ACEOF
6790: cat confdefs.h >>conftest.$ac_ext
6791: cat >>conftest.$ac_ext <<_ACEOF
6792: /* end confdefs.h. */
6793: #include <stdlib.h>
6794: #include <stdarg.h>
6795: #include <string.h>
6796: #include <float.h>
1.11 paf 6797:
1.25 moko 6798: int
6799: main ()
6800: {
1.11 paf 6801:
1.25 moko 6802: ;
6803: return 0;
6804: }
6805: _ACEOF
6806: rm -f conftest.$ac_objext
6807: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808: (eval $ac_compile) 2>conftest.er1
6809: ac_status=$?
6810: grep -v '^ *+' conftest.er1 >conftest.err
6811: rm -f conftest.er1
6812: cat conftest.err >&5
6813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814: (exit $ac_status); } &&
6815: { ac_try='test -z "$ac_c_werror_flag"
6816: || test ! -s conftest.err'
6817: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818: (eval $ac_try) 2>&5
6819: ac_status=$?
6820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821: (exit $ac_status); }; } &&
6822: { ac_try='test -s conftest.$ac_objext'
6823: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824: (eval $ac_try) 2>&5
6825: ac_status=$?
6826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827: (exit $ac_status); }; }; then
6828: ac_cv_header_stdc=yes
6829: else
6830: echo "$as_me: failed program was:" >&5
6831: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6832:
1.25 moko 6833: ac_cv_header_stdc=no
6834: fi
6835: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 6836:
1.25 moko 6837: if test $ac_cv_header_stdc = yes; then
6838: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6839: cat >conftest.$ac_ext <<_ACEOF
6840: /* confdefs.h. */
6841: _ACEOF
6842: cat confdefs.h >>conftest.$ac_ext
6843: cat >>conftest.$ac_ext <<_ACEOF
6844: /* end confdefs.h. */
6845: #include <string.h>
1.11 paf 6846:
1.25 moko 6847: _ACEOF
6848: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6849: $EGREP "memchr" >/dev/null 2>&1; then
6850: :
6851: else
6852: ac_cv_header_stdc=no
6853: fi
6854: rm -f conftest*
1.11 paf 6855:
1.25 moko 6856: fi
1.11 paf 6857:
1.25 moko 6858: if test $ac_cv_header_stdc = yes; then
6859: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6860: cat >conftest.$ac_ext <<_ACEOF
6861: /* confdefs.h. */
6862: _ACEOF
6863: cat confdefs.h >>conftest.$ac_ext
6864: cat >>conftest.$ac_ext <<_ACEOF
6865: /* end confdefs.h. */
6866: #include <stdlib.h>
1.11 paf 6867:
1.25 moko 6868: _ACEOF
6869: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6870: $EGREP "free" >/dev/null 2>&1; then
6871: :
6872: else
6873: ac_cv_header_stdc=no
6874: fi
6875: rm -f conftest*
1.11 paf 6876:
1.25 moko 6877: fi
1.11 paf 6878:
1.25 moko 6879: if test $ac_cv_header_stdc = yes; then
6880: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6881: if test "$cross_compiling" = yes; then
6882: :
6883: else
6884: cat >conftest.$ac_ext <<_ACEOF
6885: /* confdefs.h. */
6886: _ACEOF
6887: cat confdefs.h >>conftest.$ac_ext
6888: cat >>conftest.$ac_ext <<_ACEOF
6889: /* end confdefs.h. */
6890: #include <ctype.h>
6891: #if ((' ' & 0x0FF) == 0x020)
6892: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6894: #else
6895: # define ISLOWER(c) \
6896: (('a' <= (c) && (c) <= 'i') \
6897: || ('j' <= (c) && (c) <= 'r') \
6898: || ('s' <= (c) && (c) <= 'z'))
6899: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6900: #endif
1.11 paf 6901:
1.25 moko 6902: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6903: int
6904: main ()
6905: {
6906: int i;
6907: for (i = 0; i < 256; i++)
6908: if (XOR (islower (i), ISLOWER (i))
6909: || toupper (i) != TOUPPER (i))
6910: exit(2);
6911: exit (0);
6912: }
6913: _ACEOF
6914: rm -f conftest$ac_exeext
6915: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916: (eval $ac_link) 2>&5
6917: ac_status=$?
6918: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6920: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921: (eval $ac_try) 2>&5
6922: ac_status=$?
6923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924: (exit $ac_status); }; }; then
6925: :
6926: else
6927: echo "$as_me: program exited with status $ac_status" >&5
6928: echo "$as_me: failed program was:" >&5
6929: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6930:
1.25 moko 6931: ( exit $ac_status )
6932: ac_cv_header_stdc=no
6933: fi
6934: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935: fi
6936: fi
6937: fi
6938: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6939: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6940: if test $ac_cv_header_stdc = yes; then
1.11 paf 6941:
1.25 moko 6942: cat >>confdefs.h <<\_ACEOF
6943: #define STDC_HEADERS 1
6944: _ACEOF
1.11 paf 6945:
1.25 moko 6946: fi
1.11 paf 6947:
1.25 moko 6948: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.11 paf 6949:
6950:
6951:
6952:
6953:
6954:
6955:
6956:
6957:
1.25 moko 6958: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959: inttypes.h stdint.h unistd.h
6960: do
6961: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962: echo "$as_me:$LINENO: checking for $ac_header" >&5
6963: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965: echo $ECHO_N "(cached) $ECHO_C" >&6
6966: else
6967: cat >conftest.$ac_ext <<_ACEOF
6968: /* confdefs.h. */
6969: _ACEOF
6970: cat confdefs.h >>conftest.$ac_ext
6971: cat >>conftest.$ac_ext <<_ACEOF
6972: /* end confdefs.h. */
6973: $ac_includes_default
1.11 paf 6974:
1.25 moko 6975: #include <$ac_header>
1.11 paf 6976: _ACEOF
1.25 moko 6977: rm -f conftest.$ac_objext
6978: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979: (eval $ac_compile) 2>conftest.er1
1.11 paf 6980: ac_status=$?
1.18 paf 6981: grep -v '^ *+' conftest.er1 >conftest.err
6982: rm -f conftest.er1
6983: cat conftest.err >&5
1.11 paf 6984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985: (exit $ac_status); } &&
1.18 paf 6986: { ac_try='test -z "$ac_c_werror_flag"
6987: || test ! -s conftest.err'
6988: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989: (eval $ac_try) 2>&5
6990: ac_status=$?
6991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992: (exit $ac_status); }; } &&
1.25 moko 6993: { ac_try='test -s conftest.$ac_objext'
1.11 paf 6994: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995: (eval $ac_try) 2>&5
6996: ac_status=$?
6997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998: (exit $ac_status); }; }; then
1.25 moko 6999: eval "$as_ac_Header=yes"
1.11 paf 7000: else
7001: echo "$as_me: failed program was:" >&5
7002: sed 's/^/| /' conftest.$ac_ext >&5
7003:
1.25 moko 7004: eval "$as_ac_Header=no"
7005: fi
7006: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 7007: fi
1.25 moko 7008: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7009: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7010: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7011: cat >>confdefs.h <<_ACEOF
7012: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013: _ACEOF
7014:
1.11 paf 7015: fi
1.25 moko 7016:
7017: done
7018:
7019:
7020:
7021: for ac_header in dlfcn.h
7022: do
7023: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024: echo "$as_me:$LINENO: checking for $ac_header" >&5
7025: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7026: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.11 paf 7027: echo $ECHO_N "(cached) $ECHO_C" >&6
7028: else
1.25 moko 7029: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 7030: /* confdefs.h. */
7031: _ACEOF
7032: cat confdefs.h >>conftest.$ac_ext
7033: cat >>conftest.$ac_ext <<_ACEOF
7034: /* end confdefs.h. */
1.25 moko 7035: $ac_includes_default
1.11 paf 7036:
1.25 moko 7037: #include <$ac_header>
1.11 paf 7038: _ACEOF
1.25 moko 7039: rm -f conftest.$ac_objext
7040: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041: (eval $ac_compile) 2>conftest.er1
1.11 paf 7042: ac_status=$?
1.18 paf 7043: grep -v '^ *+' conftest.er1 >conftest.err
7044: rm -f conftest.er1
7045: cat conftest.err >&5
1.11 paf 7046: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047: (exit $ac_status); } &&
1.18 paf 7048: { ac_try='test -z "$ac_c_werror_flag"
7049: || test ! -s conftest.err'
7050: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051: (eval $ac_try) 2>&5
7052: ac_status=$?
7053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054: (exit $ac_status); }; } &&
1.25 moko 7055: { ac_try='test -s conftest.$ac_objext'
1.11 paf 7056: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057: (eval $ac_try) 2>&5
7058: ac_status=$?
7059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060: (exit $ac_status); }; }; then
1.25 moko 7061: eval "$as_ac_Header=yes"
1.11 paf 7062: else
7063: echo "$as_me: failed program was:" >&5
7064: sed 's/^/| /' conftest.$ac_ext >&5
7065:
1.25 moko 7066: eval "$as_ac_Header=no"
1.11 paf 7067: fi
1.25 moko 7068: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 7069: fi
1.25 moko 7070: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7071: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7072: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7073: cat >>confdefs.h <<_ACEOF
7074: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.11 paf 7075: _ACEOF
1.18 paf 7076:
1.25 moko 7077: fi
7078:
7079: done
7080:
1.18 paf 7081:
7082:
7083:
1.25 moko 7084: func_stripname_cnf ()
1.11 paf 7085: {
1.25 moko 7086: case ${2} in
7087: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7088: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7089: esac
7090: } # func_stripname_cnf
7091:
7092:
7093:
7094:
7095:
7096: # Set options
7097: enable_dlopen=yes
7098: enable_win32_dll=yes
7099:
7100: case $host in
7101: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7102: if test -n "$ac_tool_prefix"; then
7103: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7104: set dummy ${ac_tool_prefix}as; ac_word=$2
7105: echo "$as_me:$LINENO: checking for $ac_word" >&5
7106: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107: if test "${ac_cv_prog_AS+set}" = set; then
7108: echo $ECHO_N "(cached) $ECHO_C" >&6
7109: else
7110: if test -n "$AS"; then
7111: ac_cv_prog_AS="$AS" # Let the user override the test.
7112: else
7113: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114: for as_dir in $PATH
7115: do
7116: IFS=$as_save_IFS
7117: test -z "$as_dir" && as_dir=.
7118: for ac_exec_ext in '' $ac_executable_extensions; do
7119: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120: ac_cv_prog_AS="${ac_tool_prefix}as"
7121: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122: break 2
7123: fi
7124: done
7125: done
1.11 paf 7126:
1.25 moko 7127: fi
7128: fi
7129: AS=$ac_cv_prog_AS
7130: if test -n "$AS"; then
7131: echo "$as_me:$LINENO: result: $AS" >&5
7132: echo "${ECHO_T}$AS" >&6
7133: else
7134: echo "$as_me:$LINENO: result: no" >&5
7135: echo "${ECHO_T}no" >&6
7136: fi
7137:
7138: fi
7139: if test -z "$ac_cv_prog_AS"; then
7140: ac_ct_AS=$AS
7141: # Extract the first word of "as", so it can be a program name with args.
7142: set dummy as; ac_word=$2
7143: echo "$as_me:$LINENO: checking for $ac_word" >&5
7144: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7146: echo $ECHO_N "(cached) $ECHO_C" >&6
7147: else
7148: if test -n "$ac_ct_AS"; then
7149: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.11 paf 7150: else
1.25 moko 7151: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152: for as_dir in $PATH
7153: do
7154: IFS=$as_save_IFS
7155: test -z "$as_dir" && as_dir=.
7156: for ac_exec_ext in '' $ac_executable_extensions; do
7157: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158: ac_cv_prog_ac_ct_AS="as"
7159: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160: break 2
7161: fi
7162: done
7163: done
1.11 paf 7164:
1.25 moko 7165: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7166: fi
1.11 paf 7167: fi
1.25 moko 7168: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7169: if test -n "$ac_ct_AS"; then
7170: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7171: echo "${ECHO_T}$ac_ct_AS" >&6
7172: else
7173: echo "$as_me:$LINENO: result: no" >&5
7174: echo "${ECHO_T}no" >&6
1.11 paf 7175: fi
1.25 moko 7176:
7177: AS=$ac_ct_AS
1.11 paf 7178: else
1.25 moko 7179: AS="$ac_cv_prog_AS"
7180: fi
7181:
7182: if test -n "$ac_tool_prefix"; then
7183: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7184: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7185: echo "$as_me:$LINENO: checking for $ac_word" >&5
7186: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
1.11 paf 7188: echo $ECHO_N "(cached) $ECHO_C" >&6
7189: else
1.25 moko 7190: if test -n "$DLLTOOL"; then
7191: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.11 paf 7192: else
1.25 moko 7193: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194: for as_dir in $PATH
7195: do
7196: IFS=$as_save_IFS
7197: test -z "$as_dir" && as_dir=.
7198: for ac_exec_ext in '' $ac_executable_extensions; do
7199: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7201: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202: break 2
7203: fi
7204: done
7205: done
1.11 paf 7206:
7207: fi
7208: fi
1.25 moko 7209: DLLTOOL=$ac_cv_prog_DLLTOOL
7210: if test -n "$DLLTOOL"; then
7211: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7212: echo "${ECHO_T}$DLLTOOL" >&6
1.11 paf 7213: else
1.25 moko 7214: echo "$as_me:$LINENO: result: no" >&5
7215: echo "${ECHO_T}no" >&6
7216: fi
7217:
7218: fi
7219: if test -z "$ac_cv_prog_DLLTOOL"; then
7220: ac_ct_DLLTOOL=$DLLTOOL
7221: # Extract the first word of "dlltool", so it can be a program name with args.
7222: set dummy dlltool; ac_word=$2
7223: echo "$as_me:$LINENO: checking for $ac_word" >&5
7224: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7225: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.11 paf 7226: echo $ECHO_N "(cached) $ECHO_C" >&6
7227: else
1.25 moko 7228: if test -n "$ac_ct_DLLTOOL"; then
7229: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.11 paf 7230: else
1.25 moko 7231: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232: for as_dir in $PATH
7233: do
7234: IFS=$as_save_IFS
7235: test -z "$as_dir" && as_dir=.
7236: for ac_exec_ext in '' $ac_executable_extensions; do
7237: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7239: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240: break 2
7241: fi
7242: done
7243: done
1.11 paf 7244:
1.25 moko 7245: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7246: fi
1.11 paf 7247: fi
1.25 moko 7248: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7249: if test -n "$ac_ct_DLLTOOL"; then
7250: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7251: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7252: else
7253: echo "$as_me:$LINENO: result: no" >&5
7254: echo "${ECHO_T}no" >&6
1.11 paf 7255: fi
1.25 moko 7256:
7257: DLLTOOL=$ac_ct_DLLTOOL
1.11 paf 7258: else
1.25 moko 7259: DLLTOOL="$ac_cv_prog_DLLTOOL"
7260: fi
7261:
7262: if test -n "$ac_tool_prefix"; then
7263: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7264: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7265: echo "$as_me:$LINENO: checking for $ac_word" >&5
7266: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
1.11 paf 7268: echo $ECHO_N "(cached) $ECHO_C" >&6
7269: else
1.25 moko 7270: if test -n "$OBJDUMP"; then
7271: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7272: else
7273: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274: for as_dir in $PATH
7275: do
7276: IFS=$as_save_IFS
7277: test -z "$as_dir" && as_dir=.
7278: for ac_exec_ext in '' $ac_executable_extensions; do
7279: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7281: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282: break 2
7283: fi
7284: done
7285: done
7286:
7287: fi
7288: fi
7289: OBJDUMP=$ac_cv_prog_OBJDUMP
7290: if test -n "$OBJDUMP"; then
7291: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7292: echo "${ECHO_T}$OBJDUMP" >&6
7293: else
7294: echo "$as_me:$LINENO: result: no" >&5
7295: echo "${ECHO_T}no" >&6
7296: fi
1.11 paf 7297:
1.25 moko 7298: fi
7299: if test -z "$ac_cv_prog_OBJDUMP"; then
7300: ac_ct_OBJDUMP=$OBJDUMP
7301: # Extract the first word of "objdump", so it can be a program name with args.
7302: set dummy objdump; ac_word=$2
7303: echo "$as_me:$LINENO: checking for $ac_word" >&5
7304: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7305: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7306: echo $ECHO_N "(cached) $ECHO_C" >&6
7307: else
7308: if test -n "$ac_ct_OBJDUMP"; then
7309: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.11 paf 7310: else
1.25 moko 7311: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312: for as_dir in $PATH
7313: do
7314: IFS=$as_save_IFS
7315: test -z "$as_dir" && as_dir=.
7316: for ac_exec_ext in '' $ac_executable_extensions; do
7317: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7319: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320: break 2
7321: fi
7322: done
7323: done
1.11 paf 7324:
1.25 moko 7325: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7326: fi
1.11 paf 7327: fi
1.25 moko 7328: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7329: if test -n "$ac_ct_OBJDUMP"; then
7330: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7331: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7332: else
7333: echo "$as_me:$LINENO: result: no" >&5
7334: echo "${ECHO_T}no" >&6
1.11 paf 7335: fi
1.25 moko 7336:
7337: OBJDUMP=$ac_ct_OBJDUMP
7338: else
7339: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.11 paf 7340: fi
7341:
1.25 moko 7342: ;;
7343: esac
7344:
7345: test -z "$AS" && AS=as
7346:
1.11 paf 7347:
7348:
7349:
7350:
1.25 moko 7351: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.11 paf 7352:
7353:
7354:
7355:
7356:
1.25 moko 7357: test -z "$OBJDUMP" && OBJDUMP=objdump
1.11 paf 7358:
7359:
7360:
7361:
7362:
7363:
7364:
7365:
7366:
1.25 moko 7367: # Check whether --enable-shared or --disable-shared was given.
7368: if test "${enable_shared+set}" = set; then
7369: enableval="$enable_shared"
7370: p=${PACKAGE-default}
7371: case $enableval in
7372: yes) enable_shared=yes ;;
7373: no) enable_shared=no ;;
7374: *)
7375: enable_shared=no
7376: # Look at the argument we got. We use all the common list separators.
7377: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378: for pkg in $enableval; do
7379: IFS="$lt_save_ifs"
7380: if test "X$pkg" = "X$p"; then
7381: enable_shared=yes
7382: fi
7383: done
7384: IFS="$lt_save_ifs"
7385: ;;
7386: esac
7387: else
7388: enable_shared=yes
7389: fi;
1.11 paf 7390:
7391:
7392:
7393:
7394:
7395:
7396:
7397:
1.25 moko 7398: # Check whether --enable-static or --disable-static was given.
7399: if test "${enable_static+set}" = set; then
7400: enableval="$enable_static"
7401: p=${PACKAGE-default}
7402: case $enableval in
7403: yes) enable_static=yes ;;
7404: no) enable_static=no ;;
7405: *)
7406: enable_static=no
7407: # Look at the argument we got. We use all the common list separators.
7408: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409: for pkg in $enableval; do
7410: IFS="$lt_save_ifs"
7411: if test "X$pkg" = "X$p"; then
7412: enable_static=yes
7413: fi
7414: done
7415: IFS="$lt_save_ifs"
7416: ;;
7417: esac
1.11 paf 7418: else
1.25 moko 7419: enable_static=yes
7420: fi;
7421:
1.11 paf 7422:
7423:
7424:
7425:
7426:
7427:
7428:
7429:
1.25 moko 7430: # Check whether --with-pic or --without-pic was given.
7431: if test "${with_pic+set}" = set; then
7432: withval="$with_pic"
7433: lt_p=${PACKAGE-default}
7434: case $withval in
7435: yes|no) pic_mode=$withval ;;
7436: *)
7437: pic_mode=default
7438: # Look at the argument we got. We use all the common list separators.
7439: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7440: for lt_pkg in $withval; do
7441: IFS="$lt_save_ifs"
7442: if test "X$lt_pkg" = "X$lt_p"; then
7443: pic_mode=yes
7444: fi
7445: done
7446: IFS="$lt_save_ifs"
7447: ;;
1.11 paf 7448: esac
1.25 moko 7449: else
7450: pic_mode=default
7451: fi;
1.11 paf 7452:
1.25 moko 7453: test -z "$pic_mode" && pic_mode=default
1.11 paf 7454:
7455:
7456:
7457:
7458:
7459:
7460:
1.25 moko 7461: # Check whether --enable-fast-install or --disable-fast-install was given.
7462: if test "${enable_fast_install+set}" = set; then
7463: enableval="$enable_fast_install"
7464: p=${PACKAGE-default}
7465: case $enableval in
7466: yes) enable_fast_install=yes ;;
7467: no) enable_fast_install=no ;;
1.11 paf 7468: *)
1.25 moko 7469: enable_fast_install=no
7470: # Look at the argument we got. We use all the common list separators.
7471: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7472: for pkg in $enableval; do
7473: IFS="$lt_save_ifs"
7474: if test "X$pkg" = "X$p"; then
7475: enable_fast_install=yes
7476: fi
7477: done
7478: IFS="$lt_save_ifs"
1.11 paf 7479: ;;
7480: esac
1.25 moko 7481: else
7482: enable_fast_install=yes
7483: fi;
1.11 paf 7484:
7485:
7486:
7487:
7488:
7489:
7490:
7491:
7492:
7493:
1.25 moko 7494: # This can be used to rebuild libtool when needed
7495: LIBTOOL_DEPS="$ltmain"
1.11 paf 7496:
1.25 moko 7497: # Always use our own libtool.
7498: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.11 paf 7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
1.25 moko 7529: test -z "$LN_S" && LN_S="ln -s"
1.11 paf 7530:
7531:
7532:
7533:
7534:
7535:
7536:
7537:
7538:
7539:
7540:
7541:
7542:
7543:
1.25 moko 7544: if test -n "${ZSH_VERSION+set}" ; then
7545: setopt NO_GLOB_SUBST
7546: fi
1.11 paf 7547:
1.25 moko 7548: echo "$as_me:$LINENO: checking for objdir" >&5
7549: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7550: if test "${lt_cv_objdir+set}" = set; then
7551: echo $ECHO_N "(cached) $ECHO_C" >&6
7552: else
7553: rm -f .libs 2>/dev/null
7554: mkdir .libs 2>/dev/null
7555: if test -d .libs; then
7556: lt_cv_objdir=.libs
7557: else
7558: # MS-DOS does not allow filenames that begin with a dot.
7559: lt_cv_objdir=_libs
7560: fi
7561: rmdir .libs 2>/dev/null
7562: fi
7563: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7564: echo "${ECHO_T}$lt_cv_objdir" >&6
7565: objdir=$lt_cv_objdir
1.11 paf 7566:
7567:
7568:
7569:
7570:
1.25 moko 7571: cat >>confdefs.h <<_ACEOF
7572: #define LT_OBJDIR "$lt_cv_objdir/"
7573: _ACEOF
1.11 paf 7574:
7575:
7576:
7577:
1.25 moko 7578: case $host_os in
7579: aix3*)
7580: # AIX sometimes has problems with the GCC collect2 program. For some
7581: # reason, if we set the COLLECT_NAMES environment variable, the problems
7582: # vanish in a puff of smoke.
7583: if test "X${COLLECT_NAMES+set}" != Xset; then
7584: COLLECT_NAMES=
7585: export COLLECT_NAMES
7586: fi
7587: ;;
7588: esac
1.11 paf 7589:
1.25 moko 7590: # Global variables:
7591: ofile=libtool
7592: can_build_shared=yes
1.11 paf 7593:
1.25 moko 7594: # All known linkers require a `.a' archive for static linking (except MSVC,
7595: # which needs '.lib').
7596: libext=a
1.11 paf 7597:
1.25 moko 7598: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.11 paf 7599:
1.25 moko 7600: old_CC="$CC"
7601: old_CFLAGS="$CFLAGS"
1.11 paf 7602:
1.25 moko 7603: # Set sane defaults for various variables
7604: test -z "$CC" && CC=cc
7605: test -z "$LTCC" && LTCC=$CC
7606: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7607: test -z "$LD" && LD=ld
7608: test -z "$ac_objext" && ac_objext=o
1.11 paf 7609:
1.25 moko 7610: for cc_temp in $compiler""; do
7611: case $cc_temp in
7612: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7613: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7614: \-*) ;;
7615: *) break;;
7616: esac
7617: done
7618: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.11 paf 7619:
7620:
1.25 moko 7621: # Only perform the check for file, if the check method requires it
7622: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7623: case $deplibs_check_method in
7624: file_magic*)
7625: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7626: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7627: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7628: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7629: echo $ECHO_N "(cached) $ECHO_C" >&6
7630: else
7631: case $MAGIC_CMD in
7632: [\\/*] | ?:[\\/]*)
7633: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7634: ;;
7635: *)
7636: lt_save_MAGIC_CMD="$MAGIC_CMD"
7637: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7638: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7639: for ac_dir in $ac_dummy; do
7640: IFS="$lt_save_ifs"
7641: test -z "$ac_dir" && ac_dir=.
7642: if test -f $ac_dir/${ac_tool_prefix}file; then
7643: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7644: if test -n "$file_magic_test_file"; then
7645: case $deplibs_check_method in
7646: "file_magic "*)
7647: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7648: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7649: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7650: $EGREP "$file_magic_regex" > /dev/null; then
7651: :
7652: else
7653: cat <<_LT_EOF 1>&2
1.11 paf 7654:
1.25 moko 7655: *** Warning: the command libtool uses to detect shared libraries,
7656: *** $file_magic_cmd, produces output that libtool cannot recognize.
7657: *** The result is that libtool may fail to recognize shared libraries
7658: *** as such. This will affect the creation of libtool libraries that
7659: *** depend on shared libraries, but programs linked with such libtool
7660: *** libraries will work regardless of this problem. Nevertheless, you
7661: *** may want to report the problem to your system manager and/or to
7662: *** bug-libtool@gnu.org
1.11 paf 7663:
1.25 moko 7664: _LT_EOF
7665: fi ;;
7666: esac
7667: fi
7668: break
7669: fi
7670: done
7671: IFS="$lt_save_ifs"
7672: MAGIC_CMD="$lt_save_MAGIC_CMD"
7673: ;;
7674: esac
7675: fi
1.7 paf 7676:
1.25 moko 7677: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7678: if test -n "$MAGIC_CMD"; then
7679: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7680: echo "${ECHO_T}$MAGIC_CMD" >&6
7681: else
7682: echo "$as_me:$LINENO: result: no" >&5
7683: echo "${ECHO_T}no" >&6
7684: fi
1.7 paf 7685:
7686:
7687:
7688:
7689:
1.25 moko 7690: if test -z "$lt_cv_path_MAGIC_CMD"; then
7691: if test -n "$ac_tool_prefix"; then
7692: echo "$as_me:$LINENO: checking for file" >&5
7693: echo $ECHO_N "checking for file... $ECHO_C" >&6
7694: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7695: echo $ECHO_N "(cached) $ECHO_C" >&6
7696: else
7697: case $MAGIC_CMD in
7698: [\\/*] | ?:[\\/]*)
7699: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7700: ;;
7701: *)
7702: lt_save_MAGIC_CMD="$MAGIC_CMD"
7703: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7704: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7705: for ac_dir in $ac_dummy; do
7706: IFS="$lt_save_ifs"
7707: test -z "$ac_dir" && ac_dir=.
7708: if test -f $ac_dir/file; then
7709: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7710: if test -n "$file_magic_test_file"; then
7711: case $deplibs_check_method in
7712: "file_magic "*)
7713: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7714: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7715: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7716: $EGREP "$file_magic_regex" > /dev/null; then
7717: :
7718: else
7719: cat <<_LT_EOF 1>&2
1.7 paf 7720:
1.25 moko 7721: *** Warning: the command libtool uses to detect shared libraries,
7722: *** $file_magic_cmd, produces output that libtool cannot recognize.
7723: *** The result is that libtool may fail to recognize shared libraries
7724: *** as such. This will affect the creation of libtool libraries that
7725: *** depend on shared libraries, but programs linked with such libtool
7726: *** libraries will work regardless of this problem. Nevertheless, you
7727: *** may want to report the problem to your system manager and/or to
7728: *** bug-libtool@gnu.org
1.7 paf 7729:
1.25 moko 7730: _LT_EOF
7731: fi ;;
7732: esac
7733: fi
7734: break
7735: fi
7736: done
7737: IFS="$lt_save_ifs"
7738: MAGIC_CMD="$lt_save_MAGIC_CMD"
7739: ;;
7740: esac
7741: fi
1.7 paf 7742:
1.25 moko 7743: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7744: if test -n "$MAGIC_CMD"; then
7745: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7746: echo "${ECHO_T}$MAGIC_CMD" >&6
7747: else
7748: echo "$as_me:$LINENO: result: no" >&5
7749: echo "${ECHO_T}no" >&6
1.11 paf 7750: fi
7751:
7752:
1.25 moko 7753: else
7754: MAGIC_CMD=:
7755: fi
1.1 parser 7756: fi
7757:
1.25 moko 7758: fi
7759: ;;
7760: esac
1.1 parser 7761:
1.25 moko 7762: # Use C for the default configuration in the libtool script
1.1 parser 7763:
1.25 moko 7764: lt_save_CC="$CC"
7765: ac_ext=c
7766: ac_cpp='$CPP $CPPFLAGS'
7767: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 7770:
7771:
1.25 moko 7772: # Source file extension for C test sources.
7773: ac_ext=c
1.11 paf 7774:
1.25 moko 7775: # Object file extension for compiled C test sources.
7776: objext=o
7777: objext=$objext
1.11 paf 7778:
1.25 moko 7779: # Code to be used in simple compile tests
7780: lt_simple_compile_test_code="int some_variable = 0;"
1.11 paf 7781:
1.25 moko 7782: # Code to be used in simple link tests
7783: lt_simple_link_test_code='int main(){return(0);}'
1.11 paf 7784:
7785:
7786:
7787:
7788:
1.1 parser 7789:
7790:
1.25 moko 7791: # If no C compiler was specified, use CC.
7792: LTCC=${LTCC-"$CC"}
1.1 parser 7793:
1.25 moko 7794: # If no C compiler flags were specified, use CFLAGS.
7795: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 parser 7796:
1.25 moko 7797: # Allow CC to be a program name with arguments.
7798: compiler=$CC
1.1 parser 7799:
1.25 moko 7800: # Save the default compiler, since it gets overwritten when the other
7801: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7802: compiler_DEFAULT=$CC
7803:
7804: # save warnings/boilerplate of simple test code
7805: ac_outfile=conftest.$ac_objext
7806: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7807: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7808: _lt_compiler_boilerplate=`cat conftest.err`
7809: $RM conftest*
7810:
7811: ac_outfile=conftest.$ac_objext
7812: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7813: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814: _lt_linker_boilerplate=`cat conftest.err`
7815: $RM -r conftest*
7816:
7817:
7818: ## CAVEAT EMPTOR:
7819: ## There is no encapsulation within the following macros, do not change
7820: ## the running order or otherwise move them around unless you know exactly
7821: ## what you are doing...
7822: if test -n "$compiler"; then
1.1 parser 7823:
1.25 moko 7824: lt_prog_compiler_no_builtin_flag=
1.1 parser 7825:
1.25 moko 7826: if test "$GCC" = yes; then
7827: case $cc_basename in
7828: nvcc*)
7829: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7830: *)
7831: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7832: esac
1.1 parser 7833:
1.25 moko 7834: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7835: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7836: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.11 paf 7837: echo $ECHO_N "(cached) $ECHO_C" >&6
7838: else
1.25 moko 7839: lt_cv_prog_compiler_rtti_exceptions=no
7840: ac_outfile=conftest.$ac_objext
7841: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7842: lt_compiler_flag="-fno-rtti -fno-exceptions"
7843: # Insert the option either (1) after the last *FLAGS variable, or
7844: # (2) before a word containing "conftest.", or (3) at the end.
7845: # Note that $ac_compile itself does not contain backslashes and begins
7846: # with a dollar sign (not a hyphen), so the echo should work correctly.
7847: # The option is referenced via a variable to avoid confusing sed.
7848: lt_compile=`echo "$ac_compile" | $SED \
7849: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851: -e 's:$: $lt_compiler_flag:'`
7852: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7853: (eval "$lt_compile" 2>conftest.err)
7854: ac_status=$?
7855: cat conftest.err >&5
7856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857: if (exit $ac_status) && test -s "$ac_outfile"; then
7858: # The compiler can only warn and ignore the option if not recognized
7859: # So say no if there are warnings other than the usual output.
7860: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7861: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7862: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7863: lt_cv_prog_compiler_rtti_exceptions=yes
7864: fi
7865: fi
7866: $RM conftest*
1.11 paf 7867:
7868: fi
1.25 moko 7869: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7870: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.11 paf 7871:
1.25 moko 7872: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7873: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.11 paf 7874: else
1.25 moko 7875: :
1.11 paf 7876: fi
7877:
7878: fi
7879:
1.25 moko 7880:
7881:
7882:
7883:
7884:
7885: lt_prog_compiler_wl=
7886: lt_prog_compiler_pic=
7887: lt_prog_compiler_static=
7888:
7889:
7890: if test "$GCC" = yes; then
7891: lt_prog_compiler_wl='-Wl,'
7892: lt_prog_compiler_static='-static'
7893:
7894: case $host_os in
7895: aix*)
7896: # All AIX code is PIC.
7897: if test "$host_cpu" = ia64; then
7898: # AIX 5 now supports IA64 processor
7899: lt_prog_compiler_static='-Bstatic'
7900: fi
7901: ;;
7902:
7903: amigaos*)
7904: case $host_cpu in
7905: powerpc)
7906: # see comment about AmigaOS4 .so support
7907: lt_prog_compiler_pic='-fPIC'
7908: ;;
7909: m68k)
7910: # FIXME: we need at least 68020 code to build shared libraries, but
7911: # adding the `-m68020' flag to GCC prevents building anything better,
7912: # like `-m68040'.
7913: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7914: ;;
7915: esac
7916: ;;
7917:
7918: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7919: # PIC is the default for these OSes.
7920: ;;
7921:
7922: mingw* | cygwin* | pw32* | os2* | cegcc*)
7923: # This hack is so that the source file can tell whether it is being
7924: # built for inclusion in a dll (and should export symbols for example).
7925: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7926: # (--disable-auto-import) libraries
7927: lt_prog_compiler_pic='-DDLL_EXPORT'
7928: ;;
7929:
7930: darwin* | rhapsody*)
7931: # PIC is the default on this platform
7932: # Common symbols not allowed in MH_DYLIB files
7933: lt_prog_compiler_pic='-fno-common'
7934: ;;
7935:
7936: haiku*)
7937: # PIC is the default for Haiku.
7938: # The "-static" flag exists, but is broken.
7939: lt_prog_compiler_static=
7940: ;;
7941:
7942: hpux*)
7943: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7944: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7945: # sets the default TLS model and affects inlining.
7946: case $host_cpu in
7947: hppa*64*)
7948: # +Z the default
7949: ;;
7950: *)
7951: lt_prog_compiler_pic='-fPIC'
7952: ;;
7953: esac
7954: ;;
7955:
7956: interix[3-9]*)
7957: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7958: # Instead, we relocate shared libraries at runtime.
7959: ;;
7960:
7961: msdosdjgpp*)
7962: # Just because we use GCC doesn't mean we suddenly get shared libraries
7963: # on systems that don't support them.
7964: lt_prog_compiler_can_build_shared=no
7965: enable_shared=no
7966: ;;
7967:
7968: *nto* | *qnx*)
7969: # QNX uses GNU C++, but need to define -shared option too, otherwise
7970: # it will coredump.
7971: lt_prog_compiler_pic='-fPIC -shared'
7972: ;;
7973:
7974: sysv4*MP*)
7975: if test -d /usr/nec; then
7976: lt_prog_compiler_pic=-Kconform_pic
7977: fi
7978: ;;
7979:
7980: *)
7981: lt_prog_compiler_pic='-fPIC'
7982: ;;
7983: esac
7984:
7985: case $cc_basename in
7986: nvcc*) # Cuda Compiler Driver 2.2
7987: lt_prog_compiler_wl='-Xlinker '
7988: if test -n "$lt_prog_compiler_pic"; then
7989: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7990: fi
7991: ;;
7992: esac
7993: else
7994: # PORTME Check for flag to pass linker flags through the system compiler.
7995: case $host_os in
7996: aix*)
7997: lt_prog_compiler_wl='-Wl,'
7998: if test "$host_cpu" = ia64; then
7999: # AIX 5 now supports IA64 processor
8000: lt_prog_compiler_static='-Bstatic'
8001: else
8002: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8003: fi
8004: ;;
8005:
8006: mingw* | cygwin* | pw32* | os2* | cegcc*)
8007: # This hack is so that the source file can tell whether it is being
8008: # built for inclusion in a dll (and should export symbols for example).
8009: lt_prog_compiler_pic='-DDLL_EXPORT'
8010: ;;
8011:
8012: hpux9* | hpux10* | hpux11*)
8013: lt_prog_compiler_wl='-Wl,'
8014: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8015: # not for PA HP-UX.
8016: case $host_cpu in
8017: hppa*64*|ia64*)
8018: # +Z the default
8019: ;;
8020: *)
8021: lt_prog_compiler_pic='+Z'
8022: ;;
8023: esac
8024: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8025: lt_prog_compiler_static='${wl}-a ${wl}archive'
8026: ;;
8027:
8028: irix5* | irix6* | nonstopux*)
8029: lt_prog_compiler_wl='-Wl,'
8030: # PIC (with -KPIC) is the default.
8031: lt_prog_compiler_static='-non_shared'
8032: ;;
8033:
8034: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8035: case $cc_basename in
8036: # old Intel for x86_64 which still supported -KPIC.
8037: ecc*)
8038: lt_prog_compiler_wl='-Wl,'
8039: lt_prog_compiler_pic='-KPIC'
8040: lt_prog_compiler_static='-static'
8041: ;;
8042: # icc used to be incompatible with GCC.
8043: # ICC 10 doesn't accept -KPIC any more.
8044: icc* | ifort*)
8045: lt_prog_compiler_wl='-Wl,'
8046: lt_prog_compiler_pic='-fPIC'
8047: lt_prog_compiler_static='-static'
8048: ;;
8049: # Lahey Fortran 8.1.
8050: lf95*)
8051: lt_prog_compiler_wl='-Wl,'
8052: lt_prog_compiler_pic='--shared'
8053: lt_prog_compiler_static='--static'
8054: ;;
8055: nagfor*)
8056: # NAG Fortran compiler
8057: lt_prog_compiler_wl='-Wl,-Wl,,'
8058: lt_prog_compiler_pic='-PIC'
8059: lt_prog_compiler_static='-Bstatic'
8060: ;;
8061: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8062: # Portland Group compilers (*not* the Pentium gcc compiler,
8063: # which looks to be a dead project)
8064: lt_prog_compiler_wl='-Wl,'
8065: lt_prog_compiler_pic='-fpic'
8066: lt_prog_compiler_static='-Bstatic'
8067: ;;
8068: ccc*)
8069: lt_prog_compiler_wl='-Wl,'
8070: # All Alpha code is PIC.
8071: lt_prog_compiler_static='-non_shared'
8072: ;;
8073: xl* | bgxl* | bgf* | mpixl*)
8074: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8075: lt_prog_compiler_wl='-Wl,'
8076: lt_prog_compiler_pic='-qpic'
8077: lt_prog_compiler_static='-qstaticlink'
8078: ;;
8079: *)
8080: case `$CC -V 2>&1 | sed 5q` in
8081: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8082: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8083: lt_prog_compiler_pic='-KPIC'
8084: lt_prog_compiler_static='-Bstatic'
8085: lt_prog_compiler_wl=''
8086: ;;
8087: *Sun\ F* | *Sun*Fortran*)
8088: lt_prog_compiler_pic='-KPIC'
8089: lt_prog_compiler_static='-Bstatic'
8090: lt_prog_compiler_wl='-Qoption ld '
8091: ;;
8092: *Sun\ C*)
8093: # Sun C 5.9
8094: lt_prog_compiler_pic='-KPIC'
8095: lt_prog_compiler_static='-Bstatic'
8096: lt_prog_compiler_wl='-Wl,'
8097: ;;
8098: *Intel*\ [CF]*Compiler*)
8099: lt_prog_compiler_wl='-Wl,'
8100: lt_prog_compiler_pic='-fPIC'
8101: lt_prog_compiler_static='-static'
8102: ;;
8103: *Portland\ Group*)
8104: lt_prog_compiler_wl='-Wl,'
8105: lt_prog_compiler_pic='-fpic'
8106: lt_prog_compiler_static='-Bstatic'
8107: ;;
8108: esac
8109: ;;
8110: esac
8111: ;;
8112:
8113: newsos6)
8114: lt_prog_compiler_pic='-KPIC'
8115: lt_prog_compiler_static='-Bstatic'
8116: ;;
8117:
8118: *nto* | *qnx*)
8119: # QNX uses GNU C++, but need to define -shared option too, otherwise
8120: # it will coredump.
8121: lt_prog_compiler_pic='-fPIC -shared'
8122: ;;
8123:
8124: osf3* | osf4* | osf5*)
8125: lt_prog_compiler_wl='-Wl,'
8126: # All OSF/1 code is PIC.
8127: lt_prog_compiler_static='-non_shared'
8128: ;;
8129:
8130: rdos*)
8131: lt_prog_compiler_static='-non_shared'
8132: ;;
8133:
8134: solaris*)
8135: lt_prog_compiler_pic='-KPIC'
8136: lt_prog_compiler_static='-Bstatic'
8137: case $cc_basename in
8138: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8139: lt_prog_compiler_wl='-Qoption ld ';;
8140: *)
8141: lt_prog_compiler_wl='-Wl,';;
8142: esac
8143: ;;
8144:
8145: sunos4*)
8146: lt_prog_compiler_wl='-Qoption ld '
8147: lt_prog_compiler_pic='-PIC'
8148: lt_prog_compiler_static='-Bstatic'
8149: ;;
8150:
8151: sysv4 | sysv4.2uw2* | sysv4.3*)
8152: lt_prog_compiler_wl='-Wl,'
8153: lt_prog_compiler_pic='-KPIC'
8154: lt_prog_compiler_static='-Bstatic'
8155: ;;
8156:
8157: sysv4*MP*)
8158: if test -d /usr/nec ;then
8159: lt_prog_compiler_pic='-Kconform_pic'
8160: lt_prog_compiler_static='-Bstatic'
8161: fi
8162: ;;
8163:
8164: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8165: lt_prog_compiler_wl='-Wl,'
8166: lt_prog_compiler_pic='-KPIC'
8167: lt_prog_compiler_static='-Bstatic'
8168: ;;
8169:
8170: unicos*)
8171: lt_prog_compiler_wl='-Wl,'
8172: lt_prog_compiler_can_build_shared=no
8173: ;;
8174:
8175: uts4*)
8176: lt_prog_compiler_pic='-pic'
8177: lt_prog_compiler_static='-Bstatic'
8178: ;;
8179:
8180: *)
8181: lt_prog_compiler_can_build_shared=no
8182: ;;
8183: esac
8184: fi
8185:
8186: case $host_os in
8187: # For platforms which do not support PIC, -DPIC is meaningless:
8188: *djgpp*)
8189: lt_prog_compiler_pic=
1.11 paf 8190: ;;
1.25 moko 8191: *)
8192: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.11 paf 8193: ;;
8194: esac
1.25 moko 8195:
8196: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8197: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8198: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8199: echo $ECHO_N "(cached) $ECHO_C" >&6
8200: else
8201: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8202: fi
8203: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8204: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8205: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8206:
8207: #
8208: # Check to make sure the PIC flag actually works.
8209: #
8210: if test -n "$lt_prog_compiler_pic"; then
8211: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8212: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8213: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1.11 paf 8214: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 8215: else
1.25 moko 8216: lt_cv_prog_compiler_pic_works=no
8217: ac_outfile=conftest.$ac_objext
8218: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8219: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8220: # Insert the option either (1) after the last *FLAGS variable, or
8221: # (2) before a word containing "conftest.", or (3) at the end.
8222: # Note that $ac_compile itself does not contain backslashes and begins
8223: # with a dollar sign (not a hyphen), so the echo should work correctly.
8224: # The option is referenced via a variable to avoid confusing sed.
8225: lt_compile=`echo "$ac_compile" | $SED \
8226: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8227: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8228: -e 's:$: $lt_compiler_flag:'`
8229: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8230: (eval "$lt_compile" 2>conftest.err)
8231: ac_status=$?
8232: cat conftest.err >&5
8233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234: if (exit $ac_status) && test -s "$ac_outfile"; then
8235: # The compiler can only warn and ignore the option if not recognized
8236: # So say no if there are warnings other than the usual output.
8237: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8238: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8239: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8240: lt_cv_prog_compiler_pic_works=yes
8241: fi
8242: fi
8243: $RM conftest*
8244:
1.1 parser 8245: fi
1.25 moko 8246: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8247: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.11 paf 8248:
1.25 moko 8249: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8250: case $lt_prog_compiler_pic in
8251: "" | " "*) ;;
8252: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8253: esac
8254: else
8255: lt_prog_compiler_pic=
8256: lt_prog_compiler_can_build_shared=no
1.1 parser 8257: fi
1.11 paf 8258:
1.1 parser 8259: fi
1.11 paf 8260:
1.1 parser 8261:
8262:
1.4 paf 8263:
8264:
1.11 paf 8265:
8266:
1.4 paf 8267:
8268:
1.25 moko 8269:
8270:
8271: #
8272: # Check to make sure the static flag actually works.
8273: #
8274: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8275: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8276: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8277: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8278: echo $ECHO_N "(cached) $ECHO_C" >&6
8279: else
8280: lt_cv_prog_compiler_static_works=no
8281: save_LDFLAGS="$LDFLAGS"
8282: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8283: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8284: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8285: # The linker can only warn and ignore the option if not recognized
8286: # So say no if there are warnings
8287: if test -s conftest.err; then
8288: # Append any errors to the config.log.
8289: cat conftest.err 1>&5
8290: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8291: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292: if diff conftest.exp conftest.er2 >/dev/null; then
8293: lt_cv_prog_compiler_static_works=yes
8294: fi
8295: else
8296: lt_cv_prog_compiler_static_works=yes
8297: fi
8298: fi
8299: $RM -r conftest*
8300: LDFLAGS="$save_LDFLAGS"
8301:
8302: fi
8303: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8304: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8305:
8306: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8307: :
1.4 paf 8308: else
1.25 moko 8309: lt_prog_compiler_static=
8310: fi
1.11 paf 8311:
8312:
1.25 moko 8313:
8314:
8315:
8316:
8317:
8318: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8319: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8320: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8321: echo $ECHO_N "(cached) $ECHO_C" >&6
8322: else
8323: lt_cv_prog_compiler_c_o=no
8324: $RM -r conftest 2>/dev/null
8325: mkdir conftest
8326: cd conftest
8327: mkdir out
8328: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8329:
8330: lt_compiler_flag="-o out/conftest2.$ac_objext"
8331: # Insert the option either (1) after the last *FLAGS variable, or
8332: # (2) before a word containing "conftest.", or (3) at the end.
8333: # Note that $ac_compile itself does not contain backslashes and begins
8334: # with a dollar sign (not a hyphen), so the echo should work correctly.
8335: lt_compile=`echo "$ac_compile" | $SED \
8336: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338: -e 's:$: $lt_compiler_flag:'`
8339: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8340: (eval "$lt_compile" 2>out/conftest.err)
8341: ac_status=$?
8342: cat out/conftest.err >&5
8343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8345: then
8346: # The compiler can only warn and ignore the option if not recognized
8347: # So say no if there are warnings
8348: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8349: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8350: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8351: lt_cv_prog_compiler_c_o=yes
8352: fi
8353: fi
8354: chmod u+w . 2>&5
8355: $RM conftest*
8356: # SGI C++ compiler will create directory out/ii_files/ for
8357: # template instantiation
8358: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8359: $RM out/* && rmdir out
8360: cd ..
8361: $RM -r conftest
8362: $RM conftest*
8363:
8364: fi
8365: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8366: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8367:
8368:
8369:
8370:
8371:
8372:
8373: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8374: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8375: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8376: echo $ECHO_N "(cached) $ECHO_C" >&6
8377: else
8378: lt_cv_prog_compiler_c_o=no
8379: $RM -r conftest 2>/dev/null
8380: mkdir conftest
8381: cd conftest
8382: mkdir out
8383: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8384:
8385: lt_compiler_flag="-o out/conftest2.$ac_objext"
8386: # Insert the option either (1) after the last *FLAGS variable, or
8387: # (2) before a word containing "conftest.", or (3) at the end.
8388: # Note that $ac_compile itself does not contain backslashes and begins
8389: # with a dollar sign (not a hyphen), so the echo should work correctly.
8390: lt_compile=`echo "$ac_compile" | $SED \
8391: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8392: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8393: -e 's:$: $lt_compiler_flag:'`
8394: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8395: (eval "$lt_compile" 2>out/conftest.err)
8396: ac_status=$?
8397: cat out/conftest.err >&5
8398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8400: then
8401: # The compiler can only warn and ignore the option if not recognized
8402: # So say no if there are warnings
8403: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8404: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8405: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8406: lt_cv_prog_compiler_c_o=yes
8407: fi
8408: fi
8409: chmod u+w . 2>&5
8410: $RM conftest*
8411: # SGI C++ compiler will create directory out/ii_files/ for
8412: # template instantiation
8413: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8414: $RM out/* && rmdir out
8415: cd ..
8416: $RM -r conftest
8417: $RM conftest*
8418:
8419: fi
8420: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8421: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8422:
8423:
8424:
8425:
8426: hard_links="nottested"
8427: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8428: # do not overwrite the value of need_locks provided by the user
8429: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8430: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8431: hard_links=yes
8432: $RM conftest*
8433: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8434: touch conftest.a
8435: ln conftest.a conftest.b 2>&5 || hard_links=no
8436: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8437: echo "$as_me:$LINENO: result: $hard_links" >&5
8438: echo "${ECHO_T}$hard_links" >&6
8439: if test "$hard_links" = no; then
8440: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8441: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8442: need_locks=warn
8443: fi
8444: else
8445: need_locks=no
8446: fi
8447:
8448:
8449:
8450:
8451:
8452:
8453: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8454: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8455:
8456: runpath_var=
8457: allow_undefined_flag=
8458: always_export_symbols=no
8459: archive_cmds=
8460: archive_expsym_cmds=
8461: compiler_needs_object=no
8462: enable_shared_with_static_runtimes=no
8463: export_dynamic_flag_spec=
8464: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8465: hardcode_automatic=no
8466: hardcode_direct=no
8467: hardcode_direct_absolute=no
8468: hardcode_libdir_flag_spec=
8469: hardcode_libdir_separator=
8470: hardcode_minus_L=no
8471: hardcode_shlibpath_var=unsupported
8472: inherit_rpath=no
8473: link_all_deplibs=unknown
8474: module_cmds=
8475: module_expsym_cmds=
8476: old_archive_from_new_cmds=
8477: old_archive_from_expsyms_cmds=
8478: thread_safe_flag_spec=
8479: whole_archive_flag_spec=
8480: # include_expsyms should be a list of space-separated symbols to be *always*
8481: # included in the symbol list
8482: include_expsyms=
8483: # exclude_expsyms can be an extended regexp of symbols to exclude
8484: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8485: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8486: # as well as any symbol that contains `d'.
8487: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8488: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8489: # platforms (ab)use it in PIC code, but their linkers get confused if
8490: # the symbol is explicitly referenced. Since portable code cannot
8491: # rely on this symbol name, it's probably fine to never include it in
8492: # preloaded symbol tables.
8493: # Exclude shared library initialization/finalization symbols.
8494: extract_expsyms_cmds=
8495:
8496: case $host_os in
8497: cygwin* | mingw* | pw32* | cegcc*)
8498: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8499: # When not using gcc, we currently assume that we are using
8500: # Microsoft Visual C++.
8501: if test "$GCC" != yes; then
8502: with_gnu_ld=no
8503: fi
8504: ;;
8505: interix*)
8506: # we just hope/assume this is gcc and not c89 (= MSVC++)
8507: with_gnu_ld=yes
8508: ;;
8509: openbsd*)
8510: with_gnu_ld=no
8511: ;;
8512: esac
8513:
8514: ld_shlibs=yes
8515:
8516: # On some targets, GNU ld is compatible enough with the native linker
8517: # that we're better off using the native interface for both.
8518: lt_use_gnu_ld_interface=no
8519: if test "$with_gnu_ld" = yes; then
8520: case $host_os in
8521: aix*)
8522: # The AIX port of GNU ld has always aspired to compatibility
8523: # with the native linker. However, as the warning in the GNU ld
8524: # block says, versions before 2.19.5* couldn't really create working
8525: # shared libraries, regardless of the interface used.
8526: case `$LD -v 2>&1` in
8527: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8528: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8529: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8530: *)
8531: lt_use_gnu_ld_interface=yes
8532: ;;
8533: esac
8534: ;;
8535: *)
8536: lt_use_gnu_ld_interface=yes
8537: ;;
8538: esac
8539: fi
8540:
8541: if test "$lt_use_gnu_ld_interface" = yes; then
8542: # If archive_cmds runs LD, not CC, wlarc should be empty
8543: wlarc='${wl}'
8544:
8545: # Set some defaults for GNU ld with shared library support. These
8546: # are reset later if shared libraries are not supported. Putting them
8547: # here allows them to be overridden if necessary.
8548: runpath_var=LD_RUN_PATH
8549: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8550: export_dynamic_flag_spec='${wl}--export-dynamic'
8551: # ancient GNU ld didn't support --whole-archive et. al.
8552: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8553: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8554: else
8555: whole_archive_flag_spec=
8556: fi
8557: supports_anon_versioning=no
8558: case `$LD -v 2>&1` in
8559: *GNU\ gold*) supports_anon_versioning=yes ;;
8560: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8561: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8562: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8563: *\ 2.11.*) ;; # other 2.11 versions
8564: *) supports_anon_versioning=yes ;;
8565: esac
8566:
8567: # See if GNU ld supports shared libraries.
8568: case $host_os in
8569: aix[3-9]*)
8570: # On AIX/PPC, the GNU linker is very broken
8571: if test "$host_cpu" != ia64; then
8572: ld_shlibs=no
8573: cat <<_LT_EOF 1>&2
8574:
8575: *** Warning: the GNU linker, at least up to release 2.19, is reported
8576: *** to be unable to reliably create shared libraries on AIX.
8577: *** Therefore, libtool is disabling shared libraries support. If you
8578: *** really care for shared libraries, you may want to install binutils
8579: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8580: *** You will then need to restart the configuration process.
8581:
8582: _LT_EOF
8583: fi
8584: ;;
8585:
8586: amigaos*)
8587: case $host_cpu in
8588: powerpc)
8589: # see comment about AmigaOS4 .so support
8590: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591: archive_expsym_cmds=''
8592: ;;
8593: m68k)
8594: 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)'
8595: hardcode_libdir_flag_spec='-L$libdir'
8596: hardcode_minus_L=yes
8597: ;;
8598: esac
8599: ;;
8600:
8601: beos*)
8602: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8603: allow_undefined_flag=unsupported
8604: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8605: # support --undefined. This deserves some investigation. FIXME
8606: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607: else
8608: ld_shlibs=no
8609: fi
8610: ;;
8611:
8612: cygwin* | mingw* | pw32* | cegcc*)
8613: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8614: # as there is no search path for DLLs.
8615: hardcode_libdir_flag_spec='-L$libdir'
8616: export_dynamic_flag_spec='${wl}--export-all-symbols'
8617: allow_undefined_flag=unsupported
8618: always_export_symbols=no
8619: enable_shared_with_static_runtimes=yes
8620: 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'
8621: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8622:
8623: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8624: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8625: # If the export-symbols file already is a .def file (1st line
8626: # is EXPORTS), use it as is; otherwise, prepend...
8627: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8628: cp $export_symbols $output_objdir/$soname.def;
8629: else
8630: echo EXPORTS > $output_objdir/$soname.def;
8631: cat $export_symbols >> $output_objdir/$soname.def;
8632: fi~
8633: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8634: else
8635: ld_shlibs=no
8636: fi
8637: ;;
8638:
8639: haiku*)
8640: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8641: link_all_deplibs=yes
8642: ;;
8643:
8644: interix[3-9]*)
8645: hardcode_direct=no
8646: hardcode_shlibpath_var=no
8647: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8648: export_dynamic_flag_spec='${wl}-E'
8649: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8650: # Instead, shared libraries are loaded at an image base (0x10000000 by
8651: # default) and relocated if they conflict, which is a slow very memory
8652: # consuming and fragmenting process. To avoid this, we pick a random,
8653: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8654: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8655: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8656: 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'
8657: ;;
8658:
8659: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8660: tmp_diet=no
8661: if test "$host_os" = linux-dietlibc; then
8662: case $cc_basename in
8663: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8664: esac
8665: fi
8666: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8667: && test "$tmp_diet" = no
8668: then
8669: tmp_addflag=' $pic_flag'
8670: tmp_sharedflag='-shared'
8671: case $cc_basename,$host_cpu in
8672: pgcc*) # Portland Group C compiler
8673: 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'
8674: tmp_addflag=' $pic_flag'
8675: ;;
8676: pgf77* | pgf90* | pgf95* | pgfortran*)
8677: # Portland Group f77 and f90 compilers
8678: 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'
8679: tmp_addflag=' $pic_flag -Mnomain' ;;
8680: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8681: tmp_addflag=' -i_dynamic' ;;
8682: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8683: tmp_addflag=' -i_dynamic -nofor_main' ;;
8684: ifc* | ifort*) # Intel Fortran compiler
8685: tmp_addflag=' -nofor_main' ;;
8686: lf95*) # Lahey Fortran 8.1
8687: whole_archive_flag_spec=
8688: tmp_sharedflag='--shared' ;;
8689: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8690: tmp_sharedflag='-qmkshrobj'
8691: tmp_addflag= ;;
8692: nvcc*) # Cuda Compiler Driver 2.2
8693: 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'
8694: compiler_needs_object=yes
8695: ;;
8696: esac
8697: case `$CC -V 2>&1 | sed 5q` in
8698: *Sun\ C*) # Sun C 5.9
8699: 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'
8700: compiler_needs_object=yes
8701: tmp_sharedflag='-G' ;;
8702: *Sun\ F*) # Sun Fortran 8.3
8703: tmp_sharedflag='-G' ;;
8704: esac
8705: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706:
8707: if test "x$supports_anon_versioning" = xyes; then
8708: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8709: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8710: echo "local: *; };" >> $output_objdir/$libname.ver~
8711: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8712: fi
8713:
8714: case $cc_basename in
8715: xlf* | bgf* | bgxlf* | mpixlf*)
8716: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8717: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8718: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8720: if test "x$supports_anon_versioning" = xyes; then
8721: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8722: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8723: echo "local: *; };" >> $output_objdir/$libname.ver~
8724: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8725: fi
8726: ;;
8727: esac
8728: else
8729: ld_shlibs=no
8730: fi
8731: ;;
8732:
8733: netbsd*)
8734: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8735: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8736: wlarc=
8737: else
8738: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740: fi
8741: ;;
8742:
8743: solaris*)
8744: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8745: ld_shlibs=no
8746: cat <<_LT_EOF 1>&2
8747:
8748: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8749: *** create shared libraries on Solaris systems. Therefore, libtool
8750: *** is disabling shared libraries support. We urge you to upgrade GNU
8751: *** binutils to release 2.9.1 or newer. Another option is to modify
8752: *** your PATH or compiler configuration so that the native linker is
8753: *** used, and then restart.
8754:
8755: _LT_EOF
8756: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8757: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8759: else
8760: ld_shlibs=no
8761: fi
8762: ;;
8763:
8764: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8765: case `$LD -v 2>&1` in
8766: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8767: ld_shlibs=no
8768: cat <<_LT_EOF 1>&2
8769:
8770: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8771: *** reliably create shared libraries on SCO systems. Therefore, libtool
8772: *** is disabling shared libraries support. We urge you to upgrade GNU
8773: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8774: *** your PATH or compiler configuration so that the native linker is
8775: *** used, and then restart.
8776:
8777: _LT_EOF
8778: ;;
8779: *)
8780: # For security reasons, it is highly recommended that you always
8781: # use absolute paths for naming shared libraries, and exclude the
8782: # DT_RUNPATH tag from executables and libraries. But doing so
8783: # requires that you compile everything twice, which is a pain.
8784: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8788: else
8789: ld_shlibs=no
8790: fi
8791: ;;
8792: esac
8793: ;;
8794:
8795: sunos4*)
8796: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8797: wlarc=
8798: hardcode_direct=yes
8799: hardcode_shlibpath_var=no
8800: ;;
8801:
8802: *)
8803: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8804: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8806: else
8807: ld_shlibs=no
8808: fi
8809: ;;
8810: esac
8811:
8812: if test "$ld_shlibs" = no; then
8813: runpath_var=
8814: hardcode_libdir_flag_spec=
8815: export_dynamic_flag_spec=
8816: whole_archive_flag_spec=
8817: fi
8818: else
8819: # PORTME fill in a description of your system's linker (not GNU ld)
8820: case $host_os in
8821: aix3*)
8822: allow_undefined_flag=unsupported
8823: always_export_symbols=yes
8824: 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'
8825: # Note: this linker hardcodes the directories in LIBPATH if there
8826: # are no directories specified by -L.
8827: hardcode_minus_L=yes
8828: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8829: # Neither direct hardcoding nor static linking is supported with a
8830: # broken collect2.
8831: hardcode_direct=unsupported
8832: fi
8833: ;;
8834:
8835: aix[4-9]*)
8836: if test "$host_cpu" = ia64; then
8837: # On IA64, the linker does run time linking by default, so we don't
8838: # have to do anything special.
8839: aix_use_runtimelinking=no
8840: exp_sym_flag='-Bexport'
8841: no_entry_flag=""
8842: else
8843: # If we're using GNU nm, then we don't want the "-C" option.
8844: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8845: # Also, AIX nm treats weak defined symbols like other global
8846: # defined symbols, whereas GNU nm marks them as "W".
8847: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8848: 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'
8849: else
8850: 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'
8851: fi
8852: aix_use_runtimelinking=no
8853:
8854: # Test if we are trying to use run time linking or normal
8855: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8856: # need to do runtime linking.
8857: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8858: for ld_flag in $LDFLAGS; do
8859: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8860: aix_use_runtimelinking=yes
8861: break
8862: fi
8863: done
8864: ;;
8865: esac
8866:
8867: exp_sym_flag='-bexport'
8868: no_entry_flag='-bnoentry'
8869: fi
8870:
8871: # When large executables or shared objects are built, AIX ld can
8872: # have problems creating the table of contents. If linking a library
8873: # or program results in "error TOC overflow" add -mminimal-toc to
8874: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8875: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8876:
8877: archive_cmds=''
8878: hardcode_direct=yes
8879: hardcode_direct_absolute=yes
8880: hardcode_libdir_separator=':'
8881: link_all_deplibs=yes
8882: file_list_spec='${wl}-f,'
8883:
8884: if test "$GCC" = yes; then
8885: case $host_os in aix4.[012]|aix4.[012].*)
8886: # We only want to do this on AIX 4.2 and lower, the check
8887: # below for broken collect2 doesn't work under 4.3+
8888: collect2name=`${CC} -print-prog-name=collect2`
8889: if test -f "$collect2name" &&
8890: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8891: then
8892: # We have reworked collect2
8893: :
8894: else
8895: # We have old collect2
8896: hardcode_direct=unsupported
8897: # It fails to find uninstalled libraries when the uninstalled
8898: # path is not listed in the libpath. Setting hardcode_minus_L
8899: # to unsupported forces relinking
8900: hardcode_minus_L=yes
8901: hardcode_libdir_flag_spec='-L$libdir'
8902: hardcode_libdir_separator=
8903: fi
8904: ;;
8905: esac
8906: shared_flag='-shared'
8907: if test "$aix_use_runtimelinking" = yes; then
8908: shared_flag="$shared_flag "'${wl}-G'
8909: fi
8910: else
8911: # not using gcc
8912: if test "$host_cpu" = ia64; then
8913: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8914: # chokes on -Wl,-G. The following line is correct:
8915: shared_flag='-G'
8916: else
8917: if test "$aix_use_runtimelinking" = yes; then
8918: shared_flag='${wl}-G'
8919: else
8920: shared_flag='${wl}-bM:SRE'
8921: fi
8922: fi
8923: fi
8924:
8925: export_dynamic_flag_spec='${wl}-bexpall'
8926: # It seems that -bexpall does not export symbols beginning with
8927: # underscore (_), so it is better to generate a list of symbols to export.
8928: always_export_symbols=yes
8929: if test "$aix_use_runtimelinking" = yes; then
8930: # Warning - without using the other runtime loading flags (-brtl),
8931: # -berok will link without error, but may produce a broken library.
8932: allow_undefined_flag='-berok'
8933: # Determine the default libpath from the value encoded in an
8934: # empty executable.
8935: if test "${lt_cv_aix_libpath+set}" = set; then
8936: aix_libpath=$lt_cv_aix_libpath
8937: else
8938: if test "${lt_cv_aix_libpath_+set}" = set; then
8939: echo $ECHO_N "(cached) $ECHO_C" >&6
8940: else
8941: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 8942: /* confdefs.h. */
8943: _ACEOF
8944: cat confdefs.h >>conftest.$ac_ext
8945: cat >>conftest.$ac_ext <<_ACEOF
8946: /* end confdefs.h. */
1.1 parser 8947:
1.11 paf 8948: int
8949: main ()
8950: {
1.1 parser 8951:
1.11 paf 8952: ;
8953: return 0;
8954: }
8955: _ACEOF
1.17 paf 8956: rm -f conftest.$ac_objext conftest$ac_exeext
8957: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 8958: (eval $ac_link) 2>conftest.er1
1.11 paf 8959: ac_status=$?
1.18 paf 8960: grep -v '^ *+' conftest.er1 >conftest.err
8961: rm -f conftest.er1
8962: cat conftest.err >&5
1.11 paf 8963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964: (exit $ac_status); } &&
1.18 paf 8965: { ac_try='test -z "$ac_c_werror_flag"
8966: || test ! -s conftest.err'
8967: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968: (eval $ac_try) 2>&5
8969: ac_status=$?
8970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971: (exit $ac_status); }; } &&
8972: { ac_try='test -s conftest$ac_exeext'
1.11 paf 8973: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974: (eval $ac_try) 2>&5
8975: ac_status=$?
8976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977: (exit $ac_status); }; }; then
8978:
1.25 moko 8979: lt_aix_libpath_sed='
8980: /Import File Strings/,/^$/ {
8981: /^0/ {
8982: s/^0 *\([^ ]*\) *$/\1/
8983: p
8984: }
8985: }'
8986: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987: # Check for a 64-bit object if we didn't find anything.
8988: if test -z "$lt_cv_aix_libpath_"; then
8989: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990: fi
1.11 paf 8991: else
8992: echo "$as_me: failed program was:" >&5
8993: sed 's/^/| /' conftest.$ac_ext >&5
8994:
8995: fi
1.18 paf 8996: rm -f conftest.err conftest.$ac_objext \
8997: conftest$ac_exeext conftest.$ac_ext
1.25 moko 8998: if test -z "$lt_cv_aix_libpath_"; then
8999: lt_cv_aix_libpath_="/usr/lib:/lib"
9000: fi
1.11 paf 9001:
9002: fi
9003:
1.25 moko 9004: aix_libpath=$lt_cv_aix_libpath_
9005: fi
1.11 paf 9006:
1.25 moko 9007: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9008: 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"
9009: else
9010: if test "$host_cpu" = ia64; then
9011: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9012: allow_undefined_flag="-z nodefs"
9013: 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"
9014: else
9015: # Determine the default libpath from the value encoded in an
9016: # empty executable.
9017: if test "${lt_cv_aix_libpath+set}" = set; then
9018: aix_libpath=$lt_cv_aix_libpath
9019: else
9020: if test "${lt_cv_aix_libpath_+set}" = set; then
1.11 paf 9021: echo $ECHO_N "(cached) $ECHO_C" >&6
9022: else
9023: cat >conftest.$ac_ext <<_ACEOF
9024: /* confdefs.h. */
9025: _ACEOF
9026: cat confdefs.h >>conftest.$ac_ext
9027: cat >>conftest.$ac_ext <<_ACEOF
9028: /* end confdefs.h. */
1.25 moko 9029:
1.11 paf 9030: int
9031: main ()
9032: {
1.25 moko 9033:
1.11 paf 9034: ;
9035: return 0;
9036: }
9037: _ACEOF
1.25 moko 9038: rm -f conftest.$ac_objext conftest$ac_exeext
9039: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040: (eval $ac_link) 2>conftest.er1
1.11 paf 9041: ac_status=$?
1.18 paf 9042: grep -v '^ *+' conftest.er1 >conftest.err
9043: rm -f conftest.er1
9044: cat conftest.err >&5
1.11 paf 9045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046: (exit $ac_status); } &&
1.18 paf 9047: { ac_try='test -z "$ac_c_werror_flag"
9048: || test ! -s conftest.err'
9049: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050: (eval $ac_try) 2>&5
9051: ac_status=$?
9052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053: (exit $ac_status); }; } &&
1.25 moko 9054: { ac_try='test -s conftest$ac_exeext'
1.11 paf 9055: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056: (eval $ac_try) 2>&5
9057: ac_status=$?
9058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059: (exit $ac_status); }; }; then
1.25 moko 9060:
9061: lt_aix_libpath_sed='
9062: /Import File Strings/,/^$/ {
9063: /^0/ {
9064: s/^0 *\([^ ]*\) *$/\1/
9065: p
9066: }
9067: }'
9068: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9069: # Check for a 64-bit object if we didn't find anything.
9070: if test -z "$lt_cv_aix_libpath_"; then
9071: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9072: fi
1.1 parser 9073: else
1.11 paf 9074: echo "$as_me: failed program was:" >&5
9075: sed 's/^/| /' conftest.$ac_ext >&5
9076:
9077: fi
1.25 moko 9078: rm -f conftest.err conftest.$ac_objext \
9079: conftest$ac_exeext conftest.$ac_ext
9080: if test -z "$lt_cv_aix_libpath_"; then
9081: lt_cv_aix_libpath_="/usr/lib:/lib"
9082: fi
9083:
9084: fi
9085:
9086: aix_libpath=$lt_cv_aix_libpath_
1.1 parser 9087: fi
9088:
1.25 moko 9089: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9090: # Warning - without using the other run time loading flags,
9091: # -berok will link without error, but may produce a broken library.
9092: no_undefined_flag=' ${wl}-bernotok'
9093: allow_undefined_flag=' ${wl}-berok'
9094: if test "$with_gnu_ld" = yes; then
9095: # We only use this code for GNU lds that support --whole-archive.
9096: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9097: else
9098: # Exported symbols can be pulled into shared objects from archives
9099: whole_archive_flag_spec='$convenience'
9100: fi
9101: archive_cmds_need_lc=yes
9102: # This is similar to how AIX traditionally builds its shared libraries.
9103: 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'
9104: fi
9105: fi
9106: ;;
1.1 parser 9107:
1.25 moko 9108: amigaos*)
9109: case $host_cpu in
9110: powerpc)
9111: # see comment about AmigaOS4 .so support
9112: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113: archive_expsym_cmds=''
9114: ;;
9115: m68k)
9116: 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)'
9117: hardcode_libdir_flag_spec='-L$libdir'
9118: hardcode_minus_L=yes
9119: ;;
9120: esac
9121: ;;
1.1 parser 9122:
1.25 moko 9123: bsdi[45]*)
9124: export_dynamic_flag_spec=-rdynamic
9125: ;;
1.1 parser 9126:
1.25 moko 9127: cygwin* | mingw* | pw32* | cegcc*)
9128: # When not using gcc, we currently assume that we are using
9129: # Microsoft Visual C++.
9130: # hardcode_libdir_flag_spec is actually meaningless, as there is
9131: # no search path for DLLs.
9132: case $cc_basename in
9133: cl*)
9134: # Native MSVC
9135: hardcode_libdir_flag_spec=' '
9136: allow_undefined_flag=unsupported
9137: always_export_symbols=yes
9138: file_list_spec='@'
9139: # Tell ltmain to make .lib files, not .a files.
9140: libext=lib
9141: # Tell ltmain to make .dll files, not .so files.
9142: shrext_cmds=".dll"
9143: # FIXME: Setting linknames here is a bad hack.
9144: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9145: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9146: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9147: else
9148: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9149: fi~
9150: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9151: linknames='
9152: # The linker will not automatically build a static lib if we build a DLL.
9153: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9154: enable_shared_with_static_runtimes=yes
9155: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9156: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9157: # Don't use ranlib
9158: old_postinstall_cmds='chmod 644 $oldlib'
9159: postlink_cmds='lt_outputfile="@OUTPUT@"~
9160: lt_tool_outputfile="@TOOL_OUTPUT@"~
9161: case $lt_outputfile in
9162: *.exe|*.EXE) ;;
9163: *)
9164: lt_outputfile="$lt_outputfile.exe"
9165: lt_tool_outputfile="$lt_tool_outputfile.exe"
9166: ;;
9167: esac~
9168: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9169: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9170: $RM "$lt_outputfile.manifest";
9171: fi'
9172: ;;
9173: *)
9174: # Assume MSVC wrapper
9175: hardcode_libdir_flag_spec=' '
9176: allow_undefined_flag=unsupported
9177: # Tell ltmain to make .lib files, not .a files.
9178: libext=lib
9179: # Tell ltmain to make .dll files, not .so files.
9180: shrext_cmds=".dll"
9181: # FIXME: Setting linknames here is a bad hack.
9182: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9183: # The linker will automatically build a .lib file if we build a DLL.
9184: old_archive_from_new_cmds='true'
9185: # FIXME: Should let the user specify the lib program.
9186: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9187: enable_shared_with_static_runtimes=yes
9188: ;;
9189: esac
9190: ;;
1.1 parser 9191:
1.25 moko 9192: darwin* | rhapsody*)
1.1 parser 9193:
1.11 paf 9194:
1.25 moko 9195: archive_cmds_need_lc=no
9196: hardcode_direct=no
9197: hardcode_automatic=yes
9198: hardcode_shlibpath_var=unsupported
9199: if test "$lt_cv_ld_force_load" = "yes"; then
9200: 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\"`'
1.11 paf 9201:
1.1 parser 9202: else
1.25 moko 9203: whole_archive_flag_spec=''
1.1 parser 9204: fi
1.25 moko 9205: link_all_deplibs=yes
9206: allow_undefined_flag="$_lt_dar_allow_undefined"
9207: case $cc_basename in
9208: ifort*) _lt_dar_can_shared=yes ;;
9209: *) _lt_dar_can_shared=$GCC ;;
9210: esac
9211: if test "$_lt_dar_can_shared" = "yes"; then
9212: output_verbose_link_cmd=func_echo_all
9213: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9214: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9215: 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}"
9216: 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}"
1.1 parser 9217:
1.25 moko 9218: else
9219: ld_shlibs=no
9220: fi
1.1 parser 9221:
1.25 moko 9222: ;;
1.1 parser 9223:
1.25 moko 9224: dgux*)
9225: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9226: hardcode_libdir_flag_spec='-L$libdir'
9227: hardcode_shlibpath_var=no
9228: ;;
1.11 paf 9229:
1.25 moko 9230: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9231: # support. Future versions do this automatically, but an explicit c++rt0.o
9232: # does not break anything, and helps significantly (at the cost of a little
9233: # extra space).
9234: freebsd2.2*)
9235: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9236: hardcode_libdir_flag_spec='-R$libdir'
9237: hardcode_direct=yes
9238: hardcode_shlibpath_var=no
9239: ;;
1.11 paf 9240:
1.25 moko 9241: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9242: freebsd2.*)
9243: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9244: hardcode_direct=yes
9245: hardcode_minus_L=yes
9246: hardcode_shlibpath_var=no
9247: ;;
1.11 paf 9248:
1.25 moko 9249: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9250: freebsd* | dragonfly*)
9251: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9252: hardcode_libdir_flag_spec='-R$libdir'
9253: hardcode_direct=yes
9254: hardcode_shlibpath_var=no
9255: ;;
1.1 parser 9256:
1.25 moko 9257: hpux9*)
9258: if test "$GCC" = yes; then
9259: 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'
9260: else
9261: 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'
9262: fi
9263: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9264: hardcode_libdir_separator=:
9265: hardcode_direct=yes
9266:
9267: # hardcode_minus_L: Not really in the search PATH,
9268: # but as the default location of the library.
9269: hardcode_minus_L=yes
9270: export_dynamic_flag_spec='${wl}-E'
9271: ;;
1.1 parser 9272:
1.25 moko 9273: hpux10*)
9274: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9275: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9276: else
9277: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9278: fi
9279: if test "$with_gnu_ld" = no; then
9280: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9281: hardcode_libdir_separator=:
9282: hardcode_direct=yes
9283: hardcode_direct_absolute=yes
9284: export_dynamic_flag_spec='${wl}-E'
9285: # hardcode_minus_L: Not really in the search PATH,
9286: # but as the default location of the library.
9287: hardcode_minus_L=yes
9288: fi
9289: ;;
1.11 paf 9290:
1.25 moko 9291: hpux11*)
9292: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9293: case $host_cpu in
9294: hppa*64*)
9295: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9296: ;;
9297: ia64*)
9298: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9299: ;;
9300: *)
9301: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9302: ;;
9303: esac
9304: else
9305: case $host_cpu in
9306: hppa*64*)
9307: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9308: ;;
9309: ia64*)
9310: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9311: ;;
9312: *)
1.11 paf 9313:
1.25 moko 9314: # Older versions of the 11.00 compiler do not understand -b yet
9315: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9316: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9317: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9318: if test "${lt_cv_prog_compiler__b+set}" = set; then
9319: echo $ECHO_N "(cached) $ECHO_C" >&6
9320: else
9321: lt_cv_prog_compiler__b=no
9322: save_LDFLAGS="$LDFLAGS"
9323: LDFLAGS="$LDFLAGS -b"
9324: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9325: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9326: # The linker can only warn and ignore the option if not recognized
9327: # So say no if there are warnings
9328: if test -s conftest.err; then
9329: # Append any errors to the config.log.
9330: cat conftest.err 1>&5
9331: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9332: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9333: if diff conftest.exp conftest.er2 >/dev/null; then
9334: lt_cv_prog_compiler__b=yes
9335: fi
9336: else
9337: lt_cv_prog_compiler__b=yes
9338: fi
9339: fi
9340: $RM -r conftest*
9341: LDFLAGS="$save_LDFLAGS"
1.11 paf 9342:
9343: fi
1.25 moko 9344: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9345: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.11 paf 9346:
1.25 moko 9347: if test x"$lt_cv_prog_compiler__b" = xyes; then
9348: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.11 paf 9349: else
1.25 moko 9350: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.11 paf 9351: fi
9352:
1.25 moko 9353: ;;
9354: esac
9355: fi
9356: if test "$with_gnu_ld" = no; then
9357: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358: hardcode_libdir_separator=:
9359:
9360: case $host_cpu in
9361: hppa*64*|ia64*)
9362: hardcode_direct=no
9363: hardcode_shlibpath_var=no
9364: ;;
9365: *)
9366: hardcode_direct=yes
9367: hardcode_direct_absolute=yes
9368: export_dynamic_flag_spec='${wl}-E'
1.11 paf 9369:
1.25 moko 9370: # hardcode_minus_L: Not really in the search PATH,
9371: # but as the default location of the library.
9372: hardcode_minus_L=yes
9373: ;;
9374: esac
9375: fi
9376: ;;
1.11 paf 9377:
1.25 moko 9378: irix5* | irix6* | nonstopux*)
9379: if test "$GCC" = yes; then
9380: 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'
9381: # Try to use the -exported_symbol ld option, if it does not
9382: # work, assume that -exports_file does not work either and
9383: # implicitly export all symbols.
9384: # This should be the same for all languages, so no per-tag cache variable.
9385: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9386: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9387: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9388: echo $ECHO_N "(cached) $ECHO_C" >&6
9389: else
9390: save_LDFLAGS="$LDFLAGS"
9391: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9392: cat >conftest.$ac_ext <<_ACEOF
9393: /* confdefs.h. */
9394: _ACEOF
9395: cat confdefs.h >>conftest.$ac_ext
9396: cat >>conftest.$ac_ext <<_ACEOF
9397: /* end confdefs.h. */
9398: int foo (void) { return 0; }
9399: _ACEOF
9400: rm -f conftest.$ac_objext conftest$ac_exeext
9401: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402: (eval $ac_link) 2>conftest.er1
9403: ac_status=$?
9404: grep -v '^ *+' conftest.er1 >conftest.err
9405: rm -f conftest.er1
9406: cat conftest.err >&5
9407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408: (exit $ac_status); } &&
9409: { ac_try='test -z "$ac_c_werror_flag"
9410: || test ! -s conftest.err'
9411: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412: (eval $ac_try) 2>&5
9413: ac_status=$?
9414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415: (exit $ac_status); }; } &&
9416: { ac_try='test -s conftest$ac_exeext'
9417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418: (eval $ac_try) 2>&5
9419: ac_status=$?
9420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421: (exit $ac_status); }; }; then
9422: lt_cv_irix_exported_symbol=yes
9423: else
9424: echo "$as_me: failed program was:" >&5
9425: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 9426:
1.25 moko 9427: lt_cv_irix_exported_symbol=no
1.11 paf 9428: fi
1.25 moko 9429: rm -f conftest.err conftest.$ac_objext \
9430: conftest$ac_exeext conftest.$ac_ext
9431: LDFLAGS="$save_LDFLAGS"
1.11 paf 9432: fi
1.25 moko 9433: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9434: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9435: if test "$lt_cv_irix_exported_symbol" = yes; then
9436: 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'
9437: fi
9438: else
9439: 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'
9440: 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'
9441: fi
9442: archive_cmds_need_lc='no'
9443: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9444: hardcode_libdir_separator=:
9445: inherit_rpath=yes
9446: link_all_deplibs=yes
9447: ;;
1.11 paf 9448:
1.25 moko 9449: netbsd*)
9450: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9451: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9452: else
9453: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9454: fi
9455: hardcode_libdir_flag_spec='-R$libdir'
9456: hardcode_direct=yes
9457: hardcode_shlibpath_var=no
9458: ;;
1.11 paf 9459:
1.25 moko 9460: newsos6)
9461: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462: hardcode_direct=yes
9463: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9464: hardcode_libdir_separator=:
9465: hardcode_shlibpath_var=no
9466: ;;
1.11 paf 9467:
1.25 moko 9468: *nto* | *qnx*)
9469: ;;
1.11 paf 9470:
1.25 moko 9471: openbsd*)
9472: if test -f /usr/libexec/ld.so; then
9473: hardcode_direct=yes
9474: hardcode_shlibpath_var=no
9475: hardcode_direct_absolute=yes
9476: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9477: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9478: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9479: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9480: export_dynamic_flag_spec='${wl}-E'
9481: else
9482: case $host_os in
9483: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9484: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9485: hardcode_libdir_flag_spec='-R$libdir'
9486: ;;
9487: *)
9488: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9489: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9490: ;;
9491: esac
9492: fi
9493: else
9494: ld_shlibs=no
9495: fi
9496: ;;
9497:
9498: os2*)
9499: hardcode_libdir_flag_spec='-L$libdir'
9500: hardcode_minus_L=yes
9501: allow_undefined_flag=unsupported
9502: 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'
9503: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9504: ;;
9505:
9506: osf3*)
9507: if test "$GCC" = yes; then
9508: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9509: 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'
9510: else
9511: allow_undefined_flag=' -expect_unresolved \*'
9512: 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'
9513: fi
9514: archive_cmds_need_lc='no'
9515: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9516: hardcode_libdir_separator=:
9517: ;;
9518:
9519: osf4* | osf5*) # as osf3* with the addition of -msym flag
9520: if test "$GCC" = yes; then
9521: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9522: 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'
9523: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524: else
9525: allow_undefined_flag=' -expect_unresolved \*'
9526: 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'
9527: 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~
9528: $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'
9529:
9530: # Both c and cxx compiler support -rpath directly
9531: hardcode_libdir_flag_spec='-rpath $libdir'
9532: fi
9533: archive_cmds_need_lc='no'
9534: hardcode_libdir_separator=:
9535: ;;
9536:
9537: solaris*)
9538: no_undefined_flag=' -z defs'
9539: if test "$GCC" = yes; then
9540: wlarc='${wl}'
9541: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9543: $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'
9544: else
9545: case `$CC -V 2>&1` in
9546: *"Compilers 5.0"*)
9547: wlarc=''
9548: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9550: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9551: ;;
9552: *)
9553: wlarc='${wl}'
9554: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9555: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9556: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9557: ;;
9558: esac
9559: fi
9560: hardcode_libdir_flag_spec='-R$libdir'
9561: hardcode_shlibpath_var=no
9562: case $host_os in
9563: solaris2.[0-5] | solaris2.[0-5].*) ;;
9564: *)
9565: # The compiler driver will combine and reorder linker options,
9566: # but understands `-z linker_flag'. GCC discards it without `$wl',
9567: # but is careful enough not to reorder.
9568: # Supported since Solaris 2.6 (maybe 2.5.1?)
9569: if test "$GCC" = yes; then
9570: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9571: else
9572: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9573: fi
9574: ;;
9575: esac
9576: link_all_deplibs=yes
9577: ;;
9578:
9579: sunos4*)
9580: if test "x$host_vendor" = xsequent; then
9581: # Use $CC to link under sequent, because it throws in some extra .o
9582: # files that make .init and .fini sections work.
9583: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9584: else
9585: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9586: fi
9587: hardcode_libdir_flag_spec='-L$libdir'
9588: hardcode_direct=yes
9589: hardcode_minus_L=yes
9590: hardcode_shlibpath_var=no
9591: ;;
9592:
9593: sysv4)
9594: case $host_vendor in
9595: sni)
9596: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597: hardcode_direct=yes # is this really true???
9598: ;;
9599: siemens)
9600: ## LD is ld it makes a PLAMLIB
9601: ## CC just makes a GrossModule.
9602: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9603: reload_cmds='$CC -r -o $output$reload_objs'
9604: hardcode_direct=no
9605: ;;
9606: motorola)
9607: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9609: ;;
9610: esac
9611: runpath_var='LD_RUN_PATH'
9612: hardcode_shlibpath_var=no
9613: ;;
9614:
9615: sysv4.3*)
9616: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617: hardcode_shlibpath_var=no
9618: export_dynamic_flag_spec='-Bexport'
9619: ;;
9620:
9621: sysv4*MP*)
9622: if test -d /usr/nec; then
9623: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624: hardcode_shlibpath_var=no
9625: runpath_var=LD_RUN_PATH
9626: hardcode_runpath_var=yes
9627: ld_shlibs=yes
9628: fi
9629: ;;
9630:
9631: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9632: no_undefined_flag='${wl}-z,text'
9633: archive_cmds_need_lc=no
9634: hardcode_shlibpath_var=no
9635: runpath_var='LD_RUN_PATH'
9636:
9637: if test "$GCC" = yes; then
9638: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9640: else
9641: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9642: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643: fi
9644: ;;
9645:
9646: sysv5* | sco3.2v5* | sco5v6*)
9647: # Note: We can NOT use -z defs as we might desire, because we do not
9648: # link with -lc, and that would cause any symbols used from libc to
9649: # always be unresolved, which means just about no library would
9650: # ever link correctly. If we're not using GNU ld we use -z text
9651: # though, which does catch some bad symbols but isn't as heavy-handed
9652: # as -z defs.
9653: no_undefined_flag='${wl}-z,text'
9654: allow_undefined_flag='${wl}-z,nodefs'
9655: archive_cmds_need_lc=no
9656: hardcode_shlibpath_var=no
9657: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9658: hardcode_libdir_separator=':'
9659: link_all_deplibs=yes
9660: export_dynamic_flag_spec='${wl}-Bexport'
9661: runpath_var='LD_RUN_PATH'
9662:
9663: if test "$GCC" = yes; then
9664: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666: else
9667: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669: fi
9670: ;;
9671:
9672: uts4*)
9673: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674: hardcode_libdir_flag_spec='-L$libdir'
9675: hardcode_shlibpath_var=no
9676: ;;
9677:
9678: *)
9679: ld_shlibs=no
9680: ;;
9681: esac
9682:
9683: if test x$host_vendor = xsni; then
9684: case $host in
9685: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9686: export_dynamic_flag_spec='${wl}-Blargedynsym'
9687: ;;
9688: esac
9689: fi
9690: fi
9691:
9692: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9693: echo "${ECHO_T}$ld_shlibs" >&6
9694: test "$ld_shlibs" = no && can_build_shared=no
9695:
9696: with_gnu_ld=$with_gnu_ld
9697:
9698:
9699:
9700:
9701:
9702:
9703:
9704:
9705:
9706:
9707:
9708:
9709:
9710:
9711:
9712: #
9713: # Do we need to explicitly link libc?
9714: #
9715: case "x$archive_cmds_need_lc" in
9716: x|xyes)
9717: # Assume -lc should be added
9718: archive_cmds_need_lc=yes
9719:
9720: if test "$enable_shared" = yes && test "$GCC" = yes; then
9721: case $archive_cmds in
9722: *'~'*)
9723: # FIXME: we may have to deal with multi-command sequences.
9724: ;;
9725: '$CC '*)
9726: # Test whether the compiler implicitly links with -lc since on some
9727: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9728: # to ld, don't add -lc before -lgcc.
9729: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9730: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9731: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9732: echo $ECHO_N "(cached) $ECHO_C" >&6
9733: else
9734: $RM conftest*
9735: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9736:
9737: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738: (eval $ac_compile) 2>&5
9739: ac_status=$?
9740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741: (exit $ac_status); } 2>conftest.err; then
9742: soname=conftest
9743: lib=conftest
9744: libobjs=conftest.$ac_objext
9745: deplibs=
9746: wl=$lt_prog_compiler_wl
9747: pic_flag=$lt_prog_compiler_pic
9748: compiler_flags=-v
9749: linker_flags=-v
9750: verstring=
9751: output_objdir=.
9752: libname=conftest
9753: lt_save_allow_undefined_flag=$allow_undefined_flag
9754: allow_undefined_flag=
9755: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9756: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9757: ac_status=$?
9758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759: (exit $ac_status); }
9760: then
9761: lt_cv_archive_cmds_need_lc=no
9762: else
9763: lt_cv_archive_cmds_need_lc=yes
9764: fi
9765: allow_undefined_flag=$lt_save_allow_undefined_flag
9766: else
9767: cat conftest.err 1>&5
9768: fi
9769: $RM conftest*
9770:
9771: fi
9772: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9773: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9774: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9775: ;;
9776: esac
9777: fi
9778: ;;
9779: esac
1.11 paf 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:
1.1 parser 9820:
1.11 paf 9821:
9822:
9823:
9824:
9825:
1.1 parser 9826:
1.11 paf 9827:
9828:
9829:
9830:
1.1 parser 9831:
1.11 paf 9832:
9833:
9834:
9835:
1.1 parser 9836:
9837:
9838:
9839:
9840:
9841:
9842:
1.11 paf 9843:
9844:
9845:
1.18 paf 9846:
1.11 paf 9847:
9848:
1.1 parser 9849:
1.11 paf 9850:
9851:
9852:
1.1 parser 9853:
9854:
9855:
9856:
1.11 paf 9857:
9858:
1.1 parser 9859:
1.11 paf 9860:
9861:
9862:
1.25 moko 9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901:
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
9921:
9922:
9923:
9924:
9925:
9926:
9927:
9928:
9929:
9930:
9931:
9932: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9933: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9934:
9935: if test "$GCC" = yes; then
9936: case $host_os in
9937: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9938: *) lt_awk_arg="/^libraries:/" ;;
9939: esac
9940: case $host_os in
9941: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9942: *) lt_sed_strip_eq="s,=/,/,g" ;;
9943: esac
9944: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9945: case $lt_search_path_spec in
9946: *\;*)
9947: # if the path contains ";" then we assume it to be the separator
9948: # otherwise default to the standard path separator (i.e. ":") - it is
9949: # assumed that no part of a normal pathname contains ";" but that should
9950: # okay in the real world where ";" in dirpaths is itself problematic.
9951: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9952: ;;
9953: *)
9954: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9955: ;;
9956: esac
9957: # Ok, now we have the path, separated by spaces, we can step through it
9958: # and add multilib dir if necessary.
9959: lt_tmp_lt_search_path_spec=
9960: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9961: for lt_sys_path in $lt_search_path_spec; do
9962: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9963: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9964: else
9965: test -d "$lt_sys_path" && \
9966: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9967: fi
9968: done
9969: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9970: BEGIN {RS=" "; FS="/|\n";} {
9971: lt_foo="";
9972: lt_count=0;
9973: for (lt_i = NF; lt_i > 0; lt_i--) {
9974: if ($lt_i != "" && $lt_i != ".") {
9975: if ($lt_i == "..") {
9976: lt_count++;
9977: } else {
9978: if (lt_count == 0) {
9979: lt_foo="/" $lt_i lt_foo;
9980: } else {
9981: lt_count--;
9982: }
9983: }
9984: }
9985: }
9986: if (lt_foo != "") { lt_freq[lt_foo]++; }
9987: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9988: }'`
9989: # AWK program above erroneously prepends '/' to C:/dos/paths
9990: # for these hosts.
9991: case $host_os in
9992: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9993: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9994: esac
9995: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9996: else
9997: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9998: fi
9999: library_names_spec=
10000: libname_spec='lib$name'
10001: soname_spec=
10002: shrext_cmds=".so"
10003: postinstall_cmds=
10004: postuninstall_cmds=
10005: finish_cmds=
10006: finish_eval=
10007: shlibpath_var=
10008: shlibpath_overrides_runpath=unknown
10009: version_type=none
10010: dynamic_linker="$host_os ld.so"
10011: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10012: need_lib_prefix=unknown
10013: hardcode_into_libs=no
10014:
10015: # when you set need_version to no, make sure it does not cause -set_version
10016: # flags to be left without arguments
10017: need_version=unknown
10018:
10019: case $host_os in
10020: aix3*)
10021: version_type=linux # correct to gnu/linux during the next big refactor
10022: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10023: shlibpath_var=LIBPATH
10024:
10025: # AIX 3 has no versioning support, so we append a major version to the name.
10026: soname_spec='${libname}${release}${shared_ext}$major'
10027: ;;
10028:
10029: aix[4-9]*)
10030: version_type=linux # correct to gnu/linux during the next big refactor
10031: need_lib_prefix=no
10032: need_version=no
10033: hardcode_into_libs=yes
10034: if test "$host_cpu" = ia64; then
10035: # AIX 5 supports IA64
10036: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10037: shlibpath_var=LD_LIBRARY_PATH
10038: else
10039: # With GCC up to 2.95.x, collect2 would create an import file
10040: # for dependence libraries. The import file would start with
10041: # the line `#! .'. This would cause the generated library to
10042: # depend on `.', always an invalid library. This was fixed in
10043: # development snapshots of GCC prior to 3.0.
10044: case $host_os in
10045: aix4 | aix4.[01] | aix4.[01].*)
10046: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10047: echo ' yes '
10048: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10049: :
10050: else
10051: can_build_shared=no
10052: fi
10053: ;;
10054: esac
10055: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10056: # soname into executable. Probably we can add versioning support to
10057: # collect2, so additional links can be useful in future.
10058: if test "$aix_use_runtimelinking" = yes; then
10059: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10060: # instead of lib<name>.a to let people know that these are not
10061: # typical AIX shared libraries.
10062: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063: else
10064: # We preserve .a as extension for shared libraries through AIX4.2
10065: # and later when we are not doing run time linking.
10066: library_names_spec='${libname}${release}.a $libname.a'
10067: soname_spec='${libname}${release}${shared_ext}$major'
10068: fi
10069: shlibpath_var=LIBPATH
10070: fi
10071: ;;
10072:
10073: amigaos*)
10074: case $host_cpu in
10075: powerpc)
10076: # Since July 2007 AmigaOS4 officially supports .so libraries.
10077: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10078: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079: ;;
10080: m68k)
10081: library_names_spec='$libname.ixlibrary $libname.a'
10082: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10083: 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'
10084: ;;
10085: esac
10086: ;;
10087:
10088: beos*)
10089: library_names_spec='${libname}${shared_ext}'
10090: dynamic_linker="$host_os ld.so"
10091: shlibpath_var=LIBRARY_PATH
10092: ;;
10093:
10094: bsdi[45]*)
10095: version_type=linux # correct to gnu/linux during the next big refactor
10096: need_version=no
10097: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098: soname_spec='${libname}${release}${shared_ext}$major'
10099: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10100: shlibpath_var=LD_LIBRARY_PATH
10101: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10102: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10103: # the default ld.so.conf also contains /usr/contrib/lib and
10104: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10105: # libtool to hard-code these into programs
10106: ;;
10107:
10108: cygwin* | mingw* | pw32* | cegcc*)
10109: version_type=windows
10110: shrext_cmds=".dll"
10111: need_version=no
10112: need_lib_prefix=no
10113:
10114: case $GCC,$cc_basename in
10115: yes,*)
10116: # gcc
10117: library_names_spec='$libname.dll.a'
10118: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10119: postinstall_cmds='base_file=`basename \${file}`~
10120: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10121: dldir=$destdir/`dirname \$dlpath`~
10122: test -d \$dldir || mkdir -p \$dldir~
10123: $install_prog $dir/$dlname \$dldir/$dlname~
10124: chmod a+x \$dldir/$dlname~
10125: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10126: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10127: fi'
10128: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10129: dlpath=$dir/\$dldll~
10130: $RM \$dlpath'
10131: shlibpath_overrides_runpath=yes
10132:
10133: case $host_os in
10134: cygwin*)
10135: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10136: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10137:
10138: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10139: ;;
10140: mingw* | cegcc*)
10141: # MinGW DLLs use traditional 'lib' prefix
10142: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143: ;;
10144: pw32*)
10145: # pw32 DLLs use 'pw' prefix rather than 'lib'
10146: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10147: ;;
10148: esac
10149: dynamic_linker='Win32 ld.exe'
10150: ;;
10151:
10152: *,cl*)
10153: # Native MSVC
10154: libname_spec='$name'
10155: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10156: library_names_spec='${libname}.dll.lib'
10157:
10158: case $build_os in
10159: mingw*)
10160: sys_lib_search_path_spec=
10161: lt_save_ifs=$IFS
10162: IFS=';'
10163: for lt_path in $LIB
10164: do
10165: IFS=$lt_save_ifs
10166: # Let DOS variable expansion print the short 8.3 style file name.
10167: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10168: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10169: done
10170: IFS=$lt_save_ifs
10171: # Convert to MSYS style.
10172: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10173: ;;
10174: cygwin*)
10175: # Convert to unix form, then to dos form, then back to unix form
10176: # but this time dos style (no spaces!) so that the unix form looks
10177: # like /cygdrive/c/PROGRA~1:/cygdr...
10178: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10179: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10180: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10181: ;;
10182: *)
10183: sys_lib_search_path_spec="$LIB"
10184: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10185: # It is most probably a Windows format PATH.
10186: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10187: else
10188: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10189: fi
10190: # FIXME: find the short name or the path components, as spaces are
10191: # common. (e.g. "Program Files" -> "PROGRA~1")
10192: ;;
10193: esac
10194:
10195: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10196: postinstall_cmds='base_file=`basename \${file}`~
10197: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10198: dldir=$destdir/`dirname \$dlpath`~
10199: test -d \$dldir || mkdir -p \$dldir~
10200: $install_prog $dir/$dlname \$dldir/$dlname'
10201: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10202: dlpath=$dir/\$dldll~
10203: $RM \$dlpath'
10204: shlibpath_overrides_runpath=yes
10205: dynamic_linker='Win32 link.exe'
10206: ;;
10207:
10208: *)
10209: # Assume MSVC wrapper
10210: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10211: dynamic_linker='Win32 ld.exe'
10212: ;;
10213: esac
10214: # FIXME: first we should search . and the directory the executable is in
10215: shlibpath_var=PATH
10216: ;;
10217:
10218: darwin* | rhapsody*)
10219: dynamic_linker="$host_os dyld"
10220: version_type=darwin
10221: need_lib_prefix=no
10222: need_version=no
10223: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10224: soname_spec='${libname}${release}${major}$shared_ext'
10225: shlibpath_overrides_runpath=yes
10226: shlibpath_var=DYLD_LIBRARY_PATH
10227: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10228:
10229: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10230: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10231: ;;
10232:
10233: dgux*)
10234: version_type=linux # correct to gnu/linux during the next big refactor
10235: need_lib_prefix=no
10236: need_version=no
10237: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10238: soname_spec='${libname}${release}${shared_ext}$major'
10239: shlibpath_var=LD_LIBRARY_PATH
10240: ;;
10241:
10242: freebsd* | dragonfly*)
10243: # DragonFly does not have aout. When/if they implement a new
10244: # versioning mechanism, adjust this.
10245: if test -x /usr/bin/objformat; then
10246: objformat=`/usr/bin/objformat`
1.11 paf 10247: else
1.25 moko 10248: case $host_os in
10249: freebsd[23].*) objformat=aout ;;
10250: *) objformat=elf ;;
10251: esac
1.11 paf 10252: fi
1.25 moko 10253: version_type=freebsd-$objformat
10254: case $version_type in
10255: freebsd-elf*)
10256: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10257: need_version=no
10258: need_lib_prefix=no
10259: ;;
10260: freebsd-*)
10261: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10262: need_version=yes
10263: ;;
10264: esac
10265: shlibpath_var=LD_LIBRARY_PATH
10266: case $host_os in
10267: freebsd2.*)
10268: shlibpath_overrides_runpath=yes
10269: ;;
10270: freebsd3.[01]* | freebsdelf3.[01]*)
10271: shlibpath_overrides_runpath=yes
10272: hardcode_into_libs=yes
10273: ;;
10274: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10275: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10276: shlibpath_overrides_runpath=no
10277: hardcode_into_libs=yes
10278: ;;
10279: *) # from 4.6 on, and DragonFly
10280: shlibpath_overrides_runpath=yes
10281: hardcode_into_libs=yes
10282: ;;
10283: esac
10284: ;;
10285:
10286: gnu*)
10287: version_type=linux # correct to gnu/linux during the next big refactor
10288: need_lib_prefix=no
10289: need_version=no
10290: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10291: soname_spec='${libname}${release}${shared_ext}$major'
10292: shlibpath_var=LD_LIBRARY_PATH
10293: shlibpath_overrides_runpath=no
10294: hardcode_into_libs=yes
10295: ;;
10296:
10297: haiku*)
10298: version_type=linux # correct to gnu/linux during the next big refactor
10299: need_lib_prefix=no
10300: need_version=no
10301: dynamic_linker="$host_os runtime_loader"
10302: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10303: soname_spec='${libname}${release}${shared_ext}$major'
10304: shlibpath_var=LIBRARY_PATH
10305: shlibpath_overrides_runpath=yes
10306: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10307: hardcode_into_libs=yes
10308: ;;
10309:
10310: hpux9* | hpux10* | hpux11*)
10311: # Give a soname corresponding to the major version so that dld.sl refuses to
10312: # link against other versions.
10313: version_type=sunos
10314: need_lib_prefix=no
10315: need_version=no
10316: case $host_cpu in
10317: ia64*)
10318: shrext_cmds='.so'
10319: hardcode_into_libs=yes
10320: dynamic_linker="$host_os dld.so"
10321: shlibpath_var=LD_LIBRARY_PATH
10322: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10323: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324: soname_spec='${libname}${release}${shared_ext}$major'
10325: if test "X$HPUX_IA64_MODE" = X32; then
10326: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.11 paf 10327: else
1.25 moko 10328: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10329: fi
10330: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331: ;;
10332: hppa*64*)
10333: shrext_cmds='.sl'
10334: hardcode_into_libs=yes
10335: dynamic_linker="$host_os dld.sl"
10336: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10337: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10341: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10342: ;;
10343: *)
10344: shrext_cmds='.sl'
10345: dynamic_linker="$host_os dld.sl"
10346: shlibpath_var=SHLIB_PATH
10347: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10348: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349: soname_spec='${libname}${release}${shared_ext}$major'
10350: ;;
10351: esac
10352: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10353: postinstall_cmds='chmod 555 $lib'
10354: # or fails outright, so override atomically:
10355: install_override_mode=555
10356: ;;
10357:
10358: interix[3-9]*)
10359: version_type=linux # correct to gnu/linux during the next big refactor
10360: need_lib_prefix=no
10361: need_version=no
10362: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10363: soname_spec='${libname}${release}${shared_ext}$major'
10364: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10365: shlibpath_var=LD_LIBRARY_PATH
10366: shlibpath_overrides_runpath=no
10367: hardcode_into_libs=yes
10368: ;;
10369:
10370: irix5* | irix6* | nonstopux*)
10371: case $host_os in
10372: nonstopux*) version_type=nonstopux ;;
10373: *)
10374: if test "$lt_cv_prog_gnu_ld" = yes; then
10375: version_type=linux # correct to gnu/linux during the next big refactor
10376: else
10377: version_type=irix
10378: fi ;;
10379: esac
10380: need_lib_prefix=no
10381: need_version=no
10382: soname_spec='${libname}${release}${shared_ext}$major'
10383: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10384: case $host_os in
10385: irix5* | nonstopux*)
10386: libsuff= shlibsuff=
10387: ;;
10388: *)
10389: case $LD in # libtool.m4 will add one of these switches to LD
10390: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10391: libsuff= shlibsuff= libmagic=32-bit;;
10392: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10393: libsuff=32 shlibsuff=N32 libmagic=N32;;
10394: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10395: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10396: *) libsuff= shlibsuff= libmagic=never-match;;
10397: esac
10398: ;;
10399: esac
10400: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10401: shlibpath_overrides_runpath=no
10402: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10403: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10404: hardcode_into_libs=yes
10405: ;;
10406:
10407: # No shared lib support for Linux oldld, aout, or coff.
10408: linux*oldld* | linux*aout* | linux*coff*)
10409: dynamic_linker=no
10410: ;;
10411:
10412: # This must be glibc/ELF.
10413: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10414: version_type=linux # correct to gnu/linux during the next big refactor
10415: need_lib_prefix=no
10416: need_version=no
10417: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418: soname_spec='${libname}${release}${shared_ext}$major'
10419: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10420: shlibpath_var=LD_LIBRARY_PATH
10421: shlibpath_overrides_runpath=no
10422:
10423: # Some binutils ld are patched to set DT_RUNPATH
10424: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10425: echo $ECHO_N "(cached) $ECHO_C" >&6
10426: else
10427: lt_cv_shlibpath_overrides_runpath=no
10428: save_LDFLAGS=$LDFLAGS
10429: save_libdir=$libdir
10430: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10431: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10432: cat >conftest.$ac_ext <<_ACEOF
10433: /* confdefs.h. */
10434: _ACEOF
10435: cat confdefs.h >>conftest.$ac_ext
10436: cat >>conftest.$ac_ext <<_ACEOF
10437: /* end confdefs.h. */
10438:
10439: int
10440: main ()
10441: {
10442:
10443: ;
10444: return 0;
10445: }
10446: _ACEOF
10447: rm -f conftest.$ac_objext conftest$ac_exeext
10448: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449: (eval $ac_link) 2>conftest.er1
10450: ac_status=$?
10451: grep -v '^ *+' conftest.er1 >conftest.err
10452: rm -f conftest.er1
10453: cat conftest.err >&5
10454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455: (exit $ac_status); } &&
10456: { ac_try='test -z "$ac_c_werror_flag"
10457: || test ! -s conftest.err'
10458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459: (eval $ac_try) 2>&5
10460: ac_status=$?
10461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462: (exit $ac_status); }; } &&
10463: { ac_try='test -s conftest$ac_exeext'
10464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465: (eval $ac_try) 2>&5
10466: ac_status=$?
10467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468: (exit $ac_status); }; }; then
10469: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10470: lt_cv_shlibpath_overrides_runpath=yes
10471: fi
10472:
10473: else
10474: echo "$as_me: failed program was:" >&5
10475: sed 's/^/| /' conftest.$ac_ext >&5
10476:
10477: fi
10478: rm -f conftest.err conftest.$ac_objext \
10479: conftest$ac_exeext conftest.$ac_ext
10480: LDFLAGS=$save_LDFLAGS
10481: libdir=$save_libdir
10482:
10483: fi
10484:
10485: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10486:
10487: # This implies no fast_install, which is unacceptable.
10488: # Some rework will be needed to allow for fast_install
10489: # before this can be enabled.
10490: hardcode_into_libs=yes
10491:
10492: # Append ld.so.conf contents to the search path
10493: if test -f /etc/ld.so.conf; then
10494: 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' ' '`
10495: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10496: fi
10497:
10498: # We used to test for /lib/ld.so.1 and disable shared libraries on
10499: # powerpc, because MkLinux only supported shared libraries with the
10500: # GNU dynamic linker. Since this was broken with cross compilers,
10501: # most powerpc-linux boxes support dynamic linking these days and
10502: # people can always --disable-shared, the test was removed, and we
10503: # assume the GNU/Linux dynamic linker is in use.
10504: dynamic_linker='GNU/Linux ld.so'
10505: ;;
10506:
10507: netbsd*)
10508: version_type=sunos
10509: need_lib_prefix=no
10510: need_version=no
10511: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10512: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10513: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10514: dynamic_linker='NetBSD (a.out) ld.so'
10515: else
10516: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10517: soname_spec='${libname}${release}${shared_ext}$major'
10518: dynamic_linker='NetBSD ld.elf_so'
10519: fi
10520: shlibpath_var=LD_LIBRARY_PATH
10521: shlibpath_overrides_runpath=yes
10522: hardcode_into_libs=yes
10523: ;;
10524:
10525: newsos6)
10526: version_type=linux # correct to gnu/linux during the next big refactor
10527: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528: shlibpath_var=LD_LIBRARY_PATH
10529: shlibpath_overrides_runpath=yes
10530: ;;
10531:
10532: *nto* | *qnx*)
10533: version_type=qnx
10534: need_lib_prefix=no
10535: need_version=no
10536: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537: soname_spec='${libname}${release}${shared_ext}$major'
10538: shlibpath_var=LD_LIBRARY_PATH
10539: shlibpath_overrides_runpath=no
10540: hardcode_into_libs=yes
10541: dynamic_linker='ldqnx.so'
10542: ;;
10543:
10544: openbsd*)
10545: version_type=sunos
10546: sys_lib_dlsearch_path_spec="/usr/lib"
10547: need_lib_prefix=no
10548: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10549: case $host_os in
10550: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10551: *) need_version=no ;;
10552: esac
10553: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10554: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555: shlibpath_var=LD_LIBRARY_PATH
10556: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10557: case $host_os in
10558: openbsd2.[89] | openbsd2.[89].*)
10559: shlibpath_overrides_runpath=no
10560: ;;
10561: *)
10562: shlibpath_overrides_runpath=yes
10563: ;;
10564: esac
10565: else
10566: shlibpath_overrides_runpath=yes
10567: fi
10568: ;;
10569:
10570: os2*)
10571: libname_spec='$name'
10572: shrext_cmds=".dll"
10573: need_lib_prefix=no
10574: library_names_spec='$libname${shared_ext} $libname.a'
10575: dynamic_linker='OS/2 ld.exe'
10576: shlibpath_var=LIBPATH
10577: ;;
10578:
10579: osf3* | osf4* | osf5*)
10580: version_type=osf
10581: need_lib_prefix=no
10582: need_version=no
10583: soname_spec='${libname}${release}${shared_ext}$major'
10584: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585: shlibpath_var=LD_LIBRARY_PATH
10586: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10587: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10588: ;;
10589:
10590: rdos*)
10591: dynamic_linker=no
10592: ;;
10593:
10594: solaris*)
10595: version_type=linux # correct to gnu/linux during the next big refactor
10596: need_lib_prefix=no
10597: need_version=no
10598: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599: soname_spec='${libname}${release}${shared_ext}$major'
10600: shlibpath_var=LD_LIBRARY_PATH
10601: shlibpath_overrides_runpath=yes
10602: hardcode_into_libs=yes
10603: # ldd complains unless libraries are executable
10604: postinstall_cmds='chmod +x $lib'
10605: ;;
10606:
10607: sunos4*)
10608: version_type=sunos
10609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10611: shlibpath_var=LD_LIBRARY_PATH
10612: shlibpath_overrides_runpath=yes
10613: if test "$with_gnu_ld" = yes; then
10614: need_lib_prefix=no
10615: fi
10616: need_version=yes
10617: ;;
10618:
10619: sysv4 | sysv4.3*)
10620: version_type=linux # correct to gnu/linux during the next big refactor
10621: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622: soname_spec='${libname}${release}${shared_ext}$major'
10623: shlibpath_var=LD_LIBRARY_PATH
10624: case $host_vendor in
10625: sni)
10626: shlibpath_overrides_runpath=no
10627: need_lib_prefix=no
10628: runpath_var=LD_RUN_PATH
10629: ;;
10630: siemens)
10631: need_lib_prefix=no
10632: ;;
10633: motorola)
10634: need_lib_prefix=no
10635: need_version=no
10636: shlibpath_overrides_runpath=no
10637: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10638: ;;
10639: esac
10640: ;;
10641:
10642: sysv4*MP*)
10643: if test -d /usr/nec ;then
10644: version_type=linux # correct to gnu/linux during the next big refactor
10645: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10646: soname_spec='$libname${shared_ext}.$major'
10647: shlibpath_var=LD_LIBRARY_PATH
10648: fi
10649: ;;
10650:
10651: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10652: version_type=freebsd-elf
10653: need_lib_prefix=no
10654: need_version=no
10655: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10656: soname_spec='${libname}${release}${shared_ext}$major'
10657: shlibpath_var=LD_LIBRARY_PATH
10658: shlibpath_overrides_runpath=yes
10659: hardcode_into_libs=yes
10660: if test "$with_gnu_ld" = yes; then
10661: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10662: else
10663: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10664: case $host_os in
10665: sco3.2v5*)
10666: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10667: ;;
10668: esac
10669: fi
10670: sys_lib_dlsearch_path_spec='/usr/lib'
10671: ;;
10672:
10673: tpf*)
10674: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10675: version_type=linux # correct to gnu/linux during the next big refactor
10676: need_lib_prefix=no
10677: need_version=no
10678: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679: shlibpath_var=LD_LIBRARY_PATH
10680: shlibpath_overrides_runpath=no
10681: hardcode_into_libs=yes
10682: ;;
10683:
10684: uts4*)
10685: version_type=linux # correct to gnu/linux during the next big refactor
10686: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687: soname_spec='${libname}${release}${shared_ext}$major'
10688: shlibpath_var=LD_LIBRARY_PATH
10689: ;;
10690:
10691: *)
10692: dynamic_linker=no
10693: ;;
10694: esac
10695: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10696: echo "${ECHO_T}$dynamic_linker" >&6
10697: test "$dynamic_linker" = no && can_build_shared=no
10698:
10699: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10700: if test "$GCC" = yes; then
10701: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10702: fi
10703:
10704: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10705: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10706: fi
10707: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10708: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10709: fi
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:
10792:
10793:
10794:
10795:
10796:
10797:
10798:
10799:
10800:
10801:
10802: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10803: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10804: hardcode_action=
10805: if test -n "$hardcode_libdir_flag_spec" ||
10806: test -n "$runpath_var" ||
10807: test "X$hardcode_automatic" = "Xyes" ; then
10808:
10809: # We can hardcode non-existent directories.
10810: if test "$hardcode_direct" != no &&
10811: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10812: # have to relink, otherwise we might link with an installed library
10813: # when we should be linking with a yet-to-be-installed one
10814: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10815: test "$hardcode_minus_L" != no; then
10816: # Linking always hardcodes the temporary library directory.
10817: hardcode_action=relink
10818: else
10819: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10820: hardcode_action=immediate
10821: fi
10822: else
10823: # We cannot hardcode anything, or else we can only hardcode existing
10824: # directories.
10825: hardcode_action=unsupported
10826: fi
10827: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10828: echo "${ECHO_T}$hardcode_action" >&6
10829:
10830: if test "$hardcode_action" = relink ||
10831: test "$inherit_rpath" = yes; then
10832: # Fast installation is not supported
10833: enable_fast_install=no
10834: elif test "$shlibpath_overrides_runpath" = yes ||
10835: test "$enable_shared" = no; then
10836: # Fast installation is not necessary
10837: enable_fast_install=needless
10838: fi
10839:
10840:
10841:
10842:
10843:
10844:
10845: if test "x$enable_dlopen" != xyes; then
10846: enable_dlopen=unknown
10847: enable_dlopen_self=unknown
10848: enable_dlopen_self_static=unknown
10849: else
10850: lt_cv_dlopen=no
10851: lt_cv_dlopen_libs=
10852:
10853: case $host_os in
10854: beos*)
10855: lt_cv_dlopen="load_add_on"
10856: lt_cv_dlopen_libs=
10857: lt_cv_dlopen_self=yes
10858: ;;
10859:
10860: mingw* | pw32* | cegcc*)
10861: lt_cv_dlopen="LoadLibrary"
10862: lt_cv_dlopen_libs=
10863: ;;
10864:
10865: cygwin*)
10866: lt_cv_dlopen="dlopen"
10867: lt_cv_dlopen_libs=
10868: ;;
10869:
10870: darwin*)
10871: # if libdl is installed we need to link against it
10872: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10873: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10874: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10875: echo $ECHO_N "(cached) $ECHO_C" >&6
10876: else
10877: ac_check_lib_save_LIBS=$LIBS
10878: LIBS="-ldl $LIBS"
10879: cat >conftest.$ac_ext <<_ACEOF
10880: /* confdefs.h. */
10881: _ACEOF
10882: cat confdefs.h >>conftest.$ac_ext
10883: cat >>conftest.$ac_ext <<_ACEOF
10884: /* end confdefs.h. */
10885:
10886: /* Override any gcc2 internal prototype to avoid an error. */
10887: #ifdef __cplusplus
10888: extern "C"
10889: #endif
10890: /* We use char because int might match the return type of a gcc2
10891: builtin and then its argument prototype would still apply. */
10892: char dlopen ();
10893: int
10894: main ()
10895: {
10896: dlopen ();
10897: ;
10898: return 0;
10899: }
10900: _ACEOF
10901: rm -f conftest.$ac_objext conftest$ac_exeext
10902: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903: (eval $ac_link) 2>conftest.er1
10904: ac_status=$?
10905: grep -v '^ *+' conftest.er1 >conftest.err
10906: rm -f conftest.er1
10907: cat conftest.err >&5
10908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909: (exit $ac_status); } &&
10910: { ac_try='test -z "$ac_c_werror_flag"
10911: || test ! -s conftest.err'
10912: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913: (eval $ac_try) 2>&5
10914: ac_status=$?
10915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916: (exit $ac_status); }; } &&
10917: { ac_try='test -s conftest$ac_exeext'
10918: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919: (eval $ac_try) 2>&5
10920: ac_status=$?
10921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922: (exit $ac_status); }; }; then
10923: ac_cv_lib_dl_dlopen=yes
10924: else
10925: echo "$as_me: failed program was:" >&5
10926: sed 's/^/| /' conftest.$ac_ext >&5
10927:
10928: ac_cv_lib_dl_dlopen=no
10929: fi
10930: rm -f conftest.err conftest.$ac_objext \
10931: conftest$ac_exeext conftest.$ac_ext
10932: LIBS=$ac_check_lib_save_LIBS
10933: fi
10934: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10935: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10936: if test $ac_cv_lib_dl_dlopen = yes; then
10937: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10938: else
10939:
10940: lt_cv_dlopen="dyld"
10941: lt_cv_dlopen_libs=
10942: lt_cv_dlopen_self=yes
10943:
10944: fi
10945:
10946: ;;
10947:
10948: *)
10949: echo "$as_me:$LINENO: checking for shl_load" >&5
10950: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10951: if test "${ac_cv_func_shl_load+set}" = set; then
10952: echo $ECHO_N "(cached) $ECHO_C" >&6
10953: else
10954: cat >conftest.$ac_ext <<_ACEOF
10955: /* confdefs.h. */
10956: _ACEOF
10957: cat confdefs.h >>conftest.$ac_ext
10958: cat >>conftest.$ac_ext <<_ACEOF
10959: /* end confdefs.h. */
10960: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10961: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10962: #define shl_load innocuous_shl_load
10963:
10964: /* System header to define __stub macros and hopefully few prototypes,
10965: which can conflict with char shl_load (); below.
10966: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967: <limits.h> exists even on freestanding compilers. */
10968:
10969: #ifdef __STDC__
10970: # include <limits.h>
10971: #else
10972: # include <assert.h>
10973: #endif
10974:
10975: #undef shl_load
10976:
10977: /* Override any gcc2 internal prototype to avoid an error. */
10978: #ifdef __cplusplus
10979: extern "C"
10980: {
10981: #endif
10982: /* We use char because int might match the return type of a gcc2
10983: builtin and then its argument prototype would still apply. */
10984: char shl_load ();
10985: /* The GNU C library defines this for functions which it implements
10986: to always fail with ENOSYS. Some functions are actually named
10987: something starting with __ and the normal name is an alias. */
10988: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10989: choke me
10990: #else
10991: char (*f) () = shl_load;
10992: #endif
10993: #ifdef __cplusplus
10994: }
10995: #endif
10996:
10997: int
10998: main ()
10999: {
11000: return f != shl_load;
11001: ;
11002: return 0;
11003: }
11004: _ACEOF
11005: rm -f conftest.$ac_objext conftest$ac_exeext
11006: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007: (eval $ac_link) 2>conftest.er1
11008: ac_status=$?
11009: grep -v '^ *+' conftest.er1 >conftest.err
11010: rm -f conftest.er1
11011: cat conftest.err >&5
11012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013: (exit $ac_status); } &&
11014: { ac_try='test -z "$ac_c_werror_flag"
11015: || test ! -s conftest.err'
11016: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017: (eval $ac_try) 2>&5
11018: ac_status=$?
11019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020: (exit $ac_status); }; } &&
11021: { ac_try='test -s conftest$ac_exeext'
11022: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023: (eval $ac_try) 2>&5
11024: ac_status=$?
11025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026: (exit $ac_status); }; }; then
11027: ac_cv_func_shl_load=yes
11028: else
11029: echo "$as_me: failed program was:" >&5
11030: sed 's/^/| /' conftest.$ac_ext >&5
11031:
11032: ac_cv_func_shl_load=no
11033: fi
11034: rm -f conftest.err conftest.$ac_objext \
11035: conftest$ac_exeext conftest.$ac_ext
11036: fi
11037: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11038: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11039: if test $ac_cv_func_shl_load = yes; then
11040: lt_cv_dlopen="shl_load"
11041: else
11042: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11043: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11044: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11045: echo $ECHO_N "(cached) $ECHO_C" >&6
11046: else
11047: ac_check_lib_save_LIBS=$LIBS
11048: LIBS="-ldld $LIBS"
11049: cat >conftest.$ac_ext <<_ACEOF
11050: /* confdefs.h. */
11051: _ACEOF
11052: cat confdefs.h >>conftest.$ac_ext
11053: cat >>conftest.$ac_ext <<_ACEOF
11054: /* end confdefs.h. */
11055:
11056: /* Override any gcc2 internal prototype to avoid an error. */
11057: #ifdef __cplusplus
11058: extern "C"
11059: #endif
11060: /* We use char because int might match the return type of a gcc2
11061: builtin and then its argument prototype would still apply. */
11062: char shl_load ();
11063: int
11064: main ()
11065: {
11066: shl_load ();
11067: ;
11068: return 0;
11069: }
11070: _ACEOF
11071: rm -f conftest.$ac_objext conftest$ac_exeext
11072: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073: (eval $ac_link) 2>conftest.er1
11074: ac_status=$?
11075: grep -v '^ *+' conftest.er1 >conftest.err
11076: rm -f conftest.er1
11077: cat conftest.err >&5
11078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079: (exit $ac_status); } &&
11080: { ac_try='test -z "$ac_c_werror_flag"
11081: || test ! -s conftest.err'
11082: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083: (eval $ac_try) 2>&5
11084: ac_status=$?
11085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086: (exit $ac_status); }; } &&
11087: { ac_try='test -s conftest$ac_exeext'
11088: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089: (eval $ac_try) 2>&5
11090: ac_status=$?
11091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092: (exit $ac_status); }; }; then
11093: ac_cv_lib_dld_shl_load=yes
11094: else
11095: echo "$as_me: failed program was:" >&5
11096: sed 's/^/| /' conftest.$ac_ext >&5
11097:
11098: ac_cv_lib_dld_shl_load=no
11099: fi
11100: rm -f conftest.err conftest.$ac_objext \
11101: conftest$ac_exeext conftest.$ac_ext
11102: LIBS=$ac_check_lib_save_LIBS
11103: fi
11104: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11105: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11106: if test $ac_cv_lib_dld_shl_load = yes; then
11107: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11108: else
11109: echo "$as_me:$LINENO: checking for dlopen" >&5
11110: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11111: if test "${ac_cv_func_dlopen+set}" = set; then
11112: echo $ECHO_N "(cached) $ECHO_C" >&6
11113: else
11114: cat >conftest.$ac_ext <<_ACEOF
11115: /* confdefs.h. */
11116: _ACEOF
11117: cat confdefs.h >>conftest.$ac_ext
11118: cat >>conftest.$ac_ext <<_ACEOF
11119: /* end confdefs.h. */
11120: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11121: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11122: #define dlopen innocuous_dlopen
11123:
11124: /* System header to define __stub macros and hopefully few prototypes,
11125: which can conflict with char dlopen (); below.
11126: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11127: <limits.h> exists even on freestanding compilers. */
11128:
11129: #ifdef __STDC__
11130: # include <limits.h>
11131: #else
11132: # include <assert.h>
11133: #endif
11134:
11135: #undef dlopen
11136:
11137: /* Override any gcc2 internal prototype to avoid an error. */
11138: #ifdef __cplusplus
11139: extern "C"
11140: {
11141: #endif
11142: /* We use char because int might match the return type of a gcc2
11143: builtin and then its argument prototype would still apply. */
11144: char dlopen ();
11145: /* The GNU C library defines this for functions which it implements
11146: to always fail with ENOSYS. Some functions are actually named
11147: something starting with __ and the normal name is an alias. */
11148: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11149: choke me
11150: #else
11151: char (*f) () = dlopen;
11152: #endif
11153: #ifdef __cplusplus
11154: }
11155: #endif
11156:
11157: int
11158: main ()
11159: {
11160: return f != dlopen;
11161: ;
11162: return 0;
11163: }
11164: _ACEOF
11165: rm -f conftest.$ac_objext conftest$ac_exeext
11166: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167: (eval $ac_link) 2>conftest.er1
11168: ac_status=$?
11169: grep -v '^ *+' conftest.er1 >conftest.err
11170: rm -f conftest.er1
11171: cat conftest.err >&5
11172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173: (exit $ac_status); } &&
11174: { ac_try='test -z "$ac_c_werror_flag"
11175: || test ! -s conftest.err'
11176: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177: (eval $ac_try) 2>&5
11178: ac_status=$?
11179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180: (exit $ac_status); }; } &&
11181: { ac_try='test -s conftest$ac_exeext'
11182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183: (eval $ac_try) 2>&5
11184: ac_status=$?
11185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186: (exit $ac_status); }; }; then
11187: ac_cv_func_dlopen=yes
11188: else
11189: echo "$as_me: failed program was:" >&5
11190: sed 's/^/| /' conftest.$ac_ext >&5
11191:
11192: ac_cv_func_dlopen=no
11193: fi
11194: rm -f conftest.err conftest.$ac_objext \
11195: conftest$ac_exeext conftest.$ac_ext
11196: fi
11197: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11198: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11199: if test $ac_cv_func_dlopen = yes; then
11200: lt_cv_dlopen="dlopen"
11201: else
11202: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11203: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11204: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11205: echo $ECHO_N "(cached) $ECHO_C" >&6
11206: else
11207: ac_check_lib_save_LIBS=$LIBS
11208: LIBS="-ldl $LIBS"
11209: cat >conftest.$ac_ext <<_ACEOF
11210: /* confdefs.h. */
11211: _ACEOF
11212: cat confdefs.h >>conftest.$ac_ext
11213: cat >>conftest.$ac_ext <<_ACEOF
11214: /* end confdefs.h. */
11215:
11216: /* Override any gcc2 internal prototype to avoid an error. */
11217: #ifdef __cplusplus
11218: extern "C"
11219: #endif
11220: /* We use char because int might match the return type of a gcc2
11221: builtin and then its argument prototype would still apply. */
11222: char dlopen ();
11223: int
11224: main ()
11225: {
11226: dlopen ();
11227: ;
11228: return 0;
11229: }
11230: _ACEOF
11231: rm -f conftest.$ac_objext conftest$ac_exeext
11232: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233: (eval $ac_link) 2>conftest.er1
11234: ac_status=$?
11235: grep -v '^ *+' conftest.er1 >conftest.err
11236: rm -f conftest.er1
11237: cat conftest.err >&5
11238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239: (exit $ac_status); } &&
11240: { ac_try='test -z "$ac_c_werror_flag"
11241: || test ! -s conftest.err'
11242: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243: (eval $ac_try) 2>&5
11244: ac_status=$?
11245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246: (exit $ac_status); }; } &&
11247: { ac_try='test -s conftest$ac_exeext'
11248: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249: (eval $ac_try) 2>&5
11250: ac_status=$?
11251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252: (exit $ac_status); }; }; then
11253: ac_cv_lib_dl_dlopen=yes
11254: else
11255: echo "$as_me: failed program was:" >&5
11256: sed 's/^/| /' conftest.$ac_ext >&5
11257:
11258: ac_cv_lib_dl_dlopen=no
11259: fi
11260: rm -f conftest.err conftest.$ac_objext \
11261: conftest$ac_exeext conftest.$ac_ext
11262: LIBS=$ac_check_lib_save_LIBS
11263: fi
11264: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11265: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11266: if test $ac_cv_lib_dl_dlopen = yes; then
11267: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11268: else
11269: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11270: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11271: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11272: echo $ECHO_N "(cached) $ECHO_C" >&6
11273: else
11274: ac_check_lib_save_LIBS=$LIBS
11275: LIBS="-lsvld $LIBS"
11276: cat >conftest.$ac_ext <<_ACEOF
11277: /* confdefs.h. */
11278: _ACEOF
11279: cat confdefs.h >>conftest.$ac_ext
11280: cat >>conftest.$ac_ext <<_ACEOF
11281: /* end confdefs.h. */
11282:
11283: /* Override any gcc2 internal prototype to avoid an error. */
11284: #ifdef __cplusplus
11285: extern "C"
11286: #endif
11287: /* We use char because int might match the return type of a gcc2
11288: builtin and then its argument prototype would still apply. */
11289: char dlopen ();
11290: int
11291: main ()
11292: {
11293: dlopen ();
11294: ;
11295: return 0;
11296: }
11297: _ACEOF
11298: rm -f conftest.$ac_objext conftest$ac_exeext
11299: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300: (eval $ac_link) 2>conftest.er1
11301: ac_status=$?
11302: grep -v '^ *+' conftest.er1 >conftest.err
11303: rm -f conftest.er1
11304: cat conftest.err >&5
11305: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306: (exit $ac_status); } &&
11307: { ac_try='test -z "$ac_c_werror_flag"
11308: || test ! -s conftest.err'
11309: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310: (eval $ac_try) 2>&5
11311: ac_status=$?
11312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313: (exit $ac_status); }; } &&
11314: { ac_try='test -s conftest$ac_exeext'
11315: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316: (eval $ac_try) 2>&5
11317: ac_status=$?
11318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319: (exit $ac_status); }; }; then
11320: ac_cv_lib_svld_dlopen=yes
11321: else
11322: echo "$as_me: failed program was:" >&5
11323: sed 's/^/| /' conftest.$ac_ext >&5
11324:
11325: ac_cv_lib_svld_dlopen=no
11326: fi
11327: rm -f conftest.err conftest.$ac_objext \
11328: conftest$ac_exeext conftest.$ac_ext
11329: LIBS=$ac_check_lib_save_LIBS
11330: fi
11331: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11332: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11333: if test $ac_cv_lib_svld_dlopen = yes; then
11334: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11335: else
11336: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11337: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11338: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11339: echo $ECHO_N "(cached) $ECHO_C" >&6
11340: else
11341: ac_check_lib_save_LIBS=$LIBS
11342: LIBS="-ldld $LIBS"
11343: cat >conftest.$ac_ext <<_ACEOF
11344: /* confdefs.h. */
11345: _ACEOF
11346: cat confdefs.h >>conftest.$ac_ext
11347: cat >>conftest.$ac_ext <<_ACEOF
11348: /* end confdefs.h. */
11349:
11350: /* Override any gcc2 internal prototype to avoid an error. */
11351: #ifdef __cplusplus
11352: extern "C"
11353: #endif
11354: /* We use char because int might match the return type of a gcc2
11355: builtin and then its argument prototype would still apply. */
11356: char dld_link ();
11357: int
11358: main ()
11359: {
11360: dld_link ();
11361: ;
11362: return 0;
11363: }
11364: _ACEOF
11365: rm -f conftest.$ac_objext conftest$ac_exeext
11366: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367: (eval $ac_link) 2>conftest.er1
11368: ac_status=$?
11369: grep -v '^ *+' conftest.er1 >conftest.err
11370: rm -f conftest.er1
11371: cat conftest.err >&5
11372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373: (exit $ac_status); } &&
11374: { ac_try='test -z "$ac_c_werror_flag"
11375: || test ! -s conftest.err'
11376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377: (eval $ac_try) 2>&5
11378: ac_status=$?
11379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380: (exit $ac_status); }; } &&
11381: { ac_try='test -s conftest$ac_exeext'
11382: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383: (eval $ac_try) 2>&5
11384: ac_status=$?
11385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386: (exit $ac_status); }; }; then
11387: ac_cv_lib_dld_dld_link=yes
11388: else
11389: echo "$as_me: failed program was:" >&5
11390: sed 's/^/| /' conftest.$ac_ext >&5
11391:
11392: ac_cv_lib_dld_dld_link=no
11393: fi
11394: rm -f conftest.err conftest.$ac_objext \
11395: conftest$ac_exeext conftest.$ac_ext
11396: LIBS=$ac_check_lib_save_LIBS
11397: fi
11398: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11399: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11400: if test $ac_cv_lib_dld_dld_link = yes; then
11401: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11402: fi
11403:
11404:
11405: fi
11406:
11407:
11408: fi
11409:
11410:
11411: fi
11412:
11413:
11414: fi
11415:
11416:
11417: fi
11418:
11419: ;;
11420: esac
11421:
11422: if test "x$lt_cv_dlopen" != xno; then
11423: enable_dlopen=yes
11424: else
11425: enable_dlopen=no
11426: fi
11427:
11428: case $lt_cv_dlopen in
11429: dlopen)
11430: save_CPPFLAGS="$CPPFLAGS"
11431: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11432:
11433: save_LDFLAGS="$LDFLAGS"
11434: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11435:
11436: save_LIBS="$LIBS"
11437: LIBS="$lt_cv_dlopen_libs $LIBS"
11438:
11439: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11440: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11441: if test "${lt_cv_dlopen_self+set}" = set; then
11442: echo $ECHO_N "(cached) $ECHO_C" >&6
11443: else
11444: if test "$cross_compiling" = yes; then :
11445: lt_cv_dlopen_self=cross
11446: else
11447: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11448: lt_status=$lt_dlunknown
11449: cat > conftest.$ac_ext <<_LT_EOF
11450: #line $LINENO "configure"
11451: #include "confdefs.h"
11452:
11453: #if HAVE_DLFCN_H
11454: #include <dlfcn.h>
11455: #endif
11456:
11457: #include <stdio.h>
11458:
11459: #ifdef RTLD_GLOBAL
11460: # define LT_DLGLOBAL RTLD_GLOBAL
11461: #else
11462: # ifdef DL_GLOBAL
11463: # define LT_DLGLOBAL DL_GLOBAL
11464: # else
11465: # define LT_DLGLOBAL 0
11466: # endif
11467: #endif
11468:
11469: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11470: find out it does not work in some platform. */
11471: #ifndef LT_DLLAZY_OR_NOW
11472: # ifdef RTLD_LAZY
11473: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11474: # else
11475: # ifdef DL_LAZY
11476: # define LT_DLLAZY_OR_NOW DL_LAZY
11477: # else
11478: # ifdef RTLD_NOW
11479: # define LT_DLLAZY_OR_NOW RTLD_NOW
11480: # else
11481: # ifdef DL_NOW
11482: # define LT_DLLAZY_OR_NOW DL_NOW
11483: # else
11484: # define LT_DLLAZY_OR_NOW 0
11485: # endif
11486: # endif
11487: # endif
11488: # endif
11489: #endif
11490:
11491: /* When -fvisbility=hidden is used, assume the code has been annotated
11492: correspondingly for the symbols needed. */
11493: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11494: int fnord () __attribute__((visibility("default")));
11495: #endif
11496:
11497: int fnord () { return 42; }
11498: int main ()
11499: {
11500: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11501: int status = $lt_dlunknown;
11502:
11503: if (self)
11504: {
11505: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11506: else
11507: {
11508: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509: else puts (dlerror ());
11510: }
11511: /* dlclose (self); */
11512: }
11513: else
11514: puts (dlerror ());
11515:
11516: return status;
11517: }
11518: _LT_EOF
11519: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520: (eval $ac_link) 2>&5
11521: ac_status=$?
11522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11524: (./conftest; exit; ) >&5 2>/dev/null
11525: lt_status=$?
11526: case x$lt_status in
11527: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11528: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11529: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11530: esac
11531: else :
11532: # compilation failed
11533: lt_cv_dlopen_self=no
11534: fi
11535: fi
11536: rm -fr conftest*
11537:
11538:
11539: fi
11540: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11541: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11542:
11543: if test "x$lt_cv_dlopen_self" = xyes; then
11544: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11545: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11546: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11547: if test "${lt_cv_dlopen_self_static+set}" = set; then
11548: echo $ECHO_N "(cached) $ECHO_C" >&6
11549: else
11550: if test "$cross_compiling" = yes; then :
11551: lt_cv_dlopen_self_static=cross
11552: else
11553: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11554: lt_status=$lt_dlunknown
11555: cat > conftest.$ac_ext <<_LT_EOF
11556: #line $LINENO "configure"
11557: #include "confdefs.h"
11558:
11559: #if HAVE_DLFCN_H
11560: #include <dlfcn.h>
11561: #endif
11562:
11563: #include <stdio.h>
11564:
11565: #ifdef RTLD_GLOBAL
11566: # define LT_DLGLOBAL RTLD_GLOBAL
11567: #else
11568: # ifdef DL_GLOBAL
11569: # define LT_DLGLOBAL DL_GLOBAL
11570: # else
11571: # define LT_DLGLOBAL 0
11572: # endif
11573: #endif
11574:
11575: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11576: find out it does not work in some platform. */
11577: #ifndef LT_DLLAZY_OR_NOW
11578: # ifdef RTLD_LAZY
11579: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11580: # else
11581: # ifdef DL_LAZY
11582: # define LT_DLLAZY_OR_NOW DL_LAZY
11583: # else
11584: # ifdef RTLD_NOW
11585: # define LT_DLLAZY_OR_NOW RTLD_NOW
11586: # else
11587: # ifdef DL_NOW
11588: # define LT_DLLAZY_OR_NOW DL_NOW
11589: # else
11590: # define LT_DLLAZY_OR_NOW 0
11591: # endif
11592: # endif
11593: # endif
11594: # endif
11595: #endif
11596:
11597: /* When -fvisbility=hidden is used, assume the code has been annotated
11598: correspondingly for the symbols needed. */
11599: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11600: int fnord () __attribute__((visibility("default")));
11601: #endif
11602:
11603: int fnord () { return 42; }
11604: int main ()
11605: {
11606: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11607: int status = $lt_dlunknown;
11608:
11609: if (self)
11610: {
11611: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11612: else
11613: {
11614: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615: else puts (dlerror ());
11616: }
11617: /* dlclose (self); */
11618: }
11619: else
11620: puts (dlerror ());
11621:
11622: return status;
11623: }
11624: _LT_EOF
11625: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626: (eval $ac_link) 2>&5
11627: ac_status=$?
11628: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11630: (./conftest; exit; ) >&5 2>/dev/null
11631: lt_status=$?
11632: case x$lt_status in
11633: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11634: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11635: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11636: esac
11637: else :
11638: # compilation failed
11639: lt_cv_dlopen_self_static=no
11640: fi
11641: fi
11642: rm -fr conftest*
11643:
11644:
11645: fi
11646: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11647: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11648: fi
11649:
11650: CPPFLAGS="$save_CPPFLAGS"
11651: LDFLAGS="$save_LDFLAGS"
11652: LIBS="$save_LIBS"
11653: ;;
11654: esac
11655:
11656: case $lt_cv_dlopen_self in
11657: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11658: *) enable_dlopen_self=unknown ;;
11659: esac
11660:
11661: case $lt_cv_dlopen_self_static in
11662: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11663: *) enable_dlopen_self_static=unknown ;;
11664: esac
11665: fi
11666:
11667:
11668:
11669:
11670:
11671:
11672:
11673:
11674:
11675:
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683: striplib=
11684: old_striplib=
11685: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11686: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11687: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11688: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11689: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11690: echo "$as_me:$LINENO: result: yes" >&5
11691: echo "${ECHO_T}yes" >&6
11692: else
11693: # FIXME - insert some real tests, host_os isn't really good enough
11694: case $host_os in
11695: darwin*)
11696: if test -n "$STRIP" ; then
11697: striplib="$STRIP -x"
11698: old_striplib="$STRIP -S"
11699: echo "$as_me:$LINENO: result: yes" >&5
11700: echo "${ECHO_T}yes" >&6
11701: else
11702: echo "$as_me:$LINENO: result: no" >&5
11703: echo "${ECHO_T}no" >&6
11704: fi
11705: ;;
11706: *)
11707: echo "$as_me:$LINENO: result: no" >&5
11708: echo "${ECHO_T}no" >&6
11709: ;;
11710: esac
11711: fi
11712:
11713:
11714:
11715:
11716:
11717:
11718:
11719:
11720:
11721:
11722:
11723:
11724: # Report which library types will actually be built
11725: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11726: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11727: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11728: echo "${ECHO_T}$can_build_shared" >&6
11729:
11730: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11731: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11732: test "$can_build_shared" = "no" && enable_shared=no
11733:
11734: # On AIX, shared libraries and static libraries use the same namespace, and
11735: # are all built from PIC.
11736: case $host_os in
11737: aix3*)
11738: test "$enable_shared" = yes && enable_static=no
11739: if test -n "$RANLIB"; then
11740: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11741: postinstall_cmds='$RANLIB $lib'
11742: fi
11743: ;;
11744:
11745: aix[4-9]*)
11746: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11747: test "$enable_shared" = yes && enable_static=no
11748: fi
11749: ;;
11750: esac
11751: echo "$as_me:$LINENO: result: $enable_shared" >&5
11752: echo "${ECHO_T}$enable_shared" >&6
11753:
11754: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11755: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11756: # Make sure either enable_shared or enable_static is yes.
11757: test "$enable_shared" = yes || enable_static=yes
11758: echo "$as_me:$LINENO: result: $enable_static" >&5
11759: echo "${ECHO_T}$enable_static" >&6
11760:
11761:
11762:
11763:
11764: fi
11765: ac_ext=c
11766: ac_cpp='$CPP $CPPFLAGS'
11767: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11770:
11771: CC="$lt_save_CC"
11772:
11773: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11774: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11775: (test "X$CXX" != "Xg++"))) ; then
11776: ac_ext=cc
11777: ac_cpp='$CXXCPP $CPPFLAGS'
11778: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11781: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11782: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11783: if test -z "$CXXCPP"; then
11784: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11785: echo $ECHO_N "(cached) $ECHO_C" >&6
11786: else
11787: # Double quotes because CXXCPP needs to be expanded
11788: for CXXCPP in "$CXX -E" "/lib/cpp"
11789: do
11790: ac_preproc_ok=false
11791: for ac_cxx_preproc_warn_flag in '' yes
11792: do
11793: # Use a header file that comes with gcc, so configuring glibc
11794: # with a fresh cross-compiler works.
11795: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11796: # <limits.h> exists even on freestanding compilers.
11797: # On the NeXT, cc -E runs the code through the compiler's parser,
11798: # not just through cpp. "Syntax error" is here to catch this case.
11799: cat >conftest.$ac_ext <<_ACEOF
11800: /* confdefs.h. */
11801: _ACEOF
11802: cat confdefs.h >>conftest.$ac_ext
11803: cat >>conftest.$ac_ext <<_ACEOF
11804: /* end confdefs.h. */
11805: #ifdef __STDC__
11806: # include <limits.h>
11807: #else
11808: # include <assert.h>
11809: #endif
11810: Syntax error
11811: _ACEOF
11812: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11813: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11814: ac_status=$?
11815: grep -v '^ *+' conftest.er1 >conftest.err
11816: rm -f conftest.er1
11817: cat conftest.err >&5
11818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819: (exit $ac_status); } >/dev/null; then
11820: if test -s conftest.err; then
11821: ac_cpp_err=$ac_cxx_preproc_warn_flag
11822: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11823: else
11824: ac_cpp_err=
11825: fi
11826: else
11827: ac_cpp_err=yes
11828: fi
11829: if test -z "$ac_cpp_err"; then
11830: :
11831: else
11832: echo "$as_me: failed program was:" >&5
11833: sed 's/^/| /' conftest.$ac_ext >&5
11834:
11835: # Broken: fails on valid input.
11836: continue
11837: fi
11838: rm -f conftest.err conftest.$ac_ext
11839:
11840: # OK, works on sane cases. Now check whether non-existent headers
11841: # can be detected and how.
11842: cat >conftest.$ac_ext <<_ACEOF
11843: /* confdefs.h. */
11844: _ACEOF
11845: cat confdefs.h >>conftest.$ac_ext
11846: cat >>conftest.$ac_ext <<_ACEOF
11847: /* end confdefs.h. */
11848: #include <ac_nonexistent.h>
11849: _ACEOF
11850: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11851: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11852: ac_status=$?
11853: grep -v '^ *+' conftest.er1 >conftest.err
11854: rm -f conftest.er1
11855: cat conftest.err >&5
11856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857: (exit $ac_status); } >/dev/null; then
11858: if test -s conftest.err; then
11859: ac_cpp_err=$ac_cxx_preproc_warn_flag
11860: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11861: else
11862: ac_cpp_err=
11863: fi
11864: else
11865: ac_cpp_err=yes
11866: fi
11867: if test -z "$ac_cpp_err"; then
11868: # Broken: success on invalid input.
11869: continue
11870: else
11871: echo "$as_me: failed program was:" >&5
11872: sed 's/^/| /' conftest.$ac_ext >&5
11873:
11874: # Passes both tests.
11875: ac_preproc_ok=:
11876: break
11877: fi
11878: rm -f conftest.err conftest.$ac_ext
11879:
11880: done
11881: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11882: rm -f conftest.err conftest.$ac_ext
11883: if $ac_preproc_ok; then
11884: break
11885: fi
11886:
11887: done
11888: ac_cv_prog_CXXCPP=$CXXCPP
11889:
11890: fi
11891: CXXCPP=$ac_cv_prog_CXXCPP
11892: else
11893: ac_cv_prog_CXXCPP=$CXXCPP
11894: fi
11895: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11896: echo "${ECHO_T}$CXXCPP" >&6
11897: ac_preproc_ok=false
11898: for ac_cxx_preproc_warn_flag in '' yes
11899: do
11900: # Use a header file that comes with gcc, so configuring glibc
11901: # with a fresh cross-compiler works.
11902: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903: # <limits.h> exists even on freestanding compilers.
11904: # On the NeXT, cc -E runs the code through the compiler's parser,
11905: # not just through cpp. "Syntax error" is here to catch this case.
11906: cat >conftest.$ac_ext <<_ACEOF
11907: /* confdefs.h. */
11908: _ACEOF
11909: cat confdefs.h >>conftest.$ac_ext
11910: cat >>conftest.$ac_ext <<_ACEOF
11911: /* end confdefs.h. */
11912: #ifdef __STDC__
11913: # include <limits.h>
11914: #else
11915: # include <assert.h>
11916: #endif
11917: Syntax error
11918: _ACEOF
11919: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11921: ac_status=$?
11922: grep -v '^ *+' conftest.er1 >conftest.err
11923: rm -f conftest.er1
11924: cat conftest.err >&5
11925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926: (exit $ac_status); } >/dev/null; then
11927: if test -s conftest.err; then
11928: ac_cpp_err=$ac_cxx_preproc_warn_flag
11929: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11930: else
11931: ac_cpp_err=
11932: fi
11933: else
11934: ac_cpp_err=yes
11935: fi
11936: if test -z "$ac_cpp_err"; then
11937: :
11938: else
11939: echo "$as_me: failed program was:" >&5
11940: sed 's/^/| /' conftest.$ac_ext >&5
11941:
11942: # Broken: fails on valid input.
11943: continue
11944: fi
11945: rm -f conftest.err conftest.$ac_ext
11946:
11947: # OK, works on sane cases. Now check whether non-existent headers
11948: # can be detected and how.
11949: cat >conftest.$ac_ext <<_ACEOF
11950: /* confdefs.h. */
11951: _ACEOF
11952: cat confdefs.h >>conftest.$ac_ext
11953: cat >>conftest.$ac_ext <<_ACEOF
11954: /* end confdefs.h. */
11955: #include <ac_nonexistent.h>
11956: _ACEOF
11957: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11958: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11959: ac_status=$?
11960: grep -v '^ *+' conftest.er1 >conftest.err
11961: rm -f conftest.er1
11962: cat conftest.err >&5
11963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964: (exit $ac_status); } >/dev/null; then
11965: if test -s conftest.err; then
11966: ac_cpp_err=$ac_cxx_preproc_warn_flag
11967: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11968: else
11969: ac_cpp_err=
11970: fi
11971: else
11972: ac_cpp_err=yes
11973: fi
11974: if test -z "$ac_cpp_err"; then
11975: # Broken: success on invalid input.
11976: continue
11977: else
11978: echo "$as_me: failed program was:" >&5
11979: sed 's/^/| /' conftest.$ac_ext >&5
11980:
11981: # Passes both tests.
11982: ac_preproc_ok=:
11983: break
11984: fi
11985: rm -f conftest.err conftest.$ac_ext
11986:
11987: done
11988: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11989: rm -f conftest.err conftest.$ac_ext
11990: if $ac_preproc_ok; then
11991: :
11992: else
11993: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11994: See \`config.log' for more details." >&5
11995: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11996: See \`config.log' for more details." >&2;}
11997: { (exit 1); exit 1; }; }
11998: fi
11999:
12000: ac_ext=c
12001: ac_cpp='$CPP $CPPFLAGS'
12002: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12003: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12004: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12005:
12006: else
12007: _lt_caught_CXX_error=yes
12008: fi
12009:
12010: ac_ext=cc
12011: ac_cpp='$CXXCPP $CPPFLAGS'
12012: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12015:
12016: archive_cmds_need_lc_CXX=no
12017: allow_undefined_flag_CXX=
12018: always_export_symbols_CXX=no
12019: archive_expsym_cmds_CXX=
12020: compiler_needs_object_CXX=no
12021: export_dynamic_flag_spec_CXX=
12022: hardcode_direct_CXX=no
12023: hardcode_direct_absolute_CXX=no
12024: hardcode_libdir_flag_spec_CXX=
12025: hardcode_libdir_separator_CXX=
12026: hardcode_minus_L_CXX=no
12027: hardcode_shlibpath_var_CXX=unsupported
12028: hardcode_automatic_CXX=no
12029: inherit_rpath_CXX=no
12030: module_cmds_CXX=
12031: module_expsym_cmds_CXX=
12032: link_all_deplibs_CXX=unknown
12033: old_archive_cmds_CXX=$old_archive_cmds
12034: reload_flag_CXX=$reload_flag
12035: reload_cmds_CXX=$reload_cmds
12036: no_undefined_flag_CXX=
12037: whole_archive_flag_spec_CXX=
12038: enable_shared_with_static_runtimes_CXX=no
12039:
12040: # Source file extension for C++ test sources.
12041: ac_ext=cpp
12042:
12043: # Object file extension for compiled C++ test sources.
12044: objext=o
12045: objext_CXX=$objext
12046:
12047: # No sense in running all these tests if we already determined that
12048: # the CXX compiler isn't working. Some variables (like enable_shared)
12049: # are currently assumed to apply to all compilers on this platform,
12050: # and will be corrupted by setting them based on a non-working compiler.
12051: if test "$_lt_caught_CXX_error" != yes; then
12052: # Code to be used in simple compile tests
12053: lt_simple_compile_test_code="int some_variable = 0;"
12054:
12055: # Code to be used in simple link tests
12056: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12057:
12058: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12059:
12060:
12061:
12062:
12063:
12064:
12065: # If no C compiler was specified, use CC.
12066: LTCC=${LTCC-"$CC"}
12067:
12068: # If no C compiler flags were specified, use CFLAGS.
12069: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12070:
12071: # Allow CC to be a program name with arguments.
12072: compiler=$CC
12073:
12074:
12075: # save warnings/boilerplate of simple test code
12076: ac_outfile=conftest.$ac_objext
12077: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12078: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12079: _lt_compiler_boilerplate=`cat conftest.err`
12080: $RM conftest*
12081:
12082: ac_outfile=conftest.$ac_objext
12083: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12084: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12085: _lt_linker_boilerplate=`cat conftest.err`
12086: $RM -r conftest*
12087:
12088:
12089: # Allow CC to be a program name with arguments.
12090: lt_save_CC=$CC
12091: lt_save_CFLAGS=$CFLAGS
12092: lt_save_LD=$LD
12093: lt_save_GCC=$GCC
12094: GCC=$GXX
12095: lt_save_with_gnu_ld=$with_gnu_ld
12096: lt_save_path_LD=$lt_cv_path_LD
12097: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12098: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12099: else
12100: $as_unset lt_cv_prog_gnu_ld
12101: fi
12102: if test -n "${lt_cv_path_LDCXX+set}"; then
12103: lt_cv_path_LD=$lt_cv_path_LDCXX
12104: else
12105: $as_unset lt_cv_path_LD
12106: fi
12107: test -z "${LDCXX+set}" || LD=$LDCXX
12108: CC=${CXX-"c++"}
12109: CFLAGS=$CXXFLAGS
12110: compiler=$CC
12111: compiler_CXX=$CC
12112: for cc_temp in $compiler""; do
12113: case $cc_temp in
12114: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12115: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12116: \-*) ;;
12117: *) break;;
12118: esac
12119: done
12120: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12121:
12122:
12123: if test -n "$compiler"; then
12124: # We don't want -fno-exception when compiling C++ code, so set the
12125: # no_builtin_flag separately
12126: if test "$GXX" = yes; then
12127: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12128: else
12129: lt_prog_compiler_no_builtin_flag_CXX=
12130: fi
12131:
12132: if test "$GXX" = yes; then
12133: # Set up default GNU C++ configuration
12134:
12135:
12136:
12137: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12138: if test "${with_gnu_ld+set}" = set; then
12139: withval="$with_gnu_ld"
12140: test "$withval" = no || with_gnu_ld=yes
12141: else
12142: with_gnu_ld=no
12143: fi;
12144: ac_prog=ld
12145: if test "$GCC" = yes; then
12146: # Check if gcc -print-prog-name=ld gives a path.
12147: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12148: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12149: case $host in
12150: *-*-mingw*)
12151: # gcc leaves a trailing carriage return which upsets mingw
12152: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12153: *)
12154: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12155: esac
12156: case $ac_prog in
12157: # Accept absolute paths.
12158: [\\/]* | ?:[\\/]*)
12159: re_direlt='/[^/][^/]*/\.\./'
12160: # Canonicalize the pathname of ld
12161: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12162: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12163: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12164: done
12165: test -z "$LD" && LD="$ac_prog"
12166: ;;
12167: "")
12168: # If it fails, then pretend we aren't using GCC.
12169: ac_prog=ld
12170: ;;
12171: *)
12172: # If it is relative, then search for the first ld in PATH.
12173: with_gnu_ld=unknown
12174: ;;
12175: esac
12176: elif test "$with_gnu_ld" = yes; then
12177: echo "$as_me:$LINENO: checking for GNU ld" >&5
12178: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12179: else
12180: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12181: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12182: fi
12183: if test "${lt_cv_path_LD+set}" = set; then
12184: echo $ECHO_N "(cached) $ECHO_C" >&6
12185: else
12186: if test -z "$LD"; then
12187: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12188: for ac_dir in $PATH; do
12189: IFS="$lt_save_ifs"
12190: test -z "$ac_dir" && ac_dir=.
12191: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12192: lt_cv_path_LD="$ac_dir/$ac_prog"
12193: # Check to see if the program is GNU ld. I'd rather use --version,
12194: # but apparently some variants of GNU ld only accept -v.
12195: # Break only if it was the GNU/non-GNU ld that we prefer.
12196: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12197: *GNU* | *'with BFD'*)
12198: test "$with_gnu_ld" != no && break
12199: ;;
12200: *)
12201: test "$with_gnu_ld" != yes && break
12202: ;;
12203: esac
12204: fi
12205: done
12206: IFS="$lt_save_ifs"
12207: else
12208: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12209: fi
12210: fi
12211:
12212: LD="$lt_cv_path_LD"
12213: if test -n "$LD"; then
12214: echo "$as_me:$LINENO: result: $LD" >&5
12215: echo "${ECHO_T}$LD" >&6
12216: else
12217: echo "$as_me:$LINENO: result: no" >&5
12218: echo "${ECHO_T}no" >&6
12219: fi
12220: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12221: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12222: { (exit 1); exit 1; }; }
12223: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12224: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12225: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12226: echo $ECHO_N "(cached) $ECHO_C" >&6
12227: else
12228: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12229: case `$LD -v 2>&1 </dev/null` in
12230: *GNU* | *'with BFD'*)
12231: lt_cv_prog_gnu_ld=yes
12232: ;;
12233: *)
12234: lt_cv_prog_gnu_ld=no
12235: ;;
12236: esac
12237: fi
12238: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12239: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12240: with_gnu_ld=$lt_cv_prog_gnu_ld
12241:
12242:
12243:
12244:
12245:
12246:
12247:
12248: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12249: # archiving commands below assume that GNU ld is being used.
12250: if test "$with_gnu_ld" = yes; then
12251: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252: 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'
12253:
12254: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12255: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12256:
12257: # If archive_cmds runs LD, not CC, wlarc should be empty
12258: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12259: # investigate it a little bit more. (MM)
12260: wlarc='${wl}'
12261:
12262: # ancient GNU ld didn't support --whole-archive et. al.
12263: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12264: $GREP 'no-whole-archive' > /dev/null; then
12265: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12266: else
12267: whole_archive_flag_spec_CXX=
12268: fi
12269: else
12270: with_gnu_ld=no
12271: wlarc=
12272:
12273: # A generic and very simple default shared library creation
12274: # command for GNU C++ for the case where it uses the native
12275: # linker, instead of GNU ld. If possible, this setting should
12276: # overridden to take advantage of the native linker features on
12277: # the platform it is being used on.
12278: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12279: fi
12280:
12281: # Commands to make compiler produce verbose output that lists
12282: # what "hidden" libraries, object files and flags are used when
12283: # linking a shared library.
12284: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12285:
12286: else
12287: GXX=no
12288: with_gnu_ld=no
12289: wlarc=
12290: fi
12291:
12292: # PORTME: fill in a description of your system's C++ link characteristics
12293: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12294: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12295: ld_shlibs_CXX=yes
12296: case $host_os in
12297: aix3*)
12298: # FIXME: insert proper C++ library support
12299: ld_shlibs_CXX=no
12300: ;;
12301: aix[4-9]*)
12302: if test "$host_cpu" = ia64; then
12303: # On IA64, the linker does run time linking by default, so we don't
12304: # have to do anything special.
12305: aix_use_runtimelinking=no
12306: exp_sym_flag='-Bexport'
12307: no_entry_flag=""
12308: else
12309: aix_use_runtimelinking=no
12310:
12311: # Test if we are trying to use run time linking or normal
12312: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12313: # need to do runtime linking.
12314: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12315: for ld_flag in $LDFLAGS; do
12316: case $ld_flag in
12317: *-brtl*)
12318: aix_use_runtimelinking=yes
12319: break
12320: ;;
12321: esac
12322: done
12323: ;;
12324: esac
12325:
12326: exp_sym_flag='-bexport'
12327: no_entry_flag='-bnoentry'
12328: fi
12329:
12330: # When large executables or shared objects are built, AIX ld can
12331: # have problems creating the table of contents. If linking a library
12332: # or program results in "error TOC overflow" add -mminimal-toc to
12333: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12334: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12335:
12336: archive_cmds_CXX=''
12337: hardcode_direct_CXX=yes
12338: hardcode_direct_absolute_CXX=yes
12339: hardcode_libdir_separator_CXX=':'
12340: link_all_deplibs_CXX=yes
12341: file_list_spec_CXX='${wl}-f,'
12342:
12343: if test "$GXX" = yes; then
12344: case $host_os in aix4.[012]|aix4.[012].*)
12345: # We only want to do this on AIX 4.2 and lower, the check
12346: # below for broken collect2 doesn't work under 4.3+
12347: collect2name=`${CC} -print-prog-name=collect2`
12348: if test -f "$collect2name" &&
12349: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12350: then
12351: # We have reworked collect2
12352: :
12353: else
12354: # We have old collect2
12355: hardcode_direct_CXX=unsupported
12356: # It fails to find uninstalled libraries when the uninstalled
12357: # path is not listed in the libpath. Setting hardcode_minus_L
12358: # to unsupported forces relinking
12359: hardcode_minus_L_CXX=yes
12360: hardcode_libdir_flag_spec_CXX='-L$libdir'
12361: hardcode_libdir_separator_CXX=
12362: fi
12363: esac
12364: shared_flag='-shared'
12365: if test "$aix_use_runtimelinking" = yes; then
12366: shared_flag="$shared_flag "'${wl}-G'
12367: fi
12368: else
12369: # not using gcc
12370: if test "$host_cpu" = ia64; then
12371: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12372: # chokes on -Wl,-G. The following line is correct:
12373: shared_flag='-G'
12374: else
12375: if test "$aix_use_runtimelinking" = yes; then
12376: shared_flag='${wl}-G'
12377: else
12378: shared_flag='${wl}-bM:SRE'
12379: fi
12380: fi
12381: fi
12382:
12383: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12384: # It seems that -bexpall does not export symbols beginning with
12385: # underscore (_), so it is better to generate a list of symbols to
12386: # export.
12387: always_export_symbols_CXX=yes
12388: if test "$aix_use_runtimelinking" = yes; then
12389: # Warning - without using the other runtime loading flags (-brtl),
12390: # -berok will link without error, but may produce a broken library.
12391: allow_undefined_flag_CXX='-berok'
12392: # Determine the default libpath from the value encoded in an empty
12393: # executable.
12394: if test "${lt_cv_aix_libpath+set}" = set; then
12395: aix_libpath=$lt_cv_aix_libpath
12396: else
12397: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12398: echo $ECHO_N "(cached) $ECHO_C" >&6
12399: else
12400: cat >conftest.$ac_ext <<_ACEOF
12401: /* confdefs.h. */
12402: _ACEOF
12403: cat confdefs.h >>conftest.$ac_ext
12404: cat >>conftest.$ac_ext <<_ACEOF
12405: /* end confdefs.h. */
12406:
12407: int
12408: main ()
12409: {
12410:
12411: ;
12412: return 0;
12413: }
12414: _ACEOF
12415: rm -f conftest.$ac_objext conftest$ac_exeext
12416: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417: (eval $ac_link) 2>conftest.er1
12418: ac_status=$?
12419: grep -v '^ *+' conftest.er1 >conftest.err
12420: rm -f conftest.er1
12421: cat conftest.err >&5
12422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423: (exit $ac_status); } &&
12424: { ac_try='test -z "$ac_cxx_werror_flag"
12425: || test ! -s conftest.err'
12426: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427: (eval $ac_try) 2>&5
12428: ac_status=$?
12429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430: (exit $ac_status); }; } &&
12431: { ac_try='test -s conftest$ac_exeext'
12432: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433: (eval $ac_try) 2>&5
12434: ac_status=$?
12435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436: (exit $ac_status); }; }; then
12437:
12438: lt_aix_libpath_sed='
12439: /Import File Strings/,/^$/ {
12440: /^0/ {
12441: s/^0 *\([^ ]*\) *$/\1/
12442: p
12443: }
12444: }'
12445: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12446: # Check for a 64-bit object if we didn't find anything.
12447: if test -z "$lt_cv_aix_libpath__CXX"; then
12448: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12449: fi
12450: else
12451: echo "$as_me: failed program was:" >&5
12452: sed 's/^/| /' conftest.$ac_ext >&5
12453:
12454: fi
12455: rm -f conftest.err conftest.$ac_objext \
12456: conftest$ac_exeext conftest.$ac_ext
12457: if test -z "$lt_cv_aix_libpath__CXX"; then
12458: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12459: fi
12460:
12461: fi
12462:
12463: aix_libpath=$lt_cv_aix_libpath__CXX
12464: fi
12465:
12466: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12467:
12468: 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"
12469: else
12470: if test "$host_cpu" = ia64; then
12471: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12472: allow_undefined_flag_CXX="-z nodefs"
12473: 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"
12474: else
12475: # Determine the default libpath from the value encoded in an
12476: # empty executable.
12477: if test "${lt_cv_aix_libpath+set}" = set; then
12478: aix_libpath=$lt_cv_aix_libpath
12479: else
12480: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12481: echo $ECHO_N "(cached) $ECHO_C" >&6
12482: else
12483: cat >conftest.$ac_ext <<_ACEOF
12484: /* confdefs.h. */
12485: _ACEOF
12486: cat confdefs.h >>conftest.$ac_ext
12487: cat >>conftest.$ac_ext <<_ACEOF
12488: /* end confdefs.h. */
12489:
12490: int
12491: main ()
12492: {
12493:
12494: ;
12495: return 0;
12496: }
12497: _ACEOF
12498: rm -f conftest.$ac_objext conftest$ac_exeext
12499: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500: (eval $ac_link) 2>conftest.er1
12501: ac_status=$?
12502: grep -v '^ *+' conftest.er1 >conftest.err
12503: rm -f conftest.er1
12504: cat conftest.err >&5
12505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506: (exit $ac_status); } &&
12507: { ac_try='test -z "$ac_cxx_werror_flag"
12508: || test ! -s conftest.err'
12509: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510: (eval $ac_try) 2>&5
12511: ac_status=$?
12512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513: (exit $ac_status); }; } &&
12514: { ac_try='test -s conftest$ac_exeext'
12515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516: (eval $ac_try) 2>&5
12517: ac_status=$?
12518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519: (exit $ac_status); }; }; then
12520:
12521: lt_aix_libpath_sed='
12522: /Import File Strings/,/^$/ {
12523: /^0/ {
12524: s/^0 *\([^ ]*\) *$/\1/
12525: p
12526: }
12527: }'
12528: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12529: # Check for a 64-bit object if we didn't find anything.
12530: if test -z "$lt_cv_aix_libpath__CXX"; then
12531: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12532: fi
12533: else
12534: echo "$as_me: failed program was:" >&5
12535: sed 's/^/| /' conftest.$ac_ext >&5
12536:
12537: fi
12538: rm -f conftest.err conftest.$ac_objext \
12539: conftest$ac_exeext conftest.$ac_ext
12540: if test -z "$lt_cv_aix_libpath__CXX"; then
12541: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12542: fi
12543:
12544: fi
12545:
12546: aix_libpath=$lt_cv_aix_libpath__CXX
12547: fi
12548:
12549: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12550: # Warning - without using the other run time loading flags,
12551: # -berok will link without error, but may produce a broken library.
12552: no_undefined_flag_CXX=' ${wl}-bernotok'
12553: allow_undefined_flag_CXX=' ${wl}-berok'
12554: if test "$with_gnu_ld" = yes; then
12555: # We only use this code for GNU lds that support --whole-archive.
12556: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12557: else
12558: # Exported symbols can be pulled into shared objects from archives
12559: whole_archive_flag_spec_CXX='$convenience'
12560: fi
12561: archive_cmds_need_lc_CXX=yes
12562: # This is similar to how AIX traditionally builds its shared
12563: # libraries.
12564: 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'
12565: fi
12566: fi
12567: ;;
12568:
12569: beos*)
12570: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12571: allow_undefined_flag_CXX=unsupported
12572: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12573: # support --undefined. This deserves some investigation. FIXME
12574: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12575: else
12576: ld_shlibs_CXX=no
12577: fi
12578: ;;
12579:
12580: chorus*)
12581: case $cc_basename in
12582: *)
12583: # FIXME: insert proper C++ library support
12584: ld_shlibs_CXX=no
12585: ;;
12586: esac
12587: ;;
12588:
12589: cygwin* | mingw* | pw32* | cegcc*)
12590: case $GXX,$cc_basename in
12591: ,cl* | no,cl*)
12592: # Native MSVC
12593: # hardcode_libdir_flag_spec is actually meaningless, as there is
12594: # no search path for DLLs.
12595: hardcode_libdir_flag_spec_CXX=' '
12596: allow_undefined_flag_CXX=unsupported
12597: always_export_symbols_CXX=yes
12598: file_list_spec_CXX='@'
12599: # Tell ltmain to make .lib files, not .a files.
12600: libext=lib
12601: # Tell ltmain to make .dll files, not .so files.
12602: shrext_cmds=".dll"
12603: # FIXME: Setting linknames here is a bad hack.
12604: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12605: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12606: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12607: else
12608: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12609: fi~
12610: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12611: linknames='
12612: # The linker will not automatically build a static lib if we build a DLL.
12613: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12614: enable_shared_with_static_runtimes_CXX=yes
12615: # Don't use ranlib
12616: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12617: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12618: lt_tool_outputfile="@TOOL_OUTPUT@"~
12619: case $lt_outputfile in
12620: *.exe|*.EXE) ;;
12621: *)
12622: lt_outputfile="$lt_outputfile.exe"
12623: lt_tool_outputfile="$lt_tool_outputfile.exe"
12624: ;;
12625: esac~
12626: func_to_tool_file "$lt_outputfile"~
12627: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12628: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12629: $RM "$lt_outputfile.manifest";
12630: fi'
12631: ;;
12632: *)
12633: # g++
12634: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12635: # as there is no search path for DLLs.
12636: hardcode_libdir_flag_spec_CXX='-L$libdir'
12637: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12638: allow_undefined_flag_CXX=unsupported
12639: always_export_symbols_CXX=no
12640: enable_shared_with_static_runtimes_CXX=yes
12641:
12642: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12643: 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'
12644: # If the export-symbols file already is a .def file (1st line
12645: # is EXPORTS), use it as is; otherwise, prepend...
12646: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12647: cp $export_symbols $output_objdir/$soname.def;
12648: else
12649: echo EXPORTS > $output_objdir/$soname.def;
12650: cat $export_symbols >> $output_objdir/$soname.def;
12651: fi~
12652: $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'
12653: else
12654: ld_shlibs_CXX=no
12655: fi
12656: ;;
12657: esac
12658: ;;
12659: darwin* | rhapsody*)
12660:
12661:
12662: archive_cmds_need_lc_CXX=no
12663: hardcode_direct_CXX=no
12664: hardcode_automatic_CXX=yes
12665: hardcode_shlibpath_var_CXX=unsupported
12666: if test "$lt_cv_ld_force_load" = "yes"; then
12667: 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\"`'
12668:
12669: else
12670: whole_archive_flag_spec_CXX=''
12671: fi
12672: link_all_deplibs_CXX=yes
12673: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12674: case $cc_basename in
12675: ifort*) _lt_dar_can_shared=yes ;;
12676: *) _lt_dar_can_shared=$GCC ;;
12677: esac
12678: if test "$_lt_dar_can_shared" = "yes"; then
12679: output_verbose_link_cmd=func_echo_all
12680: 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}"
12681: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12682: 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}"
12683: 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}"
12684: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12685: 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}"
12686: 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}"
12687: fi
12688:
12689: else
12690: ld_shlibs_CXX=no
12691: fi
12692:
12693: ;;
12694:
12695: dgux*)
12696: case $cc_basename in
12697: ec++*)
12698: # FIXME: insert proper C++ library support
12699: ld_shlibs_CXX=no
12700: ;;
12701: ghcx*)
12702: # Green Hills C++ Compiler
12703: # FIXME: insert proper C++ library support
12704: ld_shlibs_CXX=no
12705: ;;
12706: *)
12707: # FIXME: insert proper C++ library support
12708: ld_shlibs_CXX=no
12709: ;;
12710: esac
12711: ;;
12712:
12713: freebsd2.*)
12714: # C++ shared libraries reported to be fairly broken before
12715: # switch to ELF
12716: ld_shlibs_CXX=no
12717: ;;
12718:
12719: freebsd-elf*)
12720: archive_cmds_need_lc_CXX=no
12721: ;;
12722:
12723: freebsd* | dragonfly*)
12724: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12725: # conventions
12726: ld_shlibs_CXX=yes
12727: ;;
12728:
12729: gnu*)
12730: ;;
12731:
12732: haiku*)
12733: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734: link_all_deplibs_CXX=yes
12735: ;;
12736:
12737: hpux9*)
12738: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12739: hardcode_libdir_separator_CXX=:
12740: export_dynamic_flag_spec_CXX='${wl}-E'
12741: hardcode_direct_CXX=yes
12742: hardcode_minus_L_CXX=yes # Not in the search PATH,
12743: # but as the default
12744: # location of the library.
12745:
12746: case $cc_basename in
12747: CC*)
12748: # FIXME: insert proper C++ library support
12749: ld_shlibs_CXX=no
12750: ;;
12751: aCC*)
12752: 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'
12753: # Commands to make compiler produce verbose output that lists
12754: # what "hidden" libraries, object files and flags are used when
12755: # linking a shared library.
12756: #
12757: # There doesn't appear to be a way to prevent this compiler from
12758: # explicitly linking system object files so we need to strip them
12759: # from the output so that they don't get included in the library
12760: # dependencies.
12761: 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"'
12762: ;;
12763: *)
12764: if test "$GXX" = yes; then
12765: 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'
12766: else
12767: # FIXME: insert proper C++ library support
12768: ld_shlibs_CXX=no
12769: fi
12770: ;;
12771: esac
12772: ;;
12773:
12774: hpux10*|hpux11*)
12775: if test $with_gnu_ld = no; then
12776: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12777: hardcode_libdir_separator_CXX=:
12778:
12779: case $host_cpu in
12780: hppa*64*|ia64*)
12781: ;;
12782: *)
12783: export_dynamic_flag_spec_CXX='${wl}-E'
12784: ;;
12785: esac
12786: fi
12787: case $host_cpu in
12788: hppa*64*|ia64*)
12789: hardcode_direct_CXX=no
12790: hardcode_shlibpath_var_CXX=no
12791: ;;
12792: *)
12793: hardcode_direct_CXX=yes
12794: hardcode_direct_absolute_CXX=yes
12795: hardcode_minus_L_CXX=yes # Not in the search PATH,
12796: # but as the default
12797: # location of the library.
12798: ;;
12799: esac
12800:
12801: case $cc_basename in
12802: CC*)
12803: # FIXME: insert proper C++ library support
12804: ld_shlibs_CXX=no
12805: ;;
12806: aCC*)
12807: case $host_cpu in
12808: hppa*64*)
12809: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12810: ;;
12811: ia64*)
12812: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12813: ;;
12814: *)
12815: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816: ;;
12817: esac
12818: # Commands to make compiler produce verbose output that lists
12819: # what "hidden" libraries, object files and flags are used when
12820: # linking a shared library.
12821: #
12822: # There doesn't appear to be a way to prevent this compiler from
12823: # explicitly linking system object files so we need to strip them
12824: # from the output so that they don't get included in the library
12825: # dependencies.
12826: 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"'
12827: ;;
12828: *)
12829: if test "$GXX" = yes; then
12830: if test $with_gnu_ld = no; then
12831: case $host_cpu in
12832: hppa*64*)
12833: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12834: ;;
12835: ia64*)
12836: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12837: ;;
12838: *)
12839: 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'
12840: ;;
12841: esac
12842: fi
12843: else
12844: # FIXME: insert proper C++ library support
12845: ld_shlibs_CXX=no
12846: fi
12847: ;;
12848: esac
12849: ;;
12850:
12851: interix[3-9]*)
12852: hardcode_direct_CXX=no
12853: hardcode_shlibpath_var_CXX=no
12854: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12855: export_dynamic_flag_spec_CXX='${wl}-E'
12856: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12857: # Instead, shared libraries are loaded at an image base (0x10000000 by
12858: # default) and relocated if they conflict, which is a slow very memory
12859: # consuming and fragmenting process. To avoid this, we pick a random,
12860: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12861: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12862: 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'
12863: 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'
12864: ;;
12865: irix5* | irix6*)
12866: case $cc_basename in
12867: CC*)
12868: # SGI C++
12869: 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'
12870:
12871: # Archives containing C++ object files must be created using
12872: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12873: # necessary to make sure instantiated templates are included
12874: # in the archive.
12875: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12876: ;;
12877: *)
12878: if test "$GXX" = yes; then
12879: if test "$with_gnu_ld" = no; then
12880: 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'
12881: else
12882: 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'
12883: fi
12884: fi
12885: link_all_deplibs_CXX=yes
12886: ;;
12887: esac
12888: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12889: hardcode_libdir_separator_CXX=:
12890: inherit_rpath_CXX=yes
12891: ;;
12892:
12893: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12894: case $cc_basename in
12895: KCC*)
12896: # Kuck and Associates, Inc. (KAI) C++ Compiler
12897:
12898: # KCC will only create a shared library if the output file
12899: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12900: # to its proper name (with version) after linking.
12901: 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'
12902: 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'
12903: # Commands to make compiler produce verbose output that lists
12904: # what "hidden" libraries, object files and flags are used when
12905: # linking a shared library.
12906: #
12907: # There doesn't appear to be a way to prevent this compiler from
12908: # explicitly linking system object files so we need to strip them
12909: # from the output so that they don't get included in the library
12910: # dependencies.
12911: 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"'
12912:
12913: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12914: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12915:
12916: # Archives containing C++ object files must be created using
12917: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12918: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12919: ;;
12920: icpc* | ecpc* )
12921: # Intel C++
12922: with_gnu_ld=yes
12923: # version 8.0 and above of icpc choke on multiply defined symbols
12924: # if we add $predep_objects and $postdep_objects, however 7.1 and
12925: # earlier do not add the objects themselves.
12926: case `$CC -V 2>&1` in
12927: *"Version 7."*)
12928: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929: 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'
12930: ;;
12931: *) # Version 8.0 or newer
12932: tmp_idyn=
12933: case $host_cpu in
12934: ia64*) tmp_idyn=' -i_dynamic';;
12935: esac
12936: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937: 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'
12938: ;;
12939: esac
12940: archive_cmds_need_lc_CXX=no
12941: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12942: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12943: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12944: ;;
12945: pgCC* | pgcpp*)
12946: # Portland Group C++ compiler
12947: case `$CC -V` in
12948: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12949: prelink_cmds_CXX='tpldir=Template.dir~
12950: rm -rf $tpldir~
12951: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12952: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12953: old_archive_cmds_CXX='tpldir=Template.dir~
12954: rm -rf $tpldir~
12955: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12956: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12957: $RANLIB $oldlib'
12958: archive_cmds_CXX='tpldir=Template.dir~
12959: rm -rf $tpldir~
12960: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12961: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12962: archive_expsym_cmds_CXX='tpldir=Template.dir~
12963: rm -rf $tpldir~
12964: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12965: $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'
12966: ;;
12967: *) # Version 6 and above use weak symbols
12968: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12969: 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'
12970: ;;
12971: esac
12972:
12973: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12974: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12975: 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'
12976: ;;
12977: cxx*)
12978: # Compaq C++
12979: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980: 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'
12981:
12982: runpath_var=LD_RUN_PATH
12983: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12984: hardcode_libdir_separator_CXX=:
12985:
12986: # Commands to make compiler produce verbose output that lists
12987: # what "hidden" libraries, object files and flags are used when
12988: # linking a shared library.
12989: #
12990: # There doesn't appear to be a way to prevent this compiler from
12991: # explicitly linking system object files so we need to strip them
12992: # from the output so that they don't get included in the library
12993: # dependencies.
12994: 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'
12995: ;;
12996: xl* | mpixl* | bgxl*)
12997: # IBM XL 8.0 on PPC, with GNU ld
12998: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12999: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13000: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13001: if test "x$supports_anon_versioning" = xyes; then
13002: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13003: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13004: echo "local: *; };" >> $output_objdir/$libname.ver~
13005: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13006: fi
13007: ;;
13008: *)
13009: case `$CC -V 2>&1 | sed 5q` in
13010: *Sun\ C*)
13011: # Sun C++ 5.9
13012: no_undefined_flag_CXX=' -zdefs'
13013: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014: 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'
13015: hardcode_libdir_flag_spec_CXX='-R$libdir'
13016: 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'
13017: compiler_needs_object_CXX=yes
13018:
13019: # Not sure whether something based on
13020: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13021: # would be better.
13022: output_verbose_link_cmd='func_echo_all'
13023:
13024: # Archives containing C++ object files must be created using
13025: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13026: # necessary to make sure instantiated templates are included
13027: # in the archive.
13028: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13029: ;;
13030: esac
13031: ;;
13032: esac
13033: ;;
13034:
13035: lynxos*)
13036: # FIXME: insert proper C++ library support
13037: ld_shlibs_CXX=no
13038: ;;
13039:
13040: m88k*)
13041: # FIXME: insert proper C++ library support
13042: ld_shlibs_CXX=no
13043: ;;
13044:
13045: mvs*)
13046: case $cc_basename in
13047: cxx*)
13048: # FIXME: insert proper C++ library support
13049: ld_shlibs_CXX=no
13050: ;;
13051: *)
13052: # FIXME: insert proper C++ library support
13053: ld_shlibs_CXX=no
13054: ;;
13055: esac
13056: ;;
13057:
13058: netbsd*)
13059: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13060: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13061: wlarc=
13062: hardcode_libdir_flag_spec_CXX='-R$libdir'
13063: hardcode_direct_CXX=yes
13064: hardcode_shlibpath_var_CXX=no
13065: fi
13066: # Workaround some broken pre-1.5 toolchains
13067: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13068: ;;
13069:
13070: *nto* | *qnx*)
13071: ld_shlibs_CXX=yes
13072: ;;
13073:
13074: openbsd2*)
13075: # C++ shared libraries are fairly broken
13076: ld_shlibs_CXX=no
13077: ;;
13078:
13079: openbsd*)
13080: if test -f /usr/libexec/ld.so; then
13081: hardcode_direct_CXX=yes
13082: hardcode_shlibpath_var_CXX=no
13083: hardcode_direct_absolute_CXX=yes
13084: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13085: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13086: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13087: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13088: export_dynamic_flag_spec_CXX='${wl}-E'
13089: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13090: fi
13091: output_verbose_link_cmd=func_echo_all
13092: else
13093: ld_shlibs_CXX=no
13094: fi
13095: ;;
13096:
13097: osf3* | osf4* | osf5*)
13098: case $cc_basename in
13099: KCC*)
13100: # Kuck and Associates, Inc. (KAI) C++ Compiler
13101:
13102: # KCC will only create a shared library if the output file
13103: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13104: # to its proper name (with version) after linking.
13105: 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'
13106:
13107: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13108: hardcode_libdir_separator_CXX=:
13109:
13110: # Archives containing C++ object files must be created using
13111: # the KAI C++ compiler.
13112: case $host in
13113: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13114: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13115: esac
13116: ;;
13117: RCC*)
13118: # Rational C++ 2.4.1
13119: # FIXME: insert proper C++ library support
13120: ld_shlibs_CXX=no
13121: ;;
13122: cxx*)
13123: case $host in
13124: osf3*)
13125: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13126: 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'
13127: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13128: ;;
13129: *)
13130: allow_undefined_flag_CXX=' -expect_unresolved \*'
13131: 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'
13132: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13133: echo "-hidden">> $lib.exp~
13134: $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~
13135: $RM $lib.exp'
13136: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13137: ;;
13138: esac
13139:
13140: hardcode_libdir_separator_CXX=:
13141:
13142: # Commands to make compiler produce verbose output that lists
13143: # what "hidden" libraries, object files and flags are used when
13144: # linking a shared library.
13145: #
13146: # There doesn't appear to be a way to prevent this compiler from
13147: # explicitly linking system object files so we need to strip them
13148: # from the output so that they don't get included in the library
13149: # dependencies.
13150: 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"'
13151: ;;
13152: *)
13153: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13154: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13155: case $host in
13156: osf3*)
13157: 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'
13158: ;;
13159: *)
13160: 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'
13161: ;;
13162: esac
13163:
13164: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13165: hardcode_libdir_separator_CXX=:
13166:
13167: # Commands to make compiler produce verbose output that lists
13168: # what "hidden" libraries, object files and flags are used when
13169: # linking a shared library.
13170: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13171:
13172: else
13173: # FIXME: insert proper C++ library support
13174: ld_shlibs_CXX=no
13175: fi
13176: ;;
13177: esac
13178: ;;
13179:
13180: psos*)
13181: # FIXME: insert proper C++ library support
13182: ld_shlibs_CXX=no
13183: ;;
13184:
13185: sunos4*)
13186: case $cc_basename in
13187: CC*)
13188: # Sun C++ 4.x
13189: # FIXME: insert proper C++ library support
13190: ld_shlibs_CXX=no
13191: ;;
13192: lcc*)
13193: # Lucid
13194: # FIXME: insert proper C++ library support
13195: ld_shlibs_CXX=no
13196: ;;
13197: *)
13198: # FIXME: insert proper C++ library support
13199: ld_shlibs_CXX=no
13200: ;;
13201: esac
13202: ;;
13203:
13204: solaris*)
13205: case $cc_basename in
13206: CC* | sunCC*)
13207: # Sun C++ 4.2, 5.x and Centerline C++
13208: archive_cmds_need_lc_CXX=yes
13209: no_undefined_flag_CXX=' -zdefs'
13210: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13211: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13212: $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'
13213:
13214: hardcode_libdir_flag_spec_CXX='-R$libdir'
13215: hardcode_shlibpath_var_CXX=no
13216: case $host_os in
13217: solaris2.[0-5] | solaris2.[0-5].*) ;;
13218: *)
13219: # The compiler driver will combine and reorder linker options,
13220: # but understands `-z linker_flag'.
13221: # Supported since Solaris 2.6 (maybe 2.5.1?)
13222: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13223: ;;
13224: esac
13225: link_all_deplibs_CXX=yes
13226:
13227: output_verbose_link_cmd='func_echo_all'
13228:
13229: # Archives containing C++ object files must be created using
13230: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13231: # necessary to make sure instantiated templates are included
13232: # in the archive.
13233: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13234: ;;
13235: gcx*)
13236: # Green Hills C++ Compiler
13237: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13238:
13239: # The C++ compiler must be used to create the archive.
13240: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13241: ;;
13242: *)
13243: # GNU C++ compiler with Solaris linker
13244: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13245: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13246: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13247: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13250:
13251: # Commands to make compiler produce verbose output that lists
13252: # what "hidden" libraries, object files and flags are used when
13253: # linking a shared library.
13254: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13255: else
13256: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13257: # platform.
13258: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13259: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13260: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13261:
13262: # Commands to make compiler produce verbose output that lists
13263: # what "hidden" libraries, object files and flags are used when
13264: # linking a shared library.
13265: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13266: fi
13267:
13268: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13269: case $host_os in
13270: solaris2.[0-5] | solaris2.[0-5].*) ;;
13271: *)
13272: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13273: ;;
13274: esac
13275: fi
13276: ;;
13277: esac
13278: ;;
13279:
13280: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13281: no_undefined_flag_CXX='${wl}-z,text'
13282: archive_cmds_need_lc_CXX=no
13283: hardcode_shlibpath_var_CXX=no
13284: runpath_var='LD_RUN_PATH'
13285:
13286: case $cc_basename in
13287: CC*)
13288: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13289: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13290: ;;
13291: *)
13292: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294: ;;
13295: esac
13296: ;;
13297:
13298: sysv5* | sco3.2v5* | sco5v6*)
13299: # Note: We can NOT use -z defs as we might desire, because we do not
13300: # link with -lc, and that would cause any symbols used from libc to
13301: # always be unresolved, which means just about no library would
13302: # ever link correctly. If we're not using GNU ld we use -z text
13303: # though, which does catch some bad symbols but isn't as heavy-handed
13304: # as -z defs.
13305: no_undefined_flag_CXX='${wl}-z,text'
13306: allow_undefined_flag_CXX='${wl}-z,nodefs'
13307: archive_cmds_need_lc_CXX=no
13308: hardcode_shlibpath_var_CXX=no
13309: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13310: hardcode_libdir_separator_CXX=':'
13311: link_all_deplibs_CXX=yes
13312: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13313: runpath_var='LD_RUN_PATH'
13314:
13315: case $cc_basename in
13316: CC*)
13317: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13318: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13319: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13320: '"$old_archive_cmds_CXX"
13321: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13322: '"$reload_cmds_CXX"
13323: ;;
13324: *)
13325: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327: ;;
13328: esac
13329: ;;
13330:
13331: tandem*)
13332: case $cc_basename in
13333: NCC*)
13334: # NonStop-UX NCC 3.20
13335: # FIXME: insert proper C++ library support
13336: ld_shlibs_CXX=no
13337: ;;
13338: *)
13339: # FIXME: insert proper C++ library support
13340: ld_shlibs_CXX=no
13341: ;;
13342: esac
13343: ;;
13344:
13345: vxworks*)
13346: # FIXME: insert proper C++ library support
13347: ld_shlibs_CXX=no
13348: ;;
13349:
13350: *)
13351: # FIXME: insert proper C++ library support
13352: ld_shlibs_CXX=no
13353: ;;
13354: esac
13355:
13356: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13357: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13358: test "$ld_shlibs_CXX" = no && can_build_shared=no
13359:
13360: GCC_CXX="$GXX"
13361: LD_CXX="$LD"
13362:
13363: ## CAVEAT EMPTOR:
13364: ## There is no encapsulation within the following macros, do not change
13365: ## the running order or otherwise move them around unless you know exactly
13366: ## what you are doing...
13367: # Dependencies to place before and after the object being linked:
13368: predep_objects_CXX=
13369: postdep_objects_CXX=
13370: predeps_CXX=
13371: postdeps_CXX=
13372: compiler_lib_search_path_CXX=
13373:
13374: cat > conftest.$ac_ext <<_LT_EOF
13375: class Foo
13376: {
13377: public:
13378: Foo (void) { a = 0; }
13379: private:
13380: int a;
13381: };
13382: _LT_EOF
13383:
13384:
13385: _lt_libdeps_save_CFLAGS=$CFLAGS
13386: case "$CC $CFLAGS " in #(
13387: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13388: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13389: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13390: esac
13391:
13392: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393: (eval $ac_compile) 2>&5
13394: ac_status=$?
13395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396: (exit $ac_status); }; then
13397: # Parse the compiler output and extract the necessary
13398: # objects, libraries and library flags.
13399:
13400: # Sentinel used to keep track of whether or not we are before
13401: # the conftest object file.
13402: pre_test_object_deps_done=no
13403:
13404: for p in `eval "$output_verbose_link_cmd"`; do
13405: case ${prev}${p} in
13406:
13407: -L* | -R* | -l*)
13408: # Some compilers place space between "-{L,R}" and the path.
13409: # Remove the space.
13410: if test $p = "-L" ||
13411: test $p = "-R"; then
13412: prev=$p
13413: continue
13414: fi
13415:
13416: # Expand the sysroot to ease extracting the directories later.
13417: if test -z "$prev"; then
13418: case $p in
13419: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13420: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13421: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13422: esac
13423: fi
13424: case $p in
13425: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13426: esac
13427: if test "$pre_test_object_deps_done" = no; then
13428: case ${prev} in
13429: -L | -R)
13430: # Internal compiler library paths should come after those
13431: # provided the user. The postdeps already come after the
13432: # user supplied libs so there is no need to process them.
13433: if test -z "$compiler_lib_search_path_CXX"; then
13434: compiler_lib_search_path_CXX="${prev}${p}"
13435: else
13436: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13437: fi
13438: ;;
13439: # The "-l" case would never come before the object being
13440: # linked, so don't bother handling this case.
13441: esac
13442: else
13443: if test -z "$postdeps_CXX"; then
13444: postdeps_CXX="${prev}${p}"
13445: else
13446: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13447: fi
13448: fi
13449: prev=
13450: ;;
13451:
13452: *.lto.$objext) ;; # Ignore GCC LTO objects
13453: *.$objext)
13454: # This assumes that the test object file only shows up
13455: # once in the compiler output.
13456: if test "$p" = "conftest.$objext"; then
13457: pre_test_object_deps_done=yes
13458: continue
13459: fi
13460:
13461: if test "$pre_test_object_deps_done" = no; then
13462: if test -z "$predep_objects_CXX"; then
13463: predep_objects_CXX="$p"
13464: else
13465: predep_objects_CXX="$predep_objects_CXX $p"
13466: fi
13467: else
13468: if test -z "$postdep_objects_CXX"; then
13469: postdep_objects_CXX="$p"
13470: else
13471: postdep_objects_CXX="$postdep_objects_CXX $p"
13472: fi
13473: fi
13474: ;;
13475:
13476: *) ;; # Ignore the rest.
13477:
13478: esac
13479: done
13480:
13481: # Clean up.
13482: rm -f a.out a.exe
13483: else
13484: echo "libtool.m4: error: problem compiling CXX test program"
13485: fi
13486:
13487: $RM -f confest.$objext
13488: CFLAGS=$_lt_libdeps_save_CFLAGS
13489:
13490: # PORTME: override above test on systems where it is broken
13491: case $host_os in
13492: interix[3-9]*)
13493: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13494: # hack all around it, let's just trust "g++" to DTRT.
13495: predep_objects_CXX=
13496: postdep_objects_CXX=
13497: postdeps_CXX=
13498: ;;
13499:
13500: linux*)
13501: case `$CC -V 2>&1 | sed 5q` in
13502: *Sun\ C*)
13503: # Sun C++ 5.9
13504:
13505: # The more standards-conforming stlport4 library is
13506: # incompatible with the Cstd library. Avoid specifying
13507: # it if it's in CXXFLAGS. Ignore libCrun as
13508: # -library=stlport4 depends on it.
13509: case " $CXX $CXXFLAGS " in
13510: *" -library=stlport4 "*)
13511: solaris_use_stlport4=yes
13512: ;;
13513: esac
13514:
13515: if test "$solaris_use_stlport4" != yes; then
13516: postdeps_CXX='-library=Cstd -library=Crun'
13517: fi
13518: ;;
13519: esac
13520: ;;
13521:
13522: solaris*)
13523: case $cc_basename in
13524: CC* | sunCC*)
13525: # The more standards-conforming stlport4 library is
13526: # incompatible with the Cstd library. Avoid specifying
13527: # it if it's in CXXFLAGS. Ignore libCrun as
13528: # -library=stlport4 depends on it.
13529: case " $CXX $CXXFLAGS " in
13530: *" -library=stlport4 "*)
13531: solaris_use_stlport4=yes
13532: ;;
13533: esac
13534:
13535: # Adding this requires a known-good setup of shared libraries for
13536: # Sun compiler versions before 5.6, else PIC objects from an old
13537: # archive will be linked into the output, leading to subtle bugs.
13538: if test "$solaris_use_stlport4" != yes; then
13539: postdeps_CXX='-library=Cstd -library=Crun'
13540: fi
13541: ;;
13542: esac
13543: ;;
13544: esac
13545:
13546:
13547: case " $postdeps_CXX " in
13548: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13549: esac
13550: compiler_lib_search_dirs_CXX=
13551: if test -n "${compiler_lib_search_path_CXX}"; then
13552: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13553: fi
13554:
13555:
13556:
13557:
13558:
13559:
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574:
13575:
13576:
13577:
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585: lt_prog_compiler_wl_CXX=
13586: lt_prog_compiler_pic_CXX=
13587: lt_prog_compiler_static_CXX=
13588:
13589:
13590: # C++ specific cases for pic, static, wl, etc.
13591: if test "$GXX" = yes; then
13592: lt_prog_compiler_wl_CXX='-Wl,'
13593: lt_prog_compiler_static_CXX='-static'
13594:
13595: case $host_os in
13596: aix*)
13597: # All AIX code is PIC.
13598: if test "$host_cpu" = ia64; then
13599: # AIX 5 now supports IA64 processor
13600: lt_prog_compiler_static_CXX='-Bstatic'
13601: fi
13602: ;;
13603:
13604: amigaos*)
13605: case $host_cpu in
13606: powerpc)
13607: # see comment about AmigaOS4 .so support
13608: lt_prog_compiler_pic_CXX='-fPIC'
13609: ;;
13610: m68k)
13611: # FIXME: we need at least 68020 code to build shared libraries, but
13612: # adding the `-m68020' flag to GCC prevents building anything better,
13613: # like `-m68040'.
13614: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13615: ;;
13616: esac
13617: ;;
13618:
13619: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13620: # PIC is the default for these OSes.
13621: ;;
13622: mingw* | cygwin* | os2* | pw32* | cegcc*)
13623: # This hack is so that the source file can tell whether it is being
13624: # built for inclusion in a dll (and should export symbols for example).
13625: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13626: # (--disable-auto-import) libraries
13627: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13628: ;;
13629: darwin* | rhapsody*)
13630: # PIC is the default on this platform
13631: # Common symbols not allowed in MH_DYLIB files
13632: lt_prog_compiler_pic_CXX='-fno-common'
13633: ;;
13634: *djgpp*)
13635: # DJGPP does not support shared libraries at all
13636: lt_prog_compiler_pic_CXX=
13637: ;;
13638: haiku*)
13639: # PIC is the default for Haiku.
13640: # The "-static" flag exists, but is broken.
13641: lt_prog_compiler_static_CXX=
13642: ;;
13643: interix[3-9]*)
13644: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13645: # Instead, we relocate shared libraries at runtime.
13646: ;;
13647: sysv4*MP*)
13648: if test -d /usr/nec; then
13649: lt_prog_compiler_pic_CXX=-Kconform_pic
13650: fi
13651: ;;
13652: hpux*)
13653: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13654: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13655: # sets the default TLS model and affects inlining.
13656: case $host_cpu in
13657: hppa*64*)
13658: ;;
13659: *)
13660: lt_prog_compiler_pic_CXX='-fPIC'
13661: ;;
13662: esac
13663: ;;
13664: *qnx* | *nto*)
13665: # QNX uses GNU C++, but need to define -shared option too, otherwise
13666: # it will coredump.
13667: lt_prog_compiler_pic_CXX='-fPIC -shared'
13668: ;;
13669: *)
13670: lt_prog_compiler_pic_CXX='-fPIC'
13671: ;;
13672: esac
13673: else
13674: case $host_os in
13675: aix[4-9]*)
13676: # All AIX code is PIC.
13677: if test "$host_cpu" = ia64; then
13678: # AIX 5 now supports IA64 processor
13679: lt_prog_compiler_static_CXX='-Bstatic'
13680: else
13681: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13682: fi
13683: ;;
13684: chorus*)
13685: case $cc_basename in
13686: cxch68*)
13687: # Green Hills C++ Compiler
13688: # _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"
13689: ;;
13690: esac
13691: ;;
13692: mingw* | cygwin* | os2* | pw32* | cegcc*)
13693: # This hack is so that the source file can tell whether it is being
13694: # built for inclusion in a dll (and should export symbols for example).
13695: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13696: ;;
13697: dgux*)
13698: case $cc_basename in
13699: ec++*)
13700: lt_prog_compiler_pic_CXX='-KPIC'
13701: ;;
13702: ghcx*)
13703: # Green Hills C++ Compiler
13704: lt_prog_compiler_pic_CXX='-pic'
13705: ;;
13706: *)
13707: ;;
13708: esac
13709: ;;
13710: freebsd* | dragonfly*)
13711: # FreeBSD uses GNU C++
13712: ;;
13713: hpux9* | hpux10* | hpux11*)
13714: case $cc_basename in
13715: CC*)
13716: lt_prog_compiler_wl_CXX='-Wl,'
13717: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13718: if test "$host_cpu" != ia64; then
13719: lt_prog_compiler_pic_CXX='+Z'
13720: fi
13721: ;;
13722: aCC*)
13723: lt_prog_compiler_wl_CXX='-Wl,'
13724: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13725: case $host_cpu in
13726: hppa*64*|ia64*)
13727: # +Z the default
13728: ;;
13729: *)
13730: lt_prog_compiler_pic_CXX='+Z'
13731: ;;
13732: esac
13733: ;;
13734: *)
13735: ;;
13736: esac
13737: ;;
13738: interix*)
13739: # This is c89, which is MS Visual C++ (no shared libs)
13740: # Anyone wants to do a port?
13741: ;;
13742: irix5* | irix6* | nonstopux*)
13743: case $cc_basename in
13744: CC*)
13745: lt_prog_compiler_wl_CXX='-Wl,'
13746: lt_prog_compiler_static_CXX='-non_shared'
13747: # CC pic flag -KPIC is the default.
13748: ;;
13749: *)
13750: ;;
13751: esac
13752: ;;
13753: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13754: case $cc_basename in
13755: KCC*)
13756: # KAI C++ Compiler
13757: lt_prog_compiler_wl_CXX='--backend -Wl,'
13758: lt_prog_compiler_pic_CXX='-fPIC'
13759: ;;
13760: ecpc* )
13761: # old Intel C++ for x86_64 which still supported -KPIC.
13762: lt_prog_compiler_wl_CXX='-Wl,'
13763: lt_prog_compiler_pic_CXX='-KPIC'
13764: lt_prog_compiler_static_CXX='-static'
13765: ;;
13766: icpc* )
13767: # Intel C++, used to be incompatible with GCC.
13768: # ICC 10 doesn't accept -KPIC any more.
13769: lt_prog_compiler_wl_CXX='-Wl,'
13770: lt_prog_compiler_pic_CXX='-fPIC'
13771: lt_prog_compiler_static_CXX='-static'
13772: ;;
13773: pgCC* | pgcpp*)
13774: # Portland Group C++ compiler
13775: lt_prog_compiler_wl_CXX='-Wl,'
13776: lt_prog_compiler_pic_CXX='-fpic'
13777: lt_prog_compiler_static_CXX='-Bstatic'
13778: ;;
13779: cxx*)
13780: # Compaq C++
13781: # Make sure the PIC flag is empty. It appears that all Alpha
13782: # Linux and Compaq Tru64 Unix objects are PIC.
13783: lt_prog_compiler_pic_CXX=
13784: lt_prog_compiler_static_CXX='-non_shared'
13785: ;;
13786: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13787: # IBM XL 8.0, 9.0 on PPC and BlueGene
13788: lt_prog_compiler_wl_CXX='-Wl,'
13789: lt_prog_compiler_pic_CXX='-qpic'
13790: lt_prog_compiler_static_CXX='-qstaticlink'
13791: ;;
13792: *)
13793: case `$CC -V 2>&1 | sed 5q` in
13794: *Sun\ C*)
13795: # Sun C++ 5.9
13796: lt_prog_compiler_pic_CXX='-KPIC'
13797: lt_prog_compiler_static_CXX='-Bstatic'
13798: lt_prog_compiler_wl_CXX='-Qoption ld '
13799: ;;
13800: esac
13801: ;;
13802: esac
13803: ;;
13804: lynxos*)
13805: ;;
13806: m88k*)
13807: ;;
13808: mvs*)
13809: case $cc_basename in
13810: cxx*)
13811: lt_prog_compiler_pic_CXX='-W c,exportall'
13812: ;;
13813: *)
13814: ;;
13815: esac
13816: ;;
13817: netbsd*)
13818: ;;
13819: *qnx* | *nto*)
13820: # QNX uses GNU C++, but need to define -shared option too, otherwise
13821: # it will coredump.
13822: lt_prog_compiler_pic_CXX='-fPIC -shared'
13823: ;;
13824: osf3* | osf4* | osf5*)
13825: case $cc_basename in
13826: KCC*)
13827: lt_prog_compiler_wl_CXX='--backend -Wl,'
13828: ;;
13829: RCC*)
13830: # Rational C++ 2.4.1
13831: lt_prog_compiler_pic_CXX='-pic'
13832: ;;
13833: cxx*)
13834: # Digital/Compaq C++
13835: lt_prog_compiler_wl_CXX='-Wl,'
13836: # Make sure the PIC flag is empty. It appears that all Alpha
13837: # Linux and Compaq Tru64 Unix objects are PIC.
13838: lt_prog_compiler_pic_CXX=
13839: lt_prog_compiler_static_CXX='-non_shared'
13840: ;;
13841: *)
13842: ;;
13843: esac
13844: ;;
13845: psos*)
13846: ;;
13847: solaris*)
13848: case $cc_basename in
13849: CC* | sunCC*)
13850: # Sun C++ 4.2, 5.x and Centerline C++
13851: lt_prog_compiler_pic_CXX='-KPIC'
13852: lt_prog_compiler_static_CXX='-Bstatic'
13853: lt_prog_compiler_wl_CXX='-Qoption ld '
13854: ;;
13855: gcx*)
13856: # Green Hills C++ Compiler
13857: lt_prog_compiler_pic_CXX='-PIC'
13858: ;;
13859: *)
13860: ;;
13861: esac
13862: ;;
13863: sunos4*)
13864: case $cc_basename in
13865: CC*)
13866: # Sun C++ 4.x
13867: lt_prog_compiler_pic_CXX='-pic'
13868: lt_prog_compiler_static_CXX='-Bstatic'
13869: ;;
13870: lcc*)
13871: # Lucid
13872: lt_prog_compiler_pic_CXX='-pic'
13873: ;;
13874: *)
13875: ;;
13876: esac
13877: ;;
13878: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13879: case $cc_basename in
13880: CC*)
13881: lt_prog_compiler_wl_CXX='-Wl,'
13882: lt_prog_compiler_pic_CXX='-KPIC'
13883: lt_prog_compiler_static_CXX='-Bstatic'
13884: ;;
13885: esac
13886: ;;
13887: tandem*)
13888: case $cc_basename in
13889: NCC*)
13890: # NonStop-UX NCC 3.20
13891: lt_prog_compiler_pic_CXX='-KPIC'
13892: ;;
13893: *)
13894: ;;
13895: esac
13896: ;;
13897: vxworks*)
13898: ;;
13899: *)
13900: lt_prog_compiler_can_build_shared_CXX=no
13901: ;;
13902: esac
13903: fi
13904:
13905: case $host_os in
13906: # For platforms which do not support PIC, -DPIC is meaningless:
13907: *djgpp*)
13908: lt_prog_compiler_pic_CXX=
13909: ;;
13910: *)
13911: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13912: ;;
13913: esac
13914:
13915: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13916: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13917: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13918: echo $ECHO_N "(cached) $ECHO_C" >&6
13919: else
13920: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13921: fi
13922: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13923: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
13924: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13925:
13926: #
13927: # Check to make sure the PIC flag actually works.
13928: #
13929: if test -n "$lt_prog_compiler_pic_CXX"; then
13930: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13931: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13932: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13933: echo $ECHO_N "(cached) $ECHO_C" >&6
13934: else
13935: lt_cv_prog_compiler_pic_works_CXX=no
13936: ac_outfile=conftest.$ac_objext
13937: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13938: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13939: # Insert the option either (1) after the last *FLAGS variable, or
13940: # (2) before a word containing "conftest.", or (3) at the end.
13941: # Note that $ac_compile itself does not contain backslashes and begins
13942: # with a dollar sign (not a hyphen), so the echo should work correctly.
13943: # The option is referenced via a variable to avoid confusing sed.
13944: lt_compile=`echo "$ac_compile" | $SED \
13945: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13946: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13947: -e 's:$: $lt_compiler_flag:'`
13948: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13949: (eval "$lt_compile" 2>conftest.err)
13950: ac_status=$?
13951: cat conftest.err >&5
13952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953: if (exit $ac_status) && test -s "$ac_outfile"; then
13954: # The compiler can only warn and ignore the option if not recognized
13955: # So say no if there are warnings other than the usual output.
13956: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13957: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13958: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13959: lt_cv_prog_compiler_pic_works_CXX=yes
13960: fi
13961: fi
13962: $RM conftest*
13963:
13964: fi
13965: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13966: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13967:
13968: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13969: case $lt_prog_compiler_pic_CXX in
13970: "" | " "*) ;;
13971: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13972: esac
13973: else
13974: lt_prog_compiler_pic_CXX=
13975: lt_prog_compiler_can_build_shared_CXX=no
13976: fi
13977:
13978: fi
13979:
13980:
13981:
13982:
13983:
13984: #
13985: # Check to make sure the static flag actually works.
13986: #
13987: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13988: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13989: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13990: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13991: echo $ECHO_N "(cached) $ECHO_C" >&6
13992: else
13993: lt_cv_prog_compiler_static_works_CXX=no
13994: save_LDFLAGS="$LDFLAGS"
13995: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13996: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13997: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13998: # The linker can only warn and ignore the option if not recognized
13999: # So say no if there are warnings
14000: if test -s conftest.err; then
14001: # Append any errors to the config.log.
14002: cat conftest.err 1>&5
14003: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14004: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14005: if diff conftest.exp conftest.er2 >/dev/null; then
14006: lt_cv_prog_compiler_static_works_CXX=yes
14007: fi
14008: else
14009: lt_cv_prog_compiler_static_works_CXX=yes
14010: fi
14011: fi
14012: $RM -r conftest*
14013: LDFLAGS="$save_LDFLAGS"
14014:
14015: fi
14016: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14017: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14018:
14019: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14020: :
14021: else
14022: lt_prog_compiler_static_CXX=
14023: fi
14024:
14025:
14026:
14027:
14028: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14029: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14030: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14031: echo $ECHO_N "(cached) $ECHO_C" >&6
14032: else
14033: lt_cv_prog_compiler_c_o_CXX=no
14034: $RM -r conftest 2>/dev/null
14035: mkdir conftest
14036: cd conftest
14037: mkdir out
14038: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14039:
14040: lt_compiler_flag="-o out/conftest2.$ac_objext"
14041: # Insert the option either (1) after the last *FLAGS variable, or
14042: # (2) before a word containing "conftest.", or (3) at the end.
14043: # Note that $ac_compile itself does not contain backslashes and begins
14044: # with a dollar sign (not a hyphen), so the echo should work correctly.
14045: lt_compile=`echo "$ac_compile" | $SED \
14046: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048: -e 's:$: $lt_compiler_flag:'`
14049: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14050: (eval "$lt_compile" 2>out/conftest.err)
14051: ac_status=$?
14052: cat out/conftest.err >&5
14053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14055: then
14056: # The compiler can only warn and ignore the option if not recognized
14057: # So say no if there are warnings
14058: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14059: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14060: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14061: lt_cv_prog_compiler_c_o_CXX=yes
14062: fi
14063: fi
14064: chmod u+w . 2>&5
14065: $RM conftest*
14066: # SGI C++ compiler will create directory out/ii_files/ for
14067: # template instantiation
14068: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14069: $RM out/* && rmdir out
14070: cd ..
14071: $RM -r conftest
14072: $RM conftest*
14073:
14074: fi
14075: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14076: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14077:
14078:
14079:
14080: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14081: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14082: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14083: echo $ECHO_N "(cached) $ECHO_C" >&6
14084: else
14085: lt_cv_prog_compiler_c_o_CXX=no
14086: $RM -r conftest 2>/dev/null
14087: mkdir conftest
14088: cd conftest
14089: mkdir out
14090: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14091:
14092: lt_compiler_flag="-o out/conftest2.$ac_objext"
14093: # Insert the option either (1) after the last *FLAGS variable, or
14094: # (2) before a word containing "conftest.", or (3) at the end.
14095: # Note that $ac_compile itself does not contain backslashes and begins
14096: # with a dollar sign (not a hyphen), so the echo should work correctly.
14097: lt_compile=`echo "$ac_compile" | $SED \
14098: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14099: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14100: -e 's:$: $lt_compiler_flag:'`
14101: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14102: (eval "$lt_compile" 2>out/conftest.err)
14103: ac_status=$?
14104: cat out/conftest.err >&5
14105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14107: then
14108: # The compiler can only warn and ignore the option if not recognized
14109: # So say no if there are warnings
14110: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14111: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14112: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14113: lt_cv_prog_compiler_c_o_CXX=yes
14114: fi
14115: fi
14116: chmod u+w . 2>&5
14117: $RM conftest*
14118: # SGI C++ compiler will create directory out/ii_files/ for
14119: # template instantiation
14120: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14121: $RM out/* && rmdir out
14122: cd ..
14123: $RM -r conftest
14124: $RM conftest*
14125:
14126: fi
14127: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14128: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14129:
14130:
14131:
14132:
14133: hard_links="nottested"
14134: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14135: # do not overwrite the value of need_locks provided by the user
14136: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14137: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14138: hard_links=yes
14139: $RM conftest*
14140: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14141: touch conftest.a
14142: ln conftest.a conftest.b 2>&5 || hard_links=no
14143: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144: echo "$as_me:$LINENO: result: $hard_links" >&5
14145: echo "${ECHO_T}$hard_links" >&6
14146: if test "$hard_links" = no; then
14147: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14148: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14149: need_locks=warn
14150: fi
14151: else
14152: need_locks=no
14153: fi
14154:
14155:
14156:
14157: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14159:
14160: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14162: case $host_os in
14163: aix[4-9]*)
14164: # If we're using GNU nm, then we don't want the "-C" option.
14165: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14166: # Also, AIX nm treats weak defined symbols like other global defined
14167: # symbols, whereas GNU nm marks them as "W".
14168: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14169: 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'
14170: else
14171: 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'
14172: fi
14173: ;;
14174: pw32*)
14175: export_symbols_cmds_CXX="$ltdll_cmds"
14176: ;;
14177: cygwin* | mingw* | cegcc*)
14178: case $cc_basename in
14179: cl*)
14180: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14181: ;;
14182: *)
14183: 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'
14184: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14185: ;;
14186: esac
14187: ;;
14188: *)
14189: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14190: ;;
14191: esac
14192:
14193: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14194: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14195: test "$ld_shlibs_CXX" = no && can_build_shared=no
14196:
14197: with_gnu_ld_CXX=$with_gnu_ld
14198:
14199:
14200:
14201:
14202:
14203:
14204: #
14205: # Do we need to explicitly link libc?
14206: #
14207: case "x$archive_cmds_need_lc_CXX" in
14208: x|xyes)
14209: # Assume -lc should be added
14210: archive_cmds_need_lc_CXX=yes
14211:
14212: if test "$enable_shared" = yes && test "$GCC" = yes; then
14213: case $archive_cmds_CXX in
14214: *'~'*)
14215: # FIXME: we may have to deal with multi-command sequences.
14216: ;;
14217: '$CC '*)
14218: # Test whether the compiler implicitly links with -lc since on some
14219: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14220: # to ld, don't add -lc before -lgcc.
14221: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14222: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14223: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14224: echo $ECHO_N "(cached) $ECHO_C" >&6
14225: else
14226: $RM conftest*
14227: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14228:
14229: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230: (eval $ac_compile) 2>&5
14231: ac_status=$?
14232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233: (exit $ac_status); } 2>conftest.err; then
14234: soname=conftest
14235: lib=conftest
14236: libobjs=conftest.$ac_objext
14237: deplibs=
14238: wl=$lt_prog_compiler_wl_CXX
14239: pic_flag=$lt_prog_compiler_pic_CXX
14240: compiler_flags=-v
14241: linker_flags=-v
14242: verstring=
14243: output_objdir=.
14244: libname=conftest
14245: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14246: allow_undefined_flag_CXX=
14247: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14248: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14249: ac_status=$?
14250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251: (exit $ac_status); }
14252: then
14253: lt_cv_archive_cmds_need_lc_CXX=no
14254: else
14255: lt_cv_archive_cmds_need_lc_CXX=yes
14256: fi
14257: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14258: else
14259: cat conftest.err 1>&5
14260: fi
14261: $RM conftest*
14262:
14263: fi
14264: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14265: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14266: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14267: ;;
14268: esac
14269: fi
14270: ;;
14271: esac
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:
14324:
14325:
14326:
14327:
14328:
14329:
14330:
14331:
14332:
14333:
14334: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14335: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14336:
14337: library_names_spec=
14338: libname_spec='lib$name'
14339: soname_spec=
14340: shrext_cmds=".so"
14341: postinstall_cmds=
14342: postuninstall_cmds=
14343: finish_cmds=
14344: finish_eval=
14345: shlibpath_var=
14346: shlibpath_overrides_runpath=unknown
14347: version_type=none
14348: dynamic_linker="$host_os ld.so"
14349: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14350: need_lib_prefix=unknown
14351: hardcode_into_libs=no
14352:
14353: # when you set need_version to no, make sure it does not cause -set_version
14354: # flags to be left without arguments
14355: need_version=unknown
14356:
14357: case $host_os in
14358: aix3*)
14359: version_type=linux # correct to gnu/linux during the next big refactor
14360: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14361: shlibpath_var=LIBPATH
14362:
14363: # AIX 3 has no versioning support, so we append a major version to the name.
14364: soname_spec='${libname}${release}${shared_ext}$major'
14365: ;;
14366:
14367: aix[4-9]*)
14368: version_type=linux # correct to gnu/linux during the next big refactor
14369: need_lib_prefix=no
14370: need_version=no
14371: hardcode_into_libs=yes
14372: if test "$host_cpu" = ia64; then
14373: # AIX 5 supports IA64
14374: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14375: shlibpath_var=LD_LIBRARY_PATH
14376: else
14377: # With GCC up to 2.95.x, collect2 would create an import file
14378: # for dependence libraries. The import file would start with
14379: # the line `#! .'. This would cause the generated library to
14380: # depend on `.', always an invalid library. This was fixed in
14381: # development snapshots of GCC prior to 3.0.
14382: case $host_os in
14383: aix4 | aix4.[01] | aix4.[01].*)
14384: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14385: echo ' yes '
14386: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14387: :
14388: else
14389: can_build_shared=no
14390: fi
14391: ;;
14392: esac
14393: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14394: # soname into executable. Probably we can add versioning support to
14395: # collect2, so additional links can be useful in future.
14396: if test "$aix_use_runtimelinking" = yes; then
14397: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14398: # instead of lib<name>.a to let people know that these are not
14399: # typical AIX shared libraries.
14400: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401: else
14402: # We preserve .a as extension for shared libraries through AIX4.2
14403: # and later when we are not doing run time linking.
14404: library_names_spec='${libname}${release}.a $libname.a'
14405: soname_spec='${libname}${release}${shared_ext}$major'
14406: fi
14407: shlibpath_var=LIBPATH
14408: fi
14409: ;;
14410:
14411: amigaos*)
14412: case $host_cpu in
14413: powerpc)
14414: # Since July 2007 AmigaOS4 officially supports .so libraries.
14415: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14416: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417: ;;
14418: m68k)
14419: library_names_spec='$libname.ixlibrary $libname.a'
14420: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14421: 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'
14422: ;;
14423: esac
14424: ;;
14425:
14426: beos*)
14427: library_names_spec='${libname}${shared_ext}'
14428: dynamic_linker="$host_os ld.so"
14429: shlibpath_var=LIBRARY_PATH
14430: ;;
14431:
14432: bsdi[45]*)
14433: version_type=linux # correct to gnu/linux during the next big refactor
14434: need_version=no
14435: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436: soname_spec='${libname}${release}${shared_ext}$major'
14437: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14438: shlibpath_var=LD_LIBRARY_PATH
14439: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14440: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14441: # the default ld.so.conf also contains /usr/contrib/lib and
14442: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14443: # libtool to hard-code these into programs
14444: ;;
14445:
14446: cygwin* | mingw* | pw32* | cegcc*)
14447: version_type=windows
14448: shrext_cmds=".dll"
14449: need_version=no
14450: need_lib_prefix=no
14451:
14452: case $GCC,$cc_basename in
14453: yes,*)
14454: # gcc
14455: library_names_spec='$libname.dll.a'
14456: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14457: postinstall_cmds='base_file=`basename \${file}`~
14458: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14459: dldir=$destdir/`dirname \$dlpath`~
14460: test -d \$dldir || mkdir -p \$dldir~
14461: $install_prog $dir/$dlname \$dldir/$dlname~
14462: chmod a+x \$dldir/$dlname~
14463: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14464: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14465: fi'
14466: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14467: dlpath=$dir/\$dldll~
14468: $RM \$dlpath'
14469: shlibpath_overrides_runpath=yes
14470:
14471: case $host_os in
14472: cygwin*)
14473: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14474: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14475:
14476: ;;
14477: mingw* | cegcc*)
14478: # MinGW DLLs use traditional 'lib' prefix
14479: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480: ;;
14481: pw32*)
14482: # pw32 DLLs use 'pw' prefix rather than 'lib'
14483: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484: ;;
14485: esac
14486: dynamic_linker='Win32 ld.exe'
14487: ;;
14488:
14489: *,cl*)
14490: # Native MSVC
14491: libname_spec='$name'
14492: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14493: library_names_spec='${libname}.dll.lib'
14494:
14495: case $build_os in
14496: mingw*)
14497: sys_lib_search_path_spec=
14498: lt_save_ifs=$IFS
14499: IFS=';'
14500: for lt_path in $LIB
14501: do
14502: IFS=$lt_save_ifs
14503: # Let DOS variable expansion print the short 8.3 style file name.
14504: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14505: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14506: done
14507: IFS=$lt_save_ifs
14508: # Convert to MSYS style.
14509: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14510: ;;
14511: cygwin*)
14512: # Convert to unix form, then to dos form, then back to unix form
14513: # but this time dos style (no spaces!) so that the unix form looks
14514: # like /cygdrive/c/PROGRA~1:/cygdr...
14515: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14516: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14517: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14518: ;;
14519: *)
14520: sys_lib_search_path_spec="$LIB"
14521: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14522: # It is most probably a Windows format PATH.
14523: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14524: else
14525: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14526: fi
14527: # FIXME: find the short name or the path components, as spaces are
14528: # common. (e.g. "Program Files" -> "PROGRA~1")
14529: ;;
14530: esac
14531:
14532: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14533: postinstall_cmds='base_file=`basename \${file}`~
14534: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14535: dldir=$destdir/`dirname \$dlpath`~
14536: test -d \$dldir || mkdir -p \$dldir~
14537: $install_prog $dir/$dlname \$dldir/$dlname'
14538: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14539: dlpath=$dir/\$dldll~
14540: $RM \$dlpath'
14541: shlibpath_overrides_runpath=yes
14542: dynamic_linker='Win32 link.exe'
14543: ;;
14544:
14545: *)
14546: # Assume MSVC wrapper
14547: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14548: dynamic_linker='Win32 ld.exe'
14549: ;;
14550: esac
14551: # FIXME: first we should search . and the directory the executable is in
14552: shlibpath_var=PATH
14553: ;;
14554:
14555: darwin* | rhapsody*)
14556: dynamic_linker="$host_os dyld"
14557: version_type=darwin
14558: need_lib_prefix=no
14559: need_version=no
14560: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14561: soname_spec='${libname}${release}${major}$shared_ext'
14562: shlibpath_overrides_runpath=yes
14563: shlibpath_var=DYLD_LIBRARY_PATH
14564: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14565:
14566: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14567: ;;
14568:
14569: dgux*)
14570: version_type=linux # correct to gnu/linux during the next big refactor
14571: need_lib_prefix=no
14572: need_version=no
14573: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14574: soname_spec='${libname}${release}${shared_ext}$major'
14575: shlibpath_var=LD_LIBRARY_PATH
14576: ;;
14577:
14578: freebsd* | dragonfly*)
14579: # DragonFly does not have aout. When/if they implement a new
14580: # versioning mechanism, adjust this.
14581: if test -x /usr/bin/objformat; then
14582: objformat=`/usr/bin/objformat`
14583: else
14584: case $host_os in
14585: freebsd[23].*) objformat=aout ;;
14586: *) objformat=elf ;;
14587: esac
14588: fi
14589: version_type=freebsd-$objformat
14590: case $version_type in
14591: freebsd-elf*)
14592: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14593: need_version=no
14594: need_lib_prefix=no
14595: ;;
14596: freebsd-*)
14597: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14598: need_version=yes
14599: ;;
14600: esac
14601: shlibpath_var=LD_LIBRARY_PATH
14602: case $host_os in
14603: freebsd2.*)
14604: shlibpath_overrides_runpath=yes
14605: ;;
14606: freebsd3.[01]* | freebsdelf3.[01]*)
14607: shlibpath_overrides_runpath=yes
14608: hardcode_into_libs=yes
14609: ;;
14610: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14611: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14612: shlibpath_overrides_runpath=no
14613: hardcode_into_libs=yes
14614: ;;
14615: *) # from 4.6 on, and DragonFly
14616: shlibpath_overrides_runpath=yes
14617: hardcode_into_libs=yes
14618: ;;
14619: esac
14620: ;;
14621:
14622: gnu*)
14623: version_type=linux # correct to gnu/linux during the next big refactor
14624: need_lib_prefix=no
14625: need_version=no
14626: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14627: soname_spec='${libname}${release}${shared_ext}$major'
14628: shlibpath_var=LD_LIBRARY_PATH
14629: shlibpath_overrides_runpath=no
14630: hardcode_into_libs=yes
14631: ;;
14632:
14633: haiku*)
14634: version_type=linux # correct to gnu/linux during the next big refactor
14635: need_lib_prefix=no
14636: need_version=no
14637: dynamic_linker="$host_os runtime_loader"
14638: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14639: soname_spec='${libname}${release}${shared_ext}$major'
14640: shlibpath_var=LIBRARY_PATH
14641: shlibpath_overrides_runpath=yes
14642: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14643: hardcode_into_libs=yes
14644: ;;
14645:
14646: hpux9* | hpux10* | hpux11*)
14647: # Give a soname corresponding to the major version so that dld.sl refuses to
14648: # link against other versions.
14649: version_type=sunos
14650: need_lib_prefix=no
14651: need_version=no
14652: case $host_cpu in
14653: ia64*)
14654: shrext_cmds='.so'
14655: hardcode_into_libs=yes
14656: dynamic_linker="$host_os dld.so"
14657: shlibpath_var=LD_LIBRARY_PATH
14658: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14659: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660: soname_spec='${libname}${release}${shared_ext}$major'
14661: if test "X$HPUX_IA64_MODE" = X32; then
14662: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14663: else
14664: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14665: fi
14666: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14667: ;;
14668: hppa*64*)
14669: shrext_cmds='.sl'
14670: hardcode_into_libs=yes
14671: dynamic_linker="$host_os dld.sl"
14672: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14673: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14677: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14678: ;;
14679: *)
14680: shrext_cmds='.sl'
14681: dynamic_linker="$host_os dld.sl"
14682: shlibpath_var=SHLIB_PATH
14683: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14684: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685: soname_spec='${libname}${release}${shared_ext}$major'
14686: ;;
14687: esac
14688: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14689: postinstall_cmds='chmod 555 $lib'
14690: # or fails outright, so override atomically:
14691: install_override_mode=555
14692: ;;
14693:
14694: interix[3-9]*)
14695: version_type=linux # correct to gnu/linux during the next big refactor
14696: need_lib_prefix=no
14697: need_version=no
14698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14699: soname_spec='${libname}${release}${shared_ext}$major'
14700: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14701: shlibpath_var=LD_LIBRARY_PATH
14702: shlibpath_overrides_runpath=no
14703: hardcode_into_libs=yes
14704: ;;
14705:
14706: irix5* | irix6* | nonstopux*)
14707: case $host_os in
14708: nonstopux*) version_type=nonstopux ;;
14709: *)
14710: if test "$lt_cv_prog_gnu_ld" = yes; then
14711: version_type=linux # correct to gnu/linux during the next big refactor
14712: else
14713: version_type=irix
14714: fi ;;
14715: esac
14716: need_lib_prefix=no
14717: need_version=no
14718: soname_spec='${libname}${release}${shared_ext}$major'
14719: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14720: case $host_os in
14721: irix5* | nonstopux*)
14722: libsuff= shlibsuff=
14723: ;;
14724: *)
14725: case $LD in # libtool.m4 will add one of these switches to LD
14726: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14727: libsuff= shlibsuff= libmagic=32-bit;;
14728: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14729: libsuff=32 shlibsuff=N32 libmagic=N32;;
14730: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14731: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14732: *) libsuff= shlibsuff= libmagic=never-match;;
14733: esac
14734: ;;
14735: esac
14736: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14737: shlibpath_overrides_runpath=no
14738: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14739: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14740: hardcode_into_libs=yes
14741: ;;
14742:
14743: # No shared lib support for Linux oldld, aout, or coff.
14744: linux*oldld* | linux*aout* | linux*coff*)
14745: dynamic_linker=no
14746: ;;
14747:
14748: # This must be glibc/ELF.
14749: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14750: version_type=linux # correct to gnu/linux during the next big refactor
14751: need_lib_prefix=no
14752: need_version=no
14753: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754: soname_spec='${libname}${release}${shared_ext}$major'
14755: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14756: shlibpath_var=LD_LIBRARY_PATH
14757: shlibpath_overrides_runpath=no
14758:
14759: # Some binutils ld are patched to set DT_RUNPATH
14760: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14761: echo $ECHO_N "(cached) $ECHO_C" >&6
14762: else
14763: lt_cv_shlibpath_overrides_runpath=no
14764: save_LDFLAGS=$LDFLAGS
14765: save_libdir=$libdir
14766: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14767: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14768: cat >conftest.$ac_ext <<_ACEOF
14769: /* confdefs.h. */
14770: _ACEOF
14771: cat confdefs.h >>conftest.$ac_ext
14772: cat >>conftest.$ac_ext <<_ACEOF
14773: /* end confdefs.h. */
14774:
14775: int
14776: main ()
14777: {
14778:
14779: ;
14780: return 0;
14781: }
14782: _ACEOF
14783: rm -f conftest.$ac_objext conftest$ac_exeext
14784: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14785: (eval $ac_link) 2>conftest.er1
14786: ac_status=$?
14787: grep -v '^ *+' conftest.er1 >conftest.err
14788: rm -f conftest.er1
14789: cat conftest.err >&5
14790: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791: (exit $ac_status); } &&
14792: { ac_try='test -z "$ac_cxx_werror_flag"
14793: || test ! -s conftest.err'
14794: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795: (eval $ac_try) 2>&5
14796: ac_status=$?
14797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798: (exit $ac_status); }; } &&
14799: { ac_try='test -s conftest$ac_exeext'
14800: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801: (eval $ac_try) 2>&5
14802: ac_status=$?
14803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804: (exit $ac_status); }; }; then
14805: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14806: lt_cv_shlibpath_overrides_runpath=yes
14807: fi
14808:
14809: else
14810: echo "$as_me: failed program was:" >&5
14811: sed 's/^/| /' conftest.$ac_ext >&5
14812:
14813: fi
14814: rm -f conftest.err conftest.$ac_objext \
14815: conftest$ac_exeext conftest.$ac_ext
14816: LDFLAGS=$save_LDFLAGS
14817: libdir=$save_libdir
14818:
14819: fi
14820:
14821: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14822:
14823: # This implies no fast_install, which is unacceptable.
14824: # Some rework will be needed to allow for fast_install
14825: # before this can be enabled.
14826: hardcode_into_libs=yes
14827:
14828: # Append ld.so.conf contents to the search path
14829: if test -f /etc/ld.so.conf; then
14830: 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' ' '`
14831: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14832: fi
14833:
14834: # We used to test for /lib/ld.so.1 and disable shared libraries on
14835: # powerpc, because MkLinux only supported shared libraries with the
14836: # GNU dynamic linker. Since this was broken with cross compilers,
14837: # most powerpc-linux boxes support dynamic linking these days and
14838: # people can always --disable-shared, the test was removed, and we
14839: # assume the GNU/Linux dynamic linker is in use.
14840: dynamic_linker='GNU/Linux ld.so'
14841: ;;
14842:
14843: netbsd*)
14844: version_type=sunos
14845: need_lib_prefix=no
14846: need_version=no
14847: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14848: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850: dynamic_linker='NetBSD (a.out) ld.so'
14851: else
14852: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853: soname_spec='${libname}${release}${shared_ext}$major'
14854: dynamic_linker='NetBSD ld.elf_so'
14855: fi
14856: shlibpath_var=LD_LIBRARY_PATH
14857: shlibpath_overrides_runpath=yes
14858: hardcode_into_libs=yes
14859: ;;
14860:
14861: newsos6)
14862: version_type=linux # correct to gnu/linux during the next big refactor
14863: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864: shlibpath_var=LD_LIBRARY_PATH
14865: shlibpath_overrides_runpath=yes
14866: ;;
14867:
14868: *nto* | *qnx*)
14869: version_type=qnx
14870: need_lib_prefix=no
14871: need_version=no
14872: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873: soname_spec='${libname}${release}${shared_ext}$major'
14874: shlibpath_var=LD_LIBRARY_PATH
14875: shlibpath_overrides_runpath=no
14876: hardcode_into_libs=yes
14877: dynamic_linker='ldqnx.so'
14878: ;;
14879:
14880: openbsd*)
14881: version_type=sunos
14882: sys_lib_dlsearch_path_spec="/usr/lib"
14883: need_lib_prefix=no
14884: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14885: case $host_os in
14886: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14887: *) need_version=no ;;
14888: esac
14889: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14890: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891: shlibpath_var=LD_LIBRARY_PATH
14892: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14893: case $host_os in
14894: openbsd2.[89] | openbsd2.[89].*)
14895: shlibpath_overrides_runpath=no
14896: ;;
14897: *)
14898: shlibpath_overrides_runpath=yes
14899: ;;
14900: esac
14901: else
14902: shlibpath_overrides_runpath=yes
14903: fi
14904: ;;
14905:
14906: os2*)
14907: libname_spec='$name'
14908: shrext_cmds=".dll"
14909: need_lib_prefix=no
14910: library_names_spec='$libname${shared_ext} $libname.a'
14911: dynamic_linker='OS/2 ld.exe'
14912: shlibpath_var=LIBPATH
14913: ;;
14914:
14915: osf3* | osf4* | osf5*)
14916: version_type=osf
14917: need_lib_prefix=no
14918: need_version=no
14919: soname_spec='${libname}${release}${shared_ext}$major'
14920: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921: shlibpath_var=LD_LIBRARY_PATH
14922: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14923: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14924: ;;
14925:
14926: rdos*)
14927: dynamic_linker=no
14928: ;;
14929:
14930: solaris*)
14931: version_type=linux # correct to gnu/linux during the next big refactor
14932: need_lib_prefix=no
14933: need_version=no
14934: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935: soname_spec='${libname}${release}${shared_ext}$major'
14936: shlibpath_var=LD_LIBRARY_PATH
14937: shlibpath_overrides_runpath=yes
14938: hardcode_into_libs=yes
14939: # ldd complains unless libraries are executable
14940: postinstall_cmds='chmod +x $lib'
14941: ;;
14942:
14943: sunos4*)
14944: version_type=sunos
14945: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14946: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14947: shlibpath_var=LD_LIBRARY_PATH
14948: shlibpath_overrides_runpath=yes
14949: if test "$with_gnu_ld" = yes; then
14950: need_lib_prefix=no
14951: fi
14952: need_version=yes
14953: ;;
14954:
14955: sysv4 | sysv4.3*)
14956: version_type=linux # correct to gnu/linux during the next big refactor
14957: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958: soname_spec='${libname}${release}${shared_ext}$major'
14959: shlibpath_var=LD_LIBRARY_PATH
14960: case $host_vendor in
14961: sni)
14962: shlibpath_overrides_runpath=no
14963: need_lib_prefix=no
14964: runpath_var=LD_RUN_PATH
14965: ;;
14966: siemens)
14967: need_lib_prefix=no
14968: ;;
14969: motorola)
14970: need_lib_prefix=no
14971: need_version=no
14972: shlibpath_overrides_runpath=no
14973: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14974: ;;
14975: esac
14976: ;;
14977:
14978: sysv4*MP*)
14979: if test -d /usr/nec ;then
14980: version_type=linux # correct to gnu/linux during the next big refactor
14981: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14982: soname_spec='$libname${shared_ext}.$major'
14983: shlibpath_var=LD_LIBRARY_PATH
14984: fi
14985: ;;
14986:
14987: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14988: version_type=freebsd-elf
14989: need_lib_prefix=no
14990: need_version=no
14991: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14992: soname_spec='${libname}${release}${shared_ext}$major'
14993: shlibpath_var=LD_LIBRARY_PATH
14994: shlibpath_overrides_runpath=yes
14995: hardcode_into_libs=yes
14996: if test "$with_gnu_ld" = yes; then
14997: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14998: else
14999: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15000: case $host_os in
15001: sco3.2v5*)
15002: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15003: ;;
15004: esac
15005: fi
15006: sys_lib_dlsearch_path_spec='/usr/lib'
15007: ;;
15008:
15009: tpf*)
15010: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15011: version_type=linux # correct to gnu/linux during the next big refactor
15012: need_lib_prefix=no
15013: need_version=no
15014: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015: shlibpath_var=LD_LIBRARY_PATH
15016: shlibpath_overrides_runpath=no
15017: hardcode_into_libs=yes
15018: ;;
15019:
15020: uts4*)
15021: version_type=linux # correct to gnu/linux during the next big refactor
15022: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023: soname_spec='${libname}${release}${shared_ext}$major'
15024: shlibpath_var=LD_LIBRARY_PATH
15025: ;;
15026:
15027: *)
15028: dynamic_linker=no
15029: ;;
15030: esac
15031: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15032: echo "${ECHO_T}$dynamic_linker" >&6
15033: test "$dynamic_linker" = no && can_build_shared=no
15034:
15035: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15036: if test "$GCC" = yes; then
15037: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15038: fi
15039:
15040: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15041: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15042: fi
15043: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15044: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15045: fi
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:
15074:
15075:
15076:
15077:
15078:
15079:
15080:
15081:
15082:
15083:
15084: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15085: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15086: hardcode_action_CXX=
15087: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15088: test -n "$runpath_var_CXX" ||
15089: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15090:
15091: # We can hardcode non-existent directories.
15092: if test "$hardcode_direct_CXX" != no &&
15093: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15094: # have to relink, otherwise we might link with an installed library
15095: # when we should be linking with a yet-to-be-installed one
15096: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15097: test "$hardcode_minus_L_CXX" != no; then
15098: # Linking always hardcodes the temporary library directory.
15099: hardcode_action_CXX=relink
15100: else
15101: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15102: hardcode_action_CXX=immediate
15103: fi
15104: else
15105: # We cannot hardcode anything, or else we can only hardcode existing
15106: # directories.
15107: hardcode_action_CXX=unsupported
15108: fi
15109: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15110: echo "${ECHO_T}$hardcode_action_CXX" >&6
15111:
15112: if test "$hardcode_action_CXX" = relink ||
15113: test "$inherit_rpath_CXX" = yes; then
15114: # Fast installation is not supported
15115: enable_fast_install=no
15116: elif test "$shlibpath_overrides_runpath" = yes ||
15117: test "$enable_shared" = no; then
15118: # Fast installation is not necessary
15119: enable_fast_install=needless
15120: fi
15121:
15122:
15123:
15124:
15125:
15126:
15127:
15128: fi # test -n "$compiler"
15129:
15130: CC=$lt_save_CC
15131: CFLAGS=$lt_save_CFLAGS
15132: LDCXX=$LD
15133: LD=$lt_save_LD
15134: GCC=$lt_save_GCC
15135: with_gnu_ld=$lt_save_with_gnu_ld
15136: lt_cv_path_LDCXX=$lt_cv_path_LD
15137: lt_cv_path_LD=$lt_save_path_LD
15138: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15139: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15140: fi # test "$_lt_caught_CXX_error" != yes
15141:
15142: ac_ext=c
15143: ac_cpp='$CPP $CPPFLAGS'
15144: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147:
15148:
15149:
15150:
15151:
15152:
15153:
15154:
15155:
15156:
15157:
15158:
15159:
15160:
15161:
15162: ac_config_commands="$ac_config_commands libtool"
15163:
15164:
15165:
15166:
15167: # Only expand once:
15168:
15169:
15170: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15171: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15172: if test "${libltdl_cv_shlibext+set}" = set; then
15173: echo $ECHO_N "(cached) $ECHO_C" >&6
15174: else
15175:
15176: module=yes
15177: eval libltdl_cv_shlibext=$shrext_cmds
15178: module=no
15179: eval libltdl_cv_shrext=$shrext_cmds
15180:
15181: fi
15182: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15183: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15184: if test -n "$libltdl_cv_shlibext"; then
15185:
15186: cat >>confdefs.h <<_ACEOF
15187: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15188: _ACEOF
15189:
15190: fi
15191: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15192:
15193: cat >>confdefs.h <<_ACEOF
15194: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15195: _ACEOF
15196:
15197: fi
15198:
15199: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15200: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15201: if test "${lt_cv_module_path_var+set}" = set; then
15202: echo $ECHO_N "(cached) $ECHO_C" >&6
15203: else
15204: lt_cv_module_path_var="$shlibpath_var"
15205: fi
15206: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15207: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15208: if test -n "$lt_cv_module_path_var"; then
15209:
15210: cat >>confdefs.h <<_ACEOF
15211: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15212: _ACEOF
15213:
15214: fi
15215:
15216: echo "$as_me:$LINENO: checking for the default library search path" >&5
15217: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15218: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15219: echo $ECHO_N "(cached) $ECHO_C" >&6
15220: else
15221: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15222: fi
15223: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15224: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15225: if test -n "$lt_cv_sys_dlsearch_path"; then
15226: sys_dlsearch_path=
15227: for dir in $lt_cv_sys_dlsearch_path; do
15228: if test -z "$sys_dlsearch_path"; then
15229: sys_dlsearch_path="$dir"
15230: else
15231: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15232: fi
15233: done
15234:
15235: cat >>confdefs.h <<_ACEOF
15236: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15237: _ACEOF
15238:
15239: fi
15240:
15241:
15242: LT_DLLOADERS=
15243:
15244:
15245: ac_ext=c
15246: ac_cpp='$CPP $CPPFLAGS'
15247: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15248: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15249: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15250:
15251:
15252: LIBADD_DLOPEN=
15253: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15254: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15255: if test "${ac_cv_search_dlopen+set}" = set; then
15256: echo $ECHO_N "(cached) $ECHO_C" >&6
15257: else
15258: ac_func_search_save_LIBS=$LIBS
15259: ac_cv_search_dlopen=no
15260: cat >conftest.$ac_ext <<_ACEOF
15261: /* confdefs.h. */
15262: _ACEOF
15263: cat confdefs.h >>conftest.$ac_ext
15264: cat >>conftest.$ac_ext <<_ACEOF
15265: /* end confdefs.h. */
15266:
15267: /* Override any gcc2 internal prototype to avoid an error. */
15268: #ifdef __cplusplus
15269: extern "C"
15270: #endif
15271: /* We use char because int might match the return type of a gcc2
15272: builtin and then its argument prototype would still apply. */
15273: char dlopen ();
15274: int
15275: main ()
15276: {
15277: dlopen ();
15278: ;
15279: return 0;
15280: }
15281: _ACEOF
15282: rm -f conftest.$ac_objext conftest$ac_exeext
15283: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15284: (eval $ac_link) 2>conftest.er1
15285: ac_status=$?
15286: grep -v '^ *+' conftest.er1 >conftest.err
15287: rm -f conftest.er1
15288: cat conftest.err >&5
15289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290: (exit $ac_status); } &&
15291: { ac_try='test -z "$ac_c_werror_flag"
15292: || test ! -s conftest.err'
15293: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294: (eval $ac_try) 2>&5
15295: ac_status=$?
15296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297: (exit $ac_status); }; } &&
15298: { ac_try='test -s conftest$ac_exeext'
15299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300: (eval $ac_try) 2>&5
15301: ac_status=$?
15302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303: (exit $ac_status); }; }; then
15304: ac_cv_search_dlopen="none required"
15305: else
15306: echo "$as_me: failed program was:" >&5
15307: sed 's/^/| /' conftest.$ac_ext >&5
15308:
15309: fi
15310: rm -f conftest.err conftest.$ac_objext \
15311: conftest$ac_exeext conftest.$ac_ext
15312: if test "$ac_cv_search_dlopen" = no; then
15313: for ac_lib in dl; do
15314: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15315: cat >conftest.$ac_ext <<_ACEOF
15316: /* confdefs.h. */
15317: _ACEOF
15318: cat confdefs.h >>conftest.$ac_ext
15319: cat >>conftest.$ac_ext <<_ACEOF
15320: /* end confdefs.h. */
15321:
15322: /* Override any gcc2 internal prototype to avoid an error. */
15323: #ifdef __cplusplus
15324: extern "C"
15325: #endif
15326: /* We use char because int might match the return type of a gcc2
15327: builtin and then its argument prototype would still apply. */
15328: char dlopen ();
15329: int
15330: main ()
15331: {
15332: dlopen ();
15333: ;
15334: return 0;
15335: }
15336: _ACEOF
15337: rm -f conftest.$ac_objext conftest$ac_exeext
15338: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339: (eval $ac_link) 2>conftest.er1
15340: ac_status=$?
15341: grep -v '^ *+' conftest.er1 >conftest.err
15342: rm -f conftest.er1
15343: cat conftest.err >&5
15344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345: (exit $ac_status); } &&
15346: { ac_try='test -z "$ac_c_werror_flag"
15347: || test ! -s conftest.err'
15348: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349: (eval $ac_try) 2>&5
15350: ac_status=$?
15351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352: (exit $ac_status); }; } &&
15353: { ac_try='test -s conftest$ac_exeext'
15354: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355: (eval $ac_try) 2>&5
15356: ac_status=$?
15357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358: (exit $ac_status); }; }; then
15359: ac_cv_search_dlopen="-l$ac_lib"
15360: break
15361: else
15362: echo "$as_me: failed program was:" >&5
15363: sed 's/^/| /' conftest.$ac_ext >&5
15364:
15365: fi
15366: rm -f conftest.err conftest.$ac_objext \
15367: conftest$ac_exeext conftest.$ac_ext
15368: done
15369: fi
15370: LIBS=$ac_func_search_save_LIBS
15371: fi
15372: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15373: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15374: if test "$ac_cv_search_dlopen" != no; then
15375: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15376:
15377: cat >>confdefs.h <<\_ACEOF
15378: #define HAVE_LIBDL 1
15379: _ACEOF
15380:
15381: if test "$ac_cv_search_dlopen" != "none required" ; then
15382: LIBADD_DLOPEN="-ldl"
15383: fi
15384: libltdl_cv_lib_dl_dlopen="yes"
15385: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15386: else
15387: cat >conftest.$ac_ext <<_ACEOF
15388: /* confdefs.h. */
15389: _ACEOF
15390: cat confdefs.h >>conftest.$ac_ext
15391: cat >>conftest.$ac_ext <<_ACEOF
15392: /* end confdefs.h. */
15393: #if HAVE_DLFCN_H
15394: # include <dlfcn.h>
15395: #endif
15396:
15397: int
15398: main ()
15399: {
15400: dlopen(0, 0);
15401: ;
15402: return 0;
15403: }
15404: _ACEOF
15405: rm -f conftest.$ac_objext conftest$ac_exeext
15406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15407: (eval $ac_link) 2>conftest.er1
15408: ac_status=$?
15409: grep -v '^ *+' conftest.er1 >conftest.err
15410: rm -f conftest.er1
15411: cat conftest.err >&5
15412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413: (exit $ac_status); } &&
15414: { ac_try='test -z "$ac_c_werror_flag"
15415: || test ! -s conftest.err'
15416: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417: (eval $ac_try) 2>&5
15418: ac_status=$?
15419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420: (exit $ac_status); }; } &&
15421: { ac_try='test -s conftest$ac_exeext'
15422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423: (eval $ac_try) 2>&5
15424: ac_status=$?
15425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426: (exit $ac_status); }; }; then
15427:
15428: cat >>confdefs.h <<\_ACEOF
15429: #define HAVE_LIBDL 1
15430: _ACEOF
15431:
15432: libltdl_cv_func_dlopen="yes"
15433: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15434: else
15435: echo "$as_me: failed program was:" >&5
15436: sed 's/^/| /' conftest.$ac_ext >&5
15437:
15438: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15439: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15440: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15441: echo $ECHO_N "(cached) $ECHO_C" >&6
15442: else
15443: ac_check_lib_save_LIBS=$LIBS
15444: LIBS="-lsvld $LIBS"
15445: cat >conftest.$ac_ext <<_ACEOF
15446: /* confdefs.h. */
15447: _ACEOF
15448: cat confdefs.h >>conftest.$ac_ext
15449: cat >>conftest.$ac_ext <<_ACEOF
15450: /* end confdefs.h. */
15451:
15452: /* Override any gcc2 internal prototype to avoid an error. */
15453: #ifdef __cplusplus
15454: extern "C"
15455: #endif
15456: /* We use char because int might match the return type of a gcc2
15457: builtin and then its argument prototype would still apply. */
15458: char dlopen ();
15459: int
15460: main ()
15461: {
15462: dlopen ();
15463: ;
15464: return 0;
15465: }
15466: _ACEOF
15467: rm -f conftest.$ac_objext conftest$ac_exeext
15468: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15469: (eval $ac_link) 2>conftest.er1
15470: ac_status=$?
15471: grep -v '^ *+' conftest.er1 >conftest.err
15472: rm -f conftest.er1
15473: cat conftest.err >&5
15474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475: (exit $ac_status); } &&
15476: { ac_try='test -z "$ac_c_werror_flag"
15477: || test ! -s conftest.err'
15478: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479: (eval $ac_try) 2>&5
15480: ac_status=$?
15481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482: (exit $ac_status); }; } &&
15483: { ac_try='test -s conftest$ac_exeext'
15484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485: (eval $ac_try) 2>&5
15486: ac_status=$?
15487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488: (exit $ac_status); }; }; then
15489: ac_cv_lib_svld_dlopen=yes
15490: else
15491: echo "$as_me: failed program was:" >&5
15492: sed 's/^/| /' conftest.$ac_ext >&5
15493:
15494: ac_cv_lib_svld_dlopen=no
15495: fi
15496: rm -f conftest.err conftest.$ac_objext \
15497: conftest$ac_exeext conftest.$ac_ext
15498: LIBS=$ac_check_lib_save_LIBS
15499: fi
15500: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15501: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15502: if test $ac_cv_lib_svld_dlopen = yes; then
15503:
15504: cat >>confdefs.h <<\_ACEOF
15505: #define HAVE_LIBDL 1
15506: _ACEOF
15507:
15508: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15509: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15510: fi
15511:
15512: fi
15513: rm -f conftest.err conftest.$ac_objext \
15514: conftest$ac_exeext conftest.$ac_ext
15515: fi
15516:
15517: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15518: then
15519: lt_save_LIBS="$LIBS"
15520: LIBS="$LIBS $LIBADD_DLOPEN"
15521:
15522: for ac_func in dlerror
15523: do
15524: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15525: echo "$as_me:$LINENO: checking for $ac_func" >&5
15526: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15527: if eval "test \"\${$as_ac_var+set}\" = set"; then
15528: echo $ECHO_N "(cached) $ECHO_C" >&6
15529: else
15530: cat >conftest.$ac_ext <<_ACEOF
15531: /* confdefs.h. */
15532: _ACEOF
15533: cat confdefs.h >>conftest.$ac_ext
15534: cat >>conftest.$ac_ext <<_ACEOF
15535: /* end confdefs.h. */
15536: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15537: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15538: #define $ac_func innocuous_$ac_func
15539:
15540: /* System header to define __stub macros and hopefully few prototypes,
15541: which can conflict with char $ac_func (); below.
15542: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15543: <limits.h> exists even on freestanding compilers. */
15544:
15545: #ifdef __STDC__
15546: # include <limits.h>
15547: #else
15548: # include <assert.h>
15549: #endif
15550:
15551: #undef $ac_func
15552:
15553: /* Override any gcc2 internal prototype to avoid an error. */
15554: #ifdef __cplusplus
15555: extern "C"
15556: {
15557: #endif
15558: /* We use char because int might match the return type of a gcc2
15559: builtin and then its argument prototype would still apply. */
15560: char $ac_func ();
15561: /* The GNU C library defines this for functions which it implements
15562: to always fail with ENOSYS. Some functions are actually named
15563: something starting with __ and the normal name is an alias. */
15564: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15565: choke me
15566: #else
15567: char (*f) () = $ac_func;
15568: #endif
15569: #ifdef __cplusplus
15570: }
15571: #endif
15572:
15573: int
15574: main ()
15575: {
15576: return f != $ac_func;
15577: ;
15578: return 0;
15579: }
15580: _ACEOF
15581: rm -f conftest.$ac_objext conftest$ac_exeext
15582: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15583: (eval $ac_link) 2>conftest.er1
15584: ac_status=$?
15585: grep -v '^ *+' conftest.er1 >conftest.err
15586: rm -f conftest.er1
15587: cat conftest.err >&5
15588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589: (exit $ac_status); } &&
15590: { ac_try='test -z "$ac_c_werror_flag"
15591: || test ! -s conftest.err'
15592: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593: (eval $ac_try) 2>&5
15594: ac_status=$?
15595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596: (exit $ac_status); }; } &&
15597: { ac_try='test -s conftest$ac_exeext'
15598: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599: (eval $ac_try) 2>&5
15600: ac_status=$?
15601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602: (exit $ac_status); }; }; then
15603: eval "$as_ac_var=yes"
15604: else
15605: echo "$as_me: failed program was:" >&5
15606: sed 's/^/| /' conftest.$ac_ext >&5
15607:
15608: eval "$as_ac_var=no"
15609: fi
15610: rm -f conftest.err conftest.$ac_objext \
15611: conftest$ac_exeext conftest.$ac_ext
15612: fi
15613: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15614: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15615: if test `eval echo '${'$as_ac_var'}'` = yes; then
15616: cat >>confdefs.h <<_ACEOF
15617: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15618: _ACEOF
15619:
15620: fi
15621: done
15622:
15623: LIBS="$lt_save_LIBS"
15624: fi
15625:
15626:
15627: LIBADD_SHL_LOAD=
15628: echo "$as_me:$LINENO: checking for shl_load" >&5
15629: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15630: if test "${ac_cv_func_shl_load+set}" = set; then
15631: echo $ECHO_N "(cached) $ECHO_C" >&6
15632: else
15633: cat >conftest.$ac_ext <<_ACEOF
15634: /* confdefs.h. */
15635: _ACEOF
15636: cat confdefs.h >>conftest.$ac_ext
15637: cat >>conftest.$ac_ext <<_ACEOF
15638: /* end confdefs.h. */
15639: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15640: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15641: #define shl_load innocuous_shl_load
15642:
15643: /* System header to define __stub macros and hopefully few prototypes,
15644: which can conflict with char shl_load (); below.
15645: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15646: <limits.h> exists even on freestanding compilers. */
15647:
15648: #ifdef __STDC__
15649: # include <limits.h>
15650: #else
15651: # include <assert.h>
15652: #endif
15653:
15654: #undef shl_load
15655:
15656: /* Override any gcc2 internal prototype to avoid an error. */
15657: #ifdef __cplusplus
15658: extern "C"
15659: {
15660: #endif
15661: /* We use char because int might match the return type of a gcc2
15662: builtin and then its argument prototype would still apply. */
15663: char shl_load ();
15664: /* The GNU C library defines this for functions which it implements
15665: to always fail with ENOSYS. Some functions are actually named
15666: something starting with __ and the normal name is an alias. */
15667: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15668: choke me
15669: #else
15670: char (*f) () = shl_load;
15671: #endif
15672: #ifdef __cplusplus
15673: }
15674: #endif
15675:
15676: int
15677: main ()
15678: {
15679: return f != shl_load;
15680: ;
15681: return 0;
15682: }
15683: _ACEOF
15684: rm -f conftest.$ac_objext conftest$ac_exeext
15685: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686: (eval $ac_link) 2>conftest.er1
15687: ac_status=$?
15688: grep -v '^ *+' conftest.er1 >conftest.err
15689: rm -f conftest.er1
15690: cat conftest.err >&5
15691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692: (exit $ac_status); } &&
15693: { ac_try='test -z "$ac_c_werror_flag"
15694: || test ! -s conftest.err'
15695: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696: (eval $ac_try) 2>&5
15697: ac_status=$?
15698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699: (exit $ac_status); }; } &&
15700: { ac_try='test -s conftest$ac_exeext'
15701: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702: (eval $ac_try) 2>&5
15703: ac_status=$?
15704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705: (exit $ac_status); }; }; then
15706: ac_cv_func_shl_load=yes
15707: else
15708: echo "$as_me: failed program was:" >&5
15709: sed 's/^/| /' conftest.$ac_ext >&5
15710:
15711: ac_cv_func_shl_load=no
15712: fi
15713: rm -f conftest.err conftest.$ac_objext \
15714: conftest$ac_exeext conftest.$ac_ext
15715: fi
15716: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15717: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15718: if test $ac_cv_func_shl_load = yes; then
15719:
15720: cat >>confdefs.h <<\_ACEOF
15721: #define HAVE_SHL_LOAD 1
15722: _ACEOF
15723:
15724: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15725: else
15726: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15727: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15728: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15729: echo $ECHO_N "(cached) $ECHO_C" >&6
15730: else
15731: ac_check_lib_save_LIBS=$LIBS
15732: LIBS="-ldld $LIBS"
15733: cat >conftest.$ac_ext <<_ACEOF
15734: /* confdefs.h. */
15735: _ACEOF
15736: cat confdefs.h >>conftest.$ac_ext
15737: cat >>conftest.$ac_ext <<_ACEOF
15738: /* end confdefs.h. */
15739:
15740: /* Override any gcc2 internal prototype to avoid an error. */
15741: #ifdef __cplusplus
15742: extern "C"
15743: #endif
15744: /* We use char because int might match the return type of a gcc2
15745: builtin and then its argument prototype would still apply. */
15746: char shl_load ();
15747: int
15748: main ()
15749: {
15750: shl_load ();
15751: ;
15752: return 0;
15753: }
15754: _ACEOF
15755: rm -f conftest.$ac_objext conftest$ac_exeext
15756: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15757: (eval $ac_link) 2>conftest.er1
15758: ac_status=$?
15759: grep -v '^ *+' conftest.er1 >conftest.err
15760: rm -f conftest.er1
15761: cat conftest.err >&5
15762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763: (exit $ac_status); } &&
15764: { ac_try='test -z "$ac_c_werror_flag"
15765: || test ! -s conftest.err'
15766: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767: (eval $ac_try) 2>&5
15768: ac_status=$?
15769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770: (exit $ac_status); }; } &&
15771: { ac_try='test -s conftest$ac_exeext'
15772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773: (eval $ac_try) 2>&5
15774: ac_status=$?
15775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776: (exit $ac_status); }; }; then
15777: ac_cv_lib_dld_shl_load=yes
15778: else
15779: echo "$as_me: failed program was:" >&5
15780: sed 's/^/| /' conftest.$ac_ext >&5
15781:
15782: ac_cv_lib_dld_shl_load=no
15783: fi
15784: rm -f conftest.err conftest.$ac_objext \
15785: conftest$ac_exeext conftest.$ac_ext
15786: LIBS=$ac_check_lib_save_LIBS
15787: fi
15788: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15789: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15790: if test $ac_cv_lib_dld_shl_load = yes; then
15791:
15792: cat >>confdefs.h <<\_ACEOF
15793: #define HAVE_SHL_LOAD 1
15794: _ACEOF
15795:
15796: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15797: LIBADD_SHL_LOAD="-ldld"
15798: fi
15799:
15800: fi
15801:
15802:
15803:
15804: case $host_os in
15805: darwin[1567].*)
15806: # We only want this for pre-Mac OS X 10.4.
15807: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15808: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15809: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15810: echo $ECHO_N "(cached) $ECHO_C" >&6
15811: else
15812: cat >conftest.$ac_ext <<_ACEOF
15813: /* confdefs.h. */
15814: _ACEOF
15815: cat confdefs.h >>conftest.$ac_ext
15816: cat >>conftest.$ac_ext <<_ACEOF
15817: /* end confdefs.h. */
15818: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15819: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15820: #define _dyld_func_lookup innocuous__dyld_func_lookup
15821:
15822: /* System header to define __stub macros and hopefully few prototypes,
15823: which can conflict with char _dyld_func_lookup (); below.
15824: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15825: <limits.h> exists even on freestanding compilers. */
15826:
15827: #ifdef __STDC__
15828: # include <limits.h>
15829: #else
15830: # include <assert.h>
15831: #endif
15832:
15833: #undef _dyld_func_lookup
15834:
15835: /* Override any gcc2 internal prototype to avoid an error. */
15836: #ifdef __cplusplus
15837: extern "C"
15838: {
15839: #endif
15840: /* We use char because int might match the return type of a gcc2
15841: builtin and then its argument prototype would still apply. */
15842: char _dyld_func_lookup ();
15843: /* The GNU C library defines this for functions which it implements
15844: to always fail with ENOSYS. Some functions are actually named
15845: something starting with __ and the normal name is an alias. */
15846: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15847: choke me
15848: #else
15849: char (*f) () = _dyld_func_lookup;
15850: #endif
15851: #ifdef __cplusplus
15852: }
15853: #endif
15854:
15855: int
15856: main ()
15857: {
15858: return f != _dyld_func_lookup;
15859: ;
15860: return 0;
15861: }
15862: _ACEOF
15863: rm -f conftest.$ac_objext conftest$ac_exeext
15864: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865: (eval $ac_link) 2>conftest.er1
15866: ac_status=$?
15867: grep -v '^ *+' conftest.er1 >conftest.err
15868: rm -f conftest.er1
15869: cat conftest.err >&5
15870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871: (exit $ac_status); } &&
15872: { ac_try='test -z "$ac_c_werror_flag"
15873: || test ! -s conftest.err'
15874: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875: (eval $ac_try) 2>&5
15876: ac_status=$?
15877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878: (exit $ac_status); }; } &&
15879: { ac_try='test -s conftest$ac_exeext'
15880: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881: (eval $ac_try) 2>&5
15882: ac_status=$?
15883: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884: (exit $ac_status); }; }; then
15885: ac_cv_func__dyld_func_lookup=yes
15886: else
15887: echo "$as_me: failed program was:" >&5
15888: sed 's/^/| /' conftest.$ac_ext >&5
15889:
15890: ac_cv_func__dyld_func_lookup=no
15891: fi
15892: rm -f conftest.err conftest.$ac_objext \
15893: conftest$ac_exeext conftest.$ac_ext
15894: fi
15895: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15896: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15897: if test $ac_cv_func__dyld_func_lookup = yes; then
15898:
15899: cat >>confdefs.h <<\_ACEOF
15900: #define HAVE_DYLD 1
15901: _ACEOF
15902:
15903: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15904: fi
15905:
15906: ;;
15907: beos*)
15908: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15909: ;;
15910: cygwin* | mingw* | os2* | pw32*)
15911: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15912: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15913: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15914: echo $ECHO_N "(cached) $ECHO_C" >&6
15915: else
15916: cat >conftest.$ac_ext <<_ACEOF
15917: /* confdefs.h. */
15918: _ACEOF
15919: cat confdefs.h >>conftest.$ac_ext
15920: cat >>conftest.$ac_ext <<_ACEOF
15921: /* end confdefs.h. */
15922: #include <sys/cygwin.h>
15923:
15924: int
15925: main ()
15926: {
15927: #ifndef cygwin_conv_path
15928: char *p = (char *) cygwin_conv_path;
15929: #endif
15930:
15931: ;
15932: return 0;
15933: }
15934: _ACEOF
15935: rm -f conftest.$ac_objext
15936: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15937: (eval $ac_compile) 2>conftest.er1
15938: ac_status=$?
15939: grep -v '^ *+' conftest.er1 >conftest.err
15940: rm -f conftest.er1
15941: cat conftest.err >&5
15942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943: (exit $ac_status); } &&
15944: { ac_try='test -z "$ac_c_werror_flag"
15945: || test ! -s conftest.err'
15946: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947: (eval $ac_try) 2>&5
15948: ac_status=$?
15949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950: (exit $ac_status); }; } &&
15951: { ac_try='test -s conftest.$ac_objext'
15952: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953: (eval $ac_try) 2>&5
15954: ac_status=$?
15955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956: (exit $ac_status); }; }; then
15957: ac_cv_have_decl_cygwin_conv_path=yes
15958: else
15959: echo "$as_me: failed program was:" >&5
15960: sed 's/^/| /' conftest.$ac_ext >&5
15961:
15962: ac_cv_have_decl_cygwin_conv_path=no
15963: fi
15964: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15965: fi
15966: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15967: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15968: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
15969:
15970: cat >>confdefs.h <<_ACEOF
15971: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15972: _ACEOF
15973:
15974:
15975: else
15976: cat >>confdefs.h <<_ACEOF
15977: #define HAVE_DECL_CYGWIN_CONV_PATH 0
15978: _ACEOF
15979:
15980:
15981: fi
15982:
15983:
15984: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15985: ;;
15986: esac
15987:
15988: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15989: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15990: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15991: echo $ECHO_N "(cached) $ECHO_C" >&6
15992: else
15993: ac_check_lib_save_LIBS=$LIBS
15994: LIBS="-ldld $LIBS"
15995: cat >conftest.$ac_ext <<_ACEOF
15996: /* confdefs.h. */
15997: _ACEOF
15998: cat confdefs.h >>conftest.$ac_ext
15999: cat >>conftest.$ac_ext <<_ACEOF
16000: /* end confdefs.h. */
16001:
16002: /* Override any gcc2 internal prototype to avoid an error. */
16003: #ifdef __cplusplus
16004: extern "C"
16005: #endif
16006: /* We use char because int might match the return type of a gcc2
16007: builtin and then its argument prototype would still apply. */
16008: char dld_link ();
16009: int
16010: main ()
16011: {
16012: dld_link ();
16013: ;
16014: return 0;
16015: }
16016: _ACEOF
16017: rm -f conftest.$ac_objext conftest$ac_exeext
16018: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019: (eval $ac_link) 2>conftest.er1
16020: ac_status=$?
16021: grep -v '^ *+' conftest.er1 >conftest.err
16022: rm -f conftest.er1
16023: cat conftest.err >&5
16024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025: (exit $ac_status); } &&
16026: { ac_try='test -z "$ac_c_werror_flag"
16027: || test ! -s conftest.err'
16028: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029: (eval $ac_try) 2>&5
16030: ac_status=$?
16031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032: (exit $ac_status); }; } &&
16033: { ac_try='test -s conftest$ac_exeext'
16034: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035: (eval $ac_try) 2>&5
16036: ac_status=$?
16037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038: (exit $ac_status); }; }; then
16039: ac_cv_lib_dld_dld_link=yes
16040: else
16041: echo "$as_me: failed program was:" >&5
16042: sed 's/^/| /' conftest.$ac_ext >&5
16043:
16044: ac_cv_lib_dld_dld_link=no
16045: fi
16046: rm -f conftest.err conftest.$ac_objext \
16047: conftest$ac_exeext conftest.$ac_ext
16048: LIBS=$ac_check_lib_save_LIBS
16049: fi
16050: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16051: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16052: if test $ac_cv_lib_dld_dld_link = yes; then
16053:
16054: cat >>confdefs.h <<\_ACEOF
16055: #define HAVE_DLD 1
16056: _ACEOF
16057:
16058: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16059: fi
16060:
16061:
16062:
16063:
16064: LT_DLPREOPEN=
16065: if test -n "$LT_DLLOADERS"
16066: then
16067: for lt_loader in $LT_DLLOADERS; do
16068: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16069: done
16070:
16071: cat >>confdefs.h <<\_ACEOF
16072: #define HAVE_LIBDLLOADER 1
16073: _ACEOF
16074:
16075: fi
16076:
16077:
16078: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16079:
16080:
16081: ac_ext=c
16082: ac_cpp='$CPP $CPPFLAGS'
16083: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16084: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16085: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16086:
16087:
16088: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16089: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16090: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16091: echo $ECHO_N "(cached) $ECHO_C" >&6
16092: else
16093: lt_cv_sys_symbol_underscore=no
16094: cat > conftest.$ac_ext <<_LT_EOF
16095: void nm_test_func(){}
16096: int main(){nm_test_func;return 0;}
16097: _LT_EOF
16098: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099: (eval $ac_compile) 2>&5
16100: ac_status=$?
16101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102: (exit $ac_status); }; then
16103: # Now try to grab the symbols.
16104: ac_nlist=conftest.nm
16105: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16106: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16107: ac_status=$?
16108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109: (exit $ac_status); } && test -s "$ac_nlist"; then
16110: # See whether the symbols have a leading underscore.
16111: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16112: lt_cv_sys_symbol_underscore=yes
16113: else
16114: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16115: :
16116: else
16117: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16118: fi
16119: fi
16120: else
16121: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16122: fi
16123: else
16124: echo "configure: failed program was:" >&5
16125: cat conftest.c >&5
16126: fi
16127: rm -rf conftest*
16128:
16129: fi
16130: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16131: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16132: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16133:
16134:
16135: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16136: if test x"$libltdl_cv_func_dlopen" = xyes ||
16137: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16138: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16139: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16140: if test "${libltdl_cv_need_uscore+set}" = set; then
16141: echo $ECHO_N "(cached) $ECHO_C" >&6
16142: else
16143: libltdl_cv_need_uscore=unknown
16144: save_LIBS="$LIBS"
16145: LIBS="$LIBS $LIBADD_DLOPEN"
16146: if test "$cross_compiling" = yes; then :
16147: libltdl_cv_need_uscore=cross
16148: else
16149: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16150: lt_status=$lt_dlunknown
16151: cat > conftest.$ac_ext <<_LT_EOF
16152: #line $LINENO "configure"
16153: #include "confdefs.h"
16154:
16155: #if HAVE_DLFCN_H
16156: #include <dlfcn.h>
16157: #endif
16158:
16159: #include <stdio.h>
16160:
16161: #ifdef RTLD_GLOBAL
16162: # define LT_DLGLOBAL RTLD_GLOBAL
16163: #else
16164: # ifdef DL_GLOBAL
16165: # define LT_DLGLOBAL DL_GLOBAL
16166: # else
16167: # define LT_DLGLOBAL 0
16168: # endif
16169: #endif
16170:
16171: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16172: find out it does not work in some platform. */
16173: #ifndef LT_DLLAZY_OR_NOW
16174: # ifdef RTLD_LAZY
16175: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16176: # else
16177: # ifdef DL_LAZY
16178: # define LT_DLLAZY_OR_NOW DL_LAZY
16179: # else
16180: # ifdef RTLD_NOW
16181: # define LT_DLLAZY_OR_NOW RTLD_NOW
16182: # else
16183: # ifdef DL_NOW
16184: # define LT_DLLAZY_OR_NOW DL_NOW
16185: # else
16186: # define LT_DLLAZY_OR_NOW 0
16187: # endif
16188: # endif
16189: # endif
16190: # endif
16191: #endif
16192:
16193: /* When -fvisbility=hidden is used, assume the code has been annotated
16194: correspondingly for the symbols needed. */
16195: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16196: int fnord () __attribute__((visibility("default")));
16197: #endif
16198:
16199: int fnord () { return 42; }
16200: int main ()
16201: {
16202: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16203: int status = $lt_dlunknown;
16204:
16205: if (self)
16206: {
16207: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16208: else
16209: {
16210: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16211: else puts (dlerror ());
16212: }
16213: /* dlclose (self); */
16214: }
16215: else
16216: puts (dlerror ());
16217:
16218: return status;
16219: }
16220: _LT_EOF
16221: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16222: (eval $ac_link) 2>&5
16223: ac_status=$?
16224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16226: (./conftest; exit; ) >&5 2>/dev/null
16227: lt_status=$?
16228: case x$lt_status in
16229: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16230: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16231: x$lt_dlunknown|x*) ;;
16232: esac
16233: else :
16234: # compilation failed
16235:
16236: fi
16237: fi
16238: rm -fr conftest*
16239:
16240: LIBS="$save_LIBS"
16241:
16242: fi
16243: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16244: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16245: fi
16246: fi
16247:
16248: if test x"$libltdl_cv_need_uscore" = xyes; then
16249:
16250: cat >>confdefs.h <<\_ACEOF
16251: #define NEED_USCORE 1
16252: _ACEOF
16253:
16254: fi
16255:
16256: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16257: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16258: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16259: echo $ECHO_N "(cached) $ECHO_C" >&6
16260: else
16261: # PORTME does your system automatically load deplibs for dlopen?
16262: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16263: # For now, we just catch OSes we know something about -- in the
16264: # future, we'll try test this programmatically.
16265: lt_cv_sys_dlopen_deplibs=unknown
16266: case $host_os in
16267: aix3*|aix4.1.*|aix4.2.*)
16268: # Unknown whether this is true for these versions of AIX, but
16269: # we want this `case' here to explicitly catch those versions.
16270: lt_cv_sys_dlopen_deplibs=unknown
16271: ;;
16272: aix[4-9]*)
16273: lt_cv_sys_dlopen_deplibs=yes
16274: ;;
16275: amigaos*)
16276: case $host_cpu in
16277: powerpc)
16278: lt_cv_sys_dlopen_deplibs=no
16279: ;;
16280: esac
16281: ;;
16282: darwin*)
16283: # Assuming the user has installed a libdl from somewhere, this is true
16284: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16285: lt_cv_sys_dlopen_deplibs=yes
16286: ;;
16287: freebsd* | dragonfly*)
16288: lt_cv_sys_dlopen_deplibs=yes
16289: ;;
16290: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16291: # GNU and its variants, using gnu ld.so (Glibc)
16292: lt_cv_sys_dlopen_deplibs=yes
16293: ;;
16294: hpux10*|hpux11*)
16295: lt_cv_sys_dlopen_deplibs=yes
16296: ;;
16297: interix*)
16298: lt_cv_sys_dlopen_deplibs=yes
16299: ;;
16300: irix[12345]*|irix6.[01]*)
16301: # Catch all versions of IRIX before 6.2, and indicate that we don't
16302: # know how it worked for any of those versions.
16303: lt_cv_sys_dlopen_deplibs=unknown
16304: ;;
16305: irix*)
16306: # The case above catches anything before 6.2, and it's known that
16307: # at 6.2 and later dlopen does load deplibs.
16308: lt_cv_sys_dlopen_deplibs=yes
16309: ;;
16310: netbsd*)
16311: lt_cv_sys_dlopen_deplibs=yes
16312: ;;
16313: openbsd*)
16314: lt_cv_sys_dlopen_deplibs=yes
16315: ;;
16316: osf[1234]*)
16317: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16318: # it did *not* use an RPATH in a shared library to find objects the
16319: # library depends on, so we explicitly say `no'.
16320: lt_cv_sys_dlopen_deplibs=no
16321: ;;
16322: osf5.0|osf5.0a|osf5.1)
16323: # dlopen *does* load deplibs and with the right loader patch applied
16324: # it even uses RPATH in a shared library to search for shared objects
16325: # that the library depends on, but there's no easy way to know if that
16326: # patch is installed. Since this is the case, all we can really
16327: # say is unknown -- it depends on the patch being installed. If
16328: # it is, this changes to `yes'. Without it, it would be `no'.
16329: lt_cv_sys_dlopen_deplibs=unknown
16330: ;;
16331: osf*)
16332: # the two cases above should catch all versions of osf <= 5.1. Read
16333: # the comments above for what we know about them.
16334: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16335: # is used to find them so we can finally say `yes'.
16336: lt_cv_sys_dlopen_deplibs=yes
16337: ;;
16338: qnx*)
16339: lt_cv_sys_dlopen_deplibs=yes
16340: ;;
16341: solaris*)
16342: lt_cv_sys_dlopen_deplibs=yes
16343: ;;
16344: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16345: libltdl_cv_sys_dlopen_deplibs=yes
16346: ;;
16347: esac
16348:
16349: fi
16350: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16351: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16352: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16353:
16354: cat >>confdefs.h <<\_ACEOF
16355: #define LTDL_DLOPEN_DEPLIBS 1
16356: _ACEOF
16357:
16358: fi
16359:
16360: :
16361:
16362:
16363: for ac_header in argz.h
16364: do
16365: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16366: echo "$as_me:$LINENO: checking for $ac_header" >&5
16367: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16368: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16369: echo $ECHO_N "(cached) $ECHO_C" >&6
16370: else
16371: cat >conftest.$ac_ext <<_ACEOF
16372: /* confdefs.h. */
16373: _ACEOF
16374: cat confdefs.h >>conftest.$ac_ext
16375: cat >>conftest.$ac_ext <<_ACEOF
16376: /* end confdefs.h. */
16377: $ac_includes_default
16378:
16379: #include <$ac_header>
16380: _ACEOF
16381: rm -f conftest.$ac_objext
16382: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383: (eval $ac_compile) 2>conftest.er1
16384: ac_status=$?
16385: grep -v '^ *+' conftest.er1 >conftest.err
16386: rm -f conftest.er1
16387: cat conftest.err >&5
16388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389: (exit $ac_status); } &&
16390: { ac_try='test -z "$ac_c_werror_flag"
16391: || test ! -s conftest.err'
16392: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393: (eval $ac_try) 2>&5
16394: ac_status=$?
16395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396: (exit $ac_status); }; } &&
16397: { ac_try='test -s conftest.$ac_objext'
16398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399: (eval $ac_try) 2>&5
16400: ac_status=$?
16401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402: (exit $ac_status); }; }; then
16403: eval "$as_ac_Header=yes"
16404: else
16405: echo "$as_me: failed program was:" >&5
16406: sed 's/^/| /' conftest.$ac_ext >&5
16407:
16408: eval "$as_ac_Header=no"
16409: fi
16410: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16411: fi
16412: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16413: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16414: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16415: cat >>confdefs.h <<_ACEOF
16416: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16417: _ACEOF
16418:
16419: fi
16420:
16421: done
16422:
16423:
16424: echo "$as_me:$LINENO: checking for error_t" >&5
16425: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16426: if test "${ac_cv_type_error_t+set}" = set; then
16427: echo $ECHO_N "(cached) $ECHO_C" >&6
16428: else
16429: cat >conftest.$ac_ext <<_ACEOF
16430: /* confdefs.h. */
16431: _ACEOF
16432: cat confdefs.h >>conftest.$ac_ext
16433: cat >>conftest.$ac_ext <<_ACEOF
16434: /* end confdefs.h. */
16435: #if defined(HAVE_ARGZ_H)
16436: # include <argz.h>
16437: #endif
16438:
16439: int
16440: main ()
16441: {
16442: if ((error_t *) 0)
16443: return 0;
16444: if (sizeof (error_t))
16445: return 0;
16446: ;
16447: return 0;
16448: }
16449: _ACEOF
16450: rm -f conftest.$ac_objext
16451: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16452: (eval $ac_compile) 2>conftest.er1
16453: ac_status=$?
16454: grep -v '^ *+' conftest.er1 >conftest.err
16455: rm -f conftest.er1
16456: cat conftest.err >&5
16457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458: (exit $ac_status); } &&
16459: { ac_try='test -z "$ac_c_werror_flag"
16460: || test ! -s conftest.err'
16461: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462: (eval $ac_try) 2>&5
16463: ac_status=$?
16464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465: (exit $ac_status); }; } &&
16466: { ac_try='test -s conftest.$ac_objext'
16467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468: (eval $ac_try) 2>&5
16469: ac_status=$?
16470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471: (exit $ac_status); }; }; then
16472: ac_cv_type_error_t=yes
16473: else
16474: echo "$as_me: failed program was:" >&5
16475: sed 's/^/| /' conftest.$ac_ext >&5
16476:
16477: ac_cv_type_error_t=no
16478: fi
16479: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16480: fi
16481: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16482: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16483: if test $ac_cv_type_error_t = yes; then
16484:
16485: cat >>confdefs.h <<_ACEOF
16486: #define HAVE_ERROR_T 1
16487: _ACEOF
16488:
16489:
16490: else
16491:
16492: cat >>confdefs.h <<\_ACEOF
16493: #define error_t int
16494: _ACEOF
16495:
16496:
16497: cat >>confdefs.h <<\_ACEOF
16498: #define __error_t_defined 1
16499: _ACEOF
16500:
16501: fi
16502:
16503:
16504: ARGZ_H=
16505:
16506:
16507:
16508:
16509:
16510:
16511:
16512: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16513: argz_next argz_stringify
16514: do
16515: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16516: echo "$as_me:$LINENO: checking for $ac_func" >&5
16517: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16518: if eval "test \"\${$as_ac_var+set}\" = set"; then
16519: echo $ECHO_N "(cached) $ECHO_C" >&6
16520: else
16521: cat >conftest.$ac_ext <<_ACEOF
16522: /* confdefs.h. */
16523: _ACEOF
16524: cat confdefs.h >>conftest.$ac_ext
16525: cat >>conftest.$ac_ext <<_ACEOF
16526: /* end confdefs.h. */
16527: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16528: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16529: #define $ac_func innocuous_$ac_func
16530:
16531: /* System header to define __stub macros and hopefully few prototypes,
16532: which can conflict with char $ac_func (); below.
16533: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16534: <limits.h> exists even on freestanding compilers. */
16535:
16536: #ifdef __STDC__
16537: # include <limits.h>
16538: #else
16539: # include <assert.h>
16540: #endif
16541:
16542: #undef $ac_func
16543:
16544: /* Override any gcc2 internal prototype to avoid an error. */
16545: #ifdef __cplusplus
16546: extern "C"
16547: {
16548: #endif
16549: /* We use char because int might match the return type of a gcc2
16550: builtin and then its argument prototype would still apply. */
16551: char $ac_func ();
16552: /* The GNU C library defines this for functions which it implements
16553: to always fail with ENOSYS. Some functions are actually named
16554: something starting with __ and the normal name is an alias. */
16555: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556: choke me
16557: #else
16558: char (*f) () = $ac_func;
16559: #endif
16560: #ifdef __cplusplus
16561: }
16562: #endif
16563:
16564: int
16565: main ()
16566: {
16567: return f != $ac_func;
16568: ;
16569: return 0;
16570: }
16571: _ACEOF
16572: rm -f conftest.$ac_objext conftest$ac_exeext
16573: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574: (eval $ac_link) 2>conftest.er1
16575: ac_status=$?
16576: grep -v '^ *+' conftest.er1 >conftest.err
16577: rm -f conftest.er1
16578: cat conftest.err >&5
16579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580: (exit $ac_status); } &&
16581: { ac_try='test -z "$ac_c_werror_flag"
16582: || test ! -s conftest.err'
16583: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584: (eval $ac_try) 2>&5
16585: ac_status=$?
16586: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587: (exit $ac_status); }; } &&
16588: { ac_try='test -s conftest$ac_exeext'
16589: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590: (eval $ac_try) 2>&5
16591: ac_status=$?
16592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593: (exit $ac_status); }; }; then
16594: eval "$as_ac_var=yes"
16595: else
16596: echo "$as_me: failed program was:" >&5
16597: sed 's/^/| /' conftest.$ac_ext >&5
16598:
16599: eval "$as_ac_var=no"
16600: fi
16601: rm -f conftest.err conftest.$ac_objext \
16602: conftest$ac_exeext conftest.$ac_ext
16603: fi
16604: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16605: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16606: if test `eval echo '${'$as_ac_var'}'` = yes; then
16607: cat >>confdefs.h <<_ACEOF
16608: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16609: _ACEOF
16610:
16611: else
16612: ARGZ_H=argz.h;
16613:
16614: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16615:
16616: fi
16617: done
16618:
16619:
16620: if test -z "$ARGZ_H"; then
16621: echo "$as_me:$LINENO: checking if argz actually works" >&5
16622: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16623: if test "${lt_cv_sys_argz_works+set}" = set; then
16624: echo $ECHO_N "(cached) $ECHO_C" >&6
16625: else
16626: case $host_os in #(
16627: *cygwin*)
16628: lt_cv_sys_argz_works=no
16629: if test "$cross_compiling" != no; then
16630: lt_cv_sys_argz_works="guessing no"
16631: else
16632: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16633: save_IFS=$IFS
16634: IFS=-.
16635: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16636: IFS=$save_IFS
16637: lt_os_major=${2-0}
16638: lt_os_minor=${3-0}
16639: lt_os_micro=${4-0}
16640: if test "$lt_os_major" -gt 1 \
16641: || { test "$lt_os_major" -eq 1 \
16642: && { test "$lt_os_minor" -gt 5 \
16643: || { test "$lt_os_minor" -eq 5 \
16644: && test "$lt_os_micro" -gt 24; }; }; }; then
16645: lt_cv_sys_argz_works=yes
16646: fi
16647: fi
16648: ;; #(
16649: *) lt_cv_sys_argz_works=yes ;;
16650: esac
16651: fi
16652: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16653: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16654: if test "$lt_cv_sys_argz_works" = yes; then
16655:
16656: cat >>confdefs.h <<\_ACEOF
16657: #define HAVE_WORKING_ARGZ 1
16658: _ACEOF
16659:
16660: else
16661: ARGZ_H=argz.h
16662:
16663:
16664: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16665:
16666: fi
16667:
16668: fi
16669:
16670:
16671:
16672:
16673: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16674: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16675: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16676: echo $ECHO_N "(cached) $ECHO_C" >&6
16677: else
16678: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16679: libltdl_cv_preloaded_symbols=yes
16680: else
16681: libltdl_cv_preloaded_symbols=no
16682: fi
16683:
16684: fi
16685: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16686: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
16687: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16688:
16689: cat >>confdefs.h <<\_ACEOF
16690: #define HAVE_PRELOADED_SYMBOLS 1
16691: _ACEOF
16692:
16693: fi
16694:
16695: # Set options
16696:
16697:
16698:
16699:
16700:
16701:
16702:
16703:
16704:
16705:
16706:
16707:
16708: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16709: if test "${with_included_ltdl+set}" = set; then
16710: withval="$with_included_ltdl"
16711:
16712: fi;
16713:
16714: if test "x$with_included_ltdl" != xyes; then
16715: # We are not being forced to use the included libltdl sources, so
16716: # decide whether there is a useful installed version we can use.
16717: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16718: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16719: if test "${ac_cv_header_ltdl_h+set}" = set; then
16720: echo $ECHO_N "(cached) $ECHO_C" >&6
16721: else
16722: cat >conftest.$ac_ext <<_ACEOF
16723: /* confdefs.h. */
16724: _ACEOF
16725: cat confdefs.h >>conftest.$ac_ext
16726: cat >>conftest.$ac_ext <<_ACEOF
16727: /* end confdefs.h. */
16728: $ac_includes_default
16729:
16730:
16731: #include <ltdl.h>
16732: _ACEOF
16733: rm -f conftest.$ac_objext
16734: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16735: (eval $ac_compile) 2>conftest.er1
16736: ac_status=$?
16737: grep -v '^ *+' conftest.er1 >conftest.err
16738: rm -f conftest.er1
16739: cat conftest.err >&5
16740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741: (exit $ac_status); } &&
16742: { ac_try='test -z "$ac_c_werror_flag"
16743: || test ! -s conftest.err'
16744: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745: (eval $ac_try) 2>&5
16746: ac_status=$?
16747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748: (exit $ac_status); }; } &&
16749: { ac_try='test -s conftest.$ac_objext'
16750: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751: (eval $ac_try) 2>&5
16752: ac_status=$?
16753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754: (exit $ac_status); }; }; then
16755: ac_cv_header_ltdl_h=yes
16756: else
16757: echo "$as_me: failed program was:" >&5
16758: sed 's/^/| /' conftest.$ac_ext >&5
16759:
16760: ac_cv_header_ltdl_h=no
16761: fi
16762: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16763: fi
16764: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16765: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16766: if test $ac_cv_header_ltdl_h = yes; then
16767: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16768: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16769: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16770: echo $ECHO_N "(cached) $ECHO_C" >&6
16771: else
16772: cat >conftest.$ac_ext <<_ACEOF
16773: /* confdefs.h. */
16774: _ACEOF
16775: cat confdefs.h >>conftest.$ac_ext
16776: cat >>conftest.$ac_ext <<_ACEOF
16777: /* end confdefs.h. */
16778: $ac_includes_default
16779: #include <ltdl.h>
16780:
16781: int
16782: main ()
16783: {
16784: #ifndef lt_dlinterface_register
16785: char *p = (char *) lt_dlinterface_register;
16786: #endif
16787:
16788: ;
16789: return 0;
16790: }
16791: _ACEOF
16792: rm -f conftest.$ac_objext
16793: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16794: (eval $ac_compile) 2>conftest.er1
16795: ac_status=$?
16796: grep -v '^ *+' conftest.er1 >conftest.err
16797: rm -f conftest.er1
16798: cat conftest.err >&5
16799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800: (exit $ac_status); } &&
16801: { ac_try='test -z "$ac_c_werror_flag"
16802: || test ! -s conftest.err'
16803: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804: (eval $ac_try) 2>&5
16805: ac_status=$?
16806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807: (exit $ac_status); }; } &&
16808: { ac_try='test -s conftest.$ac_objext'
16809: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810: (eval $ac_try) 2>&5
16811: ac_status=$?
16812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813: (exit $ac_status); }; }; then
16814: ac_cv_have_decl_lt_dlinterface_register=yes
16815: else
16816: echo "$as_me: failed program was:" >&5
16817: sed 's/^/| /' conftest.$ac_ext >&5
16818:
16819: ac_cv_have_decl_lt_dlinterface_register=no
16820: fi
16821: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16822: fi
16823: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16824: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16825: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16826: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16827: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16828: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16829: echo $ECHO_N "(cached) $ECHO_C" >&6
16830: else
16831: ac_check_lib_save_LIBS=$LIBS
16832: LIBS="-lltdl $LIBS"
16833: cat >conftest.$ac_ext <<_ACEOF
16834: /* confdefs.h. */
16835: _ACEOF
16836: cat confdefs.h >>conftest.$ac_ext
16837: cat >>conftest.$ac_ext <<_ACEOF
16838: /* end confdefs.h. */
16839:
16840: /* Override any gcc2 internal prototype to avoid an error. */
16841: #ifdef __cplusplus
16842: extern "C"
16843: #endif
16844: /* We use char because int might match the return type of a gcc2
16845: builtin and then its argument prototype would still apply. */
16846: char lt_dladvise_preload ();
16847: int
16848: main ()
16849: {
16850: lt_dladvise_preload ();
16851: ;
16852: return 0;
16853: }
16854: _ACEOF
16855: rm -f conftest.$ac_objext conftest$ac_exeext
16856: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857: (eval $ac_link) 2>conftest.er1
16858: ac_status=$?
16859: grep -v '^ *+' conftest.er1 >conftest.err
16860: rm -f conftest.er1
16861: cat conftest.err >&5
16862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863: (exit $ac_status); } &&
16864: { ac_try='test -z "$ac_c_werror_flag"
16865: || test ! -s conftest.err'
16866: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867: (eval $ac_try) 2>&5
16868: ac_status=$?
16869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870: (exit $ac_status); }; } &&
16871: { ac_try='test -s conftest$ac_exeext'
16872: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873: (eval $ac_try) 2>&5
16874: ac_status=$?
16875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876: (exit $ac_status); }; }; then
16877: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16878: else
16879: echo "$as_me: failed program was:" >&5
16880: sed 's/^/| /' conftest.$ac_ext >&5
16881:
16882: ac_cv_lib_ltdl_lt_dladvise_preload=no
16883: fi
16884: rm -f conftest.err conftest.$ac_objext \
16885: conftest$ac_exeext conftest.$ac_ext
16886: LIBS=$ac_check_lib_save_LIBS
16887: fi
16888: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16889: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16890: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
16891: with_included_ltdl=no
16892: else
16893: with_included_ltdl=yes
16894: fi
16895:
16896: else
16897: with_included_ltdl=yes
16898: fi
16899:
16900: else
16901: with_included_ltdl=yes
16902: fi
16903:
16904:
16905: fi
16906:
16907:
16908:
16909:
16910: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16911: if test "${with_ltdl_include+set}" = set; then
16912: withval="$with_ltdl_include"
16913:
16914: fi;
16915:
16916: if test -n "$with_ltdl_include"; then
16917: if test -f "$with_ltdl_include/ltdl.h"; then :
16918: else
16919: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16920: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16921: { (exit 1); exit 1; }; }
16922: fi
16923: else
16924: with_ltdl_include=no
16925: fi
16926:
16927:
16928: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16929: if test "${with_ltdl_lib+set}" = set; then
16930: withval="$with_ltdl_lib"
16931:
16932: fi;
16933:
16934: if test -n "$with_ltdl_lib"; then
16935: if test -f "$with_ltdl_lib/libltdl.la"; then :
16936: else
16937: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16938: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16939: { (exit 1); exit 1; }; }
16940: fi
16941: else
16942: with_ltdl_lib=no
16943: fi
16944:
16945: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16946: ,yes,no,no,)
16947: case $enable_ltdl_convenience in
16948: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16949: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16950: { (exit 1); exit 1; }; } ;;
16951: "") enable_ltdl_convenience=yes
16952: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16953: esac
16954: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16955: LTDLDEPS=$LIBLTDL
16956: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16957:
16958:
16959:
16960:
16961:
16962: # For backwards non-gettext consistent compatibility...
16963: INCLTDL="$LTDLINCL"
16964:
16965:
16966: ;;
16967: ,no,no,no,)
16968: # If the included ltdl is not to be used, then use the
16969: # preinstalled libltdl we found.
16970:
16971: cat >>confdefs.h <<\_ACEOF
16972: #define HAVE_LTDL 1
16973: _ACEOF
16974:
16975: LIBLTDL=-lltdl
16976: LTDLDEPS=
16977: LTDLINCL=
16978: ;;
16979: ,no*,no,*)
16980: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16981: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16982: { (exit 1); exit 1; }; }
16983: ;;
16984: *) with_included_ltdl=no
16985: LIBLTDL="-L$with_ltdl_lib -lltdl"
16986: LTDLDEPS=
16987: LTDLINCL="-I$with_ltdl_include"
16988: ;;
16989: esac
16990: INCLTDL="$LTDLINCL"
16991:
16992: # Report our decision...
16993: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16994: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
16995: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16996: echo "${ECHO_T}$LTDLINCL" >&6
16997: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16998: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
16999: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17000: echo "${ECHO_T}$LIBLTDL" >&6
17001:
17002:
17003:
17004: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17005: if test "${enable_ltdl_install+set}" = set; then
17006: enableval="$enable_ltdl_install"
17007:
17008: fi;
17009:
17010: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17011: *yes*) ;;
17012: *) enable_ltdl_convenience=yes ;;
17013: esac
17014:
17015:
17016:
17017: if test x"${enable_ltdl_install-no}" != xno; then
17018: INSTALL_LTDL_TRUE=
17019: INSTALL_LTDL_FALSE='#'
17020: else
17021: INSTALL_LTDL_TRUE='#'
17022: INSTALL_LTDL_FALSE=
17023: fi
17024:
17025:
17026:
17027: if test x"${enable_ltdl_convenience-no}" != xno; then
17028: CONVENIENCE_LTDL_TRUE=
17029: CONVENIENCE_LTDL_FALSE='#'
17030: else
17031: CONVENIENCE_LTDL_TRUE='#'
17032: CONVENIENCE_LTDL_FALSE=
17033: fi
17034:
17035:
17036:
17037:
17038:
17039: subdirs="$subdirs libltdl"
17040:
17041:
17042:
17043:
17044: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17045: # the user used. This is so that ltdl.h can pick up the parent projects
17046: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17047: # definitions required by ltdl.c.
17048: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17049:
17050:
17051:
17052:
17053:
17054:
17055:
17056:
17057:
17058: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17059: do
17060: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17061: echo "$as_me:$LINENO: checking for $ac_header" >&5
17062: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17063: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17064: echo $ECHO_N "(cached) $ECHO_C" >&6
17065: else
17066: cat >conftest.$ac_ext <<_ACEOF
17067: /* confdefs.h. */
17068: _ACEOF
17069: cat confdefs.h >>conftest.$ac_ext
17070: cat >>conftest.$ac_ext <<_ACEOF
17071: /* end confdefs.h. */
17072: $ac_includes_default
17073:
17074: #include <$ac_header>
17075: _ACEOF
17076: rm -f conftest.$ac_objext
17077: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17078: (eval $ac_compile) 2>conftest.er1
17079: ac_status=$?
17080: grep -v '^ *+' conftest.er1 >conftest.err
17081: rm -f conftest.er1
17082: cat conftest.err >&5
17083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084: (exit $ac_status); } &&
17085: { ac_try='test -z "$ac_c_werror_flag"
17086: || test ! -s conftest.err'
17087: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088: (eval $ac_try) 2>&5
17089: ac_status=$?
17090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091: (exit $ac_status); }; } &&
17092: { ac_try='test -s conftest.$ac_objext'
17093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094: (eval $ac_try) 2>&5
17095: ac_status=$?
17096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097: (exit $ac_status); }; }; then
17098: eval "$as_ac_Header=yes"
17099: else
17100: echo "$as_me: failed program was:" >&5
17101: sed 's/^/| /' conftest.$ac_ext >&5
17102:
17103: eval "$as_ac_Header=no"
17104: fi
17105: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17106: fi
17107: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17108: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17109: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17110: cat >>confdefs.h <<_ACEOF
17111: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17112: _ACEOF
17113:
17114: fi
17115:
17116: done
17117:
17118:
17119:
17120:
17121:
17122: for ac_func in closedir opendir readdir
17123: do
17124: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125: echo "$as_me:$LINENO: checking for $ac_func" >&5
17126: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17127: if eval "test \"\${$as_ac_var+set}\" = set"; then
17128: echo $ECHO_N "(cached) $ECHO_C" >&6
17129: else
17130: cat >conftest.$ac_ext <<_ACEOF
17131: /* confdefs.h. */
17132: _ACEOF
17133: cat confdefs.h >>conftest.$ac_ext
17134: cat >>conftest.$ac_ext <<_ACEOF
17135: /* end confdefs.h. */
17136: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138: #define $ac_func innocuous_$ac_func
17139:
17140: /* System header to define __stub macros and hopefully few prototypes,
17141: which can conflict with char $ac_func (); below.
17142: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143: <limits.h> exists even on freestanding compilers. */
17144:
17145: #ifdef __STDC__
17146: # include <limits.h>
17147: #else
17148: # include <assert.h>
17149: #endif
17150:
17151: #undef $ac_func
17152:
17153: /* Override any gcc2 internal prototype to avoid an error. */
17154: #ifdef __cplusplus
17155: extern "C"
17156: {
17157: #endif
17158: /* We use char because int might match the return type of a gcc2
17159: builtin and then its argument prototype would still apply. */
17160: char $ac_func ();
17161: /* The GNU C library defines this for functions which it implements
17162: to always fail with ENOSYS. Some functions are actually named
17163: something starting with __ and the normal name is an alias. */
17164: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17165: choke me
17166: #else
17167: char (*f) () = $ac_func;
17168: #endif
17169: #ifdef __cplusplus
17170: }
17171: #endif
17172:
17173: int
17174: main ()
17175: {
17176: return f != $ac_func;
17177: ;
17178: return 0;
17179: }
17180: _ACEOF
17181: rm -f conftest.$ac_objext conftest$ac_exeext
17182: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17183: (eval $ac_link) 2>conftest.er1
17184: ac_status=$?
17185: grep -v '^ *+' conftest.er1 >conftest.err
17186: rm -f conftest.er1
17187: cat conftest.err >&5
17188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189: (exit $ac_status); } &&
17190: { ac_try='test -z "$ac_c_werror_flag"
17191: || test ! -s conftest.err'
17192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193: (eval $ac_try) 2>&5
17194: ac_status=$?
17195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196: (exit $ac_status); }; } &&
17197: { ac_try='test -s conftest$ac_exeext'
17198: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199: (eval $ac_try) 2>&5
17200: ac_status=$?
17201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202: (exit $ac_status); }; }; then
17203: eval "$as_ac_var=yes"
17204: else
17205: echo "$as_me: failed program was:" >&5
17206: sed 's/^/| /' conftest.$ac_ext >&5
17207:
17208: eval "$as_ac_var=no"
17209: fi
17210: rm -f conftest.err conftest.$ac_objext \
17211: conftest$ac_exeext conftest.$ac_ext
17212: fi
17213: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17214: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17215: if test `eval echo '${'$as_ac_var'}'` = yes; then
17216: cat >>confdefs.h <<_ACEOF
17217: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17218: _ACEOF
17219:
17220: else
17221:
17222:
17223: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17224:
17225: fi
17226: done
17227:
17228:
17229:
17230: for ac_func in strlcat strlcpy
17231: do
17232: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17233: echo "$as_me:$LINENO: checking for $ac_func" >&5
17234: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17235: if eval "test \"\${$as_ac_var+set}\" = set"; then
17236: echo $ECHO_N "(cached) $ECHO_C" >&6
17237: else
17238: cat >conftest.$ac_ext <<_ACEOF
17239: /* confdefs.h. */
17240: _ACEOF
17241: cat confdefs.h >>conftest.$ac_ext
17242: cat >>conftest.$ac_ext <<_ACEOF
17243: /* end confdefs.h. */
17244: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17245: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17246: #define $ac_func innocuous_$ac_func
17247:
17248: /* System header to define __stub macros and hopefully few prototypes,
17249: which can conflict with char $ac_func (); below.
17250: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17251: <limits.h> exists even on freestanding compilers. */
17252:
17253: #ifdef __STDC__
17254: # include <limits.h>
17255: #else
17256: # include <assert.h>
17257: #endif
17258:
17259: #undef $ac_func
17260:
17261: /* Override any gcc2 internal prototype to avoid an error. */
17262: #ifdef __cplusplus
17263: extern "C"
17264: {
17265: #endif
17266: /* We use char because int might match the return type of a gcc2
17267: builtin and then its argument prototype would still apply. */
17268: char $ac_func ();
17269: /* The GNU C library defines this for functions which it implements
17270: to always fail with ENOSYS. Some functions are actually named
17271: something starting with __ and the normal name is an alias. */
17272: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17273: choke me
17274: #else
17275: char (*f) () = $ac_func;
17276: #endif
17277: #ifdef __cplusplus
17278: }
17279: #endif
17280:
17281: int
17282: main ()
17283: {
17284: return f != $ac_func;
17285: ;
17286: return 0;
17287: }
17288: _ACEOF
17289: rm -f conftest.$ac_objext conftest$ac_exeext
17290: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17291: (eval $ac_link) 2>conftest.er1
17292: ac_status=$?
17293: grep -v '^ *+' conftest.er1 >conftest.err
17294: rm -f conftest.er1
17295: cat conftest.err >&5
17296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297: (exit $ac_status); } &&
17298: { ac_try='test -z "$ac_c_werror_flag"
17299: || test ! -s conftest.err'
17300: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301: (eval $ac_try) 2>&5
17302: ac_status=$?
17303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304: (exit $ac_status); }; } &&
17305: { ac_try='test -s conftest$ac_exeext'
17306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307: (eval $ac_try) 2>&5
17308: ac_status=$?
17309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310: (exit $ac_status); }; }; then
17311: eval "$as_ac_var=yes"
17312: else
17313: echo "$as_me: failed program was:" >&5
17314: sed 's/^/| /' conftest.$ac_ext >&5
17315:
17316: eval "$as_ac_var=no"
17317: fi
17318: rm -f conftest.err conftest.$ac_objext \
17319: conftest$ac_exeext conftest.$ac_ext
17320: fi
17321: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17322: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17323: if test `eval echo '${'$as_ac_var'}'` = yes; then
17324: cat >>confdefs.h <<_ACEOF
17325: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17326: _ACEOF
17327:
17328: else
17329:
17330:
17331: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17332:
17333: fi
17334: done
17335:
17336:
17337:
17338: cat >>confdefs.h <<_ACEOF
17339: #define LT_LIBEXT "$libext"
17340: _ACEOF
17341:
17342:
17343: name=
17344: eval "lt_libprefix=\"$libname_spec\""
17345:
17346: cat >>confdefs.h <<_ACEOF
17347: #define LT_LIBPREFIX "$lt_libprefix"
17348: _ACEOF
17349:
17350:
17351: name=ltdl
17352: eval "LTDLOPEN=\"$libname_spec\""
17353:
17354:
17355:
17356:
17357:
17358:
17359:
17360:
17361: # Only expand once:
17362:
17363:
17364:
17365: # Check whether --enable-static or --disable-static was given.
17366: if test "${enable_static+set}" = set; then
17367: enableval="$enable_static"
17368: p=${PACKAGE-default}
17369: case $enableval in
17370: yes) enable_static=yes ;;
17371: no) enable_static=no ;;
17372: *)
17373: enable_static=no
17374: # Look at the argument we got. We use all the common list separators.
17375: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17376: for pkg in $enableval; do
17377: IFS="$lt_save_ifs"
17378: if test "X$pkg" = "X$p"; then
17379: enable_static=yes
17380: fi
17381: done
17382: IFS="$lt_save_ifs"
17383: ;;
17384: esac
17385: else
17386: enable_static=no
17387: fi;
17388:
17389:
17390:
17391:
17392:
17393:
17394:
17395:
17396:
17397:
17398:
17399:
17400:
17401: for ac_header in stdio.h \
17402: stdlib.h \
17403: string.h \
17404: setjmp.h \
17405: ctype.h \
17406: setjmp.h
17407:
17408: do
17409: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17410: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17411: echo "$as_me:$LINENO: checking for $ac_header" >&5
17412: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17413: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17414: echo $ECHO_N "(cached) $ECHO_C" >&6
17415: fi
17416: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17417: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17418: else
17419: # Is the header compilable?
17420: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17421: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17422: cat >conftest.$ac_ext <<_ACEOF
17423: /* confdefs.h. */
17424: _ACEOF
17425: cat confdefs.h >>conftest.$ac_ext
17426: cat >>conftest.$ac_ext <<_ACEOF
17427: /* end confdefs.h. */
17428: $ac_includes_default
17429: #include <$ac_header>
17430: _ACEOF
17431: rm -f conftest.$ac_objext
17432: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433: (eval $ac_compile) 2>conftest.er1
17434: ac_status=$?
17435: grep -v '^ *+' conftest.er1 >conftest.err
17436: rm -f conftest.er1
17437: cat conftest.err >&5
17438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439: (exit $ac_status); } &&
17440: { ac_try='test -z "$ac_c_werror_flag"
17441: || test ! -s conftest.err'
17442: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443: (eval $ac_try) 2>&5
17444: ac_status=$?
17445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446: (exit $ac_status); }; } &&
17447: { ac_try='test -s conftest.$ac_objext'
17448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449: (eval $ac_try) 2>&5
17450: ac_status=$?
17451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452: (exit $ac_status); }; }; then
17453: ac_header_compiler=yes
17454: else
17455: echo "$as_me: failed program was:" >&5
17456: sed 's/^/| /' conftest.$ac_ext >&5
17457:
17458: ac_header_compiler=no
17459: fi
17460: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17461: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17462: echo "${ECHO_T}$ac_header_compiler" >&6
17463:
17464: # Is the header present?
17465: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17466: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17467: cat >conftest.$ac_ext <<_ACEOF
17468: /* confdefs.h. */
17469: _ACEOF
17470: cat confdefs.h >>conftest.$ac_ext
17471: cat >>conftest.$ac_ext <<_ACEOF
17472: /* end confdefs.h. */
17473: #include <$ac_header>
17474: _ACEOF
17475: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17476: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17477: ac_status=$?
17478: grep -v '^ *+' conftest.er1 >conftest.err
17479: rm -f conftest.er1
17480: cat conftest.err >&5
17481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482: (exit $ac_status); } >/dev/null; then
17483: if test -s conftest.err; then
17484: ac_cpp_err=$ac_c_preproc_warn_flag
17485: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17486: else
17487: ac_cpp_err=
17488: fi
17489: else
17490: ac_cpp_err=yes
17491: fi
17492: if test -z "$ac_cpp_err"; then
17493: ac_header_preproc=yes
17494: else
17495: echo "$as_me: failed program was:" >&5
17496: sed 's/^/| /' conftest.$ac_ext >&5
17497:
17498: ac_header_preproc=no
17499: fi
17500: rm -f conftest.err conftest.$ac_ext
17501: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17502: echo "${ECHO_T}$ac_header_preproc" >&6
17503:
17504: # So? What about this header?
17505: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17506: yes:no: )
17507: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17508: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17509: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17510: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17511: ac_header_preproc=yes
17512: ;;
17513: no:yes:* )
17514: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17515: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17516: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17517: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17518: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17519: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17520: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17521: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17522: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17523: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17524: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17525: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17526: (
17527: cat <<\_ASBOX
17528: ## ---------------------------------- ##
17529: ## Report this to the parser3 lists. ##
17530: ## ---------------------------------- ##
17531: _ASBOX
17532: ) |
17533: sed "s/^/$as_me: WARNING: /" >&2
17534: ;;
17535: esac
17536: echo "$as_me:$LINENO: checking for $ac_header" >&5
17537: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17538: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17539: echo $ECHO_N "(cached) $ECHO_C" >&6
17540: else
17541: eval "$as_ac_Header=\$ac_header_preproc"
17542: fi
17543: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17544: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17545:
17546: fi
17547: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17548: cat >>confdefs.h <<_ACEOF
17549: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17550: _ACEOF
17551:
17552: fi
17553:
17554: done
17555:
17556:
17557: echo "$as_me:$LINENO: checking for BSD setenv/getenv/unsetenv" >&5
17558: echo $ECHO_N "checking for BSD setenv/getenv/unsetenv... $ECHO_C" >&6
17559: cat >conftest.$ac_ext <<_ACEOF
17560: /* confdefs.h. */
17561: _ACEOF
17562: cat confdefs.h >>conftest.$ac_ext
17563: cat >>conftest.$ac_ext <<_ACEOF
17564: /* end confdefs.h. */
17565: #ifdef HAVE_STDLIB_H
17566: # include <stdlib.h>
17567: #endif
17568: #ifdef HAVE_STRING_H
17569: # include <string.h>
17570: #endif
17571:
17572: int
17573: main ()
17574: {
17575: #define TEST_NAME "oracle-configure-test-var"
17576: #define TEST_VALUE "oracle-configure-test-value"
17577: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
17578: char *getenv_value=getenv(TEST_NAME);
17579: if(!getenv_value)
17580: return 1;
17581: if(strcmp(getenv_value, TEST_VALUE)!=0)
17582: return 2;
17583: unsetenv(TEST_NAME);
17584:
17585: ;
17586: return 0;
17587: }
17588: _ACEOF
17589: rm -f conftest.$ac_objext conftest$ac_exeext
17590: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591: (eval $ac_link) 2>conftest.er1
17592: ac_status=$?
17593: grep -v '^ *+' conftest.er1 >conftest.err
17594: rm -f conftest.er1
17595: cat conftest.err >&5
17596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597: (exit $ac_status); } &&
17598: { ac_try='test -z "$ac_c_werror_flag"
17599: || test ! -s conftest.err'
17600: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601: (eval $ac_try) 2>&5
17602: ac_status=$?
17603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604: (exit $ac_status); }; } &&
17605: { ac_try='test -s conftest$ac_exeext'
17606: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607: (eval $ac_try) 2>&5
17608: ac_status=$?
17609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610: (exit $ac_status); }; }; then
17611:
17612: echo "$as_me:$LINENO: result: yes" >&5
17613: echo "${ECHO_T}yes" >&6
17614:
17615: cat >>confdefs.h <<\_ACEOF
17616: #define HAVE_SETENV
17617: _ACEOF
17618:
17619:
17620: else
17621: echo "$as_me: failed program was:" >&5
17622: sed 's/^/| /' conftest.$ac_ext >&5
17623:
17624: echo "$as_me:$LINENO: result: no" >&5
17625: echo "${ECHO_T}no" >&6
17626:
17627: echo "$as_me:$LINENO: checking for POSIX putenv/getenv" >&5
17628: echo $ECHO_N "checking for POSIX putenv/getenv... $ECHO_C" >&6
17629: cat >conftest.$ac_ext <<_ACEOF
17630: /* confdefs.h. */
17631: _ACEOF
17632: cat confdefs.h >>conftest.$ac_ext
17633: cat >>conftest.$ac_ext <<_ACEOF
17634: /* end confdefs.h. */
17635: #ifdef HAVE_STDLIB_H
17636: # include <stdlib.h>
17637: #endif
17638: #ifdef HAVE_STRING_H
17639: # include <string.h>
17640: #endif
17641:
17642: int
17643: main ()
17644: {
17645: #define TEST_NAME "oracle-configure-test-var"
17646: #define TEST_VALUE "oracle-configure-test-value"
17647: int result=putenv(TEST_NAME"="TEST_VALUE);
17648: char *getenv_value=getenv(TEST_NAME);
17649: if(!getenv_value)
17650: return 1;
17651: if(strcmp(getenv_value, TEST_NAME)!=0)
17652: return 2;
17653:
17654: ;
17655: return 0;
17656: }
17657: _ACEOF
17658: rm -f conftest.$ac_objext conftest$ac_exeext
17659: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660: (eval $ac_link) 2>conftest.er1
17661: ac_status=$?
17662: grep -v '^ *+' conftest.er1 >conftest.err
17663: rm -f conftest.er1
17664: cat conftest.err >&5
17665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666: (exit $ac_status); } &&
17667: { ac_try='test -z "$ac_c_werror_flag"
17668: || test ! -s conftest.err'
17669: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670: (eval $ac_try) 2>&5
17671: ac_status=$?
17672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673: (exit $ac_status); }; } &&
17674: { ac_try='test -s conftest$ac_exeext'
17675: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676: (eval $ac_try) 2>&5
17677: ac_status=$?
17678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679: (exit $ac_status); }; }; then
17680:
17681: echo "$as_me:$LINENO: result: yes" >&5
17682: echo "${ECHO_T}yes" >&6
17683:
17684: cat >>confdefs.h <<\_ACEOF
17685: #define HAVE_PUTENV
17686: _ACEOF
17687:
17688:
17689: else
17690: echo "$as_me: failed program was:" >&5
17691: sed 's/^/| /' conftest.$ac_ext >&5
17692:
17693: echo "$as_me:$LINENO: result: no" >&5
17694: echo "${ECHO_T}no" >&6
17695: { { echo "$as_me:$LINENO: error: \"there must be some function to modify environment\"" >&5
17696: echo "$as_me: error: \"there must be some function to modify environment\"" >&2;}
17697: { (exit 1); exit 1; }; }
17698:
17699: fi
17700: rm -f conftest.err conftest.$ac_objext \
17701: conftest$ac_exeext conftest.$ac_ext
17702:
17703: fi
17704: rm -f conftest.err conftest.$ac_objext \
17705: conftest$ac_exeext conftest.$ac_ext
17706:
17707: echo "$as_me:$LINENO: checking for size_t" >&5
17708: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17709: if test "${ac_cv_type_size_t+set}" = set; then
17710: echo $ECHO_N "(cached) $ECHO_C" >&6
17711: else
17712: cat >conftest.$ac_ext <<_ACEOF
17713: /* confdefs.h. */
17714: _ACEOF
17715: cat confdefs.h >>conftest.$ac_ext
17716: cat >>conftest.$ac_ext <<_ACEOF
17717: /* end confdefs.h. */
17718: $ac_includes_default
17719: int
17720: main ()
17721: {
17722: if ((size_t *) 0)
17723: return 0;
17724: if (sizeof (size_t))
17725: return 0;
17726: ;
17727: return 0;
17728: }
17729: _ACEOF
17730: rm -f conftest.$ac_objext
17731: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732: (eval $ac_compile) 2>conftest.er1
17733: ac_status=$?
17734: grep -v '^ *+' conftest.er1 >conftest.err
17735: rm -f conftest.er1
17736: cat conftest.err >&5
17737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738: (exit $ac_status); } &&
17739: { ac_try='test -z "$ac_c_werror_flag"
17740: || test ! -s conftest.err'
17741: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742: (eval $ac_try) 2>&5
17743: ac_status=$?
17744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745: (exit $ac_status); }; } &&
17746: { ac_try='test -s conftest.$ac_objext'
17747: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748: (eval $ac_try) 2>&5
17749: ac_status=$?
17750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751: (exit $ac_status); }; }; then
17752: ac_cv_type_size_t=yes
17753: else
17754: echo "$as_me: failed program was:" >&5
17755: sed 's/^/| /' conftest.$ac_ext >&5
17756:
17757: ac_cv_type_size_t=no
17758: fi
17759: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17760: fi
17761: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17762: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17763: if test $ac_cv_type_size_t = yes; then
17764: :
17765: else
17766:
17767: cat >>confdefs.h <<_ACEOF
17768: #define size_t unsigned
17769: _ACEOF
17770:
17771: fi
17772:
17773:
17774:
17775: ac_config_files="$ac_config_files Makefile"
17776: cat >confcache <<\_ACEOF
17777: # This file is a shell script that caches the results of configure
17778: # tests run on this system so they can be shared between configure
17779: # scripts and configure runs, see configure's option --config-cache.
17780: # It is not useful on other systems. If it contains results you don't
17781: # want to keep, you may remove or edit it.
17782: #
17783: # config.status only pays attention to the cache file if you give it
17784: # the --recheck option to rerun configure.
17785: #
17786: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17787: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17788: # following values.
17789:
17790: _ACEOF
17791:
17792: # The following way of writing the cache mishandles newlines in values,
17793: # but we know of no workaround that is simple, portable, and efficient.
17794: # So, don't put newlines in cache variables' values.
17795: # Ultrix sh set writes to stderr and can't be redirected directly,
17796: # and sets the high bit in the cache file unless we assign to the vars.
17797: {
17798: (set) 2>&1 |
17799: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17800: *ac_space=\ *)
17801: # `set' does not quote correctly, so add quotes (double-quote
17802: # substitution turns \\\\ into \\, and sed turns \\ into \).
17803: sed -n \
17804: "s/'/'\\\\''/g;
17805: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17806: ;;
17807: *)
17808: # `set' quotes correctly as required by POSIX, so do not add quotes.
17809: sed -n \
17810: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17811: ;;
17812: esac;
17813: } |
17814: sed '
17815: t clear
17816: : clear
17817: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17818: t end
17819: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17820: : end' >>confcache
17821: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17822: if test -w $cache_file; then
17823: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17824: cat confcache >$cache_file
17825: else
17826: echo "not updating unwritable cache $cache_file"
17827: fi
17828: fi
17829: rm -f confcache
17830:
17831: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17832: # Let make expand exec_prefix.
17833: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17834:
17835: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17836: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17837: # trailing colons and then remove the whole line if VPATH becomes empty
17838: # (actually we leave an empty line to preserve line numbers).
17839: if test "x$srcdir" = x.; then
17840: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17841: s/:*\$(srcdir):*/:/;
17842: s/:*\${srcdir}:*/:/;
17843: s/:*@srcdir@:*/:/;
17844: s/^\([^=]*=[ ]*\):*/\1/;
17845: s/:*$//;
17846: s/^[^=]*=[ ]*$//;
17847: }'
17848: fi
17849:
17850: DEFS=-DHAVE_CONFIG_H
17851:
17852: ac_libobjs=
17853: ac_ltlibobjs=
17854: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17855: # 1. Remove the extension, and $U if already installed.
17856: ac_i=`echo "$ac_i" |
17857: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17858: # 2. Add them.
17859: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17860: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17861: done
17862: LIBOBJS=$ac_libobjs
17863:
17864: LTLIBOBJS=$ac_ltlibobjs
17865:
17866:
17867: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17868: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17869: Usually this means the macro was only invoked conditionally." >&5
17870: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17871: Usually this means the macro was only invoked conditionally." >&2;}
17872: { (exit 1); exit 1; }; }
17873: fi
17874: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17875: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17876: Usually this means the macro was only invoked conditionally." >&5
17877: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17878: Usually this means the macro was only invoked conditionally." >&2;}
17879: { (exit 1); exit 1; }; }
17880: fi
17881: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17882: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17883: Usually this means the macro was only invoked conditionally." >&5
17884: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17885: Usually this means the macro was only invoked conditionally." >&2;}
17886: { (exit 1); exit 1; }; }
17887: fi
17888: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17889: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17890: Usually this means the macro was only invoked conditionally." >&5
17891: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17892: Usually this means the macro was only invoked conditionally." >&2;}
17893: { (exit 1); exit 1; }; }
17894: fi
17895: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17896: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17897: Usually this means the macro was only invoked conditionally." >&5
17898: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17899: Usually this means the macro was only invoked conditionally." >&2;}
17900: { (exit 1); exit 1; }; }
17901: fi
17902: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
17903:
17904: _ltdl_libobjs=
17905: _ltdl_ltlibobjs=
17906: if test -n "$_LT_LIBOBJS"; then
17907: # Remove the extension.
17908: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17909: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17910: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17911: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17912: done
17913: fi
17914: ltdl_LIBOBJS=$_ltdl_libobjs
17915:
17916: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17917:
17918:
17919:
17920: : ${CONFIG_STATUS=./config.status}
17921: ac_clean_files_save=$ac_clean_files
17922: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17923: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17924: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17925: cat >$CONFIG_STATUS <<_ACEOF
17926: #! $SHELL
17927: # Generated by $as_me.
17928: # Run this file to recreate the current configuration.
17929: # Compiler output produced by configure, useful for debugging
17930: # configure, is in config.log if it exists.
17931:
17932: debug=false
17933: ac_cs_recheck=false
17934: ac_cs_silent=false
17935: SHELL=\${CONFIG_SHELL-$SHELL}
17936: _ACEOF
17937:
17938: cat >>$CONFIG_STATUS <<\_ACEOF
17939: ## --------------------- ##
17940: ## M4sh Initialization. ##
17941: ## --------------------- ##
17942:
17943: # Be Bourne compatible
17944: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17945: emulate sh
17946: NULLCMD=:
17947: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17948: # is contrary to our usage. Disable this feature.
17949: alias -g '${1+"$@"}'='"$@"'
17950: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17951: set -o posix
17952: fi
17953: DUALCASE=1; export DUALCASE # for MKS sh
17954:
17955: # Support unset when possible.
17956: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17957: as_unset=unset
17958: else
17959: as_unset=false
17960: fi
17961:
17962:
17963: # Work around bugs in pre-3.0 UWIN ksh.
17964: $as_unset ENV MAIL MAILPATH
17965: PS1='$ '
17966: PS2='> '
17967: PS4='+ '
17968:
17969: # NLS nuisances.
17970: for as_var in \
17971: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17972: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17973: LC_TELEPHONE LC_TIME
17974: do
17975: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17976: eval $as_var=C; export $as_var
17977: else
17978: $as_unset $as_var
17979: fi
17980: done
17981:
17982: # Required to use basename.
17983: if expr a : '\(a\)' >/dev/null 2>&1; then
17984: as_expr=expr
17985: else
17986: as_expr=false
17987: fi
17988:
17989: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17990: as_basename=basename
17991: else
17992: as_basename=false
17993: fi
17994:
17995:
17996: # Name of the executable.
17997: as_me=`$as_basename "$0" ||
17998: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17999: X"$0" : 'X\(//\)$' \| \
18000: X"$0" : 'X\(/\)$' \| \
18001: . : '\(.\)' 2>/dev/null ||
18002: echo X/"$0" |
18003: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18004: /^X\/\(\/\/\)$/{ s//\1/; q; }
18005: /^X\/\(\/\).*/{ s//\1/; q; }
18006: s/.*/./; q'`
18007:
18008:
18009: # PATH needs CR, and LINENO needs CR and PATH.
18010: # Avoid depending upon Character Ranges.
18011: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18012: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18013: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18014: as_cr_digits='0123456789'
18015: as_cr_alnum=$as_cr_Letters$as_cr_digits
18016:
18017: # The user is always right.
18018: if test "${PATH_SEPARATOR+set}" != set; then
18019: echo "#! /bin/sh" >conf$$.sh
18020: echo "exit 0" >>conf$$.sh
18021: chmod +x conf$$.sh
18022: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18023: PATH_SEPARATOR=';'
18024: else
18025: PATH_SEPARATOR=:
18026: fi
18027: rm -f conf$$.sh
18028: fi
18029:
18030:
18031: as_lineno_1=$LINENO
18032: as_lineno_2=$LINENO
18033: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18034: test "x$as_lineno_1" != "x$as_lineno_2" &&
18035: test "x$as_lineno_3" = "x$as_lineno_2" || {
18036: # Find who we are. Look in the path if we contain no path at all
18037: # relative or not.
18038: case $0 in
18039: *[\\/]* ) as_myself=$0 ;;
18040: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18041: for as_dir in $PATH
18042: do
18043: IFS=$as_save_IFS
18044: test -z "$as_dir" && as_dir=.
18045: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18046: done
18047:
18048: ;;
18049: esac
18050: # We did not find ourselves, most probably we were run as `sh COMMAND'
18051: # in which case we are not to be found in the path.
18052: if test "x$as_myself" = x; then
18053: as_myself=$0
18054: fi
18055: if test ! -f "$as_myself"; then
18056: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18057: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18058: { (exit 1); exit 1; }; }
18059: fi
18060: case $CONFIG_SHELL in
18061: '')
18062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18063: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18064: do
18065: IFS=$as_save_IFS
18066: test -z "$as_dir" && as_dir=.
18067: for as_base in sh bash ksh sh5; do
18068: case $as_dir in
18069: /*)
18070: if ("$as_dir/$as_base" -c '
18071: as_lineno_1=$LINENO
18072: as_lineno_2=$LINENO
18073: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18074: test "x$as_lineno_1" != "x$as_lineno_2" &&
18075: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18076: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18077: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18078: CONFIG_SHELL=$as_dir/$as_base
18079: export CONFIG_SHELL
18080: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18081: fi;;
18082: esac
18083: done
18084: done
18085: ;;
18086: esac
18087:
18088: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18089: # uniformly replaced by the line number. The first 'sed' inserts a
18090: # line-number line before each line; the second 'sed' does the real
18091: # work. The second script uses 'N' to pair each line-number line
18092: # with the numbered line, and appends trailing '-' during
18093: # substitution so that $LINENO is not a special case at line end.
18094: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18095: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18096: sed '=' <$as_myself |
18097: sed '
18098: N
18099: s,$,-,
18100: : loop
18101: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18102: t loop
18103: s,-$,,
18104: s,^['$as_cr_digits']*\n,,
18105: ' >$as_me.lineno &&
18106: chmod +x $as_me.lineno ||
18107: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18108: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18109: { (exit 1); exit 1; }; }
18110:
18111: # Don't try to exec as it changes $[0], causing all sort of problems
18112: # (the dirname of $[0] is not the place where we might find the
18113: # original and so on. Autoconf is especially sensible to this).
18114: . ./$as_me.lineno
18115: # Exit status is that of the last command.
18116: exit
18117: }
18118:
18119:
18120: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18121: *c*,-n*) ECHO_N= ECHO_C='
18122: ' ECHO_T=' ' ;;
18123: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18124: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18125: esac
18126:
18127: if expr a : '\(a\)' >/dev/null 2>&1; then
18128: as_expr=expr
18129: else
18130: as_expr=false
18131: fi
18132:
18133: rm -f conf$$ conf$$.exe conf$$.file
18134: echo >conf$$.file
18135: if ln -s conf$$.file conf$$ 2>/dev/null; then
18136: # We could just check for DJGPP; but this test a) works b) is more generic
18137: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18138: if test -f conf$$.exe; then
18139: # Don't use ln at all; we don't have any links
18140: as_ln_s='cp -p'
18141: else
18142: as_ln_s='ln -s'
18143: fi
18144: elif ln conf$$.file conf$$ 2>/dev/null; then
18145: as_ln_s=ln
18146: else
18147: as_ln_s='cp -p'
18148: fi
18149: rm -f conf$$ conf$$.exe conf$$.file
18150:
18151: if mkdir -p . 2>/dev/null; then
18152: as_mkdir_p=:
18153: else
18154: test -d ./-p && rmdir ./-p
18155: as_mkdir_p=false
18156: fi
18157:
18158: as_executable_p="test -f"
18159:
18160: # Sed expression to map a string onto a valid CPP name.
18161: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18162:
18163: # Sed expression to map a string onto a valid variable name.
18164: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18165:
18166:
18167: # IFS
18168: # We need space, tab and new line, in precisely that order.
18169: as_nl='
18170: '
18171: IFS=" $as_nl"
18172:
18173: # CDPATH.
18174: $as_unset CDPATH
18175:
18176: exec 6>&1
18177:
18178: # Open the log real soon, to keep \$[0] and so on meaningful, and to
18179: # report actual input values of CONFIG_FILES etc. instead of their
18180: # values after options handling. Logging --version etc. is OK.
18181: exec 5>>config.log
18182: {
18183: echo
18184: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18185: ## Running $as_me. ##
18186: _ASBOX
18187: } >&5
18188: cat >&5 <<_CSEOF
18189:
18190: This file was extended by parser3 $as_me 10.2, which was
18191: generated by GNU Autoconf 2.59. Invocation command line was
18192:
18193: CONFIG_FILES = $CONFIG_FILES
18194: CONFIG_HEADERS = $CONFIG_HEADERS
18195: CONFIG_LINKS = $CONFIG_LINKS
18196: CONFIG_COMMANDS = $CONFIG_COMMANDS
18197: $ $0 $@
18198:
18199: _CSEOF
18200: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18201: echo >&5
18202: _ACEOF
18203:
18204: # Files that config.status was made for.
18205: if test -n "$ac_config_files"; then
18206: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18207: fi
18208:
18209: if test -n "$ac_config_headers"; then
18210: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18211: fi
18212:
18213: if test -n "$ac_config_links"; then
18214: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18215: fi
18216:
18217: if test -n "$ac_config_commands"; then
18218: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18219: fi
18220:
18221: cat >>$CONFIG_STATUS <<\_ACEOF
18222:
18223: ac_cs_usage="\
18224: \`$as_me' instantiates files from templates according to the
18225: current configuration.
18226:
18227: Usage: $0 [OPTIONS] [FILE]...
18228:
18229: -h, --help print this help, then exit
18230: -V, --version print version number, then exit
18231: -q, --quiet do not print progress messages
18232: -d, --debug don't remove temporary files
18233: --recheck update $as_me by reconfiguring in the same conditions
18234: --file=FILE[:TEMPLATE]
18235: instantiate the configuration file FILE
18236: --header=FILE[:TEMPLATE]
18237: instantiate the configuration header FILE
18238:
18239: Configuration files:
18240: $config_files
18241:
18242: Configuration headers:
18243: $config_headers
18244:
18245: Configuration commands:
18246: $config_commands
18247:
18248: Report bugs to <bug-autoconf@gnu.org>."
18249: _ACEOF
18250:
18251: cat >>$CONFIG_STATUS <<_ACEOF
18252: ac_cs_version="\\
18253: parser3 config.status 10.2
18254: configured by $0, generated by GNU Autoconf 2.59,
18255: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18256:
18257: Copyright (C) 2003 Free Software Foundation, Inc.
18258: This config.status script is free software; the Free Software Foundation
18259: gives unlimited permission to copy, distribute and modify it."
18260: srcdir=$srcdir
18261: INSTALL="$INSTALL"
18262: _ACEOF
18263:
18264: cat >>$CONFIG_STATUS <<\_ACEOF
18265: # If no file are specified by the user, then we need to provide default
18266: # value. By we need to know if files were specified by the user.
18267: ac_need_defaults=:
18268: while test $# != 0
18269: do
18270: case $1 in
18271: --*=*)
18272: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18273: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18274: ac_shift=:
18275: ;;
18276: -*)
18277: ac_option=$1
18278: ac_optarg=$2
18279: ac_shift=shift
18280: ;;
18281: *) # This is not an option, so the user has probably given explicit
18282: # arguments.
18283: ac_option=$1
18284: ac_need_defaults=false;;
18285: esac
18286:
18287: case $ac_option in
18288: # Handling of the options.
18289: _ACEOF
18290: cat >>$CONFIG_STATUS <<\_ACEOF
18291: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18292: ac_cs_recheck=: ;;
18293: --version | --vers* | -V )
18294: echo "$ac_cs_version"; exit 0 ;;
18295: --he | --h)
18296: # Conflict between --help and --header
18297: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18298: Try \`$0 --help' for more information." >&5
18299: echo "$as_me: error: ambiguous option: $1
18300: Try \`$0 --help' for more information." >&2;}
18301: { (exit 1); exit 1; }; };;
18302: --help | --hel | -h )
18303: echo "$ac_cs_usage"; exit 0 ;;
18304: --debug | --d* | -d )
18305: debug=: ;;
18306: --file | --fil | --fi | --f )
18307: $ac_shift
18308: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18309: ac_need_defaults=false;;
18310: --header | --heade | --head | --hea )
18311: $ac_shift
18312: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18313: ac_need_defaults=false;;
18314: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18315: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18316: ac_cs_silent=: ;;
18317:
18318: # This is an error.
18319: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18320: Try \`$0 --help' for more information." >&5
18321: echo "$as_me: error: unrecognized option: $1
18322: Try \`$0 --help' for more information." >&2;}
18323: { (exit 1); exit 1; }; } ;;
18324:
18325: *) ac_config_targets="$ac_config_targets $1" ;;
18326:
18327: esac
18328: shift
18329: done
18330:
18331: ac_configure_extra_args=
18332:
18333: if $ac_cs_silent; then
18334: exec 6>/dev/null
18335: ac_configure_extra_args="$ac_configure_extra_args --silent"
18336: fi
18337:
18338: _ACEOF
18339: cat >>$CONFIG_STATUS <<_ACEOF
18340: if \$ac_cs_recheck; then
18341: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18342: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18343: fi
18344:
18345: _ACEOF
18346:
18347: cat >>$CONFIG_STATUS <<_ACEOF
18348: #
18349: # INIT-COMMANDS section.
18350: #
18351:
18352: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18353:
18354:
18355: # The HP-UX ksh and POSIX shell print the target directory to stdout
18356: # if CDPATH is set.
18357: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18358:
18359: sed_quote_subst='$sed_quote_subst'
18360: double_quote_subst='$double_quote_subst'
18361: delay_variable_subst='$delay_variable_subst'
18362: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18363: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18364: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18365: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18366: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18367: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18368: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18369: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18370: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18371: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18372: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18373: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18374: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18375: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18376: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18377: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18378: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18379: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18380: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18381: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18382: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18383: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18384: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18385: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18386: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18387: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18388: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18389: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18390: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18391: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18392: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18393: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18394: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18395: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18396: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18397: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18398: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18399: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18400: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18401: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18402: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18403: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18404: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18405: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18406: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18407: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18408: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18409: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18410: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18411: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18412: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18413: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18414: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18415: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18416: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18417: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18418: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18419: 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"`'
18420: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18421: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18422: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18423: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18424: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18425: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18426: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18427: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18428: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18429: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18430: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18431: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18432: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18433: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18434: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18435: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18436: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18437: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18438: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18439: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18440: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18441: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18442: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18443: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18444: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18445: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18446: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18447: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18448: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18449: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18450: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18451: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18452: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18453: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18454: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18455: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18456: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18457: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18458: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18459: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18460: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18461: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18462: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18463: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18464: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18465: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18466: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18467: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18468: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18469: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18470: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18471: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18472: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18473: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18474: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18475: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18476: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18477: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18478: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18479: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18480: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18481: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18482: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18483: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18484: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18485: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18486: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18487: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18488: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18489: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18490: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18491: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18492: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18493: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18494: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18495: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18496: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18497: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18498: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18499: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18500: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18501: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18502: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18503: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18504: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18505: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18506: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18507: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18508: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18509: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18510: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18511: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18512: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18513: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18514: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18515: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18516: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18517: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18518: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18519: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18520: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18521: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18522: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18523: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18524: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18525: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18526: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18527: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18528: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18529: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18530: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18531: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18532: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18533: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18534: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18535: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18536: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18537: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18538: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18539: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18540: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18541: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18542: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18543: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18544: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18545: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18546: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18547:
18548: LTCC='$LTCC'
18549: LTCFLAGS='$LTCFLAGS'
18550: compiler='$compiler_DEFAULT'
18551:
18552: # A function that is used when there is no print builtin or printf.
18553: func_fallback_echo ()
18554: {
18555: eval 'cat <<_LTECHO_EOF
18556: \$1
18557: _LTECHO_EOF'
18558: }
18559:
18560: # Quote evaled strings.
18561: for var in AS \
18562: DLLTOOL \
18563: OBJDUMP \
18564: SHELL \
18565: ECHO \
18566: PATH_SEPARATOR \
18567: SED \
18568: GREP \
18569: EGREP \
18570: FGREP \
18571: LD \
18572: NM \
18573: LN_S \
18574: lt_SP2NL \
18575: lt_NL2SP \
18576: reload_flag \
18577: deplibs_check_method \
18578: file_magic_cmd \
18579: file_magic_glob \
18580: want_nocaseglob \
18581: sharedlib_from_linklib_cmd \
18582: AR \
18583: AR_FLAGS \
18584: archiver_list_spec \
18585: STRIP \
18586: RANLIB \
18587: CC \
18588: CFLAGS \
18589: compiler \
18590: lt_cv_sys_global_symbol_pipe \
18591: lt_cv_sys_global_symbol_to_cdecl \
18592: lt_cv_sys_global_symbol_to_c_name_address \
18593: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18594: nm_file_list_spec \
18595: lt_prog_compiler_no_builtin_flag \
18596: lt_prog_compiler_pic \
18597: lt_prog_compiler_wl \
18598: lt_prog_compiler_static \
18599: lt_cv_prog_compiler_c_o \
18600: need_locks \
18601: MANIFEST_TOOL \
18602: DSYMUTIL \
18603: NMEDIT \
18604: LIPO \
18605: OTOOL \
18606: OTOOL64 \
18607: shrext_cmds \
18608: export_dynamic_flag_spec \
18609: whole_archive_flag_spec \
18610: compiler_needs_object \
18611: with_gnu_ld \
18612: allow_undefined_flag \
18613: no_undefined_flag \
18614: hardcode_libdir_flag_spec \
18615: hardcode_libdir_separator \
18616: exclude_expsyms \
18617: include_expsyms \
18618: file_list_spec \
18619: variables_saved_for_relink \
18620: libname_spec \
18621: library_names_spec \
18622: soname_spec \
18623: install_override_mode \
18624: finish_eval \
18625: old_striplib \
18626: striplib \
18627: compiler_lib_search_dirs \
18628: predep_objects \
18629: postdep_objects \
18630: predeps \
18631: postdeps \
18632: compiler_lib_search_path \
18633: LD_CXX \
18634: reload_flag_CXX \
18635: compiler_CXX \
18636: lt_prog_compiler_no_builtin_flag_CXX \
18637: lt_prog_compiler_pic_CXX \
18638: lt_prog_compiler_wl_CXX \
18639: lt_prog_compiler_static_CXX \
18640: lt_cv_prog_compiler_c_o_CXX \
18641: export_dynamic_flag_spec_CXX \
18642: whole_archive_flag_spec_CXX \
18643: compiler_needs_object_CXX \
18644: with_gnu_ld_CXX \
18645: allow_undefined_flag_CXX \
18646: no_undefined_flag_CXX \
18647: hardcode_libdir_flag_spec_CXX \
18648: hardcode_libdir_separator_CXX \
18649: exclude_expsyms_CXX \
18650: include_expsyms_CXX \
18651: file_list_spec_CXX \
18652: compiler_lib_search_dirs_CXX \
18653: predep_objects_CXX \
18654: postdep_objects_CXX \
18655: predeps_CXX \
18656: postdeps_CXX \
18657: compiler_lib_search_path_CXX; do
18658: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18659: *[\\\\\\\`\\"\\\$]*)
18660: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18661: ;;
18662: *)
18663: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18664: ;;
18665: esac
18666: done
18667:
18668: # Double-quote double-evaled strings.
18669: for var in reload_cmds \
18670: old_postinstall_cmds \
18671: old_postuninstall_cmds \
18672: old_archive_cmds \
18673: extract_expsyms_cmds \
18674: old_archive_from_new_cmds \
18675: old_archive_from_expsyms_cmds \
18676: archive_cmds \
18677: archive_expsym_cmds \
18678: module_cmds \
18679: module_expsym_cmds \
18680: export_symbols_cmds \
18681: prelink_cmds \
18682: postlink_cmds \
18683: postinstall_cmds \
18684: postuninstall_cmds \
18685: finish_cmds \
18686: sys_lib_search_path_spec \
18687: sys_lib_dlsearch_path_spec \
18688: reload_cmds_CXX \
18689: old_archive_cmds_CXX \
18690: old_archive_from_new_cmds_CXX \
18691: old_archive_from_expsyms_cmds_CXX \
18692: archive_cmds_CXX \
18693: archive_expsym_cmds_CXX \
18694: module_cmds_CXX \
18695: module_expsym_cmds_CXX \
18696: export_symbols_cmds_CXX \
18697: prelink_cmds_CXX \
18698: postlink_cmds_CXX; do
18699: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18700: *[\\\\\\\`\\"\\\$]*)
18701: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18702: ;;
18703: *)
18704: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18705: ;;
18706: esac
18707: done
18708:
18709: ac_aux_dir='$ac_aux_dir'
18710: xsi_shell='$xsi_shell'
18711: lt_shell_append='$lt_shell_append'
18712:
18713: # See if we are running on zsh, and set the options which allow our
18714: # commands through without removal of \ escapes INIT.
18715: if test -n "\${ZSH_VERSION+set}" ; then
18716: setopt NO_GLOB_SUBST
18717: fi
18718:
18719:
18720: PACKAGE='$PACKAGE'
18721: VERSION='$VERSION'
18722: TIMESTAMP='$TIMESTAMP'
18723: RM='$RM'
18724: ofile='$ofile'
18725:
18726:
18727:
18728:
18729:
18730:
18731: _ACEOF
18732:
18733:
18734:
18735: cat >>$CONFIG_STATUS <<\_ACEOF
18736: for ac_config_target in $ac_config_targets
18737: do
18738: case "$ac_config_target" in
18739: # Handling of arguments.
18740: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18741: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18742: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18743: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18744: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18745: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18746: { (exit 1); exit 1; }; };;
18747: esac
18748: done
18749:
18750: # If the user did not use the arguments to specify the items to instantiate,
18751: # then the envvar interface is used. Set only those that are not.
18752: # We use the long form for the default assignment because of an extremely
18753: # bizarre bug on SunOS 4.1.3.
18754: if $ac_need_defaults; then
18755: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18756: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18757: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18758: fi
18759:
18760: # Have a temporary directory for convenience. Make it in the build tree
18761: # simply because there is no reason to put it here, and in addition,
18762: # creating and moving files from /tmp can sometimes cause problems.
18763: # Create a temporary directory, and hook for its removal unless debugging.
18764: $debug ||
18765: {
18766: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18767: trap '{ (exit 1); exit 1; }' 1 2 13 15
18768: }
18769:
18770: # Create a (secure) tmp directory for tmp files.
18771:
18772: {
18773: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18774: test -n "$tmp" && test -d "$tmp"
18775: } ||
18776: {
18777: tmp=./confstat$$-$RANDOM
18778: (umask 077 && mkdir $tmp)
18779: } ||
18780: {
18781: echo "$me: cannot create a temporary directory in ." >&2
18782: { (exit 1); exit 1; }
18783: }
18784:
18785: _ACEOF
18786:
18787: cat >>$CONFIG_STATUS <<_ACEOF
18788:
18789: #
18790: # CONFIG_FILES section.
18791: #
18792:
18793: # No need to generate the scripts if there are no CONFIG_FILES.
18794: # This happens for instance when ./config.status config.h
18795: if test -n "\$CONFIG_FILES"; then
18796: # Protect against being on the right side of a sed subst in config.status.
18797: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18798: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18799: s,@SHELL@,$SHELL,;t t
18800: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18801: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18802: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18803: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18804: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18805: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18806: s,@exec_prefix@,$exec_prefix,;t t
18807: s,@prefix@,$prefix,;t t
18808: s,@program_transform_name@,$program_transform_name,;t t
18809: s,@bindir@,$bindir,;t t
18810: s,@sbindir@,$sbindir,;t t
18811: s,@libexecdir@,$libexecdir,;t t
18812: s,@datadir@,$datadir,;t t
18813: s,@sysconfdir@,$sysconfdir,;t t
18814: s,@sharedstatedir@,$sharedstatedir,;t t
18815: s,@localstatedir@,$localstatedir,;t t
18816: s,@libdir@,$libdir,;t t
18817: s,@includedir@,$includedir,;t t
18818: s,@oldincludedir@,$oldincludedir,;t t
18819: s,@infodir@,$infodir,;t t
18820: s,@mandir@,$mandir,;t t
18821: s,@build_alias@,$build_alias,;t t
18822: s,@host_alias@,$host_alias,;t t
18823: s,@target_alias@,$target_alias,;t t
18824: s,@DEFS@,$DEFS,;t t
18825: s,@ECHO_C@,$ECHO_C,;t t
18826: s,@ECHO_N@,$ECHO_N,;t t
18827: s,@ECHO_T@,$ECHO_T,;t t
18828: s,@LIBS@,$LIBS,;t t
18829: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18830: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18831: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18832: s,@CYGPATH_W@,$CYGPATH_W,;t t
18833: s,@PACKAGE@,$PACKAGE,;t t
18834: s,@VERSION@,$VERSION,;t t
18835: s,@ACLOCAL@,$ACLOCAL,;t t
18836: s,@AUTOCONF@,$AUTOCONF,;t t
18837: s,@AUTOMAKE@,$AUTOMAKE,;t t
18838: s,@AUTOHEADER@,$AUTOHEADER,;t t
18839: s,@MAKEINFO@,$MAKEINFO,;t t
18840: s,@install_sh@,$install_sh,;t t
18841: s,@STRIP@,$STRIP,;t t
18842: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18843: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18844: s,@mkdir_p@,$mkdir_p,;t t
18845: s,@AWK@,$AWK,;t t
18846: s,@SET_MAKE@,$SET_MAKE,;t t
18847: s,@am__leading_dot@,$am__leading_dot,;t t
18848: s,@AMTAR@,$AMTAR,;t t
18849: s,@am__tar@,$am__tar,;t t
18850: s,@am__untar@,$am__untar,;t t
18851: s,@ORACLE_OCI_INC@,$ORACLE_OCI_INC,;t t
18852: s,@ORACLE_PUBLIC_INC@,$ORACLE_PUBLIC_INC,;t t
18853: s,@LDFLAGS@,$LDFLAGS,;t t
18854: s,@CXX@,$CXX,;t t
18855: s,@CXXFLAGS@,$CXXFLAGS,;t t
18856: s,@CPPFLAGS@,$CPPFLAGS,;t t
18857: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18858: s,@EXEEXT@,$EXEEXT,;t t
18859: s,@OBJEXT@,$OBJEXT,;t t
18860: s,@DEPDIR@,$DEPDIR,;t t
18861: s,@am__include@,$am__include,;t t
18862: s,@am__quote@,$am__quote,;t t
18863: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18864: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18865: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18866: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18867: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18868: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18869: s,@CC@,$CC,;t t
18870: s,@CFLAGS@,$CFLAGS,;t t
18871: s,@ac_ct_CC@,$ac_ct_CC,;t t
18872: s,@CCDEPMODE@,$CCDEPMODE,;t t
18873: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18874: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18875: s,@AS@,$AS,;t t
18876: s,@ac_ct_AS@,$ac_ct_AS,;t t
18877: s,@DLLTOOL@,$DLLTOOL,;t t
18878: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18879: s,@OBJDUMP@,$OBJDUMP,;t t
18880: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
18881: s,@LIBTOOL@,$LIBTOOL,;t t
18882: s,@build@,$build,;t t
18883: s,@build_cpu@,$build_cpu,;t t
18884: s,@build_vendor@,$build_vendor,;t t
18885: s,@build_os@,$build_os,;t t
18886: s,@host@,$host,;t t
18887: s,@host_cpu@,$host_cpu,;t t
18888: s,@host_vendor@,$host_vendor,;t t
18889: s,@host_os@,$host_os,;t t
18890: s,@SED@,$SED,;t t
18891: s,@EGREP@,$EGREP,;t t
18892: s,@FGREP@,$FGREP,;t t
18893: s,@GREP@,$GREP,;t t
18894: s,@LD@,$LD,;t t
18895: s,@DUMPBIN@,$DUMPBIN,;t t
18896: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18897: s,@NM@,$NM,;t t
18898: s,@LN_S@,$LN_S,;t t
18899: s,@AR@,$AR,;t t
18900: s,@ac_ct_AR@,$ac_ct_AR,;t t
18901: s,@RANLIB@,$RANLIB,;t t
18902: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18903: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18904: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18905: s,@DSYMUTIL@,$DSYMUTIL,;t t
18906: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18907: s,@NMEDIT@,$NMEDIT,;t t
18908: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18909: s,@LIPO@,$LIPO,;t t
18910: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18911: s,@OTOOL@,$OTOOL,;t t
18912: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18913: s,@OTOOL64@,$OTOOL64,;t t
18914: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18915: s,@CPP@,$CPP,;t t
18916: s,@CXXCPP@,$CXXCPP,;t t
18917: s,@LIBLTDL@,$LIBLTDL,;t t
18918: s,@LTDLDEPS@,$LTDLDEPS,;t t
18919: s,@LTDLINCL@,$LTDLINCL,;t t
18920: s,@INCLTDL@,$INCLTDL,;t t
18921: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18922: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18923: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18924: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18925: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
18926: s,@LIBADD_DL@,$LIBADD_DL,;t t
18927: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18928: s,@ARGZ_H@,$ARGZ_H,;t t
18929: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18930: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18931: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18932: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18933: s,@subdirs@,$subdirs,;t t
18934: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18935: s,@LTDLOPEN@,$LTDLOPEN,;t t
18936: s,@LIBOBJS@,$LIBOBJS,;t t
18937: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18938: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18939: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18940: CEOF
18941:
18942: _ACEOF
18943:
18944: cat >>$CONFIG_STATUS <<\_ACEOF
18945: # Split the substitutions into bite-sized pieces for seds with
18946: # small command number limits, like on Digital OSF/1 and HP-UX.
18947: ac_max_sed_lines=48
18948: ac_sed_frag=1 # Number of current file.
18949: ac_beg=1 # First line for current file.
18950: ac_end=$ac_max_sed_lines # Line after last line for current file.
18951: ac_more_lines=:
18952: ac_sed_cmds=
18953: while $ac_more_lines; do
18954: if test $ac_beg -gt 1; then
18955: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18956: else
18957: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18958: fi
18959: if test ! -s $tmp/subs.frag; then
18960: ac_more_lines=false
18961: else
18962: # The purpose of the label and of the branching condition is to
18963: # speed up the sed processing (if there are no `@' at all, there
18964: # is no need to browse any of the substitutions).
18965: # These are the two extra sed commands mentioned above.
18966: (echo ':t
18967: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18968: if test -z "$ac_sed_cmds"; then
18969: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18970: else
18971: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18972: fi
18973: ac_sed_frag=`expr $ac_sed_frag + 1`
18974: ac_beg=$ac_end
18975: ac_end=`expr $ac_end + $ac_max_sed_lines`
18976: fi
18977: done
18978: if test -z "$ac_sed_cmds"; then
18979: ac_sed_cmds=cat
18980: fi
18981: fi # test -n "$CONFIG_FILES"
18982:
18983: _ACEOF
18984: cat >>$CONFIG_STATUS <<\_ACEOF
18985: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18986: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18987: case $ac_file in
18988: - | *:- | *:-:* ) # input from stdin
18989: cat >$tmp/stdin
18990: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18991: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18992: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18993: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18994: * ) ac_file_in=$ac_file.in ;;
18995: esac
18996:
18997: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18998: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18999: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19000: X"$ac_file" : 'X\(//\)[^/]' \| \
19001: X"$ac_file" : 'X\(//\)$' \| \
19002: X"$ac_file" : 'X\(/\)' \| \
19003: . : '\(.\)' 2>/dev/null ||
19004: echo X"$ac_file" |
19005: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19006: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19007: /^X\(\/\/\)$/{ s//\1/; q; }
19008: /^X\(\/\).*/{ s//\1/; q; }
19009: s/.*/./; q'`
19010: { if $as_mkdir_p; then
19011: mkdir -p "$ac_dir"
19012: else
19013: as_dir="$ac_dir"
19014: as_dirs=
19015: while test ! -d "$as_dir"; do
19016: as_dirs="$as_dir $as_dirs"
19017: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19018: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19019: X"$as_dir" : 'X\(//\)[^/]' \| \
19020: X"$as_dir" : 'X\(//\)$' \| \
19021: X"$as_dir" : 'X\(/\)' \| \
19022: . : '\(.\)' 2>/dev/null ||
19023: echo X"$as_dir" |
19024: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19025: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19026: /^X\(\/\/\)$/{ s//\1/; q; }
19027: /^X\(\/\).*/{ s//\1/; q; }
19028: s/.*/./; q'`
19029: done
19030: test ! -n "$as_dirs" || mkdir $as_dirs
19031: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19032: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19033: { (exit 1); exit 1; }; }; }
19034:
19035: ac_builddir=.
19036:
19037: if test "$ac_dir" != .; then
19038: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19039: # A "../" for each directory in $ac_dir_suffix.
19040: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19041: else
19042: ac_dir_suffix= ac_top_builddir=
19043: fi
19044:
19045: case $srcdir in
19046: .) # No --srcdir option. We are building in place.
19047: ac_srcdir=.
19048: if test -z "$ac_top_builddir"; then
19049: ac_top_srcdir=.
19050: else
19051: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19052: fi ;;
19053: [\\/]* | ?:[\\/]* ) # Absolute path.
19054: ac_srcdir=$srcdir$ac_dir_suffix;
19055: ac_top_srcdir=$srcdir ;;
19056: *) # Relative path.
19057: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19058: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19059: esac
19060:
19061: # Do not use `cd foo && pwd` to compute absolute paths, because
19062: # the directories may not exist.
19063: case `pwd` in
19064: .) ac_abs_builddir="$ac_dir";;
19065: *)
19066: case "$ac_dir" in
19067: .) ac_abs_builddir=`pwd`;;
19068: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19069: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19070: esac;;
19071: esac
19072: case $ac_abs_builddir in
19073: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19074: *)
19075: case ${ac_top_builddir}. in
19076: .) ac_abs_top_builddir=$ac_abs_builddir;;
19077: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19078: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19079: esac;;
19080: esac
19081: case $ac_abs_builddir in
19082: .) ac_abs_srcdir=$ac_srcdir;;
19083: *)
19084: case $ac_srcdir in
19085: .) ac_abs_srcdir=$ac_abs_builddir;;
19086: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19087: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19088: esac;;
19089: esac
19090: case $ac_abs_builddir in
19091: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19092: *)
19093: case $ac_top_srcdir in
19094: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19095: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19096: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19097: esac;;
19098: esac
19099:
19100:
19101: case $INSTALL in
19102: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19103: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19104: esac
19105:
19106: if test x"$ac_file" != x-; then
19107: { echo "$as_me:$LINENO: creating $ac_file" >&5
19108: echo "$as_me: creating $ac_file" >&6;}
19109: rm -f "$ac_file"
19110: fi
19111: # Let's still pretend it is `configure' which instantiates (i.e., don't
19112: # use $as_me), people would be surprised to read:
19113: # /* config.h. Generated by config.status. */
19114: if test x"$ac_file" = x-; then
19115: configure_input=
19116: else
19117: configure_input="$ac_file. "
19118: fi
19119: configure_input=$configure_input"Generated from `echo $ac_file_in |
19120: sed 's,.*/,,'` by configure."
19121:
19122: # First look for the input files in the build tree, otherwise in the
19123: # src tree.
19124: ac_file_inputs=`IFS=:
19125: for f in $ac_file_in; do
19126: case $f in
19127: -) echo $tmp/stdin ;;
19128: [\\/$]*)
19129: # Absolute (can't be DOS-style, as IFS=:)
19130: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19131: echo "$as_me: error: cannot find input file: $f" >&2;}
19132: { (exit 1); exit 1; }; }
19133: echo "$f";;
19134: *) # Relative
19135: if test -f "$f"; then
19136: # Build tree
19137: echo "$f"
19138: elif test -f "$srcdir/$f"; then
19139: # Source tree
19140: echo "$srcdir/$f"
19141: else
19142: # /dev/null tree
19143: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19144: echo "$as_me: error: cannot find input file: $f" >&2;}
19145: { (exit 1); exit 1; }; }
19146: fi;;
19147: esac
19148: done` || { (exit 1); exit 1; }
19149: _ACEOF
19150: cat >>$CONFIG_STATUS <<_ACEOF
19151: sed "$ac_vpsub
19152: $extrasub
19153: _ACEOF
19154: cat >>$CONFIG_STATUS <<\_ACEOF
19155: :t
19156: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19157: s,@configure_input@,$configure_input,;t t
19158: s,@srcdir@,$ac_srcdir,;t t
19159: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19160: s,@top_srcdir@,$ac_top_srcdir,;t t
19161: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19162: s,@builddir@,$ac_builddir,;t t
19163: s,@abs_builddir@,$ac_abs_builddir,;t t
19164: s,@top_builddir@,$ac_top_builddir,;t t
19165: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19166: s,@INSTALL@,$ac_INSTALL,;t t
19167: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19168: rm -f $tmp/stdin
19169: if test x"$ac_file" != x-; then
19170: mv $tmp/out $ac_file
19171: else
19172: cat $tmp/out
19173: rm -f $tmp/out
19174: fi
19175:
19176: done
19177: _ACEOF
19178: cat >>$CONFIG_STATUS <<\_ACEOF
19179:
19180: #
19181: # CONFIG_HEADER section.
19182: #
19183:
19184: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19185: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19186: #
19187: # ac_d sets the value in "#define NAME VALUE" lines.
19188: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19189: ac_dB='[ ].*$,\1#\2'
19190: ac_dC=' '
19191: ac_dD=',;t'
19192: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19193: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19194: ac_uB='$,\1#\2define\3'
19195: ac_uC=' '
19196: ac_uD=',;t'
19197:
19198: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19199: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19200: case $ac_file in
19201: - | *:- | *:-:* ) # input from stdin
19202: cat >$tmp/stdin
19203: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19204: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19205: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19206: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19207: * ) ac_file_in=$ac_file.in ;;
19208: esac
19209:
19210: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19211: echo "$as_me: creating $ac_file" >&6;}
19212:
19213: # First look for the input files in the build tree, otherwise in the
19214: # src tree.
19215: ac_file_inputs=`IFS=:
19216: for f in $ac_file_in; do
19217: case $f in
19218: -) echo $tmp/stdin ;;
19219: [\\/$]*)
19220: # Absolute (can't be DOS-style, as IFS=:)
19221: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19222: echo "$as_me: error: cannot find input file: $f" >&2;}
19223: { (exit 1); exit 1; }; }
19224: # Do quote $f, to prevent DOS paths from being IFS'd.
19225: echo "$f";;
19226: *) # Relative
19227: if test -f "$f"; then
19228: # Build tree
19229: echo "$f"
19230: elif test -f "$srcdir/$f"; then
19231: # Source tree
19232: echo "$srcdir/$f"
19233: else
19234: # /dev/null tree
19235: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19236: echo "$as_me: error: cannot find input file: $f" >&2;}
19237: { (exit 1); exit 1; }; }
19238: fi;;
19239: esac
19240: done` || { (exit 1); exit 1; }
19241: # Remove the trailing spaces.
19242: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19243:
19244: _ACEOF
19245:
19246: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19247: # `conftest.undefs', that substitutes the proper values into
19248: # config.h.in to produce config.h. The first handles `#define'
19249: # templates, and the second `#undef' templates.
19250: # And first: Protect against being on the right side of a sed subst in
19251: # config.status. Protect against being in an unquoted here document
19252: # in config.status.
19253: rm -f conftest.defines conftest.undefs
19254: # Using a here document instead of a string reduces the quoting nightmare.
19255: # Putting comments in sed scripts is not portable.
19256: #
19257: # `end' is used to avoid that the second main sed command (meant for
19258: # 0-ary CPP macros) applies to n-ary macro definitions.
19259: # See the Autoconf documentation for `clear'.
19260: cat >confdef2sed.sed <<\_ACEOF
19261: s/[\\&,]/\\&/g
19262: s,[\\$`],\\&,g
19263: t clear
19264: : clear
19265: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19266: t end
19267: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19268: : end
19269: _ACEOF
19270: # If some macros were called several times there might be several times
19271: # the same #defines, which is useless. Nevertheless, we may not want to
19272: # sort them, since we want the *last* AC-DEFINE to be honored.
19273: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19274: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19275: rm -f confdef2sed.sed
19276:
19277: # This sed command replaces #undef with comments. This is necessary, for
19278: # example, in the case of _POSIX_SOURCE, which is predefined and required
19279: # on some systems where configure will not decide to define it.
19280: cat >>conftest.undefs <<\_ACEOF
19281: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19282: _ACEOF
19283:
19284: # Break up conftest.defines because some shells have a limit on the size
19285: # of here documents, and old seds have small limits too (100 cmds).
19286: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19287: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19288: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19289: echo ' :' >>$CONFIG_STATUS
19290: rm -f conftest.tail
19291: while grep . conftest.defines >/dev/null
19292: do
19293: # Write a limited-size here document to $tmp/defines.sed.
19294: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19295: # Speed up: don't consider the non `#define' lines.
19296: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19297: # Work around the forget-to-reset-the-flag bug.
19298: echo 't clr' >>$CONFIG_STATUS
19299: echo ': clr' >>$CONFIG_STATUS
19300: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19301: echo 'CEOF
19302: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19303: rm -f $tmp/in
19304: mv $tmp/out $tmp/in
19305: ' >>$CONFIG_STATUS
19306: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19307: rm -f conftest.defines
19308: mv conftest.tail conftest.defines
19309: done
19310: rm -f conftest.defines
19311: echo ' fi # grep' >>$CONFIG_STATUS
19312: echo >>$CONFIG_STATUS
19313:
19314: # Break up conftest.undefs because some shells have a limit on the size
19315: # of here documents, and old seds have small limits too (100 cmds).
19316: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19317: rm -f conftest.tail
19318: while grep . conftest.undefs >/dev/null
19319: do
19320: # Write a limited-size here document to $tmp/undefs.sed.
19321: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19322: # Speed up: don't consider the non `#undef'
19323: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19324: # Work around the forget-to-reset-the-flag bug.
19325: echo 't clr' >>$CONFIG_STATUS
19326: echo ': clr' >>$CONFIG_STATUS
19327: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19328: echo 'CEOF
19329: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19330: rm -f $tmp/in
19331: mv $tmp/out $tmp/in
19332: ' >>$CONFIG_STATUS
19333: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19334: rm -f conftest.undefs
19335: mv conftest.tail conftest.undefs
19336: done
19337: rm -f conftest.undefs
19338:
19339: cat >>$CONFIG_STATUS <<\_ACEOF
19340: # Let's still pretend it is `configure' which instantiates (i.e., don't
19341: # use $as_me), people would be surprised to read:
19342: # /* config.h. Generated by config.status. */
19343: if test x"$ac_file" = x-; then
19344: echo "/* Generated by configure. */" >$tmp/config.h
19345: else
19346: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19347: fi
19348: cat $tmp/in >>$tmp/config.h
19349: rm -f $tmp/in
19350: if test x"$ac_file" != x-; then
19351: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19352: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19353: echo "$as_me: $ac_file is unchanged" >&6;}
19354: else
19355: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19356: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19357: X"$ac_file" : 'X\(//\)[^/]' \| \
19358: X"$ac_file" : 'X\(//\)$' \| \
19359: X"$ac_file" : 'X\(/\)' \| \
19360: . : '\(.\)' 2>/dev/null ||
19361: echo X"$ac_file" |
19362: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19363: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19364: /^X\(\/\/\)$/{ s//\1/; q; }
19365: /^X\(\/\).*/{ s//\1/; q; }
19366: s/.*/./; q'`
19367: { if $as_mkdir_p; then
19368: mkdir -p "$ac_dir"
19369: else
19370: as_dir="$ac_dir"
19371: as_dirs=
19372: while test ! -d "$as_dir"; do
19373: as_dirs="$as_dir $as_dirs"
19374: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19375: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19376: X"$as_dir" : 'X\(//\)[^/]' \| \
19377: X"$as_dir" : 'X\(//\)$' \| \
19378: X"$as_dir" : 'X\(/\)' \| \
19379: . : '\(.\)' 2>/dev/null ||
19380: echo X"$as_dir" |
19381: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19382: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19383: /^X\(\/\/\)$/{ s//\1/; q; }
19384: /^X\(\/\).*/{ s//\1/; q; }
19385: s/.*/./; q'`
19386: done
19387: test ! -n "$as_dirs" || mkdir $as_dirs
19388: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19389: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19390: { (exit 1); exit 1; }; }; }
19391:
19392: rm -f $ac_file
19393: mv $tmp/config.h $ac_file
19394: fi
19395: else
19396: cat $tmp/config.h
19397: rm -f $tmp/config.h
19398: fi
19399: # Compute $ac_file's index in $config_headers.
19400: _am_stamp_count=1
19401: for _am_header in $config_headers :; do
19402: case $_am_header in
19403: $ac_file | $ac_file:* )
19404: break ;;
19405: * )
19406: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19407: esac
19408: done
19409: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19410: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19411: X$ac_file : 'X\(//\)[^/]' \| \
19412: X$ac_file : 'X\(//\)$' \| \
19413: X$ac_file : 'X\(/\)' \| \
19414: . : '\(.\)' 2>/dev/null ||
19415: echo X$ac_file |
19416: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19417: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19418: /^X\(\/\/\)$/{ s//\1/; q; }
19419: /^X\(\/\).*/{ s//\1/; q; }
19420: s/.*/./; q'`/stamp-h$_am_stamp_count
19421: done
19422: _ACEOF
19423: cat >>$CONFIG_STATUS <<\_ACEOF
19424:
19425: #
19426: # CONFIG_COMMANDS section.
19427: #
19428: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19429: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19430: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19431: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19432: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19433: X"$ac_dest" : 'X\(//\)[^/]' \| \
19434: X"$ac_dest" : 'X\(//\)$' \| \
19435: X"$ac_dest" : 'X\(/\)' \| \
19436: . : '\(.\)' 2>/dev/null ||
19437: echo X"$ac_dest" |
19438: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19439: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19440: /^X\(\/\/\)$/{ s//\1/; q; }
19441: /^X\(\/\).*/{ s//\1/; q; }
19442: s/.*/./; q'`
19443: { if $as_mkdir_p; then
19444: mkdir -p "$ac_dir"
19445: else
19446: as_dir="$ac_dir"
19447: as_dirs=
19448: while test ! -d "$as_dir"; do
19449: as_dirs="$as_dir $as_dirs"
19450: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19451: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19452: X"$as_dir" : 'X\(//\)[^/]' \| \
19453: X"$as_dir" : 'X\(//\)$' \| \
19454: X"$as_dir" : 'X\(/\)' \| \
19455: . : '\(.\)' 2>/dev/null ||
19456: echo X"$as_dir" |
19457: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19458: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19459: /^X\(\/\/\)$/{ s//\1/; q; }
19460: /^X\(\/\).*/{ s//\1/; q; }
19461: s/.*/./; q'`
19462: done
19463: test ! -n "$as_dirs" || mkdir $as_dirs
19464: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19465: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19466: { (exit 1); exit 1; }; }; }
19467:
19468: ac_builddir=.
19469:
19470: if test "$ac_dir" != .; then
19471: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19472: # A "../" for each directory in $ac_dir_suffix.
19473: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19474: else
19475: ac_dir_suffix= ac_top_builddir=
19476: fi
19477:
19478: case $srcdir in
19479: .) # No --srcdir option. We are building in place.
19480: ac_srcdir=.
19481: if test -z "$ac_top_builddir"; then
19482: ac_top_srcdir=.
19483: else
19484: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19485: fi ;;
19486: [\\/]* | ?:[\\/]* ) # Absolute path.
19487: ac_srcdir=$srcdir$ac_dir_suffix;
19488: ac_top_srcdir=$srcdir ;;
19489: *) # Relative path.
19490: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19491: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19492: esac
19493:
19494: # Do not use `cd foo && pwd` to compute absolute paths, because
19495: # the directories may not exist.
19496: case `pwd` in
19497: .) ac_abs_builddir="$ac_dir";;
19498: *)
19499: case "$ac_dir" in
19500: .) ac_abs_builddir=`pwd`;;
19501: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19502: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19503: esac;;
19504: esac
19505: case $ac_abs_builddir in
19506: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19507: *)
19508: case ${ac_top_builddir}. in
19509: .) ac_abs_top_builddir=$ac_abs_builddir;;
19510: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19511: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19512: esac;;
19513: esac
19514: case $ac_abs_builddir in
19515: .) ac_abs_srcdir=$ac_srcdir;;
19516: *)
19517: case $ac_srcdir in
19518: .) ac_abs_srcdir=$ac_abs_builddir;;
19519: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19520: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19521: esac;;
19522: esac
19523: case $ac_abs_builddir in
19524: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19525: *)
19526: case $ac_top_srcdir in
19527: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19528: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19529: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19530: esac;;
19531: esac
19532:
19533:
19534: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19535: echo "$as_me: executing $ac_dest commands" >&6;}
19536: case $ac_dest in
19537: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19538: # Strip MF so we end up with the name of the file.
19539: mf=`echo "$mf" | sed -e 's/:.*$//'`
19540: # Check whether this is an Automake generated Makefile or not.
19541: # We used to match only the files named `Makefile.in', but
19542: # some people rename them; so instead we look at the file content.
19543: # Grep'ing the first line is not enough: some people post-process
19544: # each Makefile.in and add a new line on top of each file to say so.
19545: # So let's grep whole file.
19546: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19547: dirpart=`(dirname "$mf") 2>/dev/null ||
19548: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19549: X"$mf" : 'X\(//\)[^/]' \| \
19550: X"$mf" : 'X\(//\)$' \| \
19551: X"$mf" : 'X\(/\)' \| \
19552: . : '\(.\)' 2>/dev/null ||
19553: echo X"$mf" |
19554: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19555: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19556: /^X\(\/\/\)$/{ s//\1/; q; }
19557: /^X\(\/\).*/{ s//\1/; q; }
19558: s/.*/./; q'`
19559: else
19560: continue
19561: fi
19562: # Extract the definition of DEPDIR, am__include, and am__quote
19563: # from the Makefile without running `make'.
19564: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19565: test -z "$DEPDIR" && continue
19566: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19567: test -z "am__include" && continue
19568: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19569: # When using ansi2knr, U may be empty or an underscore; expand it
19570: U=`sed -n 's/^U = //p' < "$mf"`
19571: # Find all dependency output files, they are included files with
19572: # $(DEPDIR) in their names. We invoke sed twice because it is the
19573: # simplest approach to changing $(DEPDIR) to its actual value in the
19574: # expansion.
19575: for file in `sed -n "
19576: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19577: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19578: # Make sure the directory exists.
19579: test -f "$dirpart/$file" && continue
19580: fdir=`(dirname "$file") 2>/dev/null ||
19581: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19582: X"$file" : 'X\(//\)[^/]' \| \
19583: X"$file" : 'X\(//\)$' \| \
19584: X"$file" : 'X\(/\)' \| \
19585: . : '\(.\)' 2>/dev/null ||
19586: echo X"$file" |
19587: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19588: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19589: /^X\(\/\/\)$/{ s//\1/; q; }
19590: /^X\(\/\).*/{ s//\1/; q; }
19591: s/.*/./; q'`
19592: { if $as_mkdir_p; then
19593: mkdir -p $dirpart/$fdir
19594: else
19595: as_dir=$dirpart/$fdir
19596: as_dirs=
19597: while test ! -d "$as_dir"; do
19598: as_dirs="$as_dir $as_dirs"
19599: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19600: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19601: X"$as_dir" : 'X\(//\)[^/]' \| \
19602: X"$as_dir" : 'X\(//\)$' \| \
19603: X"$as_dir" : 'X\(/\)' \| \
19604: . : '\(.\)' 2>/dev/null ||
19605: echo X"$as_dir" |
19606: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19607: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19608: /^X\(\/\/\)$/{ s//\1/; q; }
19609: /^X\(\/\).*/{ s//\1/; q; }
19610: s/.*/./; q'`
19611: done
19612: test ! -n "$as_dirs" || mkdir $as_dirs
19613: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19614: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19615: { (exit 1); exit 1; }; }; }
19616:
19617: # echo "creating $dirpart/$file"
19618: echo '# dummy' > "$dirpart/$file"
19619: done
19620: done
19621: ;;
19622: libtool )
19623:
19624: # See if we are running on zsh, and set the options which allow our
19625: # commands through without removal of \ escapes.
19626: if test -n "${ZSH_VERSION+set}" ; then
19627: setopt NO_GLOB_SUBST
19628: fi
19629:
19630: cfgfile="${ofile}T"
19631: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19632: $RM "$cfgfile"
19633:
19634: cat <<_LT_EOF >> "$cfgfile"
19635: #! $SHELL
19636:
19637: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19638: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19639: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19640: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19641: #
19642: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19643: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19644: # Foundation, Inc.
19645: # Written by Gordon Matzigkeit, 1996
19646: #
19647: # This file is part of GNU Libtool.
19648: #
19649: # GNU Libtool is free software; you can redistribute it and/or
19650: # modify it under the terms of the GNU General Public License as
19651: # published by the Free Software Foundation; either version 2 of
19652: # the License, or (at your option) any later version.
19653: #
19654: # As a special exception to the GNU General Public License,
19655: # if you distribute this file as part of a program or library that
19656: # is built using GNU Libtool, you may include this file under the
19657: # same distribution terms that you use for the rest of that program.
19658: #
19659: # GNU Libtool is distributed in the hope that it will be useful,
19660: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19661: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19662: # GNU General Public License for more details.
19663: #
19664: # You should have received a copy of the GNU General Public License
19665: # along with GNU Libtool; see the file COPYING. If not, a copy
19666: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19667: # obtained by writing to the Free Software Foundation, Inc.,
19668: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19669:
19670:
19671: # The names of the tagged configurations supported by this script.
19672: available_tags="CXX "
19673:
19674: # ### BEGIN LIBTOOL CONFIG
19675:
19676: # Which release of libtool.m4 was used?
19677: macro_version=$macro_version
19678: macro_revision=$macro_revision
19679:
19680: # Assembler program.
19681: AS=$lt_AS
19682:
19683: # DLL creation program.
19684: DLLTOOL=$lt_DLLTOOL
19685:
19686: # Object dumper program.
19687: OBJDUMP=$lt_OBJDUMP
19688:
19689: # Whether or not to build shared libraries.
19690: build_libtool_libs=$enable_shared
19691:
19692: # Whether or not to build static libraries.
19693: build_old_libs=$enable_static
19694:
19695: # What type of objects to build.
19696: pic_mode=$pic_mode
19697:
19698: # Whether or not to optimize for fast installation.
19699: fast_install=$enable_fast_install
19700:
19701: # Shell to use when invoking shell scripts.
19702: SHELL=$lt_SHELL
19703:
19704: # An echo program that protects backslashes.
19705: ECHO=$lt_ECHO
19706:
19707: # The PATH separator for the build system.
19708: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19709:
19710: # The host system.
19711: host_alias=$host_alias
19712: host=$host
19713: host_os=$host_os
19714:
19715: # The build system.
19716: build_alias=$build_alias
19717: build=$build
19718: build_os=$build_os
19719:
19720: # A sed program that does not truncate output.
19721: SED=$lt_SED
19722:
19723: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19724: Xsed="\$SED -e 1s/^X//"
19725:
19726: # A grep program that handles long lines.
19727: GREP=$lt_GREP
19728:
19729: # An ERE matcher.
19730: EGREP=$lt_EGREP
19731:
19732: # A literal string matcher.
19733: FGREP=$lt_FGREP
19734:
19735: # A BSD- or MS-compatible name lister.
19736: NM=$lt_NM
19737:
19738: # Whether we need soft or hard links.
19739: LN_S=$lt_LN_S
19740:
19741: # What is the maximum length of a command?
19742: max_cmd_len=$max_cmd_len
19743:
19744: # Object file suffix (normally "o").
19745: objext=$ac_objext
19746:
19747: # Executable file suffix (normally "").
19748: exeext=$exeext
19749:
19750: # whether the shell understands "unset".
19751: lt_unset=$lt_unset
19752:
19753: # turn spaces into newlines.
19754: SP2NL=$lt_lt_SP2NL
19755:
19756: # turn newlines into spaces.
19757: NL2SP=$lt_lt_NL2SP
19758:
19759: # convert \$build file names to \$host format.
19760: to_host_file_cmd=$lt_cv_to_host_file_cmd
19761:
19762: # convert \$build files to toolchain format.
19763: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19764:
19765: # Method to check whether dependent libraries are shared objects.
19766: deplibs_check_method=$lt_deplibs_check_method
19767:
19768: # Command to use when deplibs_check_method = "file_magic".
19769: file_magic_cmd=$lt_file_magic_cmd
19770:
19771: # How to find potential files when deplibs_check_method = "file_magic".
19772: file_magic_glob=$lt_file_magic_glob
19773:
19774: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19775: want_nocaseglob=$lt_want_nocaseglob
19776:
19777: # Command to associate shared and link libraries.
19778: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19779:
19780: # The archiver.
19781: AR=$lt_AR
19782:
19783: # Flags to create an archive.
19784: AR_FLAGS=$lt_AR_FLAGS
19785:
19786: # How to feed a file listing to the archiver.
19787: archiver_list_spec=$lt_archiver_list_spec
19788:
19789: # A symbol stripping program.
19790: STRIP=$lt_STRIP
19791:
19792: # Commands used to install an old-style archive.
19793: RANLIB=$lt_RANLIB
19794: old_postinstall_cmds=$lt_old_postinstall_cmds
19795: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19796:
19797: # Whether to use a lock for old archive extraction.
19798: lock_old_archive_extraction=$lock_old_archive_extraction
19799:
19800: # A C compiler.
19801: LTCC=$lt_CC
19802:
19803: # LTCC compiler flags.
19804: LTCFLAGS=$lt_CFLAGS
19805:
19806: # Take the output of nm and produce a listing of raw symbols and C names.
19807: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19808:
19809: # Transform the output of nm in a proper C declaration.
19810: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19811:
19812: # Transform the output of nm in a C name address pair.
19813: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19814:
19815: # Transform the output of nm in a C name address pair when lib prefix is needed.
19816: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19817:
19818: # Specify filename containing input files for \$NM.
19819: nm_file_list_spec=$lt_nm_file_list_spec
19820:
19821: # The root where to search for dependent libraries,and in which our libraries should be installed.
19822: lt_sysroot=$lt_sysroot
19823:
19824: # The name of the directory that contains temporary libtool files.
19825: objdir=$objdir
19826:
19827: # Used to examine libraries when file_magic_cmd begins with "file".
19828: MAGIC_CMD=$MAGIC_CMD
19829:
19830: # Must we lock files when doing compilation?
19831: need_locks=$lt_need_locks
19832:
19833: # Manifest tool.
19834: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19835:
19836: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19837: DSYMUTIL=$lt_DSYMUTIL
19838:
19839: # Tool to change global to local symbols on Mac OS X.
19840: NMEDIT=$lt_NMEDIT
19841:
19842: # Tool to manipulate fat objects and archives on Mac OS X.
19843: LIPO=$lt_LIPO
19844:
19845: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19846: OTOOL=$lt_OTOOL
19847:
19848: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19849: OTOOL64=$lt_OTOOL64
19850:
19851: # Old archive suffix (normally "a").
19852: libext=$libext
19853:
19854: # Shared library suffix (normally ".so").
19855: shrext_cmds=$lt_shrext_cmds
19856:
19857: # The commands to extract the exported symbol list from a shared archive.
19858: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19859:
19860: # Variables whose values should be saved in libtool wrapper scripts and
19861: # restored at link time.
19862: variables_saved_for_relink=$lt_variables_saved_for_relink
19863:
19864: # Do we need the "lib" prefix for modules?
19865: need_lib_prefix=$need_lib_prefix
19866:
19867: # Do we need a version for libraries?
19868: need_version=$need_version
19869:
19870: # Library versioning type.
19871: version_type=$version_type
19872:
19873: # Shared library runtime path variable.
19874: runpath_var=$runpath_var
19875:
19876: # Shared library path variable.
19877: shlibpath_var=$shlibpath_var
19878:
19879: # Is shlibpath searched before the hard-coded library search path?
19880: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19881:
19882: # Format of library name prefix.
19883: libname_spec=$lt_libname_spec
19884:
19885: # List of archive names. First name is the real one, the rest are links.
19886: # The last name is the one that the linker finds with -lNAME
19887: library_names_spec=$lt_library_names_spec
19888:
19889: # The coded name of the library, if different from the real name.
19890: soname_spec=$lt_soname_spec
19891:
19892: # Permission mode override for installation of shared libraries.
19893: install_override_mode=$lt_install_override_mode
19894:
19895: # Command to use after installation of a shared archive.
19896: postinstall_cmds=$lt_postinstall_cmds
19897:
19898: # Command to use after uninstallation of a shared archive.
19899: postuninstall_cmds=$lt_postuninstall_cmds
19900:
19901: # Commands used to finish a libtool library installation in a directory.
19902: finish_cmds=$lt_finish_cmds
19903:
19904: # As "finish_cmds", except a single script fragment to be evaled but
19905: # not shown.
19906: finish_eval=$lt_finish_eval
19907:
19908: # Whether we should hardcode library paths into libraries.
19909: hardcode_into_libs=$hardcode_into_libs
19910:
19911: # Compile-time system search path for libraries.
19912: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19913:
19914: # Run-time system search path for libraries.
19915: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19916:
19917: # Whether dlopen is supported.
19918: dlopen_support=$enable_dlopen
19919:
19920: # Whether dlopen of programs is supported.
19921: dlopen_self=$enable_dlopen_self
19922:
19923: # Whether dlopen of statically linked programs is supported.
19924: dlopen_self_static=$enable_dlopen_self_static
19925:
19926: # Commands to strip libraries.
19927: old_striplib=$lt_old_striplib
19928: striplib=$lt_striplib
19929:
19930:
19931: # The linker used to build libraries.
19932: LD=$lt_LD
19933:
19934: # How to create reloadable object files.
19935: reload_flag=$lt_reload_flag
19936: reload_cmds=$lt_reload_cmds
19937:
19938: # Commands used to build an old-style archive.
19939: old_archive_cmds=$lt_old_archive_cmds
19940:
19941: # A language specific compiler.
19942: CC=$lt_compiler
19943:
19944: # Is the compiler the GNU compiler?
19945: with_gcc=$GCC
19946:
19947: # Compiler flag to turn off builtin functions.
19948: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19949:
19950: # Additional compiler flags for building library objects.
19951: pic_flag=$lt_lt_prog_compiler_pic
19952:
19953: # How to pass a linker flag through the compiler.
19954: wl=$lt_lt_prog_compiler_wl
19955:
19956: # Compiler flag to prevent dynamic linking.
19957: link_static_flag=$lt_lt_prog_compiler_static
19958:
19959: # Does compiler simultaneously support -c and -o options?
19960: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19961:
19962: # Whether or not to add -lc for building shared libraries.
19963: build_libtool_need_lc=$archive_cmds_need_lc
19964:
19965: # Whether or not to disallow shared libs when runtime libs are static.
19966: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19967:
19968: # Compiler flag to allow reflexive dlopens.
19969: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19970:
19971: # Compiler flag to generate shared objects directly from archives.
19972: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19973:
19974: # Whether the compiler copes with passing no objects directly.
19975: compiler_needs_object=$lt_compiler_needs_object
19976:
19977: # Create an old-style archive from a shared archive.
19978: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19979:
19980: # Create a temporary old-style archive to link instead of a shared archive.
19981: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19982:
19983: # Commands used to build a shared archive.
19984: archive_cmds=$lt_archive_cmds
19985: archive_expsym_cmds=$lt_archive_expsym_cmds
19986:
19987: # Commands used to build a loadable module if different from building
19988: # a shared archive.
19989: module_cmds=$lt_module_cmds
19990: module_expsym_cmds=$lt_module_expsym_cmds
19991:
19992: # Whether we are building with GNU ld or not.
19993: with_gnu_ld=$lt_with_gnu_ld
19994:
19995: # Flag that allows shared libraries with undefined symbols to be built.
19996: allow_undefined_flag=$lt_allow_undefined_flag
19997:
19998: # Flag that enforces no undefined symbols.
19999: no_undefined_flag=$lt_no_undefined_flag
20000:
20001: # Flag to hardcode \$libdir into a binary during linking.
20002: # This must work even if \$libdir does not exist
20003: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20004:
20005: # Whether we need a single "-rpath" flag with a separated argument.
20006: hardcode_libdir_separator=$lt_hardcode_libdir_separator
20007:
20008: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20009: # DIR into the resulting binary.
20010: hardcode_direct=$hardcode_direct
20011:
20012: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20013: # DIR into the resulting binary and the resulting library dependency is
20014: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20015: # library is relocated.
20016: hardcode_direct_absolute=$hardcode_direct_absolute
20017:
20018: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20019: # into the resulting binary.
20020: hardcode_minus_L=$hardcode_minus_L
20021:
20022: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20023: # into the resulting binary.
20024: hardcode_shlibpath_var=$hardcode_shlibpath_var
20025:
20026: # Set to "yes" if building a shared library automatically hardcodes DIR
20027: # into the library and all subsequent libraries and executables linked
20028: # against it.
20029: hardcode_automatic=$hardcode_automatic
20030:
20031: # Set to yes if linker adds runtime paths of dependent libraries
20032: # to runtime path list.
20033: inherit_rpath=$inherit_rpath
20034:
20035: # Whether libtool must link a program against all its dependency libraries.
20036: link_all_deplibs=$link_all_deplibs
20037:
20038: # Set to "yes" if exported symbols are required.
20039: always_export_symbols=$always_export_symbols
20040:
20041: # The commands to list exported symbols.
20042: export_symbols_cmds=$lt_export_symbols_cmds
20043:
20044: # Symbols that should not be listed in the preloaded symbols.
20045: exclude_expsyms=$lt_exclude_expsyms
20046:
20047: # Symbols that must always be exported.
20048: include_expsyms=$lt_include_expsyms
20049:
20050: # Commands necessary for linking programs (against libraries) with templates.
20051: prelink_cmds=$lt_prelink_cmds
20052:
20053: # Commands necessary for finishing linking programs.
20054: postlink_cmds=$lt_postlink_cmds
20055:
20056: # Specify filename containing input files.
20057: file_list_spec=$lt_file_list_spec
20058:
20059: # How to hardcode a shared library path into an executable.
20060: hardcode_action=$hardcode_action
20061:
20062: # The directories searched by this compiler when creating a shared library.
20063: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20064:
20065: # Dependencies to place before and after the objects being linked to
20066: # create a shared library.
20067: predep_objects=$lt_predep_objects
20068: postdep_objects=$lt_postdep_objects
20069: predeps=$lt_predeps
20070: postdeps=$lt_postdeps
20071:
20072: # The library search path used internally by the compiler when linking
20073: # a shared library.
20074: compiler_lib_search_path=$lt_compiler_lib_search_path
20075:
20076: # ### END LIBTOOL CONFIG
20077:
20078: _LT_EOF
20079:
20080: case $host_os in
20081: aix3*)
20082: cat <<\_LT_EOF >> "$cfgfile"
20083: # AIX sometimes has problems with the GCC collect2 program. For some
20084: # reason, if we set the COLLECT_NAMES environment variable, the problems
20085: # vanish in a puff of smoke.
20086: if test "X${COLLECT_NAMES+set}" != Xset; then
20087: COLLECT_NAMES=
20088: export COLLECT_NAMES
20089: fi
20090: _LT_EOF
20091: ;;
20092: esac
20093:
20094:
20095: ltmain="$ac_aux_dir/ltmain.sh"
20096:
20097:
20098: # We use sed instead of cat because bash on DJGPP gets confused if
20099: # if finds mixed CR/LF and LF-only lines. Since sed operates in
20100: # text mode, it properly converts lines to CR/LF. This bash problem
20101: # is reportedly fixed, but why not run on old versions too?
20102: sed '$q' "$ltmain" >> "$cfgfile" \
20103: || (rm -f "$cfgfile"; exit 1)
20104:
20105: if test x"$xsi_shell" = xyes; then
20106: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20107: func_dirname ()\
20108: {\
20109: \ case ${1} in\
20110: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20111: \ * ) func_dirname_result="${3}" ;;\
20112: \ esac\
20113: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20114: && mv -f "$cfgfile.tmp" "$cfgfile" \
20115: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20116: test 0 -eq $? || _lt_function_replace_fail=:
20117:
20118:
20119: sed -e '/^func_basename ()$/,/^} # func_basename /c\
20120: func_basename ()\
20121: {\
20122: \ func_basename_result="${1##*/}"\
20123: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20124: && mv -f "$cfgfile.tmp" "$cfgfile" \
20125: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20126: test 0 -eq $? || _lt_function_replace_fail=:
20127:
20128:
20129: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20130: func_dirname_and_basename ()\
20131: {\
20132: \ case ${1} in\
20133: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20134: \ * ) func_dirname_result="${3}" ;;\
20135: \ esac\
20136: \ func_basename_result="${1##*/}"\
20137: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20138: && mv -f "$cfgfile.tmp" "$cfgfile" \
20139: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20140: test 0 -eq $? || _lt_function_replace_fail=:
20141:
20142:
20143: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20144: func_stripname ()\
20145: {\
20146: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20147: \ # positional parameters, so assign one to ordinary parameter first.\
20148: \ func_stripname_result=${3}\
20149: \ func_stripname_result=${func_stripname_result#"${1}"}\
20150: \ func_stripname_result=${func_stripname_result%"${2}"}\
20151: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20152: && mv -f "$cfgfile.tmp" "$cfgfile" \
20153: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20154: test 0 -eq $? || _lt_function_replace_fail=:
20155:
20156:
20157: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20158: func_split_long_opt ()\
20159: {\
20160: \ func_split_long_opt_name=${1%%=*}\
20161: \ func_split_long_opt_arg=${1#*=}\
20162: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20163: && mv -f "$cfgfile.tmp" "$cfgfile" \
20164: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20165: test 0 -eq $? || _lt_function_replace_fail=:
20166:
20167:
20168: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20169: func_split_short_opt ()\
20170: {\
20171: \ func_split_short_opt_arg=${1#??}\
20172: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20173: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20174: && mv -f "$cfgfile.tmp" "$cfgfile" \
20175: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20176: test 0 -eq $? || _lt_function_replace_fail=:
20177:
20178:
20179: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20180: func_lo2o ()\
20181: {\
20182: \ case ${1} in\
20183: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20184: \ *) func_lo2o_result=${1} ;;\
20185: \ esac\
20186: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20187: && mv -f "$cfgfile.tmp" "$cfgfile" \
20188: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20189: test 0 -eq $? || _lt_function_replace_fail=:
20190:
20191:
20192: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20193: func_xform ()\
20194: {\
20195: func_xform_result=${1%.*}.lo\
20196: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20197: && mv -f "$cfgfile.tmp" "$cfgfile" \
20198: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20199: test 0 -eq $? || _lt_function_replace_fail=:
20200:
20201:
20202: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20203: func_arith ()\
20204: {\
20205: func_arith_result=$(( $* ))\
20206: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20207: && mv -f "$cfgfile.tmp" "$cfgfile" \
20208: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20209: test 0 -eq $? || _lt_function_replace_fail=:
20210:
20211:
20212: sed -e '/^func_len ()$/,/^} # func_len /c\
20213: func_len ()\
20214: {\
20215: func_len_result=${#1}\
20216: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20217: && mv -f "$cfgfile.tmp" "$cfgfile" \
20218: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20219: test 0 -eq $? || _lt_function_replace_fail=:
20220:
20221: fi
20222:
20223: if test x"$lt_shell_append" = xyes; then
20224: sed -e '/^func_append ()$/,/^} # func_append /c\
20225: func_append ()\
20226: {\
20227: eval "${1}+=\\${2}"\
20228: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20229: && mv -f "$cfgfile.tmp" "$cfgfile" \
20230: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20231: test 0 -eq $? || _lt_function_replace_fail=:
20232:
20233:
20234: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20235: func_append_quoted ()\
20236: {\
20237: \ func_quote_for_eval "${2}"\
20238: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20239: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20240: && mv -f "$cfgfile.tmp" "$cfgfile" \
20241: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20242: test 0 -eq $? || _lt_function_replace_fail=:
20243:
20244:
20245: # Save a `func_append' function call where possible by direct use of '+='
20246: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20247: && mv -f "$cfgfile.tmp" "$cfgfile" \
20248: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20249: test 0 -eq $? || _lt_function_replace_fail=:
20250: else
20251: # Save a `func_append' function call even when '+=' is not available
20252: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20253: && mv -f "$cfgfile.tmp" "$cfgfile" \
20254: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20255: test 0 -eq $? || _lt_function_replace_fail=:
20256: fi
20257:
20258: if test x"$_lt_function_replace_fail" = x":"; then
20259: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20260: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20261: fi
20262:
20263:
20264: mv -f "$cfgfile" "$ofile" ||
20265: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20266: chmod +x "$ofile"
20267:
20268:
20269: cat <<_LT_EOF >> "$ofile"
20270:
20271: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20272:
20273: # The linker used to build libraries.
20274: LD=$lt_LD_CXX
20275:
20276: # How to create reloadable object files.
20277: reload_flag=$lt_reload_flag_CXX
20278: reload_cmds=$lt_reload_cmds_CXX
20279:
20280: # Commands used to build an old-style archive.
20281: old_archive_cmds=$lt_old_archive_cmds_CXX
20282:
20283: # A language specific compiler.
20284: CC=$lt_compiler_CXX
20285:
20286: # Is the compiler the GNU compiler?
20287: with_gcc=$GCC_CXX
20288:
20289: # Compiler flag to turn off builtin functions.
20290: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20291:
20292: # Additional compiler flags for building library objects.
20293: pic_flag=$lt_lt_prog_compiler_pic_CXX
20294:
20295: # How to pass a linker flag through the compiler.
20296: wl=$lt_lt_prog_compiler_wl_CXX
20297:
20298: # Compiler flag to prevent dynamic linking.
20299: link_static_flag=$lt_lt_prog_compiler_static_CXX
20300:
20301: # Does compiler simultaneously support -c and -o options?
20302: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20303:
20304: # Whether or not to add -lc for building shared libraries.
20305: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20306:
20307: # Whether or not to disallow shared libs when runtime libs are static.
20308: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20309:
20310: # Compiler flag to allow reflexive dlopens.
20311: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20312:
20313: # Compiler flag to generate shared objects directly from archives.
20314: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20315:
20316: # Whether the compiler copes with passing no objects directly.
20317: compiler_needs_object=$lt_compiler_needs_object_CXX
20318:
20319: # Create an old-style archive from a shared archive.
20320: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20321:
20322: # Create a temporary old-style archive to link instead of a shared archive.
20323: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20324:
20325: # Commands used to build a shared archive.
20326: archive_cmds=$lt_archive_cmds_CXX
20327: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20328:
20329: # Commands used to build a loadable module if different from building
20330: # a shared archive.
20331: module_cmds=$lt_module_cmds_CXX
20332: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20333:
20334: # Whether we are building with GNU ld or not.
20335: with_gnu_ld=$lt_with_gnu_ld_CXX
20336:
20337: # Flag that allows shared libraries with undefined symbols to be built.
20338: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20339:
20340: # Flag that enforces no undefined symbols.
20341: no_undefined_flag=$lt_no_undefined_flag_CXX
20342:
20343: # Flag to hardcode \$libdir into a binary during linking.
20344: # This must work even if \$libdir does not exist
20345: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20346:
20347: # Whether we need a single "-rpath" flag with a separated argument.
20348: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20349:
20350: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20351: # DIR into the resulting binary.
20352: hardcode_direct=$hardcode_direct_CXX
20353:
20354: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20355: # DIR into the resulting binary and the resulting library dependency is
20356: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20357: # library is relocated.
20358: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20359:
20360: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20361: # into the resulting binary.
20362: hardcode_minus_L=$hardcode_minus_L_CXX
20363:
20364: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20365: # into the resulting binary.
20366: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20367:
20368: # Set to "yes" if building a shared library automatically hardcodes DIR
20369: # into the library and all subsequent libraries and executables linked
20370: # against it.
20371: hardcode_automatic=$hardcode_automatic_CXX
20372:
20373: # Set to yes if linker adds runtime paths of dependent libraries
20374: # to runtime path list.
20375: inherit_rpath=$inherit_rpath_CXX
20376:
20377: # Whether libtool must link a program against all its dependency libraries.
20378: link_all_deplibs=$link_all_deplibs_CXX
20379:
20380: # Set to "yes" if exported symbols are required.
20381: always_export_symbols=$always_export_symbols_CXX
20382:
20383: # The commands to list exported symbols.
20384: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20385:
20386: # Symbols that should not be listed in the preloaded symbols.
20387: exclude_expsyms=$lt_exclude_expsyms_CXX
1.11 paf 20388:
1.25 moko 20389: # Symbols that must always be exported.
20390: include_expsyms=$lt_include_expsyms_CXX
1.1 parser 20391:
1.25 moko 20392: # Commands necessary for linking programs (against libraries) with templates.
20393: prelink_cmds=$lt_prelink_cmds_CXX
1.18 paf 20394:
1.25 moko 20395: # Commands necessary for finishing linking programs.
20396: postlink_cmds=$lt_postlink_cmds_CXX
1.11 paf 20397:
1.25 moko 20398: # Specify filename containing input files.
20399: file_list_spec=$lt_file_list_spec_CXX
1.11 paf 20400:
1.25 moko 20401: # How to hardcode a shared library path into an executable.
20402: hardcode_action=$hardcode_action_CXX
1.18 paf 20403:
1.25 moko 20404: # The directories searched by this compiler when creating a shared library.
20405: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.11 paf 20406:
1.25 moko 20407: # Dependencies to place before and after the objects being linked to
20408: # create a shared library.
20409: predep_objects=$lt_predep_objects_CXX
20410: postdep_objects=$lt_postdep_objects_CXX
20411: predeps=$lt_predeps_CXX
20412: postdeps=$lt_postdeps_CXX
20413:
20414: # The library search path used internally by the compiler when linking
20415: # a shared library.
20416: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.11 paf 20417:
1.25 moko 20418: # ### END LIBTOOL TAG CONFIG: CXX
20419: _LT_EOF
1.1 parser 20420:
1.11 paf 20421: ;;
20422: esac
20423: done
20424: _ACEOF
1.1 parser 20425:
1.11 paf 20426: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 20427:
1.11 paf 20428: { (exit 0); exit 0; }
20429: _ACEOF
1.1 parser 20430: chmod +x $CONFIG_STATUS
1.11 paf 20431: ac_clean_files=$ac_clean_files_save
20432:
20433:
20434: # configure is writing to config.log, and then calls config.status.
20435: # config.status does its own redirection, appending to config.log.
20436: # Unfortunately, on DOS this fails, as config.log is still kept open
20437: # by configure, so config.status won't be able to write to it; its
20438: # output is simply discarded. So we exec the FD to /dev/null,
20439: # effectively closing config.log, so it can be properly (re)opened and
20440: # appended to by config.status. When coming back to configure, we
20441: # need to make the FD available again.
20442: if test "$no_create" != yes; then
20443: ac_cs_success=:
20444: ac_config_status_args=
20445: test "$silent" = yes &&
20446: ac_config_status_args="$ac_config_status_args --quiet"
20447: exec 5>/dev/null
20448: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20449: exec 5>>config.log
20450: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20451: # would make configure fail if this is the last instruction.
20452: $ac_cs_success || { (exit 1); exit 1; }
20453: fi
1.1 parser 20454:
1.11 paf 20455: #
20456: # CONFIG_SUBDIRS section.
20457: #
1.1 parser 20458: if test "$no_recursion" != yes; then
20459:
20460: # Remove --cache-file and --srcdir arguments so they do not pile up.
20461: ac_sub_configure_args=
20462: ac_prev=
20463: for ac_arg in $ac_configure_args; do
20464: if test -n "$ac_prev"; then
20465: ac_prev=
20466: continue
20467: fi
1.11 paf 20468: case $ac_arg in
1.1 parser 20469: -cache-file | --cache-file | --cache-fil | --cache-fi \
20470: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20471: ac_prev=cache_file ;;
20472: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.11 paf 20473: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20474: | --c=*)
20475: ;;
20476: --config-cache | -C)
1.1 parser 20477: ;;
20478: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20479: ac_prev=srcdir ;;
20480: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20481: ;;
1.11 paf 20482: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20483: ac_prev=prefix ;;
20484: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20485: ;;
1.1 parser 20486: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20487: esac
20488: done
20489:
1.11 paf 20490: # Always prepend --prefix to ensure using the same prefix
20491: # in subdir configurations.
20492: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
20493:
20494: ac_popdir=`pwd`
20495: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 20496:
20497: # Do not complain, so a configure script can configure whichever
20498: # parts of a large source tree are present.
1.11 paf 20499: test -d $srcdir/$ac_dir || continue
1.1 parser 20500:
1.11 paf 20501: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20502: echo "$as_me: configuring in $ac_dir" >&6;}
20503: { if $as_mkdir_p; then
20504: mkdir -p "$ac_dir"
20505: else
20506: as_dir="$ac_dir"
20507: as_dirs=
20508: while test ! -d "$as_dir"; do
20509: as_dirs="$as_dir $as_dirs"
20510: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20511: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 20512: X"$as_dir" : 'X\(//\)[^/]' \| \
20513: X"$as_dir" : 'X\(//\)$' \| \
20514: X"$as_dir" : 'X\(/\)' \| \
20515: . : '\(.\)' 2>/dev/null ||
1.11 paf 20516: echo X"$as_dir" |
20517: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20518: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20519: /^X\(\/\/\)$/{ s//\1/; q; }
20520: /^X\(\/\).*/{ s//\1/; q; }
20521: s/.*/./; q'`
20522: done
20523: test ! -n "$as_dirs" || mkdir $as_dirs
20524: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20525: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20526: { (exit 1); exit 1; }; }; }
20527:
20528: ac_builddir=.
20529:
20530: if test "$ac_dir" != .; then
20531: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20532: # A "../" for each directory in $ac_dir_suffix.
20533: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20534: else
20535: ac_dir_suffix= ac_top_builddir=
20536: fi
20537:
20538: case $srcdir in
20539: .) # No --srcdir option. We are building in place.
20540: ac_srcdir=.
20541: if test -z "$ac_top_builddir"; then
20542: ac_top_srcdir=.
20543: else
20544: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20545: fi ;;
20546: [\\/]* | ?:[\\/]* ) # Absolute path.
20547: ac_srcdir=$srcdir$ac_dir_suffix;
20548: ac_top_srcdir=$srcdir ;;
20549: *) # Relative path.
20550: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20551: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20552: esac
1.18 paf 20553:
20554: # Do not use `cd foo && pwd` to compute absolute paths, because
20555: # the directories may not exist.
20556: case `pwd` in
20557: .) ac_abs_builddir="$ac_dir";;
20558: *)
20559: case "$ac_dir" in
20560: .) ac_abs_builddir=`pwd`;;
20561: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20562: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20563: esac;;
20564: esac
20565: case $ac_abs_builddir in
20566: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20567: *)
20568: case ${ac_top_builddir}. in
20569: .) ac_abs_top_builddir=$ac_abs_builddir;;
20570: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20571: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20572: esac;;
20573: esac
20574: case $ac_abs_builddir in
20575: .) ac_abs_srcdir=$ac_srcdir;;
20576: *)
20577: case $ac_srcdir in
20578: .) ac_abs_srcdir=$ac_abs_builddir;;
20579: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20580: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20581: esac;;
20582: esac
20583: case $ac_abs_builddir in
20584: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20585: *)
20586: case $ac_top_srcdir in
20587: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20588: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20589: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20590: esac;;
20591: esac
1.1 parser 20592:
20593:
1.11 paf 20594: cd $ac_dir
1.1 parser 20595:
20596: # Check for guested configure; otherwise get Cygnus style configure.
1.11 paf 20597: if test -f $ac_srcdir/configure.gnu; then
20598: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20599: elif test -f $ac_srcdir/configure; then
20600: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20601: elif test -f $ac_srcdir/configure.in; then
1.1 parser 20602: ac_sub_configure=$ac_configure
20603: else
1.11 paf 20604: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20605: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 20606: ac_sub_configure=
20607: fi
20608:
20609: # The recursion is here.
20610: if test -n "$ac_sub_configure"; then
20611: # Make the cache file name correct relative to the subdirectory.
1.11 paf 20612: case $cache_file in
20613: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 20614: *) # Relative path.
1.18 paf 20615: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 20616: esac
20617:
1.11 paf 20618: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20619: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 20620: # The eval makes quoting arguments work.
1.11 paf 20621: eval $ac_sub_configure $ac_sub_configure_args \
1.18 paf 20622: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20623: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.11 paf 20624: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20625: { (exit 1); exit 1; }; }
1.1 parser 20626: fi
20627:
20628: cd $ac_popdir
20629: done
20630: fi
20631:
E-mail: