Annotation of sql/mysql/configure, revision 1.39
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.36 moko 3: # Generated by GNU Autoconf 2.59 for parser3mysql.C 10.3.
1.1 parser 4: #
1.25 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.15 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.25 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.15 paf 23:
24: # Support unset when possible.
1.25 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.15 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.25 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.15 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.25 paf 221: test -d ./-p && rmdir ./-p
1.15 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.25 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.15 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.25 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.15 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.36 moko 243: lt_ltdl_dir='libltdl'
244:
1.15 paf 245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
1.35 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.15 paf 248:
1.1 parser 249:
1.15 paf 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`
254:
255: exec 6>&1
256:
257: #
258: # Initializations.
259: #
1.1 parser 260: ac_default_prefix=/usr/local
1.15 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.36 moko 274: PACKAGE_NAME='parser3mysql.C'
275: PACKAGE_TARNAME='parser3mysql-c'
276: PACKAGE_VERSION='10.3'
277: PACKAGE_STRING='parser3mysql.C 10.3'
278: PACKAGE_BUGREPORT=''
1.15 paf 279:
280: ac_unique_file="parser3mysql.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.39 ! 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 MYSQL_INC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB MANIFEST_TOOL ac_ct_MANIFEST_TOOL DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CXXCPP LIBLTDL LTDLDEPS LTDLINCL INCLTDL LT_DLLOADERS LIBADD_DLOPEN LIBADD_SHL_LOAD LIBADD_DLD_LINK LT_DLPREOPEN LIBADD_DL sys_symbol_underscore ARGZ_H INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE subdirs LT_CONFIG_H LTDLOPEN LIBOBJS LTLIBOBJS ltdl_LIBOBJS ltdl_LTLIBOBJS'
1.15 paf 320: ac_subst_files=''
1.1 parser 321:
322: # Initialize some variables set by options.
1.15 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.15 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.15 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.15 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.15 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.15 paf 379: bindir=$ac_optarg ;;
1.1 parser 380:
381: -build | --build | --buil | --bui | --bu)
1.15 paf 382: ac_prev=build_alias ;;
1.1 parser 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.15 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.15 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.15 paf 400: datadir=$ac_optarg ;;
1.1 parser 401:
402: -disable-* | --disable-*)
1.15 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 404: # Reject names that are not valid shell variable names.
1.15 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.15 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 413: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 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.15 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.15 paf 445: ac_prev=host_alias ;;
1.1 parser 446: -host=* | --host=* | --hos=* | --ho=*)
1.15 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.15 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.15 paf 459: infodir=$ac_optarg ;;
1.1 parser 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 paf 563: sharedstatedir=$ac_optarg ;;
1.1 parser 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.15 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.15 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.15 paf 580: sysconfdir=$ac_optarg ;;
1.1 parser 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.15 paf 583: ac_prev=target_alias ;;
1.1 parser 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.15 paf 585: target_alias=$ac_optarg ;;
1.1 parser 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.15 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 parser 592:
593: -with-* | --with-*)
1.15 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 595: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 605:
606: -without-* | --without-*)
1.15 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 608: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 paf 631: x_libraries=$ac_optarg ;;
1.1 parser 632:
1.15 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.15 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.15 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.15 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.15 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.15 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.25 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 679: do
1.15 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.15 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.15 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.15 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.15 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.15 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.15 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.15 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.24 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.35 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.15 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.36 moko 800: \`configure' configures parser3mysql.C 10.3 to adapt to many kinds of systems.
1.15 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.25 paf 825: [$ac_default_prefix]
1.15 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.25 paf 827: [PREFIX]
1.15 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.36 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3mysql.C 10.3:";;
867: esac
1.15 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.25 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.35 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.15 paf 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.35 moko 882: --enable-ltdl-install install libltdl
1.15 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-mysql-inc=DIR DIR is the MySQL includes directory
1.35 moko 888: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
889: both]
890: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
891: --with-sysroot=DIR Search for dependent libraries within DIR
892: (or the compiler's sysroot if not specified).
893: --with-included-ltdl use the GNU ltdl sources included here
894: --with-ltdl-include=DIR use the ltdl headers installed in DIR
895: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.15 paf 896:
897: Some influential environment variables:
898: CXX C++ compiler command
899: CXXFLAGS C++ compiler flags
900: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901: nonstandard directory <lib dir>
902: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903: headers in a nonstandard directory <include dir>
904: CC C compiler command
905: CFLAGS C compiler flags
1.24 paf 906: CPP C preprocessor
1.35 moko 907: CXXCPP C++ preprocessor
1.15 paf 908:
909: Use these variables to override the choices made by `configure' or to help
910: it to find libraries and programs with nonstandard names/locations.
911:
912: _ACEOF
913: fi
914:
915: if test "$ac_init_help" = "recursive"; then
916: # If there are subdirs, report their specific --help.
917: ac_popdir=`pwd`
918: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919: test -d $ac_dir || continue
920: ac_builddir=.
921:
922: if test "$ac_dir" != .; then
923: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924: # A "../" for each directory in $ac_dir_suffix.
925: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926: else
927: ac_dir_suffix= ac_top_builddir=
928: fi
929:
930: case $srcdir in
931: .) # No --srcdir option. We are building in place.
932: ac_srcdir=.
933: if test -z "$ac_top_builddir"; then
934: ac_top_srcdir=.
935: else
936: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937: fi ;;
938: [\\/]* | ?:[\\/]* ) # Absolute path.
939: ac_srcdir=$srcdir$ac_dir_suffix;
940: ac_top_srcdir=$srcdir ;;
941: *) # Relative path.
942: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943: ac_top_srcdir=$ac_top_builddir$srcdir ;;
944: esac
1.25 paf 945:
946: # Do not use `cd foo && pwd` to compute absolute paths, because
947: # the directories may not exist.
948: case `pwd` in
949: .) ac_abs_builddir="$ac_dir";;
950: *)
951: case "$ac_dir" in
952: .) ac_abs_builddir=`pwd`;;
953: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954: *) ac_abs_builddir=`pwd`/"$ac_dir";;
955: esac;;
956: esac
957: case $ac_abs_builddir in
958: .) ac_abs_top_builddir=${ac_top_builddir}.;;
959: *)
960: case ${ac_top_builddir}. in
961: .) ac_abs_top_builddir=$ac_abs_builddir;;
962: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964: esac;;
965: esac
966: case $ac_abs_builddir in
967: .) ac_abs_srcdir=$ac_srcdir;;
968: *)
969: case $ac_srcdir in
970: .) ac_abs_srcdir=$ac_abs_builddir;;
971: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973: esac;;
974: esac
975: case $ac_abs_builddir in
976: .) ac_abs_top_srcdir=$ac_top_srcdir;;
977: *)
978: case $ac_top_srcdir in
979: .) ac_abs_top_srcdir=$ac_abs_builddir;;
980: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982: esac;;
983: esac
1.15 paf 984:
985: cd $ac_dir
986: # Check for guested configure; otherwise get Cygnus style configure.
987: if test -f $ac_srcdir/configure.gnu; then
988: echo
989: $SHELL $ac_srcdir/configure.gnu --help=recursive
990: elif test -f $ac_srcdir/configure; then
991: echo
992: $SHELL $ac_srcdir/configure --help=recursive
993: elif test -f $ac_srcdir/configure.ac ||
1.25 paf 994: test -f $ac_srcdir/configure.in; then
1.15 paf 995: echo
996: $ac_configure --help
997: else
998: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999: fi
1000: cd $ac_popdir
1001: done
1002: fi
1003:
1004: test -n "$ac_init_help" && exit 0
1005: if $ac_init_version; then
1006: cat <<\_ACEOF
1.36 moko 1007: parser3mysql.C configure 10.3
1008: generated by GNU Autoconf 2.59
1.15 paf 1009:
1.25 paf 1010: Copyright (C) 2003 Free Software Foundation, Inc.
1.15 paf 1011: This configure script is free software; the Free Software Foundation
1012: gives unlimited permission to copy, distribute and modify it.
1013: _ACEOF
1014: exit 0
1015: fi
1016: exec 5>config.log
1017: cat >&5 <<_ACEOF
1018: This file contains any messages produced by compilers while
1019: running configure, to aid debugging if configure makes a mistake.
1020:
1.36 moko 1021: It was created by parser3mysql.C $as_me 10.3, which was
1.25 paf 1022: generated by GNU Autoconf 2.59. Invocation command line was
1.15 paf 1023:
1024: $ $0 $@
1025:
1026: _ACEOF
1027: {
1028: cat <<_ASUNAME
1029: ## --------- ##
1030: ## Platform. ##
1031: ## --------- ##
1032:
1033: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038:
1039: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041:
1042: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1046: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049:
1050: _ASUNAME
1051:
1052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053: for as_dir in $PATH
1054: do
1055: IFS=$as_save_IFS
1056: test -z "$as_dir" && as_dir=.
1057: echo "PATH: $as_dir"
1058: done
1059:
1060: } >&5
1061:
1062: cat >&5 <<_ACEOF
1063:
1064:
1065: ## ----------- ##
1066: ## Core tests. ##
1067: ## ----------- ##
1068:
1069: _ACEOF
1070:
1071:
1072: # Keep a trace of the command line.
1073: # Strip out --no-create and --no-recursion so they do not pile up.
1074: # Strip out --silent because we don't want to record it for future runs.
1075: # Also quote any args containing shell meta-characters.
1076: # Make two passes to allow for proper duplicate-argument suppression.
1077: ac_configure_args=
1078: ac_configure_args0=
1079: ac_configure_args1=
1080: ac_sep=
1081: ac_must_keep_next=false
1082: for ac_pass in 1 2
1083: do
1084: for ac_arg
1085: do
1086: case $ac_arg in
1087: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089: | -silent | --silent | --silen | --sile | --sil)
1090: continue ;;
1091: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093: esac
1094: case $ac_pass in
1095: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096: 2)
1097: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098: if test $ac_must_keep_next = true; then
1.25 paf 1099: ac_must_keep_next=false # Got value, back to normal.
1.15 paf 1100: else
1.25 paf 1101: case $ac_arg in
1102: *=* | --config-cache | -C | -disable-* | --disable-* \
1103: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105: | -with-* | --with-* | -without-* | --without-* | --x)
1106: case "$ac_configure_args0 " in
1107: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108: esac
1109: ;;
1110: -* ) ac_must_keep_next=true ;;
1111: esac
1.15 paf 1112: fi
1113: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114: # Get rid of the leading space.
1115: ac_sep=" "
1116: ;;
1117: esac
1118: done
1119: done
1120: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122:
1123: # When interrupted or exit'd, cleanup temporary files, and complete
1124: # config.log. We remove comments because anyway the quotes in there
1125: # would cause problems or look ugly.
1126: # WARNING: Be sure not to use single quotes in there, as some shells,
1127: # such as our DU 5.0 friend, will then `close' the trap.
1128: trap 'exit_status=$?
1129: # Save into config.log some information that might help in debugging.
1130: {
1131: echo
1132:
1133: cat <<\_ASBOX
1134: ## ---------------- ##
1135: ## Cache variables. ##
1136: ## ---------------- ##
1137: _ASBOX
1138: echo
1139: # The following way of writing the cache mishandles newlines in values,
1140: {
1141: (set) 2>&1 |
1142: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143: *ac_space=\ *)
1144: sed -n \
1.25 paf 1145: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.15 paf 1147: ;;
1148: *)
1149: sed -n \
1.25 paf 1150: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.15 paf 1151: ;;
1152: esac;
1153: }
1154: echo
1155:
1156: cat <<\_ASBOX
1157: ## ----------------- ##
1158: ## Output variables. ##
1159: ## ----------------- ##
1160: _ASBOX
1161: echo
1162: for ac_var in $ac_subst_vars
1163: do
1164: eval ac_val=$`echo $ac_var`
1165: echo "$ac_var='"'"'$ac_val'"'"'"
1166: done | sort
1167: echo
1168:
1169: if test -n "$ac_subst_files"; then
1170: cat <<\_ASBOX
1171: ## ------------- ##
1172: ## Output files. ##
1173: ## ------------- ##
1174: _ASBOX
1175: echo
1176: for ac_var in $ac_subst_files
1177: do
1178: eval ac_val=$`echo $ac_var`
1.25 paf 1179: echo "$ac_var='"'"'$ac_val'"'"'"
1.15 paf 1180: done | sort
1181: echo
1182: fi
1183:
1184: if test -s confdefs.h; then
1185: cat <<\_ASBOX
1186: ## ----------- ##
1187: ## confdefs.h. ##
1188: ## ----------- ##
1189: _ASBOX
1190: echo
1191: sed "/^$/d" confdefs.h | sort
1192: echo
1193: fi
1194: test "$ac_signal" != 0 &&
1195: echo "$as_me: caught signal $ac_signal"
1196: echo "$as_me: exit $exit_status"
1197: } >&5
1.25 paf 1198: rm -f core *.core &&
1.15 paf 1199: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1200: exit $exit_status
1201: ' 0
1202: for ac_signal in 1 2 13 15; do
1203: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204: done
1205: ac_signal=0
1206:
1207: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208: rm -rf conftest* confdefs.h
1209: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210: echo >confdefs.h
1211:
1212: # Predefined preprocessor variables.
1213:
1214: cat >>confdefs.h <<_ACEOF
1215: #define PACKAGE_NAME "$PACKAGE_NAME"
1216: _ACEOF
1217:
1218:
1219: cat >>confdefs.h <<_ACEOF
1220: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221: _ACEOF
1222:
1223:
1224: cat >>confdefs.h <<_ACEOF
1225: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226: _ACEOF
1.1 parser 1227:
1.15 paf 1228:
1229: cat >>confdefs.h <<_ACEOF
1230: #define PACKAGE_STRING "$PACKAGE_STRING"
1231: _ACEOF
1232:
1233:
1234: cat >>confdefs.h <<_ACEOF
1235: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236: _ACEOF
1237:
1238:
1239: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1240: # Prefer explicitly selected file to automatically selected ones.
1241: if test -z "$CONFIG_SITE"; then
1242: if test "x$prefix" != xNONE; then
1243: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244: else
1245: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246: fi
1247: fi
1248: for ac_site_file in $CONFIG_SITE; do
1249: if test -r "$ac_site_file"; then
1.15 paf 1250: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251: echo "$as_me: loading site script $ac_site_file" >&6;}
1252: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1253: . "$ac_site_file"
1254: fi
1255: done
1256:
1257: if test -r "$cache_file"; then
1.15 paf 1258: # Some versions of bash will fail to source /dev/null (special
1259: # files actually), so we avoid doing that.
1260: if test -f "$cache_file"; then
1261: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262: echo "$as_me: loading cache $cache_file" >&6;}
1263: case $cache_file in
1264: [\\/]* | ?:[\\/]* ) . $cache_file;;
1265: *) . ./$cache_file;;
1266: esac
1267: fi
1.1 parser 1268: else
1.15 paf 1269: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270: echo "$as_me: creating cache $cache_file" >&6;}
1271: >$cache_file
1272: fi
1273:
1274: # Check that the precious variables saved in the cache have kept the same
1275: # value.
1276: ac_cache_corrupted=false
1277: for ac_var in `(set) 2>&1 |
1.25 paf 1278: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.15 paf 1279: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280: eval ac_new_set=\$ac_env_${ac_var}_set
1281: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282: eval ac_new_val="\$ac_env_${ac_var}_value"
1283: case $ac_old_set,$ac_new_set in
1284: set,)
1285: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287: ac_cache_corrupted=: ;;
1288: ,set)
1289: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291: ac_cache_corrupted=: ;;
1292: ,);;
1293: *)
1294: if test "x$ac_old_val" != "x$ac_new_val"; then
1.25 paf 1295: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.15 paf 1296: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25 paf 1297: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.15 paf 1298: echo "$as_me: former value: $ac_old_val" >&2;}
1.25 paf 1299: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.15 paf 1300: echo "$as_me: current value: $ac_new_val" >&2;}
1.25 paf 1301: ac_cache_corrupted=:
1.15 paf 1302: fi;;
1303: esac
1304: # Pass precious variables to config.status.
1305: if test "$ac_new_set" = set; then
1306: case $ac_new_val in
1307: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309: *) ac_arg=$ac_var=$ac_new_val ;;
1310: esac
1311: case " $ac_configure_args " in
1312: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1313: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314: esac
1315: fi
1316: done
1317: if $ac_cache_corrupted; then
1318: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322: { (exit 1); exit 1; }; }
1.1 parser 1323: fi
1324:
1325: ac_ext=c
1326: ac_cpp='$CPP $CPPFLAGS'
1.15 paf 1327: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330:
1331:
1332:
1333:
1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1.1 parser 1349:
1350:
1.36 moko 1351:
1352:
1353:
1354:
1355:
1356:
1357:
1358: ac_config_headers="$ac_config_headers config_auto.h"
1359:
1360:
1.25 paf 1361: am__api_version="1.9"
1.1 parser 1362: ac_aux_dir=
1363: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1364: if test -f $ac_dir/install-sh; then
1365: ac_aux_dir=$ac_dir
1366: ac_install_sh="$ac_aux_dir/install-sh -c"
1367: break
1368: elif test -f $ac_dir/install.sh; then
1369: ac_aux_dir=$ac_dir
1370: ac_install_sh="$ac_aux_dir/install.sh -c"
1371: break
1.15 paf 1372: elif test -f $ac_dir/shtool; then
1373: ac_aux_dir=$ac_dir
1374: ac_install_sh="$ac_aux_dir/shtool install -c"
1375: break
1.1 parser 1376: fi
1377: done
1378: if test -z "$ac_aux_dir"; then
1.15 paf 1379: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1380: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1381: { (exit 1); exit 1; }; }
1382: fi
1383: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1384: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1385: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1386:
1387: # Find a good install program. We prefer a C program (faster),
1388: # so one script is as good as another. But avoid the broken or
1389: # incompatible versions:
1390: # SysV /etc/install, /usr/sbin/install
1391: # SunOS /usr/etc/install
1392: # IRIX /sbin/install
1393: # AIX /bin/install
1.15 paf 1394: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1395: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1396: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1397: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1398: # OS/2's system install, which has a completely different semantic
1.1 parser 1399: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1400: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1401: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1402: if test -z "$INSTALL"; then
1.15 paf 1403: if test "${ac_cv_path_install+set}" = set; then
1404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1405: else
1.15 paf 1406: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407: for as_dir in $PATH
1408: do
1409: IFS=$as_save_IFS
1410: test -z "$as_dir" && as_dir=.
1411: # Account for people who put trailing slashes in PATH elements.
1412: case $as_dir/ in
1413: ./ | .// | /cC/* | \
1414: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1415: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1416: /usr/ucb/* ) ;;
1417: *)
1418: # OSF1 and SCO ODT 3.0 have their own names for install.
1419: # Don't use installbsd from OSF since it installs stuff as root
1420: # by default.
1421: for ac_prog in ginstall scoinst install; do
1422: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1423: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1424: if test $ac_prog = install &&
1425: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1426: # AIX install. It has an incompatible calling convention.
1427: :
1428: elif test $ac_prog = install &&
1429: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1430: # program-specific install script used by HP pwplus--don't use.
1431: :
1432: else
1433: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1434: break 3
1435: fi
1436: fi
1.1 parser 1437: done
1.15 paf 1438: done
1439: ;;
1440: esac
1441: done
1442:
1.1 parser 1443:
1444: fi
1445: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1446: INSTALL=$ac_cv_path_install
1.1 parser 1447: else
1448: # As a last resort, use the slow shell script. We don't cache a
1449: # path for INSTALL within a source directory, because that will
1450: # break other packages using the cache if that directory is
1451: # removed, or if the path is relative.
1.15 paf 1452: INSTALL=$ac_install_sh
1.1 parser 1453: fi
1454: fi
1.15 paf 1455: echo "$as_me:$LINENO: result: $INSTALL" >&5
1456: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1457:
1458: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1459: # It thinks the first close brace ends the variable substitution.
1460: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461:
1.15 paf 1462: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1463:
1464: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1465:
1.15 paf 1466: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1467: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1468: # Just in case
1469: sleep 1
1.15 paf 1470: echo timestamp > conftest.file
1.1 parser 1471: # Do `set' in a subshell so we don't clobber the current shell's
1472: # arguments. Must try -L first in case configure is actually a
1473: # symlink; some systems play weird games with the mod time of symlinks
1474: # (eg FreeBSD returns the mod time of the symlink's containing
1475: # directory).
1476: if (
1.15 paf 1477: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1478: if test "$*" = "X"; then
1479: # -L didn't work.
1.15 paf 1480: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1481: fi
1.15 paf 1482: rm -f conftest.file
1483: if test "$*" != "X $srcdir/configure conftest.file" \
1484: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1485:
1486: # If neither matched, then we have a broken ls. This can happen
1487: # if, for instance, CONFIG_SHELL is bash and it inherits a
1488: # broken ls alias from the environment. This has actually
1489: # happened. Such a system could not be considered "sane".
1.15 paf 1490: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1491: alias in your environment" >&5
1492: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1493: alias in your environment" >&2;}
1494: { (exit 1); exit 1; }; }
1.1 parser 1495: fi
1496:
1.15 paf 1497: test "$2" = conftest.file
1.1 parser 1498: )
1499: then
1500: # Ok.
1501: :
1502: else
1.15 paf 1503: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1504: Check your system clock" >&5
1505: echo "$as_me: error: newly created file is older than distributed files!
1506: Check your system clock" >&2;}
1507: { (exit 1); exit 1; }; }
1.1 parser 1508: fi
1.15 paf 1509: echo "$as_me:$LINENO: result: yes" >&5
1510: echo "${ECHO_T}yes" >&6
1.1 parser 1511: test "$program_prefix" != NONE &&
1.15 paf 1512: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1513: # Use a double $ so make ignores it.
1514: test "$program_suffix" != NONE &&
1.15 paf 1515: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1516: # Double any \ or $. echo might interpret backslashes.
1517: # By default was `s,x,x', remove it if useless.
1518: cat <<\_ACEOF >conftest.sed
1519: s/[\\$]/&&/g;s/;s,x,x,$//
1520: _ACEOF
1521: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1522: rm conftest.sed
1523:
1524: # expand $ac_aux_dir to an absolute path
1525: am_aux_dir=`cd $ac_aux_dir && pwd`
1526:
1527: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1528: # Use eval to expand $SHELL
1529: if eval "$MISSING --run true"; then
1530: am_missing_run="$MISSING --run "
1531: else
1532: am_missing_run=
1533: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1534: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535: fi
1536:
1.25 paf 1537: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1538: # We used to keeping the `.' as first argument, in order to
1539: # allow $(mkdir_p) to be used without argument. As in
1540: # $(mkdir_p) $(somedir)
1541: # where $(somedir) is conditionally defined. However this is wrong
1542: # for two reasons:
1543: # 1. if the package is installed by a user who cannot write `.'
1544: # make install will fail,
1545: # 2. the above comment should most certainly read
1546: # $(mkdir_p) $(DESTDIR)$(somedir)
1547: # so it does not work when $(somedir) is undefined and
1548: # $(DESTDIR) is not.
1549: # To support the latter case, we have to write
1550: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1551: # so the `.' trick is pointless.
1552: mkdir_p='mkdir -p --'
1553: else
1554: # On NextStep and OpenStep, the `mkdir' command does not
1555: # recognize any option. It will interpret all options as
1556: # directories to create, and then abort because `.' already
1557: # exists.
1558: for d in ./-p ./--version;
1559: do
1560: test -d $d && rmdir $d
1561: done
1562: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1563: if test -f "$ac_aux_dir/mkinstalldirs"; then
1564: mkdir_p='$(mkinstalldirs)'
1565: else
1566: mkdir_p='$(install_sh) -d'
1567: fi
1568: fi
1569:
1.15 paf 1570: for ac_prog in gawk mawk nawk awk
1571: do
1572: # Extract the first word of "$ac_prog", so it can be a program name with args.
1573: set dummy $ac_prog; ac_word=$2
1574: echo "$as_me:$LINENO: checking for $ac_word" >&5
1575: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576: if test "${ac_cv_prog_AWK+set}" = set; then
1577: echo $ECHO_N "(cached) $ECHO_C" >&6
1578: else
1579: if test -n "$AWK"; then
1580: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1581: else
1582: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583: for as_dir in $PATH
1584: do
1585: IFS=$as_save_IFS
1586: test -z "$as_dir" && as_dir=.
1587: for ac_exec_ext in '' $ac_executable_extensions; do
1588: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589: ac_cv_prog_AWK="$ac_prog"
1590: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591: break 2
1592: fi
1593: done
1594: done
1595:
1596: fi
1597: fi
1598: AWK=$ac_cv_prog_AWK
1599: if test -n "$AWK"; then
1600: echo "$as_me:$LINENO: result: $AWK" >&5
1601: echo "${ECHO_T}$AWK" >&6
1602: else
1603: echo "$as_me:$LINENO: result: no" >&5
1604: echo "${ECHO_T}no" >&6
1605: fi
1.1 parser 1606:
1.15 paf 1607: test -n "$AWK" && break
1608: done
1.1 parser 1609:
1.15 paf 1610: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1611: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.25 paf 1612: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.15 paf 1613: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1615: else
1.15 paf 1616: cat >conftest.make <<\_ACEOF
1.1 parser 1617: all:
1.15 paf 1618: @echo 'ac_maketemp="$(MAKE)"'
1619: _ACEOF
1.1 parser 1620: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 paf 1621: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1622: if test -n "$ac_maketemp"; then
1623: eval ac_cv_prog_make_${ac_make}_set=yes
1624: else
1625: eval ac_cv_prog_make_${ac_make}_set=no
1626: fi
1.15 paf 1627: rm -f conftest.make
1.1 parser 1628: fi
1629: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 paf 1630: echo "$as_me:$LINENO: result: yes" >&5
1631: echo "${ECHO_T}yes" >&6
1.1 parser 1632: SET_MAKE=
1633: else
1.15 paf 1634: echo "$as_me:$LINENO: result: no" >&5
1635: echo "${ECHO_T}no" >&6
1.1 parser 1636: SET_MAKE="MAKE=${MAKE-make}"
1637: fi
1638:
1.25 paf 1639: rm -rf .tst 2>/dev/null
1640: mkdir .tst 2>/dev/null
1641: if test -d .tst; then
1642: am__leading_dot=.
1643: else
1644: am__leading_dot=_
1645: fi
1646: rmdir .tst 2>/dev/null
1647:
1648: # test to see if srcdir already configured
1.15 paf 1649: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1650: test -f $srcdir/config.status; then
1651: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1652: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1653: { (exit 1); exit 1; }; }
1654: fi
1655:
1656: # test whether we have cygpath
1657: if test -z "$CYGPATH_W"; then
1658: if (cygpath --version) >/dev/null 2>/dev/null; then
1659: CYGPATH_W='cygpath -w'
1660: else
1661: CYGPATH_W=echo
1662: fi
1663: fi
1664:
1665:
1666: # Define the identity of the package.
1.36 moko 1667: PACKAGE='parser3mysql-c'
1668: VERSION='10.3'
1.15 paf 1669:
1670:
1.36 moko 1671: cat >>confdefs.h <<_ACEOF
1672: #define PACKAGE "$PACKAGE"
1673: _ACEOF
1674:
1675:
1676: cat >>confdefs.h <<_ACEOF
1677: #define VERSION "$VERSION"
1678: _ACEOF
1679:
1.15 paf 1680: # Some tools Automake needs.
1681:
1682: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1683:
1684:
1685: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 parser 1686:
1687:
1.15 paf 1688: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1689:
1690:
1691: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1692:
1693:
1694: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1695:
1.15 paf 1696: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1697:
1.15 paf 1698: # Installed binaries are usually stripped using `strip' when the user
1699: # run `make install-strip'. However `strip' might not be the right
1700: # tool to use in cross-compilation environments, therefore Automake
1701: # will honor the `STRIP' environment variable to overrule this program.
1702: if test "$cross_compiling" != no; then
1703: if test -n "$ac_tool_prefix"; then
1704: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1705: set dummy ${ac_tool_prefix}strip; ac_word=$2
1706: echo "$as_me:$LINENO: checking for $ac_word" >&5
1707: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708: if test "${ac_cv_prog_STRIP+set}" = set; then
1709: echo $ECHO_N "(cached) $ECHO_C" >&6
1710: else
1711: if test -n "$STRIP"; then
1712: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 parser 1713: else
1.15 paf 1714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715: for as_dir in $PATH
1716: do
1717: IFS=$as_save_IFS
1718: test -z "$as_dir" && as_dir=.
1719: for ac_exec_ext in '' $ac_executable_extensions; do
1720: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723: break 2
1724: fi
1725: done
1726: done
1727:
1728: fi
1729: fi
1730: STRIP=$ac_cv_prog_STRIP
1731: if test -n "$STRIP"; then
1732: echo "$as_me:$LINENO: result: $STRIP" >&5
1733: echo "${ECHO_T}$STRIP" >&6
1734: else
1735: echo "$as_me:$LINENO: result: no" >&5
1736: echo "${ECHO_T}no" >&6
1.1 parser 1737: fi
1738:
1.15 paf 1739: fi
1740: if test -z "$ac_cv_prog_STRIP"; then
1741: ac_ct_STRIP=$STRIP
1742: # Extract the first word of "strip", so it can be a program name with args.
1743: set dummy strip; ac_word=$2
1744: echo "$as_me:$LINENO: checking for $ac_word" >&5
1745: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1748: else
1.15 paf 1749: if test -n "$ac_ct_STRIP"; then
1750: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1751: else
1752: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753: for as_dir in $PATH
1754: do
1755: IFS=$as_save_IFS
1756: test -z "$as_dir" && as_dir=.
1757: for ac_exec_ext in '' $ac_executable_extensions; do
1758: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759: ac_cv_prog_ac_ct_STRIP="strip"
1760: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761: break 2
1762: fi
1763: done
1764: done
1765:
1766: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 1767: fi
1.15 paf 1768: fi
1769: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1770: if test -n "$ac_ct_STRIP"; then
1771: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1772: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1773: else
1.15 paf 1774: echo "$as_me:$LINENO: result: no" >&5
1775: echo "${ECHO_T}no" >&6
1.1 parser 1776: fi
1777:
1.15 paf 1778: STRIP=$ac_ct_STRIP
1.1 parser 1779: else
1.15 paf 1780: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1781: fi
1782:
1783: fi
1.15 paf 1784: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1785:
1786: # We need awk for the "check" target. The system "awk" is bad on
1787: # some platforms.
1.25 paf 1788: # Always define AMTAR for backward compatibility.
1789:
1790: AMTAR=${AMTAR-"${am_missing_run}tar"}
1791:
1792: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1793:
1794:
1.1 parser 1795:
1796:
1797:
1798:
1799:
1800:
1801:
1.4 paf 1802: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1 parser 1803: if test "${with_mysql_inc+set}" = set; then
1804: withval="$with_mysql_inc"
1.15 paf 1805:
1.8 paf 1806: if test -r "$withval/mysql.h"; then
1807: MYSQL_INC=$withval
1808: fi
1809:
1810:
1.33 misha 1811: if test -z "$MYSQL_INC"; then
1.15 paf 1812: { { echo "$as_me:$LINENO: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&5
1813: echo "$as_me: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&2;}
1814: { (exit 1); exit 1; }; }
1.33 misha 1815: fi
1.8 paf 1816:
1.1 parser 1817: else
1.15 paf 1818: echo "$as_me:$LINENO: checking for MYSQL_INC directory" >&5
1819: echo $ECHO_N "checking for MYSQL_INC directory... $ECHO_C" >&6
1.8 paf 1820: for d in \
1821: /usr/local/include/mysql \
1822: /usr/include/mysql ; do
1.15 paf 1823:
1.8 paf 1824: if test -r "$d/mysql.h"; then
1825: MYSQL_INC=$d
1826: fi
1827:
1828: done
1829:
1.33 misha 1830: if test -z "$MYSQL_INC"; then
1831: { { echo "$as_me:$LINENO: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&5
1.15 paf 1832: echo "$as_me: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&2;}
1833: { (exit 1); exit 1; }; }
1.33 misha 1834: fi
1.8 paf 1835:
1.15 paf 1836: echo "$as_me:$LINENO: result: $MYSQL_INC" >&5
1837: echo "${ECHO_T}$MYSQL_INC" >&6
1.1 parser 1838:
1.15 paf 1839: fi;
1.3 parser 1840:
1.1 parser 1841:
1842:
1843: # Find a good install program. We prefer a C program (faster),
1844: # so one script is as good as another. But avoid the broken or
1845: # incompatible versions:
1846: # SysV /etc/install, /usr/sbin/install
1847: # SunOS /usr/etc/install
1848: # IRIX /sbin/install
1849: # AIX /bin/install
1.15 paf 1850: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1851: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1852: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1853: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1854: # OS/2's system install, which has a completely different semantic
1.1 parser 1855: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1856: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1857: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1858: if test -z "$INSTALL"; then
1.15 paf 1859: if test "${ac_cv_path_install+set}" = set; then
1860: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1861: else
1.15 paf 1862: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863: for as_dir in $PATH
1864: do
1865: IFS=$as_save_IFS
1866: test -z "$as_dir" && as_dir=.
1867: # Account for people who put trailing slashes in PATH elements.
1868: case $as_dir/ in
1869: ./ | .// | /cC/* | \
1870: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1871: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1872: /usr/ucb/* ) ;;
1873: *)
1874: # OSF1 and SCO ODT 3.0 have their own names for install.
1875: # Don't use installbsd from OSF since it installs stuff as root
1876: # by default.
1877: for ac_prog in ginstall scoinst install; do
1878: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1879: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1880: if test $ac_prog = install &&
1881: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1882: # AIX install. It has an incompatible calling convention.
1883: :
1884: elif test $ac_prog = install &&
1885: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1886: # program-specific install script used by HP pwplus--don't use.
1887: :
1888: else
1889: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1890: break 3
1891: fi
1892: fi
1.1 parser 1893: done
1.15 paf 1894: done
1895: ;;
1896: esac
1897: done
1898:
1.1 parser 1899:
1900: fi
1901: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1902: INSTALL=$ac_cv_path_install
1.1 parser 1903: else
1904: # As a last resort, use the slow shell script. We don't cache a
1905: # path for INSTALL within a source directory, because that will
1906: # break other packages using the cache if that directory is
1907: # removed, or if the path is relative.
1.15 paf 1908: INSTALL=$ac_install_sh
1.1 parser 1909: fi
1910: fi
1.15 paf 1911: echo "$as_me:$LINENO: result: $INSTALL" >&5
1912: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1913:
1914: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915: # It thinks the first close brace ends the variable substitution.
1916: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1917:
1.15 paf 1918: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1919:
1920: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921:
1.15 paf 1922: ac_ext=cc
1923: ac_cpp='$CXXCPP $CPPFLAGS'
1924: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1927: if test -n "$ac_tool_prefix"; then
1928: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1929: do
1930: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1931: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1932: echo "$as_me:$LINENO: checking for $ac_word" >&5
1933: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934: if test "${ac_cv_prog_CXX+set}" = set; then
1935: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1936: else
1937: if test -n "$CXX"; then
1938: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1939: else
1.15 paf 1940: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941: for as_dir in $PATH
1942: do
1943: IFS=$as_save_IFS
1944: test -z "$as_dir" && as_dir=.
1945: for ac_exec_ext in '' $ac_executable_extensions; do
1946: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1948: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949: break 2
1950: fi
1951: done
1952: done
1953:
1.1 parser 1954: fi
1955: fi
1.15 paf 1956: CXX=$ac_cv_prog_CXX
1.1 parser 1957: if test -n "$CXX"; then
1.15 paf 1958: echo "$as_me:$LINENO: result: $CXX" >&5
1959: echo "${ECHO_T}$CXX" >&6
1.1 parser 1960: else
1.15 paf 1961: echo "$as_me:$LINENO: result: no" >&5
1962: echo "${ECHO_T}no" >&6
1.1 parser 1963: fi
1964:
1.15 paf 1965: test -n "$CXX" && break
1966: done
1967: fi
1968: if test -z "$CXX"; then
1969: ac_ct_CXX=$CXX
1970: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1971: do
1972: # Extract the first word of "$ac_prog", so it can be a program name with args.
1973: set dummy $ac_prog; ac_word=$2
1974: echo "$as_me:$LINENO: checking for $ac_word" >&5
1975: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1977: echo $ECHO_N "(cached) $ECHO_C" >&6
1978: else
1979: if test -n "$ac_ct_CXX"; then
1980: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1981: else
1982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983: for as_dir in $PATH
1984: do
1985: IFS=$as_save_IFS
1986: test -z "$as_dir" && as_dir=.
1987: for ac_exec_ext in '' $ac_executable_extensions; do
1988: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989: ac_cv_prog_ac_ct_CXX="$ac_prog"
1990: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991: break 2
1992: fi
1993: done
1.1 parser 1994: done
1995:
1.15 paf 1996: fi
1997: fi
1998: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1999: if test -n "$ac_ct_CXX"; then
2000: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2001: echo "${ECHO_T}$ac_ct_CXX" >&6
2002: else
2003: echo "$as_me:$LINENO: result: no" >&5
2004: echo "${ECHO_T}no" >&6
2005: fi
1.1 parser 2006:
1.15 paf 2007: test -n "$ac_ct_CXX" && break
2008: done
2009: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2010:
1.15 paf 2011: CXX=$ac_ct_CXX
2012: fi
1.1 parser 2013:
2014:
1.15 paf 2015: # Provide some information about the compiler.
2016: echo "$as_me:$LINENO:" \
2017: "checking for C++ compiler version" >&5
2018: ac_compiler=`set X $ac_compile; echo $2`
2019: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2020: (eval $ac_compiler --version </dev/null >&5) 2>&5
2021: ac_status=$?
2022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023: (exit $ac_status); }
2024: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2025: (eval $ac_compiler -v </dev/null >&5) 2>&5
2026: ac_status=$?
2027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028: (exit $ac_status); }
2029: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2030: (eval $ac_compiler -V </dev/null >&5) 2>&5
2031: ac_status=$?
2032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033: (exit $ac_status); }
2034:
2035: cat >conftest.$ac_ext <<_ACEOF
2036: /* confdefs.h. */
2037: _ACEOF
2038: cat confdefs.h >>conftest.$ac_ext
2039: cat >>conftest.$ac_ext <<_ACEOF
2040: /* end confdefs.h. */
2041:
2042: int
2043: main ()
2044: {
2045:
2046: ;
2047: return 0;
2048: }
2049: _ACEOF
2050: ac_clean_files_save=$ac_clean_files
2051: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2052: # Try to create an executable without -o first, disregard a.out.
2053: # It will help us diagnose broken compilers, and finding out an intuition
2054: # of exeext.
1.25 paf 2055: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2056: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.15 paf 2057: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2058: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2059: (eval $ac_link_default) 2>&5
2060: ac_status=$?
2061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062: (exit $ac_status); }; then
2063: # Find the output, starting from the most likely. This scheme is
2064: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2065: # resort.
2066:
2067: # Be careful to initialize this variable, since it used to be cached.
2068: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2069: ac_cv_exeext=
2070: # b.out is created by i960 compilers.
2071: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2072: do
2073: test -f "$ac_file" || continue
2074: case $ac_file in
2075: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.25 paf 2076: ;;
1.15 paf 2077: conftest.$ac_ext )
1.25 paf 2078: # This is the source file.
2079: ;;
1.15 paf 2080: [ab].out )
1.25 paf 2081: # We found the default executable, but exeext='' is most
2082: # certainly right.
2083: break;;
1.15 paf 2084: *.* )
1.25 paf 2085: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086: # FIXME: I believe we export ac_cv_exeext for Libtool,
2087: # but it would be cool to find out if it's true. Does anybody
2088: # maintain Libtool? --akim.
2089: export ac_cv_exeext
2090: break;;
1.15 paf 2091: * )
1.25 paf 2092: break;;
1.15 paf 2093: esac
2094: done
2095: else
2096: echo "$as_me: failed program was:" >&5
2097: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2098:
1.15 paf 2099: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2100: See \`config.log' for more details." >&5
2101: echo "$as_me: error: C++ compiler cannot create executables
2102: See \`config.log' for more details." >&2;}
2103: { (exit 77); exit 77; }; }
2104: fi
2105:
2106: ac_exeext=$ac_cv_exeext
2107: echo "$as_me:$LINENO: result: $ac_file" >&5
2108: echo "${ECHO_T}$ac_file" >&6
2109:
2110: # Check the compiler produces executables we can run. If not, either
2111: # the compiler is broken, or we cross compile.
2112: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2113: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2114: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2115: # If not cross compiling, check that we can run a simple program.
2116: if test "$cross_compiling" != yes; then
2117: if { ac_try='./$ac_file'
2118: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119: (eval $ac_try) 2>&5
2120: ac_status=$?
2121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122: (exit $ac_status); }; }; then
2123: cross_compiling=no
2124: else
2125: if test "$cross_compiling" = maybe; then
2126: cross_compiling=yes
2127: else
2128: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2129: If you meant to cross compile, use \`--host'.
2130: See \`config.log' for more details." >&5
2131: echo "$as_me: error: cannot run C++ compiled programs.
2132: If you meant to cross compile, use \`--host'.
2133: See \`config.log' for more details." >&2;}
2134: { (exit 1); exit 1; }; }
2135: fi
1.1 parser 2136: fi
1.15 paf 2137: fi
2138: echo "$as_me:$LINENO: result: yes" >&5
2139: echo "${ECHO_T}yes" >&6
2140:
2141: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2142: ac_clean_files=$ac_clean_files_save
2143: # Check the compiler produces executables we can run. If not, either
2144: # the compiler is broken, or we cross compile.
2145: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2147: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148: echo "${ECHO_T}$cross_compiling" >&6
2149:
2150: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2152: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2153: (eval $ac_link) 2>&5
2154: ac_status=$?
2155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156: (exit $ac_status); }; then
2157: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2158: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2159: # work properly (i.e., refer to `conftest.exe'), while it won't with
2160: # `rm'.
2161: for ac_file in conftest.exe conftest conftest.*; do
2162: test -f "$ac_file" || continue
2163: case $ac_file in
2164: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2165: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 paf 2166: export ac_cv_exeext
2167: break;;
1.15 paf 2168: * ) break;;
2169: esac
2170: done
1.1 parser 2171: else
1.15 paf 2172: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2173: See \`config.log' for more details." >&5
2174: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2175: See \`config.log' for more details." >&2;}
2176: { (exit 1); exit 1; }; }
2177: fi
2178:
2179: rm -f conftest$ac_cv_exeext
2180: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2181: echo "${ECHO_T}$ac_cv_exeext" >&6
2182:
2183: rm -f conftest.$ac_ext
2184: EXEEXT=$ac_cv_exeext
2185: ac_exeext=$EXEEXT
2186: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2187: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2188: if test "${ac_cv_objext+set}" = set; then
2189: echo $ECHO_N "(cached) $ECHO_C" >&6
2190: else
2191: cat >conftest.$ac_ext <<_ACEOF
2192: /* confdefs.h. */
2193: _ACEOF
2194: cat confdefs.h >>conftest.$ac_ext
2195: cat >>conftest.$ac_ext <<_ACEOF
2196: /* end confdefs.h. */
2197:
2198: int
2199: main ()
2200: {
2201:
2202: ;
2203: return 0;
2204: }
2205: _ACEOF
2206: rm -f conftest.o conftest.obj
2207: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208: (eval $ac_compile) 2>&5
2209: ac_status=$?
2210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211: (exit $ac_status); }; then
2212: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2213: case $ac_file in
2214: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2215: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2216: break;;
2217: esac
2218: done
1.1 parser 2219: else
1.15 paf 2220: echo "$as_me: failed program was:" >&5
2221: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2222:
1.15 paf 2223: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2224: See \`config.log' for more details." >&5
2225: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2226: See \`config.log' for more details." >&2;}
2227: { (exit 1); exit 1; }; }
2228: fi
2229:
2230: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2231: fi
2232: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2233: echo "${ECHO_T}$ac_cv_objext" >&6
2234: OBJEXT=$ac_cv_objext
2235: ac_objext=$OBJEXT
2236: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2237: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2238: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2239: echo $ECHO_N "(cached) $ECHO_C" >&6
2240: else
2241: cat >conftest.$ac_ext <<_ACEOF
2242: /* confdefs.h. */
2243: _ACEOF
2244: cat confdefs.h >>conftest.$ac_ext
2245: cat >>conftest.$ac_ext <<_ACEOF
2246: /* end confdefs.h. */
2247:
2248: int
2249: main ()
2250: {
2251: #ifndef __GNUC__
2252: choke me
2253: #endif
1.1 parser 2254:
1.15 paf 2255: ;
2256: return 0;
2257: }
2258: _ACEOF
2259: rm -f conftest.$ac_objext
2260: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2261: (eval $ac_compile) 2>conftest.er1
1.15 paf 2262: ac_status=$?
1.25 paf 2263: grep -v '^ *+' conftest.er1 >conftest.err
2264: rm -f conftest.er1
2265: cat conftest.err >&5
1.15 paf 2266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267: (exit $ac_status); } &&
1.25 paf 2268: { ac_try='test -z "$ac_cxx_werror_flag"
2269: || test ! -s conftest.err'
2270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271: (eval $ac_try) 2>&5
2272: ac_status=$?
2273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274: (exit $ac_status); }; } &&
2275: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2276: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277: (eval $ac_try) 2>&5
2278: ac_status=$?
2279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280: (exit $ac_status); }; }; then
2281: ac_compiler_gnu=yes
2282: else
2283: echo "$as_me: failed program was:" >&5
2284: sed 's/^/| /' conftest.$ac_ext >&5
2285:
2286: ac_compiler_gnu=no
2287: fi
1.25 paf 2288: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2289: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2290:
2291: fi
2292: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2293: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2294: GXX=`test $ac_compiler_gnu = yes && echo yes`
2295: ac_test_CXXFLAGS=${CXXFLAGS+set}
2296: ac_save_CXXFLAGS=$CXXFLAGS
2297: CXXFLAGS="-g"
2298: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2299: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2300: if test "${ac_cv_prog_cxx_g+set}" = set; then
2301: echo $ECHO_N "(cached) $ECHO_C" >&6
2302: else
2303: cat >conftest.$ac_ext <<_ACEOF
2304: /* confdefs.h. */
2305: _ACEOF
2306: cat confdefs.h >>conftest.$ac_ext
2307: cat >>conftest.$ac_ext <<_ACEOF
2308: /* end confdefs.h. */
2309:
2310: int
2311: main ()
2312: {
2313:
2314: ;
2315: return 0;
2316: }
2317: _ACEOF
2318: rm -f conftest.$ac_objext
2319: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2320: (eval $ac_compile) 2>conftest.er1
1.15 paf 2321: ac_status=$?
1.25 paf 2322: grep -v '^ *+' conftest.er1 >conftest.err
2323: rm -f conftest.er1
2324: cat conftest.err >&5
1.15 paf 2325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326: (exit $ac_status); } &&
1.25 paf 2327: { ac_try='test -z "$ac_cxx_werror_flag"
2328: || test ! -s conftest.err'
2329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330: (eval $ac_try) 2>&5
2331: ac_status=$?
2332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333: (exit $ac_status); }; } &&
2334: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2335: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336: (eval $ac_try) 2>&5
2337: ac_status=$?
2338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339: (exit $ac_status); }; }; then
2340: ac_cv_prog_cxx_g=yes
1.1 parser 2341: else
1.15 paf 2342: echo "$as_me: failed program was:" >&5
2343: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2344:
1.15 paf 2345: ac_cv_prog_cxx_g=no
1.1 parser 2346: fi
1.25 paf 2347: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2348: fi
1.15 paf 2349: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2350: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2351: if test "$ac_test_CXXFLAGS" = set; then
1.15 paf 2352: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2353: elif test $ac_cv_prog_cxx_g = yes; then
2354: if test "$GXX" = yes; then
2355: CXXFLAGS="-g -O2"
2356: else
2357: CXXFLAGS="-g"
2358: fi
2359: else
2360: if test "$GXX" = yes; then
2361: CXXFLAGS="-O2"
2362: else
2363: CXXFLAGS=
2364: fi
2365: fi
1.15 paf 2366: for ac_declaration in \
1.25 paf 2367: '' \
1.15 paf 2368: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2369: 'extern "C" void std::exit (int); using std::exit;' \
2370: 'extern "C" void exit (int) throw ();' \
2371: 'extern "C" void exit (int);' \
2372: 'void exit (int);'
2373: do
2374: cat >conftest.$ac_ext <<_ACEOF
2375: /* confdefs.h. */
2376: _ACEOF
2377: cat confdefs.h >>conftest.$ac_ext
2378: cat >>conftest.$ac_ext <<_ACEOF
2379: /* end confdefs.h. */
1.25 paf 2380: $ac_declaration
1.15 paf 2381: #include <stdlib.h>
2382: int
2383: main ()
2384: {
2385: exit (42);
2386: ;
2387: return 0;
2388: }
2389: _ACEOF
2390: rm -f conftest.$ac_objext
2391: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2392: (eval $ac_compile) 2>conftest.er1
1.15 paf 2393: ac_status=$?
1.25 paf 2394: grep -v '^ *+' conftest.er1 >conftest.err
2395: rm -f conftest.er1
2396: cat conftest.err >&5
1.15 paf 2397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398: (exit $ac_status); } &&
1.25 paf 2399: { ac_try='test -z "$ac_cxx_werror_flag"
2400: || test ! -s conftest.err'
2401: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402: (eval $ac_try) 2>&5
2403: ac_status=$?
2404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405: (exit $ac_status); }; } &&
2406: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408: (eval $ac_try) 2>&5
2409: ac_status=$?
2410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411: (exit $ac_status); }; }; then
2412: :
2413: else
2414: echo "$as_me: failed program was:" >&5
2415: sed 's/^/| /' conftest.$ac_ext >&5
2416:
2417: continue
2418: fi
1.25 paf 2419: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2420: cat >conftest.$ac_ext <<_ACEOF
2421: /* confdefs.h. */
2422: _ACEOF
2423: cat confdefs.h >>conftest.$ac_ext
2424: cat >>conftest.$ac_ext <<_ACEOF
2425: /* end confdefs.h. */
2426: $ac_declaration
2427: int
2428: main ()
2429: {
2430: exit (42);
2431: ;
2432: return 0;
2433: }
2434: _ACEOF
2435: rm -f conftest.$ac_objext
2436: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2437: (eval $ac_compile) 2>conftest.er1
1.15 paf 2438: ac_status=$?
1.25 paf 2439: grep -v '^ *+' conftest.er1 >conftest.err
2440: rm -f conftest.er1
2441: cat conftest.err >&5
1.15 paf 2442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443: (exit $ac_status); } &&
1.25 paf 2444: { ac_try='test -z "$ac_cxx_werror_flag"
2445: || test ! -s conftest.err'
2446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447: (eval $ac_try) 2>&5
2448: ac_status=$?
2449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450: (exit $ac_status); }; } &&
2451: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453: (eval $ac_try) 2>&5
2454: ac_status=$?
2455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456: (exit $ac_status); }; }; then
2457: break
2458: else
2459: echo "$as_me: failed program was:" >&5
2460: sed 's/^/| /' conftest.$ac_ext >&5
2461:
2462: fi
1.25 paf 2463: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2464: done
2465: rm -f conftest*
2466: if test -n "$ac_declaration"; then
2467: echo '#ifdef __cplusplus' >>confdefs.h
2468: echo $ac_declaration >>confdefs.h
2469: echo '#endif' >>confdefs.h
2470: fi
2471:
1.24 paf 2472: ac_ext=c
2473: ac_cpp='$CPP $CPPFLAGS'
2474: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.25 paf 2477: DEPDIR="${am__leading_dot}deps"
1.15 paf 2478:
2479: ac_config_commands="$ac_config_commands depfiles"
2480:
2481:
2482: am_make=${MAKE-make}
2483: cat > confinc << 'END'
1.25 paf 2484: am__doit:
1.15 paf 2485: @echo done
1.25 paf 2486: .PHONY: am__doit
1.15 paf 2487: END
2488: # If we don't find an include directive, just comment out the code.
2489: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2490: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2491: am__include="#"
2492: am__quote=
2493: _am_result=none
2494: # First try GNU make style include.
2495: echo "include confinc" > confmf
2496: # We grep out `Entering directory' and `Leaving directory'
2497: # messages which can occur if `w' ends up in MAKEFLAGS.
2498: # In particular we don't look at `^make:' because GNU make might
2499: # be invoked under some other name (usually "gmake"), in which
2500: # case it prints its new name instead of `make'.
2501: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2502: am__include=include
2503: am__quote=
2504: _am_result=GNU
2505: fi
2506: # Now try BSD make style include.
2507: if test "$am__include" = "#"; then
2508: echo '.include "confinc"' > confmf
2509: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2510: am__include=.include
2511: am__quote="\""
2512: _am_result=BSD
2513: fi
2514: fi
2515:
2516:
2517: echo "$as_me:$LINENO: result: $_am_result" >&5
2518: echo "${ECHO_T}$_am_result" >&6
2519: rm -f confinc confmf
2520:
2521: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2522: if test "${enable_dependency_tracking+set}" = set; then
2523: enableval="$enable_dependency_tracking"
2524:
2525: fi;
2526: if test "x$enable_dependency_tracking" != xno; then
2527: am_depcomp="$ac_aux_dir/depcomp"
2528: AMDEPBACKSLASH='\'
2529: fi
2530:
2531:
2532: if test "x$enable_dependency_tracking" != xno; then
2533: AMDEP_TRUE=
2534: AMDEP_FALSE='#'
2535: else
2536: AMDEP_TRUE='#'
2537: AMDEP_FALSE=
2538: fi
2539:
2540:
2541:
2542:
2543: depcc="$CXX" am_compiler_list=
2544:
2545: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2546: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2547: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2548: echo $ECHO_N "(cached) $ECHO_C" >&6
2549: else
2550: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2551: # We make a subdir and do the tests there. Otherwise we can end up
2552: # making bogus files that we don't know about and never remove. For
2553: # instance it was reported that on HP-UX the gcc test will end up
2554: # making a dummy file named `D' -- because `-MD' means `put the output
2555: # in D'.
2556: mkdir conftest.dir
2557: # Copy depcomp to subdir because otherwise we won't find it if we're
2558: # using a relative directory.
2559: cp "$am_depcomp" conftest.dir
2560: cd conftest.dir
1.25 paf 2561: # We will build objects and dependencies in a subdirectory because
2562: # it helps to detect inapplicable dependency modes. For instance
2563: # both Tru64's cc and ICC support -MD to output dependencies as a
2564: # side effect of compilation, but ICC will put the dependencies in
2565: # the current directory while Tru64 will put them in the object
2566: # directory.
2567: mkdir sub
1.15 paf 2568:
2569: am_cv_CXX_dependencies_compiler_type=none
2570: if test "$am_compiler_list" = ""; then
2571: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2572: fi
2573: for depmode in $am_compiler_list; do
1.25 paf 2574: # Setup a source with many dependencies, because some compilers
2575: # like to wrap large dependency lists on column 80 (with \), and
2576: # we should not choose a depcomp mode which is confused by this.
2577: #
1.15 paf 2578: # We need to recreate these files for each test, as the compiler may
2579: # overwrite some of them when testing with obscure command lines.
2580: # This happens at least with the AIX C compiler.
1.25 paf 2581: : > sub/conftest.c
2582: for i in 1 2 3 4 5 6; do
2583: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2584: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2585: # Solaris 8's {/usr,}/bin/sh.
2586: touch sub/conftst$i.h
2587: done
2588: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 2589:
2590: case $depmode in
2591: nosideeffect)
2592: # after this tag, mechanisms are not by side-effect, so they'll
2593: # only be used when explicitly requested
2594: if test "x$enable_dependency_tracking" = xyes; then
2595: continue
2596: else
2597: break
2598: fi
2599: ;;
2600: none) break ;;
2601: esac
2602: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2603: # mode. It turns out that the SunPro C++ compiler does not properly
2604: # handle `-M -o', and we need to detect this.
2605: if depmode=$depmode \
1.25 paf 2606: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2607: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2608: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2609: >/dev/null 2>conftest.err &&
2610: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2611: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 2612: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 2613: # icc doesn't choke on unknown options, it will just issue warnings
2614: # or remarks (even with -Werror). So we grep stderr for any message
2615: # that says an option was ignored or not supported.
2616: # When given -MP, icc 7.0 and 7.1 complain thusly:
2617: # icc: Command line warning: ignoring option '-M'; no argument required
2618: # The diagnosis changed in icc 8.0:
2619: # icc: Command line remark: option '-MP' not supported
2620: if (grep 'ignoring option' conftest.err ||
2621: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2622: am_cv_CXX_dependencies_compiler_type=$depmode
2623: break
2624: fi
1.15 paf 2625: fi
2626: done
2627:
2628: cd ..
2629: rm -rf conftest.dir
2630: else
2631: am_cv_CXX_dependencies_compiler_type=none
2632: fi
2633:
2634: fi
2635: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2636: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2637: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2638:
2639:
2640:
2641: if
2642: test "x$enable_dependency_tracking" != xno \
2643: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2644: am__fastdepCXX_TRUE=
2645: am__fastdepCXX_FALSE='#'
2646: else
2647: am__fastdepCXX_TRUE='#'
2648: am__fastdepCXX_FALSE=
2649: fi
2650:
1.1 parser 2651:
1.15 paf 2652: ac_ext=c
2653: ac_cpp='$CPP $CPPFLAGS'
2654: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657: if test -n "$ac_tool_prefix"; then
2658: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2659: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2660: echo "$as_me:$LINENO: checking for $ac_word" >&5
2661: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662: if test "${ac_cv_prog_CC+set}" = set; then
2663: echo $ECHO_N "(cached) $ECHO_C" >&6
2664: else
2665: if test -n "$CC"; then
2666: ac_cv_prog_CC="$CC" # Let the user override the test.
2667: else
2668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669: for as_dir in $PATH
2670: do
2671: IFS=$as_save_IFS
2672: test -z "$as_dir" && as_dir=.
2673: for ac_exec_ext in '' $ac_executable_extensions; do
2674: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2676: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677: break 2
2678: fi
2679: done
2680: done
1.1 parser 2681:
1.15 paf 2682: fi
2683: fi
2684: CC=$ac_cv_prog_CC
2685: if test -n "$CC"; then
2686: echo "$as_me:$LINENO: result: $CC" >&5
2687: echo "${ECHO_T}$CC" >&6
2688: else
2689: echo "$as_me:$LINENO: result: no" >&5
2690: echo "${ECHO_T}no" >&6
2691: fi
1.1 parser 2692:
1.15 paf 2693: fi
2694: if test -z "$ac_cv_prog_CC"; then
2695: ac_ct_CC=$CC
2696: # Extract the first word of "gcc", so it can be a program name with args.
2697: set dummy gcc; ac_word=$2
2698: echo "$as_me:$LINENO: checking for $ac_word" >&5
2699: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2701: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2702: else
1.15 paf 2703: if test -n "$ac_ct_CC"; then
2704: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2705: else
1.15 paf 2706: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707: for as_dir in $PATH
2708: do
2709: IFS=$as_save_IFS
2710: test -z "$as_dir" && as_dir=.
2711: for ac_exec_ext in '' $ac_executable_extensions; do
2712: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713: ac_cv_prog_ac_ct_CC="gcc"
2714: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715: break 2
2716: fi
2717: done
2718: done
2719:
2720: fi
1.1 parser 2721: fi
1.15 paf 2722: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723: if test -n "$ac_ct_CC"; then
2724: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2725: echo "${ECHO_T}$ac_ct_CC" >&6
2726: else
2727: echo "$as_me:$LINENO: result: no" >&5
2728: echo "${ECHO_T}no" >&6
1.1 parser 2729: fi
1.15 paf 2730:
2731: CC=$ac_ct_CC
1.1 parser 2732: else
1.15 paf 2733: CC="$ac_cv_prog_CC"
1.1 parser 2734: fi
2735:
1.15 paf 2736: if test -z "$CC"; then
2737: if test -n "$ac_tool_prefix"; then
2738: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739: set dummy ${ac_tool_prefix}cc; ac_word=$2
2740: echo "$as_me:$LINENO: checking for $ac_word" >&5
2741: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742: if test "${ac_cv_prog_CC+set}" = set; then
2743: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2744: else
2745: if test -n "$CC"; then
2746: ac_cv_prog_CC="$CC" # Let the user override the test.
2747: else
1.15 paf 2748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749: for as_dir in $PATH
2750: do
2751: IFS=$as_save_IFS
2752: test -z "$as_dir" && as_dir=.
2753: for ac_exec_ext in '' $ac_executable_extensions; do
2754: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755: ac_cv_prog_CC="${ac_tool_prefix}cc"
2756: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757: break 2
2758: fi
2759: done
2760: done
2761:
1.1 parser 2762: fi
2763: fi
1.15 paf 2764: CC=$ac_cv_prog_CC
1.1 parser 2765: if test -n "$CC"; then
1.15 paf 2766: echo "$as_me:$LINENO: result: $CC" >&5
2767: echo "${ECHO_T}$CC" >&6
2768: else
2769: echo "$as_me:$LINENO: result: no" >&5
2770: echo "${ECHO_T}no" >&6
2771: fi
2772:
2773: fi
2774: if test -z "$ac_cv_prog_CC"; then
2775: ac_ct_CC=$CC
2776: # Extract the first word of "cc", so it can be a program name with args.
2777: set dummy cc; ac_word=$2
2778: echo "$as_me:$LINENO: checking for $ac_word" >&5
2779: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781: echo $ECHO_N "(cached) $ECHO_C" >&6
2782: else
2783: if test -n "$ac_ct_CC"; then
2784: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785: else
2786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787: for as_dir in $PATH
2788: do
2789: IFS=$as_save_IFS
2790: test -z "$as_dir" && as_dir=.
2791: for ac_exec_ext in '' $ac_executable_extensions; do
2792: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793: ac_cv_prog_ac_ct_CC="cc"
2794: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795: break 2
2796: fi
2797: done
2798: done
2799:
2800: fi
2801: fi
2802: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803: if test -n "$ac_ct_CC"; then
2804: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2805: echo "${ECHO_T}$ac_ct_CC" >&6
2806: else
2807: echo "$as_me:$LINENO: result: no" >&5
2808: echo "${ECHO_T}no" >&6
2809: fi
2810:
2811: CC=$ac_ct_CC
1.1 parser 2812: else
1.15 paf 2813: CC="$ac_cv_prog_CC"
1.1 parser 2814: fi
2815:
1.15 paf 2816: fi
1.1 parser 2817: if test -z "$CC"; then
2818: # Extract the first word of "cc", so it can be a program name with args.
2819: set dummy cc; ac_word=$2
1.15 paf 2820: echo "$as_me:$LINENO: checking for $ac_word" >&5
2821: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822: if test "${ac_cv_prog_CC+set}" = set; then
2823: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2824: else
2825: if test -n "$CC"; then
2826: ac_cv_prog_CC="$CC" # Let the user override the test.
2827: else
2828: ac_prog_rejected=no
1.15 paf 2829: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830: for as_dir in $PATH
2831: do
2832: IFS=$as_save_IFS
2833: test -z "$as_dir" && as_dir=.
2834: for ac_exec_ext in '' $ac_executable_extensions; do
2835: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837: ac_prog_rejected=yes
2838: continue
2839: fi
2840: ac_cv_prog_CC="cc"
2841: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842: break 2
2843: fi
2844: done
2845: done
2846:
1.1 parser 2847: if test $ac_prog_rejected = yes; then
2848: # We found a bogon in the path, so make sure we never use it.
2849: set dummy $ac_cv_prog_CC
2850: shift
1.15 paf 2851: if test $# != 0; then
1.1 parser 2852: # We chose a different compiler from the bogus one.
2853: # However, it has the same basename, so the bogon will be chosen
2854: # first if we set CC to just the basename; use the full file name.
2855: shift
1.15 paf 2856: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2857: fi
2858: fi
2859: fi
2860: fi
1.15 paf 2861: CC=$ac_cv_prog_CC
1.1 parser 2862: if test -n "$CC"; then
1.15 paf 2863: echo "$as_me:$LINENO: result: $CC" >&5
2864: echo "${ECHO_T}$CC" >&6
1.1 parser 2865: else
1.15 paf 2866: echo "$as_me:$LINENO: result: no" >&5
2867: echo "${ECHO_T}no" >&6
1.1 parser 2868: fi
2869:
1.15 paf 2870: fi
2871: if test -z "$CC"; then
2872: if test -n "$ac_tool_prefix"; then
2873: for ac_prog in cl
2874: do
2875: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877: echo "$as_me:$LINENO: checking for $ac_word" >&5
2878: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879: if test "${ac_cv_prog_CC+set}" = set; then
2880: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2881: else
2882: if test -n "$CC"; then
2883: ac_cv_prog_CC="$CC" # Let the user override the test.
2884: else
1.15 paf 2885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886: for as_dir in $PATH
2887: do
2888: IFS=$as_save_IFS
2889: test -z "$as_dir" && as_dir=.
2890: for ac_exec_ext in '' $ac_executable_extensions; do
2891: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2893: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894: break 2
2895: fi
2896: done
2897: done
2898:
1.1 parser 2899: fi
2900: fi
1.15 paf 2901: CC=$ac_cv_prog_CC
1.1 parser 2902: if test -n "$CC"; then
1.15 paf 2903: echo "$as_me:$LINENO: result: $CC" >&5
2904: echo "${ECHO_T}$CC" >&6
1.1 parser 2905: else
1.15 paf 2906: echo "$as_me:$LINENO: result: no" >&5
2907: echo "${ECHO_T}no" >&6
2908: fi
2909:
2910: test -n "$CC" && break
2911: done
1.1 parser 2912: fi
1.15 paf 2913: if test -z "$CC"; then
2914: ac_ct_CC=$CC
2915: for ac_prog in cl
2916: do
2917: # Extract the first word of "$ac_prog", so it can be a program name with args.
2918: set dummy $ac_prog; ac_word=$2
2919: echo "$as_me:$LINENO: checking for $ac_word" >&5
2920: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2922: echo $ECHO_N "(cached) $ECHO_C" >&6
2923: else
2924: if test -n "$ac_ct_CC"; then
2925: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926: else
2927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928: for as_dir in $PATH
2929: do
2930: IFS=$as_save_IFS
2931: test -z "$as_dir" && as_dir=.
2932: for ac_exec_ext in '' $ac_executable_extensions; do
2933: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934: ac_cv_prog_ac_ct_CC="$ac_prog"
2935: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936: break 2
1.1 parser 2937: fi
1.15 paf 2938: done
2939: done
2940:
2941: fi
2942: fi
2943: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944: if test -n "$ac_ct_CC"; then
2945: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2946: echo "${ECHO_T}$ac_ct_CC" >&6
2947: else
2948: echo "$as_me:$LINENO: result: no" >&5
2949: echo "${ECHO_T}no" >&6
1.1 parser 2950: fi
2951:
1.15 paf 2952: test -n "$ac_ct_CC" && break
2953: done
1.1 parser 2954:
1.15 paf 2955: CC=$ac_ct_CC
2956: fi
1.1 parser 2957:
1.15 paf 2958: fi
1.1 parser 2959:
2960:
1.15 paf 2961: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2962: See \`config.log' for more details." >&5
2963: echo "$as_me: error: no acceptable C compiler found in \$PATH
2964: See \`config.log' for more details." >&2;}
2965: { (exit 1); exit 1; }; }
2966:
2967: # Provide some information about the compiler.
2968: echo "$as_me:$LINENO:" \
2969: "checking for C compiler version" >&5
2970: ac_compiler=`set X $ac_compile; echo $2`
2971: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2972: (eval $ac_compiler --version </dev/null >&5) 2>&5
2973: ac_status=$?
2974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975: (exit $ac_status); }
2976: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2977: (eval $ac_compiler -v </dev/null >&5) 2>&5
2978: ac_status=$?
2979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980: (exit $ac_status); }
2981: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2982: (eval $ac_compiler -V </dev/null >&5) 2>&5
2983: ac_status=$?
2984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985: (exit $ac_status); }
2986:
2987: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2988: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2989: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2990: echo $ECHO_N "(cached) $ECHO_C" >&6
2991: else
2992: cat >conftest.$ac_ext <<_ACEOF
2993: /* confdefs.h. */
2994: _ACEOF
2995: cat confdefs.h >>conftest.$ac_ext
2996: cat >>conftest.$ac_ext <<_ACEOF
2997: /* end confdefs.h. */
2998:
2999: int
3000: main ()
3001: {
3002: #ifndef __GNUC__
3003: choke me
1.1 parser 3004: #endif
3005:
1.15 paf 3006: ;
3007: return 0;
3008: }
3009: _ACEOF
3010: rm -f conftest.$ac_objext
3011: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3012: (eval $ac_compile) 2>conftest.er1
1.15 paf 3013: ac_status=$?
1.25 paf 3014: grep -v '^ *+' conftest.er1 >conftest.err
3015: rm -f conftest.er1
3016: cat conftest.err >&5
1.15 paf 3017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018: (exit $ac_status); } &&
1.25 paf 3019: { ac_try='test -z "$ac_c_werror_flag"
3020: || test ! -s conftest.err'
3021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022: (eval $ac_try) 2>&5
3023: ac_status=$?
3024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025: (exit $ac_status); }; } &&
3026: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028: (eval $ac_try) 2>&5
3029: ac_status=$?
3030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031: (exit $ac_status); }; }; then
3032: ac_compiler_gnu=yes
3033: else
3034: echo "$as_me: failed program was:" >&5
3035: sed 's/^/| /' conftest.$ac_ext >&5
3036:
3037: ac_compiler_gnu=no
3038: fi
1.25 paf 3039: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3040: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041:
3042: fi
3043: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3045: GCC=`test $ac_compiler_gnu = yes && echo yes`
3046: ac_test_CFLAGS=${CFLAGS+set}
3047: ac_save_CFLAGS=$CFLAGS
3048: CFLAGS="-g"
3049: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3050: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3051: if test "${ac_cv_prog_cc_g+set}" = set; then
3052: echo $ECHO_N "(cached) $ECHO_C" >&6
3053: else
3054: cat >conftest.$ac_ext <<_ACEOF
3055: /* confdefs.h. */
3056: _ACEOF
3057: cat confdefs.h >>conftest.$ac_ext
3058: cat >>conftest.$ac_ext <<_ACEOF
3059: /* end confdefs.h. */
3060:
3061: int
3062: main ()
3063: {
3064:
3065: ;
3066: return 0;
3067: }
3068: _ACEOF
3069: rm -f conftest.$ac_objext
3070: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3071: (eval $ac_compile) 2>conftest.er1
1.15 paf 3072: ac_status=$?
1.25 paf 3073: grep -v '^ *+' conftest.er1 >conftest.err
3074: rm -f conftest.er1
3075: cat conftest.err >&5
1.15 paf 3076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077: (exit $ac_status); } &&
1.25 paf 3078: { ac_try='test -z "$ac_c_werror_flag"
3079: || test ! -s conftest.err'
3080: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081: (eval $ac_try) 2>&5
3082: ac_status=$?
3083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084: (exit $ac_status); }; } &&
3085: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3086: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087: (eval $ac_try) 2>&5
3088: ac_status=$?
3089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090: (exit $ac_status); }; }; then
3091: ac_cv_prog_cc_g=yes
1.1 parser 3092: else
1.15 paf 3093: echo "$as_me: failed program was:" >&5
3094: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3095:
1.15 paf 3096: ac_cv_prog_cc_g=no
1.1 parser 3097: fi
1.25 paf 3098: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3099: fi
1.15 paf 3100: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3101: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3102: if test "$ac_test_CFLAGS" = set; then
1.15 paf 3103: CFLAGS=$ac_save_CFLAGS
1.1 parser 3104: elif test $ac_cv_prog_cc_g = yes; then
3105: if test "$GCC" = yes; then
3106: CFLAGS="-g -O2"
3107: else
3108: CFLAGS="-g"
3109: fi
3110: else
3111: if test "$GCC" = yes; then
3112: CFLAGS="-O2"
3113: else
3114: CFLAGS=
3115: fi
3116: fi
1.15 paf 3117: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3118: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3119: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3120: echo $ECHO_N "(cached) $ECHO_C" >&6
3121: else
3122: ac_cv_prog_cc_stdc=no
3123: ac_save_CC=$CC
3124: cat >conftest.$ac_ext <<_ACEOF
3125: /* confdefs.h. */
3126: _ACEOF
3127: cat confdefs.h >>conftest.$ac_ext
3128: cat >>conftest.$ac_ext <<_ACEOF
3129: /* end confdefs.h. */
3130: #include <stdarg.h>
3131: #include <stdio.h>
3132: #include <sys/types.h>
3133: #include <sys/stat.h>
3134: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3135: struct buf { int x; };
3136: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3137: static char *e (p, i)
3138: char **p;
3139: int i;
3140: {
3141: return p[i];
3142: }
3143: static char *f (char * (*g) (char **, int), char **p, ...)
3144: {
3145: char *s;
3146: va_list v;
3147: va_start (v,p);
3148: s = g (p, va_arg (v,int));
3149: va_end (v);
3150: return s;
3151: }
1.25 paf 3152:
3153: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3154: function prototypes and stuff, but not '\xHH' hex character constants.
3155: These don't provoke an error unfortunately, instead are silently treated
3156: as 'x'. The following induces an error, until -std1 is added to get
3157: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3158: array size at least. It's necessary to write '\x00'==0 to get something
3159: that's true only with -std1. */
3160: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3161:
1.15 paf 3162: int test (int i, double x);
3163: struct s1 {int (*f) (int a);};
3164: struct s2 {int (*f) (double a);};
3165: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166: int argc;
3167: char **argv;
3168: int
3169: main ()
3170: {
3171: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172: ;
3173: return 0;
3174: }
3175: _ACEOF
3176: # Don't try gcc -ansi; that turns off useful extensions and
3177: # breaks some systems' header files.
3178: # AIX -qlanglvl=ansi
3179: # Ultrix and OSF/1 -std1
3180: # HP-UX 10.20 and later -Ae
3181: # HP-UX older versions -Aa -D_HPUX_SOURCE
3182: # SVR4 -Xc -D__EXTENSIONS__
3183: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3184: do
3185: CC="$ac_save_CC $ac_arg"
3186: rm -f conftest.$ac_objext
3187: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3188: (eval $ac_compile) 2>conftest.er1
1.15 paf 3189: ac_status=$?
1.25 paf 3190: grep -v '^ *+' conftest.er1 >conftest.err
3191: rm -f conftest.er1
3192: cat conftest.err >&5
1.15 paf 3193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194: (exit $ac_status); } &&
1.25 paf 3195: { ac_try='test -z "$ac_c_werror_flag"
3196: || test ! -s conftest.err'
3197: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198: (eval $ac_try) 2>&5
3199: ac_status=$?
3200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201: (exit $ac_status); }; } &&
3202: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3203: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204: (eval $ac_try) 2>&5
3205: ac_status=$?
3206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207: (exit $ac_status); }; }; then
3208: ac_cv_prog_cc_stdc=$ac_arg
3209: break
3210: else
3211: echo "$as_me: failed program was:" >&5
3212: sed 's/^/| /' conftest.$ac_ext >&5
3213:
3214: fi
1.25 paf 3215: rm -f conftest.err conftest.$ac_objext
1.15 paf 3216: done
3217: rm -f conftest.$ac_ext conftest.$ac_objext
3218: CC=$ac_save_CC
3219:
3220: fi
3221:
3222: case "x$ac_cv_prog_cc_stdc" in
3223: x|xno)
3224: echo "$as_me:$LINENO: result: none needed" >&5
3225: echo "${ECHO_T}none needed" >&6 ;;
3226: *)
3227: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3228: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3229: CC="$CC $ac_cv_prog_cc_stdc" ;;
3230: esac
3231:
3232: # Some people use a C++ compiler to compile C. Since we use `exit',
3233: # in C++ we need to declare it. In case someone uses the same compiler
3234: # for both compiling C and C++ we need to have the C++ compiler decide
3235: # the declaration of exit, since it's the most demanding environment.
3236: cat >conftest.$ac_ext <<_ACEOF
3237: #ifndef __cplusplus
3238: choke me
3239: #endif
3240: _ACEOF
3241: rm -f conftest.$ac_objext
3242: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3243: (eval $ac_compile) 2>conftest.er1
1.15 paf 3244: ac_status=$?
1.25 paf 3245: grep -v '^ *+' conftest.er1 >conftest.err
3246: rm -f conftest.er1
3247: cat conftest.err >&5
1.15 paf 3248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249: (exit $ac_status); } &&
1.25 paf 3250: { ac_try='test -z "$ac_c_werror_flag"
3251: || test ! -s conftest.err'
3252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253: (eval $ac_try) 2>&5
3254: ac_status=$?
3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256: (exit $ac_status); }; } &&
3257: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259: (eval $ac_try) 2>&5
3260: ac_status=$?
3261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262: (exit $ac_status); }; }; then
3263: for ac_declaration in \
1.25 paf 3264: '' \
1.15 paf 3265: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3266: 'extern "C" void std::exit (int); using std::exit;' \
3267: 'extern "C" void exit (int) throw ();' \
3268: 'extern "C" void exit (int);' \
3269: 'void exit (int);'
3270: do
3271: cat >conftest.$ac_ext <<_ACEOF
3272: /* confdefs.h. */
3273: _ACEOF
3274: cat confdefs.h >>conftest.$ac_ext
3275: cat >>conftest.$ac_ext <<_ACEOF
3276: /* end confdefs.h. */
1.25 paf 3277: $ac_declaration
1.15 paf 3278: #include <stdlib.h>
3279: int
3280: main ()
3281: {
3282: exit (42);
3283: ;
3284: return 0;
3285: }
3286: _ACEOF
3287: rm -f conftest.$ac_objext
3288: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3289: (eval $ac_compile) 2>conftest.er1
1.15 paf 3290: ac_status=$?
1.25 paf 3291: grep -v '^ *+' conftest.er1 >conftest.err
3292: rm -f conftest.er1
3293: cat conftest.err >&5
1.15 paf 3294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295: (exit $ac_status); } &&
1.25 paf 3296: { ac_try='test -z "$ac_c_werror_flag"
3297: || test ! -s conftest.err'
3298: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299: (eval $ac_try) 2>&5
3300: ac_status=$?
3301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302: (exit $ac_status); }; } &&
3303: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305: (eval $ac_try) 2>&5
3306: ac_status=$?
3307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308: (exit $ac_status); }; }; then
3309: :
3310: else
3311: echo "$as_me: failed program was:" >&5
3312: sed 's/^/| /' conftest.$ac_ext >&5
3313:
3314: continue
3315: fi
1.25 paf 3316: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3317: cat >conftest.$ac_ext <<_ACEOF
3318: /* confdefs.h. */
3319: _ACEOF
3320: cat confdefs.h >>conftest.$ac_ext
3321: cat >>conftest.$ac_ext <<_ACEOF
3322: /* end confdefs.h. */
3323: $ac_declaration
3324: int
3325: main ()
3326: {
3327: exit (42);
3328: ;
3329: return 0;
3330: }
3331: _ACEOF
3332: rm -f conftest.$ac_objext
3333: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3334: (eval $ac_compile) 2>conftest.er1
1.15 paf 3335: ac_status=$?
1.25 paf 3336: grep -v '^ *+' conftest.er1 >conftest.err
3337: rm -f conftest.er1
3338: cat conftest.err >&5
1.15 paf 3339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340: (exit $ac_status); } &&
1.25 paf 3341: { ac_try='test -z "$ac_c_werror_flag"
3342: || test ! -s conftest.err'
3343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344: (eval $ac_try) 2>&5
3345: ac_status=$?
3346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347: (exit $ac_status); }; } &&
3348: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350: (eval $ac_try) 2>&5
3351: ac_status=$?
3352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353: (exit $ac_status); }; }; then
3354: break
3355: else
3356: echo "$as_me: failed program was:" >&5
3357: sed 's/^/| /' conftest.$ac_ext >&5
3358:
3359: fi
1.25 paf 3360: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3361: done
3362: rm -f conftest*
3363: if test -n "$ac_declaration"; then
3364: echo '#ifdef __cplusplus' >>confdefs.h
3365: echo $ac_declaration >>confdefs.h
3366: echo '#endif' >>confdefs.h
3367: fi
3368:
3369: else
3370: echo "$as_me: failed program was:" >&5
3371: sed 's/^/| /' conftest.$ac_ext >&5
3372:
3373: fi
1.25 paf 3374: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.24 paf 3375: ac_ext=c
3376: ac_cpp='$CPP $CPPFLAGS'
3377: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 3380:
3381: depcc="$CC" am_compiler_list=
3382:
3383: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3384: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3385: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3386: echo $ECHO_N "(cached) $ECHO_C" >&6
3387: else
3388: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389: # We make a subdir and do the tests there. Otherwise we can end up
3390: # making bogus files that we don't know about and never remove. For
3391: # instance it was reported that on HP-UX the gcc test will end up
3392: # making a dummy file named `D' -- because `-MD' means `put the output
3393: # in D'.
3394: mkdir conftest.dir
3395: # Copy depcomp to subdir because otherwise we won't find it if we're
3396: # using a relative directory.
3397: cp "$am_depcomp" conftest.dir
3398: cd conftest.dir
1.25 paf 3399: # We will build objects and dependencies in a subdirectory because
3400: # it helps to detect inapplicable dependency modes. For instance
3401: # both Tru64's cc and ICC support -MD to output dependencies as a
3402: # side effect of compilation, but ICC will put the dependencies in
3403: # the current directory while Tru64 will put them in the object
3404: # directory.
3405: mkdir sub
1.15 paf 3406:
3407: am_cv_CC_dependencies_compiler_type=none
3408: if test "$am_compiler_list" = ""; then
3409: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3410: fi
3411: for depmode in $am_compiler_list; do
1.25 paf 3412: # Setup a source with many dependencies, because some compilers
3413: # like to wrap large dependency lists on column 80 (with \), and
3414: # we should not choose a depcomp mode which is confused by this.
3415: #
1.15 paf 3416: # We need to recreate these files for each test, as the compiler may
3417: # overwrite some of them when testing with obscure command lines.
3418: # This happens at least with the AIX C compiler.
1.25 paf 3419: : > sub/conftest.c
3420: for i in 1 2 3 4 5 6; do
3421: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3422: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3423: # Solaris 8's {/usr,}/bin/sh.
3424: touch sub/conftst$i.h
3425: done
3426: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 3427:
3428: case $depmode in
3429: nosideeffect)
3430: # after this tag, mechanisms are not by side-effect, so they'll
3431: # only be used when explicitly requested
3432: if test "x$enable_dependency_tracking" = xyes; then
3433: continue
3434: else
3435: break
3436: fi
3437: ;;
3438: none) break ;;
3439: esac
3440: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3441: # mode. It turns out that the SunPro C++ compiler does not properly
3442: # handle `-M -o', and we need to detect this.
3443: if depmode=$depmode \
1.25 paf 3444: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3445: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3446: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3447: >/dev/null 2>conftest.err &&
3448: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3449: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 3450: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 3451: # icc doesn't choke on unknown options, it will just issue warnings
3452: # or remarks (even with -Werror). So we grep stderr for any message
3453: # that says an option was ignored or not supported.
3454: # When given -MP, icc 7.0 and 7.1 complain thusly:
3455: # icc: Command line warning: ignoring option '-M'; no argument required
3456: # The diagnosis changed in icc 8.0:
3457: # icc: Command line remark: option '-MP' not supported
3458: if (grep 'ignoring option' conftest.err ||
3459: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3460: am_cv_CC_dependencies_compiler_type=$depmode
3461: break
3462: fi
1.15 paf 3463: fi
3464: done
3465:
3466: cd ..
3467: rm -rf conftest.dir
3468: else
3469: am_cv_CC_dependencies_compiler_type=none
3470: fi
3471:
3472: fi
3473: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3474: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3475: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3476:
3477:
3478:
3479: if
3480: test "x$enable_dependency_tracking" != xno \
3481: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3482: am__fastdepCC_TRUE=
3483: am__fastdepCC_FALSE='#'
3484: else
3485: am__fastdepCC_TRUE='#'
3486: am__fastdepCC_FALSE=
3487: fi
3488:
3489:
1.24 paf 3490:
1.35 moko 3491:
1.36 moko 3492:
3493:
3494:
3495:
3496:
3497:
1.35 moko 3498: case `pwd` in
3499: *\ * | *\ *)
3500: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3501: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3502: esac
3503:
3504:
3505:
3506: macro_version='2.4.2'
3507: macro_revision='1.3337'
3508:
3509:
3510:
3511:
3512:
3513:
3514:
1.24 paf 3515:
3516:
3517:
3518:
3519:
3520:
1.35 moko 3521: ltmain="$ac_aux_dir/ltmain.sh"
1.24 paf 3522:
3523: # Make sure we can run config.sub.
3524: $ac_config_sub sun4 >/dev/null 2>&1 ||
3525: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3526: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3527: { (exit 1); exit 1; }; }
3528:
3529: echo "$as_me:$LINENO: checking build system type" >&5
3530: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3531: if test "${ac_cv_build+set}" = set; then
3532: echo $ECHO_N "(cached) $ECHO_C" >&6
3533: else
3534: ac_cv_build_alias=$build_alias
3535: test -z "$ac_cv_build_alias" &&
3536: ac_cv_build_alias=`$ac_config_guess`
3537: test -z "$ac_cv_build_alias" &&
3538: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3539: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3540: { (exit 1); exit 1; }; }
3541: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3542: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3543: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3544: { (exit 1); exit 1; }; }
3545:
3546: fi
3547: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3548: echo "${ECHO_T}$ac_cv_build" >&6
3549: build=$ac_cv_build
3550: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3551: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3552: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3553:
3554:
3555: echo "$as_me:$LINENO: checking host system type" >&5
3556: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3557: if test "${ac_cv_host+set}" = set; then
3558: echo $ECHO_N "(cached) $ECHO_C" >&6
3559: else
3560: ac_cv_host_alias=$host_alias
3561: test -z "$ac_cv_host_alias" &&
3562: ac_cv_host_alias=$ac_cv_build_alias
3563: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3564: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3565: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3566: { (exit 1); exit 1; }; }
3567:
3568: fi
3569: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3570: echo "${ECHO_T}$ac_cv_host" >&6
3571: host=$ac_cv_host
3572: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3573: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3574: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3575:
3576:
1.35 moko 3577: # Backslashify metacharacters that are still active within
3578: # double-quoted strings.
3579: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3580:
3581: # Same as above, but do not quote variable references.
3582: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3583:
3584: # Sed substitution to delay expansion of an escaped shell variable in a
3585: # double_quote_subst'ed string.
3586: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3587:
3588: # Sed substitution to delay expansion of an escaped single quote.
3589: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.15 paf 3590:
1.35 moko 3591: # Sed substitution to avoid accidental globbing in evaled expressions
3592: no_glob_subst='s/\*/\\\*/g'
1.1 parser 3593:
1.35 moko 3594: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3595: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3596: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3597:
3598: echo "$as_me:$LINENO: checking how to print strings" >&5
3599: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
3600: # Test print first, because it will be a builtin if present.
3601: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3602: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3603: ECHO='print -r --'
3604: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3605: ECHO='printf %s\n'
1.1 parser 3606: else
1.35 moko 3607: # Use this function as a fallback that always works.
3608: func_fallback_echo ()
3609: {
3610: eval 'cat <<_LTECHO_EOF
3611: $1
3612: _LTECHO_EOF'
3613: }
3614: ECHO='func_fallback_echo'
1.1 parser 3615: fi
1.35 moko 3616:
3617: # func_echo_all arg...
3618: # Invoke $ECHO with all args, space-separated.
3619: func_echo_all ()
3620: {
3621: $ECHO ""
3622: }
3623:
3624: case "$ECHO" in
3625: printf*) echo "$as_me:$LINENO: result: printf" >&5
3626: echo "${ECHO_T}printf" >&6 ;;
3627: print*) echo "$as_me:$LINENO: result: print -r" >&5
3628: echo "${ECHO_T}print -r" >&6 ;;
3629: *) echo "$as_me:$LINENO: result: cat" >&5
3630: echo "${ECHO_T}cat" >&6 ;;
3631: esac
3632:
3633:
3634:
3635:
3636:
3637:
3638:
3639:
3640:
3641:
3642:
3643:
3644:
3645:
3646: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3647: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3648: if test "${lt_cv_path_SED+set}" = set; then
3649: echo $ECHO_N "(cached) $ECHO_C" >&6
3650: else
3651: # Loop through the user's path and test for sed and gsed.
3652: # Then use that list of sed's as ones to test for truncation.
3653: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654: for as_dir in $PATH
3655: do
3656: IFS=$as_save_IFS
3657: test -z "$as_dir" && as_dir=.
3658: for lt_ac_prog in sed gsed; do
3659: for ac_exec_ext in '' $ac_executable_extensions; do
3660: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3661: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3662: fi
3663: done
3664: done
3665: done
3666: IFS=$as_save_IFS
3667: lt_ac_max=0
3668: lt_ac_count=0
3669: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3670: # along with /bin/sed that truncates output.
3671: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3672: test ! -f $lt_ac_sed && continue
3673: cat /dev/null > conftest.in
3674: lt_ac_count=0
3675: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3676: # Check for GNU sed and select it if it is found.
3677: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3678: lt_cv_path_SED=$lt_ac_sed
3679: break
3680: fi
3681: while true; do
3682: cat conftest.in conftest.in >conftest.tmp
3683: mv conftest.tmp conftest.in
3684: cp conftest.in conftest.nl
3685: echo >>conftest.nl
3686: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3687: cmp -s conftest.out conftest.nl || break
3688: # 10000 chars as input seems more than enough
3689: test $lt_ac_count -gt 10 && break
3690: lt_ac_count=`expr $lt_ac_count + 1`
3691: if test $lt_ac_count -gt $lt_ac_max; then
3692: lt_ac_max=$lt_ac_count
3693: lt_cv_path_SED=$lt_ac_sed
3694: fi
3695: done
3696: done
3697:
3698: fi
3699:
3700: SED=$lt_cv_path_SED
3701:
3702: echo "$as_me:$LINENO: result: $SED" >&5
3703: echo "${ECHO_T}$SED" >&6
3704:
3705: test -z "$SED" && SED=sed
3706: Xsed="$SED -e 1s/^X//"
3707:
3708:
3709:
3710:
3711:
3712:
3713:
3714:
3715:
3716:
3717:
3718: echo "$as_me:$LINENO: checking for egrep" >&5
3719: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3720: if test "${ac_cv_prog_egrep+set}" = set; then
3721: echo $ECHO_N "(cached) $ECHO_C" >&6
3722: else
3723: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3724: then ac_cv_prog_egrep='grep -E'
3725: else ac_cv_prog_egrep='egrep'
3726: fi
3727: fi
3728: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3729: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3730: EGREP=$ac_cv_prog_egrep
3731:
3732:
3733: echo "$as_me:$LINENO: checking for fgrep" >&5
3734: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3735: if test "${ac_cv_prog_fgrep+set}" = set; then
3736: echo $ECHO_N "(cached) $ECHO_C" >&6
3737: else
3738: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3739: then ac_cv_prog_fgrep='grep -F'
3740: else ac_cv_prog_fgrep='fgrep'
3741: fi
3742: fi
3743: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3744: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3745: FGREP=$ac_cv_prog_fgrep
3746:
3747:
3748: test -z "$GREP" && GREP=grep
3749:
3750:
3751:
3752:
3753:
3754:
3755:
3756:
3757:
3758:
3759:
3760:
3761:
3762:
3763:
3764:
3765:
3766:
3767:
3768: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3769: if test "${with_gnu_ld+set}" = set; then
3770: withval="$with_gnu_ld"
3771: test "$withval" = no || with_gnu_ld=yes
3772: else
3773: with_gnu_ld=no
3774: fi;
3775: ac_prog=ld
3776: if test "$GCC" = yes; then
3777: # Check if gcc -print-prog-name=ld gives a path.
3778: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3779: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3780: case $host in
3781: *-*-mingw*)
3782: # gcc leaves a trailing carriage return which upsets mingw
3783: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3784: *)
3785: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3786: esac
3787: case $ac_prog in
3788: # Accept absolute paths.
3789: [\\/]* | ?:[\\/]*)
3790: re_direlt='/[^/][^/]*/\.\./'
3791: # Canonicalize the pathname of ld
3792: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3793: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3794: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3795: done
3796: test -z "$LD" && LD="$ac_prog"
3797: ;;
3798: "")
3799: # If it fails, then pretend we aren't using GCC.
3800: ac_prog=ld
3801: ;;
3802: *)
3803: # If it is relative, then search for the first ld in PATH.
3804: with_gnu_ld=unknown
3805: ;;
3806: esac
3807: elif test "$with_gnu_ld" = yes; then
3808: echo "$as_me:$LINENO: checking for GNU ld" >&5
3809: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3810: else
3811: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3812: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3813: fi
3814: if test "${lt_cv_path_LD+set}" = set; then
1.15 paf 3815: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3816: else
3817: if test -z "$LD"; then
1.35 moko 3818: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3819: for ac_dir in $PATH; do
1.35 moko 3820: IFS="$lt_save_ifs"
1.1 parser 3821: test -z "$ac_dir" && ac_dir=.
3822: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.15 paf 3823: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3824: # Check to see if the program is GNU ld. I'd rather use --version,
1.35 moko 3825: # but apparently some variants of GNU ld only accept -v.
1.1 parser 3826: # Break only if it was the GNU/non-GNU ld that we prefer.
1.35 moko 3827: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3828: *GNU* | *'with BFD'*)
1.1 parser 3829: test "$with_gnu_ld" != no && break
1.35 moko 3830: ;;
3831: *)
1.1 parser 3832: test "$with_gnu_ld" != yes && break
1.35 moko 3833: ;;
3834: esac
1.1 parser 3835: fi
3836: done
1.35 moko 3837: IFS="$lt_save_ifs"
1.1 parser 3838: else
1.15 paf 3839: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3840: fi
3841: fi
3842:
1.15 paf 3843: LD="$lt_cv_path_LD"
1.1 parser 3844: if test -n "$LD"; then
1.15 paf 3845: echo "$as_me:$LINENO: result: $LD" >&5
3846: echo "${ECHO_T}$LD" >&6
1.1 parser 3847: else
1.15 paf 3848: echo "$as_me:$LINENO: result: no" >&5
3849: echo "${ECHO_T}no" >&6
1.1 parser 3850: fi
1.15 paf 3851: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3852: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3853: { (exit 1); exit 1; }; }
3854: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3855: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3856: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3857: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3858: else
1.35 moko 3859: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3860: case `$LD -v 2>&1 </dev/null` in
3861: *GNU* | *'with BFD'*)
1.15 paf 3862: lt_cv_prog_gnu_ld=yes
1.35 moko 3863: ;;
3864: *)
1.15 paf 3865: lt_cv_prog_gnu_ld=no
1.35 moko 3866: ;;
3867: esac
1.1 parser 3868: fi
1.15 paf 3869: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3870: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3871: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3872:
3873:
3874:
1.35 moko 3875:
3876:
3877:
3878:
3879:
3880:
3881: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3882: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1.15 paf 3883: if test "${lt_cv_path_NM+set}" = set; then
3884: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3885: else
3886: if test -n "$NM"; then
3887: # Let the user override the test.
1.15 paf 3888: lt_cv_path_NM="$NM"
1.1 parser 3889: else
1.35 moko 3890: lt_nm_to_check="${ac_tool_prefix}nm"
3891: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3892: lt_nm_to_check="$lt_nm_to_check nm"
3893: fi
3894: for lt_tmp_nm in $lt_nm_to_check; do
3895: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3896: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3897: IFS="$lt_save_ifs"
3898: test -z "$ac_dir" && ac_dir=.
3899: tmp_nm="$ac_dir/$lt_tmp_nm"
3900: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3901: # Check to see if the nm accepts a BSD-compat flag.
3902: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3903: # nm: unknown option "B" ignored
3904: # Tru64's nm complains that /dev/null is an invalid object file
3905: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3906: */dev/null* | *'Invalid file or object type'*)
3907: lt_cv_path_NM="$tmp_nm -B"
3908: break
3909: ;;
3910: *)
3911: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3912: */dev/null*)
3913: lt_cv_path_NM="$tmp_nm -p"
3914: break
3915: ;;
3916: *)
3917: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3918: continue # so that we can try to find one that supports BSD flags
3919: ;;
3920: esac
3921: ;;
3922: esac
1.1 parser 3923: fi
1.35 moko 3924: done
3925: IFS="$lt_save_ifs"
1.1 parser 3926: done
1.35 moko 3927: : ${lt_cv_path_NM=no}
1.1 parser 3928: fi
3929: fi
1.35 moko 3930: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3931: echo "${ECHO_T}$lt_cv_path_NM" >&6
3932: if test "$lt_cv_path_NM" != "no"; then
3933: NM="$lt_cv_path_NM"
3934: else
3935: # Didn't find any BSD compatible name lister, look for dumpbin.
3936: if test -n "$DUMPBIN"; then :
3937: # Let the user override the test.
3938: else
3939: if test -n "$ac_tool_prefix"; then
3940: for ac_prog in dumpbin "link -dump"
3941: do
3942: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3943: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3944: echo "$as_me:$LINENO: checking for $ac_word" >&5
3945: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
1.15 paf 3947: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3948: else
1.35 moko 3949: if test -n "$DUMPBIN"; then
3950: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3951: else
1.15 paf 3952: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953: for as_dir in $PATH
3954: do
3955: IFS=$as_save_IFS
3956: test -z "$as_dir" && as_dir=.
1.35 moko 3957: for ac_exec_ext in '' $ac_executable_extensions; do
3958: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3960: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961: break 2
3962: fi
3963: done
1.15 paf 3964: done
3965:
1.35 moko 3966: fi
3967: fi
3968: DUMPBIN=$ac_cv_prog_DUMPBIN
3969: if test -n "$DUMPBIN"; then
3970: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3971: echo "${ECHO_T}$DUMPBIN" >&6
3972: else
3973: echo "$as_me:$LINENO: result: no" >&5
3974: echo "${ECHO_T}no" >&6
3975: fi
1.15 paf 3976:
1.35 moko 3977: test -n "$DUMPBIN" && break
1.15 paf 3978: done
1.35 moko 3979: fi
3980: if test -z "$DUMPBIN"; then
3981: ac_ct_DUMPBIN=$DUMPBIN
3982: for ac_prog in dumpbin "link -dump"
3983: do
3984: # Extract the first word of "$ac_prog", so it can be a program name with args.
3985: set dummy $ac_prog; ac_word=$2
3986: echo "$as_me:$LINENO: checking for $ac_word" >&5
3987: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3989: echo $ECHO_N "(cached) $ECHO_C" >&6
3990: else
3991: if test -n "$ac_ct_DUMPBIN"; then
3992: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3993: else
3994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995: for as_dir in $PATH
3996: do
3997: IFS=$as_save_IFS
3998: test -z "$as_dir" && as_dir=.
3999: for ac_exec_ext in '' $ac_executable_extensions; do
4000: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4002: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003: break 2
4004: fi
4005: done
4006: done
1.15 paf 4007:
1.1 parser 4008: fi
1.35 moko 4009: fi
4010: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4011: if test -n "$ac_ct_DUMPBIN"; then
4012: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4013: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.11 paf 4014: else
1.35 moko 4015: echo "$as_me:$LINENO: result: no" >&5
4016: echo "${ECHO_T}no" >&6
1.11 paf 4017: fi
1.15 paf 4018:
1.35 moko 4019: test -n "$ac_ct_DUMPBIN" && break
4020: done
4021: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4022:
4023: DUMPBIN=$ac_ct_DUMPBIN
1.15 paf 4024: fi
4025:
1.35 moko 4026: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4027: *COFF*)
4028: DUMPBIN="$DUMPBIN -symbols"
4029: ;;
4030: *)
4031: DUMPBIN=:
4032: ;;
4033: esac
4034: fi
4035:
4036: if test "$DUMPBIN" != ":"; then
4037: NM="$DUMPBIN"
4038: fi
4039: fi
4040: test -z "$NM" && NM=nm
4041:
4042:
4043:
4044:
4045:
4046:
4047: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4048: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4049: if test "${lt_cv_nm_interface+set}" = set; then
4050: echo $ECHO_N "(cached) $ECHO_C" >&6
4051: else
4052: lt_cv_nm_interface="BSD nm"
4053: echo "int some_variable = 0;" > conftest.$ac_ext
4054: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4055: (eval "$ac_compile" 2>conftest.err)
4056: cat conftest.err >&5
4057: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4058: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4059: cat conftest.err >&5
4060: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4061: cat conftest.out >&5
4062: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4063: lt_cv_nm_interface="MS dumpbin"
4064: fi
4065: rm -f conftest*
4066: fi
4067: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4068: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4069:
4070: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4071: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4072: LN_S=$as_ln_s
4073: if test "$LN_S" = "ln -s"; then
4074: echo "$as_me:$LINENO: result: yes" >&5
4075: echo "${ECHO_T}yes" >&6
4076: else
4077: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4078: echo "${ECHO_T}no, using $LN_S" >&6
4079: fi
4080:
4081: # find the maximum length of command line arguments
4082: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4083: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4084: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4085: echo $ECHO_N "(cached) $ECHO_C" >&6
4086: else
4087: i=0
4088: teststring="ABCD"
4089:
4090: case $build_os in
4091: msdosdjgpp*)
4092: # On DJGPP, this test can blow up pretty badly due to problems in libc
4093: # (any single argument exceeding 2000 bytes causes a buffer overrun
4094: # during glob expansion). Even if it were fixed, the result of this
4095: # check would be larger than it should be.
4096: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4097: ;;
4098:
4099: gnu*)
4100: # Under GNU Hurd, this test is not required because there is
4101: # no limit to the length of command line arguments.
4102: # Libtool will interpret -1 as no limit whatsoever
4103: lt_cv_sys_max_cmd_len=-1;
4104: ;;
4105:
4106: cygwin* | mingw* | cegcc*)
4107: # On Win9x/ME, this test blows up -- it succeeds, but takes
4108: # about 5 minutes as the teststring grows exponentially.
4109: # Worse, since 9x/ME are not pre-emptively multitasking,
4110: # you end up with a "frozen" computer, even though with patience
4111: # the test eventually succeeds (with a max line length of 256k).
4112: # Instead, let's just punt: use the minimum linelength reported by
4113: # all of the supported platforms: 8192 (on NT/2K/XP).
4114: lt_cv_sys_max_cmd_len=8192;
4115: ;;
4116:
4117: mint*)
4118: # On MiNT this can take a long time and run out of memory.
4119: lt_cv_sys_max_cmd_len=8192;
4120: ;;
4121:
4122: amigaos*)
4123: # On AmigaOS with pdksh, this test takes hours, literally.
4124: # So we just punt and use a minimum line length of 8192.
4125: lt_cv_sys_max_cmd_len=8192;
4126: ;;
4127:
4128: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4129: # This has been around since 386BSD, at least. Likely further.
4130: if test -x /sbin/sysctl; then
4131: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4132: elif test -x /usr/sbin/sysctl; then
4133: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4134: else
4135: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4136: fi
4137: # And add a safety zone
4138: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4139: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4140: ;;
4141:
4142: interix*)
4143: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4144: lt_cv_sys_max_cmd_len=196608
4145: ;;
4146:
4147: os2*)
4148: # The test takes a long time on OS/2.
4149: lt_cv_sys_max_cmd_len=8192
4150: ;;
4151:
4152: osf*)
4153: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4154: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4155: # nice to cause kernel panics so lets avoid the loop below.
4156: # First set a reasonable default.
4157: lt_cv_sys_max_cmd_len=16384
4158: #
4159: if test -x /sbin/sysconfig; then
4160: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4161: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4162: esac
4163: fi
4164: ;;
4165: sco3.2v5*)
4166: lt_cv_sys_max_cmd_len=102400
4167: ;;
4168: sysv5* | sco5v6* | sysv4.2uw2*)
4169: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4170: if test -n "$kargmax"; then
4171: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4172: else
4173: lt_cv_sys_max_cmd_len=32768
4174: fi
4175: ;;
4176: *)
4177: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4178: if test -n "$lt_cv_sys_max_cmd_len"; then
4179: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4180: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4181: else
4182: # Make teststring a little bigger before we do anything with it.
4183: # a 1K string should be a reasonable start.
4184: for i in 1 2 3 4 5 6 7 8 ; do
4185: teststring=$teststring$teststring
4186: done
4187: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4188: # If test is not a shell built-in, we'll probably end up computing a
4189: # maximum length that is only half of the actual maximum length, but
4190: # we can't tell.
4191: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4192: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4193: test $i != 17 # 1/2 MB should be enough
4194: do
4195: i=`expr $i + 1`
4196: teststring=$teststring$teststring
4197: done
4198: # Only check the string length outside the loop.
4199: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4200: teststring=
4201: # Add a significant safety factor because C++ compilers can tack on
4202: # massive amounts of additional arguments before passing them to the
4203: # linker. It appears as though 1/2 is a usable value.
4204: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4205: fi
4206: ;;
4207: esac
4208:
4209: fi
4210:
4211: if test -n $lt_cv_sys_max_cmd_len ; then
4212: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4213: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4214: else
4215: echo "$as_me:$LINENO: result: none" >&5
4216: echo "${ECHO_T}none" >&6
4217: fi
4218: max_cmd_len=$lt_cv_sys_max_cmd_len
4219:
4220:
4221:
4222:
4223:
4224:
4225: : ${CP="cp -f"}
4226: : ${MV="mv -f"}
4227: : ${RM="rm -f"}
4228:
4229: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4230: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4231: # Try some XSI features
4232: xsi_shell=no
4233: ( _lt_dummy="a/b/c"
4234: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4235: = c,a/b,b/c, \
4236: && eval 'test $(( 1 + 1 )) -eq 2 \
4237: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4238: && xsi_shell=yes
4239: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4240: echo "${ECHO_T}$xsi_shell" >&6
4241:
4242:
4243: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4244: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4245: lt_shell_append=no
4246: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4247: >/dev/null 2>&1 \
4248: && lt_shell_append=yes
4249: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4250: echo "${ECHO_T}$lt_shell_append" >&6
4251:
4252:
4253: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4254: lt_unset=unset
4255: else
4256: lt_unset=false
4257: fi
4258:
4259:
4260:
4261:
4262:
4263: # test EBCDIC or ASCII
4264: case `echo X|tr X '\101'` in
4265: A) # ASCII based system
4266: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4267: lt_SP2NL='tr \040 \012'
4268: lt_NL2SP='tr \015\012 \040\040'
4269: ;;
4270: *) # EBCDIC based system
4271: lt_SP2NL='tr \100 \n'
4272: lt_NL2SP='tr \r\n \100\100'
4273: ;;
4274: esac
4275:
4276:
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4285: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4286: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4287: echo $ECHO_N "(cached) $ECHO_C" >&6
4288: else
4289: case $host in
4290: *-*-mingw* )
4291: case $build in
4292: *-*-mingw* ) # actually msys
4293: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4294: ;;
4295: *-*-cygwin* )
4296: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4297: ;;
4298: * ) # otherwise, assume *nix
4299: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4300: ;;
4301: esac
4302: ;;
4303: *-*-cygwin* )
4304: case $build in
4305: *-*-mingw* ) # actually msys
4306: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4307: ;;
4308: *-*-cygwin* )
4309: lt_cv_to_host_file_cmd=func_convert_file_noop
4310: ;;
4311: * ) # otherwise, assume *nix
4312: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4313: ;;
4314: esac
4315: ;;
4316: * ) # unhandled hosts (and "normal" native builds)
4317: lt_cv_to_host_file_cmd=func_convert_file_noop
4318: ;;
4319: esac
4320:
4321: fi
4322:
4323: to_host_file_cmd=$lt_cv_to_host_file_cmd
4324: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4325: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4326:
4327:
4328:
4329:
4330:
4331: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4332: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4333: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4334: echo $ECHO_N "(cached) $ECHO_C" >&6
4335: else
4336: #assume ordinary cross tools, or native build.
4337: lt_cv_to_tool_file_cmd=func_convert_file_noop
4338: case $host in
4339: *-*-mingw* )
4340: case $build in
4341: *-*-mingw* ) # actually msys
4342: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4343: ;;
4344: esac
4345: ;;
4346: esac
4347:
4348: fi
4349:
4350: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4351: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4352: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4353:
4354:
4355:
4356:
4357:
4358: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4359: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4360: if test "${lt_cv_ld_reload_flag+set}" = set; then
4361: echo $ECHO_N "(cached) $ECHO_C" >&6
4362: else
4363: lt_cv_ld_reload_flag='-r'
4364: fi
4365: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4366: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4367: reload_flag=$lt_cv_ld_reload_flag
4368: case $reload_flag in
4369: "" | " "*) ;;
4370: *) reload_flag=" $reload_flag" ;;
4371: esac
4372: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4373: case $host_os in
4374: cygwin* | mingw* | pw32* | cegcc*)
4375: if test "$GCC" != yes; then
4376: reload_cmds=false
4377: fi
4378: ;;
4379: darwin*)
4380: if test "$GCC" = yes; then
4381: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4382: else
4383: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4384: fi
4385: ;;
4386: esac
4387:
4388:
4389:
4390:
4391:
4392:
4393:
4394:
4395:
4396: if test -n "$ac_tool_prefix"; then
4397: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4398: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4399: echo "$as_me:$LINENO: checking for $ac_word" >&5
4400: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4402: echo $ECHO_N "(cached) $ECHO_C" >&6
4403: else
4404: if test -n "$OBJDUMP"; then
4405: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4406: else
4407: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408: for as_dir in $PATH
4409: do
4410: IFS=$as_save_IFS
4411: test -z "$as_dir" && as_dir=.
4412: for ac_exec_ext in '' $ac_executable_extensions; do
4413: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4415: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416: break 2
4417: fi
4418: done
4419: done
4420:
4421: fi
4422: fi
4423: OBJDUMP=$ac_cv_prog_OBJDUMP
4424: if test -n "$OBJDUMP"; then
4425: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4426: echo "${ECHO_T}$OBJDUMP" >&6
4427: else
4428: echo "$as_me:$LINENO: result: no" >&5
4429: echo "${ECHO_T}no" >&6
4430: fi
4431:
4432: fi
4433: if test -z "$ac_cv_prog_OBJDUMP"; then
4434: ac_ct_OBJDUMP=$OBJDUMP
4435: # Extract the first word of "objdump", so it can be a program name with args.
4436: set dummy objdump; ac_word=$2
4437: echo "$as_me:$LINENO: checking for $ac_word" >&5
4438: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4440: echo $ECHO_N "(cached) $ECHO_C" >&6
4441: else
4442: if test -n "$ac_ct_OBJDUMP"; then
4443: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4444: else
4445: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446: for as_dir in $PATH
4447: do
4448: IFS=$as_save_IFS
4449: test -z "$as_dir" && as_dir=.
4450: for ac_exec_ext in '' $ac_executable_extensions; do
4451: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4453: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454: break 2
4455: fi
4456: done
4457: done
4458:
4459: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4460: fi
4461: fi
4462: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4463: if test -n "$ac_ct_OBJDUMP"; then
4464: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4465: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4466: else
4467: echo "$as_me:$LINENO: result: no" >&5
4468: echo "${ECHO_T}no" >&6
4469: fi
4470:
4471: OBJDUMP=$ac_ct_OBJDUMP
4472: else
4473: OBJDUMP="$ac_cv_prog_OBJDUMP"
4474: fi
4475:
4476: test -z "$OBJDUMP" && OBJDUMP=objdump
4477:
4478:
4479:
4480:
4481:
4482:
4483: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4484: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
1.15 paf 4485: if test "${lt_cv_deplibs_check_method+set}" = set; then
4486: echo $ECHO_N "(cached) $ECHO_C" >&6
4487: else
4488: lt_cv_file_magic_cmd='$MAGIC_CMD'
4489: lt_cv_file_magic_test_file=
4490: lt_cv_deplibs_check_method='unknown'
4491: # Need to set the preceding variable on all platforms that support
4492: # interlibrary dependencies.
4493: # 'none' -- dependencies not supported.
4494: # `unknown' -- same as none, but documents that we really don't know.
4495: # 'pass_all' -- all dependencies passed with no checks.
4496: # 'test_compile' -- check by making test program.
4497: # 'file_magic [[regex]]' -- check by looking for files in library path
1.35 moko 4498: # which responds to the $file_magic_cmd with a given extended regex.
1.15 paf 4499: # If you have `file' or equivalent on your system and you're not sure
4500: # whether `pass_all' will *always* work, you probably want this one.
4501:
4502: case $host_os in
1.35 moko 4503: aix[4-9]*)
1.15 paf 4504: lt_cv_deplibs_check_method=pass_all
4505: ;;
1.11 paf 4506:
1.15 paf 4507: beos*)
4508: lt_cv_deplibs_check_method=pass_all
4509: ;;
1.1 parser 4510:
1.35 moko 4511: bsdi[45]*)
1.15 paf 4512: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4513: lt_cv_file_magic_cmd='/usr/bin/file -L'
4514: lt_cv_file_magic_test_file=/shlib/libc.so
4515: ;;
1.1 parser 4516:
1.35 moko 4517: cygwin*)
4518: # func_win32_libid is a shell function defined in ltmain.sh
4519: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4520: lt_cv_file_magic_cmd='func_win32_libid'
4521: ;;
4522:
4523: mingw* | pw32*)
4524: # Base MSYS/MinGW do not provide the 'file' command needed by
4525: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4526: # unless we find 'file', for example because we are cross-compiling.
4527: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4528: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4529: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4530: lt_cv_file_magic_cmd='func_win32_libid'
4531: else
4532: # Keep this pattern in sync with the one in func_win32_libid.
4533: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4534: lt_cv_file_magic_cmd='$OBJDUMP -f'
4535: fi
4536: ;;
4537:
4538: cegcc*)
4539: # use the weaker test based on 'objdump'. See mingw*.
4540: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.15 paf 4541: lt_cv_file_magic_cmd='$OBJDUMP -f'
4542: ;;
1.1 parser 4543:
1.15 paf 4544: darwin* | rhapsody*)
1.35 moko 4545: lt_cv_deplibs_check_method=pass_all
1.15 paf 4546: ;;
1.1 parser 4547:
1.35 moko 4548: freebsd* | dragonfly*)
4549: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.15 paf 4550: case $host_cpu in
4551: i*86 )
4552: # Not sure whether the presence of OpenBSD here was a mistake.
4553: # Let's accept both of them until this is cleared up.
1.35 moko 4554: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.15 paf 4555: lt_cv_file_magic_cmd=/usr/bin/file
4556: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4557: ;;
4558: esac
1.15 paf 4559: else
4560: lt_cv_deplibs_check_method=pass_all
1.1 parser 4561: fi
4562: ;;
4563:
1.15 paf 4564: gnu*)
4565: lt_cv_deplibs_check_method=pass_all
4566: ;;
1.1 parser 4567:
1.35 moko 4568: haiku*)
4569: lt_cv_deplibs_check_method=pass_all
1.15 paf 4570: ;;
1.1 parser 4571:
1.35 moko 4572: hpux10.20* | hpux11*)
4573: lt_cv_file_magic_cmd=/usr/bin/file
4574: case $host_cpu in
4575: ia64*)
4576: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4577: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4578: ;;
4579: hppa*64*)
4580: 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]'
4581: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.15 paf 4582: ;;
4583: *)
1.35 moko 4584: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4585: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.15 paf 4586: ;;
4587: esac
1.35 moko 4588: ;;
4589:
4590: interix[3-9]*)
4591: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4592: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4593: ;;
4594:
4595: irix5* | irix6* | nonstopux*)
4596: case $LD in
4597: *-32|*"-32 ") libmagic=32-bit;;
4598: *-n32|*"-n32 ") libmagic=N32;;
4599: *-64|*"-64 ") libmagic=64-bit;;
4600: *) libmagic=never-match;;
4601: esac
1.15 paf 4602: lt_cv_deplibs_check_method=pass_all
4603: ;;
4604:
1.35 moko 4605: # This must be glibc/ELF.
4606: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4607: lt_cv_deplibs_check_method=pass_all
1.15 paf 4608: ;;
4609:
4610: netbsd*)
1.35 moko 4611: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4612: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.15 paf 4613: else
1.35 moko 4614: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.15 paf 4615: fi
4616: ;;
4617:
4618: newos6*)
4619: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4620: lt_cv_file_magic_cmd=/usr/bin/file
4621: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4622: ;;
1.1 parser 4623:
1.35 moko 4624: *nto* | *qnx*)
4625: lt_cv_deplibs_check_method=pass_all
4626: ;;
4627:
1.15 paf 4628: openbsd*)
1.35 moko 4629: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4630: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.15 paf 4631: else
1.35 moko 4632: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 4633: fi
4634: ;;
4635:
1.15 paf 4636: osf3* | osf4* | osf5*)
4637: lt_cv_deplibs_check_method=pass_all
4638: ;;
4639:
1.35 moko 4640: rdos*)
1.15 paf 4641: lt_cv_deplibs_check_method=pass_all
4642: ;;
4643:
4644: solaris*)
4645: lt_cv_deplibs_check_method=pass_all
4646: ;;
4647:
1.35 moko 4648: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.15 paf 4649: lt_cv_deplibs_check_method=pass_all
4650: ;;
4651:
1.35 moko 4652: sysv4 | sysv4.3*)
1.15 paf 4653: case $host_vendor in
4654: motorola)
4655: 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]'
4656: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4657: ;;
4658: ncr)
4659: lt_cv_deplibs_check_method=pass_all
4660: ;;
4661: sequent)
4662: lt_cv_file_magic_cmd='/bin/file'
4663: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4664: ;;
4665: sni)
4666: lt_cv_file_magic_cmd='/bin/file'
4667: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4668: lt_cv_file_magic_test_file=/lib/libc.so
4669: ;;
4670: siemens)
4671: lt_cv_deplibs_check_method=pass_all
4672: ;;
1.35 moko 4673: pc)
4674: lt_cv_deplibs_check_method=pass_all
4675: ;;
1.15 paf 4676: esac
4677: ;;
1.35 moko 4678:
4679: tpf*)
4680: lt_cv_deplibs_check_method=pass_all
4681: ;;
1.15 paf 4682: esac
4683:
4684: fi
4685: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4686: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.35 moko 4687:
4688: file_magic_glob=
4689: want_nocaseglob=no
4690: if test "$build" = "$host"; then
4691: case $host_os in
4692: mingw* | pw32*)
4693: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4694: want_nocaseglob=yes
4695: else
4696: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4697: fi
4698: ;;
4699: esac
4700: fi
4701:
1.15 paf 4702: file_magic_cmd=$lt_cv_file_magic_cmd
4703: deplibs_check_method=$lt_cv_deplibs_check_method
1.35 moko 4704: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4705:
4706:
1.15 paf 4707:
4708:
4709:
4710:
4711:
4712:
4713:
4714:
1.35 moko 4715:
4716:
4717:
4718:
4719:
4720:
4721:
4722:
4723:
4724:
4725:
4726:
4727: if test -n "$ac_tool_prefix"; then
4728: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4729: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4730: echo "$as_me:$LINENO: checking for $ac_word" >&5
4731: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4733: echo $ECHO_N "(cached) $ECHO_C" >&6
4734: else
4735: if test -n "$DLLTOOL"; then
4736: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4737: else
4738: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739: for as_dir in $PATH
4740: do
4741: IFS=$as_save_IFS
4742: test -z "$as_dir" && as_dir=.
4743: for ac_exec_ext in '' $ac_executable_extensions; do
4744: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4746: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747: break 2
4748: fi
4749: done
4750: done
4751:
4752: fi
4753: fi
4754: DLLTOOL=$ac_cv_prog_DLLTOOL
4755: if test -n "$DLLTOOL"; then
4756: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4757: echo "${ECHO_T}$DLLTOOL" >&6
4758: else
4759: echo "$as_me:$LINENO: result: no" >&5
4760: echo "${ECHO_T}no" >&6
4761: fi
4762:
4763: fi
4764: if test -z "$ac_cv_prog_DLLTOOL"; then
4765: ac_ct_DLLTOOL=$DLLTOOL
4766: # Extract the first word of "dlltool", so it can be a program name with args.
4767: set dummy dlltool; ac_word=$2
4768: echo "$as_me:$LINENO: checking for $ac_word" >&5
4769: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.15 paf 4771: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4772: else
1.35 moko 4773: if test -n "$ac_ct_DLLTOOL"; then
4774: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4775: else
4776: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777: for as_dir in $PATH
4778: do
4779: IFS=$as_save_IFS
4780: test -z "$as_dir" && as_dir=.
4781: for ac_exec_ext in '' $ac_executable_extensions; do
4782: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4784: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785: break 2
4786: fi
4787: done
4788: done
4789:
4790: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4791: fi
4792: fi
4793: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4794: if test -n "$ac_ct_DLLTOOL"; then
4795: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4796: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4797: else
4798: echo "$as_me:$LINENO: result: no" >&5
4799: echo "${ECHO_T}no" >&6
4800: fi
4801:
4802: DLLTOOL=$ac_ct_DLLTOOL
4803: else
4804: DLLTOOL="$ac_cv_prog_DLLTOOL"
4805: fi
4806:
4807: test -z "$DLLTOOL" && DLLTOOL=dlltool
4808:
4809:
4810:
4811:
1.15 paf 4812:
4813:
4814:
1.35 moko 4815: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4816: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4817: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4818: echo $ECHO_N "(cached) $ECHO_C" >&6
4819: else
4820: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.15 paf 4821:
4822: case $host_os in
1.35 moko 4823: cygwin* | mingw* | pw32* | cegcc*)
4824: # two different shell functions defined in ltmain.sh
4825: # decide which to use based on capabilities of $DLLTOOL
4826: case `$DLLTOOL --help 2>&1` in
4827: *--identify-strict*)
4828: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4829: ;;
4830: *)
4831: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4832: ;;
4833: esac
1.15 paf 4834: ;;
1.35 moko 4835: *)
4836: # fallback: assume linklib IS sharedlib
4837: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.15 paf 4838: ;;
4839: esac
4840:
4841: fi
1.35 moko 4842: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4843: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
4844: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4845: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.15 paf 4846:
4847:
4848:
4849:
4850:
4851:
4852:
4853:
1.35 moko 4854: if test -n "$ac_tool_prefix"; then
4855: for ac_prog in ar
4856: do
4857: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4858: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4859: echo "$as_me:$LINENO: checking for $ac_word" >&5
4860: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861: if test "${ac_cv_prog_AR+set}" = set; then
4862: echo $ECHO_N "(cached) $ECHO_C" >&6
4863: else
4864: if test -n "$AR"; then
4865: ac_cv_prog_AR="$AR" # Let the user override the test.
4866: else
4867: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868: for as_dir in $PATH
4869: do
4870: IFS=$as_save_IFS
4871: test -z "$as_dir" && as_dir=.
4872: for ac_exec_ext in '' $ac_executable_extensions; do
4873: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4875: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876: break 2
1.15 paf 4877: fi
1.35 moko 4878: done
1.15 paf 4879: done
4880:
1.11 paf 4881: fi
4882: fi
1.35 moko 4883: AR=$ac_cv_prog_AR
4884: if test -n "$AR"; then
4885: echo "$as_me:$LINENO: result: $AR" >&5
4886: echo "${ECHO_T}$AR" >&6
1.11 paf 4887: else
1.35 moko 4888: echo "$as_me:$LINENO: result: no" >&5
4889: echo "${ECHO_T}no" >&6
1.11 paf 4890: fi
4891:
1.35 moko 4892: test -n "$AR" && break
4893: done
1.24 paf 4894: fi
1.35 moko 4895: if test -z "$AR"; then
4896: ac_ct_AR=$AR
4897: for ac_prog in ar
4898: do
4899: # Extract the first word of "$ac_prog", so it can be a program name with args.
4900: set dummy $ac_prog; ac_word=$2
4901: echo "$as_me:$LINENO: checking for $ac_word" >&5
4902: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.15 paf 4904: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4905: else
1.35 moko 4906: if test -n "$ac_ct_AR"; then
4907: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4908: else
4909: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910: for as_dir in $PATH
1.15 paf 4911: do
1.35 moko 4912: IFS=$as_save_IFS
4913: test -z "$as_dir" && as_dir=.
4914: for ac_exec_ext in '' $ac_executable_extensions; do
4915: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916: ac_cv_prog_ac_ct_AR="$ac_prog"
4917: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918: break 2
1.15 paf 4919: fi
1.35 moko 4920: done
4921: done
1.15 paf 4922:
1.11 paf 4923: fi
4924: fi
1.35 moko 4925: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4926: if test -n "$ac_ct_AR"; then
4927: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4928: echo "${ECHO_T}$ac_ct_AR" >&6
1.15 paf 4929: else
1.35 moko 4930: echo "$as_me:$LINENO: result: no" >&5
4931: echo "${ECHO_T}no" >&6
1.11 paf 4932: fi
4933:
1.35 moko 4934: test -n "$ac_ct_AR" && break
1.15 paf 4935: done
1.35 moko 4936: test -n "$ac_ct_AR" || ac_ct_AR="false"
4937:
4938: AR=$ac_ct_AR
1.11 paf 4939: fi
1.15 paf 4940:
1.35 moko 4941: : ${AR=ar}
4942: : ${AR_FLAGS=cru}
4943:
1.15 paf 4944:
4945:
1.11 paf 4946:
1.15 paf 4947:
1.11 paf 4948:
4949:
1.15 paf 4950:
1.11 paf 4951:
1.15 paf 4952:
4953:
1.35 moko 4954: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4955: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4956: if test "${lt_cv_ar_at_file+set}" = set; then
1.15 paf 4957: echo $ECHO_N "(cached) $ECHO_C" >&6
4958: else
1.35 moko 4959: lt_cv_ar_at_file=no
4960: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 4961: /* confdefs.h. */
4962: _ACEOF
4963: cat confdefs.h >>conftest.$ac_ext
4964: cat >>conftest.$ac_ext <<_ACEOF
4965: /* end confdefs.h. */
4966:
4967: int
4968: main ()
4969: {
4970:
4971: ;
4972: return 0;
4973: }
4974: _ACEOF
4975: rm -f conftest.$ac_objext
4976: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 4977: (eval $ac_compile) 2>conftest.er1
1.15 paf 4978: ac_status=$?
1.25 paf 4979: grep -v '^ *+' conftest.er1 >conftest.err
4980: rm -f conftest.er1
4981: cat conftest.err >&5
1.15 paf 4982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983: (exit $ac_status); } &&
1.25 paf 4984: { ac_try='test -z "$ac_c_werror_flag"
4985: || test ! -s conftest.err'
4986: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987: (eval $ac_try) 2>&5
4988: ac_status=$?
4989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990: (exit $ac_status); }; } &&
4991: { ac_try='test -s conftest.$ac_objext'
1.15 paf 4992: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993: (eval $ac_try) 2>&5
4994: ac_status=$?
4995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996: (exit $ac_status); }; }; then
1.35 moko 4997: echo conftest.$ac_objext > conftest.lst
4998: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4999: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5000: (eval $lt_ar_try) 2>&5
5001: ac_status=$?
5002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003: (exit $ac_status); }
5004: if test "$ac_status" -eq 0; then
5005: # Ensure the archiver fails upon bogus file names.
5006: rm -f conftest.$ac_objext libconftest.a
5007: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5008: (eval $lt_ar_try) 2>&5
5009: ac_status=$?
5010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011: (exit $ac_status); }
5012: if test "$ac_status" -ne 0; then
5013: lt_cv_ar_at_file=@
5014: fi
5015: fi
5016: rm -f conftest.* libconftest.a
5017:
1.11 paf 5018: else
1.15 paf 5019: echo "$as_me: failed program was:" >&5
5020: sed 's/^/| /' conftest.$ac_ext >&5
5021:
1.11 paf 5022: fi
1.25 paf 5023: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 5024:
1.35 moko 5025: fi
5026: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5027: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5028:
5029: if test "x$lt_cv_ar_at_file" = xno; then
5030: archiver_list_spec=
1.11 paf 5031: else
1.35 moko 5032: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 5033: fi
1.15 paf 5034:
1.11 paf 5035:
1.1 parser 5036:
1.35 moko 5037:
5038:
5039:
5040:
5041: if test -n "$ac_tool_prefix"; then
5042: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5043: set dummy ${ac_tool_prefix}strip; ac_word=$2
5044: echo "$as_me:$LINENO: checking for $ac_word" >&5
5045: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5046: if test "${ac_cv_prog_STRIP+set}" = set; then
5047: echo $ECHO_N "(cached) $ECHO_C" >&6
5048: else
5049: if test -n "$STRIP"; then
5050: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5051: else
5052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053: for as_dir in $PATH
5054: do
5055: IFS=$as_save_IFS
5056: test -z "$as_dir" && as_dir=.
5057: for ac_exec_ext in '' $ac_executable_extensions; do
5058: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5060: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061: break 2
5062: fi
5063: done
5064: done
5065:
5066: fi
5067: fi
5068: STRIP=$ac_cv_prog_STRIP
5069: if test -n "$STRIP"; then
5070: echo "$as_me:$LINENO: result: $STRIP" >&5
5071: echo "${ECHO_T}$STRIP" >&6
1.1 parser 5072: else
1.35 moko 5073: echo "$as_me:$LINENO: result: no" >&5
5074: echo "${ECHO_T}no" >&6
1.1 parser 5075: fi
5076:
1.15 paf 5077: fi
1.35 moko 5078: if test -z "$ac_cv_prog_STRIP"; then
5079: ac_ct_STRIP=$STRIP
5080: # Extract the first word of "strip", so it can be a program name with args.
5081: set dummy strip; ac_word=$2
5082: echo "$as_me:$LINENO: checking for $ac_word" >&5
5083: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5085: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5086: else
1.35 moko 5087: if test -n "$ac_ct_STRIP"; then
5088: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 5089: else
1.35 moko 5090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091: for as_dir in $PATH
5092: do
5093: IFS=$as_save_IFS
5094: test -z "$as_dir" && as_dir=.
5095: for ac_exec_ext in '' $ac_executable_extensions; do
5096: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097: ac_cv_prog_ac_ct_STRIP="strip"
5098: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099: break 2
5100: fi
5101: done
5102: done
1.15 paf 5103:
1.35 moko 5104: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 5105: fi
1.15 paf 5106: fi
1.35 moko 5107: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5108: if test -n "$ac_ct_STRIP"; then
5109: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5110: echo "${ECHO_T}$ac_ct_STRIP" >&6
5111: else
5112: echo "$as_me:$LINENO: result: no" >&5
5113: echo "${ECHO_T}no" >&6
1.15 paf 5114: fi
1.1 parser 5115:
1.35 moko 5116: STRIP=$ac_ct_STRIP
5117: else
5118: STRIP="$ac_cv_prog_STRIP"
1.15 paf 5119: fi
1.1 parser 5120:
1.35 moko 5121: test -z "$STRIP" && STRIP=:
1.1 parser 5122:
5123:
5124:
5125:
5126:
5127:
1.35 moko 5128: if test -n "$ac_tool_prefix"; then
5129: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5130: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5131: echo "$as_me:$LINENO: checking for $ac_word" >&5
5132: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.15 paf 5134: echo $ECHO_N "(cached) $ECHO_C" >&6
5135: else
1.35 moko 5136: if test -n "$RANLIB"; then
5137: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.15 paf 5138: else
1.35 moko 5139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140: for as_dir in $PATH
5141: do
5142: IFS=$as_save_IFS
5143: test -z "$as_dir" && as_dir=.
5144: for ac_exec_ext in '' $ac_executable_extensions; do
5145: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5147: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148: break 2
5149: fi
5150: done
5151: done
1.15 paf 5152:
5153: fi
5154: fi
1.35 moko 5155: RANLIB=$ac_cv_prog_RANLIB
5156: if test -n "$RANLIB"; then
5157: echo "$as_me:$LINENO: result: $RANLIB" >&5
5158: echo "${ECHO_T}$RANLIB" >&6
5159: else
5160: echo "$as_me:$LINENO: result: no" >&5
5161: echo "${ECHO_T}no" >&6
5162: fi
1.15 paf 5163:
5164: fi
1.35 moko 5165: if test -z "$ac_cv_prog_RANLIB"; then
5166: ac_ct_RANLIB=$RANLIB
5167: # Extract the first word of "ranlib", so it can be a program name with args.
5168: set dummy ranlib; ac_word=$2
5169: echo "$as_me:$LINENO: checking for $ac_word" >&5
5170: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5172: echo $ECHO_N "(cached) $ECHO_C" >&6
5173: else
5174: if test -n "$ac_ct_RANLIB"; then
5175: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5176: else
5177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178: for as_dir in $PATH
5179: do
5180: IFS=$as_save_IFS
5181: test -z "$as_dir" && as_dir=.
5182: for ac_exec_ext in '' $ac_executable_extensions; do
5183: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184: ac_cv_prog_ac_ct_RANLIB="ranlib"
5185: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186: break 2
5187: fi
5188: done
1.15 paf 5189: done
5190:
1.35 moko 5191: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5192: fi
1.15 paf 5193: fi
1.35 moko 5194: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5195: if test -n "$ac_ct_RANLIB"; then
5196: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5197: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.15 paf 5198: else
1.35 moko 5199: echo "$as_me:$LINENO: result: no" >&5
5200: echo "${ECHO_T}no" >&6
1.15 paf 5201: fi
5202:
1.35 moko 5203: RANLIB=$ac_ct_RANLIB
1.15 paf 5204: else
1.35 moko 5205: RANLIB="$ac_cv_prog_RANLIB"
1.15 paf 5206: fi
5207:
1.35 moko 5208: test -z "$RANLIB" && RANLIB=:
5209:
5210:
5211:
5212:
5213:
5214:
5215: # Determine commands to create old-style static archives.
5216: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5217: old_postinstall_cmds='chmod 644 $oldlib'
5218: old_postuninstall_cmds=
1.15 paf 5219:
1.35 moko 5220: if test -n "$RANLIB"; then
5221: case $host_os in
5222: openbsd*)
5223: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.15 paf 5224: ;;
1.35 moko 5225: *)
5226: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.15 paf 5227: ;;
1.35 moko 5228: esac
5229: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5230: fi
5231:
5232: case $host_os in
5233: darwin*)
5234: lock_old_archive_extraction=yes ;;
5235: *)
5236: lock_old_archive_extraction=no ;;
1.15 paf 5237: esac
5238:
5239:
5240:
5241:
5242:
5243:
5244:
5245:
5246:
5247:
5248:
5249:
5250:
5251:
5252:
5253:
5254:
1.1 parser 5255:
5256:
1.15 paf 5257:
5258:
5259:
5260:
5261:
5262:
1.1 parser 5263:
5264:
5265:
1.15 paf 5266:
5267:
5268:
5269:
5270:
5271:
1.35 moko 5272:
5273:
5274:
5275:
5276:
5277: # If no C compiler was specified, use CC.
5278: LTCC=${LTCC-"$CC"}
5279:
5280: # If no C compiler flags were specified, use CFLAGS.
5281: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5282:
5283: # Allow CC to be a program name with arguments.
5284: compiler=$CC
5285:
5286:
5287: # Check for command to grab the raw symbol name followed by C symbol from nm.
5288: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5289: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5290: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.15 paf 5291: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5292: else
5293:
1.35 moko 5294: # These are sane defaults that work on at least a few old systems.
5295: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.15 paf 5296:
1.35 moko 5297: # Character class describing NM global symbol codes.
5298: symcode='[BCDEGRST]'
1.15 paf 5299:
1.35 moko 5300: # Regexp to match symbols that can be accessed directly from C.
5301: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.15 paf 5302:
1.35 moko 5303: # Define system-specific variables.
5304: case $host_os in
5305: aix*)
5306: symcode='[BCDT]'
5307: ;;
5308: cygwin* | mingw* | pw32* | cegcc*)
5309: symcode='[ABCDGISTW]'
5310: ;;
5311: hpux*)
5312: if test "$host_cpu" = ia64; then
5313: symcode='[ABCDEGRST]'
5314: fi
5315: ;;
5316: irix* | nonstopux*)
5317: symcode='[BCDEGRST]'
5318: ;;
5319: osf*)
5320: symcode='[BCDEGQRST]'
5321: ;;
5322: solaris*)
5323: symcode='[BDRT]'
5324: ;;
5325: sco3.2v5*)
5326: symcode='[DT]'
5327: ;;
5328: sysv4.2uw2*)
5329: symcode='[DT]'
5330: ;;
5331: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5332: symcode='[ABDT]'
5333: ;;
5334: sysv4)
5335: symcode='[DFNSTU]'
5336: ;;
5337: esac
5338:
5339: # If we're using GNU nm, then use its standard symbol codes.
5340: case `$NM -V 2>&1` in
5341: *GNU* | *'with BFD'*)
5342: symcode='[ABCDGIRSTW]' ;;
5343: esac
5344:
5345: # Transform an extracted symbol line into a proper C declaration.
5346: # Some systems (esp. on ia64) link data and code symbols differently,
5347: # so use this general approach.
5348: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5349:
5350: # Transform an extracted symbol line into symbol name and symbol address
5351: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5352: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5353:
5354: # Handle CRLF in mingw tool chain
5355: opt_cr=
5356: case $build_os in
5357: mingw*)
5358: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5359: ;;
5360: esac
5361:
5362: # Try without a prefix underscore, then with it.
5363: for ac_symprfx in "" "_"; do
5364:
5365: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5366: symxfrm="\\1 $ac_symprfx\\2 \\2"
5367:
5368: # Write the raw and C identifiers.
5369: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5370: # Fake it for dumpbin and say T for any non-static function
5371: # and D for any global variable.
5372: # Also find C++ and __fastcall symbols from MSVC++,
5373: # which start with @ or ?.
5374: lt_cv_sys_global_symbol_pipe="$AWK '"\
5375: " {last_section=section; section=\$ 3};"\
5376: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5377: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5378: " \$ 0!~/External *\|/{next};"\
5379: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5380: " {if(hide[section]) next};"\
5381: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5382: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5383: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5384: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5385: " ' prfx=^$ac_symprfx"
5386: else
5387: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5388: fi
5389: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5390:
5391: # Check to see that the pipe works correctly.
5392: pipe_works=no
1.15 paf 5393:
1.35 moko 5394: rm -f conftest*
5395: cat > conftest.$ac_ext <<_LT_EOF
5396: #ifdef __cplusplus
5397: extern "C" {
5398: #endif
5399: char nm_test_var;
5400: void nm_test_func(void);
5401: void nm_test_func(void){}
5402: #ifdef __cplusplus
1.15 paf 5403: }
1.35 moko 5404: #endif
5405: int main(){nm_test_var='a';nm_test_func();return(0);}
5406: _LT_EOF
5407:
5408: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5409: (eval $ac_compile) 2>&5
1.15 paf 5410: ac_status=$?
5411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5412: (exit $ac_status); }; then
5413: # Now try to grab the symbols.
5414: nlist=conftest.nm
5415: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5416: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.25 paf 5417: ac_status=$?
5418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5419: (exit $ac_status); } && test -s "$nlist"; then
5420: # Try sorting and uniquifying the output.
5421: if sort "$nlist" | uniq > "$nlist"T; then
5422: mv -f "$nlist"T "$nlist"
5423: else
5424: rm -f "$nlist"T
5425: fi
5426:
5427: # Make sure that we snagged all the symbols we need.
5428: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5429: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5430: cat <<_LT_EOF > conftest.$ac_ext
5431: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5432: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5433: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5434: relocations are performed -- see ld's documentation on pseudo-relocs. */
5435: # define LT_DLSYM_CONST
5436: #elif defined(__osf__)
5437: /* This system does not cope well with relocations in const data. */
5438: # define LT_DLSYM_CONST
5439: #else
5440: # define LT_DLSYM_CONST const
5441: #endif
5442:
5443: #ifdef __cplusplus
5444: extern "C" {
5445: #endif
5446:
5447: _LT_EOF
5448: # Now generate the symbol file.
5449: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5450:
5451: cat <<_LT_EOF >> conftest.$ac_ext
5452:
5453: /* The mapping between symbol names and symbols. */
5454: LT_DLSYM_CONST struct {
5455: const char *name;
5456: void *address;
5457: }
5458: lt__PROGRAM__LTX_preloaded_symbols[] =
5459: {
5460: { "@PROGRAM@", (void *) 0 },
5461: _LT_EOF
5462: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5463: cat <<\_LT_EOF >> conftest.$ac_ext
5464: {0, (void *) 0}
5465: };
5466:
5467: /* This works around a problem in FreeBSD linker */
5468: #ifdef FREEBSD_WORKAROUND
5469: static const void *lt_preloaded_setup() {
5470: return lt__PROGRAM__LTX_preloaded_symbols;
5471: }
5472: #endif
5473:
5474: #ifdef __cplusplus
5475: }
5476: #endif
5477: _LT_EOF
5478: # Now try linking the two files.
5479: mv conftest.$ac_objext conftstm.$ac_objext
5480: lt_globsym_save_LIBS=$LIBS
5481: lt_globsym_save_CFLAGS=$CFLAGS
5482: LIBS="conftstm.$ac_objext"
5483: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5484: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485: (eval $ac_link) 2>&5
1.15 paf 5486: ac_status=$?
5487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5488: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5489: pipe_works=yes
5490: fi
5491: LIBS=$lt_globsym_save_LIBS
5492: CFLAGS=$lt_globsym_save_CFLAGS
5493: else
5494: echo "cannot find nm_test_func in $nlist" >&5
5495: fi
5496: else
5497: echo "cannot find nm_test_var in $nlist" >&5
5498: fi
5499: else
5500: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5501: fi
5502: else
5503: echo "$progname: failed program was:" >&5
5504: cat conftest.$ac_ext >&5
5505: fi
5506: rm -rf conftest* conftst*
5507:
5508: # Do not use the global_symbol_pipe unless it works.
5509: if test "$pipe_works" = yes; then
5510: break
5511: else
5512: lt_cv_sys_global_symbol_pipe=
5513: fi
5514: done
5515:
5516: fi
5517:
5518: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5519: lt_cv_sys_global_symbol_to_cdecl=
5520: fi
5521: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5522: echo "$as_me:$LINENO: result: failed" >&5
5523: echo "${ECHO_T}failed" >&6
1.1 parser 5524: else
1.35 moko 5525: echo "$as_me:$LINENO: result: ok" >&5
5526: echo "${ECHO_T}ok" >&6
5527: fi
1.15 paf 5528:
1.35 moko 5529: # Response file support.
5530: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5531: nm_file_list_spec='@'
5532: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5533: nm_file_list_spec='@'
1.1 parser 5534: fi
5535:
1.15 paf 5536:
5537:
5538:
5539:
5540:
5541:
5542:
5543:
5544:
5545:
1.1 parser 5546:
5547:
1.15 paf 5548:
5549:
5550:
1.1 parser 5551:
1.15 paf 5552:
5553:
5554:
5555:
1.35 moko 5556:
5557:
5558:
5559:
5560:
5561:
5562: echo "$as_me:$LINENO: checking for sysroot" >&5
5563: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5564:
5565: # Check whether --with-sysroot or --without-sysroot was given.
5566: if test "${with_sysroot+set}" = set; then
5567: withval="$with_sysroot"
5568:
1.15 paf 5569: else
1.35 moko 5570: with_sysroot=no
1.15 paf 5571: fi;
5572:
1.35 moko 5573: lt_sysroot=
5574: case ${with_sysroot} in #(
5575: yes)
5576: if test "$GCC" = yes; then
5577: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5578: fi
5579: ;; #(
5580: /*)
5581: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5582: ;; #(
5583: no|'')
5584: ;; #(
5585: *)
5586: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5587: echo "${ECHO_T}${with_sysroot}" >&6
5588: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5589: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5590: { (exit 1); exit 1; }; }
5591: ;;
5592: esac
5593:
5594: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5595: echo "${ECHO_T}${lt_sysroot:-no}" >&6
5596:
5597:
5598:
5599:
5600:
5601: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5602: if test "${enable_libtool_lock+set}" = set; then
5603: enableval="$enable_libtool_lock"
1.15 paf 5604:
1.35 moko 5605: fi;
5606: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 parser 5607:
1.35 moko 5608: # Some flags need to be propagated to the compiler or linker for good
5609: # libtool support.
5610: case $host in
5611: ia64-*-hpux*)
5612: # Find out which ABI we are using.
5613: echo 'int i;' > conftest.$ac_ext
5614: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615: (eval $ac_compile) 2>&5
5616: ac_status=$?
5617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618: (exit $ac_status); }; then
5619: case `/usr/bin/file conftest.$ac_objext` in
5620: *ELF-32*)
5621: HPUX_IA64_MODE="32"
5622: ;;
5623: *ELF-64*)
5624: HPUX_IA64_MODE="64"
5625: ;;
1.15 paf 5626: esac
5627: fi
1.35 moko 5628: rm -rf conftest*
5629: ;;
5630: *-*-irix6*)
5631: # Find out which ABI we are using.
5632: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5633: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634: (eval $ac_compile) 2>&5
1.15 paf 5635: ac_status=$?
5636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5637: (exit $ac_status); }; then
5638: if test "$lt_cv_prog_gnu_ld" = yes; then
5639: case `/usr/bin/file conftest.$ac_objext` in
5640: *32-bit*)
5641: LD="${LD-ld} -melf32bsmip"
5642: ;;
5643: *N32*)
5644: LD="${LD-ld} -melf32bmipn32"
5645: ;;
5646: *64-bit*)
5647: LD="${LD-ld} -melf64bmip"
5648: ;;
5649: esac
5650: else
5651: case `/usr/bin/file conftest.$ac_objext` in
5652: *32-bit*)
5653: LD="${LD-ld} -32"
5654: ;;
5655: *N32*)
5656: LD="${LD-ld} -n32"
5657: ;;
5658: *64-bit*)
5659: LD="${LD-ld} -64"
5660: ;;
5661: esac
5662: fi
5663: fi
5664: rm -rf conftest*
5665: ;;
5666:
5667: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5668: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5669: # Find out which ABI we are using.
5670: echo 'int i;' > conftest.$ac_ext
5671: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672: (eval $ac_compile) 2>&5
1.25 paf 5673: ac_status=$?
5674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5675: (exit $ac_status); }; then
5676: case `/usr/bin/file conftest.o` in
5677: *32-bit*)
5678: case $host in
5679: x86_64-*kfreebsd*-gnu)
5680: LD="${LD-ld} -m elf_i386_fbsd"
5681: ;;
5682: x86_64-*linux*)
5683: LD="${LD-ld} -m elf_i386"
5684: ;;
5685: ppc64-*linux*|powerpc64-*linux*)
5686: LD="${LD-ld} -m elf32ppclinux"
5687: ;;
5688: s390x-*linux*)
5689: LD="${LD-ld} -m elf_s390"
5690: ;;
5691: sparc64-*linux*)
5692: LD="${LD-ld} -m elf32_sparc"
5693: ;;
5694: esac
1.15 paf 5695: ;;
1.35 moko 5696: *64-bit*)
5697: case $host in
5698: x86_64-*kfreebsd*-gnu)
5699: LD="${LD-ld} -m elf_x86_64_fbsd"
5700: ;;
5701: x86_64-*linux*)
5702: LD="${LD-ld} -m elf_x86_64"
5703: ;;
5704: ppc*-*linux*|powerpc*-*linux*)
5705: LD="${LD-ld} -m elf64ppc"
5706: ;;
5707: s390*-*linux*|s390*-*tpf*)
5708: LD="${LD-ld} -m elf64_s390"
5709: ;;
5710: sparc*-*linux*)
5711: LD="${LD-ld} -m elf64_sparc"
5712: ;;
5713: esac
1.15 paf 5714: ;;
1.35 moko 5715: esac
1.15 paf 5716: fi
1.35 moko 5717: rm -rf conftest*
5718: ;;
1.15 paf 5719:
1.35 moko 5720: *-*-sco3.2v5*)
5721: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5722: SAVE_CFLAGS="$CFLAGS"
5723: CFLAGS="$CFLAGS -belf"
5724: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5725: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5726: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.15 paf 5727: echo $ECHO_N "(cached) $ECHO_C" >&6
5728: else
1.35 moko 5729: ac_ext=c
5730: ac_cpp='$CPP $CPPFLAGS'
5731: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734:
5735: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 5736: /* confdefs.h. */
5737: _ACEOF
5738: cat confdefs.h >>conftest.$ac_ext
5739: cat >>conftest.$ac_ext <<_ACEOF
5740: /* end confdefs.h. */
5741:
5742: int
5743: main ()
5744: {
5745:
5746: ;
5747: return 0;
5748: }
5749: _ACEOF
5750: rm -f conftest.$ac_objext conftest$ac_exeext
5751: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 paf 5752: (eval $ac_link) 2>conftest.er1
1.15 paf 5753: ac_status=$?
1.25 paf 5754: grep -v '^ *+' conftest.er1 >conftest.err
5755: rm -f conftest.er1
5756: cat conftest.err >&5
1.15 paf 5757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758: (exit $ac_status); } &&
1.25 paf 5759: { ac_try='test -z "$ac_c_werror_flag"
5760: || test ! -s conftest.err'
5761: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762: (eval $ac_try) 2>&5
5763: ac_status=$?
5764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765: (exit $ac_status); }; } &&
5766: { ac_try='test -s conftest$ac_exeext'
1.15 paf 5767: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768: (eval $ac_try) 2>&5
5769: ac_status=$?
5770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771: (exit $ac_status); }; }; then
1.35 moko 5772: lt_cv_cc_needs_belf=yes
1.15 paf 5773: else
5774: echo "$as_me: failed program was:" >&5
5775: sed 's/^/| /' conftest.$ac_ext >&5
5776:
1.35 moko 5777: lt_cv_cc_needs_belf=no
1.15 paf 5778: fi
1.25 paf 5779: rm -f conftest.err conftest.$ac_objext \
5780: conftest$ac_exeext conftest.$ac_ext
1.35 moko 5781: ac_ext=c
5782: ac_cpp='$CPP $CPPFLAGS'
5783: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 5786:
5787: fi
1.35 moko 5788: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5789: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5790: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5791: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5792: CFLAGS="$SAVE_CFLAGS"
5793: fi
5794: ;;
5795: *-*solaris*)
5796: # Find out which ABI we are using.
5797: echo 'int i;' > conftest.$ac_ext
5798: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799: (eval $ac_compile) 2>&5
5800: ac_status=$?
5801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802: (exit $ac_status); }; then
5803: case `/usr/bin/file conftest.o` in
5804: *64-bit*)
5805: case $lt_cv_prog_gnu_ld in
5806: yes*)
5807: case $host in
5808: i?86-*-solaris*)
5809: LD="${LD-ld} -m elf_x86_64"
5810: ;;
5811: sparc*-*-solaris*)
5812: LD="${LD-ld} -m elf64_sparc"
5813: ;;
5814: esac
5815: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5816: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5817: LD="${LD-ld}_sol2"
5818: fi
5819: ;;
5820: *)
5821: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5822: LD="${LD-ld} -64"
5823: fi
5824: ;;
5825: esac
5826: ;;
5827: esac
5828: fi
5829: rm -rf conftest*
5830: ;;
5831: esac
1.15 paf 5832:
1.35 moko 5833: need_locks="$enable_libtool_lock"
1.15 paf 5834:
1.35 moko 5835: if test -n "$ac_tool_prefix"; then
5836: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5837: set dummy ${ac_tool_prefix}mt; ac_word=$2
5838: echo "$as_me:$LINENO: checking for $ac_word" >&5
5839: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
1.15 paf 5841: echo $ECHO_N "(cached) $ECHO_C" >&6
5842: else
1.35 moko 5843: if test -n "$MANIFEST_TOOL"; then
5844: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5845: else
5846: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847: for as_dir in $PATH
5848: do
5849: IFS=$as_save_IFS
5850: test -z "$as_dir" && as_dir=.
5851: for ac_exec_ext in '' $ac_executable_extensions; do
5852: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5854: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855: break 2
5856: fi
5857: done
5858: done
1.15 paf 5859:
1.35 moko 5860: fi
5861: fi
5862: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5863: if test -n "$MANIFEST_TOOL"; then
5864: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5865: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.15 paf 5866: else
1.35 moko 5867: echo "$as_me:$LINENO: result: no" >&5
5868: echo "${ECHO_T}no" >&6
1.15 paf 5869: fi
5870:
5871: fi
1.35 moko 5872: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5873: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5874: # Extract the first word of "mt", so it can be a program name with args.
5875: set dummy mt; ac_word=$2
5876: echo "$as_me:$LINENO: checking for $ac_word" >&5
5877: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5879: echo $ECHO_N "(cached) $ECHO_C" >&6
5880: else
5881: if test -n "$ac_ct_MANIFEST_TOOL"; then
5882: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5883: else
5884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885: for as_dir in $PATH
5886: do
5887: IFS=$as_save_IFS
5888: test -z "$as_dir" && as_dir=.
5889: for ac_exec_ext in '' $ac_executable_extensions; do
5890: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5892: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893: break 2
5894: fi
5895: done
5896: done
1.15 paf 5897:
1.35 moko 5898: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
5899: fi
5900: fi
5901: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5902: if test -n "$ac_ct_MANIFEST_TOOL"; then
5903: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5904: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
5905: else
5906: echo "$as_me:$LINENO: result: no" >&5
5907: echo "${ECHO_T}no" >&6
5908: fi
5909:
5910: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5911: else
5912: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5913: fi
1.15 paf 5914:
1.35 moko 5915: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5916: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5917: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5918: if test "${lt_cv_path_mainfest_tool+set}" = set; then
1.15 paf 5919: echo $ECHO_N "(cached) $ECHO_C" >&6
5920: else
1.35 moko 5921: lt_cv_path_mainfest_tool=no
5922: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5923: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5924: cat conftest.err >&5
5925: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5926: lt_cv_path_mainfest_tool=yes
5927: fi
5928: rm -f conftest*
5929: fi
5930: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5931: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
5932: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5933: MANIFEST_TOOL=:
5934: fi
5935:
5936:
5937:
1.15 paf 5938:
5939:
5940:
1.35 moko 5941: case $host_os in
5942: rhapsody* | darwin*)
5943: if test -n "$ac_tool_prefix"; then
5944: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5945: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5946: echo "$as_me:$LINENO: checking for $ac_word" >&5
5947: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5949: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5950: else
1.35 moko 5951: if test -n "$DSYMUTIL"; then
5952: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5953: else
5954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955: for as_dir in $PATH
5956: do
5957: IFS=$as_save_IFS
5958: test -z "$as_dir" && as_dir=.
5959: for ac_exec_ext in '' $ac_executable_extensions; do
5960: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5962: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963: break 2
5964: fi
5965: done
5966: done
1.15 paf 5967:
5968: fi
1.35 moko 5969: fi
5970: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5971: if test -n "$DSYMUTIL"; then
5972: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5973: echo "${ECHO_T}$DSYMUTIL" >&6
5974: else
5975: echo "$as_me:$LINENO: result: no" >&5
5976: echo "${ECHO_T}no" >&6
5977: fi
1.15 paf 5978:
5979: fi
1.35 moko 5980: if test -z "$ac_cv_prog_DSYMUTIL"; then
5981: ac_ct_DSYMUTIL=$DSYMUTIL
5982: # Extract the first word of "dsymutil", so it can be a program name with args.
5983: set dummy dsymutil; ac_word=$2
5984: echo "$as_me:$LINENO: checking for $ac_word" >&5
5985: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5987: echo $ECHO_N "(cached) $ECHO_C" >&6
5988: else
5989: if test -n "$ac_ct_DSYMUTIL"; then
5990: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5991: else
5992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993: for as_dir in $PATH
5994: do
5995: IFS=$as_save_IFS
5996: test -z "$as_dir" && as_dir=.
5997: for ac_exec_ext in '' $ac_executable_extensions; do
5998: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6000: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001: break 2
6002: fi
6003: done
6004: done
1.15 paf 6005:
1.35 moko 6006: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6007: fi
6008: fi
6009: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6010: if test -n "$ac_ct_DSYMUTIL"; then
6011: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6012: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.15 paf 6013: else
1.35 moko 6014: echo "$as_me:$LINENO: result: no" >&5
6015: echo "${ECHO_T}no" >&6
1.15 paf 6016: fi
6017:
1.35 moko 6018: DSYMUTIL=$ac_ct_DSYMUTIL
1.15 paf 6019: else
1.35 moko 6020: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.15 paf 6021: fi
6022:
1.35 moko 6023: if test -n "$ac_tool_prefix"; then
6024: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6025: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6026: echo "$as_me:$LINENO: checking for $ac_word" >&5
6027: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6029: echo $ECHO_N "(cached) $ECHO_C" >&6
6030: else
6031: if test -n "$NMEDIT"; then
6032: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6033: else
6034: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035: for as_dir in $PATH
6036: do
6037: IFS=$as_save_IFS
6038: test -z "$as_dir" && as_dir=.
6039: for ac_exec_ext in '' $ac_executable_extensions; do
6040: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6042: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043: break 2
6044: fi
6045: done
6046: done
1.15 paf 6047:
1.35 moko 6048: fi
6049: fi
6050: NMEDIT=$ac_cv_prog_NMEDIT
6051: if test -n "$NMEDIT"; then
6052: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6053: echo "${ECHO_T}$NMEDIT" >&6
6054: else
6055: echo "$as_me:$LINENO: result: no" >&5
6056: echo "${ECHO_T}no" >&6
6057: fi
1.15 paf 6058:
1.35 moko 6059: fi
6060: if test -z "$ac_cv_prog_NMEDIT"; then
6061: ac_ct_NMEDIT=$NMEDIT
6062: # Extract the first word of "nmedit", so it can be a program name with args.
6063: set dummy nmedit; ac_word=$2
6064: echo "$as_me:$LINENO: checking for $ac_word" >&5
6065: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6067: echo $ECHO_N "(cached) $ECHO_C" >&6
6068: else
6069: if test -n "$ac_ct_NMEDIT"; then
6070: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.15 paf 6071: else
1.35 moko 6072: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073: for as_dir in $PATH
6074: do
6075: IFS=$as_save_IFS
6076: test -z "$as_dir" && as_dir=.
6077: for ac_exec_ext in '' $ac_executable_extensions; do
6078: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6080: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081: break 2
6082: fi
6083: done
6084: done
1.15 paf 6085:
1.35 moko 6086: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6087: fi
6088: fi
6089: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6090: if test -n "$ac_ct_NMEDIT"; then
6091: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6092: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6093: else
6094: echo "$as_me:$LINENO: result: no" >&5
6095: echo "${ECHO_T}no" >&6
1.15 paf 6096: fi
6097:
1.35 moko 6098: NMEDIT=$ac_ct_NMEDIT
6099: else
6100: NMEDIT="$ac_cv_prog_NMEDIT"
1.15 paf 6101: fi
6102:
1.35 moko 6103: if test -n "$ac_tool_prefix"; then
6104: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6105: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6106: echo "$as_me:$LINENO: checking for $ac_word" >&5
6107: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108: if test "${ac_cv_prog_LIPO+set}" = set; then
6109: echo $ECHO_N "(cached) $ECHO_C" >&6
6110: else
6111: if test -n "$LIPO"; then
6112: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6113: else
6114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115: for as_dir in $PATH
6116: do
6117: IFS=$as_save_IFS
6118: test -z "$as_dir" && as_dir=.
6119: for ac_exec_ext in '' $ac_executable_extensions; do
6120: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6122: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123: break 2
6124: fi
6125: done
6126: done
1.15 paf 6127:
1.35 moko 6128: fi
6129: fi
6130: LIPO=$ac_cv_prog_LIPO
6131: if test -n "$LIPO"; then
6132: echo "$as_me:$LINENO: result: $LIPO" >&5
6133: echo "${ECHO_T}$LIPO" >&6
6134: else
6135: echo "$as_me:$LINENO: result: no" >&5
6136: echo "${ECHO_T}no" >&6
6137: fi
1.15 paf 6138:
1.35 moko 6139: fi
6140: if test -z "$ac_cv_prog_LIPO"; then
6141: ac_ct_LIPO=$LIPO
6142: # Extract the first word of "lipo", so it can be a program name with args.
6143: set dummy lipo; ac_word=$2
6144: echo "$as_me:$LINENO: checking for $ac_word" >&5
6145: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6146: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6147: echo $ECHO_N "(cached) $ECHO_C" >&6
6148: else
6149: if test -n "$ac_ct_LIPO"; then
6150: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6151: else
6152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153: for as_dir in $PATH
6154: do
6155: IFS=$as_save_IFS
6156: test -z "$as_dir" && as_dir=.
6157: for ac_exec_ext in '' $ac_executable_extensions; do
6158: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159: ac_cv_prog_ac_ct_LIPO="lipo"
6160: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161: break 2
1.15 paf 6162: fi
1.35 moko 6163: done
6164: done
6165:
6166: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6167: fi
6168: fi
6169: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6170: if test -n "$ac_ct_LIPO"; then
6171: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6172: echo "${ECHO_T}$ac_ct_LIPO" >&6
6173: else
6174: echo "$as_me:$LINENO: result: no" >&5
6175: echo "${ECHO_T}no" >&6
6176: fi
6177:
6178: LIPO=$ac_ct_LIPO
6179: else
6180: LIPO="$ac_cv_prog_LIPO"
6181: fi
1.15 paf 6182:
1.35 moko 6183: if test -n "$ac_tool_prefix"; then
6184: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6185: set dummy ${ac_tool_prefix}otool; ac_word=$2
6186: echo "$as_me:$LINENO: checking for $ac_word" >&5
6187: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6188: if test "${ac_cv_prog_OTOOL+set}" = set; then
6189: echo $ECHO_N "(cached) $ECHO_C" >&6
6190: else
6191: if test -n "$OTOOL"; then
6192: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6193: else
6194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195: for as_dir in $PATH
6196: do
6197: IFS=$as_save_IFS
6198: test -z "$as_dir" && as_dir=.
6199: for ac_exec_ext in '' $ac_executable_extensions; do
6200: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6202: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203: break 2
6204: fi
6205: done
6206: done
1.15 paf 6207:
1.35 moko 6208: fi
6209: fi
6210: OTOOL=$ac_cv_prog_OTOOL
6211: if test -n "$OTOOL"; then
6212: echo "$as_me:$LINENO: result: $OTOOL" >&5
6213: echo "${ECHO_T}$OTOOL" >&6
6214: else
6215: echo "$as_me:$LINENO: result: no" >&5
6216: echo "${ECHO_T}no" >&6
6217: fi
1.15 paf 6218:
1.35 moko 6219: fi
6220: if test -z "$ac_cv_prog_OTOOL"; then
6221: ac_ct_OTOOL=$OTOOL
6222: # Extract the first word of "otool", so it can be a program name with args.
6223: set dummy otool; ac_word=$2
6224: echo "$as_me:$LINENO: checking for $ac_word" >&5
6225: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6226: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6227: echo $ECHO_N "(cached) $ECHO_C" >&6
6228: else
6229: if test -n "$ac_ct_OTOOL"; then
6230: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6231: else
6232: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233: for as_dir in $PATH
6234: do
6235: IFS=$as_save_IFS
6236: test -z "$as_dir" && as_dir=.
6237: for ac_exec_ext in '' $ac_executable_extensions; do
6238: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239: ac_cv_prog_ac_ct_OTOOL="otool"
6240: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241: break 2
6242: fi
6243: done
6244: done
1.15 paf 6245:
1.35 moko 6246: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6247: fi
6248: fi
6249: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6250: if test -n "$ac_ct_OTOOL"; then
6251: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6252: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6253: else
6254: echo "$as_me:$LINENO: result: no" >&5
6255: echo "${ECHO_T}no" >&6
6256: fi
1.15 paf 6257:
1.35 moko 6258: OTOOL=$ac_ct_OTOOL
6259: else
6260: OTOOL="$ac_cv_prog_OTOOL"
6261: fi
1.15 paf 6262:
1.35 moko 6263: if test -n "$ac_tool_prefix"; then
6264: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6265: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6266: echo "$as_me:$LINENO: checking for $ac_word" >&5
6267: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6268: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6269: echo $ECHO_N "(cached) $ECHO_C" >&6
6270: else
6271: if test -n "$OTOOL64"; then
6272: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6273: else
6274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275: for as_dir in $PATH
6276: do
6277: IFS=$as_save_IFS
6278: test -z "$as_dir" && as_dir=.
6279: for ac_exec_ext in '' $ac_executable_extensions; do
6280: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6282: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283: break 2
6284: fi
6285: done
6286: done
1.15 paf 6287:
1.35 moko 6288: fi
6289: fi
6290: OTOOL64=$ac_cv_prog_OTOOL64
6291: if test -n "$OTOOL64"; then
6292: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6293: echo "${ECHO_T}$OTOOL64" >&6
6294: else
6295: echo "$as_me:$LINENO: result: no" >&5
6296: echo "${ECHO_T}no" >&6
6297: fi
1.15 paf 6298:
1.35 moko 6299: fi
6300: if test -z "$ac_cv_prog_OTOOL64"; then
6301: ac_ct_OTOOL64=$OTOOL64
6302: # Extract the first word of "otool64", so it can be a program name with args.
6303: set dummy otool64; ac_word=$2
6304: echo "$as_me:$LINENO: checking for $ac_word" >&5
6305: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6306: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6307: echo $ECHO_N "(cached) $ECHO_C" >&6
6308: else
6309: if test -n "$ac_ct_OTOOL64"; then
6310: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6311: else
6312: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313: for as_dir in $PATH
6314: do
6315: IFS=$as_save_IFS
6316: test -z "$as_dir" && as_dir=.
6317: for ac_exec_ext in '' $ac_executable_extensions; do
6318: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319: ac_cv_prog_ac_ct_OTOOL64="otool64"
6320: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321: break 2
6322: fi
6323: done
6324: done
1.15 paf 6325:
1.35 moko 6326: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6327: fi
6328: fi
6329: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6330: if test -n "$ac_ct_OTOOL64"; then
6331: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6332: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6333: else
6334: echo "$as_me:$LINENO: result: no" >&5
6335: echo "${ECHO_T}no" >&6
6336: fi
1.15 paf 6337:
1.35 moko 6338: OTOOL64=$ac_ct_OTOOL64
6339: else
6340: OTOOL64="$ac_cv_prog_OTOOL64"
6341: fi
1.15 paf 6342:
6343:
6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
1.35 moko 6369: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6370: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6371: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6372: echo $ECHO_N "(cached) $ECHO_C" >&6
6373: else
6374: lt_cv_apple_cc_single_mod=no
6375: if test -z "${LT_MULTI_MODULE}"; then
6376: # By default we will add the -single_module flag. You can override
6377: # by either setting the environment variable LT_MULTI_MODULE
6378: # non-empty at configure time, or by adding -multi_module to the
6379: # link flags.
6380: rm -rf libconftest.dylib*
6381: echo "int foo(void){return 1;}" > conftest.c
6382: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6383: -dynamiclib -Wl,-single_module conftest.c" >&5
6384: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6385: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6386: _lt_result=$?
6387: # If there is a non-empty error log, and "single_module"
6388: # appears in it, assume the flag caused a linker warning
6389: if test -s conftest.err && $GREP single_module conftest.err; then
6390: cat conftest.err >&5
6391: # Otherwise, if the output was created with a 0 exit code from
6392: # the compiler, it worked.
6393: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6394: lt_cv_apple_cc_single_mod=yes
6395: else
6396: cat conftest.err >&5
6397: fi
6398: rm -rf libconftest.dylib*
6399: rm -f conftest.*
6400: fi
6401: fi
6402: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6403: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.15 paf 6404:
1.35 moko 6405: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6406: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6407: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6408: echo $ECHO_N "(cached) $ECHO_C" >&6
6409: else
6410: lt_cv_ld_exported_symbols_list=no
6411: save_LDFLAGS=$LDFLAGS
6412: echo "_main" > conftest.sym
6413: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6414: cat >conftest.$ac_ext <<_ACEOF
6415: /* confdefs.h. */
6416: _ACEOF
6417: cat confdefs.h >>conftest.$ac_ext
6418: cat >>conftest.$ac_ext <<_ACEOF
6419: /* end confdefs.h. */
1.15 paf 6420:
1.35 moko 6421: int
6422: main ()
6423: {
1.15 paf 6424:
1.35 moko 6425: ;
6426: return 0;
6427: }
6428: _ACEOF
6429: rm -f conftest.$ac_objext conftest$ac_exeext
6430: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431: (eval $ac_link) 2>conftest.er1
6432: ac_status=$?
6433: grep -v '^ *+' conftest.er1 >conftest.err
6434: rm -f conftest.er1
6435: cat conftest.err >&5
6436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437: (exit $ac_status); } &&
6438: { ac_try='test -z "$ac_c_werror_flag"
6439: || test ! -s conftest.err'
6440: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441: (eval $ac_try) 2>&5
6442: ac_status=$?
6443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444: (exit $ac_status); }; } &&
6445: { ac_try='test -s conftest$ac_exeext'
6446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447: (eval $ac_try) 2>&5
6448: ac_status=$?
6449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450: (exit $ac_status); }; }; then
6451: lt_cv_ld_exported_symbols_list=yes
6452: else
6453: echo "$as_me: failed program was:" >&5
6454: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6455:
1.35 moko 6456: lt_cv_ld_exported_symbols_list=no
6457: fi
6458: rm -f conftest.err conftest.$ac_objext \
6459: conftest$ac_exeext conftest.$ac_ext
6460: LDFLAGS="$save_LDFLAGS"
1.15 paf 6461:
1.35 moko 6462: fi
6463: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6464: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.15 paf 6465:
1.35 moko 6466: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6467: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6468: if test "${lt_cv_ld_force_load+set}" = set; then
6469: echo $ECHO_N "(cached) $ECHO_C" >&6
6470: else
6471: lt_cv_ld_force_load=no
6472: cat > conftest.c << _LT_EOF
6473: int forced_loaded() { return 2;}
6474: _LT_EOF
6475: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6476: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6477: echo "$AR cru libconftest.a conftest.o" >&5
6478: $AR cru libconftest.a conftest.o 2>&5
6479: echo "$RANLIB libconftest.a" >&5
6480: $RANLIB libconftest.a 2>&5
6481: cat > conftest.c << _LT_EOF
6482: int main() { return 0;}
6483: _LT_EOF
6484: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6485: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6486: _lt_result=$?
6487: if test -s conftest.err && $GREP force_load conftest.err; then
6488: cat conftest.err >&5
6489: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6490: lt_cv_ld_force_load=yes
6491: else
6492: cat conftest.err >&5
6493: fi
6494: rm -f conftest.err libconftest.a conftest conftest.c
6495: rm -rf conftest.dSYM
1.15 paf 6496:
1.35 moko 6497: fi
6498: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6499: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
6500: case $host_os in
6501: rhapsody* | darwin1.[012])
6502: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6503: darwin1.*)
6504: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505: darwin*) # darwin 5.x on
6506: # if running on 10.5 or later, the deployment target defaults
6507: # to the OS version, if on x86, and 10.4, the deployment
6508: # target defaults to 10.4. Don't you love it?
6509: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6510: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6511: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6512: 10.[012]*)
6513: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6514: 10.*)
6515: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516: esac
1.15 paf 6517: ;;
1.35 moko 6518: esac
6519: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6520: _lt_dar_single_mod='$single_module'
6521: fi
6522: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6523: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6524: else
6525: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.15 paf 6526: fi
1.35 moko 6527: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6528: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.15 paf 6529: else
1.35 moko 6530: _lt_dsymutil=
1.15 paf 6531: fi
6532: ;;
1.35 moko 6533: esac
1.15 paf 6534:
1.35 moko 6535: ac_ext=c
6536: ac_cpp='$CPP $CPPFLAGS'
6537: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6541: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6542: # On Suns, sometimes $CPP names a directory.
6543: if test -n "$CPP" && test -d "$CPP"; then
6544: CPP=
6545: fi
6546: if test -z "$CPP"; then
6547: if test "${ac_cv_prog_CPP+set}" = set; then
6548: echo $ECHO_N "(cached) $ECHO_C" >&6
6549: else
6550: # Double quotes because CPP needs to be expanded
6551: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6552: do
6553: ac_preproc_ok=false
6554: for ac_c_preproc_warn_flag in '' yes
6555: do
6556: # Use a header file that comes with gcc, so configuring glibc
6557: # with a fresh cross-compiler works.
6558: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559: # <limits.h> exists even on freestanding compilers.
6560: # On the NeXT, cc -E runs the code through the compiler's parser,
6561: # not just through cpp. "Syntax error" is here to catch this case.
6562: cat >conftest.$ac_ext <<_ACEOF
6563: /* confdefs.h. */
6564: _ACEOF
6565: cat confdefs.h >>conftest.$ac_ext
6566: cat >>conftest.$ac_ext <<_ACEOF
6567: /* end confdefs.h. */
6568: #ifdef __STDC__
6569: # include <limits.h>
6570: #else
6571: # include <assert.h>
6572: #endif
6573: Syntax error
6574: _ACEOF
6575: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6576: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6577: ac_status=$?
6578: grep -v '^ *+' conftest.er1 >conftest.err
6579: rm -f conftest.er1
6580: cat conftest.err >&5
6581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582: (exit $ac_status); } >/dev/null; then
6583: if test -s conftest.err; then
6584: ac_cpp_err=$ac_c_preproc_warn_flag
6585: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6586: else
6587: ac_cpp_err=
6588: fi
6589: else
6590: ac_cpp_err=yes
1.15 paf 6591: fi
1.35 moko 6592: if test -z "$ac_cpp_err"; then
6593: :
6594: else
6595: echo "$as_me: failed program was:" >&5
6596: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6597:
1.35 moko 6598: # Broken: fails on valid input.
6599: continue
6600: fi
6601: rm -f conftest.err conftest.$ac_ext
1.15 paf 6602:
1.35 moko 6603: # OK, works on sane cases. Now check whether non-existent headers
6604: # can be detected and how.
6605: cat >conftest.$ac_ext <<_ACEOF
6606: /* confdefs.h. */
6607: _ACEOF
6608: cat confdefs.h >>conftest.$ac_ext
6609: cat >>conftest.$ac_ext <<_ACEOF
6610: /* end confdefs.h. */
6611: #include <ac_nonexistent.h>
6612: _ACEOF
6613: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6614: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6615: ac_status=$?
6616: grep -v '^ *+' conftest.er1 >conftest.err
6617: rm -f conftest.er1
6618: cat conftest.err >&5
6619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620: (exit $ac_status); } >/dev/null; then
6621: if test -s conftest.err; then
6622: ac_cpp_err=$ac_c_preproc_warn_flag
6623: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6624: else
1.35 moko 6625: ac_cpp_err=
1.15 paf 6626: fi
6627: else
1.35 moko 6628: ac_cpp_err=yes
6629: fi
6630: if test -z "$ac_cpp_err"; then
6631: # Broken: success on invalid input.
6632: continue
6633: else
6634: echo "$as_me: failed program was:" >&5
6635: sed 's/^/| /' conftest.$ac_ext >&5
6636:
6637: # Passes both tests.
6638: ac_preproc_ok=:
6639: break
1.15 paf 6640: fi
1.35 moko 6641: rm -f conftest.err conftest.$ac_ext
1.15 paf 6642:
1.35 moko 6643: done
6644: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645: rm -f conftest.err conftest.$ac_ext
6646: if $ac_preproc_ok; then
6647: break
1.15 paf 6648: fi
6649:
1.35 moko 6650: done
6651: ac_cv_prog_CPP=$CPP
1.15 paf 6652:
1.35 moko 6653: fi
6654: CPP=$ac_cv_prog_CPP
6655: else
6656: ac_cv_prog_CPP=$CPP
6657: fi
6658: echo "$as_me:$LINENO: result: $CPP" >&5
6659: echo "${ECHO_T}$CPP" >&6
6660: ac_preproc_ok=false
6661: for ac_c_preproc_warn_flag in '' yes
6662: do
6663: # Use a header file that comes with gcc, so configuring glibc
6664: # with a fresh cross-compiler works.
6665: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666: # <limits.h> exists even on freestanding compilers.
6667: # On the NeXT, cc -E runs the code through the compiler's parser,
6668: # not just through cpp. "Syntax error" is here to catch this case.
6669: cat >conftest.$ac_ext <<_ACEOF
6670: /* confdefs.h. */
6671: _ACEOF
6672: cat confdefs.h >>conftest.$ac_ext
6673: cat >>conftest.$ac_ext <<_ACEOF
6674: /* end confdefs.h. */
6675: #ifdef __STDC__
6676: # include <limits.h>
6677: #else
6678: # include <assert.h>
6679: #endif
6680: Syntax error
6681: _ACEOF
6682: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684: ac_status=$?
6685: grep -v '^ *+' conftest.er1 >conftest.err
6686: rm -f conftest.er1
6687: cat conftest.err >&5
6688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689: (exit $ac_status); } >/dev/null; then
6690: if test -s conftest.err; then
6691: ac_cpp_err=$ac_c_preproc_warn_flag
6692: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6693: else
6694: ac_cpp_err=
6695: fi
6696: else
6697: ac_cpp_err=yes
6698: fi
6699: if test -z "$ac_cpp_err"; then
6700: :
6701: else
6702: echo "$as_me: failed program was:" >&5
6703: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6704:
1.35 moko 6705: # Broken: fails on valid input.
6706: continue
6707: fi
6708: rm -f conftest.err conftest.$ac_ext
1.15 paf 6709:
1.35 moko 6710: # OK, works on sane cases. Now check whether non-existent headers
6711: # can be detected and how.
6712: cat >conftest.$ac_ext <<_ACEOF
6713: /* confdefs.h. */
6714: _ACEOF
6715: cat confdefs.h >>conftest.$ac_ext
6716: cat >>conftest.$ac_ext <<_ACEOF
6717: /* end confdefs.h. */
6718: #include <ac_nonexistent.h>
6719: _ACEOF
6720: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722: ac_status=$?
6723: grep -v '^ *+' conftest.er1 >conftest.err
6724: rm -f conftest.er1
6725: cat conftest.err >&5
6726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727: (exit $ac_status); } >/dev/null; then
6728: if test -s conftest.err; then
6729: ac_cpp_err=$ac_c_preproc_warn_flag
6730: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6731: else
1.35 moko 6732: ac_cpp_err=
1.15 paf 6733: fi
1.35 moko 6734: else
6735: ac_cpp_err=yes
6736: fi
6737: if test -z "$ac_cpp_err"; then
6738: # Broken: success on invalid input.
6739: continue
6740: else
6741: echo "$as_me: failed program was:" >&5
6742: sed 's/^/| /' conftest.$ac_ext >&5
6743:
6744: # Passes both tests.
6745: ac_preproc_ok=:
6746: break
6747: fi
6748: rm -f conftest.err conftest.$ac_ext
6749:
6750: done
6751: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752: rm -f conftest.err conftest.$ac_ext
6753: if $ac_preproc_ok; then
6754: :
6755: else
6756: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6757: See \`config.log' for more details." >&5
6758: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6759: See \`config.log' for more details." >&2;}
6760: { (exit 1); exit 1; }; }
6761: fi
1.15 paf 6762:
1.35 moko 6763: ac_ext=c
6764: ac_cpp='$CPP $CPPFLAGS'
6765: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 6768:
6769:
1.35 moko 6770: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6772: if test "${ac_cv_header_stdc+set}" = set; then
6773: echo $ECHO_N "(cached) $ECHO_C" >&6
6774: else
6775: cat >conftest.$ac_ext <<_ACEOF
6776: /* confdefs.h. */
6777: _ACEOF
6778: cat confdefs.h >>conftest.$ac_ext
6779: cat >>conftest.$ac_ext <<_ACEOF
6780: /* end confdefs.h. */
6781: #include <stdlib.h>
6782: #include <stdarg.h>
6783: #include <string.h>
6784: #include <float.h>
1.15 paf 6785:
1.35 moko 6786: int
6787: main ()
6788: {
1.15 paf 6789:
1.35 moko 6790: ;
6791: return 0;
6792: }
6793: _ACEOF
6794: rm -f conftest.$ac_objext
6795: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796: (eval $ac_compile) 2>conftest.er1
6797: ac_status=$?
6798: grep -v '^ *+' conftest.er1 >conftest.err
6799: rm -f conftest.er1
6800: cat conftest.err >&5
6801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802: (exit $ac_status); } &&
6803: { ac_try='test -z "$ac_c_werror_flag"
6804: || test ! -s conftest.err'
6805: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806: (eval $ac_try) 2>&5
6807: ac_status=$?
6808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809: (exit $ac_status); }; } &&
6810: { ac_try='test -s conftest.$ac_objext'
6811: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812: (eval $ac_try) 2>&5
6813: ac_status=$?
6814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815: (exit $ac_status); }; }; then
6816: ac_cv_header_stdc=yes
6817: else
6818: echo "$as_me: failed program was:" >&5
6819: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6820:
1.35 moko 6821: ac_cv_header_stdc=no
6822: fi
6823: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 6824:
1.35 moko 6825: if test $ac_cv_header_stdc = yes; then
6826: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6827: cat >conftest.$ac_ext <<_ACEOF
6828: /* confdefs.h. */
6829: _ACEOF
6830: cat confdefs.h >>conftest.$ac_ext
6831: cat >>conftest.$ac_ext <<_ACEOF
6832: /* end confdefs.h. */
6833: #include <string.h>
6834:
6835: _ACEOF
6836: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837: $EGREP "memchr" >/dev/null 2>&1; then
6838: :
6839: else
6840: ac_cv_header_stdc=no
6841: fi
6842: rm -f conftest*
6843:
6844: fi
6845:
6846: if test $ac_cv_header_stdc = yes; then
6847: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6848: cat >conftest.$ac_ext <<_ACEOF
6849: /* confdefs.h. */
6850: _ACEOF
6851: cat confdefs.h >>conftest.$ac_ext
6852: cat >>conftest.$ac_ext <<_ACEOF
6853: /* end confdefs.h. */
6854: #include <stdlib.h>
6855:
6856: _ACEOF
6857: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6858: $EGREP "free" >/dev/null 2>&1; then
6859: :
6860: else
6861: ac_cv_header_stdc=no
6862: fi
6863: rm -f conftest*
6864:
6865: fi
1.15 paf 6866:
1.35 moko 6867: if test $ac_cv_header_stdc = yes; then
6868: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6869: if test "$cross_compiling" = yes; then
6870: :
6871: else
6872: cat >conftest.$ac_ext <<_ACEOF
6873: /* confdefs.h. */
6874: _ACEOF
6875: cat confdefs.h >>conftest.$ac_ext
6876: cat >>conftest.$ac_ext <<_ACEOF
6877: /* end confdefs.h. */
6878: #include <ctype.h>
6879: #if ((' ' & 0x0FF) == 0x020)
6880: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6882: #else
6883: # define ISLOWER(c) \
6884: (('a' <= (c) && (c) <= 'i') \
6885: || ('j' <= (c) && (c) <= 'r') \
6886: || ('s' <= (c) && (c) <= 'z'))
6887: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888: #endif
1.15 paf 6889:
1.35 moko 6890: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6891: int
6892: main ()
6893: {
6894: int i;
6895: for (i = 0; i < 256; i++)
6896: if (XOR (islower (i), ISLOWER (i))
6897: || toupper (i) != TOUPPER (i))
6898: exit(2);
6899: exit (0);
6900: }
6901: _ACEOF
6902: rm -f conftest$ac_exeext
6903: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904: (eval $ac_link) 2>&5
6905: ac_status=$?
6906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909: (eval $ac_try) 2>&5
6910: ac_status=$?
6911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912: (exit $ac_status); }; }; then
6913: :
6914: else
6915: echo "$as_me: program exited with status $ac_status" >&5
6916: echo "$as_me: failed program was:" >&5
6917: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6918:
1.35 moko 6919: ( exit $ac_status )
6920: ac_cv_header_stdc=no
6921: fi
6922: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6923: fi
6924: fi
6925: fi
6926: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6927: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6928: if test $ac_cv_header_stdc = yes; then
1.15 paf 6929:
1.35 moko 6930: cat >>confdefs.h <<\_ACEOF
6931: #define STDC_HEADERS 1
6932: _ACEOF
1.15 paf 6933:
1.35 moko 6934: fi
1.15 paf 6935:
1.35 moko 6936: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.15 paf 6937:
6938:
6939:
6940:
6941:
6942:
6943:
6944:
6945:
1.35 moko 6946: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6947: inttypes.h stdint.h unistd.h
6948: do
6949: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950: echo "$as_me:$LINENO: checking for $ac_header" >&5
6951: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6952: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 6954: else
6955: cat >conftest.$ac_ext <<_ACEOF
6956: /* confdefs.h. */
6957: _ACEOF
6958: cat confdefs.h >>conftest.$ac_ext
6959: cat >>conftest.$ac_ext <<_ACEOF
6960: /* end confdefs.h. */
1.35 moko 6961: $ac_includes_default
1.25 paf 6962:
1.35 moko 6963: #include <$ac_header>
1.15 paf 6964: _ACEOF
1.35 moko 6965: rm -f conftest.$ac_objext
6966: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967: (eval $ac_compile) 2>conftest.er1
1.15 paf 6968: ac_status=$?
1.25 paf 6969: grep -v '^ *+' conftest.er1 >conftest.err
6970: rm -f conftest.er1
6971: cat conftest.err >&5
1.15 paf 6972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973: (exit $ac_status); } &&
1.25 paf 6974: { ac_try='test -z "$ac_c_werror_flag"
6975: || test ! -s conftest.err'
6976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977: (eval $ac_try) 2>&5
6978: ac_status=$?
6979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980: (exit $ac_status); }; } &&
1.35 moko 6981: { ac_try='test -s conftest.$ac_objext'
1.15 paf 6982: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983: (eval $ac_try) 2>&5
6984: ac_status=$?
6985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986: (exit $ac_status); }; }; then
1.35 moko 6987: eval "$as_ac_Header=yes"
1.15 paf 6988: else
6989: echo "$as_me: failed program was:" >&5
6990: sed 's/^/| /' conftest.$ac_ext >&5
6991:
1.35 moko 6992: eval "$as_ac_Header=no"
6993: fi
6994: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 6995: fi
1.35 moko 6996: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999: cat >>confdefs.h <<_ACEOF
7000: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001: _ACEOF
7002:
1.15 paf 7003: fi
1.35 moko 7004:
7005: done
7006:
7007:
7008:
7009: for ac_header in dlfcn.h
7010: do
7011: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7012: echo "$as_me:$LINENO: checking for $ac_header" >&5
7013: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7014: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.15 paf 7015: echo $ECHO_N "(cached) $ECHO_C" >&6
7016: else
1.35 moko 7017: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 7018: /* confdefs.h. */
7019: _ACEOF
7020: cat confdefs.h >>conftest.$ac_ext
7021: cat >>conftest.$ac_ext <<_ACEOF
7022: /* end confdefs.h. */
1.35 moko 7023: $ac_includes_default
1.15 paf 7024:
1.35 moko 7025: #include <$ac_header>
1.15 paf 7026: _ACEOF
1.35 moko 7027: rm -f conftest.$ac_objext
7028: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029: (eval $ac_compile) 2>conftest.er1
1.15 paf 7030: ac_status=$?
1.25 paf 7031: grep -v '^ *+' conftest.er1 >conftest.err
7032: rm -f conftest.er1
7033: cat conftest.err >&5
1.15 paf 7034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035: (exit $ac_status); } &&
1.25 paf 7036: { ac_try='test -z "$ac_c_werror_flag"
7037: || test ! -s conftest.err'
7038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039: (eval $ac_try) 2>&5
7040: ac_status=$?
7041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042: (exit $ac_status); }; } &&
1.35 moko 7043: { ac_try='test -s conftest.$ac_objext'
1.15 paf 7044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045: (eval $ac_try) 2>&5
7046: ac_status=$?
7047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048: (exit $ac_status); }; }; then
1.35 moko 7049: eval "$as_ac_Header=yes"
1.15 paf 7050: else
7051: echo "$as_me: failed program was:" >&5
7052: sed 's/^/| /' conftest.$ac_ext >&5
7053:
1.35 moko 7054: eval "$as_ac_Header=no"
1.15 paf 7055: fi
1.35 moko 7056: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 7057: fi
1.35 moko 7058: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7059: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7060: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7061: cat >>confdefs.h <<_ACEOF
7062: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.15 paf 7063: _ACEOF
1.25 paf 7064:
1.35 moko 7065: fi
7066:
7067: done
1.25 paf 7068:
7069:
7070:
1.35 moko 7071:
7072: func_stripname_cnf ()
1.15 paf 7073: {
1.35 moko 7074: case ${2} in
7075: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7076: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7077: esac
7078: } # func_stripname_cnf
7079:
7080:
7081:
7082:
7083:
7084: # Set options
7085: enable_dlopen=yes
1.36 moko 7086: enable_win32_dll=yes
1.35 moko 7087:
1.36 moko 7088: case $host in
7089: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7090: if test -n "$ac_tool_prefix"; then
7091: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7092: set dummy ${ac_tool_prefix}as; ac_word=$2
7093: echo "$as_me:$LINENO: checking for $ac_word" >&5
7094: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095: if test "${ac_cv_prog_AS+set}" = set; then
7096: echo $ECHO_N "(cached) $ECHO_C" >&6
7097: else
7098: if test -n "$AS"; then
7099: ac_cv_prog_AS="$AS" # Let the user override the test.
7100: else
7101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102: for as_dir in $PATH
7103: do
7104: IFS=$as_save_IFS
7105: test -z "$as_dir" && as_dir=.
7106: for ac_exec_ext in '' $ac_executable_extensions; do
7107: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108: ac_cv_prog_AS="${ac_tool_prefix}as"
7109: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110: break 2
7111: fi
7112: done
7113: done
1.35 moko 7114:
1.36 moko 7115: fi
7116: fi
7117: AS=$ac_cv_prog_AS
7118: if test -n "$AS"; then
7119: echo "$as_me:$LINENO: result: $AS" >&5
7120: echo "${ECHO_T}$AS" >&6
7121: else
7122: echo "$as_me:$LINENO: result: no" >&5
7123: echo "${ECHO_T}no" >&6
7124: fi
1.35 moko 7125:
1.36 moko 7126: fi
7127: if test -z "$ac_cv_prog_AS"; then
7128: ac_ct_AS=$AS
7129: # Extract the first word of "as", so it can be a program name with args.
7130: set dummy as; ac_word=$2
7131: echo "$as_me:$LINENO: checking for $ac_word" >&5
7132: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7134: echo $ECHO_N "(cached) $ECHO_C" >&6
7135: else
7136: if test -n "$ac_ct_AS"; then
7137: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7138: else
7139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140: for as_dir in $PATH
7141: do
7142: IFS=$as_save_IFS
7143: test -z "$as_dir" && as_dir=.
7144: for ac_exec_ext in '' $ac_executable_extensions; do
7145: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146: ac_cv_prog_ac_ct_AS="as"
7147: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148: break 2
7149: fi
7150: done
7151: done
1.35 moko 7152:
1.36 moko 7153: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7154: fi
7155: fi
7156: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7157: if test -n "$ac_ct_AS"; then
7158: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7159: echo "${ECHO_T}$ac_ct_AS" >&6
7160: else
7161: echo "$as_me:$LINENO: result: no" >&5
7162: echo "${ECHO_T}no" >&6
7163: fi
1.35 moko 7164:
1.36 moko 7165: AS=$ac_ct_AS
7166: else
7167: AS="$ac_cv_prog_AS"
7168: fi
1.15 paf 7169:
1.36 moko 7170: if test -n "$ac_tool_prefix"; then
7171: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7172: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7173: echo "$as_me:$LINENO: checking for $ac_word" >&5
7174: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7176: echo $ECHO_N "(cached) $ECHO_C" >&6
7177: else
7178: if test -n "$DLLTOOL"; then
7179: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.15 paf 7180: else
1.36 moko 7181: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182: for as_dir in $PATH
7183: do
7184: IFS=$as_save_IFS
7185: test -z "$as_dir" && as_dir=.
7186: for ac_exec_ext in '' $ac_executable_extensions; do
7187: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7189: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190: break 2
7191: fi
7192: done
7193: done
7194:
7195: fi
7196: fi
7197: DLLTOOL=$ac_cv_prog_DLLTOOL
7198: if test -n "$DLLTOOL"; then
7199: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7200: echo "${ECHO_T}$DLLTOOL" >&6
7201: else
7202: echo "$as_me:$LINENO: result: no" >&5
7203: echo "${ECHO_T}no" >&6
7204: fi
7205:
7206: fi
7207: if test -z "$ac_cv_prog_DLLTOOL"; then
7208: ac_ct_DLLTOOL=$DLLTOOL
7209: # Extract the first word of "dlltool", so it can be a program name with args.
7210: set dummy dlltool; ac_word=$2
7211: echo "$as_me:$LINENO: checking for $ac_word" >&5
7212: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7214: echo $ECHO_N "(cached) $ECHO_C" >&6
7215: else
7216: if test -n "$ac_ct_DLLTOOL"; then
7217: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7218: else
7219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220: for as_dir in $PATH
7221: do
7222: IFS=$as_save_IFS
7223: test -z "$as_dir" && as_dir=.
7224: for ac_exec_ext in '' $ac_executable_extensions; do
7225: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7227: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228: break 2
7229: fi
7230: done
7231: done
7232:
7233: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7234: fi
7235: fi
7236: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7237: if test -n "$ac_ct_DLLTOOL"; then
7238: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7239: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7240: else
7241: echo "$as_me:$LINENO: result: no" >&5
7242: echo "${ECHO_T}no" >&6
7243: fi
7244:
7245: DLLTOOL=$ac_ct_DLLTOOL
7246: else
7247: DLLTOOL="$ac_cv_prog_DLLTOOL"
7248: fi
7249:
7250: if test -n "$ac_tool_prefix"; then
7251: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7252: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7253: echo "$as_me:$LINENO: checking for $ac_word" >&5
7254: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7256: echo $ECHO_N "(cached) $ECHO_C" >&6
7257: else
7258: if test -n "$OBJDUMP"; then
7259: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7260: else
7261: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262: for as_dir in $PATH
7263: do
7264: IFS=$as_save_IFS
7265: test -z "$as_dir" && as_dir=.
7266: for ac_exec_ext in '' $ac_executable_extensions; do
7267: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7269: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270: break 2
7271: fi
7272: done
7273: done
7274:
7275: fi
7276: fi
7277: OBJDUMP=$ac_cv_prog_OBJDUMP
7278: if test -n "$OBJDUMP"; then
7279: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7280: echo "${ECHO_T}$OBJDUMP" >&6
7281: else
7282: echo "$as_me:$LINENO: result: no" >&5
7283: echo "${ECHO_T}no" >&6
7284: fi
7285:
7286: fi
7287: if test -z "$ac_cv_prog_OBJDUMP"; then
7288: ac_ct_OBJDUMP=$OBJDUMP
7289: # Extract the first word of "objdump", so it can be a program name with args.
7290: set dummy objdump; ac_word=$2
7291: echo "$as_me:$LINENO: checking for $ac_word" >&5
7292: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7294: echo $ECHO_N "(cached) $ECHO_C" >&6
7295: else
7296: if test -n "$ac_ct_OBJDUMP"; then
7297: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7298: else
7299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300: for as_dir in $PATH
7301: do
7302: IFS=$as_save_IFS
7303: test -z "$as_dir" && as_dir=.
7304: for ac_exec_ext in '' $ac_executable_extensions; do
7305: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7307: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308: break 2
7309: fi
7310: done
7311: done
7312:
7313: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7314: fi
7315: fi
7316: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7317: if test -n "$ac_ct_OBJDUMP"; then
7318: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7319: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7320: else
7321: echo "$as_me:$LINENO: result: no" >&5
7322: echo "${ECHO_T}no" >&6
7323: fi
7324:
7325: OBJDUMP=$ac_ct_OBJDUMP
7326: else
7327: OBJDUMP="$ac_cv_prog_OBJDUMP"
7328: fi
7329:
7330: ;;
7331: esac
7332:
7333: test -z "$AS" && AS=as
7334:
7335:
7336:
7337:
7338:
7339: test -z "$DLLTOOL" && DLLTOOL=dlltool
7340:
7341:
7342:
7343:
7344:
7345: test -z "$OBJDUMP" && OBJDUMP=objdump
7346:
7347:
7348:
7349:
7350:
7351:
7352:
7353:
7354:
7355: # Check whether --enable-shared or --disable-shared was given.
7356: if test "${enable_shared+set}" = set; then
7357: enableval="$enable_shared"
7358: p=${PACKAGE-default}
7359: case $enableval in
7360: yes) enable_shared=yes ;;
7361: no) enable_shared=no ;;
7362: *)
7363: enable_shared=no
7364: # Look at the argument we got. We use all the common list separators.
7365: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7366: for pkg in $enableval; do
7367: IFS="$lt_save_ifs"
7368: if test "X$pkg" = "X$p"; then
7369: enable_shared=yes
7370: fi
7371: done
7372: IFS="$lt_save_ifs"
7373: ;;
7374: esac
7375: else
7376: enable_shared=yes
7377: fi;
1.35 moko 7378:
7379:
7380:
7381:
7382:
7383:
7384:
1.15 paf 7385:
1.35 moko 7386: # Check whether --enable-static or --disable-static was given.
7387: if test "${enable_static+set}" = set; then
7388: enableval="$enable_static"
7389: p=${PACKAGE-default}
7390: case $enableval in
7391: yes) enable_static=yes ;;
7392: no) enable_static=no ;;
7393: *)
7394: enable_static=no
7395: # Look at the argument we got. We use all the common list separators.
7396: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397: for pkg in $enableval; do
7398: IFS="$lt_save_ifs"
7399: if test "X$pkg" = "X$p"; then
7400: enable_static=yes
7401: fi
7402: done
7403: IFS="$lt_save_ifs"
7404: ;;
7405: esac
1.15 paf 7406: else
1.35 moko 7407: enable_static=yes
7408: fi;
7409:
7410:
7411:
7412:
7413:
7414:
7415:
7416:
7417:
7418: # Check whether --with-pic or --without-pic was given.
7419: if test "${with_pic+set}" = set; then
7420: withval="$with_pic"
7421: lt_p=${PACKAGE-default}
7422: case $withval in
7423: yes|no) pic_mode=$withval ;;
7424: *)
7425: pic_mode=default
7426: # Look at the argument we got. We use all the common list separators.
7427: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428: for lt_pkg in $withval; do
7429: IFS="$lt_save_ifs"
7430: if test "X$lt_pkg" = "X$lt_p"; then
7431: pic_mode=yes
7432: fi
7433: done
7434: IFS="$lt_save_ifs"
7435: ;;
7436: esac
1.15 paf 7437: else
1.35 moko 7438: pic_mode=default
7439: fi;
7440:
7441: test -z "$pic_mode" && pic_mode=default
7442:
7443:
7444:
7445:
7446:
7447:
1.15 paf 7448:
1.35 moko 7449: # Check whether --enable-fast-install or --disable-fast-install was given.
7450: if test "${enable_fast_install+set}" = set; then
7451: enableval="$enable_fast_install"
7452: p=${PACKAGE-default}
7453: case $enableval in
7454: yes) enable_fast_install=yes ;;
7455: no) enable_fast_install=no ;;
7456: *)
7457: enable_fast_install=no
7458: # Look at the argument we got. We use all the common list separators.
7459: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7460: for pkg in $enableval; do
7461: IFS="$lt_save_ifs"
7462: if test "X$pkg" = "X$p"; then
7463: enable_fast_install=yes
7464: fi
7465: done
7466: IFS="$lt_save_ifs"
7467: ;;
7468: esac
1.15 paf 7469: else
1.35 moko 7470: enable_fast_install=yes
7471: fi;
7472:
7473:
7474:
7475:
7476:
7477:
7478:
7479:
7480:
7481:
7482: # This can be used to rebuild libtool when needed
7483: LIBTOOL_DEPS="$ltmain"
7484:
7485: # Always use our own libtool.
7486: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7487:
7488:
7489:
7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517: test -z "$LN_S" && LN_S="ln -s"
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
1.15 paf 7531:
1.35 moko 7532: if test -n "${ZSH_VERSION+set}" ; then
7533: setopt NO_GLOB_SUBST
1.15 paf 7534: fi
1.35 moko 7535:
7536: echo "$as_me:$LINENO: checking for objdir" >&5
7537: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7538: if test "${lt_cv_objdir+set}" = set; then
7539: echo $ECHO_N "(cached) $ECHO_C" >&6
7540: else
7541: rm -f .libs 2>/dev/null
7542: mkdir .libs 2>/dev/null
7543: if test -d .libs; then
7544: lt_cv_objdir=.libs
7545: else
7546: # MS-DOS does not allow filenames that begin with a dot.
7547: lt_cv_objdir=_libs
1.15 paf 7548: fi
1.35 moko 7549: rmdir .libs 2>/dev/null
7550: fi
7551: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7552: echo "${ECHO_T}$lt_cv_objdir" >&6
7553: objdir=$lt_cv_objdir
1.15 paf 7554:
7555:
7556:
7557:
7558:
1.35 moko 7559: cat >>confdefs.h <<_ACEOF
7560: #define LT_OBJDIR "$lt_cv_objdir/"
7561: _ACEOF
1.15 paf 7562:
7563:
7564:
7565:
1.35 moko 7566: case $host_os in
7567: aix3*)
7568: # AIX sometimes has problems with the GCC collect2 program. For some
7569: # reason, if we set the COLLECT_NAMES environment variable, the problems
7570: # vanish in a puff of smoke.
7571: if test "X${COLLECT_NAMES+set}" != Xset; then
7572: COLLECT_NAMES=
7573: export COLLECT_NAMES
7574: fi
7575: ;;
7576: esac
1.15 paf 7577:
1.35 moko 7578: # Global variables:
7579: ofile=libtool
7580: can_build_shared=yes
1.15 paf 7581:
1.35 moko 7582: # All known linkers require a `.a' archive for static linking (except MSVC,
7583: # which needs '.lib').
7584: libext=a
1.15 paf 7585:
1.35 moko 7586: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.15 paf 7587:
1.35 moko 7588: old_CC="$CC"
7589: old_CFLAGS="$CFLAGS"
1.15 paf 7590:
1.35 moko 7591: # Set sane defaults for various variables
7592: test -z "$CC" && CC=cc
7593: test -z "$LTCC" && LTCC=$CC
7594: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7595: test -z "$LD" && LD=ld
7596: test -z "$ac_objext" && ac_objext=o
1.15 paf 7597:
1.35 moko 7598: for cc_temp in $compiler""; do
7599: case $cc_temp in
7600: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7601: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7602: \-*) ;;
7603: *) break;;
1.15 paf 7604: esac
1.35 moko 7605: done
7606: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.15 paf 7607:
7608:
1.35 moko 7609: # Only perform the check for file, if the check method requires it
7610: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7611: case $deplibs_check_method in
7612: file_magic*)
7613: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7614: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7615: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7616: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7617: echo $ECHO_N "(cached) $ECHO_C" >&6
7618: else
7619: case $MAGIC_CMD in
7620: [\\/*] | ?:[\\/]*)
7621: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7622: ;;
7623: *)
7624: lt_save_MAGIC_CMD="$MAGIC_CMD"
7625: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7626: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7627: for ac_dir in $ac_dummy; do
7628: IFS="$lt_save_ifs"
7629: test -z "$ac_dir" && ac_dir=.
7630: if test -f $ac_dir/${ac_tool_prefix}file; then
7631: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7632: if test -n "$file_magic_test_file"; then
7633: case $deplibs_check_method in
7634: "file_magic "*)
7635: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7636: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7637: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7638: $EGREP "$file_magic_regex" > /dev/null; then
7639: :
7640: else
7641: cat <<_LT_EOF 1>&2
1.15 paf 7642:
1.35 moko 7643: *** Warning: the command libtool uses to detect shared libraries,
7644: *** $file_magic_cmd, produces output that libtool cannot recognize.
7645: *** The result is that libtool may fail to recognize shared libraries
7646: *** as such. This will affect the creation of libtool libraries that
7647: *** depend on shared libraries, but programs linked with such libtool
7648: *** libraries will work regardless of this problem. Nevertheless, you
7649: *** may want to report the problem to your system manager and/or to
7650: *** bug-libtool@gnu.org
1.15 paf 7651:
1.35 moko 7652: _LT_EOF
7653: fi ;;
7654: esac
7655: fi
7656: break
7657: fi
7658: done
7659: IFS="$lt_save_ifs"
7660: MAGIC_CMD="$lt_save_MAGIC_CMD"
7661: ;;
7662: esac
7663: fi
1.15 paf 7664:
1.35 moko 7665: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666: if test -n "$MAGIC_CMD"; then
7667: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7668: echo "${ECHO_T}$MAGIC_CMD" >&6
1.15 paf 7669: else
1.35 moko 7670: echo "$as_me:$LINENO: result: no" >&5
7671: echo "${ECHO_T}no" >&6
7672: fi
7673:
1.15 paf 7674:
7675:
7676:
7677:
1.35 moko 7678: if test -z "$lt_cv_path_MAGIC_CMD"; then
7679: if test -n "$ac_tool_prefix"; then
7680: echo "$as_me:$LINENO: checking for file" >&5
7681: echo $ECHO_N "checking for file... $ECHO_C" >&6
7682: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7683: echo $ECHO_N "(cached) $ECHO_C" >&6
7684: else
7685: case $MAGIC_CMD in
7686: [\\/*] | ?:[\\/]*)
7687: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7688: ;;
7689: *)
7690: lt_save_MAGIC_CMD="$MAGIC_CMD"
7691: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7692: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7693: for ac_dir in $ac_dummy; do
7694: IFS="$lt_save_ifs"
7695: test -z "$ac_dir" && ac_dir=.
7696: if test -f $ac_dir/file; then
7697: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7698: if test -n "$file_magic_test_file"; then
7699: case $deplibs_check_method in
7700: "file_magic "*)
7701: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7702: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7704: $EGREP "$file_magic_regex" > /dev/null; then
7705: :
7706: else
7707: cat <<_LT_EOF 1>&2
7708:
7709: *** Warning: the command libtool uses to detect shared libraries,
7710: *** $file_magic_cmd, produces output that libtool cannot recognize.
7711: *** The result is that libtool may fail to recognize shared libraries
7712: *** as such. This will affect the creation of libtool libraries that
7713: *** depend on shared libraries, but programs linked with such libtool
7714: *** libraries will work regardless of this problem. Nevertheless, you
7715: *** may want to report the problem to your system manager and/or to
7716: *** bug-libtool@gnu.org
1.15 paf 7717:
1.35 moko 7718: _LT_EOF
7719: fi ;;
7720: esac
7721: fi
7722: break
7723: fi
7724: done
7725: IFS="$lt_save_ifs"
7726: MAGIC_CMD="$lt_save_MAGIC_CMD"
7727: ;;
7728: esac
7729: fi
1.15 paf 7730:
1.35 moko 7731: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732: if test -n "$MAGIC_CMD"; then
7733: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7734: echo "${ECHO_T}$MAGIC_CMD" >&6
7735: else
7736: echo "$as_me:$LINENO: result: no" >&5
7737: echo "${ECHO_T}no" >&6
7738: fi
1.15 paf 7739:
7740:
1.35 moko 7741: else
7742: MAGIC_CMD=:
1.15 paf 7743: fi
7744: fi
1.35 moko 7745:
7746: fi
7747: ;;
7748: esac
7749:
7750: # Use C for the default configuration in the libtool script
7751:
7752: lt_save_CC="$CC"
7753: ac_ext=c
7754: ac_cpp='$CPP $CPPFLAGS'
7755: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758:
7759:
7760: # Source file extension for C test sources.
7761: ac_ext=c
7762:
7763: # Object file extension for compiled C test sources.
7764: objext=o
7765: objext=$objext
7766:
7767: # Code to be used in simple compile tests
7768: lt_simple_compile_test_code="int some_variable = 0;"
7769:
7770: # Code to be used in simple link tests
7771: lt_simple_link_test_code='int main(){return(0);}'
1.15 paf 7772:
7773:
7774:
7775:
7776:
7777:
7778:
1.35 moko 7779: # If no C compiler was specified, use CC.
7780: LTCC=${LTCC-"$CC"}
1.15 paf 7781:
1.35 moko 7782: # If no C compiler flags were specified, use CFLAGS.
7783: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.15 paf 7784:
1.35 moko 7785: # Allow CC to be a program name with arguments.
7786: compiler=$CC
1.15 paf 7787:
1.35 moko 7788: # Save the default compiler, since it gets overwritten when the other
7789: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7790: compiler_DEFAULT=$CC
1.15 paf 7791:
1.35 moko 7792: # save warnings/boilerplate of simple test code
7793: ac_outfile=conftest.$ac_objext
7794: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7795: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7796: _lt_compiler_boilerplate=`cat conftest.err`
7797: $RM conftest*
1.15 paf 7798:
1.35 moko 7799: ac_outfile=conftest.$ac_objext
7800: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7801: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7802: _lt_linker_boilerplate=`cat conftest.err`
7803: $RM -r conftest*
1.15 paf 7804:
7805:
1.36 moko 7806: ## CAVEAT EMPTOR:
7807: ## There is no encapsulation within the following macros, do not change
7808: ## the running order or otherwise move them around unless you know exactly
7809: ## what you are doing...
1.35 moko 7810: if test -n "$compiler"; then
1.15 paf 7811:
1.35 moko 7812: lt_prog_compiler_no_builtin_flag=
1.15 paf 7813:
1.35 moko 7814: if test "$GCC" = yes; then
7815: case $cc_basename in
7816: nvcc*)
7817: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7818: *)
7819: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.15 paf 7820: esac
7821:
1.35 moko 7822: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7823: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7824: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.15 paf 7825: echo $ECHO_N "(cached) $ECHO_C" >&6
7826: else
1.35 moko 7827: lt_cv_prog_compiler_rtti_exceptions=no
7828: ac_outfile=conftest.$ac_objext
7829: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7830: lt_compiler_flag="-fno-rtti -fno-exceptions"
7831: # Insert the option either (1) after the last *FLAGS variable, or
7832: # (2) before a word containing "conftest.", or (3) at the end.
7833: # Note that $ac_compile itself does not contain backslashes and begins
7834: # with a dollar sign (not a hyphen), so the echo should work correctly.
7835: # The option is referenced via a variable to avoid confusing sed.
7836: lt_compile=`echo "$ac_compile" | $SED \
7837: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7838: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7839: -e 's:$: $lt_compiler_flag:'`
7840: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7841: (eval "$lt_compile" 2>conftest.err)
7842: ac_status=$?
7843: cat conftest.err >&5
7844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845: if (exit $ac_status) && test -s "$ac_outfile"; then
7846: # The compiler can only warn and ignore the option if not recognized
7847: # So say no if there are warnings other than the usual output.
7848: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7849: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7850: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7851: lt_cv_prog_compiler_rtti_exceptions=yes
7852: fi
7853: fi
7854: $RM conftest*
1.15 paf 7855:
7856: fi
1.35 moko 7857: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7858: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.15 paf 7859:
1.35 moko 7860: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7861: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7862: else
7863: :
1.15 paf 7864: fi
7865:
1.35 moko 7866: fi
1.15 paf 7867:
7868:
7869:
7870:
7871:
7872:
1.35 moko 7873: lt_prog_compiler_wl=
7874: lt_prog_compiler_pic=
7875: lt_prog_compiler_static=
1.15 paf 7876:
7877:
1.35 moko 7878: if test "$GCC" = yes; then
7879: lt_prog_compiler_wl='-Wl,'
7880: lt_prog_compiler_static='-static'
1.15 paf 7881:
1.35 moko 7882: case $host_os in
7883: aix*)
7884: # All AIX code is PIC.
7885: if test "$host_cpu" = ia64; then
7886: # AIX 5 now supports IA64 processor
7887: lt_prog_compiler_static='-Bstatic'
7888: fi
7889: ;;
1.15 paf 7890:
1.35 moko 7891: amigaos*)
7892: case $host_cpu in
7893: powerpc)
7894: # see comment about AmigaOS4 .so support
7895: lt_prog_compiler_pic='-fPIC'
7896: ;;
7897: m68k)
7898: # FIXME: we need at least 68020 code to build shared libraries, but
7899: # adding the `-m68020' flag to GCC prevents building anything better,
7900: # like `-m68040'.
7901: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7902: ;;
7903: esac
7904: ;;
1.15 paf 7905:
1.35 moko 7906: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7907: # PIC is the default for these OSes.
7908: ;;
1.15 paf 7909:
1.35 moko 7910: mingw* | cygwin* | pw32* | os2* | cegcc*)
7911: # This hack is so that the source file can tell whether it is being
7912: # built for inclusion in a dll (and should export symbols for example).
7913: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7914: # (--disable-auto-import) libraries
7915: lt_prog_compiler_pic='-DDLL_EXPORT'
7916: ;;
1.15 paf 7917:
1.35 moko 7918: darwin* | rhapsody*)
7919: # PIC is the default on this platform
7920: # Common symbols not allowed in MH_DYLIB files
7921: lt_prog_compiler_pic='-fno-common'
7922: ;;
1.15 paf 7923:
1.35 moko 7924: haiku*)
7925: # PIC is the default for Haiku.
7926: # The "-static" flag exists, but is broken.
7927: lt_prog_compiler_static=
7928: ;;
1.15 paf 7929:
1.35 moko 7930: hpux*)
7931: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7932: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7933: # sets the default TLS model and affects inlining.
7934: case $host_cpu in
7935: hppa*64*)
7936: # +Z the default
7937: ;;
7938: *)
7939: lt_prog_compiler_pic='-fPIC'
7940: ;;
7941: esac
7942: ;;
1.15 paf 7943:
1.35 moko 7944: interix[3-9]*)
7945: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7946: # Instead, we relocate shared libraries at runtime.
7947: ;;
1.15 paf 7948:
1.35 moko 7949: msdosdjgpp*)
7950: # Just because we use GCC doesn't mean we suddenly get shared libraries
7951: # on systems that don't support them.
7952: lt_prog_compiler_can_build_shared=no
7953: enable_shared=no
7954: ;;
1.15 paf 7955:
1.35 moko 7956: *nto* | *qnx*)
7957: # QNX uses GNU C++, but need to define -shared option too, otherwise
7958: # it will coredump.
7959: lt_prog_compiler_pic='-fPIC -shared'
7960: ;;
1.15 paf 7961:
1.35 moko 7962: sysv4*MP*)
7963: if test -d /usr/nec; then
7964: lt_prog_compiler_pic=-Kconform_pic
7965: fi
7966: ;;
1.15 paf 7967:
1.35 moko 7968: *)
7969: lt_prog_compiler_pic='-fPIC'
7970: ;;
7971: esac
1.15 paf 7972:
1.35 moko 7973: case $cc_basename in
7974: nvcc*) # Cuda Compiler Driver 2.2
7975: lt_prog_compiler_wl='-Xlinker '
7976: if test -n "$lt_prog_compiler_pic"; then
7977: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7978: fi
7979: ;;
7980: esac
7981: else
7982: # PORTME Check for flag to pass linker flags through the system compiler.
7983: case $host_os in
7984: aix*)
7985: lt_prog_compiler_wl='-Wl,'
7986: if test "$host_cpu" = ia64; then
7987: # AIX 5 now supports IA64 processor
7988: lt_prog_compiler_static='-Bstatic'
7989: else
7990: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7991: fi
7992: ;;
1.15 paf 7993:
1.35 moko 7994: mingw* | cygwin* | pw32* | os2* | cegcc*)
7995: # This hack is so that the source file can tell whether it is being
7996: # built for inclusion in a dll (and should export symbols for example).
7997: lt_prog_compiler_pic='-DDLL_EXPORT'
7998: ;;
1.15 paf 7999:
1.35 moko 8000: hpux9* | hpux10* | hpux11*)
8001: lt_prog_compiler_wl='-Wl,'
8002: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003: # not for PA HP-UX.
8004: case $host_cpu in
8005: hppa*64*|ia64*)
8006: # +Z the default
8007: ;;
8008: *)
8009: lt_prog_compiler_pic='+Z'
8010: ;;
8011: esac
8012: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8013: lt_prog_compiler_static='${wl}-a ${wl}archive'
8014: ;;
1.15 paf 8015:
1.35 moko 8016: irix5* | irix6* | nonstopux*)
8017: lt_prog_compiler_wl='-Wl,'
8018: # PIC (with -KPIC) is the default.
8019: lt_prog_compiler_static='-non_shared'
8020: ;;
1.15 paf 8021:
1.35 moko 8022: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8023: case $cc_basename in
8024: # old Intel for x86_64 which still supported -KPIC.
8025: ecc*)
8026: lt_prog_compiler_wl='-Wl,'
8027: lt_prog_compiler_pic='-KPIC'
8028: lt_prog_compiler_static='-static'
8029: ;;
8030: # icc used to be incompatible with GCC.
8031: # ICC 10 doesn't accept -KPIC any more.
8032: icc* | ifort*)
8033: lt_prog_compiler_wl='-Wl,'
8034: lt_prog_compiler_pic='-fPIC'
8035: lt_prog_compiler_static='-static'
8036: ;;
8037: # Lahey Fortran 8.1.
8038: lf95*)
8039: lt_prog_compiler_wl='-Wl,'
8040: lt_prog_compiler_pic='--shared'
8041: lt_prog_compiler_static='--static'
8042: ;;
8043: nagfor*)
8044: # NAG Fortran compiler
8045: lt_prog_compiler_wl='-Wl,-Wl,,'
8046: lt_prog_compiler_pic='-PIC'
8047: lt_prog_compiler_static='-Bstatic'
8048: ;;
8049: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8050: # Portland Group compilers (*not* the Pentium gcc compiler,
8051: # which looks to be a dead project)
8052: lt_prog_compiler_wl='-Wl,'
8053: lt_prog_compiler_pic='-fpic'
8054: lt_prog_compiler_static='-Bstatic'
8055: ;;
8056: ccc*)
8057: lt_prog_compiler_wl='-Wl,'
8058: # All Alpha code is PIC.
8059: lt_prog_compiler_static='-non_shared'
8060: ;;
8061: xl* | bgxl* | bgf* | mpixl*)
8062: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8063: lt_prog_compiler_wl='-Wl,'
8064: lt_prog_compiler_pic='-qpic'
8065: lt_prog_compiler_static='-qstaticlink'
8066: ;;
8067: *)
8068: case `$CC -V 2>&1 | sed 5q` in
8069: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8070: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8071: lt_prog_compiler_pic='-KPIC'
8072: lt_prog_compiler_static='-Bstatic'
8073: lt_prog_compiler_wl=''
8074: ;;
8075: *Sun\ F* | *Sun*Fortran*)
8076: lt_prog_compiler_pic='-KPIC'
8077: lt_prog_compiler_static='-Bstatic'
8078: lt_prog_compiler_wl='-Qoption ld '
8079: ;;
8080: *Sun\ C*)
8081: # Sun C 5.9
8082: lt_prog_compiler_pic='-KPIC'
8083: lt_prog_compiler_static='-Bstatic'
8084: lt_prog_compiler_wl='-Wl,'
8085: ;;
8086: *Intel*\ [CF]*Compiler*)
8087: lt_prog_compiler_wl='-Wl,'
8088: lt_prog_compiler_pic='-fPIC'
8089: lt_prog_compiler_static='-static'
8090: ;;
8091: *Portland\ Group*)
8092: lt_prog_compiler_wl='-Wl,'
8093: lt_prog_compiler_pic='-fpic'
8094: lt_prog_compiler_static='-Bstatic'
8095: ;;
8096: esac
8097: ;;
8098: esac
8099: ;;
1.15 paf 8100:
1.35 moko 8101: newsos6)
8102: lt_prog_compiler_pic='-KPIC'
8103: lt_prog_compiler_static='-Bstatic'
8104: ;;
1.15 paf 8105:
1.35 moko 8106: *nto* | *qnx*)
8107: # QNX uses GNU C++, but need to define -shared option too, otherwise
8108: # it will coredump.
8109: lt_prog_compiler_pic='-fPIC -shared'
8110: ;;
1.15 paf 8111:
1.35 moko 8112: osf3* | osf4* | osf5*)
8113: lt_prog_compiler_wl='-Wl,'
8114: # All OSF/1 code is PIC.
8115: lt_prog_compiler_static='-non_shared'
8116: ;;
1.15 paf 8117:
1.35 moko 8118: rdos*)
8119: lt_prog_compiler_static='-non_shared'
8120: ;;
1.15 paf 8121:
1.35 moko 8122: solaris*)
8123: lt_prog_compiler_pic='-KPIC'
8124: lt_prog_compiler_static='-Bstatic'
8125: case $cc_basename in
8126: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8127: lt_prog_compiler_wl='-Qoption ld ';;
8128: *)
8129: lt_prog_compiler_wl='-Wl,';;
8130: esac
8131: ;;
1.15 paf 8132:
1.35 moko 8133: sunos4*)
8134: lt_prog_compiler_wl='-Qoption ld '
8135: lt_prog_compiler_pic='-PIC'
8136: lt_prog_compiler_static='-Bstatic'
8137: ;;
1.15 paf 8138:
1.35 moko 8139: sysv4 | sysv4.2uw2* | sysv4.3*)
8140: lt_prog_compiler_wl='-Wl,'
8141: lt_prog_compiler_pic='-KPIC'
8142: lt_prog_compiler_static='-Bstatic'
8143: ;;
1.15 paf 8144:
1.35 moko 8145: sysv4*MP*)
8146: if test -d /usr/nec ;then
8147: lt_prog_compiler_pic='-Kconform_pic'
8148: lt_prog_compiler_static='-Bstatic'
8149: fi
8150: ;;
1.15 paf 8151:
1.35 moko 8152: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8153: lt_prog_compiler_wl='-Wl,'
8154: lt_prog_compiler_pic='-KPIC'
8155: lt_prog_compiler_static='-Bstatic'
8156: ;;
1.15 paf 8157:
1.35 moko 8158: unicos*)
8159: lt_prog_compiler_wl='-Wl,'
8160: lt_prog_compiler_can_build_shared=no
8161: ;;
1.15 paf 8162:
1.35 moko 8163: uts4*)
8164: lt_prog_compiler_pic='-pic'
8165: lt_prog_compiler_static='-Bstatic'
8166: ;;
1.15 paf 8167:
1.35 moko 8168: *)
8169: lt_prog_compiler_can_build_shared=no
8170: ;;
8171: esac
8172: fi
1.15 paf 8173:
1.35 moko 8174: case $host_os in
8175: # For platforms which do not support PIC, -DPIC is meaningless:
8176: *djgpp*)
8177: lt_prog_compiler_pic=
8178: ;;
8179: *)
8180: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8181: ;;
8182: esac
1.15 paf 8183:
1.35 moko 8184: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8185: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8186: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8187: echo $ECHO_N "(cached) $ECHO_C" >&6
8188: else
8189: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8190: fi
8191: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8192: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8193: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.15 paf 8194:
1.35 moko 8195: #
8196: # Check to make sure the PIC flag actually works.
8197: #
8198: if test -n "$lt_prog_compiler_pic"; then
8199: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8200: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8201: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8202: echo $ECHO_N "(cached) $ECHO_C" >&6
8203: else
8204: lt_cv_prog_compiler_pic_works=no
8205: ac_outfile=conftest.$ac_objext
8206: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8207: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8208: # Insert the option either (1) after the last *FLAGS variable, or
8209: # (2) before a word containing "conftest.", or (3) at the end.
8210: # Note that $ac_compile itself does not contain backslashes and begins
8211: # with a dollar sign (not a hyphen), so the echo should work correctly.
8212: # The option is referenced via a variable to avoid confusing sed.
8213: lt_compile=`echo "$ac_compile" | $SED \
8214: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216: -e 's:$: $lt_compiler_flag:'`
8217: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8218: (eval "$lt_compile" 2>conftest.err)
8219: ac_status=$?
8220: cat conftest.err >&5
8221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222: if (exit $ac_status) && test -s "$ac_outfile"; then
8223: # The compiler can only warn and ignore the option if not recognized
8224: # So say no if there are warnings other than the usual output.
8225: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8226: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8227: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8228: lt_cv_prog_compiler_pic_works=yes
8229: fi
8230: fi
8231: $RM conftest*
1.15 paf 8232:
1.35 moko 8233: fi
8234: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8235: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.15 paf 8236:
1.35 moko 8237: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8238: case $lt_prog_compiler_pic in
8239: "" | " "*) ;;
8240: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8241: esac
8242: else
8243: lt_prog_compiler_pic=
8244: lt_prog_compiler_can_build_shared=no
8245: fi
1.15 paf 8246:
1.35 moko 8247: fi
1.15 paf 8248:
8249:
8250:
8251:
8252:
8253:
8254:
8255:
8256:
8257:
8258:
1.35 moko 8259: #
8260: # Check to make sure the static flag actually works.
8261: #
8262: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8263: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8264: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8265: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8266: echo $ECHO_N "(cached) $ECHO_C" >&6
8267: else
8268: lt_cv_prog_compiler_static_works=no
8269: save_LDFLAGS="$LDFLAGS"
8270: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8271: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8272: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8273: # The linker can only warn and ignore the option if not recognized
8274: # So say no if there are warnings
8275: if test -s conftest.err; then
8276: # Append any errors to the config.log.
8277: cat conftest.err 1>&5
8278: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8279: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8280: if diff conftest.exp conftest.er2 >/dev/null; then
8281: lt_cv_prog_compiler_static_works=yes
8282: fi
8283: else
8284: lt_cv_prog_compiler_static_works=yes
8285: fi
8286: fi
8287: $RM -r conftest*
8288: LDFLAGS="$save_LDFLAGS"
1.15 paf 8289:
1.35 moko 8290: fi
8291: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8292: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.15 paf 8293:
1.35 moko 8294: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8295: :
8296: else
8297: lt_prog_compiler_static=
8298: fi
1.15 paf 8299:
8300:
8301:
8302:
8303:
8304:
8305:
1.35 moko 8306: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8307: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8308: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8309: echo $ECHO_N "(cached) $ECHO_C" >&6
8310: else
8311: lt_cv_prog_compiler_c_o=no
8312: $RM -r conftest 2>/dev/null
8313: mkdir conftest
8314: cd conftest
8315: mkdir out
8316: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317:
8318: lt_compiler_flag="-o out/conftest2.$ac_objext"
8319: # Insert the option either (1) after the last *FLAGS variable, or
8320: # (2) before a word containing "conftest.", or (3) at the end.
8321: # Note that $ac_compile itself does not contain backslashes and begins
8322: # with a dollar sign (not a hyphen), so the echo should work correctly.
8323: lt_compile=`echo "$ac_compile" | $SED \
8324: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326: -e 's:$: $lt_compiler_flag:'`
8327: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8328: (eval "$lt_compile" 2>out/conftest.err)
8329: ac_status=$?
8330: cat out/conftest.err >&5
8331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8333: then
8334: # The compiler can only warn and ignore the option if not recognized
8335: # So say no if there are warnings
8336: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8337: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8338: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8339: lt_cv_prog_compiler_c_o=yes
8340: fi
8341: fi
8342: chmod u+w . 2>&5
8343: $RM conftest*
8344: # SGI C++ compiler will create directory out/ii_files/ for
8345: # template instantiation
8346: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8347: $RM out/* && rmdir out
8348: cd ..
8349: $RM -r conftest
8350: $RM conftest*
1.15 paf 8351:
1.35 moko 8352: fi
8353: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8354: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8355:
8356:
8357:
8358:
8359:
8360:
1.35 moko 8361: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8362: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8363: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8364: echo $ECHO_N "(cached) $ECHO_C" >&6
8365: else
8366: lt_cv_prog_compiler_c_o=no
8367: $RM -r conftest 2>/dev/null
8368: mkdir conftest
8369: cd conftest
8370: mkdir out
8371: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8372:
8373: lt_compiler_flag="-o out/conftest2.$ac_objext"
8374: # Insert the option either (1) after the last *FLAGS variable, or
8375: # (2) before a word containing "conftest.", or (3) at the end.
8376: # Note that $ac_compile itself does not contain backslashes and begins
8377: # with a dollar sign (not a hyphen), so the echo should work correctly.
8378: lt_compile=`echo "$ac_compile" | $SED \
8379: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8380: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8381: -e 's:$: $lt_compiler_flag:'`
8382: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8383: (eval "$lt_compile" 2>out/conftest.err)
8384: ac_status=$?
8385: cat out/conftest.err >&5
8386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8388: then
8389: # The compiler can only warn and ignore the option if not recognized
8390: # So say no if there are warnings
8391: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8392: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8393: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8394: lt_cv_prog_compiler_c_o=yes
8395: fi
8396: fi
8397: chmod u+w . 2>&5
8398: $RM conftest*
8399: # SGI C++ compiler will create directory out/ii_files/ for
8400: # template instantiation
8401: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8402: $RM out/* && rmdir out
8403: cd ..
8404: $RM -r conftest
8405: $RM conftest*
1.15 paf 8406:
1.35 moko 8407: fi
8408: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8409: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8410:
8411:
8412:
8413:
1.35 moko 8414: hard_links="nottested"
8415: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8416: # do not overwrite the value of need_locks provided by the user
8417: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8418: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8419: hard_links=yes
8420: $RM conftest*
8421: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8422: touch conftest.a
8423: ln conftest.a conftest.b 2>&5 || hard_links=no
8424: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8425: echo "$as_me:$LINENO: result: $hard_links" >&5
8426: echo "${ECHO_T}$hard_links" >&6
8427: if test "$hard_links" = no; then
8428: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8429: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8430: need_locks=warn
8431: fi
8432: else
8433: need_locks=no
8434: fi
1.15 paf 8435:
8436:
8437:
8438:
8439:
8440:
1.35 moko 8441: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8442: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.15 paf 8443:
1.35 moko 8444: runpath_var=
8445: allow_undefined_flag=
8446: always_export_symbols=no
8447: archive_cmds=
8448: archive_expsym_cmds=
8449: compiler_needs_object=no
8450: enable_shared_with_static_runtimes=no
8451: export_dynamic_flag_spec=
8452: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8453: hardcode_automatic=no
8454: hardcode_direct=no
8455: hardcode_direct_absolute=no
8456: hardcode_libdir_flag_spec=
8457: hardcode_libdir_separator=
8458: hardcode_minus_L=no
8459: hardcode_shlibpath_var=unsupported
8460: inherit_rpath=no
8461: link_all_deplibs=unknown
8462: module_cmds=
8463: module_expsym_cmds=
8464: old_archive_from_new_cmds=
8465: old_archive_from_expsyms_cmds=
8466: thread_safe_flag_spec=
8467: whole_archive_flag_spec=
8468: # include_expsyms should be a list of space-separated symbols to be *always*
8469: # included in the symbol list
8470: include_expsyms=
8471: # exclude_expsyms can be an extended regexp of symbols to exclude
8472: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8473: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8474: # as well as any symbol that contains `d'.
8475: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8476: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8477: # platforms (ab)use it in PIC code, but their linkers get confused if
8478: # the symbol is explicitly referenced. Since portable code cannot
8479: # rely on this symbol name, it's probably fine to never include it in
8480: # preloaded symbol tables.
8481: # Exclude shared library initialization/finalization symbols.
8482: extract_expsyms_cmds=
1.15 paf 8483:
8484: case $host_os in
1.35 moko 8485: cygwin* | mingw* | pw32* | cegcc*)
8486: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8487: # When not using gcc, we currently assume that we are using
8488: # Microsoft Visual C++.
8489: if test "$GCC" != yes; then
8490: with_gnu_ld=no
8491: fi
8492: ;;
8493: interix*)
8494: # we just hope/assume this is gcc and not c89 (= MSVC++)
8495: with_gnu_ld=yes
8496: ;;
8497: openbsd*)
8498: with_gnu_ld=no
1.15 paf 8499: ;;
8500: esac
8501:
1.35 moko 8502: ld_shlibs=yes
1.15 paf 8503:
1.35 moko 8504: # On some targets, GNU ld is compatible enough with the native linker
8505: # that we're better off using the native interface for both.
8506: lt_use_gnu_ld_interface=no
8507: if test "$with_gnu_ld" = yes; then
8508: case $host_os in
8509: aix*)
8510: # The AIX port of GNU ld has always aspired to compatibility
8511: # with the native linker. However, as the warning in the GNU ld
8512: # block says, versions before 2.19.5* couldn't really create working
8513: # shared libraries, regardless of the interface used.
8514: case `$LD -v 2>&1` in
8515: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8516: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8517: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8518: *)
8519: lt_use_gnu_ld_interface=yes
8520: ;;
8521: esac
8522: ;;
8523: *)
8524: lt_use_gnu_ld_interface=yes
8525: ;;
8526: esac
8527: fi
1.15 paf 8528:
1.35 moko 8529: if test "$lt_use_gnu_ld_interface" = yes; then
8530: # If archive_cmds runs LD, not CC, wlarc should be empty
8531: wlarc='${wl}'
8532:
8533: # Set some defaults for GNU ld with shared library support. These
8534: # are reset later if shared libraries are not supported. Putting them
8535: # here allows them to be overridden if necessary.
8536: runpath_var=LD_RUN_PATH
8537: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8538: export_dynamic_flag_spec='${wl}--export-dynamic'
8539: # ancient GNU ld didn't support --whole-archive et. al.
8540: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8541: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8542: else
8543: whole_archive_flag_spec=
8544: fi
8545: supports_anon_versioning=no
8546: case `$LD -v 2>&1` in
8547: *GNU\ gold*) supports_anon_versioning=yes ;;
8548: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8549: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8550: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8551: *\ 2.11.*) ;; # other 2.11 versions
8552: *) supports_anon_versioning=yes ;;
8553: esac
1.15 paf 8554:
1.35 moko 8555: # See if GNU ld supports shared libraries.
8556: case $host_os in
8557: aix[3-9]*)
8558: # On AIX/PPC, the GNU linker is very broken
8559: if test "$host_cpu" != ia64; then
8560: ld_shlibs=no
8561: cat <<_LT_EOF 1>&2
1.15 paf 8562:
1.35 moko 8563: *** Warning: the GNU linker, at least up to release 2.19, is reported
8564: *** to be unable to reliably create shared libraries on AIX.
8565: *** Therefore, libtool is disabling shared libraries support. If you
8566: *** really care for shared libraries, you may want to install binutils
8567: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8568: *** You will then need to restart the configuration process.
1.15 paf 8569:
1.35 moko 8570: _LT_EOF
8571: fi
8572: ;;
1.15 paf 8573:
1.35 moko 8574: amigaos*)
8575: case $host_cpu in
8576: powerpc)
8577: # see comment about AmigaOS4 .so support
8578: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579: archive_expsym_cmds=''
8580: ;;
8581: m68k)
8582: 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)'
8583: hardcode_libdir_flag_spec='-L$libdir'
8584: hardcode_minus_L=yes
8585: ;;
8586: esac
8587: ;;
1.15 paf 8588:
1.35 moko 8589: beos*)
8590: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8591: allow_undefined_flag=unsupported
8592: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8593: # support --undefined. This deserves some investigation. FIXME
8594: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595: else
8596: ld_shlibs=no
8597: fi
8598: ;;
1.15 paf 8599:
1.35 moko 8600: cygwin* | mingw* | pw32* | cegcc*)
8601: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8602: # as there is no search path for DLLs.
8603: hardcode_libdir_flag_spec='-L$libdir'
8604: export_dynamic_flag_spec='${wl}--export-all-symbols'
8605: allow_undefined_flag=unsupported
8606: always_export_symbols=no
8607: enable_shared_with_static_runtimes=yes
8608: 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'
8609: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8610:
8611: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8612: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8613: # If the export-symbols file already is a .def file (1st line
8614: # is EXPORTS), use it as is; otherwise, prepend...
8615: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8616: cp $export_symbols $output_objdir/$soname.def;
8617: else
8618: echo EXPORTS > $output_objdir/$soname.def;
8619: cat $export_symbols >> $output_objdir/$soname.def;
8620: fi~
8621: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8622: else
8623: ld_shlibs=no
8624: fi
8625: ;;
1.15 paf 8626:
1.35 moko 8627: haiku*)
8628: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8629: link_all_deplibs=yes
8630: ;;
1.15 paf 8631:
1.35 moko 8632: interix[3-9]*)
8633: hardcode_direct=no
8634: hardcode_shlibpath_var=no
8635: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8636: export_dynamic_flag_spec='${wl}-E'
8637: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8638: # Instead, shared libraries are loaded at an image base (0x10000000 by
8639: # default) and relocated if they conflict, which is a slow very memory
8640: # consuming and fragmenting process. To avoid this, we pick a random,
8641: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8642: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8643: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8644: 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'
8645: ;;
1.15 paf 8646:
1.35 moko 8647: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8648: tmp_diet=no
8649: if test "$host_os" = linux-dietlibc; then
8650: case $cc_basename in
8651: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8652: esac
8653: fi
8654: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8655: && test "$tmp_diet" = no
8656: then
8657: tmp_addflag=' $pic_flag'
8658: tmp_sharedflag='-shared'
8659: case $cc_basename,$host_cpu in
8660: pgcc*) # Portland Group C compiler
8661: 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'
8662: tmp_addflag=' $pic_flag'
8663: ;;
8664: pgf77* | pgf90* | pgf95* | pgfortran*)
8665: # Portland Group f77 and f90 compilers
8666: 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'
8667: tmp_addflag=' $pic_flag -Mnomain' ;;
8668: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8669: tmp_addflag=' -i_dynamic' ;;
8670: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8671: tmp_addflag=' -i_dynamic -nofor_main' ;;
8672: ifc* | ifort*) # Intel Fortran compiler
8673: tmp_addflag=' -nofor_main' ;;
8674: lf95*) # Lahey Fortran 8.1
8675: whole_archive_flag_spec=
8676: tmp_sharedflag='--shared' ;;
8677: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8678: tmp_sharedflag='-qmkshrobj'
8679: tmp_addflag= ;;
8680: nvcc*) # Cuda Compiler Driver 2.2
8681: 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'
8682: compiler_needs_object=yes
8683: ;;
8684: esac
8685: case `$CC -V 2>&1 | sed 5q` in
8686: *Sun\ C*) # Sun C 5.9
8687: 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'
8688: compiler_needs_object=yes
8689: tmp_sharedflag='-G' ;;
8690: *Sun\ F*) # Sun Fortran 8.3
8691: tmp_sharedflag='-G' ;;
8692: esac
8693: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.15 paf 8694:
1.35 moko 8695: if test "x$supports_anon_versioning" = xyes; then
8696: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8697: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8698: echo "local: *; };" >> $output_objdir/$libname.ver~
8699: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8700: fi
8701:
8702: case $cc_basename in
8703: xlf* | bgf* | bgxlf* | mpixlf*)
8704: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8705: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8706: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8708: if test "x$supports_anon_versioning" = xyes; then
8709: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8710: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8711: echo "local: *; };" >> $output_objdir/$libname.ver~
8712: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8713: fi
8714: ;;
8715: esac
8716: else
8717: ld_shlibs=no
8718: fi
8719: ;;
1.15 paf 8720:
1.35 moko 8721: netbsd*)
8722: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8723: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8724: wlarc=
8725: else
8726: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728: fi
8729: ;;
1.15 paf 8730:
1.35 moko 8731: solaris*)
8732: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8733: ld_shlibs=no
8734: cat <<_LT_EOF 1>&2
1.15 paf 8735:
1.35 moko 8736: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8737: *** create shared libraries on Solaris systems. Therefore, libtool
8738: *** is disabling shared libraries support. We urge you to upgrade GNU
8739: *** binutils to release 2.9.1 or newer. Another option is to modify
8740: *** your PATH or compiler configuration so that the native linker is
8741: *** used, and then restart.
1.15 paf 8742:
1.35 moko 8743: _LT_EOF
8744: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747: else
8748: ld_shlibs=no
8749: fi
8750: ;;
1.15 paf 8751:
1.35 moko 8752: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8753: case `$LD -v 2>&1` in
8754: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8755: ld_shlibs=no
8756: cat <<_LT_EOF 1>&2
1.31 misha 8757:
1.35 moko 8758: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8759: *** reliably create shared libraries on SCO systems. Therefore, libtool
8760: *** is disabling shared libraries support. We urge you to upgrade GNU
8761: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8762: *** your PATH or compiler configuration so that the native linker is
8763: *** used, and then restart.
1.31 misha 8764:
1.35 moko 8765: _LT_EOF
8766: ;;
8767: *)
8768: # For security reasons, it is highly recommended that you always
8769: # use absolute paths for naming shared libraries, and exclude the
8770: # DT_RUNPATH tag from executables and libraries. But doing so
8771: # requires that you compile everything twice, which is a pain.
8772: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776: else
8777: ld_shlibs=no
8778: fi
8779: ;;
8780: esac
8781: ;;
1.31 misha 8782:
1.35 moko 8783: sunos4*)
8784: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785: wlarc=
8786: hardcode_direct=yes
8787: hardcode_shlibpath_var=no
8788: ;;
1.15 paf 8789:
1.35 moko 8790: *)
8791: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794: else
8795: ld_shlibs=no
8796: fi
8797: ;;
8798: esac
1.15 paf 8799:
1.35 moko 8800: if test "$ld_shlibs" = no; then
8801: runpath_var=
8802: hardcode_libdir_flag_spec=
8803: export_dynamic_flag_spec=
8804: whole_archive_flag_spec=
8805: fi
8806: else
8807: # PORTME fill in a description of your system's linker (not GNU ld)
8808: case $host_os in
8809: aix3*)
8810: allow_undefined_flag=unsupported
8811: always_export_symbols=yes
8812: 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'
8813: # Note: this linker hardcodes the directories in LIBPATH if there
8814: # are no directories specified by -L.
8815: hardcode_minus_L=yes
8816: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8817: # Neither direct hardcoding nor static linking is supported with a
8818: # broken collect2.
8819: hardcode_direct=unsupported
8820: fi
8821: ;;
1.15 paf 8822:
1.35 moko 8823: aix[4-9]*)
8824: if test "$host_cpu" = ia64; then
8825: # On IA64, the linker does run time linking by default, so we don't
8826: # have to do anything special.
8827: aix_use_runtimelinking=no
8828: exp_sym_flag='-Bexport'
8829: no_entry_flag=""
8830: else
8831: # If we're using GNU nm, then we don't want the "-C" option.
8832: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8833: # Also, AIX nm treats weak defined symbols like other global
8834: # defined symbols, whereas GNU nm marks them as "W".
8835: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8836: 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'
8837: else
8838: 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'
8839: fi
8840: aix_use_runtimelinking=no
1.15 paf 8841:
1.35 moko 8842: # Test if we are trying to use run time linking or normal
8843: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8844: # need to do runtime linking.
8845: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8846: for ld_flag in $LDFLAGS; do
8847: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8848: aix_use_runtimelinking=yes
8849: break
8850: fi
8851: done
8852: ;;
8853: esac
1.15 paf 8854:
1.35 moko 8855: exp_sym_flag='-bexport'
8856: no_entry_flag='-bnoentry'
8857: fi
1.23 paf 8858:
1.35 moko 8859: # When large executables or shared objects are built, AIX ld can
8860: # have problems creating the table of contents. If linking a library
8861: # or program results in "error TOC overflow" add -mminimal-toc to
8862: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8863: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8864:
8865: archive_cmds=''
8866: hardcode_direct=yes
8867: hardcode_direct_absolute=yes
8868: hardcode_libdir_separator=':'
8869: link_all_deplibs=yes
8870: file_list_spec='${wl}-f,'
8871:
8872: if test "$GCC" = yes; then
8873: case $host_os in aix4.[012]|aix4.[012].*)
8874: # We only want to do this on AIX 4.2 and lower, the check
8875: # below for broken collect2 doesn't work under 4.3+
8876: collect2name=`${CC} -print-prog-name=collect2`
8877: if test -f "$collect2name" &&
8878: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8879: then
8880: # We have reworked collect2
8881: :
8882: else
8883: # We have old collect2
8884: hardcode_direct=unsupported
8885: # It fails to find uninstalled libraries when the uninstalled
8886: # path is not listed in the libpath. Setting hardcode_minus_L
8887: # to unsupported forces relinking
8888: hardcode_minus_L=yes
8889: hardcode_libdir_flag_spec='-L$libdir'
8890: hardcode_libdir_separator=
8891: fi
8892: ;;
8893: esac
8894: shared_flag='-shared'
8895: if test "$aix_use_runtimelinking" = yes; then
8896: shared_flag="$shared_flag "'${wl}-G'
8897: fi
8898: else
8899: # not using gcc
8900: if test "$host_cpu" = ia64; then
8901: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8902: # chokes on -Wl,-G. The following line is correct:
8903: shared_flag='-G'
8904: else
8905: if test "$aix_use_runtimelinking" = yes; then
8906: shared_flag='${wl}-G'
8907: else
8908: shared_flag='${wl}-bM:SRE'
8909: fi
8910: fi
8911: fi
1.15 paf 8912:
1.35 moko 8913: export_dynamic_flag_spec='${wl}-bexpall'
8914: # It seems that -bexpall does not export symbols beginning with
8915: # underscore (_), so it is better to generate a list of symbols to export.
8916: always_export_symbols=yes
8917: if test "$aix_use_runtimelinking" = yes; then
8918: # Warning - without using the other runtime loading flags (-brtl),
8919: # -berok will link without error, but may produce a broken library.
8920: allow_undefined_flag='-berok'
8921: # Determine the default libpath from the value encoded in an
8922: # empty executable.
8923: if test "${lt_cv_aix_libpath+set}" = set; then
8924: aix_libpath=$lt_cv_aix_libpath
8925: else
8926: if test "${lt_cv_aix_libpath_+set}" = set; then
1.15 paf 8927: echo $ECHO_N "(cached) $ECHO_C" >&6
8928: else
1.35 moko 8929: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 8930: /* confdefs.h. */
8931: _ACEOF
8932: cat confdefs.h >>conftest.$ac_ext
8933: cat >>conftest.$ac_ext <<_ACEOF
8934: /* end confdefs.h. */
1.35 moko 8935:
8936: int
8937: main ()
8938: {
8939:
8940: ;
8941: return 0;
8942: }
1.15 paf 8943: _ACEOF
1.35 moko 8944: rm -f conftest.$ac_objext conftest$ac_exeext
8945: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946: (eval $ac_link) 2>conftest.er1
1.15 paf 8947: ac_status=$?
1.25 paf 8948: grep -v '^ *+' conftest.er1 >conftest.err
8949: rm -f conftest.er1
8950: cat conftest.err >&5
1.15 paf 8951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952: (exit $ac_status); } &&
1.25 paf 8953: { ac_try='test -z "$ac_c_werror_flag"
8954: || test ! -s conftest.err'
8955: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956: (eval $ac_try) 2>&5
8957: ac_status=$?
8958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959: (exit $ac_status); }; } &&
1.35 moko 8960: { ac_try='test -s conftest$ac_exeext'
1.15 paf 8961: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962: (eval $ac_try) 2>&5
8963: ac_status=$?
8964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965: (exit $ac_status); }; }; then
1.35 moko 8966:
8967: lt_aix_libpath_sed='
8968: /Import File Strings/,/^$/ {
8969: /^0/ {
8970: s/^0 *\([^ ]*\) *$/\1/
8971: p
8972: }
8973: }'
8974: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8975: # Check for a 64-bit object if we didn't find anything.
8976: if test -z "$lt_cv_aix_libpath_"; then
8977: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8978: fi
1.15 paf 8979: else
8980: echo "$as_me: failed program was:" >&5
8981: sed 's/^/| /' conftest.$ac_ext >&5
8982:
8983: fi
1.35 moko 8984: rm -f conftest.err conftest.$ac_objext \
8985: conftest$ac_exeext conftest.$ac_ext
8986: if test -z "$lt_cv_aix_libpath_"; then
8987: lt_cv_aix_libpath_="/usr/lib:/lib"
8988: fi
8989:
8990: fi
8991:
8992: aix_libpath=$lt_cv_aix_libpath_
8993: fi
1.15 paf 8994:
1.35 moko 8995: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8996: 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"
8997: else
8998: if test "$host_cpu" = ia64; then
8999: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9000: allow_undefined_flag="-z nodefs"
9001: 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"
9002: else
9003: # Determine the default libpath from the value encoded in an
9004: # empty executable.
9005: if test "${lt_cv_aix_libpath+set}" = set; then
9006: aix_libpath=$lt_cv_aix_libpath
9007: else
9008: if test "${lt_cv_aix_libpath_+set}" = set; then
9009: echo $ECHO_N "(cached) $ECHO_C" >&6
9010: else
9011: cat >conftest.$ac_ext <<_ACEOF
9012: /* confdefs.h. */
1.15 paf 9013: _ACEOF
9014: cat confdefs.h >>conftest.$ac_ext
9015: cat >>conftest.$ac_ext <<_ACEOF
9016: /* end confdefs.h. */
1.35 moko 9017:
9018: int
9019: main ()
9020: {
9021:
9022: ;
9023: return 0;
9024: }
1.15 paf 9025: _ACEOF
1.35 moko 9026: rm -f conftest.$ac_objext conftest$ac_exeext
9027: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028: (eval $ac_link) 2>conftest.er1
1.15 paf 9029: ac_status=$?
9030: grep -v '^ *+' conftest.er1 >conftest.err
9031: rm -f conftest.er1
9032: cat conftest.err >&5
9033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 9034: (exit $ac_status); } &&
9035: { ac_try='test -z "$ac_c_werror_flag"
9036: || test ! -s conftest.err'
9037: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038: (eval $ac_try) 2>&5
9039: ac_status=$?
9040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041: (exit $ac_status); }; } &&
9042: { ac_try='test -s conftest$ac_exeext'
9043: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044: (eval $ac_try) 2>&5
9045: ac_status=$?
9046: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047: (exit $ac_status); }; }; then
9048:
9049: lt_aix_libpath_sed='
9050: /Import File Strings/,/^$/ {
9051: /^0/ {
9052: s/^0 *\([^ ]*\) *$/\1/
9053: p
9054: }
9055: }'
9056: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9057: # Check for a 64-bit object if we didn't find anything.
9058: if test -z "$lt_cv_aix_libpath_"; then
9059: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.15 paf 9060: fi
9061: else
9062: echo "$as_me: failed program was:" >&5
9063: sed 's/^/| /' conftest.$ac_ext >&5
9064:
9065: fi
1.35 moko 9066: rm -f conftest.err conftest.$ac_objext \
9067: conftest$ac_exeext conftest.$ac_ext
9068: if test -z "$lt_cv_aix_libpath_"; then
9069: lt_cv_aix_libpath_="/usr/lib:/lib"
9070: fi
9071:
9072: fi
9073:
9074: aix_libpath=$lt_cv_aix_libpath_
9075: fi
9076:
9077: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9078: # Warning - without using the other run time loading flags,
9079: # -berok will link without error, but may produce a broken library.
9080: no_undefined_flag=' ${wl}-bernotok'
9081: allow_undefined_flag=' ${wl}-berok'
9082: if test "$with_gnu_ld" = yes; then
9083: # We only use this code for GNU lds that support --whole-archive.
9084: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9085: else
9086: # Exported symbols can be pulled into shared objects from archives
9087: whole_archive_flag_spec='$convenience'
9088: fi
9089: archive_cmds_need_lc=yes
9090: # This is similar to how AIX traditionally builds its shared libraries.
9091: 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'
9092: fi
9093: fi
9094: ;;
9095:
9096: amigaos*)
9097: case $host_cpu in
9098: powerpc)
9099: # see comment about AmigaOS4 .so support
9100: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9101: archive_expsym_cmds=''
9102: ;;
9103: m68k)
9104: 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)'
9105: hardcode_libdir_flag_spec='-L$libdir'
9106: hardcode_minus_L=yes
9107: ;;
9108: esac
9109: ;;
9110:
9111: bsdi[45]*)
9112: export_dynamic_flag_spec=-rdynamic
9113: ;;
9114:
9115: cygwin* | mingw* | pw32* | cegcc*)
9116: # When not using gcc, we currently assume that we are using
9117: # Microsoft Visual C++.
9118: # hardcode_libdir_flag_spec is actually meaningless, as there is
9119: # no search path for DLLs.
9120: case $cc_basename in
9121: cl*)
9122: # Native MSVC
9123: hardcode_libdir_flag_spec=' '
9124: allow_undefined_flag=unsupported
9125: always_export_symbols=yes
9126: file_list_spec='@'
9127: # Tell ltmain to make .lib files, not .a files.
9128: libext=lib
9129: # Tell ltmain to make .dll files, not .so files.
9130: shrext_cmds=".dll"
9131: # FIXME: Setting linknames here is a bad hack.
9132: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9133: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9134: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9135: else
9136: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9137: fi~
9138: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9139: linknames='
9140: # The linker will not automatically build a static lib if we build a DLL.
9141: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9142: enable_shared_with_static_runtimes=yes
9143: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9144: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9145: # Don't use ranlib
9146: old_postinstall_cmds='chmod 644 $oldlib'
9147: postlink_cmds='lt_outputfile="@OUTPUT@"~
9148: lt_tool_outputfile="@TOOL_OUTPUT@"~
9149: case $lt_outputfile in
9150: *.exe|*.EXE) ;;
9151: *)
9152: lt_outputfile="$lt_outputfile.exe"
9153: lt_tool_outputfile="$lt_tool_outputfile.exe"
9154: ;;
9155: esac~
9156: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9157: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9158: $RM "$lt_outputfile.manifest";
9159: fi'
9160: ;;
9161: *)
9162: # Assume MSVC wrapper
9163: hardcode_libdir_flag_spec=' '
9164: allow_undefined_flag=unsupported
9165: # Tell ltmain to make .lib files, not .a files.
9166: libext=lib
9167: # Tell ltmain to make .dll files, not .so files.
9168: shrext_cmds=".dll"
9169: # FIXME: Setting linknames here is a bad hack.
9170: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9171: # The linker will automatically build a .lib file if we build a DLL.
9172: old_archive_from_new_cmds='true'
9173: # FIXME: Should let the user specify the lib program.
9174: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9175: enable_shared_with_static_runtimes=yes
9176: ;;
9177: esac
9178: ;;
9179:
9180: darwin* | rhapsody*)
9181:
9182:
9183: archive_cmds_need_lc=no
9184: hardcode_direct=no
9185: hardcode_automatic=yes
9186: hardcode_shlibpath_var=unsupported
9187: if test "$lt_cv_ld_force_load" = "yes"; then
9188: 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\"`'
9189:
9190: else
9191: whole_archive_flag_spec=''
9192: fi
9193: link_all_deplibs=yes
9194: allow_undefined_flag="$_lt_dar_allow_undefined"
9195: case $cc_basename in
9196: ifort*) _lt_dar_can_shared=yes ;;
9197: *) _lt_dar_can_shared=$GCC ;;
9198: esac
9199: if test "$_lt_dar_can_shared" = "yes"; then
9200: output_verbose_link_cmd=func_echo_all
9201: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9202: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9203: 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}"
9204: 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}"
9205:
9206: else
9207: ld_shlibs=no
9208: fi
9209:
9210: ;;
9211:
9212: dgux*)
9213: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9214: hardcode_libdir_flag_spec='-L$libdir'
9215: hardcode_shlibpath_var=no
9216: ;;
9217:
9218: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9219: # support. Future versions do this automatically, but an explicit c++rt0.o
9220: # does not break anything, and helps significantly (at the cost of a little
9221: # extra space).
9222: freebsd2.2*)
9223: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9224: hardcode_libdir_flag_spec='-R$libdir'
9225: hardcode_direct=yes
9226: hardcode_shlibpath_var=no
9227: ;;
9228:
9229: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9230: freebsd2.*)
9231: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9232: hardcode_direct=yes
9233: hardcode_minus_L=yes
9234: hardcode_shlibpath_var=no
9235: ;;
9236:
9237: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9238: freebsd* | dragonfly*)
9239: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9240: hardcode_libdir_flag_spec='-R$libdir'
9241: hardcode_direct=yes
9242: hardcode_shlibpath_var=no
9243: ;;
9244:
9245: hpux9*)
9246: if test "$GCC" = yes; then
9247: 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'
9248: else
9249: 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'
9250: fi
9251: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9252: hardcode_libdir_separator=:
9253: hardcode_direct=yes
9254:
9255: # hardcode_minus_L: Not really in the search PATH,
9256: # but as the default location of the library.
9257: hardcode_minus_L=yes
9258: export_dynamic_flag_spec='${wl}-E'
9259: ;;
9260:
9261: hpux10*)
9262: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9263: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9264: else
9265: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9266: fi
9267: if test "$with_gnu_ld" = no; then
9268: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9269: hardcode_libdir_separator=:
9270: hardcode_direct=yes
9271: hardcode_direct_absolute=yes
9272: export_dynamic_flag_spec='${wl}-E'
9273: # hardcode_minus_L: Not really in the search PATH,
9274: # but as the default location of the library.
9275: hardcode_minus_L=yes
9276: fi
9277: ;;
9278:
9279: hpux11*)
9280: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9281: case $host_cpu in
9282: hppa*64*)
9283: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9284: ;;
9285: ia64*)
9286: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9287: ;;
9288: *)
9289: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9290: ;;
9291: esac
9292: else
9293: case $host_cpu in
9294: hppa*64*)
9295: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9296: ;;
9297: ia64*)
9298: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9299: ;;
9300: *)
1.15 paf 9301:
1.35 moko 9302: # Older versions of the 11.00 compiler do not understand -b yet
9303: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9304: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9305: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9306: if test "${lt_cv_prog_compiler__b+set}" = set; then
1.15 paf 9307: echo $ECHO_N "(cached) $ECHO_C" >&6
9308: else
1.35 moko 9309: lt_cv_prog_compiler__b=no
9310: save_LDFLAGS="$LDFLAGS"
9311: LDFLAGS="$LDFLAGS -b"
9312: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9313: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9314: # The linker can only warn and ignore the option if not recognized
9315: # So say no if there are warnings
9316: if test -s conftest.err; then
9317: # Append any errors to the config.log.
9318: cat conftest.err 1>&5
9319: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9320: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9321: if diff conftest.exp conftest.er2 >/dev/null; then
9322: lt_cv_prog_compiler__b=yes
9323: fi
9324: else
9325: lt_cv_prog_compiler__b=yes
9326: fi
9327: fi
9328: $RM -r conftest*
9329: LDFLAGS="$save_LDFLAGS"
1.15 paf 9330:
1.1 parser 9331: fi
1.35 moko 9332: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9333: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 parser 9334:
1.35 moko 9335: if test x"$lt_cv_prog_compiler__b" = xyes; then
9336: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9337: else
9338: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 parser 9339: fi
9340:
1.35 moko 9341: ;;
9342: esac
9343: fi
9344: if test "$with_gnu_ld" = no; then
9345: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9346: hardcode_libdir_separator=:
9347:
9348: case $host_cpu in
9349: hppa*64*|ia64*)
9350: hardcode_direct=no
9351: hardcode_shlibpath_var=no
9352: ;;
9353: *)
9354: hardcode_direct=yes
9355: hardcode_direct_absolute=yes
9356: export_dynamic_flag_spec='${wl}-E'
1.15 paf 9357:
1.35 moko 9358: # hardcode_minus_L: Not really in the search PATH,
9359: # but as the default location of the library.
9360: hardcode_minus_L=yes
9361: ;;
9362: esac
9363: fi
9364: ;;
1.1 parser 9365:
1.35 moko 9366: irix5* | irix6* | nonstopux*)
9367: if test "$GCC" = yes; then
9368: 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'
9369: # Try to use the -exported_symbol ld option, if it does not
9370: # work, assume that -exports_file does not work either and
9371: # implicitly export all symbols.
9372: # This should be the same for all languages, so no per-tag cache variable.
9373: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9374: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9375: if test "${lt_cv_irix_exported_symbol+set}" = set; then
1.15 paf 9376: echo $ECHO_N "(cached) $ECHO_C" >&6
9377: else
1.35 moko 9378: save_LDFLAGS="$LDFLAGS"
9379: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9380: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 9381: /* confdefs.h. */
9382: _ACEOF
9383: cat confdefs.h >>conftest.$ac_ext
9384: cat >>conftest.$ac_ext <<_ACEOF
9385: /* end confdefs.h. */
1.35 moko 9386: int foo (void) { return 0; }
1.15 paf 9387: _ACEOF
1.35 moko 9388: rm -f conftest.$ac_objext conftest$ac_exeext
9389: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390: (eval $ac_link) 2>conftest.er1
1.15 paf 9391: ac_status=$?
1.25 paf 9392: grep -v '^ *+' conftest.er1 >conftest.err
9393: rm -f conftest.er1
9394: cat conftest.err >&5
1.15 paf 9395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396: (exit $ac_status); } &&
1.25 paf 9397: { ac_try='test -z "$ac_c_werror_flag"
9398: || test ! -s conftest.err'
9399: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400: (eval $ac_try) 2>&5
9401: ac_status=$?
9402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403: (exit $ac_status); }; } &&
1.35 moko 9404: { ac_try='test -s conftest$ac_exeext'
1.15 paf 9405: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406: (eval $ac_try) 2>&5
9407: ac_status=$?
9408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409: (exit $ac_status); }; }; then
1.35 moko 9410: lt_cv_irix_exported_symbol=yes
1.1 parser 9411: else
1.15 paf 9412: echo "$as_me: failed program was:" >&5
9413: sed 's/^/| /' conftest.$ac_ext >&5
9414:
1.35 moko 9415: lt_cv_irix_exported_symbol=no
1.15 paf 9416: fi
1.35 moko 9417: rm -f conftest.err conftest.$ac_objext \
9418: conftest$ac_exeext conftest.$ac_ext
9419: LDFLAGS="$save_LDFLAGS"
1.1 parser 9420: fi
1.35 moko 9421: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9422: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9423: if test "$lt_cv_irix_exported_symbol" = yes; then
9424: 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'
9425: fi
9426: else
9427: 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'
9428: 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'
9429: fi
9430: archive_cmds_need_lc='no'
9431: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432: hardcode_libdir_separator=:
9433: inherit_rpath=yes
9434: link_all_deplibs=yes
9435: ;;
9436:
9437: netbsd*)
9438: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9439: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9440: else
9441: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9442: fi
9443: hardcode_libdir_flag_spec='-R$libdir'
9444: hardcode_direct=yes
9445: hardcode_shlibpath_var=no
9446: ;;
9447:
9448: newsos6)
9449: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450: hardcode_direct=yes
9451: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9452: hardcode_libdir_separator=:
9453: hardcode_shlibpath_var=no
9454: ;;
9455:
9456: *nto* | *qnx*)
9457: ;;
1.1 parser 9458:
1.35 moko 9459: openbsd*)
9460: if test -f /usr/libexec/ld.so; then
9461: hardcode_direct=yes
9462: hardcode_shlibpath_var=no
9463: hardcode_direct_absolute=yes
9464: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9465: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9466: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9467: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9468: export_dynamic_flag_spec='${wl}-E'
9469: else
9470: case $host_os in
9471: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9472: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9473: hardcode_libdir_flag_spec='-R$libdir'
9474: ;;
9475: *)
9476: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9477: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9478: ;;
9479: esac
9480: fi
9481: else
9482: ld_shlibs=no
9483: fi
9484: ;;
1.1 parser 9485:
1.35 moko 9486: os2*)
9487: hardcode_libdir_flag_spec='-L$libdir'
9488: hardcode_minus_L=yes
9489: allow_undefined_flag=unsupported
9490: 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'
9491: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9492: ;;
1.1 parser 9493:
1.35 moko 9494: osf3*)
9495: if test "$GCC" = yes; then
9496: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9497: 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'
9498: else
9499: allow_undefined_flag=' -expect_unresolved \*'
9500: 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'
9501: fi
9502: archive_cmds_need_lc='no'
9503: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504: hardcode_libdir_separator=:
9505: ;;
1.1 parser 9506:
1.35 moko 9507: osf4* | osf5*) # as osf3* with the addition of -msym flag
9508: if test "$GCC" = yes; then
9509: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9510: 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'
9511: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512: else
9513: allow_undefined_flag=' -expect_unresolved \*'
9514: 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'
9515: 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~
9516: $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'
1.1 parser 9517:
1.35 moko 9518: # Both c and cxx compiler support -rpath directly
9519: hardcode_libdir_flag_spec='-rpath $libdir'
9520: fi
9521: archive_cmds_need_lc='no'
9522: hardcode_libdir_separator=:
9523: ;;
1.1 parser 9524:
1.35 moko 9525: solaris*)
9526: no_undefined_flag=' -z defs'
9527: if test "$GCC" = yes; then
9528: wlarc='${wl}'
9529: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9531: $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'
9532: else
9533: case `$CC -V 2>&1` in
9534: *"Compilers 5.0"*)
9535: wlarc=''
9536: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9538: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9539: ;;
9540: *)
9541: wlarc='${wl}'
9542: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9543: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9544: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9545: ;;
9546: esac
9547: fi
9548: hardcode_libdir_flag_spec='-R$libdir'
9549: hardcode_shlibpath_var=no
9550: case $host_os in
9551: solaris2.[0-5] | solaris2.[0-5].*) ;;
9552: *)
9553: # The compiler driver will combine and reorder linker options,
9554: # but understands `-z linker_flag'. GCC discards it without `$wl',
9555: # but is careful enough not to reorder.
9556: # Supported since Solaris 2.6 (maybe 2.5.1?)
9557: if test "$GCC" = yes; then
9558: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9559: else
9560: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9561: fi
9562: ;;
9563: esac
9564: link_all_deplibs=yes
9565: ;;
9566:
9567: sunos4*)
9568: if test "x$host_vendor" = xsequent; then
9569: # Use $CC to link under sequent, because it throws in some extra .o
9570: # files that make .init and .fini sections work.
9571: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9572: else
9573: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9574: fi
9575: hardcode_libdir_flag_spec='-L$libdir'
9576: hardcode_direct=yes
9577: hardcode_minus_L=yes
9578: hardcode_shlibpath_var=no
9579: ;;
9580:
9581: sysv4)
9582: case $host_vendor in
9583: sni)
9584: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585: hardcode_direct=yes # is this really true???
9586: ;;
9587: siemens)
9588: ## LD is ld it makes a PLAMLIB
9589: ## CC just makes a GrossModule.
9590: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9591: reload_cmds='$CC -r -o $output$reload_objs'
9592: hardcode_direct=no
9593: ;;
9594: motorola)
9595: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9597: ;;
9598: esac
9599: runpath_var='LD_RUN_PATH'
9600: hardcode_shlibpath_var=no
9601: ;;
9602:
9603: sysv4.3*)
9604: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605: hardcode_shlibpath_var=no
9606: export_dynamic_flag_spec='-Bexport'
9607: ;;
9608:
9609: sysv4*MP*)
9610: if test -d /usr/nec; then
9611: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612: hardcode_shlibpath_var=no
9613: runpath_var=LD_RUN_PATH
9614: hardcode_runpath_var=yes
9615: ld_shlibs=yes
9616: fi
9617: ;;
9618:
9619: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9620: no_undefined_flag='${wl}-z,text'
9621: archive_cmds_need_lc=no
9622: hardcode_shlibpath_var=no
9623: runpath_var='LD_RUN_PATH'
9624:
9625: if test "$GCC" = yes; then
9626: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628: else
9629: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631: fi
9632: ;;
1.15 paf 9633:
1.35 moko 9634: sysv5* | sco3.2v5* | sco5v6*)
9635: # Note: We can NOT use -z defs as we might desire, because we do not
9636: # link with -lc, and that would cause any symbols used from libc to
9637: # always be unresolved, which means just about no library would
9638: # ever link correctly. If we're not using GNU ld we use -z text
9639: # though, which does catch some bad symbols but isn't as heavy-handed
9640: # as -z defs.
9641: no_undefined_flag='${wl}-z,text'
9642: allow_undefined_flag='${wl}-z,nodefs'
9643: archive_cmds_need_lc=no
9644: hardcode_shlibpath_var=no
9645: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9646: hardcode_libdir_separator=':'
9647: link_all_deplibs=yes
9648: export_dynamic_flag_spec='${wl}-Bexport'
9649: runpath_var='LD_RUN_PATH'
9650:
9651: if test "$GCC" = yes; then
9652: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9654: else
9655: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657: fi
9658: ;;
1.15 paf 9659:
1.35 moko 9660: uts4*)
9661: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662: hardcode_libdir_flag_spec='-L$libdir'
9663: hardcode_shlibpath_var=no
1.15 paf 9664: ;;
1.35 moko 9665:
1.15 paf 9666: *)
1.35 moko 9667: ld_shlibs=no
1.15 paf 9668: ;;
1.35 moko 9669: esac
9670:
9671: if test x$host_vendor = xsni; then
9672: case $host in
9673: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9674: export_dynamic_flag_spec='${wl}-Blargedynsym'
9675: ;;
9676: esac
9677: fi
1.1 parser 9678: fi
9679:
1.35 moko 9680: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9681: echo "${ECHO_T}$ld_shlibs" >&6
9682: test "$ld_shlibs" = no && can_build_shared=no
9683:
9684: with_gnu_ld=$with_gnu_ld
1.1 parser 9685:
9686:
1.15 paf 9687:
9688:
9689:
1.1 parser 9690:
9691:
1.15 paf 9692:
9693:
9694:
9695:
9696:
9697:
9698:
9699:
1.35 moko 9700: #
9701: # Do we need to explicitly link libc?
9702: #
9703: case "x$archive_cmds_need_lc" in
9704: x|xyes)
9705: # Assume -lc should be added
9706: archive_cmds_need_lc=yes
9707:
9708: if test "$enable_shared" = yes && test "$GCC" = yes; then
9709: case $archive_cmds in
9710: *'~'*)
9711: # FIXME: we may have to deal with multi-command sequences.
9712: ;;
9713: '$CC '*)
9714: # Test whether the compiler implicitly links with -lc since on some
9715: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9716: # to ld, don't add -lc before -lgcc.
9717: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9718: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9719: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9720: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 9721: else
1.35 moko 9722: $RM conftest*
9723: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9724:
9725: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726: (eval $ac_compile) 2>&5
9727: ac_status=$?
9728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729: (exit $ac_status); } 2>conftest.err; then
9730: soname=conftest
9731: lib=conftest
9732: libobjs=conftest.$ac_objext
9733: deplibs=
9734: wl=$lt_prog_compiler_wl
9735: pic_flag=$lt_prog_compiler_pic
9736: compiler_flags=-v
9737: linker_flags=-v
9738: verstring=
9739: output_objdir=.
9740: libname=conftest
9741: lt_save_allow_undefined_flag=$allow_undefined_flag
9742: allow_undefined_flag=
9743: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9744: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9745: ac_status=$?
9746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747: (exit $ac_status); }
9748: then
9749: lt_cv_archive_cmds_need_lc=no
9750: else
9751: lt_cv_archive_cmds_need_lc=yes
9752: fi
9753: allow_undefined_flag=$lt_save_allow_undefined_flag
9754: else
9755: cat conftest.err 1>&5
9756: fi
9757: $RM conftest*
9758:
1.15 paf 9759: fi
1.35 moko 9760: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9761: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9762: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9763: ;;
9764: esac
9765: fi
9766: ;;
9767: esac
9768:
9769:
9770:
9771:
9772:
9773:
9774:
9775:
9776:
9777:
9778:
9779:
9780:
9781:
9782:
9783:
9784:
9785:
9786:
9787:
9788:
9789:
9790:
9791:
9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
1.15 paf 9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
1.1 parser 9868:
1.15 paf 9869:
9870:
9871:
9872:
9873:
1.1 parser 9874:
1.15 paf 9875:
9876:
9877:
9878:
1.1 parser 9879:
1.15 paf 9880:
9881:
9882:
9883:
1.1 parser 9884:
9885:
9886:
9887:
9888:
9889:
9890:
1.15 paf 9891:
9892:
9893:
1.25 paf 9894:
1.15 paf 9895:
9896:
1.1 parser 9897:
1.15 paf 9898:
9899:
9900:
1.1 parser 9901:
9902:
9903:
9904:
1.15 paf 9905:
9906:
1.1 parser 9907:
1.15 paf 9908:
9909:
9910:
9911:
1.1 parser 9912:
1.25 paf 9913:
1.15 paf 9914:
9915:
1.25 paf 9916:
1.15 paf 9917:
9918:
1.35 moko 9919:
9920: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9921: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9922:
9923: if test "$GCC" = yes; then
9924: case $host_os in
9925: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9926: *) lt_awk_arg="/^libraries:/" ;;
9927: esac
9928: case $host_os in
9929: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9930: *) lt_sed_strip_eq="s,=/,/,g" ;;
9931: esac
9932: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9933: case $lt_search_path_spec in
9934: *\;*)
9935: # if the path contains ";" then we assume it to be the separator
9936: # otherwise default to the standard path separator (i.e. ":") - it is
9937: # assumed that no part of a normal pathname contains ";" but that should
9938: # okay in the real world where ";" in dirpaths is itself problematic.
9939: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9940: ;;
9941: *)
9942: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9943: ;;
9944: esac
9945: # Ok, now we have the path, separated by spaces, we can step through it
9946: # and add multilib dir if necessary.
9947: lt_tmp_lt_search_path_spec=
9948: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9949: for lt_sys_path in $lt_search_path_spec; do
9950: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9951: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9952: else
9953: test -d "$lt_sys_path" && \
9954: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9955: fi
9956: done
9957: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9958: BEGIN {RS=" "; FS="/|\n";} {
9959: lt_foo="";
9960: lt_count=0;
9961: for (lt_i = NF; lt_i > 0; lt_i--) {
9962: if ($lt_i != "" && $lt_i != ".") {
9963: if ($lt_i == "..") {
9964: lt_count++;
9965: } else {
9966: if (lt_count == 0) {
9967: lt_foo="/" $lt_i lt_foo;
9968: } else {
9969: lt_count--;
9970: }
9971: }
9972: }
9973: }
9974: if (lt_foo != "") { lt_freq[lt_foo]++; }
9975: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9976: }'`
9977: # AWK program above erroneously prepends '/' to C:/dos/paths
9978: # for these hosts.
9979: case $host_os in
9980: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9981: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9982: esac
9983: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9984: else
9985: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9986: fi
9987: library_names_spec=
9988: libname_spec='lib$name'
9989: soname_spec=
9990: shrext_cmds=".so"
9991: postinstall_cmds=
9992: postuninstall_cmds=
9993: finish_cmds=
9994: finish_eval=
9995: shlibpath_var=
9996: shlibpath_overrides_runpath=unknown
9997: version_type=none
9998: dynamic_linker="$host_os ld.so"
9999: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10000: need_lib_prefix=unknown
10001: hardcode_into_libs=no
10002:
10003: # when you set need_version to no, make sure it does not cause -set_version
10004: # flags to be left without arguments
10005: need_version=unknown
10006:
10007: case $host_os in
10008: aix3*)
10009: version_type=linux # correct to gnu/linux during the next big refactor
10010: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10011: shlibpath_var=LIBPATH
10012:
10013: # AIX 3 has no versioning support, so we append a major version to the name.
10014: soname_spec='${libname}${release}${shared_ext}$major'
10015: ;;
10016:
10017: aix[4-9]*)
10018: version_type=linux # correct to gnu/linux during the next big refactor
10019: need_lib_prefix=no
10020: need_version=no
10021: hardcode_into_libs=yes
10022: if test "$host_cpu" = ia64; then
10023: # AIX 5 supports IA64
10024: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10025: shlibpath_var=LD_LIBRARY_PATH
1.15 paf 10026: else
1.35 moko 10027: # With GCC up to 2.95.x, collect2 would create an import file
10028: # for dependence libraries. The import file would start with
10029: # the line `#! .'. This would cause the generated library to
10030: # depend on `.', always an invalid library. This was fixed in
10031: # development snapshots of GCC prior to 3.0.
10032: case $host_os in
10033: aix4 | aix4.[01] | aix4.[01].*)
10034: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10035: echo ' yes '
10036: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10037: :
10038: else
10039: can_build_shared=no
10040: fi
10041: ;;
10042: esac
10043: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10044: # soname into executable. Probably we can add versioning support to
10045: # collect2, so additional links can be useful in future.
10046: if test "$aix_use_runtimelinking" = yes; then
10047: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10048: # instead of lib<name>.a to let people know that these are not
10049: # typical AIX shared libraries.
10050: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051: else
10052: # We preserve .a as extension for shared libraries through AIX4.2
10053: # and later when we are not doing run time linking.
10054: library_names_spec='${libname}${release}.a $libname.a'
10055: soname_spec='${libname}${release}${shared_ext}$major'
10056: fi
10057: shlibpath_var=LIBPATH
1.15 paf 10058: fi
1.35 moko 10059: ;;
10060:
10061: amigaos*)
10062: case $host_cpu in
10063: powerpc)
10064: # Since July 2007 AmigaOS4 officially supports .so libraries.
10065: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10066: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067: ;;
10068: m68k)
10069: library_names_spec='$libname.ixlibrary $libname.a'
10070: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10071: 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'
10072: ;;
10073: esac
10074: ;;
10075:
10076: beos*)
10077: library_names_spec='${libname}${shared_ext}'
10078: dynamic_linker="$host_os ld.so"
10079: shlibpath_var=LIBRARY_PATH
10080: ;;
10081:
10082: bsdi[45]*)
10083: version_type=linux # correct to gnu/linux during the next big refactor
10084: need_version=no
10085: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086: soname_spec='${libname}${release}${shared_ext}$major'
10087: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10088: shlibpath_var=LD_LIBRARY_PATH
10089: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10090: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10091: # the default ld.so.conf also contains /usr/contrib/lib and
10092: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10093: # libtool to hard-code these into programs
10094: ;;
10095:
10096: cygwin* | mingw* | pw32* | cegcc*)
10097: version_type=windows
10098: shrext_cmds=".dll"
10099: need_version=no
10100: need_lib_prefix=no
10101:
10102: case $GCC,$cc_basename in
10103: yes,*)
10104: # gcc
10105: library_names_spec='$libname.dll.a'
10106: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10107: postinstall_cmds='base_file=`basename \${file}`~
10108: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10109: dldir=$destdir/`dirname \$dlpath`~
10110: test -d \$dldir || mkdir -p \$dldir~
10111: $install_prog $dir/$dlname \$dldir/$dlname~
10112: chmod a+x \$dldir/$dlname~
10113: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10114: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10115: fi'
10116: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10117: dlpath=$dir/\$dldll~
10118: $RM \$dlpath'
10119: shlibpath_overrides_runpath=yes
10120:
10121: case $host_os in
10122: cygwin*)
10123: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10124: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10125:
10126: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10127: ;;
10128: mingw* | cegcc*)
10129: # MinGW DLLs use traditional 'lib' prefix
10130: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10131: ;;
10132: pw32*)
10133: # pw32 DLLs use 'pw' prefix rather than 'lib'
10134: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10135: ;;
10136: esac
10137: dynamic_linker='Win32 ld.exe'
10138: ;;
10139:
10140: *,cl*)
10141: # Native MSVC
10142: libname_spec='$name'
10143: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10144: library_names_spec='${libname}.dll.lib'
10145:
10146: case $build_os in
10147: mingw*)
10148: sys_lib_search_path_spec=
10149: lt_save_ifs=$IFS
10150: IFS=';'
10151: for lt_path in $LIB
10152: do
10153: IFS=$lt_save_ifs
10154: # Let DOS variable expansion print the short 8.3 style file name.
10155: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10156: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10157: done
10158: IFS=$lt_save_ifs
10159: # Convert to MSYS style.
10160: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10161: ;;
10162: cygwin*)
10163: # Convert to unix form, then to dos form, then back to unix form
10164: # but this time dos style (no spaces!) so that the unix form looks
10165: # like /cygdrive/c/PROGRA~1:/cygdr...
10166: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10167: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10168: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10169: ;;
10170: *)
10171: sys_lib_search_path_spec="$LIB"
10172: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10173: # It is most probably a Windows format PATH.
10174: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10175: else
10176: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10177: fi
10178: # FIXME: find the short name or the path components, as spaces are
10179: # common. (e.g. "Program Files" -> "PROGRA~1")
10180: ;;
10181: esac
10182:
10183: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10184: postinstall_cmds='base_file=`basename \${file}`~
10185: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10186: dldir=$destdir/`dirname \$dlpath`~
10187: test -d \$dldir || mkdir -p \$dldir~
10188: $install_prog $dir/$dlname \$dldir/$dlname'
10189: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10190: dlpath=$dir/\$dldll~
10191: $RM \$dlpath'
10192: shlibpath_overrides_runpath=yes
10193: dynamic_linker='Win32 link.exe'
10194: ;;
10195:
10196: *)
10197: # Assume MSVC wrapper
10198: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10199: dynamic_linker='Win32 ld.exe'
10200: ;;
10201: esac
10202: # FIXME: first we should search . and the directory the executable is in
10203: shlibpath_var=PATH
10204: ;;
10205:
10206: darwin* | rhapsody*)
10207: dynamic_linker="$host_os dyld"
10208: version_type=darwin
10209: need_lib_prefix=no
10210: need_version=no
10211: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10212: soname_spec='${libname}${release}${major}$shared_ext'
10213: shlibpath_overrides_runpath=yes
10214: shlibpath_var=DYLD_LIBRARY_PATH
10215: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10216:
10217: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10218: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10219: ;;
10220:
10221: dgux*)
10222: version_type=linux # correct to gnu/linux during the next big refactor
10223: need_lib_prefix=no
10224: need_version=no
10225: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10226: soname_spec='${libname}${release}${shared_ext}$major'
10227: shlibpath_var=LD_LIBRARY_PATH
10228: ;;
10229:
10230: freebsd* | dragonfly*)
10231: # DragonFly does not have aout. When/if they implement a new
10232: # versioning mechanism, adjust this.
10233: if test -x /usr/bin/objformat; then
10234: objformat=`/usr/bin/objformat`
1.15 paf 10235: else
1.35 moko 10236: case $host_os in
10237: freebsd[23].*) objformat=aout ;;
10238: *) objformat=elf ;;
10239: esac
10240: fi
10241: version_type=freebsd-$objformat
10242: case $version_type in
10243: freebsd-elf*)
10244: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10245: need_version=no
10246: need_lib_prefix=no
10247: ;;
10248: freebsd-*)
10249: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10250: need_version=yes
10251: ;;
10252: esac
10253: shlibpath_var=LD_LIBRARY_PATH
10254: case $host_os in
10255: freebsd2.*)
10256: shlibpath_overrides_runpath=yes
10257: ;;
10258: freebsd3.[01]* | freebsdelf3.[01]*)
10259: shlibpath_overrides_runpath=yes
10260: hardcode_into_libs=yes
10261: ;;
10262: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10263: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10264: shlibpath_overrides_runpath=no
10265: hardcode_into_libs=yes
10266: ;;
10267: *) # from 4.6 on, and DragonFly
10268: shlibpath_overrides_runpath=yes
10269: hardcode_into_libs=yes
10270: ;;
10271: esac
10272: ;;
10273:
10274: gnu*)
10275: version_type=linux # correct to gnu/linux during the next big refactor
10276: need_lib_prefix=no
10277: need_version=no
10278: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10279: soname_spec='${libname}${release}${shared_ext}$major'
10280: shlibpath_var=LD_LIBRARY_PATH
10281: shlibpath_overrides_runpath=no
10282: hardcode_into_libs=yes
10283: ;;
10284:
10285: haiku*)
10286: version_type=linux # correct to gnu/linux during the next big refactor
10287: need_lib_prefix=no
10288: need_version=no
10289: dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10293: shlibpath_overrides_runpath=yes
10294: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10295: hardcode_into_libs=yes
10296: ;;
10297:
10298: hpux9* | hpux10* | hpux11*)
10299: # Give a soname corresponding to the major version so that dld.sl refuses to
10300: # link against other versions.
10301: version_type=sunos
10302: need_lib_prefix=no
10303: need_version=no
10304: case $host_cpu in
10305: ia64*)
10306: shrext_cmds='.so'
10307: hardcode_into_libs=yes
10308: dynamic_linker="$host_os dld.so"
10309: shlibpath_var=LD_LIBRARY_PATH
10310: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10311: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312: soname_spec='${libname}${release}${shared_ext}$major'
10313: if test "X$HPUX_IA64_MODE" = X32; then
10314: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10315: else
10316: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10317: fi
10318: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10319: ;;
10320: hppa*64*)
10321: shrext_cmds='.sl'
10322: hardcode_into_libs=yes
10323: dynamic_linker="$host_os dld.sl"
10324: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10325: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10326: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327: soname_spec='${libname}${release}${shared_ext}$major'
10328: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10329: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10330: ;;
10331: *)
10332: shrext_cmds='.sl'
10333: dynamic_linker="$host_os dld.sl"
10334: shlibpath_var=SHLIB_PATH
10335: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10336: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337: soname_spec='${libname}${release}${shared_ext}$major'
10338: ;;
10339: esac
10340: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10341: postinstall_cmds='chmod 555 $lib'
10342: # or fails outright, so override atomically:
10343: install_override_mode=555
10344: ;;
10345:
10346: interix[3-9]*)
10347: version_type=linux # correct to gnu/linux during the next big refactor
10348: need_lib_prefix=no
10349: need_version=no
10350: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10351: soname_spec='${libname}${release}${shared_ext}$major'
10352: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10353: shlibpath_var=LD_LIBRARY_PATH
10354: shlibpath_overrides_runpath=no
10355: hardcode_into_libs=yes
10356: ;;
10357:
10358: irix5* | irix6* | nonstopux*)
10359: case $host_os in
10360: nonstopux*) version_type=nonstopux ;;
10361: *)
10362: if test "$lt_cv_prog_gnu_ld" = yes; then
10363: version_type=linux # correct to gnu/linux during the next big refactor
10364: else
10365: version_type=irix
10366: fi ;;
10367: esac
10368: need_lib_prefix=no
10369: need_version=no
10370: soname_spec='${libname}${release}${shared_ext}$major'
10371: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10372: case $host_os in
10373: irix5* | nonstopux*)
10374: libsuff= shlibsuff=
10375: ;;
10376: *)
10377: case $LD in # libtool.m4 will add one of these switches to LD
10378: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10379: libsuff= shlibsuff= libmagic=32-bit;;
10380: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10381: libsuff=32 shlibsuff=N32 libmagic=N32;;
10382: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10383: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10384: *) libsuff= shlibsuff= libmagic=never-match;;
10385: esac
10386: ;;
10387: esac
10388: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10389: shlibpath_overrides_runpath=no
10390: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10391: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10392: hardcode_into_libs=yes
10393: ;;
10394:
10395: # No shared lib support for Linux oldld, aout, or coff.
10396: linux*oldld* | linux*aout* | linux*coff*)
10397: dynamic_linker=no
10398: ;;
10399:
10400: # This must be glibc/ELF.
10401: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10402: version_type=linux # correct to gnu/linux during the next big refactor
10403: need_lib_prefix=no
10404: need_version=no
10405: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406: soname_spec='${libname}${release}${shared_ext}$major'
10407: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10408: shlibpath_var=LD_LIBRARY_PATH
10409: shlibpath_overrides_runpath=no
10410:
10411: # Some binutils ld are patched to set DT_RUNPATH
10412: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10413: echo $ECHO_N "(cached) $ECHO_C" >&6
10414: else
10415: lt_cv_shlibpath_overrides_runpath=no
10416: save_LDFLAGS=$LDFLAGS
10417: save_libdir=$libdir
10418: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10419: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10420: cat >conftest.$ac_ext <<_ACEOF
10421: /* confdefs.h. */
10422: _ACEOF
10423: cat confdefs.h >>conftest.$ac_ext
10424: cat >>conftest.$ac_ext <<_ACEOF
10425: /* end confdefs.h. */
10426:
10427: int
10428: main ()
10429: {
10430:
10431: ;
10432: return 0;
10433: }
10434: _ACEOF
10435: rm -f conftest.$ac_objext conftest$ac_exeext
10436: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10437: (eval $ac_link) 2>conftest.er1
10438: ac_status=$?
10439: grep -v '^ *+' conftest.er1 >conftest.err
10440: rm -f conftest.er1
10441: cat conftest.err >&5
10442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443: (exit $ac_status); } &&
10444: { ac_try='test -z "$ac_c_werror_flag"
10445: || test ! -s conftest.err'
10446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447: (eval $ac_try) 2>&5
10448: ac_status=$?
10449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450: (exit $ac_status); }; } &&
10451: { ac_try='test -s conftest$ac_exeext'
10452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453: (eval $ac_try) 2>&5
10454: ac_status=$?
10455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456: (exit $ac_status); }; }; then
10457: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10458: lt_cv_shlibpath_overrides_runpath=yes
10459: fi
10460:
10461: else
10462: echo "$as_me: failed program was:" >&5
10463: sed 's/^/| /' conftest.$ac_ext >&5
10464:
10465: fi
10466: rm -f conftest.err conftest.$ac_objext \
10467: conftest$ac_exeext conftest.$ac_ext
10468: LDFLAGS=$save_LDFLAGS
10469: libdir=$save_libdir
10470:
10471: fi
10472:
10473: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10474:
10475: # This implies no fast_install, which is unacceptable.
10476: # Some rework will be needed to allow for fast_install
10477: # before this can be enabled.
10478: hardcode_into_libs=yes
10479:
10480: # Append ld.so.conf contents to the search path
10481: if test -f /etc/ld.so.conf; then
10482: 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' ' '`
10483: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10484: fi
10485:
10486: # We used to test for /lib/ld.so.1 and disable shared libraries on
10487: # powerpc, because MkLinux only supported shared libraries with the
10488: # GNU dynamic linker. Since this was broken with cross compilers,
10489: # most powerpc-linux boxes support dynamic linking these days and
10490: # people can always --disable-shared, the test was removed, and we
10491: # assume the GNU/Linux dynamic linker is in use.
10492: dynamic_linker='GNU/Linux ld.so'
10493: ;;
10494:
10495: netbsd*)
10496: version_type=sunos
10497: need_lib_prefix=no
10498: need_version=no
10499: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10500: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10501: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10502: dynamic_linker='NetBSD (a.out) ld.so'
10503: else
10504: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10505: soname_spec='${libname}${release}${shared_ext}$major'
10506: dynamic_linker='NetBSD ld.elf_so'
10507: fi
10508: shlibpath_var=LD_LIBRARY_PATH
10509: shlibpath_overrides_runpath=yes
10510: hardcode_into_libs=yes
10511: ;;
10512:
10513: newsos6)
10514: version_type=linux # correct to gnu/linux during the next big refactor
10515: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516: shlibpath_var=LD_LIBRARY_PATH
10517: shlibpath_overrides_runpath=yes
10518: ;;
10519:
10520: *nto* | *qnx*)
10521: version_type=qnx
10522: need_lib_prefix=no
10523: need_version=no
10524: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525: soname_spec='${libname}${release}${shared_ext}$major'
10526: shlibpath_var=LD_LIBRARY_PATH
10527: shlibpath_overrides_runpath=no
10528: hardcode_into_libs=yes
10529: dynamic_linker='ldqnx.so'
10530: ;;
10531:
10532: openbsd*)
10533: version_type=sunos
10534: sys_lib_dlsearch_path_spec="/usr/lib"
10535: need_lib_prefix=no
10536: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10537: case $host_os in
10538: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10539: *) need_version=no ;;
10540: esac
10541: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10542: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10543: shlibpath_var=LD_LIBRARY_PATH
10544: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10545: case $host_os in
10546: openbsd2.[89] | openbsd2.[89].*)
10547: shlibpath_overrides_runpath=no
10548: ;;
10549: *)
10550: shlibpath_overrides_runpath=yes
10551: ;;
10552: esac
10553: else
10554: shlibpath_overrides_runpath=yes
10555: fi
10556: ;;
10557:
10558: os2*)
10559: libname_spec='$name'
10560: shrext_cmds=".dll"
10561: need_lib_prefix=no
10562: library_names_spec='$libname${shared_ext} $libname.a'
10563: dynamic_linker='OS/2 ld.exe'
10564: shlibpath_var=LIBPATH
10565: ;;
10566:
10567: osf3* | osf4* | osf5*)
10568: version_type=osf
10569: need_lib_prefix=no
10570: need_version=no
10571: soname_spec='${libname}${release}${shared_ext}$major'
10572: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573: shlibpath_var=LD_LIBRARY_PATH
10574: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10575: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10576: ;;
10577:
10578: rdos*)
10579: dynamic_linker=no
10580: ;;
10581:
10582: solaris*)
10583: version_type=linux # correct to gnu/linux during the next big refactor
10584: need_lib_prefix=no
10585: need_version=no
10586: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587: soname_spec='${libname}${release}${shared_ext}$major'
10588: shlibpath_var=LD_LIBRARY_PATH
10589: shlibpath_overrides_runpath=yes
10590: hardcode_into_libs=yes
10591: # ldd complains unless libraries are executable
10592: postinstall_cmds='chmod +x $lib'
10593: ;;
10594:
10595: sunos4*)
10596: version_type=sunos
10597: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10598: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10599: shlibpath_var=LD_LIBRARY_PATH
10600: shlibpath_overrides_runpath=yes
10601: if test "$with_gnu_ld" = yes; then
10602: need_lib_prefix=no
10603: fi
10604: need_version=yes
10605: ;;
10606:
10607: sysv4 | sysv4.3*)
10608: version_type=linux # correct to gnu/linux during the next big refactor
10609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610: soname_spec='${libname}${release}${shared_ext}$major'
10611: shlibpath_var=LD_LIBRARY_PATH
10612: case $host_vendor in
10613: sni)
10614: shlibpath_overrides_runpath=no
10615: need_lib_prefix=no
10616: runpath_var=LD_RUN_PATH
10617: ;;
10618: siemens)
10619: need_lib_prefix=no
10620: ;;
10621: motorola)
10622: need_lib_prefix=no
10623: need_version=no
10624: shlibpath_overrides_runpath=no
10625: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10626: ;;
10627: esac
10628: ;;
10629:
10630: sysv4*MP*)
10631: if test -d /usr/nec ;then
10632: version_type=linux # correct to gnu/linux during the next big refactor
10633: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10634: soname_spec='$libname${shared_ext}.$major'
10635: shlibpath_var=LD_LIBRARY_PATH
10636: fi
10637: ;;
10638:
10639: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10640: version_type=freebsd-elf
10641: need_lib_prefix=no
10642: need_version=no
10643: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10644: soname_spec='${libname}${release}${shared_ext}$major'
10645: shlibpath_var=LD_LIBRARY_PATH
10646: shlibpath_overrides_runpath=yes
10647: hardcode_into_libs=yes
10648: if test "$with_gnu_ld" = yes; then
10649: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10650: else
10651: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10652: case $host_os in
10653: sco3.2v5*)
10654: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10655: ;;
10656: esac
10657: fi
10658: sys_lib_dlsearch_path_spec='/usr/lib'
10659: ;;
10660:
10661: tpf*)
10662: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10663: version_type=linux # correct to gnu/linux during the next big refactor
10664: need_lib_prefix=no
10665: need_version=no
10666: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667: shlibpath_var=LD_LIBRARY_PATH
10668: shlibpath_overrides_runpath=no
10669: hardcode_into_libs=yes
10670: ;;
10671:
10672: uts4*)
10673: version_type=linux # correct to gnu/linux during the next big refactor
10674: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675: soname_spec='${libname}${release}${shared_ext}$major'
10676: shlibpath_var=LD_LIBRARY_PATH
10677: ;;
10678:
10679: *)
10680: dynamic_linker=no
10681: ;;
10682: esac
10683: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10684: echo "${ECHO_T}$dynamic_linker" >&6
10685: test "$dynamic_linker" = no && can_build_shared=no
10686:
10687: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10688: if test "$GCC" = yes; then
10689: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10690: fi
10691:
10692: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10693: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10694: fi
10695: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10696: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10697: fi
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
10788:
10789:
10790: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10791: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10792: hardcode_action=
10793: if test -n "$hardcode_libdir_flag_spec" ||
10794: test -n "$runpath_var" ||
10795: test "X$hardcode_automatic" = "Xyes" ; then
10796:
10797: # We can hardcode non-existent directories.
10798: if test "$hardcode_direct" != no &&
10799: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10800: # have to relink, otherwise we might link with an installed library
10801: # when we should be linking with a yet-to-be-installed one
10802: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10803: test "$hardcode_minus_L" != no; then
10804: # Linking always hardcodes the temporary library directory.
10805: hardcode_action=relink
10806: else
10807: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10808: hardcode_action=immediate
10809: fi
10810: else
10811: # We cannot hardcode anything, or else we can only hardcode existing
10812: # directories.
10813: hardcode_action=unsupported
10814: fi
10815: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10816: echo "${ECHO_T}$hardcode_action" >&6
10817:
10818: if test "$hardcode_action" = relink ||
10819: test "$inherit_rpath" = yes; then
10820: # Fast installation is not supported
10821: enable_fast_install=no
10822: elif test "$shlibpath_overrides_runpath" = yes ||
10823: test "$enable_shared" = no; then
10824: # Fast installation is not necessary
10825: enable_fast_install=needless
10826: fi
10827:
10828:
10829:
10830:
10831:
10832:
10833: if test "x$enable_dlopen" != xyes; then
10834: enable_dlopen=unknown
10835: enable_dlopen_self=unknown
10836: enable_dlopen_self_static=unknown
10837: else
10838: lt_cv_dlopen=no
10839: lt_cv_dlopen_libs=
10840:
10841: case $host_os in
10842: beos*)
10843: lt_cv_dlopen="load_add_on"
10844: lt_cv_dlopen_libs=
10845: lt_cv_dlopen_self=yes
10846: ;;
10847:
10848: mingw* | pw32* | cegcc*)
10849: lt_cv_dlopen="LoadLibrary"
10850: lt_cv_dlopen_libs=
10851: ;;
10852:
10853: cygwin*)
10854: lt_cv_dlopen="dlopen"
10855: lt_cv_dlopen_libs=
10856: ;;
10857:
10858: darwin*)
10859: # if libdl is installed we need to link against it
10860: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10861: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10862: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10863: echo $ECHO_N "(cached) $ECHO_C" >&6
10864: else
10865: ac_check_lib_save_LIBS=$LIBS
10866: LIBS="-ldl $LIBS"
10867: cat >conftest.$ac_ext <<_ACEOF
10868: /* confdefs.h. */
10869: _ACEOF
10870: cat confdefs.h >>conftest.$ac_ext
10871: cat >>conftest.$ac_ext <<_ACEOF
10872: /* end confdefs.h. */
10873:
10874: /* Override any gcc2 internal prototype to avoid an error. */
10875: #ifdef __cplusplus
10876: extern "C"
10877: #endif
10878: /* We use char because int might match the return type of a gcc2
10879: builtin and then its argument prototype would still apply. */
10880: char dlopen ();
10881: int
10882: main ()
10883: {
10884: dlopen ();
10885: ;
10886: return 0;
10887: }
10888: _ACEOF
10889: rm -f conftest.$ac_objext conftest$ac_exeext
10890: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891: (eval $ac_link) 2>conftest.er1
10892: ac_status=$?
10893: grep -v '^ *+' conftest.er1 >conftest.err
10894: rm -f conftest.er1
10895: cat conftest.err >&5
10896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897: (exit $ac_status); } &&
10898: { ac_try='test -z "$ac_c_werror_flag"
10899: || test ! -s conftest.err'
10900: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901: (eval $ac_try) 2>&5
10902: ac_status=$?
10903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904: (exit $ac_status); }; } &&
10905: { ac_try='test -s conftest$ac_exeext'
10906: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907: (eval $ac_try) 2>&5
10908: ac_status=$?
10909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910: (exit $ac_status); }; }; then
10911: ac_cv_lib_dl_dlopen=yes
10912: else
10913: echo "$as_me: failed program was:" >&5
10914: sed 's/^/| /' conftest.$ac_ext >&5
10915:
10916: ac_cv_lib_dl_dlopen=no
10917: fi
10918: rm -f conftest.err conftest.$ac_objext \
10919: conftest$ac_exeext conftest.$ac_ext
10920: LIBS=$ac_check_lib_save_LIBS
10921: fi
10922: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10923: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10924: if test $ac_cv_lib_dl_dlopen = yes; then
10925: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10926: else
10927:
10928: lt_cv_dlopen="dyld"
10929: lt_cv_dlopen_libs=
10930: lt_cv_dlopen_self=yes
10931:
10932: fi
10933:
10934: ;;
10935:
10936: *)
10937: echo "$as_me:$LINENO: checking for shl_load" >&5
10938: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10939: if test "${ac_cv_func_shl_load+set}" = set; then
10940: echo $ECHO_N "(cached) $ECHO_C" >&6
10941: else
10942: cat >conftest.$ac_ext <<_ACEOF
10943: /* confdefs.h. */
10944: _ACEOF
10945: cat confdefs.h >>conftest.$ac_ext
10946: cat >>conftest.$ac_ext <<_ACEOF
10947: /* end confdefs.h. */
10948: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10949: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10950: #define shl_load innocuous_shl_load
10951:
10952: /* System header to define __stub macros and hopefully few prototypes,
10953: which can conflict with char shl_load (); below.
10954: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10955: <limits.h> exists even on freestanding compilers. */
10956:
10957: #ifdef __STDC__
10958: # include <limits.h>
10959: #else
10960: # include <assert.h>
10961: #endif
10962:
10963: #undef shl_load
10964:
10965: /* Override any gcc2 internal prototype to avoid an error. */
10966: #ifdef __cplusplus
10967: extern "C"
10968: {
10969: #endif
10970: /* We use char because int might match the return type of a gcc2
10971: builtin and then its argument prototype would still apply. */
10972: char shl_load ();
10973: /* The GNU C library defines this for functions which it implements
10974: to always fail with ENOSYS. Some functions are actually named
10975: something starting with __ and the normal name is an alias. */
10976: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10977: choke me
10978: #else
10979: char (*f) () = shl_load;
10980: #endif
10981: #ifdef __cplusplus
10982: }
10983: #endif
10984:
10985: int
10986: main ()
10987: {
10988: return f != shl_load;
10989: ;
10990: return 0;
10991: }
10992: _ACEOF
10993: rm -f conftest.$ac_objext conftest$ac_exeext
10994: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995: (eval $ac_link) 2>conftest.er1
10996: ac_status=$?
10997: grep -v '^ *+' conftest.er1 >conftest.err
10998: rm -f conftest.er1
10999: cat conftest.err >&5
11000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001: (exit $ac_status); } &&
11002: { ac_try='test -z "$ac_c_werror_flag"
11003: || test ! -s conftest.err'
11004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005: (eval $ac_try) 2>&5
11006: ac_status=$?
11007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008: (exit $ac_status); }; } &&
11009: { ac_try='test -s conftest$ac_exeext'
11010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011: (eval $ac_try) 2>&5
11012: ac_status=$?
11013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014: (exit $ac_status); }; }; then
11015: ac_cv_func_shl_load=yes
11016: else
11017: echo "$as_me: failed program was:" >&5
11018: sed 's/^/| /' conftest.$ac_ext >&5
11019:
11020: ac_cv_func_shl_load=no
11021: fi
11022: rm -f conftest.err conftest.$ac_objext \
11023: conftest$ac_exeext conftest.$ac_ext
11024: fi
11025: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11026: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11027: if test $ac_cv_func_shl_load = yes; then
11028: lt_cv_dlopen="shl_load"
11029: else
11030: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11031: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11032: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11033: echo $ECHO_N "(cached) $ECHO_C" >&6
11034: else
11035: ac_check_lib_save_LIBS=$LIBS
11036: LIBS="-ldld $LIBS"
11037: cat >conftest.$ac_ext <<_ACEOF
11038: /* confdefs.h. */
11039: _ACEOF
11040: cat confdefs.h >>conftest.$ac_ext
11041: cat >>conftest.$ac_ext <<_ACEOF
11042: /* end confdefs.h. */
11043:
11044: /* Override any gcc2 internal prototype to avoid an error. */
11045: #ifdef __cplusplus
11046: extern "C"
11047: #endif
11048: /* We use char because int might match the return type of a gcc2
11049: builtin and then its argument prototype would still apply. */
11050: char shl_load ();
11051: int
11052: main ()
11053: {
11054: shl_load ();
11055: ;
11056: return 0;
11057: }
11058: _ACEOF
11059: rm -f conftest.$ac_objext conftest$ac_exeext
11060: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061: (eval $ac_link) 2>conftest.er1
11062: ac_status=$?
11063: grep -v '^ *+' conftest.er1 >conftest.err
11064: rm -f conftest.er1
11065: cat conftest.err >&5
11066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067: (exit $ac_status); } &&
11068: { ac_try='test -z "$ac_c_werror_flag"
11069: || test ! -s conftest.err'
11070: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071: (eval $ac_try) 2>&5
11072: ac_status=$?
11073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074: (exit $ac_status); }; } &&
11075: { ac_try='test -s conftest$ac_exeext'
11076: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077: (eval $ac_try) 2>&5
11078: ac_status=$?
11079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080: (exit $ac_status); }; }; then
11081: ac_cv_lib_dld_shl_load=yes
11082: else
11083: echo "$as_me: failed program was:" >&5
11084: sed 's/^/| /' conftest.$ac_ext >&5
11085:
11086: ac_cv_lib_dld_shl_load=no
11087: fi
11088: rm -f conftest.err conftest.$ac_objext \
11089: conftest$ac_exeext conftest.$ac_ext
11090: LIBS=$ac_check_lib_save_LIBS
11091: fi
11092: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11093: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11094: if test $ac_cv_lib_dld_shl_load = yes; then
11095: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11096: else
11097: echo "$as_me:$LINENO: checking for dlopen" >&5
11098: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11099: if test "${ac_cv_func_dlopen+set}" = set; then
11100: echo $ECHO_N "(cached) $ECHO_C" >&6
11101: else
11102: cat >conftest.$ac_ext <<_ACEOF
11103: /* confdefs.h. */
11104: _ACEOF
11105: cat confdefs.h >>conftest.$ac_ext
11106: cat >>conftest.$ac_ext <<_ACEOF
11107: /* end confdefs.h. */
11108: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11109: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11110: #define dlopen innocuous_dlopen
11111:
11112: /* System header to define __stub macros and hopefully few prototypes,
11113: which can conflict with char dlopen (); below.
11114: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115: <limits.h> exists even on freestanding compilers. */
11116:
11117: #ifdef __STDC__
11118: # include <limits.h>
11119: #else
11120: # include <assert.h>
11121: #endif
11122:
11123: #undef dlopen
11124:
11125: /* Override any gcc2 internal prototype to avoid an error. */
11126: #ifdef __cplusplus
11127: extern "C"
11128: {
11129: #endif
11130: /* We use char because int might match the return type of a gcc2
11131: builtin and then its argument prototype would still apply. */
11132: char dlopen ();
11133: /* The GNU C library defines this for functions which it implements
11134: to always fail with ENOSYS. Some functions are actually named
11135: something starting with __ and the normal name is an alias. */
11136: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11137: choke me
11138: #else
11139: char (*f) () = dlopen;
11140: #endif
11141: #ifdef __cplusplus
11142: }
11143: #endif
11144:
11145: int
11146: main ()
11147: {
11148: return f != dlopen;
11149: ;
11150: return 0;
11151: }
11152: _ACEOF
11153: rm -f conftest.$ac_objext conftest$ac_exeext
11154: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155: (eval $ac_link) 2>conftest.er1
11156: ac_status=$?
11157: grep -v '^ *+' conftest.er1 >conftest.err
11158: rm -f conftest.er1
11159: cat conftest.err >&5
11160: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161: (exit $ac_status); } &&
11162: { ac_try='test -z "$ac_c_werror_flag"
11163: || test ! -s conftest.err'
11164: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165: (eval $ac_try) 2>&5
11166: ac_status=$?
11167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168: (exit $ac_status); }; } &&
11169: { ac_try='test -s conftest$ac_exeext'
11170: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171: (eval $ac_try) 2>&5
11172: ac_status=$?
11173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174: (exit $ac_status); }; }; then
11175: ac_cv_func_dlopen=yes
11176: else
11177: echo "$as_me: failed program was:" >&5
11178: sed 's/^/| /' conftest.$ac_ext >&5
11179:
11180: ac_cv_func_dlopen=no
11181: fi
11182: rm -f conftest.err conftest.$ac_objext \
11183: conftest$ac_exeext conftest.$ac_ext
11184: fi
11185: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11186: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11187: if test $ac_cv_func_dlopen = yes; then
11188: lt_cv_dlopen="dlopen"
11189: else
11190: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11191: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11192: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11193: echo $ECHO_N "(cached) $ECHO_C" >&6
11194: else
11195: ac_check_lib_save_LIBS=$LIBS
11196: LIBS="-ldl $LIBS"
11197: cat >conftest.$ac_ext <<_ACEOF
11198: /* confdefs.h. */
11199: _ACEOF
11200: cat confdefs.h >>conftest.$ac_ext
11201: cat >>conftest.$ac_ext <<_ACEOF
11202: /* end confdefs.h. */
11203:
11204: /* Override any gcc2 internal prototype to avoid an error. */
11205: #ifdef __cplusplus
11206: extern "C"
11207: #endif
11208: /* We use char because int might match the return type of a gcc2
11209: builtin and then its argument prototype would still apply. */
11210: char dlopen ();
11211: int
11212: main ()
11213: {
11214: dlopen ();
11215: ;
11216: return 0;
11217: }
11218: _ACEOF
11219: rm -f conftest.$ac_objext conftest$ac_exeext
11220: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221: (eval $ac_link) 2>conftest.er1
11222: ac_status=$?
11223: grep -v '^ *+' conftest.er1 >conftest.err
11224: rm -f conftest.er1
11225: cat conftest.err >&5
11226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227: (exit $ac_status); } &&
11228: { ac_try='test -z "$ac_c_werror_flag"
11229: || test ! -s conftest.err'
11230: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231: (eval $ac_try) 2>&5
11232: ac_status=$?
11233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234: (exit $ac_status); }; } &&
11235: { ac_try='test -s conftest$ac_exeext'
11236: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237: (eval $ac_try) 2>&5
11238: ac_status=$?
11239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240: (exit $ac_status); }; }; then
11241: ac_cv_lib_dl_dlopen=yes
11242: else
11243: echo "$as_me: failed program was:" >&5
11244: sed 's/^/| /' conftest.$ac_ext >&5
11245:
11246: ac_cv_lib_dl_dlopen=no
11247: fi
11248: rm -f conftest.err conftest.$ac_objext \
11249: conftest$ac_exeext conftest.$ac_ext
11250: LIBS=$ac_check_lib_save_LIBS
11251: fi
11252: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11253: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11254: if test $ac_cv_lib_dl_dlopen = yes; then
11255: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256: else
11257: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11258: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11259: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11260: echo $ECHO_N "(cached) $ECHO_C" >&6
11261: else
11262: ac_check_lib_save_LIBS=$LIBS
11263: LIBS="-lsvld $LIBS"
11264: cat >conftest.$ac_ext <<_ACEOF
11265: /* confdefs.h. */
11266: _ACEOF
11267: cat confdefs.h >>conftest.$ac_ext
11268: cat >>conftest.$ac_ext <<_ACEOF
11269: /* end confdefs.h. */
11270:
11271: /* Override any gcc2 internal prototype to avoid an error. */
11272: #ifdef __cplusplus
11273: extern "C"
11274: #endif
11275: /* We use char because int might match the return type of a gcc2
11276: builtin and then its argument prototype would still apply. */
11277: char dlopen ();
11278: int
11279: main ()
11280: {
11281: dlopen ();
11282: ;
11283: return 0;
11284: }
11285: _ACEOF
11286: rm -f conftest.$ac_objext conftest$ac_exeext
11287: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288: (eval $ac_link) 2>conftest.er1
11289: ac_status=$?
11290: grep -v '^ *+' conftest.er1 >conftest.err
11291: rm -f conftest.er1
11292: cat conftest.err >&5
11293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294: (exit $ac_status); } &&
11295: { ac_try='test -z "$ac_c_werror_flag"
11296: || test ! -s conftest.err'
11297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298: (eval $ac_try) 2>&5
11299: ac_status=$?
11300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301: (exit $ac_status); }; } &&
11302: { ac_try='test -s conftest$ac_exeext'
11303: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304: (eval $ac_try) 2>&5
11305: ac_status=$?
11306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307: (exit $ac_status); }; }; then
11308: ac_cv_lib_svld_dlopen=yes
11309: else
11310: echo "$as_me: failed program was:" >&5
11311: sed 's/^/| /' conftest.$ac_ext >&5
11312:
11313: ac_cv_lib_svld_dlopen=no
11314: fi
11315: rm -f conftest.err conftest.$ac_objext \
11316: conftest$ac_exeext conftest.$ac_ext
11317: LIBS=$ac_check_lib_save_LIBS
11318: fi
11319: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11320: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11321: if test $ac_cv_lib_svld_dlopen = yes; then
11322: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11323: else
11324: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11325: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11326: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11327: echo $ECHO_N "(cached) $ECHO_C" >&6
11328: else
11329: ac_check_lib_save_LIBS=$LIBS
11330: LIBS="-ldld $LIBS"
11331: cat >conftest.$ac_ext <<_ACEOF
11332: /* confdefs.h. */
11333: _ACEOF
11334: cat confdefs.h >>conftest.$ac_ext
11335: cat >>conftest.$ac_ext <<_ACEOF
11336: /* end confdefs.h. */
11337:
11338: /* Override any gcc2 internal prototype to avoid an error. */
11339: #ifdef __cplusplus
11340: extern "C"
11341: #endif
11342: /* We use char because int might match the return type of a gcc2
11343: builtin and then its argument prototype would still apply. */
11344: char dld_link ();
11345: int
11346: main ()
11347: {
11348: dld_link ();
11349: ;
11350: return 0;
11351: }
11352: _ACEOF
11353: rm -f conftest.$ac_objext conftest$ac_exeext
11354: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355: (eval $ac_link) 2>conftest.er1
11356: ac_status=$?
11357: grep -v '^ *+' conftest.er1 >conftest.err
11358: rm -f conftest.er1
11359: cat conftest.err >&5
11360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361: (exit $ac_status); } &&
11362: { ac_try='test -z "$ac_c_werror_flag"
11363: || test ! -s conftest.err'
11364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365: (eval $ac_try) 2>&5
11366: ac_status=$?
11367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368: (exit $ac_status); }; } &&
11369: { ac_try='test -s conftest$ac_exeext'
11370: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371: (eval $ac_try) 2>&5
11372: ac_status=$?
11373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374: (exit $ac_status); }; }; then
11375: ac_cv_lib_dld_dld_link=yes
11376: else
11377: echo "$as_me: failed program was:" >&5
11378: sed 's/^/| /' conftest.$ac_ext >&5
11379:
11380: ac_cv_lib_dld_dld_link=no
11381: fi
11382: rm -f conftest.err conftest.$ac_objext \
11383: conftest$ac_exeext conftest.$ac_ext
11384: LIBS=$ac_check_lib_save_LIBS
11385: fi
11386: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11387: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11388: if test $ac_cv_lib_dld_dld_link = yes; then
11389: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11390: fi
11391:
11392:
11393: fi
11394:
11395:
11396: fi
11397:
11398:
11399: fi
11400:
11401:
11402: fi
11403:
11404:
11405: fi
11406:
11407: ;;
11408: esac
11409:
11410: if test "x$lt_cv_dlopen" != xno; then
11411: enable_dlopen=yes
11412: else
11413: enable_dlopen=no
11414: fi
11415:
11416: case $lt_cv_dlopen in
11417: dlopen)
11418: save_CPPFLAGS="$CPPFLAGS"
11419: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11420:
11421: save_LDFLAGS="$LDFLAGS"
11422: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11423:
11424: save_LIBS="$LIBS"
11425: LIBS="$lt_cv_dlopen_libs $LIBS"
11426:
11427: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11428: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11429: if test "${lt_cv_dlopen_self+set}" = set; then
11430: echo $ECHO_N "(cached) $ECHO_C" >&6
11431: else
11432: if test "$cross_compiling" = yes; then :
11433: lt_cv_dlopen_self=cross
11434: else
11435: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11436: lt_status=$lt_dlunknown
11437: cat > conftest.$ac_ext <<_LT_EOF
11438: #line $LINENO "configure"
11439: #include "confdefs.h"
11440:
11441: #if HAVE_DLFCN_H
11442: #include <dlfcn.h>
11443: #endif
11444:
11445: #include <stdio.h>
11446:
11447: #ifdef RTLD_GLOBAL
11448: # define LT_DLGLOBAL RTLD_GLOBAL
11449: #else
11450: # ifdef DL_GLOBAL
11451: # define LT_DLGLOBAL DL_GLOBAL
11452: # else
11453: # define LT_DLGLOBAL 0
11454: # endif
11455: #endif
11456:
11457: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11458: find out it does not work in some platform. */
11459: #ifndef LT_DLLAZY_OR_NOW
11460: # ifdef RTLD_LAZY
11461: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11462: # else
11463: # ifdef DL_LAZY
11464: # define LT_DLLAZY_OR_NOW DL_LAZY
11465: # else
11466: # ifdef RTLD_NOW
11467: # define LT_DLLAZY_OR_NOW RTLD_NOW
11468: # else
11469: # ifdef DL_NOW
11470: # define LT_DLLAZY_OR_NOW DL_NOW
11471: # else
11472: # define LT_DLLAZY_OR_NOW 0
11473: # endif
11474: # endif
11475: # endif
11476: # endif
11477: #endif
11478:
11479: /* When -fvisbility=hidden is used, assume the code has been annotated
11480: correspondingly for the symbols needed. */
11481: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11482: int fnord () __attribute__((visibility("default")));
11483: #endif
11484:
11485: int fnord () { return 42; }
11486: int main ()
11487: {
11488: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11489: int status = $lt_dlunknown;
11490:
11491: if (self)
11492: {
11493: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11494: else
11495: {
11496: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11497: else puts (dlerror ());
11498: }
11499: /* dlclose (self); */
11500: }
11501: else
11502: puts (dlerror ());
11503:
11504: return status;
11505: }
11506: _LT_EOF
11507: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508: (eval $ac_link) 2>&5
11509: ac_status=$?
11510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11512: (./conftest; exit; ) >&5 2>/dev/null
11513: lt_status=$?
11514: case x$lt_status in
11515: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11516: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11517: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11518: esac
11519: else :
11520: # compilation failed
11521: lt_cv_dlopen_self=no
11522: fi
11523: fi
11524: rm -fr conftest*
11525:
11526:
11527: fi
11528: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11529: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11530:
11531: if test "x$lt_cv_dlopen_self" = xyes; then
11532: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11533: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11534: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11535: if test "${lt_cv_dlopen_self_static+set}" = set; then
11536: echo $ECHO_N "(cached) $ECHO_C" >&6
11537: else
11538: if test "$cross_compiling" = yes; then :
11539: lt_cv_dlopen_self_static=cross
11540: else
11541: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11542: lt_status=$lt_dlunknown
11543: cat > conftest.$ac_ext <<_LT_EOF
11544: #line $LINENO "configure"
11545: #include "confdefs.h"
11546:
11547: #if HAVE_DLFCN_H
11548: #include <dlfcn.h>
11549: #endif
11550:
11551: #include <stdio.h>
11552:
11553: #ifdef RTLD_GLOBAL
11554: # define LT_DLGLOBAL RTLD_GLOBAL
11555: #else
11556: # ifdef DL_GLOBAL
11557: # define LT_DLGLOBAL DL_GLOBAL
11558: # else
11559: # define LT_DLGLOBAL 0
11560: # endif
11561: #endif
11562:
11563: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11564: find out it does not work in some platform. */
11565: #ifndef LT_DLLAZY_OR_NOW
11566: # ifdef RTLD_LAZY
11567: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11568: # else
11569: # ifdef DL_LAZY
11570: # define LT_DLLAZY_OR_NOW DL_LAZY
11571: # else
11572: # ifdef RTLD_NOW
11573: # define LT_DLLAZY_OR_NOW RTLD_NOW
11574: # else
11575: # ifdef DL_NOW
11576: # define LT_DLLAZY_OR_NOW DL_NOW
11577: # else
11578: # define LT_DLLAZY_OR_NOW 0
11579: # endif
11580: # endif
11581: # endif
11582: # endif
11583: #endif
11584:
11585: /* When -fvisbility=hidden is used, assume the code has been annotated
11586: correspondingly for the symbols needed. */
11587: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11588: int fnord () __attribute__((visibility("default")));
11589: #endif
11590:
11591: int fnord () { return 42; }
11592: int main ()
11593: {
11594: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11595: int status = $lt_dlunknown;
11596:
11597: if (self)
11598: {
11599: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11600: else
11601: {
11602: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11603: else puts (dlerror ());
11604: }
11605: /* dlclose (self); */
11606: }
11607: else
11608: puts (dlerror ());
11609:
11610: return status;
11611: }
11612: _LT_EOF
11613: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614: (eval $ac_link) 2>&5
11615: ac_status=$?
11616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11618: (./conftest; exit; ) >&5 2>/dev/null
11619: lt_status=$?
11620: case x$lt_status in
11621: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11622: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11623: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11624: esac
11625: else :
11626: # compilation failed
11627: lt_cv_dlopen_self_static=no
11628: fi
11629: fi
11630: rm -fr conftest*
11631:
11632:
11633: fi
11634: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11635: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11636: fi
11637:
11638: CPPFLAGS="$save_CPPFLAGS"
11639: LDFLAGS="$save_LDFLAGS"
11640: LIBS="$save_LIBS"
11641: ;;
11642: esac
11643:
11644: case $lt_cv_dlopen_self in
11645: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11646: *) enable_dlopen_self=unknown ;;
11647: esac
11648:
11649: case $lt_cv_dlopen_self_static in
11650: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11651: *) enable_dlopen_self_static=unknown ;;
11652: esac
11653: fi
11654:
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666:
11667:
11668:
11669:
11670:
11671: striplib=
11672: old_striplib=
11673: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11674: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11675: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11676: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11677: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11678: echo "$as_me:$LINENO: result: yes" >&5
11679: echo "${ECHO_T}yes" >&6
11680: else
11681: # FIXME - insert some real tests, host_os isn't really good enough
11682: case $host_os in
11683: darwin*)
11684: if test -n "$STRIP" ; then
11685: striplib="$STRIP -x"
11686: old_striplib="$STRIP -S"
11687: echo "$as_me:$LINENO: result: yes" >&5
11688: echo "${ECHO_T}yes" >&6
11689: else
11690: echo "$as_me:$LINENO: result: no" >&5
11691: echo "${ECHO_T}no" >&6
11692: fi
11693: ;;
11694: *)
11695: echo "$as_me:$LINENO: result: no" >&5
11696: echo "${ECHO_T}no" >&6
11697: ;;
11698: esac
11699: fi
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
11712: # Report which library types will actually be built
11713: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11714: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11715: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11716: echo "${ECHO_T}$can_build_shared" >&6
11717:
11718: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11719: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11720: test "$can_build_shared" = "no" && enable_shared=no
11721:
11722: # On AIX, shared libraries and static libraries use the same namespace, and
11723: # are all built from PIC.
11724: case $host_os in
11725: aix3*)
11726: test "$enable_shared" = yes && enable_static=no
11727: if test -n "$RANLIB"; then
11728: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11729: postinstall_cmds='$RANLIB $lib'
11730: fi
11731: ;;
11732:
11733: aix[4-9]*)
11734: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11735: test "$enable_shared" = yes && enable_static=no
11736: fi
11737: ;;
11738: esac
11739: echo "$as_me:$LINENO: result: $enable_shared" >&5
11740: echo "${ECHO_T}$enable_shared" >&6
11741:
11742: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11743: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11744: # Make sure either enable_shared or enable_static is yes.
11745: test "$enable_shared" = yes || enable_static=yes
11746: echo "$as_me:$LINENO: result: $enable_static" >&5
11747: echo "${ECHO_T}$enable_static" >&6
11748:
11749:
11750:
11751:
11752: fi
11753: ac_ext=c
11754: ac_cpp='$CPP $CPPFLAGS'
11755: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758:
11759: CC="$lt_save_CC"
11760:
11761: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11762: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11763: (test "X$CXX" != "Xg++"))) ; then
11764: ac_ext=cc
11765: ac_cpp='$CXXCPP $CPPFLAGS'
11766: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11767: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11768: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11769: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11770: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11771: if test -z "$CXXCPP"; then
11772: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11773: echo $ECHO_N "(cached) $ECHO_C" >&6
11774: else
11775: # Double quotes because CXXCPP needs to be expanded
11776: for CXXCPP in "$CXX -E" "/lib/cpp"
11777: do
11778: ac_preproc_ok=false
11779: for ac_cxx_preproc_warn_flag in '' yes
11780: do
11781: # Use a header file that comes with gcc, so configuring glibc
11782: # with a fresh cross-compiler works.
11783: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784: # <limits.h> exists even on freestanding compilers.
11785: # On the NeXT, cc -E runs the code through the compiler's parser,
11786: # not just through cpp. "Syntax error" is here to catch this case.
11787: cat >conftest.$ac_ext <<_ACEOF
11788: /* confdefs.h. */
11789: _ACEOF
11790: cat confdefs.h >>conftest.$ac_ext
11791: cat >>conftest.$ac_ext <<_ACEOF
11792: /* end confdefs.h. */
11793: #ifdef __STDC__
11794: # include <limits.h>
11795: #else
11796: # include <assert.h>
11797: #endif
11798: Syntax error
11799: _ACEOF
11800: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11801: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11802: ac_status=$?
11803: grep -v '^ *+' conftest.er1 >conftest.err
11804: rm -f conftest.er1
11805: cat conftest.err >&5
11806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807: (exit $ac_status); } >/dev/null; then
11808: if test -s conftest.err; then
11809: ac_cpp_err=$ac_cxx_preproc_warn_flag
11810: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11811: else
11812: ac_cpp_err=
11813: fi
11814: else
11815: ac_cpp_err=yes
11816: fi
11817: if test -z "$ac_cpp_err"; then
11818: :
11819: else
11820: echo "$as_me: failed program was:" >&5
11821: sed 's/^/| /' conftest.$ac_ext >&5
11822:
11823: # Broken: fails on valid input.
11824: continue
11825: fi
11826: rm -f conftest.err conftest.$ac_ext
11827:
11828: # OK, works on sane cases. Now check whether non-existent headers
11829: # can be detected and how.
11830: cat >conftest.$ac_ext <<_ACEOF
11831: /* confdefs.h. */
11832: _ACEOF
11833: cat confdefs.h >>conftest.$ac_ext
11834: cat >>conftest.$ac_ext <<_ACEOF
11835: /* end confdefs.h. */
11836: #include <ac_nonexistent.h>
11837: _ACEOF
11838: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11839: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11840: ac_status=$?
11841: grep -v '^ *+' conftest.er1 >conftest.err
11842: rm -f conftest.er1
11843: cat conftest.err >&5
11844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845: (exit $ac_status); } >/dev/null; then
11846: if test -s conftest.err; then
11847: ac_cpp_err=$ac_cxx_preproc_warn_flag
11848: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11849: else
11850: ac_cpp_err=
11851: fi
11852: else
11853: ac_cpp_err=yes
11854: fi
11855: if test -z "$ac_cpp_err"; then
11856: # Broken: success on invalid input.
11857: continue
11858: else
11859: echo "$as_me: failed program was:" >&5
11860: sed 's/^/| /' conftest.$ac_ext >&5
11861:
11862: # Passes both tests.
11863: ac_preproc_ok=:
11864: break
11865: fi
11866: rm -f conftest.err conftest.$ac_ext
11867:
11868: done
11869: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11870: rm -f conftest.err conftest.$ac_ext
11871: if $ac_preproc_ok; then
11872: break
11873: fi
11874:
11875: done
11876: ac_cv_prog_CXXCPP=$CXXCPP
11877:
11878: fi
11879: CXXCPP=$ac_cv_prog_CXXCPP
11880: else
11881: ac_cv_prog_CXXCPP=$CXXCPP
11882: fi
11883: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11884: echo "${ECHO_T}$CXXCPP" >&6
11885: ac_preproc_ok=false
11886: for ac_cxx_preproc_warn_flag in '' yes
11887: do
11888: # Use a header file that comes with gcc, so configuring glibc
11889: # with a fresh cross-compiler works.
11890: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11891: # <limits.h> exists even on freestanding compilers.
11892: # On the NeXT, cc -E runs the code through the compiler's parser,
11893: # not just through cpp. "Syntax error" is here to catch this case.
11894: cat >conftest.$ac_ext <<_ACEOF
11895: /* confdefs.h. */
11896: _ACEOF
11897: cat confdefs.h >>conftest.$ac_ext
11898: cat >>conftest.$ac_ext <<_ACEOF
11899: /* end confdefs.h. */
11900: #ifdef __STDC__
11901: # include <limits.h>
11902: #else
11903: # include <assert.h>
11904: #endif
11905: Syntax error
11906: _ACEOF
11907: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11908: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11909: ac_status=$?
11910: grep -v '^ *+' conftest.er1 >conftest.err
11911: rm -f conftest.er1
11912: cat conftest.err >&5
11913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914: (exit $ac_status); } >/dev/null; then
11915: if test -s conftest.err; then
11916: ac_cpp_err=$ac_cxx_preproc_warn_flag
11917: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11918: else
11919: ac_cpp_err=
11920: fi
11921: else
11922: ac_cpp_err=yes
11923: fi
11924: if test -z "$ac_cpp_err"; then
11925: :
11926: else
11927: echo "$as_me: failed program was:" >&5
11928: sed 's/^/| /' conftest.$ac_ext >&5
11929:
11930: # Broken: fails on valid input.
11931: continue
11932: fi
11933: rm -f conftest.err conftest.$ac_ext
11934:
11935: # OK, works on sane cases. Now check whether non-existent headers
11936: # can be detected and how.
11937: cat >conftest.$ac_ext <<_ACEOF
11938: /* confdefs.h. */
11939: _ACEOF
11940: cat confdefs.h >>conftest.$ac_ext
11941: cat >>conftest.$ac_ext <<_ACEOF
11942: /* end confdefs.h. */
11943: #include <ac_nonexistent.h>
11944: _ACEOF
11945: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11946: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11947: ac_status=$?
11948: grep -v '^ *+' conftest.er1 >conftest.err
11949: rm -f conftest.er1
11950: cat conftest.err >&5
11951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952: (exit $ac_status); } >/dev/null; then
11953: if test -s conftest.err; then
11954: ac_cpp_err=$ac_cxx_preproc_warn_flag
11955: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11956: else
11957: ac_cpp_err=
11958: fi
11959: else
11960: ac_cpp_err=yes
11961: fi
11962: if test -z "$ac_cpp_err"; then
11963: # Broken: success on invalid input.
11964: continue
11965: else
11966: echo "$as_me: failed program was:" >&5
11967: sed 's/^/| /' conftest.$ac_ext >&5
11968:
11969: # Passes both tests.
11970: ac_preproc_ok=:
11971: break
11972: fi
11973: rm -f conftest.err conftest.$ac_ext
11974:
11975: done
11976: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11977: rm -f conftest.err conftest.$ac_ext
11978: if $ac_preproc_ok; then
11979: :
11980: else
11981: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11982: See \`config.log' for more details." >&5
11983: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11984: See \`config.log' for more details." >&2;}
11985: { (exit 1); exit 1; }; }
11986: fi
11987:
11988: ac_ext=c
11989: ac_cpp='$CPP $CPPFLAGS'
11990: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11993:
11994: else
11995: _lt_caught_CXX_error=yes
11996: fi
11997:
11998: ac_ext=cc
11999: ac_cpp='$CXXCPP $CPPFLAGS'
12000: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12003:
12004: archive_cmds_need_lc_CXX=no
12005: allow_undefined_flag_CXX=
12006: always_export_symbols_CXX=no
12007: archive_expsym_cmds_CXX=
12008: compiler_needs_object_CXX=no
12009: export_dynamic_flag_spec_CXX=
12010: hardcode_direct_CXX=no
12011: hardcode_direct_absolute_CXX=no
12012: hardcode_libdir_flag_spec_CXX=
12013: hardcode_libdir_separator_CXX=
12014: hardcode_minus_L_CXX=no
12015: hardcode_shlibpath_var_CXX=unsupported
12016: hardcode_automatic_CXX=no
12017: inherit_rpath_CXX=no
12018: module_cmds_CXX=
12019: module_expsym_cmds_CXX=
12020: link_all_deplibs_CXX=unknown
12021: old_archive_cmds_CXX=$old_archive_cmds
12022: reload_flag_CXX=$reload_flag
12023: reload_cmds_CXX=$reload_cmds
12024: no_undefined_flag_CXX=
12025: whole_archive_flag_spec_CXX=
12026: enable_shared_with_static_runtimes_CXX=no
12027:
12028: # Source file extension for C++ test sources.
12029: ac_ext=cpp
12030:
12031: # Object file extension for compiled C++ test sources.
12032: objext=o
12033: objext_CXX=$objext
12034:
12035: # No sense in running all these tests if we already determined that
12036: # the CXX compiler isn't working. Some variables (like enable_shared)
12037: # are currently assumed to apply to all compilers on this platform,
12038: # and will be corrupted by setting them based on a non-working compiler.
12039: if test "$_lt_caught_CXX_error" != yes; then
12040: # Code to be used in simple compile tests
12041: lt_simple_compile_test_code="int some_variable = 0;"
12042:
12043: # Code to be used in simple link tests
12044: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12045:
12046: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12047:
12048:
12049:
12050:
12051:
12052:
12053: # If no C compiler was specified, use CC.
12054: LTCC=${LTCC-"$CC"}
12055:
12056: # If no C compiler flags were specified, use CFLAGS.
12057: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12058:
12059: # Allow CC to be a program name with arguments.
12060: compiler=$CC
12061:
12062:
12063: # save warnings/boilerplate of simple test code
12064: ac_outfile=conftest.$ac_objext
12065: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12066: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12067: _lt_compiler_boilerplate=`cat conftest.err`
12068: $RM conftest*
12069:
12070: ac_outfile=conftest.$ac_objext
12071: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12072: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12073: _lt_linker_boilerplate=`cat conftest.err`
12074: $RM -r conftest*
12075:
12076:
12077: # Allow CC to be a program name with arguments.
12078: lt_save_CC=$CC
12079: lt_save_CFLAGS=$CFLAGS
12080: lt_save_LD=$LD
12081: lt_save_GCC=$GCC
12082: GCC=$GXX
12083: lt_save_with_gnu_ld=$with_gnu_ld
12084: lt_save_path_LD=$lt_cv_path_LD
12085: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12086: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12087: else
12088: $as_unset lt_cv_prog_gnu_ld
12089: fi
12090: if test -n "${lt_cv_path_LDCXX+set}"; then
12091: lt_cv_path_LD=$lt_cv_path_LDCXX
12092: else
12093: $as_unset lt_cv_path_LD
12094: fi
12095: test -z "${LDCXX+set}" || LD=$LDCXX
12096: CC=${CXX-"c++"}
12097: CFLAGS=$CXXFLAGS
12098: compiler=$CC
12099: compiler_CXX=$CC
12100: for cc_temp in $compiler""; do
12101: case $cc_temp in
12102: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12103: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12104: \-*) ;;
12105: *) break;;
12106: esac
12107: done
12108: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12109:
12110:
12111: if test -n "$compiler"; then
12112: # We don't want -fno-exception when compiling C++ code, so set the
12113: # no_builtin_flag separately
12114: if test "$GXX" = yes; then
12115: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12116: else
12117: lt_prog_compiler_no_builtin_flag_CXX=
12118: fi
12119:
12120: if test "$GXX" = yes; then
12121: # Set up default GNU C++ configuration
12122:
12123:
12124:
12125: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12126: if test "${with_gnu_ld+set}" = set; then
12127: withval="$with_gnu_ld"
12128: test "$withval" = no || with_gnu_ld=yes
12129: else
12130: with_gnu_ld=no
12131: fi;
12132: ac_prog=ld
12133: if test "$GCC" = yes; then
12134: # Check if gcc -print-prog-name=ld gives a path.
12135: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12136: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12137: case $host in
12138: *-*-mingw*)
12139: # gcc leaves a trailing carriage return which upsets mingw
12140: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12141: *)
12142: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12143: esac
12144: case $ac_prog in
12145: # Accept absolute paths.
12146: [\\/]* | ?:[\\/]*)
12147: re_direlt='/[^/][^/]*/\.\./'
12148: # Canonicalize the pathname of ld
12149: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12150: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12151: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12152: done
12153: test -z "$LD" && LD="$ac_prog"
12154: ;;
12155: "")
12156: # If it fails, then pretend we aren't using GCC.
12157: ac_prog=ld
12158: ;;
12159: *)
12160: # If it is relative, then search for the first ld in PATH.
12161: with_gnu_ld=unknown
12162: ;;
12163: esac
12164: elif test "$with_gnu_ld" = yes; then
12165: echo "$as_me:$LINENO: checking for GNU ld" >&5
12166: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12167: else
12168: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12169: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12170: fi
12171: if test "${lt_cv_path_LD+set}" = set; then
12172: echo $ECHO_N "(cached) $ECHO_C" >&6
12173: else
12174: if test -z "$LD"; then
12175: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12176: for ac_dir in $PATH; do
12177: IFS="$lt_save_ifs"
12178: test -z "$ac_dir" && ac_dir=.
12179: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12180: lt_cv_path_LD="$ac_dir/$ac_prog"
12181: # Check to see if the program is GNU ld. I'd rather use --version,
12182: # but apparently some variants of GNU ld only accept -v.
12183: # Break only if it was the GNU/non-GNU ld that we prefer.
12184: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12185: *GNU* | *'with BFD'*)
12186: test "$with_gnu_ld" != no && break
12187: ;;
12188: *)
12189: test "$with_gnu_ld" != yes && break
12190: ;;
12191: esac
12192: fi
12193: done
12194: IFS="$lt_save_ifs"
12195: else
12196: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12197: fi
12198: fi
12199:
12200: LD="$lt_cv_path_LD"
12201: if test -n "$LD"; then
12202: echo "$as_me:$LINENO: result: $LD" >&5
12203: echo "${ECHO_T}$LD" >&6
12204: else
12205: echo "$as_me:$LINENO: result: no" >&5
12206: echo "${ECHO_T}no" >&6
12207: fi
12208: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12209: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12210: { (exit 1); exit 1; }; }
12211: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12212: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12213: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12214: echo $ECHO_N "(cached) $ECHO_C" >&6
12215: else
12216: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12217: case `$LD -v 2>&1 </dev/null` in
12218: *GNU* | *'with BFD'*)
12219: lt_cv_prog_gnu_ld=yes
12220: ;;
12221: *)
12222: lt_cv_prog_gnu_ld=no
12223: ;;
12224: esac
12225: fi
12226: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12227: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12228: with_gnu_ld=$lt_cv_prog_gnu_ld
12229:
12230:
12231:
12232:
12233:
12234:
12235:
12236: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12237: # archiving commands below assume that GNU ld is being used.
12238: if test "$with_gnu_ld" = yes; then
12239: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12240: 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'
12241:
12242: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12243: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12244:
12245: # If archive_cmds runs LD, not CC, wlarc should be empty
12246: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12247: # investigate it a little bit more. (MM)
12248: wlarc='${wl}'
12249:
12250: # ancient GNU ld didn't support --whole-archive et. al.
12251: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12252: $GREP 'no-whole-archive' > /dev/null; then
12253: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12254: else
12255: whole_archive_flag_spec_CXX=
12256: fi
12257: else
12258: with_gnu_ld=no
12259: wlarc=
12260:
12261: # A generic and very simple default shared library creation
12262: # command for GNU C++ for the case where it uses the native
12263: # linker, instead of GNU ld. If possible, this setting should
12264: # overridden to take advantage of the native linker features on
12265: # the platform it is being used on.
12266: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12267: fi
12268:
12269: # Commands to make compiler produce verbose output that lists
12270: # what "hidden" libraries, object files and flags are used when
12271: # linking a shared library.
12272: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12273:
12274: else
12275: GXX=no
12276: with_gnu_ld=no
12277: wlarc=
12278: fi
12279:
12280: # PORTME: fill in a description of your system's C++ link characteristics
12281: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12282: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12283: ld_shlibs_CXX=yes
12284: case $host_os in
12285: aix3*)
12286: # FIXME: insert proper C++ library support
12287: ld_shlibs_CXX=no
12288: ;;
12289: aix[4-9]*)
12290: if test "$host_cpu" = ia64; then
12291: # On IA64, the linker does run time linking by default, so we don't
12292: # have to do anything special.
12293: aix_use_runtimelinking=no
12294: exp_sym_flag='-Bexport'
12295: no_entry_flag=""
12296: else
12297: aix_use_runtimelinking=no
12298:
12299: # Test if we are trying to use run time linking or normal
12300: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12301: # need to do runtime linking.
12302: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12303: for ld_flag in $LDFLAGS; do
12304: case $ld_flag in
12305: *-brtl*)
12306: aix_use_runtimelinking=yes
12307: break
12308: ;;
12309: esac
12310: done
12311: ;;
12312: esac
12313:
12314: exp_sym_flag='-bexport'
12315: no_entry_flag='-bnoentry'
12316: fi
12317:
12318: # When large executables or shared objects are built, AIX ld can
12319: # have problems creating the table of contents. If linking a library
12320: # or program results in "error TOC overflow" add -mminimal-toc to
12321: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12322: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12323:
12324: archive_cmds_CXX=''
12325: hardcode_direct_CXX=yes
12326: hardcode_direct_absolute_CXX=yes
12327: hardcode_libdir_separator_CXX=':'
12328: link_all_deplibs_CXX=yes
12329: file_list_spec_CXX='${wl}-f,'
12330:
12331: if test "$GXX" = yes; then
12332: case $host_os in aix4.[012]|aix4.[012].*)
12333: # We only want to do this on AIX 4.2 and lower, the check
12334: # below for broken collect2 doesn't work under 4.3+
12335: collect2name=`${CC} -print-prog-name=collect2`
12336: if test -f "$collect2name" &&
12337: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12338: then
12339: # We have reworked collect2
12340: :
12341: else
12342: # We have old collect2
12343: hardcode_direct_CXX=unsupported
12344: # It fails to find uninstalled libraries when the uninstalled
12345: # path is not listed in the libpath. Setting hardcode_minus_L
12346: # to unsupported forces relinking
12347: hardcode_minus_L_CXX=yes
12348: hardcode_libdir_flag_spec_CXX='-L$libdir'
12349: hardcode_libdir_separator_CXX=
12350: fi
12351: esac
12352: shared_flag='-shared'
12353: if test "$aix_use_runtimelinking" = yes; then
12354: shared_flag="$shared_flag "'${wl}-G'
12355: fi
12356: else
12357: # not using gcc
12358: if test "$host_cpu" = ia64; then
12359: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12360: # chokes on -Wl,-G. The following line is correct:
12361: shared_flag='-G'
12362: else
12363: if test "$aix_use_runtimelinking" = yes; then
12364: shared_flag='${wl}-G'
12365: else
12366: shared_flag='${wl}-bM:SRE'
12367: fi
12368: fi
12369: fi
12370:
12371: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12372: # It seems that -bexpall does not export symbols beginning with
12373: # underscore (_), so it is better to generate a list of symbols to
12374: # export.
12375: always_export_symbols_CXX=yes
12376: if test "$aix_use_runtimelinking" = yes; then
12377: # Warning - without using the other runtime loading flags (-brtl),
12378: # -berok will link without error, but may produce a broken library.
12379: allow_undefined_flag_CXX='-berok'
12380: # Determine the default libpath from the value encoded in an empty
12381: # executable.
12382: if test "${lt_cv_aix_libpath+set}" = set; then
12383: aix_libpath=$lt_cv_aix_libpath
12384: else
12385: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12386: echo $ECHO_N "(cached) $ECHO_C" >&6
12387: else
12388: cat >conftest.$ac_ext <<_ACEOF
12389: /* confdefs.h. */
12390: _ACEOF
12391: cat confdefs.h >>conftest.$ac_ext
12392: cat >>conftest.$ac_ext <<_ACEOF
12393: /* end confdefs.h. */
12394:
12395: int
12396: main ()
12397: {
12398:
12399: ;
12400: return 0;
12401: }
12402: _ACEOF
12403: rm -f conftest.$ac_objext conftest$ac_exeext
12404: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405: (eval $ac_link) 2>conftest.er1
12406: ac_status=$?
12407: grep -v '^ *+' conftest.er1 >conftest.err
12408: rm -f conftest.er1
12409: cat conftest.err >&5
12410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411: (exit $ac_status); } &&
12412: { ac_try='test -z "$ac_cxx_werror_flag"
12413: || test ! -s conftest.err'
12414: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415: (eval $ac_try) 2>&5
12416: ac_status=$?
12417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418: (exit $ac_status); }; } &&
12419: { ac_try='test -s conftest$ac_exeext'
12420: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421: (eval $ac_try) 2>&5
12422: ac_status=$?
12423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424: (exit $ac_status); }; }; then
12425:
12426: lt_aix_libpath_sed='
12427: /Import File Strings/,/^$/ {
12428: /^0/ {
12429: s/^0 *\([^ ]*\) *$/\1/
12430: p
12431: }
12432: }'
12433: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12434: # Check for a 64-bit object if we didn't find anything.
12435: if test -z "$lt_cv_aix_libpath__CXX"; then
12436: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12437: fi
12438: else
12439: echo "$as_me: failed program was:" >&5
12440: sed 's/^/| /' conftest.$ac_ext >&5
12441:
12442: fi
12443: rm -f conftest.err conftest.$ac_objext \
12444: conftest$ac_exeext conftest.$ac_ext
12445: if test -z "$lt_cv_aix_libpath__CXX"; then
12446: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12447: fi
12448:
12449: fi
12450:
12451: aix_libpath=$lt_cv_aix_libpath__CXX
12452: fi
12453:
12454: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12455:
12456: 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"
12457: else
12458: if test "$host_cpu" = ia64; then
12459: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12460: allow_undefined_flag_CXX="-z nodefs"
12461: 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"
12462: else
12463: # Determine the default libpath from the value encoded in an
12464: # empty executable.
12465: if test "${lt_cv_aix_libpath+set}" = set; then
12466: aix_libpath=$lt_cv_aix_libpath
12467: else
12468: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12469: echo $ECHO_N "(cached) $ECHO_C" >&6
12470: else
12471: cat >conftest.$ac_ext <<_ACEOF
12472: /* confdefs.h. */
12473: _ACEOF
12474: cat confdefs.h >>conftest.$ac_ext
12475: cat >>conftest.$ac_ext <<_ACEOF
12476: /* end confdefs.h. */
12477:
12478: int
12479: main ()
12480: {
12481:
12482: ;
12483: return 0;
12484: }
12485: _ACEOF
12486: rm -f conftest.$ac_objext conftest$ac_exeext
12487: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488: (eval $ac_link) 2>conftest.er1
12489: ac_status=$?
12490: grep -v '^ *+' conftest.er1 >conftest.err
12491: rm -f conftest.er1
12492: cat conftest.err >&5
12493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494: (exit $ac_status); } &&
12495: { ac_try='test -z "$ac_cxx_werror_flag"
12496: || test ! -s conftest.err'
12497: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498: (eval $ac_try) 2>&5
12499: ac_status=$?
12500: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501: (exit $ac_status); }; } &&
12502: { ac_try='test -s conftest$ac_exeext'
12503: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504: (eval $ac_try) 2>&5
12505: ac_status=$?
12506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507: (exit $ac_status); }; }; then
12508:
12509: lt_aix_libpath_sed='
12510: /Import File Strings/,/^$/ {
12511: /^0/ {
12512: s/^0 *\([^ ]*\) *$/\1/
12513: p
12514: }
12515: }'
12516: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12517: # Check for a 64-bit object if we didn't find anything.
12518: if test -z "$lt_cv_aix_libpath__CXX"; then
12519: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12520: fi
12521: else
12522: echo "$as_me: failed program was:" >&5
12523: sed 's/^/| /' conftest.$ac_ext >&5
12524:
12525: fi
12526: rm -f conftest.err conftest.$ac_objext \
12527: conftest$ac_exeext conftest.$ac_ext
12528: if test -z "$lt_cv_aix_libpath__CXX"; then
12529: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12530: fi
12531:
12532: fi
12533:
12534: aix_libpath=$lt_cv_aix_libpath__CXX
12535: fi
12536:
12537: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12538: # Warning - without using the other run time loading flags,
12539: # -berok will link without error, but may produce a broken library.
12540: no_undefined_flag_CXX=' ${wl}-bernotok'
12541: allow_undefined_flag_CXX=' ${wl}-berok'
12542: if test "$with_gnu_ld" = yes; then
12543: # We only use this code for GNU lds that support --whole-archive.
12544: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12545: else
12546: # Exported symbols can be pulled into shared objects from archives
12547: whole_archive_flag_spec_CXX='$convenience'
12548: fi
12549: archive_cmds_need_lc_CXX=yes
12550: # This is similar to how AIX traditionally builds its shared
12551: # libraries.
12552: 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'
12553: fi
12554: fi
12555: ;;
12556:
12557: beos*)
12558: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12559: allow_undefined_flag_CXX=unsupported
12560: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12561: # support --undefined. This deserves some investigation. FIXME
12562: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12563: else
12564: ld_shlibs_CXX=no
12565: fi
12566: ;;
12567:
12568: chorus*)
12569: case $cc_basename in
12570: *)
12571: # FIXME: insert proper C++ library support
12572: ld_shlibs_CXX=no
12573: ;;
12574: esac
12575: ;;
12576:
12577: cygwin* | mingw* | pw32* | cegcc*)
12578: case $GXX,$cc_basename in
12579: ,cl* | no,cl*)
12580: # Native MSVC
12581: # hardcode_libdir_flag_spec is actually meaningless, as there is
12582: # no search path for DLLs.
12583: hardcode_libdir_flag_spec_CXX=' '
12584: allow_undefined_flag_CXX=unsupported
12585: always_export_symbols_CXX=yes
12586: file_list_spec_CXX='@'
12587: # Tell ltmain to make .lib files, not .a files.
12588: libext=lib
12589: # Tell ltmain to make .dll files, not .so files.
12590: shrext_cmds=".dll"
12591: # FIXME: Setting linknames here is a bad hack.
12592: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12593: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12594: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12595: else
12596: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12597: fi~
12598: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12599: linknames='
12600: # The linker will not automatically build a static lib if we build a DLL.
12601: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12602: enable_shared_with_static_runtimes_CXX=yes
12603: # Don't use ranlib
12604: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12605: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12606: lt_tool_outputfile="@TOOL_OUTPUT@"~
12607: case $lt_outputfile in
12608: *.exe|*.EXE) ;;
12609: *)
12610: lt_outputfile="$lt_outputfile.exe"
12611: lt_tool_outputfile="$lt_tool_outputfile.exe"
12612: ;;
12613: esac~
12614: func_to_tool_file "$lt_outputfile"~
12615: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12616: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12617: $RM "$lt_outputfile.manifest";
12618: fi'
12619: ;;
12620: *)
12621: # g++
12622: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12623: # as there is no search path for DLLs.
12624: hardcode_libdir_flag_spec_CXX='-L$libdir'
12625: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12626: allow_undefined_flag_CXX=unsupported
12627: always_export_symbols_CXX=no
12628: enable_shared_with_static_runtimes_CXX=yes
12629:
12630: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12631: 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'
12632: # If the export-symbols file already is a .def file (1st line
12633: # is EXPORTS), use it as is; otherwise, prepend...
12634: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12635: cp $export_symbols $output_objdir/$soname.def;
12636: else
12637: echo EXPORTS > $output_objdir/$soname.def;
12638: cat $export_symbols >> $output_objdir/$soname.def;
12639: fi~
12640: $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'
12641: else
12642: ld_shlibs_CXX=no
12643: fi
12644: ;;
12645: esac
12646: ;;
12647: darwin* | rhapsody*)
12648:
12649:
12650: archive_cmds_need_lc_CXX=no
12651: hardcode_direct_CXX=no
12652: hardcode_automatic_CXX=yes
12653: hardcode_shlibpath_var_CXX=unsupported
12654: if test "$lt_cv_ld_force_load" = "yes"; then
12655: 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\"`'
12656:
12657: else
12658: whole_archive_flag_spec_CXX=''
12659: fi
12660: link_all_deplibs_CXX=yes
12661: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12662: case $cc_basename in
12663: ifort*) _lt_dar_can_shared=yes ;;
12664: *) _lt_dar_can_shared=$GCC ;;
12665: esac
12666: if test "$_lt_dar_can_shared" = "yes"; then
12667: output_verbose_link_cmd=func_echo_all
12668: 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}"
12669: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12670: 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}"
12671: 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}"
12672: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12673: 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}"
12674: 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}"
12675: fi
12676:
12677: else
12678: ld_shlibs_CXX=no
12679: fi
12680:
12681: ;;
12682:
12683: dgux*)
12684: case $cc_basename in
12685: ec++*)
12686: # FIXME: insert proper C++ library support
12687: ld_shlibs_CXX=no
12688: ;;
12689: ghcx*)
12690: # Green Hills C++ Compiler
12691: # FIXME: insert proper C++ library support
12692: ld_shlibs_CXX=no
12693: ;;
12694: *)
12695: # FIXME: insert proper C++ library support
12696: ld_shlibs_CXX=no
12697: ;;
12698: esac
12699: ;;
12700:
12701: freebsd2.*)
12702: # C++ shared libraries reported to be fairly broken before
12703: # switch to ELF
12704: ld_shlibs_CXX=no
12705: ;;
12706:
12707: freebsd-elf*)
12708: archive_cmds_need_lc_CXX=no
12709: ;;
12710:
12711: freebsd* | dragonfly*)
12712: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12713: # conventions
12714: ld_shlibs_CXX=yes
12715: ;;
12716:
12717: gnu*)
12718: ;;
12719:
12720: haiku*)
12721: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12722: link_all_deplibs_CXX=yes
12723: ;;
12724:
12725: hpux9*)
12726: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12727: hardcode_libdir_separator_CXX=:
12728: export_dynamic_flag_spec_CXX='${wl}-E'
12729: hardcode_direct_CXX=yes
12730: hardcode_minus_L_CXX=yes # Not in the search PATH,
12731: # but as the default
12732: # location of the library.
12733:
12734: case $cc_basename in
12735: CC*)
12736: # FIXME: insert proper C++ library support
12737: ld_shlibs_CXX=no
12738: ;;
12739: aCC*)
12740: 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'
12741: # Commands to make compiler produce verbose output that lists
12742: # what "hidden" libraries, object files and flags are used when
12743: # linking a shared library.
12744: #
12745: # There doesn't appear to be a way to prevent this compiler from
12746: # explicitly linking system object files so we need to strip them
12747: # from the output so that they don't get included in the library
12748: # dependencies.
12749: 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"'
12750: ;;
12751: *)
12752: if test "$GXX" = yes; then
12753: 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'
12754: else
12755: # FIXME: insert proper C++ library support
12756: ld_shlibs_CXX=no
12757: fi
12758: ;;
12759: esac
12760: ;;
12761:
12762: hpux10*|hpux11*)
12763: if test $with_gnu_ld = no; then
12764: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12765: hardcode_libdir_separator_CXX=:
12766:
12767: case $host_cpu in
12768: hppa*64*|ia64*)
12769: ;;
12770: *)
12771: export_dynamic_flag_spec_CXX='${wl}-E'
12772: ;;
12773: esac
12774: fi
12775: case $host_cpu in
12776: hppa*64*|ia64*)
12777: hardcode_direct_CXX=no
12778: hardcode_shlibpath_var_CXX=no
12779: ;;
12780: *)
12781: hardcode_direct_CXX=yes
12782: hardcode_direct_absolute_CXX=yes
12783: hardcode_minus_L_CXX=yes # Not in the search PATH,
12784: # but as the default
12785: # location of the library.
12786: ;;
12787: esac
12788:
12789: case $cc_basename in
12790: CC*)
12791: # FIXME: insert proper C++ library support
12792: ld_shlibs_CXX=no
12793: ;;
12794: aCC*)
12795: case $host_cpu in
12796: hppa*64*)
12797: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12798: ;;
12799: ia64*)
12800: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12801: ;;
12802: *)
12803: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804: ;;
12805: esac
12806: # Commands to make compiler produce verbose output that lists
12807: # what "hidden" libraries, object files and flags are used when
12808: # linking a shared library.
12809: #
12810: # There doesn't appear to be a way to prevent this compiler from
12811: # explicitly linking system object files so we need to strip them
12812: # from the output so that they don't get included in the library
12813: # dependencies.
12814: 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"'
12815: ;;
12816: *)
12817: if test "$GXX" = yes; then
12818: if test $with_gnu_ld = no; then
12819: case $host_cpu in
12820: hppa*64*)
12821: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12822: ;;
12823: ia64*)
12824: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825: ;;
12826: *)
12827: 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'
12828: ;;
12829: esac
12830: fi
12831: else
12832: # FIXME: insert proper C++ library support
12833: ld_shlibs_CXX=no
12834: fi
12835: ;;
12836: esac
12837: ;;
12838:
12839: interix[3-9]*)
12840: hardcode_direct_CXX=no
12841: hardcode_shlibpath_var_CXX=no
12842: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12843: export_dynamic_flag_spec_CXX='${wl}-E'
12844: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12845: # Instead, shared libraries are loaded at an image base (0x10000000 by
12846: # default) and relocated if they conflict, which is a slow very memory
12847: # consuming and fragmenting process. To avoid this, we pick a random,
12848: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12849: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12850: 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'
12851: 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'
12852: ;;
12853: irix5* | irix6*)
12854: case $cc_basename in
12855: CC*)
12856: # SGI C++
12857: 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'
12858:
12859: # Archives containing C++ object files must be created using
12860: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12861: # necessary to make sure instantiated templates are included
12862: # in the archive.
12863: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12864: ;;
12865: *)
12866: if test "$GXX" = yes; then
12867: if test "$with_gnu_ld" = no; then
12868: 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'
12869: else
12870: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12871: fi
12872: fi
12873: link_all_deplibs_CXX=yes
12874: ;;
12875: esac
12876: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12877: hardcode_libdir_separator_CXX=:
12878: inherit_rpath_CXX=yes
12879: ;;
12880:
12881: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12882: case $cc_basename in
12883: KCC*)
12884: # Kuck and Associates, Inc. (KAI) C++ Compiler
12885:
12886: # KCC will only create a shared library if the output file
12887: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12888: # to its proper name (with version) after linking.
12889: 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'
12890: 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'
12891: # Commands to make compiler produce verbose output that lists
12892: # what "hidden" libraries, object files and flags are used when
12893: # linking a shared library.
12894: #
12895: # There doesn't appear to be a way to prevent this compiler from
12896: # explicitly linking system object files so we need to strip them
12897: # from the output so that they don't get included in the library
12898: # dependencies.
12899: 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"'
12900:
12901: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12902: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12903:
12904: # Archives containing C++ object files must be created using
12905: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12906: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12907: ;;
12908: icpc* | ecpc* )
12909: # Intel C++
12910: with_gnu_ld=yes
12911: # version 8.0 and above of icpc choke on multiply defined symbols
12912: # if we add $predep_objects and $postdep_objects, however 7.1 and
12913: # earlier do not add the objects themselves.
12914: case `$CC -V 2>&1` in
12915: *"Version 7."*)
12916: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917: 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'
12918: ;;
12919: *) # Version 8.0 or newer
12920: tmp_idyn=
12921: case $host_cpu in
12922: ia64*) tmp_idyn=' -i_dynamic';;
12923: esac
12924: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12925: 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'
12926: ;;
12927: esac
12928: archive_cmds_need_lc_CXX=no
12929: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12930: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12931: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12932: ;;
12933: pgCC* | pgcpp*)
12934: # Portland Group C++ compiler
12935: case `$CC -V` in
12936: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12937: prelink_cmds_CXX='tpldir=Template.dir~
12938: rm -rf $tpldir~
12939: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12940: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12941: old_archive_cmds_CXX='tpldir=Template.dir~
12942: rm -rf $tpldir~
12943: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12944: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12945: $RANLIB $oldlib'
12946: archive_cmds_CXX='tpldir=Template.dir~
12947: rm -rf $tpldir~
12948: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12949: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12950: archive_expsym_cmds_CXX='tpldir=Template.dir~
12951: rm -rf $tpldir~
12952: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12953: $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'
12954: ;;
12955: *) # Version 6 and above use weak symbols
12956: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12957: 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'
12958: ;;
12959: esac
12960:
12961: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12962: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12963: 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'
12964: ;;
12965: cxx*)
12966: # Compaq C++
12967: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968: 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'
12969:
12970: runpath_var=LD_RUN_PATH
12971: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12972: hardcode_libdir_separator_CXX=:
12973:
12974: # Commands to make compiler produce verbose output that lists
12975: # what "hidden" libraries, object files and flags are used when
12976: # linking a shared library.
12977: #
12978: # There doesn't appear to be a way to prevent this compiler from
12979: # explicitly linking system object files so we need to strip them
12980: # from the output so that they don't get included in the library
12981: # dependencies.
12982: 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'
12983: ;;
12984: xl* | mpixl* | bgxl*)
12985: # IBM XL 8.0 on PPC, with GNU ld
12986: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12987: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989: if test "x$supports_anon_versioning" = xyes; then
12990: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12991: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12992: echo "local: *; };" >> $output_objdir/$libname.ver~
12993: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12994: fi
12995: ;;
12996: *)
12997: case `$CC -V 2>&1 | sed 5q` in
12998: *Sun\ C*)
12999: # Sun C++ 5.9
13000: no_undefined_flag_CXX=' -zdefs'
13001: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13002: 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'
13003: hardcode_libdir_flag_spec_CXX='-R$libdir'
13004: 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'
13005: compiler_needs_object_CXX=yes
13006:
13007: # Not sure whether something based on
13008: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13009: # would be better.
13010: output_verbose_link_cmd='func_echo_all'
13011:
13012: # Archives containing C++ object files must be created using
13013: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13014: # necessary to make sure instantiated templates are included
13015: # in the archive.
13016: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13017: ;;
13018: esac
13019: ;;
13020: esac
13021: ;;
13022:
13023: lynxos*)
13024: # FIXME: insert proper C++ library support
13025: ld_shlibs_CXX=no
13026: ;;
13027:
13028: m88k*)
13029: # FIXME: insert proper C++ library support
13030: ld_shlibs_CXX=no
13031: ;;
13032:
13033: mvs*)
13034: case $cc_basename in
13035: cxx*)
13036: # FIXME: insert proper C++ library support
13037: ld_shlibs_CXX=no
13038: ;;
13039: *)
13040: # FIXME: insert proper C++ library support
13041: ld_shlibs_CXX=no
13042: ;;
13043: esac
13044: ;;
13045:
13046: netbsd*)
13047: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13048: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13049: wlarc=
13050: hardcode_libdir_flag_spec_CXX='-R$libdir'
13051: hardcode_direct_CXX=yes
13052: hardcode_shlibpath_var_CXX=no
13053: fi
13054: # Workaround some broken pre-1.5 toolchains
13055: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13056: ;;
13057:
13058: *nto* | *qnx*)
13059: ld_shlibs_CXX=yes
13060: ;;
13061:
13062: openbsd2*)
13063: # C++ shared libraries are fairly broken
13064: ld_shlibs_CXX=no
13065: ;;
13066:
13067: openbsd*)
13068: if test -f /usr/libexec/ld.so; then
13069: hardcode_direct_CXX=yes
13070: hardcode_shlibpath_var_CXX=no
13071: hardcode_direct_absolute_CXX=yes
13072: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13073: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13074: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13075: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13076: export_dynamic_flag_spec_CXX='${wl}-E'
13077: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13078: fi
13079: output_verbose_link_cmd=func_echo_all
13080: else
13081: ld_shlibs_CXX=no
13082: fi
13083: ;;
13084:
13085: osf3* | osf4* | osf5*)
13086: case $cc_basename in
13087: KCC*)
13088: # Kuck and Associates, Inc. (KAI) C++ Compiler
13089:
13090: # KCC will only create a shared library if the output file
13091: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13092: # to its proper name (with version) after linking.
13093: 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'
13094:
13095: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13096: hardcode_libdir_separator_CXX=:
13097:
13098: # Archives containing C++ object files must be created using
13099: # the KAI C++ compiler.
13100: case $host in
13101: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13102: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13103: esac
13104: ;;
13105: RCC*)
13106: # Rational C++ 2.4.1
13107: # FIXME: insert proper C++ library support
13108: ld_shlibs_CXX=no
13109: ;;
13110: cxx*)
13111: case $host in
13112: osf3*)
13113: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13114: 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'
13115: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13116: ;;
13117: *)
13118: allow_undefined_flag_CXX=' -expect_unresolved \*'
13119: 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'
13120: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13121: echo "-hidden">> $lib.exp~
13122: $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~
13123: $RM $lib.exp'
13124: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13125: ;;
13126: esac
13127:
13128: hardcode_libdir_separator_CXX=:
13129:
13130: # Commands to make compiler produce verbose output that lists
13131: # what "hidden" libraries, object files and flags are used when
13132: # linking a shared library.
13133: #
13134: # There doesn't appear to be a way to prevent this compiler from
13135: # explicitly linking system object files so we need to strip them
13136: # from the output so that they don't get included in the library
13137: # dependencies.
13138: 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"'
13139: ;;
13140: *)
13141: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13142: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13143: case $host in
13144: osf3*)
13145: 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'
13146: ;;
13147: *)
13148: 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'
13149: ;;
13150: esac
13151:
13152: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13153: hardcode_libdir_separator_CXX=:
13154:
13155: # Commands to make compiler produce verbose output that lists
13156: # what "hidden" libraries, object files and flags are used when
13157: # linking a shared library.
13158: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13159:
13160: else
13161: # FIXME: insert proper C++ library support
13162: ld_shlibs_CXX=no
13163: fi
13164: ;;
13165: esac
13166: ;;
13167:
13168: psos*)
13169: # FIXME: insert proper C++ library support
13170: ld_shlibs_CXX=no
13171: ;;
13172:
13173: sunos4*)
13174: case $cc_basename in
13175: CC*)
13176: # Sun C++ 4.x
13177: # FIXME: insert proper C++ library support
13178: ld_shlibs_CXX=no
13179: ;;
13180: lcc*)
13181: # Lucid
13182: # FIXME: insert proper C++ library support
13183: ld_shlibs_CXX=no
13184: ;;
13185: *)
13186: # FIXME: insert proper C++ library support
13187: ld_shlibs_CXX=no
13188: ;;
13189: esac
13190: ;;
13191:
13192: solaris*)
13193: case $cc_basename in
13194: CC* | sunCC*)
13195: # Sun C++ 4.2, 5.x and Centerline C++
13196: archive_cmds_need_lc_CXX=yes
13197: no_undefined_flag_CXX=' -zdefs'
13198: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13199: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13200: $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'
13201:
13202: hardcode_libdir_flag_spec_CXX='-R$libdir'
13203: hardcode_shlibpath_var_CXX=no
13204: case $host_os in
13205: solaris2.[0-5] | solaris2.[0-5].*) ;;
13206: *)
13207: # The compiler driver will combine and reorder linker options,
13208: # but understands `-z linker_flag'.
13209: # Supported since Solaris 2.6 (maybe 2.5.1?)
13210: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13211: ;;
13212: esac
13213: link_all_deplibs_CXX=yes
13214:
13215: output_verbose_link_cmd='func_echo_all'
13216:
13217: # Archives containing C++ object files must be created using
13218: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13219: # necessary to make sure instantiated templates are included
13220: # in the archive.
13221: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13222: ;;
13223: gcx*)
13224: # Green Hills C++ Compiler
13225: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13226:
13227: # The C++ compiler must be used to create the archive.
13228: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13229: ;;
13230: *)
13231: # GNU C++ compiler with Solaris linker
13232: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13233: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13234: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13235: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13236: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13237: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13238:
13239: # Commands to make compiler produce verbose output that lists
13240: # what "hidden" libraries, object files and flags are used when
13241: # linking a shared library.
13242: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13243: else
13244: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13245: # platform.
13246: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13247: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13248: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13249:
13250: # Commands to make compiler produce verbose output that lists
13251: # what "hidden" libraries, object files and flags are used when
13252: # linking a shared library.
13253: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13254: fi
13255:
13256: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13257: case $host_os in
13258: solaris2.[0-5] | solaris2.[0-5].*) ;;
13259: *)
13260: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13261: ;;
13262: esac
13263: fi
13264: ;;
13265: esac
13266: ;;
13267:
13268: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13269: no_undefined_flag_CXX='${wl}-z,text'
13270: archive_cmds_need_lc_CXX=no
13271: hardcode_shlibpath_var_CXX=no
13272: runpath_var='LD_RUN_PATH'
13273:
13274: case $cc_basename in
13275: CC*)
13276: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13277: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13278: ;;
13279: *)
13280: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13281: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282: ;;
13283: esac
13284: ;;
13285:
13286: sysv5* | sco3.2v5* | sco5v6*)
13287: # Note: We can NOT use -z defs as we might desire, because we do not
13288: # link with -lc, and that would cause any symbols used from libc to
13289: # always be unresolved, which means just about no library would
13290: # ever link correctly. If we're not using GNU ld we use -z text
13291: # though, which does catch some bad symbols but isn't as heavy-handed
13292: # as -z defs.
13293: no_undefined_flag_CXX='${wl}-z,text'
13294: allow_undefined_flag_CXX='${wl}-z,nodefs'
13295: archive_cmds_need_lc_CXX=no
13296: hardcode_shlibpath_var_CXX=no
13297: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13298: hardcode_libdir_separator_CXX=':'
13299: link_all_deplibs_CXX=yes
13300: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13301: runpath_var='LD_RUN_PATH'
13302:
13303: case $cc_basename in
13304: CC*)
13305: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13307: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13308: '"$old_archive_cmds_CXX"
13309: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13310: '"$reload_cmds_CXX"
13311: ;;
13312: *)
13313: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13314: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13315: ;;
13316: esac
13317: ;;
13318:
13319: tandem*)
13320: case $cc_basename in
13321: NCC*)
13322: # NonStop-UX NCC 3.20
13323: # FIXME: insert proper C++ library support
13324: ld_shlibs_CXX=no
13325: ;;
13326: *)
13327: # FIXME: insert proper C++ library support
13328: ld_shlibs_CXX=no
13329: ;;
13330: esac
13331: ;;
13332:
13333: vxworks*)
13334: # FIXME: insert proper C++ library support
13335: ld_shlibs_CXX=no
13336: ;;
13337:
13338: *)
13339: # FIXME: insert proper C++ library support
13340: ld_shlibs_CXX=no
13341: ;;
13342: esac
13343:
13344: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13345: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13346: test "$ld_shlibs_CXX" = no && can_build_shared=no
13347:
13348: GCC_CXX="$GXX"
13349: LD_CXX="$LD"
13350:
13351: ## CAVEAT EMPTOR:
13352: ## There is no encapsulation within the following macros, do not change
13353: ## the running order or otherwise move them around unless you know exactly
13354: ## what you are doing...
13355: # Dependencies to place before and after the object being linked:
13356: predep_objects_CXX=
13357: postdep_objects_CXX=
13358: predeps_CXX=
13359: postdeps_CXX=
13360: compiler_lib_search_path_CXX=
13361:
13362: cat > conftest.$ac_ext <<_LT_EOF
13363: class Foo
13364: {
13365: public:
13366: Foo (void) { a = 0; }
13367: private:
13368: int a;
13369: };
13370: _LT_EOF
13371:
13372:
13373: _lt_libdeps_save_CFLAGS=$CFLAGS
13374: case "$CC $CFLAGS " in #(
13375: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13376: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13377: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13378: esac
13379:
13380: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13381: (eval $ac_compile) 2>&5
13382: ac_status=$?
13383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384: (exit $ac_status); }; then
13385: # Parse the compiler output and extract the necessary
13386: # objects, libraries and library flags.
13387:
13388: # Sentinel used to keep track of whether or not we are before
13389: # the conftest object file.
13390: pre_test_object_deps_done=no
13391:
13392: for p in `eval "$output_verbose_link_cmd"`; do
13393: case ${prev}${p} in
13394:
13395: -L* | -R* | -l*)
13396: # Some compilers place space between "-{L,R}" and the path.
13397: # Remove the space.
13398: if test $p = "-L" ||
13399: test $p = "-R"; then
13400: prev=$p
13401: continue
13402: fi
13403:
13404: # Expand the sysroot to ease extracting the directories later.
13405: if test -z "$prev"; then
13406: case $p in
13407: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13408: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13409: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13410: esac
13411: fi
13412: case $p in
13413: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13414: esac
13415: if test "$pre_test_object_deps_done" = no; then
13416: case ${prev} in
13417: -L | -R)
13418: # Internal compiler library paths should come after those
13419: # provided the user. The postdeps already come after the
13420: # user supplied libs so there is no need to process them.
13421: if test -z "$compiler_lib_search_path_CXX"; then
13422: compiler_lib_search_path_CXX="${prev}${p}"
13423: else
13424: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13425: fi
13426: ;;
13427: # The "-l" case would never come before the object being
13428: # linked, so don't bother handling this case.
13429: esac
13430: else
13431: if test -z "$postdeps_CXX"; then
13432: postdeps_CXX="${prev}${p}"
13433: else
13434: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13435: fi
13436: fi
13437: prev=
13438: ;;
13439:
13440: *.lto.$objext) ;; # Ignore GCC LTO objects
13441: *.$objext)
13442: # This assumes that the test object file only shows up
13443: # once in the compiler output.
13444: if test "$p" = "conftest.$objext"; then
13445: pre_test_object_deps_done=yes
13446: continue
13447: fi
13448:
13449: if test "$pre_test_object_deps_done" = no; then
13450: if test -z "$predep_objects_CXX"; then
13451: predep_objects_CXX="$p"
13452: else
13453: predep_objects_CXX="$predep_objects_CXX $p"
13454: fi
13455: else
13456: if test -z "$postdep_objects_CXX"; then
13457: postdep_objects_CXX="$p"
13458: else
13459: postdep_objects_CXX="$postdep_objects_CXX $p"
13460: fi
13461: fi
13462: ;;
13463:
13464: *) ;; # Ignore the rest.
13465:
13466: esac
13467: done
13468:
13469: # Clean up.
13470: rm -f a.out a.exe
13471: else
13472: echo "libtool.m4: error: problem compiling CXX test program"
13473: fi
13474:
13475: $RM -f confest.$objext
13476: CFLAGS=$_lt_libdeps_save_CFLAGS
13477:
13478: # PORTME: override above test on systems where it is broken
13479: case $host_os in
13480: interix[3-9]*)
13481: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13482: # hack all around it, let's just trust "g++" to DTRT.
13483: predep_objects_CXX=
13484: postdep_objects_CXX=
13485: postdeps_CXX=
13486: ;;
13487:
13488: linux*)
13489: case `$CC -V 2>&1 | sed 5q` in
13490: *Sun\ C*)
13491: # Sun C++ 5.9
13492:
13493: # The more standards-conforming stlport4 library is
13494: # incompatible with the Cstd library. Avoid specifying
13495: # it if it's in CXXFLAGS. Ignore libCrun as
13496: # -library=stlport4 depends on it.
13497: case " $CXX $CXXFLAGS " in
13498: *" -library=stlport4 "*)
13499: solaris_use_stlport4=yes
13500: ;;
13501: esac
13502:
13503: if test "$solaris_use_stlport4" != yes; then
13504: postdeps_CXX='-library=Cstd -library=Crun'
13505: fi
13506: ;;
13507: esac
13508: ;;
13509:
13510: solaris*)
13511: case $cc_basename in
13512: CC* | sunCC*)
13513: # The more standards-conforming stlport4 library is
13514: # incompatible with the Cstd library. Avoid specifying
13515: # it if it's in CXXFLAGS. Ignore libCrun as
13516: # -library=stlport4 depends on it.
13517: case " $CXX $CXXFLAGS " in
13518: *" -library=stlport4 "*)
13519: solaris_use_stlport4=yes
13520: ;;
13521: esac
13522:
13523: # Adding this requires a known-good setup of shared libraries for
13524: # Sun compiler versions before 5.6, else PIC objects from an old
13525: # archive will be linked into the output, leading to subtle bugs.
13526: if test "$solaris_use_stlport4" != yes; then
13527: postdeps_CXX='-library=Cstd -library=Crun'
13528: fi
13529: ;;
13530: esac
13531: ;;
13532: esac
13533:
13534:
13535: case " $postdeps_CXX " in
13536: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13537: esac
13538: compiler_lib_search_dirs_CXX=
13539: if test -n "${compiler_lib_search_path_CXX}"; then
13540: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13541: fi
13542:
13543:
13544:
13545:
13546:
13547:
13548:
13549:
13550:
13551:
13552:
13553:
13554:
13555:
13556:
13557:
13558:
13559:
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573: lt_prog_compiler_wl_CXX=
13574: lt_prog_compiler_pic_CXX=
13575: lt_prog_compiler_static_CXX=
13576:
13577:
13578: # C++ specific cases for pic, static, wl, etc.
13579: if test "$GXX" = yes; then
13580: lt_prog_compiler_wl_CXX='-Wl,'
13581: lt_prog_compiler_static_CXX='-static'
13582:
13583: case $host_os in
13584: aix*)
13585: # All AIX code is PIC.
13586: if test "$host_cpu" = ia64; then
13587: # AIX 5 now supports IA64 processor
13588: lt_prog_compiler_static_CXX='-Bstatic'
13589: fi
13590: ;;
13591:
13592: amigaos*)
13593: case $host_cpu in
13594: powerpc)
13595: # see comment about AmigaOS4 .so support
13596: lt_prog_compiler_pic_CXX='-fPIC'
13597: ;;
13598: m68k)
13599: # FIXME: we need at least 68020 code to build shared libraries, but
13600: # adding the `-m68020' flag to GCC prevents building anything better,
13601: # like `-m68040'.
13602: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13603: ;;
13604: esac
13605: ;;
13606:
13607: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13608: # PIC is the default for these OSes.
13609: ;;
13610: mingw* | cygwin* | os2* | pw32* | cegcc*)
13611: # This hack is so that the source file can tell whether it is being
13612: # built for inclusion in a dll (and should export symbols for example).
13613: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13614: # (--disable-auto-import) libraries
13615: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13616: ;;
13617: darwin* | rhapsody*)
13618: # PIC is the default on this platform
13619: # Common symbols not allowed in MH_DYLIB files
13620: lt_prog_compiler_pic_CXX='-fno-common'
13621: ;;
13622: *djgpp*)
13623: # DJGPP does not support shared libraries at all
13624: lt_prog_compiler_pic_CXX=
13625: ;;
13626: haiku*)
13627: # PIC is the default for Haiku.
13628: # The "-static" flag exists, but is broken.
13629: lt_prog_compiler_static_CXX=
13630: ;;
13631: interix[3-9]*)
13632: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13633: # Instead, we relocate shared libraries at runtime.
13634: ;;
13635: sysv4*MP*)
13636: if test -d /usr/nec; then
13637: lt_prog_compiler_pic_CXX=-Kconform_pic
13638: fi
13639: ;;
13640: hpux*)
13641: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13642: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13643: # sets the default TLS model and affects inlining.
13644: case $host_cpu in
13645: hppa*64*)
13646: ;;
13647: *)
13648: lt_prog_compiler_pic_CXX='-fPIC'
13649: ;;
13650: esac
13651: ;;
13652: *qnx* | *nto*)
13653: # QNX uses GNU C++, but need to define -shared option too, otherwise
13654: # it will coredump.
13655: lt_prog_compiler_pic_CXX='-fPIC -shared'
13656: ;;
13657: *)
13658: lt_prog_compiler_pic_CXX='-fPIC'
13659: ;;
13660: esac
13661: else
13662: case $host_os in
13663: aix[4-9]*)
13664: # All AIX code is PIC.
13665: if test "$host_cpu" = ia64; then
13666: # AIX 5 now supports IA64 processor
13667: lt_prog_compiler_static_CXX='-Bstatic'
13668: else
13669: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13670: fi
13671: ;;
13672: chorus*)
13673: case $cc_basename in
13674: cxch68*)
13675: # Green Hills C++ Compiler
13676: # _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"
13677: ;;
13678: esac
13679: ;;
13680: mingw* | cygwin* | os2* | pw32* | cegcc*)
13681: # This hack is so that the source file can tell whether it is being
13682: # built for inclusion in a dll (and should export symbols for example).
13683: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13684: ;;
13685: dgux*)
13686: case $cc_basename in
13687: ec++*)
13688: lt_prog_compiler_pic_CXX='-KPIC'
13689: ;;
13690: ghcx*)
13691: # Green Hills C++ Compiler
13692: lt_prog_compiler_pic_CXX='-pic'
13693: ;;
13694: *)
13695: ;;
13696: esac
13697: ;;
13698: freebsd* | dragonfly*)
13699: # FreeBSD uses GNU C++
13700: ;;
13701: hpux9* | hpux10* | hpux11*)
13702: case $cc_basename in
13703: CC*)
13704: lt_prog_compiler_wl_CXX='-Wl,'
13705: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13706: if test "$host_cpu" != ia64; then
13707: lt_prog_compiler_pic_CXX='+Z'
13708: fi
13709: ;;
13710: aCC*)
13711: lt_prog_compiler_wl_CXX='-Wl,'
13712: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13713: case $host_cpu in
13714: hppa*64*|ia64*)
13715: # +Z the default
13716: ;;
13717: *)
13718: lt_prog_compiler_pic_CXX='+Z'
13719: ;;
13720: esac
13721: ;;
13722: *)
13723: ;;
13724: esac
13725: ;;
13726: interix*)
13727: # This is c89, which is MS Visual C++ (no shared libs)
13728: # Anyone wants to do a port?
13729: ;;
13730: irix5* | irix6* | nonstopux*)
13731: case $cc_basename in
13732: CC*)
13733: lt_prog_compiler_wl_CXX='-Wl,'
13734: lt_prog_compiler_static_CXX='-non_shared'
13735: # CC pic flag -KPIC is the default.
13736: ;;
13737: *)
13738: ;;
13739: esac
13740: ;;
13741: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13742: case $cc_basename in
13743: KCC*)
13744: # KAI C++ Compiler
13745: lt_prog_compiler_wl_CXX='--backend -Wl,'
13746: lt_prog_compiler_pic_CXX='-fPIC'
13747: ;;
13748: ecpc* )
13749: # old Intel C++ for x86_64 which still supported -KPIC.
13750: lt_prog_compiler_wl_CXX='-Wl,'
13751: lt_prog_compiler_pic_CXX='-KPIC'
13752: lt_prog_compiler_static_CXX='-static'
13753: ;;
13754: icpc* )
13755: # Intel C++, used to be incompatible with GCC.
13756: # ICC 10 doesn't accept -KPIC any more.
13757: lt_prog_compiler_wl_CXX='-Wl,'
13758: lt_prog_compiler_pic_CXX='-fPIC'
13759: lt_prog_compiler_static_CXX='-static'
13760: ;;
13761: pgCC* | pgcpp*)
13762: # Portland Group C++ compiler
13763: lt_prog_compiler_wl_CXX='-Wl,'
13764: lt_prog_compiler_pic_CXX='-fpic'
13765: lt_prog_compiler_static_CXX='-Bstatic'
13766: ;;
13767: cxx*)
13768: # Compaq C++
13769: # Make sure the PIC flag is empty. It appears that all Alpha
13770: # Linux and Compaq Tru64 Unix objects are PIC.
13771: lt_prog_compiler_pic_CXX=
13772: lt_prog_compiler_static_CXX='-non_shared'
13773: ;;
13774: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13775: # IBM XL 8.0, 9.0 on PPC and BlueGene
13776: lt_prog_compiler_wl_CXX='-Wl,'
13777: lt_prog_compiler_pic_CXX='-qpic'
13778: lt_prog_compiler_static_CXX='-qstaticlink'
13779: ;;
13780: *)
13781: case `$CC -V 2>&1 | sed 5q` in
13782: *Sun\ C*)
13783: # Sun C++ 5.9
13784: lt_prog_compiler_pic_CXX='-KPIC'
13785: lt_prog_compiler_static_CXX='-Bstatic'
13786: lt_prog_compiler_wl_CXX='-Qoption ld '
13787: ;;
13788: esac
13789: ;;
13790: esac
13791: ;;
13792: lynxos*)
13793: ;;
13794: m88k*)
13795: ;;
13796: mvs*)
13797: case $cc_basename in
13798: cxx*)
13799: lt_prog_compiler_pic_CXX='-W c,exportall'
13800: ;;
13801: *)
13802: ;;
13803: esac
13804: ;;
13805: netbsd*)
13806: ;;
13807: *qnx* | *nto*)
13808: # QNX uses GNU C++, but need to define -shared option too, otherwise
13809: # it will coredump.
13810: lt_prog_compiler_pic_CXX='-fPIC -shared'
13811: ;;
13812: osf3* | osf4* | osf5*)
13813: case $cc_basename in
13814: KCC*)
13815: lt_prog_compiler_wl_CXX='--backend -Wl,'
13816: ;;
13817: RCC*)
13818: # Rational C++ 2.4.1
13819: lt_prog_compiler_pic_CXX='-pic'
13820: ;;
13821: cxx*)
13822: # Digital/Compaq C++
13823: lt_prog_compiler_wl_CXX='-Wl,'
13824: # Make sure the PIC flag is empty. It appears that all Alpha
13825: # Linux and Compaq Tru64 Unix objects are PIC.
13826: lt_prog_compiler_pic_CXX=
13827: lt_prog_compiler_static_CXX='-non_shared'
13828: ;;
13829: *)
13830: ;;
13831: esac
13832: ;;
13833: psos*)
13834: ;;
13835: solaris*)
13836: case $cc_basename in
13837: CC* | sunCC*)
13838: # Sun C++ 4.2, 5.x and Centerline C++
13839: lt_prog_compiler_pic_CXX='-KPIC'
13840: lt_prog_compiler_static_CXX='-Bstatic'
13841: lt_prog_compiler_wl_CXX='-Qoption ld '
13842: ;;
13843: gcx*)
13844: # Green Hills C++ Compiler
13845: lt_prog_compiler_pic_CXX='-PIC'
13846: ;;
13847: *)
13848: ;;
13849: esac
13850: ;;
13851: sunos4*)
13852: case $cc_basename in
13853: CC*)
13854: # Sun C++ 4.x
13855: lt_prog_compiler_pic_CXX='-pic'
13856: lt_prog_compiler_static_CXX='-Bstatic'
13857: ;;
13858: lcc*)
13859: # Lucid
13860: lt_prog_compiler_pic_CXX='-pic'
13861: ;;
13862: *)
13863: ;;
13864: esac
13865: ;;
13866: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13867: case $cc_basename in
13868: CC*)
13869: lt_prog_compiler_wl_CXX='-Wl,'
13870: lt_prog_compiler_pic_CXX='-KPIC'
13871: lt_prog_compiler_static_CXX='-Bstatic'
13872: ;;
13873: esac
13874: ;;
13875: tandem*)
13876: case $cc_basename in
13877: NCC*)
13878: # NonStop-UX NCC 3.20
13879: lt_prog_compiler_pic_CXX='-KPIC'
13880: ;;
13881: *)
13882: ;;
13883: esac
13884: ;;
13885: vxworks*)
13886: ;;
13887: *)
13888: lt_prog_compiler_can_build_shared_CXX=no
13889: ;;
13890: esac
13891: fi
13892:
13893: case $host_os in
13894: # For platforms which do not support PIC, -DPIC is meaningless:
13895: *djgpp*)
13896: lt_prog_compiler_pic_CXX=
13897: ;;
13898: *)
13899: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13900: ;;
13901: esac
13902:
13903: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13904: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13905: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13906: echo $ECHO_N "(cached) $ECHO_C" >&6
13907: else
13908: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13909: fi
13910: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13911: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
13912: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13913:
13914: #
13915: # Check to make sure the PIC flag actually works.
13916: #
13917: if test -n "$lt_prog_compiler_pic_CXX"; then
13918: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13919: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13920: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13921: echo $ECHO_N "(cached) $ECHO_C" >&6
13922: else
13923: lt_cv_prog_compiler_pic_works_CXX=no
13924: ac_outfile=conftest.$ac_objext
13925: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13926: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13927: # Insert the option either (1) after the last *FLAGS variable, or
13928: # (2) before a word containing "conftest.", or (3) at the end.
13929: # Note that $ac_compile itself does not contain backslashes and begins
13930: # with a dollar sign (not a hyphen), so the echo should work correctly.
13931: # The option is referenced via a variable to avoid confusing sed.
13932: lt_compile=`echo "$ac_compile" | $SED \
13933: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13934: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13935: -e 's:$: $lt_compiler_flag:'`
13936: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13937: (eval "$lt_compile" 2>conftest.err)
13938: ac_status=$?
13939: cat conftest.err >&5
13940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941: if (exit $ac_status) && test -s "$ac_outfile"; then
13942: # The compiler can only warn and ignore the option if not recognized
13943: # So say no if there are warnings other than the usual output.
13944: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13945: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13946: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13947: lt_cv_prog_compiler_pic_works_CXX=yes
13948: fi
13949: fi
13950: $RM conftest*
13951:
13952: fi
13953: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13954: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13955:
13956: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13957: case $lt_prog_compiler_pic_CXX in
13958: "" | " "*) ;;
13959: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13960: esac
13961: else
13962: lt_prog_compiler_pic_CXX=
13963: lt_prog_compiler_can_build_shared_CXX=no
13964: fi
13965:
13966: fi
13967:
13968:
13969:
13970:
13971:
13972: #
13973: # Check to make sure the static flag actually works.
13974: #
13975: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13976: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13977: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13978: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13979: echo $ECHO_N "(cached) $ECHO_C" >&6
13980: else
13981: lt_cv_prog_compiler_static_works_CXX=no
13982: save_LDFLAGS="$LDFLAGS"
13983: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13984: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13985: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13986: # The linker can only warn and ignore the option if not recognized
13987: # So say no if there are warnings
13988: if test -s conftest.err; then
13989: # Append any errors to the config.log.
13990: cat conftest.err 1>&5
13991: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13992: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13993: if diff conftest.exp conftest.er2 >/dev/null; then
13994: lt_cv_prog_compiler_static_works_CXX=yes
13995: fi
13996: else
13997: lt_cv_prog_compiler_static_works_CXX=yes
13998: fi
13999: fi
14000: $RM -r conftest*
14001: LDFLAGS="$save_LDFLAGS"
14002:
14003: fi
14004: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14005: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14006:
14007: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14008: :
14009: else
14010: lt_prog_compiler_static_CXX=
14011: fi
14012:
14013:
14014:
14015:
14016: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14017: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14018: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14019: echo $ECHO_N "(cached) $ECHO_C" >&6
14020: else
14021: lt_cv_prog_compiler_c_o_CXX=no
14022: $RM -r conftest 2>/dev/null
14023: mkdir conftest
14024: cd conftest
14025: mkdir out
14026: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027:
14028: lt_compiler_flag="-o out/conftest2.$ac_objext"
14029: # Insert the option either (1) after the last *FLAGS variable, or
14030: # (2) before a word containing "conftest.", or (3) at the end.
14031: # Note that $ac_compile itself does not contain backslashes and begins
14032: # with a dollar sign (not a hyphen), so the echo should work correctly.
14033: lt_compile=`echo "$ac_compile" | $SED \
14034: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036: -e 's:$: $lt_compiler_flag:'`
14037: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038: (eval "$lt_compile" 2>out/conftest.err)
14039: ac_status=$?
14040: cat out/conftest.err >&5
14041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14043: then
14044: # The compiler can only warn and ignore the option if not recognized
14045: # So say no if there are warnings
14046: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14047: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14048: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14049: lt_cv_prog_compiler_c_o_CXX=yes
14050: fi
14051: fi
14052: chmod u+w . 2>&5
14053: $RM conftest*
14054: # SGI C++ compiler will create directory out/ii_files/ for
14055: # template instantiation
14056: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14057: $RM out/* && rmdir out
14058: cd ..
14059: $RM -r conftest
14060: $RM conftest*
14061:
14062: fi
14063: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14064: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14065:
14066:
14067:
14068: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14069: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14070: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14071: echo $ECHO_N "(cached) $ECHO_C" >&6
14072: else
14073: lt_cv_prog_compiler_c_o_CXX=no
14074: $RM -r conftest 2>/dev/null
14075: mkdir conftest
14076: cd conftest
14077: mkdir out
14078: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14079:
14080: lt_compiler_flag="-o out/conftest2.$ac_objext"
14081: # Insert the option either (1) after the last *FLAGS variable, or
14082: # (2) before a word containing "conftest.", or (3) at the end.
14083: # Note that $ac_compile itself does not contain backslashes and begins
14084: # with a dollar sign (not a hyphen), so the echo should work correctly.
14085: lt_compile=`echo "$ac_compile" | $SED \
14086: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14087: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14088: -e 's:$: $lt_compiler_flag:'`
14089: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14090: (eval "$lt_compile" 2>out/conftest.err)
14091: ac_status=$?
14092: cat out/conftest.err >&5
14093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14095: then
14096: # The compiler can only warn and ignore the option if not recognized
14097: # So say no if there are warnings
14098: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14099: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14100: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14101: lt_cv_prog_compiler_c_o_CXX=yes
14102: fi
14103: fi
14104: chmod u+w . 2>&5
14105: $RM conftest*
14106: # SGI C++ compiler will create directory out/ii_files/ for
14107: # template instantiation
14108: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14109: $RM out/* && rmdir out
14110: cd ..
14111: $RM -r conftest
14112: $RM conftest*
14113:
14114: fi
14115: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14116: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14117:
14118:
14119:
14120:
14121: hard_links="nottested"
14122: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14123: # do not overwrite the value of need_locks provided by the user
14124: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14125: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14126: hard_links=yes
14127: $RM conftest*
14128: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14129: touch conftest.a
14130: ln conftest.a conftest.b 2>&5 || hard_links=no
14131: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14132: echo "$as_me:$LINENO: result: $hard_links" >&5
14133: echo "${ECHO_T}$hard_links" >&6
14134: if test "$hard_links" = no; then
14135: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14136: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14137: need_locks=warn
14138: fi
14139: else
14140: need_locks=no
14141: fi
14142:
14143:
14144:
14145: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14146: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14147:
14148: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14149: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14150: case $host_os in
14151: aix[4-9]*)
14152: # If we're using GNU nm, then we don't want the "-C" option.
14153: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14154: # Also, AIX nm treats weak defined symbols like other global defined
14155: # symbols, whereas GNU nm marks them as "W".
14156: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14157: 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'
14158: else
14159: 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'
14160: fi
14161: ;;
14162: pw32*)
14163: export_symbols_cmds_CXX="$ltdll_cmds"
14164: ;;
14165: cygwin* | mingw* | cegcc*)
14166: case $cc_basename in
14167: cl*)
14168: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14169: ;;
14170: *)
14171: 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'
14172: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14173: ;;
14174: esac
14175: ;;
14176: *)
14177: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14178: ;;
14179: esac
14180:
14181: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14182: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14183: test "$ld_shlibs_CXX" = no && can_build_shared=no
14184:
14185: with_gnu_ld_CXX=$with_gnu_ld
14186:
14187:
14188:
14189:
14190:
14191:
14192: #
14193: # Do we need to explicitly link libc?
14194: #
14195: case "x$archive_cmds_need_lc_CXX" in
14196: x|xyes)
14197: # Assume -lc should be added
14198: archive_cmds_need_lc_CXX=yes
14199:
14200: if test "$enable_shared" = yes && test "$GCC" = yes; then
14201: case $archive_cmds_CXX in
14202: *'~'*)
14203: # FIXME: we may have to deal with multi-command sequences.
14204: ;;
14205: '$CC '*)
14206: # Test whether the compiler implicitly links with -lc since on some
14207: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14208: # to ld, don't add -lc before -lgcc.
14209: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14210: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14211: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14212: echo $ECHO_N "(cached) $ECHO_C" >&6
14213: else
14214: $RM conftest*
14215: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14216:
14217: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218: (eval $ac_compile) 2>&5
14219: ac_status=$?
14220: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221: (exit $ac_status); } 2>conftest.err; then
14222: soname=conftest
14223: lib=conftest
14224: libobjs=conftest.$ac_objext
14225: deplibs=
14226: wl=$lt_prog_compiler_wl_CXX
14227: pic_flag=$lt_prog_compiler_pic_CXX
14228: compiler_flags=-v
14229: linker_flags=-v
14230: verstring=
14231: output_objdir=.
14232: libname=conftest
14233: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14234: allow_undefined_flag_CXX=
14235: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14236: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14237: ac_status=$?
14238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239: (exit $ac_status); }
14240: then
14241: lt_cv_archive_cmds_need_lc_CXX=no
14242: else
14243: lt_cv_archive_cmds_need_lc_CXX=yes
14244: fi
14245: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14246: else
14247: cat conftest.err 1>&5
14248: fi
14249: $RM conftest*
14250:
14251: fi
14252: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14253: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14254: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14255: ;;
14256: esac
14257: fi
14258: ;;
14259: esac
14260:
14261:
14262:
14263:
14264:
14265:
14266:
14267:
14268:
14269:
14270:
14271:
14272:
14273:
14274:
14275:
14276:
14277:
14278:
14279:
14280:
14281:
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14323: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14324:
14325: library_names_spec=
14326: libname_spec='lib$name'
14327: soname_spec=
14328: shrext_cmds=".so"
14329: postinstall_cmds=
14330: postuninstall_cmds=
14331: finish_cmds=
14332: finish_eval=
14333: shlibpath_var=
14334: shlibpath_overrides_runpath=unknown
14335: version_type=none
14336: dynamic_linker="$host_os ld.so"
14337: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14338: need_lib_prefix=unknown
14339: hardcode_into_libs=no
14340:
14341: # when you set need_version to no, make sure it does not cause -set_version
14342: # flags to be left without arguments
14343: need_version=unknown
14344:
14345: case $host_os in
14346: aix3*)
14347: version_type=linux # correct to gnu/linux during the next big refactor
14348: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14349: shlibpath_var=LIBPATH
14350:
14351: # AIX 3 has no versioning support, so we append a major version to the name.
14352: soname_spec='${libname}${release}${shared_ext}$major'
14353: ;;
14354:
14355: aix[4-9]*)
14356: version_type=linux # correct to gnu/linux during the next big refactor
14357: need_lib_prefix=no
14358: need_version=no
14359: hardcode_into_libs=yes
14360: if test "$host_cpu" = ia64; then
14361: # AIX 5 supports IA64
14362: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14363: shlibpath_var=LD_LIBRARY_PATH
14364: else
14365: # With GCC up to 2.95.x, collect2 would create an import file
14366: # for dependence libraries. The import file would start with
14367: # the line `#! .'. This would cause the generated library to
14368: # depend on `.', always an invalid library. This was fixed in
14369: # development snapshots of GCC prior to 3.0.
14370: case $host_os in
14371: aix4 | aix4.[01] | aix4.[01].*)
14372: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14373: echo ' yes '
14374: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14375: :
14376: else
14377: can_build_shared=no
14378: fi
14379: ;;
14380: esac
14381: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14382: # soname into executable. Probably we can add versioning support to
14383: # collect2, so additional links can be useful in future.
14384: if test "$aix_use_runtimelinking" = yes; then
14385: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14386: # instead of lib<name>.a to let people know that these are not
14387: # typical AIX shared libraries.
14388: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389: else
14390: # We preserve .a as extension for shared libraries through AIX4.2
14391: # and later when we are not doing run time linking.
14392: library_names_spec='${libname}${release}.a $libname.a'
14393: soname_spec='${libname}${release}${shared_ext}$major'
14394: fi
14395: shlibpath_var=LIBPATH
14396: fi
14397: ;;
14398:
14399: amigaos*)
14400: case $host_cpu in
14401: powerpc)
14402: # Since July 2007 AmigaOS4 officially supports .so libraries.
14403: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14404: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405: ;;
14406: m68k)
14407: library_names_spec='$libname.ixlibrary $libname.a'
14408: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14409: 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'
14410: ;;
14411: esac
14412: ;;
14413:
14414: beos*)
14415: library_names_spec='${libname}${shared_ext}'
14416: dynamic_linker="$host_os ld.so"
14417: shlibpath_var=LIBRARY_PATH
14418: ;;
14419:
14420: bsdi[45]*)
14421: version_type=linux # correct to gnu/linux during the next big refactor
14422: need_version=no
14423: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424: soname_spec='${libname}${release}${shared_ext}$major'
14425: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14426: shlibpath_var=LD_LIBRARY_PATH
14427: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14428: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14429: # the default ld.so.conf also contains /usr/contrib/lib and
14430: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14431: # libtool to hard-code these into programs
14432: ;;
14433:
14434: cygwin* | mingw* | pw32* | cegcc*)
14435: version_type=windows
14436: shrext_cmds=".dll"
14437: need_version=no
14438: need_lib_prefix=no
14439:
14440: case $GCC,$cc_basename in
14441: yes,*)
14442: # gcc
14443: library_names_spec='$libname.dll.a'
14444: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14445: postinstall_cmds='base_file=`basename \${file}`~
14446: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14447: dldir=$destdir/`dirname \$dlpath`~
14448: test -d \$dldir || mkdir -p \$dldir~
14449: $install_prog $dir/$dlname \$dldir/$dlname~
14450: chmod a+x \$dldir/$dlname~
14451: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14452: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14453: fi'
14454: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14455: dlpath=$dir/\$dldll~
14456: $RM \$dlpath'
14457: shlibpath_overrides_runpath=yes
14458:
14459: case $host_os in
14460: cygwin*)
14461: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14462: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14463:
14464: ;;
14465: mingw* | cegcc*)
14466: # MinGW DLLs use traditional 'lib' prefix
14467: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14468: ;;
14469: pw32*)
14470: # pw32 DLLs use 'pw' prefix rather than 'lib'
14471: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14472: ;;
14473: esac
14474: dynamic_linker='Win32 ld.exe'
14475: ;;
14476:
14477: *,cl*)
14478: # Native MSVC
14479: libname_spec='$name'
14480: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481: library_names_spec='${libname}.dll.lib'
14482:
14483: case $build_os in
14484: mingw*)
14485: sys_lib_search_path_spec=
14486: lt_save_ifs=$IFS
14487: IFS=';'
14488: for lt_path in $LIB
14489: do
14490: IFS=$lt_save_ifs
14491: # Let DOS variable expansion print the short 8.3 style file name.
14492: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14493: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14494: done
14495: IFS=$lt_save_ifs
14496: # Convert to MSYS style.
14497: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14498: ;;
14499: cygwin*)
14500: # Convert to unix form, then to dos form, then back to unix form
14501: # but this time dos style (no spaces!) so that the unix form looks
14502: # like /cygdrive/c/PROGRA~1:/cygdr...
14503: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14504: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14505: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14506: ;;
14507: *)
14508: sys_lib_search_path_spec="$LIB"
14509: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14510: # It is most probably a Windows format PATH.
14511: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14512: else
14513: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14514: fi
14515: # FIXME: find the short name or the path components, as spaces are
14516: # common. (e.g. "Program Files" -> "PROGRA~1")
14517: ;;
14518: esac
14519:
14520: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14521: postinstall_cmds='base_file=`basename \${file}`~
14522: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14523: dldir=$destdir/`dirname \$dlpath`~
14524: test -d \$dldir || mkdir -p \$dldir~
14525: $install_prog $dir/$dlname \$dldir/$dlname'
14526: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14527: dlpath=$dir/\$dldll~
14528: $RM \$dlpath'
14529: shlibpath_overrides_runpath=yes
14530: dynamic_linker='Win32 link.exe'
14531: ;;
14532:
14533: *)
14534: # Assume MSVC wrapper
14535: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14536: dynamic_linker='Win32 ld.exe'
14537: ;;
14538: esac
14539: # FIXME: first we should search . and the directory the executable is in
14540: shlibpath_var=PATH
14541: ;;
14542:
14543: darwin* | rhapsody*)
14544: dynamic_linker="$host_os dyld"
14545: version_type=darwin
14546: need_lib_prefix=no
14547: need_version=no
14548: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14549: soname_spec='${libname}${release}${major}$shared_ext'
14550: shlibpath_overrides_runpath=yes
14551: shlibpath_var=DYLD_LIBRARY_PATH
14552: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14553:
14554: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14555: ;;
14556:
14557: dgux*)
14558: version_type=linux # correct to gnu/linux during the next big refactor
14559: need_lib_prefix=no
14560: need_version=no
14561: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14562: soname_spec='${libname}${release}${shared_ext}$major'
14563: shlibpath_var=LD_LIBRARY_PATH
14564: ;;
14565:
14566: freebsd* | dragonfly*)
14567: # DragonFly does not have aout. When/if they implement a new
14568: # versioning mechanism, adjust this.
14569: if test -x /usr/bin/objformat; then
14570: objformat=`/usr/bin/objformat`
14571: else
14572: case $host_os in
14573: freebsd[23].*) objformat=aout ;;
14574: *) objformat=elf ;;
14575: esac
14576: fi
14577: version_type=freebsd-$objformat
14578: case $version_type in
14579: freebsd-elf*)
14580: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14581: need_version=no
14582: need_lib_prefix=no
14583: ;;
14584: freebsd-*)
14585: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14586: need_version=yes
14587: ;;
14588: esac
14589: shlibpath_var=LD_LIBRARY_PATH
14590: case $host_os in
14591: freebsd2.*)
14592: shlibpath_overrides_runpath=yes
14593: ;;
14594: freebsd3.[01]* | freebsdelf3.[01]*)
14595: shlibpath_overrides_runpath=yes
14596: hardcode_into_libs=yes
14597: ;;
14598: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14599: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14600: shlibpath_overrides_runpath=no
14601: hardcode_into_libs=yes
14602: ;;
14603: *) # from 4.6 on, and DragonFly
14604: shlibpath_overrides_runpath=yes
14605: hardcode_into_libs=yes
14606: ;;
14607: esac
14608: ;;
14609:
14610: gnu*)
14611: version_type=linux # correct to gnu/linux during the next big refactor
14612: need_lib_prefix=no
14613: need_version=no
14614: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14615: soname_spec='${libname}${release}${shared_ext}$major'
14616: shlibpath_var=LD_LIBRARY_PATH
14617: shlibpath_overrides_runpath=no
14618: hardcode_into_libs=yes
14619: ;;
14620:
14621: haiku*)
14622: version_type=linux # correct to gnu/linux during the next big refactor
14623: need_lib_prefix=no
14624: need_version=no
14625: dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
14629: shlibpath_overrides_runpath=yes
14630: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14631: hardcode_into_libs=yes
14632: ;;
14633:
14634: hpux9* | hpux10* | hpux11*)
14635: # Give a soname corresponding to the major version so that dld.sl refuses to
14636: # link against other versions.
14637: version_type=sunos
14638: need_lib_prefix=no
14639: need_version=no
14640: case $host_cpu in
14641: ia64*)
14642: shrext_cmds='.so'
14643: hardcode_into_libs=yes
14644: dynamic_linker="$host_os dld.so"
14645: shlibpath_var=LD_LIBRARY_PATH
14646: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14647: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648: soname_spec='${libname}${release}${shared_ext}$major'
14649: if test "X$HPUX_IA64_MODE" = X32; then
14650: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14651: else
14652: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14653: fi
14654: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14655: ;;
14656: hppa*64*)
14657: shrext_cmds='.sl'
14658: hardcode_into_libs=yes
14659: dynamic_linker="$host_os dld.sl"
14660: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14661: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14662: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663: soname_spec='${libname}${release}${shared_ext}$major'
14664: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14665: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14666: ;;
14667: *)
14668: shrext_cmds='.sl'
14669: dynamic_linker="$host_os dld.sl"
14670: shlibpath_var=SHLIB_PATH
14671: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14672: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673: soname_spec='${libname}${release}${shared_ext}$major'
14674: ;;
14675: esac
14676: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14677: postinstall_cmds='chmod 555 $lib'
14678: # or fails outright, so override atomically:
14679: install_override_mode=555
14680: ;;
14681:
14682: interix[3-9]*)
14683: version_type=linux # correct to gnu/linux during the next big refactor
14684: need_lib_prefix=no
14685: need_version=no
14686: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14687: soname_spec='${libname}${release}${shared_ext}$major'
14688: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14689: shlibpath_var=LD_LIBRARY_PATH
14690: shlibpath_overrides_runpath=no
14691: hardcode_into_libs=yes
14692: ;;
14693:
14694: irix5* | irix6* | nonstopux*)
14695: case $host_os in
14696: nonstopux*) version_type=nonstopux ;;
14697: *)
14698: if test "$lt_cv_prog_gnu_ld" = yes; then
14699: version_type=linux # correct to gnu/linux during the next big refactor
14700: else
14701: version_type=irix
14702: fi ;;
14703: esac
14704: need_lib_prefix=no
14705: need_version=no
14706: soname_spec='${libname}${release}${shared_ext}$major'
14707: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14708: case $host_os in
14709: irix5* | nonstopux*)
14710: libsuff= shlibsuff=
14711: ;;
14712: *)
14713: case $LD in # libtool.m4 will add one of these switches to LD
14714: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14715: libsuff= shlibsuff= libmagic=32-bit;;
14716: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14717: libsuff=32 shlibsuff=N32 libmagic=N32;;
14718: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14719: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14720: *) libsuff= shlibsuff= libmagic=never-match;;
14721: esac
14722: ;;
14723: esac
14724: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14725: shlibpath_overrides_runpath=no
14726: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14727: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14728: hardcode_into_libs=yes
14729: ;;
14730:
14731: # No shared lib support for Linux oldld, aout, or coff.
14732: linux*oldld* | linux*aout* | linux*coff*)
14733: dynamic_linker=no
14734: ;;
14735:
14736: # This must be glibc/ELF.
14737: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14738: version_type=linux # correct to gnu/linux during the next big refactor
14739: need_lib_prefix=no
14740: need_version=no
14741: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742: soname_spec='${libname}${release}${shared_ext}$major'
14743: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14744: shlibpath_var=LD_LIBRARY_PATH
14745: shlibpath_overrides_runpath=no
14746:
14747: # Some binutils ld are patched to set DT_RUNPATH
14748: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14749: echo $ECHO_N "(cached) $ECHO_C" >&6
14750: else
14751: lt_cv_shlibpath_overrides_runpath=no
14752: save_LDFLAGS=$LDFLAGS
14753: save_libdir=$libdir
14754: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14755: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14756: cat >conftest.$ac_ext <<_ACEOF
14757: /* confdefs.h. */
14758: _ACEOF
14759: cat confdefs.h >>conftest.$ac_ext
14760: cat >>conftest.$ac_ext <<_ACEOF
14761: /* end confdefs.h. */
14762:
14763: int
14764: main ()
14765: {
14766:
14767: ;
14768: return 0;
14769: }
14770: _ACEOF
14771: rm -f conftest.$ac_objext conftest$ac_exeext
14772: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773: (eval $ac_link) 2>conftest.er1
14774: ac_status=$?
14775: grep -v '^ *+' conftest.er1 >conftest.err
14776: rm -f conftest.er1
14777: cat conftest.err >&5
14778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779: (exit $ac_status); } &&
14780: { ac_try='test -z "$ac_cxx_werror_flag"
14781: || test ! -s conftest.err'
14782: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783: (eval $ac_try) 2>&5
14784: ac_status=$?
14785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786: (exit $ac_status); }; } &&
14787: { ac_try='test -s conftest$ac_exeext'
14788: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789: (eval $ac_try) 2>&5
14790: ac_status=$?
14791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792: (exit $ac_status); }; }; then
14793: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14794: lt_cv_shlibpath_overrides_runpath=yes
14795: fi
14796:
14797: else
14798: echo "$as_me: failed program was:" >&5
14799: sed 's/^/| /' conftest.$ac_ext >&5
14800:
14801: fi
14802: rm -f conftest.err conftest.$ac_objext \
14803: conftest$ac_exeext conftest.$ac_ext
14804: LDFLAGS=$save_LDFLAGS
14805: libdir=$save_libdir
14806:
14807: fi
14808:
14809: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14810:
14811: # This implies no fast_install, which is unacceptable.
14812: # Some rework will be needed to allow for fast_install
14813: # before this can be enabled.
14814: hardcode_into_libs=yes
14815:
14816: # Append ld.so.conf contents to the search path
14817: if test -f /etc/ld.so.conf; then
14818: 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' ' '`
14819: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14820: fi
14821:
14822: # We used to test for /lib/ld.so.1 and disable shared libraries on
14823: # powerpc, because MkLinux only supported shared libraries with the
14824: # GNU dynamic linker. Since this was broken with cross compilers,
14825: # most powerpc-linux boxes support dynamic linking these days and
14826: # people can always --disable-shared, the test was removed, and we
14827: # assume the GNU/Linux dynamic linker is in use.
14828: dynamic_linker='GNU/Linux ld.so'
14829: ;;
14830:
14831: netbsd*)
14832: version_type=sunos
14833: need_lib_prefix=no
14834: need_version=no
14835: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14836: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14837: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14838: dynamic_linker='NetBSD (a.out) ld.so'
14839: else
14840: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14841: soname_spec='${libname}${release}${shared_ext}$major'
14842: dynamic_linker='NetBSD ld.elf_so'
14843: fi
14844: shlibpath_var=LD_LIBRARY_PATH
14845: shlibpath_overrides_runpath=yes
14846: hardcode_into_libs=yes
14847: ;;
14848:
14849: newsos6)
14850: version_type=linux # correct to gnu/linux during the next big refactor
14851: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852: shlibpath_var=LD_LIBRARY_PATH
14853: shlibpath_overrides_runpath=yes
14854: ;;
14855:
14856: *nto* | *qnx*)
14857: version_type=qnx
14858: need_lib_prefix=no
14859: need_version=no
14860: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861: soname_spec='${libname}${release}${shared_ext}$major'
14862: shlibpath_var=LD_LIBRARY_PATH
14863: shlibpath_overrides_runpath=no
14864: hardcode_into_libs=yes
14865: dynamic_linker='ldqnx.so'
14866: ;;
14867:
14868: openbsd*)
14869: version_type=sunos
14870: sys_lib_dlsearch_path_spec="/usr/lib"
14871: need_lib_prefix=no
14872: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14873: case $host_os in
14874: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14875: *) need_version=no ;;
14876: esac
14877: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14878: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14879: shlibpath_var=LD_LIBRARY_PATH
14880: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14881: case $host_os in
14882: openbsd2.[89] | openbsd2.[89].*)
14883: shlibpath_overrides_runpath=no
14884: ;;
14885: *)
14886: shlibpath_overrides_runpath=yes
14887: ;;
14888: esac
14889: else
14890: shlibpath_overrides_runpath=yes
14891: fi
14892: ;;
14893:
14894: os2*)
14895: libname_spec='$name'
14896: shrext_cmds=".dll"
14897: need_lib_prefix=no
14898: library_names_spec='$libname${shared_ext} $libname.a'
14899: dynamic_linker='OS/2 ld.exe'
14900: shlibpath_var=LIBPATH
14901: ;;
14902:
14903: osf3* | osf4* | osf5*)
14904: version_type=osf
14905: need_lib_prefix=no
14906: need_version=no
14907: soname_spec='${libname}${release}${shared_ext}$major'
14908: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909: shlibpath_var=LD_LIBRARY_PATH
14910: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14911: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14912: ;;
14913:
14914: rdos*)
14915: dynamic_linker=no
14916: ;;
14917:
14918: solaris*)
14919: version_type=linux # correct to gnu/linux during the next big refactor
14920: need_lib_prefix=no
14921: need_version=no
14922: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923: soname_spec='${libname}${release}${shared_ext}$major'
14924: shlibpath_var=LD_LIBRARY_PATH
14925: shlibpath_overrides_runpath=yes
14926: hardcode_into_libs=yes
14927: # ldd complains unless libraries are executable
14928: postinstall_cmds='chmod +x $lib'
14929: ;;
14930:
14931: sunos4*)
14932: version_type=sunos
14933: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14934: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14935: shlibpath_var=LD_LIBRARY_PATH
14936: shlibpath_overrides_runpath=yes
14937: if test "$with_gnu_ld" = yes; then
14938: need_lib_prefix=no
14939: fi
14940: need_version=yes
14941: ;;
14942:
14943: sysv4 | sysv4.3*)
14944: version_type=linux # correct to gnu/linux during the next big refactor
14945: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946: soname_spec='${libname}${release}${shared_ext}$major'
14947: shlibpath_var=LD_LIBRARY_PATH
14948: case $host_vendor in
14949: sni)
14950: shlibpath_overrides_runpath=no
14951: need_lib_prefix=no
14952: runpath_var=LD_RUN_PATH
14953: ;;
14954: siemens)
14955: need_lib_prefix=no
14956: ;;
14957: motorola)
14958: need_lib_prefix=no
14959: need_version=no
14960: shlibpath_overrides_runpath=no
14961: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14962: ;;
14963: esac
14964: ;;
14965:
14966: sysv4*MP*)
14967: if test -d /usr/nec ;then
14968: version_type=linux # correct to gnu/linux during the next big refactor
14969: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14970: soname_spec='$libname${shared_ext}.$major'
14971: shlibpath_var=LD_LIBRARY_PATH
14972: fi
14973: ;;
14974:
14975: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14976: version_type=freebsd-elf
14977: need_lib_prefix=no
14978: need_version=no
14979: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14980: soname_spec='${libname}${release}${shared_ext}$major'
14981: shlibpath_var=LD_LIBRARY_PATH
14982: shlibpath_overrides_runpath=yes
14983: hardcode_into_libs=yes
14984: if test "$with_gnu_ld" = yes; then
14985: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14986: else
14987: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14988: case $host_os in
14989: sco3.2v5*)
14990: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14991: ;;
14992: esac
14993: fi
14994: sys_lib_dlsearch_path_spec='/usr/lib'
14995: ;;
14996:
14997: tpf*)
14998: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14999: version_type=linux # correct to gnu/linux during the next big refactor
15000: need_lib_prefix=no
15001: need_version=no
15002: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003: shlibpath_var=LD_LIBRARY_PATH
15004: shlibpath_overrides_runpath=no
15005: hardcode_into_libs=yes
15006: ;;
15007:
15008: uts4*)
15009: version_type=linux # correct to gnu/linux during the next big refactor
15010: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011: soname_spec='${libname}${release}${shared_ext}$major'
15012: shlibpath_var=LD_LIBRARY_PATH
15013: ;;
15014:
15015: *)
15016: dynamic_linker=no
15017: ;;
15018: esac
15019: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15020: echo "${ECHO_T}$dynamic_linker" >&6
15021: test "$dynamic_linker" = no && can_build_shared=no
15022:
15023: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15024: if test "$GCC" = yes; then
15025: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15026: fi
15027:
15028: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15029: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15030: fi
15031: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15032: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15033: fi
15034:
15035:
15036:
15037:
15038:
15039:
15040:
15041:
15042:
15043:
15044:
15045:
15046:
15047:
15048:
15049:
15050:
15051:
15052:
15053:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071:
15072: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15073: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15074: hardcode_action_CXX=
15075: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15076: test -n "$runpath_var_CXX" ||
15077: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15078:
15079: # We can hardcode non-existent directories.
15080: if test "$hardcode_direct_CXX" != no &&
15081: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15082: # have to relink, otherwise we might link with an installed library
15083: # when we should be linking with a yet-to-be-installed one
15084: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15085: test "$hardcode_minus_L_CXX" != no; then
15086: # Linking always hardcodes the temporary library directory.
15087: hardcode_action_CXX=relink
15088: else
15089: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15090: hardcode_action_CXX=immediate
15091: fi
15092: else
15093: # We cannot hardcode anything, or else we can only hardcode existing
15094: # directories.
15095: hardcode_action_CXX=unsupported
15096: fi
15097: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15098: echo "${ECHO_T}$hardcode_action_CXX" >&6
15099:
15100: if test "$hardcode_action_CXX" = relink ||
15101: test "$inherit_rpath_CXX" = yes; then
15102: # Fast installation is not supported
15103: enable_fast_install=no
15104: elif test "$shlibpath_overrides_runpath" = yes ||
15105: test "$enable_shared" = no; then
15106: # Fast installation is not necessary
15107: enable_fast_install=needless
15108: fi
15109:
15110:
15111:
15112:
15113:
15114:
15115:
15116: fi # test -n "$compiler"
15117:
15118: CC=$lt_save_CC
15119: CFLAGS=$lt_save_CFLAGS
15120: LDCXX=$LD
15121: LD=$lt_save_LD
15122: GCC=$lt_save_GCC
15123: with_gnu_ld=$lt_save_with_gnu_ld
15124: lt_cv_path_LDCXX=$lt_cv_path_LD
15125: lt_cv_path_LD=$lt_save_path_LD
15126: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15127: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15128: fi # test "$_lt_caught_CXX_error" != yes
15129:
15130: ac_ext=c
15131: ac_cpp='$CPP $CPPFLAGS'
15132: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135:
15136:
15137:
15138:
15139:
15140:
15141:
15142:
15143:
15144:
15145:
15146:
15147:
15148:
15149:
15150: ac_config_commands="$ac_config_commands libtool"
15151:
15152:
15153:
15154:
15155: # Only expand once:
15156:
15157:
15158: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15159: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15160: if test "${libltdl_cv_shlibext+set}" = set; then
15161: echo $ECHO_N "(cached) $ECHO_C" >&6
15162: else
15163:
15164: module=yes
15165: eval libltdl_cv_shlibext=$shrext_cmds
15166: module=no
15167: eval libltdl_cv_shrext=$shrext_cmds
15168:
15169: fi
15170: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15171: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15172: if test -n "$libltdl_cv_shlibext"; then
15173:
15174: cat >>confdefs.h <<_ACEOF
15175: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15176: _ACEOF
15177:
15178: fi
15179: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15180:
15181: cat >>confdefs.h <<_ACEOF
15182: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15183: _ACEOF
15184:
15185: fi
15186:
15187: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15188: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15189: if test "${lt_cv_module_path_var+set}" = set; then
15190: echo $ECHO_N "(cached) $ECHO_C" >&6
15191: else
15192: lt_cv_module_path_var="$shlibpath_var"
15193: fi
15194: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15195: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15196: if test -n "$lt_cv_module_path_var"; then
15197:
15198: cat >>confdefs.h <<_ACEOF
15199: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15200: _ACEOF
15201:
15202: fi
15203:
15204: echo "$as_me:$LINENO: checking for the default library search path" >&5
15205: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15206: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15207: echo $ECHO_N "(cached) $ECHO_C" >&6
15208: else
15209: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15210: fi
15211: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15212: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15213: if test -n "$lt_cv_sys_dlsearch_path"; then
15214: sys_dlsearch_path=
15215: for dir in $lt_cv_sys_dlsearch_path; do
15216: if test -z "$sys_dlsearch_path"; then
15217: sys_dlsearch_path="$dir"
15218: else
15219: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15220: fi
15221: done
15222:
15223: cat >>confdefs.h <<_ACEOF
15224: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15225: _ACEOF
15226:
15227: fi
15228:
15229:
15230: LT_DLLOADERS=
15231:
15232:
15233: ac_ext=c
15234: ac_cpp='$CPP $CPPFLAGS'
15235: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15236: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15237: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15238:
15239:
15240: LIBADD_DLOPEN=
15241: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15242: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15243: if test "${ac_cv_search_dlopen+set}" = set; then
15244: echo $ECHO_N "(cached) $ECHO_C" >&6
15245: else
15246: ac_func_search_save_LIBS=$LIBS
15247: ac_cv_search_dlopen=no
15248: cat >conftest.$ac_ext <<_ACEOF
15249: /* confdefs.h. */
15250: _ACEOF
15251: cat confdefs.h >>conftest.$ac_ext
15252: cat >>conftest.$ac_ext <<_ACEOF
15253: /* end confdefs.h. */
15254:
15255: /* Override any gcc2 internal prototype to avoid an error. */
15256: #ifdef __cplusplus
15257: extern "C"
15258: #endif
15259: /* We use char because int might match the return type of a gcc2
15260: builtin and then its argument prototype would still apply. */
15261: char dlopen ();
15262: int
15263: main ()
15264: {
15265: dlopen ();
15266: ;
15267: return 0;
15268: }
15269: _ACEOF
15270: rm -f conftest.$ac_objext conftest$ac_exeext
15271: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15272: (eval $ac_link) 2>conftest.er1
15273: ac_status=$?
15274: grep -v '^ *+' conftest.er1 >conftest.err
15275: rm -f conftest.er1
15276: cat conftest.err >&5
15277: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278: (exit $ac_status); } &&
15279: { ac_try='test -z "$ac_c_werror_flag"
15280: || test ! -s conftest.err'
15281: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282: (eval $ac_try) 2>&5
15283: ac_status=$?
15284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285: (exit $ac_status); }; } &&
15286: { ac_try='test -s conftest$ac_exeext'
15287: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288: (eval $ac_try) 2>&5
15289: ac_status=$?
15290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291: (exit $ac_status); }; }; then
15292: ac_cv_search_dlopen="none required"
15293: else
15294: echo "$as_me: failed program was:" >&5
15295: sed 's/^/| /' conftest.$ac_ext >&5
15296:
15297: fi
15298: rm -f conftest.err conftest.$ac_objext \
15299: conftest$ac_exeext conftest.$ac_ext
15300: if test "$ac_cv_search_dlopen" = no; then
15301: for ac_lib in dl; do
15302: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15303: cat >conftest.$ac_ext <<_ACEOF
15304: /* confdefs.h. */
15305: _ACEOF
15306: cat confdefs.h >>conftest.$ac_ext
15307: cat >>conftest.$ac_ext <<_ACEOF
15308: /* end confdefs.h. */
15309:
15310: /* Override any gcc2 internal prototype to avoid an error. */
15311: #ifdef __cplusplus
15312: extern "C"
15313: #endif
15314: /* We use char because int might match the return type of a gcc2
15315: builtin and then its argument prototype would still apply. */
15316: char dlopen ();
15317: int
15318: main ()
15319: {
15320: dlopen ();
15321: ;
15322: return 0;
15323: }
15324: _ACEOF
15325: rm -f conftest.$ac_objext conftest$ac_exeext
15326: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327: (eval $ac_link) 2>conftest.er1
15328: ac_status=$?
15329: grep -v '^ *+' conftest.er1 >conftest.err
15330: rm -f conftest.er1
15331: cat conftest.err >&5
15332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333: (exit $ac_status); } &&
15334: { ac_try='test -z "$ac_c_werror_flag"
15335: || test ! -s conftest.err'
15336: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337: (eval $ac_try) 2>&5
15338: ac_status=$?
15339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340: (exit $ac_status); }; } &&
15341: { ac_try='test -s conftest$ac_exeext'
15342: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343: (eval $ac_try) 2>&5
15344: ac_status=$?
15345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346: (exit $ac_status); }; }; then
15347: ac_cv_search_dlopen="-l$ac_lib"
15348: break
15349: else
15350: echo "$as_me: failed program was:" >&5
15351: sed 's/^/| /' conftest.$ac_ext >&5
15352:
15353: fi
15354: rm -f conftest.err conftest.$ac_objext \
15355: conftest$ac_exeext conftest.$ac_ext
15356: done
15357: fi
15358: LIBS=$ac_func_search_save_LIBS
15359: fi
15360: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15361: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15362: if test "$ac_cv_search_dlopen" != no; then
15363: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15364:
15365: cat >>confdefs.h <<\_ACEOF
15366: #define HAVE_LIBDL 1
15367: _ACEOF
15368:
15369: if test "$ac_cv_search_dlopen" != "none required" ; then
15370: LIBADD_DLOPEN="-ldl"
15371: fi
15372: libltdl_cv_lib_dl_dlopen="yes"
15373: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15374: else
15375: cat >conftest.$ac_ext <<_ACEOF
15376: /* confdefs.h. */
15377: _ACEOF
15378: cat confdefs.h >>conftest.$ac_ext
15379: cat >>conftest.$ac_ext <<_ACEOF
15380: /* end confdefs.h. */
15381: #if HAVE_DLFCN_H
15382: # include <dlfcn.h>
15383: #endif
15384:
15385: int
15386: main ()
15387: {
15388: dlopen(0, 0);
15389: ;
15390: return 0;
15391: }
15392: _ACEOF
15393: rm -f conftest.$ac_objext conftest$ac_exeext
15394: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15395: (eval $ac_link) 2>conftest.er1
15396: ac_status=$?
15397: grep -v '^ *+' conftest.er1 >conftest.err
15398: rm -f conftest.er1
15399: cat conftest.err >&5
15400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401: (exit $ac_status); } &&
15402: { ac_try='test -z "$ac_c_werror_flag"
15403: || test ! -s conftest.err'
15404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405: (eval $ac_try) 2>&5
15406: ac_status=$?
15407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408: (exit $ac_status); }; } &&
15409: { ac_try='test -s conftest$ac_exeext'
15410: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411: (eval $ac_try) 2>&5
15412: ac_status=$?
15413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414: (exit $ac_status); }; }; then
15415:
15416: cat >>confdefs.h <<\_ACEOF
15417: #define HAVE_LIBDL 1
15418: _ACEOF
15419:
15420: libltdl_cv_func_dlopen="yes"
15421: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15422: else
15423: echo "$as_me: failed program was:" >&5
15424: sed 's/^/| /' conftest.$ac_ext >&5
15425:
15426: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15427: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15428: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15429: echo $ECHO_N "(cached) $ECHO_C" >&6
15430: else
15431: ac_check_lib_save_LIBS=$LIBS
15432: LIBS="-lsvld $LIBS"
15433: cat >conftest.$ac_ext <<_ACEOF
15434: /* confdefs.h. */
15435: _ACEOF
15436: cat confdefs.h >>conftest.$ac_ext
15437: cat >>conftest.$ac_ext <<_ACEOF
15438: /* end confdefs.h. */
15439:
15440: /* Override any gcc2 internal prototype to avoid an error. */
15441: #ifdef __cplusplus
15442: extern "C"
15443: #endif
15444: /* We use char because int might match the return type of a gcc2
15445: builtin and then its argument prototype would still apply. */
15446: char dlopen ();
15447: int
15448: main ()
15449: {
15450: dlopen ();
15451: ;
15452: return 0;
15453: }
15454: _ACEOF
15455: rm -f conftest.$ac_objext conftest$ac_exeext
15456: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457: (eval $ac_link) 2>conftest.er1
15458: ac_status=$?
15459: grep -v '^ *+' conftest.er1 >conftest.err
15460: rm -f conftest.er1
15461: cat conftest.err >&5
15462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463: (exit $ac_status); } &&
15464: { ac_try='test -z "$ac_c_werror_flag"
15465: || test ! -s conftest.err'
15466: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467: (eval $ac_try) 2>&5
15468: ac_status=$?
15469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470: (exit $ac_status); }; } &&
15471: { ac_try='test -s conftest$ac_exeext'
15472: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473: (eval $ac_try) 2>&5
15474: ac_status=$?
15475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476: (exit $ac_status); }; }; then
15477: ac_cv_lib_svld_dlopen=yes
15478: else
15479: echo "$as_me: failed program was:" >&5
15480: sed 's/^/| /' conftest.$ac_ext >&5
15481:
15482: ac_cv_lib_svld_dlopen=no
15483: fi
15484: rm -f conftest.err conftest.$ac_objext \
15485: conftest$ac_exeext conftest.$ac_ext
15486: LIBS=$ac_check_lib_save_LIBS
15487: fi
15488: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15489: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15490: if test $ac_cv_lib_svld_dlopen = yes; then
15491:
15492: cat >>confdefs.h <<\_ACEOF
15493: #define HAVE_LIBDL 1
15494: _ACEOF
15495:
15496: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15497: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15498: fi
15499:
15500: fi
15501: rm -f conftest.err conftest.$ac_objext \
15502: conftest$ac_exeext conftest.$ac_ext
15503: fi
15504:
15505: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15506: then
15507: lt_save_LIBS="$LIBS"
15508: LIBS="$LIBS $LIBADD_DLOPEN"
15509:
15510: for ac_func in dlerror
15511: do
15512: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15513: echo "$as_me:$LINENO: checking for $ac_func" >&5
15514: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15515: if eval "test \"\${$as_ac_var+set}\" = set"; then
15516: echo $ECHO_N "(cached) $ECHO_C" >&6
15517: else
15518: cat >conftest.$ac_ext <<_ACEOF
15519: /* confdefs.h. */
15520: _ACEOF
15521: cat confdefs.h >>conftest.$ac_ext
15522: cat >>conftest.$ac_ext <<_ACEOF
15523: /* end confdefs.h. */
15524: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15525: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15526: #define $ac_func innocuous_$ac_func
15527:
15528: /* System header to define __stub macros and hopefully few prototypes,
15529: which can conflict with char $ac_func (); below.
15530: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15531: <limits.h> exists even on freestanding compilers. */
15532:
15533: #ifdef __STDC__
15534: # include <limits.h>
15535: #else
15536: # include <assert.h>
15537: #endif
15538:
15539: #undef $ac_func
15540:
15541: /* Override any gcc2 internal prototype to avoid an error. */
15542: #ifdef __cplusplus
15543: extern "C"
15544: {
15545: #endif
15546: /* We use char because int might match the return type of a gcc2
15547: builtin and then its argument prototype would still apply. */
15548: char $ac_func ();
15549: /* The GNU C library defines this for functions which it implements
15550: to always fail with ENOSYS. Some functions are actually named
15551: something starting with __ and the normal name is an alias. */
15552: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15553: choke me
15554: #else
15555: char (*f) () = $ac_func;
15556: #endif
15557: #ifdef __cplusplus
15558: }
15559: #endif
15560:
15561: int
15562: main ()
15563: {
15564: return f != $ac_func;
15565: ;
15566: return 0;
15567: }
15568: _ACEOF
15569: rm -f conftest.$ac_objext conftest$ac_exeext
15570: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15571: (eval $ac_link) 2>conftest.er1
15572: ac_status=$?
15573: grep -v '^ *+' conftest.er1 >conftest.err
15574: rm -f conftest.er1
15575: cat conftest.err >&5
15576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577: (exit $ac_status); } &&
15578: { ac_try='test -z "$ac_c_werror_flag"
15579: || test ! -s conftest.err'
15580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581: (eval $ac_try) 2>&5
15582: ac_status=$?
15583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584: (exit $ac_status); }; } &&
15585: { ac_try='test -s conftest$ac_exeext'
15586: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587: (eval $ac_try) 2>&5
15588: ac_status=$?
15589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590: (exit $ac_status); }; }; then
15591: eval "$as_ac_var=yes"
15592: else
15593: echo "$as_me: failed program was:" >&5
15594: sed 's/^/| /' conftest.$ac_ext >&5
15595:
15596: eval "$as_ac_var=no"
15597: fi
15598: rm -f conftest.err conftest.$ac_objext \
15599: conftest$ac_exeext conftest.$ac_ext
15600: fi
15601: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15602: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15603: if test `eval echo '${'$as_ac_var'}'` = yes; then
15604: cat >>confdefs.h <<_ACEOF
15605: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15606: _ACEOF
15607:
15608: fi
15609: done
15610:
15611: LIBS="$lt_save_LIBS"
15612: fi
15613:
15614:
15615: LIBADD_SHL_LOAD=
15616: echo "$as_me:$LINENO: checking for shl_load" >&5
15617: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15618: if test "${ac_cv_func_shl_load+set}" = set; then
15619: echo $ECHO_N "(cached) $ECHO_C" >&6
15620: else
15621: cat >conftest.$ac_ext <<_ACEOF
15622: /* confdefs.h. */
15623: _ACEOF
15624: cat confdefs.h >>conftest.$ac_ext
15625: cat >>conftest.$ac_ext <<_ACEOF
15626: /* end confdefs.h. */
15627: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15628: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15629: #define shl_load innocuous_shl_load
15630:
15631: /* System header to define __stub macros and hopefully few prototypes,
15632: which can conflict with char shl_load (); below.
15633: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634: <limits.h> exists even on freestanding compilers. */
15635:
15636: #ifdef __STDC__
15637: # include <limits.h>
15638: #else
15639: # include <assert.h>
15640: #endif
15641:
15642: #undef shl_load
15643:
15644: /* Override any gcc2 internal prototype to avoid an error. */
15645: #ifdef __cplusplus
15646: extern "C"
15647: {
15648: #endif
15649: /* We use char because int might match the return type of a gcc2
15650: builtin and then its argument prototype would still apply. */
15651: char shl_load ();
15652: /* The GNU C library defines this for functions which it implements
15653: to always fail with ENOSYS. Some functions are actually named
15654: something starting with __ and the normal name is an alias. */
15655: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15656: choke me
15657: #else
15658: char (*f) () = shl_load;
15659: #endif
15660: #ifdef __cplusplus
15661: }
15662: #endif
15663:
15664: int
15665: main ()
15666: {
15667: return f != shl_load;
15668: ;
15669: return 0;
15670: }
15671: _ACEOF
15672: rm -f conftest.$ac_objext conftest$ac_exeext
15673: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15674: (eval $ac_link) 2>conftest.er1
15675: ac_status=$?
15676: grep -v '^ *+' conftest.er1 >conftest.err
15677: rm -f conftest.er1
15678: cat conftest.err >&5
15679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680: (exit $ac_status); } &&
15681: { ac_try='test -z "$ac_c_werror_flag"
15682: || test ! -s conftest.err'
15683: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684: (eval $ac_try) 2>&5
15685: ac_status=$?
15686: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687: (exit $ac_status); }; } &&
15688: { ac_try='test -s conftest$ac_exeext'
15689: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690: (eval $ac_try) 2>&5
15691: ac_status=$?
15692: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693: (exit $ac_status); }; }; then
15694: ac_cv_func_shl_load=yes
15695: else
15696: echo "$as_me: failed program was:" >&5
15697: sed 's/^/| /' conftest.$ac_ext >&5
15698:
15699: ac_cv_func_shl_load=no
15700: fi
15701: rm -f conftest.err conftest.$ac_objext \
15702: conftest$ac_exeext conftest.$ac_ext
15703: fi
15704: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15705: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15706: if test $ac_cv_func_shl_load = yes; then
15707:
15708: cat >>confdefs.h <<\_ACEOF
15709: #define HAVE_SHL_LOAD 1
15710: _ACEOF
15711:
15712: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15713: else
15714: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15715: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15716: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15717: echo $ECHO_N "(cached) $ECHO_C" >&6
15718: else
15719: ac_check_lib_save_LIBS=$LIBS
15720: LIBS="-ldld $LIBS"
15721: cat >conftest.$ac_ext <<_ACEOF
15722: /* confdefs.h. */
15723: _ACEOF
15724: cat confdefs.h >>conftest.$ac_ext
15725: cat >>conftest.$ac_ext <<_ACEOF
15726: /* end confdefs.h. */
15727:
15728: /* Override any gcc2 internal prototype to avoid an error. */
15729: #ifdef __cplusplus
15730: extern "C"
15731: #endif
15732: /* We use char because int might match the return type of a gcc2
15733: builtin and then its argument prototype would still apply. */
15734: char shl_load ();
15735: int
15736: main ()
15737: {
15738: shl_load ();
15739: ;
15740: return 0;
15741: }
15742: _ACEOF
15743: rm -f conftest.$ac_objext conftest$ac_exeext
15744: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745: (eval $ac_link) 2>conftest.er1
15746: ac_status=$?
15747: grep -v '^ *+' conftest.er1 >conftest.err
15748: rm -f conftest.er1
15749: cat conftest.err >&5
15750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751: (exit $ac_status); } &&
15752: { ac_try='test -z "$ac_c_werror_flag"
15753: || test ! -s conftest.err'
15754: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755: (eval $ac_try) 2>&5
15756: ac_status=$?
15757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758: (exit $ac_status); }; } &&
15759: { ac_try='test -s conftest$ac_exeext'
15760: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761: (eval $ac_try) 2>&5
15762: ac_status=$?
15763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764: (exit $ac_status); }; }; then
15765: ac_cv_lib_dld_shl_load=yes
15766: else
15767: echo "$as_me: failed program was:" >&5
15768: sed 's/^/| /' conftest.$ac_ext >&5
15769:
15770: ac_cv_lib_dld_shl_load=no
15771: fi
15772: rm -f conftest.err conftest.$ac_objext \
15773: conftest$ac_exeext conftest.$ac_ext
15774: LIBS=$ac_check_lib_save_LIBS
15775: fi
15776: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15777: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15778: if test $ac_cv_lib_dld_shl_load = yes; then
15779:
15780: cat >>confdefs.h <<\_ACEOF
15781: #define HAVE_SHL_LOAD 1
15782: _ACEOF
15783:
15784: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15785: LIBADD_SHL_LOAD="-ldld"
15786: fi
15787:
15788: fi
15789:
15790:
15791:
15792: case $host_os in
15793: darwin[1567].*)
15794: # We only want this for pre-Mac OS X 10.4.
15795: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15796: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15797: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15798: echo $ECHO_N "(cached) $ECHO_C" >&6
15799: else
15800: cat >conftest.$ac_ext <<_ACEOF
15801: /* confdefs.h. */
15802: _ACEOF
15803: cat confdefs.h >>conftest.$ac_ext
15804: cat >>conftest.$ac_ext <<_ACEOF
15805: /* end confdefs.h. */
15806: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15807: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15808: #define _dyld_func_lookup innocuous__dyld_func_lookup
15809:
15810: /* System header to define __stub macros and hopefully few prototypes,
15811: which can conflict with char _dyld_func_lookup (); below.
15812: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15813: <limits.h> exists even on freestanding compilers. */
15814:
15815: #ifdef __STDC__
15816: # include <limits.h>
15817: #else
15818: # include <assert.h>
15819: #endif
15820:
15821: #undef _dyld_func_lookup
15822:
15823: /* Override any gcc2 internal prototype to avoid an error. */
15824: #ifdef __cplusplus
15825: extern "C"
15826: {
15827: #endif
15828: /* We use char because int might match the return type of a gcc2
15829: builtin and then its argument prototype would still apply. */
15830: char _dyld_func_lookup ();
15831: /* The GNU C library defines this for functions which it implements
15832: to always fail with ENOSYS. Some functions are actually named
15833: something starting with __ and the normal name is an alias. */
15834: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15835: choke me
15836: #else
15837: char (*f) () = _dyld_func_lookup;
15838: #endif
15839: #ifdef __cplusplus
15840: }
15841: #endif
15842:
15843: int
15844: main ()
15845: {
15846: return f != _dyld_func_lookup;
15847: ;
15848: return 0;
15849: }
15850: _ACEOF
15851: rm -f conftest.$ac_objext conftest$ac_exeext
15852: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15853: (eval $ac_link) 2>conftest.er1
15854: ac_status=$?
15855: grep -v '^ *+' conftest.er1 >conftest.err
15856: rm -f conftest.er1
15857: cat conftest.err >&5
15858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859: (exit $ac_status); } &&
15860: { ac_try='test -z "$ac_c_werror_flag"
15861: || test ! -s conftest.err'
15862: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863: (eval $ac_try) 2>&5
15864: ac_status=$?
15865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866: (exit $ac_status); }; } &&
15867: { ac_try='test -s conftest$ac_exeext'
15868: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869: (eval $ac_try) 2>&5
15870: ac_status=$?
15871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872: (exit $ac_status); }; }; then
15873: ac_cv_func__dyld_func_lookup=yes
15874: else
15875: echo "$as_me: failed program was:" >&5
15876: sed 's/^/| /' conftest.$ac_ext >&5
15877:
15878: ac_cv_func__dyld_func_lookup=no
15879: fi
15880: rm -f conftest.err conftest.$ac_objext \
15881: conftest$ac_exeext conftest.$ac_ext
15882: fi
15883: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15884: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15885: if test $ac_cv_func__dyld_func_lookup = yes; then
15886:
15887: cat >>confdefs.h <<\_ACEOF
15888: #define HAVE_DYLD 1
15889: _ACEOF
15890:
15891: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15892: fi
15893:
15894: ;;
15895: beos*)
15896: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15897: ;;
15898: cygwin* | mingw* | os2* | pw32*)
15899: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15900: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15901: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15902: echo $ECHO_N "(cached) $ECHO_C" >&6
15903: else
15904: cat >conftest.$ac_ext <<_ACEOF
15905: /* confdefs.h. */
15906: _ACEOF
15907: cat confdefs.h >>conftest.$ac_ext
15908: cat >>conftest.$ac_ext <<_ACEOF
15909: /* end confdefs.h. */
15910: #include <sys/cygwin.h>
15911:
15912: int
15913: main ()
15914: {
15915: #ifndef cygwin_conv_path
15916: char *p = (char *) cygwin_conv_path;
15917: #endif
15918:
15919: ;
15920: return 0;
15921: }
15922: _ACEOF
15923: rm -f conftest.$ac_objext
15924: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925: (eval $ac_compile) 2>conftest.er1
15926: ac_status=$?
15927: grep -v '^ *+' conftest.er1 >conftest.err
15928: rm -f conftest.er1
15929: cat conftest.err >&5
15930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931: (exit $ac_status); } &&
15932: { ac_try='test -z "$ac_c_werror_flag"
15933: || test ! -s conftest.err'
15934: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935: (eval $ac_try) 2>&5
15936: ac_status=$?
15937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938: (exit $ac_status); }; } &&
15939: { ac_try='test -s conftest.$ac_objext'
15940: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941: (eval $ac_try) 2>&5
15942: ac_status=$?
15943: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944: (exit $ac_status); }; }; then
15945: ac_cv_have_decl_cygwin_conv_path=yes
15946: else
15947: echo "$as_me: failed program was:" >&5
15948: sed 's/^/| /' conftest.$ac_ext >&5
15949:
15950: ac_cv_have_decl_cygwin_conv_path=no
15951: fi
15952: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953: fi
15954: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15955: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15956: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
15957:
15958: cat >>confdefs.h <<_ACEOF
15959: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15960: _ACEOF
15961:
15962:
15963: else
15964: cat >>confdefs.h <<_ACEOF
15965: #define HAVE_DECL_CYGWIN_CONV_PATH 0
15966: _ACEOF
15967:
15968:
15969: fi
15970:
15971:
15972: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15973: ;;
15974: esac
15975:
15976: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15977: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15978: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15979: echo $ECHO_N "(cached) $ECHO_C" >&6
15980: else
15981: ac_check_lib_save_LIBS=$LIBS
15982: LIBS="-ldld $LIBS"
15983: cat >conftest.$ac_ext <<_ACEOF
15984: /* confdefs.h. */
15985: _ACEOF
15986: cat confdefs.h >>conftest.$ac_ext
15987: cat >>conftest.$ac_ext <<_ACEOF
15988: /* end confdefs.h. */
15989:
15990: /* Override any gcc2 internal prototype to avoid an error. */
15991: #ifdef __cplusplus
15992: extern "C"
15993: #endif
15994: /* We use char because int might match the return type of a gcc2
15995: builtin and then its argument prototype would still apply. */
15996: char dld_link ();
15997: int
15998: main ()
15999: {
16000: dld_link ();
16001: ;
16002: return 0;
16003: }
16004: _ACEOF
16005: rm -f conftest.$ac_objext conftest$ac_exeext
16006: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16007: (eval $ac_link) 2>conftest.er1
16008: ac_status=$?
16009: grep -v '^ *+' conftest.er1 >conftest.err
16010: rm -f conftest.er1
16011: cat conftest.err >&5
16012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013: (exit $ac_status); } &&
16014: { ac_try='test -z "$ac_c_werror_flag"
16015: || test ! -s conftest.err'
16016: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017: (eval $ac_try) 2>&5
16018: ac_status=$?
16019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020: (exit $ac_status); }; } &&
16021: { ac_try='test -s conftest$ac_exeext'
16022: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023: (eval $ac_try) 2>&5
16024: ac_status=$?
16025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026: (exit $ac_status); }; }; then
16027: ac_cv_lib_dld_dld_link=yes
16028: else
16029: echo "$as_me: failed program was:" >&5
16030: sed 's/^/| /' conftest.$ac_ext >&5
16031:
16032: ac_cv_lib_dld_dld_link=no
16033: fi
16034: rm -f conftest.err conftest.$ac_objext \
16035: conftest$ac_exeext conftest.$ac_ext
16036: LIBS=$ac_check_lib_save_LIBS
16037: fi
16038: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16039: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16040: if test $ac_cv_lib_dld_dld_link = yes; then
16041:
16042: cat >>confdefs.h <<\_ACEOF
16043: #define HAVE_DLD 1
16044: _ACEOF
16045:
16046: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16047: fi
16048:
16049:
16050:
16051:
16052: LT_DLPREOPEN=
16053: if test -n "$LT_DLLOADERS"
16054: then
16055: for lt_loader in $LT_DLLOADERS; do
16056: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16057: done
16058:
16059: cat >>confdefs.h <<\_ACEOF
16060: #define HAVE_LIBDLLOADER 1
16061: _ACEOF
16062:
16063: fi
16064:
16065:
16066: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16067:
16068:
16069: ac_ext=c
16070: ac_cpp='$CPP $CPPFLAGS'
16071: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16072: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16073: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16074:
16075:
16076: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16077: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16078: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16079: echo $ECHO_N "(cached) $ECHO_C" >&6
16080: else
16081: lt_cv_sys_symbol_underscore=no
16082: cat > conftest.$ac_ext <<_LT_EOF
16083: void nm_test_func(){}
16084: int main(){nm_test_func;return 0;}
16085: _LT_EOF
16086: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16087: (eval $ac_compile) 2>&5
16088: ac_status=$?
16089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090: (exit $ac_status); }; then
16091: # Now try to grab the symbols.
16092: ac_nlist=conftest.nm
16093: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16094: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16095: ac_status=$?
16096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097: (exit $ac_status); } && test -s "$ac_nlist"; then
16098: # See whether the symbols have a leading underscore.
16099: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16100: lt_cv_sys_symbol_underscore=yes
16101: else
16102: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16103: :
16104: else
16105: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16106: fi
16107: fi
16108: else
16109: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16110: fi
16111: else
16112: echo "configure: failed program was:" >&5
16113: cat conftest.c >&5
16114: fi
16115: rm -rf conftest*
16116:
16117: fi
16118: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16119: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16120: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16121:
16122:
16123: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16124: if test x"$libltdl_cv_func_dlopen" = xyes ||
16125: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16126: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16127: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16128: if test "${libltdl_cv_need_uscore+set}" = set; then
16129: echo $ECHO_N "(cached) $ECHO_C" >&6
16130: else
16131: libltdl_cv_need_uscore=unknown
16132: save_LIBS="$LIBS"
16133: LIBS="$LIBS $LIBADD_DLOPEN"
16134: if test "$cross_compiling" = yes; then :
16135: libltdl_cv_need_uscore=cross
16136: else
16137: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16138: lt_status=$lt_dlunknown
16139: cat > conftest.$ac_ext <<_LT_EOF
16140: #line $LINENO "configure"
16141: #include "confdefs.h"
16142:
16143: #if HAVE_DLFCN_H
16144: #include <dlfcn.h>
16145: #endif
16146:
16147: #include <stdio.h>
16148:
16149: #ifdef RTLD_GLOBAL
16150: # define LT_DLGLOBAL RTLD_GLOBAL
16151: #else
16152: # ifdef DL_GLOBAL
16153: # define LT_DLGLOBAL DL_GLOBAL
16154: # else
16155: # define LT_DLGLOBAL 0
16156: # endif
16157: #endif
16158:
16159: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16160: find out it does not work in some platform. */
16161: #ifndef LT_DLLAZY_OR_NOW
16162: # ifdef RTLD_LAZY
16163: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16164: # else
16165: # ifdef DL_LAZY
16166: # define LT_DLLAZY_OR_NOW DL_LAZY
16167: # else
16168: # ifdef RTLD_NOW
16169: # define LT_DLLAZY_OR_NOW RTLD_NOW
16170: # else
16171: # ifdef DL_NOW
16172: # define LT_DLLAZY_OR_NOW DL_NOW
16173: # else
16174: # define LT_DLLAZY_OR_NOW 0
16175: # endif
16176: # endif
16177: # endif
16178: # endif
16179: #endif
16180:
16181: /* When -fvisbility=hidden is used, assume the code has been annotated
16182: correspondingly for the symbols needed. */
16183: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16184: int fnord () __attribute__((visibility("default")));
16185: #endif
16186:
16187: int fnord () { return 42; }
16188: int main ()
16189: {
16190: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16191: int status = $lt_dlunknown;
16192:
16193: if (self)
16194: {
16195: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16196: else
16197: {
16198: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16199: else puts (dlerror ());
16200: }
16201: /* dlclose (self); */
16202: }
16203: else
16204: puts (dlerror ());
16205:
16206: return status;
16207: }
16208: _LT_EOF
16209: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16210: (eval $ac_link) 2>&5
16211: ac_status=$?
16212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16214: (./conftest; exit; ) >&5 2>/dev/null
16215: lt_status=$?
16216: case x$lt_status in
16217: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16218: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16219: x$lt_dlunknown|x*) ;;
16220: esac
16221: else :
16222: # compilation failed
16223:
16224: fi
16225: fi
16226: rm -fr conftest*
16227:
16228: LIBS="$save_LIBS"
16229:
16230: fi
16231: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16232: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16233: fi
16234: fi
16235:
16236: if test x"$libltdl_cv_need_uscore" = xyes; then
16237:
16238: cat >>confdefs.h <<\_ACEOF
16239: #define NEED_USCORE 1
16240: _ACEOF
16241:
16242: fi
16243:
16244: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16245: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16246: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16247: echo $ECHO_N "(cached) $ECHO_C" >&6
16248: else
16249: # PORTME does your system automatically load deplibs for dlopen?
16250: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16251: # For now, we just catch OSes we know something about -- in the
16252: # future, we'll try test this programmatically.
16253: lt_cv_sys_dlopen_deplibs=unknown
16254: case $host_os in
16255: aix3*|aix4.1.*|aix4.2.*)
16256: # Unknown whether this is true for these versions of AIX, but
16257: # we want this `case' here to explicitly catch those versions.
16258: lt_cv_sys_dlopen_deplibs=unknown
16259: ;;
16260: aix[4-9]*)
16261: lt_cv_sys_dlopen_deplibs=yes
16262: ;;
16263: amigaos*)
16264: case $host_cpu in
16265: powerpc)
16266: lt_cv_sys_dlopen_deplibs=no
16267: ;;
16268: esac
16269: ;;
16270: darwin*)
16271: # Assuming the user has installed a libdl from somewhere, this is true
16272: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16273: lt_cv_sys_dlopen_deplibs=yes
16274: ;;
16275: freebsd* | dragonfly*)
16276: lt_cv_sys_dlopen_deplibs=yes
16277: ;;
16278: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16279: # GNU and its variants, using gnu ld.so (Glibc)
16280: lt_cv_sys_dlopen_deplibs=yes
16281: ;;
16282: hpux10*|hpux11*)
16283: lt_cv_sys_dlopen_deplibs=yes
16284: ;;
16285: interix*)
16286: lt_cv_sys_dlopen_deplibs=yes
16287: ;;
16288: irix[12345]*|irix6.[01]*)
16289: # Catch all versions of IRIX before 6.2, and indicate that we don't
16290: # know how it worked for any of those versions.
16291: lt_cv_sys_dlopen_deplibs=unknown
16292: ;;
16293: irix*)
16294: # The case above catches anything before 6.2, and it's known that
16295: # at 6.2 and later dlopen does load deplibs.
16296: lt_cv_sys_dlopen_deplibs=yes
16297: ;;
16298: netbsd*)
16299: lt_cv_sys_dlopen_deplibs=yes
16300: ;;
16301: openbsd*)
16302: lt_cv_sys_dlopen_deplibs=yes
16303: ;;
16304: osf[1234]*)
16305: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16306: # it did *not* use an RPATH in a shared library to find objects the
16307: # library depends on, so we explicitly say `no'.
16308: lt_cv_sys_dlopen_deplibs=no
16309: ;;
16310: osf5.0|osf5.0a|osf5.1)
16311: # dlopen *does* load deplibs and with the right loader patch applied
16312: # it even uses RPATH in a shared library to search for shared objects
16313: # that the library depends on, but there's no easy way to know if that
16314: # patch is installed. Since this is the case, all we can really
16315: # say is unknown -- it depends on the patch being installed. If
16316: # it is, this changes to `yes'. Without it, it would be `no'.
16317: lt_cv_sys_dlopen_deplibs=unknown
16318: ;;
16319: osf*)
16320: # the two cases above should catch all versions of osf <= 5.1. Read
16321: # the comments above for what we know about them.
16322: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16323: # is used to find them so we can finally say `yes'.
16324: lt_cv_sys_dlopen_deplibs=yes
16325: ;;
16326: qnx*)
16327: lt_cv_sys_dlopen_deplibs=yes
16328: ;;
16329: solaris*)
16330: lt_cv_sys_dlopen_deplibs=yes
16331: ;;
16332: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16333: libltdl_cv_sys_dlopen_deplibs=yes
16334: ;;
16335: esac
16336:
16337: fi
16338: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16339: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16340: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16341:
16342: cat >>confdefs.h <<\_ACEOF
16343: #define LTDL_DLOPEN_DEPLIBS 1
16344: _ACEOF
16345:
16346: fi
16347:
16348: :
16349:
16350:
16351: for ac_header in argz.h
16352: do
16353: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354: echo "$as_me:$LINENO: checking for $ac_header" >&5
16355: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16356: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16357: echo $ECHO_N "(cached) $ECHO_C" >&6
16358: else
16359: cat >conftest.$ac_ext <<_ACEOF
16360: /* confdefs.h. */
16361: _ACEOF
16362: cat confdefs.h >>conftest.$ac_ext
16363: cat >>conftest.$ac_ext <<_ACEOF
16364: /* end confdefs.h. */
16365: $ac_includes_default
16366:
16367: #include <$ac_header>
16368: _ACEOF
16369: rm -f conftest.$ac_objext
16370: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371: (eval $ac_compile) 2>conftest.er1
16372: ac_status=$?
16373: grep -v '^ *+' conftest.er1 >conftest.err
16374: rm -f conftest.er1
16375: cat conftest.err >&5
16376: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377: (exit $ac_status); } &&
16378: { ac_try='test -z "$ac_c_werror_flag"
16379: || test ! -s conftest.err'
16380: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381: (eval $ac_try) 2>&5
16382: ac_status=$?
16383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384: (exit $ac_status); }; } &&
16385: { ac_try='test -s conftest.$ac_objext'
16386: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387: (eval $ac_try) 2>&5
16388: ac_status=$?
16389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390: (exit $ac_status); }; }; then
16391: eval "$as_ac_Header=yes"
16392: else
16393: echo "$as_me: failed program was:" >&5
16394: sed 's/^/| /' conftest.$ac_ext >&5
16395:
16396: eval "$as_ac_Header=no"
16397: fi
16398: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16399: fi
16400: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16401: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16402: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16403: cat >>confdefs.h <<_ACEOF
16404: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16405: _ACEOF
16406:
16407: fi
16408:
16409: done
16410:
16411:
16412: echo "$as_me:$LINENO: checking for error_t" >&5
16413: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16414: if test "${ac_cv_type_error_t+set}" = set; then
16415: echo $ECHO_N "(cached) $ECHO_C" >&6
16416: else
16417: cat >conftest.$ac_ext <<_ACEOF
16418: /* confdefs.h. */
16419: _ACEOF
16420: cat confdefs.h >>conftest.$ac_ext
16421: cat >>conftest.$ac_ext <<_ACEOF
16422: /* end confdefs.h. */
16423: #if defined(HAVE_ARGZ_H)
16424: # include <argz.h>
16425: #endif
16426:
16427: int
16428: main ()
16429: {
16430: if ((error_t *) 0)
16431: return 0;
16432: if (sizeof (error_t))
16433: return 0;
16434: ;
16435: return 0;
16436: }
16437: _ACEOF
16438: rm -f conftest.$ac_objext
16439: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440: (eval $ac_compile) 2>conftest.er1
16441: ac_status=$?
16442: grep -v '^ *+' conftest.er1 >conftest.err
16443: rm -f conftest.er1
16444: cat conftest.err >&5
16445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446: (exit $ac_status); } &&
16447: { ac_try='test -z "$ac_c_werror_flag"
16448: || test ! -s conftest.err'
16449: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450: (eval $ac_try) 2>&5
16451: ac_status=$?
16452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453: (exit $ac_status); }; } &&
16454: { ac_try='test -s conftest.$ac_objext'
16455: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456: (eval $ac_try) 2>&5
16457: ac_status=$?
16458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459: (exit $ac_status); }; }; then
16460: ac_cv_type_error_t=yes
16461: else
16462: echo "$as_me: failed program was:" >&5
16463: sed 's/^/| /' conftest.$ac_ext >&5
16464:
16465: ac_cv_type_error_t=no
16466: fi
16467: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16468: fi
16469: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16470: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16471: if test $ac_cv_type_error_t = yes; then
16472:
16473: cat >>confdefs.h <<_ACEOF
16474: #define HAVE_ERROR_T 1
16475: _ACEOF
16476:
16477:
16478: else
16479:
16480: cat >>confdefs.h <<\_ACEOF
16481: #define error_t int
16482: _ACEOF
16483:
16484:
16485: cat >>confdefs.h <<\_ACEOF
16486: #define __error_t_defined 1
16487: _ACEOF
16488:
16489: fi
16490:
16491:
16492: ARGZ_H=
16493:
16494:
16495:
16496:
16497:
16498:
16499:
16500: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16501: argz_next argz_stringify
16502: do
16503: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16504: echo "$as_me:$LINENO: checking for $ac_func" >&5
16505: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16506: if eval "test \"\${$as_ac_var+set}\" = set"; then
16507: echo $ECHO_N "(cached) $ECHO_C" >&6
16508: else
16509: cat >conftest.$ac_ext <<_ACEOF
16510: /* confdefs.h. */
16511: _ACEOF
16512: cat confdefs.h >>conftest.$ac_ext
16513: cat >>conftest.$ac_ext <<_ACEOF
16514: /* end confdefs.h. */
16515: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16516: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16517: #define $ac_func innocuous_$ac_func
16518:
16519: /* System header to define __stub macros and hopefully few prototypes,
16520: which can conflict with char $ac_func (); below.
16521: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16522: <limits.h> exists even on freestanding compilers. */
16523:
16524: #ifdef __STDC__
16525: # include <limits.h>
16526: #else
16527: # include <assert.h>
16528: #endif
16529:
16530: #undef $ac_func
16531:
16532: /* Override any gcc2 internal prototype to avoid an error. */
16533: #ifdef __cplusplus
16534: extern "C"
16535: {
16536: #endif
16537: /* We use char because int might match the return type of a gcc2
16538: builtin and then its argument prototype would still apply. */
16539: char $ac_func ();
16540: /* The GNU C library defines this for functions which it implements
16541: to always fail with ENOSYS. Some functions are actually named
16542: something starting with __ and the normal name is an alias. */
16543: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16544: choke me
16545: #else
16546: char (*f) () = $ac_func;
16547: #endif
16548: #ifdef __cplusplus
16549: }
16550: #endif
16551:
16552: int
16553: main ()
16554: {
16555: return f != $ac_func;
16556: ;
16557: return 0;
16558: }
16559: _ACEOF
16560: rm -f conftest.$ac_objext conftest$ac_exeext
16561: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562: (eval $ac_link) 2>conftest.er1
16563: ac_status=$?
16564: grep -v '^ *+' conftest.er1 >conftest.err
16565: rm -f conftest.er1
16566: cat conftest.err >&5
16567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568: (exit $ac_status); } &&
16569: { ac_try='test -z "$ac_c_werror_flag"
16570: || test ! -s conftest.err'
16571: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572: (eval $ac_try) 2>&5
16573: ac_status=$?
16574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575: (exit $ac_status); }; } &&
16576: { ac_try='test -s conftest$ac_exeext'
16577: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578: (eval $ac_try) 2>&5
16579: ac_status=$?
16580: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581: (exit $ac_status); }; }; then
16582: eval "$as_ac_var=yes"
16583: else
16584: echo "$as_me: failed program was:" >&5
16585: sed 's/^/| /' conftest.$ac_ext >&5
16586:
16587: eval "$as_ac_var=no"
16588: fi
16589: rm -f conftest.err conftest.$ac_objext \
16590: conftest$ac_exeext conftest.$ac_ext
16591: fi
16592: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16593: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16594: if test `eval echo '${'$as_ac_var'}'` = yes; then
16595: cat >>confdefs.h <<_ACEOF
16596: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16597: _ACEOF
16598:
16599: else
16600: ARGZ_H=argz.h;
16601:
16602: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16603:
16604: fi
16605: done
16606:
16607:
16608: if test -z "$ARGZ_H"; then
16609: echo "$as_me:$LINENO: checking if argz actually works" >&5
16610: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16611: if test "${lt_cv_sys_argz_works+set}" = set; then
16612: echo $ECHO_N "(cached) $ECHO_C" >&6
16613: else
16614: case $host_os in #(
16615: *cygwin*)
16616: lt_cv_sys_argz_works=no
16617: if test "$cross_compiling" != no; then
16618: lt_cv_sys_argz_works="guessing no"
16619: else
16620: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16621: save_IFS=$IFS
16622: IFS=-.
16623: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16624: IFS=$save_IFS
16625: lt_os_major=${2-0}
16626: lt_os_minor=${3-0}
16627: lt_os_micro=${4-0}
16628: if test "$lt_os_major" -gt 1 \
16629: || { test "$lt_os_major" -eq 1 \
16630: && { test "$lt_os_minor" -gt 5 \
16631: || { test "$lt_os_minor" -eq 5 \
16632: && test "$lt_os_micro" -gt 24; }; }; }; then
16633: lt_cv_sys_argz_works=yes
16634: fi
16635: fi
16636: ;; #(
16637: *) lt_cv_sys_argz_works=yes ;;
16638: esac
16639: fi
16640: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16641: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16642: if test "$lt_cv_sys_argz_works" = yes; then
16643:
16644: cat >>confdefs.h <<\_ACEOF
16645: #define HAVE_WORKING_ARGZ 1
16646: _ACEOF
16647:
16648: else
16649: ARGZ_H=argz.h
16650:
16651:
16652: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16653:
16654: fi
16655:
16656: fi
16657:
16658:
16659:
16660:
16661: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16662: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16663: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16664: echo $ECHO_N "(cached) $ECHO_C" >&6
16665: else
16666: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16667: libltdl_cv_preloaded_symbols=yes
16668: else
16669: libltdl_cv_preloaded_symbols=no
16670: fi
16671:
16672: fi
16673: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16674: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
16675: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16676:
16677: cat >>confdefs.h <<\_ACEOF
16678: #define HAVE_PRELOADED_SYMBOLS 1
16679: _ACEOF
16680:
16681: fi
16682:
16683: # Set options
16684:
16685:
16686:
16687:
16688:
16689:
16690:
16691:
16692:
16693:
16694:
16695:
16696: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16697: if test "${with_included_ltdl+set}" = set; then
16698: withval="$with_included_ltdl"
16699:
16700: fi;
16701:
16702: if test "x$with_included_ltdl" != xyes; then
16703: # We are not being forced to use the included libltdl sources, so
16704: # decide whether there is a useful installed version we can use.
16705: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16706: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16707: if test "${ac_cv_header_ltdl_h+set}" = set; then
16708: echo $ECHO_N "(cached) $ECHO_C" >&6
16709: else
16710: cat >conftest.$ac_ext <<_ACEOF
16711: /* confdefs.h. */
16712: _ACEOF
16713: cat confdefs.h >>conftest.$ac_ext
16714: cat >>conftest.$ac_ext <<_ACEOF
16715: /* end confdefs.h. */
16716: $ac_includes_default
16717:
16718:
16719: #include <ltdl.h>
16720: _ACEOF
16721: rm -f conftest.$ac_objext
16722: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723: (eval $ac_compile) 2>conftest.er1
16724: ac_status=$?
16725: grep -v '^ *+' conftest.er1 >conftest.err
16726: rm -f conftest.er1
16727: cat conftest.err >&5
16728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729: (exit $ac_status); } &&
16730: { ac_try='test -z "$ac_c_werror_flag"
16731: || test ! -s conftest.err'
16732: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733: (eval $ac_try) 2>&5
16734: ac_status=$?
16735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736: (exit $ac_status); }; } &&
16737: { ac_try='test -s conftest.$ac_objext'
16738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739: (eval $ac_try) 2>&5
16740: ac_status=$?
16741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742: (exit $ac_status); }; }; then
16743: ac_cv_header_ltdl_h=yes
16744: else
16745: echo "$as_me: failed program was:" >&5
16746: sed 's/^/| /' conftest.$ac_ext >&5
16747:
16748: ac_cv_header_ltdl_h=no
16749: fi
16750: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16751: fi
16752: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16753: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16754: if test $ac_cv_header_ltdl_h = yes; then
16755: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16756: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16757: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16758: echo $ECHO_N "(cached) $ECHO_C" >&6
16759: else
16760: cat >conftest.$ac_ext <<_ACEOF
16761: /* confdefs.h. */
16762: _ACEOF
16763: cat confdefs.h >>conftest.$ac_ext
16764: cat >>conftest.$ac_ext <<_ACEOF
16765: /* end confdefs.h. */
16766: $ac_includes_default
16767: #include <ltdl.h>
16768:
16769: int
16770: main ()
16771: {
16772: #ifndef lt_dlinterface_register
16773: char *p = (char *) lt_dlinterface_register;
16774: #endif
16775:
16776: ;
16777: return 0;
16778: }
16779: _ACEOF
16780: rm -f conftest.$ac_objext
16781: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782: (eval $ac_compile) 2>conftest.er1
16783: ac_status=$?
16784: grep -v '^ *+' conftest.er1 >conftest.err
16785: rm -f conftest.er1
16786: cat conftest.err >&5
16787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788: (exit $ac_status); } &&
16789: { ac_try='test -z "$ac_c_werror_flag"
16790: || test ! -s conftest.err'
16791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792: (eval $ac_try) 2>&5
16793: ac_status=$?
16794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795: (exit $ac_status); }; } &&
16796: { ac_try='test -s conftest.$ac_objext'
16797: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798: (eval $ac_try) 2>&5
16799: ac_status=$?
16800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801: (exit $ac_status); }; }; then
16802: ac_cv_have_decl_lt_dlinterface_register=yes
16803: else
16804: echo "$as_me: failed program was:" >&5
16805: sed 's/^/| /' conftest.$ac_ext >&5
16806:
16807: ac_cv_have_decl_lt_dlinterface_register=no
16808: fi
16809: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16810: fi
16811: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16812: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16813: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16814: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16815: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16816: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16817: echo $ECHO_N "(cached) $ECHO_C" >&6
16818: else
16819: ac_check_lib_save_LIBS=$LIBS
16820: LIBS="-lltdl $LIBS"
16821: cat >conftest.$ac_ext <<_ACEOF
16822: /* confdefs.h. */
16823: _ACEOF
16824: cat confdefs.h >>conftest.$ac_ext
16825: cat >>conftest.$ac_ext <<_ACEOF
16826: /* end confdefs.h. */
16827:
16828: /* Override any gcc2 internal prototype to avoid an error. */
16829: #ifdef __cplusplus
16830: extern "C"
16831: #endif
16832: /* We use char because int might match the return type of a gcc2
16833: builtin and then its argument prototype would still apply. */
16834: char lt_dladvise_preload ();
16835: int
16836: main ()
16837: {
16838: lt_dladvise_preload ();
16839: ;
16840: return 0;
16841: }
16842: _ACEOF
16843: rm -f conftest.$ac_objext conftest$ac_exeext
16844: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845: (eval $ac_link) 2>conftest.er1
16846: ac_status=$?
16847: grep -v '^ *+' conftest.er1 >conftest.err
16848: rm -f conftest.er1
16849: cat conftest.err >&5
16850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851: (exit $ac_status); } &&
16852: { ac_try='test -z "$ac_c_werror_flag"
16853: || test ! -s conftest.err'
16854: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855: (eval $ac_try) 2>&5
16856: ac_status=$?
16857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858: (exit $ac_status); }; } &&
16859: { ac_try='test -s conftest$ac_exeext'
16860: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861: (eval $ac_try) 2>&5
16862: ac_status=$?
16863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864: (exit $ac_status); }; }; then
16865: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16866: else
16867: echo "$as_me: failed program was:" >&5
16868: sed 's/^/| /' conftest.$ac_ext >&5
16869:
16870: ac_cv_lib_ltdl_lt_dladvise_preload=no
16871: fi
16872: rm -f conftest.err conftest.$ac_objext \
16873: conftest$ac_exeext conftest.$ac_ext
16874: LIBS=$ac_check_lib_save_LIBS
16875: fi
16876: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16877: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16878: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
16879: with_included_ltdl=no
16880: else
16881: with_included_ltdl=yes
16882: fi
16883:
16884: else
16885: with_included_ltdl=yes
16886: fi
16887:
16888: else
16889: with_included_ltdl=yes
16890: fi
16891:
16892:
16893: fi
16894:
16895:
16896:
16897:
16898: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16899: if test "${with_ltdl_include+set}" = set; then
16900: withval="$with_ltdl_include"
16901:
16902: fi;
16903:
16904: if test -n "$with_ltdl_include"; then
16905: if test -f "$with_ltdl_include/ltdl.h"; then :
16906: else
16907: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16908: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16909: { (exit 1); exit 1; }; }
16910: fi
16911: else
16912: with_ltdl_include=no
16913: fi
16914:
16915:
16916: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16917: if test "${with_ltdl_lib+set}" = set; then
16918: withval="$with_ltdl_lib"
16919:
16920: fi;
16921:
16922: if test -n "$with_ltdl_lib"; then
16923: if test -f "$with_ltdl_lib/libltdl.la"; then :
16924: else
16925: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16926: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16927: { (exit 1); exit 1; }; }
16928: fi
16929: else
16930: with_ltdl_lib=no
16931: fi
16932:
16933: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16934: ,yes,no,no,)
16935: case $enable_ltdl_convenience in
16936: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16937: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16938: { (exit 1); exit 1; }; } ;;
16939: "") enable_ltdl_convenience=yes
16940: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16941: esac
16942: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16943: LTDLDEPS=$LIBLTDL
16944: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16945:
16946:
16947:
16948:
16949:
16950: # For backwards non-gettext consistent compatibility...
16951: INCLTDL="$LTDLINCL"
16952:
16953:
16954: ;;
16955: ,no,no,no,)
16956: # If the included ltdl is not to be used, then use the
16957: # preinstalled libltdl we found.
16958:
16959: cat >>confdefs.h <<\_ACEOF
16960: #define HAVE_LTDL 1
16961: _ACEOF
16962:
16963: LIBLTDL=-lltdl
16964: LTDLDEPS=
16965: LTDLINCL=
16966: ;;
16967: ,no*,no,*)
16968: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16969: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16970: { (exit 1); exit 1; }; }
16971: ;;
16972: *) with_included_ltdl=no
16973: LIBLTDL="-L$with_ltdl_lib -lltdl"
16974: LTDLDEPS=
16975: LTDLINCL="-I$with_ltdl_include"
16976: ;;
16977: esac
16978: INCLTDL="$LTDLINCL"
16979:
16980: # Report our decision...
16981: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16982: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
16983: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16984: echo "${ECHO_T}$LTDLINCL" >&6
16985: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16986: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
16987: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
16988: echo "${ECHO_T}$LIBLTDL" >&6
16989:
16990:
16991:
16992: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
16993: if test "${enable_ltdl_install+set}" = set; then
16994: enableval="$enable_ltdl_install"
16995:
16996: fi;
16997:
16998: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16999: *yes*) ;;
17000: *) enable_ltdl_convenience=yes ;;
17001: esac
17002:
17003:
17004:
17005: if test x"${enable_ltdl_install-no}" != xno; then
17006: INSTALL_LTDL_TRUE=
17007: INSTALL_LTDL_FALSE='#'
17008: else
17009: INSTALL_LTDL_TRUE='#'
17010: INSTALL_LTDL_FALSE=
17011: fi
17012:
17013:
17014:
17015: if test x"${enable_ltdl_convenience-no}" != xno; then
17016: CONVENIENCE_LTDL_TRUE=
17017: CONVENIENCE_LTDL_FALSE='#'
17018: else
17019: CONVENIENCE_LTDL_TRUE='#'
17020: CONVENIENCE_LTDL_FALSE=
17021: fi
17022:
17023:
17024:
17025:
17026:
17027: subdirs="$subdirs libltdl"
17028:
17029:
17030:
17031:
17032: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17033: # the user used. This is so that ltdl.h can pick up the parent projects
17034: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17035: # definitions required by ltdl.c.
17036: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17037:
17038:
17039:
17040:
17041:
17042:
17043:
17044:
17045:
17046: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17047: do
17048: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17049: echo "$as_me:$LINENO: checking for $ac_header" >&5
17050: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17051: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17052: echo $ECHO_N "(cached) $ECHO_C" >&6
17053: else
17054: cat >conftest.$ac_ext <<_ACEOF
17055: /* confdefs.h. */
17056: _ACEOF
17057: cat confdefs.h >>conftest.$ac_ext
17058: cat >>conftest.$ac_ext <<_ACEOF
17059: /* end confdefs.h. */
17060: $ac_includes_default
17061:
17062: #include <$ac_header>
17063: _ACEOF
17064: rm -f conftest.$ac_objext
17065: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17066: (eval $ac_compile) 2>conftest.er1
17067: ac_status=$?
17068: grep -v '^ *+' conftest.er1 >conftest.err
17069: rm -f conftest.er1
17070: cat conftest.err >&5
17071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072: (exit $ac_status); } &&
17073: { ac_try='test -z "$ac_c_werror_flag"
17074: || test ! -s conftest.err'
17075: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076: (eval $ac_try) 2>&5
17077: ac_status=$?
17078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079: (exit $ac_status); }; } &&
17080: { ac_try='test -s conftest.$ac_objext'
17081: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082: (eval $ac_try) 2>&5
17083: ac_status=$?
17084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085: (exit $ac_status); }; }; then
17086: eval "$as_ac_Header=yes"
17087: else
17088: echo "$as_me: failed program was:" >&5
17089: sed 's/^/| /' conftest.$ac_ext >&5
17090:
17091: eval "$as_ac_Header=no"
17092: fi
17093: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17094: fi
17095: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17096: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17097: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17098: cat >>confdefs.h <<_ACEOF
17099: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17100: _ACEOF
17101:
17102: fi
17103:
17104: done
17105:
17106:
17107:
17108:
17109:
17110: for ac_func in closedir opendir readdir
17111: do
17112: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113: echo "$as_me:$LINENO: checking for $ac_func" >&5
17114: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17115: if eval "test \"\${$as_ac_var+set}\" = set"; then
17116: echo $ECHO_N "(cached) $ECHO_C" >&6
17117: else
17118: cat >conftest.$ac_ext <<_ACEOF
17119: /* confdefs.h. */
17120: _ACEOF
17121: cat confdefs.h >>conftest.$ac_ext
17122: cat >>conftest.$ac_ext <<_ACEOF
17123: /* end confdefs.h. */
17124: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17125: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17126: #define $ac_func innocuous_$ac_func
17127:
17128: /* System header to define __stub macros and hopefully few prototypes,
17129: which can conflict with char $ac_func (); below.
17130: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17131: <limits.h> exists even on freestanding compilers. */
17132:
17133: #ifdef __STDC__
17134: # include <limits.h>
17135: #else
17136: # include <assert.h>
17137: #endif
17138:
17139: #undef $ac_func
17140:
17141: /* Override any gcc2 internal prototype to avoid an error. */
17142: #ifdef __cplusplus
17143: extern "C"
17144: {
17145: #endif
17146: /* We use char because int might match the return type of a gcc2
17147: builtin and then its argument prototype would still apply. */
17148: char $ac_func ();
17149: /* The GNU C library defines this for functions which it implements
17150: to always fail with ENOSYS. Some functions are actually named
17151: something starting with __ and the normal name is an alias. */
17152: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17153: choke me
17154: #else
17155: char (*f) () = $ac_func;
17156: #endif
17157: #ifdef __cplusplus
17158: }
17159: #endif
17160:
17161: int
17162: main ()
17163: {
17164: return f != $ac_func;
17165: ;
17166: return 0;
17167: }
17168: _ACEOF
17169: rm -f conftest.$ac_objext conftest$ac_exeext
17170: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17171: (eval $ac_link) 2>conftest.er1
17172: ac_status=$?
17173: grep -v '^ *+' conftest.er1 >conftest.err
17174: rm -f conftest.er1
17175: cat conftest.err >&5
17176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177: (exit $ac_status); } &&
17178: { ac_try='test -z "$ac_c_werror_flag"
17179: || test ! -s conftest.err'
17180: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181: (eval $ac_try) 2>&5
17182: ac_status=$?
17183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184: (exit $ac_status); }; } &&
17185: { ac_try='test -s conftest$ac_exeext'
17186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187: (eval $ac_try) 2>&5
17188: ac_status=$?
17189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190: (exit $ac_status); }; }; then
17191: eval "$as_ac_var=yes"
17192: else
17193: echo "$as_me: failed program was:" >&5
17194: sed 's/^/| /' conftest.$ac_ext >&5
17195:
17196: eval "$as_ac_var=no"
17197: fi
17198: rm -f conftest.err conftest.$ac_objext \
17199: conftest$ac_exeext conftest.$ac_ext
17200: fi
17201: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17202: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17203: if test `eval echo '${'$as_ac_var'}'` = yes; then
17204: cat >>confdefs.h <<_ACEOF
17205: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17206: _ACEOF
17207:
17208: else
17209:
17210:
17211: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17212:
17213: fi
17214: done
17215:
17216:
17217:
17218: for ac_func in strlcat strlcpy
17219: do
17220: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221: echo "$as_me:$LINENO: checking for $ac_func" >&5
17222: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17223: if eval "test \"\${$as_ac_var+set}\" = set"; then
17224: echo $ECHO_N "(cached) $ECHO_C" >&6
17225: else
17226: cat >conftest.$ac_ext <<_ACEOF
17227: /* confdefs.h. */
17228: _ACEOF
17229: cat confdefs.h >>conftest.$ac_ext
17230: cat >>conftest.$ac_ext <<_ACEOF
17231: /* end confdefs.h. */
17232: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234: #define $ac_func innocuous_$ac_func
17235:
17236: /* System header to define __stub macros and hopefully few prototypes,
17237: which can conflict with char $ac_func (); below.
17238: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239: <limits.h> exists even on freestanding compilers. */
17240:
17241: #ifdef __STDC__
17242: # include <limits.h>
17243: #else
17244: # include <assert.h>
17245: #endif
17246:
17247: #undef $ac_func
17248:
17249: /* Override any gcc2 internal prototype to avoid an error. */
17250: #ifdef __cplusplus
17251: extern "C"
17252: {
17253: #endif
17254: /* We use char because int might match the return type of a gcc2
17255: builtin and then its argument prototype would still apply. */
17256: char $ac_func ();
17257: /* The GNU C library defines this for functions which it implements
17258: to always fail with ENOSYS. Some functions are actually named
17259: something starting with __ and the normal name is an alias. */
17260: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17261: choke me
17262: #else
17263: char (*f) () = $ac_func;
17264: #endif
17265: #ifdef __cplusplus
17266: }
17267: #endif
17268:
17269: int
17270: main ()
17271: {
17272: return f != $ac_func;
17273: ;
17274: return 0;
17275: }
17276: _ACEOF
17277: rm -f conftest.$ac_objext conftest$ac_exeext
17278: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279: (eval $ac_link) 2>conftest.er1
17280: ac_status=$?
17281: grep -v '^ *+' conftest.er1 >conftest.err
17282: rm -f conftest.er1
17283: cat conftest.err >&5
17284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285: (exit $ac_status); } &&
17286: { ac_try='test -z "$ac_c_werror_flag"
17287: || test ! -s conftest.err'
17288: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289: (eval $ac_try) 2>&5
17290: ac_status=$?
17291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292: (exit $ac_status); }; } &&
17293: { ac_try='test -s conftest$ac_exeext'
17294: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295: (eval $ac_try) 2>&5
17296: ac_status=$?
17297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298: (exit $ac_status); }; }; then
17299: eval "$as_ac_var=yes"
17300: else
17301: echo "$as_me: failed program was:" >&5
17302: sed 's/^/| /' conftest.$ac_ext >&5
17303:
17304: eval "$as_ac_var=no"
17305: fi
17306: rm -f conftest.err conftest.$ac_objext \
17307: conftest$ac_exeext conftest.$ac_ext
17308: fi
17309: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17310: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17311: if test `eval echo '${'$as_ac_var'}'` = yes; then
17312: cat >>confdefs.h <<_ACEOF
17313: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17314: _ACEOF
17315:
17316: else
17317:
17318:
17319: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17320:
17321: fi
17322: done
17323:
17324:
17325:
17326: cat >>confdefs.h <<_ACEOF
17327: #define LT_LIBEXT "$libext"
17328: _ACEOF
17329:
17330:
17331: name=
17332: eval "lt_libprefix=\"$libname_spec\""
17333:
17334: cat >>confdefs.h <<_ACEOF
17335: #define LT_LIBPREFIX "$lt_libprefix"
17336: _ACEOF
17337:
17338:
17339: name=ltdl
17340: eval "LTDLOPEN=\"$libname_spec\""
17341:
17342:
17343:
17344:
17345:
17346:
17347:
17348:
17349: # Only expand once:
17350:
17351:
17352:
1.36 moko 17353: # Check whether --enable-static or --disable-static was given.
17354: if test "${enable_static+set}" = set; then
17355: enableval="$enable_static"
17356: p=${PACKAGE-default}
17357: case $enableval in
17358: yes) enable_static=yes ;;
17359: no) enable_static=no ;;
17360: *)
17361: enable_static=no
17362: # Look at the argument we got. We use all the common list separators.
17363: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17364: for pkg in $enableval; do
17365: IFS="$lt_save_ifs"
17366: if test "X$pkg" = "X$p"; then
17367: enable_static=yes
17368: fi
17369: done
17370: IFS="$lt_save_ifs"
17371: ;;
17372: esac
17373: else
17374: enable_static=no
17375: fi;
17376:
17377:
17378:
17379:
17380:
17381:
17382:
1.35 moko 17383: case "$host" in
17384: *-freebsd4*)
17385:
17386: cat >>confdefs.h <<\_ACEOF
17387: #define FREEBSD4
17388: _ACEOF
17389:
17390: esac
17391:
17392:
17393:
17394:
17395:
17396:
17397: for ac_header in stdio.h \
17398: stdlib.h \
17399: string.h \
17400: setjmp.h \
17401: ctype.h
17402:
17403: do
17404: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17405: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17406: echo "$as_me:$LINENO: checking for $ac_header" >&5
17407: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17408: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17409: echo $ECHO_N "(cached) $ECHO_C" >&6
17410: fi
17411: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17412: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17413: else
17414: # Is the header compilable?
17415: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17416: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17417: cat >conftest.$ac_ext <<_ACEOF
17418: /* confdefs.h. */
17419: _ACEOF
17420: cat confdefs.h >>conftest.$ac_ext
17421: cat >>conftest.$ac_ext <<_ACEOF
17422: /* end confdefs.h. */
17423: $ac_includes_default
17424: #include <$ac_header>
17425: _ACEOF
17426: rm -f conftest.$ac_objext
17427: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17428: (eval $ac_compile) 2>conftest.er1
17429: ac_status=$?
17430: grep -v '^ *+' conftest.er1 >conftest.err
17431: rm -f conftest.er1
17432: cat conftest.err >&5
17433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434: (exit $ac_status); } &&
17435: { ac_try='test -z "$ac_c_werror_flag"
17436: || test ! -s conftest.err'
17437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438: (eval $ac_try) 2>&5
17439: ac_status=$?
17440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441: (exit $ac_status); }; } &&
17442: { ac_try='test -s conftest.$ac_objext'
17443: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444: (eval $ac_try) 2>&5
17445: ac_status=$?
17446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447: (exit $ac_status); }; }; then
17448: ac_header_compiler=yes
17449: else
17450: echo "$as_me: failed program was:" >&5
17451: sed 's/^/| /' conftest.$ac_ext >&5
17452:
17453: ac_header_compiler=no
17454: fi
17455: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17456: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17457: echo "${ECHO_T}$ac_header_compiler" >&6
17458:
17459: # Is the header present?
17460: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17461: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17462: cat >conftest.$ac_ext <<_ACEOF
17463: /* confdefs.h. */
17464: _ACEOF
17465: cat confdefs.h >>conftest.$ac_ext
17466: cat >>conftest.$ac_ext <<_ACEOF
17467: /* end confdefs.h. */
17468: #include <$ac_header>
17469: _ACEOF
17470: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17471: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17472: ac_status=$?
17473: grep -v '^ *+' conftest.er1 >conftest.err
17474: rm -f conftest.er1
17475: cat conftest.err >&5
17476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477: (exit $ac_status); } >/dev/null; then
17478: if test -s conftest.err; then
17479: ac_cpp_err=$ac_c_preproc_warn_flag
17480: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17481: else
17482: ac_cpp_err=
17483: fi
17484: else
17485: ac_cpp_err=yes
17486: fi
17487: if test -z "$ac_cpp_err"; then
17488: ac_header_preproc=yes
17489: else
17490: echo "$as_me: failed program was:" >&5
17491: sed 's/^/| /' conftest.$ac_ext >&5
17492:
17493: ac_header_preproc=no
17494: fi
17495: rm -f conftest.err conftest.$ac_ext
17496: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17497: echo "${ECHO_T}$ac_header_preproc" >&6
17498:
17499: # So? What about this header?
17500: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17501: yes:no: )
17502: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17503: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17504: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17505: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17506: ac_header_preproc=yes
17507: ;;
17508: no:yes:* )
17509: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17510: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17511: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17512: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17513: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17514: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17515: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17516: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17517: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17518: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17519: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17520: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17521: (
17522: cat <<\_ASBOX
1.36 moko 17523: ## ----------------------------------------- ##
17524: ## Report this to the parser3mysql.C lists. ##
17525: ## ----------------------------------------- ##
1.35 moko 17526: _ASBOX
17527: ) |
17528: sed "s/^/$as_me: WARNING: /" >&2
17529: ;;
17530: esac
17531: echo "$as_me:$LINENO: checking for $ac_header" >&5
17532: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17533: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17534: echo $ECHO_N "(cached) $ECHO_C" >&6
17535: else
17536: eval "$as_ac_Header=\$ac_header_preproc"
17537: fi
17538: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17539: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17540:
17541: fi
17542: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17543: cat >>confdefs.h <<_ACEOF
17544: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17545: _ACEOF
17546:
17547: fi
17548:
17549: done
17550:
17551:
17552: echo "$as_me:$LINENO: checking for size_t" >&5
17553: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17554: if test "${ac_cv_type_size_t+set}" = set; then
17555: echo $ECHO_N "(cached) $ECHO_C" >&6
17556: else
17557: cat >conftest.$ac_ext <<_ACEOF
17558: /* confdefs.h. */
17559: _ACEOF
17560: cat confdefs.h >>conftest.$ac_ext
17561: cat >>conftest.$ac_ext <<_ACEOF
17562: /* end confdefs.h. */
17563: $ac_includes_default
17564: int
17565: main ()
17566: {
17567: if ((size_t *) 0)
17568: return 0;
17569: if (sizeof (size_t))
17570: return 0;
17571: ;
17572: return 0;
17573: }
17574: _ACEOF
17575: rm -f conftest.$ac_objext
17576: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17577: (eval $ac_compile) 2>conftest.er1
17578: ac_status=$?
17579: grep -v '^ *+' conftest.er1 >conftest.err
17580: rm -f conftest.er1
17581: cat conftest.err >&5
17582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583: (exit $ac_status); } &&
17584: { ac_try='test -z "$ac_c_werror_flag"
17585: || test ! -s conftest.err'
17586: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587: (eval $ac_try) 2>&5
17588: ac_status=$?
17589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590: (exit $ac_status); }; } &&
17591: { ac_try='test -s conftest.$ac_objext'
17592: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593: (eval $ac_try) 2>&5
17594: ac_status=$?
17595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596: (exit $ac_status); }; }; then
17597: ac_cv_type_size_t=yes
17598: else
17599: echo "$as_me: failed program was:" >&5
17600: sed 's/^/| /' conftest.$ac_ext >&5
17601:
17602: ac_cv_type_size_t=no
17603: fi
17604: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605: fi
17606: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17607: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17608: if test $ac_cv_type_size_t = yes; then
17609: :
17610: else
17611:
17612: cat >>confdefs.h <<_ACEOF
17613: #define size_t unsigned
17614: _ACEOF
17615:
17616: fi
17617:
17618:
17619:
17620: ac_config_files="$ac_config_files Makefile"
17621: cat >confcache <<\_ACEOF
17622: # This file is a shell script that caches the results of configure
17623: # tests run on this system so they can be shared between configure
17624: # scripts and configure runs, see configure's option --config-cache.
17625: # It is not useful on other systems. If it contains results you don't
17626: # want to keep, you may remove or edit it.
17627: #
17628: # config.status only pays attention to the cache file if you give it
17629: # the --recheck option to rerun configure.
17630: #
17631: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17632: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17633: # following values.
17634:
17635: _ACEOF
17636:
17637: # The following way of writing the cache mishandles newlines in values,
17638: # but we know of no workaround that is simple, portable, and efficient.
17639: # So, don't put newlines in cache variables' values.
17640: # Ultrix sh set writes to stderr and can't be redirected directly,
17641: # and sets the high bit in the cache file unless we assign to the vars.
17642: {
17643: (set) 2>&1 |
17644: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17645: *ac_space=\ *)
17646: # `set' does not quote correctly, so add quotes (double-quote
17647: # substitution turns \\\\ into \\, and sed turns \\ into \).
17648: sed -n \
17649: "s/'/'\\\\''/g;
17650: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17651: ;;
17652: *)
17653: # `set' quotes correctly as required by POSIX, so do not add quotes.
17654: sed -n \
17655: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17656: ;;
17657: esac;
17658: } |
17659: sed '
17660: t clear
17661: : clear
17662: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17663: t end
17664: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17665: : end' >>confcache
17666: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17667: if test -w $cache_file; then
17668: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17669: cat confcache >$cache_file
17670: else
17671: echo "not updating unwritable cache $cache_file"
17672: fi
17673: fi
17674: rm -f confcache
17675:
17676: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17677: # Let make expand exec_prefix.
17678: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17679:
17680: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17681: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17682: # trailing colons and then remove the whole line if VPATH becomes empty
17683: # (actually we leave an empty line to preserve line numbers).
17684: if test "x$srcdir" = x.; then
17685: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17686: s/:*\$(srcdir):*/:/;
17687: s/:*\${srcdir}:*/:/;
17688: s/:*@srcdir@:*/:/;
17689: s/^\([^=]*=[ ]*\):*/\1/;
17690: s/:*$//;
17691: s/^[^=]*=[ ]*$//;
17692: }'
17693: fi
17694:
17695: DEFS=-DHAVE_CONFIG_H
17696:
17697: ac_libobjs=
17698: ac_ltlibobjs=
17699: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17700: # 1. Remove the extension, and $U if already installed.
17701: ac_i=`echo "$ac_i" |
17702: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17703: # 2. Add them.
17704: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17705: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17706: done
17707: LIBOBJS=$ac_libobjs
17708:
17709: LTLIBOBJS=$ac_ltlibobjs
17710:
17711:
17712: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17713: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17714: Usually this means the macro was only invoked conditionally." >&5
17715: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17716: Usually this means the macro was only invoked conditionally." >&2;}
17717: { (exit 1); exit 1; }; }
17718: fi
17719: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17720: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17721: Usually this means the macro was only invoked conditionally." >&5
17722: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17723: Usually this means the macro was only invoked conditionally." >&2;}
17724: { (exit 1); exit 1; }; }
17725: fi
17726: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17727: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17728: Usually this means the macro was only invoked conditionally." >&5
17729: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17730: Usually this means the macro was only invoked conditionally." >&2;}
17731: { (exit 1); exit 1; }; }
17732: fi
17733: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17734: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17735: Usually this means the macro was only invoked conditionally." >&5
17736: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17737: Usually this means the macro was only invoked conditionally." >&2;}
17738: { (exit 1); exit 1; }; }
17739: fi
17740: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17741: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17742: Usually this means the macro was only invoked conditionally." >&5
17743: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17744: Usually this means the macro was only invoked conditionally." >&2;}
17745: { (exit 1); exit 1; }; }
17746: fi
17747: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
17748:
17749: _ltdl_libobjs=
17750: _ltdl_ltlibobjs=
17751: if test -n "$_LT_LIBOBJS"; then
17752: # Remove the extension.
17753: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17754: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17755: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17756: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17757: done
17758: fi
17759: ltdl_LIBOBJS=$_ltdl_libobjs
17760:
17761: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17762:
17763:
17764:
17765: : ${CONFIG_STATUS=./config.status}
17766: ac_clean_files_save=$ac_clean_files
17767: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17768: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17769: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17770: cat >$CONFIG_STATUS <<_ACEOF
17771: #! $SHELL
17772: # Generated by $as_me.
17773: # Run this file to recreate the current configuration.
17774: # Compiler output produced by configure, useful for debugging
17775: # configure, is in config.log if it exists.
17776:
17777: debug=false
17778: ac_cs_recheck=false
17779: ac_cs_silent=false
17780: SHELL=\${CONFIG_SHELL-$SHELL}
17781: _ACEOF
17782:
17783: cat >>$CONFIG_STATUS <<\_ACEOF
17784: ## --------------------- ##
17785: ## M4sh Initialization. ##
17786: ## --------------------- ##
17787:
17788: # Be Bourne compatible
17789: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17790: emulate sh
17791: NULLCMD=:
17792: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17793: # is contrary to our usage. Disable this feature.
17794: alias -g '${1+"$@"}'='"$@"'
17795: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17796: set -o posix
17797: fi
17798: DUALCASE=1; export DUALCASE # for MKS sh
17799:
17800: # Support unset when possible.
17801: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17802: as_unset=unset
17803: else
17804: as_unset=false
17805: fi
17806:
17807:
17808: # Work around bugs in pre-3.0 UWIN ksh.
17809: $as_unset ENV MAIL MAILPATH
17810: PS1='$ '
17811: PS2='> '
17812: PS4='+ '
17813:
17814: # NLS nuisances.
17815: for as_var in \
17816: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17817: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17818: LC_TELEPHONE LC_TIME
17819: do
17820: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17821: eval $as_var=C; export $as_var
17822: else
17823: $as_unset $as_var
17824: fi
17825: done
17826:
17827: # Required to use basename.
17828: if expr a : '\(a\)' >/dev/null 2>&1; then
17829: as_expr=expr
17830: else
17831: as_expr=false
17832: fi
17833:
17834: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17835: as_basename=basename
17836: else
17837: as_basename=false
17838: fi
17839:
17840:
17841: # Name of the executable.
17842: as_me=`$as_basename "$0" ||
17843: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17844: X"$0" : 'X\(//\)$' \| \
17845: X"$0" : 'X\(/\)$' \| \
17846: . : '\(.\)' 2>/dev/null ||
17847: echo X/"$0" |
17848: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17849: /^X\/\(\/\/\)$/{ s//\1/; q; }
17850: /^X\/\(\/\).*/{ s//\1/; q; }
17851: s/.*/./; q'`
17852:
17853:
17854: # PATH needs CR, and LINENO needs CR and PATH.
17855: # Avoid depending upon Character Ranges.
17856: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17857: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17858: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17859: as_cr_digits='0123456789'
17860: as_cr_alnum=$as_cr_Letters$as_cr_digits
17861:
17862: # The user is always right.
17863: if test "${PATH_SEPARATOR+set}" != set; then
17864: echo "#! /bin/sh" >conf$$.sh
17865: echo "exit 0" >>conf$$.sh
17866: chmod +x conf$$.sh
17867: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17868: PATH_SEPARATOR=';'
17869: else
17870: PATH_SEPARATOR=:
17871: fi
17872: rm -f conf$$.sh
17873: fi
17874:
17875:
17876: as_lineno_1=$LINENO
17877: as_lineno_2=$LINENO
17878: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17879: test "x$as_lineno_1" != "x$as_lineno_2" &&
17880: test "x$as_lineno_3" = "x$as_lineno_2" || {
17881: # Find who we are. Look in the path if we contain no path at all
17882: # relative or not.
17883: case $0 in
17884: *[\\/]* ) as_myself=$0 ;;
17885: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17886: for as_dir in $PATH
17887: do
17888: IFS=$as_save_IFS
17889: test -z "$as_dir" && as_dir=.
17890: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17891: done
17892:
17893: ;;
17894: esac
17895: # We did not find ourselves, most probably we were run as `sh COMMAND'
17896: # in which case we are not to be found in the path.
17897: if test "x$as_myself" = x; then
17898: as_myself=$0
17899: fi
17900: if test ! -f "$as_myself"; then
17901: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17902: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17903: { (exit 1); exit 1; }; }
17904: fi
17905: case $CONFIG_SHELL in
17906: '')
17907: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17908: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17909: do
17910: IFS=$as_save_IFS
17911: test -z "$as_dir" && as_dir=.
17912: for as_base in sh bash ksh sh5; do
17913: case $as_dir in
17914: /*)
17915: if ("$as_dir/$as_base" -c '
17916: as_lineno_1=$LINENO
17917: as_lineno_2=$LINENO
17918: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17919: test "x$as_lineno_1" != "x$as_lineno_2" &&
17920: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17921: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17922: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17923: CONFIG_SHELL=$as_dir/$as_base
17924: export CONFIG_SHELL
17925: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17926: fi;;
17927: esac
17928: done
17929: done
17930: ;;
17931: esac
17932:
17933: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17934: # uniformly replaced by the line number. The first 'sed' inserts a
17935: # line-number line before each line; the second 'sed' does the real
17936: # work. The second script uses 'N' to pair each line-number line
17937: # with the numbered line, and appends trailing '-' during
17938: # substitution so that $LINENO is not a special case at line end.
17939: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17940: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17941: sed '=' <$as_myself |
17942: sed '
17943: N
17944: s,$,-,
17945: : loop
17946: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17947: t loop
17948: s,-$,,
17949: s,^['$as_cr_digits']*\n,,
17950: ' >$as_me.lineno &&
17951: chmod +x $as_me.lineno ||
17952: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17953: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17954: { (exit 1); exit 1; }; }
17955:
17956: # Don't try to exec as it changes $[0], causing all sort of problems
17957: # (the dirname of $[0] is not the place where we might find the
17958: # original and so on. Autoconf is especially sensible to this).
17959: . ./$as_me.lineno
17960: # Exit status is that of the last command.
17961: exit
17962: }
17963:
17964:
17965: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17966: *c*,-n*) ECHO_N= ECHO_C='
17967: ' ECHO_T=' ' ;;
17968: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17969: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17970: esac
17971:
17972: if expr a : '\(a\)' >/dev/null 2>&1; then
17973: as_expr=expr
17974: else
17975: as_expr=false
17976: fi
17977:
17978: rm -f conf$$ conf$$.exe conf$$.file
17979: echo >conf$$.file
17980: if ln -s conf$$.file conf$$ 2>/dev/null; then
17981: # We could just check for DJGPP; but this test a) works b) is more generic
17982: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17983: if test -f conf$$.exe; then
17984: # Don't use ln at all; we don't have any links
17985: as_ln_s='cp -p'
17986: else
17987: as_ln_s='ln -s'
17988: fi
17989: elif ln conf$$.file conf$$ 2>/dev/null; then
17990: as_ln_s=ln
17991: else
17992: as_ln_s='cp -p'
17993: fi
17994: rm -f conf$$ conf$$.exe conf$$.file
17995:
17996: if mkdir -p . 2>/dev/null; then
17997: as_mkdir_p=:
17998: else
17999: test -d ./-p && rmdir ./-p
18000: as_mkdir_p=false
18001: fi
18002:
18003: as_executable_p="test -f"
18004:
18005: # Sed expression to map a string onto a valid CPP name.
18006: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18007:
18008: # Sed expression to map a string onto a valid variable name.
18009: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18010:
18011:
18012: # IFS
18013: # We need space, tab and new line, in precisely that order.
18014: as_nl='
18015: '
18016: IFS=" $as_nl"
18017:
18018: # CDPATH.
18019: $as_unset CDPATH
18020:
18021: exec 6>&1
18022:
18023: # Open the log real soon, to keep \$[0] and so on meaningful, and to
18024: # report actual input values of CONFIG_FILES etc. instead of their
18025: # values after options handling. Logging --version etc. is OK.
18026: exec 5>>config.log
18027: {
18028: echo
18029: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18030: ## Running $as_me. ##
18031: _ASBOX
18032: } >&5
18033: cat >&5 <<_CSEOF
18034:
1.36 moko 18035: This file was extended by parser3mysql.C $as_me 10.3, which was
1.35 moko 18036: generated by GNU Autoconf 2.59. Invocation command line was
18037:
18038: CONFIG_FILES = $CONFIG_FILES
18039: CONFIG_HEADERS = $CONFIG_HEADERS
18040: CONFIG_LINKS = $CONFIG_LINKS
18041: CONFIG_COMMANDS = $CONFIG_COMMANDS
18042: $ $0 $@
18043:
18044: _CSEOF
18045: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18046: echo >&5
18047: _ACEOF
18048:
18049: # Files that config.status was made for.
18050: if test -n "$ac_config_files"; then
18051: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18052: fi
18053:
18054: if test -n "$ac_config_headers"; then
18055: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18056: fi
18057:
18058: if test -n "$ac_config_links"; then
18059: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18060: fi
18061:
18062: if test -n "$ac_config_commands"; then
18063: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18064: fi
18065:
18066: cat >>$CONFIG_STATUS <<\_ACEOF
18067:
18068: ac_cs_usage="\
18069: \`$as_me' instantiates files from templates according to the
18070: current configuration.
18071:
18072: Usage: $0 [OPTIONS] [FILE]...
18073:
18074: -h, --help print this help, then exit
18075: -V, --version print version number, then exit
18076: -q, --quiet do not print progress messages
18077: -d, --debug don't remove temporary files
18078: --recheck update $as_me by reconfiguring in the same conditions
18079: --file=FILE[:TEMPLATE]
18080: instantiate the configuration file FILE
18081: --header=FILE[:TEMPLATE]
18082: instantiate the configuration header FILE
18083:
18084: Configuration files:
18085: $config_files
18086:
18087: Configuration headers:
18088: $config_headers
18089:
18090: Configuration commands:
18091: $config_commands
18092:
18093: Report bugs to <bug-autoconf@gnu.org>."
18094: _ACEOF
18095:
18096: cat >>$CONFIG_STATUS <<_ACEOF
18097: ac_cs_version="\\
1.36 moko 18098: parser3mysql.C config.status 10.3
1.35 moko 18099: configured by $0, generated by GNU Autoconf 2.59,
18100: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18101:
18102: Copyright (C) 2003 Free Software Foundation, Inc.
18103: This config.status script is free software; the Free Software Foundation
18104: gives unlimited permission to copy, distribute and modify it."
18105: srcdir=$srcdir
18106: INSTALL="$INSTALL"
18107: _ACEOF
18108:
18109: cat >>$CONFIG_STATUS <<\_ACEOF
18110: # If no file are specified by the user, then we need to provide default
18111: # value. By we need to know if files were specified by the user.
18112: ac_need_defaults=:
18113: while test $# != 0
18114: do
18115: case $1 in
18116: --*=*)
18117: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18118: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18119: ac_shift=:
18120: ;;
18121: -*)
18122: ac_option=$1
18123: ac_optarg=$2
18124: ac_shift=shift
18125: ;;
18126: *) # This is not an option, so the user has probably given explicit
18127: # arguments.
18128: ac_option=$1
18129: ac_need_defaults=false;;
18130: esac
18131:
18132: case $ac_option in
18133: # Handling of the options.
18134: _ACEOF
18135: cat >>$CONFIG_STATUS <<\_ACEOF
18136: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18137: ac_cs_recheck=: ;;
18138: --version | --vers* | -V )
18139: echo "$ac_cs_version"; exit 0 ;;
18140: --he | --h)
18141: # Conflict between --help and --header
18142: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18143: Try \`$0 --help' for more information." >&5
18144: echo "$as_me: error: ambiguous option: $1
18145: Try \`$0 --help' for more information." >&2;}
18146: { (exit 1); exit 1; }; };;
18147: --help | --hel | -h )
18148: echo "$ac_cs_usage"; exit 0 ;;
18149: --debug | --d* | -d )
18150: debug=: ;;
18151: --file | --fil | --fi | --f )
18152: $ac_shift
18153: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18154: ac_need_defaults=false;;
18155: --header | --heade | --head | --hea )
18156: $ac_shift
18157: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18158: ac_need_defaults=false;;
18159: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18160: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18161: ac_cs_silent=: ;;
18162:
18163: # This is an error.
18164: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18165: Try \`$0 --help' for more information." >&5
18166: echo "$as_me: error: unrecognized option: $1
18167: Try \`$0 --help' for more information." >&2;}
18168: { (exit 1); exit 1; }; } ;;
18169:
18170: *) ac_config_targets="$ac_config_targets $1" ;;
18171:
18172: esac
18173: shift
18174: done
18175:
18176: ac_configure_extra_args=
18177:
18178: if $ac_cs_silent; then
18179: exec 6>/dev/null
18180: ac_configure_extra_args="$ac_configure_extra_args --silent"
18181: fi
18182:
18183: _ACEOF
18184: cat >>$CONFIG_STATUS <<_ACEOF
18185: if \$ac_cs_recheck; then
18186: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18187: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18188: fi
18189:
18190: _ACEOF
18191:
18192: cat >>$CONFIG_STATUS <<_ACEOF
18193: #
18194: # INIT-COMMANDS section.
18195: #
18196:
18197: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18198:
18199:
18200: # The HP-UX ksh and POSIX shell print the target directory to stdout
18201: # if CDPATH is set.
18202: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18203:
18204: sed_quote_subst='$sed_quote_subst'
18205: double_quote_subst='$double_quote_subst'
18206: delay_variable_subst='$delay_variable_subst'
18207: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18208: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.36 moko 18209: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18210: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18211: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.35 moko 18212: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18213: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18214: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18215: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18216: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18217: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18218: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18219: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18220: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18221: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18222: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18223: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18224: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18225: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18226: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18227: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18228: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18229: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18230: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18231: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18232: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18233: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18234: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18235: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18236: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18237: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18238: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18239: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18240: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18241: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18242: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18243: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18244: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18245: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18246: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18247: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18248: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18249: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18250: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18251: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18252: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18253: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18254: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18255: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18256: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18257: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18258: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18259: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18260: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18261: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18262: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18263: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18264: 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"`'
18265: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18266: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18267: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18268: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18269: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18270: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18271: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18272: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18273: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18274: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18275: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18276: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18277: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18278: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18279: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18280: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18281: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18282: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18283: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18284: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18285: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18286: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18287: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18288: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18289: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18290: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18291: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18292: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18293: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18294: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18295: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18296: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18297: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18298: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18299: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18300: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18301: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18302: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18303: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18304: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18305: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18306: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18307: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18308: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18309: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18310: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18311: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18312: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18313: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18314: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18315: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18316: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18317: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18318: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18319: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18320: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18321: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18322: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18323: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18324: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18325: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18326: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18327: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18328: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18329: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18330: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18331: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18332: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18333: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18334: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18335: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18336: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18337: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18338: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18339: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18340: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18341: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18342: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18343: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18344: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18345: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18346: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18347: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18348: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18349: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18350: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18351: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18352: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18353: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18354: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18355: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18356: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18357: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18358: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18359: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18360: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18361: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18362: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18363: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18364: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18365: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18366: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18367: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18368: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18369: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18370: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18371: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18372: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18373: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18374: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18375: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18376: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18377: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18378: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18379: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18380: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18381: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18382: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18383: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18384: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18385: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18386: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18387: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18388: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18389: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18390: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18391: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18392:
18393: LTCC='$LTCC'
18394: LTCFLAGS='$LTCFLAGS'
18395: compiler='$compiler_DEFAULT'
18396:
18397: # A function that is used when there is no print builtin or printf.
18398: func_fallback_echo ()
18399: {
18400: eval 'cat <<_LTECHO_EOF
18401: \$1
18402: _LTECHO_EOF'
18403: }
18404:
18405: # Quote evaled strings.
1.36 moko 18406: for var in AS \
18407: DLLTOOL \
18408: OBJDUMP \
18409: SHELL \
1.35 moko 18410: ECHO \
18411: PATH_SEPARATOR \
18412: SED \
18413: GREP \
18414: EGREP \
18415: FGREP \
18416: LD \
18417: NM \
18418: LN_S \
18419: lt_SP2NL \
18420: lt_NL2SP \
18421: reload_flag \
18422: deplibs_check_method \
18423: file_magic_cmd \
18424: file_magic_glob \
18425: want_nocaseglob \
18426: sharedlib_from_linklib_cmd \
18427: AR \
18428: AR_FLAGS \
18429: archiver_list_spec \
18430: STRIP \
18431: RANLIB \
18432: CC \
18433: CFLAGS \
18434: compiler \
18435: lt_cv_sys_global_symbol_pipe \
18436: lt_cv_sys_global_symbol_to_cdecl \
18437: lt_cv_sys_global_symbol_to_c_name_address \
18438: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18439: nm_file_list_spec \
18440: lt_prog_compiler_no_builtin_flag \
18441: lt_prog_compiler_pic \
18442: lt_prog_compiler_wl \
18443: lt_prog_compiler_static \
18444: lt_cv_prog_compiler_c_o \
18445: need_locks \
18446: MANIFEST_TOOL \
18447: DSYMUTIL \
18448: NMEDIT \
18449: LIPO \
18450: OTOOL \
18451: OTOOL64 \
18452: shrext_cmds \
18453: export_dynamic_flag_spec \
18454: whole_archive_flag_spec \
18455: compiler_needs_object \
18456: with_gnu_ld \
18457: allow_undefined_flag \
18458: no_undefined_flag \
18459: hardcode_libdir_flag_spec \
18460: hardcode_libdir_separator \
18461: exclude_expsyms \
18462: include_expsyms \
18463: file_list_spec \
18464: variables_saved_for_relink \
18465: libname_spec \
18466: library_names_spec \
18467: soname_spec \
18468: install_override_mode \
18469: finish_eval \
18470: old_striplib \
18471: striplib \
18472: compiler_lib_search_dirs \
18473: predep_objects \
18474: postdep_objects \
18475: predeps \
18476: postdeps \
18477: compiler_lib_search_path \
18478: LD_CXX \
18479: reload_flag_CXX \
18480: compiler_CXX \
18481: lt_prog_compiler_no_builtin_flag_CXX \
18482: lt_prog_compiler_pic_CXX \
18483: lt_prog_compiler_wl_CXX \
18484: lt_prog_compiler_static_CXX \
18485: lt_cv_prog_compiler_c_o_CXX \
18486: export_dynamic_flag_spec_CXX \
18487: whole_archive_flag_spec_CXX \
18488: compiler_needs_object_CXX \
18489: with_gnu_ld_CXX \
18490: allow_undefined_flag_CXX \
18491: no_undefined_flag_CXX \
18492: hardcode_libdir_flag_spec_CXX \
18493: hardcode_libdir_separator_CXX \
18494: exclude_expsyms_CXX \
18495: include_expsyms_CXX \
18496: file_list_spec_CXX \
18497: compiler_lib_search_dirs_CXX \
18498: predep_objects_CXX \
18499: postdep_objects_CXX \
18500: predeps_CXX \
18501: postdeps_CXX \
18502: compiler_lib_search_path_CXX; do
18503: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18504: *[\\\\\\\`\\"\\\$]*)
18505: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18506: ;;
18507: *)
18508: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18509: ;;
18510: esac
18511: done
18512:
18513: # Double-quote double-evaled strings.
18514: for var in reload_cmds \
18515: old_postinstall_cmds \
18516: old_postuninstall_cmds \
18517: old_archive_cmds \
18518: extract_expsyms_cmds \
18519: old_archive_from_new_cmds \
18520: old_archive_from_expsyms_cmds \
18521: archive_cmds \
18522: archive_expsym_cmds \
18523: module_cmds \
18524: module_expsym_cmds \
18525: export_symbols_cmds \
18526: prelink_cmds \
18527: postlink_cmds \
18528: postinstall_cmds \
18529: postuninstall_cmds \
18530: finish_cmds \
18531: sys_lib_search_path_spec \
18532: sys_lib_dlsearch_path_spec \
18533: reload_cmds_CXX \
18534: old_archive_cmds_CXX \
18535: old_archive_from_new_cmds_CXX \
18536: old_archive_from_expsyms_cmds_CXX \
18537: archive_cmds_CXX \
18538: archive_expsym_cmds_CXX \
18539: module_cmds_CXX \
18540: module_expsym_cmds_CXX \
18541: export_symbols_cmds_CXX \
18542: prelink_cmds_CXX \
18543: postlink_cmds_CXX; do
18544: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18545: *[\\\\\\\`\\"\\\$]*)
18546: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18547: ;;
18548: *)
18549: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18550: ;;
18551: esac
18552: done
18553:
18554: ac_aux_dir='$ac_aux_dir'
18555: xsi_shell='$xsi_shell'
18556: lt_shell_append='$lt_shell_append'
18557:
18558: # See if we are running on zsh, and set the options which allow our
18559: # commands through without removal of \ escapes INIT.
18560: if test -n "\${ZSH_VERSION+set}" ; then
18561: setopt NO_GLOB_SUBST
18562: fi
18563:
18564:
18565: PACKAGE='$PACKAGE'
18566: VERSION='$VERSION'
18567: TIMESTAMP='$TIMESTAMP'
18568: RM='$RM'
18569: ofile='$ofile'
18570:
18571:
18572:
18573:
18574:
18575:
18576: _ACEOF
18577:
18578:
18579:
18580: cat >>$CONFIG_STATUS <<\_ACEOF
18581: for ac_config_target in $ac_config_targets
18582: do
18583: case "$ac_config_target" in
18584: # Handling of arguments.
18585: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18586: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18587: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18588: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18589: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18590: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18591: { (exit 1); exit 1; }; };;
18592: esac
18593: done
18594:
18595: # If the user did not use the arguments to specify the items to instantiate,
18596: # then the envvar interface is used. Set only those that are not.
18597: # We use the long form for the default assignment because of an extremely
18598: # bizarre bug on SunOS 4.1.3.
18599: if $ac_need_defaults; then
18600: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18601: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18602: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18603: fi
18604:
18605: # Have a temporary directory for convenience. Make it in the build tree
18606: # simply because there is no reason to put it here, and in addition,
18607: # creating and moving files from /tmp can sometimes cause problems.
18608: # Create a temporary directory, and hook for its removal unless debugging.
18609: $debug ||
18610: {
18611: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18612: trap '{ (exit 1); exit 1; }' 1 2 13 15
18613: }
18614:
18615: # Create a (secure) tmp directory for tmp files.
18616:
18617: {
18618: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18619: test -n "$tmp" && test -d "$tmp"
18620: } ||
18621: {
18622: tmp=./confstat$$-$RANDOM
18623: (umask 077 && mkdir $tmp)
18624: } ||
18625: {
18626: echo "$me: cannot create a temporary directory in ." >&2
18627: { (exit 1); exit 1; }
18628: }
18629:
18630: _ACEOF
18631:
18632: cat >>$CONFIG_STATUS <<_ACEOF
18633:
18634: #
18635: # CONFIG_FILES section.
18636: #
18637:
18638: # No need to generate the scripts if there are no CONFIG_FILES.
18639: # This happens for instance when ./config.status config.h
18640: if test -n "\$CONFIG_FILES"; then
18641: # Protect against being on the right side of a sed subst in config.status.
18642: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18643: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18644: s,@SHELL@,$SHELL,;t t
18645: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18646: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18647: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18648: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18649: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18650: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18651: s,@exec_prefix@,$exec_prefix,;t t
18652: s,@prefix@,$prefix,;t t
18653: s,@program_transform_name@,$program_transform_name,;t t
18654: s,@bindir@,$bindir,;t t
18655: s,@sbindir@,$sbindir,;t t
18656: s,@libexecdir@,$libexecdir,;t t
18657: s,@datadir@,$datadir,;t t
18658: s,@sysconfdir@,$sysconfdir,;t t
18659: s,@sharedstatedir@,$sharedstatedir,;t t
18660: s,@localstatedir@,$localstatedir,;t t
18661: s,@libdir@,$libdir,;t t
18662: s,@includedir@,$includedir,;t t
18663: s,@oldincludedir@,$oldincludedir,;t t
18664: s,@infodir@,$infodir,;t t
18665: s,@mandir@,$mandir,;t t
18666: s,@build_alias@,$build_alias,;t t
18667: s,@host_alias@,$host_alias,;t t
18668: s,@target_alias@,$target_alias,;t t
18669: s,@DEFS@,$DEFS,;t t
18670: s,@ECHO_C@,$ECHO_C,;t t
18671: s,@ECHO_N@,$ECHO_N,;t t
18672: s,@ECHO_T@,$ECHO_T,;t t
18673: s,@LIBS@,$LIBS,;t t
18674: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18675: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18676: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18677: s,@CYGPATH_W@,$CYGPATH_W,;t t
18678: s,@PACKAGE@,$PACKAGE,;t t
18679: s,@VERSION@,$VERSION,;t t
18680: s,@ACLOCAL@,$ACLOCAL,;t t
18681: s,@AUTOCONF@,$AUTOCONF,;t t
18682: s,@AUTOMAKE@,$AUTOMAKE,;t t
18683: s,@AUTOHEADER@,$AUTOHEADER,;t t
18684: s,@MAKEINFO@,$MAKEINFO,;t t
18685: s,@install_sh@,$install_sh,;t t
18686: s,@STRIP@,$STRIP,;t t
18687: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18688: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18689: s,@mkdir_p@,$mkdir_p,;t t
18690: s,@AWK@,$AWK,;t t
18691: s,@SET_MAKE@,$SET_MAKE,;t t
18692: s,@am__leading_dot@,$am__leading_dot,;t t
18693: s,@AMTAR@,$AMTAR,;t t
18694: s,@am__tar@,$am__tar,;t t
18695: s,@am__untar@,$am__untar,;t t
18696: s,@MYSQL_INC@,$MYSQL_INC,;t t
18697: s,@CXX@,$CXX,;t t
18698: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.39 ! moko 18699: s,@LDFLAGS@,$LDFLAGS,;t t
1.35 moko 18700: s,@CPPFLAGS@,$CPPFLAGS,;t t
18701: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18702: s,@EXEEXT@,$EXEEXT,;t t
18703: s,@OBJEXT@,$OBJEXT,;t t
18704: s,@DEPDIR@,$DEPDIR,;t t
18705: s,@am__include@,$am__include,;t t
18706: s,@am__quote@,$am__quote,;t t
18707: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18708: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18709: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18710: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18711: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18712: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18713: s,@CC@,$CC,;t t
18714: s,@CFLAGS@,$CFLAGS,;t t
18715: s,@ac_ct_CC@,$ac_ct_CC,;t t
18716: s,@CCDEPMODE@,$CCDEPMODE,;t t
18717: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18718: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.36 moko 18719: s,@AS@,$AS,;t t
18720: s,@ac_ct_AS@,$ac_ct_AS,;t t
18721: s,@DLLTOOL@,$DLLTOOL,;t t
18722: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18723: s,@OBJDUMP@,$OBJDUMP,;t t
18724: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.35 moko 18725: s,@LIBTOOL@,$LIBTOOL,;t t
18726: s,@build@,$build,;t t
18727: s,@build_cpu@,$build_cpu,;t t
18728: s,@build_vendor@,$build_vendor,;t t
18729: s,@build_os@,$build_os,;t t
18730: s,@host@,$host,;t t
18731: s,@host_cpu@,$host_cpu,;t t
18732: s,@host_vendor@,$host_vendor,;t t
18733: s,@host_os@,$host_os,;t t
18734: s,@SED@,$SED,;t t
18735: s,@EGREP@,$EGREP,;t t
18736: s,@FGREP@,$FGREP,;t t
18737: s,@GREP@,$GREP,;t t
18738: s,@LD@,$LD,;t t
18739: s,@DUMPBIN@,$DUMPBIN,;t t
18740: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18741: s,@NM@,$NM,;t t
18742: s,@LN_S@,$LN_S,;t t
18743: s,@AR@,$AR,;t t
18744: s,@ac_ct_AR@,$ac_ct_AR,;t t
18745: s,@RANLIB@,$RANLIB,;t t
18746: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18747: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18748: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18749: s,@DSYMUTIL@,$DSYMUTIL,;t t
18750: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18751: s,@NMEDIT@,$NMEDIT,;t t
18752: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18753: s,@LIPO@,$LIPO,;t t
18754: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18755: s,@OTOOL@,$OTOOL,;t t
18756: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18757: s,@OTOOL64@,$OTOOL64,;t t
18758: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18759: s,@CPP@,$CPP,;t t
18760: s,@CXXCPP@,$CXXCPP,;t t
18761: s,@LIBLTDL@,$LIBLTDL,;t t
18762: s,@LTDLDEPS@,$LTDLDEPS,;t t
18763: s,@LTDLINCL@,$LTDLINCL,;t t
18764: s,@INCLTDL@,$INCLTDL,;t t
18765: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18766: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18767: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18768: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18769: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.36 moko 18770: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.35 moko 18771: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18772: s,@ARGZ_H@,$ARGZ_H,;t t
18773: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18774: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18775: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18776: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18777: s,@subdirs@,$subdirs,;t t
18778: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18779: s,@LTDLOPEN@,$LTDLOPEN,;t t
18780: s,@LIBOBJS@,$LIBOBJS,;t t
18781: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18782: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18783: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18784: CEOF
18785:
18786: _ACEOF
18787:
18788: cat >>$CONFIG_STATUS <<\_ACEOF
18789: # Split the substitutions into bite-sized pieces for seds with
18790: # small command number limits, like on Digital OSF/1 and HP-UX.
18791: ac_max_sed_lines=48
18792: ac_sed_frag=1 # Number of current file.
18793: ac_beg=1 # First line for current file.
18794: ac_end=$ac_max_sed_lines # Line after last line for current file.
18795: ac_more_lines=:
18796: ac_sed_cmds=
18797: while $ac_more_lines; do
18798: if test $ac_beg -gt 1; then
18799: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18800: else
18801: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18802: fi
18803: if test ! -s $tmp/subs.frag; then
18804: ac_more_lines=false
18805: else
18806: # The purpose of the label and of the branching condition is to
18807: # speed up the sed processing (if there are no `@' at all, there
18808: # is no need to browse any of the substitutions).
18809: # These are the two extra sed commands mentioned above.
18810: (echo ':t
18811: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18812: if test -z "$ac_sed_cmds"; then
18813: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18814: else
18815: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18816: fi
18817: ac_sed_frag=`expr $ac_sed_frag + 1`
18818: ac_beg=$ac_end
18819: ac_end=`expr $ac_end + $ac_max_sed_lines`
18820: fi
18821: done
18822: if test -z "$ac_sed_cmds"; then
18823: ac_sed_cmds=cat
18824: fi
18825: fi # test -n "$CONFIG_FILES"
18826:
18827: _ACEOF
18828: cat >>$CONFIG_STATUS <<\_ACEOF
18829: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18830: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18831: case $ac_file in
18832: - | *:- | *:-:* ) # input from stdin
18833: cat >$tmp/stdin
18834: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18835: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18836: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18837: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18838: * ) ac_file_in=$ac_file.in ;;
18839: esac
18840:
18841: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18842: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18843: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18844: X"$ac_file" : 'X\(//\)[^/]' \| \
18845: X"$ac_file" : 'X\(//\)$' \| \
18846: X"$ac_file" : 'X\(/\)' \| \
18847: . : '\(.\)' 2>/dev/null ||
18848: echo X"$ac_file" |
18849: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18850: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18851: /^X\(\/\/\)$/{ s//\1/; q; }
18852: /^X\(\/\).*/{ s//\1/; q; }
18853: s/.*/./; q'`
18854: { if $as_mkdir_p; then
18855: mkdir -p "$ac_dir"
18856: else
18857: as_dir="$ac_dir"
18858: as_dirs=
18859: while test ! -d "$as_dir"; do
18860: as_dirs="$as_dir $as_dirs"
18861: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18862: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18863: X"$as_dir" : 'X\(//\)[^/]' \| \
18864: X"$as_dir" : 'X\(//\)$' \| \
18865: X"$as_dir" : 'X\(/\)' \| \
18866: . : '\(.\)' 2>/dev/null ||
18867: echo X"$as_dir" |
18868: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18869: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18870: /^X\(\/\/\)$/{ s//\1/; q; }
18871: /^X\(\/\).*/{ s//\1/; q; }
18872: s/.*/./; q'`
18873: done
18874: test ! -n "$as_dirs" || mkdir $as_dirs
18875: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18876: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18877: { (exit 1); exit 1; }; }; }
18878:
18879: ac_builddir=.
18880:
18881: if test "$ac_dir" != .; then
18882: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18883: # A "../" for each directory in $ac_dir_suffix.
18884: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18885: else
18886: ac_dir_suffix= ac_top_builddir=
18887: fi
18888:
18889: case $srcdir in
18890: .) # No --srcdir option. We are building in place.
18891: ac_srcdir=.
18892: if test -z "$ac_top_builddir"; then
18893: ac_top_srcdir=.
18894: else
18895: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18896: fi ;;
18897: [\\/]* | ?:[\\/]* ) # Absolute path.
18898: ac_srcdir=$srcdir$ac_dir_suffix;
18899: ac_top_srcdir=$srcdir ;;
18900: *) # Relative path.
18901: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18902: ac_top_srcdir=$ac_top_builddir$srcdir ;;
18903: esac
18904:
18905: # Do not use `cd foo && pwd` to compute absolute paths, because
18906: # the directories may not exist.
18907: case `pwd` in
18908: .) ac_abs_builddir="$ac_dir";;
18909: *)
18910: case "$ac_dir" in
18911: .) ac_abs_builddir=`pwd`;;
18912: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18913: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18914: esac;;
18915: esac
18916: case $ac_abs_builddir in
18917: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18918: *)
18919: case ${ac_top_builddir}. in
18920: .) ac_abs_top_builddir=$ac_abs_builddir;;
18921: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18922: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18923: esac;;
18924: esac
18925: case $ac_abs_builddir in
18926: .) ac_abs_srcdir=$ac_srcdir;;
18927: *)
18928: case $ac_srcdir in
18929: .) ac_abs_srcdir=$ac_abs_builddir;;
18930: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18931: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18932: esac;;
18933: esac
18934: case $ac_abs_builddir in
18935: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18936: *)
18937: case $ac_top_srcdir in
18938: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18939: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18940: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18941: esac;;
18942: esac
18943:
18944:
18945: case $INSTALL in
18946: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18947: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18948: esac
18949:
18950: if test x"$ac_file" != x-; then
18951: { echo "$as_me:$LINENO: creating $ac_file" >&5
18952: echo "$as_me: creating $ac_file" >&6;}
18953: rm -f "$ac_file"
18954: fi
18955: # Let's still pretend it is `configure' which instantiates (i.e., don't
18956: # use $as_me), people would be surprised to read:
18957: # /* config.h. Generated by config.status. */
18958: if test x"$ac_file" = x-; then
18959: configure_input=
18960: else
18961: configure_input="$ac_file. "
18962: fi
18963: configure_input=$configure_input"Generated from `echo $ac_file_in |
18964: sed 's,.*/,,'` by configure."
18965:
18966: # First look for the input files in the build tree, otherwise in the
18967: # src tree.
18968: ac_file_inputs=`IFS=:
18969: for f in $ac_file_in; do
18970: case $f in
18971: -) echo $tmp/stdin ;;
18972: [\\/$]*)
18973: # Absolute (can't be DOS-style, as IFS=:)
18974: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18975: echo "$as_me: error: cannot find input file: $f" >&2;}
18976: { (exit 1); exit 1; }; }
18977: echo "$f";;
18978: *) # Relative
18979: if test -f "$f"; then
18980: # Build tree
18981: echo "$f"
18982: elif test -f "$srcdir/$f"; then
18983: # Source tree
18984: echo "$srcdir/$f"
18985: else
18986: # /dev/null tree
18987: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18988: echo "$as_me: error: cannot find input file: $f" >&2;}
18989: { (exit 1); exit 1; }; }
18990: fi;;
18991: esac
18992: done` || { (exit 1); exit 1; }
18993: _ACEOF
18994: cat >>$CONFIG_STATUS <<_ACEOF
18995: sed "$ac_vpsub
18996: $extrasub
18997: _ACEOF
18998: cat >>$CONFIG_STATUS <<\_ACEOF
18999: :t
19000: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19001: s,@configure_input@,$configure_input,;t t
19002: s,@srcdir@,$ac_srcdir,;t t
19003: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19004: s,@top_srcdir@,$ac_top_srcdir,;t t
19005: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19006: s,@builddir@,$ac_builddir,;t t
19007: s,@abs_builddir@,$ac_abs_builddir,;t t
19008: s,@top_builddir@,$ac_top_builddir,;t t
19009: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19010: s,@INSTALL@,$ac_INSTALL,;t t
19011: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19012: rm -f $tmp/stdin
19013: if test x"$ac_file" != x-; then
19014: mv $tmp/out $ac_file
19015: else
19016: cat $tmp/out
19017: rm -f $tmp/out
19018: fi
19019:
19020: done
19021: _ACEOF
19022: cat >>$CONFIG_STATUS <<\_ACEOF
19023:
19024: #
19025: # CONFIG_HEADER section.
19026: #
19027:
19028: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19029: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19030: #
19031: # ac_d sets the value in "#define NAME VALUE" lines.
19032: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19033: ac_dB='[ ].*$,\1#\2'
19034: ac_dC=' '
19035: ac_dD=',;t'
19036: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19037: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19038: ac_uB='$,\1#\2define\3'
19039: ac_uC=' '
19040: ac_uD=',;t'
19041:
19042: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19043: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19044: case $ac_file in
19045: - | *:- | *:-:* ) # input from stdin
19046: cat >$tmp/stdin
19047: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19048: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19049: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19050: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19051: * ) ac_file_in=$ac_file.in ;;
19052: esac
19053:
19054: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19055: echo "$as_me: creating $ac_file" >&6;}
19056:
19057: # First look for the input files in the build tree, otherwise in the
19058: # src tree.
19059: ac_file_inputs=`IFS=:
19060: for f in $ac_file_in; do
19061: case $f in
19062: -) echo $tmp/stdin ;;
19063: [\\/$]*)
19064: # Absolute (can't be DOS-style, as IFS=:)
19065: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19066: echo "$as_me: error: cannot find input file: $f" >&2;}
19067: { (exit 1); exit 1; }; }
19068: # Do quote $f, to prevent DOS paths from being IFS'd.
19069: echo "$f";;
19070: *) # Relative
19071: if test -f "$f"; then
19072: # Build tree
19073: echo "$f"
19074: elif test -f "$srcdir/$f"; then
19075: # Source tree
19076: echo "$srcdir/$f"
19077: else
19078: # /dev/null tree
19079: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19080: echo "$as_me: error: cannot find input file: $f" >&2;}
19081: { (exit 1); exit 1; }; }
19082: fi;;
19083: esac
19084: done` || { (exit 1); exit 1; }
19085: # Remove the trailing spaces.
19086: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19087:
19088: _ACEOF
19089:
19090: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19091: # `conftest.undefs', that substitutes the proper values into
19092: # config.h.in to produce config.h. The first handles `#define'
19093: # templates, and the second `#undef' templates.
19094: # And first: Protect against being on the right side of a sed subst in
19095: # config.status. Protect against being in an unquoted here document
19096: # in config.status.
19097: rm -f conftest.defines conftest.undefs
19098: # Using a here document instead of a string reduces the quoting nightmare.
19099: # Putting comments in sed scripts is not portable.
19100: #
19101: # `end' is used to avoid that the second main sed command (meant for
19102: # 0-ary CPP macros) applies to n-ary macro definitions.
19103: # See the Autoconf documentation for `clear'.
19104: cat >confdef2sed.sed <<\_ACEOF
19105: s/[\\&,]/\\&/g
19106: s,[\\$`],\\&,g
19107: t clear
19108: : clear
19109: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19110: t end
19111: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19112: : end
19113: _ACEOF
19114: # If some macros were called several times there might be several times
19115: # the same #defines, which is useless. Nevertheless, we may not want to
19116: # sort them, since we want the *last* AC-DEFINE to be honored.
19117: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19118: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19119: rm -f confdef2sed.sed
19120:
19121: # This sed command replaces #undef with comments. This is necessary, for
19122: # example, in the case of _POSIX_SOURCE, which is predefined and required
19123: # on some systems where configure will not decide to define it.
19124: cat >>conftest.undefs <<\_ACEOF
19125: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19126: _ACEOF
19127:
19128: # Break up conftest.defines because some shells have a limit on the size
19129: # of here documents, and old seds have small limits too (100 cmds).
19130: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19131: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19132: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19133: echo ' :' >>$CONFIG_STATUS
19134: rm -f conftest.tail
19135: while grep . conftest.defines >/dev/null
19136: do
19137: # Write a limited-size here document to $tmp/defines.sed.
19138: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19139: # Speed up: don't consider the non `#define' lines.
19140: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19141: # Work around the forget-to-reset-the-flag bug.
19142: echo 't clr' >>$CONFIG_STATUS
19143: echo ': clr' >>$CONFIG_STATUS
19144: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19145: echo 'CEOF
19146: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19147: rm -f $tmp/in
19148: mv $tmp/out $tmp/in
19149: ' >>$CONFIG_STATUS
19150: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19151: rm -f conftest.defines
19152: mv conftest.tail conftest.defines
19153: done
19154: rm -f conftest.defines
19155: echo ' fi # grep' >>$CONFIG_STATUS
19156: echo >>$CONFIG_STATUS
19157:
19158: # Break up conftest.undefs because some shells have a limit on the size
19159: # of here documents, and old seds have small limits too (100 cmds).
19160: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19161: rm -f conftest.tail
19162: while grep . conftest.undefs >/dev/null
19163: do
19164: # Write a limited-size here document to $tmp/undefs.sed.
19165: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19166: # Speed up: don't consider the non `#undef'
19167: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19168: # Work around the forget-to-reset-the-flag bug.
19169: echo 't clr' >>$CONFIG_STATUS
19170: echo ': clr' >>$CONFIG_STATUS
19171: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19172: echo 'CEOF
19173: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19174: rm -f $tmp/in
19175: mv $tmp/out $tmp/in
19176: ' >>$CONFIG_STATUS
19177: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19178: rm -f conftest.undefs
19179: mv conftest.tail conftest.undefs
19180: done
19181: rm -f conftest.undefs
19182:
19183: cat >>$CONFIG_STATUS <<\_ACEOF
19184: # Let's still pretend it is `configure' which instantiates (i.e., don't
19185: # use $as_me), people would be surprised to read:
19186: # /* config.h. Generated by config.status. */
19187: if test x"$ac_file" = x-; then
19188: echo "/* Generated by configure. */" >$tmp/config.h
19189: else
19190: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19191: fi
19192: cat $tmp/in >>$tmp/config.h
19193: rm -f $tmp/in
19194: if test x"$ac_file" != x-; then
19195: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19196: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19197: echo "$as_me: $ac_file is unchanged" >&6;}
19198: else
19199: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19200: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19201: X"$ac_file" : 'X\(//\)[^/]' \| \
19202: X"$ac_file" : 'X\(//\)$' \| \
19203: X"$ac_file" : 'X\(/\)' \| \
19204: . : '\(.\)' 2>/dev/null ||
19205: echo X"$ac_file" |
19206: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19207: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19208: /^X\(\/\/\)$/{ s//\1/; q; }
19209: /^X\(\/\).*/{ s//\1/; q; }
19210: s/.*/./; q'`
19211: { if $as_mkdir_p; then
19212: mkdir -p "$ac_dir"
19213: else
19214: as_dir="$ac_dir"
19215: as_dirs=
19216: while test ! -d "$as_dir"; do
19217: as_dirs="$as_dir $as_dirs"
19218: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19219: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19220: X"$as_dir" : 'X\(//\)[^/]' \| \
19221: X"$as_dir" : 'X\(//\)$' \| \
19222: X"$as_dir" : 'X\(/\)' \| \
19223: . : '\(.\)' 2>/dev/null ||
19224: echo X"$as_dir" |
19225: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19226: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19227: /^X\(\/\/\)$/{ s//\1/; q; }
19228: /^X\(\/\).*/{ s//\1/; q; }
19229: s/.*/./; q'`
19230: done
19231: test ! -n "$as_dirs" || mkdir $as_dirs
19232: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19233: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19234: { (exit 1); exit 1; }; }; }
19235:
19236: rm -f $ac_file
19237: mv $tmp/config.h $ac_file
19238: fi
19239: else
19240: cat $tmp/config.h
19241: rm -f $tmp/config.h
19242: fi
19243: # Compute $ac_file's index in $config_headers.
19244: _am_stamp_count=1
19245: for _am_header in $config_headers :; do
19246: case $_am_header in
19247: $ac_file | $ac_file:* )
19248: break ;;
19249: * )
19250: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19251: esac
19252: done
19253: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19254: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19255: X$ac_file : 'X\(//\)[^/]' \| \
19256: X$ac_file : 'X\(//\)$' \| \
19257: X$ac_file : 'X\(/\)' \| \
19258: . : '\(.\)' 2>/dev/null ||
19259: echo X$ac_file |
19260: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19261: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19262: /^X\(\/\/\)$/{ s//\1/; q; }
19263: /^X\(\/\).*/{ s//\1/; q; }
19264: s/.*/./; q'`/stamp-h$_am_stamp_count
19265: done
19266: _ACEOF
19267: cat >>$CONFIG_STATUS <<\_ACEOF
19268:
19269: #
19270: # CONFIG_COMMANDS section.
19271: #
19272: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19273: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19274: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19275: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19276: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19277: X"$ac_dest" : 'X\(//\)[^/]' \| \
19278: X"$ac_dest" : 'X\(//\)$' \| \
19279: X"$ac_dest" : 'X\(/\)' \| \
19280: . : '\(.\)' 2>/dev/null ||
19281: echo X"$ac_dest" |
19282: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19283: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19284: /^X\(\/\/\)$/{ s//\1/; q; }
19285: /^X\(\/\).*/{ s//\1/; q; }
19286: s/.*/./; q'`
19287: { if $as_mkdir_p; then
19288: mkdir -p "$ac_dir"
19289: else
19290: as_dir="$ac_dir"
19291: as_dirs=
19292: while test ! -d "$as_dir"; do
19293: as_dirs="$as_dir $as_dirs"
19294: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19295: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19296: X"$as_dir" : 'X\(//\)[^/]' \| \
19297: X"$as_dir" : 'X\(//\)$' \| \
19298: X"$as_dir" : 'X\(/\)' \| \
19299: . : '\(.\)' 2>/dev/null ||
19300: echo X"$as_dir" |
19301: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19302: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19303: /^X\(\/\/\)$/{ s//\1/; q; }
19304: /^X\(\/\).*/{ s//\1/; q; }
19305: s/.*/./; q'`
19306: done
19307: test ! -n "$as_dirs" || mkdir $as_dirs
19308: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19309: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19310: { (exit 1); exit 1; }; }; }
19311:
19312: ac_builddir=.
19313:
19314: if test "$ac_dir" != .; then
19315: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19316: # A "../" for each directory in $ac_dir_suffix.
19317: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19318: else
19319: ac_dir_suffix= ac_top_builddir=
19320: fi
19321:
19322: case $srcdir in
19323: .) # No --srcdir option. We are building in place.
19324: ac_srcdir=.
19325: if test -z "$ac_top_builddir"; then
19326: ac_top_srcdir=.
19327: else
19328: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19329: fi ;;
19330: [\\/]* | ?:[\\/]* ) # Absolute path.
19331: ac_srcdir=$srcdir$ac_dir_suffix;
19332: ac_top_srcdir=$srcdir ;;
19333: *) # Relative path.
19334: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19335: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19336: esac
19337:
19338: # Do not use `cd foo && pwd` to compute absolute paths, because
19339: # the directories may not exist.
19340: case `pwd` in
19341: .) ac_abs_builddir="$ac_dir";;
19342: *)
19343: case "$ac_dir" in
19344: .) ac_abs_builddir=`pwd`;;
19345: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19346: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19347: esac;;
19348: esac
19349: case $ac_abs_builddir in
19350: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19351: *)
19352: case ${ac_top_builddir}. in
19353: .) ac_abs_top_builddir=$ac_abs_builddir;;
19354: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19355: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19356: esac;;
19357: esac
19358: case $ac_abs_builddir in
19359: .) ac_abs_srcdir=$ac_srcdir;;
19360: *)
19361: case $ac_srcdir in
19362: .) ac_abs_srcdir=$ac_abs_builddir;;
19363: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19364: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19365: esac;;
19366: esac
19367: case $ac_abs_builddir in
19368: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19369: *)
19370: case $ac_top_srcdir in
19371: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19372: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19373: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19374: esac;;
19375: esac
19376:
19377:
19378: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19379: echo "$as_me: executing $ac_dest commands" >&6;}
19380: case $ac_dest in
19381: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19382: # Strip MF so we end up with the name of the file.
19383: mf=`echo "$mf" | sed -e 's/:.*$//'`
19384: # Check whether this is an Automake generated Makefile or not.
19385: # We used to match only the files named `Makefile.in', but
19386: # some people rename them; so instead we look at the file content.
19387: # Grep'ing the first line is not enough: some people post-process
19388: # each Makefile.in and add a new line on top of each file to say so.
19389: # So let's grep whole file.
19390: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19391: dirpart=`(dirname "$mf") 2>/dev/null ||
19392: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19393: X"$mf" : 'X\(//\)[^/]' \| \
19394: X"$mf" : 'X\(//\)$' \| \
19395: X"$mf" : 'X\(/\)' \| \
19396: . : '\(.\)' 2>/dev/null ||
19397: echo X"$mf" |
19398: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19399: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19400: /^X\(\/\/\)$/{ s//\1/; q; }
19401: /^X\(\/\).*/{ s//\1/; q; }
19402: s/.*/./; q'`
19403: else
19404: continue
19405: fi
19406: # Extract the definition of DEPDIR, am__include, and am__quote
19407: # from the Makefile without running `make'.
19408: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19409: test -z "$DEPDIR" && continue
19410: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19411: test -z "am__include" && continue
19412: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19413: # When using ansi2knr, U may be empty or an underscore; expand it
19414: U=`sed -n 's/^U = //p' < "$mf"`
19415: # Find all dependency output files, they are included files with
19416: # $(DEPDIR) in their names. We invoke sed twice because it is the
19417: # simplest approach to changing $(DEPDIR) to its actual value in the
19418: # expansion.
19419: for file in `sed -n "
19420: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19421: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19422: # Make sure the directory exists.
19423: test -f "$dirpart/$file" && continue
19424: fdir=`(dirname "$file") 2>/dev/null ||
19425: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19426: X"$file" : 'X\(//\)[^/]' \| \
19427: X"$file" : 'X\(//\)$' \| \
19428: X"$file" : 'X\(/\)' \| \
19429: . : '\(.\)' 2>/dev/null ||
19430: echo X"$file" |
19431: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19432: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19433: /^X\(\/\/\)$/{ s//\1/; q; }
19434: /^X\(\/\).*/{ s//\1/; q; }
19435: s/.*/./; q'`
19436: { if $as_mkdir_p; then
19437: mkdir -p $dirpart/$fdir
19438: else
19439: as_dir=$dirpart/$fdir
19440: as_dirs=
19441: while test ! -d "$as_dir"; do
19442: as_dirs="$as_dir $as_dirs"
19443: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19444: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19445: X"$as_dir" : 'X\(//\)[^/]' \| \
19446: X"$as_dir" : 'X\(//\)$' \| \
19447: X"$as_dir" : 'X\(/\)' \| \
19448: . : '\(.\)' 2>/dev/null ||
19449: echo X"$as_dir" |
19450: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19451: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19452: /^X\(\/\/\)$/{ s//\1/; q; }
19453: /^X\(\/\).*/{ s//\1/; q; }
19454: s/.*/./; q'`
19455: done
19456: test ! -n "$as_dirs" || mkdir $as_dirs
19457: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19458: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19459: { (exit 1); exit 1; }; }; }
19460:
19461: # echo "creating $dirpart/$file"
19462: echo '# dummy' > "$dirpart/$file"
19463: done
19464: done
19465: ;;
19466: libtool )
19467:
19468: # See if we are running on zsh, and set the options which allow our
19469: # commands through without removal of \ escapes.
19470: if test -n "${ZSH_VERSION+set}" ; then
19471: setopt NO_GLOB_SUBST
19472: fi
19473:
19474: cfgfile="${ofile}T"
19475: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19476: $RM "$cfgfile"
19477:
19478: cat <<_LT_EOF >> "$cfgfile"
19479: #! $SHELL
19480:
19481: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19482: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19483: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19484: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19485: #
19486: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19487: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19488: # Foundation, Inc.
19489: # Written by Gordon Matzigkeit, 1996
19490: #
19491: # This file is part of GNU Libtool.
19492: #
19493: # GNU Libtool is free software; you can redistribute it and/or
19494: # modify it under the terms of the GNU General Public License as
19495: # published by the Free Software Foundation; either version 2 of
19496: # the License, or (at your option) any later version.
19497: #
19498: # As a special exception to the GNU General Public License,
19499: # if you distribute this file as part of a program or library that
19500: # is built using GNU Libtool, you may include this file under the
19501: # same distribution terms that you use for the rest of that program.
19502: #
19503: # GNU Libtool is distributed in the hope that it will be useful,
19504: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19505: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19506: # GNU General Public License for more details.
19507: #
19508: # You should have received a copy of the GNU General Public License
19509: # along with GNU Libtool; see the file COPYING. If not, a copy
19510: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19511: # obtained by writing to the Free Software Foundation, Inc.,
19512: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19513:
19514:
19515: # The names of the tagged configurations supported by this script.
19516: available_tags="CXX "
19517:
19518: # ### BEGIN LIBTOOL CONFIG
19519:
19520: # Which release of libtool.m4 was used?
19521: macro_version=$macro_version
19522: macro_revision=$macro_revision
19523:
1.36 moko 19524: # Assembler program.
19525: AS=$lt_AS
19526:
19527: # DLL creation program.
19528: DLLTOOL=$lt_DLLTOOL
19529:
19530: # Object dumper program.
19531: OBJDUMP=$lt_OBJDUMP
19532:
1.35 moko 19533: # Whether or not to build shared libraries.
19534: build_libtool_libs=$enable_shared
19535:
19536: # Whether or not to build static libraries.
19537: build_old_libs=$enable_static
19538:
19539: # What type of objects to build.
19540: pic_mode=$pic_mode
19541:
19542: # Whether or not to optimize for fast installation.
19543: fast_install=$enable_fast_install
19544:
19545: # Shell to use when invoking shell scripts.
19546: SHELL=$lt_SHELL
19547:
19548: # An echo program that protects backslashes.
19549: ECHO=$lt_ECHO
19550:
19551: # The PATH separator for the build system.
19552: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19553:
19554: # The host system.
19555: host_alias=$host_alias
19556: host=$host
19557: host_os=$host_os
19558:
19559: # The build system.
19560: build_alias=$build_alias
19561: build=$build
19562: build_os=$build_os
19563:
19564: # A sed program that does not truncate output.
19565: SED=$lt_SED
19566:
19567: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19568: Xsed="\$SED -e 1s/^X//"
19569:
19570: # A grep program that handles long lines.
19571: GREP=$lt_GREP
19572:
19573: # An ERE matcher.
19574: EGREP=$lt_EGREP
19575:
19576: # A literal string matcher.
19577: FGREP=$lt_FGREP
19578:
19579: # A BSD- or MS-compatible name lister.
19580: NM=$lt_NM
19581:
19582: # Whether we need soft or hard links.
19583: LN_S=$lt_LN_S
19584:
19585: # What is the maximum length of a command?
19586: max_cmd_len=$max_cmd_len
19587:
19588: # Object file suffix (normally "o").
19589: objext=$ac_objext
19590:
19591: # Executable file suffix (normally "").
19592: exeext=$exeext
19593:
19594: # whether the shell understands "unset".
19595: lt_unset=$lt_unset
19596:
19597: # turn spaces into newlines.
19598: SP2NL=$lt_lt_SP2NL
19599:
19600: # turn newlines into spaces.
19601: NL2SP=$lt_lt_NL2SP
19602:
19603: # convert \$build file names to \$host format.
19604: to_host_file_cmd=$lt_cv_to_host_file_cmd
19605:
19606: # convert \$build files to toolchain format.
19607: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19608:
19609: # Method to check whether dependent libraries are shared objects.
19610: deplibs_check_method=$lt_deplibs_check_method
19611:
19612: # Command to use when deplibs_check_method = "file_magic".
19613: file_magic_cmd=$lt_file_magic_cmd
19614:
19615: # How to find potential files when deplibs_check_method = "file_magic".
19616: file_magic_glob=$lt_file_magic_glob
19617:
19618: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19619: want_nocaseglob=$lt_want_nocaseglob
19620:
19621: # Command to associate shared and link libraries.
19622: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19623:
19624: # The archiver.
19625: AR=$lt_AR
19626:
19627: # Flags to create an archive.
19628: AR_FLAGS=$lt_AR_FLAGS
19629:
19630: # How to feed a file listing to the archiver.
19631: archiver_list_spec=$lt_archiver_list_spec
19632:
19633: # A symbol stripping program.
19634: STRIP=$lt_STRIP
19635:
19636: # Commands used to install an old-style archive.
19637: RANLIB=$lt_RANLIB
19638: old_postinstall_cmds=$lt_old_postinstall_cmds
19639: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19640:
19641: # Whether to use a lock for old archive extraction.
19642: lock_old_archive_extraction=$lock_old_archive_extraction
19643:
19644: # A C compiler.
19645: LTCC=$lt_CC
19646:
19647: # LTCC compiler flags.
19648: LTCFLAGS=$lt_CFLAGS
19649:
19650: # Take the output of nm and produce a listing of raw symbols and C names.
19651: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19652:
19653: # Transform the output of nm in a proper C declaration.
19654: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19655:
19656: # Transform the output of nm in a C name address pair.
19657: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19658:
19659: # Transform the output of nm in a C name address pair when lib prefix is needed.
19660: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19661:
19662: # Specify filename containing input files for \$NM.
19663: nm_file_list_spec=$lt_nm_file_list_spec
19664:
19665: # The root where to search for dependent libraries,and in which our libraries should be installed.
19666: lt_sysroot=$lt_sysroot
19667:
19668: # The name of the directory that contains temporary libtool files.
19669: objdir=$objdir
19670:
19671: # Used to examine libraries when file_magic_cmd begins with "file".
19672: MAGIC_CMD=$MAGIC_CMD
19673:
19674: # Must we lock files when doing compilation?
19675: need_locks=$lt_need_locks
19676:
19677: # Manifest tool.
19678: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19679:
19680: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19681: DSYMUTIL=$lt_DSYMUTIL
19682:
19683: # Tool to change global to local symbols on Mac OS X.
19684: NMEDIT=$lt_NMEDIT
19685:
19686: # Tool to manipulate fat objects and archives on Mac OS X.
19687: LIPO=$lt_LIPO
19688:
19689: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19690: OTOOL=$lt_OTOOL
19691:
19692: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19693: OTOOL64=$lt_OTOOL64
19694:
19695: # Old archive suffix (normally "a").
19696: libext=$libext
19697:
19698: # Shared library suffix (normally ".so").
19699: shrext_cmds=$lt_shrext_cmds
19700:
19701: # The commands to extract the exported symbol list from a shared archive.
19702: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19703:
19704: # Variables whose values should be saved in libtool wrapper scripts and
19705: # restored at link time.
19706: variables_saved_for_relink=$lt_variables_saved_for_relink
19707:
19708: # Do we need the "lib" prefix for modules?
19709: need_lib_prefix=$need_lib_prefix
19710:
19711: # Do we need a version for libraries?
19712: need_version=$need_version
19713:
19714: # Library versioning type.
19715: version_type=$version_type
19716:
19717: # Shared library runtime path variable.
19718: runpath_var=$runpath_var
19719:
19720: # Shared library path variable.
19721: shlibpath_var=$shlibpath_var
19722:
19723: # Is shlibpath searched before the hard-coded library search path?
19724: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19725:
19726: # Format of library name prefix.
19727: libname_spec=$lt_libname_spec
19728:
19729: # List of archive names. First name is the real one, the rest are links.
19730: # The last name is the one that the linker finds with -lNAME
19731: library_names_spec=$lt_library_names_spec
19732:
19733: # The coded name of the library, if different from the real name.
19734: soname_spec=$lt_soname_spec
19735:
19736: # Permission mode override for installation of shared libraries.
19737: install_override_mode=$lt_install_override_mode
19738:
19739: # Command to use after installation of a shared archive.
19740: postinstall_cmds=$lt_postinstall_cmds
19741:
19742: # Command to use after uninstallation of a shared archive.
19743: postuninstall_cmds=$lt_postuninstall_cmds
19744:
19745: # Commands used to finish a libtool library installation in a directory.
19746: finish_cmds=$lt_finish_cmds
19747:
19748: # As "finish_cmds", except a single script fragment to be evaled but
19749: # not shown.
19750: finish_eval=$lt_finish_eval
19751:
19752: # Whether we should hardcode library paths into libraries.
19753: hardcode_into_libs=$hardcode_into_libs
19754:
19755: # Compile-time system search path for libraries.
19756: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19757:
19758: # Run-time system search path for libraries.
19759: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19760:
19761: # Whether dlopen is supported.
19762: dlopen_support=$enable_dlopen
19763:
19764: # Whether dlopen of programs is supported.
19765: dlopen_self=$enable_dlopen_self
19766:
19767: # Whether dlopen of statically linked programs is supported.
19768: dlopen_self_static=$enable_dlopen_self_static
19769:
19770: # Commands to strip libraries.
19771: old_striplib=$lt_old_striplib
19772: striplib=$lt_striplib
19773:
19774:
19775: # The linker used to build libraries.
19776: LD=$lt_LD
19777:
19778: # How to create reloadable object files.
19779: reload_flag=$lt_reload_flag
19780: reload_cmds=$lt_reload_cmds
19781:
19782: # Commands used to build an old-style archive.
19783: old_archive_cmds=$lt_old_archive_cmds
19784:
19785: # A language specific compiler.
19786: CC=$lt_compiler
19787:
19788: # Is the compiler the GNU compiler?
19789: with_gcc=$GCC
19790:
19791: # Compiler flag to turn off builtin functions.
19792: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19793:
19794: # Additional compiler flags for building library objects.
19795: pic_flag=$lt_lt_prog_compiler_pic
19796:
19797: # How to pass a linker flag through the compiler.
19798: wl=$lt_lt_prog_compiler_wl
19799:
19800: # Compiler flag to prevent dynamic linking.
19801: link_static_flag=$lt_lt_prog_compiler_static
19802:
19803: # Does compiler simultaneously support -c and -o options?
19804: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19805:
19806: # Whether or not to add -lc for building shared libraries.
19807: build_libtool_need_lc=$archive_cmds_need_lc
19808:
19809: # Whether or not to disallow shared libs when runtime libs are static.
19810: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19811:
19812: # Compiler flag to allow reflexive dlopens.
19813: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19814:
19815: # Compiler flag to generate shared objects directly from archives.
19816: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19817:
19818: # Whether the compiler copes with passing no objects directly.
19819: compiler_needs_object=$lt_compiler_needs_object
19820:
19821: # Create an old-style archive from a shared archive.
19822: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19823:
19824: # Create a temporary old-style archive to link instead of a shared archive.
19825: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19826:
19827: # Commands used to build a shared archive.
19828: archive_cmds=$lt_archive_cmds
19829: archive_expsym_cmds=$lt_archive_expsym_cmds
19830:
19831: # Commands used to build a loadable module if different from building
19832: # a shared archive.
19833: module_cmds=$lt_module_cmds
19834: module_expsym_cmds=$lt_module_expsym_cmds
19835:
19836: # Whether we are building with GNU ld or not.
19837: with_gnu_ld=$lt_with_gnu_ld
19838:
19839: # Flag that allows shared libraries with undefined symbols to be built.
19840: allow_undefined_flag=$lt_allow_undefined_flag
19841:
19842: # Flag that enforces no undefined symbols.
19843: no_undefined_flag=$lt_no_undefined_flag
19844:
19845: # Flag to hardcode \$libdir into a binary during linking.
19846: # This must work even if \$libdir does not exist
19847: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19848:
19849: # Whether we need a single "-rpath" flag with a separated argument.
19850: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19851:
19852: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19853: # DIR into the resulting binary.
19854: hardcode_direct=$hardcode_direct
19855:
19856: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19857: # DIR into the resulting binary and the resulting library dependency is
19858: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19859: # library is relocated.
19860: hardcode_direct_absolute=$hardcode_direct_absolute
19861:
19862: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19863: # into the resulting binary.
19864: hardcode_minus_L=$hardcode_minus_L
19865:
19866: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19867: # into the resulting binary.
19868: hardcode_shlibpath_var=$hardcode_shlibpath_var
19869:
19870: # Set to "yes" if building a shared library automatically hardcodes DIR
19871: # into the library and all subsequent libraries and executables linked
19872: # against it.
19873: hardcode_automatic=$hardcode_automatic
19874:
19875: # Set to yes if linker adds runtime paths of dependent libraries
19876: # to runtime path list.
19877: inherit_rpath=$inherit_rpath
19878:
19879: # Whether libtool must link a program against all its dependency libraries.
19880: link_all_deplibs=$link_all_deplibs
19881:
19882: # Set to "yes" if exported symbols are required.
19883: always_export_symbols=$always_export_symbols
19884:
19885: # The commands to list exported symbols.
19886: export_symbols_cmds=$lt_export_symbols_cmds
19887:
19888: # Symbols that should not be listed in the preloaded symbols.
19889: exclude_expsyms=$lt_exclude_expsyms
19890:
19891: # Symbols that must always be exported.
19892: include_expsyms=$lt_include_expsyms
19893:
19894: # Commands necessary for linking programs (against libraries) with templates.
19895: prelink_cmds=$lt_prelink_cmds
19896:
19897: # Commands necessary for finishing linking programs.
19898: postlink_cmds=$lt_postlink_cmds
19899:
19900: # Specify filename containing input files.
19901: file_list_spec=$lt_file_list_spec
19902:
19903: # How to hardcode a shared library path into an executable.
19904: hardcode_action=$hardcode_action
19905:
19906: # The directories searched by this compiler when creating a shared library.
19907: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19908:
19909: # Dependencies to place before and after the objects being linked to
19910: # create a shared library.
19911: predep_objects=$lt_predep_objects
19912: postdep_objects=$lt_postdep_objects
19913: predeps=$lt_predeps
19914: postdeps=$lt_postdeps
19915:
19916: # The library search path used internally by the compiler when linking
19917: # a shared library.
19918: compiler_lib_search_path=$lt_compiler_lib_search_path
19919:
19920: # ### END LIBTOOL CONFIG
19921:
19922: _LT_EOF
19923:
19924: case $host_os in
19925: aix3*)
19926: cat <<\_LT_EOF >> "$cfgfile"
19927: # AIX sometimes has problems with the GCC collect2 program. For some
19928: # reason, if we set the COLLECT_NAMES environment variable, the problems
19929: # vanish in a puff of smoke.
19930: if test "X${COLLECT_NAMES+set}" != Xset; then
19931: COLLECT_NAMES=
19932: export COLLECT_NAMES
19933: fi
19934: _LT_EOF
19935: ;;
19936: esac
19937:
19938:
19939: ltmain="$ac_aux_dir/ltmain.sh"
19940:
19941:
19942: # We use sed instead of cat because bash on DJGPP gets confused if
19943: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19944: # text mode, it properly converts lines to CR/LF. This bash problem
19945: # is reportedly fixed, but why not run on old versions too?
19946: sed '$q' "$ltmain" >> "$cfgfile" \
19947: || (rm -f "$cfgfile"; exit 1)
19948:
19949: if test x"$xsi_shell" = xyes; then
19950: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19951: func_dirname ()\
19952: {\
19953: \ case ${1} in\
19954: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19955: \ * ) func_dirname_result="${3}" ;;\
19956: \ esac\
19957: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19958: && mv -f "$cfgfile.tmp" "$cfgfile" \
19959: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19960: test 0 -eq $? || _lt_function_replace_fail=:
19961:
19962:
19963: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19964: func_basename ()\
19965: {\
19966: \ func_basename_result="${1##*/}"\
19967: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19968: && mv -f "$cfgfile.tmp" "$cfgfile" \
19969: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19970: test 0 -eq $? || _lt_function_replace_fail=:
19971:
19972:
19973: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19974: func_dirname_and_basename ()\
19975: {\
19976: \ case ${1} in\
19977: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19978: \ * ) func_dirname_result="${3}" ;;\
19979: \ esac\
19980: \ func_basename_result="${1##*/}"\
19981: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19982: && mv -f "$cfgfile.tmp" "$cfgfile" \
19983: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19984: test 0 -eq $? || _lt_function_replace_fail=:
19985:
19986:
19987: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19988: func_stripname ()\
19989: {\
19990: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19991: \ # positional parameters, so assign one to ordinary parameter first.\
19992: \ func_stripname_result=${3}\
19993: \ func_stripname_result=${func_stripname_result#"${1}"}\
19994: \ func_stripname_result=${func_stripname_result%"${2}"}\
19995: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19996: && mv -f "$cfgfile.tmp" "$cfgfile" \
19997: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19998: test 0 -eq $? || _lt_function_replace_fail=:
19999:
20000:
20001: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20002: func_split_long_opt ()\
20003: {\
20004: \ func_split_long_opt_name=${1%%=*}\
20005: \ func_split_long_opt_arg=${1#*=}\
20006: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20007: && mv -f "$cfgfile.tmp" "$cfgfile" \
20008: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20009: test 0 -eq $? || _lt_function_replace_fail=:
20010:
20011:
20012: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20013: func_split_short_opt ()\
20014: {\
20015: \ func_split_short_opt_arg=${1#??}\
20016: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20017: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20018: && mv -f "$cfgfile.tmp" "$cfgfile" \
20019: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20020: test 0 -eq $? || _lt_function_replace_fail=:
20021:
20022:
20023: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20024: func_lo2o ()\
20025: {\
20026: \ case ${1} in\
20027: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20028: \ *) func_lo2o_result=${1} ;;\
20029: \ esac\
20030: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20031: && mv -f "$cfgfile.tmp" "$cfgfile" \
20032: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20033: test 0 -eq $? || _lt_function_replace_fail=:
20034:
20035:
20036: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20037: func_xform ()\
20038: {\
20039: func_xform_result=${1%.*}.lo\
20040: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20041: && mv -f "$cfgfile.tmp" "$cfgfile" \
20042: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20043: test 0 -eq $? || _lt_function_replace_fail=:
20044:
20045:
20046: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20047: func_arith ()\
20048: {\
20049: func_arith_result=$(( $* ))\
20050: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20051: && mv -f "$cfgfile.tmp" "$cfgfile" \
20052: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20053: test 0 -eq $? || _lt_function_replace_fail=:
20054:
20055:
20056: sed -e '/^func_len ()$/,/^} # func_len /c\
20057: func_len ()\
20058: {\
20059: func_len_result=${#1}\
20060: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20061: && mv -f "$cfgfile.tmp" "$cfgfile" \
20062: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20063: test 0 -eq $? || _lt_function_replace_fail=:
20064:
20065: fi
20066:
20067: if test x"$lt_shell_append" = xyes; then
20068: sed -e '/^func_append ()$/,/^} # func_append /c\
20069: func_append ()\
20070: {\
20071: eval "${1}+=\\${2}"\
20072: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20073: && mv -f "$cfgfile.tmp" "$cfgfile" \
20074: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20075: test 0 -eq $? || _lt_function_replace_fail=:
20076:
20077:
20078: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20079: func_append_quoted ()\
20080: {\
20081: \ func_quote_for_eval "${2}"\
20082: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20083: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20084: && mv -f "$cfgfile.tmp" "$cfgfile" \
20085: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20086: test 0 -eq $? || _lt_function_replace_fail=:
20087:
20088:
20089: # Save a `func_append' function call where possible by direct use of '+='
20090: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20091: && mv -f "$cfgfile.tmp" "$cfgfile" \
20092: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20093: test 0 -eq $? || _lt_function_replace_fail=:
20094: else
20095: # Save a `func_append' function call even when '+=' is not available
20096: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20097: && mv -f "$cfgfile.tmp" "$cfgfile" \
20098: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20099: test 0 -eq $? || _lt_function_replace_fail=:
20100: fi
20101:
20102: if test x"$_lt_function_replace_fail" = x":"; then
20103: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20104: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20105: fi
20106:
20107:
20108: mv -f "$cfgfile" "$ofile" ||
20109: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20110: chmod +x "$ofile"
20111:
20112:
20113: cat <<_LT_EOF >> "$ofile"
20114:
20115: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20116:
20117: # The linker used to build libraries.
20118: LD=$lt_LD_CXX
20119:
20120: # How to create reloadable object files.
20121: reload_flag=$lt_reload_flag_CXX
20122: reload_cmds=$lt_reload_cmds_CXX
20123:
20124: # Commands used to build an old-style archive.
20125: old_archive_cmds=$lt_old_archive_cmds_CXX
20126:
20127: # A language specific compiler.
20128: CC=$lt_compiler_CXX
20129:
20130: # Is the compiler the GNU compiler?
20131: with_gcc=$GCC_CXX
20132:
20133: # Compiler flag to turn off builtin functions.
20134: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20135:
20136: # Additional compiler flags for building library objects.
20137: pic_flag=$lt_lt_prog_compiler_pic_CXX
20138:
20139: # How to pass a linker flag through the compiler.
20140: wl=$lt_lt_prog_compiler_wl_CXX
20141:
20142: # Compiler flag to prevent dynamic linking.
20143: link_static_flag=$lt_lt_prog_compiler_static_CXX
20144:
20145: # Does compiler simultaneously support -c and -o options?
20146: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20147:
20148: # Whether or not to add -lc for building shared libraries.
20149: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20150:
20151: # Whether or not to disallow shared libs when runtime libs are static.
20152: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20153:
20154: # Compiler flag to allow reflexive dlopens.
20155: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20156:
20157: # Compiler flag to generate shared objects directly from archives.
20158: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20159:
20160: # Whether the compiler copes with passing no objects directly.
20161: compiler_needs_object=$lt_compiler_needs_object_CXX
20162:
20163: # Create an old-style archive from a shared archive.
20164: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20165:
20166: # Create a temporary old-style archive to link instead of a shared archive.
20167: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20168:
20169: # Commands used to build a shared archive.
20170: archive_cmds=$lt_archive_cmds_CXX
20171: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20172:
20173: # Commands used to build a loadable module if different from building
20174: # a shared archive.
20175: module_cmds=$lt_module_cmds_CXX
20176: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20177:
20178: # Whether we are building with GNU ld or not.
20179: with_gnu_ld=$lt_with_gnu_ld_CXX
20180:
20181: # Flag that allows shared libraries with undefined symbols to be built.
20182: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20183:
20184: # Flag that enforces no undefined symbols.
20185: no_undefined_flag=$lt_no_undefined_flag_CXX
20186:
20187: # Flag to hardcode \$libdir into a binary during linking.
20188: # This must work even if \$libdir does not exist
20189: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20190:
20191: # Whether we need a single "-rpath" flag with a separated argument.
20192: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20193:
20194: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20195: # DIR into the resulting binary.
20196: hardcode_direct=$hardcode_direct_CXX
20197:
20198: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20199: # DIR into the resulting binary and the resulting library dependency is
20200: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20201: # library is relocated.
20202: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20203:
20204: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20205: # into the resulting binary.
20206: hardcode_minus_L=$hardcode_minus_L_CXX
20207:
20208: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20209: # into the resulting binary.
20210: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20211:
20212: # Set to "yes" if building a shared library automatically hardcodes DIR
20213: # into the library and all subsequent libraries and executables linked
20214: # against it.
20215: hardcode_automatic=$hardcode_automatic_CXX
20216:
20217: # Set to yes if linker adds runtime paths of dependent libraries
20218: # to runtime path list.
20219: inherit_rpath=$inherit_rpath_CXX
20220:
20221: # Whether libtool must link a program against all its dependency libraries.
20222: link_all_deplibs=$link_all_deplibs_CXX
20223:
20224: # Set to "yes" if exported symbols are required.
20225: always_export_symbols=$always_export_symbols_CXX
20226:
20227: # The commands to list exported symbols.
20228: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20229:
20230: # Symbols that should not be listed in the preloaded symbols.
20231: exclude_expsyms=$lt_exclude_expsyms_CXX
20232:
20233: # Symbols that must always be exported.
20234: include_expsyms=$lt_include_expsyms_CXX
20235:
20236: # Commands necessary for linking programs (against libraries) with templates.
20237: prelink_cmds=$lt_prelink_cmds_CXX
20238:
20239: # Commands necessary for finishing linking programs.
20240: postlink_cmds=$lt_postlink_cmds_CXX
20241:
20242: # Specify filename containing input files.
20243: file_list_spec=$lt_file_list_spec_CXX
20244:
20245: # How to hardcode a shared library path into an executable.
20246: hardcode_action=$hardcode_action_CXX
20247:
20248: # The directories searched by this compiler when creating a shared library.
20249: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20250:
20251: # Dependencies to place before and after the objects being linked to
20252: # create a shared library.
20253: predep_objects=$lt_predep_objects_CXX
20254: postdep_objects=$lt_postdep_objects_CXX
20255: predeps=$lt_predeps_CXX
20256: postdeps=$lt_postdeps_CXX
20257:
20258: # The library search path used internally by the compiler when linking
20259: # a shared library.
20260: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20261:
20262: # ### END LIBTOOL TAG CONFIG: CXX
20263: _LT_EOF
1.1 parser 20264:
1.15 paf 20265: ;;
20266: esac
20267: done
20268: _ACEOF
1.1 parser 20269:
1.15 paf 20270: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 20271:
1.15 paf 20272: { (exit 0); exit 0; }
20273: _ACEOF
1.1 parser 20274: chmod +x $CONFIG_STATUS
1.15 paf 20275: ac_clean_files=$ac_clean_files_save
20276:
20277:
20278: # configure is writing to config.log, and then calls config.status.
20279: # config.status does its own redirection, appending to config.log.
20280: # Unfortunately, on DOS this fails, as config.log is still kept open
20281: # by configure, so config.status won't be able to write to it; its
20282: # output is simply discarded. So we exec the FD to /dev/null,
20283: # effectively closing config.log, so it can be properly (re)opened and
20284: # appended to by config.status. When coming back to configure, we
20285: # need to make the FD available again.
20286: if test "$no_create" != yes; then
20287: ac_cs_success=:
20288: ac_config_status_args=
20289: test "$silent" = yes &&
20290: ac_config_status_args="$ac_config_status_args --quiet"
20291: exec 5>/dev/null
20292: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20293: exec 5>>config.log
20294: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20295: # would make configure fail if this is the last instruction.
20296: $ac_cs_success || { (exit 1); exit 1; }
20297: fi
1.1 parser 20298:
1.15 paf 20299: #
20300: # CONFIG_SUBDIRS section.
20301: #
1.1 parser 20302: if test "$no_recursion" != yes; then
20303:
20304: # Remove --cache-file and --srcdir arguments so they do not pile up.
20305: ac_sub_configure_args=
20306: ac_prev=
20307: for ac_arg in $ac_configure_args; do
20308: if test -n "$ac_prev"; then
20309: ac_prev=
20310: continue
20311: fi
1.15 paf 20312: case $ac_arg in
1.1 parser 20313: -cache-file | --cache-file | --cache-fil | --cache-fi \
20314: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20315: ac_prev=cache_file ;;
20316: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.15 paf 20317: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20318: | --c=*)
20319: ;;
20320: --config-cache | -C)
1.1 parser 20321: ;;
20322: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20323: ac_prev=srcdir ;;
20324: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20325: ;;
1.15 paf 20326: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20327: ac_prev=prefix ;;
20328: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20329: ;;
1.1 parser 20330: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20331: esac
20332: done
20333:
1.15 paf 20334: # Always prepend --prefix to ensure using the same prefix
20335: # in subdir configurations.
20336: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
20337:
20338: ac_popdir=`pwd`
20339: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 20340:
20341: # Do not complain, so a configure script can configure whichever
20342: # parts of a large source tree are present.
1.15 paf 20343: test -d $srcdir/$ac_dir || continue
1.1 parser 20344:
1.15 paf 20345: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20346: echo "$as_me: configuring in $ac_dir" >&6;}
20347: { if $as_mkdir_p; then
20348: mkdir -p "$ac_dir"
20349: else
20350: as_dir="$ac_dir"
20351: as_dirs=
20352: while test ! -d "$as_dir"; do
20353: as_dirs="$as_dir $as_dirs"
20354: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20355: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 paf 20356: X"$as_dir" : 'X\(//\)[^/]' \| \
20357: X"$as_dir" : 'X\(//\)$' \| \
20358: X"$as_dir" : 'X\(/\)' \| \
20359: . : '\(.\)' 2>/dev/null ||
1.15 paf 20360: echo X"$as_dir" |
20361: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20362: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20363: /^X\(\/\/\)$/{ s//\1/; q; }
20364: /^X\(\/\).*/{ s//\1/; q; }
20365: s/.*/./; q'`
20366: done
20367: test ! -n "$as_dirs" || mkdir $as_dirs
20368: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20369: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20370: { (exit 1); exit 1; }; }; }
20371:
20372: ac_builddir=.
20373:
20374: if test "$ac_dir" != .; then
20375: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20376: # A "../" for each directory in $ac_dir_suffix.
20377: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20378: else
20379: ac_dir_suffix= ac_top_builddir=
20380: fi
20381:
20382: case $srcdir in
20383: .) # No --srcdir option. We are building in place.
20384: ac_srcdir=.
20385: if test -z "$ac_top_builddir"; then
20386: ac_top_srcdir=.
20387: else
20388: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20389: fi ;;
20390: [\\/]* | ?:[\\/]* ) # Absolute path.
20391: ac_srcdir=$srcdir$ac_dir_suffix;
20392: ac_top_srcdir=$srcdir ;;
20393: *) # Relative path.
20394: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20395: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20396: esac
1.25 paf 20397:
20398: # Do not use `cd foo && pwd` to compute absolute paths, because
20399: # the directories may not exist.
20400: case `pwd` in
20401: .) ac_abs_builddir="$ac_dir";;
20402: *)
20403: case "$ac_dir" in
20404: .) ac_abs_builddir=`pwd`;;
20405: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20406: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20407: esac;;
20408: esac
20409: case $ac_abs_builddir in
20410: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20411: *)
20412: case ${ac_top_builddir}. in
20413: .) ac_abs_top_builddir=$ac_abs_builddir;;
20414: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20415: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20416: esac;;
20417: esac
20418: case $ac_abs_builddir in
20419: .) ac_abs_srcdir=$ac_srcdir;;
20420: *)
20421: case $ac_srcdir in
20422: .) ac_abs_srcdir=$ac_abs_builddir;;
20423: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20424: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20425: esac;;
20426: esac
20427: case $ac_abs_builddir in
20428: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20429: *)
20430: case $ac_top_srcdir in
20431: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20432: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20433: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20434: esac;;
20435: esac
1.1 parser 20436:
20437:
1.15 paf 20438: cd $ac_dir
1.1 parser 20439:
20440: # Check for guested configure; otherwise get Cygnus style configure.
1.15 paf 20441: if test -f $ac_srcdir/configure.gnu; then
20442: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20443: elif test -f $ac_srcdir/configure; then
20444: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20445: elif test -f $ac_srcdir/configure.in; then
1.1 parser 20446: ac_sub_configure=$ac_configure
20447: else
1.15 paf 20448: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20449: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 20450: ac_sub_configure=
20451: fi
20452:
20453: # The recursion is here.
20454: if test -n "$ac_sub_configure"; then
20455: # Make the cache file name correct relative to the subdirectory.
1.15 paf 20456: case $cache_file in
20457: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 20458: *) # Relative path.
1.25 paf 20459: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 20460: esac
20461:
1.15 paf 20462: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20463: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 20464: # The eval makes quoting arguments work.
1.15 paf 20465: eval $ac_sub_configure $ac_sub_configure_args \
1.25 paf 20466: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20467: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.15 paf 20468: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20469: { (exit 1); exit 1; }; }
1.1 parser 20470: fi
20471:
20472: cd $ac_popdir
20473: done
20474: fi
20475:
E-mail: