Annotation of parser3/configure, revision 1.135
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.128 moko 3: # Generated by GNU Autoconf 2.59 for parser 3.4.2b.
1.1 paf 4: #
1.86 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 paf 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.62 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.86 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 23:
24: # Support unset when possible.
1.86 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 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.86 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 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.86 paf 221: test -d ./-p && rmdir ./-p
1.62 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.86 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.86 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 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.128 moko 243: lt_ltdl_dir='src/lib/ltdl'
244:
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
247: lt_dlopen_dir="$lt_ltdl_dir"
248:
1.1 paf 249:
1.62 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 paf 260: ac_default_prefix=/usr/local
1.62 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.128 moko 274: PACKAGE_NAME='parser'
275: PACKAGE_TARNAME='parser'
276: PACKAGE_VERSION='3.4.2b'
277: PACKAGE_STRING='parser 3.4.2b'
278: PACKAGE_BUGREPORT=''
1.62 paf 279:
280: ac_unique_file="README"
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:
1.128 moko 318: ac_subdirs_all="$ac_subdirs_all src/lib/ltdl"
1.132 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 P3S build build_cpu build_vendor build_os host host_cpu host_vendor host_os YACC 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 dll_extension GC_LIBS PCRE_INCLUDES PCRE_LIBS XML_INCLUDES XML_LIBS MIME_INCLUDES MIME_LIBS APACHE APACHE_INC APACHE_CFLAGS COMPILE_APACHE_MODULE_TRUE COMPILE_APACHE_MODULE_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL 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.62 paf 320: ac_subst_files=''
1.1 paf 321:
322: # Initialize some variables set by options.
1.62 paf 323: ac_init_help=
324: ac_init_version=false
1.1 paf 325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
1.62 paf 327: cache_file=/dev/null
1.1 paf 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.62 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 paf 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.62 paf 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.62 paf 374: case $ac_option in
1.1 paf 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 379: bindir=$ac_optarg ;;
1.1 paf 380:
381: -build | --build | --buil | --bui | --bu)
1.62 paf 382: ac_prev=build_alias ;;
1.1 paf 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 384: build_alias=$ac_optarg ;;
1.1 paf 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.62 paf 391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
1.1 paf 395:
396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397: ac_prev=datadir ;;
398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.62 paf 400: datadir=$ac_optarg ;;
1.1 paf 401:
402: -disable-* | --disable-*)
1.62 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 404: # Reject names that are not valid shell variable names.
1.62 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 paf 410:
411: -enable-* | --enable-*)
1.62 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 413: # Reject names that are not valid shell variable names.
1.62 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 paf 420: *) ac_optarg=yes ;;
421: esac
1.62 paf 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 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.62 paf 431: exec_prefix=$ac_optarg ;;
1.1 paf 432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
1.62 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 paf 443:
444: -host | --host | --hos | --ho)
1.62 paf 445: ac_prev=host_alias ;;
1.1 paf 446: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 447: host_alias=$ac_optarg ;;
1.1 paf 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.62 paf 454: includedir=$ac_optarg ;;
1.1 paf 455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 459: infodir=$ac_optarg ;;
1.1 paf 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 464: libdir=$ac_optarg ;;
1.1 paf 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.62 paf 471: libexecdir=$ac_optarg ;;
1.1 paf 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.62 paf 480: localstatedir=$ac_optarg ;;
1.1 paf 481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 485: mandir=$ac_optarg ;;
1.1 paf 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.62 paf 492: | --no-cr | --no-c | -n)
1.1 paf 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.62 paf 506: oldincludedir=$ac_optarg ;;
1.1 paf 507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 511: prefix=$ac_optarg ;;
1.1 paf 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.62 paf 518: program_prefix=$ac_optarg ;;
1.1 paf 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.62 paf 525: program_suffix=$ac_optarg ;;
1.1 paf 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.62 paf 542: program_transform_name=$ac_optarg ;;
1.1 paf 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.62 paf 552: sbindir=$ac_optarg ;;
1.1 paf 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.62 paf 563: sharedstatedir=$ac_optarg ;;
1.1 paf 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.62 paf 568: site=$ac_optarg ;;
1.1 paf 569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 573: srcdir=$ac_optarg ;;
1.1 paf 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.62 paf 580: sysconfdir=$ac_optarg ;;
1.1 paf 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 583: ac_prev=target_alias ;;
1.1 paf 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 585: target_alias=$ac_optarg ;;
1.1 paf 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.62 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 paf 592:
593: -with-* | --with-*)
1.62 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 595: # Reject names that are not valid shell variable names.
1.62 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 paf 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.62 paf 600: case $ac_option in
601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 602: *) ac_optarg=yes ;;
603: esac
1.62 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 605:
606: -without-* | --without-*)
1.62 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 608: # Reject names that are not valid shell variable names.
1.62 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 paf 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.62 paf 624: x_includes=$ac_optarg ;;
1.1 paf 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.62 paf 631: x_libraries=$ac_optarg ;;
1.1 paf 632:
1.62 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 paf 636: ;;
637:
1.62 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 paf 648: *)
1.62 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 paf 654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
1.62 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 paf 663: fi
664:
1.62 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 paf 675:
1.62 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.86 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 679: do
1.62 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 paf 685: esac
686: done
687:
1.62 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 paf 708:
1.62 paf 709: test "$silent" = yes && exec 6>/dev/null
1.1 paf 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.62 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.62 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 paf 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.62 paf 737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
738: { (exit 1); exit 1; }; }
1.1 paf 739: else
1.62 paf 740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
741: { (exit 1); exit 1; }; }
1.1 paf 742: fi
743: fi
1.62 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
1.66 paf 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
1.62 paf 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.66 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.128 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.62 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.128 moko 800: \`configure' configures parser 3.4.2b to adapt to many kinds of systems.
1.62 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.86 paf 825: [$ac_default_prefix]
1.62 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.86 paf 827: [PREFIX]
1.62 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.128 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser 3.4.2b:";;
867: esac
1.62 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.86 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 875: --disable-safe-mode to enable reading and executing
1.62 paf 876: files belonging to group+user other then effective
1.94 misha 877: --disable-execs to disable any execs
1.62 paf 878: (file::exec, file::cgi, unix mail:send)
1.94 misha 879: --disable-stringstream to disable stringstream usage.
880: when disabled table.save use more memory but it's safer on freebsd 4.x
1.128 moko 881: --enable-shared[=PKGS]
882: build shared libraries [default=yes]
1.134 moko 883: --enable-static[=PKGS]
884: build static libraries [default=yes]
1.128 moko 885: --enable-fast-install[=PKGS]
886: optimize for fast installation [default=yes]
887: --disable-libtool-lock avoid locking (might break parallel builds)
888: --enable-ltdl-install install libltdl
1.62 paf 889:
890: Optional Packages:
891: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
892: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 893: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 894: --with-assertions to enable assertions
1.62 paf 895: --with-pathlink=LKEY put dynamic libraries paths to binary
896: using linker key (-R, -rpath-link)
1.128 moko 897: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.67 paf 898: --with-shared-gc=D D is the directory where
899: Boehm garbage collecting library is installed (shared lib)
900: --with-static-gc=D D is the directory where
901: Boehm garbage collecting library is installed (static lib)
1.119 misha 902: --with-static-pcre=D D is the directory where
1.100 misha 903: PCRE library is installed (static lib)
1.62 paf 904: --with-shared-xml=D D is the directory where
905: Gnome XML libraries are installed (shared libs)
906: --with-static-xml=D D is the directory where
907: Gnome XML libraries are installed (static libs)
1.90 paf 908: --with-glib-config=FILE FILE is glib library
909: configuration file (search for glib*-config)
1.62 paf 910: --with-shared-mailreceive=D is the directory where
1.67 paf 911: Gnome MIME library is installed (shared lib)
1.62 paf 912: --with-static-mailreceive=D is the directory where
913: Gnome MIME library is installed (static lib)
914: \"--with-sendmail=COMMAND\" forces this command to send mail.
915: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
916: (makes parser ignore user-defined sendmail commands)
1.122 moko 917: --with-apache=FILE is the full path for APXS
918: builds apache DSO module using apxs
1.128 moko 919: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
920: both]
921: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
922: --with-sysroot=DIR Search for dependent libraries within DIR
923: (or the compiler's sysroot if not specified).
924: --with-included-ltdl use the GNU ltdl sources included here
925: --with-ltdl-include=DIR use the ltdl headers installed in DIR
926: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 927:
928: Some influential environment variables:
1.66 paf 929: CXX C++ compiler command
930: CXXFLAGS C++ compiler flags
1.62 paf 931: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
932: nonstandard directory <lib dir>
933: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
934: headers in a nonstandard directory <include dir>
1.66 paf 935: CC C compiler command
936: CFLAGS C compiler flags
937: CPP C preprocessor
1.128 moko 938: CXXCPP C++ preprocessor
1.62 paf 939:
940: Use these variables to override the choices made by `configure' or to help
941: it to find libraries and programs with nonstandard names/locations.
942:
943: _ACEOF
944: fi
945:
946: if test "$ac_init_help" = "recursive"; then
947: # If there are subdirs, report their specific --help.
948: ac_popdir=`pwd`
949: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950: test -d $ac_dir || continue
951: ac_builddir=.
952:
953: if test "$ac_dir" != .; then
954: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955: # A "../" for each directory in $ac_dir_suffix.
956: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
957: else
958: ac_dir_suffix= ac_top_builddir=
959: fi
960:
961: case $srcdir in
962: .) # No --srcdir option. We are building in place.
963: ac_srcdir=.
964: if test -z "$ac_top_builddir"; then
965: ac_top_srcdir=.
966: else
967: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
968: fi ;;
969: [\\/]* | ?:[\\/]* ) # Absolute path.
970: ac_srcdir=$srcdir$ac_dir_suffix;
971: ac_top_srcdir=$srcdir ;;
972: *) # Relative path.
973: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974: ac_top_srcdir=$ac_top_builddir$srcdir ;;
975: esac
1.86 paf 976:
977: # Do not use `cd foo && pwd` to compute absolute paths, because
978: # the directories may not exist.
979: case `pwd` in
980: .) ac_abs_builddir="$ac_dir";;
981: *)
982: case "$ac_dir" in
983: .) ac_abs_builddir=`pwd`;;
984: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
985: *) ac_abs_builddir=`pwd`/"$ac_dir";;
986: esac;;
987: esac
988: case $ac_abs_builddir in
989: .) ac_abs_top_builddir=${ac_top_builddir}.;;
990: *)
991: case ${ac_top_builddir}. in
992: .) ac_abs_top_builddir=$ac_abs_builddir;;
993: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
994: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
995: esac;;
996: esac
997: case $ac_abs_builddir in
998: .) ac_abs_srcdir=$ac_srcdir;;
999: *)
1000: case $ac_srcdir in
1001: .) ac_abs_srcdir=$ac_abs_builddir;;
1002: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1003: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1004: esac;;
1005: esac
1006: case $ac_abs_builddir in
1007: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1008: *)
1009: case $ac_top_srcdir in
1010: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1011: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1012: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1013: esac;;
1014: esac
1.62 paf 1015:
1016: cd $ac_dir
1017: # Check for guested configure; otherwise get Cygnus style configure.
1018: if test -f $ac_srcdir/configure.gnu; then
1019: echo
1020: $SHELL $ac_srcdir/configure.gnu --help=recursive
1021: elif test -f $ac_srcdir/configure; then
1022: echo
1023: $SHELL $ac_srcdir/configure --help=recursive
1024: elif test -f $ac_srcdir/configure.ac ||
1.86 paf 1025: test -f $ac_srcdir/configure.in; then
1.62 paf 1026: echo
1027: $ac_configure --help
1028: else
1029: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1030: fi
1031: cd $ac_popdir
1032: done
1033: fi
1034:
1035: test -n "$ac_init_help" && exit 0
1036: if $ac_init_version; then
1037: cat <<\_ACEOF
1.128 moko 1038: parser configure 3.4.2b
1039: generated by GNU Autoconf 2.59
1.62 paf 1040:
1.86 paf 1041: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 1042: This configure script is free software; the Free Software Foundation
1043: gives unlimited permission to copy, distribute and modify it.
1044: _ACEOF
1045: exit 0
1046: fi
1047: exec 5>config.log
1048: cat >&5 <<_ACEOF
1049: This file contains any messages produced by compilers while
1050: running configure, to aid debugging if configure makes a mistake.
1051:
1.128 moko 1052: It was created by parser $as_me 3.4.2b, which was
1.86 paf 1053: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 1054:
1055: $ $0 $@
1056:
1057: _ACEOF
1058: {
1059: cat <<_ASUNAME
1060: ## --------- ##
1061: ## Platform. ##
1062: ## --------- ##
1063:
1064: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069:
1070: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072:
1073: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080:
1081: _ASUNAME
1082:
1083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084: for as_dir in $PATH
1085: do
1086: IFS=$as_save_IFS
1087: test -z "$as_dir" && as_dir=.
1088: echo "PATH: $as_dir"
1089: done
1.1 paf 1090:
1.62 paf 1091: } >&5
1092:
1093: cat >&5 <<_ACEOF
1094:
1095:
1096: ## ----------- ##
1097: ## Core tests. ##
1098: ## ----------- ##
1099:
1100: _ACEOF
1101:
1102:
1103: # Keep a trace of the command line.
1104: # Strip out --no-create and --no-recursion so they do not pile up.
1105: # Strip out --silent because we don't want to record it for future runs.
1106: # Also quote any args containing shell meta-characters.
1107: # Make two passes to allow for proper duplicate-argument suppression.
1108: ac_configure_args=
1109: ac_configure_args0=
1110: ac_configure_args1=
1111: ac_sep=
1112: ac_must_keep_next=false
1113: for ac_pass in 1 2
1114: do
1115: for ac_arg
1116: do
1117: case $ac_arg in
1118: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120: | -silent | --silent | --silen | --sile | --sil)
1121: continue ;;
1122: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124: esac
1125: case $ac_pass in
1126: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127: 2)
1128: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129: if test $ac_must_keep_next = true; then
1.86 paf 1130: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 1131: else
1.86 paf 1132: case $ac_arg in
1133: *=* | --config-cache | -C | -disable-* | --disable-* \
1134: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136: | -with-* | --with-* | -without-* | --without-* | --x)
1137: case "$ac_configure_args0 " in
1138: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139: esac
1140: ;;
1141: -* ) ac_must_keep_next=true ;;
1142: esac
1.62 paf 1143: fi
1144: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145: # Get rid of the leading space.
1146: ac_sep=" "
1147: ;;
1148: esac
1149: done
1150: done
1151: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153:
1154: # When interrupted or exit'd, cleanup temporary files, and complete
1155: # config.log. We remove comments because anyway the quotes in there
1156: # would cause problems or look ugly.
1157: # WARNING: Be sure not to use single quotes in there, as some shells,
1158: # such as our DU 5.0 friend, will then `close' the trap.
1159: trap 'exit_status=$?
1160: # Save into config.log some information that might help in debugging.
1161: {
1162: echo
1163:
1164: cat <<\_ASBOX
1165: ## ---------------- ##
1166: ## Cache variables. ##
1167: ## ---------------- ##
1168: _ASBOX
1169: echo
1170: # The following way of writing the cache mishandles newlines in values,
1171: {
1172: (set) 2>&1 |
1173: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174: *ac_space=\ *)
1175: sed -n \
1.86 paf 1176: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.62 paf 1178: ;;
1179: *)
1180: sed -n \
1.86 paf 1181: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 1182: ;;
1183: esac;
1184: }
1185: echo
1186:
1187: cat <<\_ASBOX
1188: ## ----------------- ##
1189: ## Output variables. ##
1190: ## ----------------- ##
1191: _ASBOX
1192: echo
1193: for ac_var in $ac_subst_vars
1194: do
1195: eval ac_val=$`echo $ac_var`
1196: echo "$ac_var='"'"'$ac_val'"'"'"
1197: done | sort
1198: echo
1199:
1200: if test -n "$ac_subst_files"; then
1201: cat <<\_ASBOX
1202: ## ------------- ##
1203: ## Output files. ##
1204: ## ------------- ##
1205: _ASBOX
1206: echo
1207: for ac_var in $ac_subst_files
1208: do
1209: eval ac_val=$`echo $ac_var`
1.86 paf 1210: echo "$ac_var='"'"'$ac_val'"'"'"
1.62 paf 1211: done | sort
1212: echo
1213: fi
1214:
1215: if test -s confdefs.h; then
1216: cat <<\_ASBOX
1217: ## ----------- ##
1218: ## confdefs.h. ##
1219: ## ----------- ##
1220: _ASBOX
1221: echo
1222: sed "/^$/d" confdefs.h | sort
1223: echo
1224: fi
1225: test "$ac_signal" != 0 &&
1226: echo "$as_me: caught signal $ac_signal"
1227: echo "$as_me: exit $exit_status"
1228: } >&5
1.86 paf 1229: rm -f core *.core &&
1.62 paf 1230: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231: exit $exit_status
1232: ' 0
1233: for ac_signal in 1 2 13 15; do
1234: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235: done
1236: ac_signal=0
1237:
1238: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239: rm -rf conftest* confdefs.h
1240: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241: echo >confdefs.h
1242:
1243: # Predefined preprocessor variables.
1244:
1245: cat >>confdefs.h <<_ACEOF
1246: #define PACKAGE_NAME "$PACKAGE_NAME"
1247: _ACEOF
1248:
1249:
1250: cat >>confdefs.h <<_ACEOF
1251: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252: _ACEOF
1253:
1254:
1255: cat >>confdefs.h <<_ACEOF
1256: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257: _ACEOF
1258:
1259:
1260: cat >>confdefs.h <<_ACEOF
1261: #define PACKAGE_STRING "$PACKAGE_STRING"
1262: _ACEOF
1263:
1264:
1265: cat >>confdefs.h <<_ACEOF
1266: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267: _ACEOF
1268:
1269:
1270: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1271: # Prefer explicitly selected file to automatically selected ones.
1272: if test -z "$CONFIG_SITE"; then
1273: if test "x$prefix" != xNONE; then
1274: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275: else
1276: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277: fi
1278: fi
1279: for ac_site_file in $CONFIG_SITE; do
1280: if test -r "$ac_site_file"; then
1.62 paf 1281: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282: echo "$as_me: loading site script $ac_site_file" >&6;}
1283: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1284: . "$ac_site_file"
1285: fi
1286: done
1287:
1288: if test -r "$cache_file"; then
1.62 paf 1289: # Some versions of bash will fail to source /dev/null (special
1290: # files actually), so we avoid doing that.
1291: if test -f "$cache_file"; then
1292: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293: echo "$as_me: loading cache $cache_file" >&6;}
1294: case $cache_file in
1295: [\\/]* | ?:[\\/]* ) . $cache_file;;
1296: *) . ./$cache_file;;
1297: esac
1298: fi
1.1 paf 1299: else
1.62 paf 1300: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301: echo "$as_me: creating cache $cache_file" >&6;}
1302: >$cache_file
1303: fi
1304:
1305: # Check that the precious variables saved in the cache have kept the same
1306: # value.
1307: ac_cache_corrupted=false
1308: for ac_var in `(set) 2>&1 |
1.86 paf 1309: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.62 paf 1310: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311: eval ac_new_set=\$ac_env_${ac_var}_set
1312: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313: eval ac_new_val="\$ac_env_${ac_var}_value"
1314: case $ac_old_set,$ac_new_set in
1315: set,)
1316: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318: ac_cache_corrupted=: ;;
1319: ,set)
1320: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322: ac_cache_corrupted=: ;;
1323: ,);;
1324: *)
1325: if test "x$ac_old_val" != "x$ac_new_val"; then
1.86 paf 1326: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.62 paf 1327: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.86 paf 1328: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.62 paf 1329: echo "$as_me: former value: $ac_old_val" >&2;}
1.86 paf 1330: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.62 paf 1331: echo "$as_me: current value: $ac_new_val" >&2;}
1.86 paf 1332: ac_cache_corrupted=:
1.62 paf 1333: fi;;
1334: esac
1335: # Pass precious variables to config.status.
1336: if test "$ac_new_set" = set; then
1337: case $ac_new_val in
1338: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340: *) ac_arg=$ac_var=$ac_new_val ;;
1341: esac
1342: case " $ac_configure_args " in
1343: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345: esac
1346: fi
1347: done
1348: if $ac_cache_corrupted; then
1349: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353: { (exit 1); exit 1; }; }
1.1 paf 1354: fi
1355:
1356: ac_ext=c
1357: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 1358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1361:
1362:
1363:
1364:
1365:
1366:
1367:
1368:
1369:
1370:
1371:
1.1 paf 1372:
1373:
1.62 paf 1374:
1375:
1376:
1377:
1378:
1379:
1.63 paf 1380:
1381:
1.128 moko 1382:
1383:
1384:
1385:
1386:
1387:
1388:
1389:
1390:
1.86 paf 1391: am__api_version="1.9"
1.1 paf 1392: ac_aux_dir=
1393: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1394: if test -f $ac_dir/install-sh; then
1395: ac_aux_dir=$ac_dir
1396: ac_install_sh="$ac_aux_dir/install-sh -c"
1397: break
1398: elif test -f $ac_dir/install.sh; then
1399: ac_aux_dir=$ac_dir
1400: ac_install_sh="$ac_aux_dir/install.sh -c"
1401: break
1.62 paf 1402: elif test -f $ac_dir/shtool; then
1403: ac_aux_dir=$ac_dir
1404: ac_install_sh="$ac_aux_dir/shtool install -c"
1405: break
1.1 paf 1406: fi
1407: done
1408: if test -z "$ac_aux_dir"; then
1.62 paf 1409: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1410: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1411: { (exit 1); exit 1; }; }
1412: fi
1413: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1416:
1417: # Find a good install program. We prefer a C program (faster),
1418: # so one script is as good as another. But avoid the broken or
1419: # incompatible versions:
1420: # SysV /etc/install, /usr/sbin/install
1421: # SunOS /usr/etc/install
1422: # IRIX /sbin/install
1423: # AIX /bin/install
1.62 paf 1424: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1425: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1426: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1427: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1428: # OS/2's system install, which has a completely different semantic
1.1 paf 1429: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1430: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1431: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1432: if test -z "$INSTALL"; then
1.62 paf 1433: if test "${ac_cv_path_install+set}" = set; then
1434: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1435: else
1.62 paf 1436: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437: for as_dir in $PATH
1438: do
1439: IFS=$as_save_IFS
1440: test -z "$as_dir" && as_dir=.
1441: # Account for people who put trailing slashes in PATH elements.
1442: case $as_dir/ in
1443: ./ | .// | /cC/* | \
1444: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1445: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1446: /usr/ucb/* ) ;;
1447: *)
1448: # OSF1 and SCO ODT 3.0 have their own names for install.
1449: # Don't use installbsd from OSF since it installs stuff as root
1450: # by default.
1451: for ac_prog in ginstall scoinst install; do
1452: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1453: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1454: if test $ac_prog = install &&
1455: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1456: # AIX install. It has an incompatible calling convention.
1457: :
1458: elif test $ac_prog = install &&
1459: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1460: # program-specific install script used by HP pwplus--don't use.
1461: :
1462: else
1463: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1464: break 3
1465: fi
1466: fi
1.1 paf 1467: done
1.62 paf 1468: done
1469: ;;
1470: esac
1471: done
1472:
1.1 paf 1473:
1474: fi
1475: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1476: INSTALL=$ac_cv_path_install
1.1 paf 1477: else
1478: # As a last resort, use the slow shell script. We don't cache a
1479: # path for INSTALL within a source directory, because that will
1480: # break other packages using the cache if that directory is
1481: # removed, or if the path is relative.
1.62 paf 1482: INSTALL=$ac_install_sh
1.1 paf 1483: fi
1484: fi
1.62 paf 1485: echo "$as_me:$LINENO: result: $INSTALL" >&5
1486: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1487:
1488: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1489: # It thinks the first close brace ends the variable substitution.
1490: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1491:
1.62 paf 1492: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1493:
1494: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1495:
1.62 paf 1496: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1497: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1498: # Just in case
1499: sleep 1
1.62 paf 1500: echo timestamp > conftest.file
1.1 paf 1501: # Do `set' in a subshell so we don't clobber the current shell's
1502: # arguments. Must try -L first in case configure is actually a
1503: # symlink; some systems play weird games with the mod time of symlinks
1504: # (eg FreeBSD returns the mod time of the symlink's containing
1505: # directory).
1506: if (
1.62 paf 1507: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1508: if test "$*" = "X"; then
1509: # -L didn't work.
1.62 paf 1510: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1511: fi
1.62 paf 1512: rm -f conftest.file
1513: if test "$*" != "X $srcdir/configure conftest.file" \
1514: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1515:
1516: # If neither matched, then we have a broken ls. This can happen
1517: # if, for instance, CONFIG_SHELL is bash and it inherits a
1518: # broken ls alias from the environment. This has actually
1519: # happened. Such a system could not be considered "sane".
1.62 paf 1520: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1521: alias in your environment" >&5
1522: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1523: alias in your environment" >&2;}
1524: { (exit 1); exit 1; }; }
1.1 paf 1525: fi
1526:
1.62 paf 1527: test "$2" = conftest.file
1.1 paf 1528: )
1529: then
1530: # Ok.
1531: :
1532: else
1.62 paf 1533: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1534: Check your system clock" >&5
1535: echo "$as_me: error: newly created file is older than distributed files!
1536: Check your system clock" >&2;}
1537: { (exit 1); exit 1; }; }
1.1 paf 1538: fi
1.62 paf 1539: echo "$as_me:$LINENO: result: yes" >&5
1540: echo "${ECHO_T}yes" >&6
1.1 paf 1541: test "$program_prefix" != NONE &&
1.62 paf 1542: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1543: # Use a double $ so make ignores it.
1544: test "$program_suffix" != NONE &&
1.62 paf 1545: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1546: # Double any \ or $. echo might interpret backslashes.
1547: # By default was `s,x,x', remove it if useless.
1548: cat <<\_ACEOF >conftest.sed
1549: s/[\\$]/&&/g;s/;s,x,x,$//
1550: _ACEOF
1551: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1552: rm conftest.sed
1553:
1554: # expand $ac_aux_dir to an absolute path
1555: am_aux_dir=`cd $ac_aux_dir && pwd`
1556:
1557: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1558: # Use eval to expand $SHELL
1559: if eval "$MISSING --run true"; then
1560: am_missing_run="$MISSING --run "
1561: else
1562: am_missing_run=
1563: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1564: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1565: fi
1566:
1.86 paf 1567: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1568: # We used to keeping the `.' as first argument, in order to
1569: # allow $(mkdir_p) to be used without argument. As in
1570: # $(mkdir_p) $(somedir)
1571: # where $(somedir) is conditionally defined. However this is wrong
1572: # for two reasons:
1573: # 1. if the package is installed by a user who cannot write `.'
1574: # make install will fail,
1575: # 2. the above comment should most certainly read
1576: # $(mkdir_p) $(DESTDIR)$(somedir)
1577: # so it does not work when $(somedir) is undefined and
1578: # $(DESTDIR) is not.
1579: # To support the latter case, we have to write
1580: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1581: # so the `.' trick is pointless.
1582: mkdir_p='mkdir -p --'
1583: else
1584: # On NextStep and OpenStep, the `mkdir' command does not
1585: # recognize any option. It will interpret all options as
1586: # directories to create, and then abort because `.' already
1587: # exists.
1588: for d in ./-p ./--version;
1589: do
1590: test -d $d && rmdir $d
1591: done
1592: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1593: if test -f "$ac_aux_dir/mkinstalldirs"; then
1594: mkdir_p='$(mkinstalldirs)'
1595: else
1596: mkdir_p='$(install_sh) -d'
1597: fi
1598: fi
1599:
1.62 paf 1600: for ac_prog in gawk mawk nawk awk
1601: do
1602: # Extract the first word of "$ac_prog", so it can be a program name with args.
1603: set dummy $ac_prog; ac_word=$2
1604: echo "$as_me:$LINENO: checking for $ac_word" >&5
1605: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606: if test "${ac_cv_prog_AWK+set}" = set; then
1607: echo $ECHO_N "(cached) $ECHO_C" >&6
1608: else
1609: if test -n "$AWK"; then
1610: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1611: else
1612: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613: for as_dir in $PATH
1614: do
1615: IFS=$as_save_IFS
1616: test -z "$as_dir" && as_dir=.
1617: for ac_exec_ext in '' $ac_executable_extensions; do
1618: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619: ac_cv_prog_AWK="$ac_prog"
1620: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621: break 2
1622: fi
1623: done
1624: done
1625:
1626: fi
1627: fi
1628: AWK=$ac_cv_prog_AWK
1629: if test -n "$AWK"; then
1630: echo "$as_me:$LINENO: result: $AWK" >&5
1631: echo "${ECHO_T}$AWK" >&6
1632: else
1633: echo "$as_me:$LINENO: result: no" >&5
1634: echo "${ECHO_T}no" >&6
1635: fi
1.1 paf 1636:
1.62 paf 1637: test -n "$AWK" && break
1638: done
1.1 paf 1639:
1.62 paf 1640: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1641: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1642: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1643: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1644: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1645: else
1.62 paf 1646: cat >conftest.make <<\_ACEOF
1.1 paf 1647: all:
1.62 paf 1648: @echo 'ac_maketemp="$(MAKE)"'
1649: _ACEOF
1.1 paf 1650: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1651: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1652: if test -n "$ac_maketemp"; then
1653: eval ac_cv_prog_make_${ac_make}_set=yes
1654: else
1655: eval ac_cv_prog_make_${ac_make}_set=no
1656: fi
1.62 paf 1657: rm -f conftest.make
1.1 paf 1658: fi
1659: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1660: echo "$as_me:$LINENO: result: yes" >&5
1661: echo "${ECHO_T}yes" >&6
1.1 paf 1662: SET_MAKE=
1663: else
1.62 paf 1664: echo "$as_me:$LINENO: result: no" >&5
1665: echo "${ECHO_T}no" >&6
1.1 paf 1666: SET_MAKE="MAKE=${MAKE-make}"
1667: fi
1668:
1.86 paf 1669: rm -rf .tst 2>/dev/null
1670: mkdir .tst 2>/dev/null
1671: if test -d .tst; then
1672: am__leading_dot=.
1673: else
1674: am__leading_dot=_
1675: fi
1676: rmdir .tst 2>/dev/null
1677:
1678: # test to see if srcdir already configured
1.62 paf 1679: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1680: test -f $srcdir/config.status; then
1681: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1682: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1683: { (exit 1); exit 1; }; }
1684: fi
1685:
1686: # test whether we have cygpath
1687: if test -z "$CYGPATH_W"; then
1688: if (cygpath --version) >/dev/null 2>/dev/null; then
1689: CYGPATH_W='cygpath -w'
1690: else
1691: CYGPATH_W=echo
1692: fi
1693: fi
1694:
1695:
1696: # Define the identity of the package.
1.128 moko 1697: PACKAGE='parser'
1698: VERSION='3.4.2b'
1699:
1700:
1701: cat >>confdefs.h <<_ACEOF
1702: #define PACKAGE "$PACKAGE"
1703: _ACEOF
1.1 paf 1704:
1705:
1.128 moko 1706: cat >>confdefs.h <<_ACEOF
1707: #define VERSION "$VERSION"
1708: _ACEOF
1709:
1.62 paf 1710: # Some tools Automake needs.
1711:
1712: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1713:
1714:
1715: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1716:
1717:
1718: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1719:
1720:
1721: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1722:
1723:
1724: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 1725:
1.62 paf 1726: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1727:
1.62 paf 1728: # Installed binaries are usually stripped using `strip' when the user
1729: # run `make install-strip'. However `strip' might not be the right
1730: # tool to use in cross-compilation environments, therefore Automake
1731: # will honor the `STRIP' environment variable to overrule this program.
1732: if test "$cross_compiling" != no; then
1733: if test -n "$ac_tool_prefix"; then
1734: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1735: set dummy ${ac_tool_prefix}strip; ac_word=$2
1736: echo "$as_me:$LINENO: checking for $ac_word" >&5
1737: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738: if test "${ac_cv_prog_STRIP+set}" = set; then
1739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1740: else
1.62 paf 1741: if test -n "$STRIP"; then
1742: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1743: else
1744: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745: for as_dir in $PATH
1746: do
1747: IFS=$as_save_IFS
1748: test -z "$as_dir" && as_dir=.
1749: for ac_exec_ext in '' $ac_executable_extensions; do
1750: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1752: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753: break 2
1754: fi
1755: done
1756: done
1757:
1758: fi
1759: fi
1760: STRIP=$ac_cv_prog_STRIP
1761: if test -n "$STRIP"; then
1762: echo "$as_me:$LINENO: result: $STRIP" >&5
1763: echo "${ECHO_T}$STRIP" >&6
1764: else
1765: echo "$as_me:$LINENO: result: no" >&5
1766: echo "${ECHO_T}no" >&6
1.1 paf 1767: fi
1768:
1.62 paf 1769: fi
1770: if test -z "$ac_cv_prog_STRIP"; then
1771: ac_ct_STRIP=$STRIP
1772: # Extract the first word of "strip", so it can be a program name with args.
1773: set dummy strip; ac_word=$2
1774: echo "$as_me:$LINENO: checking for $ac_word" >&5
1775: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1777: echo $ECHO_N "(cached) $ECHO_C" >&6
1778: else
1779: if test -n "$ac_ct_STRIP"; then
1780: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 1781: else
1.62 paf 1782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783: for as_dir in $PATH
1784: do
1785: IFS=$as_save_IFS
1786: test -z "$as_dir" && as_dir=.
1787: for ac_exec_ext in '' $ac_executable_extensions; do
1788: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789: ac_cv_prog_ac_ct_STRIP="strip"
1790: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791: break 2
1792: fi
1793: done
1794: done
1795:
1796: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1797: fi
1.1 paf 1798: fi
1.62 paf 1799: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1800: if test -n "$ac_ct_STRIP"; then
1801: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1802: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1803: else
1.62 paf 1804: echo "$as_me:$LINENO: result: no" >&5
1805: echo "${ECHO_T}no" >&6
1.1 paf 1806: fi
1807:
1.62 paf 1808: STRIP=$ac_ct_STRIP
1.1 paf 1809: else
1.62 paf 1810: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1811: fi
1812:
1813: fi
1.62 paf 1814: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1815:
1816: # We need awk for the "check" target. The system "awk" is bad on
1817: # some platforms.
1.86 paf 1818: # Always define AMTAR for backward compatibility.
1819:
1820: AMTAR=${AMTAR-"${am_missing_run}tar"}
1821:
1822: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1823:
1824:
1.62 paf 1825:
1.1 paf 1826:
1827:
1828:
1.128 moko 1829:
1.12 paf 1830: P3S=`cd $srcdir/src ; pwd`
1.1 paf 1831:
1832:
1.128 moko 1833:
1.41 paf 1834: # Make sure we can run config.sub.
1.62 paf 1835: $ac_config_sub sun4 >/dev/null 2>&1 ||
1836: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1837: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1838: { (exit 1); exit 1; }; }
1839:
1840: echo "$as_me:$LINENO: checking build system type" >&5
1841: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1842: if test "${ac_cv_build+set}" = set; then
1843: echo $ECHO_N "(cached) $ECHO_C" >&6
1844: else
1845: ac_cv_build_alias=$build_alias
1846: test -z "$ac_cv_build_alias" &&
1847: ac_cv_build_alias=`$ac_config_guess`
1848: test -z "$ac_cv_build_alias" &&
1849: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1850: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1851: { (exit 1); exit 1; }; }
1852: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1853: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1854: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1855: { (exit 1); exit 1; }; }
1856:
1857: fi
1858: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1859: echo "${ECHO_T}$ac_cv_build" >&6
1860: build=$ac_cv_build
1861: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1862: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1863: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1864:
1865:
1866: echo "$as_me:$LINENO: checking host system type" >&5
1867: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1868: if test "${ac_cv_host+set}" = set; then
1869: echo $ECHO_N "(cached) $ECHO_C" >&6
1870: else
1871: ac_cv_host_alias=$host_alias
1872: test -z "$ac_cv_host_alias" &&
1873: ac_cv_host_alias=$ac_cv_build_alias
1874: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1875: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1876: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1877: { (exit 1); exit 1; }; }
1878:
1879: fi
1880: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1881: echo "${ECHO_T}$ac_cv_host" >&6
1882: host=$ac_cv_host
1883: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1884: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1885: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.81 paf 1886:
1887:
1888:
1889: PARSER_VERSION="$VERSION (compiled on $host)"
1890: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
1891: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
1892: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
1893: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1894: if test $? -ne 0 ; then
1895: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
1896: echo Updated $srcdir/src/include/pa_version.h
1897: else
1898: rm -f $srcdir/src/include/pa_version.h.new
1899: fi
1900:
1.41 paf 1901:
1.67 paf 1902: case $host_os in
1903: *cygwin* )
1904: cat >>confdefs.h <<\_ACEOF
1905: #define CYGWIN
1906: _ACEOF
1907: ;;
1908: esac
1.41 paf 1909:
1.128 moko 1910:
1.1 paf 1911: # Find a good install program. We prefer a C program (faster),
1912: # so one script is as good as another. But avoid the broken or
1913: # incompatible versions:
1914: # SysV /etc/install, /usr/sbin/install
1915: # SunOS /usr/etc/install
1916: # IRIX /sbin/install
1917: # AIX /bin/install
1.62 paf 1918: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1919: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1920: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1921: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1922: # OS/2's system install, which has a completely different semantic
1.1 paf 1923: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1924: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1925: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1926: if test -z "$INSTALL"; then
1.62 paf 1927: if test "${ac_cv_path_install+set}" = set; then
1928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1929: else
1.62 paf 1930: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931: for as_dir in $PATH
1932: do
1933: IFS=$as_save_IFS
1934: test -z "$as_dir" && as_dir=.
1935: # Account for people who put trailing slashes in PATH elements.
1936: case $as_dir/ in
1937: ./ | .// | /cC/* | \
1938: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1939: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1940: /usr/ucb/* ) ;;
1941: *)
1942: # OSF1 and SCO ODT 3.0 have their own names for install.
1943: # Don't use installbsd from OSF since it installs stuff as root
1944: # by default.
1945: for ac_prog in ginstall scoinst install; do
1946: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1947: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1948: if test $ac_prog = install &&
1949: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1950: # AIX install. It has an incompatible calling convention.
1951: :
1952: elif test $ac_prog = install &&
1953: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1954: # program-specific install script used by HP pwplus--don't use.
1955: :
1956: else
1957: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1958: break 3
1959: fi
1960: fi
1.1 paf 1961: done
1.62 paf 1962: done
1963: ;;
1964: esac
1965: done
1966:
1.1 paf 1967:
1968: fi
1969: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1970: INSTALL=$ac_cv_path_install
1.1 paf 1971: else
1972: # As a last resort, use the slow shell script. We don't cache a
1973: # path for INSTALL within a source directory, because that will
1974: # break other packages using the cache if that directory is
1975: # removed, or if the path is relative.
1.62 paf 1976: INSTALL=$ac_install_sh
1.1 paf 1977: fi
1978: fi
1.62 paf 1979: echo "$as_me:$LINENO: result: $INSTALL" >&5
1980: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1981:
1982: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1983: # It thinks the first close brace ends the variable substitution.
1984: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1985:
1.62 paf 1986: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1987:
1988: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1989:
1.62 paf 1990: for ac_prog in gawk mawk nawk awk
1.41 paf 1991: do
1.62 paf 1992: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 1993: set dummy $ac_prog; ac_word=$2
1.62 paf 1994: echo "$as_me:$LINENO: checking for $ac_word" >&5
1995: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996: if test "${ac_cv_prog_AWK+set}" = set; then
1997: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1998: else
1999: if test -n "$AWK"; then
2000: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2001: else
1.62 paf 2002: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003: for as_dir in $PATH
2004: do
2005: IFS=$as_save_IFS
2006: test -z "$as_dir" && as_dir=.
2007: for ac_exec_ext in '' $ac_executable_extensions; do
2008: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009: ac_cv_prog_AWK="$ac_prog"
2010: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011: break 2
2012: fi
2013: done
2014: done
2015:
1.41 paf 2016: fi
2017: fi
1.62 paf 2018: AWK=$ac_cv_prog_AWK
1.41 paf 2019: if test -n "$AWK"; then
1.62 paf 2020: echo "$as_me:$LINENO: result: $AWK" >&5
2021: echo "${ECHO_T}$AWK" >&6
1.41 paf 2022: else
1.62 paf 2023: echo "$as_me:$LINENO: result: no" >&5
2024: echo "${ECHO_T}no" >&6
1.41 paf 2025: fi
2026:
1.62 paf 2027: test -n "$AWK" && break
1.41 paf 2028: done
2029:
2030:
2031: for ac_prog in 'bison -y' byacc
2032: do
1.62 paf 2033: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2034: set dummy $ac_prog; ac_word=$2
1.62 paf 2035: echo "$as_me:$LINENO: checking for $ac_word" >&5
2036: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037: if test "${ac_cv_prog_YACC+set}" = set; then
2038: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2039: else
2040: if test -n "$YACC"; then
2041: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2042: else
1.62 paf 2043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044: for as_dir in $PATH
2045: do
2046: IFS=$as_save_IFS
2047: test -z "$as_dir" && as_dir=.
2048: for ac_exec_ext in '' $ac_executable_extensions; do
2049: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050: ac_cv_prog_YACC="$ac_prog"
2051: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052: break 2
2053: fi
2054: done
2055: done
2056:
1.41 paf 2057: fi
2058: fi
1.62 paf 2059: YACC=$ac_cv_prog_YACC
1.41 paf 2060: if test -n "$YACC"; then
1.62 paf 2061: echo "$as_me:$LINENO: result: $YACC" >&5
2062: echo "${ECHO_T}$YACC" >&6
1.41 paf 2063: else
1.62 paf 2064: echo "$as_me:$LINENO: result: no" >&5
2065: echo "${ECHO_T}no" >&6
1.41 paf 2066: fi
2067:
1.62 paf 2068: test -n "$YACC" && break
1.41 paf 2069: done
2070: test -n "$YACC" || YACC="yacc"
2071:
2072: if test "$YACC" != "bison -y"; then
1.67 paf 2073: { echo "$as_me:$LINENO: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
1.62 paf 2074: echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 2075: else
1.67 paf 2076: echo "$as_me:$LINENO: checking bison version" >&5
1.62 paf 2077: echo $ECHO_N "checking bison version... $ECHO_C" >&6
1.67 paf 2078: oldIFS=$IFS; IFS=.
2079: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
2080: IFS=$oldIFS
2081: if test "$1" = "1" -a "$2" -lt "25"; then
2082: { echo "$as_me:$LINENO: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
1.62 paf 2083: echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 2084: fi
2085: echo "$as_me:$LINENO: result: $1.$2 (ok)" >&5
1.62 paf 2086: echo "${ECHO_T}$1.$2 (ok)" >&6
2087: fi
2088:
1.66 paf 2089: ac_ext=cc
2090: ac_cpp='$CXXCPP $CPPFLAGS'
2091: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.62 paf 2094: if test -n "$ac_tool_prefix"; then
1.66 paf 2095: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2096: do
2097: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2098: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.62 paf 2099: echo "$as_me:$LINENO: checking for $ac_word" >&5
2100: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2101: if test "${ac_cv_prog_CXX+set}" = set; then
1.62 paf 2102: echo $ECHO_N "(cached) $ECHO_C" >&6
2103: else
1.66 paf 2104: if test -n "$CXX"; then
2105: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 2106: else
2107: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108: for as_dir in $PATH
2109: do
2110: IFS=$as_save_IFS
2111: test -z "$as_dir" && as_dir=.
2112: for ac_exec_ext in '' $ac_executable_extensions; do
2113: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2114: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.62 paf 2115: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116: break 2
2117: fi
2118: done
2119: done
2120:
2121: fi
2122: fi
1.66 paf 2123: CXX=$ac_cv_prog_CXX
2124: if test -n "$CXX"; then
2125: echo "$as_me:$LINENO: result: $CXX" >&5
2126: echo "${ECHO_T}$CXX" >&6
1.62 paf 2127: else
2128: echo "$as_me:$LINENO: result: no" >&5
2129: echo "${ECHO_T}no" >&6
1.41 paf 2130: fi
2131:
1.66 paf 2132: test -n "$CXX" && break
2133: done
1.62 paf 2134: fi
1.66 paf 2135: if test -z "$CXX"; then
2136: ac_ct_CXX=$CXX
2137: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2138: do
2139: # Extract the first word of "$ac_prog", so it can be a program name with args.
2140: set dummy $ac_prog; ac_word=$2
1.62 paf 2141: echo "$as_me:$LINENO: checking for $ac_word" >&5
2142: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2143: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.62 paf 2144: echo $ECHO_N "(cached) $ECHO_C" >&6
2145: else
1.66 paf 2146: if test -n "$ac_ct_CXX"; then
2147: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 2148: else
2149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150: for as_dir in $PATH
2151: do
2152: IFS=$as_save_IFS
2153: test -z "$as_dir" && as_dir=.
2154: for ac_exec_ext in '' $ac_executable_extensions; do
2155: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2156: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.62 paf 2157: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158: break 2
2159: fi
2160: done
2161: done
2162:
2163: fi
2164: fi
1.66 paf 2165: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2166: if test -n "$ac_ct_CXX"; then
2167: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2168: echo "${ECHO_T}$ac_ct_CXX" >&6
1.62 paf 2169: else
2170: echo "$as_me:$LINENO: result: no" >&5
2171: echo "${ECHO_T}no" >&6
2172: fi
2173:
1.66 paf 2174: test -n "$ac_ct_CXX" && break
2175: done
2176: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2177:
2178: CXX=$ac_ct_CXX
1.62 paf 2179: fi
2180:
1.66 paf 2181:
2182: # Provide some information about the compiler.
2183: echo "$as_me:$LINENO:" \
2184: "checking for C++ compiler version" >&5
2185: ac_compiler=`set X $ac_compile; echo $2`
2186: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187: (eval $ac_compiler --version </dev/null >&5) 2>&5
2188: ac_status=$?
2189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190: (exit $ac_status); }
2191: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192: (eval $ac_compiler -v </dev/null >&5) 2>&5
2193: ac_status=$?
2194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195: (exit $ac_status); }
2196: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197: (eval $ac_compiler -V </dev/null >&5) 2>&5
2198: ac_status=$?
2199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200: (exit $ac_status); }
2201:
2202: cat >conftest.$ac_ext <<_ACEOF
2203: /* confdefs.h. */
2204: _ACEOF
2205: cat confdefs.h >>conftest.$ac_ext
2206: cat >>conftest.$ac_ext <<_ACEOF
2207: /* end confdefs.h. */
2208:
2209: int
2210: main ()
2211: {
2212:
2213: ;
2214: return 0;
2215: }
2216: _ACEOF
2217: ac_clean_files_save=$ac_clean_files
2218: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219: # Try to create an executable without -o first, disregard a.out.
2220: # It will help us diagnose broken compilers, and finding out an intuition
2221: # of exeext.
1.86 paf 2222: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2223: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.66 paf 2224: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226: (eval $ac_link_default) 2>&5
2227: ac_status=$?
2228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229: (exit $ac_status); }; then
2230: # Find the output, starting from the most likely. This scheme is
2231: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232: # resort.
2233:
2234: # Be careful to initialize this variable, since it used to be cached.
2235: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236: ac_cv_exeext=
2237: # b.out is created by i960 compilers.
2238: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.62 paf 2239: do
1.66 paf 2240: test -f "$ac_file" || continue
2241: case $ac_file in
2242: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.86 paf 2243: ;;
1.66 paf 2244: conftest.$ac_ext )
1.86 paf 2245: # This is the source file.
2246: ;;
1.66 paf 2247: [ab].out )
1.86 paf 2248: # We found the default executable, but exeext='' is most
2249: # certainly right.
2250: break;;
1.66 paf 2251: *.* )
1.86 paf 2252: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253: # FIXME: I believe we export ac_cv_exeext for Libtool,
2254: # but it would be cool to find out if it's true. Does anybody
2255: # maintain Libtool? --akim.
2256: export ac_cv_exeext
2257: break;;
1.66 paf 2258: * )
1.86 paf 2259: break;;
1.66 paf 2260: esac
1.62 paf 2261: done
1.66 paf 2262: else
2263: echo "$as_me: failed program was:" >&5
2264: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 2265:
1.66 paf 2266: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2267: See \`config.log' for more details." >&5
2268: echo "$as_me: error: C++ compiler cannot create executables
2269: See \`config.log' for more details." >&2;}
2270: { (exit 77); exit 77; }; }
1.1 paf 2271: fi
1.66 paf 2272:
2273: ac_exeext=$ac_cv_exeext
2274: echo "$as_me:$LINENO: result: $ac_file" >&5
2275: echo "${ECHO_T}$ac_file" >&6
2276:
2277: # Check the compiler produces executables we can run. If not, either
2278: # the compiler is broken, or we cross compile.
2279: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2280: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2281: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282: # If not cross compiling, check that we can run a simple program.
2283: if test "$cross_compiling" != yes; then
2284: if { ac_try='./$ac_file'
2285: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286: (eval $ac_try) 2>&5
2287: ac_status=$?
2288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289: (exit $ac_status); }; }; then
2290: cross_compiling=no
2291: else
2292: if test "$cross_compiling" = maybe; then
2293: cross_compiling=yes
2294: else
2295: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2296: If you meant to cross compile, use \`--host'.
2297: See \`config.log' for more details." >&5
2298: echo "$as_me: error: cannot run C++ compiled programs.
2299: If you meant to cross compile, use \`--host'.
2300: See \`config.log' for more details." >&2;}
2301: { (exit 1); exit 1; }; }
2302: fi
2303: fi
1.1 paf 2304: fi
1.66 paf 2305: echo "$as_me:$LINENO: result: yes" >&5
2306: echo "${ECHO_T}yes" >&6
1.62 paf 2307:
1.66 paf 2308: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309: ac_clean_files=$ac_clean_files_save
2310: # Check the compiler produces executables we can run. If not, either
1.62 paf 2311: # the compiler is broken, or we cross compile.
2312: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315: echo "${ECHO_T}$cross_compiling" >&6
2316:
2317: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320: (eval $ac_link) 2>&5
2321: ac_status=$?
2322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323: (exit $ac_status); }; then
2324: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2326: # work properly (i.e., refer to `conftest.exe'), while it won't with
2327: # `rm'.
2328: for ac_file in conftest.exe conftest conftest.*; do
2329: test -f "$ac_file" || continue
2330: case $ac_file in
2331: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 2333: export ac_cv_exeext
2334: break;;
1.62 paf 2335: * ) break;;
2336: esac
2337: done
2338: else
2339: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340: See \`config.log' for more details." >&5
2341: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342: See \`config.log' for more details." >&2;}
2343: { (exit 1); exit 1; }; }
2344: fi
2345:
2346: rm -f conftest$ac_cv_exeext
2347: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348: echo "${ECHO_T}$ac_cv_exeext" >&6
2349:
2350: rm -f conftest.$ac_ext
2351: EXEEXT=$ac_cv_exeext
2352: ac_exeext=$EXEEXT
2353: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355: if test "${ac_cv_objext+set}" = set; then
2356: echo $ECHO_N "(cached) $ECHO_C" >&6
2357: else
2358: cat >conftest.$ac_ext <<_ACEOF
2359: /* confdefs.h. */
2360: _ACEOF
2361: cat confdefs.h >>conftest.$ac_ext
2362: cat >>conftest.$ac_ext <<_ACEOF
2363: /* end confdefs.h. */
2364:
2365: int
2366: main ()
2367: {
2368:
2369: ;
2370: return 0;
2371: }
2372: _ACEOF
2373: rm -f conftest.o conftest.obj
2374: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375: (eval $ac_compile) 2>&5
2376: ac_status=$?
2377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378: (exit $ac_status); }; then
2379: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380: case $ac_file in
2381: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383: break;;
2384: esac
2385: done
2386: else
2387: echo "$as_me: failed program was:" >&5
2388: sed 's/^/| /' conftest.$ac_ext >&5
2389:
2390: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391: See \`config.log' for more details." >&5
2392: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393: See \`config.log' for more details." >&2;}
2394: { (exit 1); exit 1; }; }
2395: fi
2396:
2397: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398: fi
1.66 paf 2399: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400: echo "${ECHO_T}$ac_cv_objext" >&6
2401: OBJEXT=$ac_cv_objext
2402: ac_objext=$OBJEXT
2403: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2404: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2405: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.62 paf 2406: echo $ECHO_N "(cached) $ECHO_C" >&6
2407: else
1.66 paf 2408: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 2409: /* confdefs.h. */
2410: _ACEOF
2411: cat confdefs.h >>conftest.$ac_ext
2412: cat >>conftest.$ac_ext <<_ACEOF
2413: /* end confdefs.h. */
1.66 paf 2414:
1.62 paf 2415: int
2416: main ()
2417: {
1.66 paf 2418: #ifndef __GNUC__
2419: choke me
2420: #endif
2421:
1.62 paf 2422: ;
2423: return 0;
2424: }
2425: _ACEOF
1.66 paf 2426: rm -f conftest.$ac_objext
1.62 paf 2427: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2428: (eval $ac_compile) 2>conftest.er1
1.62 paf 2429: ac_status=$?
1.86 paf 2430: grep -v '^ *+' conftest.er1 >conftest.err
2431: rm -f conftest.er1
2432: cat conftest.err >&5
1.62 paf 2433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434: (exit $ac_status); } &&
1.86 paf 2435: { ac_try='test -z "$ac_cxx_werror_flag"
2436: || test ! -s conftest.err'
2437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438: (eval $ac_try) 2>&5
2439: ac_status=$?
2440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441: (exit $ac_status); }; } &&
2442: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2443: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444: (eval $ac_try) 2>&5
2445: ac_status=$?
2446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447: (exit $ac_status); }; }; then
1.66 paf 2448: ac_compiler_gnu=yes
1.62 paf 2449: else
2450: echo "$as_me: failed program was:" >&5
2451: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2452:
1.66 paf 2453: ac_compiler_gnu=no
1.1 paf 2454: fi
1.86 paf 2455: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2456: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 2457:
2458: fi
1.66 paf 2459: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2460: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2461: GXX=`test $ac_compiler_gnu = yes && echo yes`
2462: ac_test_CXXFLAGS=${CXXFLAGS+set}
2463: ac_save_CXXFLAGS=$CXXFLAGS
2464: CXXFLAGS="-g"
2465: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2466: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2467: if test "${ac_cv_prog_cxx_g+set}" = set; then
2468: echo $ECHO_N "(cached) $ECHO_C" >&6
2469: else
2470: cat >conftest.$ac_ext <<_ACEOF
2471: /* confdefs.h. */
2472: _ACEOF
2473: cat confdefs.h >>conftest.$ac_ext
2474: cat >>conftest.$ac_ext <<_ACEOF
2475: /* end confdefs.h. */
1.1 paf 2476:
1.66 paf 2477: int
2478: main ()
2479: {
1.1 paf 2480:
1.66 paf 2481: ;
2482: return 0;
2483: }
1.62 paf 2484: _ACEOF
2485: rm -f conftest.$ac_objext
2486: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2487: (eval $ac_compile) 2>conftest.er1
1.62 paf 2488: ac_status=$?
1.86 paf 2489: grep -v '^ *+' conftest.er1 >conftest.err
2490: rm -f conftest.er1
2491: cat conftest.err >&5
1.62 paf 2492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493: (exit $ac_status); } &&
1.86 paf 2494: { ac_try='test -z "$ac_cxx_werror_flag"
2495: || test ! -s conftest.err'
2496: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497: (eval $ac_try) 2>&5
2498: ac_status=$?
2499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500: (exit $ac_status); }; } &&
2501: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503: (eval $ac_try) 2>&5
2504: ac_status=$?
2505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506: (exit $ac_status); }; }; then
1.66 paf 2507: ac_cv_prog_cxx_g=yes
2508: else
2509: echo "$as_me: failed program was:" >&5
2510: sed 's/^/| /' conftest.$ac_ext >&5
2511:
2512: ac_cv_prog_cxx_g=no
2513: fi
1.86 paf 2514: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2515: fi
2516: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2517: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2518: if test "$ac_test_CXXFLAGS" = set; then
2519: CXXFLAGS=$ac_save_CXXFLAGS
2520: elif test $ac_cv_prog_cxx_g = yes; then
2521: if test "$GXX" = yes; then
2522: CXXFLAGS="-g -O2"
2523: else
2524: CXXFLAGS="-g"
2525: fi
2526: else
2527: if test "$GXX" = yes; then
2528: CXXFLAGS="-O2"
2529: else
2530: CXXFLAGS=
2531: fi
2532: fi
2533: for ac_declaration in \
1.86 paf 2534: '' \
1.62 paf 2535: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2536: 'extern "C" void std::exit (int); using std::exit;' \
2537: 'extern "C" void exit (int) throw ();' \
2538: 'extern "C" void exit (int);' \
2539: 'void exit (int);'
1.1 paf 2540: do
1.62 paf 2541: cat >conftest.$ac_ext <<_ACEOF
2542: /* confdefs.h. */
2543: _ACEOF
2544: cat confdefs.h >>conftest.$ac_ext
2545: cat >>conftest.$ac_ext <<_ACEOF
2546: /* end confdefs.h. */
1.86 paf 2547: $ac_declaration
1.62 paf 2548: #include <stdlib.h>
2549: int
2550: main ()
2551: {
2552: exit (42);
2553: ;
2554: return 0;
2555: }
2556: _ACEOF
2557: rm -f conftest.$ac_objext
2558: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2559: (eval $ac_compile) 2>conftest.er1
1.62 paf 2560: ac_status=$?
1.86 paf 2561: grep -v '^ *+' conftest.er1 >conftest.err
2562: rm -f conftest.er1
2563: cat conftest.err >&5
1.62 paf 2564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565: (exit $ac_status); } &&
1.86 paf 2566: { ac_try='test -z "$ac_cxx_werror_flag"
2567: || test ! -s conftest.err'
2568: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569: (eval $ac_try) 2>&5
2570: ac_status=$?
2571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572: (exit $ac_status); }; } &&
2573: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2574: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575: (eval $ac_try) 2>&5
2576: ac_status=$?
2577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578: (exit $ac_status); }; }; then
2579: :
1.1 paf 2580: else
1.62 paf 2581: echo "$as_me: failed program was:" >&5
2582: sed 's/^/| /' conftest.$ac_ext >&5
2583:
2584: continue
2585: fi
1.86 paf 2586: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2587: cat >conftest.$ac_ext <<_ACEOF
2588: /* confdefs.h. */
2589: _ACEOF
2590: cat confdefs.h >>conftest.$ac_ext
2591: cat >>conftest.$ac_ext <<_ACEOF
2592: /* end confdefs.h. */
2593: $ac_declaration
2594: int
2595: main ()
2596: {
2597: exit (42);
2598: ;
2599: return 0;
2600: }
2601: _ACEOF
2602: rm -f conftest.$ac_objext
2603: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2604: (eval $ac_compile) 2>conftest.er1
1.62 paf 2605: ac_status=$?
1.86 paf 2606: grep -v '^ *+' conftest.er1 >conftest.err
2607: rm -f conftest.er1
2608: cat conftest.err >&5
1.62 paf 2609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610: (exit $ac_status); } &&
1.86 paf 2611: { ac_try='test -z "$ac_cxx_werror_flag"
2612: || test ! -s conftest.err'
2613: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614: (eval $ac_try) 2>&5
2615: ac_status=$?
2616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617: (exit $ac_status); }; } &&
2618: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2619: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620: (eval $ac_try) 2>&5
2621: ac_status=$?
2622: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623: (exit $ac_status); }; }; then
2624: break
1.1 paf 2625: else
1.62 paf 2626: echo "$as_me: failed program was:" >&5
2627: sed 's/^/| /' conftest.$ac_ext >&5
2628:
1.1 paf 2629: fi
1.86 paf 2630: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2631: done
2632: rm -f conftest*
2633: if test -n "$ac_declaration"; then
2634: echo '#ifdef __cplusplus' >>confdefs.h
2635: echo $ac_declaration >>confdefs.h
2636: echo '#endif' >>confdefs.h
1.1 paf 2637: fi
1.62 paf 2638:
2639: ac_ext=c
2640: ac_cpp='$CPP $CPPFLAGS'
2641: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 2644: DEPDIR="${am__leading_dot}deps"
1.62 paf 2645:
2646: ac_config_commands="$ac_config_commands depfiles"
2647:
2648:
2649: am_make=${MAKE-make}
2650: cat > confinc << 'END'
1.86 paf 2651: am__doit:
1.62 paf 2652: @echo done
1.86 paf 2653: .PHONY: am__doit
1.62 paf 2654: END
2655: # If we don't find an include directive, just comment out the code.
2656: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2657: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2658: am__include="#"
2659: am__quote=
2660: _am_result=none
2661: # First try GNU make style include.
2662: echo "include confinc" > confmf
2663: # We grep out `Entering directory' and `Leaving directory'
2664: # messages which can occur if `w' ends up in MAKEFLAGS.
2665: # In particular we don't look at `^make:' because GNU make might
2666: # be invoked under some other name (usually "gmake"), in which
2667: # case it prints its new name instead of `make'.
2668: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2669: am__include=include
2670: am__quote=
2671: _am_result=GNU
2672: fi
2673: # Now try BSD make style include.
2674: if test "$am__include" = "#"; then
2675: echo '.include "confinc"' > confmf
2676: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2677: am__include=.include
2678: am__quote="\""
2679: _am_result=BSD
2680: fi
2681: fi
2682:
2683:
2684: echo "$as_me:$LINENO: result: $_am_result" >&5
2685: echo "${ECHO_T}$_am_result" >&6
2686: rm -f confinc confmf
2687:
2688: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2689: if test "${enable_dependency_tracking+set}" = set; then
2690: enableval="$enable_dependency_tracking"
2691:
2692: fi;
2693: if test "x$enable_dependency_tracking" != xno; then
2694: am_depcomp="$ac_aux_dir/depcomp"
2695: AMDEPBACKSLASH='\'
1.1 paf 2696: fi
2697:
1.62 paf 2698:
2699: if test "x$enable_dependency_tracking" != xno; then
2700: AMDEP_TRUE=
2701: AMDEP_FALSE='#'
2702: else
2703: AMDEP_TRUE='#'
2704: AMDEP_FALSE=
2705: fi
1.1 paf 2706:
2707:
2708:
2709:
1.66 paf 2710: depcc="$CXX" am_compiler_list=
1.1 paf 2711:
1.62 paf 2712: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2713: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 2714: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.62 paf 2715: echo $ECHO_N "(cached) $ECHO_C" >&6
2716: else
2717: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2718: # We make a subdir and do the tests there. Otherwise we can end up
2719: # making bogus files that we don't know about and never remove. For
2720: # instance it was reported that on HP-UX the gcc test will end up
2721: # making a dummy file named `D' -- because `-MD' means `put the output
2722: # in D'.
2723: mkdir conftest.dir
2724: # Copy depcomp to subdir because otherwise we won't find it if we're
2725: # using a relative directory.
2726: cp "$am_depcomp" conftest.dir
2727: cd conftest.dir
1.86 paf 2728: # We will build objects and dependencies in a subdirectory because
2729: # it helps to detect inapplicable dependency modes. For instance
2730: # both Tru64's cc and ICC support -MD to output dependencies as a
2731: # side effect of compilation, but ICC will put the dependencies in
2732: # the current directory while Tru64 will put them in the object
2733: # directory.
2734: mkdir sub
1.1 paf 2735:
1.66 paf 2736: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 2737: if test "$am_compiler_list" = ""; then
2738: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 2739: fi
1.62 paf 2740: for depmode in $am_compiler_list; do
1.86 paf 2741: # Setup a source with many dependencies, because some compilers
2742: # like to wrap large dependency lists on column 80 (with \), and
2743: # we should not choose a depcomp mode which is confused by this.
2744: #
1.62 paf 2745: # We need to recreate these files for each test, as the compiler may
2746: # overwrite some of them when testing with obscure command lines.
2747: # This happens at least with the AIX C compiler.
1.86 paf 2748: : > sub/conftest.c
2749: for i in 1 2 3 4 5 6; do
2750: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2751: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2752: # Solaris 8's {/usr,}/bin/sh.
2753: touch sub/conftst$i.h
2754: done
2755: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 2756:
2757: case $depmode in
2758: nosideeffect)
2759: # after this tag, mechanisms are not by side-effect, so they'll
2760: # only be used when explicitly requested
2761: if test "x$enable_dependency_tracking" = xyes; then
2762: continue
2763: else
2764: break
2765: fi
2766: ;;
2767: none) break ;;
2768: esac
2769: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2770: # mode. It turns out that the SunPro C++ compiler does not properly
2771: # handle `-M -o', and we need to detect this.
2772: if depmode=$depmode \
1.86 paf 2773: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2774: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2775: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2776: >/dev/null 2>conftest.err &&
2777: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2778: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 2779: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 2780: # icc doesn't choke on unknown options, it will just issue warnings
2781: # or remarks (even with -Werror). So we grep stderr for any message
2782: # that says an option was ignored or not supported.
2783: # When given -MP, icc 7.0 and 7.1 complain thusly:
2784: # icc: Command line warning: ignoring option '-M'; no argument required
2785: # The diagnosis changed in icc 8.0:
2786: # icc: Command line remark: option '-MP' not supported
2787: if (grep 'ignoring option' conftest.err ||
2788: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2789: am_cv_CXX_dependencies_compiler_type=$depmode
2790: break
2791: fi
1.66 paf 2792: fi
2793: done
2794:
2795: cd ..
2796: rm -rf conftest.dir
2797: else
2798: am_cv_CXX_dependencies_compiler_type=none
2799: fi
2800:
2801: fi
2802: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2803: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2804: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2805:
2806:
2807:
2808: if
2809: test "x$enable_dependency_tracking" != xno \
2810: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2811: am__fastdepCXX_TRUE=
2812: am__fastdepCXX_FALSE='#'
2813: else
2814: am__fastdepCXX_TRUE='#'
2815: am__fastdepCXX_FALSE=
2816: fi
2817:
2818:
2819: ac_ext=c
2820: ac_cpp='$CPP $CPPFLAGS'
2821: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824: if test -n "$ac_tool_prefix"; then
2825: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2826: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2827: echo "$as_me:$LINENO: checking for $ac_word" >&5
2828: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829: if test "${ac_cv_prog_CC+set}" = set; then
2830: echo $ECHO_N "(cached) $ECHO_C" >&6
2831: else
2832: if test -n "$CC"; then
2833: ac_cv_prog_CC="$CC" # Let the user override the test.
2834: else
2835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836: for as_dir in $PATH
2837: do
2838: IFS=$as_save_IFS
2839: test -z "$as_dir" && as_dir=.
2840: for ac_exec_ext in '' $ac_executable_extensions; do
2841: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2843: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844: break 2
2845: fi
2846: done
2847: done
2848:
2849: fi
2850: fi
2851: CC=$ac_cv_prog_CC
2852: if test -n "$CC"; then
2853: echo "$as_me:$LINENO: result: $CC" >&5
2854: echo "${ECHO_T}$CC" >&6
2855: else
2856: echo "$as_me:$LINENO: result: no" >&5
2857: echo "${ECHO_T}no" >&6
2858: fi
2859:
2860: fi
2861: if test -z "$ac_cv_prog_CC"; then
2862: ac_ct_CC=$CC
2863: # Extract the first word of "gcc", so it can be a program name with args.
2864: set dummy gcc; ac_word=$2
2865: echo "$as_me:$LINENO: checking for $ac_word" >&5
2866: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2868: echo $ECHO_N "(cached) $ECHO_C" >&6
2869: else
2870: if test -n "$ac_ct_CC"; then
2871: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872: else
2873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874: for as_dir in $PATH
2875: do
2876: IFS=$as_save_IFS
2877: test -z "$as_dir" && as_dir=.
2878: for ac_exec_ext in '' $ac_executable_extensions; do
2879: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880: ac_cv_prog_ac_ct_CC="gcc"
2881: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882: break 2
2883: fi
2884: done
2885: done
2886:
2887: fi
2888: fi
2889: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2890: if test -n "$ac_ct_CC"; then
2891: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2892: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2893: else
1.66 paf 2894: echo "$as_me:$LINENO: result: no" >&5
2895: echo "${ECHO_T}no" >&6
1.62 paf 2896: fi
2897:
1.66 paf 2898: CC=$ac_ct_CC
2899: else
2900: CC="$ac_cv_prog_CC"
1.1 paf 2901: fi
1.62 paf 2902:
1.66 paf 2903: if test -z "$CC"; then
2904: if test -n "$ac_tool_prefix"; then
2905: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2906: set dummy ${ac_tool_prefix}cc; ac_word=$2
2907: echo "$as_me:$LINENO: checking for $ac_word" >&5
2908: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909: if test "${ac_cv_prog_CC+set}" = set; then
2910: echo $ECHO_N "(cached) $ECHO_C" >&6
2911: else
2912: if test -n "$CC"; then
2913: ac_cv_prog_CC="$CC" # Let the user override the test.
2914: else
2915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916: for as_dir in $PATH
2917: do
2918: IFS=$as_save_IFS
2919: test -z "$as_dir" && as_dir=.
2920: for ac_exec_ext in '' $ac_executable_extensions; do
2921: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922: ac_cv_prog_CC="${ac_tool_prefix}cc"
2923: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924: break 2
2925: fi
2926: done
2927: done
1.62 paf 2928:
1.66 paf 2929: fi
2930: fi
2931: CC=$ac_cv_prog_CC
2932: if test -n "$CC"; then
2933: echo "$as_me:$LINENO: result: $CC" >&5
2934: echo "${ECHO_T}$CC" >&6
1.62 paf 2935: else
1.66 paf 2936: echo "$as_me:$LINENO: result: no" >&5
2937: echo "${ECHO_T}no" >&6
1.1 paf 2938: fi
2939:
1.66 paf 2940: fi
2941: if test -z "$ac_cv_prog_CC"; then
2942: ac_ct_CC=$CC
2943: # Extract the first word of "cc", so it can be a program name with args.
2944: set dummy cc; ac_word=$2
2945: echo "$as_me:$LINENO: checking for $ac_word" >&5
2946: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2948: echo $ECHO_N "(cached) $ECHO_C" >&6
2949: else
2950: if test -n "$ac_ct_CC"; then
2951: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952: else
2953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954: for as_dir in $PATH
2955: do
2956: IFS=$as_save_IFS
2957: test -z "$as_dir" && as_dir=.
2958: for ac_exec_ext in '' $ac_executable_extensions; do
2959: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960: ac_cv_prog_ac_ct_CC="cc"
2961: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962: break 2
2963: fi
2964: done
2965: done
1.62 paf 2966:
1.66 paf 2967: fi
2968: fi
2969: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970: if test -n "$ac_ct_CC"; then
2971: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2972: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2973: else
1.66 paf 2974: echo "$as_me:$LINENO: result: no" >&5
2975: echo "${ECHO_T}no" >&6
2976: fi
1.62 paf 2977:
1.66 paf 2978: CC=$ac_ct_CC
1.1 paf 2979: else
1.66 paf 2980: CC="$ac_cv_prog_CC"
2981: fi
1.62 paf 2982:
1.1 paf 2983: fi
1.66 paf 2984: if test -z "$CC"; then
2985: # Extract the first word of "cc", so it can be a program name with args.
2986: set dummy cc; ac_word=$2
2987: echo "$as_me:$LINENO: checking for $ac_word" >&5
2988: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989: if test "${ac_cv_prog_CC+set}" = set; then
2990: echo $ECHO_N "(cached) $ECHO_C" >&6
2991: else
2992: if test -n "$CC"; then
2993: ac_cv_prog_CC="$CC" # Let the user override the test.
2994: else
2995: ac_prog_rejected=no
2996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997: for as_dir in $PATH
2998: do
2999: IFS=$as_save_IFS
3000: test -z "$as_dir" && as_dir=.
3001: for ac_exec_ext in '' $ac_executable_extensions; do
3002: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004: ac_prog_rejected=yes
3005: continue
3006: fi
3007: ac_cv_prog_CC="cc"
3008: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009: break 2
3010: fi
3011: done
1.62 paf 3012: done
3013:
1.66 paf 3014: if test $ac_prog_rejected = yes; then
3015: # We found a bogon in the path, so make sure we never use it.
3016: set dummy $ac_cv_prog_CC
3017: shift
3018: if test $# != 0; then
3019: # We chose a different compiler from the bogus one.
3020: # However, it has the same basename, so the bogon will be chosen
3021: # first if we set CC to just the basename; use the full file name.
3022: shift
3023: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024: fi
3025: fi
3026: fi
3027: fi
3028: CC=$ac_cv_prog_CC
3029: if test -n "$CC"; then
3030: echo "$as_me:$LINENO: result: $CC" >&5
3031: echo "${ECHO_T}$CC" >&6
3032: else
3033: echo "$as_me:$LINENO: result: no" >&5
3034: echo "${ECHO_T}no" >&6
1.1 paf 3035: fi
3036:
1.66 paf 3037: fi
3038: if test -z "$CC"; then
3039: if test -n "$ac_tool_prefix"; then
3040: for ac_prog in cl
1.62 paf 3041: do
3042: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3043: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3044: echo "$as_me:$LINENO: checking for $ac_word" >&5
3045: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3046: if test "${ac_cv_prog_CC+set}" = set; then
1.62 paf 3047: echo $ECHO_N "(cached) $ECHO_C" >&6
3048: else
1.66 paf 3049: if test -n "$CC"; then
3050: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 3051: else
3052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053: for as_dir in $PATH
3054: do
3055: IFS=$as_save_IFS
3056: test -z "$as_dir" && as_dir=.
3057: for ac_exec_ext in '' $ac_executable_extensions; do
3058: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3059: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.62 paf 3060: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061: break 2
3062: fi
3063: done
3064: done
1.1 paf 3065:
1.62 paf 3066: fi
3067: fi
1.66 paf 3068: CC=$ac_cv_prog_CC
3069: if test -n "$CC"; then
3070: echo "$as_me:$LINENO: result: $CC" >&5
3071: echo "${ECHO_T}$CC" >&6
1.1 paf 3072: else
1.62 paf 3073: echo "$as_me:$LINENO: result: no" >&5
3074: echo "${ECHO_T}no" >&6
1.1 paf 3075: fi
3076:
1.66 paf 3077: test -n "$CC" && break
1.62 paf 3078: done
3079: fi
1.66 paf 3080: if test -z "$CC"; then
3081: ac_ct_CC=$CC
3082: for ac_prog in cl
1.62 paf 3083: do
3084: # Extract the first word of "$ac_prog", so it can be a program name with args.
3085: set dummy $ac_prog; ac_word=$2
3086: echo "$as_me:$LINENO: checking for $ac_word" >&5
3087: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3088: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.62 paf 3089: echo $ECHO_N "(cached) $ECHO_C" >&6
3090: else
1.66 paf 3091: if test -n "$ac_ct_CC"; then
3092: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 3093: else
1.62 paf 3094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095: for as_dir in $PATH
3096: do
3097: IFS=$as_save_IFS
3098: test -z "$as_dir" && as_dir=.
3099: for ac_exec_ext in '' $ac_executable_extensions; do
3100: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3101: ac_cv_prog_ac_ct_CC="$ac_prog"
1.62 paf 3102: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103: break 2
3104: fi
3105: done
3106: done
3107:
3108: fi
3109: fi
1.66 paf 3110: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111: if test -n "$ac_ct_CC"; then
3112: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3113: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3114: else
1.62 paf 3115: echo "$as_me:$LINENO: result: no" >&5
3116: echo "${ECHO_T}no" >&6
1.1 paf 3117: fi
3118:
1.66 paf 3119: test -n "$ac_ct_CC" && break
3120: done
3121:
3122: CC=$ac_ct_CC
3123: fi
3124:
3125: fi
1.62 paf 3126:
1.1 paf 3127:
1.66 paf 3128: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3129: See \`config.log' for more details." >&5
3130: echo "$as_me: error: no acceptable C compiler found in \$PATH
3131: See \`config.log' for more details." >&2;}
3132: { (exit 1); exit 1; }; }
1.62 paf 3133:
3134: # Provide some information about the compiler.
3135: echo "$as_me:$LINENO:" \
1.66 paf 3136: "checking for C compiler version" >&5
1.62 paf 3137: ac_compiler=`set X $ac_compile; echo $2`
3138: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3139: (eval $ac_compiler --version </dev/null >&5) 2>&5
3140: ac_status=$?
3141: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142: (exit $ac_status); }
3143: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3144: (eval $ac_compiler -v </dev/null >&5) 2>&5
3145: ac_status=$?
3146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147: (exit $ac_status); }
3148: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3149: (eval $ac_compiler -V </dev/null >&5) 2>&5
3150: ac_status=$?
3151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152: (exit $ac_status); }
3153:
1.66 paf 3154: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3156: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.62 paf 3157: echo $ECHO_N "(cached) $ECHO_C" >&6
3158: else
3159: cat >conftest.$ac_ext <<_ACEOF
3160: /* confdefs.h. */
3161: _ACEOF
3162: cat confdefs.h >>conftest.$ac_ext
3163: cat >>conftest.$ac_ext <<_ACEOF
3164: /* end confdefs.h. */
3165:
3166: int
3167: main ()
3168: {
3169: #ifndef __GNUC__
3170: choke me
3171: #endif
3172:
3173: ;
3174: return 0;
3175: }
3176: _ACEOF
3177: rm -f conftest.$ac_objext
3178: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3179: (eval $ac_compile) 2>conftest.er1
1.62 paf 3180: ac_status=$?
1.86 paf 3181: grep -v '^ *+' conftest.er1 >conftest.err
3182: rm -f conftest.er1
3183: cat conftest.err >&5
1.62 paf 3184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185: (exit $ac_status); } &&
1.86 paf 3186: { ac_try='test -z "$ac_c_werror_flag"
3187: || test ! -s conftest.err'
3188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189: (eval $ac_try) 2>&5
3190: ac_status=$?
3191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192: (exit $ac_status); }; } &&
3193: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195: (eval $ac_try) 2>&5
3196: ac_status=$?
3197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198: (exit $ac_status); }; }; then
3199: ac_compiler_gnu=yes
3200: else
3201: echo "$as_me: failed program was:" >&5
3202: sed 's/^/| /' conftest.$ac_ext >&5
3203:
3204: ac_compiler_gnu=no
3205: fi
1.86 paf 3206: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3207: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 3208:
3209: fi
1.66 paf 3210: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3211: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3212: GCC=`test $ac_compiler_gnu = yes && echo yes`
3213: ac_test_CFLAGS=${CFLAGS+set}
3214: ac_save_CFLAGS=$CFLAGS
3215: CFLAGS="-g"
3216: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3217: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3218: if test "${ac_cv_prog_cc_g+set}" = set; then
1.62 paf 3219: echo $ECHO_N "(cached) $ECHO_C" >&6
3220: else
3221: cat >conftest.$ac_ext <<_ACEOF
3222: /* confdefs.h. */
3223: _ACEOF
3224: cat confdefs.h >>conftest.$ac_ext
3225: cat >>conftest.$ac_ext <<_ACEOF
3226: /* end confdefs.h. */
3227:
3228: int
3229: main ()
3230: {
3231:
3232: ;
3233: return 0;
3234: }
3235: _ACEOF
3236: rm -f conftest.$ac_objext
3237: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3238: (eval $ac_compile) 2>conftest.er1
1.62 paf 3239: ac_status=$?
1.86 paf 3240: grep -v '^ *+' conftest.er1 >conftest.err
3241: rm -f conftest.er1
3242: cat conftest.err >&5
1.62 paf 3243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244: (exit $ac_status); } &&
1.86 paf 3245: { ac_try='test -z "$ac_c_werror_flag"
3246: || test ! -s conftest.err'
3247: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248: (eval $ac_try) 2>&5
3249: ac_status=$?
3250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251: (exit $ac_status); }; } &&
3252: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3253: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254: (eval $ac_try) 2>&5
3255: ac_status=$?
3256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257: (exit $ac_status); }; }; then
1.66 paf 3258: ac_cv_prog_cc_g=yes
1.62 paf 3259: else
3260: echo "$as_me: failed program was:" >&5
3261: sed 's/^/| /' conftest.$ac_ext >&5
3262:
1.66 paf 3263: ac_cv_prog_cc_g=no
1.62 paf 3264: fi
1.86 paf 3265: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3266: fi
1.66 paf 3267: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3269: if test "$ac_test_CFLAGS" = set; then
3270: CFLAGS=$ac_save_CFLAGS
3271: elif test $ac_cv_prog_cc_g = yes; then
3272: if test "$GCC" = yes; then
3273: CFLAGS="-g -O2"
1.1 paf 3274: else
1.66 paf 3275: CFLAGS="-g"
1.1 paf 3276: fi
3277: else
1.66 paf 3278: if test "$GCC" = yes; then
3279: CFLAGS="-O2"
1.1 paf 3280: else
1.66 paf 3281: CFLAGS=
1.1 paf 3282: fi
3283: fi
1.66 paf 3284: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3285: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3286: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3287: echo $ECHO_N "(cached) $ECHO_C" >&6
3288: else
3289: ac_cv_prog_cc_stdc=no
3290: ac_save_CC=$CC
3291: cat >conftest.$ac_ext <<_ACEOF
3292: /* confdefs.h. */
3293: _ACEOF
3294: cat confdefs.h >>conftest.$ac_ext
3295: cat >>conftest.$ac_ext <<_ACEOF
3296: /* end confdefs.h. */
3297: #include <stdarg.h>
3298: #include <stdio.h>
3299: #include <sys/types.h>
3300: #include <sys/stat.h>
3301: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302: struct buf { int x; };
3303: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304: static char *e (p, i)
3305: char **p;
3306: int i;
3307: {
3308: return p[i];
3309: }
3310: static char *f (char * (*g) (char **, int), char **p, ...)
3311: {
3312: char *s;
3313: va_list v;
3314: va_start (v,p);
3315: s = g (p, va_arg (v,int));
3316: va_end (v);
3317: return s;
3318: }
1.86 paf 3319:
3320: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321: function prototypes and stuff, but not '\xHH' hex character constants.
3322: These don't provoke an error unfortunately, instead are silently treated
3323: as 'x'. The following induces an error, until -std1 is added to get
3324: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325: array size at least. It's necessary to write '\x00'==0 to get something
3326: that's true only with -std1. */
3327: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3328:
1.66 paf 3329: int test (int i, double x);
3330: struct s1 {int (*f) (int a);};
3331: struct s2 {int (*f) (double a);};
3332: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333: int argc;
3334: char **argv;
3335: int
3336: main ()
3337: {
3338: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3339: ;
3340: return 0;
3341: }
3342: _ACEOF
3343: # Don't try gcc -ansi; that turns off useful extensions and
3344: # breaks some systems' header files.
3345: # AIX -qlanglvl=ansi
3346: # Ultrix and OSF/1 -std1
3347: # HP-UX 10.20 and later -Ae
3348: # HP-UX older versions -Aa -D_HPUX_SOURCE
3349: # SVR4 -Xc -D__EXTENSIONS__
3350: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351: do
3352: CC="$ac_save_CC $ac_arg"
3353: rm -f conftest.$ac_objext
3354: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3355: (eval $ac_compile) 2>conftest.er1
1.66 paf 3356: ac_status=$?
1.86 paf 3357: grep -v '^ *+' conftest.er1 >conftest.err
3358: rm -f conftest.er1
3359: cat conftest.err >&5
1.66 paf 3360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361: (exit $ac_status); } &&
1.86 paf 3362: { ac_try='test -z "$ac_c_werror_flag"
3363: || test ! -s conftest.err'
3364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365: (eval $ac_try) 2>&5
3366: ac_status=$?
3367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368: (exit $ac_status); }; } &&
3369: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3370: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371: (eval $ac_try) 2>&5
3372: ac_status=$?
3373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374: (exit $ac_status); }; }; then
3375: ac_cv_prog_cc_stdc=$ac_arg
3376: break
3377: else
3378: echo "$as_me: failed program was:" >&5
3379: sed 's/^/| /' conftest.$ac_ext >&5
3380:
3381: fi
1.86 paf 3382: rm -f conftest.err conftest.$ac_objext
1.66 paf 3383: done
3384: rm -f conftest.$ac_ext conftest.$ac_objext
3385: CC=$ac_save_CC
3386:
3387: fi
3388:
3389: case "x$ac_cv_prog_cc_stdc" in
3390: x|xno)
3391: echo "$as_me:$LINENO: result: none needed" >&5
3392: echo "${ECHO_T}none needed" >&6 ;;
3393: *)
3394: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3395: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3396: CC="$CC $ac_cv_prog_cc_stdc" ;;
3397: esac
3398:
3399: # Some people use a C++ compiler to compile C. Since we use `exit',
3400: # in C++ we need to declare it. In case someone uses the same compiler
3401: # for both compiling C and C++ we need to have the C++ compiler decide
3402: # the declaration of exit, since it's the most demanding environment.
3403: cat >conftest.$ac_ext <<_ACEOF
3404: #ifndef __cplusplus
3405: choke me
3406: #endif
3407: _ACEOF
3408: rm -f conftest.$ac_objext
3409: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3410: (eval $ac_compile) 2>conftest.er1
1.66 paf 3411: ac_status=$?
1.86 paf 3412: grep -v '^ *+' conftest.er1 >conftest.err
3413: rm -f conftest.er1
3414: cat conftest.err >&5
1.66 paf 3415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416: (exit $ac_status); } &&
1.86 paf 3417: { ac_try='test -z "$ac_c_werror_flag"
3418: || test ! -s conftest.err'
3419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420: (eval $ac_try) 2>&5
3421: ac_status=$?
3422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423: (exit $ac_status); }; } &&
3424: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426: (eval $ac_try) 2>&5
3427: ac_status=$?
3428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429: (exit $ac_status); }; }; then
3430: for ac_declaration in \
1.86 paf 3431: '' \
1.62 paf 3432: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3433: 'extern "C" void std::exit (int); using std::exit;' \
3434: 'extern "C" void exit (int) throw ();' \
3435: 'extern "C" void exit (int);' \
3436: 'void exit (int);'
3437: do
3438: cat >conftest.$ac_ext <<_ACEOF
3439: /* confdefs.h. */
3440: _ACEOF
3441: cat confdefs.h >>conftest.$ac_ext
3442: cat >>conftest.$ac_ext <<_ACEOF
3443: /* end confdefs.h. */
1.86 paf 3444: $ac_declaration
1.62 paf 3445: #include <stdlib.h>
3446: int
3447: main ()
3448: {
3449: exit (42);
3450: ;
3451: return 0;
3452: }
3453: _ACEOF
3454: rm -f conftest.$ac_objext
3455: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3456: (eval $ac_compile) 2>conftest.er1
1.62 paf 3457: ac_status=$?
1.86 paf 3458: grep -v '^ *+' conftest.er1 >conftest.err
3459: rm -f conftest.er1
3460: cat conftest.err >&5
1.62 paf 3461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462: (exit $ac_status); } &&
1.86 paf 3463: { ac_try='test -z "$ac_c_werror_flag"
3464: || test ! -s conftest.err'
3465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466: (eval $ac_try) 2>&5
3467: ac_status=$?
3468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469: (exit $ac_status); }; } &&
3470: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472: (eval $ac_try) 2>&5
3473: ac_status=$?
3474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475: (exit $ac_status); }; }; then
3476: :
3477: else
3478: echo "$as_me: failed program was:" >&5
3479: sed 's/^/| /' conftest.$ac_ext >&5
3480:
3481: continue
3482: fi
1.86 paf 3483: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3484: cat >conftest.$ac_ext <<_ACEOF
3485: /* confdefs.h. */
3486: _ACEOF
3487: cat confdefs.h >>conftest.$ac_ext
3488: cat >>conftest.$ac_ext <<_ACEOF
3489: /* end confdefs.h. */
3490: $ac_declaration
3491: int
3492: main ()
3493: {
3494: exit (42);
3495: ;
3496: return 0;
3497: }
3498: _ACEOF
3499: rm -f conftest.$ac_objext
3500: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3501: (eval $ac_compile) 2>conftest.er1
1.62 paf 3502: ac_status=$?
1.86 paf 3503: grep -v '^ *+' conftest.er1 >conftest.err
3504: rm -f conftest.er1
3505: cat conftest.err >&5
1.62 paf 3506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507: (exit $ac_status); } &&
1.86 paf 3508: { ac_try='test -z "$ac_c_werror_flag"
3509: || test ! -s conftest.err'
3510: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511: (eval $ac_try) 2>&5
3512: ac_status=$?
3513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514: (exit $ac_status); }; } &&
3515: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517: (eval $ac_try) 2>&5
3518: ac_status=$?
3519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520: (exit $ac_status); }; }; then
3521: break
3522: else
3523: echo "$as_me: failed program was:" >&5
3524: sed 's/^/| /' conftest.$ac_ext >&5
3525:
3526: fi
1.86 paf 3527: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3528: done
3529: rm -f conftest*
3530: if test -n "$ac_declaration"; then
3531: echo '#ifdef __cplusplus' >>confdefs.h
3532: echo $ac_declaration >>confdefs.h
3533: echo '#endif' >>confdefs.h
3534: fi
3535:
1.66 paf 3536: else
3537: echo "$as_me: failed program was:" >&5
3538: sed 's/^/| /' conftest.$ac_ext >&5
3539:
3540: fi
1.86 paf 3541: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3542: ac_ext=c
3543: ac_cpp='$CPP $CPPFLAGS'
3544: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547:
1.66 paf 3548: depcc="$CC" am_compiler_list=
1.62 paf 3549:
3550: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3551: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 3552: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.62 paf 3553: echo $ECHO_N "(cached) $ECHO_C" >&6
3554: else
3555: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3556: # We make a subdir and do the tests there. Otherwise we can end up
3557: # making bogus files that we don't know about and never remove. For
3558: # instance it was reported that on HP-UX the gcc test will end up
3559: # making a dummy file named `D' -- because `-MD' means `put the output
3560: # in D'.
3561: mkdir conftest.dir
3562: # Copy depcomp to subdir because otherwise we won't find it if we're
3563: # using a relative directory.
3564: cp "$am_depcomp" conftest.dir
3565: cd conftest.dir
1.86 paf 3566: # We will build objects and dependencies in a subdirectory because
3567: # it helps to detect inapplicable dependency modes. For instance
3568: # both Tru64's cc and ICC support -MD to output dependencies as a
3569: # side effect of compilation, but ICC will put the dependencies in
3570: # the current directory while Tru64 will put them in the object
3571: # directory.
3572: mkdir sub
1.62 paf 3573:
1.66 paf 3574: am_cv_CC_dependencies_compiler_type=none
1.62 paf 3575: if test "$am_compiler_list" = ""; then
3576: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3577: fi
3578: for depmode in $am_compiler_list; do
1.86 paf 3579: # Setup a source with many dependencies, because some compilers
3580: # like to wrap large dependency lists on column 80 (with \), and
3581: # we should not choose a depcomp mode which is confused by this.
3582: #
1.62 paf 3583: # We need to recreate these files for each test, as the compiler may
3584: # overwrite some of them when testing with obscure command lines.
3585: # This happens at least with the AIX C compiler.
1.86 paf 3586: : > sub/conftest.c
3587: for i in 1 2 3 4 5 6; do
3588: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3589: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3590: # Solaris 8's {/usr,}/bin/sh.
3591: touch sub/conftst$i.h
3592: done
3593: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3594:
3595: case $depmode in
3596: nosideeffect)
3597: # after this tag, mechanisms are not by side-effect, so they'll
3598: # only be used when explicitly requested
3599: if test "x$enable_dependency_tracking" = xyes; then
3600: continue
3601: else
3602: break
3603: fi
3604: ;;
3605: none) break ;;
3606: esac
3607: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3608: # mode. It turns out that the SunPro C++ compiler does not properly
3609: # handle `-M -o', and we need to detect this.
1.66 paf 3610: if depmode=$depmode \
1.86 paf 3611: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3612: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3613: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3614: >/dev/null 2>conftest.err &&
3615: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 3617: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3618: # icc doesn't choke on unknown options, it will just issue warnings
3619: # or remarks (even with -Werror). So we grep stderr for any message
3620: # that says an option was ignored or not supported.
3621: # When given -MP, icc 7.0 and 7.1 complain thusly:
3622: # icc: Command line warning: ignoring option '-M'; no argument required
3623: # The diagnosis changed in icc 8.0:
3624: # icc: Command line remark: option '-MP' not supported
3625: if (grep 'ignoring option' conftest.err ||
3626: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627: am_cv_CC_dependencies_compiler_type=$depmode
3628: break
3629: fi
1.66 paf 3630: fi
3631: done
3632:
3633: cd ..
3634: rm -rf conftest.dir
3635: else
3636: am_cv_CC_dependencies_compiler_type=none
3637: fi
3638:
3639: fi
3640: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3642: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643:
3644:
3645:
3646: if
3647: test "x$enable_dependency_tracking" != xno \
3648: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3649: am__fastdepCC_TRUE=
3650: am__fastdepCC_FALSE='#'
3651: else
3652: am__fastdepCC_TRUE='#'
3653: am__fastdepCC_FALSE=
3654: fi
3655:
3656:
1.128 moko 3657:
1.66 paf 3658: ac_ext=c
3659: ac_cpp='$CPP $CPPFLAGS'
3660: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663:
1.67 paf 3664:
1.62 paf 3665:
1.128 moko 3666: echo "$as_me:$LINENO: checking for dynamic-link library extension" >&5
3667: echo $ECHO_N "checking for dynamic-link library extension... $ECHO_C" >&6
3668: case "$host_os" in
3669: cygwin)
3670: dll_extension=dll
3671: ;;
3672: *)
3673: dll_extension=so
1.66 paf 3674: esac
1.128 moko 3675: echo "$as_me:$LINENO: result: $dll_extension" >&5
3676: echo "${ECHO_T}$dll_extension" >&6
1.1 paf 3677:
1.71 paf 3678:
3679:
3680:
3681: # Check whether --with-build-warnings or --without-build-warnings was given.
3682: if test "${with_build_warnings+set}" = set; then
3683: withval="$with_build_warnings"
3684: { echo "$as_me:$LINENO: WARNING: enabling compiler warnings" >&5
3685: echo "$as_me: WARNING: enabling compiler warnings" >&2;}
3686: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3687:
3688: fi;
1.1 paf 3689:
3690:
1.67 paf 3691: # Check whether --with-assertions or --without-assertions was given.
3692: if test "${with_assertions+set}" = set; then
3693: withval="$with_assertions"
3694: { echo "$as_me:$LINENO: WARNING: enabling assertions" >&5
3695: echo "$as_me: WARNING: enabling assertions" >&2;}
3696:
3697: else
3698:
3699: cat >>confdefs.h <<\_ACEOF
3700: #define NDEBUG
3701: _ACEOF
3702:
3703:
3704: fi;
3705:
1.94 misha 3706:
1.128 moko 3707: # Check whether --with-pathlink or --without-pathlink was given.
3708: if test "${with_pathlink+set}" = set; then
3709: withval="$with_pathlink"
3710: LD_PATHLINK=$withval
3711:
3712: fi;
3713:
3714:
3715: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
3716: if test "${with_sjlj_exceptions+set}" = set; then
3717: withval="$with_sjlj_exceptions"
3718:
3719: cat >>confdefs.h <<\_ACEOF
3720: #define PA_WITH_SJLJ_EXCEPTIONS
3721: _ACEOF
3722:
3723:
3724: fi;
3725:
3726:
1.60 paf 3727: # Check whether --enable-safe-mode or --disable-safe-mode was given.
3728: if test "${enable_safe_mode+set}" = set; then
3729: enableval="$enable_safe_mode"
1.62 paf 3730:
1.67 paf 3731: SAFE_MODE=$enableval
1.60 paf 3732:
1.1 paf 3733:
1.62 paf 3734: fi;
1.128 moko 3735:
1.60 paf 3736: if test "$SAFE_MODE" = "no"; then
1.62 paf 3737: { echo "$as_me:$LINENO: WARNING: enabling reading of files belonging to group+user other then effective" >&5
3738: echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 3739: else
1.62 paf 3740:
3741: cat >>confdefs.h <<\_ACEOF
3742: #define PA_SAFE_MODE
3743: _ACEOF
1.1 paf 3744:
3745: fi
3746:
1.94 misha 3747:
1.13 paf 3748: # Check whether --enable-execs or --disable-execs was given.
3749: if test "${enable_execs+set}" = set; then
3750: enableval="$enable_execs"
1.62 paf 3751:
1.13 paf 3752: if test "$enableval" = "no"; then
1.62 paf 3753: { echo "$as_me:$LINENO: WARNING: disabling file execs" >&5
3754: echo "$as_me: WARNING: disabling file execs" >&2;}
3755:
3756: cat >>confdefs.h <<\_ACEOF
3757: #define NO_PA_EXECS
3758: _ACEOF
1.13 paf 3759:
3760: fi
3761:
3762:
1.62 paf 3763: fi;
1.13 paf 3764:
1.60 paf 3765:
1.94 misha 3766: # Check whether --enable-stringstream or --disable-stringstream was given.
3767: if test "${enable_stringstream+set}" = set; then
3768: enableval="$enable_stringstream"
3769:
3770: if test "$enableval" = "no"; then
3771: { echo "$as_me:$LINENO: WARNING: disabling stringstream usage" >&5
3772: echo "$as_me: WARNING: disabling stringstream usage" >&2;}
3773:
3774: cat >>confdefs.h <<\_ACEOF
3775: #define NO_STRINGSTREAM
3776: _ACEOF
3777:
3778: fi
3779:
3780:
3781: fi;
3782:
3783:
1.128 moko 3784: GC_LIB_NAME=gc
1.62 paf 3785:
1.128 moko 3786: # Check whether --with-shared-gc or --without-shared-gc was given.
3787: if test "${with_shared_gc+set}" = set; then
3788: withval="$with_shared_gc"
1.17 paf 3789:
1.128 moko 3790: GC_LIBS="-L$withval -l$GC_LIB_NAME"
1.17 paf 3791:
1.128 moko 3792: fi;
1.62 paf 3793:
1.128 moko 3794: # Check whether --with-static-gc or --without-static-gc was given.
3795: if test "${with_static_gc+set}" = set; then
3796: withval="$with_static_gc"
1.17 paf 3797:
1.128 moko 3798: GC_LIBS="$withval/lib$GC_LIB_NAME.a"
1.17 paf 3799:
1.128 moko 3800: fi;
3801: if test -z "$GC_LIBS"; then
3802: #undefined? use any found in system
3803: GC_LIBS="-l$GC_LIB_NAME"
3804: { echo "$as_me:$LINENO: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&5
3805: echo "$as_me: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&2;}
3806: fi
1.17 paf 3807:
1.128 moko 3808: echo "$as_me:$LINENO: checking for libgc" >&5
3809: echo $ECHO_N "checking for libgc... $ECHO_C" >&6
1.67 paf 3810: SAVE_LIBS=$LIBS
3811: LIBS="$LIBS $GC_LIBS"
1.128 moko 3812:
1.67 paf 3813: cat >conftest.$ac_ext <<_ACEOF
3814: /* confdefs.h. */
3815: _ACEOF
3816: cat confdefs.h >>conftest.$ac_ext
3817: cat >>conftest.$ac_ext <<_ACEOF
3818: /* end confdefs.h. */
3819:
3820: extern int GC_dont_gc;
3821:
3822: int
3823: main ()
3824: {
3825:
3826: GC_dont_gc=0;
3827:
3828: ;
3829: return 0;
3830: }
3831: _ACEOF
3832: rm -f conftest.$ac_objext conftest$ac_exeext
3833: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 3834: (eval $ac_link) 2>conftest.er1
1.67 paf 3835: ac_status=$?
1.86 paf 3836: grep -v '^ *+' conftest.er1 >conftest.err
3837: rm -f conftest.er1
3838: cat conftest.err >&5
1.67 paf 3839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840: (exit $ac_status); } &&
1.86 paf 3841: { ac_try='test -z "$ac_c_werror_flag"
3842: || test ! -s conftest.err'
3843: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844: (eval $ac_try) 2>&5
3845: ac_status=$?
3846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847: (exit $ac_status); }; } &&
3848: { ac_try='test -s conftest$ac_exeext'
1.67 paf 3849: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850: (eval $ac_try) 2>&5
3851: ac_status=$?
3852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853: (exit $ac_status); }; }; then
3854: echo "$as_me:$LINENO: result: yes" >&5
3855: echo "${ECHO_T}yes" >&6
3856:
3857: else
3858: echo "$as_me: failed program was:" >&5
3859: sed 's/^/| /' conftest.$ac_ext >&5
3860:
3861: echo "$as_me:$LINENO: result: no" >&5
3862: echo "${ECHO_T}no" >&6
3863: { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&5
3864: echo "$as_me: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&2;}
3865: { (exit 1); exit 1; }; }
3866:
3867: fi
1.86 paf 3868: rm -f conftest.err conftest.$ac_objext \
3869: conftest$ac_exeext conftest.$ac_ext
1.67 paf 3870:
3871: LIBS=$SAVE_LIBS
3872:
1.1 paf 3873:
1.15 paf 3874:
1.100 misha 3875: # Check whether --with-static-pcre or --without-static-pcre was given.
3876: if test "${with_static_pcre+set}" = set; then
3877: withval="$with_static_pcre"
3878:
3879: PCRE=$withval
3880: PCREINC="$PCRE/include"
3881: PCRELIB="$PCRE/lib"
3882:
3883: if test \! -d $PCREINC -o \! -d $PCRELIB; then
3884: { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5
3885: echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;}
3886: { (exit 1); exit 1; }; }
3887: fi
3888:
3889: PCRE_INCLUDES="-I$PCREINC"
3890: PCRE_LIBS="$PCRELIB/libpcre.a"
3891:
3892: fi;
3893:
3894:
3895:
3896:
3897:
1.66 paf 3898: # Check whether --with-shared-xml or --without-shared-xml was given.
3899: if test "${with_shared_xml+set}" = set; then
3900: withval="$with_shared_xml"
3901:
1.67 paf 3902: GNOME_XML=$withval
3903: XMLBIN="$GNOME_XML/bin"
3904: XMLINC="$GNOME_XML/include"
3905: XMLLIB="$GNOME_XML/lib"
1.66 paf 3906:
1.67 paf 3907: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
3908: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 3909: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3910: { (exit 1); exit 1; }; }
1.67 paf 3911: fi
1.66 paf 3912:
3913:
3914: cat >>confdefs.h <<\_ACEOF
3915: #define XML
3916: _ACEOF
3917:
3918:
1.67 paf 3919: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3920: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3921: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3922:
1.90 paf 3923: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
3924: XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.67 paf 3925: if test \! -z "$LD_PATHLINK"; then
1.66 paf 3926: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.67 paf 3927: fi
1.66 paf 3928:
3929: fi;
3930:
3931: # Check whether --with-static-xml or --without-static-xml was given.
3932: if test "${with_static_xml+set}" = set; then
3933: withval="$with_static_xml"
3934:
1.67 paf 3935: GNOME_XML=$withval
3936: XMLBIN="$GNOME_XML/bin"
3937: XMLINC="$GNOME_XML/include"
3938: XMLLIB="$GNOME_XML/lib"
1.66 paf 3939:
1.67 paf 3940: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
3941: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 3942: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3943: { (exit 1); exit 1; }; }
1.67 paf 3944: fi
1.66 paf 3945:
3946:
3947: cat >>confdefs.h <<\_ACEOF
3948: #define XML
3949: _ACEOF
3950:
3951:
1.90 paf 3952: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
3953: XML_LIBS="$XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a"
3954:
3955: fi;
1.66 paf 3956:
3957:
3958:
3959:
1.90 paf 3960: # Check whether --with-glib-config or --without-glib-config was given.
3961: if test "${with_glib_config+set}" = set; then
3962: withval="$with_glib_config"
3963: GLIB_CONFIG=$withval
3964:
3965: fi;
1.66 paf 3966:
3967:
3968: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
3969: if test "${with_shared_mailreceive+set}" = set; then
3970: withval="$with_shared_mailreceive"
3971:
1.67 paf 3972: GNOME_MIME=$withval
3973: MIMEBIN="$GNOME_MIME/bin"
3974: MIMEINC="$GNOME_MIME/include"
3975: MIMELIB="$GNOME_MIME/lib"
1.66 paf 3976:
1.67 paf 3977: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
3978: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 3979: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
3980: { (exit 1); exit 1; }; }
1.67 paf 3981: fi
1.66 paf 3982:
3983:
3984: cat >>confdefs.h <<\_ACEOF
3985: #define WITH_MAILRECEIVE
3986: _ACEOF
3987:
3988:
1.67 paf 3989: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.66 paf 3990:
1.67 paf 3991: if test -z "$GLIB_CONFIG"; then
1.90 paf 3992: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 3993: if test \! -x $GLIB_CONFIG; then
1.90 paf 3994: GLIB_CONFIG=$XMLBIN/glib2-config
3995: if test \! -x $GLIB_CONFIG; then
3996: GLIB_CONFIG=glib-config
3997: fi
1.67 paf 3998: fi
3999: fi
4000: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
4001: GLIB_LIBS=`$GLIB_CONFIG --libs`
1.66 paf 4002:
1.67 paf 4003: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4004: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
4005: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4006: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.67 paf 4007: fi
1.66 paf 4008:
4009: fi;
4010:
4011: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
4012: if test "${with_static_mailreceive+set}" = set; then
4013: withval="$with_static_mailreceive"
4014:
1.67 paf 4015: GNOME_MIME=$withval
4016: MIMEBIN="$GNOME_MIME/bin"
4017: MIMEINC="$GNOME_MIME/include"
4018: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4019:
1.67 paf 4020: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4021: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4022: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4023: { (exit 1); exit 1; }; }
1.67 paf 4024: fi
1.66 paf 4025:
4026:
4027: cat >>confdefs.h <<\_ACEOF
4028: #define WITH_MAILRECEIVE
4029: _ACEOF
4030:
4031:
1.67 paf 4032: if test -z "$GLIB_CONFIG"; then
1.90 paf 4033: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4034: if test \! -x $GLIB_CONFIG; then
1.90 paf 4035: GLIB_CONFIG=$XMLBIN/glib2-config
4036: if test \! -x $GLIB_CONFIG; then
4037: GLIB_CONFIG=glib-config
4038: fi
1.67 paf 4039: fi
4040: fi
4041: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.66 paf 4042:
1.67 paf 4043: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
4044: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
4045: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4046: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1.66 paf 4047:
4048: fi;
4049:
4050:
4051:
4052:
4053:
4054: # Check whether --with-sendmail or --without-sendmail was given.
4055: if test "${with_sendmail+set}" = set; then
4056: withval="$with_sendmail"
4057:
4058: cat >>confdefs.h <<_ACEOF
4059: #define PA_FORCED_SENDMAIL "$withval"
4060: _ACEOF
4061:
4062:
4063: fi;
4064:
4065:
4066:
1.122 moko 4067: # Check whether --with-apache or --without-apache was given.
4068: if test "${with_apache+set}" = set; then
4069: withval="$with_apache"
4070:
4071: APXS=$withval
4072:
4073: if test -z "$APXS" -o "$APXS" = "yes"; then
4074: APXS=`which apxs 2>/dev/null`
4075: fi;
4076:
4077: APACHE=`$APXS -q TARGET 2>/dev/null`
4078:
4079: if test -z "$APACHE"; then
1.132 moko 4080: APXS=`which apxs2 2>/dev/null`
4081: APACHE=`$APXS -q TARGET 2>/dev/null`
4082:
4083: if test -z "$APACHE"; then
4084: { { echo "$as_me:$LINENO: error: $APXS does not seem to be valid apache apxs utility path" >&5
1.122 moko 4085: echo "$as_me: error: $APXS does not seem to be valid apache apxs utility path" >&2;}
1.66 paf 4086: { (exit 1); exit 1; }; }
1.132 moko 4087: fi
1.67 paf 4088: fi
1.7 paf 4089:
1.122 moko 4090: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
4091: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
4092: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
4093: APACHE_CFLAGS=`$APXS -q CFLAGS`
4094:
1.62 paf 4095: fi;
1.7 paf 4096:
4097:
1.62 paf 4098:
1.122 moko 4099:
4100:
4101: if test -n "$APACHE"; then
4102: COMPILE_APACHE_MODULE_TRUE=
4103: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 4104: else
1.122 moko 4105: COMPILE_APACHE_MODULE_TRUE='#'
4106: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 4107: fi
1.1 paf 4108:
4109:
4110:
1.62 paf 4111:
4112:
1.7 paf 4113:
1.1 paf 4114:
4115:
4116:
1.62 paf 4117:
1.128 moko 4118: case `pwd` in
4119: *\ * | *\ *)
4120: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4121: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4122: esac
4123:
4124:
4125:
4126: macro_version='2.4.2'
4127: macro_revision='1.3337'
4128:
4129:
4130:
4131:
4132:
4133:
4134:
4135:
4136:
4137:
4138:
4139:
4140:
4141: ltmain="$ac_aux_dir/ltmain.sh"
4142:
4143: # Backslashify metacharacters that are still active within
4144: # double-quoted strings.
4145: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 4146:
1.128 moko 4147: # Same as above, but do not quote variable references.
4148: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 4149:
1.128 moko 4150: # Sed substitution to delay expansion of an escaped shell variable in a
4151: # double_quote_subst'ed string.
4152: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 4153:
1.128 moko 4154: # Sed substitution to delay expansion of an escaped single quote.
4155: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 4156:
1.128 moko 4157: # Sed substitution to avoid accidental globbing in evaled expressions
4158: no_glob_subst='s/\*/\\\*/g'
1.86 paf 4159:
1.128 moko 4160: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4161: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4162: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 4163:
1.128 moko 4164: echo "$as_me:$LINENO: checking how to print strings" >&5
4165: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
4166: # Test print first, because it will be a builtin if present.
4167: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4168: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4169: ECHO='print -r --'
4170: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4171: ECHO='printf %s\n'
4172: else
4173: # Use this function as a fallback that always works.
4174: func_fallback_echo ()
4175: {
4176: eval 'cat <<_LTECHO_EOF
4177: $1
4178: _LTECHO_EOF'
4179: }
4180: ECHO='func_fallback_echo'
4181: fi
1.86 paf 4182:
1.128 moko 4183: # func_echo_all arg...
4184: # Invoke $ECHO with all args, space-separated.
4185: func_echo_all ()
1.66 paf 4186: {
1.128 moko 4187: $ECHO ""
1.66 paf 4188: }
1.10 paf 4189:
1.128 moko 4190: case "$ECHO" in
4191: printf*) echo "$as_me:$LINENO: result: printf" >&5
4192: echo "${ECHO_T}printf" >&6 ;;
4193: print*) echo "$as_me:$LINENO: result: print -r" >&5
4194: echo "${ECHO_T}print -r" >&6 ;;
4195: *) echo "$as_me:$LINENO: result: cat" >&5
4196: echo "${ECHO_T}cat" >&6 ;;
4197: esac
4198:
4199:
4200:
4201:
4202:
4203:
4204:
4205:
4206:
4207:
4208:
4209:
4210:
4211:
4212: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4213: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4214: if test "${lt_cv_path_SED+set}" = set; then
4215: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 4216: else
1.128 moko 4217: # Loop through the user's path and test for sed and gsed.
4218: # Then use that list of sed's as ones to test for truncation.
4219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220: for as_dir in $PATH
4221: do
4222: IFS=$as_save_IFS
4223: test -z "$as_dir" && as_dir=.
4224: for lt_ac_prog in sed gsed; do
4225: for ac_exec_ext in '' $ac_executable_extensions; do
4226: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4227: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4228: fi
4229: done
4230: done
4231: done
4232: IFS=$as_save_IFS
4233: lt_ac_max=0
4234: lt_ac_count=0
4235: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4236: # along with /bin/sed that truncates output.
4237: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4238: test ! -f $lt_ac_sed && continue
4239: cat /dev/null > conftest.in
4240: lt_ac_count=0
4241: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4242: # Check for GNU sed and select it if it is found.
4243: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4244: lt_cv_path_SED=$lt_ac_sed
4245: break
4246: fi
4247: while true; do
4248: cat conftest.in conftest.in >conftest.tmp
4249: mv conftest.tmp conftest.in
4250: cp conftest.in conftest.nl
4251: echo >>conftest.nl
4252: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4253: cmp -s conftest.out conftest.nl || break
4254: # 10000 chars as input seems more than enough
4255: test $lt_ac_count -gt 10 && break
4256: lt_ac_count=`expr $lt_ac_count + 1`
4257: if test $lt_ac_count -gt $lt_ac_max; then
4258: lt_ac_max=$lt_ac_count
4259: lt_cv_path_SED=$lt_ac_sed
4260: fi
4261: done
4262: done
1.10 paf 4263:
1.66 paf 4264: fi
1.10 paf 4265:
1.128 moko 4266: SED=$lt_cv_path_SED
4267:
4268: echo "$as_me:$LINENO: result: $SED" >&5
4269: echo "${ECHO_T}$SED" >&6
4270:
4271: test -z "$SED" && SED=sed
4272: Xsed="$SED -e 1s/^X//"
1.10 paf 4273:
1.128 moko 4274:
4275:
4276:
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284: echo "$as_me:$LINENO: checking for egrep" >&5
4285: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4286: if test "${ac_cv_prog_egrep+set}" = set; then
4287: echo $ECHO_N "(cached) $ECHO_C" >&6
4288: else
4289: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4290: then ac_cv_prog_egrep='grep -E'
4291: else ac_cv_prog_egrep='egrep'
4292: fi
4293: fi
4294: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4295: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4296: EGREP=$ac_cv_prog_egrep
4297:
4298:
4299: echo "$as_me:$LINENO: checking for fgrep" >&5
4300: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4301: if test "${ac_cv_prog_fgrep+set}" = set; then
4302: echo $ECHO_N "(cached) $ECHO_C" >&6
4303: else
4304: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4305: then ac_cv_prog_fgrep='grep -F'
4306: else ac_cv_prog_fgrep='fgrep'
4307: fi
4308: fi
4309: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4310: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4311: FGREP=$ac_cv_prog_fgrep
4312:
4313:
4314: test -z "$GREP" && GREP=grep
4315:
4316:
4317:
4318:
4319:
4320:
4321:
4322:
4323:
4324:
4325:
4326:
4327:
4328:
4329:
4330:
4331:
4332:
4333:
4334: # Check whether --with-gnu-ld or --without-gnu-ld was given.
4335: if test "${with_gnu_ld+set}" = set; then
4336: withval="$with_gnu_ld"
4337: test "$withval" = no || with_gnu_ld=yes
4338: else
4339: with_gnu_ld=no
4340: fi;
4341: ac_prog=ld
4342: if test "$GCC" = yes; then
4343: # Check if gcc -print-prog-name=ld gives a path.
4344: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4345: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4346: case $host in
4347: *-*-mingw*)
4348: # gcc leaves a trailing carriage return which upsets mingw
4349: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4350: *)
4351: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4352: esac
4353: case $ac_prog in
4354: # Accept absolute paths.
4355: [\\/]* | ?:[\\/]*)
4356: re_direlt='/[^/][^/]*/\.\./'
4357: # Canonicalize the pathname of ld
4358: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4359: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4360: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4361: done
4362: test -z "$LD" && LD="$ac_prog"
4363: ;;
4364: "")
4365: # If it fails, then pretend we aren't using GCC.
4366: ac_prog=ld
4367: ;;
4368: *)
4369: # If it is relative, then search for the first ld in PATH.
4370: with_gnu_ld=unknown
4371: ;;
4372: esac
4373: elif test "$with_gnu_ld" = yes; then
4374: echo "$as_me:$LINENO: checking for GNU ld" >&5
4375: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4376: else
4377: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4378: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4379: fi
4380: if test "${lt_cv_path_LD+set}" = set; then
4381: echo $ECHO_N "(cached) $ECHO_C" >&6
4382: else
4383: if test -z "$LD"; then
4384: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4385: for ac_dir in $PATH; do
4386: IFS="$lt_save_ifs"
4387: test -z "$ac_dir" && ac_dir=.
4388: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4389: lt_cv_path_LD="$ac_dir/$ac_prog"
4390: # Check to see if the program is GNU ld. I'd rather use --version,
4391: # but apparently some variants of GNU ld only accept -v.
4392: # Break only if it was the GNU/non-GNU ld that we prefer.
4393: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4394: *GNU* | *'with BFD'*)
4395: test "$with_gnu_ld" != no && break
4396: ;;
4397: *)
4398: test "$with_gnu_ld" != yes && break
4399: ;;
4400: esac
4401: fi
4402: done
4403: IFS="$lt_save_ifs"
4404: else
4405: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4406: fi
4407: fi
4408:
4409: LD="$lt_cv_path_LD"
4410: if test -n "$LD"; then
4411: echo "$as_me:$LINENO: result: $LD" >&5
4412: echo "${ECHO_T}$LD" >&6
4413: else
4414: echo "$as_me:$LINENO: result: no" >&5
4415: echo "${ECHO_T}no" >&6
4416: fi
4417: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4418: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4419: { (exit 1); exit 1; }; }
4420: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4421: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4422: if test "${lt_cv_prog_gnu_ld+set}" = set; then
4423: echo $ECHO_N "(cached) $ECHO_C" >&6
4424: else
4425: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4426: case `$LD -v 2>&1 </dev/null` in
4427: *GNU* | *'with BFD'*)
4428: lt_cv_prog_gnu_ld=yes
4429: ;;
4430: *)
4431: lt_cv_prog_gnu_ld=no
4432: ;;
4433: esac
4434: fi
4435: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4436: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4437: with_gnu_ld=$lt_cv_prog_gnu_ld
4438:
4439:
4440:
4441:
4442:
4443:
4444:
4445:
4446:
4447: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4448: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4449: if test "${lt_cv_path_NM+set}" = set; then
4450: echo $ECHO_N "(cached) $ECHO_C" >&6
4451: else
4452: if test -n "$NM"; then
4453: # Let the user override the test.
4454: lt_cv_path_NM="$NM"
4455: else
4456: lt_nm_to_check="${ac_tool_prefix}nm"
4457: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4458: lt_nm_to_check="$lt_nm_to_check nm"
4459: fi
4460: for lt_tmp_nm in $lt_nm_to_check; do
4461: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4463: IFS="$lt_save_ifs"
4464: test -z "$ac_dir" && ac_dir=.
4465: tmp_nm="$ac_dir/$lt_tmp_nm"
4466: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4467: # Check to see if the nm accepts a BSD-compat flag.
4468: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4469: # nm: unknown option "B" ignored
4470: # Tru64's nm complains that /dev/null is an invalid object file
4471: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4472: */dev/null* | *'Invalid file or object type'*)
4473: lt_cv_path_NM="$tmp_nm -B"
4474: break
4475: ;;
4476: *)
4477: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4478: */dev/null*)
4479: lt_cv_path_NM="$tmp_nm -p"
4480: break
4481: ;;
4482: *)
4483: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4484: continue # so that we can try to find one that supports BSD flags
4485: ;;
4486: esac
4487: ;;
4488: esac
4489: fi
4490: done
4491: IFS="$lt_save_ifs"
4492: done
4493: : ${lt_cv_path_NM=no}
4494: fi
4495: fi
4496: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4497: echo "${ECHO_T}$lt_cv_path_NM" >&6
4498: if test "$lt_cv_path_NM" != "no"; then
4499: NM="$lt_cv_path_NM"
4500: else
4501: # Didn't find any BSD compatible name lister, look for dumpbin.
4502: if test -n "$DUMPBIN"; then :
4503: # Let the user override the test.
4504: else
4505: if test -n "$ac_tool_prefix"; then
4506: for ac_prog in dumpbin "link -dump"
4507: do
4508: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510: echo "$as_me:$LINENO: checking for $ac_word" >&5
4511: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4513: echo $ECHO_N "(cached) $ECHO_C" >&6
4514: else
4515: if test -n "$DUMPBIN"; then
4516: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4517: else
4518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519: for as_dir in $PATH
4520: do
4521: IFS=$as_save_IFS
4522: test -z "$as_dir" && as_dir=.
4523: for ac_exec_ext in '' $ac_executable_extensions; do
4524: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4526: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527: break 2
4528: fi
4529: done
4530: done
4531:
4532: fi
4533: fi
4534: DUMPBIN=$ac_cv_prog_DUMPBIN
4535: if test -n "$DUMPBIN"; then
4536: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4537: echo "${ECHO_T}$DUMPBIN" >&6
4538: else
4539: echo "$as_me:$LINENO: result: no" >&5
4540: echo "${ECHO_T}no" >&6
4541: fi
4542:
4543: test -n "$DUMPBIN" && break
4544: done
4545: fi
4546: if test -z "$DUMPBIN"; then
4547: ac_ct_DUMPBIN=$DUMPBIN
4548: for ac_prog in dumpbin "link -dump"
4549: do
4550: # Extract the first word of "$ac_prog", so it can be a program name with args.
4551: set dummy $ac_prog; ac_word=$2
4552: echo "$as_me:$LINENO: checking for $ac_word" >&5
4553: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4555: echo $ECHO_N "(cached) $ECHO_C" >&6
4556: else
4557: if test -n "$ac_ct_DUMPBIN"; then
4558: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4559: else
4560: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561: for as_dir in $PATH
4562: do
4563: IFS=$as_save_IFS
4564: test -z "$as_dir" && as_dir=.
4565: for ac_exec_ext in '' $ac_executable_extensions; do
4566: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4568: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569: break 2
4570: fi
4571: done
4572: done
4573:
4574: fi
4575: fi
4576: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4577: if test -n "$ac_ct_DUMPBIN"; then
4578: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4579: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4580: else
4581: echo "$as_me:$LINENO: result: no" >&5
4582: echo "${ECHO_T}no" >&6
4583: fi
4584:
4585: test -n "$ac_ct_DUMPBIN" && break
4586: done
4587: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4588:
4589: DUMPBIN=$ac_ct_DUMPBIN
4590: fi
4591:
4592: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4593: *COFF*)
4594: DUMPBIN="$DUMPBIN -symbols"
4595: ;;
4596: *)
4597: DUMPBIN=:
4598: ;;
4599: esac
4600: fi
4601:
4602: if test "$DUMPBIN" != ":"; then
4603: NM="$DUMPBIN"
4604: fi
4605: fi
4606: test -z "$NM" && NM=nm
4607:
4608:
4609:
4610:
4611:
4612:
4613: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4614: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4615: if test "${lt_cv_nm_interface+set}" = set; then
4616: echo $ECHO_N "(cached) $ECHO_C" >&6
4617: else
4618: lt_cv_nm_interface="BSD nm"
4619: echo "int some_variable = 0;" > conftest.$ac_ext
4620: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4621: (eval "$ac_compile" 2>conftest.err)
4622: cat conftest.err >&5
4623: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4624: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4625: cat conftest.err >&5
4626: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4627: cat conftest.out >&5
4628: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4629: lt_cv_nm_interface="MS dumpbin"
4630: fi
4631: rm -f conftest*
4632: fi
4633: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4634: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4635:
4636: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4637: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4638: LN_S=$as_ln_s
4639: if test "$LN_S" = "ln -s"; then
4640: echo "$as_me:$LINENO: result: yes" >&5
4641: echo "${ECHO_T}yes" >&6
4642: else
4643: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4644: echo "${ECHO_T}no, using $LN_S" >&6
4645: fi
4646:
4647: # find the maximum length of command line arguments
4648: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4649: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4650: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4651: echo $ECHO_N "(cached) $ECHO_C" >&6
4652: else
4653: i=0
4654: teststring="ABCD"
4655:
4656: case $build_os in
4657: msdosdjgpp*)
4658: # On DJGPP, this test can blow up pretty badly due to problems in libc
4659: # (any single argument exceeding 2000 bytes causes a buffer overrun
4660: # during glob expansion). Even if it were fixed, the result of this
4661: # check would be larger than it should be.
4662: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4663: ;;
4664:
4665: gnu*)
4666: # Under GNU Hurd, this test is not required because there is
4667: # no limit to the length of command line arguments.
4668: # Libtool will interpret -1 as no limit whatsoever
4669: lt_cv_sys_max_cmd_len=-1;
4670: ;;
4671:
4672: cygwin* | mingw* | cegcc*)
4673: # On Win9x/ME, this test blows up -- it succeeds, but takes
4674: # about 5 minutes as the teststring grows exponentially.
4675: # Worse, since 9x/ME are not pre-emptively multitasking,
4676: # you end up with a "frozen" computer, even though with patience
4677: # the test eventually succeeds (with a max line length of 256k).
4678: # Instead, let's just punt: use the minimum linelength reported by
4679: # all of the supported platforms: 8192 (on NT/2K/XP).
4680: lt_cv_sys_max_cmd_len=8192;
4681: ;;
4682:
4683: mint*)
4684: # On MiNT this can take a long time and run out of memory.
4685: lt_cv_sys_max_cmd_len=8192;
4686: ;;
4687:
4688: amigaos*)
4689: # On AmigaOS with pdksh, this test takes hours, literally.
4690: # So we just punt and use a minimum line length of 8192.
4691: lt_cv_sys_max_cmd_len=8192;
4692: ;;
4693:
4694: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4695: # This has been around since 386BSD, at least. Likely further.
4696: if test -x /sbin/sysctl; then
4697: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4698: elif test -x /usr/sbin/sysctl; then
4699: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4700: else
4701: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4702: fi
4703: # And add a safety zone
4704: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4705: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4706: ;;
4707:
4708: interix*)
4709: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4710: lt_cv_sys_max_cmd_len=196608
4711: ;;
4712:
4713: os2*)
4714: # The test takes a long time on OS/2.
4715: lt_cv_sys_max_cmd_len=8192
4716: ;;
4717:
4718: osf*)
4719: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4720: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4721: # nice to cause kernel panics so lets avoid the loop below.
4722: # First set a reasonable default.
4723: lt_cv_sys_max_cmd_len=16384
4724: #
4725: if test -x /sbin/sysconfig; then
4726: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4727: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4728: esac
4729: fi
4730: ;;
4731: sco3.2v5*)
4732: lt_cv_sys_max_cmd_len=102400
4733: ;;
4734: sysv5* | sco5v6* | sysv4.2uw2*)
4735: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4736: if test -n "$kargmax"; then
4737: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4738: else
4739: lt_cv_sys_max_cmd_len=32768
4740: fi
4741: ;;
4742: *)
4743: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4744: if test -n "$lt_cv_sys_max_cmd_len"; then
4745: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4746: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4747: else
4748: # Make teststring a little bigger before we do anything with it.
4749: # a 1K string should be a reasonable start.
4750: for i in 1 2 3 4 5 6 7 8 ; do
4751: teststring=$teststring$teststring
4752: done
4753: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4754: # If test is not a shell built-in, we'll probably end up computing a
4755: # maximum length that is only half of the actual maximum length, but
4756: # we can't tell.
4757: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4758: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4759: test $i != 17 # 1/2 MB should be enough
4760: do
4761: i=`expr $i + 1`
4762: teststring=$teststring$teststring
4763: done
4764: # Only check the string length outside the loop.
4765: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4766: teststring=
4767: # Add a significant safety factor because C++ compilers can tack on
4768: # massive amounts of additional arguments before passing them to the
4769: # linker. It appears as though 1/2 is a usable value.
4770: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4771: fi
4772: ;;
4773: esac
4774:
4775: fi
4776:
4777: if test -n $lt_cv_sys_max_cmd_len ; then
4778: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4779: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4780: else
4781: echo "$as_me:$LINENO: result: none" >&5
4782: echo "${ECHO_T}none" >&6
4783: fi
4784: max_cmd_len=$lt_cv_sys_max_cmd_len
4785:
4786:
4787:
4788:
4789:
4790:
4791: : ${CP="cp -f"}
4792: : ${MV="mv -f"}
4793: : ${RM="rm -f"}
4794:
4795: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4796: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4797: # Try some XSI features
4798: xsi_shell=no
4799: ( _lt_dummy="a/b/c"
4800: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4801: = c,a/b,b/c, \
4802: && eval 'test $(( 1 + 1 )) -eq 2 \
4803: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4804: && xsi_shell=yes
4805: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4806: echo "${ECHO_T}$xsi_shell" >&6
4807:
4808:
4809: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4810: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4811: lt_shell_append=no
4812: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4813: >/dev/null 2>&1 \
4814: && lt_shell_append=yes
4815: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4816: echo "${ECHO_T}$lt_shell_append" >&6
4817:
4818:
4819: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4820: lt_unset=unset
4821: else
4822: lt_unset=false
4823: fi
4824:
4825:
4826:
4827:
4828:
4829: # test EBCDIC or ASCII
4830: case `echo X|tr X '\101'` in
4831: A) # ASCII based system
4832: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4833: lt_SP2NL='tr \040 \012'
4834: lt_NL2SP='tr \015\012 \040\040'
4835: ;;
4836: *) # EBCDIC based system
4837: lt_SP2NL='tr \100 \n'
4838: lt_NL2SP='tr \r\n \100\100'
4839: ;;
4840: esac
4841:
4842:
4843:
4844:
4845:
4846:
4847:
4848:
4849:
4850: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4851: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4852: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4853: echo $ECHO_N "(cached) $ECHO_C" >&6
4854: else
4855: case $host in
4856: *-*-mingw* )
4857: case $build in
4858: *-*-mingw* ) # actually msys
4859: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4860: ;;
4861: *-*-cygwin* )
4862: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4863: ;;
4864: * ) # otherwise, assume *nix
4865: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4866: ;;
4867: esac
4868: ;;
4869: *-*-cygwin* )
4870: case $build in
4871: *-*-mingw* ) # actually msys
4872: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4873: ;;
4874: *-*-cygwin* )
4875: lt_cv_to_host_file_cmd=func_convert_file_noop
4876: ;;
4877: * ) # otherwise, assume *nix
4878: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4879: ;;
4880: esac
4881: ;;
4882: * ) # unhandled hosts (and "normal" native builds)
4883: lt_cv_to_host_file_cmd=func_convert_file_noop
4884: ;;
4885: esac
4886:
4887: fi
4888:
4889: to_host_file_cmd=$lt_cv_to_host_file_cmd
4890: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4891: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4892:
4893:
4894:
4895:
4896:
4897: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4898: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4899: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4900: echo $ECHO_N "(cached) $ECHO_C" >&6
4901: else
4902: #assume ordinary cross tools, or native build.
4903: lt_cv_to_tool_file_cmd=func_convert_file_noop
4904: case $host in
4905: *-*-mingw* )
4906: case $build in
4907: *-*-mingw* ) # actually msys
4908: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4909: ;;
4910: esac
4911: ;;
4912: esac
4913:
4914: fi
4915:
4916: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4917: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4918: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4919:
4920:
4921:
4922:
4923:
4924: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4925: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4926: if test "${lt_cv_ld_reload_flag+set}" = set; then
4927: echo $ECHO_N "(cached) $ECHO_C" >&6
4928: else
4929: lt_cv_ld_reload_flag='-r'
4930: fi
4931: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4932: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4933: reload_flag=$lt_cv_ld_reload_flag
4934: case $reload_flag in
4935: "" | " "*) ;;
4936: *) reload_flag=" $reload_flag" ;;
4937: esac
4938: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4939: case $host_os in
4940: cygwin* | mingw* | pw32* | cegcc*)
4941: if test "$GCC" != yes; then
4942: reload_cmds=false
4943: fi
4944: ;;
4945: darwin*)
4946: if test "$GCC" = yes; then
4947: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4948: else
4949: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950: fi
4951: ;;
4952: esac
4953:
4954:
4955:
4956:
4957:
4958:
4959:
4960:
4961:
4962: if test -n "$ac_tool_prefix"; then
4963: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4964: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4965: echo "$as_me:$LINENO: checking for $ac_word" >&5
4966: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4967: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4968: echo $ECHO_N "(cached) $ECHO_C" >&6
4969: else
4970: if test -n "$OBJDUMP"; then
4971: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4972: else
4973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974: for as_dir in $PATH
4975: do
4976: IFS=$as_save_IFS
4977: test -z "$as_dir" && as_dir=.
4978: for ac_exec_ext in '' $ac_executable_extensions; do
4979: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4981: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982: break 2
4983: fi
4984: done
4985: done
4986:
4987: fi
4988: fi
4989: OBJDUMP=$ac_cv_prog_OBJDUMP
4990: if test -n "$OBJDUMP"; then
4991: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4992: echo "${ECHO_T}$OBJDUMP" >&6
4993: else
4994: echo "$as_me:$LINENO: result: no" >&5
4995: echo "${ECHO_T}no" >&6
4996: fi
4997:
4998: fi
4999: if test -z "$ac_cv_prog_OBJDUMP"; then
5000: ac_ct_OBJDUMP=$OBJDUMP
5001: # Extract the first word of "objdump", so it can be a program name with args.
5002: set dummy objdump; ac_word=$2
5003: echo "$as_me:$LINENO: checking for $ac_word" >&5
5004: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5006: echo $ECHO_N "(cached) $ECHO_C" >&6
5007: else
5008: if test -n "$ac_ct_OBJDUMP"; then
5009: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5010: else
5011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012: for as_dir in $PATH
5013: do
5014: IFS=$as_save_IFS
5015: test -z "$as_dir" && as_dir=.
5016: for ac_exec_ext in '' $ac_executable_extensions; do
5017: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5019: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020: break 2
5021: fi
5022: done
5023: done
5024:
5025: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5026: fi
5027: fi
5028: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5029: if test -n "$ac_ct_OBJDUMP"; then
5030: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5031: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5032: else
5033: echo "$as_me:$LINENO: result: no" >&5
5034: echo "${ECHO_T}no" >&6
5035: fi
5036:
5037: OBJDUMP=$ac_ct_OBJDUMP
5038: else
5039: OBJDUMP="$ac_cv_prog_OBJDUMP"
5040: fi
5041:
5042: test -z "$OBJDUMP" && OBJDUMP=objdump
5043:
5044:
5045:
5046:
5047:
5048:
5049: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5050: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5051: if test "${lt_cv_deplibs_check_method+set}" = set; then
5052: echo $ECHO_N "(cached) $ECHO_C" >&6
5053: else
5054: lt_cv_file_magic_cmd='$MAGIC_CMD'
5055: lt_cv_file_magic_test_file=
5056: lt_cv_deplibs_check_method='unknown'
5057: # Need to set the preceding variable on all platforms that support
5058: # interlibrary dependencies.
5059: # 'none' -- dependencies not supported.
5060: # `unknown' -- same as none, but documents that we really don't know.
5061: # 'pass_all' -- all dependencies passed with no checks.
5062: # 'test_compile' -- check by making test program.
5063: # 'file_magic [[regex]]' -- check by looking for files in library path
5064: # which responds to the $file_magic_cmd with a given extended regex.
5065: # If you have `file' or equivalent on your system and you're not sure
5066: # whether `pass_all' will *always* work, you probably want this one.
5067:
5068: case $host_os in
5069: aix[4-9]*)
5070: lt_cv_deplibs_check_method=pass_all
5071: ;;
5072:
5073: beos*)
5074: lt_cv_deplibs_check_method=pass_all
5075: ;;
5076:
5077: bsdi[45]*)
5078: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5079: lt_cv_file_magic_cmd='/usr/bin/file -L'
5080: lt_cv_file_magic_test_file=/shlib/libc.so
5081: ;;
5082:
5083: cygwin*)
5084: # func_win32_libid is a shell function defined in ltmain.sh
5085: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5086: lt_cv_file_magic_cmd='func_win32_libid'
5087: ;;
5088:
5089: mingw* | pw32*)
5090: # Base MSYS/MinGW do not provide the 'file' command needed by
5091: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5092: # unless we find 'file', for example because we are cross-compiling.
5093: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5094: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5095: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5096: lt_cv_file_magic_cmd='func_win32_libid'
5097: else
5098: # Keep this pattern in sync with the one in func_win32_libid.
5099: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5100: lt_cv_file_magic_cmd='$OBJDUMP -f'
5101: fi
5102: ;;
5103:
5104: cegcc*)
5105: # use the weaker test based on 'objdump'. See mingw*.
5106: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5107: lt_cv_file_magic_cmd='$OBJDUMP -f'
5108: ;;
5109:
5110: darwin* | rhapsody*)
5111: lt_cv_deplibs_check_method=pass_all
5112: ;;
5113:
5114: freebsd* | dragonfly*)
5115: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5116: case $host_cpu in
5117: i*86 )
5118: # Not sure whether the presence of OpenBSD here was a mistake.
5119: # Let's accept both of them until this is cleared up.
5120: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5121: lt_cv_file_magic_cmd=/usr/bin/file
5122: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5123: ;;
5124: esac
5125: else
5126: lt_cv_deplibs_check_method=pass_all
5127: fi
5128: ;;
5129:
5130: gnu*)
5131: lt_cv_deplibs_check_method=pass_all
5132: ;;
5133:
5134: haiku*)
5135: lt_cv_deplibs_check_method=pass_all
5136: ;;
5137:
5138: hpux10.20* | hpux11*)
5139: lt_cv_file_magic_cmd=/usr/bin/file
5140: case $host_cpu in
5141: ia64*)
5142: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5143: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5144: ;;
5145: hppa*64*)
5146: 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]'
5147: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5148: ;;
5149: *)
5150: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5151: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5152: ;;
5153: esac
5154: ;;
5155:
5156: interix[3-9]*)
5157: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5158: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5159: ;;
5160:
5161: irix5* | irix6* | nonstopux*)
5162: case $LD in
5163: *-32|*"-32 ") libmagic=32-bit;;
5164: *-n32|*"-n32 ") libmagic=N32;;
5165: *-64|*"-64 ") libmagic=64-bit;;
5166: *) libmagic=never-match;;
5167: esac
5168: lt_cv_deplibs_check_method=pass_all
5169: ;;
5170:
5171: # This must be glibc/ELF.
5172: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5173: lt_cv_deplibs_check_method=pass_all
5174: ;;
5175:
5176: netbsd*)
5177: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5178: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5179: else
5180: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5181: fi
5182: ;;
5183:
5184: newos6*)
5185: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5186: lt_cv_file_magic_cmd=/usr/bin/file
5187: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5188: ;;
5189:
5190: *nto* | *qnx*)
5191: lt_cv_deplibs_check_method=pass_all
5192: ;;
5193:
5194: openbsd*)
5195: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5196: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5197: else
5198: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5199: fi
5200: ;;
5201:
5202: osf3* | osf4* | osf5*)
5203: lt_cv_deplibs_check_method=pass_all
5204: ;;
5205:
5206: rdos*)
5207: lt_cv_deplibs_check_method=pass_all
5208: ;;
5209:
5210: solaris*)
5211: lt_cv_deplibs_check_method=pass_all
5212: ;;
5213:
5214: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5215: lt_cv_deplibs_check_method=pass_all
5216: ;;
5217:
5218: sysv4 | sysv4.3*)
5219: case $host_vendor in
5220: motorola)
5221: 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]'
5222: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5223: ;;
5224: ncr)
5225: lt_cv_deplibs_check_method=pass_all
5226: ;;
5227: sequent)
5228: lt_cv_file_magic_cmd='/bin/file'
5229: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5230: ;;
5231: sni)
5232: lt_cv_file_magic_cmd='/bin/file'
5233: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5234: lt_cv_file_magic_test_file=/lib/libc.so
5235: ;;
5236: siemens)
5237: lt_cv_deplibs_check_method=pass_all
5238: ;;
5239: pc)
5240: lt_cv_deplibs_check_method=pass_all
5241: ;;
5242: esac
5243: ;;
5244:
5245: tpf*)
5246: lt_cv_deplibs_check_method=pass_all
5247: ;;
5248: esac
5249:
5250: fi
5251: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5252: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5253:
5254: file_magic_glob=
5255: want_nocaseglob=no
5256: if test "$build" = "$host"; then
5257: case $host_os in
5258: mingw* | pw32*)
5259: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5260: want_nocaseglob=yes
5261: else
5262: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5263: fi
5264: ;;
5265: esac
5266: fi
5267:
5268: file_magic_cmd=$lt_cv_file_magic_cmd
5269: deplibs_check_method=$lt_cv_deplibs_check_method
5270: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5271:
5272:
5273:
5274:
5275:
5276:
5277:
5278:
5279:
5280:
5281:
5282:
5283:
5284:
5285:
5286:
5287:
5288:
5289:
5290:
5291:
5292:
5293: if test -n "$ac_tool_prefix"; then
5294: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5295: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5296: echo "$as_me:$LINENO: checking for $ac_word" >&5
5297: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5299: echo $ECHO_N "(cached) $ECHO_C" >&6
5300: else
5301: if test -n "$DLLTOOL"; then
5302: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5303: else
5304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305: for as_dir in $PATH
5306: do
5307: IFS=$as_save_IFS
5308: test -z "$as_dir" && as_dir=.
5309: for ac_exec_ext in '' $ac_executable_extensions; do
5310: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5312: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313: break 2
5314: fi
5315: done
5316: done
5317:
5318: fi
5319: fi
5320: DLLTOOL=$ac_cv_prog_DLLTOOL
5321: if test -n "$DLLTOOL"; then
5322: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5323: echo "${ECHO_T}$DLLTOOL" >&6
5324: else
5325: echo "$as_me:$LINENO: result: no" >&5
5326: echo "${ECHO_T}no" >&6
5327: fi
5328:
5329: fi
5330: if test -z "$ac_cv_prog_DLLTOOL"; then
5331: ac_ct_DLLTOOL=$DLLTOOL
5332: # Extract the first word of "dlltool", so it can be a program name with args.
5333: set dummy dlltool; ac_word=$2
5334: echo "$as_me:$LINENO: checking for $ac_word" >&5
5335: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5336: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5337: echo $ECHO_N "(cached) $ECHO_C" >&6
5338: else
5339: if test -n "$ac_ct_DLLTOOL"; then
5340: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5341: else
5342: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343: for as_dir in $PATH
5344: do
5345: IFS=$as_save_IFS
5346: test -z "$as_dir" && as_dir=.
5347: for ac_exec_ext in '' $ac_executable_extensions; do
5348: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5350: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351: break 2
5352: fi
5353: done
5354: done
5355:
5356: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5357: fi
5358: fi
5359: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5360: if test -n "$ac_ct_DLLTOOL"; then
5361: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5362: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5363: else
5364: echo "$as_me:$LINENO: result: no" >&5
5365: echo "${ECHO_T}no" >&6
5366: fi
5367:
5368: DLLTOOL=$ac_ct_DLLTOOL
5369: else
5370: DLLTOOL="$ac_cv_prog_DLLTOOL"
5371: fi
5372:
5373: test -z "$DLLTOOL" && DLLTOOL=dlltool
5374:
5375:
5376:
5377:
5378:
5379:
5380:
5381: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
5382: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
5383: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
5384: echo $ECHO_N "(cached) $ECHO_C" >&6
5385: else
5386: lt_cv_sharedlib_from_linklib_cmd='unknown'
5387:
5388: case $host_os in
5389: cygwin* | mingw* | pw32* | cegcc*)
5390: # two different shell functions defined in ltmain.sh
5391: # decide which to use based on capabilities of $DLLTOOL
5392: case `$DLLTOOL --help 2>&1` in
5393: *--identify-strict*)
5394: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5395: ;;
5396: *)
5397: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5398: ;;
5399: esac
5400: ;;
5401: *)
5402: # fallback: assume linklib IS sharedlib
5403: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5404: ;;
5405: esac
5406:
5407: fi
5408: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5409: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
5410: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5411: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5412:
5413:
5414:
5415:
5416:
5417:
5418:
5419: if test -n "$ac_tool_prefix"; then
5420: for ac_prog in ar
5421: do
5422: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5423: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5424: echo "$as_me:$LINENO: checking for $ac_word" >&5
5425: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426: if test "${ac_cv_prog_AR+set}" = set; then
5427: echo $ECHO_N "(cached) $ECHO_C" >&6
5428: else
5429: if test -n "$AR"; then
5430: ac_cv_prog_AR="$AR" # Let the user override the test.
5431: else
5432: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433: for as_dir in $PATH
5434: do
5435: IFS=$as_save_IFS
5436: test -z "$as_dir" && as_dir=.
5437: for ac_exec_ext in '' $ac_executable_extensions; do
5438: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5440: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441: break 2
5442: fi
5443: done
5444: done
5445:
5446: fi
5447: fi
5448: AR=$ac_cv_prog_AR
5449: if test -n "$AR"; then
5450: echo "$as_me:$LINENO: result: $AR" >&5
5451: echo "${ECHO_T}$AR" >&6
5452: else
5453: echo "$as_me:$LINENO: result: no" >&5
5454: echo "${ECHO_T}no" >&6
5455: fi
5456:
5457: test -n "$AR" && break
5458: done
5459: fi
5460: if test -z "$AR"; then
5461: ac_ct_AR=$AR
5462: for ac_prog in ar
5463: do
5464: # Extract the first word of "$ac_prog", so it can be a program name with args.
5465: set dummy $ac_prog; ac_word=$2
5466: echo "$as_me:$LINENO: checking for $ac_word" >&5
5467: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5469: echo $ECHO_N "(cached) $ECHO_C" >&6
5470: else
5471: if test -n "$ac_ct_AR"; then
5472: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5473: else
5474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475: for as_dir in $PATH
5476: do
5477: IFS=$as_save_IFS
5478: test -z "$as_dir" && as_dir=.
5479: for ac_exec_ext in '' $ac_executable_extensions; do
5480: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481: ac_cv_prog_ac_ct_AR="$ac_prog"
5482: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483: break 2
5484: fi
5485: done
5486: done
5487:
5488: fi
5489: fi
5490: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491: if test -n "$ac_ct_AR"; then
5492: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5493: echo "${ECHO_T}$ac_ct_AR" >&6
5494: else
5495: echo "$as_me:$LINENO: result: no" >&5
5496: echo "${ECHO_T}no" >&6
5497: fi
5498:
5499: test -n "$ac_ct_AR" && break
5500: done
5501: test -n "$ac_ct_AR" || ac_ct_AR="false"
5502:
5503: AR=$ac_ct_AR
5504: fi
5505:
5506: : ${AR=ar}
5507: : ${AR_FLAGS=cru}
5508:
5509:
5510:
5511:
5512:
5513:
5514:
5515:
5516:
5517:
5518:
5519: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
5520: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
5521: if test "${lt_cv_ar_at_file+set}" = set; then
5522: echo $ECHO_N "(cached) $ECHO_C" >&6
5523: else
5524: lt_cv_ar_at_file=no
5525: cat >conftest.$ac_ext <<_ACEOF
5526: /* confdefs.h. */
5527: _ACEOF
5528: cat confdefs.h >>conftest.$ac_ext
5529: cat >>conftest.$ac_ext <<_ACEOF
5530: /* end confdefs.h. */
5531:
5532: int
5533: main ()
5534: {
5535:
5536: ;
5537: return 0;
5538: }
5539: _ACEOF
5540: rm -f conftest.$ac_objext
5541: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542: (eval $ac_compile) 2>conftest.er1
5543: ac_status=$?
5544: grep -v '^ *+' conftest.er1 >conftest.err
5545: rm -f conftest.er1
5546: cat conftest.err >&5
5547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548: (exit $ac_status); } &&
5549: { ac_try='test -z "$ac_c_werror_flag"
5550: || test ! -s conftest.err'
5551: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552: (eval $ac_try) 2>&5
5553: ac_status=$?
5554: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555: (exit $ac_status); }; } &&
5556: { ac_try='test -s conftest.$ac_objext'
5557: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558: (eval $ac_try) 2>&5
5559: ac_status=$?
5560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561: (exit $ac_status); }; }; then
5562: echo conftest.$ac_objext > conftest.lst
5563: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5564: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5565: (eval $lt_ar_try) 2>&5
5566: ac_status=$?
5567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568: (exit $ac_status); }
5569: if test "$ac_status" -eq 0; then
5570: # Ensure the archiver fails upon bogus file names.
5571: rm -f conftest.$ac_objext libconftest.a
5572: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5573: (eval $lt_ar_try) 2>&5
5574: ac_status=$?
5575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576: (exit $ac_status); }
5577: if test "$ac_status" -ne 0; then
5578: lt_cv_ar_at_file=@
5579: fi
5580: fi
5581: rm -f conftest.* libconftest.a
5582:
5583: else
5584: echo "$as_me: failed program was:" >&5
5585: sed 's/^/| /' conftest.$ac_ext >&5
5586:
5587: fi
5588: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589:
5590: fi
5591: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5592: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5593:
5594: if test "x$lt_cv_ar_at_file" = xno; then
5595: archiver_list_spec=
5596: else
5597: archiver_list_spec=$lt_cv_ar_at_file
5598: fi
5599:
5600:
5601:
5602:
5603:
5604:
5605:
5606: if test -n "$ac_tool_prefix"; then
5607: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5608: set dummy ${ac_tool_prefix}strip; ac_word=$2
5609: echo "$as_me:$LINENO: checking for $ac_word" >&5
5610: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5611: if test "${ac_cv_prog_STRIP+set}" = set; then
5612: echo $ECHO_N "(cached) $ECHO_C" >&6
5613: else
5614: if test -n "$STRIP"; then
5615: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5616: else
5617: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618: for as_dir in $PATH
5619: do
5620: IFS=$as_save_IFS
5621: test -z "$as_dir" && as_dir=.
5622: for ac_exec_ext in '' $ac_executable_extensions; do
5623: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5625: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626: break 2
5627: fi
5628: done
5629: done
5630:
5631: fi
5632: fi
5633: STRIP=$ac_cv_prog_STRIP
5634: if test -n "$STRIP"; then
5635: echo "$as_me:$LINENO: result: $STRIP" >&5
5636: echo "${ECHO_T}$STRIP" >&6
5637: else
5638: echo "$as_me:$LINENO: result: no" >&5
5639: echo "${ECHO_T}no" >&6
5640: fi
5641:
5642: fi
5643: if test -z "$ac_cv_prog_STRIP"; then
5644: ac_ct_STRIP=$STRIP
5645: # Extract the first word of "strip", so it can be a program name with args.
5646: set dummy strip; ac_word=$2
5647: echo "$as_me:$LINENO: checking for $ac_word" >&5
5648: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5650: echo $ECHO_N "(cached) $ECHO_C" >&6
5651: else
5652: if test -n "$ac_ct_STRIP"; then
5653: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5654: else
5655: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656: for as_dir in $PATH
5657: do
5658: IFS=$as_save_IFS
5659: test -z "$as_dir" && as_dir=.
5660: for ac_exec_ext in '' $ac_executable_extensions; do
5661: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662: ac_cv_prog_ac_ct_STRIP="strip"
5663: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664: break 2
5665: fi
5666: done
5667: done
5668:
5669: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5670: fi
5671: fi
5672: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5673: if test -n "$ac_ct_STRIP"; then
5674: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5675: echo "${ECHO_T}$ac_ct_STRIP" >&6
5676: else
5677: echo "$as_me:$LINENO: result: no" >&5
5678: echo "${ECHO_T}no" >&6
5679: fi
5680:
5681: STRIP=$ac_ct_STRIP
5682: else
5683: STRIP="$ac_cv_prog_STRIP"
5684: fi
5685:
5686: test -z "$STRIP" && STRIP=:
5687:
5688:
5689:
5690:
5691:
5692:
5693: if test -n "$ac_tool_prefix"; then
5694: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5695: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5696: echo "$as_me:$LINENO: checking for $ac_word" >&5
5697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698: if test "${ac_cv_prog_RANLIB+set}" = set; then
5699: echo $ECHO_N "(cached) $ECHO_C" >&6
5700: else
5701: if test -n "$RANLIB"; then
5702: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5703: else
5704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705: for as_dir in $PATH
5706: do
5707: IFS=$as_save_IFS
5708: test -z "$as_dir" && as_dir=.
5709: for ac_exec_ext in '' $ac_executable_extensions; do
5710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713: break 2
5714: fi
5715: done
5716: done
5717:
5718: fi
5719: fi
5720: RANLIB=$ac_cv_prog_RANLIB
5721: if test -n "$RANLIB"; then
5722: echo "$as_me:$LINENO: result: $RANLIB" >&5
5723: echo "${ECHO_T}$RANLIB" >&6
5724: else
5725: echo "$as_me:$LINENO: result: no" >&5
5726: echo "${ECHO_T}no" >&6
5727: fi
5728:
5729: fi
5730: if test -z "$ac_cv_prog_RANLIB"; then
5731: ac_ct_RANLIB=$RANLIB
5732: # Extract the first word of "ranlib", so it can be a program name with args.
5733: set dummy ranlib; ac_word=$2
5734: echo "$as_me:$LINENO: checking for $ac_word" >&5
5735: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5737: echo $ECHO_N "(cached) $ECHO_C" >&6
5738: else
5739: if test -n "$ac_ct_RANLIB"; then
5740: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5741: else
5742: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743: for as_dir in $PATH
5744: do
5745: IFS=$as_save_IFS
5746: test -z "$as_dir" && as_dir=.
5747: for ac_exec_ext in '' $ac_executable_extensions; do
5748: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749: ac_cv_prog_ac_ct_RANLIB="ranlib"
5750: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751: break 2
5752: fi
5753: done
5754: done
5755:
5756: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5757: fi
5758: fi
5759: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5760: if test -n "$ac_ct_RANLIB"; then
5761: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5762: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5763: else
5764: echo "$as_me:$LINENO: result: no" >&5
5765: echo "${ECHO_T}no" >&6
5766: fi
5767:
5768: RANLIB=$ac_ct_RANLIB
5769: else
5770: RANLIB="$ac_cv_prog_RANLIB"
5771: fi
5772:
5773: test -z "$RANLIB" && RANLIB=:
5774:
5775:
5776:
5777:
5778:
5779:
5780: # Determine commands to create old-style static archives.
5781: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5782: old_postinstall_cmds='chmod 644 $oldlib'
5783: old_postuninstall_cmds=
5784:
5785: if test -n "$RANLIB"; then
5786: case $host_os in
5787: openbsd*)
5788: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5789: ;;
5790: *)
5791: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5792: ;;
5793: esac
5794: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5795: fi
5796:
5797: case $host_os in
5798: darwin*)
5799: lock_old_archive_extraction=yes ;;
5800: *)
5801: lock_old_archive_extraction=no ;;
5802: esac
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813:
5814:
5815:
5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
5824:
5825:
5826:
5827:
5828:
5829:
5830:
5831:
5832:
5833:
5834:
5835:
5836:
5837:
5838:
5839:
5840:
5841:
5842: # If no C compiler was specified, use CC.
5843: LTCC=${LTCC-"$CC"}
5844:
5845: # If no C compiler flags were specified, use CFLAGS.
5846: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5847:
5848: # Allow CC to be a program name with arguments.
5849: compiler=$CC
5850:
5851:
5852: # Check for command to grab the raw symbol name followed by C symbol from nm.
5853: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5854: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5855: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5856: echo $ECHO_N "(cached) $ECHO_C" >&6
5857: else
5858:
5859: # These are sane defaults that work on at least a few old systems.
5860: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5861:
5862: # Character class describing NM global symbol codes.
5863: symcode='[BCDEGRST]'
5864:
5865: # Regexp to match symbols that can be accessed directly from C.
5866: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5867:
5868: # Define system-specific variables.
5869: case $host_os in
5870: aix*)
5871: symcode='[BCDT]'
5872: ;;
5873: cygwin* | mingw* | pw32* | cegcc*)
5874: symcode='[ABCDGISTW]'
5875: ;;
5876: hpux*)
5877: if test "$host_cpu" = ia64; then
5878: symcode='[ABCDEGRST]'
5879: fi
5880: ;;
5881: irix* | nonstopux*)
5882: symcode='[BCDEGRST]'
5883: ;;
5884: osf*)
5885: symcode='[BCDEGQRST]'
5886: ;;
5887: solaris*)
5888: symcode='[BDRT]'
5889: ;;
5890: sco3.2v5*)
5891: symcode='[DT]'
5892: ;;
5893: sysv4.2uw2*)
5894: symcode='[DT]'
5895: ;;
5896: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5897: symcode='[ABDT]'
5898: ;;
5899: sysv4)
5900: symcode='[DFNSTU]'
5901: ;;
5902: esac
5903:
5904: # If we're using GNU nm, then use its standard symbol codes.
5905: case `$NM -V 2>&1` in
5906: *GNU* | *'with BFD'*)
5907: symcode='[ABCDGIRSTW]' ;;
5908: esac
5909:
5910: # Transform an extracted symbol line into a proper C declaration.
5911: # Some systems (esp. on ia64) link data and code symbols differently,
5912: # so use this general approach.
5913: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5914:
5915: # Transform an extracted symbol line into symbol name and symbol address
5916: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5917: 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'"
5918:
5919: # Handle CRLF in mingw tool chain
5920: opt_cr=
5921: case $build_os in
5922: mingw*)
5923: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5924: ;;
5925: esac
5926:
5927: # Try without a prefix underscore, then with it.
5928: for ac_symprfx in "" "_"; do
5929:
5930: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5931: symxfrm="\\1 $ac_symprfx\\2 \\2"
5932:
5933: # Write the raw and C identifiers.
5934: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5935: # Fake it for dumpbin and say T for any non-static function
5936: # and D for any global variable.
5937: # Also find C++ and __fastcall symbols from MSVC++,
5938: # which start with @ or ?.
5939: lt_cv_sys_global_symbol_pipe="$AWK '"\
5940: " {last_section=section; section=\$ 3};"\
5941: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5942: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5943: " \$ 0!~/External *\|/{next};"\
5944: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5945: " {if(hide[section]) next};"\
5946: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5947: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5948: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5949: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5950: " ' prfx=^$ac_symprfx"
5951: else
5952: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5953: fi
5954: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5955:
5956: # Check to see that the pipe works correctly.
5957: pipe_works=no
5958:
5959: rm -f conftest*
5960: cat > conftest.$ac_ext <<_LT_EOF
5961: #ifdef __cplusplus
5962: extern "C" {
5963: #endif
5964: char nm_test_var;
5965: void nm_test_func(void);
5966: void nm_test_func(void){}
5967: #ifdef __cplusplus
5968: }
5969: #endif
5970: int main(){nm_test_var='a';nm_test_func();return(0);}
5971: _LT_EOF
5972:
5973: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974: (eval $ac_compile) 2>&5
5975: ac_status=$?
5976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977: (exit $ac_status); }; then
5978: # Now try to grab the symbols.
5979: nlist=conftest.nm
5980: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5981: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5982: ac_status=$?
5983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984: (exit $ac_status); } && test -s "$nlist"; then
5985: # Try sorting and uniquifying the output.
5986: if sort "$nlist" | uniq > "$nlist"T; then
5987: mv -f "$nlist"T "$nlist"
5988: else
5989: rm -f "$nlist"T
5990: fi
5991:
5992: # Make sure that we snagged all the symbols we need.
5993: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5994: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5995: cat <<_LT_EOF > conftest.$ac_ext
5996: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5997: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5998: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5999: relocations are performed -- see ld's documentation on pseudo-relocs. */
6000: # define LT_DLSYM_CONST
6001: #elif defined(__osf__)
6002: /* This system does not cope well with relocations in const data. */
6003: # define LT_DLSYM_CONST
6004: #else
6005: # define LT_DLSYM_CONST const
6006: #endif
6007:
6008: #ifdef __cplusplus
6009: extern "C" {
6010: #endif
6011:
6012: _LT_EOF
6013: # Now generate the symbol file.
6014: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6015:
6016: cat <<_LT_EOF >> conftest.$ac_ext
6017:
6018: /* The mapping between symbol names and symbols. */
6019: LT_DLSYM_CONST struct {
6020: const char *name;
6021: void *address;
6022: }
6023: lt__PROGRAM__LTX_preloaded_symbols[] =
6024: {
6025: { "@PROGRAM@", (void *) 0 },
6026: _LT_EOF
6027: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6028: cat <<\_LT_EOF >> conftest.$ac_ext
6029: {0, (void *) 0}
6030: };
6031:
6032: /* This works around a problem in FreeBSD linker */
6033: #ifdef FREEBSD_WORKAROUND
6034: static const void *lt_preloaded_setup() {
6035: return lt__PROGRAM__LTX_preloaded_symbols;
6036: }
6037: #endif
6038:
6039: #ifdef __cplusplus
6040: }
6041: #endif
6042: _LT_EOF
6043: # Now try linking the two files.
6044: mv conftest.$ac_objext conftstm.$ac_objext
6045: lt_globsym_save_LIBS=$LIBS
6046: lt_globsym_save_CFLAGS=$CFLAGS
6047: LIBS="conftstm.$ac_objext"
6048: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6049: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050: (eval $ac_link) 2>&5
6051: ac_status=$?
6052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053: (exit $ac_status); } && test -s conftest${ac_exeext}; then
6054: pipe_works=yes
6055: fi
6056: LIBS=$lt_globsym_save_LIBS
6057: CFLAGS=$lt_globsym_save_CFLAGS
6058: else
6059: echo "cannot find nm_test_func in $nlist" >&5
6060: fi
6061: else
6062: echo "cannot find nm_test_var in $nlist" >&5
6063: fi
6064: else
6065: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6066: fi
6067: else
6068: echo "$progname: failed program was:" >&5
6069: cat conftest.$ac_ext >&5
6070: fi
6071: rm -rf conftest* conftst*
6072:
6073: # Do not use the global_symbol_pipe unless it works.
6074: if test "$pipe_works" = yes; then
6075: break
6076: else
6077: lt_cv_sys_global_symbol_pipe=
6078: fi
6079: done
6080:
6081: fi
6082:
6083: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6084: lt_cv_sys_global_symbol_to_cdecl=
6085: fi
6086: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6087: echo "$as_me:$LINENO: result: failed" >&5
6088: echo "${ECHO_T}failed" >&6
6089: else
6090: echo "$as_me:$LINENO: result: ok" >&5
6091: echo "${ECHO_T}ok" >&6
6092: fi
6093:
6094: # Response file support.
6095: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6096: nm_file_list_spec='@'
6097: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6098: nm_file_list_spec='@'
6099: fi
6100:
6101:
6102:
6103:
6104:
6105:
6106:
6107:
6108:
6109:
6110:
6111:
6112:
6113:
6114:
6115:
6116:
6117:
6118:
6119:
6120:
6121:
6122:
6123:
6124:
6125:
6126:
6127: echo "$as_me:$LINENO: checking for sysroot" >&5
6128: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
6129:
6130: # Check whether --with-sysroot or --without-sysroot was given.
6131: if test "${with_sysroot+set}" = set; then
6132: withval="$with_sysroot"
6133:
6134: else
6135: with_sysroot=no
6136: fi;
6137:
6138: lt_sysroot=
6139: case ${with_sysroot} in #(
6140: yes)
6141: if test "$GCC" = yes; then
6142: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6143: fi
6144: ;; #(
6145: /*)
6146: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6147: ;; #(
6148: no|'')
6149: ;; #(
6150: *)
6151: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
6152: echo "${ECHO_T}${with_sysroot}" >&6
6153: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
6154: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
6155: { (exit 1); exit 1; }; }
6156: ;;
6157: esac
6158:
6159: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
6160: echo "${ECHO_T}${lt_sysroot:-no}" >&6
6161:
6162:
6163:
6164:
6165:
6166: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6167: if test "${enable_libtool_lock+set}" = set; then
6168: enableval="$enable_libtool_lock"
6169:
6170: fi;
6171: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6172:
6173: # Some flags need to be propagated to the compiler or linker for good
6174: # libtool support.
6175: case $host in
6176: ia64-*-hpux*)
6177: # Find out which ABI we are using.
6178: echo 'int i;' > conftest.$ac_ext
6179: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180: (eval $ac_compile) 2>&5
6181: ac_status=$?
6182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183: (exit $ac_status); }; then
6184: case `/usr/bin/file conftest.$ac_objext` in
6185: *ELF-32*)
6186: HPUX_IA64_MODE="32"
6187: ;;
6188: *ELF-64*)
6189: HPUX_IA64_MODE="64"
6190: ;;
6191: esac
6192: fi
6193: rm -rf conftest*
6194: ;;
6195: *-*-irix6*)
6196: # Find out which ABI we are using.
6197: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6198: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199: (eval $ac_compile) 2>&5
6200: ac_status=$?
6201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202: (exit $ac_status); }; then
6203: if test "$lt_cv_prog_gnu_ld" = yes; then
6204: case `/usr/bin/file conftest.$ac_objext` in
6205: *32-bit*)
6206: LD="${LD-ld} -melf32bsmip"
6207: ;;
6208: *N32*)
6209: LD="${LD-ld} -melf32bmipn32"
6210: ;;
6211: *64-bit*)
6212: LD="${LD-ld} -melf64bmip"
6213: ;;
6214: esac
6215: else
6216: case `/usr/bin/file conftest.$ac_objext` in
6217: *32-bit*)
6218: LD="${LD-ld} -32"
6219: ;;
6220: *N32*)
6221: LD="${LD-ld} -n32"
6222: ;;
6223: *64-bit*)
6224: LD="${LD-ld} -64"
6225: ;;
6226: esac
6227: fi
6228: fi
6229: rm -rf conftest*
6230: ;;
6231:
6232: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6233: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6234: # Find out which ABI we are using.
6235: echo 'int i;' > conftest.$ac_ext
6236: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237: (eval $ac_compile) 2>&5
6238: ac_status=$?
6239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240: (exit $ac_status); }; then
6241: case `/usr/bin/file conftest.o` in
6242: *32-bit*)
6243: case $host in
6244: x86_64-*kfreebsd*-gnu)
6245: LD="${LD-ld} -m elf_i386_fbsd"
6246: ;;
6247: x86_64-*linux*)
6248: LD="${LD-ld} -m elf_i386"
6249: ;;
6250: ppc64-*linux*|powerpc64-*linux*)
6251: LD="${LD-ld} -m elf32ppclinux"
6252: ;;
6253: s390x-*linux*)
6254: LD="${LD-ld} -m elf_s390"
6255: ;;
6256: sparc64-*linux*)
6257: LD="${LD-ld} -m elf32_sparc"
6258: ;;
6259: esac
6260: ;;
6261: *64-bit*)
6262: case $host in
6263: x86_64-*kfreebsd*-gnu)
6264: LD="${LD-ld} -m elf_x86_64_fbsd"
6265: ;;
6266: x86_64-*linux*)
6267: LD="${LD-ld} -m elf_x86_64"
6268: ;;
6269: ppc*-*linux*|powerpc*-*linux*)
6270: LD="${LD-ld} -m elf64ppc"
6271: ;;
6272: s390*-*linux*|s390*-*tpf*)
6273: LD="${LD-ld} -m elf64_s390"
6274: ;;
6275: sparc*-*linux*)
6276: LD="${LD-ld} -m elf64_sparc"
6277: ;;
6278: esac
6279: ;;
6280: esac
6281: fi
6282: rm -rf conftest*
6283: ;;
6284:
6285: *-*-sco3.2v5*)
6286: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6287: SAVE_CFLAGS="$CFLAGS"
6288: CFLAGS="$CFLAGS -belf"
6289: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6290: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6291: if test "${lt_cv_cc_needs_belf+set}" = set; then
6292: echo $ECHO_N "(cached) $ECHO_C" >&6
6293: else
6294: ac_ext=c
6295: ac_cpp='$CPP $CPPFLAGS'
6296: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299:
6300: cat >conftest.$ac_ext <<_ACEOF
6301: /* confdefs.h. */
6302: _ACEOF
6303: cat confdefs.h >>conftest.$ac_ext
6304: cat >>conftest.$ac_ext <<_ACEOF
6305: /* end confdefs.h. */
6306:
6307: int
6308: main ()
6309: {
6310:
6311: ;
6312: return 0;
6313: }
6314: _ACEOF
6315: rm -f conftest.$ac_objext conftest$ac_exeext
6316: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317: (eval $ac_link) 2>conftest.er1
6318: ac_status=$?
6319: grep -v '^ *+' conftest.er1 >conftest.err
6320: rm -f conftest.er1
6321: cat conftest.err >&5
6322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323: (exit $ac_status); } &&
6324: { ac_try='test -z "$ac_c_werror_flag"
6325: || test ! -s conftest.err'
6326: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327: (eval $ac_try) 2>&5
6328: ac_status=$?
6329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330: (exit $ac_status); }; } &&
6331: { ac_try='test -s conftest$ac_exeext'
6332: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333: (eval $ac_try) 2>&5
6334: ac_status=$?
6335: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336: (exit $ac_status); }; }; then
6337: lt_cv_cc_needs_belf=yes
6338: else
6339: echo "$as_me: failed program was:" >&5
6340: sed 's/^/| /' conftest.$ac_ext >&5
6341:
6342: lt_cv_cc_needs_belf=no
6343: fi
6344: rm -f conftest.err conftest.$ac_objext \
6345: conftest$ac_exeext conftest.$ac_ext
6346: ac_ext=c
6347: ac_cpp='$CPP $CPPFLAGS'
6348: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351:
6352: fi
6353: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6354: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6355: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6356: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6357: CFLAGS="$SAVE_CFLAGS"
6358: fi
6359: ;;
6360: *-*solaris*)
6361: # Find out which ABI we are using.
6362: echo 'int i;' > conftest.$ac_ext
6363: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364: (eval $ac_compile) 2>&5
6365: ac_status=$?
6366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367: (exit $ac_status); }; then
6368: case `/usr/bin/file conftest.o` in
6369: *64-bit*)
6370: case $lt_cv_prog_gnu_ld in
6371: yes*)
6372: case $host in
6373: i?86-*-solaris*)
6374: LD="${LD-ld} -m elf_x86_64"
6375: ;;
6376: sparc*-*-solaris*)
6377: LD="${LD-ld} -m elf64_sparc"
6378: ;;
6379: esac
6380: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6381: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6382: LD="${LD-ld}_sol2"
6383: fi
6384: ;;
6385: *)
6386: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6387: LD="${LD-ld} -64"
6388: fi
6389: ;;
6390: esac
6391: ;;
6392: esac
6393: fi
6394: rm -rf conftest*
6395: ;;
6396: esac
6397:
6398: need_locks="$enable_libtool_lock"
6399:
6400: if test -n "$ac_tool_prefix"; then
6401: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6402: set dummy ${ac_tool_prefix}mt; ac_word=$2
6403: echo "$as_me:$LINENO: checking for $ac_word" >&5
6404: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6405: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
6406: echo $ECHO_N "(cached) $ECHO_C" >&6
6407: else
6408: if test -n "$MANIFEST_TOOL"; then
6409: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6410: else
6411: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412: for as_dir in $PATH
6413: do
6414: IFS=$as_save_IFS
6415: test -z "$as_dir" && as_dir=.
6416: for ac_exec_ext in '' $ac_executable_extensions; do
6417: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6419: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420: break 2
6421: fi
6422: done
6423: done
6424:
6425: fi
6426: fi
6427: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6428: if test -n "$MANIFEST_TOOL"; then
6429: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
6430: echo "${ECHO_T}$MANIFEST_TOOL" >&6
6431: else
6432: echo "$as_me:$LINENO: result: no" >&5
6433: echo "${ECHO_T}no" >&6
6434: fi
6435:
6436: fi
6437: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6438: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6439: # Extract the first word of "mt", so it can be a program name with args.
6440: set dummy mt; ac_word=$2
6441: echo "$as_me:$LINENO: checking for $ac_word" >&5
6442: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6443: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
6444: echo $ECHO_N "(cached) $ECHO_C" >&6
6445: else
6446: if test -n "$ac_ct_MANIFEST_TOOL"; then
6447: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6448: else
6449: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450: for as_dir in $PATH
6451: do
6452: IFS=$as_save_IFS
6453: test -z "$as_dir" && as_dir=.
6454: for ac_exec_ext in '' $ac_executable_extensions; do
6455: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6457: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458: break 2
6459: fi
6460: done
6461: done
6462:
6463: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
6464: fi
6465: fi
6466: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6467: if test -n "$ac_ct_MANIFEST_TOOL"; then
6468: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
6469: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
6470: else
6471: echo "$as_me:$LINENO: result: no" >&5
6472: echo "${ECHO_T}no" >&6
6473: fi
6474:
6475: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6476: else
6477: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6478: fi
6479:
6480: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6481: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
6482: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
6483: if test "${lt_cv_path_mainfest_tool+set}" = set; then
6484: echo $ECHO_N "(cached) $ECHO_C" >&6
6485: else
6486: lt_cv_path_mainfest_tool=no
6487: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6488: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6489: cat conftest.err >&5
6490: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6491: lt_cv_path_mainfest_tool=yes
6492: fi
6493: rm -f conftest*
6494: fi
6495: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
6496: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
6497: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6498: MANIFEST_TOOL=:
6499: fi
6500:
6501:
6502:
6503:
6504:
6505:
6506: case $host_os in
6507: rhapsody* | darwin*)
6508: if test -n "$ac_tool_prefix"; then
6509: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6510: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6511: echo "$as_me:$LINENO: checking for $ac_word" >&5
6512: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6513: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6514: echo $ECHO_N "(cached) $ECHO_C" >&6
6515: else
6516: if test -n "$DSYMUTIL"; then
6517: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6518: else
6519: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520: for as_dir in $PATH
6521: do
6522: IFS=$as_save_IFS
6523: test -z "$as_dir" && as_dir=.
6524: for ac_exec_ext in '' $ac_executable_extensions; do
6525: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6527: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528: break 2
6529: fi
6530: done
6531: done
6532:
6533: fi
6534: fi
6535: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6536: if test -n "$DSYMUTIL"; then
6537: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6538: echo "${ECHO_T}$DSYMUTIL" >&6
6539: else
6540: echo "$as_me:$LINENO: result: no" >&5
6541: echo "${ECHO_T}no" >&6
6542: fi
6543:
6544: fi
6545: if test -z "$ac_cv_prog_DSYMUTIL"; then
6546: ac_ct_DSYMUTIL=$DSYMUTIL
6547: # Extract the first word of "dsymutil", so it can be a program name with args.
6548: set dummy dsymutil; ac_word=$2
6549: echo "$as_me:$LINENO: checking for $ac_word" >&5
6550: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6551: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6552: echo $ECHO_N "(cached) $ECHO_C" >&6
6553: else
6554: if test -n "$ac_ct_DSYMUTIL"; then
6555: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6556: else
6557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558: for as_dir in $PATH
6559: do
6560: IFS=$as_save_IFS
6561: test -z "$as_dir" && as_dir=.
6562: for ac_exec_ext in '' $ac_executable_extensions; do
6563: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6565: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566: break 2
6567: fi
6568: done
6569: done
6570:
6571: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6572: fi
6573: fi
6574: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6575: if test -n "$ac_ct_DSYMUTIL"; then
6576: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6577: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6578: else
6579: echo "$as_me:$LINENO: result: no" >&5
6580: echo "${ECHO_T}no" >&6
6581: fi
6582:
6583: DSYMUTIL=$ac_ct_DSYMUTIL
6584: else
6585: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6586: fi
6587:
6588: if test -n "$ac_tool_prefix"; then
6589: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6590: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6591: echo "$as_me:$LINENO: checking for $ac_word" >&5
6592: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6594: echo $ECHO_N "(cached) $ECHO_C" >&6
6595: else
6596: if test -n "$NMEDIT"; then
6597: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6598: else
6599: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600: for as_dir in $PATH
6601: do
6602: IFS=$as_save_IFS
6603: test -z "$as_dir" && as_dir=.
6604: for ac_exec_ext in '' $ac_executable_extensions; do
6605: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6607: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608: break 2
6609: fi
6610: done
6611: done
6612:
6613: fi
6614: fi
6615: NMEDIT=$ac_cv_prog_NMEDIT
6616: if test -n "$NMEDIT"; then
6617: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6618: echo "${ECHO_T}$NMEDIT" >&6
6619: else
6620: echo "$as_me:$LINENO: result: no" >&5
6621: echo "${ECHO_T}no" >&6
6622: fi
6623:
6624: fi
6625: if test -z "$ac_cv_prog_NMEDIT"; then
6626: ac_ct_NMEDIT=$NMEDIT
6627: # Extract the first word of "nmedit", so it can be a program name with args.
6628: set dummy nmedit; ac_word=$2
6629: echo "$as_me:$LINENO: checking for $ac_word" >&5
6630: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6631: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6632: echo $ECHO_N "(cached) $ECHO_C" >&6
6633: else
6634: if test -n "$ac_ct_NMEDIT"; then
6635: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6636: else
6637: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638: for as_dir in $PATH
6639: do
6640: IFS=$as_save_IFS
6641: test -z "$as_dir" && as_dir=.
6642: for ac_exec_ext in '' $ac_executable_extensions; do
6643: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6645: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646: break 2
6647: fi
6648: done
6649: done
6650:
6651: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6652: fi
6653: fi
6654: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6655: if test -n "$ac_ct_NMEDIT"; then
6656: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6657: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6658: else
6659: echo "$as_me:$LINENO: result: no" >&5
6660: echo "${ECHO_T}no" >&6
6661: fi
6662:
6663: NMEDIT=$ac_ct_NMEDIT
6664: else
6665: NMEDIT="$ac_cv_prog_NMEDIT"
6666: fi
6667:
6668: if test -n "$ac_tool_prefix"; then
6669: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6670: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6671: echo "$as_me:$LINENO: checking for $ac_word" >&5
6672: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6673: if test "${ac_cv_prog_LIPO+set}" = set; then
6674: echo $ECHO_N "(cached) $ECHO_C" >&6
6675: else
6676: if test -n "$LIPO"; then
6677: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6678: else
6679: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680: for as_dir in $PATH
6681: do
6682: IFS=$as_save_IFS
6683: test -z "$as_dir" && as_dir=.
6684: for ac_exec_ext in '' $ac_executable_extensions; do
6685: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6687: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688: break 2
6689: fi
6690: done
6691: done
6692:
6693: fi
6694: fi
6695: LIPO=$ac_cv_prog_LIPO
6696: if test -n "$LIPO"; then
6697: echo "$as_me:$LINENO: result: $LIPO" >&5
6698: echo "${ECHO_T}$LIPO" >&6
6699: else
6700: echo "$as_me:$LINENO: result: no" >&5
6701: echo "${ECHO_T}no" >&6
6702: fi
6703:
6704: fi
6705: if test -z "$ac_cv_prog_LIPO"; then
6706: ac_ct_LIPO=$LIPO
6707: # Extract the first word of "lipo", so it can be a program name with args.
6708: set dummy lipo; ac_word=$2
6709: echo "$as_me:$LINENO: checking for $ac_word" >&5
6710: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6711: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6712: echo $ECHO_N "(cached) $ECHO_C" >&6
6713: else
6714: if test -n "$ac_ct_LIPO"; then
6715: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6716: else
6717: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718: for as_dir in $PATH
6719: do
6720: IFS=$as_save_IFS
6721: test -z "$as_dir" && as_dir=.
6722: for ac_exec_ext in '' $ac_executable_extensions; do
6723: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724: ac_cv_prog_ac_ct_LIPO="lipo"
6725: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726: break 2
6727: fi
6728: done
6729: done
6730:
6731: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6732: fi
6733: fi
6734: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6735: if test -n "$ac_ct_LIPO"; then
6736: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6737: echo "${ECHO_T}$ac_ct_LIPO" >&6
6738: else
6739: echo "$as_me:$LINENO: result: no" >&5
6740: echo "${ECHO_T}no" >&6
6741: fi
6742:
6743: LIPO=$ac_ct_LIPO
6744: else
6745: LIPO="$ac_cv_prog_LIPO"
6746: fi
6747:
6748: if test -n "$ac_tool_prefix"; then
6749: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6750: set dummy ${ac_tool_prefix}otool; ac_word=$2
6751: echo "$as_me:$LINENO: checking for $ac_word" >&5
6752: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6753: if test "${ac_cv_prog_OTOOL+set}" = set; then
6754: echo $ECHO_N "(cached) $ECHO_C" >&6
6755: else
6756: if test -n "$OTOOL"; then
6757: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6758: else
6759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760: for as_dir in $PATH
6761: do
6762: IFS=$as_save_IFS
6763: test -z "$as_dir" && as_dir=.
6764: for ac_exec_ext in '' $ac_executable_extensions; do
6765: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6767: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768: break 2
6769: fi
6770: done
6771: done
6772:
6773: fi
6774: fi
6775: OTOOL=$ac_cv_prog_OTOOL
6776: if test -n "$OTOOL"; then
6777: echo "$as_me:$LINENO: result: $OTOOL" >&5
6778: echo "${ECHO_T}$OTOOL" >&6
6779: else
6780: echo "$as_me:$LINENO: result: no" >&5
6781: echo "${ECHO_T}no" >&6
6782: fi
6783:
6784: fi
6785: if test -z "$ac_cv_prog_OTOOL"; then
6786: ac_ct_OTOOL=$OTOOL
6787: # Extract the first word of "otool", so it can be a program name with args.
6788: set dummy otool; ac_word=$2
6789: echo "$as_me:$LINENO: checking for $ac_word" >&5
6790: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6791: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6792: echo $ECHO_N "(cached) $ECHO_C" >&6
6793: else
6794: if test -n "$ac_ct_OTOOL"; then
6795: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6796: else
6797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798: for as_dir in $PATH
6799: do
6800: IFS=$as_save_IFS
6801: test -z "$as_dir" && as_dir=.
6802: for ac_exec_ext in '' $ac_executable_extensions; do
6803: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804: ac_cv_prog_ac_ct_OTOOL="otool"
6805: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806: break 2
6807: fi
6808: done
6809: done
6810:
6811: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6812: fi
6813: fi
6814: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6815: if test -n "$ac_ct_OTOOL"; then
6816: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6817: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6818: else
6819: echo "$as_me:$LINENO: result: no" >&5
6820: echo "${ECHO_T}no" >&6
6821: fi
6822:
6823: OTOOL=$ac_ct_OTOOL
6824: else
6825: OTOOL="$ac_cv_prog_OTOOL"
6826: fi
6827:
6828: if test -n "$ac_tool_prefix"; then
6829: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6830: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6831: echo "$as_me:$LINENO: checking for $ac_word" >&5
6832: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6833: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6834: echo $ECHO_N "(cached) $ECHO_C" >&6
6835: else
6836: if test -n "$OTOOL64"; then
6837: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6838: else
6839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840: for as_dir in $PATH
6841: do
6842: IFS=$as_save_IFS
6843: test -z "$as_dir" && as_dir=.
6844: for ac_exec_ext in '' $ac_executable_extensions; do
6845: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6847: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848: break 2
6849: fi
6850: done
6851: done
6852:
6853: fi
6854: fi
6855: OTOOL64=$ac_cv_prog_OTOOL64
6856: if test -n "$OTOOL64"; then
6857: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6858: echo "${ECHO_T}$OTOOL64" >&6
6859: else
6860: echo "$as_me:$LINENO: result: no" >&5
6861: echo "${ECHO_T}no" >&6
6862: fi
6863:
6864: fi
6865: if test -z "$ac_cv_prog_OTOOL64"; then
6866: ac_ct_OTOOL64=$OTOOL64
6867: # Extract the first word of "otool64", so it can be a program name with args.
6868: set dummy otool64; ac_word=$2
6869: echo "$as_me:$LINENO: checking for $ac_word" >&5
6870: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6871: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6872: echo $ECHO_N "(cached) $ECHO_C" >&6
6873: else
6874: if test -n "$ac_ct_OTOOL64"; then
6875: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6876: else
6877: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878: for as_dir in $PATH
6879: do
6880: IFS=$as_save_IFS
6881: test -z "$as_dir" && as_dir=.
6882: for ac_exec_ext in '' $ac_executable_extensions; do
6883: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884: ac_cv_prog_ac_ct_OTOOL64="otool64"
6885: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886: break 2
6887: fi
6888: done
6889: done
6890:
6891: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6892: fi
6893: fi
6894: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6895: if test -n "$ac_ct_OTOOL64"; then
6896: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6897: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6898: else
6899: echo "$as_me:$LINENO: result: no" >&5
6900: echo "${ECHO_T}no" >&6
6901: fi
6902:
6903: OTOOL64=$ac_ct_OTOOL64
6904: else
6905: OTOOL64="$ac_cv_prog_OTOOL64"
6906: fi
6907:
6908:
6909:
6910:
6911:
6912:
6913:
6914:
6915:
6916:
6917:
6918:
6919:
6920:
6921:
6922:
6923:
6924:
6925:
6926:
6927:
6928:
6929:
6930:
6931:
6932:
6933:
6934: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6935: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6936: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6937: echo $ECHO_N "(cached) $ECHO_C" >&6
6938: else
6939: lt_cv_apple_cc_single_mod=no
6940: if test -z "${LT_MULTI_MODULE}"; then
6941: # By default we will add the -single_module flag. You can override
6942: # by either setting the environment variable LT_MULTI_MODULE
6943: # non-empty at configure time, or by adding -multi_module to the
6944: # link flags.
6945: rm -rf libconftest.dylib*
6946: echo "int foo(void){return 1;}" > conftest.c
6947: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948: -dynamiclib -Wl,-single_module conftest.c" >&5
6949: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6951: _lt_result=$?
6952: # If there is a non-empty error log, and "single_module"
6953: # appears in it, assume the flag caused a linker warning
6954: if test -s conftest.err && $GREP single_module conftest.err; then
6955: cat conftest.err >&5
6956: # Otherwise, if the output was created with a 0 exit code from
6957: # the compiler, it worked.
6958: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6959: lt_cv_apple_cc_single_mod=yes
6960: else
6961: cat conftest.err >&5
6962: fi
6963: rm -rf libconftest.dylib*
6964: rm -f conftest.*
6965: fi
6966: fi
6967: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6968: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6969:
6970: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6971: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6972: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6973: echo $ECHO_N "(cached) $ECHO_C" >&6
6974: else
6975: lt_cv_ld_exported_symbols_list=no
6976: save_LDFLAGS=$LDFLAGS
6977: echo "_main" > conftest.sym
6978: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6979: cat >conftest.$ac_ext <<_ACEOF
6980: /* confdefs.h. */
6981: _ACEOF
6982: cat confdefs.h >>conftest.$ac_ext
6983: cat >>conftest.$ac_ext <<_ACEOF
6984: /* end confdefs.h. */
6985:
6986: int
6987: main ()
6988: {
6989:
6990: ;
6991: return 0;
6992: }
6993: _ACEOF
6994: rm -f conftest.$ac_objext conftest$ac_exeext
6995: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996: (eval $ac_link) 2>conftest.er1
6997: ac_status=$?
6998: grep -v '^ *+' conftest.er1 >conftest.err
6999: rm -f conftest.er1
7000: cat conftest.err >&5
7001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002: (exit $ac_status); } &&
7003: { ac_try='test -z "$ac_c_werror_flag"
7004: || test ! -s conftest.err'
7005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006: (eval $ac_try) 2>&5
7007: ac_status=$?
7008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009: (exit $ac_status); }; } &&
7010: { ac_try='test -s conftest$ac_exeext'
7011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012: (eval $ac_try) 2>&5
7013: ac_status=$?
7014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015: (exit $ac_status); }; }; then
7016: lt_cv_ld_exported_symbols_list=yes
7017: else
7018: echo "$as_me: failed program was:" >&5
7019: sed 's/^/| /' conftest.$ac_ext >&5
7020:
7021: lt_cv_ld_exported_symbols_list=no
7022: fi
7023: rm -f conftest.err conftest.$ac_objext \
7024: conftest$ac_exeext conftest.$ac_ext
7025: LDFLAGS="$save_LDFLAGS"
7026:
7027: fi
7028: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7029: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7030:
7031: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7032: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
7033: if test "${lt_cv_ld_force_load+set}" = set; then
7034: echo $ECHO_N "(cached) $ECHO_C" >&6
7035: else
7036: lt_cv_ld_force_load=no
7037: cat > conftest.c << _LT_EOF
7038: int forced_loaded() { return 2;}
7039: _LT_EOF
7040: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7041: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7042: echo "$AR cru libconftest.a conftest.o" >&5
7043: $AR cru libconftest.a conftest.o 2>&5
7044: echo "$RANLIB libconftest.a" >&5
7045: $RANLIB libconftest.a 2>&5
7046: cat > conftest.c << _LT_EOF
7047: int main() { return 0;}
7048: _LT_EOF
7049: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7050: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7051: _lt_result=$?
7052: if test -s conftest.err && $GREP force_load conftest.err; then
7053: cat conftest.err >&5
7054: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7055: lt_cv_ld_force_load=yes
7056: else
7057: cat conftest.err >&5
7058: fi
7059: rm -f conftest.err libconftest.a conftest conftest.c
7060: rm -rf conftest.dSYM
7061:
7062: fi
7063: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7064: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
7065: case $host_os in
7066: rhapsody* | darwin1.[012])
7067: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7068: darwin1.*)
7069: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7070: darwin*) # darwin 5.x on
7071: # if running on 10.5 or later, the deployment target defaults
7072: # to the OS version, if on x86, and 10.4, the deployment
7073: # target defaults to 10.4. Don't you love it?
7074: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7075: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7076: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7077: 10.[012]*)
7078: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7079: 10.*)
7080: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7081: esac
7082: ;;
7083: esac
7084: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7085: _lt_dar_single_mod='$single_module'
7086: fi
7087: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7088: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7089: else
7090: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7091: fi
7092: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7093: _lt_dsymutil='~$DSYMUTIL $lib || :'
7094: else
7095: _lt_dsymutil=
7096: fi
7097: ;;
7098: esac
7099:
7100: ac_ext=c
7101: ac_cpp='$CPP $CPPFLAGS'
7102: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7106: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7107: # On Suns, sometimes $CPP names a directory.
7108: if test -n "$CPP" && test -d "$CPP"; then
7109: CPP=
7110: fi
7111: if test -z "$CPP"; then
7112: if test "${ac_cv_prog_CPP+set}" = set; then
7113: echo $ECHO_N "(cached) $ECHO_C" >&6
7114: else
7115: # Double quotes because CPP needs to be expanded
7116: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7117: do
7118: ac_preproc_ok=false
7119: for ac_c_preproc_warn_flag in '' yes
7120: do
7121: # Use a header file that comes with gcc, so configuring glibc
7122: # with a fresh cross-compiler works.
7123: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7124: # <limits.h> exists even on freestanding compilers.
7125: # On the NeXT, cc -E runs the code through the compiler's parser,
7126: # not just through cpp. "Syntax error" is here to catch this case.
7127: cat >conftest.$ac_ext <<_ACEOF
7128: /* confdefs.h. */
7129: _ACEOF
7130: cat confdefs.h >>conftest.$ac_ext
7131: cat >>conftest.$ac_ext <<_ACEOF
7132: /* end confdefs.h. */
7133: #ifdef __STDC__
7134: # include <limits.h>
7135: #else
7136: # include <assert.h>
7137: #endif
7138: Syntax error
7139: _ACEOF
7140: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7141: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7142: ac_status=$?
7143: grep -v '^ *+' conftest.er1 >conftest.err
7144: rm -f conftest.er1
7145: cat conftest.err >&5
7146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147: (exit $ac_status); } >/dev/null; then
7148: if test -s conftest.err; then
7149: ac_cpp_err=$ac_c_preproc_warn_flag
7150: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7151: else
7152: ac_cpp_err=
7153: fi
7154: else
7155: ac_cpp_err=yes
7156: fi
7157: if test -z "$ac_cpp_err"; then
7158: :
7159: else
7160: echo "$as_me: failed program was:" >&5
7161: sed 's/^/| /' conftest.$ac_ext >&5
7162:
7163: # Broken: fails on valid input.
7164: continue
7165: fi
7166: rm -f conftest.err conftest.$ac_ext
7167:
7168: # OK, works on sane cases. Now check whether non-existent headers
7169: # can be detected and how.
7170: cat >conftest.$ac_ext <<_ACEOF
7171: /* confdefs.h. */
7172: _ACEOF
7173: cat confdefs.h >>conftest.$ac_ext
7174: cat >>conftest.$ac_ext <<_ACEOF
7175: /* end confdefs.h. */
7176: #include <ac_nonexistent.h>
7177: _ACEOF
7178: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7179: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7180: ac_status=$?
7181: grep -v '^ *+' conftest.er1 >conftest.err
7182: rm -f conftest.er1
7183: cat conftest.err >&5
7184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185: (exit $ac_status); } >/dev/null; then
7186: if test -s conftest.err; then
7187: ac_cpp_err=$ac_c_preproc_warn_flag
7188: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7189: else
7190: ac_cpp_err=
7191: fi
7192: else
7193: ac_cpp_err=yes
7194: fi
7195: if test -z "$ac_cpp_err"; then
7196: # Broken: success on invalid input.
7197: continue
7198: else
7199: echo "$as_me: failed program was:" >&5
7200: sed 's/^/| /' conftest.$ac_ext >&5
7201:
7202: # Passes both tests.
7203: ac_preproc_ok=:
7204: break
7205: fi
7206: rm -f conftest.err conftest.$ac_ext
7207:
7208: done
7209: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7210: rm -f conftest.err conftest.$ac_ext
7211: if $ac_preproc_ok; then
7212: break
7213: fi
7214:
7215: done
7216: ac_cv_prog_CPP=$CPP
7217:
7218: fi
7219: CPP=$ac_cv_prog_CPP
7220: else
7221: ac_cv_prog_CPP=$CPP
7222: fi
7223: echo "$as_me:$LINENO: result: $CPP" >&5
7224: echo "${ECHO_T}$CPP" >&6
7225: ac_preproc_ok=false
7226: for ac_c_preproc_warn_flag in '' yes
7227: do
7228: # Use a header file that comes with gcc, so configuring glibc
7229: # with a fresh cross-compiler works.
7230: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231: # <limits.h> exists even on freestanding compilers.
7232: # On the NeXT, cc -E runs the code through the compiler's parser,
7233: # not just through cpp. "Syntax error" is here to catch this case.
7234: cat >conftest.$ac_ext <<_ACEOF
7235: /* confdefs.h. */
7236: _ACEOF
7237: cat confdefs.h >>conftest.$ac_ext
7238: cat >>conftest.$ac_ext <<_ACEOF
7239: /* end confdefs.h. */
7240: #ifdef __STDC__
7241: # include <limits.h>
7242: #else
7243: # include <assert.h>
7244: #endif
7245: Syntax error
7246: _ACEOF
7247: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7248: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7249: ac_status=$?
7250: grep -v '^ *+' conftest.er1 >conftest.err
7251: rm -f conftest.er1
7252: cat conftest.err >&5
7253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254: (exit $ac_status); } >/dev/null; then
7255: if test -s conftest.err; then
7256: ac_cpp_err=$ac_c_preproc_warn_flag
7257: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7258: else
7259: ac_cpp_err=
7260: fi
7261: else
7262: ac_cpp_err=yes
7263: fi
7264: if test -z "$ac_cpp_err"; then
7265: :
7266: else
7267: echo "$as_me: failed program was:" >&5
7268: sed 's/^/| /' conftest.$ac_ext >&5
7269:
7270: # Broken: fails on valid input.
7271: continue
7272: fi
7273: rm -f conftest.err conftest.$ac_ext
7274:
7275: # OK, works on sane cases. Now check whether non-existent headers
7276: # can be detected and how.
7277: cat >conftest.$ac_ext <<_ACEOF
7278: /* confdefs.h. */
7279: _ACEOF
7280: cat confdefs.h >>conftest.$ac_ext
7281: cat >>conftest.$ac_ext <<_ACEOF
7282: /* end confdefs.h. */
7283: #include <ac_nonexistent.h>
7284: _ACEOF
7285: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7286: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7287: ac_status=$?
7288: grep -v '^ *+' conftest.er1 >conftest.err
7289: rm -f conftest.er1
7290: cat conftest.err >&5
7291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292: (exit $ac_status); } >/dev/null; then
7293: if test -s conftest.err; then
7294: ac_cpp_err=$ac_c_preproc_warn_flag
7295: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7296: else
7297: ac_cpp_err=
7298: fi
7299: else
7300: ac_cpp_err=yes
7301: fi
7302: if test -z "$ac_cpp_err"; then
7303: # Broken: success on invalid input.
7304: continue
7305: else
7306: echo "$as_me: failed program was:" >&5
7307: sed 's/^/| /' conftest.$ac_ext >&5
7308:
7309: # Passes both tests.
7310: ac_preproc_ok=:
7311: break
7312: fi
7313: rm -f conftest.err conftest.$ac_ext
7314:
7315: done
7316: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317: rm -f conftest.err conftest.$ac_ext
7318: if $ac_preproc_ok; then
7319: :
7320: else
7321: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7322: See \`config.log' for more details." >&5
7323: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7324: See \`config.log' for more details." >&2;}
7325: { (exit 1); exit 1; }; }
7326: fi
7327:
7328: ac_ext=c
7329: ac_cpp='$CPP $CPPFLAGS'
7330: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333:
7334:
7335: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7336: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7337: if test "${ac_cv_header_stdc+set}" = set; then
7338: echo $ECHO_N "(cached) $ECHO_C" >&6
7339: else
7340: cat >conftest.$ac_ext <<_ACEOF
7341: /* confdefs.h. */
7342: _ACEOF
7343: cat confdefs.h >>conftest.$ac_ext
7344: cat >>conftest.$ac_ext <<_ACEOF
7345: /* end confdefs.h. */
7346: #include <stdlib.h>
7347: #include <stdarg.h>
7348: #include <string.h>
7349: #include <float.h>
7350:
7351: int
7352: main ()
7353: {
7354:
7355: ;
7356: return 0;
7357: }
7358: _ACEOF
7359: rm -f conftest.$ac_objext
7360: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361: (eval $ac_compile) 2>conftest.er1
7362: ac_status=$?
7363: grep -v '^ *+' conftest.er1 >conftest.err
7364: rm -f conftest.er1
7365: cat conftest.err >&5
7366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367: (exit $ac_status); } &&
7368: { ac_try='test -z "$ac_c_werror_flag"
7369: || test ! -s conftest.err'
7370: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371: (eval $ac_try) 2>&5
7372: ac_status=$?
7373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374: (exit $ac_status); }; } &&
7375: { ac_try='test -s conftest.$ac_objext'
7376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377: (eval $ac_try) 2>&5
7378: ac_status=$?
7379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380: (exit $ac_status); }; }; then
7381: ac_cv_header_stdc=yes
7382: else
7383: echo "$as_me: failed program was:" >&5
7384: sed 's/^/| /' conftest.$ac_ext >&5
7385:
7386: ac_cv_header_stdc=no
7387: fi
7388: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389:
7390: if test $ac_cv_header_stdc = yes; then
7391: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7392: cat >conftest.$ac_ext <<_ACEOF
7393: /* confdefs.h. */
7394: _ACEOF
7395: cat confdefs.h >>conftest.$ac_ext
7396: cat >>conftest.$ac_ext <<_ACEOF
7397: /* end confdefs.h. */
7398: #include <string.h>
7399:
7400: _ACEOF
7401: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402: $EGREP "memchr" >/dev/null 2>&1; then
7403: :
7404: else
7405: ac_cv_header_stdc=no
7406: fi
7407: rm -f conftest*
7408:
7409: fi
7410:
7411: if test $ac_cv_header_stdc = yes; then
7412: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7413: cat >conftest.$ac_ext <<_ACEOF
7414: /* confdefs.h. */
7415: _ACEOF
7416: cat confdefs.h >>conftest.$ac_ext
7417: cat >>conftest.$ac_ext <<_ACEOF
7418: /* end confdefs.h. */
7419: #include <stdlib.h>
7420:
7421: _ACEOF
7422: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423: $EGREP "free" >/dev/null 2>&1; then
7424: :
7425: else
7426: ac_cv_header_stdc=no
7427: fi
7428: rm -f conftest*
7429:
7430: fi
7431:
7432: if test $ac_cv_header_stdc = yes; then
7433: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7434: if test "$cross_compiling" = yes; then
7435: :
7436: else
7437: cat >conftest.$ac_ext <<_ACEOF
7438: /* confdefs.h. */
7439: _ACEOF
7440: cat confdefs.h >>conftest.$ac_ext
7441: cat >>conftest.$ac_ext <<_ACEOF
7442: /* end confdefs.h. */
7443: #include <ctype.h>
7444: #if ((' ' & 0x0FF) == 0x020)
7445: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7446: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7447: #else
7448: # define ISLOWER(c) \
7449: (('a' <= (c) && (c) <= 'i') \
7450: || ('j' <= (c) && (c) <= 'r') \
7451: || ('s' <= (c) && (c) <= 'z'))
7452: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7453: #endif
7454:
7455: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7456: int
7457: main ()
7458: {
7459: int i;
7460: for (i = 0; i < 256; i++)
7461: if (XOR (islower (i), ISLOWER (i))
7462: || toupper (i) != TOUPPER (i))
7463: exit(2);
7464: exit (0);
7465: }
7466: _ACEOF
7467: rm -f conftest$ac_exeext
7468: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469: (eval $ac_link) 2>&5
7470: ac_status=$?
7471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474: (eval $ac_try) 2>&5
7475: ac_status=$?
7476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477: (exit $ac_status); }; }; then
7478: :
7479: else
7480: echo "$as_me: program exited with status $ac_status" >&5
7481: echo "$as_me: failed program was:" >&5
7482: sed 's/^/| /' conftest.$ac_ext >&5
7483:
7484: ( exit $ac_status )
7485: ac_cv_header_stdc=no
7486: fi
7487: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7488: fi
7489: fi
7490: fi
7491: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7492: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7493: if test $ac_cv_header_stdc = yes; then
7494:
7495: cat >>confdefs.h <<\_ACEOF
7496: #define STDC_HEADERS 1
7497: _ACEOF
7498:
7499: fi
7500:
7501: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7512: inttypes.h stdint.h unistd.h
7513: do
7514: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515: echo "$as_me:$LINENO: checking for $ac_header" >&5
7516: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7517: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518: echo $ECHO_N "(cached) $ECHO_C" >&6
7519: else
7520: cat >conftest.$ac_ext <<_ACEOF
7521: /* confdefs.h. */
7522: _ACEOF
7523: cat confdefs.h >>conftest.$ac_ext
7524: cat >>conftest.$ac_ext <<_ACEOF
7525: /* end confdefs.h. */
7526: $ac_includes_default
7527:
7528: #include <$ac_header>
7529: _ACEOF
7530: rm -f conftest.$ac_objext
7531: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532: (eval $ac_compile) 2>conftest.er1
7533: ac_status=$?
7534: grep -v '^ *+' conftest.er1 >conftest.err
7535: rm -f conftest.er1
7536: cat conftest.err >&5
7537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538: (exit $ac_status); } &&
7539: { ac_try='test -z "$ac_c_werror_flag"
7540: || test ! -s conftest.err'
7541: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542: (eval $ac_try) 2>&5
7543: ac_status=$?
7544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545: (exit $ac_status); }; } &&
7546: { ac_try='test -s conftest.$ac_objext'
7547: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548: (eval $ac_try) 2>&5
7549: ac_status=$?
7550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551: (exit $ac_status); }; }; then
7552: eval "$as_ac_Header=yes"
7553: else
7554: echo "$as_me: failed program was:" >&5
7555: sed 's/^/| /' conftest.$ac_ext >&5
7556:
7557: eval "$as_ac_Header=no"
7558: fi
7559: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7560: fi
7561: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7562: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7563: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7564: cat >>confdefs.h <<_ACEOF
7565: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566: _ACEOF
7567:
7568: fi
7569:
7570: done
7571:
7572:
7573:
7574: for ac_header in dlfcn.h
7575: do
7576: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7577: echo "$as_me:$LINENO: checking for $ac_header" >&5
7578: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7579: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7580: echo $ECHO_N "(cached) $ECHO_C" >&6
7581: else
7582: cat >conftest.$ac_ext <<_ACEOF
7583: /* confdefs.h. */
7584: _ACEOF
7585: cat confdefs.h >>conftest.$ac_ext
7586: cat >>conftest.$ac_ext <<_ACEOF
7587: /* end confdefs.h. */
7588: $ac_includes_default
7589:
7590: #include <$ac_header>
7591: _ACEOF
7592: rm -f conftest.$ac_objext
7593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594: (eval $ac_compile) 2>conftest.er1
7595: ac_status=$?
7596: grep -v '^ *+' conftest.er1 >conftest.err
7597: rm -f conftest.er1
7598: cat conftest.err >&5
7599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600: (exit $ac_status); } &&
7601: { ac_try='test -z "$ac_c_werror_flag"
7602: || test ! -s conftest.err'
7603: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604: (eval $ac_try) 2>&5
7605: ac_status=$?
7606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607: (exit $ac_status); }; } &&
7608: { ac_try='test -s conftest.$ac_objext'
7609: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610: (eval $ac_try) 2>&5
7611: ac_status=$?
7612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613: (exit $ac_status); }; }; then
7614: eval "$as_ac_Header=yes"
7615: else
7616: echo "$as_me: failed program was:" >&5
7617: sed 's/^/| /' conftest.$ac_ext >&5
7618:
7619: eval "$as_ac_Header=no"
7620: fi
7621: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622: fi
7623: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7624: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7625: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7626: cat >>confdefs.h <<_ACEOF
7627: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7628: _ACEOF
7629:
7630: fi
7631:
7632: done
7633:
7634:
7635:
7636:
7637: func_stripname_cnf ()
7638: {
7639: case ${2} in
7640: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7641: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7642: esac
7643: } # func_stripname_cnf
7644:
7645:
7646:
7647:
7648:
7649: # Set options
7650: enable_dlopen=yes
7651: enable_win32_dll=yes
7652:
7653: case $host in
7654: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7655: if test -n "$ac_tool_prefix"; then
7656: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7657: set dummy ${ac_tool_prefix}as; ac_word=$2
7658: echo "$as_me:$LINENO: checking for $ac_word" >&5
7659: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660: if test "${ac_cv_prog_AS+set}" = set; then
7661: echo $ECHO_N "(cached) $ECHO_C" >&6
7662: else
7663: if test -n "$AS"; then
7664: ac_cv_prog_AS="$AS" # Let the user override the test.
7665: else
7666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667: for as_dir in $PATH
7668: do
7669: IFS=$as_save_IFS
7670: test -z "$as_dir" && as_dir=.
7671: for ac_exec_ext in '' $ac_executable_extensions; do
7672: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673: ac_cv_prog_AS="${ac_tool_prefix}as"
7674: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675: break 2
7676: fi
7677: done
7678: done
7679:
7680: fi
7681: fi
7682: AS=$ac_cv_prog_AS
7683: if test -n "$AS"; then
7684: echo "$as_me:$LINENO: result: $AS" >&5
7685: echo "${ECHO_T}$AS" >&6
7686: else
7687: echo "$as_me:$LINENO: result: no" >&5
7688: echo "${ECHO_T}no" >&6
7689: fi
7690:
7691: fi
7692: if test -z "$ac_cv_prog_AS"; then
7693: ac_ct_AS=$AS
7694: # Extract the first word of "as", so it can be a program name with args.
7695: set dummy as; ac_word=$2
7696: echo "$as_me:$LINENO: checking for $ac_word" >&5
7697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7698: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7699: echo $ECHO_N "(cached) $ECHO_C" >&6
7700: else
7701: if test -n "$ac_ct_AS"; then
7702: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7703: else
7704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705: for as_dir in $PATH
7706: do
7707: IFS=$as_save_IFS
7708: test -z "$as_dir" && as_dir=.
7709: for ac_exec_ext in '' $ac_executable_extensions; do
7710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711: ac_cv_prog_ac_ct_AS="as"
7712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713: break 2
7714: fi
7715: done
7716: done
7717:
7718: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7719: fi
7720: fi
7721: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7722: if test -n "$ac_ct_AS"; then
7723: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7724: echo "${ECHO_T}$ac_ct_AS" >&6
7725: else
7726: echo "$as_me:$LINENO: result: no" >&5
7727: echo "${ECHO_T}no" >&6
7728: fi
7729:
7730: AS=$ac_ct_AS
7731: else
7732: AS="$ac_cv_prog_AS"
7733: fi
7734:
7735: if test -n "$ac_tool_prefix"; then
7736: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7737: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7738: echo "$as_me:$LINENO: checking for $ac_word" >&5
7739: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7740: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7741: echo $ECHO_N "(cached) $ECHO_C" >&6
7742: else
7743: if test -n "$DLLTOOL"; then
7744: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7745: else
7746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747: for as_dir in $PATH
7748: do
7749: IFS=$as_save_IFS
7750: test -z "$as_dir" && as_dir=.
7751: for ac_exec_ext in '' $ac_executable_extensions; do
7752: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7754: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755: break 2
7756: fi
7757: done
7758: done
7759:
7760: fi
7761: fi
7762: DLLTOOL=$ac_cv_prog_DLLTOOL
7763: if test -n "$DLLTOOL"; then
7764: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7765: echo "${ECHO_T}$DLLTOOL" >&6
7766: else
7767: echo "$as_me:$LINENO: result: no" >&5
7768: echo "${ECHO_T}no" >&6
7769: fi
7770:
7771: fi
7772: if test -z "$ac_cv_prog_DLLTOOL"; then
7773: ac_ct_DLLTOOL=$DLLTOOL
7774: # Extract the first word of "dlltool", so it can be a program name with args.
7775: set dummy dlltool; ac_word=$2
7776: echo "$as_me:$LINENO: checking for $ac_word" >&5
7777: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7778: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7779: echo $ECHO_N "(cached) $ECHO_C" >&6
7780: else
7781: if test -n "$ac_ct_DLLTOOL"; then
7782: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7783: else
7784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785: for as_dir in $PATH
7786: do
7787: IFS=$as_save_IFS
7788: test -z "$as_dir" && as_dir=.
7789: for ac_exec_ext in '' $ac_executable_extensions; do
7790: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7792: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793: break 2
7794: fi
7795: done
7796: done
7797:
7798: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7799: fi
7800: fi
7801: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7802: if test -n "$ac_ct_DLLTOOL"; then
7803: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7804: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7805: else
7806: echo "$as_me:$LINENO: result: no" >&5
7807: echo "${ECHO_T}no" >&6
7808: fi
7809:
7810: DLLTOOL=$ac_ct_DLLTOOL
7811: else
7812: DLLTOOL="$ac_cv_prog_DLLTOOL"
7813: fi
7814:
7815: if test -n "$ac_tool_prefix"; then
7816: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7817: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7818: echo "$as_me:$LINENO: checking for $ac_word" >&5
7819: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7820: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7821: echo $ECHO_N "(cached) $ECHO_C" >&6
7822: else
7823: if test -n "$OBJDUMP"; then
7824: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7825: else
7826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827: for as_dir in $PATH
7828: do
7829: IFS=$as_save_IFS
7830: test -z "$as_dir" && as_dir=.
7831: for ac_exec_ext in '' $ac_executable_extensions; do
7832: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7834: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835: break 2
7836: fi
7837: done
7838: done
7839:
7840: fi
7841: fi
7842: OBJDUMP=$ac_cv_prog_OBJDUMP
7843: if test -n "$OBJDUMP"; then
7844: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7845: echo "${ECHO_T}$OBJDUMP" >&6
7846: else
7847: echo "$as_me:$LINENO: result: no" >&5
7848: echo "${ECHO_T}no" >&6
7849: fi
7850:
7851: fi
7852: if test -z "$ac_cv_prog_OBJDUMP"; then
7853: ac_ct_OBJDUMP=$OBJDUMP
7854: # Extract the first word of "objdump", so it can be a program name with args.
7855: set dummy objdump; ac_word=$2
7856: echo "$as_me:$LINENO: checking for $ac_word" >&5
7857: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7858: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7859: echo $ECHO_N "(cached) $ECHO_C" >&6
7860: else
7861: if test -n "$ac_ct_OBJDUMP"; then
7862: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7863: else
7864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865: for as_dir in $PATH
7866: do
7867: IFS=$as_save_IFS
7868: test -z "$as_dir" && as_dir=.
7869: for ac_exec_ext in '' $ac_executable_extensions; do
7870: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7872: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873: break 2
7874: fi
7875: done
7876: done
7877:
7878: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7879: fi
7880: fi
7881: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7882: if test -n "$ac_ct_OBJDUMP"; then
7883: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7884: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7885: else
7886: echo "$as_me:$LINENO: result: no" >&5
7887: echo "${ECHO_T}no" >&6
7888: fi
7889:
7890: OBJDUMP=$ac_ct_OBJDUMP
7891: else
7892: OBJDUMP="$ac_cv_prog_OBJDUMP"
7893: fi
7894:
7895: ;;
7896: esac
7897:
7898: test -z "$AS" && AS=as
7899:
7900:
7901:
7902:
7903:
7904: test -z "$DLLTOOL" && DLLTOOL=dlltool
7905:
7906:
7907:
7908:
7909:
7910: test -z "$OBJDUMP" && OBJDUMP=objdump
7911:
7912:
7913:
7914:
7915:
7916:
7917:
7918:
7919:
7920: # Check whether --enable-shared or --disable-shared was given.
7921: if test "${enable_shared+set}" = set; then
7922: enableval="$enable_shared"
7923: p=${PACKAGE-default}
7924: case $enableval in
7925: yes) enable_shared=yes ;;
7926: no) enable_shared=no ;;
7927: *)
7928: enable_shared=no
7929: # Look at the argument we got. We use all the common list separators.
7930: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7931: for pkg in $enableval; do
7932: IFS="$lt_save_ifs"
7933: if test "X$pkg" = "X$p"; then
7934: enable_shared=yes
7935: fi
7936: done
7937: IFS="$lt_save_ifs"
7938: ;;
7939: esac
7940: else
7941: enable_shared=yes
7942: fi;
7943:
7944:
7945:
7946:
7947:
7948:
7949:
7950:
1.134 moko 7951: # Check whether --enable-static or --disable-static was given.
7952: if test "${enable_static+set}" = set; then
7953: enableval="$enable_static"
7954: p=${PACKAGE-default}
7955: case $enableval in
7956: yes) enable_static=yes ;;
7957: no) enable_static=no ;;
7958: *)
7959: enable_static=no
7960: # Look at the argument we got. We use all the common list separators.
7961: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7962: for pkg in $enableval; do
7963: IFS="$lt_save_ifs"
7964: if test "X$pkg" = "X$p"; then
7965: enable_static=yes
7966: fi
7967: done
7968: IFS="$lt_save_ifs"
7969: ;;
7970: esac
7971: else
7972: enable_static=yes
7973: fi;
7974:
7975:
7976:
7977:
7978:
7979:
7980:
1.128 moko 7981:
7982:
7983: # Check whether --with-pic or --without-pic was given.
7984: if test "${with_pic+set}" = set; then
7985: withval="$with_pic"
7986: lt_p=${PACKAGE-default}
7987: case $withval in
7988: yes|no) pic_mode=$withval ;;
7989: *)
7990: pic_mode=default
7991: # Look at the argument we got. We use all the common list separators.
7992: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7993: for lt_pkg in $withval; do
7994: IFS="$lt_save_ifs"
7995: if test "X$lt_pkg" = "X$lt_p"; then
7996: pic_mode=yes
7997: fi
7998: done
7999: IFS="$lt_save_ifs"
8000: ;;
8001: esac
8002: else
8003: pic_mode=default
8004: fi;
8005:
8006: test -z "$pic_mode" && pic_mode=default
8007:
8008:
8009:
8010:
8011:
8012:
8013:
8014: # Check whether --enable-fast-install or --disable-fast-install was given.
8015: if test "${enable_fast_install+set}" = set; then
8016: enableval="$enable_fast_install"
8017: p=${PACKAGE-default}
8018: case $enableval in
8019: yes) enable_fast_install=yes ;;
8020: no) enable_fast_install=no ;;
8021: *)
8022: enable_fast_install=no
8023: # Look at the argument we got. We use all the common list separators.
8024: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8025: for pkg in $enableval; do
8026: IFS="$lt_save_ifs"
8027: if test "X$pkg" = "X$p"; then
8028: enable_fast_install=yes
8029: fi
8030: done
8031: IFS="$lt_save_ifs"
8032: ;;
8033: esac
8034: else
8035: enable_fast_install=yes
8036: fi;
8037:
8038:
8039:
8040:
8041:
8042:
8043:
8044:
8045:
8046:
8047: # This can be used to rebuild libtool when needed
8048: LIBTOOL_DEPS="$ltmain"
8049:
8050: # Always use our own libtool.
8051: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8052:
8053:
8054:
8055:
8056:
8057:
8058:
8059:
8060:
8061:
8062:
8063:
8064:
8065:
8066:
8067:
8068:
8069:
8070:
8071:
8072:
8073:
8074:
8075:
8076:
8077:
8078:
8079:
8080:
8081:
8082: test -z "$LN_S" && LN_S="ln -s"
8083:
8084:
8085:
8086:
8087:
8088:
8089:
8090:
8091:
8092:
8093:
8094:
8095:
8096:
8097: if test -n "${ZSH_VERSION+set}" ; then
8098: setopt NO_GLOB_SUBST
8099: fi
8100:
8101: echo "$as_me:$LINENO: checking for objdir" >&5
8102: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8103: if test "${lt_cv_objdir+set}" = set; then
8104: echo $ECHO_N "(cached) $ECHO_C" >&6
8105: else
8106: rm -f .libs 2>/dev/null
8107: mkdir .libs 2>/dev/null
8108: if test -d .libs; then
8109: lt_cv_objdir=.libs
8110: else
8111: # MS-DOS does not allow filenames that begin with a dot.
8112: lt_cv_objdir=_libs
8113: fi
8114: rmdir .libs 2>/dev/null
8115: fi
8116: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8117: echo "${ECHO_T}$lt_cv_objdir" >&6
8118: objdir=$lt_cv_objdir
8119:
8120:
8121:
8122:
8123:
8124: cat >>confdefs.h <<_ACEOF
8125: #define LT_OBJDIR "$lt_cv_objdir/"
8126: _ACEOF
8127:
8128:
8129:
8130:
8131: case $host_os in
8132: aix3*)
8133: # AIX sometimes has problems with the GCC collect2 program. For some
8134: # reason, if we set the COLLECT_NAMES environment variable, the problems
8135: # vanish in a puff of smoke.
8136: if test "X${COLLECT_NAMES+set}" != Xset; then
8137: COLLECT_NAMES=
8138: export COLLECT_NAMES
8139: fi
8140: ;;
8141: esac
8142:
8143: # Global variables:
8144: ofile=libtool
8145: can_build_shared=yes
8146:
8147: # All known linkers require a `.a' archive for static linking (except MSVC,
8148: # which needs '.lib').
8149: libext=a
8150:
8151: with_gnu_ld="$lt_cv_prog_gnu_ld"
8152:
8153: old_CC="$CC"
8154: old_CFLAGS="$CFLAGS"
8155:
8156: # Set sane defaults for various variables
8157: test -z "$CC" && CC=cc
8158: test -z "$LTCC" && LTCC=$CC
8159: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8160: test -z "$LD" && LD=ld
8161: test -z "$ac_objext" && ac_objext=o
8162:
8163: for cc_temp in $compiler""; do
8164: case $cc_temp in
8165: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8166: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8167: \-*) ;;
8168: *) break;;
8169: esac
8170: done
8171: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8172:
8173:
8174: # Only perform the check for file, if the check method requires it
8175: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8176: case $deplibs_check_method in
8177: file_magic*)
8178: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8179: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8180: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8181: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8182: echo $ECHO_N "(cached) $ECHO_C" >&6
8183: else
8184: case $MAGIC_CMD in
8185: [\\/*] | ?:[\\/]*)
8186: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8187: ;;
8188: *)
8189: lt_save_MAGIC_CMD="$MAGIC_CMD"
8190: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8191: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8192: for ac_dir in $ac_dummy; do
8193: IFS="$lt_save_ifs"
8194: test -z "$ac_dir" && ac_dir=.
8195: if test -f $ac_dir/${ac_tool_prefix}file; then
8196: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8197: if test -n "$file_magic_test_file"; then
8198: case $deplibs_check_method in
8199: "file_magic "*)
8200: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8202: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8203: $EGREP "$file_magic_regex" > /dev/null; then
8204: :
8205: else
8206: cat <<_LT_EOF 1>&2
8207:
8208: *** Warning: the command libtool uses to detect shared libraries,
8209: *** $file_magic_cmd, produces output that libtool cannot recognize.
8210: *** The result is that libtool may fail to recognize shared libraries
8211: *** as such. This will affect the creation of libtool libraries that
8212: *** depend on shared libraries, but programs linked with such libtool
8213: *** libraries will work regardless of this problem. Nevertheless, you
8214: *** may want to report the problem to your system manager and/or to
8215: *** bug-libtool@gnu.org
8216:
8217: _LT_EOF
8218: fi ;;
8219: esac
8220: fi
8221: break
8222: fi
8223: done
8224: IFS="$lt_save_ifs"
8225: MAGIC_CMD="$lt_save_MAGIC_CMD"
8226: ;;
8227: esac
8228: fi
8229:
8230: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231: if test -n "$MAGIC_CMD"; then
8232: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8233: echo "${ECHO_T}$MAGIC_CMD" >&6
8234: else
8235: echo "$as_me:$LINENO: result: no" >&5
8236: echo "${ECHO_T}no" >&6
8237: fi
8238:
8239:
8240:
8241:
8242:
8243: if test -z "$lt_cv_path_MAGIC_CMD"; then
8244: if test -n "$ac_tool_prefix"; then
8245: echo "$as_me:$LINENO: checking for file" >&5
8246: echo $ECHO_N "checking for file... $ECHO_C" >&6
8247: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8248: echo $ECHO_N "(cached) $ECHO_C" >&6
8249: else
8250: case $MAGIC_CMD in
8251: [\\/*] | ?:[\\/]*)
8252: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8253: ;;
8254: *)
8255: lt_save_MAGIC_CMD="$MAGIC_CMD"
8256: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8257: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8258: for ac_dir in $ac_dummy; do
8259: IFS="$lt_save_ifs"
8260: test -z "$ac_dir" && ac_dir=.
8261: if test -f $ac_dir/file; then
8262: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8263: if test -n "$file_magic_test_file"; then
8264: case $deplibs_check_method in
8265: "file_magic "*)
8266: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8267: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8268: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8269: $EGREP "$file_magic_regex" > /dev/null; then
8270: :
8271: else
8272: cat <<_LT_EOF 1>&2
8273:
8274: *** Warning: the command libtool uses to detect shared libraries,
8275: *** $file_magic_cmd, produces output that libtool cannot recognize.
8276: *** The result is that libtool may fail to recognize shared libraries
8277: *** as such. This will affect the creation of libtool libraries that
8278: *** depend on shared libraries, but programs linked with such libtool
8279: *** libraries will work regardless of this problem. Nevertheless, you
8280: *** may want to report the problem to your system manager and/or to
8281: *** bug-libtool@gnu.org
8282:
8283: _LT_EOF
8284: fi ;;
8285: esac
8286: fi
8287: break
8288: fi
8289: done
8290: IFS="$lt_save_ifs"
8291: MAGIC_CMD="$lt_save_MAGIC_CMD"
8292: ;;
8293: esac
8294: fi
8295:
8296: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297: if test -n "$MAGIC_CMD"; then
8298: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8299: echo "${ECHO_T}$MAGIC_CMD" >&6
8300: else
8301: echo "$as_me:$LINENO: result: no" >&5
8302: echo "${ECHO_T}no" >&6
8303: fi
8304:
8305:
8306: else
8307: MAGIC_CMD=:
8308: fi
8309: fi
8310:
8311: fi
8312: ;;
8313: esac
8314:
8315: # Use C for the default configuration in the libtool script
8316:
8317: lt_save_CC="$CC"
8318: ac_ext=c
8319: ac_cpp='$CPP $CPPFLAGS'
8320: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8321: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8322: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8323:
8324:
8325: # Source file extension for C test sources.
8326: ac_ext=c
8327:
8328: # Object file extension for compiled C test sources.
8329: objext=o
8330: objext=$objext
8331:
8332: # Code to be used in simple compile tests
8333: lt_simple_compile_test_code="int some_variable = 0;"
8334:
8335: # Code to be used in simple link tests
8336: lt_simple_link_test_code='int main(){return(0);}'
8337:
8338:
8339:
8340:
8341:
8342:
8343:
8344: # If no C compiler was specified, use CC.
8345: LTCC=${LTCC-"$CC"}
8346:
8347: # If no C compiler flags were specified, use CFLAGS.
8348: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8349:
8350: # Allow CC to be a program name with arguments.
8351: compiler=$CC
8352:
8353: # Save the default compiler, since it gets overwritten when the other
8354: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8355: compiler_DEFAULT=$CC
8356:
8357: # save warnings/boilerplate of simple test code
8358: ac_outfile=conftest.$ac_objext
8359: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8360: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8361: _lt_compiler_boilerplate=`cat conftest.err`
8362: $RM conftest*
8363:
8364: ac_outfile=conftest.$ac_objext
8365: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8366: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8367: _lt_linker_boilerplate=`cat conftest.err`
8368: $RM -r conftest*
8369:
8370:
8371: ## CAVEAT EMPTOR:
8372: ## There is no encapsulation within the following macros, do not change
8373: ## the running order or otherwise move them around unless you know exactly
8374: ## what you are doing...
8375: if test -n "$compiler"; then
8376:
8377: lt_prog_compiler_no_builtin_flag=
8378:
8379: if test "$GCC" = yes; then
8380: case $cc_basename in
8381: nvcc*)
8382: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8383: *)
8384: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8385: esac
8386:
8387: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8388: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8389: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8390: echo $ECHO_N "(cached) $ECHO_C" >&6
8391: else
8392: lt_cv_prog_compiler_rtti_exceptions=no
8393: ac_outfile=conftest.$ac_objext
8394: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395: lt_compiler_flag="-fno-rtti -fno-exceptions"
8396: # Insert the option either (1) after the last *FLAGS variable, or
8397: # (2) before a word containing "conftest.", or (3) at the end.
8398: # Note that $ac_compile itself does not contain backslashes and begins
8399: # with a dollar sign (not a hyphen), so the echo should work correctly.
8400: # The option is referenced via a variable to avoid confusing sed.
8401: lt_compile=`echo "$ac_compile" | $SED \
8402: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8403: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8404: -e 's:$: $lt_compiler_flag:'`
8405: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8406: (eval "$lt_compile" 2>conftest.err)
8407: ac_status=$?
8408: cat conftest.err >&5
8409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410: if (exit $ac_status) && test -s "$ac_outfile"; then
8411: # The compiler can only warn and ignore the option if not recognized
8412: # So say no if there are warnings other than the usual output.
8413: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8414: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8415: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8416: lt_cv_prog_compiler_rtti_exceptions=yes
8417: fi
8418: fi
8419: $RM conftest*
8420:
8421: fi
8422: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8423: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8424:
8425: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8426: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8427: else
8428: :
8429: fi
8430:
8431: fi
8432:
8433:
8434:
8435:
8436:
8437:
8438: lt_prog_compiler_wl=
8439: lt_prog_compiler_pic=
8440: lt_prog_compiler_static=
8441:
8442:
8443: if test "$GCC" = yes; then
8444: lt_prog_compiler_wl='-Wl,'
8445: lt_prog_compiler_static='-static'
8446:
8447: case $host_os in
8448: aix*)
8449: # All AIX code is PIC.
8450: if test "$host_cpu" = ia64; then
8451: # AIX 5 now supports IA64 processor
8452: lt_prog_compiler_static='-Bstatic'
8453: fi
8454: ;;
8455:
8456: amigaos*)
8457: case $host_cpu in
8458: powerpc)
8459: # see comment about AmigaOS4 .so support
8460: lt_prog_compiler_pic='-fPIC'
8461: ;;
8462: m68k)
8463: # FIXME: we need at least 68020 code to build shared libraries, but
8464: # adding the `-m68020' flag to GCC prevents building anything better,
8465: # like `-m68040'.
8466: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8467: ;;
8468: esac
8469: ;;
8470:
8471: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8472: # PIC is the default for these OSes.
8473: ;;
8474:
8475: mingw* | cygwin* | pw32* | os2* | cegcc*)
8476: # This hack is so that the source file can tell whether it is being
8477: # built for inclusion in a dll (and should export symbols for example).
8478: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8479: # (--disable-auto-import) libraries
8480: lt_prog_compiler_pic='-DDLL_EXPORT'
8481: ;;
8482:
8483: darwin* | rhapsody*)
8484: # PIC is the default on this platform
8485: # Common symbols not allowed in MH_DYLIB files
8486: lt_prog_compiler_pic='-fno-common'
8487: ;;
8488:
8489: haiku*)
8490: # PIC is the default for Haiku.
8491: # The "-static" flag exists, but is broken.
8492: lt_prog_compiler_static=
8493: ;;
8494:
8495: hpux*)
8496: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8497: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8498: # sets the default TLS model and affects inlining.
8499: case $host_cpu in
8500: hppa*64*)
8501: # +Z the default
8502: ;;
8503: *)
8504: lt_prog_compiler_pic='-fPIC'
8505: ;;
8506: esac
8507: ;;
8508:
8509: interix[3-9]*)
8510: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8511: # Instead, we relocate shared libraries at runtime.
8512: ;;
8513:
8514: msdosdjgpp*)
8515: # Just because we use GCC doesn't mean we suddenly get shared libraries
8516: # on systems that don't support them.
8517: lt_prog_compiler_can_build_shared=no
8518: enable_shared=no
8519: ;;
8520:
8521: *nto* | *qnx*)
8522: # QNX uses GNU C++, but need to define -shared option too, otherwise
8523: # it will coredump.
8524: lt_prog_compiler_pic='-fPIC -shared'
8525: ;;
8526:
8527: sysv4*MP*)
8528: if test -d /usr/nec; then
8529: lt_prog_compiler_pic=-Kconform_pic
8530: fi
8531: ;;
8532:
8533: *)
8534: lt_prog_compiler_pic='-fPIC'
8535: ;;
8536: esac
8537:
8538: case $cc_basename in
8539: nvcc*) # Cuda Compiler Driver 2.2
8540: lt_prog_compiler_wl='-Xlinker '
8541: if test -n "$lt_prog_compiler_pic"; then
8542: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8543: fi
8544: ;;
8545: esac
8546: else
8547: # PORTME Check for flag to pass linker flags through the system compiler.
8548: case $host_os in
8549: aix*)
8550: lt_prog_compiler_wl='-Wl,'
8551: if test "$host_cpu" = ia64; then
8552: # AIX 5 now supports IA64 processor
8553: lt_prog_compiler_static='-Bstatic'
8554: else
8555: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8556: fi
8557: ;;
8558:
8559: mingw* | cygwin* | pw32* | os2* | cegcc*)
8560: # This hack is so that the source file can tell whether it is being
8561: # built for inclusion in a dll (and should export symbols for example).
8562: lt_prog_compiler_pic='-DDLL_EXPORT'
8563: ;;
8564:
8565: hpux9* | hpux10* | hpux11*)
8566: lt_prog_compiler_wl='-Wl,'
8567: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8568: # not for PA HP-UX.
8569: case $host_cpu in
8570: hppa*64*|ia64*)
8571: # +Z the default
8572: ;;
8573: *)
8574: lt_prog_compiler_pic='+Z'
8575: ;;
8576: esac
8577: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8578: lt_prog_compiler_static='${wl}-a ${wl}archive'
8579: ;;
8580:
8581: irix5* | irix6* | nonstopux*)
8582: lt_prog_compiler_wl='-Wl,'
8583: # PIC (with -KPIC) is the default.
8584: lt_prog_compiler_static='-non_shared'
8585: ;;
8586:
8587: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8588: case $cc_basename in
8589: # old Intel for x86_64 which still supported -KPIC.
8590: ecc*)
8591: lt_prog_compiler_wl='-Wl,'
8592: lt_prog_compiler_pic='-KPIC'
8593: lt_prog_compiler_static='-static'
8594: ;;
8595: # icc used to be incompatible with GCC.
8596: # ICC 10 doesn't accept -KPIC any more.
8597: icc* | ifort*)
8598: lt_prog_compiler_wl='-Wl,'
8599: lt_prog_compiler_pic='-fPIC'
8600: lt_prog_compiler_static='-static'
8601: ;;
8602: # Lahey Fortran 8.1.
8603: lf95*)
8604: lt_prog_compiler_wl='-Wl,'
8605: lt_prog_compiler_pic='--shared'
8606: lt_prog_compiler_static='--static'
8607: ;;
8608: nagfor*)
8609: # NAG Fortran compiler
8610: lt_prog_compiler_wl='-Wl,-Wl,,'
8611: lt_prog_compiler_pic='-PIC'
8612: lt_prog_compiler_static='-Bstatic'
8613: ;;
8614: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8615: # Portland Group compilers (*not* the Pentium gcc compiler,
8616: # which looks to be a dead project)
8617: lt_prog_compiler_wl='-Wl,'
8618: lt_prog_compiler_pic='-fpic'
8619: lt_prog_compiler_static='-Bstatic'
8620: ;;
8621: ccc*)
8622: lt_prog_compiler_wl='-Wl,'
8623: # All Alpha code is PIC.
8624: lt_prog_compiler_static='-non_shared'
8625: ;;
8626: xl* | bgxl* | bgf* | mpixl*)
8627: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8628: lt_prog_compiler_wl='-Wl,'
8629: lt_prog_compiler_pic='-qpic'
8630: lt_prog_compiler_static='-qstaticlink'
8631: ;;
8632: *)
8633: case `$CC -V 2>&1 | sed 5q` in
8634: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8635: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8636: lt_prog_compiler_pic='-KPIC'
8637: lt_prog_compiler_static='-Bstatic'
8638: lt_prog_compiler_wl=''
8639: ;;
8640: *Sun\ F* | *Sun*Fortran*)
8641: lt_prog_compiler_pic='-KPIC'
8642: lt_prog_compiler_static='-Bstatic'
8643: lt_prog_compiler_wl='-Qoption ld '
8644: ;;
8645: *Sun\ C*)
8646: # Sun C 5.9
8647: lt_prog_compiler_pic='-KPIC'
8648: lt_prog_compiler_static='-Bstatic'
8649: lt_prog_compiler_wl='-Wl,'
8650: ;;
8651: *Intel*\ [CF]*Compiler*)
8652: lt_prog_compiler_wl='-Wl,'
8653: lt_prog_compiler_pic='-fPIC'
8654: lt_prog_compiler_static='-static'
8655: ;;
8656: *Portland\ Group*)
8657: lt_prog_compiler_wl='-Wl,'
8658: lt_prog_compiler_pic='-fpic'
8659: lt_prog_compiler_static='-Bstatic'
8660: ;;
8661: esac
8662: ;;
8663: esac
8664: ;;
8665:
8666: newsos6)
8667: lt_prog_compiler_pic='-KPIC'
8668: lt_prog_compiler_static='-Bstatic'
8669: ;;
8670:
8671: *nto* | *qnx*)
8672: # QNX uses GNU C++, but need to define -shared option too, otherwise
8673: # it will coredump.
8674: lt_prog_compiler_pic='-fPIC -shared'
8675: ;;
8676:
8677: osf3* | osf4* | osf5*)
8678: lt_prog_compiler_wl='-Wl,'
8679: # All OSF/1 code is PIC.
8680: lt_prog_compiler_static='-non_shared'
8681: ;;
8682:
8683: rdos*)
8684: lt_prog_compiler_static='-non_shared'
8685: ;;
8686:
8687: solaris*)
8688: lt_prog_compiler_pic='-KPIC'
8689: lt_prog_compiler_static='-Bstatic'
8690: case $cc_basename in
8691: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8692: lt_prog_compiler_wl='-Qoption ld ';;
8693: *)
8694: lt_prog_compiler_wl='-Wl,';;
8695: esac
8696: ;;
8697:
8698: sunos4*)
8699: lt_prog_compiler_wl='-Qoption ld '
8700: lt_prog_compiler_pic='-PIC'
8701: lt_prog_compiler_static='-Bstatic'
8702: ;;
8703:
8704: sysv4 | sysv4.2uw2* | sysv4.3*)
8705: lt_prog_compiler_wl='-Wl,'
8706: lt_prog_compiler_pic='-KPIC'
8707: lt_prog_compiler_static='-Bstatic'
8708: ;;
8709:
8710: sysv4*MP*)
8711: if test -d /usr/nec ;then
8712: lt_prog_compiler_pic='-Kconform_pic'
8713: lt_prog_compiler_static='-Bstatic'
8714: fi
8715: ;;
8716:
8717: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8718: lt_prog_compiler_wl='-Wl,'
8719: lt_prog_compiler_pic='-KPIC'
8720: lt_prog_compiler_static='-Bstatic'
8721: ;;
8722:
8723: unicos*)
8724: lt_prog_compiler_wl='-Wl,'
8725: lt_prog_compiler_can_build_shared=no
8726: ;;
8727:
8728: uts4*)
8729: lt_prog_compiler_pic='-pic'
8730: lt_prog_compiler_static='-Bstatic'
8731: ;;
8732:
8733: *)
8734: lt_prog_compiler_can_build_shared=no
8735: ;;
8736: esac
8737: fi
8738:
8739: case $host_os in
8740: # For platforms which do not support PIC, -DPIC is meaningless:
8741: *djgpp*)
8742: lt_prog_compiler_pic=
8743: ;;
8744: *)
8745: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8746: ;;
8747: esac
8748:
8749: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8750: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8751: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8752: echo $ECHO_N "(cached) $ECHO_C" >&6
8753: else
8754: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8755: fi
8756: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8757: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8758: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8759:
8760: #
8761: # Check to make sure the PIC flag actually works.
8762: #
8763: if test -n "$lt_prog_compiler_pic"; then
8764: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8765: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8766: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8767: echo $ECHO_N "(cached) $ECHO_C" >&6
8768: else
8769: lt_cv_prog_compiler_pic_works=no
8770: ac_outfile=conftest.$ac_objext
8771: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8773: # Insert the option either (1) after the last *FLAGS variable, or
8774: # (2) before a word containing "conftest.", or (3) at the end.
8775: # Note that $ac_compile itself does not contain backslashes and begins
8776: # with a dollar sign (not a hyphen), so the echo should work correctly.
8777: # The option is referenced via a variable to avoid confusing sed.
8778: lt_compile=`echo "$ac_compile" | $SED \
8779: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781: -e 's:$: $lt_compiler_flag:'`
8782: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783: (eval "$lt_compile" 2>conftest.err)
8784: ac_status=$?
8785: cat conftest.err >&5
8786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787: if (exit $ac_status) && test -s "$ac_outfile"; then
8788: # The compiler can only warn and ignore the option if not recognized
8789: # So say no if there are warnings other than the usual output.
8790: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8791: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8793: lt_cv_prog_compiler_pic_works=yes
8794: fi
8795: fi
8796: $RM conftest*
8797:
8798: fi
8799: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8800: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8801:
8802: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8803: case $lt_prog_compiler_pic in
8804: "" | " "*) ;;
8805: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8806: esac
8807: else
8808: lt_prog_compiler_pic=
8809: lt_prog_compiler_can_build_shared=no
8810: fi
8811:
8812: fi
8813:
8814:
8815:
8816:
8817:
8818:
8819:
8820:
8821:
8822:
8823:
8824: #
8825: # Check to make sure the static flag actually works.
8826: #
8827: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8828: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8829: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8830: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8831: echo $ECHO_N "(cached) $ECHO_C" >&6
8832: else
8833: lt_cv_prog_compiler_static_works=no
8834: save_LDFLAGS="$LDFLAGS"
8835: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8836: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8837: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8838: # The linker can only warn and ignore the option if not recognized
8839: # So say no if there are warnings
8840: if test -s conftest.err; then
8841: # Append any errors to the config.log.
8842: cat conftest.err 1>&5
8843: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8844: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845: if diff conftest.exp conftest.er2 >/dev/null; then
8846: lt_cv_prog_compiler_static_works=yes
8847: fi
8848: else
8849: lt_cv_prog_compiler_static_works=yes
8850: fi
8851: fi
8852: $RM -r conftest*
8853: LDFLAGS="$save_LDFLAGS"
8854:
8855: fi
8856: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8857: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8858:
8859: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8860: :
8861: else
8862: lt_prog_compiler_static=
8863: fi
8864:
8865:
8866:
8867:
8868:
8869:
8870:
8871: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8872: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8873: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8874: echo $ECHO_N "(cached) $ECHO_C" >&6
8875: else
8876: lt_cv_prog_compiler_c_o=no
8877: $RM -r conftest 2>/dev/null
8878: mkdir conftest
8879: cd conftest
8880: mkdir out
8881: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882:
8883: lt_compiler_flag="-o out/conftest2.$ac_objext"
8884: # Insert the option either (1) after the last *FLAGS variable, or
8885: # (2) before a word containing "conftest.", or (3) at the end.
8886: # Note that $ac_compile itself does not contain backslashes and begins
8887: # with a dollar sign (not a hyphen), so the echo should work correctly.
8888: lt_compile=`echo "$ac_compile" | $SED \
8889: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891: -e 's:$: $lt_compiler_flag:'`
8892: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893: (eval "$lt_compile" 2>out/conftest.err)
8894: ac_status=$?
8895: cat out/conftest.err >&5
8896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898: then
8899: # The compiler can only warn and ignore the option if not recognized
8900: # So say no if there are warnings
8901: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904: lt_cv_prog_compiler_c_o=yes
8905: fi
8906: fi
8907: chmod u+w . 2>&5
8908: $RM conftest*
8909: # SGI C++ compiler will create directory out/ii_files/ for
8910: # template instantiation
8911: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912: $RM out/* && rmdir out
8913: cd ..
8914: $RM -r conftest
8915: $RM conftest*
8916:
8917: fi
8918: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8919: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8920:
8921:
8922:
8923:
8924:
8925:
8926: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8927: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8928: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8929: echo $ECHO_N "(cached) $ECHO_C" >&6
8930: else
8931: lt_cv_prog_compiler_c_o=no
8932: $RM -r conftest 2>/dev/null
8933: mkdir conftest
8934: cd conftest
8935: mkdir out
8936: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937:
8938: lt_compiler_flag="-o out/conftest2.$ac_objext"
8939: # Insert the option either (1) after the last *FLAGS variable, or
8940: # (2) before a word containing "conftest.", or (3) at the end.
8941: # Note that $ac_compile itself does not contain backslashes and begins
8942: # with a dollar sign (not a hyphen), so the echo should work correctly.
8943: lt_compile=`echo "$ac_compile" | $SED \
8944: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946: -e 's:$: $lt_compiler_flag:'`
8947: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948: (eval "$lt_compile" 2>out/conftest.err)
8949: ac_status=$?
8950: cat out/conftest.err >&5
8951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953: then
8954: # The compiler can only warn and ignore the option if not recognized
8955: # So say no if there are warnings
8956: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959: lt_cv_prog_compiler_c_o=yes
8960: fi
8961: fi
8962: chmod u+w . 2>&5
8963: $RM conftest*
8964: # SGI C++ compiler will create directory out/ii_files/ for
8965: # template instantiation
8966: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967: $RM out/* && rmdir out
8968: cd ..
8969: $RM -r conftest
8970: $RM conftest*
8971:
8972: fi
8973: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8974: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8975:
8976:
8977:
8978:
8979: hard_links="nottested"
8980: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8981: # do not overwrite the value of need_locks provided by the user
8982: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8983: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8984: hard_links=yes
8985: $RM conftest*
8986: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987: touch conftest.a
8988: ln conftest.a conftest.b 2>&5 || hard_links=no
8989: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8990: echo "$as_me:$LINENO: result: $hard_links" >&5
8991: echo "${ECHO_T}$hard_links" >&6
8992: if test "$hard_links" = no; then
8993: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8994: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8995: need_locks=warn
8996: fi
8997: else
8998: need_locks=no
8999: fi
9000:
9001:
9002:
9003:
9004:
9005:
9006: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9007: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9008:
9009: runpath_var=
9010: allow_undefined_flag=
9011: always_export_symbols=no
9012: archive_cmds=
9013: archive_expsym_cmds=
9014: compiler_needs_object=no
9015: enable_shared_with_static_runtimes=no
9016: export_dynamic_flag_spec=
9017: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9018: hardcode_automatic=no
9019: hardcode_direct=no
9020: hardcode_direct_absolute=no
9021: hardcode_libdir_flag_spec=
9022: hardcode_libdir_separator=
9023: hardcode_minus_L=no
9024: hardcode_shlibpath_var=unsupported
9025: inherit_rpath=no
9026: link_all_deplibs=unknown
9027: module_cmds=
9028: module_expsym_cmds=
9029: old_archive_from_new_cmds=
9030: old_archive_from_expsyms_cmds=
9031: thread_safe_flag_spec=
9032: whole_archive_flag_spec=
9033: # include_expsyms should be a list of space-separated symbols to be *always*
9034: # included in the symbol list
9035: include_expsyms=
9036: # exclude_expsyms can be an extended regexp of symbols to exclude
9037: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9038: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9039: # as well as any symbol that contains `d'.
9040: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9041: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9042: # platforms (ab)use it in PIC code, but their linkers get confused if
9043: # the symbol is explicitly referenced. Since portable code cannot
9044: # rely on this symbol name, it's probably fine to never include it in
9045: # preloaded symbol tables.
9046: # Exclude shared library initialization/finalization symbols.
9047: extract_expsyms_cmds=
9048:
9049: case $host_os in
9050: cygwin* | mingw* | pw32* | cegcc*)
9051: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9052: # When not using gcc, we currently assume that we are using
9053: # Microsoft Visual C++.
9054: if test "$GCC" != yes; then
9055: with_gnu_ld=no
9056: fi
9057: ;;
9058: interix*)
9059: # we just hope/assume this is gcc and not c89 (= MSVC++)
9060: with_gnu_ld=yes
9061: ;;
9062: openbsd*)
9063: with_gnu_ld=no
9064: ;;
9065: esac
9066:
9067: ld_shlibs=yes
9068:
9069: # On some targets, GNU ld is compatible enough with the native linker
9070: # that we're better off using the native interface for both.
9071: lt_use_gnu_ld_interface=no
9072: if test "$with_gnu_ld" = yes; then
9073: case $host_os in
9074: aix*)
9075: # The AIX port of GNU ld has always aspired to compatibility
9076: # with the native linker. However, as the warning in the GNU ld
9077: # block says, versions before 2.19.5* couldn't really create working
9078: # shared libraries, regardless of the interface used.
9079: case `$LD -v 2>&1` in
9080: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9081: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9082: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9083: *)
9084: lt_use_gnu_ld_interface=yes
9085: ;;
9086: esac
9087: ;;
9088: *)
9089: lt_use_gnu_ld_interface=yes
9090: ;;
9091: esac
9092: fi
9093:
9094: if test "$lt_use_gnu_ld_interface" = yes; then
9095: # If archive_cmds runs LD, not CC, wlarc should be empty
9096: wlarc='${wl}'
9097:
9098: # Set some defaults for GNU ld with shared library support. These
9099: # are reset later if shared libraries are not supported. Putting them
9100: # here allows them to be overridden if necessary.
9101: runpath_var=LD_RUN_PATH
9102: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103: export_dynamic_flag_spec='${wl}--export-dynamic'
9104: # ancient GNU ld didn't support --whole-archive et. al.
9105: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9106: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9107: else
9108: whole_archive_flag_spec=
9109: fi
9110: supports_anon_versioning=no
9111: case `$LD -v 2>&1` in
9112: *GNU\ gold*) supports_anon_versioning=yes ;;
9113: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9114: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9115: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9116: *\ 2.11.*) ;; # other 2.11 versions
9117: *) supports_anon_versioning=yes ;;
9118: esac
9119:
9120: # See if GNU ld supports shared libraries.
9121: case $host_os in
9122: aix[3-9]*)
9123: # On AIX/PPC, the GNU linker is very broken
9124: if test "$host_cpu" != ia64; then
9125: ld_shlibs=no
9126: cat <<_LT_EOF 1>&2
9127:
9128: *** Warning: the GNU linker, at least up to release 2.19, is reported
9129: *** to be unable to reliably create shared libraries on AIX.
9130: *** Therefore, libtool is disabling shared libraries support. If you
9131: *** really care for shared libraries, you may want to install binutils
9132: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9133: *** You will then need to restart the configuration process.
9134:
9135: _LT_EOF
9136: fi
9137: ;;
9138:
9139: amigaos*)
9140: case $host_cpu in
9141: powerpc)
9142: # see comment about AmigaOS4 .so support
9143: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144: archive_expsym_cmds=''
9145: ;;
9146: m68k)
9147: 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)'
9148: hardcode_libdir_flag_spec='-L$libdir'
9149: hardcode_minus_L=yes
9150: ;;
9151: esac
9152: ;;
9153:
9154: beos*)
9155: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9156: allow_undefined_flag=unsupported
9157: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9158: # support --undefined. This deserves some investigation. FIXME
9159: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9160: else
9161: ld_shlibs=no
9162: fi
9163: ;;
9164:
9165: cygwin* | mingw* | pw32* | cegcc*)
9166: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9167: # as there is no search path for DLLs.
9168: hardcode_libdir_flag_spec='-L$libdir'
9169: export_dynamic_flag_spec='${wl}--export-all-symbols'
9170: allow_undefined_flag=unsupported
9171: always_export_symbols=no
9172: enable_shared_with_static_runtimes=yes
9173: 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'
9174: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9175:
9176: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9177: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178: # If the export-symbols file already is a .def file (1st line
9179: # is EXPORTS), use it as is; otherwise, prepend...
9180: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9181: cp $export_symbols $output_objdir/$soname.def;
9182: else
9183: echo EXPORTS > $output_objdir/$soname.def;
9184: cat $export_symbols >> $output_objdir/$soname.def;
9185: fi~
9186: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9187: else
9188: ld_shlibs=no
9189: fi
9190: ;;
9191:
9192: haiku*)
9193: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194: link_all_deplibs=yes
9195: ;;
9196:
9197: interix[3-9]*)
9198: hardcode_direct=no
9199: hardcode_shlibpath_var=no
9200: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201: export_dynamic_flag_spec='${wl}-E'
9202: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9203: # Instead, shared libraries are loaded at an image base (0x10000000 by
9204: # default) and relocated if they conflict, which is a slow very memory
9205: # consuming and fragmenting process. To avoid this, we pick a random,
9206: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9207: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9208: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9209: 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'
9210: ;;
9211:
9212: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9213: tmp_diet=no
9214: if test "$host_os" = linux-dietlibc; then
9215: case $cc_basename in
9216: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9217: esac
9218: fi
9219: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9220: && test "$tmp_diet" = no
9221: then
9222: tmp_addflag=' $pic_flag'
9223: tmp_sharedflag='-shared'
9224: case $cc_basename,$host_cpu in
9225: pgcc*) # Portland Group C compiler
9226: 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'
9227: tmp_addflag=' $pic_flag'
9228: ;;
9229: pgf77* | pgf90* | pgf95* | pgfortran*)
9230: # Portland Group f77 and f90 compilers
9231: 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'
9232: tmp_addflag=' $pic_flag -Mnomain' ;;
9233: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9234: tmp_addflag=' -i_dynamic' ;;
9235: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9236: tmp_addflag=' -i_dynamic -nofor_main' ;;
9237: ifc* | ifort*) # Intel Fortran compiler
9238: tmp_addflag=' -nofor_main' ;;
9239: lf95*) # Lahey Fortran 8.1
9240: whole_archive_flag_spec=
9241: tmp_sharedflag='--shared' ;;
9242: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9243: tmp_sharedflag='-qmkshrobj'
9244: tmp_addflag= ;;
9245: nvcc*) # Cuda Compiler Driver 2.2
9246: 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'
9247: compiler_needs_object=yes
9248: ;;
9249: esac
9250: case `$CC -V 2>&1 | sed 5q` in
9251: *Sun\ C*) # Sun C 5.9
9252: 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'
9253: compiler_needs_object=yes
9254: tmp_sharedflag='-G' ;;
9255: *Sun\ F*) # Sun Fortran 8.3
9256: tmp_sharedflag='-G' ;;
9257: esac
9258: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259:
9260: if test "x$supports_anon_versioning" = xyes; then
9261: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9262: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9263: echo "local: *; };" >> $output_objdir/$libname.ver~
9264: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9265: fi
9266:
9267: case $cc_basename in
9268: xlf* | bgf* | bgxlf* | mpixlf*)
9269: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9270: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9271: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9273: if test "x$supports_anon_versioning" = xyes; then
9274: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9275: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9276: echo "local: *; };" >> $output_objdir/$libname.ver~
9277: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9278: fi
9279: ;;
9280: esac
9281: else
9282: ld_shlibs=no
9283: fi
9284: ;;
9285:
9286: netbsd*)
9287: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9289: wlarc=
9290: else
9291: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9293: fi
9294: ;;
9295:
9296: solaris*)
9297: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9298: ld_shlibs=no
9299: cat <<_LT_EOF 1>&2
9300:
9301: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9302: *** create shared libraries on Solaris systems. Therefore, libtool
9303: *** is disabling shared libraries support. We urge you to upgrade GNU
9304: *** binutils to release 2.9.1 or newer. Another option is to modify
9305: *** your PATH or compiler configuration so that the native linker is
9306: *** used, and then restart.
9307:
9308: _LT_EOF
9309: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9312: else
9313: ld_shlibs=no
9314: fi
9315: ;;
9316:
9317: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9318: case `$LD -v 2>&1` in
9319: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9320: ld_shlibs=no
9321: cat <<_LT_EOF 1>&2
9322:
9323: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9324: *** reliably create shared libraries on SCO systems. Therefore, libtool
9325: *** is disabling shared libraries support. We urge you to upgrade GNU
9326: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9327: *** your PATH or compiler configuration so that the native linker is
9328: *** used, and then restart.
9329:
9330: _LT_EOF
9331: ;;
9332: *)
9333: # For security reasons, it is highly recommended that you always
9334: # use absolute paths for naming shared libraries, and exclude the
9335: # DT_RUNPATH tag from executables and libraries. But doing so
9336: # requires that you compile everything twice, which is a pain.
9337: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9341: else
9342: ld_shlibs=no
9343: fi
9344: ;;
9345: esac
9346: ;;
9347:
9348: sunos4*)
9349: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350: wlarc=
9351: hardcode_direct=yes
9352: hardcode_shlibpath_var=no
9353: ;;
9354:
9355: *)
9356: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359: else
9360: ld_shlibs=no
9361: fi
9362: ;;
9363: esac
9364:
9365: if test "$ld_shlibs" = no; then
9366: runpath_var=
9367: hardcode_libdir_flag_spec=
9368: export_dynamic_flag_spec=
9369: whole_archive_flag_spec=
9370: fi
9371: else
9372: # PORTME fill in a description of your system's linker (not GNU ld)
9373: case $host_os in
9374: aix3*)
9375: allow_undefined_flag=unsupported
9376: always_export_symbols=yes
9377: 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'
9378: # Note: this linker hardcodes the directories in LIBPATH if there
9379: # are no directories specified by -L.
9380: hardcode_minus_L=yes
9381: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9382: # Neither direct hardcoding nor static linking is supported with a
9383: # broken collect2.
9384: hardcode_direct=unsupported
9385: fi
9386: ;;
9387:
9388: aix[4-9]*)
9389: if test "$host_cpu" = ia64; then
9390: # On IA64, the linker does run time linking by default, so we don't
9391: # have to do anything special.
9392: aix_use_runtimelinking=no
9393: exp_sym_flag='-Bexport'
9394: no_entry_flag=""
9395: else
9396: # If we're using GNU nm, then we don't want the "-C" option.
9397: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9398: # Also, AIX nm treats weak defined symbols like other global
9399: # defined symbols, whereas GNU nm marks them as "W".
9400: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9401: 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'
9402: else
9403: 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'
9404: fi
9405: aix_use_runtimelinking=no
9406:
9407: # Test if we are trying to use run time linking or normal
9408: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9409: # need to do runtime linking.
9410: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9411: for ld_flag in $LDFLAGS; do
9412: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9413: aix_use_runtimelinking=yes
9414: break
9415: fi
9416: done
9417: ;;
9418: esac
9419:
9420: exp_sym_flag='-bexport'
9421: no_entry_flag='-bnoentry'
9422: fi
9423:
9424: # When large executables or shared objects are built, AIX ld can
9425: # have problems creating the table of contents. If linking a library
9426: # or program results in "error TOC overflow" add -mminimal-toc to
9427: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9428: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9429:
9430: archive_cmds=''
9431: hardcode_direct=yes
9432: hardcode_direct_absolute=yes
9433: hardcode_libdir_separator=':'
9434: link_all_deplibs=yes
9435: file_list_spec='${wl}-f,'
9436:
9437: if test "$GCC" = yes; then
9438: case $host_os in aix4.[012]|aix4.[012].*)
9439: # We only want to do this on AIX 4.2 and lower, the check
9440: # below for broken collect2 doesn't work under 4.3+
9441: collect2name=`${CC} -print-prog-name=collect2`
9442: if test -f "$collect2name" &&
9443: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9444: then
9445: # We have reworked collect2
9446: :
9447: else
9448: # We have old collect2
9449: hardcode_direct=unsupported
9450: # It fails to find uninstalled libraries when the uninstalled
9451: # path is not listed in the libpath. Setting hardcode_minus_L
9452: # to unsupported forces relinking
9453: hardcode_minus_L=yes
9454: hardcode_libdir_flag_spec='-L$libdir'
9455: hardcode_libdir_separator=
9456: fi
9457: ;;
9458: esac
9459: shared_flag='-shared'
9460: if test "$aix_use_runtimelinking" = yes; then
9461: shared_flag="$shared_flag "'${wl}-G'
9462: fi
9463: else
9464: # not using gcc
9465: if test "$host_cpu" = ia64; then
9466: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9467: # chokes on -Wl,-G. The following line is correct:
9468: shared_flag='-G'
9469: else
9470: if test "$aix_use_runtimelinking" = yes; then
9471: shared_flag='${wl}-G'
9472: else
9473: shared_flag='${wl}-bM:SRE'
9474: fi
9475: fi
9476: fi
9477:
9478: export_dynamic_flag_spec='${wl}-bexpall'
9479: # It seems that -bexpall does not export symbols beginning with
9480: # underscore (_), so it is better to generate a list of symbols to export.
9481: always_export_symbols=yes
9482: if test "$aix_use_runtimelinking" = yes; then
9483: # Warning - without using the other runtime loading flags (-brtl),
9484: # -berok will link without error, but may produce a broken library.
9485: allow_undefined_flag='-berok'
9486: # Determine the default libpath from the value encoded in an
9487: # empty executable.
9488: if test "${lt_cv_aix_libpath+set}" = set; then
9489: aix_libpath=$lt_cv_aix_libpath
9490: else
9491: if test "${lt_cv_aix_libpath_+set}" = set; then
9492: echo $ECHO_N "(cached) $ECHO_C" >&6
9493: else
9494: cat >conftest.$ac_ext <<_ACEOF
9495: /* confdefs.h. */
9496: _ACEOF
9497: cat confdefs.h >>conftest.$ac_ext
9498: cat >>conftest.$ac_ext <<_ACEOF
9499: /* end confdefs.h. */
9500:
9501: int
9502: main ()
9503: {
9504:
9505: ;
9506: return 0;
9507: }
9508: _ACEOF
9509: rm -f conftest.$ac_objext conftest$ac_exeext
9510: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511: (eval $ac_link) 2>conftest.er1
9512: ac_status=$?
9513: grep -v '^ *+' conftest.er1 >conftest.err
9514: rm -f conftest.er1
9515: cat conftest.err >&5
9516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517: (exit $ac_status); } &&
9518: { ac_try='test -z "$ac_c_werror_flag"
9519: || test ! -s conftest.err'
9520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521: (eval $ac_try) 2>&5
9522: ac_status=$?
9523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524: (exit $ac_status); }; } &&
9525: { ac_try='test -s conftest$ac_exeext'
9526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527: (eval $ac_try) 2>&5
9528: ac_status=$?
9529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530: (exit $ac_status); }; }; then
9531:
9532: lt_aix_libpath_sed='
9533: /Import File Strings/,/^$/ {
9534: /^0/ {
9535: s/^0 *\([^ ]*\) *$/\1/
9536: p
9537: }
9538: }'
9539: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9540: # Check for a 64-bit object if we didn't find anything.
9541: if test -z "$lt_cv_aix_libpath_"; then
9542: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9543: fi
9544: else
9545: echo "$as_me: failed program was:" >&5
9546: sed 's/^/| /' conftest.$ac_ext >&5
9547:
9548: fi
9549: rm -f conftest.err conftest.$ac_objext \
9550: conftest$ac_exeext conftest.$ac_ext
9551: if test -z "$lt_cv_aix_libpath_"; then
9552: lt_cv_aix_libpath_="/usr/lib:/lib"
9553: fi
9554:
9555: fi
9556:
9557: aix_libpath=$lt_cv_aix_libpath_
9558: fi
9559:
9560: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561: 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"
9562: else
9563: if test "$host_cpu" = ia64; then
9564: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9565: allow_undefined_flag="-z nodefs"
9566: 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"
9567: else
9568: # Determine the default libpath from the value encoded in an
9569: # empty executable.
9570: if test "${lt_cv_aix_libpath+set}" = set; then
9571: aix_libpath=$lt_cv_aix_libpath
9572: else
9573: if test "${lt_cv_aix_libpath_+set}" = set; then
9574: echo $ECHO_N "(cached) $ECHO_C" >&6
9575: else
9576: cat >conftest.$ac_ext <<_ACEOF
9577: /* confdefs.h. */
9578: _ACEOF
9579: cat confdefs.h >>conftest.$ac_ext
9580: cat >>conftest.$ac_ext <<_ACEOF
9581: /* end confdefs.h. */
9582:
9583: int
9584: main ()
9585: {
9586:
9587: ;
9588: return 0;
9589: }
9590: _ACEOF
9591: rm -f conftest.$ac_objext conftest$ac_exeext
9592: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593: (eval $ac_link) 2>conftest.er1
9594: ac_status=$?
9595: grep -v '^ *+' conftest.er1 >conftest.err
9596: rm -f conftest.er1
9597: cat conftest.err >&5
9598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599: (exit $ac_status); } &&
9600: { ac_try='test -z "$ac_c_werror_flag"
9601: || test ! -s conftest.err'
9602: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603: (eval $ac_try) 2>&5
9604: ac_status=$?
9605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606: (exit $ac_status); }; } &&
9607: { ac_try='test -s conftest$ac_exeext'
9608: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609: (eval $ac_try) 2>&5
9610: ac_status=$?
9611: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612: (exit $ac_status); }; }; then
9613:
9614: lt_aix_libpath_sed='
9615: /Import File Strings/,/^$/ {
9616: /^0/ {
9617: s/^0 *\([^ ]*\) *$/\1/
9618: p
9619: }
9620: }'
9621: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622: # Check for a 64-bit object if we didn't find anything.
9623: if test -z "$lt_cv_aix_libpath_"; then
9624: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625: fi
9626: else
9627: echo "$as_me: failed program was:" >&5
9628: sed 's/^/| /' conftest.$ac_ext >&5
9629:
9630: fi
9631: rm -f conftest.err conftest.$ac_objext \
9632: conftest$ac_exeext conftest.$ac_ext
9633: if test -z "$lt_cv_aix_libpath_"; then
9634: lt_cv_aix_libpath_="/usr/lib:/lib"
9635: fi
9636:
9637: fi
9638:
9639: aix_libpath=$lt_cv_aix_libpath_
9640: fi
9641:
9642: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643: # Warning - without using the other run time loading flags,
9644: # -berok will link without error, but may produce a broken library.
9645: no_undefined_flag=' ${wl}-bernotok'
9646: allow_undefined_flag=' ${wl}-berok'
9647: if test "$with_gnu_ld" = yes; then
9648: # We only use this code for GNU lds that support --whole-archive.
9649: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9650: else
9651: # Exported symbols can be pulled into shared objects from archives
9652: whole_archive_flag_spec='$convenience'
9653: fi
9654: archive_cmds_need_lc=yes
9655: # This is similar to how AIX traditionally builds its shared libraries.
9656: 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'
9657: fi
9658: fi
9659: ;;
9660:
9661: amigaos*)
9662: case $host_cpu in
9663: powerpc)
9664: # see comment about AmigaOS4 .so support
9665: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666: archive_expsym_cmds=''
9667: ;;
9668: m68k)
9669: 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)'
9670: hardcode_libdir_flag_spec='-L$libdir'
9671: hardcode_minus_L=yes
9672: ;;
9673: esac
9674: ;;
9675:
9676: bsdi[45]*)
9677: export_dynamic_flag_spec=-rdynamic
9678: ;;
9679:
9680: cygwin* | mingw* | pw32* | cegcc*)
9681: # When not using gcc, we currently assume that we are using
9682: # Microsoft Visual C++.
9683: # hardcode_libdir_flag_spec is actually meaningless, as there is
9684: # no search path for DLLs.
9685: case $cc_basename in
9686: cl*)
9687: # Native MSVC
9688: hardcode_libdir_flag_spec=' '
9689: allow_undefined_flag=unsupported
9690: always_export_symbols=yes
9691: file_list_spec='@'
9692: # Tell ltmain to make .lib files, not .a files.
9693: libext=lib
9694: # Tell ltmain to make .dll files, not .so files.
9695: shrext_cmds=".dll"
9696: # FIXME: Setting linknames here is a bad hack.
9697: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9698: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9699: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9700: else
9701: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9702: fi~
9703: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9704: linknames='
9705: # The linker will not automatically build a static lib if we build a DLL.
9706: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707: enable_shared_with_static_runtimes=yes
9708: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9710: # Don't use ranlib
9711: old_postinstall_cmds='chmod 644 $oldlib'
9712: postlink_cmds='lt_outputfile="@OUTPUT@"~
9713: lt_tool_outputfile="@TOOL_OUTPUT@"~
9714: case $lt_outputfile in
9715: *.exe|*.EXE) ;;
9716: *)
9717: lt_outputfile="$lt_outputfile.exe"
9718: lt_tool_outputfile="$lt_tool_outputfile.exe"
9719: ;;
9720: esac~
9721: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9722: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723: $RM "$lt_outputfile.manifest";
9724: fi'
9725: ;;
9726: *)
9727: # Assume MSVC wrapper
9728: hardcode_libdir_flag_spec=' '
9729: allow_undefined_flag=unsupported
9730: # Tell ltmain to make .lib files, not .a files.
9731: libext=lib
9732: # Tell ltmain to make .dll files, not .so files.
9733: shrext_cmds=".dll"
9734: # FIXME: Setting linknames here is a bad hack.
9735: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736: # The linker will automatically build a .lib file if we build a DLL.
9737: old_archive_from_new_cmds='true'
9738: # FIXME: Should let the user specify the lib program.
9739: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740: enable_shared_with_static_runtimes=yes
9741: ;;
9742: esac
9743: ;;
9744:
9745: darwin* | rhapsody*)
9746:
9747:
9748: archive_cmds_need_lc=no
9749: hardcode_direct=no
9750: hardcode_automatic=yes
9751: hardcode_shlibpath_var=unsupported
9752: if test "$lt_cv_ld_force_load" = "yes"; then
9753: 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\"`'
9754:
9755: else
9756: whole_archive_flag_spec=''
9757: fi
9758: link_all_deplibs=yes
9759: allow_undefined_flag="$_lt_dar_allow_undefined"
9760: case $cc_basename in
9761: ifort*) _lt_dar_can_shared=yes ;;
9762: *) _lt_dar_can_shared=$GCC ;;
9763: esac
9764: if test "$_lt_dar_can_shared" = "yes"; then
9765: output_verbose_link_cmd=func_echo_all
9766: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9767: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9768: 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}"
9769: 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}"
9770:
9771: else
9772: ld_shlibs=no
9773: fi
9774:
9775: ;;
9776:
9777: dgux*)
9778: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779: hardcode_libdir_flag_spec='-L$libdir'
9780: hardcode_shlibpath_var=no
9781: ;;
9782:
9783: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784: # support. Future versions do this automatically, but an explicit c++rt0.o
9785: # does not break anything, and helps significantly (at the cost of a little
9786: # extra space).
9787: freebsd2.2*)
9788: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789: hardcode_libdir_flag_spec='-R$libdir'
9790: hardcode_direct=yes
9791: hardcode_shlibpath_var=no
9792: ;;
9793:
9794: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9795: freebsd2.*)
9796: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9797: hardcode_direct=yes
9798: hardcode_minus_L=yes
9799: hardcode_shlibpath_var=no
9800: ;;
9801:
9802: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803: freebsd* | dragonfly*)
9804: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805: hardcode_libdir_flag_spec='-R$libdir'
9806: hardcode_direct=yes
9807: hardcode_shlibpath_var=no
9808: ;;
9809:
9810: hpux9*)
9811: if test "$GCC" = yes; then
9812: 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'
9813: else
9814: 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'
9815: fi
9816: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817: hardcode_libdir_separator=:
9818: hardcode_direct=yes
9819:
9820: # hardcode_minus_L: Not really in the search PATH,
9821: # but as the default location of the library.
9822: hardcode_minus_L=yes
9823: export_dynamic_flag_spec='${wl}-E'
9824: ;;
9825:
9826: hpux10*)
9827: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829: else
9830: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831: fi
9832: if test "$with_gnu_ld" = no; then
9833: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834: hardcode_libdir_separator=:
9835: hardcode_direct=yes
9836: hardcode_direct_absolute=yes
9837: export_dynamic_flag_spec='${wl}-E'
9838: # hardcode_minus_L: Not really in the search PATH,
9839: # but as the default location of the library.
9840: hardcode_minus_L=yes
9841: fi
9842: ;;
9843:
9844: hpux11*)
9845: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9846: case $host_cpu in
9847: hppa*64*)
9848: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849: ;;
9850: ia64*)
9851: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852: ;;
9853: *)
9854: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855: ;;
9856: esac
9857: else
9858: case $host_cpu in
9859: hppa*64*)
9860: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9861: ;;
9862: ia64*)
9863: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864: ;;
9865: *)
9866:
9867: # Older versions of the 11.00 compiler do not understand -b yet
9868: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9870: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9871: if test "${lt_cv_prog_compiler__b+set}" = set; then
9872: echo $ECHO_N "(cached) $ECHO_C" >&6
9873: else
9874: lt_cv_prog_compiler__b=no
9875: save_LDFLAGS="$LDFLAGS"
9876: LDFLAGS="$LDFLAGS -b"
9877: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879: # The linker can only warn and ignore the option if not recognized
9880: # So say no if there are warnings
9881: if test -s conftest.err; then
9882: # Append any errors to the config.log.
9883: cat conftest.err 1>&5
9884: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886: if diff conftest.exp conftest.er2 >/dev/null; then
9887: lt_cv_prog_compiler__b=yes
9888: fi
9889: else
9890: lt_cv_prog_compiler__b=yes
9891: fi
9892: fi
9893: $RM -r conftest*
9894: LDFLAGS="$save_LDFLAGS"
9895:
9896: fi
9897: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9898: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
9899:
9900: if test x"$lt_cv_prog_compiler__b" = xyes; then
9901: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902: else
9903: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904: fi
9905:
9906: ;;
9907: esac
9908: fi
9909: if test "$with_gnu_ld" = no; then
9910: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911: hardcode_libdir_separator=:
9912:
9913: case $host_cpu in
9914: hppa*64*|ia64*)
9915: hardcode_direct=no
9916: hardcode_shlibpath_var=no
9917: ;;
9918: *)
9919: hardcode_direct=yes
9920: hardcode_direct_absolute=yes
9921: export_dynamic_flag_spec='${wl}-E'
9922:
9923: # hardcode_minus_L: Not really in the search PATH,
9924: # but as the default location of the library.
9925: hardcode_minus_L=yes
9926: ;;
9927: esac
9928: fi
9929: ;;
9930:
9931: irix5* | irix6* | nonstopux*)
9932: if test "$GCC" = yes; then
9933: 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'
9934: # Try to use the -exported_symbol ld option, if it does not
9935: # work, assume that -exports_file does not work either and
9936: # implicitly export all symbols.
9937: # This should be the same for all languages, so no per-tag cache variable.
9938: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9939: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9940: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9941: echo $ECHO_N "(cached) $ECHO_C" >&6
9942: else
9943: save_LDFLAGS="$LDFLAGS"
9944: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9945: cat >conftest.$ac_ext <<_ACEOF
9946: /* confdefs.h. */
9947: _ACEOF
9948: cat confdefs.h >>conftest.$ac_ext
9949: cat >>conftest.$ac_ext <<_ACEOF
9950: /* end confdefs.h. */
9951: int foo (void) { return 0; }
9952: _ACEOF
9953: rm -f conftest.$ac_objext conftest$ac_exeext
9954: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955: (eval $ac_link) 2>conftest.er1
9956: ac_status=$?
9957: grep -v '^ *+' conftest.er1 >conftest.err
9958: rm -f conftest.er1
9959: cat conftest.err >&5
9960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961: (exit $ac_status); } &&
9962: { ac_try='test -z "$ac_c_werror_flag"
9963: || test ! -s conftest.err'
9964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965: (eval $ac_try) 2>&5
9966: ac_status=$?
9967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968: (exit $ac_status); }; } &&
9969: { ac_try='test -s conftest$ac_exeext'
9970: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971: (eval $ac_try) 2>&5
9972: ac_status=$?
9973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974: (exit $ac_status); }; }; then
9975: lt_cv_irix_exported_symbol=yes
9976: else
9977: echo "$as_me: failed program was:" >&5
9978: sed 's/^/| /' conftest.$ac_ext >&5
9979:
9980: lt_cv_irix_exported_symbol=no
9981: fi
9982: rm -f conftest.err conftest.$ac_objext \
9983: conftest$ac_exeext conftest.$ac_ext
9984: LDFLAGS="$save_LDFLAGS"
9985: fi
9986: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9987: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9988: if test "$lt_cv_irix_exported_symbol" = yes; then
9989: 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'
9990: fi
9991: else
9992: 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'
9993: 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'
9994: fi
9995: archive_cmds_need_lc='no'
9996: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997: hardcode_libdir_separator=:
9998: inherit_rpath=yes
9999: link_all_deplibs=yes
10000: ;;
10001:
10002: netbsd*)
10003: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10004: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10005: else
10006: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10007: fi
10008: hardcode_libdir_flag_spec='-R$libdir'
10009: hardcode_direct=yes
10010: hardcode_shlibpath_var=no
10011: ;;
10012:
10013: newsos6)
10014: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015: hardcode_direct=yes
10016: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017: hardcode_libdir_separator=:
10018: hardcode_shlibpath_var=no
10019: ;;
10020:
10021: *nto* | *qnx*)
10022: ;;
10023:
10024: openbsd*)
10025: if test -f /usr/libexec/ld.so; then
10026: hardcode_direct=yes
10027: hardcode_shlibpath_var=no
10028: hardcode_direct_absolute=yes
10029: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10030: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10032: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10033: export_dynamic_flag_spec='${wl}-E'
10034: else
10035: case $host_os in
10036: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10037: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10038: hardcode_libdir_flag_spec='-R$libdir'
10039: ;;
10040: *)
10041: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10043: ;;
10044: esac
10045: fi
10046: else
10047: ld_shlibs=no
10048: fi
10049: ;;
10050:
10051: os2*)
10052: hardcode_libdir_flag_spec='-L$libdir'
10053: hardcode_minus_L=yes
10054: allow_undefined_flag=unsupported
10055: 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'
10056: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10057: ;;
10058:
10059: osf3*)
10060: if test "$GCC" = yes; then
10061: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10062: 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'
10063: else
10064: allow_undefined_flag=' -expect_unresolved \*'
10065: 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'
10066: fi
10067: archive_cmds_need_lc='no'
10068: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069: hardcode_libdir_separator=:
10070: ;;
10071:
10072: osf4* | osf5*) # as osf3* with the addition of -msym flag
10073: if test "$GCC" = yes; then
10074: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075: 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'
10076: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10077: else
10078: allow_undefined_flag=' -expect_unresolved \*'
10079: 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'
10080: 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~
10081: $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'
10082:
10083: # Both c and cxx compiler support -rpath directly
10084: hardcode_libdir_flag_spec='-rpath $libdir'
10085: fi
10086: archive_cmds_need_lc='no'
10087: hardcode_libdir_separator=:
10088: ;;
10089:
10090: solaris*)
10091: no_undefined_flag=' -z defs'
10092: if test "$GCC" = yes; then
10093: wlarc='${wl}'
10094: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10095: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096: $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'
10097: else
10098: case `$CC -V 2>&1` in
10099: *"Compilers 5.0"*)
10100: wlarc=''
10101: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10103: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10104: ;;
10105: *)
10106: wlarc='${wl}'
10107: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10108: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10110: ;;
10111: esac
10112: fi
10113: hardcode_libdir_flag_spec='-R$libdir'
10114: hardcode_shlibpath_var=no
10115: case $host_os in
10116: solaris2.[0-5] | solaris2.[0-5].*) ;;
10117: *)
10118: # The compiler driver will combine and reorder linker options,
10119: # but understands `-z linker_flag'. GCC discards it without `$wl',
10120: # but is careful enough not to reorder.
10121: # Supported since Solaris 2.6 (maybe 2.5.1?)
10122: if test "$GCC" = yes; then
10123: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10124: else
10125: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10126: fi
10127: ;;
10128: esac
10129: link_all_deplibs=yes
10130: ;;
10131:
10132: sunos4*)
10133: if test "x$host_vendor" = xsequent; then
10134: # Use $CC to link under sequent, because it throws in some extra .o
10135: # files that make .init and .fini sections work.
10136: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10137: else
10138: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10139: fi
10140: hardcode_libdir_flag_spec='-L$libdir'
10141: hardcode_direct=yes
10142: hardcode_minus_L=yes
10143: hardcode_shlibpath_var=no
10144: ;;
10145:
10146: sysv4)
10147: case $host_vendor in
10148: sni)
10149: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150: hardcode_direct=yes # is this really true???
10151: ;;
10152: siemens)
10153: ## LD is ld it makes a PLAMLIB
10154: ## CC just makes a GrossModule.
10155: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10156: reload_cmds='$CC -r -o $output$reload_objs'
10157: hardcode_direct=no
10158: ;;
10159: motorola)
10160: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10162: ;;
10163: esac
10164: runpath_var='LD_RUN_PATH'
10165: hardcode_shlibpath_var=no
10166: ;;
10167:
10168: sysv4.3*)
10169: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170: hardcode_shlibpath_var=no
10171: export_dynamic_flag_spec='-Bexport'
10172: ;;
10173:
10174: sysv4*MP*)
10175: if test -d /usr/nec; then
10176: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177: hardcode_shlibpath_var=no
10178: runpath_var=LD_RUN_PATH
10179: hardcode_runpath_var=yes
10180: ld_shlibs=yes
10181: fi
10182: ;;
10183:
10184: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10185: no_undefined_flag='${wl}-z,text'
10186: archive_cmds_need_lc=no
10187: hardcode_shlibpath_var=no
10188: runpath_var='LD_RUN_PATH'
10189:
10190: if test "$GCC" = yes; then
10191: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193: else
10194: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196: fi
10197: ;;
10198:
10199: sysv5* | sco3.2v5* | sco5v6*)
10200: # Note: We can NOT use -z defs as we might desire, because we do not
10201: # link with -lc, and that would cause any symbols used from libc to
10202: # always be unresolved, which means just about no library would
10203: # ever link correctly. If we're not using GNU ld we use -z text
10204: # though, which does catch some bad symbols but isn't as heavy-handed
10205: # as -z defs.
10206: no_undefined_flag='${wl}-z,text'
10207: allow_undefined_flag='${wl}-z,nodefs'
10208: archive_cmds_need_lc=no
10209: hardcode_shlibpath_var=no
10210: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10211: hardcode_libdir_separator=':'
10212: link_all_deplibs=yes
10213: export_dynamic_flag_spec='${wl}-Bexport'
10214: runpath_var='LD_RUN_PATH'
10215:
10216: if test "$GCC" = yes; then
10217: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219: else
10220: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222: fi
10223: ;;
10224:
10225: uts4*)
10226: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227: hardcode_libdir_flag_spec='-L$libdir'
10228: hardcode_shlibpath_var=no
10229: ;;
10230:
10231: *)
10232: ld_shlibs=no
10233: ;;
10234: esac
10235:
10236: if test x$host_vendor = xsni; then
10237: case $host in
10238: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10239: export_dynamic_flag_spec='${wl}-Blargedynsym'
10240: ;;
10241: esac
10242: fi
10243: fi
10244:
10245: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10246: echo "${ECHO_T}$ld_shlibs" >&6
10247: test "$ld_shlibs" = no && can_build_shared=no
10248:
10249: with_gnu_ld=$with_gnu_ld
10250:
10251:
10252:
10253:
10254:
10255:
10256:
10257:
10258:
10259:
10260:
10261:
10262:
10263:
10264:
10265: #
10266: # Do we need to explicitly link libc?
10267: #
10268: case "x$archive_cmds_need_lc" in
10269: x|xyes)
10270: # Assume -lc should be added
10271: archive_cmds_need_lc=yes
10272:
10273: if test "$enable_shared" = yes && test "$GCC" = yes; then
10274: case $archive_cmds in
10275: *'~'*)
10276: # FIXME: we may have to deal with multi-command sequences.
10277: ;;
10278: '$CC '*)
10279: # Test whether the compiler implicitly links with -lc since on some
10280: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10281: # to ld, don't add -lc before -lgcc.
10282: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10283: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10284: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10285: echo $ECHO_N "(cached) $ECHO_C" >&6
10286: else
10287: $RM conftest*
10288: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289:
10290: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291: (eval $ac_compile) 2>&5
10292: ac_status=$?
10293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294: (exit $ac_status); } 2>conftest.err; then
10295: soname=conftest
10296: lib=conftest
10297: libobjs=conftest.$ac_objext
10298: deplibs=
10299: wl=$lt_prog_compiler_wl
10300: pic_flag=$lt_prog_compiler_pic
10301: compiler_flags=-v
10302: linker_flags=-v
10303: verstring=
10304: output_objdir=.
10305: libname=conftest
10306: lt_save_allow_undefined_flag=$allow_undefined_flag
10307: allow_undefined_flag=
10308: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10309: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10310: ac_status=$?
10311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312: (exit $ac_status); }
10313: then
10314: lt_cv_archive_cmds_need_lc=no
10315: else
10316: lt_cv_archive_cmds_need_lc=yes
10317: fi
10318: allow_undefined_flag=$lt_save_allow_undefined_flag
10319: else
10320: cat conftest.err 1>&5
10321: fi
10322: $RM conftest*
10323:
10324: fi
10325: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10326: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10327: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10328: ;;
10329: esac
10330: fi
10331: ;;
10332: esac
10333:
10334:
10335:
10336:
10337:
10338:
10339:
10340:
10341:
10342:
10343:
10344:
10345:
10346:
10347:
10348:
10349:
10350:
10351:
10352:
10353:
10354:
10355:
10356:
10357:
10358:
10359:
10360:
10361:
10362:
10363:
10364:
10365:
10366:
10367:
10368:
10369:
10370:
10371:
10372:
10373:
10374:
10375:
10376:
10377:
10378:
10379:
10380:
10381:
10382:
10383:
10384:
10385:
10386:
10387:
10388:
10389:
10390:
10391:
10392:
10393:
10394:
10395:
10396:
10397:
10398:
10399:
10400:
10401:
10402:
10403:
10404:
10405:
10406:
10407:
10408:
10409:
10410:
10411:
10412:
10413:
10414:
10415:
10416:
10417:
10418:
10419:
10420:
10421:
10422:
10423:
10424:
10425:
10426:
10427:
10428:
10429:
10430:
10431:
10432:
10433:
10434:
10435:
10436:
10437:
10438:
10439:
10440:
10441:
10442:
10443:
10444:
10445:
10446:
10447:
10448:
10449:
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458:
10459:
10460:
10461:
10462:
10463:
10464:
10465:
10466:
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
10483:
10484:
10485: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10486: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10487:
10488: if test "$GCC" = yes; then
10489: case $host_os in
10490: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10491: *) lt_awk_arg="/^libraries:/" ;;
10492: esac
10493: case $host_os in
10494: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10495: *) lt_sed_strip_eq="s,=/,/,g" ;;
10496: esac
10497: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10498: case $lt_search_path_spec in
10499: *\;*)
10500: # if the path contains ";" then we assume it to be the separator
10501: # otherwise default to the standard path separator (i.e. ":") - it is
10502: # assumed that no part of a normal pathname contains ";" but that should
10503: # okay in the real world where ";" in dirpaths is itself problematic.
10504: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10505: ;;
10506: *)
10507: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10508: ;;
10509: esac
10510: # Ok, now we have the path, separated by spaces, we can step through it
10511: # and add multilib dir if necessary.
10512: lt_tmp_lt_search_path_spec=
10513: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10514: for lt_sys_path in $lt_search_path_spec; do
10515: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10516: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10517: else
10518: test -d "$lt_sys_path" && \
10519: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10520: fi
10521: done
10522: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10523: BEGIN {RS=" "; FS="/|\n";} {
10524: lt_foo="";
10525: lt_count=0;
10526: for (lt_i = NF; lt_i > 0; lt_i--) {
10527: if ($lt_i != "" && $lt_i != ".") {
10528: if ($lt_i == "..") {
10529: lt_count++;
10530: } else {
10531: if (lt_count == 0) {
10532: lt_foo="/" $lt_i lt_foo;
10533: } else {
10534: lt_count--;
10535: }
10536: }
10537: }
10538: }
10539: if (lt_foo != "") { lt_freq[lt_foo]++; }
10540: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10541: }'`
10542: # AWK program above erroneously prepends '/' to C:/dos/paths
10543: # for these hosts.
10544: case $host_os in
10545: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10546: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10547: esac
10548: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10549: else
10550: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10551: fi
10552: library_names_spec=
10553: libname_spec='lib$name'
10554: soname_spec=
10555: shrext_cmds=".so"
10556: postinstall_cmds=
10557: postuninstall_cmds=
10558: finish_cmds=
10559: finish_eval=
10560: shlibpath_var=
10561: shlibpath_overrides_runpath=unknown
10562: version_type=none
10563: dynamic_linker="$host_os ld.so"
10564: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10565: need_lib_prefix=unknown
10566: hardcode_into_libs=no
10567:
10568: # when you set need_version to no, make sure it does not cause -set_version
10569: # flags to be left without arguments
10570: need_version=unknown
10571:
10572: case $host_os in
10573: aix3*)
10574: version_type=linux # correct to gnu/linux during the next big refactor
10575: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10576: shlibpath_var=LIBPATH
10577:
10578: # AIX 3 has no versioning support, so we append a major version to the name.
10579: soname_spec='${libname}${release}${shared_ext}$major'
10580: ;;
10581:
10582: aix[4-9]*)
10583: version_type=linux # correct to gnu/linux during the next big refactor
10584: need_lib_prefix=no
10585: need_version=no
10586: hardcode_into_libs=yes
10587: if test "$host_cpu" = ia64; then
10588: # AIX 5 supports IA64
10589: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10590: shlibpath_var=LD_LIBRARY_PATH
10591: else
10592: # With GCC up to 2.95.x, collect2 would create an import file
10593: # for dependence libraries. The import file would start with
10594: # the line `#! .'. This would cause the generated library to
10595: # depend on `.', always an invalid library. This was fixed in
10596: # development snapshots of GCC prior to 3.0.
10597: case $host_os in
10598: aix4 | aix4.[01] | aix4.[01].*)
10599: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10600: echo ' yes '
10601: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10602: :
10603: else
10604: can_build_shared=no
10605: fi
10606: ;;
10607: esac
10608: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10609: # soname into executable. Probably we can add versioning support to
10610: # collect2, so additional links can be useful in future.
10611: if test "$aix_use_runtimelinking" = yes; then
10612: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10613: # instead of lib<name>.a to let people know that these are not
10614: # typical AIX shared libraries.
10615: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616: else
10617: # We preserve .a as extension for shared libraries through AIX4.2
10618: # and later when we are not doing run time linking.
10619: library_names_spec='${libname}${release}.a $libname.a'
10620: soname_spec='${libname}${release}${shared_ext}$major'
10621: fi
10622: shlibpath_var=LIBPATH
10623: fi
10624: ;;
10625:
10626: amigaos*)
10627: case $host_cpu in
10628: powerpc)
10629: # Since July 2007 AmigaOS4 officially supports .so libraries.
10630: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10631: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632: ;;
10633: m68k)
10634: library_names_spec='$libname.ixlibrary $libname.a'
10635: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10636: 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'
10637: ;;
10638: esac
10639: ;;
10640:
10641: beos*)
10642: library_names_spec='${libname}${shared_ext}'
10643: dynamic_linker="$host_os ld.so"
10644: shlibpath_var=LIBRARY_PATH
10645: ;;
10646:
10647: bsdi[45]*)
10648: version_type=linux # correct to gnu/linux during the next big refactor
10649: need_version=no
10650: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651: soname_spec='${libname}${release}${shared_ext}$major'
10652: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10653: shlibpath_var=LD_LIBRARY_PATH
10654: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10655: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10656: # the default ld.so.conf also contains /usr/contrib/lib and
10657: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10658: # libtool to hard-code these into programs
10659: ;;
10660:
10661: cygwin* | mingw* | pw32* | cegcc*)
10662: version_type=windows
10663: shrext_cmds=".dll"
10664: need_version=no
10665: need_lib_prefix=no
10666:
10667: case $GCC,$cc_basename in
10668: yes,*)
10669: # gcc
10670: library_names_spec='$libname.dll.a'
10671: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10672: postinstall_cmds='base_file=`basename \${file}`~
10673: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10674: dldir=$destdir/`dirname \$dlpath`~
10675: test -d \$dldir || mkdir -p \$dldir~
10676: $install_prog $dir/$dlname \$dldir/$dlname~
10677: chmod a+x \$dldir/$dlname~
10678: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10679: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10680: fi'
10681: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10682: dlpath=$dir/\$dldll~
10683: $RM \$dlpath'
10684: shlibpath_overrides_runpath=yes
10685:
10686: case $host_os in
10687: cygwin*)
10688: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10689: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10690:
10691: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10692: ;;
10693: mingw* | cegcc*)
10694: # MinGW DLLs use traditional 'lib' prefix
10695: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696: ;;
10697: pw32*)
10698: # pw32 DLLs use 'pw' prefix rather than 'lib'
10699: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10700: ;;
10701: esac
10702: dynamic_linker='Win32 ld.exe'
10703: ;;
10704:
10705: *,cl*)
10706: # Native MSVC
10707: libname_spec='$name'
10708: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10709: library_names_spec='${libname}.dll.lib'
10710:
10711: case $build_os in
10712: mingw*)
10713: sys_lib_search_path_spec=
10714: lt_save_ifs=$IFS
10715: IFS=';'
10716: for lt_path in $LIB
10717: do
10718: IFS=$lt_save_ifs
10719: # Let DOS variable expansion print the short 8.3 style file name.
10720: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10721: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10722: done
10723: IFS=$lt_save_ifs
10724: # Convert to MSYS style.
10725: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10726: ;;
10727: cygwin*)
10728: # Convert to unix form, then to dos form, then back to unix form
10729: # but this time dos style (no spaces!) so that the unix form looks
10730: # like /cygdrive/c/PROGRA~1:/cygdr...
10731: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10732: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10733: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10734: ;;
10735: *)
10736: sys_lib_search_path_spec="$LIB"
10737: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10738: # It is most probably a Windows format PATH.
10739: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10740: else
10741: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10742: fi
10743: # FIXME: find the short name or the path components, as spaces are
10744: # common. (e.g. "Program Files" -> "PROGRA~1")
10745: ;;
10746: esac
10747:
10748: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749: postinstall_cmds='base_file=`basename \${file}`~
10750: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10751: dldir=$destdir/`dirname \$dlpath`~
10752: test -d \$dldir || mkdir -p \$dldir~
10753: $install_prog $dir/$dlname \$dldir/$dlname'
10754: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755: dlpath=$dir/\$dldll~
10756: $RM \$dlpath'
10757: shlibpath_overrides_runpath=yes
10758: dynamic_linker='Win32 link.exe'
10759: ;;
10760:
10761: *)
10762: # Assume MSVC wrapper
10763: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10764: dynamic_linker='Win32 ld.exe'
10765: ;;
10766: esac
10767: # FIXME: first we should search . and the directory the executable is in
10768: shlibpath_var=PATH
10769: ;;
10770:
10771: darwin* | rhapsody*)
10772: dynamic_linker="$host_os dyld"
10773: version_type=darwin
10774: need_lib_prefix=no
10775: need_version=no
10776: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10777: soname_spec='${libname}${release}${major}$shared_ext'
10778: shlibpath_overrides_runpath=yes
10779: shlibpath_var=DYLD_LIBRARY_PATH
10780: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10781:
10782: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10784: ;;
10785:
10786: dgux*)
10787: version_type=linux # correct to gnu/linux during the next big refactor
10788: need_lib_prefix=no
10789: need_version=no
10790: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10791: soname_spec='${libname}${release}${shared_ext}$major'
10792: shlibpath_var=LD_LIBRARY_PATH
10793: ;;
10794:
10795: freebsd* | dragonfly*)
10796: # DragonFly does not have aout. When/if they implement a new
10797: # versioning mechanism, adjust this.
10798: if test -x /usr/bin/objformat; then
10799: objformat=`/usr/bin/objformat`
10800: else
10801: case $host_os in
10802: freebsd[23].*) objformat=aout ;;
10803: *) objformat=elf ;;
10804: esac
10805: fi
10806: version_type=freebsd-$objformat
10807: case $version_type in
10808: freebsd-elf*)
10809: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10810: need_version=no
10811: need_lib_prefix=no
10812: ;;
10813: freebsd-*)
10814: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10815: need_version=yes
10816: ;;
10817: esac
10818: shlibpath_var=LD_LIBRARY_PATH
10819: case $host_os in
10820: freebsd2.*)
10821: shlibpath_overrides_runpath=yes
10822: ;;
10823: freebsd3.[01]* | freebsdelf3.[01]*)
10824: shlibpath_overrides_runpath=yes
10825: hardcode_into_libs=yes
10826: ;;
10827: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10828: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10829: shlibpath_overrides_runpath=no
10830: hardcode_into_libs=yes
10831: ;;
10832: *) # from 4.6 on, and DragonFly
10833: shlibpath_overrides_runpath=yes
10834: hardcode_into_libs=yes
10835: ;;
10836: esac
10837: ;;
10838:
10839: gnu*)
10840: version_type=linux # correct to gnu/linux during the next big refactor
10841: need_lib_prefix=no
10842: need_version=no
10843: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10844: soname_spec='${libname}${release}${shared_ext}$major'
10845: shlibpath_var=LD_LIBRARY_PATH
10846: shlibpath_overrides_runpath=no
10847: hardcode_into_libs=yes
10848: ;;
10849:
10850: haiku*)
10851: version_type=linux # correct to gnu/linux during the next big refactor
10852: need_lib_prefix=no
10853: need_version=no
10854: dynamic_linker="$host_os runtime_loader"
10855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10856: soname_spec='${libname}${release}${shared_ext}$major'
10857: shlibpath_var=LIBRARY_PATH
10858: shlibpath_overrides_runpath=yes
10859: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10860: hardcode_into_libs=yes
10861: ;;
10862:
10863: hpux9* | hpux10* | hpux11*)
10864: # Give a soname corresponding to the major version so that dld.sl refuses to
10865: # link against other versions.
10866: version_type=sunos
10867: need_lib_prefix=no
10868: need_version=no
10869: case $host_cpu in
10870: ia64*)
10871: shrext_cmds='.so'
10872: hardcode_into_libs=yes
10873: dynamic_linker="$host_os dld.so"
10874: shlibpath_var=LD_LIBRARY_PATH
10875: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877: soname_spec='${libname}${release}${shared_ext}$major'
10878: if test "X$HPUX_IA64_MODE" = X32; then
10879: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10880: else
10881: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10882: fi
10883: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10884: ;;
10885: hppa*64*)
10886: shrext_cmds='.sl'
10887: hardcode_into_libs=yes
10888: dynamic_linker="$host_os dld.sl"
10889: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892: soname_spec='${libname}${release}${shared_ext}$major'
10893: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895: ;;
10896: *)
10897: shrext_cmds='.sl'
10898: dynamic_linker="$host_os dld.sl"
10899: shlibpath_var=SHLIB_PATH
10900: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902: soname_spec='${libname}${release}${shared_ext}$major'
10903: ;;
10904: esac
10905: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10906: postinstall_cmds='chmod 555 $lib'
10907: # or fails outright, so override atomically:
10908: install_override_mode=555
10909: ;;
10910:
10911: interix[3-9]*)
10912: version_type=linux # correct to gnu/linux during the next big refactor
10913: need_lib_prefix=no
10914: need_version=no
10915: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10916: soname_spec='${libname}${release}${shared_ext}$major'
10917: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10918: shlibpath_var=LD_LIBRARY_PATH
10919: shlibpath_overrides_runpath=no
10920: hardcode_into_libs=yes
10921: ;;
10922:
10923: irix5* | irix6* | nonstopux*)
10924: case $host_os in
10925: nonstopux*) version_type=nonstopux ;;
10926: *)
10927: if test "$lt_cv_prog_gnu_ld" = yes; then
10928: version_type=linux # correct to gnu/linux during the next big refactor
10929: else
10930: version_type=irix
10931: fi ;;
10932: esac
10933: need_lib_prefix=no
10934: need_version=no
10935: soname_spec='${libname}${release}${shared_ext}$major'
10936: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10937: case $host_os in
10938: irix5* | nonstopux*)
10939: libsuff= shlibsuff=
10940: ;;
10941: *)
10942: case $LD in # libtool.m4 will add one of these switches to LD
10943: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10944: libsuff= shlibsuff= libmagic=32-bit;;
10945: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10946: libsuff=32 shlibsuff=N32 libmagic=N32;;
10947: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10948: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10949: *) libsuff= shlibsuff= libmagic=never-match;;
10950: esac
10951: ;;
10952: esac
10953: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10954: shlibpath_overrides_runpath=no
10955: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10956: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10957: hardcode_into_libs=yes
10958: ;;
10959:
10960: # No shared lib support for Linux oldld, aout, or coff.
10961: linux*oldld* | linux*aout* | linux*coff*)
10962: dynamic_linker=no
10963: ;;
10964:
10965: # This must be glibc/ELF.
10966: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10967: version_type=linux # correct to gnu/linux during the next big refactor
10968: need_lib_prefix=no
10969: need_version=no
10970: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971: soname_spec='${libname}${release}${shared_ext}$major'
10972: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10973: shlibpath_var=LD_LIBRARY_PATH
10974: shlibpath_overrides_runpath=no
10975:
10976: # Some binutils ld are patched to set DT_RUNPATH
10977: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10978: echo $ECHO_N "(cached) $ECHO_C" >&6
10979: else
10980: lt_cv_shlibpath_overrides_runpath=no
10981: save_LDFLAGS=$LDFLAGS
10982: save_libdir=$libdir
10983: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985: cat >conftest.$ac_ext <<_ACEOF
10986: /* confdefs.h. */
10987: _ACEOF
10988: cat confdefs.h >>conftest.$ac_ext
10989: cat >>conftest.$ac_ext <<_ACEOF
10990: /* end confdefs.h. */
10991:
10992: int
10993: main ()
10994: {
10995:
10996: ;
10997: return 0;
10998: }
10999: _ACEOF
11000: rm -f conftest.$ac_objext conftest$ac_exeext
11001: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002: (eval $ac_link) 2>conftest.er1
11003: ac_status=$?
11004: grep -v '^ *+' conftest.er1 >conftest.err
11005: rm -f conftest.er1
11006: cat conftest.err >&5
11007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008: (exit $ac_status); } &&
11009: { ac_try='test -z "$ac_c_werror_flag"
11010: || test ! -s conftest.err'
11011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012: (eval $ac_try) 2>&5
11013: ac_status=$?
11014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015: (exit $ac_status); }; } &&
11016: { ac_try='test -s conftest$ac_exeext'
11017: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018: (eval $ac_try) 2>&5
11019: ac_status=$?
11020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021: (exit $ac_status); }; }; then
11022: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11023: lt_cv_shlibpath_overrides_runpath=yes
11024: fi
11025:
11026: else
11027: echo "$as_me: failed program was:" >&5
11028: sed 's/^/| /' conftest.$ac_ext >&5
11029:
11030: fi
11031: rm -f conftest.err conftest.$ac_objext \
11032: conftest$ac_exeext conftest.$ac_ext
11033: LDFLAGS=$save_LDFLAGS
11034: libdir=$save_libdir
11035:
11036: fi
11037:
11038: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11039:
11040: # This implies no fast_install, which is unacceptable.
11041: # Some rework will be needed to allow for fast_install
11042: # before this can be enabled.
11043: hardcode_into_libs=yes
11044:
11045: # Append ld.so.conf contents to the search path
11046: if test -f /etc/ld.so.conf; then
11047: 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' ' '`
11048: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11049: fi
11050:
11051: # We used to test for /lib/ld.so.1 and disable shared libraries on
11052: # powerpc, because MkLinux only supported shared libraries with the
11053: # GNU dynamic linker. Since this was broken with cross compilers,
11054: # most powerpc-linux boxes support dynamic linking these days and
11055: # people can always --disable-shared, the test was removed, and we
11056: # assume the GNU/Linux dynamic linker is in use.
11057: dynamic_linker='GNU/Linux ld.so'
11058: ;;
11059:
11060: netbsd*)
11061: version_type=sunos
11062: need_lib_prefix=no
11063: need_version=no
11064: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11067: dynamic_linker='NetBSD (a.out) ld.so'
11068: else
11069: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11070: soname_spec='${libname}${release}${shared_ext}$major'
11071: dynamic_linker='NetBSD ld.elf_so'
11072: fi
11073: shlibpath_var=LD_LIBRARY_PATH
11074: shlibpath_overrides_runpath=yes
11075: hardcode_into_libs=yes
11076: ;;
11077:
11078: newsos6)
11079: version_type=linux # correct to gnu/linux during the next big refactor
11080: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081: shlibpath_var=LD_LIBRARY_PATH
11082: shlibpath_overrides_runpath=yes
11083: ;;
11084:
11085: *nto* | *qnx*)
11086: version_type=qnx
11087: need_lib_prefix=no
11088: need_version=no
11089: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090: soname_spec='${libname}${release}${shared_ext}$major'
11091: shlibpath_var=LD_LIBRARY_PATH
11092: shlibpath_overrides_runpath=no
11093: hardcode_into_libs=yes
11094: dynamic_linker='ldqnx.so'
11095: ;;
11096:
11097: openbsd*)
11098: version_type=sunos
11099: sys_lib_dlsearch_path_spec="/usr/lib"
11100: need_lib_prefix=no
11101: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11102: case $host_os in
11103: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11104: *) need_version=no ;;
11105: esac
11106: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108: shlibpath_var=LD_LIBRARY_PATH
11109: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11110: case $host_os in
11111: openbsd2.[89] | openbsd2.[89].*)
11112: shlibpath_overrides_runpath=no
11113: ;;
11114: *)
11115: shlibpath_overrides_runpath=yes
11116: ;;
11117: esac
11118: else
11119: shlibpath_overrides_runpath=yes
11120: fi
11121: ;;
11122:
11123: os2*)
11124: libname_spec='$name'
11125: shrext_cmds=".dll"
11126: need_lib_prefix=no
11127: library_names_spec='$libname${shared_ext} $libname.a'
11128: dynamic_linker='OS/2 ld.exe'
11129: shlibpath_var=LIBPATH
11130: ;;
11131:
11132: osf3* | osf4* | osf5*)
11133: version_type=osf
11134: need_lib_prefix=no
11135: need_version=no
11136: soname_spec='${libname}${release}${shared_ext}$major'
11137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138: shlibpath_var=LD_LIBRARY_PATH
11139: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11140: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11141: ;;
11142:
11143: rdos*)
11144: dynamic_linker=no
11145: ;;
11146:
11147: solaris*)
11148: version_type=linux # correct to gnu/linux during the next big refactor
11149: need_lib_prefix=no
11150: need_version=no
11151: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152: soname_spec='${libname}${release}${shared_ext}$major'
11153: shlibpath_var=LD_LIBRARY_PATH
11154: shlibpath_overrides_runpath=yes
11155: hardcode_into_libs=yes
11156: # ldd complains unless libraries are executable
11157: postinstall_cmds='chmod +x $lib'
11158: ;;
11159:
11160: sunos4*)
11161: version_type=sunos
11162: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11164: shlibpath_var=LD_LIBRARY_PATH
11165: shlibpath_overrides_runpath=yes
11166: if test "$with_gnu_ld" = yes; then
11167: need_lib_prefix=no
11168: fi
11169: need_version=yes
11170: ;;
11171:
11172: sysv4 | sysv4.3*)
11173: version_type=linux # correct to gnu/linux during the next big refactor
11174: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175: soname_spec='${libname}${release}${shared_ext}$major'
11176: shlibpath_var=LD_LIBRARY_PATH
11177: case $host_vendor in
11178: sni)
11179: shlibpath_overrides_runpath=no
11180: need_lib_prefix=no
11181: runpath_var=LD_RUN_PATH
11182: ;;
11183: siemens)
11184: need_lib_prefix=no
11185: ;;
11186: motorola)
11187: need_lib_prefix=no
11188: need_version=no
11189: shlibpath_overrides_runpath=no
11190: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11191: ;;
11192: esac
11193: ;;
11194:
11195: sysv4*MP*)
11196: if test -d /usr/nec ;then
11197: version_type=linux # correct to gnu/linux during the next big refactor
11198: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11199: soname_spec='$libname${shared_ext}.$major'
11200: shlibpath_var=LD_LIBRARY_PATH
11201: fi
11202: ;;
11203:
11204: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11205: version_type=freebsd-elf
11206: need_lib_prefix=no
11207: need_version=no
11208: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11209: soname_spec='${libname}${release}${shared_ext}$major'
11210: shlibpath_var=LD_LIBRARY_PATH
11211: shlibpath_overrides_runpath=yes
11212: hardcode_into_libs=yes
11213: if test "$with_gnu_ld" = yes; then
11214: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11215: else
11216: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11217: case $host_os in
11218: sco3.2v5*)
11219: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11220: ;;
11221: esac
11222: fi
11223: sys_lib_dlsearch_path_spec='/usr/lib'
11224: ;;
11225:
11226: tpf*)
11227: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11228: version_type=linux # correct to gnu/linux during the next big refactor
11229: need_lib_prefix=no
11230: need_version=no
11231: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232: shlibpath_var=LD_LIBRARY_PATH
11233: shlibpath_overrides_runpath=no
11234: hardcode_into_libs=yes
11235: ;;
11236:
11237: uts4*)
11238: version_type=linux # correct to gnu/linux during the next big refactor
11239: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240: soname_spec='${libname}${release}${shared_ext}$major'
11241: shlibpath_var=LD_LIBRARY_PATH
11242: ;;
11243:
11244: *)
11245: dynamic_linker=no
11246: ;;
11247: esac
11248: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11249: echo "${ECHO_T}$dynamic_linker" >&6
11250: test "$dynamic_linker" = no && can_build_shared=no
11251:
11252: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11253: if test "$GCC" = yes; then
11254: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11255: fi
11256:
11257: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11258: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11259: fi
11260: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11261: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11262: fi
11263:
11264:
11265:
11266:
11267:
11268:
11269:
11270:
11271:
11272:
11273:
11274:
11275:
11276:
11277:
11278:
11279:
11280:
11281:
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296:
11297:
11298:
11299:
11300:
11301:
11302:
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
11347:
11348:
11349:
11350:
11351:
11352:
11353:
11354:
11355: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11356: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11357: hardcode_action=
11358: if test -n "$hardcode_libdir_flag_spec" ||
11359: test -n "$runpath_var" ||
11360: test "X$hardcode_automatic" = "Xyes" ; then
11361:
11362: # We can hardcode non-existent directories.
11363: if test "$hardcode_direct" != no &&
11364: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11365: # have to relink, otherwise we might link with an installed library
11366: # when we should be linking with a yet-to-be-installed one
11367: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11368: test "$hardcode_minus_L" != no; then
11369: # Linking always hardcodes the temporary library directory.
11370: hardcode_action=relink
11371: else
11372: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11373: hardcode_action=immediate
11374: fi
11375: else
11376: # We cannot hardcode anything, or else we can only hardcode existing
11377: # directories.
11378: hardcode_action=unsupported
11379: fi
11380: echo "$as_me:$LINENO: result: $hardcode_action" >&5
11381: echo "${ECHO_T}$hardcode_action" >&6
11382:
11383: if test "$hardcode_action" = relink ||
11384: test "$inherit_rpath" = yes; then
11385: # Fast installation is not supported
11386: enable_fast_install=no
11387: elif test "$shlibpath_overrides_runpath" = yes ||
11388: test "$enable_shared" = no; then
11389: # Fast installation is not necessary
11390: enable_fast_install=needless
11391: fi
11392:
11393:
11394:
11395:
11396:
11397:
11398: if test "x$enable_dlopen" != xyes; then
11399: enable_dlopen=unknown
11400: enable_dlopen_self=unknown
11401: enable_dlopen_self_static=unknown
11402: else
11403: lt_cv_dlopen=no
11404: lt_cv_dlopen_libs=
11405:
11406: case $host_os in
11407: beos*)
11408: lt_cv_dlopen="load_add_on"
11409: lt_cv_dlopen_libs=
11410: lt_cv_dlopen_self=yes
11411: ;;
11412:
11413: mingw* | pw32* | cegcc*)
11414: lt_cv_dlopen="LoadLibrary"
11415: lt_cv_dlopen_libs=
11416: ;;
11417:
11418: cygwin*)
11419: lt_cv_dlopen="dlopen"
11420: lt_cv_dlopen_libs=
11421: ;;
11422:
11423: darwin*)
11424: # if libdl is installed we need to link against it
11425: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11426: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11427: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11428: echo $ECHO_N "(cached) $ECHO_C" >&6
11429: else
11430: ac_check_lib_save_LIBS=$LIBS
11431: LIBS="-ldl $LIBS"
11432: cat >conftest.$ac_ext <<_ACEOF
11433: /* confdefs.h. */
11434: _ACEOF
11435: cat confdefs.h >>conftest.$ac_ext
11436: cat >>conftest.$ac_ext <<_ACEOF
11437: /* end confdefs.h. */
11438:
11439: /* Override any gcc2 internal prototype to avoid an error. */
11440: #ifdef __cplusplus
11441: extern "C"
11442: #endif
11443: /* We use char because int might match the return type of a gcc2
11444: builtin and then its argument prototype would still apply. */
11445: char dlopen ();
11446: int
11447: main ()
11448: {
11449: dlopen ();
11450: ;
11451: return 0;
11452: }
11453: _ACEOF
11454: rm -f conftest.$ac_objext conftest$ac_exeext
11455: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456: (eval $ac_link) 2>conftest.er1
11457: ac_status=$?
11458: grep -v '^ *+' conftest.er1 >conftest.err
11459: rm -f conftest.er1
11460: cat conftest.err >&5
11461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462: (exit $ac_status); } &&
11463: { ac_try='test -z "$ac_c_werror_flag"
11464: || test ! -s conftest.err'
11465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466: (eval $ac_try) 2>&5
11467: ac_status=$?
11468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469: (exit $ac_status); }; } &&
11470: { ac_try='test -s conftest$ac_exeext'
11471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472: (eval $ac_try) 2>&5
11473: ac_status=$?
11474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475: (exit $ac_status); }; }; then
11476: ac_cv_lib_dl_dlopen=yes
11477: else
11478: echo "$as_me: failed program was:" >&5
11479: sed 's/^/| /' conftest.$ac_ext >&5
11480:
11481: ac_cv_lib_dl_dlopen=no
11482: fi
11483: rm -f conftest.err conftest.$ac_objext \
11484: conftest$ac_exeext conftest.$ac_ext
11485: LIBS=$ac_check_lib_save_LIBS
11486: fi
11487: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11488: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11489: if test $ac_cv_lib_dl_dlopen = yes; then
11490: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11491: else
11492:
11493: lt_cv_dlopen="dyld"
11494: lt_cv_dlopen_libs=
11495: lt_cv_dlopen_self=yes
11496:
11497: fi
11498:
11499: ;;
11500:
11501: *)
11502: echo "$as_me:$LINENO: checking for shl_load" >&5
11503: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11504: if test "${ac_cv_func_shl_load+set}" = set; then
11505: echo $ECHO_N "(cached) $ECHO_C" >&6
11506: else
11507: cat >conftest.$ac_ext <<_ACEOF
11508: /* confdefs.h. */
11509: _ACEOF
11510: cat confdefs.h >>conftest.$ac_ext
11511: cat >>conftest.$ac_ext <<_ACEOF
11512: /* end confdefs.h. */
11513: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11514: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11515: #define shl_load innocuous_shl_load
11516:
11517: /* System header to define __stub macros and hopefully few prototypes,
11518: which can conflict with char shl_load (); below.
11519: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520: <limits.h> exists even on freestanding compilers. */
11521:
11522: #ifdef __STDC__
11523: # include <limits.h>
11524: #else
11525: # include <assert.h>
11526: #endif
11527:
11528: #undef shl_load
11529:
11530: /* Override any gcc2 internal prototype to avoid an error. */
11531: #ifdef __cplusplus
11532: extern "C"
11533: {
11534: #endif
11535: /* We use char because int might match the return type of a gcc2
11536: builtin and then its argument prototype would still apply. */
11537: char shl_load ();
11538: /* The GNU C library defines this for functions which it implements
11539: to always fail with ENOSYS. Some functions are actually named
11540: something starting with __ and the normal name is an alias. */
11541: #if defined (__stub_shl_load) || defined (__stub___shl_load)
11542: choke me
11543: #else
11544: char (*f) () = shl_load;
11545: #endif
11546: #ifdef __cplusplus
11547: }
11548: #endif
11549:
11550: int
11551: main ()
11552: {
11553: return f != shl_load;
11554: ;
11555: return 0;
11556: }
11557: _ACEOF
11558: rm -f conftest.$ac_objext conftest$ac_exeext
11559: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11560: (eval $ac_link) 2>conftest.er1
11561: ac_status=$?
11562: grep -v '^ *+' conftest.er1 >conftest.err
11563: rm -f conftest.er1
11564: cat conftest.err >&5
11565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566: (exit $ac_status); } &&
11567: { ac_try='test -z "$ac_c_werror_flag"
11568: || test ! -s conftest.err'
11569: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570: (eval $ac_try) 2>&5
11571: ac_status=$?
11572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573: (exit $ac_status); }; } &&
11574: { ac_try='test -s conftest$ac_exeext'
11575: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576: (eval $ac_try) 2>&5
11577: ac_status=$?
11578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579: (exit $ac_status); }; }; then
11580: ac_cv_func_shl_load=yes
11581: else
11582: echo "$as_me: failed program was:" >&5
11583: sed 's/^/| /' conftest.$ac_ext >&5
11584:
11585: ac_cv_func_shl_load=no
11586: fi
11587: rm -f conftest.err conftest.$ac_objext \
11588: conftest$ac_exeext conftest.$ac_ext
11589: fi
11590: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11591: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11592: if test $ac_cv_func_shl_load = yes; then
11593: lt_cv_dlopen="shl_load"
11594: else
11595: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11596: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11597: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11598: echo $ECHO_N "(cached) $ECHO_C" >&6
11599: else
11600: ac_check_lib_save_LIBS=$LIBS
11601: LIBS="-ldld $LIBS"
11602: cat >conftest.$ac_ext <<_ACEOF
11603: /* confdefs.h. */
11604: _ACEOF
11605: cat confdefs.h >>conftest.$ac_ext
11606: cat >>conftest.$ac_ext <<_ACEOF
11607: /* end confdefs.h. */
11608:
11609: /* Override any gcc2 internal prototype to avoid an error. */
11610: #ifdef __cplusplus
11611: extern "C"
11612: #endif
11613: /* We use char because int might match the return type of a gcc2
11614: builtin and then its argument prototype would still apply. */
11615: char shl_load ();
11616: int
11617: main ()
11618: {
11619: shl_load ();
11620: ;
11621: return 0;
11622: }
11623: _ACEOF
11624: rm -f conftest.$ac_objext conftest$ac_exeext
11625: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626: (eval $ac_link) 2>conftest.er1
11627: ac_status=$?
11628: grep -v '^ *+' conftest.er1 >conftest.err
11629: rm -f conftest.er1
11630: cat conftest.err >&5
11631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632: (exit $ac_status); } &&
11633: { ac_try='test -z "$ac_c_werror_flag"
11634: || test ! -s conftest.err'
11635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636: (eval $ac_try) 2>&5
11637: ac_status=$?
11638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639: (exit $ac_status); }; } &&
11640: { ac_try='test -s conftest$ac_exeext'
11641: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642: (eval $ac_try) 2>&5
11643: ac_status=$?
11644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645: (exit $ac_status); }; }; then
11646: ac_cv_lib_dld_shl_load=yes
11647: else
11648: echo "$as_me: failed program was:" >&5
11649: sed 's/^/| /' conftest.$ac_ext >&5
11650:
11651: ac_cv_lib_dld_shl_load=no
11652: fi
11653: rm -f conftest.err conftest.$ac_objext \
11654: conftest$ac_exeext conftest.$ac_ext
11655: LIBS=$ac_check_lib_save_LIBS
11656: fi
11657: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11658: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11659: if test $ac_cv_lib_dld_shl_load = yes; then
11660: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11661: else
11662: echo "$as_me:$LINENO: checking for dlopen" >&5
11663: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11664: if test "${ac_cv_func_dlopen+set}" = set; then
11665: echo $ECHO_N "(cached) $ECHO_C" >&6
11666: else
11667: cat >conftest.$ac_ext <<_ACEOF
11668: /* confdefs.h. */
11669: _ACEOF
11670: cat confdefs.h >>conftest.$ac_ext
11671: cat >>conftest.$ac_ext <<_ACEOF
11672: /* end confdefs.h. */
11673: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11674: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11675: #define dlopen innocuous_dlopen
11676:
11677: /* System header to define __stub macros and hopefully few prototypes,
11678: which can conflict with char dlopen (); below.
11679: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11680: <limits.h> exists even on freestanding compilers. */
11681:
11682: #ifdef __STDC__
11683: # include <limits.h>
11684: #else
11685: # include <assert.h>
11686: #endif
11687:
11688: #undef dlopen
11689:
11690: /* Override any gcc2 internal prototype to avoid an error. */
11691: #ifdef __cplusplus
11692: extern "C"
11693: {
11694: #endif
11695: /* We use char because int might match the return type of a gcc2
11696: builtin and then its argument prototype would still apply. */
11697: char dlopen ();
11698: /* The GNU C library defines this for functions which it implements
11699: to always fail with ENOSYS. Some functions are actually named
11700: something starting with __ and the normal name is an alias. */
11701: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11702: choke me
11703: #else
11704: char (*f) () = dlopen;
11705: #endif
11706: #ifdef __cplusplus
11707: }
11708: #endif
11709:
11710: int
11711: main ()
11712: {
11713: return f != dlopen;
11714: ;
11715: return 0;
11716: }
11717: _ACEOF
11718: rm -f conftest.$ac_objext conftest$ac_exeext
11719: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720: (eval $ac_link) 2>conftest.er1
11721: ac_status=$?
11722: grep -v '^ *+' conftest.er1 >conftest.err
11723: rm -f conftest.er1
11724: cat conftest.err >&5
11725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726: (exit $ac_status); } &&
11727: { ac_try='test -z "$ac_c_werror_flag"
11728: || test ! -s conftest.err'
11729: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730: (eval $ac_try) 2>&5
11731: ac_status=$?
11732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733: (exit $ac_status); }; } &&
11734: { ac_try='test -s conftest$ac_exeext'
11735: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736: (eval $ac_try) 2>&5
11737: ac_status=$?
11738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739: (exit $ac_status); }; }; then
11740: ac_cv_func_dlopen=yes
11741: else
11742: echo "$as_me: failed program was:" >&5
11743: sed 's/^/| /' conftest.$ac_ext >&5
11744:
11745: ac_cv_func_dlopen=no
11746: fi
11747: rm -f conftest.err conftest.$ac_objext \
11748: conftest$ac_exeext conftest.$ac_ext
11749: fi
11750: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11751: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11752: if test $ac_cv_func_dlopen = yes; then
11753: lt_cv_dlopen="dlopen"
11754: else
11755: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11756: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11757: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11758: echo $ECHO_N "(cached) $ECHO_C" >&6
11759: else
11760: ac_check_lib_save_LIBS=$LIBS
11761: LIBS="-ldl $LIBS"
11762: cat >conftest.$ac_ext <<_ACEOF
11763: /* confdefs.h. */
11764: _ACEOF
11765: cat confdefs.h >>conftest.$ac_ext
11766: cat >>conftest.$ac_ext <<_ACEOF
11767: /* end confdefs.h. */
11768:
11769: /* Override any gcc2 internal prototype to avoid an error. */
11770: #ifdef __cplusplus
11771: extern "C"
11772: #endif
11773: /* We use char because int might match the return type of a gcc2
11774: builtin and then its argument prototype would still apply. */
11775: char dlopen ();
11776: int
11777: main ()
11778: {
11779: dlopen ();
11780: ;
11781: return 0;
11782: }
11783: _ACEOF
11784: rm -f conftest.$ac_objext conftest$ac_exeext
11785: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786: (eval $ac_link) 2>conftest.er1
11787: ac_status=$?
11788: grep -v '^ *+' conftest.er1 >conftest.err
11789: rm -f conftest.er1
11790: cat conftest.err >&5
11791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792: (exit $ac_status); } &&
11793: { ac_try='test -z "$ac_c_werror_flag"
11794: || test ! -s conftest.err'
11795: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796: (eval $ac_try) 2>&5
11797: ac_status=$?
11798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799: (exit $ac_status); }; } &&
11800: { ac_try='test -s conftest$ac_exeext'
11801: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802: (eval $ac_try) 2>&5
11803: ac_status=$?
11804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805: (exit $ac_status); }; }; then
11806: ac_cv_lib_dl_dlopen=yes
11807: else
11808: echo "$as_me: failed program was:" >&5
11809: sed 's/^/| /' conftest.$ac_ext >&5
11810:
11811: ac_cv_lib_dl_dlopen=no
11812: fi
11813: rm -f conftest.err conftest.$ac_objext \
11814: conftest$ac_exeext conftest.$ac_ext
11815: LIBS=$ac_check_lib_save_LIBS
11816: fi
11817: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11818: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11819: if test $ac_cv_lib_dl_dlopen = yes; then
11820: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11821: else
11822: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11823: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11824: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11825: echo $ECHO_N "(cached) $ECHO_C" >&6
11826: else
11827: ac_check_lib_save_LIBS=$LIBS
11828: LIBS="-lsvld $LIBS"
11829: cat >conftest.$ac_ext <<_ACEOF
11830: /* confdefs.h. */
11831: _ACEOF
11832: cat confdefs.h >>conftest.$ac_ext
11833: cat >>conftest.$ac_ext <<_ACEOF
11834: /* end confdefs.h. */
11835:
11836: /* Override any gcc2 internal prototype to avoid an error. */
11837: #ifdef __cplusplus
11838: extern "C"
11839: #endif
11840: /* We use char because int might match the return type of a gcc2
11841: builtin and then its argument prototype would still apply. */
11842: char dlopen ();
11843: int
11844: main ()
11845: {
11846: dlopen ();
11847: ;
11848: return 0;
11849: }
11850: _ACEOF
11851: rm -f conftest.$ac_objext conftest$ac_exeext
11852: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853: (eval $ac_link) 2>conftest.er1
11854: ac_status=$?
11855: grep -v '^ *+' conftest.er1 >conftest.err
11856: rm -f conftest.er1
11857: cat conftest.err >&5
11858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859: (exit $ac_status); } &&
11860: { ac_try='test -z "$ac_c_werror_flag"
11861: || test ! -s conftest.err'
11862: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863: (eval $ac_try) 2>&5
11864: ac_status=$?
11865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866: (exit $ac_status); }; } &&
11867: { ac_try='test -s conftest$ac_exeext'
11868: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869: (eval $ac_try) 2>&5
11870: ac_status=$?
11871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872: (exit $ac_status); }; }; then
11873: ac_cv_lib_svld_dlopen=yes
11874: else
11875: echo "$as_me: failed program was:" >&5
11876: sed 's/^/| /' conftest.$ac_ext >&5
11877:
11878: ac_cv_lib_svld_dlopen=no
11879: fi
11880: rm -f conftest.err conftest.$ac_objext \
11881: conftest$ac_exeext conftest.$ac_ext
11882: LIBS=$ac_check_lib_save_LIBS
11883: fi
11884: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11885: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11886: if test $ac_cv_lib_svld_dlopen = yes; then
11887: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11888: else
11889: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11890: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11891: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11892: echo $ECHO_N "(cached) $ECHO_C" >&6
11893: else
11894: ac_check_lib_save_LIBS=$LIBS
11895: LIBS="-ldld $LIBS"
11896: cat >conftest.$ac_ext <<_ACEOF
11897: /* confdefs.h. */
11898: _ACEOF
11899: cat confdefs.h >>conftest.$ac_ext
11900: cat >>conftest.$ac_ext <<_ACEOF
11901: /* end confdefs.h. */
11902:
11903: /* Override any gcc2 internal prototype to avoid an error. */
11904: #ifdef __cplusplus
11905: extern "C"
11906: #endif
11907: /* We use char because int might match the return type of a gcc2
11908: builtin and then its argument prototype would still apply. */
11909: char dld_link ();
11910: int
11911: main ()
11912: {
11913: dld_link ();
11914: ;
11915: return 0;
11916: }
11917: _ACEOF
11918: rm -f conftest.$ac_objext conftest$ac_exeext
11919: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920: (eval $ac_link) 2>conftest.er1
11921: ac_status=$?
11922: grep -v '^ *+' conftest.er1 >conftest.err
11923: rm -f conftest.er1
11924: cat conftest.err >&5
11925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926: (exit $ac_status); } &&
11927: { ac_try='test -z "$ac_c_werror_flag"
11928: || test ! -s conftest.err'
11929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930: (eval $ac_try) 2>&5
11931: ac_status=$?
11932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933: (exit $ac_status); }; } &&
11934: { ac_try='test -s conftest$ac_exeext'
11935: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936: (eval $ac_try) 2>&5
11937: ac_status=$?
11938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939: (exit $ac_status); }; }; then
11940: ac_cv_lib_dld_dld_link=yes
11941: else
11942: echo "$as_me: failed program was:" >&5
11943: sed 's/^/| /' conftest.$ac_ext >&5
11944:
11945: ac_cv_lib_dld_dld_link=no
11946: fi
11947: rm -f conftest.err conftest.$ac_objext \
11948: conftest$ac_exeext conftest.$ac_ext
11949: LIBS=$ac_check_lib_save_LIBS
11950: fi
11951: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11952: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11953: if test $ac_cv_lib_dld_dld_link = yes; then
11954: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11955: fi
11956:
11957:
11958: fi
11959:
11960:
11961: fi
11962:
11963:
11964: fi
11965:
11966:
11967: fi
11968:
11969:
11970: fi
11971:
11972: ;;
11973: esac
11974:
11975: if test "x$lt_cv_dlopen" != xno; then
11976: enable_dlopen=yes
11977: else
11978: enable_dlopen=no
11979: fi
11980:
11981: case $lt_cv_dlopen in
11982: dlopen)
11983: save_CPPFLAGS="$CPPFLAGS"
11984: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11985:
11986: save_LDFLAGS="$LDFLAGS"
11987: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11988:
11989: save_LIBS="$LIBS"
11990: LIBS="$lt_cv_dlopen_libs $LIBS"
11991:
11992: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11993: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11994: if test "${lt_cv_dlopen_self+set}" = set; then
11995: echo $ECHO_N "(cached) $ECHO_C" >&6
11996: else
11997: if test "$cross_compiling" = yes; then :
11998: lt_cv_dlopen_self=cross
11999: else
12000: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12001: lt_status=$lt_dlunknown
12002: cat > conftest.$ac_ext <<_LT_EOF
12003: #line $LINENO "configure"
12004: #include "confdefs.h"
12005:
12006: #if HAVE_DLFCN_H
12007: #include <dlfcn.h>
12008: #endif
12009:
12010: #include <stdio.h>
12011:
12012: #ifdef RTLD_GLOBAL
12013: # define LT_DLGLOBAL RTLD_GLOBAL
12014: #else
12015: # ifdef DL_GLOBAL
12016: # define LT_DLGLOBAL DL_GLOBAL
12017: # else
12018: # define LT_DLGLOBAL 0
12019: # endif
12020: #endif
12021:
12022: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12023: find out it does not work in some platform. */
12024: #ifndef LT_DLLAZY_OR_NOW
12025: # ifdef RTLD_LAZY
12026: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12027: # else
12028: # ifdef DL_LAZY
12029: # define LT_DLLAZY_OR_NOW DL_LAZY
12030: # else
12031: # ifdef RTLD_NOW
12032: # define LT_DLLAZY_OR_NOW RTLD_NOW
12033: # else
12034: # ifdef DL_NOW
12035: # define LT_DLLAZY_OR_NOW DL_NOW
12036: # else
12037: # define LT_DLLAZY_OR_NOW 0
12038: # endif
12039: # endif
12040: # endif
12041: # endif
12042: #endif
12043:
12044: /* When -fvisbility=hidden is used, assume the code has been annotated
12045: correspondingly for the symbols needed. */
12046: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12047: int fnord () __attribute__((visibility("default")));
12048: #endif
12049:
12050: int fnord () { return 42; }
12051: int main ()
12052: {
12053: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12054: int status = $lt_dlunknown;
12055:
12056: if (self)
12057: {
12058: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12059: else
12060: {
12061: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12062: else puts (dlerror ());
12063: }
12064: /* dlclose (self); */
12065: }
12066: else
12067: puts (dlerror ());
12068:
12069: return status;
12070: }
12071: _LT_EOF
12072: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073: (eval $ac_link) 2>&5
12074: ac_status=$?
12075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12077: (./conftest; exit; ) >&5 2>/dev/null
12078: lt_status=$?
12079: case x$lt_status in
12080: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12081: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12082: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12083: esac
12084: else :
12085: # compilation failed
12086: lt_cv_dlopen_self=no
12087: fi
12088: fi
12089: rm -fr conftest*
12090:
12091:
12092: fi
12093: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12094: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12095:
12096: if test "x$lt_cv_dlopen_self" = xyes; then
12097: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12098: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12099: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12100: if test "${lt_cv_dlopen_self_static+set}" = set; then
12101: echo $ECHO_N "(cached) $ECHO_C" >&6
12102: else
12103: if test "$cross_compiling" = yes; then :
12104: lt_cv_dlopen_self_static=cross
12105: else
12106: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12107: lt_status=$lt_dlunknown
12108: cat > conftest.$ac_ext <<_LT_EOF
12109: #line $LINENO "configure"
12110: #include "confdefs.h"
12111:
12112: #if HAVE_DLFCN_H
12113: #include <dlfcn.h>
12114: #endif
12115:
12116: #include <stdio.h>
12117:
12118: #ifdef RTLD_GLOBAL
12119: # define LT_DLGLOBAL RTLD_GLOBAL
12120: #else
12121: # ifdef DL_GLOBAL
12122: # define LT_DLGLOBAL DL_GLOBAL
12123: # else
12124: # define LT_DLGLOBAL 0
12125: # endif
12126: #endif
12127:
12128: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12129: find out it does not work in some platform. */
12130: #ifndef LT_DLLAZY_OR_NOW
12131: # ifdef RTLD_LAZY
12132: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12133: # else
12134: # ifdef DL_LAZY
12135: # define LT_DLLAZY_OR_NOW DL_LAZY
12136: # else
12137: # ifdef RTLD_NOW
12138: # define LT_DLLAZY_OR_NOW RTLD_NOW
12139: # else
12140: # ifdef DL_NOW
12141: # define LT_DLLAZY_OR_NOW DL_NOW
12142: # else
12143: # define LT_DLLAZY_OR_NOW 0
12144: # endif
12145: # endif
12146: # endif
12147: # endif
12148: #endif
12149:
12150: /* When -fvisbility=hidden is used, assume the code has been annotated
12151: correspondingly for the symbols needed. */
12152: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12153: int fnord () __attribute__((visibility("default")));
12154: #endif
12155:
12156: int fnord () { return 42; }
12157: int main ()
12158: {
12159: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12160: int status = $lt_dlunknown;
12161:
12162: if (self)
12163: {
12164: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12165: else
12166: {
12167: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12168: else puts (dlerror ());
12169: }
12170: /* dlclose (self); */
12171: }
12172: else
12173: puts (dlerror ());
12174:
12175: return status;
12176: }
12177: _LT_EOF
12178: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179: (eval $ac_link) 2>&5
12180: ac_status=$?
12181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12183: (./conftest; exit; ) >&5 2>/dev/null
12184: lt_status=$?
12185: case x$lt_status in
12186: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12187: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12188: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12189: esac
12190: else :
12191: # compilation failed
12192: lt_cv_dlopen_self_static=no
12193: fi
12194: fi
12195: rm -fr conftest*
12196:
12197:
12198: fi
12199: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12200: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12201: fi
12202:
12203: CPPFLAGS="$save_CPPFLAGS"
12204: LDFLAGS="$save_LDFLAGS"
12205: LIBS="$save_LIBS"
12206: ;;
12207: esac
12208:
12209: case $lt_cv_dlopen_self in
12210: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12211: *) enable_dlopen_self=unknown ;;
12212: esac
12213:
12214: case $lt_cv_dlopen_self_static in
12215: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12216: *) enable_dlopen_self_static=unknown ;;
12217: esac
12218: fi
12219:
12220:
12221:
12222:
12223:
12224:
12225:
12226:
12227:
12228:
12229:
12230:
12231:
12232:
12233:
12234:
12235:
12236: striplib=
12237: old_striplib=
12238: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12239: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12240: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12241: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12242: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12243: echo "$as_me:$LINENO: result: yes" >&5
12244: echo "${ECHO_T}yes" >&6
12245: else
12246: # FIXME - insert some real tests, host_os isn't really good enough
12247: case $host_os in
12248: darwin*)
12249: if test -n "$STRIP" ; then
12250: striplib="$STRIP -x"
12251: old_striplib="$STRIP -S"
12252: echo "$as_me:$LINENO: result: yes" >&5
12253: echo "${ECHO_T}yes" >&6
12254: else
12255: echo "$as_me:$LINENO: result: no" >&5
12256: echo "${ECHO_T}no" >&6
12257: fi
12258: ;;
12259: *)
12260: echo "$as_me:$LINENO: result: no" >&5
12261: echo "${ECHO_T}no" >&6
12262: ;;
12263: esac
12264: fi
12265:
12266:
12267:
12268:
12269:
12270:
12271:
12272:
12273:
12274:
12275:
12276:
12277: # Report which library types will actually be built
12278: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12279: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12280: echo "$as_me:$LINENO: result: $can_build_shared" >&5
12281: echo "${ECHO_T}$can_build_shared" >&6
12282:
12283: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12284: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12285: test "$can_build_shared" = "no" && enable_shared=no
12286:
12287: # On AIX, shared libraries and static libraries use the same namespace, and
12288: # are all built from PIC.
12289: case $host_os in
12290: aix3*)
12291: test "$enable_shared" = yes && enable_static=no
12292: if test -n "$RANLIB"; then
12293: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12294: postinstall_cmds='$RANLIB $lib'
12295: fi
12296: ;;
12297:
12298: aix[4-9]*)
12299: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12300: test "$enable_shared" = yes && enable_static=no
12301: fi
12302: ;;
12303: esac
12304: echo "$as_me:$LINENO: result: $enable_shared" >&5
12305: echo "${ECHO_T}$enable_shared" >&6
12306:
12307: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12308: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12309: # Make sure either enable_shared or enable_static is yes.
12310: test "$enable_shared" = yes || enable_static=yes
12311: echo "$as_me:$LINENO: result: $enable_static" >&5
12312: echo "${ECHO_T}$enable_static" >&6
12313:
12314:
12315:
12316:
12317: fi
12318: ac_ext=c
12319: ac_cpp='$CPP $CPPFLAGS'
12320: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12321: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12322: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12323:
12324: CC="$lt_save_CC"
12325:
12326: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12327: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12328: (test "X$CXX" != "Xg++"))) ; then
12329: ac_ext=cc
12330: ac_cpp='$CXXCPP $CPPFLAGS'
12331: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12332: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12333: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12334: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12335: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12336: if test -z "$CXXCPP"; then
12337: if test "${ac_cv_prog_CXXCPP+set}" = set; then
12338: echo $ECHO_N "(cached) $ECHO_C" >&6
12339: else
12340: # Double quotes because CXXCPP needs to be expanded
12341: for CXXCPP in "$CXX -E" "/lib/cpp"
12342: do
12343: ac_preproc_ok=false
12344: for ac_cxx_preproc_warn_flag in '' yes
12345: do
12346: # Use a header file that comes with gcc, so configuring glibc
12347: # with a fresh cross-compiler works.
12348: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12349: # <limits.h> exists even on freestanding compilers.
12350: # On the NeXT, cc -E runs the code through the compiler's parser,
12351: # not just through cpp. "Syntax error" is here to catch this case.
12352: cat >conftest.$ac_ext <<_ACEOF
12353: /* confdefs.h. */
12354: _ACEOF
12355: cat confdefs.h >>conftest.$ac_ext
12356: cat >>conftest.$ac_ext <<_ACEOF
12357: /* end confdefs.h. */
12358: #ifdef __STDC__
12359: # include <limits.h>
12360: #else
12361: # include <assert.h>
12362: #endif
12363: Syntax error
12364: _ACEOF
12365: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12366: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12367: ac_status=$?
12368: grep -v '^ *+' conftest.er1 >conftest.err
12369: rm -f conftest.er1
12370: cat conftest.err >&5
12371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372: (exit $ac_status); } >/dev/null; then
12373: if test -s conftest.err; then
12374: ac_cpp_err=$ac_cxx_preproc_warn_flag
12375: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12376: else
12377: ac_cpp_err=
12378: fi
12379: else
12380: ac_cpp_err=yes
12381: fi
12382: if test -z "$ac_cpp_err"; then
12383: :
12384: else
12385: echo "$as_me: failed program was:" >&5
12386: sed 's/^/| /' conftest.$ac_ext >&5
12387:
12388: # Broken: fails on valid input.
12389: continue
12390: fi
12391: rm -f conftest.err conftest.$ac_ext
12392:
12393: # OK, works on sane cases. Now check whether non-existent headers
12394: # can be detected and how.
12395: cat >conftest.$ac_ext <<_ACEOF
12396: /* confdefs.h. */
12397: _ACEOF
12398: cat confdefs.h >>conftest.$ac_ext
12399: cat >>conftest.$ac_ext <<_ACEOF
12400: /* end confdefs.h. */
12401: #include <ac_nonexistent.h>
12402: _ACEOF
12403: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12404: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12405: ac_status=$?
12406: grep -v '^ *+' conftest.er1 >conftest.err
12407: rm -f conftest.er1
12408: cat conftest.err >&5
12409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410: (exit $ac_status); } >/dev/null; then
12411: if test -s conftest.err; then
12412: ac_cpp_err=$ac_cxx_preproc_warn_flag
12413: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12414: else
12415: ac_cpp_err=
12416: fi
12417: else
12418: ac_cpp_err=yes
12419: fi
12420: if test -z "$ac_cpp_err"; then
12421: # Broken: success on invalid input.
12422: continue
12423: else
12424: echo "$as_me: failed program was:" >&5
12425: sed 's/^/| /' conftest.$ac_ext >&5
12426:
12427: # Passes both tests.
12428: ac_preproc_ok=:
12429: break
12430: fi
12431: rm -f conftest.err conftest.$ac_ext
12432:
12433: done
12434: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12435: rm -f conftest.err conftest.$ac_ext
12436: if $ac_preproc_ok; then
12437: break
12438: fi
12439:
12440: done
12441: ac_cv_prog_CXXCPP=$CXXCPP
12442:
12443: fi
12444: CXXCPP=$ac_cv_prog_CXXCPP
12445: else
12446: ac_cv_prog_CXXCPP=$CXXCPP
12447: fi
12448: echo "$as_me:$LINENO: result: $CXXCPP" >&5
12449: echo "${ECHO_T}$CXXCPP" >&6
12450: ac_preproc_ok=false
12451: for ac_cxx_preproc_warn_flag in '' yes
12452: do
12453: # Use a header file that comes with gcc, so configuring glibc
12454: # with a fresh cross-compiler works.
12455: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12456: # <limits.h> exists even on freestanding compilers.
12457: # On the NeXT, cc -E runs the code through the compiler's parser,
12458: # not just through cpp. "Syntax error" is here to catch this case.
12459: cat >conftest.$ac_ext <<_ACEOF
12460: /* confdefs.h. */
12461: _ACEOF
12462: cat confdefs.h >>conftest.$ac_ext
12463: cat >>conftest.$ac_ext <<_ACEOF
12464: /* end confdefs.h. */
12465: #ifdef __STDC__
12466: # include <limits.h>
12467: #else
12468: # include <assert.h>
12469: #endif
12470: Syntax error
12471: _ACEOF
12472: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12473: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12474: ac_status=$?
12475: grep -v '^ *+' conftest.er1 >conftest.err
12476: rm -f conftest.er1
12477: cat conftest.err >&5
12478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479: (exit $ac_status); } >/dev/null; then
12480: if test -s conftest.err; then
12481: ac_cpp_err=$ac_cxx_preproc_warn_flag
12482: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12483: else
12484: ac_cpp_err=
12485: fi
12486: else
12487: ac_cpp_err=yes
12488: fi
12489: if test -z "$ac_cpp_err"; then
12490: :
12491: else
12492: echo "$as_me: failed program was:" >&5
12493: sed 's/^/| /' conftest.$ac_ext >&5
12494:
12495: # Broken: fails on valid input.
12496: continue
12497: fi
12498: rm -f conftest.err conftest.$ac_ext
12499:
12500: # OK, works on sane cases. Now check whether non-existent headers
12501: # can be detected and how.
12502: cat >conftest.$ac_ext <<_ACEOF
12503: /* confdefs.h. */
12504: _ACEOF
12505: cat confdefs.h >>conftest.$ac_ext
12506: cat >>conftest.$ac_ext <<_ACEOF
12507: /* end confdefs.h. */
12508: #include <ac_nonexistent.h>
12509: _ACEOF
12510: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12511: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12512: ac_status=$?
12513: grep -v '^ *+' conftest.er1 >conftest.err
12514: rm -f conftest.er1
12515: cat conftest.err >&5
12516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517: (exit $ac_status); } >/dev/null; then
12518: if test -s conftest.err; then
12519: ac_cpp_err=$ac_cxx_preproc_warn_flag
12520: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12521: else
12522: ac_cpp_err=
12523: fi
12524: else
12525: ac_cpp_err=yes
12526: fi
12527: if test -z "$ac_cpp_err"; then
12528: # Broken: success on invalid input.
12529: continue
12530: else
12531: echo "$as_me: failed program was:" >&5
12532: sed 's/^/| /' conftest.$ac_ext >&5
12533:
12534: # Passes both tests.
12535: ac_preproc_ok=:
12536: break
12537: fi
12538: rm -f conftest.err conftest.$ac_ext
12539:
12540: done
12541: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12542: rm -f conftest.err conftest.$ac_ext
12543: if $ac_preproc_ok; then
12544: :
12545: else
12546: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12547: See \`config.log' for more details." >&5
12548: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12549: See \`config.log' for more details." >&2;}
12550: { (exit 1); exit 1; }; }
12551: fi
12552:
12553: ac_ext=c
12554: ac_cpp='$CPP $CPPFLAGS'
12555: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12556: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12557: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12558:
12559: else
12560: _lt_caught_CXX_error=yes
12561: fi
12562:
12563: ac_ext=cc
12564: ac_cpp='$CXXCPP $CPPFLAGS'
12565: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12568:
12569: archive_cmds_need_lc_CXX=no
12570: allow_undefined_flag_CXX=
12571: always_export_symbols_CXX=no
12572: archive_expsym_cmds_CXX=
12573: compiler_needs_object_CXX=no
12574: export_dynamic_flag_spec_CXX=
12575: hardcode_direct_CXX=no
12576: hardcode_direct_absolute_CXX=no
12577: hardcode_libdir_flag_spec_CXX=
12578: hardcode_libdir_separator_CXX=
12579: hardcode_minus_L_CXX=no
12580: hardcode_shlibpath_var_CXX=unsupported
12581: hardcode_automatic_CXX=no
12582: inherit_rpath_CXX=no
12583: module_cmds_CXX=
12584: module_expsym_cmds_CXX=
12585: link_all_deplibs_CXX=unknown
12586: old_archive_cmds_CXX=$old_archive_cmds
12587: reload_flag_CXX=$reload_flag
12588: reload_cmds_CXX=$reload_cmds
12589: no_undefined_flag_CXX=
12590: whole_archive_flag_spec_CXX=
12591: enable_shared_with_static_runtimes_CXX=no
12592:
12593: # Source file extension for C++ test sources.
12594: ac_ext=cpp
12595:
12596: # Object file extension for compiled C++ test sources.
12597: objext=o
12598: objext_CXX=$objext
12599:
12600: # No sense in running all these tests if we already determined that
12601: # the CXX compiler isn't working. Some variables (like enable_shared)
12602: # are currently assumed to apply to all compilers on this platform,
12603: # and will be corrupted by setting them based on a non-working compiler.
12604: if test "$_lt_caught_CXX_error" != yes; then
12605: # Code to be used in simple compile tests
12606: lt_simple_compile_test_code="int some_variable = 0;"
12607:
12608: # Code to be used in simple link tests
12609: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12610:
12611: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12612:
12613:
12614:
12615:
12616:
12617:
12618: # If no C compiler was specified, use CC.
12619: LTCC=${LTCC-"$CC"}
12620:
12621: # If no C compiler flags were specified, use CFLAGS.
12622: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12623:
12624: # Allow CC to be a program name with arguments.
12625: compiler=$CC
12626:
12627:
12628: # save warnings/boilerplate of simple test code
12629: ac_outfile=conftest.$ac_objext
12630: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12631: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12632: _lt_compiler_boilerplate=`cat conftest.err`
12633: $RM conftest*
12634:
12635: ac_outfile=conftest.$ac_objext
12636: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12637: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12638: _lt_linker_boilerplate=`cat conftest.err`
12639: $RM -r conftest*
12640:
12641:
12642: # Allow CC to be a program name with arguments.
12643: lt_save_CC=$CC
12644: lt_save_CFLAGS=$CFLAGS
12645: lt_save_LD=$LD
12646: lt_save_GCC=$GCC
12647: GCC=$GXX
12648: lt_save_with_gnu_ld=$with_gnu_ld
12649: lt_save_path_LD=$lt_cv_path_LD
12650: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12651: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12652: else
12653: $as_unset lt_cv_prog_gnu_ld
12654: fi
12655: if test -n "${lt_cv_path_LDCXX+set}"; then
12656: lt_cv_path_LD=$lt_cv_path_LDCXX
12657: else
12658: $as_unset lt_cv_path_LD
12659: fi
12660: test -z "${LDCXX+set}" || LD=$LDCXX
12661: CC=${CXX-"c++"}
12662: CFLAGS=$CXXFLAGS
12663: compiler=$CC
12664: compiler_CXX=$CC
12665: for cc_temp in $compiler""; do
12666: case $cc_temp in
12667: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12668: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12669: \-*) ;;
12670: *) break;;
12671: esac
12672: done
12673: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12674:
12675:
12676: if test -n "$compiler"; then
12677: # We don't want -fno-exception when compiling C++ code, so set the
12678: # no_builtin_flag separately
12679: if test "$GXX" = yes; then
12680: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12681: else
12682: lt_prog_compiler_no_builtin_flag_CXX=
12683: fi
12684:
12685: if test "$GXX" = yes; then
12686: # Set up default GNU C++ configuration
12687:
12688:
12689:
12690: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12691: if test "${with_gnu_ld+set}" = set; then
12692: withval="$with_gnu_ld"
12693: test "$withval" = no || with_gnu_ld=yes
12694: else
12695: with_gnu_ld=no
12696: fi;
12697: ac_prog=ld
12698: if test "$GCC" = yes; then
12699: # Check if gcc -print-prog-name=ld gives a path.
12700: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12701: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12702: case $host in
12703: *-*-mingw*)
12704: # gcc leaves a trailing carriage return which upsets mingw
12705: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12706: *)
12707: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12708: esac
12709: case $ac_prog in
12710: # Accept absolute paths.
12711: [\\/]* | ?:[\\/]*)
12712: re_direlt='/[^/][^/]*/\.\./'
12713: # Canonicalize the pathname of ld
12714: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12715: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12716: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12717: done
12718: test -z "$LD" && LD="$ac_prog"
12719: ;;
12720: "")
12721: # If it fails, then pretend we aren't using GCC.
12722: ac_prog=ld
12723: ;;
12724: *)
12725: # If it is relative, then search for the first ld in PATH.
12726: with_gnu_ld=unknown
12727: ;;
12728: esac
12729: elif test "$with_gnu_ld" = yes; then
12730: echo "$as_me:$LINENO: checking for GNU ld" >&5
12731: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12732: else
12733: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12734: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12735: fi
12736: if test "${lt_cv_path_LD+set}" = set; then
12737: echo $ECHO_N "(cached) $ECHO_C" >&6
12738: else
12739: if test -z "$LD"; then
12740: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12741: for ac_dir in $PATH; do
12742: IFS="$lt_save_ifs"
12743: test -z "$ac_dir" && ac_dir=.
12744: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12745: lt_cv_path_LD="$ac_dir/$ac_prog"
12746: # Check to see if the program is GNU ld. I'd rather use --version,
12747: # but apparently some variants of GNU ld only accept -v.
12748: # Break only if it was the GNU/non-GNU ld that we prefer.
12749: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12750: *GNU* | *'with BFD'*)
12751: test "$with_gnu_ld" != no && break
12752: ;;
12753: *)
12754: test "$with_gnu_ld" != yes && break
12755: ;;
12756: esac
12757: fi
12758: done
12759: IFS="$lt_save_ifs"
12760: else
12761: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12762: fi
12763: fi
12764:
12765: LD="$lt_cv_path_LD"
12766: if test -n "$LD"; then
12767: echo "$as_me:$LINENO: result: $LD" >&5
12768: echo "${ECHO_T}$LD" >&6
12769: else
12770: echo "$as_me:$LINENO: result: no" >&5
12771: echo "${ECHO_T}no" >&6
12772: fi
12773: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12774: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12775: { (exit 1); exit 1; }; }
12776: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12777: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12778: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12779: echo $ECHO_N "(cached) $ECHO_C" >&6
12780: else
12781: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12782: case `$LD -v 2>&1 </dev/null` in
12783: *GNU* | *'with BFD'*)
12784: lt_cv_prog_gnu_ld=yes
12785: ;;
12786: *)
12787: lt_cv_prog_gnu_ld=no
12788: ;;
12789: esac
12790: fi
12791: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12792: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12793: with_gnu_ld=$lt_cv_prog_gnu_ld
12794:
12795:
12796:
12797:
12798:
12799:
12800:
12801: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12802: # archiving commands below assume that GNU ld is being used.
12803: if test "$with_gnu_ld" = yes; then
12804: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805: 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'
12806:
12807: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12808: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12809:
12810: # If archive_cmds runs LD, not CC, wlarc should be empty
12811: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12812: # investigate it a little bit more. (MM)
12813: wlarc='${wl}'
12814:
12815: # ancient GNU ld didn't support --whole-archive et. al.
12816: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12817: $GREP 'no-whole-archive' > /dev/null; then
12818: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12819: else
12820: whole_archive_flag_spec_CXX=
12821: fi
12822: else
12823: with_gnu_ld=no
12824: wlarc=
12825:
12826: # A generic and very simple default shared library creation
12827: # command for GNU C++ for the case where it uses the native
12828: # linker, instead of GNU ld. If possible, this setting should
12829: # overridden to take advantage of the native linker features on
12830: # the platform it is being used on.
12831: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12832: fi
12833:
12834: # Commands to make compiler produce verbose output that lists
12835: # what "hidden" libraries, object files and flags are used when
12836: # linking a shared library.
12837: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12838:
12839: else
12840: GXX=no
12841: with_gnu_ld=no
12842: wlarc=
12843: fi
12844:
12845: # PORTME: fill in a description of your system's C++ link characteristics
12846: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12847: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12848: ld_shlibs_CXX=yes
12849: case $host_os in
12850: aix3*)
12851: # FIXME: insert proper C++ library support
12852: ld_shlibs_CXX=no
12853: ;;
12854: aix[4-9]*)
12855: if test "$host_cpu" = ia64; then
12856: # On IA64, the linker does run time linking by default, so we don't
12857: # have to do anything special.
12858: aix_use_runtimelinking=no
12859: exp_sym_flag='-Bexport'
12860: no_entry_flag=""
12861: else
12862: aix_use_runtimelinking=no
12863:
12864: # Test if we are trying to use run time linking or normal
12865: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12866: # need to do runtime linking.
12867: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12868: for ld_flag in $LDFLAGS; do
12869: case $ld_flag in
12870: *-brtl*)
12871: aix_use_runtimelinking=yes
12872: break
12873: ;;
12874: esac
12875: done
12876: ;;
12877: esac
12878:
12879: exp_sym_flag='-bexport'
12880: no_entry_flag='-bnoentry'
12881: fi
12882:
12883: # When large executables or shared objects are built, AIX ld can
12884: # have problems creating the table of contents. If linking a library
12885: # or program results in "error TOC overflow" add -mminimal-toc to
12886: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12887: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12888:
12889: archive_cmds_CXX=''
12890: hardcode_direct_CXX=yes
12891: hardcode_direct_absolute_CXX=yes
12892: hardcode_libdir_separator_CXX=':'
12893: link_all_deplibs_CXX=yes
12894: file_list_spec_CXX='${wl}-f,'
12895:
12896: if test "$GXX" = yes; then
12897: case $host_os in aix4.[012]|aix4.[012].*)
12898: # We only want to do this on AIX 4.2 and lower, the check
12899: # below for broken collect2 doesn't work under 4.3+
12900: collect2name=`${CC} -print-prog-name=collect2`
12901: if test -f "$collect2name" &&
12902: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12903: then
12904: # We have reworked collect2
12905: :
12906: else
12907: # We have old collect2
12908: hardcode_direct_CXX=unsupported
12909: # It fails to find uninstalled libraries when the uninstalled
12910: # path is not listed in the libpath. Setting hardcode_minus_L
12911: # to unsupported forces relinking
12912: hardcode_minus_L_CXX=yes
12913: hardcode_libdir_flag_spec_CXX='-L$libdir'
12914: hardcode_libdir_separator_CXX=
12915: fi
12916: esac
12917: shared_flag='-shared'
12918: if test "$aix_use_runtimelinking" = yes; then
12919: shared_flag="$shared_flag "'${wl}-G'
12920: fi
12921: else
12922: # not using gcc
12923: if test "$host_cpu" = ia64; then
12924: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12925: # chokes on -Wl,-G. The following line is correct:
12926: shared_flag='-G'
12927: else
12928: if test "$aix_use_runtimelinking" = yes; then
12929: shared_flag='${wl}-G'
12930: else
12931: shared_flag='${wl}-bM:SRE'
12932: fi
12933: fi
12934: fi
12935:
12936: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12937: # It seems that -bexpall does not export symbols beginning with
12938: # underscore (_), so it is better to generate a list of symbols to
12939: # export.
12940: always_export_symbols_CXX=yes
12941: if test "$aix_use_runtimelinking" = yes; then
12942: # Warning - without using the other runtime loading flags (-brtl),
12943: # -berok will link without error, but may produce a broken library.
12944: allow_undefined_flag_CXX='-berok'
12945: # Determine the default libpath from the value encoded in an empty
12946: # executable.
12947: if test "${lt_cv_aix_libpath+set}" = set; then
12948: aix_libpath=$lt_cv_aix_libpath
12949: else
12950: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12951: echo $ECHO_N "(cached) $ECHO_C" >&6
12952: else
12953: cat >conftest.$ac_ext <<_ACEOF
12954: /* confdefs.h. */
12955: _ACEOF
12956: cat confdefs.h >>conftest.$ac_ext
12957: cat >>conftest.$ac_ext <<_ACEOF
12958: /* end confdefs.h. */
12959:
12960: int
12961: main ()
12962: {
12963:
12964: ;
12965: return 0;
12966: }
12967: _ACEOF
12968: rm -f conftest.$ac_objext conftest$ac_exeext
12969: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970: (eval $ac_link) 2>conftest.er1
12971: ac_status=$?
12972: grep -v '^ *+' conftest.er1 >conftest.err
12973: rm -f conftest.er1
12974: cat conftest.err >&5
12975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976: (exit $ac_status); } &&
12977: { ac_try='test -z "$ac_cxx_werror_flag"
12978: || test ! -s conftest.err'
12979: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980: (eval $ac_try) 2>&5
12981: ac_status=$?
12982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983: (exit $ac_status); }; } &&
12984: { ac_try='test -s conftest$ac_exeext'
12985: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986: (eval $ac_try) 2>&5
12987: ac_status=$?
12988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989: (exit $ac_status); }; }; then
12990:
12991: lt_aix_libpath_sed='
12992: /Import File Strings/,/^$/ {
12993: /^0/ {
12994: s/^0 *\([^ ]*\) *$/\1/
12995: p
12996: }
12997: }'
12998: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12999: # Check for a 64-bit object if we didn't find anything.
13000: if test -z "$lt_cv_aix_libpath__CXX"; then
13001: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13002: fi
13003: else
13004: echo "$as_me: failed program was:" >&5
13005: sed 's/^/| /' conftest.$ac_ext >&5
13006:
13007: fi
13008: rm -f conftest.err conftest.$ac_objext \
13009: conftest$ac_exeext conftest.$ac_ext
13010: if test -z "$lt_cv_aix_libpath__CXX"; then
13011: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13012: fi
13013:
13014: fi
13015:
13016: aix_libpath=$lt_cv_aix_libpath__CXX
13017: fi
13018:
13019: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13020:
13021: 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"
13022: else
13023: if test "$host_cpu" = ia64; then
13024: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13025: allow_undefined_flag_CXX="-z nodefs"
13026: 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"
13027: else
13028: # Determine the default libpath from the value encoded in an
13029: # empty executable.
13030: if test "${lt_cv_aix_libpath+set}" = set; then
13031: aix_libpath=$lt_cv_aix_libpath
13032: else
13033: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13034: echo $ECHO_N "(cached) $ECHO_C" >&6
13035: else
13036: cat >conftest.$ac_ext <<_ACEOF
13037: /* confdefs.h. */
13038: _ACEOF
13039: cat confdefs.h >>conftest.$ac_ext
13040: cat >>conftest.$ac_ext <<_ACEOF
13041: /* end confdefs.h. */
13042:
13043: int
13044: main ()
13045: {
13046:
13047: ;
13048: return 0;
13049: }
13050: _ACEOF
13051: rm -f conftest.$ac_objext conftest$ac_exeext
13052: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053: (eval $ac_link) 2>conftest.er1
13054: ac_status=$?
13055: grep -v '^ *+' conftest.er1 >conftest.err
13056: rm -f conftest.er1
13057: cat conftest.err >&5
13058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059: (exit $ac_status); } &&
13060: { ac_try='test -z "$ac_cxx_werror_flag"
13061: || test ! -s conftest.err'
13062: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063: (eval $ac_try) 2>&5
13064: ac_status=$?
13065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066: (exit $ac_status); }; } &&
13067: { ac_try='test -s conftest$ac_exeext'
13068: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069: (eval $ac_try) 2>&5
13070: ac_status=$?
13071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072: (exit $ac_status); }; }; then
13073:
13074: lt_aix_libpath_sed='
13075: /Import File Strings/,/^$/ {
13076: /^0/ {
13077: s/^0 *\([^ ]*\) *$/\1/
13078: p
13079: }
13080: }'
13081: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082: # Check for a 64-bit object if we didn't find anything.
13083: if test -z "$lt_cv_aix_libpath__CXX"; then
13084: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085: fi
13086: else
13087: echo "$as_me: failed program was:" >&5
13088: sed 's/^/| /' conftest.$ac_ext >&5
13089:
13090: fi
13091: rm -f conftest.err conftest.$ac_objext \
13092: conftest$ac_exeext conftest.$ac_ext
13093: if test -z "$lt_cv_aix_libpath__CXX"; then
13094: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13095: fi
13096:
13097: fi
13098:
13099: aix_libpath=$lt_cv_aix_libpath__CXX
13100: fi
13101:
13102: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13103: # Warning - without using the other run time loading flags,
13104: # -berok will link without error, but may produce a broken library.
13105: no_undefined_flag_CXX=' ${wl}-bernotok'
13106: allow_undefined_flag_CXX=' ${wl}-berok'
13107: if test "$with_gnu_ld" = yes; then
13108: # We only use this code for GNU lds that support --whole-archive.
13109: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13110: else
13111: # Exported symbols can be pulled into shared objects from archives
13112: whole_archive_flag_spec_CXX='$convenience'
13113: fi
13114: archive_cmds_need_lc_CXX=yes
13115: # This is similar to how AIX traditionally builds its shared
13116: # libraries.
13117: 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'
13118: fi
13119: fi
13120: ;;
13121:
13122: beos*)
13123: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13124: allow_undefined_flag_CXX=unsupported
13125: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13126: # support --undefined. This deserves some investigation. FIXME
13127: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128: else
13129: ld_shlibs_CXX=no
13130: fi
13131: ;;
13132:
13133: chorus*)
13134: case $cc_basename in
13135: *)
13136: # FIXME: insert proper C++ library support
13137: ld_shlibs_CXX=no
13138: ;;
13139: esac
13140: ;;
13141:
13142: cygwin* | mingw* | pw32* | cegcc*)
13143: case $GXX,$cc_basename in
13144: ,cl* | no,cl*)
13145: # Native MSVC
13146: # hardcode_libdir_flag_spec is actually meaningless, as there is
13147: # no search path for DLLs.
13148: hardcode_libdir_flag_spec_CXX=' '
13149: allow_undefined_flag_CXX=unsupported
13150: always_export_symbols_CXX=yes
13151: file_list_spec_CXX='@'
13152: # Tell ltmain to make .lib files, not .a files.
13153: libext=lib
13154: # Tell ltmain to make .dll files, not .so files.
13155: shrext_cmds=".dll"
13156: # FIXME: Setting linknames here is a bad hack.
13157: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13158: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13159: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13160: else
13161: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13162: fi~
13163: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13164: linknames='
13165: # The linker will not automatically build a static lib if we build a DLL.
13166: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13167: enable_shared_with_static_runtimes_CXX=yes
13168: # Don't use ranlib
13169: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13170: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13171: lt_tool_outputfile="@TOOL_OUTPUT@"~
13172: case $lt_outputfile in
13173: *.exe|*.EXE) ;;
13174: *)
13175: lt_outputfile="$lt_outputfile.exe"
13176: lt_tool_outputfile="$lt_tool_outputfile.exe"
13177: ;;
13178: esac~
13179: func_to_tool_file "$lt_outputfile"~
13180: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13181: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13182: $RM "$lt_outputfile.manifest";
13183: fi'
13184: ;;
13185: *)
13186: # g++
13187: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13188: # as there is no search path for DLLs.
13189: hardcode_libdir_flag_spec_CXX='-L$libdir'
13190: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13191: allow_undefined_flag_CXX=unsupported
13192: always_export_symbols_CXX=no
13193: enable_shared_with_static_runtimes_CXX=yes
13194:
13195: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13196: 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'
13197: # If the export-symbols file already is a .def file (1st line
13198: # is EXPORTS), use it as is; otherwise, prepend...
13199: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13200: cp $export_symbols $output_objdir/$soname.def;
13201: else
13202: echo EXPORTS > $output_objdir/$soname.def;
13203: cat $export_symbols >> $output_objdir/$soname.def;
13204: fi~
13205: $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'
13206: else
13207: ld_shlibs_CXX=no
13208: fi
13209: ;;
13210: esac
13211: ;;
13212: darwin* | rhapsody*)
13213:
13214:
13215: archive_cmds_need_lc_CXX=no
13216: hardcode_direct_CXX=no
13217: hardcode_automatic_CXX=yes
13218: hardcode_shlibpath_var_CXX=unsupported
13219: if test "$lt_cv_ld_force_load" = "yes"; then
13220: 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\"`'
13221:
13222: else
13223: whole_archive_flag_spec_CXX=''
13224: fi
13225: link_all_deplibs_CXX=yes
13226: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13227: case $cc_basename in
13228: ifort*) _lt_dar_can_shared=yes ;;
13229: *) _lt_dar_can_shared=$GCC ;;
13230: esac
13231: if test "$_lt_dar_can_shared" = "yes"; then
13232: output_verbose_link_cmd=func_echo_all
13233: 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}"
13234: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13235: 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}"
13236: 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}"
13237: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13238: 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}"
13239: 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}"
13240: fi
13241:
13242: else
13243: ld_shlibs_CXX=no
13244: fi
13245:
13246: ;;
13247:
13248: dgux*)
13249: case $cc_basename in
13250: ec++*)
13251: # FIXME: insert proper C++ library support
13252: ld_shlibs_CXX=no
13253: ;;
13254: ghcx*)
13255: # Green Hills C++ Compiler
13256: # FIXME: insert proper C++ library support
13257: ld_shlibs_CXX=no
13258: ;;
13259: *)
13260: # FIXME: insert proper C++ library support
13261: ld_shlibs_CXX=no
13262: ;;
13263: esac
13264: ;;
13265:
13266: freebsd2.*)
13267: # C++ shared libraries reported to be fairly broken before
13268: # switch to ELF
13269: ld_shlibs_CXX=no
13270: ;;
13271:
13272: freebsd-elf*)
13273: archive_cmds_need_lc_CXX=no
13274: ;;
13275:
13276: freebsd* | dragonfly*)
13277: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13278: # conventions
13279: ld_shlibs_CXX=yes
13280: ;;
13281:
13282: gnu*)
13283: ;;
13284:
13285: haiku*)
13286: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287: link_all_deplibs_CXX=yes
13288: ;;
13289:
13290: hpux9*)
13291: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13292: hardcode_libdir_separator_CXX=:
13293: export_dynamic_flag_spec_CXX='${wl}-E'
13294: hardcode_direct_CXX=yes
13295: hardcode_minus_L_CXX=yes # Not in the search PATH,
13296: # but as the default
13297: # location of the library.
13298:
13299: case $cc_basename in
13300: CC*)
13301: # FIXME: insert proper C++ library support
13302: ld_shlibs_CXX=no
13303: ;;
13304: aCC*)
13305: 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'
13306: # Commands to make compiler produce verbose output that lists
13307: # what "hidden" libraries, object files and flags are used when
13308: # linking a shared library.
13309: #
13310: # There doesn't appear to be a way to prevent this compiler from
13311: # explicitly linking system object files so we need to strip them
13312: # from the output so that they don't get included in the library
13313: # dependencies.
13314: 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"'
13315: ;;
13316: *)
13317: if test "$GXX" = yes; then
13318: 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'
13319: else
13320: # FIXME: insert proper C++ library support
13321: ld_shlibs_CXX=no
13322: fi
13323: ;;
13324: esac
13325: ;;
13326:
13327: hpux10*|hpux11*)
13328: if test $with_gnu_ld = no; then
13329: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13330: hardcode_libdir_separator_CXX=:
13331:
13332: case $host_cpu in
13333: hppa*64*|ia64*)
13334: ;;
13335: *)
13336: export_dynamic_flag_spec_CXX='${wl}-E'
13337: ;;
13338: esac
13339: fi
13340: case $host_cpu in
13341: hppa*64*|ia64*)
13342: hardcode_direct_CXX=no
13343: hardcode_shlibpath_var_CXX=no
13344: ;;
13345: *)
13346: hardcode_direct_CXX=yes
13347: hardcode_direct_absolute_CXX=yes
13348: hardcode_minus_L_CXX=yes # Not in the search PATH,
13349: # but as the default
13350: # location of the library.
13351: ;;
13352: esac
13353:
13354: case $cc_basename in
13355: CC*)
13356: # FIXME: insert proper C++ library support
13357: ld_shlibs_CXX=no
13358: ;;
13359: aCC*)
13360: case $host_cpu in
13361: hppa*64*)
13362: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13363: ;;
13364: ia64*)
13365: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13366: ;;
13367: *)
13368: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369: ;;
13370: esac
13371: # Commands to make compiler produce verbose output that lists
13372: # what "hidden" libraries, object files and flags are used when
13373: # linking a shared library.
13374: #
13375: # There doesn't appear to be a way to prevent this compiler from
13376: # explicitly linking system object files so we need to strip them
13377: # from the output so that they don't get included in the library
13378: # dependencies.
13379: 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"'
13380: ;;
13381: *)
13382: if test "$GXX" = yes; then
13383: if test $with_gnu_ld = no; then
13384: case $host_cpu in
13385: hppa*64*)
13386: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13387: ;;
13388: ia64*)
13389: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13390: ;;
13391: *)
13392: 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'
13393: ;;
13394: esac
13395: fi
13396: else
13397: # FIXME: insert proper C++ library support
13398: ld_shlibs_CXX=no
13399: fi
13400: ;;
13401: esac
13402: ;;
13403:
13404: interix[3-9]*)
13405: hardcode_direct_CXX=no
13406: hardcode_shlibpath_var_CXX=no
13407: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13408: export_dynamic_flag_spec_CXX='${wl}-E'
13409: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13410: # Instead, shared libraries are loaded at an image base (0x10000000 by
13411: # default) and relocated if they conflict, which is a slow very memory
13412: # consuming and fragmenting process. To avoid this, we pick a random,
13413: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13414: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13415: 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'
13416: 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'
13417: ;;
13418: irix5* | irix6*)
13419: case $cc_basename in
13420: CC*)
13421: # SGI C++
13422: 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'
13423:
13424: # Archives containing C++ object files must be created using
13425: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13426: # necessary to make sure instantiated templates are included
13427: # in the archive.
13428: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13429: ;;
13430: *)
13431: if test "$GXX" = yes; then
13432: if test "$with_gnu_ld" = no; then
13433: 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'
13434: else
13435: 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'
13436: fi
13437: fi
13438: link_all_deplibs_CXX=yes
13439: ;;
13440: esac
13441: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442: hardcode_libdir_separator_CXX=:
13443: inherit_rpath_CXX=yes
13444: ;;
13445:
13446: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13447: case $cc_basename in
13448: KCC*)
13449: # Kuck and Associates, Inc. (KAI) C++ Compiler
13450:
13451: # KCC will only create a shared library if the output file
13452: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13453: # to its proper name (with version) after linking.
13454: 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'
13455: 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'
13456: # Commands to make compiler produce verbose output that lists
13457: # what "hidden" libraries, object files and flags are used when
13458: # linking a shared library.
13459: #
13460: # There doesn't appear to be a way to prevent this compiler from
13461: # explicitly linking system object files so we need to strip them
13462: # from the output so that they don't get included in the library
13463: # dependencies.
13464: 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"'
13465:
13466: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13467: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13468:
13469: # Archives containing C++ object files must be created using
13470: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13471: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13472: ;;
13473: icpc* | ecpc* )
13474: # Intel C++
13475: with_gnu_ld=yes
13476: # version 8.0 and above of icpc choke on multiply defined symbols
13477: # if we add $predep_objects and $postdep_objects, however 7.1 and
13478: # earlier do not add the objects themselves.
13479: case `$CC -V 2>&1` in
13480: *"Version 7."*)
13481: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482: 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'
13483: ;;
13484: *) # Version 8.0 or newer
13485: tmp_idyn=
13486: case $host_cpu in
13487: ia64*) tmp_idyn=' -i_dynamic';;
13488: esac
13489: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490: 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'
13491: ;;
13492: esac
13493: archive_cmds_need_lc_CXX=no
13494: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13495: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13496: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13497: ;;
13498: pgCC* | pgcpp*)
13499: # Portland Group C++ compiler
13500: case `$CC -V` in
13501: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13502: prelink_cmds_CXX='tpldir=Template.dir~
13503: rm -rf $tpldir~
13504: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13505: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13506: old_archive_cmds_CXX='tpldir=Template.dir~
13507: rm -rf $tpldir~
13508: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13509: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13510: $RANLIB $oldlib'
13511: archive_cmds_CXX='tpldir=Template.dir~
13512: rm -rf $tpldir~
13513: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13514: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13515: archive_expsym_cmds_CXX='tpldir=Template.dir~
13516: rm -rf $tpldir~
13517: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13518: $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'
13519: ;;
13520: *) # Version 6 and above use weak symbols
13521: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13522: 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'
13523: ;;
13524: esac
13525:
13526: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13527: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13528: 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'
13529: ;;
13530: cxx*)
13531: # Compaq C++
13532: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533: 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'
13534:
13535: runpath_var=LD_RUN_PATH
13536: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13537: hardcode_libdir_separator_CXX=:
13538:
13539: # Commands to make compiler produce verbose output that lists
13540: # what "hidden" libraries, object files and flags are used when
13541: # linking a shared library.
13542: #
13543: # There doesn't appear to be a way to prevent this compiler from
13544: # explicitly linking system object files so we need to strip them
13545: # from the output so that they don't get included in the library
13546: # dependencies.
13547: 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'
13548: ;;
13549: xl* | mpixl* | bgxl*)
13550: # IBM XL 8.0 on PPC, with GNU ld
13551: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13552: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13553: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13554: if test "x$supports_anon_versioning" = xyes; then
13555: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13556: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13557: echo "local: *; };" >> $output_objdir/$libname.ver~
13558: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13559: fi
13560: ;;
13561: *)
13562: case `$CC -V 2>&1 | sed 5q` in
13563: *Sun\ C*)
13564: # Sun C++ 5.9
13565: no_undefined_flag_CXX=' -zdefs'
13566: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13567: 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'
13568: hardcode_libdir_flag_spec_CXX='-R$libdir'
13569: 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'
13570: compiler_needs_object_CXX=yes
13571:
13572: # Not sure whether something based on
13573: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13574: # would be better.
13575: output_verbose_link_cmd='func_echo_all'
13576:
13577: # Archives containing C++ object files must be created using
13578: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13579: # necessary to make sure instantiated templates are included
13580: # in the archive.
13581: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13582: ;;
13583: esac
13584: ;;
13585: esac
13586: ;;
13587:
13588: lynxos*)
13589: # FIXME: insert proper C++ library support
13590: ld_shlibs_CXX=no
13591: ;;
13592:
13593: m88k*)
13594: # FIXME: insert proper C++ library support
13595: ld_shlibs_CXX=no
13596: ;;
13597:
13598: mvs*)
13599: case $cc_basename in
13600: cxx*)
13601: # FIXME: insert proper C++ library support
13602: ld_shlibs_CXX=no
13603: ;;
13604: *)
13605: # FIXME: insert proper C++ library support
13606: ld_shlibs_CXX=no
13607: ;;
13608: esac
13609: ;;
13610:
13611: netbsd*)
13612: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13613: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13614: wlarc=
13615: hardcode_libdir_flag_spec_CXX='-R$libdir'
13616: hardcode_direct_CXX=yes
13617: hardcode_shlibpath_var_CXX=no
13618: fi
13619: # Workaround some broken pre-1.5 toolchains
13620: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13621: ;;
13622:
13623: *nto* | *qnx*)
13624: ld_shlibs_CXX=yes
13625: ;;
13626:
13627: openbsd2*)
13628: # C++ shared libraries are fairly broken
13629: ld_shlibs_CXX=no
13630: ;;
13631:
13632: openbsd*)
13633: if test -f /usr/libexec/ld.so; then
13634: hardcode_direct_CXX=yes
13635: hardcode_shlibpath_var_CXX=no
13636: hardcode_direct_absolute_CXX=yes
13637: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13638: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13639: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13640: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13641: export_dynamic_flag_spec_CXX='${wl}-E'
13642: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13643: fi
13644: output_verbose_link_cmd=func_echo_all
13645: else
13646: ld_shlibs_CXX=no
13647: fi
13648: ;;
13649:
13650: osf3* | osf4* | osf5*)
13651: case $cc_basename in
13652: KCC*)
13653: # Kuck and Associates, Inc. (KAI) C++ Compiler
13654:
13655: # KCC will only create a shared library if the output file
13656: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13657: # to its proper name (with version) after linking.
13658: 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'
13659:
13660: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13661: hardcode_libdir_separator_CXX=:
13662:
13663: # Archives containing C++ object files must be created using
13664: # the KAI C++ compiler.
13665: case $host in
13666: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13667: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13668: esac
13669: ;;
13670: RCC*)
13671: # Rational C++ 2.4.1
13672: # FIXME: insert proper C++ library support
13673: ld_shlibs_CXX=no
13674: ;;
13675: cxx*)
13676: case $host in
13677: osf3*)
13678: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13679: 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'
13680: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13681: ;;
13682: *)
13683: allow_undefined_flag_CXX=' -expect_unresolved \*'
13684: 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'
13685: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13686: echo "-hidden">> $lib.exp~
13687: $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~
13688: $RM $lib.exp'
13689: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13690: ;;
13691: esac
13692:
13693: hardcode_libdir_separator_CXX=:
13694:
13695: # Commands to make compiler produce verbose output that lists
13696: # what "hidden" libraries, object files and flags are used when
13697: # linking a shared library.
13698: #
13699: # There doesn't appear to be a way to prevent this compiler from
13700: # explicitly linking system object files so we need to strip them
13701: # from the output so that they don't get included in the library
13702: # dependencies.
13703: 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"'
13704: ;;
13705: *)
13706: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13707: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13708: case $host in
13709: osf3*)
13710: 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'
13711: ;;
13712: *)
13713: 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'
13714: ;;
13715: esac
13716:
13717: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13718: hardcode_libdir_separator_CXX=:
13719:
13720: # Commands to make compiler produce verbose output that lists
13721: # what "hidden" libraries, object files and flags are used when
13722: # linking a shared library.
13723: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13724:
13725: else
13726: # FIXME: insert proper C++ library support
13727: ld_shlibs_CXX=no
13728: fi
13729: ;;
13730: esac
13731: ;;
13732:
13733: psos*)
13734: # FIXME: insert proper C++ library support
13735: ld_shlibs_CXX=no
13736: ;;
13737:
13738: sunos4*)
13739: case $cc_basename in
13740: CC*)
13741: # Sun C++ 4.x
13742: # FIXME: insert proper C++ library support
13743: ld_shlibs_CXX=no
13744: ;;
13745: lcc*)
13746: # Lucid
13747: # FIXME: insert proper C++ library support
13748: ld_shlibs_CXX=no
13749: ;;
13750: *)
13751: # FIXME: insert proper C++ library support
13752: ld_shlibs_CXX=no
13753: ;;
13754: esac
13755: ;;
13756:
13757: solaris*)
13758: case $cc_basename in
13759: CC* | sunCC*)
13760: # Sun C++ 4.2, 5.x and Centerline C++
13761: archive_cmds_need_lc_CXX=yes
13762: no_undefined_flag_CXX=' -zdefs'
13763: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13764: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13765: $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'
13766:
13767: hardcode_libdir_flag_spec_CXX='-R$libdir'
13768: hardcode_shlibpath_var_CXX=no
13769: case $host_os in
13770: solaris2.[0-5] | solaris2.[0-5].*) ;;
13771: *)
13772: # The compiler driver will combine and reorder linker options,
13773: # but understands `-z linker_flag'.
13774: # Supported since Solaris 2.6 (maybe 2.5.1?)
13775: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13776: ;;
13777: esac
13778: link_all_deplibs_CXX=yes
13779:
13780: output_verbose_link_cmd='func_echo_all'
13781:
13782: # Archives containing C++ object files must be created using
13783: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13784: # necessary to make sure instantiated templates are included
13785: # in the archive.
13786: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13787: ;;
13788: gcx*)
13789: # Green Hills C++ Compiler
13790: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13791:
13792: # The C++ compiler must be used to create the archive.
13793: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13794: ;;
13795: *)
13796: # GNU C++ compiler with Solaris linker
13797: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13798: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13799: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13800: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13801: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13802: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13803:
13804: # Commands to make compiler produce verbose output that lists
13805: # what "hidden" libraries, object files and flags are used when
13806: # linking a shared library.
13807: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13808: else
13809: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13810: # platform.
13811: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13812: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13813: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13814:
13815: # Commands to make compiler produce verbose output that lists
13816: # what "hidden" libraries, object files and flags are used when
13817: # linking a shared library.
13818: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13819: fi
13820:
13821: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13822: case $host_os in
13823: solaris2.[0-5] | solaris2.[0-5].*) ;;
13824: *)
13825: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13826: ;;
13827: esac
13828: fi
13829: ;;
13830: esac
13831: ;;
13832:
13833: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13834: no_undefined_flag_CXX='${wl}-z,text'
13835: archive_cmds_need_lc_CXX=no
13836: hardcode_shlibpath_var_CXX=no
13837: runpath_var='LD_RUN_PATH'
13838:
13839: case $cc_basename in
13840: CC*)
13841: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843: ;;
13844: *)
13845: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847: ;;
13848: esac
13849: ;;
13850:
13851: sysv5* | sco3.2v5* | sco5v6*)
13852: # Note: We can NOT use -z defs as we might desire, because we do not
13853: # link with -lc, and that would cause any symbols used from libc to
13854: # always be unresolved, which means just about no library would
13855: # ever link correctly. If we're not using GNU ld we use -z text
13856: # though, which does catch some bad symbols but isn't as heavy-handed
13857: # as -z defs.
13858: no_undefined_flag_CXX='${wl}-z,text'
13859: allow_undefined_flag_CXX='${wl}-z,nodefs'
13860: archive_cmds_need_lc_CXX=no
13861: hardcode_shlibpath_var_CXX=no
13862: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13863: hardcode_libdir_separator_CXX=':'
13864: link_all_deplibs_CXX=yes
13865: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13866: runpath_var='LD_RUN_PATH'
13867:
13868: case $cc_basename in
13869: CC*)
13870: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13873: '"$old_archive_cmds_CXX"
13874: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13875: '"$reload_cmds_CXX"
13876: ;;
13877: *)
13878: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13879: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13880: ;;
13881: esac
13882: ;;
13883:
13884: tandem*)
13885: case $cc_basename in
13886: NCC*)
13887: # NonStop-UX NCC 3.20
13888: # FIXME: insert proper C++ library support
13889: ld_shlibs_CXX=no
13890: ;;
13891: *)
13892: # FIXME: insert proper C++ library support
13893: ld_shlibs_CXX=no
13894: ;;
13895: esac
13896: ;;
13897:
13898: vxworks*)
13899: # FIXME: insert proper C++ library support
13900: ld_shlibs_CXX=no
13901: ;;
13902:
13903: *)
13904: # FIXME: insert proper C++ library support
13905: ld_shlibs_CXX=no
13906: ;;
13907: esac
13908:
13909: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13910: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13911: test "$ld_shlibs_CXX" = no && can_build_shared=no
13912:
13913: GCC_CXX="$GXX"
13914: LD_CXX="$LD"
13915:
13916: ## CAVEAT EMPTOR:
13917: ## There is no encapsulation within the following macros, do not change
13918: ## the running order or otherwise move them around unless you know exactly
13919: ## what you are doing...
13920: # Dependencies to place before and after the object being linked:
13921: predep_objects_CXX=
13922: postdep_objects_CXX=
13923: predeps_CXX=
13924: postdeps_CXX=
13925: compiler_lib_search_path_CXX=
13926:
13927: cat > conftest.$ac_ext <<_LT_EOF
13928: class Foo
13929: {
13930: public:
13931: Foo (void) { a = 0; }
13932: private:
13933: int a;
13934: };
13935: _LT_EOF
13936:
13937:
13938: _lt_libdeps_save_CFLAGS=$CFLAGS
13939: case "$CC $CFLAGS " in #(
13940: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13941: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13942: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13943: esac
13944:
13945: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946: (eval $ac_compile) 2>&5
13947: ac_status=$?
13948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949: (exit $ac_status); }; then
13950: # Parse the compiler output and extract the necessary
13951: # objects, libraries and library flags.
13952:
13953: # Sentinel used to keep track of whether or not we are before
13954: # the conftest object file.
13955: pre_test_object_deps_done=no
13956:
13957: for p in `eval "$output_verbose_link_cmd"`; do
13958: case ${prev}${p} in
13959:
13960: -L* | -R* | -l*)
13961: # Some compilers place space between "-{L,R}" and the path.
13962: # Remove the space.
13963: if test $p = "-L" ||
13964: test $p = "-R"; then
13965: prev=$p
13966: continue
13967: fi
13968:
13969: # Expand the sysroot to ease extracting the directories later.
13970: if test -z "$prev"; then
13971: case $p in
13972: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13973: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13974: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13975: esac
13976: fi
13977: case $p in
13978: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13979: esac
13980: if test "$pre_test_object_deps_done" = no; then
13981: case ${prev} in
13982: -L | -R)
13983: # Internal compiler library paths should come after those
13984: # provided the user. The postdeps already come after the
13985: # user supplied libs so there is no need to process them.
13986: if test -z "$compiler_lib_search_path_CXX"; then
13987: compiler_lib_search_path_CXX="${prev}${p}"
13988: else
13989: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13990: fi
13991: ;;
13992: # The "-l" case would never come before the object being
13993: # linked, so don't bother handling this case.
13994: esac
13995: else
13996: if test -z "$postdeps_CXX"; then
13997: postdeps_CXX="${prev}${p}"
13998: else
13999: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14000: fi
14001: fi
14002: prev=
14003: ;;
14004:
14005: *.lto.$objext) ;; # Ignore GCC LTO objects
14006: *.$objext)
14007: # This assumes that the test object file only shows up
14008: # once in the compiler output.
14009: if test "$p" = "conftest.$objext"; then
14010: pre_test_object_deps_done=yes
14011: continue
14012: fi
14013:
14014: if test "$pre_test_object_deps_done" = no; then
14015: if test -z "$predep_objects_CXX"; then
14016: predep_objects_CXX="$p"
14017: else
14018: predep_objects_CXX="$predep_objects_CXX $p"
14019: fi
14020: else
14021: if test -z "$postdep_objects_CXX"; then
14022: postdep_objects_CXX="$p"
14023: else
14024: postdep_objects_CXX="$postdep_objects_CXX $p"
14025: fi
14026: fi
14027: ;;
14028:
14029: *) ;; # Ignore the rest.
14030:
14031: esac
14032: done
14033:
14034: # Clean up.
14035: rm -f a.out a.exe
14036: else
14037: echo "libtool.m4: error: problem compiling CXX test program"
14038: fi
14039:
14040: $RM -f confest.$objext
14041: CFLAGS=$_lt_libdeps_save_CFLAGS
14042:
14043: # PORTME: override above test on systems where it is broken
14044: case $host_os in
14045: interix[3-9]*)
14046: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14047: # hack all around it, let's just trust "g++" to DTRT.
14048: predep_objects_CXX=
14049: postdep_objects_CXX=
14050: postdeps_CXX=
14051: ;;
14052:
14053: linux*)
14054: case `$CC -V 2>&1 | sed 5q` in
14055: *Sun\ C*)
14056: # Sun C++ 5.9
14057:
14058: # The more standards-conforming stlport4 library is
14059: # incompatible with the Cstd library. Avoid specifying
14060: # it if it's in CXXFLAGS. Ignore libCrun as
14061: # -library=stlport4 depends on it.
14062: case " $CXX $CXXFLAGS " in
14063: *" -library=stlport4 "*)
14064: solaris_use_stlport4=yes
14065: ;;
14066: esac
14067:
14068: if test "$solaris_use_stlport4" != yes; then
14069: postdeps_CXX='-library=Cstd -library=Crun'
14070: fi
14071: ;;
14072: esac
14073: ;;
14074:
14075: solaris*)
14076: case $cc_basename in
14077: CC* | sunCC*)
14078: # The more standards-conforming stlport4 library is
14079: # incompatible with the Cstd library. Avoid specifying
14080: # it if it's in CXXFLAGS. Ignore libCrun as
14081: # -library=stlport4 depends on it.
14082: case " $CXX $CXXFLAGS " in
14083: *" -library=stlport4 "*)
14084: solaris_use_stlport4=yes
14085: ;;
14086: esac
14087:
14088: # Adding this requires a known-good setup of shared libraries for
14089: # Sun compiler versions before 5.6, else PIC objects from an old
14090: # archive will be linked into the output, leading to subtle bugs.
14091: if test "$solaris_use_stlport4" != yes; then
14092: postdeps_CXX='-library=Cstd -library=Crun'
14093: fi
14094: ;;
14095: esac
14096: ;;
14097: esac
14098:
14099:
14100: case " $postdeps_CXX " in
14101: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14102: esac
14103: compiler_lib_search_dirs_CXX=
14104: if test -n "${compiler_lib_search_path_CXX}"; then
14105: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14106: fi
14107:
14108:
14109:
14110:
14111:
14112:
14113:
14114:
14115:
14116:
14117:
14118:
14119:
14120:
14121:
14122:
14123:
14124:
14125:
14126:
14127:
14128:
14129:
14130:
14131:
14132:
14133:
14134:
14135:
14136:
14137:
14138: lt_prog_compiler_wl_CXX=
14139: lt_prog_compiler_pic_CXX=
14140: lt_prog_compiler_static_CXX=
14141:
14142:
14143: # C++ specific cases for pic, static, wl, etc.
14144: if test "$GXX" = yes; then
14145: lt_prog_compiler_wl_CXX='-Wl,'
14146: lt_prog_compiler_static_CXX='-static'
14147:
14148: case $host_os in
14149: aix*)
14150: # All AIX code is PIC.
14151: if test "$host_cpu" = ia64; then
14152: # AIX 5 now supports IA64 processor
14153: lt_prog_compiler_static_CXX='-Bstatic'
14154: fi
14155: ;;
14156:
14157: amigaos*)
14158: case $host_cpu in
14159: powerpc)
14160: # see comment about AmigaOS4 .so support
14161: lt_prog_compiler_pic_CXX='-fPIC'
14162: ;;
14163: m68k)
14164: # FIXME: we need at least 68020 code to build shared libraries, but
14165: # adding the `-m68020' flag to GCC prevents building anything better,
14166: # like `-m68040'.
14167: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14168: ;;
14169: esac
14170: ;;
14171:
14172: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14173: # PIC is the default for these OSes.
14174: ;;
14175: mingw* | cygwin* | os2* | pw32* | cegcc*)
14176: # This hack is so that the source file can tell whether it is being
14177: # built for inclusion in a dll (and should export symbols for example).
14178: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14179: # (--disable-auto-import) libraries
14180: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14181: ;;
14182: darwin* | rhapsody*)
14183: # PIC is the default on this platform
14184: # Common symbols not allowed in MH_DYLIB files
14185: lt_prog_compiler_pic_CXX='-fno-common'
14186: ;;
14187: *djgpp*)
14188: # DJGPP does not support shared libraries at all
14189: lt_prog_compiler_pic_CXX=
14190: ;;
14191: haiku*)
14192: # PIC is the default for Haiku.
14193: # The "-static" flag exists, but is broken.
14194: lt_prog_compiler_static_CXX=
14195: ;;
14196: interix[3-9]*)
14197: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14198: # Instead, we relocate shared libraries at runtime.
14199: ;;
14200: sysv4*MP*)
14201: if test -d /usr/nec; then
14202: lt_prog_compiler_pic_CXX=-Kconform_pic
14203: fi
14204: ;;
14205: hpux*)
14206: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14207: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14208: # sets the default TLS model and affects inlining.
14209: case $host_cpu in
14210: hppa*64*)
14211: ;;
14212: *)
14213: lt_prog_compiler_pic_CXX='-fPIC'
14214: ;;
14215: esac
14216: ;;
14217: *qnx* | *nto*)
14218: # QNX uses GNU C++, but need to define -shared option too, otherwise
14219: # it will coredump.
14220: lt_prog_compiler_pic_CXX='-fPIC -shared'
14221: ;;
14222: *)
14223: lt_prog_compiler_pic_CXX='-fPIC'
14224: ;;
14225: esac
14226: else
14227: case $host_os in
14228: aix[4-9]*)
14229: # All AIX code is PIC.
14230: if test "$host_cpu" = ia64; then
14231: # AIX 5 now supports IA64 processor
14232: lt_prog_compiler_static_CXX='-Bstatic'
14233: else
14234: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14235: fi
14236: ;;
14237: chorus*)
14238: case $cc_basename in
14239: cxch68*)
14240: # Green Hills C++ Compiler
14241: # _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"
14242: ;;
14243: esac
14244: ;;
14245: mingw* | cygwin* | os2* | pw32* | cegcc*)
14246: # This hack is so that the source file can tell whether it is being
14247: # built for inclusion in a dll (and should export symbols for example).
14248: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14249: ;;
14250: dgux*)
14251: case $cc_basename in
14252: ec++*)
14253: lt_prog_compiler_pic_CXX='-KPIC'
14254: ;;
14255: ghcx*)
14256: # Green Hills C++ Compiler
14257: lt_prog_compiler_pic_CXX='-pic'
14258: ;;
14259: *)
14260: ;;
14261: esac
14262: ;;
14263: freebsd* | dragonfly*)
14264: # FreeBSD uses GNU C++
14265: ;;
14266: hpux9* | hpux10* | hpux11*)
14267: case $cc_basename in
14268: CC*)
14269: lt_prog_compiler_wl_CXX='-Wl,'
14270: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14271: if test "$host_cpu" != ia64; then
14272: lt_prog_compiler_pic_CXX='+Z'
14273: fi
14274: ;;
14275: aCC*)
14276: lt_prog_compiler_wl_CXX='-Wl,'
14277: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14278: case $host_cpu in
14279: hppa*64*|ia64*)
14280: # +Z the default
14281: ;;
14282: *)
14283: lt_prog_compiler_pic_CXX='+Z'
14284: ;;
14285: esac
14286: ;;
14287: *)
14288: ;;
14289: esac
14290: ;;
14291: interix*)
14292: # This is c89, which is MS Visual C++ (no shared libs)
14293: # Anyone wants to do a port?
14294: ;;
14295: irix5* | irix6* | nonstopux*)
14296: case $cc_basename in
14297: CC*)
14298: lt_prog_compiler_wl_CXX='-Wl,'
14299: lt_prog_compiler_static_CXX='-non_shared'
14300: # CC pic flag -KPIC is the default.
14301: ;;
14302: *)
14303: ;;
14304: esac
14305: ;;
14306: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14307: case $cc_basename in
14308: KCC*)
14309: # KAI C++ Compiler
14310: lt_prog_compiler_wl_CXX='--backend -Wl,'
14311: lt_prog_compiler_pic_CXX='-fPIC'
14312: ;;
14313: ecpc* )
14314: # old Intel C++ for x86_64 which still supported -KPIC.
14315: lt_prog_compiler_wl_CXX='-Wl,'
14316: lt_prog_compiler_pic_CXX='-KPIC'
14317: lt_prog_compiler_static_CXX='-static'
14318: ;;
14319: icpc* )
14320: # Intel C++, used to be incompatible with GCC.
14321: # ICC 10 doesn't accept -KPIC any more.
14322: lt_prog_compiler_wl_CXX='-Wl,'
14323: lt_prog_compiler_pic_CXX='-fPIC'
14324: lt_prog_compiler_static_CXX='-static'
14325: ;;
14326: pgCC* | pgcpp*)
14327: # Portland Group C++ compiler
14328: lt_prog_compiler_wl_CXX='-Wl,'
14329: lt_prog_compiler_pic_CXX='-fpic'
14330: lt_prog_compiler_static_CXX='-Bstatic'
14331: ;;
14332: cxx*)
14333: # Compaq C++
14334: # Make sure the PIC flag is empty. It appears that all Alpha
14335: # Linux and Compaq Tru64 Unix objects are PIC.
14336: lt_prog_compiler_pic_CXX=
14337: lt_prog_compiler_static_CXX='-non_shared'
14338: ;;
14339: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14340: # IBM XL 8.0, 9.0 on PPC and BlueGene
14341: lt_prog_compiler_wl_CXX='-Wl,'
14342: lt_prog_compiler_pic_CXX='-qpic'
14343: lt_prog_compiler_static_CXX='-qstaticlink'
14344: ;;
14345: *)
14346: case `$CC -V 2>&1 | sed 5q` in
14347: *Sun\ C*)
14348: # Sun C++ 5.9
14349: lt_prog_compiler_pic_CXX='-KPIC'
14350: lt_prog_compiler_static_CXX='-Bstatic'
14351: lt_prog_compiler_wl_CXX='-Qoption ld '
14352: ;;
14353: esac
14354: ;;
14355: esac
14356: ;;
14357: lynxos*)
14358: ;;
14359: m88k*)
14360: ;;
14361: mvs*)
14362: case $cc_basename in
14363: cxx*)
14364: lt_prog_compiler_pic_CXX='-W c,exportall'
14365: ;;
14366: *)
14367: ;;
14368: esac
14369: ;;
14370: netbsd*)
14371: ;;
14372: *qnx* | *nto*)
14373: # QNX uses GNU C++, but need to define -shared option too, otherwise
14374: # it will coredump.
14375: lt_prog_compiler_pic_CXX='-fPIC -shared'
14376: ;;
14377: osf3* | osf4* | osf5*)
14378: case $cc_basename in
14379: KCC*)
14380: lt_prog_compiler_wl_CXX='--backend -Wl,'
14381: ;;
14382: RCC*)
14383: # Rational C++ 2.4.1
14384: lt_prog_compiler_pic_CXX='-pic'
14385: ;;
14386: cxx*)
14387: # Digital/Compaq C++
14388: lt_prog_compiler_wl_CXX='-Wl,'
14389: # Make sure the PIC flag is empty. It appears that all Alpha
14390: # Linux and Compaq Tru64 Unix objects are PIC.
14391: lt_prog_compiler_pic_CXX=
14392: lt_prog_compiler_static_CXX='-non_shared'
14393: ;;
14394: *)
14395: ;;
14396: esac
14397: ;;
14398: psos*)
14399: ;;
14400: solaris*)
14401: case $cc_basename in
14402: CC* | sunCC*)
14403: # Sun C++ 4.2, 5.x and Centerline C++
14404: lt_prog_compiler_pic_CXX='-KPIC'
14405: lt_prog_compiler_static_CXX='-Bstatic'
14406: lt_prog_compiler_wl_CXX='-Qoption ld '
14407: ;;
14408: gcx*)
14409: # Green Hills C++ Compiler
14410: lt_prog_compiler_pic_CXX='-PIC'
14411: ;;
14412: *)
14413: ;;
14414: esac
14415: ;;
14416: sunos4*)
14417: case $cc_basename in
14418: CC*)
14419: # Sun C++ 4.x
14420: lt_prog_compiler_pic_CXX='-pic'
14421: lt_prog_compiler_static_CXX='-Bstatic'
14422: ;;
14423: lcc*)
14424: # Lucid
14425: lt_prog_compiler_pic_CXX='-pic'
14426: ;;
14427: *)
14428: ;;
14429: esac
14430: ;;
14431: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14432: case $cc_basename in
14433: CC*)
14434: lt_prog_compiler_wl_CXX='-Wl,'
14435: lt_prog_compiler_pic_CXX='-KPIC'
14436: lt_prog_compiler_static_CXX='-Bstatic'
14437: ;;
14438: esac
14439: ;;
14440: tandem*)
14441: case $cc_basename in
14442: NCC*)
14443: # NonStop-UX NCC 3.20
14444: lt_prog_compiler_pic_CXX='-KPIC'
14445: ;;
14446: *)
14447: ;;
14448: esac
14449: ;;
14450: vxworks*)
14451: ;;
14452: *)
14453: lt_prog_compiler_can_build_shared_CXX=no
14454: ;;
14455: esac
14456: fi
14457:
14458: case $host_os in
14459: # For platforms which do not support PIC, -DPIC is meaningless:
14460: *djgpp*)
14461: lt_prog_compiler_pic_CXX=
14462: ;;
14463: *)
14464: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14465: ;;
14466: esac
14467:
14468: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14469: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14470: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
14471: echo $ECHO_N "(cached) $ECHO_C" >&6
14472: else
14473: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14474: fi
14475: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
14476: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
14477: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14478:
14479: #
14480: # Check to make sure the PIC flag actually works.
14481: #
14482: if test -n "$lt_prog_compiler_pic_CXX"; then
14483: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14484: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14485: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14486: echo $ECHO_N "(cached) $ECHO_C" >&6
14487: else
14488: lt_cv_prog_compiler_pic_works_CXX=no
14489: ac_outfile=conftest.$ac_objext
14490: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14492: # Insert the option either (1) after the last *FLAGS variable, or
14493: # (2) before a word containing "conftest.", or (3) at the end.
14494: # Note that $ac_compile itself does not contain backslashes and begins
14495: # with a dollar sign (not a hyphen), so the echo should work correctly.
14496: # The option is referenced via a variable to avoid confusing sed.
14497: lt_compile=`echo "$ac_compile" | $SED \
14498: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14499: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500: -e 's:$: $lt_compiler_flag:'`
14501: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14502: (eval "$lt_compile" 2>conftest.err)
14503: ac_status=$?
14504: cat conftest.err >&5
14505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506: if (exit $ac_status) && test -s "$ac_outfile"; then
14507: # The compiler can only warn and ignore the option if not recognized
14508: # So say no if there are warnings other than the usual output.
14509: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14510: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14512: lt_cv_prog_compiler_pic_works_CXX=yes
14513: fi
14514: fi
14515: $RM conftest*
14516:
14517: fi
14518: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14519: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
14520:
14521: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14522: case $lt_prog_compiler_pic_CXX in
14523: "" | " "*) ;;
14524: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14525: esac
14526: else
14527: lt_prog_compiler_pic_CXX=
14528: lt_prog_compiler_can_build_shared_CXX=no
14529: fi
14530:
14531: fi
14532:
14533:
14534:
14535:
14536:
14537: #
14538: # Check to make sure the static flag actually works.
14539: #
14540: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14541: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14542: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14543: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14544: echo $ECHO_N "(cached) $ECHO_C" >&6
14545: else
14546: lt_cv_prog_compiler_static_works_CXX=no
14547: save_LDFLAGS="$LDFLAGS"
14548: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14549: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14550: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14551: # The linker can only warn and ignore the option if not recognized
14552: # So say no if there are warnings
14553: if test -s conftest.err; then
14554: # Append any errors to the config.log.
14555: cat conftest.err 1>&5
14556: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14557: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14558: if diff conftest.exp conftest.er2 >/dev/null; then
14559: lt_cv_prog_compiler_static_works_CXX=yes
14560: fi
14561: else
14562: lt_cv_prog_compiler_static_works_CXX=yes
14563: fi
14564: fi
14565: $RM -r conftest*
14566: LDFLAGS="$save_LDFLAGS"
14567:
14568: fi
14569: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14570: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14571:
14572: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14573: :
14574: else
14575: lt_prog_compiler_static_CXX=
14576: fi
14577:
14578:
14579:
14580:
14581: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14582: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14583: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14584: echo $ECHO_N "(cached) $ECHO_C" >&6
14585: else
14586: lt_cv_prog_compiler_c_o_CXX=no
14587: $RM -r conftest 2>/dev/null
14588: mkdir conftest
14589: cd conftest
14590: mkdir out
14591: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14592:
14593: lt_compiler_flag="-o out/conftest2.$ac_objext"
14594: # Insert the option either (1) after the last *FLAGS variable, or
14595: # (2) before a word containing "conftest.", or (3) at the end.
14596: # Note that $ac_compile itself does not contain backslashes and begins
14597: # with a dollar sign (not a hyphen), so the echo should work correctly.
14598: lt_compile=`echo "$ac_compile" | $SED \
14599: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14600: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601: -e 's:$: $lt_compiler_flag:'`
14602: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14603: (eval "$lt_compile" 2>out/conftest.err)
14604: ac_status=$?
14605: cat out/conftest.err >&5
14606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14608: then
14609: # The compiler can only warn and ignore the option if not recognized
14610: # So say no if there are warnings
14611: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14612: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14613: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14614: lt_cv_prog_compiler_c_o_CXX=yes
14615: fi
14616: fi
14617: chmod u+w . 2>&5
14618: $RM conftest*
14619: # SGI C++ compiler will create directory out/ii_files/ for
14620: # template instantiation
14621: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14622: $RM out/* && rmdir out
14623: cd ..
14624: $RM -r conftest
14625: $RM conftest*
14626:
14627: fi
14628: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14629: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14630:
14631:
14632:
14633: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14634: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14635: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14636: echo $ECHO_N "(cached) $ECHO_C" >&6
14637: else
14638: lt_cv_prog_compiler_c_o_CXX=no
14639: $RM -r conftest 2>/dev/null
14640: mkdir conftest
14641: cd conftest
14642: mkdir out
14643: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644:
14645: lt_compiler_flag="-o out/conftest2.$ac_objext"
14646: # Insert the option either (1) after the last *FLAGS variable, or
14647: # (2) before a word containing "conftest.", or (3) at the end.
14648: # Note that $ac_compile itself does not contain backslashes and begins
14649: # with a dollar sign (not a hyphen), so the echo should work correctly.
14650: lt_compile=`echo "$ac_compile" | $SED \
14651: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653: -e 's:$: $lt_compiler_flag:'`
14654: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14655: (eval "$lt_compile" 2>out/conftest.err)
14656: ac_status=$?
14657: cat out/conftest.err >&5
14658: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14660: then
14661: # The compiler can only warn and ignore the option if not recognized
14662: # So say no if there are warnings
14663: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14664: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14665: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14666: lt_cv_prog_compiler_c_o_CXX=yes
14667: fi
14668: fi
14669: chmod u+w . 2>&5
14670: $RM conftest*
14671: # SGI C++ compiler will create directory out/ii_files/ for
14672: # template instantiation
14673: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14674: $RM out/* && rmdir out
14675: cd ..
14676: $RM -r conftest
14677: $RM conftest*
14678:
14679: fi
14680: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14681: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14682:
14683:
14684:
14685:
14686: hard_links="nottested"
14687: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14688: # do not overwrite the value of need_locks provided by the user
14689: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14690: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14691: hard_links=yes
14692: $RM conftest*
14693: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14694: touch conftest.a
14695: ln conftest.a conftest.b 2>&5 || hard_links=no
14696: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14697: echo "$as_me:$LINENO: result: $hard_links" >&5
14698: echo "${ECHO_T}$hard_links" >&6
14699: if test "$hard_links" = no; then
14700: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14701: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14702: need_locks=warn
14703: fi
14704: else
14705: need_locks=no
14706: fi
14707:
14708:
14709:
14710: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14711: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14712:
14713: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14714: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14715: case $host_os in
14716: aix[4-9]*)
14717: # If we're using GNU nm, then we don't want the "-C" option.
14718: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14719: # Also, AIX nm treats weak defined symbols like other global defined
14720: # symbols, whereas GNU nm marks them as "W".
14721: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14722: 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'
14723: else
14724: 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'
14725: fi
14726: ;;
14727: pw32*)
14728: export_symbols_cmds_CXX="$ltdll_cmds"
14729: ;;
14730: cygwin* | mingw* | cegcc*)
14731: case $cc_basename in
14732: cl*)
14733: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14734: ;;
14735: *)
14736: 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'
14737: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14738: ;;
14739: esac
14740: ;;
14741: *)
14742: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14743: ;;
14744: esac
14745:
14746: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14747: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14748: test "$ld_shlibs_CXX" = no && can_build_shared=no
14749:
14750: with_gnu_ld_CXX=$with_gnu_ld
14751:
14752:
14753:
14754:
14755:
14756:
14757: #
14758: # Do we need to explicitly link libc?
14759: #
14760: case "x$archive_cmds_need_lc_CXX" in
14761: x|xyes)
14762: # Assume -lc should be added
14763: archive_cmds_need_lc_CXX=yes
14764:
14765: if test "$enable_shared" = yes && test "$GCC" = yes; then
14766: case $archive_cmds_CXX in
14767: *'~'*)
14768: # FIXME: we may have to deal with multi-command sequences.
14769: ;;
14770: '$CC '*)
14771: # Test whether the compiler implicitly links with -lc since on some
14772: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14773: # to ld, don't add -lc before -lgcc.
14774: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14775: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14776: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14777: echo $ECHO_N "(cached) $ECHO_C" >&6
14778: else
14779: $RM conftest*
14780: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781:
14782: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783: (eval $ac_compile) 2>&5
14784: ac_status=$?
14785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786: (exit $ac_status); } 2>conftest.err; then
14787: soname=conftest
14788: lib=conftest
14789: libobjs=conftest.$ac_objext
14790: deplibs=
14791: wl=$lt_prog_compiler_wl_CXX
14792: pic_flag=$lt_prog_compiler_pic_CXX
14793: compiler_flags=-v
14794: linker_flags=-v
14795: verstring=
14796: output_objdir=.
14797: libname=conftest
14798: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14799: allow_undefined_flag_CXX=
14800: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14801: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14802: ac_status=$?
14803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804: (exit $ac_status); }
14805: then
14806: lt_cv_archive_cmds_need_lc_CXX=no
14807: else
14808: lt_cv_archive_cmds_need_lc_CXX=yes
14809: fi
14810: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14811: else
14812: cat conftest.err 1>&5
14813: fi
14814: $RM conftest*
14815:
14816: fi
14817: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14818: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14819: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14820: ;;
14821: esac
14822: fi
14823: ;;
14824: esac
14825:
14826:
14827:
14828:
14829:
14830:
14831:
14832:
14833:
14834:
14835:
14836:
14837:
14838:
14839:
14840:
14841:
14842:
14843:
14844:
14845:
14846:
14847:
14848:
14849:
14850:
14851:
14852:
14853:
14854:
14855:
14856:
14857:
14858:
14859:
14860:
14861:
14862:
14863:
14864:
14865:
14866:
14867:
14868:
14869:
14870:
14871:
14872:
14873:
14874:
14875:
14876:
14877:
14878:
14879:
14880:
14881:
14882:
14883:
14884:
14885:
14886:
14887: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14888: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14889:
14890: library_names_spec=
14891: libname_spec='lib$name'
14892: soname_spec=
14893: shrext_cmds=".so"
14894: postinstall_cmds=
14895: postuninstall_cmds=
14896: finish_cmds=
14897: finish_eval=
14898: shlibpath_var=
14899: shlibpath_overrides_runpath=unknown
14900: version_type=none
14901: dynamic_linker="$host_os ld.so"
14902: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14903: need_lib_prefix=unknown
14904: hardcode_into_libs=no
14905:
14906: # when you set need_version to no, make sure it does not cause -set_version
14907: # flags to be left without arguments
14908: need_version=unknown
14909:
14910: case $host_os in
14911: aix3*)
14912: version_type=linux # correct to gnu/linux during the next big refactor
14913: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14914: shlibpath_var=LIBPATH
14915:
14916: # AIX 3 has no versioning support, so we append a major version to the name.
14917: soname_spec='${libname}${release}${shared_ext}$major'
14918: ;;
14919:
14920: aix[4-9]*)
14921: version_type=linux # correct to gnu/linux during the next big refactor
14922: need_lib_prefix=no
14923: need_version=no
14924: hardcode_into_libs=yes
14925: if test "$host_cpu" = ia64; then
14926: # AIX 5 supports IA64
14927: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14928: shlibpath_var=LD_LIBRARY_PATH
14929: else
14930: # With GCC up to 2.95.x, collect2 would create an import file
14931: # for dependence libraries. The import file would start with
14932: # the line `#! .'. This would cause the generated library to
14933: # depend on `.', always an invalid library. This was fixed in
14934: # development snapshots of GCC prior to 3.0.
14935: case $host_os in
14936: aix4 | aix4.[01] | aix4.[01].*)
14937: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14938: echo ' yes '
14939: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14940: :
14941: else
14942: can_build_shared=no
14943: fi
14944: ;;
14945: esac
14946: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14947: # soname into executable. Probably we can add versioning support to
14948: # collect2, so additional links can be useful in future.
14949: if test "$aix_use_runtimelinking" = yes; then
14950: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14951: # instead of lib<name>.a to let people know that these are not
14952: # typical AIX shared libraries.
14953: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954: else
14955: # We preserve .a as extension for shared libraries through AIX4.2
14956: # and later when we are not doing run time linking.
14957: library_names_spec='${libname}${release}.a $libname.a'
14958: soname_spec='${libname}${release}${shared_ext}$major'
14959: fi
14960: shlibpath_var=LIBPATH
14961: fi
14962: ;;
14963:
14964: amigaos*)
14965: case $host_cpu in
14966: powerpc)
14967: # Since July 2007 AmigaOS4 officially supports .so libraries.
14968: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14969: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970: ;;
14971: m68k)
14972: library_names_spec='$libname.ixlibrary $libname.a'
14973: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14974: 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'
14975: ;;
14976: esac
14977: ;;
14978:
14979: beos*)
14980: library_names_spec='${libname}${shared_ext}'
14981: dynamic_linker="$host_os ld.so"
14982: shlibpath_var=LIBRARY_PATH
14983: ;;
14984:
14985: bsdi[45]*)
14986: version_type=linux # correct to gnu/linux during the next big refactor
14987: need_version=no
14988: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989: soname_spec='${libname}${release}${shared_ext}$major'
14990: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14991: shlibpath_var=LD_LIBRARY_PATH
14992: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14993: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14994: # the default ld.so.conf also contains /usr/contrib/lib and
14995: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14996: # libtool to hard-code these into programs
14997: ;;
14998:
14999: cygwin* | mingw* | pw32* | cegcc*)
15000: version_type=windows
15001: shrext_cmds=".dll"
15002: need_version=no
15003: need_lib_prefix=no
15004:
15005: case $GCC,$cc_basename in
15006: yes,*)
15007: # gcc
15008: library_names_spec='$libname.dll.a'
15009: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15010: postinstall_cmds='base_file=`basename \${file}`~
15011: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15012: dldir=$destdir/`dirname \$dlpath`~
15013: test -d \$dldir || mkdir -p \$dldir~
15014: $install_prog $dir/$dlname \$dldir/$dlname~
15015: chmod a+x \$dldir/$dlname~
15016: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15017: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15018: fi'
15019: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15020: dlpath=$dir/\$dldll~
15021: $RM \$dlpath'
15022: shlibpath_overrides_runpath=yes
15023:
15024: case $host_os in
15025: cygwin*)
15026: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15027: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15028:
15029: ;;
15030: mingw* | cegcc*)
15031: # MinGW DLLs use traditional 'lib' prefix
15032: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15033: ;;
15034: pw32*)
15035: # pw32 DLLs use 'pw' prefix rather than 'lib'
15036: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15037: ;;
15038: esac
15039: dynamic_linker='Win32 ld.exe'
15040: ;;
15041:
15042: *,cl*)
15043: # Native MSVC
15044: libname_spec='$name'
15045: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15046: library_names_spec='${libname}.dll.lib'
15047:
15048: case $build_os in
15049: mingw*)
15050: sys_lib_search_path_spec=
15051: lt_save_ifs=$IFS
15052: IFS=';'
15053: for lt_path in $LIB
15054: do
15055: IFS=$lt_save_ifs
15056: # Let DOS variable expansion print the short 8.3 style file name.
15057: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15058: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15059: done
15060: IFS=$lt_save_ifs
15061: # Convert to MSYS style.
15062: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15063: ;;
15064: cygwin*)
15065: # Convert to unix form, then to dos form, then back to unix form
15066: # but this time dos style (no spaces!) so that the unix form looks
15067: # like /cygdrive/c/PROGRA~1:/cygdr...
15068: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15069: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15070: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15071: ;;
15072: *)
15073: sys_lib_search_path_spec="$LIB"
15074: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15075: # It is most probably a Windows format PATH.
15076: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15077: else
15078: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15079: fi
15080: # FIXME: find the short name or the path components, as spaces are
15081: # common. (e.g. "Program Files" -> "PROGRA~1")
15082: ;;
15083: esac
15084:
15085: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15086: postinstall_cmds='base_file=`basename \${file}`~
15087: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15088: dldir=$destdir/`dirname \$dlpath`~
15089: test -d \$dldir || mkdir -p \$dldir~
15090: $install_prog $dir/$dlname \$dldir/$dlname'
15091: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15092: dlpath=$dir/\$dldll~
15093: $RM \$dlpath'
15094: shlibpath_overrides_runpath=yes
15095: dynamic_linker='Win32 link.exe'
15096: ;;
15097:
15098: *)
15099: # Assume MSVC wrapper
15100: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15101: dynamic_linker='Win32 ld.exe'
15102: ;;
15103: esac
15104: # FIXME: first we should search . and the directory the executable is in
15105: shlibpath_var=PATH
15106: ;;
15107:
15108: darwin* | rhapsody*)
15109: dynamic_linker="$host_os dyld"
15110: version_type=darwin
15111: need_lib_prefix=no
15112: need_version=no
15113: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15114: soname_spec='${libname}${release}${major}$shared_ext'
15115: shlibpath_overrides_runpath=yes
15116: shlibpath_var=DYLD_LIBRARY_PATH
15117: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15118:
15119: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15120: ;;
15121:
15122: dgux*)
15123: version_type=linux # correct to gnu/linux during the next big refactor
15124: need_lib_prefix=no
15125: need_version=no
15126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15127: soname_spec='${libname}${release}${shared_ext}$major'
15128: shlibpath_var=LD_LIBRARY_PATH
15129: ;;
15130:
15131: freebsd* | dragonfly*)
15132: # DragonFly does not have aout. When/if they implement a new
15133: # versioning mechanism, adjust this.
15134: if test -x /usr/bin/objformat; then
15135: objformat=`/usr/bin/objformat`
15136: else
15137: case $host_os in
15138: freebsd[23].*) objformat=aout ;;
15139: *) objformat=elf ;;
15140: esac
15141: fi
15142: version_type=freebsd-$objformat
15143: case $version_type in
15144: freebsd-elf*)
15145: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15146: need_version=no
15147: need_lib_prefix=no
15148: ;;
15149: freebsd-*)
15150: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15151: need_version=yes
15152: ;;
15153: esac
15154: shlibpath_var=LD_LIBRARY_PATH
15155: case $host_os in
15156: freebsd2.*)
15157: shlibpath_overrides_runpath=yes
15158: ;;
15159: freebsd3.[01]* | freebsdelf3.[01]*)
15160: shlibpath_overrides_runpath=yes
15161: hardcode_into_libs=yes
15162: ;;
15163: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15164: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15165: shlibpath_overrides_runpath=no
15166: hardcode_into_libs=yes
15167: ;;
15168: *) # from 4.6 on, and DragonFly
15169: shlibpath_overrides_runpath=yes
15170: hardcode_into_libs=yes
15171: ;;
15172: esac
15173: ;;
15174:
15175: gnu*)
15176: version_type=linux # correct to gnu/linux during the next big refactor
15177: need_lib_prefix=no
15178: need_version=no
15179: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15180: soname_spec='${libname}${release}${shared_ext}$major'
15181: shlibpath_var=LD_LIBRARY_PATH
15182: shlibpath_overrides_runpath=no
15183: hardcode_into_libs=yes
15184: ;;
15185:
15186: haiku*)
15187: version_type=linux # correct to gnu/linux during the next big refactor
15188: need_lib_prefix=no
15189: need_version=no
15190: dynamic_linker="$host_os runtime_loader"
15191: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15192: soname_spec='${libname}${release}${shared_ext}$major'
15193: shlibpath_var=LIBRARY_PATH
15194: shlibpath_overrides_runpath=yes
15195: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15196: hardcode_into_libs=yes
15197: ;;
15198:
15199: hpux9* | hpux10* | hpux11*)
15200: # Give a soname corresponding to the major version so that dld.sl refuses to
15201: # link against other versions.
15202: version_type=sunos
15203: need_lib_prefix=no
15204: need_version=no
15205: case $host_cpu in
15206: ia64*)
15207: shrext_cmds='.so'
15208: hardcode_into_libs=yes
15209: dynamic_linker="$host_os dld.so"
15210: shlibpath_var=LD_LIBRARY_PATH
15211: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15212: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213: soname_spec='${libname}${release}${shared_ext}$major'
15214: if test "X$HPUX_IA64_MODE" = X32; then
15215: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15216: else
15217: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15218: fi
15219: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15220: ;;
15221: hppa*64*)
15222: shrext_cmds='.sl'
15223: hardcode_into_libs=yes
15224: dynamic_linker="$host_os dld.sl"
15225: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15226: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15227: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228: soname_spec='${libname}${release}${shared_ext}$major'
15229: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15230: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15231: ;;
15232: *)
15233: shrext_cmds='.sl'
15234: dynamic_linker="$host_os dld.sl"
15235: shlibpath_var=SHLIB_PATH
15236: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15237: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238: soname_spec='${libname}${release}${shared_ext}$major'
15239: ;;
15240: esac
15241: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15242: postinstall_cmds='chmod 555 $lib'
15243: # or fails outright, so override atomically:
15244: install_override_mode=555
15245: ;;
15246:
15247: interix[3-9]*)
15248: version_type=linux # correct to gnu/linux during the next big refactor
15249: need_lib_prefix=no
15250: need_version=no
15251: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252: soname_spec='${libname}${release}${shared_ext}$major'
15253: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15254: shlibpath_var=LD_LIBRARY_PATH
15255: shlibpath_overrides_runpath=no
15256: hardcode_into_libs=yes
15257: ;;
15258:
15259: irix5* | irix6* | nonstopux*)
15260: case $host_os in
15261: nonstopux*) version_type=nonstopux ;;
15262: *)
15263: if test "$lt_cv_prog_gnu_ld" = yes; then
15264: version_type=linux # correct to gnu/linux during the next big refactor
15265: else
15266: version_type=irix
15267: fi ;;
15268: esac
15269: need_lib_prefix=no
15270: need_version=no
15271: soname_spec='${libname}${release}${shared_ext}$major'
15272: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15273: case $host_os in
15274: irix5* | nonstopux*)
15275: libsuff= shlibsuff=
15276: ;;
15277: *)
15278: case $LD in # libtool.m4 will add one of these switches to LD
15279: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15280: libsuff= shlibsuff= libmagic=32-bit;;
15281: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15282: libsuff=32 shlibsuff=N32 libmagic=N32;;
15283: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15284: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15285: *) libsuff= shlibsuff= libmagic=never-match;;
15286: esac
15287: ;;
15288: esac
15289: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15290: shlibpath_overrides_runpath=no
15291: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15292: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15293: hardcode_into_libs=yes
15294: ;;
15295:
15296: # No shared lib support for Linux oldld, aout, or coff.
15297: linux*oldld* | linux*aout* | linux*coff*)
15298: dynamic_linker=no
15299: ;;
15300:
15301: # This must be glibc/ELF.
15302: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15303: version_type=linux # correct to gnu/linux during the next big refactor
15304: need_lib_prefix=no
15305: need_version=no
15306: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307: soname_spec='${libname}${release}${shared_ext}$major'
15308: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15309: shlibpath_var=LD_LIBRARY_PATH
15310: shlibpath_overrides_runpath=no
15311:
15312: # Some binutils ld are patched to set DT_RUNPATH
15313: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15314: echo $ECHO_N "(cached) $ECHO_C" >&6
15315: else
15316: lt_cv_shlibpath_overrides_runpath=no
15317: save_LDFLAGS=$LDFLAGS
15318: save_libdir=$libdir
15319: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15320: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15321: cat >conftest.$ac_ext <<_ACEOF
15322: /* confdefs.h. */
15323: _ACEOF
15324: cat confdefs.h >>conftest.$ac_ext
15325: cat >>conftest.$ac_ext <<_ACEOF
15326: /* end confdefs.h. */
15327:
15328: int
15329: main ()
15330: {
15331:
15332: ;
15333: return 0;
15334: }
15335: _ACEOF
15336: rm -f conftest.$ac_objext conftest$ac_exeext
15337: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338: (eval $ac_link) 2>conftest.er1
15339: ac_status=$?
15340: grep -v '^ *+' conftest.er1 >conftest.err
15341: rm -f conftest.er1
15342: cat conftest.err >&5
15343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344: (exit $ac_status); } &&
15345: { ac_try='test -z "$ac_cxx_werror_flag"
15346: || test ! -s conftest.err'
15347: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348: (eval $ac_try) 2>&5
15349: ac_status=$?
15350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351: (exit $ac_status); }; } &&
15352: { ac_try='test -s conftest$ac_exeext'
15353: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354: (eval $ac_try) 2>&5
15355: ac_status=$?
15356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357: (exit $ac_status); }; }; then
15358: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15359: lt_cv_shlibpath_overrides_runpath=yes
15360: fi
15361:
15362: else
15363: echo "$as_me: failed program was:" >&5
15364: sed 's/^/| /' conftest.$ac_ext >&5
15365:
15366: fi
15367: rm -f conftest.err conftest.$ac_objext \
15368: conftest$ac_exeext conftest.$ac_ext
15369: LDFLAGS=$save_LDFLAGS
15370: libdir=$save_libdir
15371:
15372: fi
15373:
15374: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15375:
15376: # This implies no fast_install, which is unacceptable.
15377: # Some rework will be needed to allow for fast_install
15378: # before this can be enabled.
15379: hardcode_into_libs=yes
15380:
15381: # Append ld.so.conf contents to the search path
15382: if test -f /etc/ld.so.conf; then
15383: 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' ' '`
15384: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15385: fi
15386:
15387: # We used to test for /lib/ld.so.1 and disable shared libraries on
15388: # powerpc, because MkLinux only supported shared libraries with the
15389: # GNU dynamic linker. Since this was broken with cross compilers,
15390: # most powerpc-linux boxes support dynamic linking these days and
15391: # people can always --disable-shared, the test was removed, and we
15392: # assume the GNU/Linux dynamic linker is in use.
15393: dynamic_linker='GNU/Linux ld.so'
15394: ;;
15395:
15396: netbsd*)
15397: version_type=sunos
15398: need_lib_prefix=no
15399: need_version=no
15400: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15401: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15403: dynamic_linker='NetBSD (a.out) ld.so'
15404: else
15405: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406: soname_spec='${libname}${release}${shared_ext}$major'
15407: dynamic_linker='NetBSD ld.elf_so'
15408: fi
15409: shlibpath_var=LD_LIBRARY_PATH
15410: shlibpath_overrides_runpath=yes
15411: hardcode_into_libs=yes
15412: ;;
15413:
15414: newsos6)
15415: version_type=linux # correct to gnu/linux during the next big refactor
15416: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417: shlibpath_var=LD_LIBRARY_PATH
15418: shlibpath_overrides_runpath=yes
15419: ;;
15420:
15421: *nto* | *qnx*)
15422: version_type=qnx
15423: need_lib_prefix=no
15424: need_version=no
15425: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426: soname_spec='${libname}${release}${shared_ext}$major'
15427: shlibpath_var=LD_LIBRARY_PATH
15428: shlibpath_overrides_runpath=no
15429: hardcode_into_libs=yes
15430: dynamic_linker='ldqnx.so'
15431: ;;
15432:
15433: openbsd*)
15434: version_type=sunos
15435: sys_lib_dlsearch_path_spec="/usr/lib"
15436: need_lib_prefix=no
15437: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15438: case $host_os in
15439: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15440: *) need_version=no ;;
15441: esac
15442: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15443: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15444: shlibpath_var=LD_LIBRARY_PATH
15445: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15446: case $host_os in
15447: openbsd2.[89] | openbsd2.[89].*)
15448: shlibpath_overrides_runpath=no
15449: ;;
15450: *)
15451: shlibpath_overrides_runpath=yes
15452: ;;
15453: esac
15454: else
15455: shlibpath_overrides_runpath=yes
15456: fi
15457: ;;
15458:
15459: os2*)
15460: libname_spec='$name'
15461: shrext_cmds=".dll"
15462: need_lib_prefix=no
15463: library_names_spec='$libname${shared_ext} $libname.a'
15464: dynamic_linker='OS/2 ld.exe'
15465: shlibpath_var=LIBPATH
15466: ;;
15467:
15468: osf3* | osf4* | osf5*)
15469: version_type=osf
15470: need_lib_prefix=no
15471: need_version=no
15472: soname_spec='${libname}${release}${shared_ext}$major'
15473: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474: shlibpath_var=LD_LIBRARY_PATH
15475: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15476: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15477: ;;
15478:
15479: rdos*)
15480: dynamic_linker=no
15481: ;;
15482:
15483: solaris*)
15484: version_type=linux # correct to gnu/linux during the next big refactor
15485: need_lib_prefix=no
15486: need_version=no
15487: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488: soname_spec='${libname}${release}${shared_ext}$major'
15489: shlibpath_var=LD_LIBRARY_PATH
15490: shlibpath_overrides_runpath=yes
15491: hardcode_into_libs=yes
15492: # ldd complains unless libraries are executable
15493: postinstall_cmds='chmod +x $lib'
15494: ;;
15495:
15496: sunos4*)
15497: version_type=sunos
15498: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15499: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15500: shlibpath_var=LD_LIBRARY_PATH
15501: shlibpath_overrides_runpath=yes
15502: if test "$with_gnu_ld" = yes; then
15503: need_lib_prefix=no
15504: fi
15505: need_version=yes
15506: ;;
15507:
15508: sysv4 | sysv4.3*)
15509: version_type=linux # correct to gnu/linux during the next big refactor
15510: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511: soname_spec='${libname}${release}${shared_ext}$major'
15512: shlibpath_var=LD_LIBRARY_PATH
15513: case $host_vendor in
15514: sni)
15515: shlibpath_overrides_runpath=no
15516: need_lib_prefix=no
15517: runpath_var=LD_RUN_PATH
15518: ;;
15519: siemens)
15520: need_lib_prefix=no
15521: ;;
15522: motorola)
15523: need_lib_prefix=no
15524: need_version=no
15525: shlibpath_overrides_runpath=no
15526: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15527: ;;
15528: esac
15529: ;;
15530:
15531: sysv4*MP*)
15532: if test -d /usr/nec ;then
15533: version_type=linux # correct to gnu/linux during the next big refactor
15534: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15535: soname_spec='$libname${shared_ext}.$major'
15536: shlibpath_var=LD_LIBRARY_PATH
15537: fi
15538: ;;
15539:
15540: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15541: version_type=freebsd-elf
15542: need_lib_prefix=no
15543: need_version=no
15544: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15545: soname_spec='${libname}${release}${shared_ext}$major'
15546: shlibpath_var=LD_LIBRARY_PATH
15547: shlibpath_overrides_runpath=yes
15548: hardcode_into_libs=yes
15549: if test "$with_gnu_ld" = yes; then
15550: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15551: else
15552: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15553: case $host_os in
15554: sco3.2v5*)
15555: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15556: ;;
15557: esac
15558: fi
15559: sys_lib_dlsearch_path_spec='/usr/lib'
15560: ;;
15561:
15562: tpf*)
15563: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15564: version_type=linux # correct to gnu/linux during the next big refactor
15565: need_lib_prefix=no
15566: need_version=no
15567: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15568: shlibpath_var=LD_LIBRARY_PATH
15569: shlibpath_overrides_runpath=no
15570: hardcode_into_libs=yes
15571: ;;
15572:
15573: uts4*)
15574: version_type=linux # correct to gnu/linux during the next big refactor
15575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576: soname_spec='${libname}${release}${shared_ext}$major'
15577: shlibpath_var=LD_LIBRARY_PATH
15578: ;;
15579:
15580: *)
15581: dynamic_linker=no
15582: ;;
15583: esac
15584: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15585: echo "${ECHO_T}$dynamic_linker" >&6
15586: test "$dynamic_linker" = no && can_build_shared=no
15587:
15588: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15589: if test "$GCC" = yes; then
15590: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15591: fi
15592:
15593: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15594: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15595: fi
15596: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15597: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15598: fi
15599:
15600:
15601:
15602:
15603:
15604:
15605:
15606:
15607:
15608:
15609:
15610:
15611:
15612:
15613:
15614:
15615:
15616:
15617:
15618:
15619:
15620:
15621:
15622:
15623:
15624:
15625:
15626:
15627:
15628:
15629:
15630:
15631:
15632:
15633:
15634:
15635:
15636:
15637: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15638: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15639: hardcode_action_CXX=
15640: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15641: test -n "$runpath_var_CXX" ||
15642: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15643:
15644: # We can hardcode non-existent directories.
15645: if test "$hardcode_direct_CXX" != no &&
15646: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15647: # have to relink, otherwise we might link with an installed library
15648: # when we should be linking with a yet-to-be-installed one
15649: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15650: test "$hardcode_minus_L_CXX" != no; then
15651: # Linking always hardcodes the temporary library directory.
15652: hardcode_action_CXX=relink
15653: else
15654: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15655: hardcode_action_CXX=immediate
15656: fi
15657: else
15658: # We cannot hardcode anything, or else we can only hardcode existing
15659: # directories.
15660: hardcode_action_CXX=unsupported
15661: fi
15662: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15663: echo "${ECHO_T}$hardcode_action_CXX" >&6
15664:
15665: if test "$hardcode_action_CXX" = relink ||
15666: test "$inherit_rpath_CXX" = yes; then
15667: # Fast installation is not supported
15668: enable_fast_install=no
15669: elif test "$shlibpath_overrides_runpath" = yes ||
15670: test "$enable_shared" = no; then
15671: # Fast installation is not necessary
15672: enable_fast_install=needless
15673: fi
15674:
15675:
15676:
15677:
15678:
15679:
15680:
15681: fi # test -n "$compiler"
15682:
15683: CC=$lt_save_CC
15684: CFLAGS=$lt_save_CFLAGS
15685: LDCXX=$LD
15686: LD=$lt_save_LD
15687: GCC=$lt_save_GCC
15688: with_gnu_ld=$lt_save_with_gnu_ld
15689: lt_cv_path_LDCXX=$lt_cv_path_LD
15690: lt_cv_path_LD=$lt_save_path_LD
15691: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15692: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15693: fi # test "$_lt_caught_CXX_error" != yes
15694:
15695: ac_ext=c
15696: ac_cpp='$CPP $CPPFLAGS'
15697: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15698: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15699: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15700:
15701:
15702:
15703:
15704:
15705:
15706:
15707:
15708:
15709:
15710:
15711:
15712:
15713:
15714:
15715: ac_config_commands="$ac_config_commands libtool"
15716:
15717:
15718:
15719:
15720: # Only expand once:
15721:
15722:
15723: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15724: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15725: if test "${libltdl_cv_shlibext+set}" = set; then
15726: echo $ECHO_N "(cached) $ECHO_C" >&6
15727: else
15728:
15729: module=yes
15730: eval libltdl_cv_shlibext=$shrext_cmds
15731: module=no
15732: eval libltdl_cv_shrext=$shrext_cmds
15733:
15734: fi
15735: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15736: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15737: if test -n "$libltdl_cv_shlibext"; then
15738:
15739: cat >>confdefs.h <<_ACEOF
15740: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15741: _ACEOF
15742:
15743: fi
15744: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15745:
15746: cat >>confdefs.h <<_ACEOF
15747: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15748: _ACEOF
15749:
15750: fi
15751:
15752: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15753: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15754: if test "${lt_cv_module_path_var+set}" = set; then
15755: echo $ECHO_N "(cached) $ECHO_C" >&6
15756: else
15757: lt_cv_module_path_var="$shlibpath_var"
15758: fi
15759: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15760: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15761: if test -n "$lt_cv_module_path_var"; then
15762:
15763: cat >>confdefs.h <<_ACEOF
15764: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15765: _ACEOF
15766:
15767: fi
15768:
15769: echo "$as_me:$LINENO: checking for the default library search path" >&5
15770: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15771: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15772: echo $ECHO_N "(cached) $ECHO_C" >&6
15773: else
15774: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15775: fi
15776: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15777: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15778: if test -n "$lt_cv_sys_dlsearch_path"; then
15779: sys_dlsearch_path=
15780: for dir in $lt_cv_sys_dlsearch_path; do
15781: if test -z "$sys_dlsearch_path"; then
15782: sys_dlsearch_path="$dir"
15783: else
15784: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15785: fi
15786: done
15787:
15788: cat >>confdefs.h <<_ACEOF
15789: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15790: _ACEOF
15791:
15792: fi
15793:
15794:
15795: LT_DLLOADERS=
15796:
15797:
15798: ac_ext=c
15799: ac_cpp='$CPP $CPPFLAGS'
15800: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15801: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15802: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15803:
15804:
15805: LIBADD_DLOPEN=
15806: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15807: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15808: if test "${ac_cv_search_dlopen+set}" = set; then
15809: echo $ECHO_N "(cached) $ECHO_C" >&6
15810: else
15811: ac_func_search_save_LIBS=$LIBS
15812: ac_cv_search_dlopen=no
15813: cat >conftest.$ac_ext <<_ACEOF
15814: /* confdefs.h. */
15815: _ACEOF
15816: cat confdefs.h >>conftest.$ac_ext
15817: cat >>conftest.$ac_ext <<_ACEOF
15818: /* end confdefs.h. */
15819:
15820: /* Override any gcc2 internal prototype to avoid an error. */
15821: #ifdef __cplusplus
15822: extern "C"
15823: #endif
15824: /* We use char because int might match the return type of a gcc2
15825: builtin and then its argument prototype would still apply. */
15826: char dlopen ();
15827: int
15828: main ()
15829: {
15830: dlopen ();
15831: ;
15832: return 0;
15833: }
15834: _ACEOF
15835: rm -f conftest.$ac_objext conftest$ac_exeext
15836: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15837: (eval $ac_link) 2>conftest.er1
15838: ac_status=$?
15839: grep -v '^ *+' conftest.er1 >conftest.err
15840: rm -f conftest.er1
15841: cat conftest.err >&5
15842: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843: (exit $ac_status); } &&
15844: { ac_try='test -z "$ac_c_werror_flag"
15845: || test ! -s conftest.err'
15846: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847: (eval $ac_try) 2>&5
15848: ac_status=$?
15849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850: (exit $ac_status); }; } &&
15851: { ac_try='test -s conftest$ac_exeext'
15852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853: (eval $ac_try) 2>&5
15854: ac_status=$?
15855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856: (exit $ac_status); }; }; then
15857: ac_cv_search_dlopen="none required"
15858: else
15859: echo "$as_me: failed program was:" >&5
15860: sed 's/^/| /' conftest.$ac_ext >&5
15861:
15862: fi
15863: rm -f conftest.err conftest.$ac_objext \
15864: conftest$ac_exeext conftest.$ac_ext
15865: if test "$ac_cv_search_dlopen" = no; then
15866: for ac_lib in dl; do
15867: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15868: cat >conftest.$ac_ext <<_ACEOF
15869: /* confdefs.h. */
15870: _ACEOF
15871: cat confdefs.h >>conftest.$ac_ext
15872: cat >>conftest.$ac_ext <<_ACEOF
15873: /* end confdefs.h. */
15874:
15875: /* Override any gcc2 internal prototype to avoid an error. */
15876: #ifdef __cplusplus
15877: extern "C"
15878: #endif
15879: /* We use char because int might match the return type of a gcc2
15880: builtin and then its argument prototype would still apply. */
15881: char dlopen ();
15882: int
15883: main ()
15884: {
15885: dlopen ();
15886: ;
15887: return 0;
15888: }
15889: _ACEOF
15890: rm -f conftest.$ac_objext conftest$ac_exeext
15891: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15892: (eval $ac_link) 2>conftest.er1
15893: ac_status=$?
15894: grep -v '^ *+' conftest.er1 >conftest.err
15895: rm -f conftest.er1
15896: cat conftest.err >&5
15897: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898: (exit $ac_status); } &&
15899: { ac_try='test -z "$ac_c_werror_flag"
15900: || test ! -s conftest.err'
15901: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902: (eval $ac_try) 2>&5
15903: ac_status=$?
15904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905: (exit $ac_status); }; } &&
15906: { ac_try='test -s conftest$ac_exeext'
15907: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908: (eval $ac_try) 2>&5
15909: ac_status=$?
15910: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911: (exit $ac_status); }; }; then
15912: ac_cv_search_dlopen="-l$ac_lib"
15913: break
15914: else
15915: echo "$as_me: failed program was:" >&5
15916: sed 's/^/| /' conftest.$ac_ext >&5
15917:
15918: fi
15919: rm -f conftest.err conftest.$ac_objext \
15920: conftest$ac_exeext conftest.$ac_ext
15921: done
15922: fi
15923: LIBS=$ac_func_search_save_LIBS
15924: fi
15925: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15926: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15927: if test "$ac_cv_search_dlopen" != no; then
15928: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15929:
15930: cat >>confdefs.h <<\_ACEOF
15931: #define HAVE_LIBDL 1
15932: _ACEOF
15933:
15934: if test "$ac_cv_search_dlopen" != "none required" ; then
15935: LIBADD_DLOPEN="-ldl"
15936: fi
15937: libltdl_cv_lib_dl_dlopen="yes"
15938: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15939: else
15940: cat >conftest.$ac_ext <<_ACEOF
15941: /* confdefs.h. */
15942: _ACEOF
15943: cat confdefs.h >>conftest.$ac_ext
15944: cat >>conftest.$ac_ext <<_ACEOF
15945: /* end confdefs.h. */
15946: #if HAVE_DLFCN_H
15947: # include <dlfcn.h>
15948: #endif
15949:
15950: int
15951: main ()
15952: {
15953: dlopen(0, 0);
15954: ;
15955: return 0;
15956: }
15957: _ACEOF
15958: rm -f conftest.$ac_objext conftest$ac_exeext
15959: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15960: (eval $ac_link) 2>conftest.er1
15961: ac_status=$?
15962: grep -v '^ *+' conftest.er1 >conftest.err
15963: rm -f conftest.er1
15964: cat conftest.err >&5
15965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966: (exit $ac_status); } &&
15967: { ac_try='test -z "$ac_c_werror_flag"
15968: || test ! -s conftest.err'
15969: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970: (eval $ac_try) 2>&5
15971: ac_status=$?
15972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973: (exit $ac_status); }; } &&
15974: { ac_try='test -s conftest$ac_exeext'
15975: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976: (eval $ac_try) 2>&5
15977: ac_status=$?
15978: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979: (exit $ac_status); }; }; then
15980:
15981: cat >>confdefs.h <<\_ACEOF
15982: #define HAVE_LIBDL 1
15983: _ACEOF
15984:
15985: libltdl_cv_func_dlopen="yes"
15986: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15987: else
15988: echo "$as_me: failed program was:" >&5
15989: sed 's/^/| /' conftest.$ac_ext >&5
15990:
15991: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15992: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15993: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15994: echo $ECHO_N "(cached) $ECHO_C" >&6
15995: else
15996: ac_check_lib_save_LIBS=$LIBS
15997: LIBS="-lsvld $LIBS"
15998: cat >conftest.$ac_ext <<_ACEOF
15999: /* confdefs.h. */
16000: _ACEOF
16001: cat confdefs.h >>conftest.$ac_ext
16002: cat >>conftest.$ac_ext <<_ACEOF
16003: /* end confdefs.h. */
16004:
16005: /* Override any gcc2 internal prototype to avoid an error. */
16006: #ifdef __cplusplus
16007: extern "C"
16008: #endif
16009: /* We use char because int might match the return type of a gcc2
16010: builtin and then its argument prototype would still apply. */
16011: char dlopen ();
16012: int
16013: main ()
16014: {
16015: dlopen ();
16016: ;
16017: return 0;
16018: }
16019: _ACEOF
16020: rm -f conftest.$ac_objext conftest$ac_exeext
16021: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16022: (eval $ac_link) 2>conftest.er1
16023: ac_status=$?
16024: grep -v '^ *+' conftest.er1 >conftest.err
16025: rm -f conftest.er1
16026: cat conftest.err >&5
16027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028: (exit $ac_status); } &&
16029: { ac_try='test -z "$ac_c_werror_flag"
16030: || test ! -s conftest.err'
16031: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032: (eval $ac_try) 2>&5
16033: ac_status=$?
16034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035: (exit $ac_status); }; } &&
16036: { ac_try='test -s conftest$ac_exeext'
16037: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038: (eval $ac_try) 2>&5
16039: ac_status=$?
16040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041: (exit $ac_status); }; }; then
16042: ac_cv_lib_svld_dlopen=yes
16043: else
16044: echo "$as_me: failed program was:" >&5
16045: sed 's/^/| /' conftest.$ac_ext >&5
16046:
16047: ac_cv_lib_svld_dlopen=no
16048: fi
16049: rm -f conftest.err conftest.$ac_objext \
16050: conftest$ac_exeext conftest.$ac_ext
16051: LIBS=$ac_check_lib_save_LIBS
16052: fi
16053: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16054: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16055: if test $ac_cv_lib_svld_dlopen = yes; then
16056:
16057: cat >>confdefs.h <<\_ACEOF
16058: #define HAVE_LIBDL 1
16059: _ACEOF
16060:
16061: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16062: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16063: fi
16064:
16065: fi
16066: rm -f conftest.err conftest.$ac_objext \
16067: conftest$ac_exeext conftest.$ac_ext
16068: fi
16069:
16070: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16071: then
16072: lt_save_LIBS="$LIBS"
16073: LIBS="$LIBS $LIBADD_DLOPEN"
16074:
16075: for ac_func in dlerror
16076: do
16077: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16078: echo "$as_me:$LINENO: checking for $ac_func" >&5
16079: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16080: if eval "test \"\${$as_ac_var+set}\" = set"; then
16081: echo $ECHO_N "(cached) $ECHO_C" >&6
16082: else
16083: cat >conftest.$ac_ext <<_ACEOF
16084: /* confdefs.h. */
16085: _ACEOF
16086: cat confdefs.h >>conftest.$ac_ext
16087: cat >>conftest.$ac_ext <<_ACEOF
16088: /* end confdefs.h. */
16089: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16090: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16091: #define $ac_func innocuous_$ac_func
16092:
16093: /* System header to define __stub macros and hopefully few prototypes,
16094: which can conflict with char $ac_func (); below.
16095: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16096: <limits.h> exists even on freestanding compilers. */
16097:
16098: #ifdef __STDC__
16099: # include <limits.h>
16100: #else
16101: # include <assert.h>
16102: #endif
16103:
16104: #undef $ac_func
16105:
16106: /* Override any gcc2 internal prototype to avoid an error. */
16107: #ifdef __cplusplus
16108: extern "C"
16109: {
16110: #endif
16111: /* We use char because int might match the return type of a gcc2
16112: builtin and then its argument prototype would still apply. */
16113: char $ac_func ();
16114: /* The GNU C library defines this for functions which it implements
16115: to always fail with ENOSYS. Some functions are actually named
16116: something starting with __ and the normal name is an alias. */
16117: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16118: choke me
16119: #else
16120: char (*f) () = $ac_func;
16121: #endif
16122: #ifdef __cplusplus
16123: }
16124: #endif
16125:
16126: int
16127: main ()
16128: {
16129: return f != $ac_func;
16130: ;
16131: return 0;
16132: }
16133: _ACEOF
16134: rm -f conftest.$ac_objext conftest$ac_exeext
16135: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16136: (eval $ac_link) 2>conftest.er1
16137: ac_status=$?
16138: grep -v '^ *+' conftest.er1 >conftest.err
16139: rm -f conftest.er1
16140: cat conftest.err >&5
16141: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142: (exit $ac_status); } &&
16143: { ac_try='test -z "$ac_c_werror_flag"
16144: || test ! -s conftest.err'
16145: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146: (eval $ac_try) 2>&5
16147: ac_status=$?
16148: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149: (exit $ac_status); }; } &&
16150: { ac_try='test -s conftest$ac_exeext'
16151: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152: (eval $ac_try) 2>&5
16153: ac_status=$?
16154: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155: (exit $ac_status); }; }; then
16156: eval "$as_ac_var=yes"
16157: else
16158: echo "$as_me: failed program was:" >&5
16159: sed 's/^/| /' conftest.$ac_ext >&5
16160:
16161: eval "$as_ac_var=no"
16162: fi
16163: rm -f conftest.err conftest.$ac_objext \
16164: conftest$ac_exeext conftest.$ac_ext
16165: fi
16166: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16167: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16168: if test `eval echo '${'$as_ac_var'}'` = yes; then
16169: cat >>confdefs.h <<_ACEOF
16170: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16171: _ACEOF
16172:
16173: fi
16174: done
16175:
16176: LIBS="$lt_save_LIBS"
16177: fi
16178:
16179:
16180: LIBADD_SHL_LOAD=
16181: echo "$as_me:$LINENO: checking for shl_load" >&5
16182: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16183: if test "${ac_cv_func_shl_load+set}" = set; then
16184: echo $ECHO_N "(cached) $ECHO_C" >&6
16185: else
16186: cat >conftest.$ac_ext <<_ACEOF
16187: /* confdefs.h. */
16188: _ACEOF
16189: cat confdefs.h >>conftest.$ac_ext
16190: cat >>conftest.$ac_ext <<_ACEOF
16191: /* end confdefs.h. */
16192: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16193: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16194: #define shl_load innocuous_shl_load
16195:
16196: /* System header to define __stub macros and hopefully few prototypes,
16197: which can conflict with char shl_load (); below.
16198: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16199: <limits.h> exists even on freestanding compilers. */
16200:
16201: #ifdef __STDC__
16202: # include <limits.h>
16203: #else
16204: # include <assert.h>
16205: #endif
16206:
16207: #undef shl_load
16208:
16209: /* Override any gcc2 internal prototype to avoid an error. */
16210: #ifdef __cplusplus
16211: extern "C"
16212: {
16213: #endif
16214: /* We use char because int might match the return type of a gcc2
16215: builtin and then its argument prototype would still apply. */
16216: char shl_load ();
16217: /* The GNU C library defines this for functions which it implements
16218: to always fail with ENOSYS. Some functions are actually named
16219: something starting with __ and the normal name is an alias. */
16220: #if defined (__stub_shl_load) || defined (__stub___shl_load)
16221: choke me
16222: #else
16223: char (*f) () = shl_load;
16224: #endif
16225: #ifdef __cplusplus
16226: }
16227: #endif
16228:
16229: int
16230: main ()
16231: {
16232: return f != shl_load;
16233: ;
16234: return 0;
16235: }
16236: _ACEOF
16237: rm -f conftest.$ac_objext conftest$ac_exeext
16238: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16239: (eval $ac_link) 2>conftest.er1
16240: ac_status=$?
16241: grep -v '^ *+' conftest.er1 >conftest.err
16242: rm -f conftest.er1
16243: cat conftest.err >&5
16244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245: (exit $ac_status); } &&
16246: { ac_try='test -z "$ac_c_werror_flag"
16247: || test ! -s conftest.err'
16248: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249: (eval $ac_try) 2>&5
16250: ac_status=$?
16251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252: (exit $ac_status); }; } &&
16253: { ac_try='test -s conftest$ac_exeext'
16254: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255: (eval $ac_try) 2>&5
16256: ac_status=$?
16257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258: (exit $ac_status); }; }; then
16259: ac_cv_func_shl_load=yes
16260: else
16261: echo "$as_me: failed program was:" >&5
16262: sed 's/^/| /' conftest.$ac_ext >&5
16263:
16264: ac_cv_func_shl_load=no
16265: fi
16266: rm -f conftest.err conftest.$ac_objext \
16267: conftest$ac_exeext conftest.$ac_ext
16268: fi
16269: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16270: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16271: if test $ac_cv_func_shl_load = yes; then
16272:
16273: cat >>confdefs.h <<\_ACEOF
16274: #define HAVE_SHL_LOAD 1
16275: _ACEOF
16276:
16277: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16278: else
16279: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16280: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16281: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16282: echo $ECHO_N "(cached) $ECHO_C" >&6
16283: else
16284: ac_check_lib_save_LIBS=$LIBS
16285: LIBS="-ldld $LIBS"
16286: cat >conftest.$ac_ext <<_ACEOF
16287: /* confdefs.h. */
16288: _ACEOF
16289: cat confdefs.h >>conftest.$ac_ext
16290: cat >>conftest.$ac_ext <<_ACEOF
16291: /* end confdefs.h. */
1.10 paf 16292:
1.66 paf 16293: /* Override any gcc2 internal prototype to avoid an error. */
16294: #ifdef __cplusplus
16295: extern "C"
16296: #endif
16297: /* We use char because int might match the return type of a gcc2
16298: builtin and then its argument prototype would still apply. */
16299: char shl_load ();
16300: int
16301: main ()
16302: {
16303: shl_load ();
16304: ;
16305: return 0;
16306: }
16307: _ACEOF
16308: rm -f conftest.$ac_objext conftest$ac_exeext
16309: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16310: (eval $ac_link) 2>conftest.er1
1.66 paf 16311: ac_status=$?
1.86 paf 16312: grep -v '^ *+' conftest.er1 >conftest.err
16313: rm -f conftest.er1
16314: cat conftest.err >&5
1.66 paf 16315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316: (exit $ac_status); } &&
1.86 paf 16317: { ac_try='test -z "$ac_c_werror_flag"
16318: || test ! -s conftest.err'
16319: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320: (eval $ac_try) 2>&5
16321: ac_status=$?
16322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323: (exit $ac_status); }; } &&
16324: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16325: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326: (eval $ac_try) 2>&5
16327: ac_status=$?
16328: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329: (exit $ac_status); }; }; then
16330: ac_cv_lib_dld_shl_load=yes
16331: else
16332: echo "$as_me: failed program was:" >&5
16333: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 16334:
1.66 paf 16335: ac_cv_lib_dld_shl_load=no
16336: fi
1.86 paf 16337: rm -f conftest.err conftest.$ac_objext \
16338: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16339: LIBS=$ac_check_lib_save_LIBS
16340: fi
16341: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16342: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16343: if test $ac_cv_lib_dld_shl_load = yes; then
1.1 paf 16344:
1.66 paf 16345: cat >>confdefs.h <<\_ACEOF
16346: #define HAVE_SHL_LOAD 1
16347: _ACEOF
1.1 paf 16348:
1.128 moko 16349: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16350: LIBADD_SHL_LOAD="-ldld"
16351: fi
16352:
16353: fi
16354:
16355:
16356:
16357: case $host_os in
16358: darwin[1567].*)
16359: # We only want this for pre-Mac OS X 10.4.
16360: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
16361: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
16362: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
16363: echo $ECHO_N "(cached) $ECHO_C" >&6
16364: else
16365: cat >conftest.$ac_ext <<_ACEOF
16366: /* confdefs.h. */
16367: _ACEOF
16368: cat confdefs.h >>conftest.$ac_ext
16369: cat >>conftest.$ac_ext <<_ACEOF
16370: /* end confdefs.h. */
16371: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
16372: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16373: #define _dyld_func_lookup innocuous__dyld_func_lookup
16374:
16375: /* System header to define __stub macros and hopefully few prototypes,
16376: which can conflict with char _dyld_func_lookup (); below.
16377: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16378: <limits.h> exists even on freestanding compilers. */
16379:
16380: #ifdef __STDC__
16381: # include <limits.h>
16382: #else
16383: # include <assert.h>
16384: #endif
16385:
16386: #undef _dyld_func_lookup
16387:
16388: /* Override any gcc2 internal prototype to avoid an error. */
16389: #ifdef __cplusplus
16390: extern "C"
16391: {
16392: #endif
16393: /* We use char because int might match the return type of a gcc2
16394: builtin and then its argument prototype would still apply. */
16395: char _dyld_func_lookup ();
16396: /* The GNU C library defines this for functions which it implements
16397: to always fail with ENOSYS. Some functions are actually named
16398: something starting with __ and the normal name is an alias. */
16399: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
16400: choke me
16401: #else
16402: char (*f) () = _dyld_func_lookup;
16403: #endif
16404: #ifdef __cplusplus
16405: }
16406: #endif
16407:
16408: int
16409: main ()
16410: {
16411: return f != _dyld_func_lookup;
16412: ;
16413: return 0;
16414: }
16415: _ACEOF
16416: rm -f conftest.$ac_objext conftest$ac_exeext
16417: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16418: (eval $ac_link) 2>conftest.er1
16419: ac_status=$?
16420: grep -v '^ *+' conftest.er1 >conftest.err
16421: rm -f conftest.er1
16422: cat conftest.err >&5
16423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424: (exit $ac_status); } &&
16425: { ac_try='test -z "$ac_c_werror_flag"
16426: || test ! -s conftest.err'
16427: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428: (eval $ac_try) 2>&5
16429: ac_status=$?
16430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431: (exit $ac_status); }; } &&
16432: { ac_try='test -s conftest$ac_exeext'
16433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434: (eval $ac_try) 2>&5
16435: ac_status=$?
16436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437: (exit $ac_status); }; }; then
16438: ac_cv_func__dyld_func_lookup=yes
16439: else
16440: echo "$as_me: failed program was:" >&5
16441: sed 's/^/| /' conftest.$ac_ext >&5
16442:
16443: ac_cv_func__dyld_func_lookup=no
16444: fi
16445: rm -f conftest.err conftest.$ac_objext \
16446: conftest$ac_exeext conftest.$ac_ext
16447: fi
16448: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
16449: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
16450: if test $ac_cv_func__dyld_func_lookup = yes; then
16451:
16452: cat >>confdefs.h <<\_ACEOF
16453: #define HAVE_DYLD 1
16454: _ACEOF
16455:
16456: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16457: fi
16458:
16459: ;;
16460: beos*)
16461: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16462: ;;
16463: cygwin* | mingw* | os2* | pw32*)
16464: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
16465: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
16466: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
16467: echo $ECHO_N "(cached) $ECHO_C" >&6
16468: else
16469: cat >conftest.$ac_ext <<_ACEOF
16470: /* confdefs.h. */
16471: _ACEOF
16472: cat confdefs.h >>conftest.$ac_ext
16473: cat >>conftest.$ac_ext <<_ACEOF
16474: /* end confdefs.h. */
16475: #include <sys/cygwin.h>
16476:
16477: int
16478: main ()
16479: {
16480: #ifndef cygwin_conv_path
16481: char *p = (char *) cygwin_conv_path;
16482: #endif
16483:
16484: ;
16485: return 0;
16486: }
16487: _ACEOF
16488: rm -f conftest.$ac_objext
16489: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16490: (eval $ac_compile) 2>conftest.er1
16491: ac_status=$?
16492: grep -v '^ *+' conftest.er1 >conftest.err
16493: rm -f conftest.er1
16494: cat conftest.err >&5
16495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496: (exit $ac_status); } &&
16497: { ac_try='test -z "$ac_c_werror_flag"
16498: || test ! -s conftest.err'
16499: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500: (eval $ac_try) 2>&5
16501: ac_status=$?
16502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503: (exit $ac_status); }; } &&
16504: { ac_try='test -s conftest.$ac_objext'
16505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506: (eval $ac_try) 2>&5
16507: ac_status=$?
16508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509: (exit $ac_status); }; }; then
16510: ac_cv_have_decl_cygwin_conv_path=yes
16511: else
16512: echo "$as_me: failed program was:" >&5
16513: sed 's/^/| /' conftest.$ac_ext >&5
16514:
16515: ac_cv_have_decl_cygwin_conv_path=no
16516: fi
16517: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16518: fi
16519: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
16520: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
16521: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
16522:
16523: cat >>confdefs.h <<_ACEOF
16524: #define HAVE_DECL_CYGWIN_CONV_PATH 1
16525: _ACEOF
16526:
16527:
1.66 paf 16528: else
1.128 moko 16529: cat >>confdefs.h <<_ACEOF
16530: #define HAVE_DECL_CYGWIN_CONV_PATH 0
16531: _ACEOF
16532:
16533:
16534: fi
16535:
16536:
16537: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16538: ;;
16539: esac
16540:
16541: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16542: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16543: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.66 paf 16544: echo $ECHO_N "(cached) $ECHO_C" >&6
16545: else
16546: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16547: LIBS="-ldld $LIBS"
1.66 paf 16548: cat >conftest.$ac_ext <<_ACEOF
16549: /* confdefs.h. */
16550: _ACEOF
16551: cat confdefs.h >>conftest.$ac_ext
16552: cat >>conftest.$ac_ext <<_ACEOF
16553: /* end confdefs.h. */
1.62 paf 16554:
1.66 paf 16555: /* Override any gcc2 internal prototype to avoid an error. */
16556: #ifdef __cplusplus
16557: extern "C"
16558: #endif
16559: /* We use char because int might match the return type of a gcc2
16560: builtin and then its argument prototype would still apply. */
1.128 moko 16561: char dld_link ();
1.66 paf 16562: int
16563: main ()
16564: {
1.128 moko 16565: dld_link ();
1.66 paf 16566: ;
16567: return 0;
16568: }
16569: _ACEOF
16570: rm -f conftest.$ac_objext conftest$ac_exeext
16571: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16572: (eval $ac_link) 2>conftest.er1
1.66 paf 16573: ac_status=$?
1.86 paf 16574: grep -v '^ *+' conftest.er1 >conftest.err
16575: rm -f conftest.er1
16576: cat conftest.err >&5
1.66 paf 16577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578: (exit $ac_status); } &&
1.86 paf 16579: { ac_try='test -z "$ac_c_werror_flag"
16580: || test ! -s conftest.err'
16581: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582: (eval $ac_try) 2>&5
16583: ac_status=$?
16584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585: (exit $ac_status); }; } &&
16586: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588: (eval $ac_try) 2>&5
16589: ac_status=$?
16590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591: (exit $ac_status); }; }; then
1.128 moko 16592: ac_cv_lib_dld_dld_link=yes
1.66 paf 16593: else
16594: echo "$as_me: failed program was:" >&5
1.128 moko 16595: sed 's/^/| /' conftest.$ac_ext >&5
16596:
16597: ac_cv_lib_dld_dld_link=no
16598: fi
16599: rm -f conftest.err conftest.$ac_objext \
16600: conftest$ac_exeext conftest.$ac_ext
16601: LIBS=$ac_check_lib_save_LIBS
16602: fi
16603: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16604: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16605: if test $ac_cv_lib_dld_dld_link = yes; then
16606:
16607: cat >>confdefs.h <<\_ACEOF
16608: #define HAVE_DLD 1
16609: _ACEOF
16610:
16611: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16612: fi
16613:
16614:
16615:
16616:
16617: LT_DLPREOPEN=
16618: if test -n "$LT_DLLOADERS"
16619: then
16620: for lt_loader in $LT_DLLOADERS; do
16621: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16622: done
16623:
16624: cat >>confdefs.h <<\_ACEOF
16625: #define HAVE_LIBDLLOADER 1
16626: _ACEOF
16627:
16628: fi
16629:
16630:
16631: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16632:
16633:
16634: ac_ext=c
16635: ac_cpp='$CPP $CPPFLAGS'
16636: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16637: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16638: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16639:
16640:
16641: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16642: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16643: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16644: echo $ECHO_N "(cached) $ECHO_C" >&6
16645: else
16646: lt_cv_sys_symbol_underscore=no
16647: cat > conftest.$ac_ext <<_LT_EOF
16648: void nm_test_func(){}
16649: int main(){nm_test_func;return 0;}
16650: _LT_EOF
16651: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652: (eval $ac_compile) 2>&5
16653: ac_status=$?
16654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655: (exit $ac_status); }; then
16656: # Now try to grab the symbols.
16657: ac_nlist=conftest.nm
16658: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16659: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16660: ac_status=$?
16661: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662: (exit $ac_status); } && test -s "$ac_nlist"; then
16663: # See whether the symbols have a leading underscore.
16664: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16665: lt_cv_sys_symbol_underscore=yes
16666: else
16667: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16668: :
16669: else
16670: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16671: fi
16672: fi
16673: else
16674: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16675: fi
16676: else
16677: echo "configure: failed program was:" >&5
16678: cat conftest.c >&5
16679: fi
16680: rm -rf conftest*
1.29 paf 16681:
1.66 paf 16682: fi
1.128 moko 16683: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16684: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16685: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16686:
1.62 paf 16687:
1.128 moko 16688: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16689: if test x"$libltdl_cv_func_dlopen" = xyes ||
16690: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16691: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16692: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16693: if test "${libltdl_cv_need_uscore+set}" = set; then
16694: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16695: else
1.128 moko 16696: libltdl_cv_need_uscore=unknown
16697: save_LIBS="$LIBS"
16698: LIBS="$LIBS $LIBADD_DLOPEN"
16699: if test "$cross_compiling" = yes; then :
16700: libltdl_cv_need_uscore=cross
16701: else
16702: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16703: lt_status=$lt_dlunknown
16704: cat > conftest.$ac_ext <<_LT_EOF
16705: #line $LINENO "configure"
16706: #include "confdefs.h"
16707:
1.66 paf 16708: #if HAVE_DLFCN_H
1.128 moko 16709: #include <dlfcn.h>
16710: #endif
16711:
16712: #include <stdio.h>
16713:
16714: #ifdef RTLD_GLOBAL
16715: # define LT_DLGLOBAL RTLD_GLOBAL
16716: #else
16717: # ifdef DL_GLOBAL
16718: # define LT_DLGLOBAL DL_GLOBAL
16719: # else
16720: # define LT_DLGLOBAL 0
16721: # endif
16722: #endif
16723:
16724: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16725: find out it does not work in some platform. */
16726: #ifndef LT_DLLAZY_OR_NOW
16727: # ifdef RTLD_LAZY
16728: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16729: # else
16730: # ifdef DL_LAZY
16731: # define LT_DLLAZY_OR_NOW DL_LAZY
16732: # else
16733: # ifdef RTLD_NOW
16734: # define LT_DLLAZY_OR_NOW RTLD_NOW
16735: # else
16736: # ifdef DL_NOW
16737: # define LT_DLLAZY_OR_NOW DL_NOW
16738: # else
16739: # define LT_DLLAZY_OR_NOW 0
16740: # endif
16741: # endif
16742: # endif
16743: # endif
16744: #endif
16745:
16746: /* When -fvisbility=hidden is used, assume the code has been annotated
16747: correspondingly for the symbols needed. */
16748: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16749: int fnord () __attribute__((visibility("default")));
1.66 paf 16750: #endif
1.62 paf 16751:
1.128 moko 16752: int fnord () { return 42; }
16753: int main ()
1.66 paf 16754: {
1.128 moko 16755: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16756: int status = $lt_dlunknown;
16757:
16758: if (self)
16759: {
16760: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16761: else
16762: {
16763: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16764: else puts (dlerror ());
16765: }
16766: /* dlclose (self); */
16767: }
16768: else
16769: puts (dlerror ());
16770:
16771: return status;
1.66 paf 16772: }
1.128 moko 16773: _LT_EOF
16774: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775: (eval $ac_link) 2>&5
1.66 paf 16776: ac_status=$?
16777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 16778: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16779: (./conftest; exit; ) >&5 2>/dev/null
16780: lt_status=$?
16781: case x$lt_status in
16782: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16783: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16784: x$lt_dlunknown|x*) ;;
16785: esac
16786: else :
16787: # compilation failed
16788:
16789: fi
16790: fi
16791: rm -fr conftest*
16792:
16793: LIBS="$save_LIBS"
16794:
16795: fi
16796: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16797: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16798: fi
16799: fi
16800:
16801: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16802:
1.66 paf 16803: cat >>confdefs.h <<\_ACEOF
1.128 moko 16804: #define NEED_USCORE 1
1.66 paf 16805: _ACEOF
1.29 paf 16806:
1.128 moko 16807: fi
16808:
16809: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16810: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16811: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16812: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16813: else
1.128 moko 16814: # PORTME does your system automatically load deplibs for dlopen?
16815: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16816: # For now, we just catch OSes we know something about -- in the
16817: # future, we'll try test this programmatically.
16818: lt_cv_sys_dlopen_deplibs=unknown
16819: case $host_os in
16820: aix3*|aix4.1.*|aix4.2.*)
16821: # Unknown whether this is true for these versions of AIX, but
16822: # we want this `case' here to explicitly catch those versions.
16823: lt_cv_sys_dlopen_deplibs=unknown
16824: ;;
16825: aix[4-9]*)
16826: lt_cv_sys_dlopen_deplibs=yes
16827: ;;
16828: amigaos*)
16829: case $host_cpu in
16830: powerpc)
16831: lt_cv_sys_dlopen_deplibs=no
16832: ;;
16833: esac
16834: ;;
16835: darwin*)
16836: # Assuming the user has installed a libdl from somewhere, this is true
16837: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16838: lt_cv_sys_dlopen_deplibs=yes
16839: ;;
16840: freebsd* | dragonfly*)
16841: lt_cv_sys_dlopen_deplibs=yes
16842: ;;
16843: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16844: # GNU and its variants, using gnu ld.so (Glibc)
16845: lt_cv_sys_dlopen_deplibs=yes
16846: ;;
16847: hpux10*|hpux11*)
16848: lt_cv_sys_dlopen_deplibs=yes
16849: ;;
16850: interix*)
16851: lt_cv_sys_dlopen_deplibs=yes
16852: ;;
16853: irix[12345]*|irix6.[01]*)
16854: # Catch all versions of IRIX before 6.2, and indicate that we don't
16855: # know how it worked for any of those versions.
16856: lt_cv_sys_dlopen_deplibs=unknown
16857: ;;
16858: irix*)
16859: # The case above catches anything before 6.2, and it's known that
16860: # at 6.2 and later dlopen does load deplibs.
16861: lt_cv_sys_dlopen_deplibs=yes
16862: ;;
16863: netbsd*)
16864: lt_cv_sys_dlopen_deplibs=yes
16865: ;;
16866: openbsd*)
16867: lt_cv_sys_dlopen_deplibs=yes
16868: ;;
16869: osf[1234]*)
16870: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16871: # it did *not* use an RPATH in a shared library to find objects the
16872: # library depends on, so we explicitly say `no'.
16873: lt_cv_sys_dlopen_deplibs=no
16874: ;;
16875: osf5.0|osf5.0a|osf5.1)
16876: # dlopen *does* load deplibs and with the right loader patch applied
16877: # it even uses RPATH in a shared library to search for shared objects
16878: # that the library depends on, but there's no easy way to know if that
16879: # patch is installed. Since this is the case, all we can really
16880: # say is unknown -- it depends on the patch being installed. If
16881: # it is, this changes to `yes'. Without it, it would be `no'.
16882: lt_cv_sys_dlopen_deplibs=unknown
16883: ;;
16884: osf*)
16885: # the two cases above should catch all versions of osf <= 5.1. Read
16886: # the comments above for what we know about them.
16887: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16888: # is used to find them so we can finally say `yes'.
16889: lt_cv_sys_dlopen_deplibs=yes
16890: ;;
16891: qnx*)
16892: lt_cv_sys_dlopen_deplibs=yes
16893: ;;
16894: solaris*)
16895: lt_cv_sys_dlopen_deplibs=yes
16896: ;;
16897: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16898: libltdl_cv_sys_dlopen_deplibs=yes
16899: ;;
16900: esac
16901:
16902: fi
16903: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16904: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16905: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16906:
16907: cat >>confdefs.h <<\_ACEOF
16908: #define LTDL_DLOPEN_DEPLIBS 1
16909: _ACEOF
16910:
16911: fi
16912:
16913: :
16914:
1.29 paf 16915:
1.128 moko 16916: for ac_header in argz.h
16917: do
16918: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16919: echo "$as_me:$LINENO: checking for $ac_header" >&5
16920: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16921: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.66 paf 16922: echo $ECHO_N "(cached) $ECHO_C" >&6
16923: else
1.128 moko 16924: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 16925: /* confdefs.h. */
16926: _ACEOF
16927: cat confdefs.h >>conftest.$ac_ext
16928: cat >>conftest.$ac_ext <<_ACEOF
16929: /* end confdefs.h. */
1.128 moko 16930: $ac_includes_default
1.29 paf 16931:
1.128 moko 16932: #include <$ac_header>
1.66 paf 16933: _ACEOF
1.128 moko 16934: rm -f conftest.$ac_objext
16935: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16936: (eval $ac_compile) 2>conftest.er1
1.66 paf 16937: ac_status=$?
1.86 paf 16938: grep -v '^ *+' conftest.er1 >conftest.err
16939: rm -f conftest.er1
16940: cat conftest.err >&5
1.66 paf 16941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942: (exit $ac_status); } &&
1.86 paf 16943: { ac_try='test -z "$ac_c_werror_flag"
16944: || test ! -s conftest.err'
16945: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946: (eval $ac_try) 2>&5
16947: ac_status=$?
16948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949: (exit $ac_status); }; } &&
1.128 moko 16950: { ac_try='test -s conftest.$ac_objext'
1.66 paf 16951: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952: (eval $ac_try) 2>&5
16953: ac_status=$?
16954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955: (exit $ac_status); }; }; then
1.128 moko 16956: eval "$as_ac_Header=yes"
1.66 paf 16957: else
16958: echo "$as_me: failed program was:" >&5
16959: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 16960:
1.128 moko 16961: eval "$as_ac_Header=no"
16962: fi
16963: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 16964: fi
1.128 moko 16965: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16966: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16967: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16968: cat >>confdefs.h <<_ACEOF
16969: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16970: _ACEOF
16971:
1.66 paf 16972: fi
1.62 paf 16973:
1.128 moko 16974: done
16975:
1.29 paf 16976:
1.128 moko 16977: echo "$as_me:$LINENO: checking for error_t" >&5
16978: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16979: if test "${ac_cv_type_error_t+set}" = set; then
1.66 paf 16980: echo $ECHO_N "(cached) $ECHO_C" >&6
16981: else
1.128 moko 16982: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 16983: /* confdefs.h. */
16984: _ACEOF
16985: cat confdefs.h >>conftest.$ac_ext
16986: cat >>conftest.$ac_ext <<_ACEOF
16987: /* end confdefs.h. */
1.128 moko 16988: #if defined(HAVE_ARGZ_H)
16989: # include <argz.h>
16990: #endif
1.29 paf 16991:
1.66 paf 16992: int
16993: main ()
16994: {
1.128 moko 16995: if ((error_t *) 0)
16996: return 0;
16997: if (sizeof (error_t))
16998: return 0;
1.66 paf 16999: ;
17000: return 0;
17001: }
17002: _ACEOF
1.128 moko 17003: rm -f conftest.$ac_objext
17004: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17005: (eval $ac_compile) 2>conftest.er1
1.66 paf 17006: ac_status=$?
1.86 paf 17007: grep -v '^ *+' conftest.er1 >conftest.err
17008: rm -f conftest.er1
17009: cat conftest.err >&5
1.66 paf 17010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011: (exit $ac_status); } &&
1.86 paf 17012: { ac_try='test -z "$ac_c_werror_flag"
17013: || test ! -s conftest.err'
17014: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015: (eval $ac_try) 2>&5
17016: ac_status=$?
17017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018: (exit $ac_status); }; } &&
1.128 moko 17019: { ac_try='test -s conftest.$ac_objext'
1.66 paf 17020: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021: (eval $ac_try) 2>&5
17022: ac_status=$?
17023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024: (exit $ac_status); }; }; then
1.128 moko 17025: ac_cv_type_error_t=yes
1.66 paf 17026: else
17027: echo "$as_me: failed program was:" >&5
17028: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 17029:
1.128 moko 17030: ac_cv_type_error_t=no
1.66 paf 17031: fi
1.128 moko 17032: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 17033: fi
1.128 moko 17034: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
17035: echo "${ECHO_T}$ac_cv_type_error_t" >&6
17036: if test $ac_cv_type_error_t = yes; then
1.29 paf 17037:
1.128 moko 17038: cat >>confdefs.h <<_ACEOF
17039: #define HAVE_ERROR_T 1
1.62 paf 17040: _ACEOF
1.16 paf 17041:
17042:
1.128 moko 17043: else
1.16 paf 17044:
1.128 moko 17045: cat >>confdefs.h <<\_ACEOF
17046: #define error_t int
17047: _ACEOF
1.16 paf 17048:
1.12 paf 17049:
1.128 moko 17050: cat >>confdefs.h <<\_ACEOF
17051: #define __error_t_defined 1
17052: _ACEOF
1.12 paf 17053:
1.66 paf 17054: fi
1.12 paf 17055:
1.128 moko 17056:
17057: ARGZ_H=
1.12 paf 17058:
17059:
1.62 paf 17060:
1.1 paf 17061:
17062:
17063:
17064:
1.128 moko 17065: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17066: argz_next argz_stringify
1.66 paf 17067: do
17068: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17069: echo "$as_me:$LINENO: checking for $ac_func" >&5
17070: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17071: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17072: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 17073: else
1.64 paf 17074: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17075: /* confdefs.h. */
17076: _ACEOF
17077: cat confdefs.h >>conftest.$ac_ext
17078: cat >>conftest.$ac_ext <<_ACEOF
17079: /* end confdefs.h. */
1.86 paf 17080: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17081: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17082: #define $ac_func innocuous_$ac_func
17083:
1.64 paf 17084: /* System header to define __stub macros and hopefully few prototypes,
1.66 paf 17085: which can conflict with char $ac_func (); below.
1.64 paf 17086: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17087: <limits.h> exists even on freestanding compilers. */
1.86 paf 17088:
1.64 paf 17089: #ifdef __STDC__
17090: # include <limits.h>
17091: #else
17092: # include <assert.h>
17093: #endif
1.86 paf 17094:
17095: #undef $ac_func
17096:
1.8 paf 17097: /* Override any gcc2 internal prototype to avoid an error. */
17098: #ifdef __cplusplus
17099: extern "C"
1.64 paf 17100: {
1.8 paf 17101: #endif
17102: /* We use char because int might match the return type of a gcc2
1.62 paf 17103: builtin and then its argument prototype would still apply. */
1.66 paf 17104: char $ac_func ();
1.64 paf 17105: /* The GNU C library defines this for functions which it implements
17106: to always fail with ENOSYS. Some functions are actually named
17107: something starting with __ and the normal name is an alias. */
1.66 paf 17108: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.64 paf 17109: choke me
17110: #else
1.66 paf 17111: char (*f) () = $ac_func;
1.64 paf 17112: #endif
17113: #ifdef __cplusplus
17114: }
17115: #endif
17116:
1.62 paf 17117: int
17118: main ()
17119: {
1.66 paf 17120: return f != $ac_func;
1.62 paf 17121: ;
17122: return 0;
17123: }
17124: _ACEOF
17125: rm -f conftest.$ac_objext conftest$ac_exeext
17126: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 17127: (eval $ac_link) 2>conftest.er1
1.62 paf 17128: ac_status=$?
1.86 paf 17129: grep -v '^ *+' conftest.er1 >conftest.err
17130: rm -f conftest.er1
17131: cat conftest.err >&5
1.62 paf 17132: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133: (exit $ac_status); } &&
1.86 paf 17134: { ac_try='test -z "$ac_c_werror_flag"
17135: || test ! -s conftest.err'
17136: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137: (eval $ac_try) 2>&5
17138: ac_status=$?
17139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140: (exit $ac_status); }; } &&
17141: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17142: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.128 moko 17143: (eval $ac_try) 2>&5
17144: ac_status=$?
17145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146: (exit $ac_status); }; }; then
17147: eval "$as_ac_var=yes"
17148: else
17149: echo "$as_me: failed program was:" >&5
17150: sed 's/^/| /' conftest.$ac_ext >&5
17151:
17152: eval "$as_ac_var=no"
17153: fi
17154: rm -f conftest.err conftest.$ac_objext \
17155: conftest$ac_exeext conftest.$ac_ext
17156: fi
17157: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17158: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17159: if test `eval echo '${'$as_ac_var'}'` = yes; then
17160: cat >>confdefs.h <<_ACEOF
17161: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17162: _ACEOF
17163:
17164: else
17165: ARGZ_H=argz.h;
17166:
17167: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17168:
17169: fi
17170: done
17171:
17172:
17173: if test -z "$ARGZ_H"; then
17174: echo "$as_me:$LINENO: checking if argz actually works" >&5
17175: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
17176: if test "${lt_cv_sys_argz_works+set}" = set; then
17177: echo $ECHO_N "(cached) $ECHO_C" >&6
17178: else
17179: case $host_os in #(
17180: *cygwin*)
17181: lt_cv_sys_argz_works=no
17182: if test "$cross_compiling" != no; then
17183: lt_cv_sys_argz_works="guessing no"
17184: else
17185: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17186: save_IFS=$IFS
17187: IFS=-.
17188: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17189: IFS=$save_IFS
17190: lt_os_major=${2-0}
17191: lt_os_minor=${3-0}
17192: lt_os_micro=${4-0}
17193: if test "$lt_os_major" -gt 1 \
17194: || { test "$lt_os_major" -eq 1 \
17195: && { test "$lt_os_minor" -gt 5 \
17196: || { test "$lt_os_minor" -eq 5 \
17197: && test "$lt_os_micro" -gt 24; }; }; }; then
17198: lt_cv_sys_argz_works=yes
17199: fi
17200: fi
17201: ;; #(
17202: *) lt_cv_sys_argz_works=yes ;;
17203: esac
17204: fi
17205: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
17206: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
17207: if test "$lt_cv_sys_argz_works" = yes; then
17208:
17209: cat >>confdefs.h <<\_ACEOF
17210: #define HAVE_WORKING_ARGZ 1
17211: _ACEOF
17212:
1.62 paf 17213: else
1.128 moko 17214: ARGZ_H=argz.h
17215:
17216:
17217: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17218:
17219: fi
1.62 paf 17220:
17221: fi
1.128 moko 17222:
17223:
17224:
17225:
17226: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
17227: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
17228: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
17229: echo $ECHO_N "(cached) $ECHO_C" >&6
17230: else
17231: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17232: libltdl_cv_preloaded_symbols=yes
17233: else
17234: libltdl_cv_preloaded_symbols=no
17235: fi
17236:
1.62 paf 17237: fi
1.128 moko 17238: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
17239: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
17240: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17241:
17242: cat >>confdefs.h <<\_ACEOF
17243: #define HAVE_PRELOADED_SYMBOLS 1
1.66 paf 17244: _ACEOF
17245:
17246: fi
17247:
1.128 moko 17248: # Set options
17249:
17250:
17251:
17252:
17253:
17254:
17255:
17256:
17257:
17258:
1.66 paf 17259:
17260:
1.128 moko 17261: # Check whether --with-included_ltdl or --without-included_ltdl was given.
17262: if test "${with_included_ltdl+set}" = set; then
17263: withval="$with_included_ltdl"
1.64 paf 17264:
1.128 moko 17265: fi;
1.64 paf 17266:
1.128 moko 17267: if test "x$with_included_ltdl" != xyes; then
17268: # We are not being forced to use the included libltdl sources, so
17269: # decide whether there is a useful installed version we can use.
17270: echo "$as_me:$LINENO: checking for ltdl.h" >&5
17271: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
17272: if test "${ac_cv_header_ltdl_h+set}" = set; then
1.79 paf 17273: echo $ECHO_N "(cached) $ECHO_C" >&6
17274: else
1.128 moko 17275: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17276: /* confdefs.h. */
17277: _ACEOF
17278: cat confdefs.h >>conftest.$ac_ext
17279: cat >>conftest.$ac_ext <<_ACEOF
17280: /* end confdefs.h. */
1.128 moko 17281: $ac_includes_default
1.79 paf 17282:
17283:
1.128 moko 17284: #include <ltdl.h>
1.79 paf 17285: _ACEOF
17286: rm -f conftest.$ac_objext
17287: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17288: (eval $ac_compile) 2>conftest.er1
1.79 paf 17289: ac_status=$?
1.86 paf 17290: grep -v '^ *+' conftest.er1 >conftest.err
17291: rm -f conftest.er1
17292: cat conftest.err >&5
1.79 paf 17293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294: (exit $ac_status); } &&
1.86 paf 17295: { ac_try='test -z "$ac_c_werror_flag"
17296: || test ! -s conftest.err'
17297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298: (eval $ac_try) 2>&5
17299: ac_status=$?
17300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301: (exit $ac_status); }; } &&
17302: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17303: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304: (eval $ac_try) 2>&5
17305: ac_status=$?
17306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307: (exit $ac_status); }; }; then
1.128 moko 17308: ac_cv_header_ltdl_h=yes
17309: else
17310: echo "$as_me: failed program was:" >&5
17311: sed 's/^/| /' conftest.$ac_ext >&5
17312:
17313: ac_cv_header_ltdl_h=no
17314: fi
17315: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17316: fi
17317: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
17318: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
17319: if test $ac_cv_header_ltdl_h = yes; then
17320: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
17321: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
17322: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
17323: echo $ECHO_N "(cached) $ECHO_C" >&6
17324: else
17325: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17326: /* confdefs.h. */
17327: _ACEOF
17328: cat confdefs.h >>conftest.$ac_ext
17329: cat >>conftest.$ac_ext <<_ACEOF
17330: /* end confdefs.h. */
1.128 moko 17331: $ac_includes_default
17332: #include <ltdl.h>
1.79 paf 17333:
17334: int
17335: main ()
17336: {
1.128 moko 17337: #ifndef lt_dlinterface_register
17338: char *p = (char *) lt_dlinterface_register;
1.79 paf 17339: #endif
17340:
17341: ;
17342: return 0;
17343: }
17344: _ACEOF
17345: rm -f conftest.$ac_objext
17346: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17347: (eval $ac_compile) 2>conftest.er1
1.79 paf 17348: ac_status=$?
1.86 paf 17349: grep -v '^ *+' conftest.er1 >conftest.err
17350: rm -f conftest.er1
17351: cat conftest.err >&5
1.79 paf 17352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353: (exit $ac_status); } &&
1.86 paf 17354: { ac_try='test -z "$ac_c_werror_flag"
17355: || test ! -s conftest.err'
17356: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357: (eval $ac_try) 2>&5
17358: ac_status=$?
17359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360: (exit $ac_status); }; } &&
17361: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17362: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363: (eval $ac_try) 2>&5
17364: ac_status=$?
17365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366: (exit $ac_status); }; }; then
1.128 moko 17367: ac_cv_have_decl_lt_dlinterface_register=yes
1.79 paf 17368: else
17369: echo "$as_me: failed program was:" >&5
17370: sed 's/^/| /' conftest.$ac_ext >&5
17371:
1.128 moko 17372: ac_cv_have_decl_lt_dlinterface_register=no
1.79 paf 17373: fi
1.86 paf 17374: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17375: fi
17376: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
17377: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
17378: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
17379: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
17380: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
17381: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
17382: echo $ECHO_N "(cached) $ECHO_C" >&6
1.79 paf 17383: else
1.128 moko 17384: ac_check_lib_save_LIBS=$LIBS
17385: LIBS="-lltdl $LIBS"
17386: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17387: /* confdefs.h. */
17388: _ACEOF
17389: cat confdefs.h >>conftest.$ac_ext
17390: cat >>conftest.$ac_ext <<_ACEOF
17391: /* end confdefs.h. */
1.128 moko 17392:
17393: /* Override any gcc2 internal prototype to avoid an error. */
17394: #ifdef __cplusplus
17395: extern "C"
17396: #endif
17397: /* We use char because int might match the return type of a gcc2
17398: builtin and then its argument prototype would still apply. */
17399: char lt_dladvise_preload ();
1.79 paf 17400: int
17401: main ()
17402: {
1.128 moko 17403: lt_dladvise_preload ();
1.79 paf 17404: ;
17405: return 0;
17406: }
17407: _ACEOF
1.128 moko 17408: rm -f conftest.$ac_objext conftest$ac_exeext
17409: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17410: (eval $ac_link) 2>conftest.er1
1.79 paf 17411: ac_status=$?
1.86 paf 17412: grep -v '^ *+' conftest.er1 >conftest.err
17413: rm -f conftest.er1
17414: cat conftest.err >&5
1.79 paf 17415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416: (exit $ac_status); } &&
1.86 paf 17417: { ac_try='test -z "$ac_c_werror_flag"
17418: || test ! -s conftest.err'
17419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420: (eval $ac_try) 2>&5
17421: ac_status=$?
17422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423: (exit $ac_status); }; } &&
1.128 moko 17424: { ac_try='test -s conftest$ac_exeext'
1.79 paf 17425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426: (eval $ac_try) 2>&5
17427: ac_status=$?
17428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429: (exit $ac_status); }; }; then
1.128 moko 17430: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17431: else
17432: echo "$as_me: failed program was:" >&5
17433: sed 's/^/| /' conftest.$ac_ext >&5
17434:
1.128 moko 17435: ac_cv_lib_ltdl_lt_dladvise_preload=no
17436: fi
17437: rm -f conftest.err conftest.$ac_objext \
17438: conftest$ac_exeext conftest.$ac_ext
17439: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17440: fi
1.128 moko 17441: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17442: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
17443: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
17444: with_included_ltdl=no
1.79 paf 17445: else
1.128 moko 17446: with_included_ltdl=yes
17447: fi
17448:
1.79 paf 17449: else
1.128 moko 17450: with_included_ltdl=yes
17451: fi
1.79 paf 17452:
1.128 moko 17453: else
17454: with_included_ltdl=yes
1.79 paf 17455: fi
1.128 moko 17456:
17457:
1.79 paf 17458: fi
1.128 moko 17459:
17460:
17461:
17462:
17463: # Check whether --with-ltdl_include or --without-ltdl_include was given.
17464: if test "${with_ltdl_include+set}" = set; then
17465: withval="$with_ltdl_include"
17466:
17467: fi;
17468:
17469: if test -n "$with_ltdl_include"; then
17470: if test -f "$with_ltdl_include/ltdl.h"; then :
17471: else
17472: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
17473: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
17474: { (exit 1); exit 1; }; }
17475: fi
17476: else
17477: with_ltdl_include=no
1.79 paf 17478: fi
1.128 moko 17479:
17480:
17481: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
17482: if test "${with_ltdl_lib+set}" = set; then
17483: withval="$with_ltdl_lib"
17484:
17485: fi;
17486:
17487: if test -n "$with_ltdl_lib"; then
17488: if test -f "$with_ltdl_lib/libltdl.la"; then :
17489: else
17490: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
17491: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
17492: { (exit 1); exit 1; }; }
17493: fi
17494: else
17495: with_ltdl_lib=no
1.79 paf 17496: fi
17497:
1.128 moko 17498: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17499: ,yes,no,no,)
17500: case $enable_ltdl_convenience in
17501: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
17502: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
17503: { (exit 1); exit 1; }; } ;;
17504: "") enable_ltdl_convenience=yes
17505: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17506: esac
17507: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
17508: LTDLDEPS=$LIBLTDL
17509: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17510:
17511:
17512:
17513:
17514:
17515: # For backwards non-gettext consistent compatibility...
17516: INCLTDL="$LTDLINCL"
17517:
1.79 paf 17518:
1.128 moko 17519: ;;
17520: ,no,no,no,)
17521: # If the included ltdl is not to be used, then use the
17522: # preinstalled libltdl we found.
1.79 paf 17523:
17524: cat >>confdefs.h <<\_ACEOF
1.128 moko 17525: #define HAVE_LTDL 1
1.79 paf 17526: _ACEOF
17527:
1.128 moko 17528: LIBLTDL=-lltdl
17529: LTDLDEPS=
17530: LTDLINCL=
17531: ;;
17532: ,no*,no,*)
17533: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
17534: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
1.79 paf 17535: { (exit 1); exit 1; }; }
1.128 moko 17536: ;;
17537: *) with_included_ltdl=no
17538: LIBLTDL="-L$with_ltdl_lib -lltdl"
17539: LTDLDEPS=
17540: LTDLINCL="-I$with_ltdl_include"
17541: ;;
17542: esac
17543: INCLTDL="$LTDLINCL"
17544:
17545: # Report our decision...
17546: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17547: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17548: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17549: echo "${ECHO_T}$LTDLINCL" >&6
17550: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17551: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17552: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17553: echo "${ECHO_T}$LIBLTDL" >&6
17554:
17555:
17556:
17557: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17558: if test "${enable_ltdl_install+set}" = set; then
17559: enableval="$enable_ltdl_install"
17560:
17561: fi;
17562:
17563: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17564: *yes*) ;;
17565: *) enable_ltdl_convenience=yes ;;
17566: esac
17567:
17568:
17569:
17570: if test x"${enable_ltdl_install-no}" != xno; then
17571: INSTALL_LTDL_TRUE=
17572: INSTALL_LTDL_FALSE='#'
17573: else
17574: INSTALL_LTDL_TRUE='#'
17575: INSTALL_LTDL_FALSE=
17576: fi
17577:
17578:
17579:
17580: if test x"${enable_ltdl_convenience-no}" != xno; then
17581: CONVENIENCE_LTDL_TRUE=
17582: CONVENIENCE_LTDL_FALSE='#'
17583: else
17584: CONVENIENCE_LTDL_TRUE='#'
17585: CONVENIENCE_LTDL_FALSE=
17586: fi
17587:
17588:
17589:
17590:
17591:
17592: subdirs="$subdirs src/lib/ltdl"
17593:
17594:
17595:
17596:
17597: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17598: # the user used. This is so that ltdl.h can pick up the parent projects
17599: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17600: # definitions required by ltdl.c.
17601: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17602:
17603:
17604:
17605:
17606:
17607:
17608:
1.79 paf 17609:
17610:
1.128 moko 17611: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17612: do
17613: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17614: echo "$as_me:$LINENO: checking for $ac_header" >&5
17615: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17616: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.62 paf 17617: echo $ECHO_N "(cached) $ECHO_C" >&6
17618: else
1.66 paf 17619: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17620: /* confdefs.h. */
17621: _ACEOF
17622: cat confdefs.h >>conftest.$ac_ext
17623: cat >>conftest.$ac_ext <<_ACEOF
17624: /* end confdefs.h. */
1.128 moko 17625: $ac_includes_default
17626:
17627: #include <$ac_header>
1.62 paf 17628: _ACEOF
1.128 moko 17629: rm -f conftest.$ac_objext
17630: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631: (eval $ac_compile) 2>conftest.er1
1.62 paf 17632: ac_status=$?
1.66 paf 17633: grep -v '^ *+' conftest.er1 >conftest.err
17634: rm -f conftest.er1
17635: cat conftest.err >&5
1.62 paf 17636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17637: (exit $ac_status); } &&
17638: { ac_try='test -z "$ac_c_werror_flag"
17639: || test ! -s conftest.err'
17640: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641: (eval $ac_try) 2>&5
17642: ac_status=$?
17643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644: (exit $ac_status); }; } &&
17645: { ac_try='test -s conftest.$ac_objext'
17646: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647: (eval $ac_try) 2>&5
17648: ac_status=$?
17649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650: (exit $ac_status); }; }; then
17651: eval "$as_ac_Header=yes"
1.62 paf 17652: else
17653: echo "$as_me: failed program was:" >&5
17654: sed 's/^/| /' conftest.$ac_ext >&5
17655:
1.128 moko 17656: eval "$as_ac_Header=no"
17657: fi
17658: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 17659: fi
1.128 moko 17660: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17661: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17662: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17663: cat >>confdefs.h <<_ACEOF
17664: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 17665: _ACEOF
17666:
17667: fi
1.66 paf 17668:
17669: done
1.64 paf 17670:
17671:
1.128 moko 17672:
17673:
17674:
17675: for ac_func in closedir opendir readdir
17676: do
17677: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17678: echo "$as_me:$LINENO: checking for $ac_func" >&5
17679: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17680: if eval "test \"\${$as_ac_var+set}\" = set"; then
17681: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 paf 17682: else
17683: cat >conftest.$ac_ext <<_ACEOF
17684: /* confdefs.h. */
17685: _ACEOF
17686: cat confdefs.h >>conftest.$ac_ext
17687: cat >>conftest.$ac_ext <<_ACEOF
17688: /* end confdefs.h. */
1.128 moko 17689: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17690: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17691: #define $ac_func innocuous_$ac_func
17692:
17693: /* System header to define __stub macros and hopefully few prototypes,
17694: which can conflict with char $ac_func (); below.
17695: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696: <limits.h> exists even on freestanding compilers. */
17697:
1.66 paf 17698: #ifdef __STDC__
17699: # include <limits.h>
17700: #else
17701: # include <assert.h>
1.64 paf 17702: #endif
1.128 moko 17703:
17704: #undef $ac_func
17705:
17706: /* Override any gcc2 internal prototype to avoid an error. */
17707: #ifdef __cplusplus
17708: extern "C"
17709: {
17710: #endif
17711: /* We use char because int might match the return type of a gcc2
17712: builtin and then its argument prototype would still apply. */
17713: char $ac_func ();
17714: /* The GNU C library defines this for functions which it implements
17715: to always fail with ENOSYS. Some functions are actually named
17716: something starting with __ and the normal name is an alias. */
17717: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17718: choke me
17719: #else
17720: char (*f) () = $ac_func;
17721: #endif
17722: #ifdef __cplusplus
17723: }
17724: #endif
17725:
17726: int
17727: main ()
17728: {
17729: return f != $ac_func;
17730: ;
17731: return 0;
17732: }
1.64 paf 17733: _ACEOF
1.128 moko 17734: rm -f conftest.$ac_objext conftest$ac_exeext
17735: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736: (eval $ac_link) 2>conftest.er1
1.64 paf 17737: ac_status=$?
1.66 paf 17738: grep -v '^ *+' conftest.er1 >conftest.err
17739: rm -f conftest.er1
17740: cat conftest.err >&5
1.64 paf 17741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17742: (exit $ac_status); } &&
17743: { ac_try='test -z "$ac_c_werror_flag"
17744: || test ! -s conftest.err'
17745: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746: (eval $ac_try) 2>&5
17747: ac_status=$?
17748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749: (exit $ac_status); }; } &&
17750: { ac_try='test -s conftest$ac_exeext'
17751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752: (eval $ac_try) 2>&5
1.62 paf 17753: ac_status=$?
17754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17755: (exit $ac_status); }; }; then
17756: eval "$as_ac_var=yes"
1.62 paf 17757: else
17758: echo "$as_me: failed program was:" >&5
17759: sed 's/^/| /' conftest.$ac_ext >&5
17760:
1.128 moko 17761: eval "$as_ac_var=no"
17762: fi
17763: rm -f conftest.err conftest.$ac_objext \
17764: conftest$ac_exeext conftest.$ac_ext
1.62 paf 17765: fi
1.128 moko 17766: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17767: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17768: if test `eval echo '${'$as_ac_var'}'` = yes; then
17769: cat >>confdefs.h <<_ACEOF
17770: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17771: _ACEOF
1.66 paf 17772:
17773: else
1.64 paf 17774:
1.66 paf 17775:
1.128 moko 17776: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17777:
1.66 paf 17778: fi
1.128 moko 17779: done
17780:
1.66 paf 17781:
17782:
1.128 moko 17783: for ac_func in strlcat strlcpy
17784: do
17785: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17786: echo "$as_me:$LINENO: checking for $ac_func" >&5
17787: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17788: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17789: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 17790: else
1.66 paf 17791: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17792: /* confdefs.h. */
17793: _ACEOF
17794: cat confdefs.h >>conftest.$ac_ext
17795: cat >>conftest.$ac_ext <<_ACEOF
17796: /* end confdefs.h. */
1.128 moko 17797: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17798: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17799: #define $ac_func innocuous_$ac_func
17800:
17801: /* System header to define __stub macros and hopefully few prototypes,
17802: which can conflict with char $ac_func (); below.
17803: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804: <limits.h> exists even on freestanding compilers. */
17805:
17806: #ifdef __STDC__
17807: # include <limits.h>
17808: #else
17809: # include <assert.h>
17810: #endif
17811:
17812: #undef $ac_func
17813:
17814: /* Override any gcc2 internal prototype to avoid an error. */
17815: #ifdef __cplusplus
17816: extern "C"
17817: {
17818: #endif
17819: /* We use char because int might match the return type of a gcc2
17820: builtin and then its argument prototype would still apply. */
17821: char $ac_func ();
17822: /* The GNU C library defines this for functions which it implements
17823: to always fail with ENOSYS. Some functions are actually named
17824: something starting with __ and the normal name is an alias. */
17825: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17826: choke me
17827: #else
17828: char (*f) () = $ac_func;
17829: #endif
17830: #ifdef __cplusplus
17831: }
17832: #endif
1.62 paf 17833:
17834: int
17835: main ()
17836: {
1.128 moko 17837: return f != $ac_func;
1.62 paf 17838: ;
17839: return 0;
17840: }
17841: _ACEOF
1.128 moko 17842: rm -f conftest.$ac_objext conftest$ac_exeext
17843: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17844: (eval $ac_link) 2>conftest.er1
1.62 paf 17845: ac_status=$?
1.86 paf 17846: grep -v '^ *+' conftest.er1 >conftest.err
17847: rm -f conftest.er1
17848: cat conftest.err >&5
1.62 paf 17849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850: (exit $ac_status); } &&
1.86 paf 17851: { ac_try='test -z "$ac_c_werror_flag"
17852: || test ! -s conftest.err'
17853: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854: (eval $ac_try) 2>&5
17855: ac_status=$?
17856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857: (exit $ac_status); }; } &&
1.128 moko 17858: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17859: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860: (eval $ac_try) 2>&5
17861: ac_status=$?
17862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863: (exit $ac_status); }; }; then
1.128 moko 17864: eval "$as_ac_var=yes"
1.62 paf 17865: else
17866: echo "$as_me: failed program was:" >&5
17867: sed 's/^/| /' conftest.$ac_ext >&5
17868:
1.128 moko 17869: eval "$as_ac_var=no"
17870: fi
17871: rm -f conftest.err conftest.$ac_objext \
17872: conftest$ac_exeext conftest.$ac_ext
17873: fi
17874: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17875: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17876: if test `eval echo '${'$as_ac_var'}'` = yes; then
17877: cat >>confdefs.h <<_ACEOF
17878: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17879: _ACEOF
17880:
17881: else
17882:
17883:
17884: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17885:
1.62 paf 17886: fi
1.128 moko 17887: done
17888:
17889:
1.64 paf 17890:
1.128 moko 17891: cat >>confdefs.h <<_ACEOF
17892: #define LT_LIBEXT "$libext"
1.62 paf 17893: _ACEOF
1.64 paf 17894:
1.128 moko 17895:
17896: name=
17897: eval "lt_libprefix=\"$libname_spec\""
17898:
17899: cat >>confdefs.h <<_ACEOF
17900: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17901: _ACEOF
1.128 moko 17902:
17903:
17904: name=ltdl
17905: eval "LTDLOPEN=\"$libname_spec\""
17906:
17907:
17908:
17909:
17910:
17911:
17912:
17913:
17914: # Only expand once:
17915:
17916:
17917:
17918:
17919: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17920: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17921: if test "${ac_cv_c_bigendian+set}" = set; then
17922: echo $ECHO_N "(cached) $ECHO_C" >&6
17923: else
17924: # See if sys/param.h defines the BYTE_ORDER macro.
17925: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 17926: /* confdefs.h. */
17927: _ACEOF
17928: cat confdefs.h >>conftest.$ac_ext
17929: cat >>conftest.$ac_ext <<_ACEOF
17930: /* end confdefs.h. */
1.128 moko 17931: #include <sys/types.h>
17932: #include <sys/param.h>
17933:
17934: int
17935: main ()
17936: {
17937: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17938: bogus endian macros
17939: #endif
1.64 paf 17940:
1.128 moko 17941: ;
17942: return 0;
17943: }
1.66 paf 17944: _ACEOF
1.128 moko 17945: rm -f conftest.$ac_objext
17946: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17947: (eval $ac_compile) 2>conftest.er1
17948: ac_status=$?
17949: grep -v '^ *+' conftest.er1 >conftest.err
17950: rm -f conftest.er1
17951: cat conftest.err >&5
17952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953: (exit $ac_status); } &&
17954: { ac_try='test -z "$ac_c_werror_flag"
17955: || test ! -s conftest.err'
17956: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957: (eval $ac_try) 2>&5
17958: ac_status=$?
17959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960: (exit $ac_status); }; } &&
17961: { ac_try='test -s conftest.$ac_objext'
17962: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963: (eval $ac_try) 2>&5
17964: ac_status=$?
17965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966: (exit $ac_status); }; }; then
17967: # It does; now see whether it defined to BIG_ENDIAN or not.
17968: cat >conftest.$ac_ext <<_ACEOF
1.64 paf 17969: /* confdefs.h. */
17970: _ACEOF
17971: cat confdefs.h >>conftest.$ac_ext
17972: cat >>conftest.$ac_ext <<_ACEOF
17973: /* end confdefs.h. */
1.128 moko 17974: #include <sys/types.h>
17975: #include <sys/param.h>
1.64 paf 17976:
17977: int
17978: main ()
1.128 moko 17979: {
17980: #if BYTE_ORDER != BIG_ENDIAN
17981: not big endian
17982: #endif
17983:
17984: ;
17985: return 0;
1.64 paf 17986: }
17987: _ACEOF
1.128 moko 17988: rm -f conftest.$ac_objext
17989: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17990: (eval $ac_compile) 2>conftest.er1
17991: ac_status=$?
17992: grep -v '^ *+' conftest.er1 >conftest.err
17993: rm -f conftest.er1
17994: cat conftest.err >&5
17995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996: (exit $ac_status); } &&
17997: { ac_try='test -z "$ac_c_werror_flag"
17998: || test ! -s conftest.err'
17999: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000: (eval $ac_try) 2>&5
1.64 paf 18001: ac_status=$?
18002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 18003: (exit $ac_status); }; } &&
18004: { ac_try='test -s conftest.$ac_objext'
1.64 paf 18005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006: (eval $ac_try) 2>&5
18007: ac_status=$?
18008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009: (exit $ac_status); }; }; then
1.128 moko 18010: ac_cv_c_bigendian=yes
1.64 paf 18011: else
1.128 moko 18012: echo "$as_me: failed program was:" >&5
1.64 paf 18013: sed 's/^/| /' conftest.$ac_ext >&5
18014:
1.128 moko 18015: ac_cv_c_bigendian=no
1.66 paf 18016: fi
1.128 moko 18017: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018: else
18019: echo "$as_me: failed program was:" >&5
18020: sed 's/^/| /' conftest.$ac_ext >&5
1.66 paf 18021:
1.128 moko 18022: # It does not; compile a test program.
18023: if test "$cross_compiling" = yes; then
18024: # try to guess the endianness by grepping values into an object file
18025: ac_cv_c_bigendian=unknown
1.62 paf 18026: cat >conftest.$ac_ext <<_ACEOF
18027: /* confdefs.h. */
18028: _ACEOF
18029: cat confdefs.h >>conftest.$ac_ext
18030: cat >>conftest.$ac_ext <<_ACEOF
18031: /* end confdefs.h. */
1.128 moko 18032: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18033: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18034: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
18035: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18036: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18037: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
18038: int
18039: main ()
18040: {
18041: _ascii (); _ebcdic ();
18042: ;
18043: return 0;
18044: }
1.62 paf 18045: _ACEOF
1.66 paf 18046: rm -f conftest.$ac_objext
18047: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18048: (eval $ac_compile) 2>conftest.er1
1.66 paf 18049: ac_status=$?
1.86 paf 18050: grep -v '^ *+' conftest.er1 >conftest.err
18051: rm -f conftest.er1
18052: cat conftest.err >&5
1.66 paf 18053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054: (exit $ac_status); } &&
1.86 paf 18055: { ac_try='test -z "$ac_c_werror_flag"
18056: || test ! -s conftest.err'
18057: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058: (eval $ac_try) 2>&5
18059: ac_status=$?
18060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061: (exit $ac_status); }; } &&
18062: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18063: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064: (eval $ac_try) 2>&5
1.62 paf 18065: ac_status=$?
18066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18067: (exit $ac_status); }; }; then
1.128 moko 18068: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
18069: ac_cv_c_bigendian=yes
18070: fi
18071: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18072: if test "$ac_cv_c_bigendian" = unknown; then
18073: ac_cv_c_bigendian=no
18074: else
18075: # finding both strings is unlikely to happen, but who knows?
18076: ac_cv_c_bigendian=unknown
18077: fi
18078: fi
1.62 paf 18079: else
18080: echo "$as_me: failed program was:" >&5
18081: sed 's/^/| /' conftest.$ac_ext >&5
18082:
1.128 moko 18083: fi
18084: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18085: else
18086: cat >conftest.$ac_ext <<_ACEOF
18087: /* confdefs.h. */
18088: _ACEOF
18089: cat confdefs.h >>conftest.$ac_ext
18090: cat >>conftest.$ac_ext <<_ACEOF
18091: /* end confdefs.h. */
18092: int
18093: main ()
18094: {
18095: /* Are we little or big endian? From Harbison&Steele. */
18096: union
18097: {
18098: long l;
18099: char c[sizeof (long)];
18100: } u;
18101: u.l = 1;
18102: exit (u.c[sizeof (long) - 1] == 1);
18103: }
18104: _ACEOF
18105: rm -f conftest$ac_exeext
18106: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107: (eval $ac_link) 2>&5
18108: ac_status=$?
18109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18111: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112: (eval $ac_try) 2>&5
18113: ac_status=$?
18114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115: (exit $ac_status); }; }; then
18116: ac_cv_c_bigendian=no
18117: else
18118: echo "$as_me: program exited with status $ac_status" >&5
18119: echo "$as_me: failed program was:" >&5
18120: sed 's/^/| /' conftest.$ac_ext >&5
18121:
18122: ( exit $ac_status )
18123: ac_cv_c_bigendian=yes
18124: fi
18125: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18126: fi
1.66 paf 18127: fi
1.86 paf 18128: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18129: fi
1.128 moko 18130: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18131: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18132: case $ac_cv_c_bigendian in
18133: yes)
18134:
18135: cat >>confdefs.h <<\_ACEOF
18136: #define PA_BIG_ENDIAN
1.66 paf 18137: _ACEOF
18138:
1.128 moko 18139: ;;
18140: no)
18141:
18142: cat >>confdefs.h <<\_ACEOF
18143: #define PA_LITTLE_ENDIAN
18144: _ACEOF
1.1 paf 18145:
1.128 moko 18146: ;;
18147: *)
18148: { { echo "$as_me:$LINENO: error: word endianness not determined for some obscure reason" >&5
18149: echo "$as_me: error: word endianness not determined for some obscure reason" >&2;}
18150: { (exit 1); exit 1; }; }
18151: ;;
18152: esac
1.66 paf 18153:
18154:
18155: echo "$as_me:$LINENO: checking for size_t" >&5
18156: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18157: if test "${ac_cv_type_size_t+set}" = set; then
18158: echo $ECHO_N "(cached) $ECHO_C" >&6
18159: else
1.62 paf 18160: cat >conftest.$ac_ext <<_ACEOF
18161: /* confdefs.h. */
18162: _ACEOF
18163: cat confdefs.h >>conftest.$ac_ext
18164: cat >>conftest.$ac_ext <<_ACEOF
18165: /* end confdefs.h. */
1.66 paf 18166: $ac_includes_default
18167: int
18168: main ()
18169: {
18170: if ((size_t *) 0)
18171: return 0;
18172: if (sizeof (size_t))
18173: return 0;
18174: ;
18175: return 0;
18176: }
1.62 paf 18177: _ACEOF
1.66 paf 18178: rm -f conftest.$ac_objext
18179: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18180: (eval $ac_compile) 2>conftest.er1
1.66 paf 18181: ac_status=$?
1.86 paf 18182: grep -v '^ *+' conftest.er1 >conftest.err
18183: rm -f conftest.er1
18184: cat conftest.err >&5
1.66 paf 18185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186: (exit $ac_status); } &&
1.86 paf 18187: { ac_try='test -z "$ac_c_werror_flag"
18188: || test ! -s conftest.err'
18189: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190: (eval $ac_try) 2>&5
18191: ac_status=$?
18192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193: (exit $ac_status); }; } &&
18194: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18195: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196: (eval $ac_try) 2>&5
1.62 paf 18197: ac_status=$?
18198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18199: (exit $ac_status); }; }; then
18200: ac_cv_type_size_t=yes
1.1 paf 18201: else
1.62 paf 18202: echo "$as_me: failed program was:" >&5
18203: sed 's/^/| /' conftest.$ac_ext >&5
18204:
1.66 paf 18205: ac_cv_type_size_t=no
1.1 paf 18206: fi
1.86 paf 18207: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18208: fi
1.66 paf 18209: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18210: echo "${ECHO_T}$ac_cv_type_size_t" >&6
18211: if test $ac_cv_type_size_t = yes; then
18212: :
18213: else
1.1 paf 18214:
1.66 paf 18215: cat >>confdefs.h <<_ACEOF
18216: #define size_t unsigned
18217: _ACEOF
1.62 paf 18218:
18219: fi
1.66 paf 18220:
1.128 moko 18221:
18222:
1.66 paf 18223: echo "$as_me:$LINENO: checking for off_t" >&5
18224: echo $ECHO_N "checking for off_t... $ECHO_C" >&6
18225: if test "${ac_cv_type_off_t+set}" = set; then
18226: echo $ECHO_N "(cached) $ECHO_C" >&6
1.62 paf 18227: else
18228: cat >conftest.$ac_ext <<_ACEOF
18229: /* confdefs.h. */
18230: _ACEOF
18231: cat confdefs.h >>conftest.$ac_ext
18232: cat >>conftest.$ac_ext <<_ACEOF
18233: /* end confdefs.h. */
1.66 paf 18234: $ac_includes_default
18235: int
18236: main ()
18237: {
18238: if ((off_t *) 0)
18239: return 0;
18240: if (sizeof (off_t))
18241: return 0;
18242: ;
18243: return 0;
18244: }
1.62 paf 18245: _ACEOF
1.66 paf 18246: rm -f conftest.$ac_objext
18247: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18248: (eval $ac_compile) 2>conftest.er1
1.66 paf 18249: ac_status=$?
1.86 paf 18250: grep -v '^ *+' conftest.er1 >conftest.err
18251: rm -f conftest.er1
18252: cat conftest.err >&5
1.66 paf 18253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254: (exit $ac_status); } &&
1.86 paf 18255: { ac_try='test -z "$ac_c_werror_flag"
18256: || test ! -s conftest.err'
18257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258: (eval $ac_try) 2>&5
18259: ac_status=$?
18260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261: (exit $ac_status); }; } &&
18262: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18263: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264: (eval $ac_try) 2>&5
1.62 paf 18265: ac_status=$?
18266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18267: (exit $ac_status); }; }; then
18268: ac_cv_type_off_t=yes
1.62 paf 18269: else
1.66 paf 18270: echo "$as_me: failed program was:" >&5
18271: sed 's/^/| /' conftest.$ac_ext >&5
18272:
18273: ac_cv_type_off_t=no
18274: fi
1.86 paf 18275: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18276: fi
1.66 paf 18277: echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18278: echo "${ECHO_T}$ac_cv_type_off_t" >&6
18279: if test $ac_cv_type_off_t = yes; then
1.62 paf 18280: :
18281: else
1.1 paf 18282:
1.66 paf 18283: cat >>confdefs.h <<_ACEOF
18284: #define off_t long
18285: _ACEOF
18286:
1.62 paf 18287: fi
1.1 paf 18288:
1.66 paf 18289: echo "$as_me:$LINENO: checking for ssize_t" >&5
18290: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18291: if test "${ac_cv_type_ssize_t+set}" = set; then
18292: echo $ECHO_N "(cached) $ECHO_C" >&6
18293: else
1.62 paf 18294: cat >conftest.$ac_ext <<_ACEOF
18295: /* confdefs.h. */
18296: _ACEOF
18297: cat confdefs.h >>conftest.$ac_ext
18298: cat >>conftest.$ac_ext <<_ACEOF
18299: /* end confdefs.h. */
1.66 paf 18300: $ac_includes_default
18301: int
18302: main ()
18303: {
18304: if ((ssize_t *) 0)
18305: return 0;
18306: if (sizeof (ssize_t))
18307: return 0;
18308: ;
18309: return 0;
18310: }
1.62 paf 18311: _ACEOF
1.66 paf 18312: rm -f conftest.$ac_objext
18313: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18314: (eval $ac_compile) 2>conftest.er1
1.66 paf 18315: ac_status=$?
1.86 paf 18316: grep -v '^ *+' conftest.er1 >conftest.err
18317: rm -f conftest.er1
18318: cat conftest.err >&5
1.66 paf 18319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320: (exit $ac_status); } &&
1.86 paf 18321: { ac_try='test -z "$ac_c_werror_flag"
18322: || test ! -s conftest.err'
18323: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324: (eval $ac_try) 2>&5
18325: ac_status=$?
18326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327: (exit $ac_status); }; } &&
18328: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330: (eval $ac_try) 2>&5
1.62 paf 18331: ac_status=$?
18332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18333: (exit $ac_status); }; }; then
18334: ac_cv_type_ssize_t=yes
1.1 paf 18335: else
1.62 paf 18336: echo "$as_me: failed program was:" >&5
18337: sed 's/^/| /' conftest.$ac_ext >&5
18338:
1.66 paf 18339: ac_cv_type_ssize_t=no
18340: fi
1.86 paf 18341: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18342: fi
1.66 paf 18343: echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
18344: echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
18345: if test $ac_cv_type_ssize_t = yes; then
1.1 paf 18346: :
18347: else
1.66 paf 18348:
18349: cat >>confdefs.h <<_ACEOF
18350: #define ssize_t int
18351: _ACEOF
18352:
1.1 paf 18353: fi
1.62 paf 18354:
18355:
18356:
1.66 paf 18357: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18358: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18359: if test "${ac_cv_header_time+set}" = set; then
1.62 paf 18360: echo $ECHO_N "(cached) $ECHO_C" >&6
18361: else
18362: cat >conftest.$ac_ext <<_ACEOF
18363: /* confdefs.h. */
18364: _ACEOF
18365: cat confdefs.h >>conftest.$ac_ext
18366: cat >>conftest.$ac_ext <<_ACEOF
18367: /* end confdefs.h. */
1.66 paf 18368: #include <sys/types.h>
18369: #include <sys/time.h>
18370: #include <time.h>
1.62 paf 18371:
18372: int
18373: main ()
18374: {
1.66 paf 18375: if ((struct tm *) 0)
18376: return 0;
1.62 paf 18377: ;
18378: return 0;
18379: }
18380: _ACEOF
18381: rm -f conftest.$ac_objext
18382: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18383: (eval $ac_compile) 2>conftest.er1
1.62 paf 18384: ac_status=$?
1.86 paf 18385: grep -v '^ *+' conftest.er1 >conftest.err
18386: rm -f conftest.er1
18387: cat conftest.err >&5
1.62 paf 18388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389: (exit $ac_status); } &&
1.86 paf 18390: { ac_try='test -z "$ac_c_werror_flag"
18391: || test ! -s conftest.err'
18392: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393: (eval $ac_try) 2>&5
18394: ac_status=$?
18395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396: (exit $ac_status); }; } &&
18397: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399: (eval $ac_try) 2>&5
18400: ac_status=$?
18401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402: (exit $ac_status); }; }; then
1.66 paf 18403: ac_cv_header_time=yes
1.1 paf 18404: else
1.62 paf 18405: echo "$as_me: failed program was:" >&5
18406: sed 's/^/| /' conftest.$ac_ext >&5
18407:
1.66 paf 18408: ac_cv_header_time=no
1.1 paf 18409: fi
1.86 paf 18410: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18411: fi
18412: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18413: echo "${ECHO_T}$ac_cv_header_time" >&6
18414: if test $ac_cv_header_time = yes; then
1.1 paf 18415:
1.66 paf 18416: cat >>confdefs.h <<\_ACEOF
18417: #define TIME_WITH_SYS_TIME 1
1.62 paf 18418: _ACEOF
18419:
1.1 paf 18420: fi
18421:
18422:
1.62 paf 18423:
1.1 paf 18424:
1.66 paf 18425:
18426:
18427:
18428:
18429:
18430:
18431:
18432:
18433:
18434:
18435:
18436:
18437:
18438:
18439:
18440:
18441:
18442:
18443:
18444:
18445:
18446:
18447:
18448:
18449:
18450:
18451:
18452:
1.128 moko 18453:
1.67 paf 18454: for ac_header in assert.h \
18455: signal.h \
1.66 paf 18456: unistd.h \
18457: process.h \
18458: stddef.h \
18459: stdarg.h \
18460: fcntl.h \
18461: sys/stat.h \
18462: io.h \
18463: stdio.h \
18464: errno.h \
18465: ctype.h \
18466: math.h \
18467: crypt.h \
18468: time.h sys/time.h \
18469: string.h \
18470: direct.h \
18471: setjmp.h \
18472: memory.h \
1.128 moko 18473: limits.h \
1.66 paf 18474: sys/file.h \
18475: sys/locking.h \
18476: sys/types.h \
18477: sys/select.h \
18478: sys/resource.h \
18479: winsock.h \
18480: sys/socket.h \
18481: netinet/in.h \
18482: arpa/inet.h \
18483: netdb.h
18484:
18485: do
18486: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18487: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18488: echo "$as_me:$LINENO: checking for $ac_header" >&5
18489: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18490: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18491: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 18492: fi
1.66 paf 18493: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18494: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18495: else
1.66 paf 18496: # Is the header compilable?
18497: echo "$as_me:$LINENO: checking $ac_header usability" >&5
18498: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18499: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18500: /* confdefs.h. */
18501: _ACEOF
18502: cat confdefs.h >>conftest.$ac_ext
18503: cat >>conftest.$ac_ext <<_ACEOF
18504: /* end confdefs.h. */
1.66 paf 18505: $ac_includes_default
18506: #include <$ac_header>
1.62 paf 18507: _ACEOF
1.66 paf 18508: rm -f conftest.$ac_objext
18509: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18510: (eval $ac_compile) 2>conftest.er1
1.62 paf 18511: ac_status=$?
1.86 paf 18512: grep -v '^ *+' conftest.er1 >conftest.err
18513: rm -f conftest.er1
18514: cat conftest.err >&5
1.62 paf 18515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18516: (exit $ac_status); } &&
1.86 paf 18517: { ac_try='test -z "$ac_c_werror_flag"
18518: || test ! -s conftest.err'
18519: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520: (eval $ac_try) 2>&5
18521: ac_status=$?
18522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523: (exit $ac_status); }; } &&
18524: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18525: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526: (eval $ac_try) 2>&5
18527: ac_status=$?
18528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529: (exit $ac_status); }; }; then
1.66 paf 18530: ac_header_compiler=yes
1.1 paf 18531: else
1.66 paf 18532: echo "$as_me: failed program was:" >&5
1.62 paf 18533: sed 's/^/| /' conftest.$ac_ext >&5
18534:
1.66 paf 18535: ac_header_compiler=no
1.1 paf 18536: fi
1.86 paf 18537: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18538: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18539: echo "${ECHO_T}$ac_header_compiler" >&6
18540:
18541: # Is the header present?
18542: echo "$as_me:$LINENO: checking $ac_header presence" >&5
18543: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18544: cat >conftest.$ac_ext <<_ACEOF
18545: /* confdefs.h. */
18546: _ACEOF
18547: cat confdefs.h >>conftest.$ac_ext
18548: cat >>conftest.$ac_ext <<_ACEOF
18549: /* end confdefs.h. */
18550: #include <$ac_header>
18551: _ACEOF
18552: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18553: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18554: ac_status=$?
18555: grep -v '^ *+' conftest.er1 >conftest.err
18556: rm -f conftest.er1
18557: cat conftest.err >&5
18558: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559: (exit $ac_status); } >/dev/null; then
18560: if test -s conftest.err; then
18561: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 18562: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 18563: else
18564: ac_cpp_err=
18565: fi
18566: else
18567: ac_cpp_err=yes
1.1 paf 18568: fi
1.66 paf 18569: if test -z "$ac_cpp_err"; then
18570: ac_header_preproc=yes
18571: else
18572: echo "$as_me: failed program was:" >&5
18573: sed 's/^/| /' conftest.$ac_ext >&5
18574:
18575: ac_header_preproc=no
1.1 paf 18576: fi
1.66 paf 18577: rm -f conftest.err conftest.$ac_ext
18578: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18579: echo "${ECHO_T}$ac_header_preproc" >&6
18580:
18581: # So? What about this header?
1.86 paf 18582: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18583: yes:no: )
1.66 paf 18584: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18585: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.86 paf 18586: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18587: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18588: ac_header_preproc=yes
1.66 paf 18589: ;;
1.86 paf 18590: no:yes:* )
1.66 paf 18591: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18592: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.86 paf 18593: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18594: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18595: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18596: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18597: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18598: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.66 paf 18599: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18600: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.86 paf 18601: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18602: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.66 paf 18603: (
18604: cat <<\_ASBOX
1.128 moko 18605: ## --------------------------------- ##
18606: ## Report this to the parser lists. ##
18607: ## --------------------------------- ##
1.66 paf 18608: _ASBOX
18609: ) |
18610: sed "s/^/$as_me: WARNING: /" >&2
18611: ;;
18612: esac
18613: echo "$as_me:$LINENO: checking for $ac_header" >&5
18614: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18615: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18616: echo $ECHO_N "(cached) $ECHO_C" >&6
18617: else
1.86 paf 18618: eval "$as_ac_Header=\$ac_header_preproc"
1.1 paf 18619: fi
1.66 paf 18620: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18621: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18622:
1.66 paf 18623: fi
18624: if test `eval echo '${'$as_ac_Header'}'` = yes; then
18625: cat >>confdefs.h <<_ACEOF
18626: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18627: _ACEOF
18628:
18629: fi
18630:
1.66 paf 18631: done
1.62 paf 18632:
18633:
18634:
1.128 moko 18635:
18636:
1.66 paf 18637: case "$host" in
1.107 misha 18638: *-freebsd4*)
18639:
18640: cat >>confdefs.h <<\_ACEOF
18641: #define FREEBSD4
18642: _ACEOF
18643:
18644: ;;
1.66 paf 18645: *-sunos5.6* | *-solaris2.6*)
1.62 paf 18646:
1.66 paf 18647: echo "$as_me:$LINENO: checking for main in -lxnet" >&5
18648: echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
18649: if test "${ac_cv_lib_xnet_main+set}" = set; then
1.62 paf 18650: echo $ECHO_N "(cached) $ECHO_C" >&6
18651: else
1.66 paf 18652: ac_check_lib_save_LIBS=$LIBS
18653: LIBS="-lxnet $LIBS"
18654: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18655: /* confdefs.h. */
18656: _ACEOF
18657: cat confdefs.h >>conftest.$ac_ext
18658: cat >>conftest.$ac_ext <<_ACEOF
18659: /* end confdefs.h. */
18660:
1.66 paf 18661:
18662: int
18663: main ()
18664: {
18665: main ();
18666: ;
18667: return 0;
18668: }
1.62 paf 18669: _ACEOF
1.66 paf 18670: rm -f conftest.$ac_objext conftest$ac_exeext
18671: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18672: (eval $ac_link) 2>conftest.er1
1.62 paf 18673: ac_status=$?
1.86 paf 18674: grep -v '^ *+' conftest.er1 >conftest.err
18675: rm -f conftest.er1
18676: cat conftest.err >&5
1.62 paf 18677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678: (exit $ac_status); } &&
1.86 paf 18679: { ac_try='test -z "$ac_c_werror_flag"
18680: || test ! -s conftest.err'
18681: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682: (eval $ac_try) 2>&5
18683: ac_status=$?
18684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685: (exit $ac_status); }; } &&
18686: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18687: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688: (eval $ac_try) 2>&5
18689: ac_status=$?
18690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691: (exit $ac_status); }; }; then
1.66 paf 18692: ac_cv_lib_xnet_main=yes
1.62 paf 18693: else
18694: echo "$as_me: failed program was:" >&5
18695: sed 's/^/| /' conftest.$ac_ext >&5
18696:
1.66 paf 18697: ac_cv_lib_xnet_main=no
1.62 paf 18698: fi
1.86 paf 18699: rm -f conftest.err conftest.$ac_objext \
18700: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18701: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18702: fi
1.66 paf 18703: echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
18704: echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
18705: if test $ac_cv_lib_xnet_main = yes; then
1.62 paf 18706: cat >>confdefs.h <<_ACEOF
1.66 paf 18707: #define HAVE_LIBXNET 1
1.62 paf 18708: _ACEOF
1.1 paf 18709:
1.66 paf 18710: LIBS="-lxnet $LIBS"
18711:
1.1 paf 18712: fi
18713:
1.66 paf 18714: ;;
18715: *-sunos5* | *-solaris2*)
1.62 paf 18716:
1.66 paf 18717: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
18718: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
18719: if test "${ac_cv_lib_socket_main+set}" = set; then
1.62 paf 18720: echo $ECHO_N "(cached) $ECHO_C" >&6
18721: else
1.66 paf 18722: ac_check_lib_save_LIBS=$LIBS
18723: LIBS="-lsocket $LIBS"
18724: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18725: /* confdefs.h. */
18726: _ACEOF
18727: cat confdefs.h >>conftest.$ac_ext
18728: cat >>conftest.$ac_ext <<_ACEOF
18729: /* end confdefs.h. */
1.66 paf 18730:
18731:
1.62 paf 18732: int
18733: main ()
18734: {
1.66 paf 18735: main ();
1.62 paf 18736: ;
18737: return 0;
18738: }
18739: _ACEOF
1.66 paf 18740: rm -f conftest.$ac_objext conftest$ac_exeext
18741: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18742: (eval $ac_link) 2>conftest.er1
1.62 paf 18743: ac_status=$?
1.86 paf 18744: grep -v '^ *+' conftest.er1 >conftest.err
18745: rm -f conftest.er1
18746: cat conftest.err >&5
1.62 paf 18747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748: (exit $ac_status); } &&
1.86 paf 18749: { ac_try='test -z "$ac_c_werror_flag"
18750: || test ! -s conftest.err'
18751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752: (eval $ac_try) 2>&5
18753: ac_status=$?
18754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755: (exit $ac_status); }; } &&
18756: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758: (eval $ac_try) 2>&5
18759: ac_status=$?
18760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761: (exit $ac_status); }; }; then
1.66 paf 18762: ac_cv_lib_socket_main=yes
1.1 paf 18763: else
1.62 paf 18764: echo "$as_me: failed program was:" >&5
18765: sed 's/^/| /' conftest.$ac_ext >&5
18766:
1.66 paf 18767: ac_cv_lib_socket_main=no
1.1 paf 18768: fi
1.86 paf 18769: rm -f conftest.err conftest.$ac_objext \
18770: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18771: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18772: fi
1.66 paf 18773: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
18774: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
18775: if test $ac_cv_lib_socket_main = yes; then
18776: cat >>confdefs.h <<_ACEOF
18777: #define HAVE_LIBSOCKET 1
18778: _ACEOF
1.1 paf 18779:
1.66 paf 18780: LIBS="-lsocket $LIBS"
1.1 paf 18781:
18782: fi
18783:
1.66 paf 18784:
18785: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
18786: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
18787: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.62 paf 18788: echo $ECHO_N "(cached) $ECHO_C" >&6
18789: else
1.66 paf 18790: ac_check_lib_save_LIBS=$LIBS
18791: LIBS="-lnsl $LIBS"
18792: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18793: /* confdefs.h. */
18794: _ACEOF
18795: cat confdefs.h >>conftest.$ac_ext
18796: cat >>conftest.$ac_ext <<_ACEOF
18797: /* end confdefs.h. */
1.66 paf 18798:
18799:
1.62 paf 18800: int
18801: main ()
18802: {
1.66 paf 18803: main ();
1.62 paf 18804: ;
18805: return 0;
18806: }
18807: _ACEOF
1.66 paf 18808: rm -f conftest.$ac_objext conftest$ac_exeext
18809: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18810: (eval $ac_link) 2>conftest.er1
1.62 paf 18811: ac_status=$?
1.86 paf 18812: grep -v '^ *+' conftest.er1 >conftest.err
18813: rm -f conftest.er1
18814: cat conftest.err >&5
1.62 paf 18815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816: (exit $ac_status); } &&
1.86 paf 18817: { ac_try='test -z "$ac_c_werror_flag"
18818: || test ! -s conftest.err'
18819: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820: (eval $ac_try) 2>&5
18821: ac_status=$?
18822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823: (exit $ac_status); }; } &&
18824: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18825: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826: (eval $ac_try) 2>&5
18827: ac_status=$?
18828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829: (exit $ac_status); }; }; then
1.66 paf 18830: ac_cv_lib_nsl_main=yes
1.30 paf 18831: else
1.62 paf 18832: echo "$as_me: failed program was:" >&5
18833: sed 's/^/| /' conftest.$ac_ext >&5
18834:
1.66 paf 18835: ac_cv_lib_nsl_main=no
1.30 paf 18836: fi
1.86 paf 18837: rm -f conftest.err conftest.$ac_objext \
18838: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18839: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18840: fi
1.66 paf 18841: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
18842: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
18843: if test $ac_cv_lib_nsl_main = yes; then
18844: cat >>confdefs.h <<_ACEOF
18845: #define HAVE_LIBNSL 1
18846: _ACEOF
1.30 paf 18847:
1.66 paf 18848: LIBS="-lnsl $LIBS"
1.30 paf 18849:
18850: fi
18851:
1.66 paf 18852: ;;
18853: *-nec-sysv4*)
18854:
18855: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18856: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18857: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.62 paf 18858: echo $ECHO_N "(cached) $ECHO_C" >&6
18859: else
1.66 paf 18860: ac_check_lib_save_LIBS=$LIBS
18861: LIBS="-lnsl $LIBS"
18862: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18863: /* confdefs.h. */
18864: _ACEOF
18865: cat confdefs.h >>conftest.$ac_ext
18866: cat >>conftest.$ac_ext <<_ACEOF
18867: /* end confdefs.h. */
1.66 paf 18868:
18869: /* Override any gcc2 internal prototype to avoid an error. */
18870: #ifdef __cplusplus
18871: extern "C"
18872: #endif
18873: /* We use char because int might match the return type of a gcc2
18874: builtin and then its argument prototype would still apply. */
18875: char gethostbyname ();
1.62 paf 18876: int
18877: main ()
18878: {
1.66 paf 18879: gethostbyname ();
1.62 paf 18880: ;
18881: return 0;
18882: }
18883: _ACEOF
1.66 paf 18884: rm -f conftest.$ac_objext conftest$ac_exeext
18885: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18886: (eval $ac_link) 2>conftest.er1
1.62 paf 18887: ac_status=$?
1.86 paf 18888: grep -v '^ *+' conftest.er1 >conftest.err
18889: rm -f conftest.er1
18890: cat conftest.err >&5
1.62 paf 18891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892: (exit $ac_status); } &&
1.86 paf 18893: { ac_try='test -z "$ac_c_werror_flag"
18894: || test ! -s conftest.err'
18895: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896: (eval $ac_try) 2>&5
18897: ac_status=$?
18898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899: (exit $ac_status); }; } &&
18900: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18901: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902: (eval $ac_try) 2>&5
18903: ac_status=$?
18904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905: (exit $ac_status); }; }; then
1.66 paf 18906: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18907: else
1.62 paf 18908: echo "$as_me: failed program was:" >&5
18909: sed 's/^/| /' conftest.$ac_ext >&5
18910:
1.66 paf 18911: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18912: fi
1.86 paf 18913: rm -f conftest.err conftest.$ac_objext \
18914: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18915: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18916: fi
1.66 paf 18917: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18918: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18919: if test $ac_cv_lib_nsl_gethostbyname = yes; then
18920: cat >>confdefs.h <<_ACEOF
18921: #define HAVE_LIBNSL 1
18922: _ACEOF
1.30 paf 18923:
1.66 paf 18924: LIBS="-lnsl $LIBS"
1.30 paf 18925:
18926: fi
18927:
18928:
1.66 paf 18929: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18930: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
18931: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.62 paf 18932: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 18933: else
1.66 paf 18934: ac_check_lib_save_LIBS=$LIBS
18935: LIBS="-lsocket $LIBS"
18936: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18937: /* confdefs.h. */
18938: _ACEOF
18939: cat confdefs.h >>conftest.$ac_ext
18940: cat >>conftest.$ac_ext <<_ACEOF
18941: /* end confdefs.h. */
18942:
1.66 paf 18943: /* Override any gcc2 internal prototype to avoid an error. */
18944: #ifdef __cplusplus
18945: extern "C"
18946: #endif
18947: /* We use char because int might match the return type of a gcc2
18948: builtin and then its argument prototype would still apply. */
18949: char socket ();
1.62 paf 18950: int
18951: main ()
18952: {
1.66 paf 18953: socket ();
1.62 paf 18954: ;
18955: return 0;
18956: }
18957: _ACEOF
1.66 paf 18958: rm -f conftest.$ac_objext conftest$ac_exeext
18959: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18960: (eval $ac_link) 2>conftest.er1
1.62 paf 18961: ac_status=$?
1.86 paf 18962: grep -v '^ *+' conftest.er1 >conftest.err
18963: rm -f conftest.er1
18964: cat conftest.err >&5
1.62 paf 18965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966: (exit $ac_status); } &&
1.86 paf 18967: { ac_try='test -z "$ac_c_werror_flag"
18968: || test ! -s conftest.err'
18969: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970: (eval $ac_try) 2>&5
18971: ac_status=$?
18972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973: (exit $ac_status); }; } &&
18974: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18975: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976: (eval $ac_try) 2>&5
18977: ac_status=$?
18978: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979: (exit $ac_status); }; }; then
1.66 paf 18980: ac_cv_lib_socket_socket=yes
1.8 paf 18981: else
1.62 paf 18982: echo "$as_me: failed program was:" >&5
18983: sed 's/^/| /' conftest.$ac_ext >&5
18984:
1.66 paf 18985: ac_cv_lib_socket_socket=no
1.8 paf 18986: fi
1.86 paf 18987: rm -f conftest.err conftest.$ac_objext \
18988: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18989: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18990: fi
1.66 paf 18991: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18992: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
18993: if test $ac_cv_lib_socket_socket = yes; then
18994: cat >>confdefs.h <<_ACEOF
1.128 moko 18995: #define HAVE_LIBSOCKET 1
1.66 paf 18996: _ACEOF
18997:
1.128 moko 18998: LIBS="-lsocket $LIBS"
1.66 paf 18999:
1.62 paf 19000: fi
19001:
1.66 paf 19002: ;;
1.128 moko 19003: *-cygwin*)
19004:
19005: cat >>confdefs.h <<\_ACEOF
19006: #define WIN32
19007: _ACEOF
1.66 paf 19008:
1.128 moko 19009:
19010: echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
19011: echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
19012: if test "${ac_cv_lib_wsock32_socket+set}" = set; then
1.66 paf 19013: echo $ECHO_N "(cached) $ECHO_C" >&6
19014: else
19015: ac_check_lib_save_LIBS=$LIBS
1.128 moko 19016: LIBS="-lwsock32 $LIBS"
1.62 paf 19017: cat >conftest.$ac_ext <<_ACEOF
19018: /* confdefs.h. */
19019: _ACEOF
19020: cat confdefs.h >>conftest.$ac_ext
19021: cat >>conftest.$ac_ext <<_ACEOF
19022: /* end confdefs.h. */
1.66 paf 19023:
1.128 moko 19024: /* Override any gcc2 internal prototype to avoid an error. */
19025: #ifdef __cplusplus
19026: extern "C"
19027: #endif
19028: /* We use char because int might match the return type of a gcc2
19029: builtin and then its argument prototype would still apply. */
19030: char socket ();
1.66 paf 19031: int
19032: main ()
19033: {
1.128 moko 19034: socket ();
1.66 paf 19035: ;
19036: return 0;
19037: }
1.62 paf 19038: _ACEOF
1.66 paf 19039: rm -f conftest.$ac_objext conftest$ac_exeext
19040: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19041: (eval $ac_link) 2>conftest.er1
1.66 paf 19042: ac_status=$?
1.86 paf 19043: grep -v '^ *+' conftest.er1 >conftest.err
19044: rm -f conftest.er1
19045: cat conftest.err >&5
1.66 paf 19046: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047: (exit $ac_status); } &&
1.86 paf 19048: { ac_try='test -z "$ac_c_werror_flag"
19049: || test ! -s conftest.err'
19050: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051: (eval $ac_try) 2>&5
19052: ac_status=$?
19053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054: (exit $ac_status); }; } &&
19055: { ac_try='test -s conftest$ac_exeext'
1.66 paf 19056: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057: (eval $ac_try) 2>&5
1.62 paf 19058: ac_status=$?
19059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 19060: (exit $ac_status); }; }; then
1.128 moko 19061: ac_cv_lib_wsock32_socket=yes
1.62 paf 19062: else
19063: echo "$as_me: failed program was:" >&5
19064: sed 's/^/| /' conftest.$ac_ext >&5
19065:
1.128 moko 19066: ac_cv_lib_wsock32_socket=no
1.62 paf 19067: fi
1.86 paf 19068: rm -f conftest.err conftest.$ac_objext \
19069: conftest$ac_exeext conftest.$ac_ext
1.66 paf 19070: LIBS=$ac_check_lib_save_LIBS
1.1 paf 19071: fi
1.128 moko 19072: echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_socket" >&5
19073: echo "${ECHO_T}$ac_cv_lib_wsock32_socket" >&6
19074: if test $ac_cv_lib_wsock32_socket = yes; then
1.62 paf 19075: cat >>confdefs.h <<_ACEOF
1.128 moko 19076: #define HAVE_LIBWSOCK32 1
1.62 paf 19077: _ACEOF
19078:
1.128 moko 19079: LIBS="-lwsock32 $LIBS"
1.66 paf 19080:
1.1 paf 19081: fi
1.62 paf 19082:
1.66 paf 19083: ;;
19084: esac
1.1 paf 19085:
19086:
1.66 paf 19087: echo "$as_me:$LINENO: checking for sin in -lm" >&5
19088: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19089: if test "${ac_cv_lib_m_sin+set}" = set; then
1.62 paf 19090: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19091: else
1.62 paf 19092: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19093: LIBS="-lm $LIBS"
1.62 paf 19094: cat >conftest.$ac_ext <<_ACEOF
19095: /* confdefs.h. */
19096: _ACEOF
19097: cat confdefs.h >>conftest.$ac_ext
19098: cat >>conftest.$ac_ext <<_ACEOF
19099: /* end confdefs.h. */
19100:
1.66 paf 19101: /* Override any gcc2 internal prototype to avoid an error. */
19102: #ifdef __cplusplus
19103: extern "C"
19104: #endif
19105: /* We use char because int might match the return type of a gcc2
19106: builtin and then its argument prototype would still apply. */
19107: char sin ();
1.62 paf 19108: int
19109: main ()
19110: {
1.66 paf 19111: sin ();
1.62 paf 19112: ;
19113: return 0;
19114: }
19115: _ACEOF
19116: rm -f conftest.$ac_objext conftest$ac_exeext
19117: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19118: (eval $ac_link) 2>conftest.er1
1.62 paf 19119: ac_status=$?
1.86 paf 19120: grep -v '^ *+' conftest.er1 >conftest.err
19121: rm -f conftest.er1
19122: cat conftest.err >&5
1.62 paf 19123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124: (exit $ac_status); } &&
1.86 paf 19125: { ac_try='test -z "$ac_c_werror_flag"
19126: || test ! -s conftest.err'
19127: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128: (eval $ac_try) 2>&5
19129: ac_status=$?
19130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131: (exit $ac_status); }; } &&
19132: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19133: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134: (eval $ac_try) 2>&5
19135: ac_status=$?
19136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137: (exit $ac_status); }; }; then
1.66 paf 19138: ac_cv_lib_m_sin=yes
1.62 paf 19139: else
19140: echo "$as_me: failed program was:" >&5
19141: sed 's/^/| /' conftest.$ac_ext >&5
19142:
1.66 paf 19143: ac_cv_lib_m_sin=no
1.62 paf 19144: fi
1.86 paf 19145: rm -f conftest.err conftest.$ac_objext \
19146: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19147: LIBS=$ac_check_lib_save_LIBS
19148: fi
1.66 paf 19149: echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19150: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19151: if test $ac_cv_lib_m_sin = yes; then
1.62 paf 19152: cat >>confdefs.h <<_ACEOF
1.66 paf 19153: #define HAVE_LIBM 1
1.62 paf 19154: _ACEOF
1.1 paf 19155:
1.66 paf 19156: LIBS="-lm $LIBS"
1.1 paf 19157:
19158: fi
19159:
1.62 paf 19160:
1.66 paf 19161: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19162: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19163: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.62 paf 19164: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19165: else
1.62 paf 19166: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19167: LIBS="-lcrypt $LIBS"
1.62 paf 19168: cat >conftest.$ac_ext <<_ACEOF
19169: /* confdefs.h. */
19170: _ACEOF
19171: cat confdefs.h >>conftest.$ac_ext
19172: cat >>conftest.$ac_ext <<_ACEOF
19173: /* end confdefs.h. */
19174:
1.66 paf 19175: /* Override any gcc2 internal prototype to avoid an error. */
19176: #ifdef __cplusplus
19177: extern "C"
19178: #endif
19179: /* We use char because int might match the return type of a gcc2
19180: builtin and then its argument prototype would still apply. */
19181: char crypt ();
1.62 paf 19182: int
19183: main ()
19184: {
1.66 paf 19185: crypt ();
1.62 paf 19186: ;
19187: return 0;
19188: }
19189: _ACEOF
19190: rm -f conftest.$ac_objext conftest$ac_exeext
19191: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19192: (eval $ac_link) 2>conftest.er1
1.62 paf 19193: ac_status=$?
1.86 paf 19194: grep -v '^ *+' conftest.er1 >conftest.err
19195: rm -f conftest.er1
19196: cat conftest.err >&5
1.62 paf 19197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198: (exit $ac_status); } &&
1.86 paf 19199: { ac_try='test -z "$ac_c_werror_flag"
19200: || test ! -s conftest.err'
19201: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202: (eval $ac_try) 2>&5
19203: ac_status=$?
19204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205: (exit $ac_status); }; } &&
19206: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19207: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208: (eval $ac_try) 2>&5
19209: ac_status=$?
19210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211: (exit $ac_status); }; }; then
1.66 paf 19212: ac_cv_lib_crypt_crypt=yes
1.62 paf 19213: else
19214: echo "$as_me: failed program was:" >&5
19215: sed 's/^/| /' conftest.$ac_ext >&5
19216:
1.66 paf 19217: ac_cv_lib_crypt_crypt=no
1.62 paf 19218: fi
1.86 paf 19219: rm -f conftest.err conftest.$ac_objext \
19220: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19221: LIBS=$ac_check_lib_save_LIBS
19222: fi
1.66 paf 19223: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19224: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19225: if test $ac_cv_lib_crypt_crypt = yes; then
1.62 paf 19226: cat >>confdefs.h <<_ACEOF
1.66 paf 19227: #define HAVE_LIBCRYPT 1
1.62 paf 19228: _ACEOF
1.1 paf 19229:
1.66 paf 19230: LIBS="-lcrypt $LIBS"
19231:
19232: fi
19233:
19234:
19235:
19236:
19237:
19238:
19239:
19240:
19241:
19242:
19243:
19244:
1.80 paf 19245:
1.92 misha 19246:
1.112 misha 19247:
1.67 paf 19248: for ac_func in flock \
1.66 paf 19249: _locking \
19250: fcntl \
19251: lockf \
19252: ftruncate \
1.112 misha 19253: fchmod \
1.66 paf 19254: getrusage \
19255: gettimeofday \
19256: crypt \
1.80 paf 19257: sigsetjmp \
1.92 misha 19258: siglongjmp \
19259: unsetenv
1.66 paf 19260:
19261: do
19262: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19263: echo "$as_me:$LINENO: checking for $ac_func" >&5
19264: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19265: if eval "test \"\${$as_ac_var+set}\" = set"; then
19266: echo $ECHO_N "(cached) $ECHO_C" >&6
19267: else
19268: cat >conftest.$ac_ext <<_ACEOF
19269: /* confdefs.h. */
19270: _ACEOF
19271: cat confdefs.h >>conftest.$ac_ext
19272: cat >>conftest.$ac_ext <<_ACEOF
19273: /* end confdefs.h. */
1.86 paf 19274: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19275: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19276: #define $ac_func innocuous_$ac_func
19277:
1.66 paf 19278: /* System header to define __stub macros and hopefully few prototypes,
19279: which can conflict with char $ac_func (); below.
19280: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19281: <limits.h> exists even on freestanding compilers. */
1.86 paf 19282:
1.66 paf 19283: #ifdef __STDC__
19284: # include <limits.h>
19285: #else
19286: # include <assert.h>
19287: #endif
1.86 paf 19288:
19289: #undef $ac_func
19290:
1.66 paf 19291: /* Override any gcc2 internal prototype to avoid an error. */
19292: #ifdef __cplusplus
19293: extern "C"
19294: {
19295: #endif
19296: /* We use char because int might match the return type of a gcc2
19297: builtin and then its argument prototype would still apply. */
19298: char $ac_func ();
19299: /* The GNU C library defines this for functions which it implements
19300: to always fail with ENOSYS. Some functions are actually named
19301: something starting with __ and the normal name is an alias. */
19302: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19303: choke me
19304: #else
19305: char (*f) () = $ac_func;
19306: #endif
19307: #ifdef __cplusplus
19308: }
19309: #endif
1.62 paf 19310:
19311: int
19312: main ()
19313: {
1.66 paf 19314: return f != $ac_func;
1.62 paf 19315: ;
19316: return 0;
19317: }
19318: _ACEOF
19319: rm -f conftest.$ac_objext conftest$ac_exeext
19320: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19321: (eval $ac_link) 2>conftest.er1
1.62 paf 19322: ac_status=$?
1.86 paf 19323: grep -v '^ *+' conftest.er1 >conftest.err
19324: rm -f conftest.er1
19325: cat conftest.err >&5
1.62 paf 19326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327: (exit $ac_status); } &&
1.86 paf 19328: { ac_try='test -z "$ac_c_werror_flag"
19329: || test ! -s conftest.err'
19330: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331: (eval $ac_try) 2>&5
19332: ac_status=$?
19333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334: (exit $ac_status); }; } &&
19335: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19336: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337: (eval $ac_try) 2>&5
19338: ac_status=$?
19339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340: (exit $ac_status); }; }; then
1.66 paf 19341: eval "$as_ac_var=yes"
1.62 paf 19342: else
19343: echo "$as_me: failed program was:" >&5
19344: sed 's/^/| /' conftest.$ac_ext >&5
19345:
1.66 paf 19346: eval "$as_ac_var=no"
1.62 paf 19347: fi
1.86 paf 19348: rm -f conftest.err conftest.$ac_objext \
19349: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19350: fi
1.66 paf 19351: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19352: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19353: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19354: cat >>confdefs.h <<_ACEOF
1.66 paf 19355: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19356: _ACEOF
1.1 paf 19357:
1.66 paf 19358: fi
19359: done
19360:
1.1 paf 19361:
19362:
1.67 paf 19363: pa_func=sigsetjmp
19364: echo "$as_me:$LINENO: checking for (maybe built-in) function $pa_func" >&5
19365: echo $ECHO_N "checking for (maybe built-in) function $pa_func... $ECHO_C" >&6
19366: cat >conftest.$ac_ext <<_ACEOF
19367: /* confdefs.h. */
19368: _ACEOF
19369: cat confdefs.h >>conftest.$ac_ext
19370: cat >>conftest.$ac_ext <<_ACEOF
19371: /* end confdefs.h. */
19372:
19373: #ifdef HAVE_SETJMP_H
19374: # include <setjmp.h>
19375: #endif
19376:
19377: int
19378: main ()
19379: {
19380:
19381: $pa_func(0,0);
19382:
19383: ;
19384: return 0;
19385: }
19386: _ACEOF
19387: rm -f conftest.$ac_objext
19388: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19389: (eval $ac_compile) 2>conftest.er1
1.67 paf 19390: ac_status=$?
1.86 paf 19391: grep -v '^ *+' conftest.er1 >conftest.err
19392: rm -f conftest.er1
19393: cat conftest.err >&5
1.67 paf 19394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395: (exit $ac_status); } &&
1.86 paf 19396: { ac_try='test -z "$ac_c_werror_flag"
19397: || test ! -s conftest.err'
19398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399: (eval $ac_try) 2>&5
19400: ac_status=$?
19401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402: (exit $ac_status); }; } &&
19403: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405: (eval $ac_try) 2>&5
19406: ac_status=$?
19407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408: (exit $ac_status); }; }; then
19409: echo "$as_me:$LINENO: result: yes" >&5
19410: echo "${ECHO_T}yes" >&6
19411: cat >>confdefs.h <<_ACEOF
19412: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19413: _ACEOF
19414:
19415:
19416: else
19417: echo "$as_me: failed program was:" >&5
19418: sed 's/^/| /' conftest.$ac_ext >&5
19419:
19420: echo "$as_me:$LINENO: result: no" >&5
19421: echo "${ECHO_T}no" >&6
19422:
19423: fi
1.86 paf 19424: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19425:
19426:
19427:
19428: ac_ext=cc
19429: ac_cpp='$CXXCPP $CPPFLAGS'
19430: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19433:
19434:
19435:
19436:
19437:
19438:
19439: for pa_func in trunc \
19440: round \
19441: sign
19442:
19443: do
19444:
19445: echo "$as_me:$LINENO: checking for (maybe built-in) math function $pa_func" >&5
19446: echo $ECHO_N "checking for (maybe built-in) math function $pa_func... $ECHO_C" >&6
19447: cat >conftest.$ac_ext <<_ACEOF
19448: /* confdefs.h. */
19449: _ACEOF
19450: cat confdefs.h >>conftest.$ac_ext
19451: cat >>conftest.$ac_ext <<_ACEOF
19452: /* end confdefs.h. */
19453:
19454: #ifdef HAVE_MATH_H
19455: # include <math.h>
19456: #endif
19457:
19458: int
19459: main ()
19460: {
19461:
19462: double result=$pa_func(1.6);
19463:
19464: ;
19465: return 0;
19466: }
19467: _ACEOF
19468: rm -f conftest.$ac_objext
19469: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19470: (eval $ac_compile) 2>conftest.er1
1.67 paf 19471: ac_status=$?
1.86 paf 19472: grep -v '^ *+' conftest.er1 >conftest.err
19473: rm -f conftest.er1
19474: cat conftest.err >&5
1.67 paf 19475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476: (exit $ac_status); } &&
1.86 paf 19477: { ac_try='test -z "$ac_cxx_werror_flag"
19478: || test ! -s conftest.err'
19479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480: (eval $ac_try) 2>&5
19481: ac_status=$?
19482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483: (exit $ac_status); }; } &&
19484: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19485: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486: (eval $ac_try) 2>&5
19487: ac_status=$?
19488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489: (exit $ac_status); }; }; then
19490: echo "$as_me:$LINENO: result: yes" >&5
19491: echo "${ECHO_T}yes" >&6
19492: cat >>confdefs.h <<_ACEOF
19493: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19494: _ACEOF
19495:
19496: else
19497: echo "$as_me: failed program was:" >&5
19498: sed 's/^/| /' conftest.$ac_ext >&5
19499:
19500: echo "$as_me:$LINENO: result: no" >&5
19501: echo "${ECHO_T}no" >&6
19502:
19503: fi
1.86 paf 19504: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19505:
19506: done
19507:
19508: ac_ext=c
19509: ac_cpp='$CPP $CPPFLAGS'
19510: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19513:
19514:
19515:
1.62 paf 19516:
1.66 paf 19517: for ac_func in qsort
19518: do
19519: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19520: echo "$as_me:$LINENO: checking for $ac_func" >&5
19521: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19522: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 19523: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19524: else
1.66 paf 19525: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 19526: /* confdefs.h. */
19527: _ACEOF
19528: cat confdefs.h >>conftest.$ac_ext
19529: cat >>conftest.$ac_ext <<_ACEOF
19530: /* end confdefs.h. */
1.86 paf 19531: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19532: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19533: #define $ac_func innocuous_$ac_func
19534:
1.66 paf 19535: /* System header to define __stub macros and hopefully few prototypes,
19536: which can conflict with char $ac_func (); below.
19537: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19538: <limits.h> exists even on freestanding compilers. */
1.86 paf 19539:
1.66 paf 19540: #ifdef __STDC__
19541: # include <limits.h>
19542: #else
19543: # include <assert.h>
19544: #endif
1.86 paf 19545:
19546: #undef $ac_func
19547:
1.1 paf 19548: /* Override any gcc2 internal prototype to avoid an error. */
19549: #ifdef __cplusplus
19550: extern "C"
1.66 paf 19551: {
1.1 paf 19552: #endif
19553: /* We use char because int might match the return type of a gcc2
1.62 paf 19554: builtin and then its argument prototype would still apply. */
1.66 paf 19555: char $ac_func ();
19556: /* The GNU C library defines this for functions which it implements
19557: to always fail with ENOSYS. Some functions are actually named
19558: something starting with __ and the normal name is an alias. */
19559: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19560: choke me
19561: #else
19562: char (*f) () = $ac_func;
19563: #endif
19564: #ifdef __cplusplus
19565: }
19566: #endif
19567:
1.62 paf 19568: int
19569: main ()
19570: {
1.66 paf 19571: return f != $ac_func;
1.62 paf 19572: ;
19573: return 0;
19574: }
19575: _ACEOF
19576: rm -f conftest.$ac_objext conftest$ac_exeext
19577: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19578: (eval $ac_link) 2>conftest.er1
1.62 paf 19579: ac_status=$?
1.86 paf 19580: grep -v '^ *+' conftest.er1 >conftest.err
19581: rm -f conftest.er1
19582: cat conftest.err >&5
1.62 paf 19583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584: (exit $ac_status); } &&
1.86 paf 19585: { ac_try='test -z "$ac_c_werror_flag"
19586: || test ! -s conftest.err'
19587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588: (eval $ac_try) 2>&5
19589: ac_status=$?
19590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591: (exit $ac_status); }; } &&
19592: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19593: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594: (eval $ac_try) 2>&5
19595: ac_status=$?
19596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597: (exit $ac_status); }; }; then
1.66 paf 19598: eval "$as_ac_var=yes"
1.62 paf 19599: else
19600: echo "$as_me: failed program was:" >&5
19601: sed 's/^/| /' conftest.$ac_ext >&5
19602:
1.66 paf 19603: eval "$as_ac_var=no"
1.62 paf 19604: fi
1.86 paf 19605: rm -f conftest.err conftest.$ac_objext \
19606: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19607: fi
1.66 paf 19608: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19609: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19610: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19611: cat >>confdefs.h <<_ACEOF
1.66 paf 19612: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19613: _ACEOF
1.1 paf 19614:
1.66 paf 19615: else
19616: { { echo "$as_me:$LINENO: error: No qsort library function." >&5
19617: echo "$as_me: error: No qsort library function." >&2;}
19618: { (exit 1); exit 1; }; }
1.1 paf 19619: fi
1.66 paf 19620: done
1.1 paf 19621:
19622:
1.62 paf 19623:
1.66 paf 19624: echo "$as_me:$LINENO: checking for timezone variable" >&5
19625: echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
1.62 paf 19626: cat >conftest.$ac_ext <<_ACEOF
19627: /* confdefs.h. */
19628: _ACEOF
19629: cat confdefs.h >>conftest.$ac_ext
19630: cat >>conftest.$ac_ext <<_ACEOF
19631: /* end confdefs.h. */
1.66 paf 19632: #include <time.h>
1.62 paf 19633: int
19634: main ()
19635: {
1.66 paf 19636:
19637: time_t test=timezone;
19638:
1.62 paf 19639: ;
19640: return 0;
19641: }
19642: _ACEOF
1.66 paf 19643: rm -f conftest.$ac_objext
19644: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19645: (eval $ac_compile) 2>conftest.er1
1.62 paf 19646: ac_status=$?
1.86 paf 19647: grep -v '^ *+' conftest.er1 >conftest.err
19648: rm -f conftest.er1
19649: cat conftest.err >&5
1.62 paf 19650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651: (exit $ac_status); } &&
1.86 paf 19652: { ac_try='test -z "$ac_c_werror_flag"
19653: || test ! -s conftest.err'
19654: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655: (eval $ac_try) 2>&5
19656: ac_status=$?
19657: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658: (exit $ac_status); }; } &&
19659: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19660: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661: (eval $ac_try) 2>&5
19662: ac_status=$?
19663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664: (exit $ac_status); }; }; then
1.66 paf 19665: cat >>confdefs.h <<\_ACEOF
19666: #define HAVE_TIMEZONE 1
19667: _ACEOF
19668:
19669: echo "$as_me:$LINENO: result: yes" >&5
19670: echo "${ECHO_T}yes" >&6
1.62 paf 19671: else
19672: echo "$as_me: failed program was:" >&5
19673: sed 's/^/| /' conftest.$ac_ext >&5
19674:
1.66 paf 19675: echo "$as_me:$LINENO: result: no" >&5
19676: echo "${ECHO_T}no" >&6
1.62 paf 19677: fi
1.86 paf 19678: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19679:
1.66 paf 19680: echo "$as_me:$LINENO: checking for daylight variable" >&5
19681: echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
1.62 paf 19682: cat >conftest.$ac_ext <<_ACEOF
19683: /* confdefs.h. */
19684: _ACEOF
19685: cat confdefs.h >>conftest.$ac_ext
19686: cat >>conftest.$ac_ext <<_ACEOF
19687: /* end confdefs.h. */
1.66 paf 19688: #include <time.h>
1.62 paf 19689: int
19690: main ()
19691: {
1.66 paf 19692:
19693: int test=daylight;
19694:
1.62 paf 19695: ;
19696: return 0;
19697: }
19698: _ACEOF
1.66 paf 19699: rm -f conftest.$ac_objext
19700: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19701: (eval $ac_compile) 2>conftest.er1
1.62 paf 19702: ac_status=$?
1.86 paf 19703: grep -v '^ *+' conftest.er1 >conftest.err
19704: rm -f conftest.er1
19705: cat conftest.err >&5
1.62 paf 19706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707: (exit $ac_status); } &&
1.86 paf 19708: { ac_try='test -z "$ac_c_werror_flag"
19709: || test ! -s conftest.err'
19710: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711: (eval $ac_try) 2>&5
19712: ac_status=$?
19713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714: (exit $ac_status); }; } &&
19715: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19716: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717: (eval $ac_try) 2>&5
19718: ac_status=$?
19719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720: (exit $ac_status); }; }; then
1.66 paf 19721: cat >>confdefs.h <<\_ACEOF
19722: #define HAVE_DAYLIGHT 1
19723: _ACEOF
19724:
19725: echo "$as_me:$LINENO: result: yes" >&5
19726: echo "${ECHO_T}yes" >&6
1.62 paf 19727: else
19728: echo "$as_me: failed program was:" >&5
19729: sed 's/^/| /' conftest.$ac_ext >&5
19730:
1.66 paf 19731: echo "$as_me:$LINENO: result: no" >&5
19732: echo "${ECHO_T}no" >&6
1.62 paf 19733: fi
1.86 paf 19734: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 19735:
1.66 paf 19736: echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
19737: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
1.62 paf 19738: cat >conftest.$ac_ext <<_ACEOF
19739: /* confdefs.h. */
19740: _ACEOF
19741: cat confdefs.h >>conftest.$ac_ext
19742: cat >>conftest.$ac_ext <<_ACEOF
19743: /* end confdefs.h. */
1.66 paf 19744: #include <time.h>
1.62 paf 19745: int
19746: main ()
19747: {
1.66 paf 19748: struct tm tm;
19749: tm.tm_gmtoff=0;
19750:
1.62 paf 19751: ;
19752: return 0;
19753: }
19754: _ACEOF
1.66 paf 19755: rm -f conftest.$ac_objext
19756: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19757: (eval $ac_compile) 2>conftest.er1
1.62 paf 19758: ac_status=$?
1.86 paf 19759: grep -v '^ *+' conftest.er1 >conftest.err
19760: rm -f conftest.er1
19761: cat conftest.err >&5
1.62 paf 19762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763: (exit $ac_status); } &&
1.86 paf 19764: { ac_try='test -z "$ac_c_werror_flag"
19765: || test ! -s conftest.err'
19766: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767: (eval $ac_try) 2>&5
19768: ac_status=$?
19769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770: (exit $ac_status); }; } &&
19771: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773: (eval $ac_try) 2>&5
19774: ac_status=$?
19775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776: (exit $ac_status); }; }; then
1.66 paf 19777: cat >>confdefs.h <<\_ACEOF
19778: #define HAVE_TM_GMTOFF 1
19779: _ACEOF
19780:
19781: echo "$as_me:$LINENO: result: yes" >&5
19782: echo "${ECHO_T}yes" >&6
1.62 paf 19783: else
19784: echo "$as_me: failed program was:" >&5
19785: sed 's/^/| /' conftest.$ac_ext >&5
19786:
1.66 paf 19787: echo "$as_me:$LINENO: result: no" >&5
19788: echo "${ECHO_T}no" >&6
1.62 paf 19789: fi
1.86 paf 19790: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19791:
1.66 paf 19792: echo "$as_me:$LINENO: checking for tm_tzadj in struct tm" >&5
19793: echo $ECHO_N "checking for tm_tzadj in struct tm... $ECHO_C" >&6
1.62 paf 19794: cat >conftest.$ac_ext <<_ACEOF
19795: /* confdefs.h. */
19796: _ACEOF
19797: cat confdefs.h >>conftest.$ac_ext
19798: cat >>conftest.$ac_ext <<_ACEOF
19799: /* end confdefs.h. */
1.66 paf 19800: #include <time.h>
1.62 paf 19801: int
19802: main ()
19803: {
1.66 paf 19804: struct tm tm;
19805: tm.tm_tzadj=0;
19806:
1.62 paf 19807: ;
19808: return 0;
19809: }
19810: _ACEOF
1.66 paf 19811: rm -f conftest.$ac_objext
19812: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19813: (eval $ac_compile) 2>conftest.er1
1.62 paf 19814: ac_status=$?
1.86 paf 19815: grep -v '^ *+' conftest.er1 >conftest.err
19816: rm -f conftest.er1
19817: cat conftest.err >&5
1.62 paf 19818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819: (exit $ac_status); } &&
1.86 paf 19820: { ac_try='test -z "$ac_c_werror_flag"
19821: || test ! -s conftest.err'
19822: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823: (eval $ac_try) 2>&5
19824: ac_status=$?
19825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826: (exit $ac_status); }; } &&
19827: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19828: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829: (eval $ac_try) 2>&5
19830: ac_status=$?
19831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832: (exit $ac_status); }; }; then
1.66 paf 19833: cat >>confdefs.h <<\_ACEOF
19834: #define HAVE_TM_TZADJ 1
19835: _ACEOF
19836:
19837: echo "$as_me:$LINENO: result: yes" >&5
19838: echo "${ECHO_T}yes" >&6
1.62 paf 19839: else
19840: echo "$as_me: failed program was:" >&5
19841: sed 's/^/| /' conftest.$ac_ext >&5
19842:
1.66 paf 19843: echo "$as_me:$LINENO: result: no" >&5
19844: echo "${ECHO_T}no" >&6
1.62 paf 19845: fi
1.86 paf 19846: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 19847:
19848:
19849:
19850:
1.1 paf 19851:
19852:
19853:
1.62 paf 19854:
19855:
19856:
19857:
19858:
19859:
19860:
19861:
19862:
19863:
19864:
19865:
19866:
19867:
19868:
19869:
19870:
19871:
19872:
19873:
19874:
19875:
19876:
19877:
1.128 moko 19878: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 19879:
19880:
1.130 moko 19881: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/memcached/Makefile src/lib/curl/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 19882: cat >confcache <<\_ACEOF
1.1 paf 19883: # This file is a shell script that caches the results of configure
19884: # tests run on this system so they can be shared between configure
1.62 paf 19885: # scripts and configure runs, see configure's option --config-cache.
19886: # It is not useful on other systems. If it contains results you don't
19887: # want to keep, you may remove or edit it.
1.1 paf 19888: #
1.62 paf 19889: # config.status only pays attention to the cache file if you give it
19890: # the --recheck option to rerun configure.
1.1 paf 19891: #
1.62 paf 19892: # `ac_cv_env_foo' variables (set or unset) will be overridden when
19893: # loading this file, other *unset* `ac_cv_foo' will be assigned the
19894: # following values.
19895:
19896: _ACEOF
19897:
1.1 paf 19898: # The following way of writing the cache mishandles newlines in values,
19899: # but we know of no workaround that is simple, portable, and efficient.
19900: # So, don't put newlines in cache variables' values.
19901: # Ultrix sh set writes to stderr and can't be redirected directly,
19902: # and sets the high bit in the cache file unless we assign to the vars.
1.62 paf 19903: {
19904: (set) 2>&1 |
19905: case `(ac_space=' '; set | grep ac_space) 2>&1` in
19906: *ac_space=\ *)
19907: # `set' does not quote correctly, so add quotes (double-quote
19908: # substitution turns \\\\ into \\, and sed turns \\ into \).
19909: sed -n \
1.86 paf 19910: "s/'/'\\\\''/g;
19911: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.62 paf 19912: ;;
19913: *)
19914: # `set' quotes correctly as required by POSIX, so do not add quotes.
19915: sed -n \
1.86 paf 19916: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 19917: ;;
19918: esac;
19919: } |
19920: sed '
19921: t clear
19922: : clear
19923: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19924: t end
19925: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19926: : end' >>confcache
19927: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 19928: if test -w $cache_file; then
1.62 paf 19929: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19930: cat confcache >$cache_file
1.1 paf 19931: else
19932: echo "not updating unwritable cache $cache_file"
19933: fi
19934: fi
19935: rm -f confcache
19936:
19937: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19938: # Let make expand exec_prefix.
19939: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19940:
1.62 paf 19941: # VPATH may cause trouble with some makes, so we remove $(srcdir),
19942: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19943: # trailing colons and then remove the whole line if VPATH becomes empty
19944: # (actually we leave an empty line to preserve line numbers).
1.1 paf 19945: if test "x$srcdir" = x.; then
1.86 paf 19946: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.62 paf 19947: s/:*\$(srcdir):*/:/;
19948: s/:*\${srcdir}:*/:/;
19949: s/:*@srcdir@:*/:/;
1.86 paf 19950: s/^\([^=]*=[ ]*\):*/\1/;
1.62 paf 19951: s/:*$//;
1.86 paf 19952: s/^[^=]*=[ ]*$//;
1.62 paf 19953: }'
1.1 paf 19954: fi
19955:
1.62 paf 19956: DEFS=-DHAVE_CONFIG_H
19957:
19958: ac_libobjs=
19959: ac_ltlibobjs=
19960: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19961: # 1. Remove the extension, and $U if already installed.
19962: ac_i=`echo "$ac_i" |
1.86 paf 19963: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.62 paf 19964: # 2. Add them.
19965: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19966: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19967: done
19968: LIBOBJS=$ac_libobjs
19969:
19970: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19971:
19972:
1.62 paf 19973: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19974: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19975: Usually this means the macro was only invoked conditionally." >&5
19976: echo "$as_me: error: conditional \"AMDEP\" was never defined.
19977: Usually this means the macro was only invoked conditionally." >&2;}
19978: { (exit 1); exit 1; }; }
19979: fi
1.66 paf 19980: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19981: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 19982: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 19983: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 19984: Usually this means the macro was only invoked conditionally." >&2;}
19985: { (exit 1); exit 1; }; }
19986: fi
1.66 paf 19987: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19988: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 19989: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 19990: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 19991: Usually this means the macro was only invoked conditionally." >&2;}
19992: { (exit 1); exit 1; }; }
19993: fi
1.122 moko 19994: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
19995: { { echo "$as_me:$LINENO: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 19996: Usually this means the macro was only invoked conditionally." >&5
1.122 moko 19997: echo "$as_me: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 19998: Usually this means the macro was only invoked conditionally." >&2;}
19999: { (exit 1); exit 1; }; }
20000: fi
1.128 moko 20001: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20002: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20003: Usually this means the macro was only invoked conditionally." >&5
20004: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20005: Usually this means the macro was only invoked conditionally." >&2;}
20006: { (exit 1); exit 1; }; }
20007: fi
20008: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20009: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20010: Usually this means the macro was only invoked conditionally." >&5
20011: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20012: Usually this means the macro was only invoked conditionally." >&2;}
20013: { (exit 1); exit 1; }; }
20014: fi
20015: LT_CONFIG_H=`echo " src/include/pa_config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
20016:
20017: _ltdl_libobjs=
20018: _ltdl_ltlibobjs=
20019: if test -n "$_LT_LIBOBJS"; then
20020: # Remove the extension.
20021: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
20022: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
20023: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
20024: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
20025: done
20026: fi
20027: ltdl_LIBOBJS=$_ltdl_libobjs
20028:
20029: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
20030:
20031:
1.62 paf 20032:
1.1 paf 20033: : ${CONFIG_STATUS=./config.status}
1.62 paf 20034: ac_clean_files_save=$ac_clean_files
20035: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20036: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20037: echo "$as_me: creating $CONFIG_STATUS" >&6;}
20038: cat >$CONFIG_STATUS <<_ACEOF
20039: #! $SHELL
20040: # Generated by $as_me.
20041: # Run this file to recreate the current configuration.
20042: # Compiler output produced by configure, useful for debugging
20043: # configure, is in config.log if it exists.
20044:
20045: debug=false
20046: ac_cs_recheck=false
20047: ac_cs_silent=false
20048: SHELL=\${CONFIG_SHELL-$SHELL}
20049: _ACEOF
20050:
20051: cat >>$CONFIG_STATUS <<\_ACEOF
20052: ## --------------------- ##
20053: ## M4sh Initialization. ##
20054: ## --------------------- ##
20055:
20056: # Be Bourne compatible
20057: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20058: emulate sh
20059: NULLCMD=:
20060: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20061: # is contrary to our usage. Disable this feature.
20062: alias -g '${1+"$@"}'='"$@"'
20063: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20064: set -o posix
20065: fi
1.86 paf 20066: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 20067:
20068: # Support unset when possible.
1.86 paf 20069: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 20070: as_unset=unset
20071: else
20072: as_unset=false
20073: fi
20074:
20075:
20076: # Work around bugs in pre-3.0 UWIN ksh.
20077: $as_unset ENV MAIL MAILPATH
20078: PS1='$ '
20079: PS2='> '
20080: PS4='+ '
20081:
20082: # NLS nuisances.
20083: for as_var in \
20084: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20085: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20086: LC_TELEPHONE LC_TIME
20087: do
1.86 paf 20088: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 20089: eval $as_var=C; export $as_var
20090: else
20091: $as_unset $as_var
20092: fi
20093: done
1.1 paf 20094:
1.62 paf 20095: # Required to use basename.
20096: if expr a : '\(a\)' >/dev/null 2>&1; then
20097: as_expr=expr
20098: else
20099: as_expr=false
20100: fi
20101:
20102: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20103: as_basename=basename
20104: else
20105: as_basename=false
20106: fi
20107:
20108:
20109: # Name of the executable.
20110: as_me=`$as_basename "$0" ||
20111: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20112: X"$0" : 'X\(//\)$' \| \
20113: X"$0" : 'X\(/\)$' \| \
20114: . : '\(.\)' 2>/dev/null ||
20115: echo X/"$0" |
20116: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20117: /^X\/\(\/\/\)$/{ s//\1/; q; }
20118: /^X\/\(\/\).*/{ s//\1/; q; }
20119: s/.*/./; q'`
20120:
20121:
20122: # PATH needs CR, and LINENO needs CR and PATH.
20123: # Avoid depending upon Character Ranges.
20124: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20125: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20126: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20127: as_cr_digits='0123456789'
20128: as_cr_alnum=$as_cr_Letters$as_cr_digits
20129:
20130: # The user is always right.
20131: if test "${PATH_SEPARATOR+set}" != set; then
20132: echo "#! /bin/sh" >conf$$.sh
20133: echo "exit 0" >>conf$$.sh
20134: chmod +x conf$$.sh
20135: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20136: PATH_SEPARATOR=';'
20137: else
20138: PATH_SEPARATOR=:
20139: fi
20140: rm -f conf$$.sh
20141: fi
20142:
20143:
20144: as_lineno_1=$LINENO
20145: as_lineno_2=$LINENO
20146: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20147: test "x$as_lineno_1" != "x$as_lineno_2" &&
20148: test "x$as_lineno_3" = "x$as_lineno_2" || {
20149: # Find who we are. Look in the path if we contain no path at all
20150: # relative or not.
20151: case $0 in
20152: *[\\/]* ) as_myself=$0 ;;
20153: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20154: for as_dir in $PATH
20155: do
20156: IFS=$as_save_IFS
20157: test -z "$as_dir" && as_dir=.
20158: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20159: done
20160:
20161: ;;
20162: esac
20163: # We did not find ourselves, most probably we were run as `sh COMMAND'
20164: # in which case we are not to be found in the path.
20165: if test "x$as_myself" = x; then
20166: as_myself=$0
20167: fi
20168: if test ! -f "$as_myself"; then
20169: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20170: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20171: { (exit 1); exit 1; }; }
20172: fi
20173: case $CONFIG_SHELL in
20174: '')
20175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20177: do
20178: IFS=$as_save_IFS
20179: test -z "$as_dir" && as_dir=.
20180: for as_base in sh bash ksh sh5; do
20181: case $as_dir in
20182: /*)
20183: if ("$as_dir/$as_base" -c '
20184: as_lineno_1=$LINENO
20185: as_lineno_2=$LINENO
20186: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20187: test "x$as_lineno_1" != "x$as_lineno_2" &&
20188: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20189: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20190: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20191: CONFIG_SHELL=$as_dir/$as_base
20192: export CONFIG_SHELL
20193: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20194: fi;;
20195: esac
20196: done
20197: done
20198: ;;
20199: esac
20200:
20201: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20202: # uniformly replaced by the line number. The first 'sed' inserts a
20203: # line-number line before each line; the second 'sed' does the real
20204: # work. The second script uses 'N' to pair each line-number line
20205: # with the numbered line, and appends trailing '-' during
20206: # substitution so that $LINENO is not a special case at line end.
20207: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20208: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20209: sed '=' <$as_myself |
20210: sed '
20211: N
20212: s,$,-,
20213: : loop
20214: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20215: t loop
20216: s,-$,,
20217: s,^['$as_cr_digits']*\n,,
20218: ' >$as_me.lineno &&
20219: chmod +x $as_me.lineno ||
20220: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20221: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20222: { (exit 1); exit 1; }; }
20223:
20224: # Don't try to exec as it changes $[0], causing all sort of problems
20225: # (the dirname of $[0] is not the place where we might find the
20226: # original and so on. Autoconf is especially sensible to this).
20227: . ./$as_me.lineno
20228: # Exit status is that of the last command.
20229: exit
20230: }
20231:
20232:
20233: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20234: *c*,-n*) ECHO_N= ECHO_C='
20235: ' ECHO_T=' ' ;;
20236: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20237: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20238: esac
20239:
20240: if expr a : '\(a\)' >/dev/null 2>&1; then
20241: as_expr=expr
20242: else
20243: as_expr=false
20244: fi
20245:
20246: rm -f conf$$ conf$$.exe conf$$.file
20247: echo >conf$$.file
20248: if ln -s conf$$.file conf$$ 2>/dev/null; then
20249: # We could just check for DJGPP; but this test a) works b) is more generic
20250: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20251: if test -f conf$$.exe; then
20252: # Don't use ln at all; we don't have any links
20253: as_ln_s='cp -p'
20254: else
20255: as_ln_s='ln -s'
20256: fi
20257: elif ln conf$$.file conf$$ 2>/dev/null; then
20258: as_ln_s=ln
20259: else
20260: as_ln_s='cp -p'
20261: fi
20262: rm -f conf$$ conf$$.exe conf$$.file
20263:
20264: if mkdir -p . 2>/dev/null; then
20265: as_mkdir_p=:
20266: else
1.86 paf 20267: test -d ./-p && rmdir ./-p
1.62 paf 20268: as_mkdir_p=false
20269: fi
20270:
20271: as_executable_p="test -f"
20272:
20273: # Sed expression to map a string onto a valid CPP name.
1.86 paf 20274: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20275:
20276: # Sed expression to map a string onto a valid variable name.
1.86 paf 20277: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20278:
20279:
20280: # IFS
20281: # We need space, tab and new line, in precisely that order.
20282: as_nl='
20283: '
20284: IFS=" $as_nl"
20285:
20286: # CDPATH.
20287: $as_unset CDPATH
20288:
20289: exec 6>&1
20290:
20291: # Open the log real soon, to keep \$[0] and so on meaningful, and to
20292: # report actual input values of CONFIG_FILES etc. instead of their
20293: # values after options handling. Logging --version etc. is OK.
20294: exec 5>>config.log
20295: {
20296: echo
20297: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20298: ## Running $as_me. ##
20299: _ASBOX
20300: } >&5
20301: cat >&5 <<_CSEOF
20302:
1.128 moko 20303: This file was extended by parser $as_me 3.4.2b, which was
1.86 paf 20304: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 20305:
20306: CONFIG_FILES = $CONFIG_FILES
20307: CONFIG_HEADERS = $CONFIG_HEADERS
20308: CONFIG_LINKS = $CONFIG_LINKS
20309: CONFIG_COMMANDS = $CONFIG_COMMANDS
20310: $ $0 $@
20311:
20312: _CSEOF
20313: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20314: echo >&5
20315: _ACEOF
20316:
20317: # Files that config.status was made for.
20318: if test -n "$ac_config_files"; then
20319: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20320: fi
20321:
20322: if test -n "$ac_config_headers"; then
20323: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20324: fi
20325:
20326: if test -n "$ac_config_links"; then
20327: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20328: fi
20329:
20330: if test -n "$ac_config_commands"; then
20331: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20332: fi
20333:
20334: cat >>$CONFIG_STATUS <<\_ACEOF
20335:
20336: ac_cs_usage="\
20337: \`$as_me' instantiates files from templates according to the
20338: current configuration.
20339:
20340: Usage: $0 [OPTIONS] [FILE]...
20341:
20342: -h, --help print this help, then exit
20343: -V, --version print version number, then exit
20344: -q, --quiet do not print progress messages
20345: -d, --debug don't remove temporary files
20346: --recheck update $as_me by reconfiguring in the same conditions
20347: --file=FILE[:TEMPLATE]
1.86 paf 20348: instantiate the configuration file FILE
1.62 paf 20349: --header=FILE[:TEMPLATE]
1.86 paf 20350: instantiate the configuration header FILE
1.62 paf 20351:
20352: Configuration files:
20353: $config_files
20354:
20355: Configuration headers:
20356: $config_headers
20357:
20358: Configuration commands:
20359: $config_commands
20360:
20361: Report bugs to <bug-autoconf@gnu.org>."
20362: _ACEOF
20363:
20364: cat >>$CONFIG_STATUS <<_ACEOF
20365: ac_cs_version="\\
1.128 moko 20366: parser config.status 3.4.2b
1.86 paf 20367: configured by $0, generated by GNU Autoconf 2.59,
1.62 paf 20368: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20369:
1.86 paf 20370: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 20371: This config.status script is free software; the Free Software Foundation
20372: gives unlimited permission to copy, distribute and modify it."
20373: srcdir=$srcdir
20374: INSTALL="$INSTALL"
20375: _ACEOF
20376:
20377: cat >>$CONFIG_STATUS <<\_ACEOF
20378: # If no file are specified by the user, then we need to provide default
20379: # value. By we need to know if files were specified by the user.
20380: ac_need_defaults=:
20381: while test $# != 0
20382: do
20383: case $1 in
20384: --*=*)
20385: ac_option=`expr "x$1" : 'x\([^=]*\)='`
20386: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20387: ac_shift=:
20388: ;;
20389: -*)
20390: ac_option=$1
20391: ac_optarg=$2
20392: ac_shift=shift
20393: ;;
20394: *) # This is not an option, so the user has probably given explicit
20395: # arguments.
20396: ac_option=$1
20397: ac_need_defaults=false;;
20398: esac
20399:
20400: case $ac_option in
20401: # Handling of the options.
20402: _ACEOF
20403: cat >>$CONFIG_STATUS <<\_ACEOF
20404: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20405: ac_cs_recheck=: ;;
20406: --version | --vers* | -V )
20407: echo "$ac_cs_version"; exit 0 ;;
20408: --he | --h)
20409: # Conflict between --help and --header
20410: { { echo "$as_me:$LINENO: error: ambiguous option: $1
20411: Try \`$0 --help' for more information." >&5
20412: echo "$as_me: error: ambiguous option: $1
20413: Try \`$0 --help' for more information." >&2;}
20414: { (exit 1); exit 1; }; };;
20415: --help | --hel | -h )
20416: echo "$ac_cs_usage"; exit 0 ;;
20417: --debug | --d* | -d )
20418: debug=: ;;
20419: --file | --fil | --fi | --f )
20420: $ac_shift
20421: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20422: ac_need_defaults=false;;
20423: --header | --heade | --head | --hea )
20424: $ac_shift
20425: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20426: ac_need_defaults=false;;
20427: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20428: | -silent | --silent | --silen | --sile | --sil | --si | --s)
20429: ac_cs_silent=: ;;
20430:
20431: # This is an error.
20432: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20433: Try \`$0 --help' for more information." >&5
20434: echo "$as_me: error: unrecognized option: $1
20435: Try \`$0 --help' for more information." >&2;}
20436: { (exit 1); exit 1; }; } ;;
20437:
20438: *) ac_config_targets="$ac_config_targets $1" ;;
20439:
20440: esac
20441: shift
20442: done
20443:
20444: ac_configure_extra_args=
20445:
20446: if $ac_cs_silent; then
20447: exec 6>/dev/null
20448: ac_configure_extra_args="$ac_configure_extra_args --silent"
20449: fi
20450:
20451: _ACEOF
20452: cat >>$CONFIG_STATUS <<_ACEOF
20453: if \$ac_cs_recheck; then
20454: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20455: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20456: fi
20457:
20458: _ACEOF
20459:
20460: cat >>$CONFIG_STATUS <<_ACEOF
1.1 paf 20461: #
1.62 paf 20462: # INIT-COMMANDS section.
1.1 paf 20463: #
20464:
1.62 paf 20465: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20466:
1.128 moko 20467:
20468: # The HP-UX ksh and POSIX shell print the target directory to stdout
20469: # if CDPATH is set.
20470: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20471:
20472: sed_quote_subst='$sed_quote_subst'
20473: double_quote_subst='$double_quote_subst'
20474: delay_variable_subst='$delay_variable_subst'
20475: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20476: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20477: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20478: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20479: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20480: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.134 moko 20481: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 20482: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20483: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20484: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20485: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20486: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20487: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20488: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20489: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20490: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20491: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20492: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20493: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20494: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20495: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20496: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20497: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20498: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20499: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20500: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20501: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20502: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20503: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20504: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20505: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20506: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20507: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20508: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20509: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20510: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20511: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20512: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20513: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20514: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20515: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20516: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20517: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20518: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20519: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20520: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20521: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20522: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20523: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20524: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20525: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20526: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20527: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20528: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20529: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20530: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20531: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20532: 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"`'
20533: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20534: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20535: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20536: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20537: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20538: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20539: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20540: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20541: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20542: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20543: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20544: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20545: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20546: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20547: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20548: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20549: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20550: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20551: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20552: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20553: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20554: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20555: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20556: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20557: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20558: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20559: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20560: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20561: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20562: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20563: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20564: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20565: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20566: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20567: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20568: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20569: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20570: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20571: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20572: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20573: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20574: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20575: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20576: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20577: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20578: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20579: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20580: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20581: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20582: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20583: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20584: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20585: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20586: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20587: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20588: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20589: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20590: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20591: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20592: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20593: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20594: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20595: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20596: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20597: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20598: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20599: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20600: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20601: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20602: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20603: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20604: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20605: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20606: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20607: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20608: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20609: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20610: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20611: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20612: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20613: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20614: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20615: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20616: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20617: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20618: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20619: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20620: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20621: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20622: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20623: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20624: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20625: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20626: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20627: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20628: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20629: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20630: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20631: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20632: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20633: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20634: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20635: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20636: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20637: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20638: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20639: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20640: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20641: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20642: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20643: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20644: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20645: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20646: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20647: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20648: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20649: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20650: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20651: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20652: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20653: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20654: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20655: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20656: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20657: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20658: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20659: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20660:
20661: LTCC='$LTCC'
20662: LTCFLAGS='$LTCFLAGS'
20663: compiler='$compiler_DEFAULT'
20664:
20665: # A function that is used when there is no print builtin or printf.
20666: func_fallback_echo ()
20667: {
20668: eval 'cat <<_LTECHO_EOF
20669: \$1
20670: _LTECHO_EOF'
20671: }
20672:
20673: # Quote evaled strings.
20674: for var in AS \
20675: DLLTOOL \
20676: OBJDUMP \
20677: SHELL \
20678: ECHO \
20679: PATH_SEPARATOR \
20680: SED \
20681: GREP \
20682: EGREP \
20683: FGREP \
20684: LD \
20685: NM \
20686: LN_S \
20687: lt_SP2NL \
20688: lt_NL2SP \
20689: reload_flag \
20690: deplibs_check_method \
20691: file_magic_cmd \
20692: file_magic_glob \
20693: want_nocaseglob \
20694: sharedlib_from_linklib_cmd \
20695: AR \
20696: AR_FLAGS \
20697: archiver_list_spec \
20698: STRIP \
20699: RANLIB \
20700: CC \
20701: CFLAGS \
20702: compiler \
20703: lt_cv_sys_global_symbol_pipe \
20704: lt_cv_sys_global_symbol_to_cdecl \
20705: lt_cv_sys_global_symbol_to_c_name_address \
20706: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20707: nm_file_list_spec \
20708: lt_prog_compiler_no_builtin_flag \
20709: lt_prog_compiler_pic \
20710: lt_prog_compiler_wl \
20711: lt_prog_compiler_static \
20712: lt_cv_prog_compiler_c_o \
20713: need_locks \
20714: MANIFEST_TOOL \
20715: DSYMUTIL \
20716: NMEDIT \
20717: LIPO \
20718: OTOOL \
20719: OTOOL64 \
20720: shrext_cmds \
20721: export_dynamic_flag_spec \
20722: whole_archive_flag_spec \
20723: compiler_needs_object \
20724: with_gnu_ld \
20725: allow_undefined_flag \
20726: no_undefined_flag \
20727: hardcode_libdir_flag_spec \
20728: hardcode_libdir_separator \
20729: exclude_expsyms \
20730: include_expsyms \
20731: file_list_spec \
20732: variables_saved_for_relink \
20733: libname_spec \
20734: library_names_spec \
20735: soname_spec \
20736: install_override_mode \
20737: finish_eval \
20738: old_striplib \
20739: striplib \
20740: compiler_lib_search_dirs \
20741: predep_objects \
20742: postdep_objects \
20743: predeps \
20744: postdeps \
20745: compiler_lib_search_path \
20746: LD_CXX \
20747: reload_flag_CXX \
20748: compiler_CXX \
20749: lt_prog_compiler_no_builtin_flag_CXX \
20750: lt_prog_compiler_pic_CXX \
20751: lt_prog_compiler_wl_CXX \
20752: lt_prog_compiler_static_CXX \
20753: lt_cv_prog_compiler_c_o_CXX \
20754: export_dynamic_flag_spec_CXX \
20755: whole_archive_flag_spec_CXX \
20756: compiler_needs_object_CXX \
20757: with_gnu_ld_CXX \
20758: allow_undefined_flag_CXX \
20759: no_undefined_flag_CXX \
20760: hardcode_libdir_flag_spec_CXX \
20761: hardcode_libdir_separator_CXX \
20762: exclude_expsyms_CXX \
20763: include_expsyms_CXX \
20764: file_list_spec_CXX \
20765: compiler_lib_search_dirs_CXX \
20766: predep_objects_CXX \
20767: postdep_objects_CXX \
20768: predeps_CXX \
20769: postdeps_CXX \
20770: compiler_lib_search_path_CXX; do
20771: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20772: *[\\\\\\\`\\"\\\$]*)
20773: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20774: ;;
20775: *)
20776: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20777: ;;
20778: esac
20779: done
20780:
20781: # Double-quote double-evaled strings.
20782: for var in reload_cmds \
20783: old_postinstall_cmds \
20784: old_postuninstall_cmds \
20785: old_archive_cmds \
20786: extract_expsyms_cmds \
20787: old_archive_from_new_cmds \
20788: old_archive_from_expsyms_cmds \
20789: archive_cmds \
20790: archive_expsym_cmds \
20791: module_cmds \
20792: module_expsym_cmds \
20793: export_symbols_cmds \
20794: prelink_cmds \
20795: postlink_cmds \
20796: postinstall_cmds \
20797: postuninstall_cmds \
20798: finish_cmds \
20799: sys_lib_search_path_spec \
20800: sys_lib_dlsearch_path_spec \
20801: reload_cmds_CXX \
20802: old_archive_cmds_CXX \
20803: old_archive_from_new_cmds_CXX \
20804: old_archive_from_expsyms_cmds_CXX \
20805: archive_cmds_CXX \
20806: archive_expsym_cmds_CXX \
20807: module_cmds_CXX \
20808: module_expsym_cmds_CXX \
20809: export_symbols_cmds_CXX \
20810: prelink_cmds_CXX \
20811: postlink_cmds_CXX; do
20812: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20813: *[\\\\\\\`\\"\\\$]*)
20814: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20815: ;;
20816: *)
20817: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20818: ;;
20819: esac
20820: done
20821:
20822: ac_aux_dir='$ac_aux_dir'
20823: xsi_shell='$xsi_shell'
20824: lt_shell_append='$lt_shell_append'
20825:
20826: # See if we are running on zsh, and set the options which allow our
20827: # commands through without removal of \ escapes INIT.
20828: if test -n "\${ZSH_VERSION+set}" ; then
20829: setopt NO_GLOB_SUBST
20830: fi
20831:
20832:
20833: PACKAGE='$PACKAGE'
20834: VERSION='$VERSION'
20835: TIMESTAMP='$TIMESTAMP'
20836: RM='$RM'
20837: ofile='$ofile'
20838:
20839:
20840:
20841:
20842:
20843:
1.62 paf 20844: _ACEOF
20845:
20846:
20847:
20848: cat >>$CONFIG_STATUS <<\_ACEOF
20849: for ac_config_target in $ac_config_targets
1.1 paf 20850: do
1.62 paf 20851: case "$ac_config_target" in
20852: # Handling of arguments.
20853: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20854: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20855: "src/types/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20856: "src/classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20857: "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20858: "src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20859: "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20860: "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
1.73 paf 20861: "src/lib/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20862: "src/lib/smtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
1.67 paf 20863: "src/lib/gc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20864: "src/lib/gc/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
1.103 misha 20865: "src/lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
1.67 paf 20866: "src/lib/cord/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20867: "src/lib/cord/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20868: "src/lib/cord/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
1.62 paf 20869: "src/lib/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
1.70 paf 20870: "src/lib/sdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
1.124 moko 20871: "src/lib/sdbm/pa-include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
1.120 misha 20872: "src/lib/json/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.126 moko 20873: "src/lib/memcached/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
1.127 moko 20874: "src/lib/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
1.62 paf 20875: "src/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20876: "src/targets/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
1.122 moko 20877: "src/targets/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
1.62 paf 20878: "src/targets/isapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20879: "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20880: "etc/parser3.charsets/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20881: "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20882: "bin/auto.p.dist" ) CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20883: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.128 moko 20884: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.62 paf 20885: "src/include/pa_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20886: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20887: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20888: { (exit 1); exit 1; }; };;
1.1 paf 20889: esac
20890: done
20891:
1.62 paf 20892: # If the user did not use the arguments to specify the items to instantiate,
20893: # then the envvar interface is used. Set only those that are not.
20894: # We use the long form for the default assignment because of an extremely
20895: # bizarre bug on SunOS 4.1.3.
20896: if $ac_need_defaults; then
20897: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20898: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20899: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20900: fi
20901:
20902: # Have a temporary directory for convenience. Make it in the build tree
20903: # simply because there is no reason to put it here, and in addition,
20904: # creating and moving files from /tmp can sometimes cause problems.
20905: # Create a temporary directory, and hook for its removal unless debugging.
20906: $debug ||
20907: {
20908: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20909: trap '{ (exit 1); exit 1; }' 1 2 13 15
20910: }
20911:
20912: # Create a (secure) tmp directory for tmp files.
20913:
20914: {
20915: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20916: test -n "$tmp" && test -d "$tmp"
20917: } ||
20918: {
20919: tmp=./confstat$$-$RANDOM
20920: (umask 077 && mkdir $tmp)
20921: } ||
20922: {
20923: echo "$me: cannot create a temporary directory in ." >&2
20924: { (exit 1); exit 1; }
20925: }
20926:
20927: _ACEOF
1.1 paf 20928:
1.62 paf 20929: cat >>$CONFIG_STATUS <<_ACEOF
20930:
20931: #
20932: # CONFIG_FILES section.
20933: #
1.1 paf 20934:
1.62 paf 20935: # No need to generate the scripts if there are no CONFIG_FILES.
20936: # This happens for instance when ./config.status config.h
20937: if test -n "\$CONFIG_FILES"; then
20938: # Protect against being on the right side of a sed subst in config.status.
20939: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20940: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20941: s,@SHELL@,$SHELL,;t t
20942: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20943: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20944: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20945: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20946: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20947: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20948: s,@exec_prefix@,$exec_prefix,;t t
20949: s,@prefix@,$prefix,;t t
20950: s,@program_transform_name@,$program_transform_name,;t t
20951: s,@bindir@,$bindir,;t t
20952: s,@sbindir@,$sbindir,;t t
20953: s,@libexecdir@,$libexecdir,;t t
20954: s,@datadir@,$datadir,;t t
20955: s,@sysconfdir@,$sysconfdir,;t t
20956: s,@sharedstatedir@,$sharedstatedir,;t t
20957: s,@localstatedir@,$localstatedir,;t t
20958: s,@libdir@,$libdir,;t t
20959: s,@includedir@,$includedir,;t t
20960: s,@oldincludedir@,$oldincludedir,;t t
20961: s,@infodir@,$infodir,;t t
20962: s,@mandir@,$mandir,;t t
20963: s,@build_alias@,$build_alias,;t t
20964: s,@host_alias@,$host_alias,;t t
20965: s,@target_alias@,$target_alias,;t t
20966: s,@DEFS@,$DEFS,;t t
20967: s,@ECHO_C@,$ECHO_C,;t t
20968: s,@ECHO_N@,$ECHO_N,;t t
20969: s,@ECHO_T@,$ECHO_T,;t t
20970: s,@LIBS@,$LIBS,;t t
20971: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20972: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20973: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20974: s,@CYGPATH_W@,$CYGPATH_W,;t t
20975: s,@PACKAGE@,$PACKAGE,;t t
20976: s,@VERSION@,$VERSION,;t t
20977: s,@ACLOCAL@,$ACLOCAL,;t t
20978: s,@AUTOCONF@,$AUTOCONF,;t t
20979: s,@AUTOMAKE@,$AUTOMAKE,;t t
20980: s,@AUTOHEADER@,$AUTOHEADER,;t t
20981: s,@MAKEINFO@,$MAKEINFO,;t t
20982: s,@install_sh@,$install_sh,;t t
20983: s,@STRIP@,$STRIP,;t t
20984: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20985: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.86 paf 20986: s,@mkdir_p@,$mkdir_p,;t t
1.62 paf 20987: s,@AWK@,$AWK,;t t
20988: s,@SET_MAKE@,$SET_MAKE,;t t
1.86 paf 20989: s,@am__leading_dot@,$am__leading_dot,;t t
20990: s,@AMTAR@,$AMTAR,;t t
20991: s,@am__tar@,$am__tar,;t t
20992: s,@am__untar@,$am__untar,;t t
1.62 paf 20993: s,@P3S@,$P3S,;t t
20994: s,@build@,$build,;t t
20995: s,@build_cpu@,$build_cpu,;t t
20996: s,@build_vendor@,$build_vendor,;t t
20997: s,@build_os@,$build_os,;t t
20998: s,@host@,$host,;t t
20999: s,@host_cpu@,$host_cpu,;t t
21000: s,@host_vendor@,$host_vendor,;t t
21001: s,@host_os@,$host_os,;t t
21002: s,@YACC@,$YACC,;t t
1.66 paf 21003: s,@CXX@,$CXX,;t t
21004: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.62 paf 21005: s,@LDFLAGS@,$LDFLAGS,;t t
21006: s,@CPPFLAGS@,$CPPFLAGS,;t t
1.66 paf 21007: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1.62 paf 21008: s,@EXEEXT@,$EXEEXT,;t t
21009: s,@OBJEXT@,$OBJEXT,;t t
21010: s,@DEPDIR@,$DEPDIR,;t t
21011: s,@am__include@,$am__include,;t t
21012: s,@am__quote@,$am__quote,;t t
21013: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21014: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21015: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1.66 paf 21016: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21017: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21018: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21019: s,@CC@,$CC,;t t
21020: s,@CFLAGS@,$CFLAGS,;t t
21021: s,@ac_ct_CC@,$ac_ct_CC,;t t
1.62 paf 21022: s,@CCDEPMODE@,$CCDEPMODE,;t t
21023: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21024: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21025: s,@dll_extension@,$dll_extension,;t t
1.67 paf 21026: s,@GC_LIBS@,$GC_LIBS,;t t
1.100 misha 21027: s,@PCRE_INCLUDES@,$PCRE_INCLUDES,;t t
21028: s,@PCRE_LIBS@,$PCRE_LIBS,;t t
1.62 paf 21029: s,@XML_INCLUDES@,$XML_INCLUDES,;t t
21030: s,@XML_LIBS@,$XML_LIBS,;t t
21031: s,@MIME_INCLUDES@,$MIME_INCLUDES,;t t
21032: s,@MIME_LIBS@,$MIME_LIBS,;t t
1.122 moko 21033: s,@APACHE@,$APACHE,;t t
21034: s,@APACHE_INC@,$APACHE_INC,;t t
21035: s,@APACHE_CFLAGS@,$APACHE_CFLAGS,;t t
21036: s,@COMPILE_APACHE_MODULE_TRUE@,$COMPILE_APACHE_MODULE_TRUE,;t t
21037: s,@COMPILE_APACHE_MODULE_FALSE@,$COMPILE_APACHE_MODULE_FALSE,;t t
1.128 moko 21038: s,@AS@,$AS,;t t
21039: s,@ac_ct_AS@,$ac_ct_AS,;t t
21040: s,@DLLTOOL@,$DLLTOOL,;t t
21041: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21042: s,@OBJDUMP@,$OBJDUMP,;t t
21043: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21044: s,@LIBTOOL@,$LIBTOOL,;t t
21045: s,@SED@,$SED,;t t
21046: s,@EGREP@,$EGREP,;t t
21047: s,@FGREP@,$FGREP,;t t
21048: s,@GREP@,$GREP,;t t
21049: s,@LD@,$LD,;t t
21050: s,@DUMPBIN@,$DUMPBIN,;t t
21051: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21052: s,@NM@,$NM,;t t
21053: s,@LN_S@,$LN_S,;t t
21054: s,@AR@,$AR,;t t
21055: s,@ac_ct_AR@,$ac_ct_AR,;t t
21056: s,@RANLIB@,$RANLIB,;t t
21057: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21058: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
21059: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
21060: s,@DSYMUTIL@,$DSYMUTIL,;t t
21061: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
21062: s,@NMEDIT@,$NMEDIT,;t t
21063: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
21064: s,@LIPO@,$LIPO,;t t
21065: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
21066: s,@OTOOL@,$OTOOL,;t t
21067: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
21068: s,@OTOOL64@,$OTOOL64,;t t
21069: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
21070: s,@CPP@,$CPP,;t t
21071: s,@CXXCPP@,$CXXCPP,;t t
21072: s,@LIBLTDL@,$LIBLTDL,;t t
21073: s,@LTDLDEPS@,$LTDLDEPS,;t t
21074: s,@LTDLINCL@,$LTDLINCL,;t t
1.62 paf 21075: s,@INCLTDL@,$INCLTDL,;t t
1.128 moko 21076: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
21077: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
21078: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
21079: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
21080: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
21081: s,@LIBADD_DL@,$LIBADD_DL,;t t
21082: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
21083: s,@ARGZ_H@,$ARGZ_H,;t t
21084: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
21085: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
21086: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
21087: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
1.62 paf 21088: s,@subdirs@,$subdirs,;t t
1.128 moko 21089: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
21090: s,@LTDLOPEN@,$LTDLOPEN,;t t
1.62 paf 21091: s,@LIBOBJS@,$LIBOBJS,;t t
21092: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.128 moko 21093: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
21094: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
1.1 paf 21095: CEOF
21096:
1.62 paf 21097: _ACEOF
1.1 paf 21098:
1.62 paf 21099: cat >>$CONFIG_STATUS <<\_ACEOF
21100: # Split the substitutions into bite-sized pieces for seds with
21101: # small command number limits, like on Digital OSF/1 and HP-UX.
21102: ac_max_sed_lines=48
21103: ac_sed_frag=1 # Number of current file.
21104: ac_beg=1 # First line for current file.
21105: ac_end=$ac_max_sed_lines # Line after last line for current file.
21106: ac_more_lines=:
21107: ac_sed_cmds=
21108: while $ac_more_lines; do
21109: if test $ac_beg -gt 1; then
21110: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21111: else
21112: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21113: fi
21114: if test ! -s $tmp/subs.frag; then
21115: ac_more_lines=false
1.1 paf 21116: else
1.62 paf 21117: # The purpose of the label and of the branching condition is to
21118: # speed up the sed processing (if there are no `@' at all, there
21119: # is no need to browse any of the substitutions).
21120: # These are the two extra sed commands mentioned above.
21121: (echo ':t
21122: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21123: if test -z "$ac_sed_cmds"; then
1.86 paf 21124: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21125: else
1.86 paf 21126: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21127: fi
21128: ac_sed_frag=`expr $ac_sed_frag + 1`
21129: ac_beg=$ac_end
21130: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 paf 21131: fi
1.62 paf 21132: done
21133: if test -z "$ac_sed_cmds"; then
21134: ac_sed_cmds=cat
1.1 paf 21135: fi
1.62 paf 21136: fi # test -n "$CONFIG_FILES"
1.1 paf 21137:
1.62 paf 21138: _ACEOF
21139: cat >>$CONFIG_STATUS <<\_ACEOF
21140: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 paf 21141: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21142: case $ac_file in
21143: - | *:- | *:-:* ) # input from stdin
1.86 paf 21144: cat >$tmp/stdin
21145: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21146: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21147: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21148: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21149: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21150: esac
21151:
1.62 paf 21152: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21153: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21154: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21155: X"$ac_file" : 'X\(//\)[^/]' \| \
21156: X"$ac_file" : 'X\(//\)$' \| \
21157: X"$ac_file" : 'X\(/\)' \| \
21158: . : '\(.\)' 2>/dev/null ||
1.62 paf 21159: echo X"$ac_file" |
21160: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21161: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21162: /^X\(\/\/\)$/{ s//\1/; q; }
21163: /^X\(\/\).*/{ s//\1/; q; }
21164: s/.*/./; q'`
21165: { if $as_mkdir_p; then
21166: mkdir -p "$ac_dir"
21167: else
21168: as_dir="$ac_dir"
21169: as_dirs=
21170: while test ! -d "$as_dir"; do
21171: as_dirs="$as_dir $as_dirs"
21172: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21173: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21174: X"$as_dir" : 'X\(//\)[^/]' \| \
21175: X"$as_dir" : 'X\(//\)$' \| \
21176: X"$as_dir" : 'X\(/\)' \| \
21177: . : '\(.\)' 2>/dev/null ||
1.62 paf 21178: echo X"$as_dir" |
21179: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21180: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21181: /^X\(\/\/\)$/{ s//\1/; q; }
21182: /^X\(\/\).*/{ s//\1/; q; }
21183: s/.*/./; q'`
21184: done
21185: test ! -n "$as_dirs" || mkdir $as_dirs
21186: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21187: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21188: { (exit 1); exit 1; }; }; }
21189:
21190: ac_builddir=.
21191:
21192: if test "$ac_dir" != .; then
21193: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21194: # A "../" for each directory in $ac_dir_suffix.
21195: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21196: else
21197: ac_dir_suffix= ac_top_builddir=
21198: fi
21199:
21200: case $srcdir in
21201: .) # No --srcdir option. We are building in place.
21202: ac_srcdir=.
21203: if test -z "$ac_top_builddir"; then
21204: ac_top_srcdir=.
21205: else
21206: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21207: fi ;;
21208: [\\/]* | ?:[\\/]* ) # Absolute path.
21209: ac_srcdir=$srcdir$ac_dir_suffix;
21210: ac_top_srcdir=$srcdir ;;
21211: *) # Relative path.
21212: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21213: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21214: esac
1.86 paf 21215:
21216: # Do not use `cd foo && pwd` to compute absolute paths, because
21217: # the directories may not exist.
21218: case `pwd` in
21219: .) ac_abs_builddir="$ac_dir";;
21220: *)
21221: case "$ac_dir" in
21222: .) ac_abs_builddir=`pwd`;;
21223: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21224: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21225: esac;;
21226: esac
21227: case $ac_abs_builddir in
21228: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21229: *)
21230: case ${ac_top_builddir}. in
21231: .) ac_abs_top_builddir=$ac_abs_builddir;;
21232: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21233: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21234: esac;;
21235: esac
21236: case $ac_abs_builddir in
21237: .) ac_abs_srcdir=$ac_srcdir;;
21238: *)
21239: case $ac_srcdir in
21240: .) ac_abs_srcdir=$ac_abs_builddir;;
21241: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21242: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21243: esac;;
21244: esac
21245: case $ac_abs_builddir in
21246: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21247: *)
21248: case $ac_top_srcdir in
21249: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21250: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21251: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21252: esac;;
21253: esac
1.62 paf 21254:
1.1 paf 21255:
1.62 paf 21256: case $INSTALL in
21257: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21258: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 paf 21259: esac
21260:
1.62 paf 21261: if test x"$ac_file" != x-; then
21262: { echo "$as_me:$LINENO: creating $ac_file" >&5
21263: echo "$as_me: creating $ac_file" >&6;}
21264: rm -f "$ac_file"
21265: fi
21266: # Let's still pretend it is `configure' which instantiates (i.e., don't
21267: # use $as_me), people would be surprised to read:
21268: # /* config.h. Generated by config.status. */
21269: if test x"$ac_file" = x-; then
21270: configure_input=
21271: else
21272: configure_input="$ac_file. "
21273: fi
21274: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.86 paf 21275: sed 's,.*/,,'` by configure."
1.62 paf 21276:
21277: # First look for the input files in the build tree, otherwise in the
21278: # src tree.
21279: ac_file_inputs=`IFS=:
21280: for f in $ac_file_in; do
21281: case $f in
21282: -) echo $tmp/stdin ;;
21283: [\\/$]*)
1.86 paf 21284: # Absolute (can't be DOS-style, as IFS=:)
21285: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21286: echo "$as_me: error: cannot find input file: $f" >&2;}
21287: { (exit 1); exit 1; }; }
1.86 paf 21288: echo "$f";;
1.62 paf 21289: *) # Relative
1.86 paf 21290: if test -f "$f"; then
21291: # Build tree
21292: echo "$f"
21293: elif test -f "$srcdir/$f"; then
21294: # Source tree
21295: echo "$srcdir/$f"
21296: else
21297: # /dev/null tree
21298: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21299: echo "$as_me: error: cannot find input file: $f" >&2;}
21300: { (exit 1); exit 1; }; }
1.86 paf 21301: fi;;
1.62 paf 21302: esac
21303: done` || { (exit 1); exit 1; }
21304: _ACEOF
21305: cat >>$CONFIG_STATUS <<_ACEOF
21306: sed "$ac_vpsub
21307: $extrasub
21308: _ACEOF
21309: cat >>$CONFIG_STATUS <<\_ACEOF
21310: :t
21311: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21312: s,@configure_input@,$configure_input,;t t
21313: s,@srcdir@,$ac_srcdir,;t t
21314: s,@abs_srcdir@,$ac_abs_srcdir,;t t
21315: s,@top_srcdir@,$ac_top_srcdir,;t t
21316: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21317: s,@builddir@,$ac_builddir,;t t
21318: s,@abs_builddir@,$ac_abs_builddir,;t t
21319: s,@top_builddir@,$ac_top_builddir,;t t
21320: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21321: s,@INSTALL@,$ac_INSTALL,;t t
21322: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21323: rm -f $tmp/stdin
21324: if test x"$ac_file" != x-; then
21325: mv $tmp/out $ac_file
21326: else
21327: cat $tmp/out
21328: rm -f $tmp/out
21329: fi
1.1 paf 21330:
1.62 paf 21331: done
21332: _ACEOF
21333: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 21334:
1.62 paf 21335: #
21336: # CONFIG_HEADER section.
21337: #
1.1 paf 21338:
21339: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21340: # NAME is the cpp macro being defined and VALUE is the value it is being given.
21341: #
21342: # ac_d sets the value in "#define NAME VALUE" lines.
1.86 paf 21343: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21344: ac_dB='[ ].*$,\1#\2'
1.62 paf 21345: ac_dC=' '
21346: ac_dD=',;t'
21347: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.86 paf 21348: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.62 paf 21349: ac_uB='$,\1#\2define\3'
1.1 paf 21350: ac_uC=' '
1.62 paf 21351: ac_uD=',;t'
21352:
21353: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 21354: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21355: case $ac_file in
21356: - | *:- | *:-:* ) # input from stdin
1.86 paf 21357: cat >$tmp/stdin
21358: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21359: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21360: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21361: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21362: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21363: esac
21364:
1.62 paf 21365: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21366: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 21367:
1.62 paf 21368: # First look for the input files in the build tree, otherwise in the
21369: # src tree.
21370: ac_file_inputs=`IFS=:
21371: for f in $ac_file_in; do
21372: case $f in
21373: -) echo $tmp/stdin ;;
21374: [\\/$]*)
1.86 paf 21375: # Absolute (can't be DOS-style, as IFS=:)
21376: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21377: echo "$as_me: error: cannot find input file: $f" >&2;}
21378: { (exit 1); exit 1; }; }
1.86 paf 21379: # Do quote $f, to prevent DOS paths from being IFS'd.
21380: echo "$f";;
1.62 paf 21381: *) # Relative
1.86 paf 21382: if test -f "$f"; then
21383: # Build tree
21384: echo "$f"
21385: elif test -f "$srcdir/$f"; then
21386: # Source tree
21387: echo "$srcdir/$f"
21388: else
21389: # /dev/null tree
21390: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21391: echo "$as_me: error: cannot find input file: $f" >&2;}
21392: { (exit 1); exit 1; }; }
1.86 paf 21393: fi;;
1.62 paf 21394: esac
21395: done` || { (exit 1); exit 1; }
21396: # Remove the trailing spaces.
1.86 paf 21397: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.62 paf 21398:
21399: _ACEOF
21400:
21401: # Transform confdefs.h into two sed scripts, `conftest.defines' and
21402: # `conftest.undefs', that substitutes the proper values into
21403: # config.h.in to produce config.h. The first handles `#define'
21404: # templates, and the second `#undef' templates.
21405: # And first: Protect against being on the right side of a sed subst in
21406: # config.status. Protect against being in an unquoted here document
21407: # in config.status.
21408: rm -f conftest.defines conftest.undefs
21409: # Using a here document instead of a string reduces the quoting nightmare.
21410: # Putting comments in sed scripts is not portable.
21411: #
21412: # `end' is used to avoid that the second main sed command (meant for
21413: # 0-ary CPP macros) applies to n-ary macro definitions.
21414: # See the Autoconf documentation for `clear'.
21415: cat >confdef2sed.sed <<\_ACEOF
21416: s/[\\&,]/\\&/g
21417: s,[\\$`],\\&,g
21418: t clear
21419: : clear
1.86 paf 21420: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.62 paf 21421: t end
1.86 paf 21422: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.62 paf 21423: : end
21424: _ACEOF
21425: # If some macros were called several times there might be several times
21426: # the same #defines, which is useless. Nevertheless, we may not want to
21427: # sort them, since we want the *last* AC-DEFINE to be honored.
21428: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21429: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21430: rm -f confdef2sed.sed
1.1 paf 21431:
21432: # This sed command replaces #undef with comments. This is necessary, for
21433: # example, in the case of _POSIX_SOURCE, which is predefined and required
21434: # on some systems where configure will not decide to define it.
1.62 paf 21435: cat >>conftest.undefs <<\_ACEOF
1.86 paf 21436: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.62 paf 21437: _ACEOF
21438:
21439: # Break up conftest.defines because some shells have a limit on the size
21440: # of here documents, and old seds have small limits too (100 cmds).
21441: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.86 paf 21442: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.62 paf 21443: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21444: echo ' :' >>$CONFIG_STATUS
21445: rm -f conftest.tail
21446: while grep . conftest.defines >/dev/null
21447: do
21448: # Write a limited-size here document to $tmp/defines.sed.
21449: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21450: # Speed up: don't consider the non `#define' lines.
1.86 paf 21451: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.62 paf 21452: # Work around the forget-to-reset-the-flag bug.
21453: echo 't clr' >>$CONFIG_STATUS
21454: echo ': clr' >>$CONFIG_STATUS
21455: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21456: echo 'CEOF
21457: sed -f $tmp/defines.sed $tmp/in >$tmp/out
21458: rm -f $tmp/in
21459: mv $tmp/out $tmp/in
21460: ' >>$CONFIG_STATUS
21461: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21462: rm -f conftest.defines
21463: mv conftest.tail conftest.defines
21464: done
21465: rm -f conftest.defines
21466: echo ' fi # grep' >>$CONFIG_STATUS
21467: echo >>$CONFIG_STATUS
21468:
21469: # Break up conftest.undefs because some shells have a limit on the size
21470: # of here documents, and old seds have small limits too (100 cmds).
21471: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 21472: rm -f conftest.tail
1.62 paf 21473: while grep . conftest.undefs >/dev/null
1.1 paf 21474: do
1.62 paf 21475: # Write a limited-size here document to $tmp/undefs.sed.
21476: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21477: # Speed up: don't consider the non `#undef'
1.86 paf 21478: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.62 paf 21479: # Work around the forget-to-reset-the-flag bug.
21480: echo 't clr' >>$CONFIG_STATUS
21481: echo ': clr' >>$CONFIG_STATUS
21482: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 21483: echo 'CEOF
1.62 paf 21484: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21485: rm -f $tmp/in
21486: mv $tmp/out $tmp/in
21487: ' >>$CONFIG_STATUS
21488: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21489: rm -f conftest.undefs
21490: mv conftest.tail conftest.undefs
21491: done
21492: rm -f conftest.undefs
21493:
21494: cat >>$CONFIG_STATUS <<\_ACEOF
21495: # Let's still pretend it is `configure' which instantiates (i.e., don't
21496: # use $as_me), people would be surprised to read:
21497: # /* config.h. Generated by config.status. */
21498: if test x"$ac_file" = x-; then
21499: echo "/* Generated by configure. */" >$tmp/config.h
21500: else
21501: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21502: fi
21503: cat $tmp/in >>$tmp/config.h
21504: rm -f $tmp/in
21505: if test x"$ac_file" != x-; then
21506: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21507: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21508: echo "$as_me: $ac_file is unchanged" >&6;}
21509: else
21510: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21511: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21512: X"$ac_file" : 'X\(//\)[^/]' \| \
21513: X"$ac_file" : 'X\(//\)$' \| \
21514: X"$ac_file" : 'X\(/\)' \| \
21515: . : '\(.\)' 2>/dev/null ||
1.62 paf 21516: echo X"$ac_file" |
21517: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21518: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21519: /^X\(\/\/\)$/{ s//\1/; q; }
21520: /^X\(\/\).*/{ s//\1/; q; }
21521: s/.*/./; q'`
21522: { if $as_mkdir_p; then
21523: mkdir -p "$ac_dir"
21524: else
21525: as_dir="$ac_dir"
21526: as_dirs=
21527: while test ! -d "$as_dir"; do
21528: as_dirs="$as_dir $as_dirs"
21529: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21530: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21531: X"$as_dir" : 'X\(//\)[^/]' \| \
21532: X"$as_dir" : 'X\(//\)$' \| \
21533: X"$as_dir" : 'X\(/\)' \| \
21534: . : '\(.\)' 2>/dev/null ||
1.62 paf 21535: echo X"$as_dir" |
21536: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21537: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21538: /^X\(\/\/\)$/{ s//\1/; q; }
21539: /^X\(\/\).*/{ s//\1/; q; }
21540: s/.*/./; q'`
21541: done
21542: test ! -n "$as_dirs" || mkdir $as_dirs
21543: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21544: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21545: { (exit 1); exit 1; }; }; }
21546:
21547: rm -f $ac_file
21548: mv $tmp/config.h $ac_file
21549: fi
21550: else
21551: cat $tmp/config.h
21552: rm -f $tmp/config.h
21553: fi
1.86 paf 21554: # Compute $ac_file's index in $config_headers.
21555: _am_stamp_count=1
21556: for _am_header in $config_headers :; do
21557: case $_am_header in
21558: $ac_file | $ac_file:* )
21559: break ;;
21560: * )
21561: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21562: esac
21563: done
1.62 paf 21564: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21565: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21566: X$ac_file : 'X\(//\)[^/]' \| \
21567: X$ac_file : 'X\(//\)$' \| \
21568: X$ac_file : 'X\(/\)' \| \
21569: . : '\(.\)' 2>/dev/null ||
1.62 paf 21570: echo X$ac_file |
21571: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21572: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21573: /^X\(\/\/\)$/{ s//\1/; q; }
21574: /^X\(\/\).*/{ s//\1/; q; }
21575: s/.*/./; q'`/stamp-h$_am_stamp_count
21576: done
21577: _ACEOF
21578: cat >>$CONFIG_STATUS <<\_ACEOF
21579:
21580: #
21581: # CONFIG_COMMANDS section.
21582: #
21583: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21584: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21585: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21586: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21587: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21588: X"$ac_dest" : 'X\(//\)[^/]' \| \
21589: X"$ac_dest" : 'X\(//\)$' \| \
21590: X"$ac_dest" : 'X\(/\)' \| \
21591: . : '\(.\)' 2>/dev/null ||
1.62 paf 21592: echo X"$ac_dest" |
21593: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21594: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21595: /^X\(\/\/\)$/{ s//\1/; q; }
21596: /^X\(\/\).*/{ s//\1/; q; }
21597: s/.*/./; q'`
1.86 paf 21598: { if $as_mkdir_p; then
21599: mkdir -p "$ac_dir"
21600: else
21601: as_dir="$ac_dir"
21602: as_dirs=
21603: while test ! -d "$as_dir"; do
21604: as_dirs="$as_dir $as_dirs"
21605: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21606: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21607: X"$as_dir" : 'X\(//\)[^/]' \| \
21608: X"$as_dir" : 'X\(//\)$' \| \
21609: X"$as_dir" : 'X\(/\)' \| \
21610: . : '\(.\)' 2>/dev/null ||
21611: echo X"$as_dir" |
21612: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21613: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21614: /^X\(\/\/\)$/{ s//\1/; q; }
21615: /^X\(\/\).*/{ s//\1/; q; }
21616: s/.*/./; q'`
21617: done
21618: test ! -n "$as_dirs" || mkdir $as_dirs
21619: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21620: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21621: { (exit 1); exit 1; }; }; }
21622:
1.62 paf 21623: ac_builddir=.
21624:
21625: if test "$ac_dir" != .; then
21626: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21627: # A "../" for each directory in $ac_dir_suffix.
21628: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21629: else
21630: ac_dir_suffix= ac_top_builddir=
21631: fi
21632:
21633: case $srcdir in
21634: .) # No --srcdir option. We are building in place.
21635: ac_srcdir=.
21636: if test -z "$ac_top_builddir"; then
21637: ac_top_srcdir=.
21638: else
21639: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21640: fi ;;
21641: [\\/]* | ?:[\\/]* ) # Absolute path.
21642: ac_srcdir=$srcdir$ac_dir_suffix;
21643: ac_top_srcdir=$srcdir ;;
21644: *) # Relative path.
21645: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21646: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21647: esac
1.86 paf 21648:
21649: # Do not use `cd foo && pwd` to compute absolute paths, because
21650: # the directories may not exist.
21651: case `pwd` in
21652: .) ac_abs_builddir="$ac_dir";;
21653: *)
21654: case "$ac_dir" in
21655: .) ac_abs_builddir=`pwd`;;
21656: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21657: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21658: esac;;
21659: esac
21660: case $ac_abs_builddir in
21661: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21662: *)
21663: case ${ac_top_builddir}. in
21664: .) ac_abs_top_builddir=$ac_abs_builddir;;
21665: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21666: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21667: esac;;
21668: esac
21669: case $ac_abs_builddir in
21670: .) ac_abs_srcdir=$ac_srcdir;;
21671: *)
21672: case $ac_srcdir in
21673: .) ac_abs_srcdir=$ac_abs_builddir;;
21674: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21675: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21676: esac;;
21677: esac
21678: case $ac_abs_builddir in
21679: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21680: *)
21681: case $ac_top_srcdir in
21682: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21683: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21684: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21685: esac;;
21686: esac
1.62 paf 21687:
21688:
21689: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21690: echo "$as_me: executing $ac_dest commands" >&6;}
21691: case $ac_dest in
21692: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21693: # Strip MF so we end up with the name of the file.
21694: mf=`echo "$mf" | sed -e 's/:.*$//'`
21695: # Check whether this is an Automake generated Makefile or not.
21696: # We used to match only the files named `Makefile.in', but
21697: # some people rename them; so instead we look at the file content.
21698: # Grep'ing the first line is not enough: some people post-process
21699: # each Makefile.in and add a new line on top of each file to say so.
21700: # So let's grep whole file.
21701: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21702: dirpart=`(dirname "$mf") 2>/dev/null ||
21703: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21704: X"$mf" : 'X\(//\)[^/]' \| \
21705: X"$mf" : 'X\(//\)$' \| \
21706: X"$mf" : 'X\(/\)' \| \
21707: . : '\(.\)' 2>/dev/null ||
1.62 paf 21708: echo X"$mf" |
21709: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21710: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21711: /^X\(\/\/\)$/{ s//\1/; q; }
21712: /^X\(\/\).*/{ s//\1/; q; }
21713: s/.*/./; q'`
21714: else
21715: continue
21716: fi
1.86 paf 21717: # Extract the definition of DEPDIR, am__include, and am__quote
21718: # from the Makefile without running `make'.
21719: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.62 paf 21720: test -z "$DEPDIR" && continue
1.86 paf 21721: am__include=`sed -n 's/^am__include = //p' < "$mf"`
21722: test -z "am__include" && continue
21723: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.62 paf 21724: # When using ansi2knr, U may be empty or an underscore; expand it
1.86 paf 21725: U=`sed -n 's/^U = //p' < "$mf"`
21726: # Find all dependency output files, they are included files with
21727: # $(DEPDIR) in their names. We invoke sed twice because it is the
21728: # simplest approach to changing $(DEPDIR) to its actual value in the
21729: # expansion.
21730: for file in `sed -n "
21731: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.62 paf 21732: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21733: # Make sure the directory exists.
21734: test -f "$dirpart/$file" && continue
21735: fdir=`(dirname "$file") 2>/dev/null ||
21736: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21737: X"$file" : 'X\(//\)[^/]' \| \
21738: X"$file" : 'X\(//\)$' \| \
21739: X"$file" : 'X\(/\)' \| \
21740: . : '\(.\)' 2>/dev/null ||
1.62 paf 21741: echo X"$file" |
21742: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744: /^X\(\/\/\)$/{ s//\1/; q; }
21745: /^X\(\/\).*/{ s//\1/; q; }
21746: s/.*/./; q'`
21747: { if $as_mkdir_p; then
21748: mkdir -p $dirpart/$fdir
21749: else
21750: as_dir=$dirpart/$fdir
21751: as_dirs=
21752: while test ! -d "$as_dir"; do
21753: as_dirs="$as_dir $as_dirs"
21754: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21755: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21756: X"$as_dir" : 'X\(//\)[^/]' \| \
21757: X"$as_dir" : 'X\(//\)$' \| \
21758: X"$as_dir" : 'X\(/\)' \| \
21759: . : '\(.\)' 2>/dev/null ||
1.62 paf 21760: echo X"$as_dir" |
21761: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21762: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21763: /^X\(\/\/\)$/{ s//\1/; q; }
21764: /^X\(\/\).*/{ s//\1/; q; }
21765: s/.*/./; q'`
21766: done
21767: test ! -n "$as_dirs" || mkdir $as_dirs
21768: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21769: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21770: { (exit 1); exit 1; }; }; }
1.1 paf 21771:
1.62 paf 21772: # echo "creating $dirpart/$file"
21773: echo '# dummy' > "$dirpart/$file"
21774: done
21775: done
21776: ;;
1.128 moko 21777: libtool )
21778:
21779: # See if we are running on zsh, and set the options which allow our
21780: # commands through without removal of \ escapes.
21781: if test -n "${ZSH_VERSION+set}" ; then
21782: setopt NO_GLOB_SUBST
21783: fi
21784:
21785: cfgfile="${ofile}T"
21786: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21787: $RM "$cfgfile"
21788:
21789: cat <<_LT_EOF >> "$cfgfile"
21790: #! $SHELL
21791:
21792: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21793: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21794: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21795: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21796: #
21797: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21798: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21799: # Foundation, Inc.
21800: # Written by Gordon Matzigkeit, 1996
21801: #
21802: # This file is part of GNU Libtool.
21803: #
21804: # GNU Libtool is free software; you can redistribute it and/or
21805: # modify it under the terms of the GNU General Public License as
21806: # published by the Free Software Foundation; either version 2 of
21807: # the License, or (at your option) any later version.
21808: #
21809: # As a special exception to the GNU General Public License,
21810: # if you distribute this file as part of a program or library that
21811: # is built using GNU Libtool, you may include this file under the
21812: # same distribution terms that you use for the rest of that program.
21813: #
21814: # GNU Libtool is distributed in the hope that it will be useful,
21815: # but WITHOUT ANY WARRANTY; without even the implied warranty of
21816: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21817: # GNU General Public License for more details.
21818: #
21819: # You should have received a copy of the GNU General Public License
21820: # along with GNU Libtool; see the file COPYING. If not, a copy
21821: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21822: # obtained by writing to the Free Software Foundation, Inc.,
21823: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21824:
21825:
21826: # The names of the tagged configurations supported by this script.
21827: available_tags="CXX "
21828:
21829: # ### BEGIN LIBTOOL CONFIG
21830:
21831: # Which release of libtool.m4 was used?
21832: macro_version=$macro_version
21833: macro_revision=$macro_revision
21834:
21835: # Assembler program.
21836: AS=$lt_AS
21837:
21838: # DLL creation program.
21839: DLLTOOL=$lt_DLLTOOL
21840:
21841: # Object dumper program.
21842: OBJDUMP=$lt_OBJDUMP
21843:
21844: # Whether or not to build shared libraries.
21845: build_libtool_libs=$enable_shared
21846:
1.134 moko 21847: # Whether or not to build static libraries.
21848: build_old_libs=$enable_static
21849:
1.128 moko 21850: # What type of objects to build.
21851: pic_mode=$pic_mode
21852:
21853: # Whether or not to optimize for fast installation.
21854: fast_install=$enable_fast_install
21855:
21856: # Shell to use when invoking shell scripts.
21857: SHELL=$lt_SHELL
21858:
21859: # An echo program that protects backslashes.
21860: ECHO=$lt_ECHO
21861:
21862: # The PATH separator for the build system.
21863: PATH_SEPARATOR=$lt_PATH_SEPARATOR
21864:
21865: # The host system.
21866: host_alias=$host_alias
21867: host=$host
21868: host_os=$host_os
21869:
21870: # The build system.
21871: build_alias=$build_alias
21872: build=$build
21873: build_os=$build_os
21874:
21875: # A sed program that does not truncate output.
21876: SED=$lt_SED
21877:
21878: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21879: Xsed="\$SED -e 1s/^X//"
21880:
21881: # A grep program that handles long lines.
21882: GREP=$lt_GREP
21883:
21884: # An ERE matcher.
21885: EGREP=$lt_EGREP
21886:
21887: # A literal string matcher.
21888: FGREP=$lt_FGREP
21889:
21890: # A BSD- or MS-compatible name lister.
21891: NM=$lt_NM
21892:
21893: # Whether we need soft or hard links.
21894: LN_S=$lt_LN_S
21895:
21896: # What is the maximum length of a command?
21897: max_cmd_len=$max_cmd_len
21898:
21899: # Object file suffix (normally "o").
21900: objext=$ac_objext
21901:
21902: # Executable file suffix (normally "").
21903: exeext=$exeext
21904:
21905: # whether the shell understands "unset".
21906: lt_unset=$lt_unset
21907:
21908: # turn spaces into newlines.
21909: SP2NL=$lt_lt_SP2NL
21910:
21911: # turn newlines into spaces.
21912: NL2SP=$lt_lt_NL2SP
21913:
21914: # convert \$build file names to \$host format.
21915: to_host_file_cmd=$lt_cv_to_host_file_cmd
21916:
21917: # convert \$build files to toolchain format.
21918: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21919:
21920: # Method to check whether dependent libraries are shared objects.
21921: deplibs_check_method=$lt_deplibs_check_method
21922:
21923: # Command to use when deplibs_check_method = "file_magic".
21924: file_magic_cmd=$lt_file_magic_cmd
21925:
21926: # How to find potential files when deplibs_check_method = "file_magic".
21927: file_magic_glob=$lt_file_magic_glob
21928:
21929: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21930: want_nocaseglob=$lt_want_nocaseglob
21931:
21932: # Command to associate shared and link libraries.
21933: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21934:
21935: # The archiver.
21936: AR=$lt_AR
21937:
21938: # Flags to create an archive.
21939: AR_FLAGS=$lt_AR_FLAGS
21940:
21941: # How to feed a file listing to the archiver.
21942: archiver_list_spec=$lt_archiver_list_spec
21943:
21944: # A symbol stripping program.
21945: STRIP=$lt_STRIP
21946:
21947: # Commands used to install an old-style archive.
21948: RANLIB=$lt_RANLIB
21949: old_postinstall_cmds=$lt_old_postinstall_cmds
21950: old_postuninstall_cmds=$lt_old_postuninstall_cmds
21951:
21952: # Whether to use a lock for old archive extraction.
21953: lock_old_archive_extraction=$lock_old_archive_extraction
21954:
21955: # A C compiler.
21956: LTCC=$lt_CC
21957:
21958: # LTCC compiler flags.
21959: LTCFLAGS=$lt_CFLAGS
21960:
21961: # Take the output of nm and produce a listing of raw symbols and C names.
21962: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21963:
21964: # Transform the output of nm in a proper C declaration.
21965: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21966:
21967: # Transform the output of nm in a C name address pair.
21968: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21969:
21970: # Transform the output of nm in a C name address pair when lib prefix is needed.
21971: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21972:
21973: # Specify filename containing input files for \$NM.
21974: nm_file_list_spec=$lt_nm_file_list_spec
21975:
21976: # The root where to search for dependent libraries,and in which our libraries should be installed.
21977: lt_sysroot=$lt_sysroot
21978:
21979: # The name of the directory that contains temporary libtool files.
21980: objdir=$objdir
21981:
21982: # Used to examine libraries when file_magic_cmd begins with "file".
21983: MAGIC_CMD=$MAGIC_CMD
21984:
21985: # Must we lock files when doing compilation?
21986: need_locks=$lt_need_locks
21987:
21988: # Manifest tool.
21989: MANIFEST_TOOL=$lt_MANIFEST_TOOL
21990:
21991: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21992: DSYMUTIL=$lt_DSYMUTIL
21993:
21994: # Tool to change global to local symbols on Mac OS X.
21995: NMEDIT=$lt_NMEDIT
21996:
21997: # Tool to manipulate fat objects and archives on Mac OS X.
21998: LIPO=$lt_LIPO
21999:
22000: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22001: OTOOL=$lt_OTOOL
22002:
22003: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22004: OTOOL64=$lt_OTOOL64
22005:
22006: # Old archive suffix (normally "a").
22007: libext=$libext
22008:
22009: # Shared library suffix (normally ".so").
22010: shrext_cmds=$lt_shrext_cmds
22011:
22012: # The commands to extract the exported symbol list from a shared archive.
22013: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22014:
22015: # Variables whose values should be saved in libtool wrapper scripts and
22016: # restored at link time.
22017: variables_saved_for_relink=$lt_variables_saved_for_relink
22018:
22019: # Do we need the "lib" prefix for modules?
22020: need_lib_prefix=$need_lib_prefix
22021:
22022: # Do we need a version for libraries?
22023: need_version=$need_version
22024:
22025: # Library versioning type.
22026: version_type=$version_type
22027:
22028: # Shared library runtime path variable.
22029: runpath_var=$runpath_var
22030:
22031: # Shared library path variable.
22032: shlibpath_var=$shlibpath_var
22033:
22034: # Is shlibpath searched before the hard-coded library search path?
22035: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22036:
22037: # Format of library name prefix.
22038: libname_spec=$lt_libname_spec
22039:
22040: # List of archive names. First name is the real one, the rest are links.
22041: # The last name is the one that the linker finds with -lNAME
22042: library_names_spec=$lt_library_names_spec
22043:
22044: # The coded name of the library, if different from the real name.
22045: soname_spec=$lt_soname_spec
22046:
22047: # Permission mode override for installation of shared libraries.
22048: install_override_mode=$lt_install_override_mode
22049:
22050: # Command to use after installation of a shared archive.
22051: postinstall_cmds=$lt_postinstall_cmds
22052:
22053: # Command to use after uninstallation of a shared archive.
22054: postuninstall_cmds=$lt_postuninstall_cmds
22055:
22056: # Commands used to finish a libtool library installation in a directory.
22057: finish_cmds=$lt_finish_cmds
22058:
22059: # As "finish_cmds", except a single script fragment to be evaled but
22060: # not shown.
22061: finish_eval=$lt_finish_eval
22062:
22063: # Whether we should hardcode library paths into libraries.
22064: hardcode_into_libs=$hardcode_into_libs
22065:
22066: # Compile-time system search path for libraries.
22067: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22068:
22069: # Run-time system search path for libraries.
22070: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22071:
22072: # Whether dlopen is supported.
22073: dlopen_support=$enable_dlopen
22074:
22075: # Whether dlopen of programs is supported.
22076: dlopen_self=$enable_dlopen_self
22077:
22078: # Whether dlopen of statically linked programs is supported.
22079: dlopen_self_static=$enable_dlopen_self_static
22080:
22081: # Commands to strip libraries.
22082: old_striplib=$lt_old_striplib
22083: striplib=$lt_striplib
22084:
22085:
22086: # The linker used to build libraries.
22087: LD=$lt_LD
22088:
22089: # How to create reloadable object files.
22090: reload_flag=$lt_reload_flag
22091: reload_cmds=$lt_reload_cmds
22092:
22093: # Commands used to build an old-style archive.
22094: old_archive_cmds=$lt_old_archive_cmds
22095:
22096: # A language specific compiler.
22097: CC=$lt_compiler
22098:
22099: # Is the compiler the GNU compiler?
22100: with_gcc=$GCC
22101:
22102: # Compiler flag to turn off builtin functions.
22103: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22104:
22105: # Additional compiler flags for building library objects.
22106: pic_flag=$lt_lt_prog_compiler_pic
22107:
22108: # How to pass a linker flag through the compiler.
22109: wl=$lt_lt_prog_compiler_wl
22110:
22111: # Compiler flag to prevent dynamic linking.
22112: link_static_flag=$lt_lt_prog_compiler_static
22113:
22114: # Does compiler simultaneously support -c and -o options?
22115: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22116:
22117: # Whether or not to add -lc for building shared libraries.
22118: build_libtool_need_lc=$archive_cmds_need_lc
22119:
22120: # Whether or not to disallow shared libs when runtime libs are static.
22121: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22122:
22123: # Compiler flag to allow reflexive dlopens.
22124: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22125:
22126: # Compiler flag to generate shared objects directly from archives.
22127: whole_archive_flag_spec=$lt_whole_archive_flag_spec
22128:
22129: # Whether the compiler copes with passing no objects directly.
22130: compiler_needs_object=$lt_compiler_needs_object
22131:
22132: # Create an old-style archive from a shared archive.
22133: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22134:
22135: # Create a temporary old-style archive to link instead of a shared archive.
22136: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22137:
22138: # Commands used to build a shared archive.
22139: archive_cmds=$lt_archive_cmds
22140: archive_expsym_cmds=$lt_archive_expsym_cmds
22141:
22142: # Commands used to build a loadable module if different from building
22143: # a shared archive.
22144: module_cmds=$lt_module_cmds
22145: module_expsym_cmds=$lt_module_expsym_cmds
22146:
22147: # Whether we are building with GNU ld or not.
22148: with_gnu_ld=$lt_with_gnu_ld
22149:
22150: # Flag that allows shared libraries with undefined symbols to be built.
22151: allow_undefined_flag=$lt_allow_undefined_flag
22152:
22153: # Flag that enforces no undefined symbols.
22154: no_undefined_flag=$lt_no_undefined_flag
22155:
22156: # Flag to hardcode \$libdir into a binary during linking.
22157: # This must work even if \$libdir does not exist
22158: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22159:
22160: # Whether we need a single "-rpath" flag with a separated argument.
22161: hardcode_libdir_separator=$lt_hardcode_libdir_separator
22162:
22163: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22164: # DIR into the resulting binary.
22165: hardcode_direct=$hardcode_direct
22166:
22167: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22168: # DIR into the resulting binary and the resulting library dependency is
22169: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22170: # library is relocated.
22171: hardcode_direct_absolute=$hardcode_direct_absolute
22172:
22173: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22174: # into the resulting binary.
22175: hardcode_minus_L=$hardcode_minus_L
22176:
22177: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22178: # into the resulting binary.
22179: hardcode_shlibpath_var=$hardcode_shlibpath_var
22180:
22181: # Set to "yes" if building a shared library automatically hardcodes DIR
22182: # into the library and all subsequent libraries and executables linked
22183: # against it.
22184: hardcode_automatic=$hardcode_automatic
22185:
22186: # Set to yes if linker adds runtime paths of dependent libraries
22187: # to runtime path list.
22188: inherit_rpath=$inherit_rpath
22189:
22190: # Whether libtool must link a program against all its dependency libraries.
22191: link_all_deplibs=$link_all_deplibs
22192:
22193: # Set to "yes" if exported symbols are required.
22194: always_export_symbols=$always_export_symbols
22195:
22196: # The commands to list exported symbols.
22197: export_symbols_cmds=$lt_export_symbols_cmds
22198:
22199: # Symbols that should not be listed in the preloaded symbols.
22200: exclude_expsyms=$lt_exclude_expsyms
22201:
22202: # Symbols that must always be exported.
22203: include_expsyms=$lt_include_expsyms
22204:
22205: # Commands necessary for linking programs (against libraries) with templates.
22206: prelink_cmds=$lt_prelink_cmds
22207:
22208: # Commands necessary for finishing linking programs.
22209: postlink_cmds=$lt_postlink_cmds
22210:
22211: # Specify filename containing input files.
22212: file_list_spec=$lt_file_list_spec
22213:
22214: # How to hardcode a shared library path into an executable.
22215: hardcode_action=$hardcode_action
22216:
22217: # The directories searched by this compiler when creating a shared library.
22218: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22219:
22220: # Dependencies to place before and after the objects being linked to
22221: # create a shared library.
22222: predep_objects=$lt_predep_objects
22223: postdep_objects=$lt_postdep_objects
22224: predeps=$lt_predeps
22225: postdeps=$lt_postdeps
22226:
22227: # The library search path used internally by the compiler when linking
22228: # a shared library.
22229: compiler_lib_search_path=$lt_compiler_lib_search_path
22230:
22231: # ### END LIBTOOL CONFIG
22232:
22233: _LT_EOF
22234:
22235: case $host_os in
22236: aix3*)
22237: cat <<\_LT_EOF >> "$cfgfile"
22238: # AIX sometimes has problems with the GCC collect2 program. For some
22239: # reason, if we set the COLLECT_NAMES environment variable, the problems
22240: # vanish in a puff of smoke.
22241: if test "X${COLLECT_NAMES+set}" != Xset; then
22242: COLLECT_NAMES=
22243: export COLLECT_NAMES
22244: fi
22245: _LT_EOF
22246: ;;
22247: esac
22248:
22249:
22250: ltmain="$ac_aux_dir/ltmain.sh"
22251:
22252:
22253: # We use sed instead of cat because bash on DJGPP gets confused if
22254: # if finds mixed CR/LF and LF-only lines. Since sed operates in
22255: # text mode, it properly converts lines to CR/LF. This bash problem
22256: # is reportedly fixed, but why not run on old versions too?
22257: sed '$q' "$ltmain" >> "$cfgfile" \
22258: || (rm -f "$cfgfile"; exit 1)
22259:
22260: if test x"$xsi_shell" = xyes; then
22261: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22262: func_dirname ()\
22263: {\
22264: \ case ${1} in\
22265: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22266: \ * ) func_dirname_result="${3}" ;;\
22267: \ esac\
22268: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22269: && mv -f "$cfgfile.tmp" "$cfgfile" \
22270: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22271: test 0 -eq $? || _lt_function_replace_fail=:
22272:
22273:
22274: sed -e '/^func_basename ()$/,/^} # func_basename /c\
22275: func_basename ()\
22276: {\
22277: \ func_basename_result="${1##*/}"\
22278: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22279: && mv -f "$cfgfile.tmp" "$cfgfile" \
22280: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22281: test 0 -eq $? || _lt_function_replace_fail=:
22282:
22283:
22284: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22285: func_dirname_and_basename ()\
22286: {\
22287: \ case ${1} in\
22288: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22289: \ * ) func_dirname_result="${3}" ;;\
22290: \ esac\
22291: \ func_basename_result="${1##*/}"\
22292: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22293: && mv -f "$cfgfile.tmp" "$cfgfile" \
22294: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22295: test 0 -eq $? || _lt_function_replace_fail=:
22296:
22297:
22298: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22299: func_stripname ()\
22300: {\
22301: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22302: \ # positional parameters, so assign one to ordinary parameter first.\
22303: \ func_stripname_result=${3}\
22304: \ func_stripname_result=${func_stripname_result#"${1}"}\
22305: \ func_stripname_result=${func_stripname_result%"${2}"}\
22306: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22307: && mv -f "$cfgfile.tmp" "$cfgfile" \
22308: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22309: test 0 -eq $? || _lt_function_replace_fail=:
22310:
22311:
22312: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22313: func_split_long_opt ()\
22314: {\
22315: \ func_split_long_opt_name=${1%%=*}\
22316: \ func_split_long_opt_arg=${1#*=}\
22317: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22318: && mv -f "$cfgfile.tmp" "$cfgfile" \
22319: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22320: test 0 -eq $? || _lt_function_replace_fail=:
22321:
22322:
22323: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22324: func_split_short_opt ()\
22325: {\
22326: \ func_split_short_opt_arg=${1#??}\
22327: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22328: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22329: && mv -f "$cfgfile.tmp" "$cfgfile" \
22330: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22331: test 0 -eq $? || _lt_function_replace_fail=:
22332:
22333:
22334: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22335: func_lo2o ()\
22336: {\
22337: \ case ${1} in\
22338: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22339: \ *) func_lo2o_result=${1} ;;\
22340: \ esac\
22341: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22342: && mv -f "$cfgfile.tmp" "$cfgfile" \
22343: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22344: test 0 -eq $? || _lt_function_replace_fail=:
22345:
22346:
22347: sed -e '/^func_xform ()$/,/^} # func_xform /c\
22348: func_xform ()\
22349: {\
22350: func_xform_result=${1%.*}.lo\
22351: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22352: && mv -f "$cfgfile.tmp" "$cfgfile" \
22353: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22354: test 0 -eq $? || _lt_function_replace_fail=:
22355:
22356:
22357: sed -e '/^func_arith ()$/,/^} # func_arith /c\
22358: func_arith ()\
22359: {\
22360: func_arith_result=$(( $* ))\
22361: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22362: && mv -f "$cfgfile.tmp" "$cfgfile" \
22363: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22364: test 0 -eq $? || _lt_function_replace_fail=:
22365:
22366:
22367: sed -e '/^func_len ()$/,/^} # func_len /c\
22368: func_len ()\
22369: {\
22370: func_len_result=${#1}\
22371: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22372: && mv -f "$cfgfile.tmp" "$cfgfile" \
22373: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22374: test 0 -eq $? || _lt_function_replace_fail=:
22375:
22376: fi
22377:
22378: if test x"$lt_shell_append" = xyes; then
22379: sed -e '/^func_append ()$/,/^} # func_append /c\
22380: func_append ()\
22381: {\
22382: eval "${1}+=\\${2}"\
22383: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22384: && mv -f "$cfgfile.tmp" "$cfgfile" \
22385: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22386: test 0 -eq $? || _lt_function_replace_fail=:
22387:
22388:
22389: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22390: func_append_quoted ()\
22391: {\
22392: \ func_quote_for_eval "${2}"\
22393: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22394: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22395: && mv -f "$cfgfile.tmp" "$cfgfile" \
22396: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22397: test 0 -eq $? || _lt_function_replace_fail=:
22398:
22399:
22400: # Save a `func_append' function call where possible by direct use of '+='
22401: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22402: && mv -f "$cfgfile.tmp" "$cfgfile" \
22403: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22404: test 0 -eq $? || _lt_function_replace_fail=:
22405: else
22406: # Save a `func_append' function call even when '+=' is not available
22407: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22408: && mv -f "$cfgfile.tmp" "$cfgfile" \
22409: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22410: test 0 -eq $? || _lt_function_replace_fail=:
22411: fi
22412:
22413: if test x"$_lt_function_replace_fail" = x":"; then
22414: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22415: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22416: fi
22417:
22418:
22419: mv -f "$cfgfile" "$ofile" ||
22420: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22421: chmod +x "$ofile"
22422:
22423:
22424: cat <<_LT_EOF >> "$ofile"
22425:
22426: # ### BEGIN LIBTOOL TAG CONFIG: CXX
22427:
22428: # The linker used to build libraries.
22429: LD=$lt_LD_CXX
22430:
22431: # How to create reloadable object files.
22432: reload_flag=$lt_reload_flag_CXX
22433: reload_cmds=$lt_reload_cmds_CXX
22434:
22435: # Commands used to build an old-style archive.
22436: old_archive_cmds=$lt_old_archive_cmds_CXX
22437:
22438: # A language specific compiler.
22439: CC=$lt_compiler_CXX
22440:
22441: # Is the compiler the GNU compiler?
22442: with_gcc=$GCC_CXX
22443:
22444: # Compiler flag to turn off builtin functions.
22445: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22446:
22447: # Additional compiler flags for building library objects.
22448: pic_flag=$lt_lt_prog_compiler_pic_CXX
22449:
22450: # How to pass a linker flag through the compiler.
22451: wl=$lt_lt_prog_compiler_wl_CXX
22452:
22453: # Compiler flag to prevent dynamic linking.
22454: link_static_flag=$lt_lt_prog_compiler_static_CXX
22455:
22456: # Does compiler simultaneously support -c and -o options?
22457: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22458:
22459: # Whether or not to add -lc for building shared libraries.
22460: build_libtool_need_lc=$archive_cmds_need_lc_CXX
22461:
22462: # Whether or not to disallow shared libs when runtime libs are static.
22463: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22464:
22465: # Compiler flag to allow reflexive dlopens.
22466: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22467:
22468: # Compiler flag to generate shared objects directly from archives.
22469: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22470:
22471: # Whether the compiler copes with passing no objects directly.
22472: compiler_needs_object=$lt_compiler_needs_object_CXX
22473:
22474: # Create an old-style archive from a shared archive.
22475: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22476:
22477: # Create a temporary old-style archive to link instead of a shared archive.
22478: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22479:
22480: # Commands used to build a shared archive.
22481: archive_cmds=$lt_archive_cmds_CXX
22482: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22483:
22484: # Commands used to build a loadable module if different from building
22485: # a shared archive.
22486: module_cmds=$lt_module_cmds_CXX
22487: module_expsym_cmds=$lt_module_expsym_cmds_CXX
22488:
22489: # Whether we are building with GNU ld or not.
22490: with_gnu_ld=$lt_with_gnu_ld_CXX
22491:
22492: # Flag that allows shared libraries with undefined symbols to be built.
22493: allow_undefined_flag=$lt_allow_undefined_flag_CXX
22494:
22495: # Flag that enforces no undefined symbols.
22496: no_undefined_flag=$lt_no_undefined_flag_CXX
22497:
22498: # Flag to hardcode \$libdir into a binary during linking.
22499: # This must work even if \$libdir does not exist
22500: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22501:
22502: # Whether we need a single "-rpath" flag with a separated argument.
22503: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22504:
22505: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22506: # DIR into the resulting binary.
22507: hardcode_direct=$hardcode_direct_CXX
22508:
22509: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22510: # DIR into the resulting binary and the resulting library dependency is
22511: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22512: # library is relocated.
22513: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22514:
22515: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22516: # into the resulting binary.
22517: hardcode_minus_L=$hardcode_minus_L_CXX
22518:
22519: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22520: # into the resulting binary.
22521: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22522:
22523: # Set to "yes" if building a shared library automatically hardcodes DIR
22524: # into the library and all subsequent libraries and executables linked
22525: # against it.
22526: hardcode_automatic=$hardcode_automatic_CXX
22527:
22528: # Set to yes if linker adds runtime paths of dependent libraries
22529: # to runtime path list.
22530: inherit_rpath=$inherit_rpath_CXX
22531:
22532: # Whether libtool must link a program against all its dependency libraries.
22533: link_all_deplibs=$link_all_deplibs_CXX
22534:
22535: # Set to "yes" if exported symbols are required.
22536: always_export_symbols=$always_export_symbols_CXX
22537:
22538: # The commands to list exported symbols.
22539: export_symbols_cmds=$lt_export_symbols_cmds_CXX
22540:
22541: # Symbols that should not be listed in the preloaded symbols.
22542: exclude_expsyms=$lt_exclude_expsyms_CXX
22543:
22544: # Symbols that must always be exported.
22545: include_expsyms=$lt_include_expsyms_CXX
22546:
22547: # Commands necessary for linking programs (against libraries) with templates.
22548: prelink_cmds=$lt_prelink_cmds_CXX
22549:
22550: # Commands necessary for finishing linking programs.
22551: postlink_cmds=$lt_postlink_cmds_CXX
22552:
22553: # Specify filename containing input files.
22554: file_list_spec=$lt_file_list_spec_CXX
22555:
22556: # How to hardcode a shared library path into an executable.
22557: hardcode_action=$hardcode_action_CXX
22558:
22559: # The directories searched by this compiler when creating a shared library.
22560: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22561:
22562: # Dependencies to place before and after the objects being linked to
22563: # create a shared library.
22564: predep_objects=$lt_predep_objects_CXX
22565: postdep_objects=$lt_postdep_objects_CXX
22566: predeps=$lt_predeps_CXX
22567: postdeps=$lt_postdeps_CXX
22568:
22569: # The library search path used internally by the compiler when linking
22570: # a shared library.
22571: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22572:
22573: # ### END LIBTOOL TAG CONFIG: CXX
22574: _LT_EOF
22575:
22576: ;;
1.62 paf 22577: esac
22578: done
22579: _ACEOF
22580:
22581: cat >>$CONFIG_STATUS <<\_ACEOF
22582:
22583: { (exit 0); exit 0; }
22584: _ACEOF
1.1 paf 22585: chmod +x $CONFIG_STATUS
1.62 paf 22586: ac_clean_files=$ac_clean_files_save
22587:
1.1 paf 22588:
1.62 paf 22589: # configure is writing to config.log, and then calls config.status.
22590: # config.status does its own redirection, appending to config.log.
22591: # Unfortunately, on DOS this fails, as config.log is still kept open
22592: # by configure, so config.status won't be able to write to it; its
22593: # output is simply discarded. So we exec the FD to /dev/null,
22594: # effectively closing config.log, so it can be properly (re)opened and
22595: # appended to by config.status. When coming back to configure, we
22596: # need to make the FD available again.
22597: if test "$no_create" != yes; then
22598: ac_cs_success=:
22599: ac_config_status_args=
22600: test "$silent" = yes &&
22601: ac_config_status_args="$ac_config_status_args --quiet"
22602: exec 5>/dev/null
22603: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22604: exec 5>>config.log
22605: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22606: # would make configure fail if this is the last instruction.
22607: $ac_cs_success || { (exit 1); exit 1; }
22608: fi
22609:
22610: #
22611: # CONFIG_SUBDIRS section.
22612: #
1.1 paf 22613: if test "$no_recursion" != yes; then
22614:
22615: # Remove --cache-file and --srcdir arguments so they do not pile up.
22616: ac_sub_configure_args=
22617: ac_prev=
22618: for ac_arg in $ac_configure_args; do
22619: if test -n "$ac_prev"; then
22620: ac_prev=
22621: continue
22622: fi
1.62 paf 22623: case $ac_arg in
1.1 paf 22624: -cache-file | --cache-file | --cache-fil | --cache-fi \
22625: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22626: ac_prev=cache_file ;;
22627: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 22628: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22629: | --c=*)
22630: ;;
22631: --config-cache | -C)
1.1 paf 22632: ;;
22633: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22634: ac_prev=srcdir ;;
22635: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22636: ;;
1.62 paf 22637: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22638: ac_prev=prefix ;;
22639: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22640: ;;
1.1 paf 22641: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22642: esac
22643: done
22644:
1.62 paf 22645: # Always prepend --prefix to ensure using the same prefix
22646: # in subdir configurations.
22647: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22648:
22649: ac_popdir=`pwd`
22650: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 22651:
22652: # Do not complain, so a configure script can configure whichever
22653: # parts of a large source tree are present.
1.62 paf 22654: test -d $srcdir/$ac_dir || continue
1.1 paf 22655:
1.62 paf 22656: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22657: echo "$as_me: configuring in $ac_dir" >&6;}
22658: { if $as_mkdir_p; then
22659: mkdir -p "$ac_dir"
22660: else
22661: as_dir="$ac_dir"
22662: as_dirs=
22663: while test ! -d "$as_dir"; do
22664: as_dirs="$as_dir $as_dirs"
22665: as_dir=`(dirname "$as_dir") 2>/dev/null ||
22666: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 22667: X"$as_dir" : 'X\(//\)[^/]' \| \
22668: X"$as_dir" : 'X\(//\)$' \| \
22669: X"$as_dir" : 'X\(/\)' \| \
22670: . : '\(.\)' 2>/dev/null ||
1.62 paf 22671: echo X"$as_dir" |
22672: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22673: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22674: /^X\(\/\/\)$/{ s//\1/; q; }
22675: /^X\(\/\).*/{ s//\1/; q; }
22676: s/.*/./; q'`
22677: done
22678: test ! -n "$as_dirs" || mkdir $as_dirs
22679: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22680: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22681: { (exit 1); exit 1; }; }; }
22682:
22683: ac_builddir=.
22684:
22685: if test "$ac_dir" != .; then
22686: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22687: # A "../" for each directory in $ac_dir_suffix.
22688: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22689: else
22690: ac_dir_suffix= ac_top_builddir=
22691: fi
22692:
22693: case $srcdir in
22694: .) # No --srcdir option. We are building in place.
22695: ac_srcdir=.
22696: if test -z "$ac_top_builddir"; then
22697: ac_top_srcdir=.
22698: else
22699: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22700: fi ;;
22701: [\\/]* | ?:[\\/]* ) # Absolute path.
22702: ac_srcdir=$srcdir$ac_dir_suffix;
22703: ac_top_srcdir=$srcdir ;;
22704: *) # Relative path.
22705: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22706: ac_top_srcdir=$ac_top_builddir$srcdir ;;
22707: esac
1.86 paf 22708:
22709: # Do not use `cd foo && pwd` to compute absolute paths, because
22710: # the directories may not exist.
22711: case `pwd` in
22712: .) ac_abs_builddir="$ac_dir";;
22713: *)
22714: case "$ac_dir" in
22715: .) ac_abs_builddir=`pwd`;;
22716: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22717: *) ac_abs_builddir=`pwd`/"$ac_dir";;
22718: esac;;
22719: esac
22720: case $ac_abs_builddir in
22721: .) ac_abs_top_builddir=${ac_top_builddir}.;;
22722: *)
22723: case ${ac_top_builddir}. in
22724: .) ac_abs_top_builddir=$ac_abs_builddir;;
22725: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22726: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22727: esac;;
22728: esac
22729: case $ac_abs_builddir in
22730: .) ac_abs_srcdir=$ac_srcdir;;
22731: *)
22732: case $ac_srcdir in
22733: .) ac_abs_srcdir=$ac_abs_builddir;;
22734: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22735: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22736: esac;;
22737: esac
22738: case $ac_abs_builddir in
22739: .) ac_abs_top_srcdir=$ac_top_srcdir;;
22740: *)
22741: case $ac_top_srcdir in
22742: .) ac_abs_top_srcdir=$ac_abs_builddir;;
22743: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22744: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22745: esac;;
22746: esac
1.1 paf 22747:
22748:
1.62 paf 22749: cd $ac_dir
1.1 paf 22750:
22751: # Check for guested configure; otherwise get Cygnus style configure.
1.62 paf 22752: if test -f $ac_srcdir/configure.gnu; then
22753: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22754: elif test -f $ac_srcdir/configure; then
22755: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22756: elif test -f $ac_srcdir/configure.in; then
1.1 paf 22757: ac_sub_configure=$ac_configure
22758: else
1.62 paf 22759: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22760: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 22761: ac_sub_configure=
22762: fi
22763:
22764: # The recursion is here.
22765: if test -n "$ac_sub_configure"; then
22766: # Make the cache file name correct relative to the subdirectory.
1.62 paf 22767: case $cache_file in
22768: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 paf 22769: *) # Relative path.
1.86 paf 22770: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 paf 22771: esac
22772:
1.62 paf 22773: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22774: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 22775: # The eval makes quoting arguments work.
1.62 paf 22776: eval $ac_sub_configure $ac_sub_configure_args \
1.86 paf 22777: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
22778: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.62 paf 22779: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22780: { (exit 1); exit 1; }; }
1.1 paf 22781: fi
22782:
22783: cd $ac_popdir
22784: done
22785: fi
22786:
E-mail: