Annotation of sql/oracle/configure, revision 1.21
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.18 paf 3: # Generated by GNU Autoconf 2.59.
1.1 parser 4: #
1.18 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 parser 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.11 paf 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.18 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.11 paf 23:
24: # Support unset when possible.
1.18 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.11 paf 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
1.18 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.11 paf 45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
1.18 paf 221: test -d ./-p && rmdir ./-p
1.11 paf 222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.18 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.18 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
241: $as_unset CDPATH
242:
243:
244: # Find the correct PATH separator. Usually this is `:', but
245: # DJGPP uses `;' like DOS.
246: if test "X${PATH_SEPARATOR+set}" != Xset; then
247: UNAME=${UNAME-`uname 2>/dev/null`}
248: case X$UNAME in
249: *-DOS) lt_cv_sys_path_separator=';' ;;
250: *) lt_cv_sys_path_separator=':' ;;
251: esac
252: PATH_SEPARATOR=$lt_cv_sys_path_separator
253: fi
254:
255:
256: # Check that we are running under the correct shell.
257: SHELL=${CONFIG_SHELL-/bin/sh}
258:
259: case X$ECHO in
260: X*--fallback-echo)
261: # Remove one level of quotation (which was required for Make).
262: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263: ;;
264: esac
265:
266: echo=${ECHO-echo}
267: if test "X$1" = X--no-reexec; then
268: # Discard the --no-reexec flag, and continue.
269: shift
270: elif test "X$1" = X--fallback-echo; then
271: # Avoid inline document here, it may be left over
272: :
273: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274: # Yippee, $echo works!
275: :
276: else
277: # Restart under the correct shell.
278: exec $SHELL "$0" --no-reexec ${1+"$@"}
279: fi
280:
281: if test "X$1" = X--fallback-echo; then
282: # used as fallback echo
283: shift
284: cat <<EOF
285:
286: EOF
287: exit 0
288: fi
289:
290: # The HP-UX ksh and POSIX shell print the target directory to stdout
291: # if CDPATH is set.
292: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293:
294: if test -z "$ECHO"; then
295: if test "X${echo_test_string+set}" != Xset; then
296: # find a string as large as possible, as long as the shell can cope with it
297: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300: echo_test_string="`eval $cmd`" &&
301: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302: then
303: break
304: fi
305: done
306: fi
307:
308: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310: test "X$echo_testing_string" = "X$echo_test_string"; then
311: :
312: else
313: # The Solaris, AIX, and Digital Unix default echo programs unquote
314: # backslashes. This makes it impossible to quote backslashes using
315: # echo "$something" | sed 's/\\/\\\\/g'
316: #
317: # So, first we look for a working echo in the user's PATH.
318:
319: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320: for dir in $PATH /usr/ucb; do
321: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324: test "X$echo_testing_string" = "X$echo_test_string"; then
325: echo="$dir/echo"
326: break
327: fi
328: done
329: IFS="$save_ifs"
330:
331: if test "X$echo" = Xecho; then
332: # We didn't find a better echo, so look for alternatives.
333: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335: test "X$echo_testing_string" = "X$echo_test_string"; then
336: # This shell has a builtin print -r that does the trick.
337: echo='print -r'
338: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339: test "X$CONFIG_SHELL" != X/bin/ksh; then
340: # If we have ksh, try running configure again with it.
341: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342: export ORIGINAL_CONFIG_SHELL
343: CONFIG_SHELL=/bin/ksh
344: export CONFIG_SHELL
345: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346: else
347: # Try using printf.
348: echo='printf %s\n'
349: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351: test "X$echo_testing_string" = "X$echo_test_string"; then
352: # Cool, printf works
353: :
354: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355: test "X$echo_testing_string" = 'X\t' &&
356: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357: test "X$echo_testing_string" = "X$echo_test_string"; then
358: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359: export CONFIG_SHELL
360: SHELL="$CONFIG_SHELL"
361: export SHELL
362: echo="$CONFIG_SHELL $0 --fallback-echo"
363: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364: test "X$echo_testing_string" = 'X\t' &&
365: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366: test "X$echo_testing_string" = "X$echo_test_string"; then
367: echo="$CONFIG_SHELL $0 --fallback-echo"
368: else
369: # maybe with a smaller string...
370: prev=:
371:
372: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374: then
375: break
376: fi
377: prev="$cmd"
378: done
379:
380: if test "$prev" != 'sed 50q "$0"'; then
381: echo_test_string=`eval $prev`
382: export echo_test_string
383: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384: else
385: # Oops. We lost completely, so just stick with echo.
386: echo=echo
387: fi
388: fi
389: fi
390: fi
391: fi
392: fi
393:
394: # Copy echo and quote the copy suitably for passing to libtool from
395: # the Makefile, instead of quoting the original, which is used later.
396: ECHO=$echo
397: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399: fi
400:
401:
402:
403: # Name of the host.
404: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405: # so uname gets run too.
406: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 407:
1.11 paf 408: exec 6>&1
409:
410: #
411: # Initializations.
412: #
1.1 parser 413: ac_default_prefix=/usr/local
1.11 paf 414: ac_config_libobj_dir=.
415: cross_compiling=no
416: subdirs=
417: MFLAGS=
418: MAKEFLAGS=
419: SHELL=${CONFIG_SHELL-/bin/sh}
420:
421: # Maximum number of lines to put in a shell here document.
422: # This variable seems obsolete. It should probably be removed, and
423: # only ac_max_sed_lines should be used.
424: : ${ac_max_here_lines=38}
425:
426: # Identity of this package.
427: PACKAGE_NAME=
428: PACKAGE_TARNAME=
429: PACKAGE_VERSION=
430: PACKAGE_STRING=
431: PACKAGE_BUGREPORT=
432:
433: ac_unique_file="parser3oracle.C"
434: # Factoring default headers for most tests.
435: ac_includes_default="\
436: #include <stdio.h>
437: #if HAVE_SYS_TYPES_H
438: # include <sys/types.h>
439: #endif
440: #if HAVE_SYS_STAT_H
441: # include <sys/stat.h>
442: #endif
443: #if STDC_HEADERS
444: # include <stdlib.h>
445: # include <stddef.h>
446: #else
447: # if HAVE_STDLIB_H
448: # include <stdlib.h>
449: # endif
450: #endif
451: #if HAVE_STRING_H
452: # if !STDC_HEADERS && HAVE_MEMORY_H
453: # include <memory.h>
454: # endif
455: # include <string.h>
456: #endif
457: #if HAVE_STRINGS_H
458: # include <strings.h>
459: #endif
460: #if HAVE_INTTYPES_H
461: # include <inttypes.h>
462: #else
463: # if HAVE_STDINT_H
464: # include <stdint.h>
465: # endif
466: #endif
467: #if HAVE_UNISTD_H
468: # include <unistd.h>
469: #endif"
470:
471: ac_subdirs_all="$ac_subdirs_all libltdl"
1.18 paf 472: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ORACLE_OCI_INC ORACLE_PUBLIC_INC 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 INCLTDL LIBLTDL LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL subdirs LIBOBJS LTLIBOBJS'
1.11 paf 473: ac_subst_files=''
1.1 parser 474:
475: # Initialize some variables set by options.
1.11 paf 476: ac_init_help=
477: ac_init_version=false
1.1 parser 478: # The variables have the same names as the options, with
479: # dashes changed to underlines.
1.11 paf 480: cache_file=/dev/null
1.1 parser 481: exec_prefix=NONE
482: no_create=
483: no_recursion=
484: prefix=NONE
485: program_prefix=NONE
486: program_suffix=NONE
487: program_transform_name=s,x,x,
488: silent=
489: site=
490: srcdir=
491: verbose=
492: x_includes=NONE
493: x_libraries=NONE
1.11 paf 494:
495: # Installation directory options.
496: # These are left unexpanded so users can "make install exec_prefix=/foo"
497: # and all the variables that are supposed to be based on exec_prefix
498: # by default will actually change.
499: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 parser 500: bindir='${exec_prefix}/bin'
501: sbindir='${exec_prefix}/sbin'
502: libexecdir='${exec_prefix}/libexec'
503: datadir='${prefix}/share'
504: sysconfdir='${prefix}/etc'
505: sharedstatedir='${prefix}/com'
506: localstatedir='${prefix}/var'
507: libdir='${exec_prefix}/lib'
508: includedir='${prefix}/include'
509: oldincludedir='/usr/include'
510: infodir='${prefix}/info'
511: mandir='${prefix}/man'
512:
513: ac_prev=
514: for ac_option
515: do
516: # If the previous option needs an argument, assign it.
517: if test -n "$ac_prev"; then
518: eval "$ac_prev=\$ac_option"
519: ac_prev=
520: continue
521: fi
522:
1.11 paf 523: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 524:
525: # Accept the important Cygnus configure options, so we can diagnose typos.
526:
1.11 paf 527: case $ac_option in
1.1 parser 528:
529: -bindir | --bindir | --bindi | --bind | --bin | --bi)
530: ac_prev=bindir ;;
531: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.11 paf 532: bindir=$ac_optarg ;;
1.1 parser 533:
534: -build | --build | --buil | --bui | --bu)
1.11 paf 535: ac_prev=build_alias ;;
1.1 parser 536: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.11 paf 537: build_alias=$ac_optarg ;;
1.1 parser 538:
539: -cache-file | --cache-file | --cache-fil | --cache-fi \
540: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541: ac_prev=cache_file ;;
542: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.11 paf 544: cache_file=$ac_optarg ;;
545:
546: --config-cache | -C)
547: cache_file=config.cache ;;
1.1 parser 548:
549: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550: ac_prev=datadir ;;
551: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552: | --da=*)
1.11 paf 553: datadir=$ac_optarg ;;
1.1 parser 554:
555: -disable-* | --disable-*)
1.11 paf 556: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 557: # Reject names that are not valid shell variable names.
1.11 paf 558: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560: { (exit 1); exit 1; }; }
561: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562: eval "enable_$ac_feature=no" ;;
1.1 parser 563:
564: -enable-* | --enable-*)
1.11 paf 565: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 566: # Reject names that are not valid shell variable names.
1.11 paf 567: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569: { (exit 1); exit 1; }; }
570: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571: case $ac_option in
572: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 573: *) ac_optarg=yes ;;
574: esac
1.11 paf 575: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 576:
577: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579: | --exec | --exe | --ex)
580: ac_prev=exec_prefix ;;
581: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583: | --exec=* | --exe=* | --ex=*)
1.11 paf 584: exec_prefix=$ac_optarg ;;
1.1 parser 585:
586: -gas | --gas | --ga | --g)
587: # Obsolete; use --with-gas.
588: with_gas=yes ;;
589:
1.11 paf 590: -help | --help | --hel | --he | -h)
591: ac_init_help=long ;;
592: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593: ac_init_help=recursive ;;
594: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595: ac_init_help=short ;;
1.1 parser 596:
597: -host | --host | --hos | --ho)
1.11 paf 598: ac_prev=host_alias ;;
1.1 parser 599: -host=* | --host=* | --hos=* | --ho=*)
1.11 paf 600: host_alias=$ac_optarg ;;
1.1 parser 601:
602: -includedir | --includedir | --includedi | --included | --include \
603: | --includ | --inclu | --incl | --inc)
604: ac_prev=includedir ;;
605: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.11 paf 607: includedir=$ac_optarg ;;
1.1 parser 608:
609: -infodir | --infodir | --infodi | --infod | --info | --inf)
610: ac_prev=infodir ;;
611: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.11 paf 612: infodir=$ac_optarg ;;
1.1 parser 613:
614: -libdir | --libdir | --libdi | --libd)
615: ac_prev=libdir ;;
616: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.11 paf 617: libdir=$ac_optarg ;;
1.1 parser 618:
619: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620: | --libexe | --libex | --libe)
621: ac_prev=libexecdir ;;
622: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623: | --libexe=* | --libex=* | --libe=*)
1.11 paf 624: libexecdir=$ac_optarg ;;
1.1 parser 625:
626: -localstatedir | --localstatedir | --localstatedi | --localstated \
627: | --localstate | --localstat | --localsta | --localst \
628: | --locals | --local | --loca | --loc | --lo)
629: ac_prev=localstatedir ;;
630: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.11 paf 633: localstatedir=$ac_optarg ;;
1.1 parser 634:
635: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636: ac_prev=mandir ;;
637: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.11 paf 638: mandir=$ac_optarg ;;
1.1 parser 639:
640: -nfp | --nfp | --nf)
641: # Obsolete; use --without-fp.
642: with_fp=no ;;
643:
644: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.11 paf 645: | --no-cr | --no-c | -n)
1.1 parser 646: no_create=yes ;;
647:
648: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650: no_recursion=yes ;;
651:
652: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654: | --oldin | --oldi | --old | --ol | --o)
655: ac_prev=oldincludedir ;;
656: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.11 paf 659: oldincludedir=$ac_optarg ;;
1.1 parser 660:
661: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662: ac_prev=prefix ;;
663: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.11 paf 664: prefix=$ac_optarg ;;
1.1 parser 665:
666: -program-prefix | --program-prefix | --program-prefi | --program-pref \
667: | --program-pre | --program-pr | --program-p)
668: ac_prev=program_prefix ;;
669: -program-prefix=* | --program-prefix=* | --program-prefi=* \
670: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.11 paf 671: program_prefix=$ac_optarg ;;
1.1 parser 672:
673: -program-suffix | --program-suffix | --program-suffi | --program-suff \
674: | --program-suf | --program-su | --program-s)
675: ac_prev=program_suffix ;;
676: -program-suffix=* | --program-suffix=* | --program-suffi=* \
677: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.11 paf 678: program_suffix=$ac_optarg ;;
1.1 parser 679:
680: -program-transform-name | --program-transform-name \
681: | --program-transform-nam | --program-transform-na \
682: | --program-transform-n | --program-transform- \
683: | --program-transform | --program-transfor \
684: | --program-transfo | --program-transf \
685: | --program-trans | --program-tran \
686: | --progr-tra | --program-tr | --program-t)
687: ac_prev=program_transform_name ;;
688: -program-transform-name=* | --program-transform-name=* \
689: | --program-transform-nam=* | --program-transform-na=* \
690: | --program-transform-n=* | --program-transform-=* \
691: | --program-transform=* | --program-transfor=* \
692: | --program-transfo=* | --program-transf=* \
693: | --program-trans=* | --program-tran=* \
694: | --progr-tra=* | --program-tr=* | --program-t=*)
1.11 paf 695: program_transform_name=$ac_optarg ;;
1.1 parser 696:
697: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698: | -silent | --silent | --silen | --sile | --sil)
699: silent=yes ;;
700:
701: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702: ac_prev=sbindir ;;
703: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704: | --sbi=* | --sb=*)
1.11 paf 705: sbindir=$ac_optarg ;;
1.1 parser 706:
707: -sharedstatedir | --sharedstatedir | --sharedstatedi \
708: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709: | --sharedst | --shareds | --shared | --share | --shar \
710: | --sha | --sh)
711: ac_prev=sharedstatedir ;;
712: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715: | --sha=* | --sh=*)
1.11 paf 716: sharedstatedir=$ac_optarg ;;
1.1 parser 717:
718: -site | --site | --sit)
719: ac_prev=site ;;
720: -site=* | --site=* | --sit=*)
1.11 paf 721: site=$ac_optarg ;;
1.1 parser 722:
723: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724: ac_prev=srcdir ;;
725: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.11 paf 726: srcdir=$ac_optarg ;;
1.1 parser 727:
728: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729: | --syscon | --sysco | --sysc | --sys | --sy)
730: ac_prev=sysconfdir ;;
731: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.11 paf 733: sysconfdir=$ac_optarg ;;
1.1 parser 734:
735: -target | --target | --targe | --targ | --tar | --ta | --t)
1.11 paf 736: ac_prev=target_alias ;;
1.1 parser 737: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.11 paf 738: target_alias=$ac_optarg ;;
1.1 parser 739:
740: -v | -verbose | --verbose | --verbos | --verbo | --verb)
741: verbose=yes ;;
742:
1.11 paf 743: -version | --version | --versio | --versi | --vers | -V)
744: ac_init_version=: ;;
1.1 parser 745:
746: -with-* | --with-*)
1.11 paf 747: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 748: # Reject names that are not valid shell variable names.
1.11 paf 749: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750: { echo "$as_me: error: invalid package name: $ac_package" >&2
751: { (exit 1); exit 1; }; }
1.1 parser 752: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.11 paf 753: case $ac_option in
754: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 755: *) ac_optarg=yes ;;
756: esac
1.11 paf 757: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 758:
759: -without-* | --without-*)
1.11 paf 760: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 761: # Reject names that are not valid shell variable names.
1.11 paf 762: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763: { echo "$as_me: error: invalid package name: $ac_package" >&2
764: { (exit 1); exit 1; }; }
765: ac_package=`echo $ac_package | sed 's/-/_/g'`
766: eval "with_$ac_package=no" ;;
1.1 parser 767:
768: --x)
769: # Obsolete; use --with-x.
770: with_x=yes ;;
771:
772: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773: | --x-incl | --x-inc | --x-in | --x-i)
774: ac_prev=x_includes ;;
775: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.11 paf 777: x_includes=$ac_optarg ;;
1.1 parser 778:
779: -x-libraries | --x-libraries | --x-librarie | --x-librari \
780: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781: ac_prev=x_libraries ;;
782: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.11 paf 784: x_libraries=$ac_optarg ;;
1.1 parser 785:
1.11 paf 786: -*) { echo "$as_me: error: unrecognized option: $ac_option
787: Try \`$0 --help' for more information." >&2
788: { (exit 1); exit 1; }; }
1.1 parser 789: ;;
790:
1.11 paf 791: *=*)
792: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793: # Reject names that are not valid shell variable names.
794: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796: { (exit 1); exit 1; }; }
797: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798: eval "$ac_envvar='$ac_optarg'"
799: export $ac_envvar ;;
800:
1.1 parser 801: *)
1.11 paf 802: # FIXME: should be removed in autoconf 3.0.
803: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 807: ;;
808:
809: esac
810: done
811:
812: if test -n "$ac_prev"; then
1.11 paf 813: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814: { echo "$as_me: error: missing argument to $ac_option" >&2
815: { (exit 1); exit 1; }; }
1.1 parser 816: fi
817:
1.11 paf 818: # Be sure to have absolute paths.
819: for ac_var in exec_prefix prefix
820: do
821: eval ac_val=$`echo $ac_var`
822: case $ac_val in
823: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825: { (exit 1); exit 1; }; };;
826: esac
827: done
1.1 parser 828:
1.11 paf 829: # Be sure to have absolute paths.
830: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.18 paf 831: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 832: do
1.11 paf 833: eval ac_val=$`echo $ac_var`
834: case $ac_val in
835: [\\/$]* | ?:[\\/]* ) ;;
836: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837: { (exit 1); exit 1; }; };;
1.1 parser 838: esac
839: done
840:
1.11 paf 841: # There might be people who depend on the old broken behavior: `$host'
842: # used to hold the argument of --host etc.
843: # FIXME: To remove some day.
844: build=$build_alias
845: host=$host_alias
846: target=$target_alias
847:
848: # FIXME: To remove some day.
849: if test "x$host_alias" != x; then
850: if test "x$build_alias" = x; then
851: cross_compiling=maybe
852: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853: If a cross compiler is detected then cross compile mode will be used." >&2
854: elif test "x$build_alias" != "x$host_alias"; then
855: cross_compiling=yes
856: fi
857: fi
858:
859: ac_tool_prefix=
860: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 861:
1.11 paf 862: test "$silent" = yes && exec 6>/dev/null
1.1 parser 863:
864:
865: # Find the source files, if location was not specified.
866: if test -z "$srcdir"; then
867: ac_srcdir_defaulted=yes
868: # Try the directory containing this script, then its parent.
1.11 paf 869: ac_confdir=`(dirname "$0") 2>/dev/null ||
870: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 871: X"$0" : 'X\(//\)[^/]' \| \
872: X"$0" : 'X\(//\)$' \| \
873: X"$0" : 'X\(/\)' \| \
874: . : '\(.\)' 2>/dev/null ||
1.11 paf 875: echo X"$0" |
876: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878: /^X\(\/\/\)$/{ s//\1/; q; }
879: /^X\(\/\).*/{ s//\1/; q; }
880: s/.*/./; q'`
1.1 parser 881: srcdir=$ac_confdir
882: if test ! -r $srcdir/$ac_unique_file; then
883: srcdir=..
884: fi
885: else
886: ac_srcdir_defaulted=no
887: fi
888: if test ! -r $srcdir/$ac_unique_file; then
889: if test "$ac_srcdir_defaulted" = yes; then
1.11 paf 890: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891: { (exit 1); exit 1; }; }
1.1 parser 892: else
1.11 paf 893: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894: { (exit 1); exit 1; }; }
1.1 parser 895: fi
896: fi
1.11 paf 897: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899: { (exit 1); exit 1; }; }
900: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901: ac_env_build_alias_set=${build_alias+set}
902: ac_env_build_alias_value=$build_alias
903: ac_cv_env_build_alias_set=${build_alias+set}
904: ac_cv_env_build_alias_value=$build_alias
905: ac_env_host_alias_set=${host_alias+set}
906: ac_env_host_alias_value=$host_alias
907: ac_cv_env_host_alias_set=${host_alias+set}
908: ac_cv_env_host_alias_value=$host_alias
909: ac_env_target_alias_set=${target_alias+set}
910: ac_env_target_alias_value=$target_alias
911: ac_cv_env_target_alias_set=${target_alias+set}
912: ac_cv_env_target_alias_value=$target_alias
913: ac_env_CXX_set=${CXX+set}
914: ac_env_CXX_value=$CXX
915: ac_cv_env_CXX_set=${CXX+set}
916: ac_cv_env_CXX_value=$CXX
917: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
918: ac_env_CXXFLAGS_value=$CXXFLAGS
919: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
920: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
921: ac_env_LDFLAGS_set=${LDFLAGS+set}
922: ac_env_LDFLAGS_value=$LDFLAGS
923: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924: ac_cv_env_LDFLAGS_value=$LDFLAGS
925: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926: ac_env_CPPFLAGS_value=$CPPFLAGS
927: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929: ac_env_CC_set=${CC+set}
930: ac_env_CC_value=$CC
931: ac_cv_env_CC_set=${CC+set}
932: ac_cv_env_CC_value=$CC
933: ac_env_CFLAGS_set=${CFLAGS+set}
934: ac_env_CFLAGS_value=$CFLAGS
935: ac_cv_env_CFLAGS_set=${CFLAGS+set}
936: ac_cv_env_CFLAGS_value=$CFLAGS
1.15 paf 937: ac_env_CPP_set=${CPP+set}
938: ac_env_CPP_value=$CPP
939: ac_cv_env_CPP_set=${CPP+set}
940: ac_cv_env_CPP_value=$CPP
1.11 paf 941:
942: #
943: # Report the --help message.
944: #
945: if test "$ac_init_help" = "long"; then
946: # Omit some internal or obsolete options to make the list less imposing.
947: # This message is too long to be a string in the A/UX 3.1 sh.
948: cat <<_ACEOF
949: \`configure' configures this package to adapt to many kinds of systems.
950:
951: Usage: $0 [OPTION]... [VAR=VALUE]...
952:
953: To assign environment variables (e.g., CC, CFLAGS...), specify them as
954: VAR=VALUE. See below for descriptions of some of the useful variables.
955:
956: Defaults for the options are specified in brackets.
957:
958: Configuration:
959: -h, --help display this help and exit
960: --help=short display options specific to this package
961: --help=recursive display the short help of all the included packages
962: -V, --version display version information and exit
963: -q, --quiet, --silent do not print \`checking...' messages
964: --cache-file=FILE cache test results in FILE [disabled]
965: -C, --config-cache alias for \`--cache-file=config.cache'
966: -n, --no-create do not create output files
967: --srcdir=DIR find the sources in DIR [configure dir or \`..']
968:
969: _ACEOF
970:
971: cat <<_ACEOF
972: Installation directories:
973: --prefix=PREFIX install architecture-independent files in PREFIX
1.18 paf 974: [$ac_default_prefix]
1.11 paf 975: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.18 paf 976: [PREFIX]
1.11 paf 977:
978: By default, \`make install' will install all the files in
979: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981: for instance \`--prefix=\$HOME'.
982:
983: For better control, use the options below.
984:
985: Fine tuning of the installation directories:
986: --bindir=DIR user executables [EPREFIX/bin]
987: --sbindir=DIR system admin executables [EPREFIX/sbin]
988: --libexecdir=DIR program executables [EPREFIX/libexec]
989: --datadir=DIR read-only architecture-independent data [PREFIX/share]
990: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
991: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993: --libdir=DIR object code libraries [EPREFIX/lib]
994: --includedir=DIR C header files [PREFIX/include]
995: --oldincludedir=DIR C header files for non-gcc [/usr/include]
996: --infodir=DIR info documentation [PREFIX/info]
997: --mandir=DIR man documentation [PREFIX/man]
998: _ACEOF
999:
1000: cat <<\_ACEOF
1001:
1002: Program names:
1003: --program-prefix=PREFIX prepend PREFIX to installed program names
1004: --program-suffix=SUFFIX append SUFFIX to installed program names
1005: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1006:
1007: System types:
1008: --build=BUILD configure for building on BUILD [guessed]
1009: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010: _ACEOF
1011: fi
1012:
1013: if test -n "$ac_init_help"; then
1014:
1015: cat <<\_ACEOF
1016:
1017: Optional Features:
1018: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.18 paf 1020: --disable-dependency-tracking speeds up one-time build
1021: --enable-dependency-tracking do not reject slow dependency extractors
1.11 paf 1022: --enable-static=PKGS build static libraries default=no
1023: --enable-shared=PKGS build shared libraries default=yes
1024: --enable-fast-install=PKGS optimize for fast installation default=yes
1025: --disable-libtool-lock avoid locking (might break parallel builds)
1026:
1027: Optional Packages:
1028: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1029: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1030: --with-oracleoci-inc=DIR DIR is the Oracle OCI includes directory
1031: --with-oraclepublic-inc=DIR DIR is the Oracle public includes directory
1032: --with-gnu-ld assume the C compiler uses GNU ld default=no
1033: --with-pic try to use only PIC/non-PIC objects default=use both
1034:
1035: Some influential environment variables:
1036: CXX C++ compiler command
1037: CXXFLAGS C++ compiler flags
1038: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039: nonstandard directory <lib dir>
1040: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041: headers in a nonstandard directory <include dir>
1042: CC C compiler command
1043: CFLAGS C compiler flags
1.15 paf 1044: CPP C preprocessor
1.11 paf 1045:
1046: Use these variables to override the choices made by `configure' or to help
1047: it to find libraries and programs with nonstandard names/locations.
1048:
1049: _ACEOF
1050: fi
1051:
1052: if test "$ac_init_help" = "recursive"; then
1053: # If there are subdirs, report their specific --help.
1054: ac_popdir=`pwd`
1055: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056: test -d $ac_dir || continue
1057: ac_builddir=.
1058:
1059: if test "$ac_dir" != .; then
1060: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061: # A "../" for each directory in $ac_dir_suffix.
1062: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063: else
1064: ac_dir_suffix= ac_top_builddir=
1065: fi
1066:
1067: case $srcdir in
1068: .) # No --srcdir option. We are building in place.
1069: ac_srcdir=.
1070: if test -z "$ac_top_builddir"; then
1071: ac_top_srcdir=.
1072: else
1073: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074: fi ;;
1075: [\\/]* | ?:[\\/]* ) # Absolute path.
1076: ac_srcdir=$srcdir$ac_dir_suffix;
1077: ac_top_srcdir=$srcdir ;;
1078: *) # Relative path.
1079: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081: esac
1.18 paf 1082:
1083: # Do not use `cd foo && pwd` to compute absolute paths, because
1084: # the directories may not exist.
1085: case `pwd` in
1086: .) ac_abs_builddir="$ac_dir";;
1087: *)
1088: case "$ac_dir" in
1089: .) ac_abs_builddir=`pwd`;;
1090: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091: *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092: esac;;
1093: esac
1094: case $ac_abs_builddir in
1095: .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096: *)
1097: case ${ac_top_builddir}. in
1098: .) ac_abs_top_builddir=$ac_abs_builddir;;
1099: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101: esac;;
1102: esac
1103: case $ac_abs_builddir in
1104: .) ac_abs_srcdir=$ac_srcdir;;
1105: *)
1106: case $ac_srcdir in
1107: .) ac_abs_srcdir=$ac_abs_builddir;;
1108: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110: esac;;
1111: esac
1112: case $ac_abs_builddir in
1113: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114: *)
1115: case $ac_top_srcdir in
1116: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119: esac;;
1120: esac
1.11 paf 1121:
1122: cd $ac_dir
1123: # Check for guested configure; otherwise get Cygnus style configure.
1124: if test -f $ac_srcdir/configure.gnu; then
1125: echo
1126: $SHELL $ac_srcdir/configure.gnu --help=recursive
1127: elif test -f $ac_srcdir/configure; then
1128: echo
1129: $SHELL $ac_srcdir/configure --help=recursive
1130: elif test -f $ac_srcdir/configure.ac ||
1.18 paf 1131: test -f $ac_srcdir/configure.in; then
1.11 paf 1132: echo
1133: $ac_configure --help
1134: else
1135: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136: fi
1137: cd $ac_popdir
1138: done
1139: fi
1.1 parser 1140:
1.11 paf 1141: test -n "$ac_init_help" && exit 0
1142: if $ac_init_version; then
1143: cat <<\_ACEOF
1144:
1.18 paf 1145: Copyright (C) 2003 Free Software Foundation, Inc.
1.11 paf 1146: This configure script is free software; the Free Software Foundation
1147: gives unlimited permission to copy, distribute and modify it.
1148: _ACEOF
1149: exit 0
1150: fi
1151: exec 5>config.log
1152: cat >&5 <<_ACEOF
1153: This file contains any messages produced by compilers while
1154: running configure, to aid debugging if configure makes a mistake.
1155:
1156: It was created by $as_me, which was
1.18 paf 1157: generated by GNU Autoconf 2.59. Invocation command line was
1.11 paf 1158:
1159: $ $0 $@
1160:
1161: _ACEOF
1162: {
1163: cat <<_ASUNAME
1164: ## --------- ##
1165: ## Platform. ##
1166: ## --------- ##
1167:
1168: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173:
1174: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176:
1177: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1178: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1179: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1181: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1182: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1183: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1184:
1185: _ASUNAME
1186:
1187: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188: for as_dir in $PATH
1189: do
1190: IFS=$as_save_IFS
1191: test -z "$as_dir" && as_dir=.
1192: echo "PATH: $as_dir"
1193: done
1194:
1195: } >&5
1196:
1197: cat >&5 <<_ACEOF
1198:
1199:
1200: ## ----------- ##
1201: ## Core tests. ##
1202: ## ----------- ##
1203:
1204: _ACEOF
1205:
1206:
1207: # Keep a trace of the command line.
1208: # Strip out --no-create and --no-recursion so they do not pile up.
1209: # Strip out --silent because we don't want to record it for future runs.
1210: # Also quote any args containing shell meta-characters.
1211: # Make two passes to allow for proper duplicate-argument suppression.
1212: ac_configure_args=
1213: ac_configure_args0=
1214: ac_configure_args1=
1215: ac_sep=
1216: ac_must_keep_next=false
1217: for ac_pass in 1 2
1218: do
1219: for ac_arg
1220: do
1221: case $ac_arg in
1222: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224: | -silent | --silent | --silen | --sile | --sil)
1225: continue ;;
1226: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228: esac
1229: case $ac_pass in
1230: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231: 2)
1232: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233: if test $ac_must_keep_next = true; then
1.18 paf 1234: ac_must_keep_next=false # Got value, back to normal.
1.11 paf 1235: else
1.18 paf 1236: case $ac_arg in
1237: *=* | --config-cache | -C | -disable-* | --disable-* \
1238: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240: | -with-* | --with-* | -without-* | --without-* | --x)
1241: case "$ac_configure_args0 " in
1242: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243: esac
1244: ;;
1245: -* ) ac_must_keep_next=true ;;
1246: esac
1.11 paf 1247: fi
1248: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249: # Get rid of the leading space.
1250: ac_sep=" "
1251: ;;
1252: esac
1253: done
1254: done
1255: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257:
1258: # When interrupted or exit'd, cleanup temporary files, and complete
1259: # config.log. We remove comments because anyway the quotes in there
1260: # would cause problems or look ugly.
1261: # WARNING: Be sure not to use single quotes in there, as some shells,
1262: # such as our DU 5.0 friend, will then `close' the trap.
1263: trap 'exit_status=$?
1264: # Save into config.log some information that might help in debugging.
1265: {
1266: echo
1267:
1268: cat <<\_ASBOX
1269: ## ---------------- ##
1270: ## Cache variables. ##
1271: ## ---------------- ##
1272: _ASBOX
1273: echo
1274: # The following way of writing the cache mishandles newlines in values,
1275: {
1276: (set) 2>&1 |
1277: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278: *ac_space=\ *)
1279: sed -n \
1.18 paf 1280: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.11 paf 1282: ;;
1283: *)
1284: sed -n \
1.18 paf 1285: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.11 paf 1286: ;;
1287: esac;
1288: }
1289: echo
1290:
1291: cat <<\_ASBOX
1292: ## ----------------- ##
1293: ## Output variables. ##
1294: ## ----------------- ##
1295: _ASBOX
1296: echo
1297: for ac_var in $ac_subst_vars
1298: do
1299: eval ac_val=$`echo $ac_var`
1300: echo "$ac_var='"'"'$ac_val'"'"'"
1301: done | sort
1302: echo
1303:
1304: if test -n "$ac_subst_files"; then
1305: cat <<\_ASBOX
1306: ## ------------- ##
1307: ## Output files. ##
1308: ## ------------- ##
1309: _ASBOX
1310: echo
1311: for ac_var in $ac_subst_files
1312: do
1313: eval ac_val=$`echo $ac_var`
1.18 paf 1314: echo "$ac_var='"'"'$ac_val'"'"'"
1.11 paf 1315: done | sort
1316: echo
1317: fi
1318:
1319: if test -s confdefs.h; then
1320: cat <<\_ASBOX
1321: ## ----------- ##
1322: ## confdefs.h. ##
1323: ## ----------- ##
1324: _ASBOX
1325: echo
1326: sed "/^$/d" confdefs.h | sort
1327: echo
1328: fi
1329: test "$ac_signal" != 0 &&
1330: echo "$as_me: caught signal $ac_signal"
1331: echo "$as_me: exit $exit_status"
1332: } >&5
1.18 paf 1333: rm -f core *.core &&
1.11 paf 1334: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335: exit $exit_status
1336: ' 0
1337: for ac_signal in 1 2 13 15; do
1338: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339: done
1340: ac_signal=0
1341:
1342: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1343: rm -rf conftest* confdefs.h
1344: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345: echo >confdefs.h
1346:
1347: # Predefined preprocessor variables.
1348:
1349: cat >>confdefs.h <<_ACEOF
1350: #define PACKAGE_NAME "$PACKAGE_NAME"
1351: _ACEOF
1352:
1353:
1354: cat >>confdefs.h <<_ACEOF
1355: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356: _ACEOF
1357:
1358:
1359: cat >>confdefs.h <<_ACEOF
1360: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1361: _ACEOF
1362:
1363:
1364: cat >>confdefs.h <<_ACEOF
1365: #define PACKAGE_STRING "$PACKAGE_STRING"
1366: _ACEOF
1367:
1368:
1369: cat >>confdefs.h <<_ACEOF
1370: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371: _ACEOF
1372:
1373:
1374: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1375: # Prefer explicitly selected file to automatically selected ones.
1376: if test -z "$CONFIG_SITE"; then
1377: if test "x$prefix" != xNONE; then
1378: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379: else
1380: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381: fi
1382: fi
1383: for ac_site_file in $CONFIG_SITE; do
1384: if test -r "$ac_site_file"; then
1.11 paf 1385: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386: echo "$as_me: loading site script $ac_site_file" >&6;}
1387: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1388: . "$ac_site_file"
1389: fi
1390: done
1391:
1392: if test -r "$cache_file"; then
1.11 paf 1393: # Some versions of bash will fail to source /dev/null (special
1394: # files actually), so we avoid doing that.
1395: if test -f "$cache_file"; then
1396: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397: echo "$as_me: loading cache $cache_file" >&6;}
1398: case $cache_file in
1399: [\\/]* | ?:[\\/]* ) . $cache_file;;
1400: *) . ./$cache_file;;
1401: esac
1402: fi
1.1 parser 1403: else
1.11 paf 1404: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405: echo "$as_me: creating cache $cache_file" >&6;}
1406: >$cache_file
1407: fi
1408:
1409: # Check that the precious variables saved in the cache have kept the same
1410: # value.
1411: ac_cache_corrupted=false
1412: for ac_var in `(set) 2>&1 |
1.18 paf 1413: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.11 paf 1414: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415: eval ac_new_set=\$ac_env_${ac_var}_set
1416: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417: eval ac_new_val="\$ac_env_${ac_var}_value"
1418: case $ac_old_set,$ac_new_set in
1419: set,)
1420: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422: ac_cache_corrupted=: ;;
1423: ,set)
1424: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426: ac_cache_corrupted=: ;;
1427: ,);;
1428: *)
1429: if test "x$ac_old_val" != "x$ac_new_val"; then
1.18 paf 1430: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.11 paf 1431: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.18 paf 1432: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.11 paf 1433: echo "$as_me: former value: $ac_old_val" >&2;}
1.18 paf 1434: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.11 paf 1435: echo "$as_me: current value: $ac_new_val" >&2;}
1.18 paf 1436: ac_cache_corrupted=:
1.11 paf 1437: fi;;
1438: esac
1439: # Pass precious variables to config.status.
1440: if test "$ac_new_set" = set; then
1441: case $ac_new_val in
1442: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444: *) ac_arg=$ac_var=$ac_new_val ;;
1445: esac
1446: case " $ac_configure_args " in
1447: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449: esac
1450: fi
1451: done
1452: if $ac_cache_corrupted; then
1453: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457: { (exit 1); exit 1; }; }
1.1 parser 1458: fi
1459:
1460: ac_ext=c
1461: ac_cpp='$CPP $CPPFLAGS'
1.11 paf 1462: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1465:
1466:
1.11 paf 1467:
1468:
1469:
1470:
1471:
1472:
1473:
1474:
1475:
1476:
1477:
1478:
1479:
1480:
1481:
1482:
1483:
1.18 paf 1484: am__api_version="1.9"
1.1 parser 1485: ac_aux_dir=
1486: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487: if test -f $ac_dir/install-sh; then
1488: ac_aux_dir=$ac_dir
1489: ac_install_sh="$ac_aux_dir/install-sh -c"
1490: break
1491: elif test -f $ac_dir/install.sh; then
1492: ac_aux_dir=$ac_dir
1493: ac_install_sh="$ac_aux_dir/install.sh -c"
1494: break
1.11 paf 1495: elif test -f $ac_dir/shtool; then
1496: ac_aux_dir=$ac_dir
1497: ac_install_sh="$ac_aux_dir/shtool install -c"
1498: break
1.1 parser 1499: fi
1500: done
1501: if test -z "$ac_aux_dir"; then
1.11 paf 1502: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504: { (exit 1); exit 1; }; }
1505: fi
1506: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1509:
1510: # Find a good install program. We prefer a C program (faster),
1511: # so one script is as good as another. But avoid the broken or
1512: # incompatible versions:
1513: # SysV /etc/install, /usr/sbin/install
1514: # SunOS /usr/etc/install
1515: # IRIX /sbin/install
1516: # AIX /bin/install
1.11 paf 1517: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1518: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1519: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1520: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 1521: # OS/2's system install, which has a completely different semantic
1.1 parser 1522: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1523: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1524: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1525: if test -z "$INSTALL"; then
1.11 paf 1526: if test "${ac_cv_path_install+set}" = set; then
1527: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1528: else
1.11 paf 1529: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530: for as_dir in $PATH
1531: do
1532: IFS=$as_save_IFS
1533: test -z "$as_dir" && as_dir=.
1534: # Account for people who put trailing slashes in PATH elements.
1535: case $as_dir/ in
1536: ./ | .// | /cC/* | \
1537: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.18 paf 1538: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.11 paf 1539: /usr/ucb/* ) ;;
1540: *)
1541: # OSF1 and SCO ODT 3.0 have their own names for install.
1542: # Don't use installbsd from OSF since it installs stuff as root
1543: # by default.
1544: for ac_prog in ginstall scoinst install; do
1545: for ac_exec_ext in '' $ac_executable_extensions; do
1.18 paf 1546: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1547: if test $ac_prog = install &&
1548: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1549: # AIX install. It has an incompatible calling convention.
1550: :
1551: elif test $ac_prog = install &&
1552: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1553: # program-specific install script used by HP pwplus--don't use.
1554: :
1555: else
1556: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1557: break 3
1558: fi
1559: fi
1.1 parser 1560: done
1.11 paf 1561: done
1562: ;;
1563: esac
1564: done
1565:
1.1 parser 1566:
1567: fi
1568: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 1569: INSTALL=$ac_cv_path_install
1.1 parser 1570: else
1571: # As a last resort, use the slow shell script. We don't cache a
1572: # path for INSTALL within a source directory, because that will
1573: # break other packages using the cache if that directory is
1574: # removed, or if the path is relative.
1.11 paf 1575: INSTALL=$ac_install_sh
1.1 parser 1576: fi
1577: fi
1.11 paf 1578: echo "$as_me:$LINENO: result: $INSTALL" >&5
1579: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1580:
1581: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1582: # It thinks the first close brace ends the variable substitution.
1583: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1584:
1.11 paf 1585: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1586:
1587: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1588:
1.11 paf 1589: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1590: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1591: # Just in case
1592: sleep 1
1.11 paf 1593: echo timestamp > conftest.file
1.1 parser 1594: # Do `set' in a subshell so we don't clobber the current shell's
1595: # arguments. Must try -L first in case configure is actually a
1596: # symlink; some systems play weird games with the mod time of symlinks
1597: # (eg FreeBSD returns the mod time of the symlink's containing
1598: # directory).
1599: if (
1.11 paf 1600: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1601: if test "$*" = "X"; then
1602: # -L didn't work.
1.11 paf 1603: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1604: fi
1.11 paf 1605: rm -f conftest.file
1606: if test "$*" != "X $srcdir/configure conftest.file" \
1607: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1608:
1609: # If neither matched, then we have a broken ls. This can happen
1610: # if, for instance, CONFIG_SHELL is bash and it inherits a
1611: # broken ls alias from the environment. This has actually
1612: # happened. Such a system could not be considered "sane".
1.11 paf 1613: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1614: alias in your environment" >&5
1615: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1616: alias in your environment" >&2;}
1617: { (exit 1); exit 1; }; }
1.1 parser 1618: fi
1619:
1.11 paf 1620: test "$2" = conftest.file
1.1 parser 1621: )
1622: then
1623: # Ok.
1624: :
1625: else
1.11 paf 1626: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1627: Check your system clock" >&5
1628: echo "$as_me: error: newly created file is older than distributed files!
1629: Check your system clock" >&2;}
1630: { (exit 1); exit 1; }; }
1.1 parser 1631: fi
1.11 paf 1632: echo "$as_me:$LINENO: result: yes" >&5
1633: echo "${ECHO_T}yes" >&6
1.1 parser 1634: test "$program_prefix" != NONE &&
1.11 paf 1635: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1636: # Use a double $ so make ignores it.
1637: test "$program_suffix" != NONE &&
1.11 paf 1638: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1639: # Double any \ or $. echo might interpret backslashes.
1640: # By default was `s,x,x', remove it if useless.
1641: cat <<\_ACEOF >conftest.sed
1642: s/[\\$]/&&/g;s/;s,x,x,$//
1643: _ACEOF
1644: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1645: rm conftest.sed
1646:
1647: # expand $ac_aux_dir to an absolute path
1648: am_aux_dir=`cd $ac_aux_dir && pwd`
1649:
1650: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1651: # Use eval to expand $SHELL
1652: if eval "$MISSING --run true"; then
1653: am_missing_run="$MISSING --run "
1654: else
1655: am_missing_run=
1656: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1657: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1658: fi
1659:
1.18 paf 1660: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1661: # We used to keeping the `.' as first argument, in order to
1662: # allow $(mkdir_p) to be used without argument. As in
1663: # $(mkdir_p) $(somedir)
1664: # where $(somedir) is conditionally defined. However this is wrong
1665: # for two reasons:
1666: # 1. if the package is installed by a user who cannot write `.'
1667: # make install will fail,
1668: # 2. the above comment should most certainly read
1669: # $(mkdir_p) $(DESTDIR)$(somedir)
1670: # so it does not work when $(somedir) is undefined and
1671: # $(DESTDIR) is not.
1672: # To support the latter case, we have to write
1673: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1674: # so the `.' trick is pointless.
1675: mkdir_p='mkdir -p --'
1676: else
1677: # On NextStep and OpenStep, the `mkdir' command does not
1678: # recognize any option. It will interpret all options as
1679: # directories to create, and then abort because `.' already
1680: # exists.
1681: for d in ./-p ./--version;
1682: do
1683: test -d $d && rmdir $d
1684: done
1685: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1686: if test -f "$ac_aux_dir/mkinstalldirs"; then
1687: mkdir_p='$(mkinstalldirs)'
1688: else
1689: mkdir_p='$(install_sh) -d'
1690: fi
1691: fi
1692:
1.11 paf 1693: for ac_prog in gawk mawk nawk awk
1694: do
1695: # Extract the first word of "$ac_prog", so it can be a program name with args.
1696: set dummy $ac_prog; ac_word=$2
1697: echo "$as_me:$LINENO: checking for $ac_word" >&5
1698: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699: if test "${ac_cv_prog_AWK+set}" = set; then
1700: echo $ECHO_N "(cached) $ECHO_C" >&6
1701: else
1702: if test -n "$AWK"; then
1703: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1704: else
1705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706: for as_dir in $PATH
1707: do
1708: IFS=$as_save_IFS
1709: test -z "$as_dir" && as_dir=.
1710: for ac_exec_ext in '' $ac_executable_extensions; do
1711: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712: ac_cv_prog_AWK="$ac_prog"
1713: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714: break 2
1715: fi
1716: done
1717: done
1718:
1719: fi
1720: fi
1721: AWK=$ac_cv_prog_AWK
1722: if test -n "$AWK"; then
1723: echo "$as_me:$LINENO: result: $AWK" >&5
1724: echo "${ECHO_T}$AWK" >&6
1725: else
1726: echo "$as_me:$LINENO: result: no" >&5
1727: echo "${ECHO_T}no" >&6
1728: fi
1.1 parser 1729:
1.11 paf 1730: test -n "$AWK" && break
1731: done
1.1 parser 1732:
1.11 paf 1733: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1734: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.18 paf 1735: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.11 paf 1736: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1737: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1738: else
1.11 paf 1739: cat >conftest.make <<\_ACEOF
1.1 parser 1740: all:
1.11 paf 1741: @echo 'ac_maketemp="$(MAKE)"'
1742: _ACEOF
1.1 parser 1743: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.11 paf 1744: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1745: if test -n "$ac_maketemp"; then
1746: eval ac_cv_prog_make_${ac_make}_set=yes
1747: else
1748: eval ac_cv_prog_make_${ac_make}_set=no
1749: fi
1.11 paf 1750: rm -f conftest.make
1.1 parser 1751: fi
1752: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.11 paf 1753: echo "$as_me:$LINENO: result: yes" >&5
1754: echo "${ECHO_T}yes" >&6
1.1 parser 1755: SET_MAKE=
1756: else
1.11 paf 1757: echo "$as_me:$LINENO: result: no" >&5
1758: echo "${ECHO_T}no" >&6
1.1 parser 1759: SET_MAKE="MAKE=${MAKE-make}"
1760: fi
1761:
1.18 paf 1762: rm -rf .tst 2>/dev/null
1763: mkdir .tst 2>/dev/null
1764: if test -d .tst; then
1765: am__leading_dot=.
1766: else
1767: am__leading_dot=_
1768: fi
1769: rmdir .tst 2>/dev/null
1770:
1771: # test to see if srcdir already configured
1.11 paf 1772: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1773: test -f $srcdir/config.status; then
1774: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1775: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1776: { (exit 1); exit 1; }; }
1777: fi
1778:
1779: # test whether we have cygpath
1780: if test -z "$CYGPATH_W"; then
1781: if (cygpath --version) >/dev/null 2>/dev/null; then
1782: CYGPATH_W='cygpath -w'
1783: else
1784: CYGPATH_W=echo
1785: fi
1786: fi
1787:
1788:
1789: # Define the identity of the package.
1790: PACKAGE=parser3oracle
1.21 ! misha 1791: VERSION=9.6
1.1 parser 1792:
1793:
1.11 paf 1794: # Some tools Automake needs.
1795:
1796: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1797:
1798:
1799: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1800:
1801:
1802: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1803:
1804:
1805: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1806:
1807:
1808: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1809:
1.11 paf 1810: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1811:
1.11 paf 1812: # Installed binaries are usually stripped using `strip' when the user
1813: # run `make install-strip'. However `strip' might not be the right
1814: # tool to use in cross-compilation environments, therefore Automake
1815: # will honor the `STRIP' environment variable to overrule this program.
1816: if test "$cross_compiling" != no; then
1817: if test -n "$ac_tool_prefix"; then
1818: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1819: set dummy ${ac_tool_prefix}strip; ac_word=$2
1820: echo "$as_me:$LINENO: checking for $ac_word" >&5
1821: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822: if test "${ac_cv_prog_STRIP+set}" = set; then
1823: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1824: else
1.11 paf 1825: if test -n "$STRIP"; then
1826: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1827: else
1828: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829: for as_dir in $PATH
1830: do
1831: IFS=$as_save_IFS
1832: test -z "$as_dir" && as_dir=.
1833: for ac_exec_ext in '' $ac_executable_extensions; do
1834: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1836: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837: break 2
1838: fi
1839: done
1840: done
1841:
1842: fi
1843: fi
1844: STRIP=$ac_cv_prog_STRIP
1845: if test -n "$STRIP"; then
1846: echo "$as_me:$LINENO: result: $STRIP" >&5
1847: echo "${ECHO_T}$STRIP" >&6
1848: else
1849: echo "$as_me:$LINENO: result: no" >&5
1850: echo "${ECHO_T}no" >&6
1.1 parser 1851: fi
1852:
1.11 paf 1853: fi
1854: if test -z "$ac_cv_prog_STRIP"; then
1855: ac_ct_STRIP=$STRIP
1856: # Extract the first word of "strip", so it can be a program name with args.
1857: set dummy strip; ac_word=$2
1858: echo "$as_me:$LINENO: checking for $ac_word" >&5
1859: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1861: echo $ECHO_N "(cached) $ECHO_C" >&6
1862: else
1863: if test -n "$ac_ct_STRIP"; then
1864: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1865: else
1.11 paf 1866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867: for as_dir in $PATH
1868: do
1869: IFS=$as_save_IFS
1870: test -z "$as_dir" && as_dir=.
1871: for ac_exec_ext in '' $ac_executable_extensions; do
1872: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873: ac_cv_prog_ac_ct_STRIP="strip"
1874: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875: break 2
1876: fi
1877: done
1878: done
1879:
1880: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1881: fi
1.1 parser 1882: fi
1.11 paf 1883: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1884: if test -n "$ac_ct_STRIP"; then
1885: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1886: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1887: else
1.11 paf 1888: echo "$as_me:$LINENO: result: no" >&5
1889: echo "${ECHO_T}no" >&6
1.1 parser 1890: fi
1891:
1.11 paf 1892: STRIP=$ac_ct_STRIP
1.1 parser 1893: else
1.11 paf 1894: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1895: fi
1896:
1897: fi
1.11 paf 1898: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1899:
1.11 paf 1900: # We need awk for the "check" target. The system "awk" is bad on
1901: # some platforms.
1.18 paf 1902: # Always define AMTAR for backward compatibility.
1903:
1904: AMTAR=${AMTAR-"${am_missing_run}tar"}
1905:
1906: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1907:
1908:
1.1 parser 1909:
1910:
1911:
1912:
1.11 paf 1913: ac_config_headers="$ac_config_headers config_auto.h"
1914:
1.1 parser 1915:
1916:
1917:
1.2 parser 1918: # Check whether --with-oracleoci-inc or --without-oracleoci-inc was given.
1.1 parser 1919: if test "${with_oracleoci_inc+set}" = set; then
1920: withval="$with_oracleoci_inc"
1.11 paf 1921:
1.1 parser 1922: else
1923: withval="$ORACLE_HOME/rdbms/demo"
1924:
1.11 paf 1925: fi;
1.2 parser 1926: ORACLE_OCI_INC=$withval
1.1 parser 1927:
1928:
1.2 parser 1929: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
1.11 paf 1930: { { echo "$as_me:$LINENO: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&5
1931: echo "$as_me: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&2;}
1932: { (exit 1); exit 1; }; }
1.2 parser 1933: fi
1934:
1935:
1.11 paf 1936:
1.2 parser 1937: # Check whether --with-oraclepublic-inc or --without-oraclepublic-inc was given.
1.1 parser 1938: if test "${with_oraclepublic_inc+set}" = set; then
1939: withval="$with_oraclepublic_inc"
1.11 paf 1940:
1.1 parser 1941: else
1942: withval="$ORACLE_HOME/network/public"
1943:
1.11 paf 1944: fi;
1.2 parser 1945: ORACLE_PUBLIC_INC=$withval
1.1 parser 1946:
1947:
1.2 parser 1948: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
1.11 paf 1949: { { echo "$as_me:$LINENO: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&5
1950: echo "$as_me: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&2;}
1951: { (exit 1); exit 1; }; }
1.2 parser 1952: fi
1953:
1.1 parser 1954:
1955: # Find a good install program. We prefer a C program (faster),
1956: # so one script is as good as another. But avoid the broken or
1957: # incompatible versions:
1958: # SysV /etc/install, /usr/sbin/install
1959: # SunOS /usr/etc/install
1960: # IRIX /sbin/install
1961: # AIX /bin/install
1.11 paf 1962: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1963: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1964: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1965: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 1966: # OS/2's system install, which has a completely different semantic
1.1 parser 1967: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1968: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1969: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1970: if test -z "$INSTALL"; then
1.11 paf 1971: if test "${ac_cv_path_install+set}" = set; then
1972: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1973: else
1.11 paf 1974: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975: for as_dir in $PATH
1976: do
1977: IFS=$as_save_IFS
1978: test -z "$as_dir" && as_dir=.
1979: # Account for people who put trailing slashes in PATH elements.
1980: case $as_dir/ in
1981: ./ | .// | /cC/* | \
1982: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.18 paf 1983: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.11 paf 1984: /usr/ucb/* ) ;;
1985: *)
1986: # OSF1 and SCO ODT 3.0 have their own names for install.
1987: # Don't use installbsd from OSF since it installs stuff as root
1988: # by default.
1989: for ac_prog in ginstall scoinst install; do
1990: for ac_exec_ext in '' $ac_executable_extensions; do
1.18 paf 1991: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1992: if test $ac_prog = install &&
1993: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1994: # AIX install. It has an incompatible calling convention.
1995: :
1996: elif test $ac_prog = install &&
1997: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1998: # program-specific install script used by HP pwplus--don't use.
1999: :
2000: else
2001: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2002: break 3
2003: fi
2004: fi
1.1 parser 2005: done
1.11 paf 2006: done
2007: ;;
2008: esac
2009: done
2010:
1.1 parser 2011:
2012: fi
2013: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 2014: INSTALL=$ac_cv_path_install
1.1 parser 2015: else
2016: # As a last resort, use the slow shell script. We don't cache a
2017: # path for INSTALL within a source directory, because that will
2018: # break other packages using the cache if that directory is
2019: # removed, or if the path is relative.
1.11 paf 2020: INSTALL=$ac_install_sh
1.1 parser 2021: fi
2022: fi
1.11 paf 2023: echo "$as_me:$LINENO: result: $INSTALL" >&5
2024: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 2025:
2026: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2027: # It thinks the first close brace ends the variable substitution.
2028: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2029:
1.11 paf 2030: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2031:
2032: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2033:
1.11 paf 2034: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2035: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.18 paf 2036: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.11 paf 2037: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2038: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2039: else
1.11 paf 2040: cat >conftest.make <<\_ACEOF
1.1 parser 2041: all:
1.11 paf 2042: @echo 'ac_maketemp="$(MAKE)"'
2043: _ACEOF
1.1 parser 2044: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.11 paf 2045: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 2046: if test -n "$ac_maketemp"; then
2047: eval ac_cv_prog_make_${ac_make}_set=yes
2048: else
2049: eval ac_cv_prog_make_${ac_make}_set=no
2050: fi
1.11 paf 2051: rm -f conftest.make
1.1 parser 2052: fi
2053: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.11 paf 2054: echo "$as_me:$LINENO: result: yes" >&5
2055: echo "${ECHO_T}yes" >&6
1.1 parser 2056: SET_MAKE=
2057: else
1.11 paf 2058: echo "$as_me:$LINENO: result: no" >&5
2059: echo "${ECHO_T}no" >&6
1.1 parser 2060: SET_MAKE="MAKE=${MAKE-make}"
2061: fi
2062:
1.11 paf 2063: for ac_prog in gawk mawk nawk awk
1.1 parser 2064: do
1.11 paf 2065: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 parser 2066: set dummy $ac_prog; ac_word=$2
1.11 paf 2067: echo "$as_me:$LINENO: checking for $ac_word" >&5
2068: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069: if test "${ac_cv_prog_AWK+set}" = set; then
2070: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2071: else
2072: if test -n "$AWK"; then
2073: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2074: else
1.11 paf 2075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076: for as_dir in $PATH
2077: do
2078: IFS=$as_save_IFS
2079: test -z "$as_dir" && as_dir=.
2080: for ac_exec_ext in '' $ac_executable_extensions; do
2081: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082: ac_cv_prog_AWK="$ac_prog"
2083: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084: break 2
2085: fi
2086: done
2087: done
2088:
1.1 parser 2089: fi
2090: fi
1.11 paf 2091: AWK=$ac_cv_prog_AWK
1.1 parser 2092: if test -n "$AWK"; then
1.11 paf 2093: echo "$as_me:$LINENO: result: $AWK" >&5
2094: echo "${ECHO_T}$AWK" >&6
1.1 parser 2095: else
1.11 paf 2096: echo "$as_me:$LINENO: result: no" >&5
2097: echo "${ECHO_T}no" >&6
1.1 parser 2098: fi
2099:
1.11 paf 2100: test -n "$AWK" && break
1.1 parser 2101: done
2102:
1.11 paf 2103: ac_ext=cc
1.1 parser 2104: ac_cpp='$CXXCPP $CPPFLAGS'
1.11 paf 2105: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2108: if test -n "$ac_tool_prefix"; then
2109: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2110: do
2111: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2112: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2113: echo "$as_me:$LINENO: checking for $ac_word" >&5
2114: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115: if test "${ac_cv_prog_CXX+set}" = set; then
2116: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2117: else
2118: if test -n "$CXX"; then
2119: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2120: else
1.11 paf 2121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122: for as_dir in $PATH
2123: do
2124: IFS=$as_save_IFS
2125: test -z "$as_dir" && as_dir=.
2126: for ac_exec_ext in '' $ac_executable_extensions; do
2127: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2129: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130: break 2
2131: fi
2132: done
2133: done
2134:
1.1 parser 2135: fi
2136: fi
1.11 paf 2137: CXX=$ac_cv_prog_CXX
1.1 parser 2138: if test -n "$CXX"; then
1.11 paf 2139: echo "$as_me:$LINENO: result: $CXX" >&5
2140: echo "${ECHO_T}$CXX" >&6
1.1 parser 2141: else
1.11 paf 2142: echo "$as_me:$LINENO: result: no" >&5
2143: echo "${ECHO_T}no" >&6
1.1 parser 2144: fi
2145:
1.11 paf 2146: test -n "$CXX" && break
2147: done
2148: fi
2149: if test -z "$CXX"; then
2150: ac_ct_CXX=$CXX
2151: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2152: do
2153: # Extract the first word of "$ac_prog", so it can be a program name with args.
2154: set dummy $ac_prog; ac_word=$2
2155: echo "$as_me:$LINENO: checking for $ac_word" >&5
2156: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2158: echo $ECHO_N "(cached) $ECHO_C" >&6
2159: else
2160: if test -n "$ac_ct_CXX"; then
2161: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2162: else
2163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164: for as_dir in $PATH
2165: do
2166: IFS=$as_save_IFS
2167: test -z "$as_dir" && as_dir=.
2168: for ac_exec_ext in '' $ac_executable_extensions; do
2169: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170: ac_cv_prog_ac_ct_CXX="$ac_prog"
2171: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172: break 2
2173: fi
2174: done
1.1 parser 2175: done
2176:
1.11 paf 2177: fi
2178: fi
2179: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2180: if test -n "$ac_ct_CXX"; then
2181: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2182: echo "${ECHO_T}$ac_ct_CXX" >&6
2183: else
2184: echo "$as_me:$LINENO: result: no" >&5
2185: echo "${ECHO_T}no" >&6
2186: fi
1.1 parser 2187:
1.11 paf 2188: test -n "$ac_ct_CXX" && break
2189: done
2190: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2191:
1.11 paf 2192: CXX=$ac_ct_CXX
2193: fi
1.1 parser 2194:
2195:
1.11 paf 2196: # Provide some information about the compiler.
2197: echo "$as_me:$LINENO:" \
2198: "checking for C++ compiler version" >&5
2199: ac_compiler=`set X $ac_compile; echo $2`
2200: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2201: (eval $ac_compiler --version </dev/null >&5) 2>&5
2202: ac_status=$?
2203: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204: (exit $ac_status); }
2205: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2206: (eval $ac_compiler -v </dev/null >&5) 2>&5
2207: ac_status=$?
2208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209: (exit $ac_status); }
2210: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2211: (eval $ac_compiler -V </dev/null >&5) 2>&5
2212: ac_status=$?
2213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214: (exit $ac_status); }
2215:
2216: cat >conftest.$ac_ext <<_ACEOF
2217: /* confdefs.h. */
2218: _ACEOF
2219: cat confdefs.h >>conftest.$ac_ext
2220: cat >>conftest.$ac_ext <<_ACEOF
2221: /* end confdefs.h. */
2222:
2223: int
2224: main ()
2225: {
2226:
2227: ;
2228: return 0;
2229: }
2230: _ACEOF
2231: ac_clean_files_save=$ac_clean_files
2232: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2233: # Try to create an executable without -o first, disregard a.out.
2234: # It will help us diagnose broken compilers, and finding out an intuition
2235: # of exeext.
1.18 paf 2236: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2237: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.11 paf 2238: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2239: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2240: (eval $ac_link_default) 2>&5
2241: ac_status=$?
2242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243: (exit $ac_status); }; then
2244: # Find the output, starting from the most likely. This scheme is
2245: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2246: # resort.
2247:
2248: # Be careful to initialize this variable, since it used to be cached.
2249: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2250: ac_cv_exeext=
2251: # b.out is created by i960 compilers.
2252: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2253: do
2254: test -f "$ac_file" || continue
2255: case $ac_file in
2256: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.18 paf 2257: ;;
1.11 paf 2258: conftest.$ac_ext )
1.18 paf 2259: # This is the source file.
2260: ;;
1.11 paf 2261: [ab].out )
1.18 paf 2262: # We found the default executable, but exeext='' is most
2263: # certainly right.
2264: break;;
1.11 paf 2265: *.* )
1.18 paf 2266: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267: # FIXME: I believe we export ac_cv_exeext for Libtool,
2268: # but it would be cool to find out if it's true. Does anybody
2269: # maintain Libtool? --akim.
2270: export ac_cv_exeext
2271: break;;
1.11 paf 2272: * )
1.18 paf 2273: break;;
1.11 paf 2274: esac
2275: done
2276: else
2277: echo "$as_me: failed program was:" >&5
2278: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2279:
1.11 paf 2280: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2281: See \`config.log' for more details." >&5
2282: echo "$as_me: error: C++ compiler cannot create executables
2283: See \`config.log' for more details." >&2;}
2284: { (exit 77); exit 77; }; }
2285: fi
2286:
2287: ac_exeext=$ac_cv_exeext
2288: echo "$as_me:$LINENO: result: $ac_file" >&5
2289: echo "${ECHO_T}$ac_file" >&6
2290:
2291: # Check the compiler produces executables we can run. If not, either
2292: # the compiler is broken, or we cross compile.
2293: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2294: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2295: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2296: # If not cross compiling, check that we can run a simple program.
2297: if test "$cross_compiling" != yes; then
2298: if { ac_try='./$ac_file'
2299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300: (eval $ac_try) 2>&5
2301: ac_status=$?
2302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303: (exit $ac_status); }; }; then
2304: cross_compiling=no
2305: else
2306: if test "$cross_compiling" = maybe; then
2307: cross_compiling=yes
2308: else
2309: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2310: If you meant to cross compile, use \`--host'.
2311: See \`config.log' for more details." >&5
2312: echo "$as_me: error: cannot run C++ compiled programs.
2313: If you meant to cross compile, use \`--host'.
2314: See \`config.log' for more details." >&2;}
2315: { (exit 1); exit 1; }; }
2316: fi
1.1 parser 2317: fi
1.11 paf 2318: fi
2319: echo "$as_me:$LINENO: result: yes" >&5
2320: echo "${ECHO_T}yes" >&6
2321:
2322: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2323: ac_clean_files=$ac_clean_files_save
2324: # Check the compiler produces executables we can run. If not, either
2325: # the compiler is broken, or we cross compile.
2326: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2327: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2328: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2329: echo "${ECHO_T}$cross_compiling" >&6
2330:
2331: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2332: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2333: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2334: (eval $ac_link) 2>&5
2335: ac_status=$?
2336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337: (exit $ac_status); }; then
2338: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2339: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2340: # work properly (i.e., refer to `conftest.exe'), while it won't with
2341: # `rm'.
2342: for ac_file in conftest.exe conftest conftest.*; do
2343: test -f "$ac_file" || continue
2344: case $ac_file in
2345: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2346: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.18 paf 2347: export ac_cv_exeext
2348: break;;
1.11 paf 2349: * ) break;;
2350: esac
2351: done
1.1 parser 2352: else
1.11 paf 2353: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2354: See \`config.log' for more details." >&5
2355: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2356: See \`config.log' for more details." >&2;}
2357: { (exit 1); exit 1; }; }
2358: fi
2359:
2360: rm -f conftest$ac_cv_exeext
2361: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2362: echo "${ECHO_T}$ac_cv_exeext" >&6
2363:
2364: rm -f conftest.$ac_ext
2365: EXEEXT=$ac_cv_exeext
2366: ac_exeext=$EXEEXT
2367: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2368: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2369: if test "${ac_cv_objext+set}" = set; then
2370: echo $ECHO_N "(cached) $ECHO_C" >&6
2371: else
2372: cat >conftest.$ac_ext <<_ACEOF
2373: /* confdefs.h. */
2374: _ACEOF
2375: cat confdefs.h >>conftest.$ac_ext
2376: cat >>conftest.$ac_ext <<_ACEOF
2377: /* end confdefs.h. */
2378:
2379: int
2380: main ()
2381: {
2382:
2383: ;
2384: return 0;
2385: }
2386: _ACEOF
2387: rm -f conftest.o conftest.obj
2388: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389: (eval $ac_compile) 2>&5
2390: ac_status=$?
2391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392: (exit $ac_status); }; then
2393: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2394: case $ac_file in
2395: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2396: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2397: break;;
2398: esac
2399: done
1.1 parser 2400: else
1.11 paf 2401: echo "$as_me: failed program was:" >&5
2402: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2403:
1.11 paf 2404: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2405: See \`config.log' for more details." >&5
2406: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2407: See \`config.log' for more details." >&2;}
2408: { (exit 1); exit 1; }; }
2409: fi
2410:
2411: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2412: fi
2413: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2414: echo "${ECHO_T}$ac_cv_objext" >&6
2415: OBJEXT=$ac_cv_objext
2416: ac_objext=$OBJEXT
2417: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2418: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2419: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2420: echo $ECHO_N "(cached) $ECHO_C" >&6
2421: else
2422: cat >conftest.$ac_ext <<_ACEOF
2423: /* confdefs.h. */
2424: _ACEOF
2425: cat confdefs.h >>conftest.$ac_ext
2426: cat >>conftest.$ac_ext <<_ACEOF
2427: /* end confdefs.h. */
2428:
2429: int
2430: main ()
2431: {
2432: #ifndef __GNUC__
2433: choke me
2434: #endif
1.1 parser 2435:
1.11 paf 2436: ;
2437: return 0;
2438: }
2439: _ACEOF
2440: rm -f conftest.$ac_objext
2441: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2442: (eval $ac_compile) 2>conftest.er1
1.11 paf 2443: ac_status=$?
1.18 paf 2444: grep -v '^ *+' conftest.er1 >conftest.err
2445: rm -f conftest.er1
2446: cat conftest.err >&5
1.11 paf 2447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448: (exit $ac_status); } &&
1.18 paf 2449: { ac_try='test -z "$ac_cxx_werror_flag"
2450: || test ! -s conftest.err'
2451: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452: (eval $ac_try) 2>&5
2453: ac_status=$?
2454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455: (exit $ac_status); }; } &&
2456: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2457: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458: (eval $ac_try) 2>&5
2459: ac_status=$?
2460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461: (exit $ac_status); }; }; then
2462: ac_compiler_gnu=yes
2463: else
2464: echo "$as_me: failed program was:" >&5
2465: sed 's/^/| /' conftest.$ac_ext >&5
2466:
2467: ac_compiler_gnu=no
2468: fi
1.18 paf 2469: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2470: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2471:
2472: fi
2473: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2474: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2475: GXX=`test $ac_compiler_gnu = yes && echo yes`
2476: ac_test_CXXFLAGS=${CXXFLAGS+set}
2477: ac_save_CXXFLAGS=$CXXFLAGS
2478: CXXFLAGS="-g"
2479: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2480: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2481: if test "${ac_cv_prog_cxx_g+set}" = set; then
2482: echo $ECHO_N "(cached) $ECHO_C" >&6
2483: else
2484: cat >conftest.$ac_ext <<_ACEOF
2485: /* confdefs.h. */
2486: _ACEOF
2487: cat confdefs.h >>conftest.$ac_ext
2488: cat >>conftest.$ac_ext <<_ACEOF
2489: /* end confdefs.h. */
2490:
2491: int
2492: main ()
2493: {
2494:
2495: ;
2496: return 0;
2497: }
2498: _ACEOF
2499: rm -f conftest.$ac_objext
2500: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2501: (eval $ac_compile) 2>conftest.er1
1.11 paf 2502: ac_status=$?
1.18 paf 2503: grep -v '^ *+' conftest.er1 >conftest.err
2504: rm -f conftest.er1
2505: cat conftest.err >&5
1.11 paf 2506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507: (exit $ac_status); } &&
1.18 paf 2508: { ac_try='test -z "$ac_cxx_werror_flag"
2509: || test ! -s conftest.err'
2510: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511: (eval $ac_try) 2>&5
2512: ac_status=$?
2513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514: (exit $ac_status); }; } &&
2515: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517: (eval $ac_try) 2>&5
2518: ac_status=$?
2519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520: (exit $ac_status); }; }; then
2521: ac_cv_prog_cxx_g=yes
1.1 parser 2522: else
1.11 paf 2523: echo "$as_me: failed program was:" >&5
2524: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2525:
1.11 paf 2526: ac_cv_prog_cxx_g=no
1.1 parser 2527: fi
1.18 paf 2528: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2529: fi
1.11 paf 2530: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2531: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2532: if test "$ac_test_CXXFLAGS" = set; then
1.11 paf 2533: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2534: elif test $ac_cv_prog_cxx_g = yes; then
2535: if test "$GXX" = yes; then
2536: CXXFLAGS="-g -O2"
2537: else
2538: CXXFLAGS="-g"
2539: fi
2540: else
2541: if test "$GXX" = yes; then
2542: CXXFLAGS="-O2"
2543: else
2544: CXXFLAGS=
2545: fi
2546: fi
1.11 paf 2547: for ac_declaration in \
1.18 paf 2548: '' \
1.11 paf 2549: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2550: 'extern "C" void std::exit (int); using std::exit;' \
2551: 'extern "C" void exit (int) throw ();' \
2552: 'extern "C" void exit (int);' \
2553: 'void exit (int);'
2554: do
2555: cat >conftest.$ac_ext <<_ACEOF
2556: /* confdefs.h. */
2557: _ACEOF
2558: cat confdefs.h >>conftest.$ac_ext
2559: cat >>conftest.$ac_ext <<_ACEOF
2560: /* end confdefs.h. */
1.18 paf 2561: $ac_declaration
1.11 paf 2562: #include <stdlib.h>
2563: int
2564: main ()
2565: {
2566: exit (42);
2567: ;
2568: return 0;
2569: }
2570: _ACEOF
2571: rm -f conftest.$ac_objext
2572: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2573: (eval $ac_compile) 2>conftest.er1
1.11 paf 2574: ac_status=$?
1.18 paf 2575: grep -v '^ *+' conftest.er1 >conftest.err
2576: rm -f conftest.er1
2577: cat conftest.err >&5
1.11 paf 2578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579: (exit $ac_status); } &&
1.18 paf 2580: { ac_try='test -z "$ac_cxx_werror_flag"
2581: || test ! -s conftest.err'
2582: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583: (eval $ac_try) 2>&5
2584: ac_status=$?
2585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586: (exit $ac_status); }; } &&
2587: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589: (eval $ac_try) 2>&5
2590: ac_status=$?
2591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592: (exit $ac_status); }; }; then
2593: :
2594: else
2595: echo "$as_me: failed program was:" >&5
2596: sed 's/^/| /' conftest.$ac_ext >&5
2597:
2598: continue
2599: fi
1.18 paf 2600: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2601: cat >conftest.$ac_ext <<_ACEOF
2602: /* confdefs.h. */
2603: _ACEOF
2604: cat confdefs.h >>conftest.$ac_ext
2605: cat >>conftest.$ac_ext <<_ACEOF
2606: /* end confdefs.h. */
2607: $ac_declaration
2608: int
2609: main ()
2610: {
2611: exit (42);
2612: ;
2613: return 0;
2614: }
2615: _ACEOF
2616: rm -f conftest.$ac_objext
2617: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2618: (eval $ac_compile) 2>conftest.er1
1.11 paf 2619: ac_status=$?
1.18 paf 2620: grep -v '^ *+' conftest.er1 >conftest.err
2621: rm -f conftest.er1
2622: cat conftest.err >&5
1.11 paf 2623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624: (exit $ac_status); } &&
1.18 paf 2625: { ac_try='test -z "$ac_cxx_werror_flag"
2626: || test ! -s conftest.err'
2627: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628: (eval $ac_try) 2>&5
2629: ac_status=$?
2630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631: (exit $ac_status); }; } &&
2632: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2633: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634: (eval $ac_try) 2>&5
2635: ac_status=$?
2636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637: (exit $ac_status); }; }; then
2638: break
2639: else
2640: echo "$as_me: failed program was:" >&5
2641: sed 's/^/| /' conftest.$ac_ext >&5
2642:
2643: fi
1.18 paf 2644: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2645: done
2646: rm -f conftest*
2647: if test -n "$ac_declaration"; then
2648: echo '#ifdef __cplusplus' >>confdefs.h
2649: echo $ac_declaration >>confdefs.h
2650: echo '#endif' >>confdefs.h
2651: fi
2652:
1.15 paf 2653: ac_ext=c
2654: ac_cpp='$CPP $CPPFLAGS'
2655: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.18 paf 2658: DEPDIR="${am__leading_dot}deps"
1.11 paf 2659:
2660: ac_config_commands="$ac_config_commands depfiles"
2661:
2662:
2663: am_make=${MAKE-make}
2664: cat > confinc << 'END'
1.18 paf 2665: am__doit:
1.11 paf 2666: @echo done
1.18 paf 2667: .PHONY: am__doit
1.11 paf 2668: END
2669: # If we don't find an include directive, just comment out the code.
2670: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2671: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2672: am__include="#"
2673: am__quote=
2674: _am_result=none
2675: # First try GNU make style include.
2676: echo "include confinc" > confmf
2677: # We grep out `Entering directory' and `Leaving directory'
2678: # messages which can occur if `w' ends up in MAKEFLAGS.
2679: # In particular we don't look at `^make:' because GNU make might
2680: # be invoked under some other name (usually "gmake"), in which
2681: # case it prints its new name instead of `make'.
2682: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2683: am__include=include
2684: am__quote=
2685: _am_result=GNU
2686: fi
2687: # Now try BSD make style include.
2688: if test "$am__include" = "#"; then
2689: echo '.include "confinc"' > confmf
2690: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2691: am__include=.include
2692: am__quote="\""
2693: _am_result=BSD
2694: fi
2695: fi
2696:
2697:
2698: echo "$as_me:$LINENO: result: $_am_result" >&5
2699: echo "${ECHO_T}$_am_result" >&6
2700: rm -f confinc confmf
2701:
2702: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2703: if test "${enable_dependency_tracking+set}" = set; then
2704: enableval="$enable_dependency_tracking"
2705:
2706: fi;
2707: if test "x$enable_dependency_tracking" != xno; then
2708: am_depcomp="$ac_aux_dir/depcomp"
2709: AMDEPBACKSLASH='\'
2710: fi
2711:
2712:
2713: if test "x$enable_dependency_tracking" != xno; then
2714: AMDEP_TRUE=
2715: AMDEP_FALSE='#'
2716: else
2717: AMDEP_TRUE='#'
2718: AMDEP_FALSE=
2719: fi
2720:
2721:
2722:
2723:
2724: depcc="$CXX" am_compiler_list=
2725:
2726: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2727: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2728: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2729: echo $ECHO_N "(cached) $ECHO_C" >&6
2730: else
2731: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2732: # We make a subdir and do the tests there. Otherwise we can end up
2733: # making bogus files that we don't know about and never remove. For
2734: # instance it was reported that on HP-UX the gcc test will end up
2735: # making a dummy file named `D' -- because `-MD' means `put the output
2736: # in D'.
2737: mkdir conftest.dir
2738: # Copy depcomp to subdir because otherwise we won't find it if we're
2739: # using a relative directory.
2740: cp "$am_depcomp" conftest.dir
2741: cd conftest.dir
1.18 paf 2742: # We will build objects and dependencies in a subdirectory because
2743: # it helps to detect inapplicable dependency modes. For instance
2744: # both Tru64's cc and ICC support -MD to output dependencies as a
2745: # side effect of compilation, but ICC will put the dependencies in
2746: # the current directory while Tru64 will put them in the object
2747: # directory.
2748: mkdir sub
1.11 paf 2749:
2750: am_cv_CXX_dependencies_compiler_type=none
2751: if test "$am_compiler_list" = ""; then
2752: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2753: fi
2754: for depmode in $am_compiler_list; do
1.18 paf 2755: # Setup a source with many dependencies, because some compilers
2756: # like to wrap large dependency lists on column 80 (with \), and
2757: # we should not choose a depcomp mode which is confused by this.
2758: #
1.11 paf 2759: # We need to recreate these files for each test, as the compiler may
2760: # overwrite some of them when testing with obscure command lines.
2761: # This happens at least with the AIX C compiler.
1.18 paf 2762: : > sub/conftest.c
2763: for i in 1 2 3 4 5 6; do
2764: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2765: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2766: # Solaris 8's {/usr,}/bin/sh.
2767: touch sub/conftst$i.h
2768: done
2769: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 2770:
2771: case $depmode in
2772: nosideeffect)
2773: # after this tag, mechanisms are not by side-effect, so they'll
2774: # only be used when explicitly requested
2775: if test "x$enable_dependency_tracking" = xyes; then
2776: continue
2777: else
2778: break
2779: fi
2780: ;;
2781: none) break ;;
2782: esac
2783: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2784: # mode. It turns out that the SunPro C++ compiler does not properly
2785: # handle `-M -o', and we need to detect this.
2786: if depmode=$depmode \
1.18 paf 2787: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2788: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2789: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2790: >/dev/null 2>conftest.err &&
2791: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2792: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 2793: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 2794: # icc doesn't choke on unknown options, it will just issue warnings
2795: # or remarks (even with -Werror). So we grep stderr for any message
2796: # that says an option was ignored or not supported.
2797: # When given -MP, icc 7.0 and 7.1 complain thusly:
2798: # icc: Command line warning: ignoring option '-M'; no argument required
2799: # The diagnosis changed in icc 8.0:
2800: # icc: Command line remark: option '-MP' not supported
2801: if (grep 'ignoring option' conftest.err ||
2802: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2803: am_cv_CXX_dependencies_compiler_type=$depmode
2804: break
2805: fi
1.11 paf 2806: fi
2807: done
2808:
2809: cd ..
2810: rm -rf conftest.dir
2811: else
2812: am_cv_CXX_dependencies_compiler_type=none
2813: fi
2814:
2815: fi
2816: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2817: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2818: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2819:
1.1 parser 2820:
2821:
1.11 paf 2822: if
2823: test "x$enable_dependency_tracking" != xno \
2824: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2825: am__fastdepCXX_TRUE=
2826: am__fastdepCXX_FALSE='#'
2827: else
2828: am__fastdepCXX_TRUE='#'
2829: am__fastdepCXX_FALSE=
2830: fi
2831:
2832:
2833: ac_ext=c
2834: ac_cpp='$CPP $CPPFLAGS'
2835: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838: if test -n "$ac_tool_prefix"; then
2839: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841: echo "$as_me:$LINENO: checking for $ac_word" >&5
2842: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843: if test "${ac_cv_prog_CC+set}" = set; then
2844: echo $ECHO_N "(cached) $ECHO_C" >&6
2845: else
2846: if test -n "$CC"; then
2847: ac_cv_prog_CC="$CC" # Let the user override the test.
2848: else
2849: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850: for as_dir in $PATH
2851: do
2852: IFS=$as_save_IFS
2853: test -z "$as_dir" && as_dir=.
2854: for ac_exec_ext in '' $ac_executable_extensions; do
2855: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858: break 2
2859: fi
2860: done
2861: done
1.1 parser 2862:
1.11 paf 2863: fi
2864: fi
2865: CC=$ac_cv_prog_CC
2866: if test -n "$CC"; then
2867: echo "$as_me:$LINENO: result: $CC" >&5
2868: echo "${ECHO_T}$CC" >&6
2869: else
2870: echo "$as_me:$LINENO: result: no" >&5
2871: echo "${ECHO_T}no" >&6
2872: fi
1.1 parser 2873:
1.11 paf 2874: fi
2875: if test -z "$ac_cv_prog_CC"; then
2876: ac_ct_CC=$CC
2877: # Extract the first word of "gcc", so it can be a program name with args.
2878: set dummy gcc; ac_word=$2
2879: echo "$as_me:$LINENO: checking for $ac_word" >&5
2880: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2882: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2883: else
1.11 paf 2884: if test -n "$ac_ct_CC"; then
2885: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2886: else
1.11 paf 2887: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888: for as_dir in $PATH
2889: do
2890: IFS=$as_save_IFS
2891: test -z "$as_dir" && as_dir=.
2892: for ac_exec_ext in '' $ac_executable_extensions; do
2893: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894: ac_cv_prog_ac_ct_CC="gcc"
2895: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896: break 2
2897: fi
2898: done
2899: done
2900:
2901: fi
1.1 parser 2902: fi
1.11 paf 2903: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904: if test -n "$ac_ct_CC"; then
2905: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2906: echo "${ECHO_T}$ac_ct_CC" >&6
2907: else
2908: echo "$as_me:$LINENO: result: no" >&5
2909: echo "${ECHO_T}no" >&6
1.1 parser 2910: fi
1.11 paf 2911:
2912: CC=$ac_ct_CC
1.1 parser 2913: else
1.11 paf 2914: CC="$ac_cv_prog_CC"
1.1 parser 2915: fi
2916:
1.11 paf 2917: if test -z "$CC"; then
2918: if test -n "$ac_tool_prefix"; then
2919: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2920: set dummy ${ac_tool_prefix}cc; ac_word=$2
2921: echo "$as_me:$LINENO: checking for $ac_word" >&5
2922: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2923: if test "${ac_cv_prog_CC+set}" = set; then
2924: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2925: else
2926: if test -n "$CC"; then
2927: ac_cv_prog_CC="$CC" # Let the user override the test.
2928: else
1.11 paf 2929: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930: for as_dir in $PATH
2931: do
2932: IFS=$as_save_IFS
2933: test -z "$as_dir" && as_dir=.
2934: for ac_exec_ext in '' $ac_executable_extensions; do
2935: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936: ac_cv_prog_CC="${ac_tool_prefix}cc"
2937: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938: break 2
2939: fi
2940: done
2941: done
2942:
1.1 parser 2943: fi
2944: fi
1.11 paf 2945: CC=$ac_cv_prog_CC
1.1 parser 2946: if test -n "$CC"; then
1.11 paf 2947: echo "$as_me:$LINENO: result: $CC" >&5
2948: echo "${ECHO_T}$CC" >&6
2949: else
2950: echo "$as_me:$LINENO: result: no" >&5
2951: echo "${ECHO_T}no" >&6
2952: fi
2953:
2954: fi
2955: if test -z "$ac_cv_prog_CC"; then
2956: ac_ct_CC=$CC
2957: # Extract the first word of "cc", so it can be a program name with args.
2958: set dummy cc; ac_word=$2
2959: echo "$as_me:$LINENO: checking for $ac_word" >&5
2960: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2962: echo $ECHO_N "(cached) $ECHO_C" >&6
2963: else
2964: if test -n "$ac_ct_CC"; then
2965: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966: else
2967: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968: for as_dir in $PATH
2969: do
2970: IFS=$as_save_IFS
2971: test -z "$as_dir" && as_dir=.
2972: for ac_exec_ext in '' $ac_executable_extensions; do
2973: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974: ac_cv_prog_ac_ct_CC="cc"
2975: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976: break 2
2977: fi
2978: done
2979: done
2980:
2981: fi
2982: fi
2983: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984: if test -n "$ac_ct_CC"; then
2985: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2986: echo "${ECHO_T}$ac_ct_CC" >&6
2987: else
2988: echo "$as_me:$LINENO: result: no" >&5
2989: echo "${ECHO_T}no" >&6
2990: fi
2991:
2992: CC=$ac_ct_CC
1.1 parser 2993: else
1.11 paf 2994: CC="$ac_cv_prog_CC"
1.1 parser 2995: fi
2996:
1.11 paf 2997: fi
1.1 parser 2998: if test -z "$CC"; then
2999: # Extract the first word of "cc", so it can be a program name with args.
3000: set dummy cc; ac_word=$2
1.11 paf 3001: echo "$as_me:$LINENO: checking for $ac_word" >&5
3002: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3003: if test "${ac_cv_prog_CC+set}" = set; then
3004: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3005: else
3006: if test -n "$CC"; then
3007: ac_cv_prog_CC="$CC" # Let the user override the test.
3008: else
3009: ac_prog_rejected=no
1.11 paf 3010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011: for as_dir in $PATH
3012: do
3013: IFS=$as_save_IFS
3014: test -z "$as_dir" && as_dir=.
3015: for ac_exec_ext in '' $ac_executable_extensions; do
3016: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3018: ac_prog_rejected=yes
3019: continue
3020: fi
3021: ac_cv_prog_CC="cc"
3022: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023: break 2
3024: fi
3025: done
3026: done
3027:
1.1 parser 3028: if test $ac_prog_rejected = yes; then
3029: # We found a bogon in the path, so make sure we never use it.
3030: set dummy $ac_cv_prog_CC
3031: shift
1.11 paf 3032: if test $# != 0; then
1.1 parser 3033: # We chose a different compiler from the bogus one.
3034: # However, it has the same basename, so the bogon will be chosen
3035: # first if we set CC to just the basename; use the full file name.
3036: shift
1.11 paf 3037: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3038: fi
3039: fi
3040: fi
3041: fi
1.11 paf 3042: CC=$ac_cv_prog_CC
1.1 parser 3043: if test -n "$CC"; then
1.11 paf 3044: echo "$as_me:$LINENO: result: $CC" >&5
3045: echo "${ECHO_T}$CC" >&6
1.1 parser 3046: else
1.11 paf 3047: echo "$as_me:$LINENO: result: no" >&5
3048: echo "${ECHO_T}no" >&6
1.1 parser 3049: fi
3050:
1.11 paf 3051: fi
3052: if test -z "$CC"; then
3053: if test -n "$ac_tool_prefix"; then
3054: for ac_prog in cl
3055: do
3056: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3057: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3058: echo "$as_me:$LINENO: checking for $ac_word" >&5
3059: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060: if test "${ac_cv_prog_CC+set}" = set; then
3061: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3062: else
3063: if test -n "$CC"; then
3064: ac_cv_prog_CC="$CC" # Let the user override the test.
3065: else
1.11 paf 3066: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067: for as_dir in $PATH
3068: do
3069: IFS=$as_save_IFS
3070: test -z "$as_dir" && as_dir=.
3071: for ac_exec_ext in '' $ac_executable_extensions; do
3072: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3074: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075: break 2
3076: fi
3077: done
3078: done
3079:
1.1 parser 3080: fi
3081: fi
1.11 paf 3082: CC=$ac_cv_prog_CC
1.1 parser 3083: if test -n "$CC"; then
1.11 paf 3084: echo "$as_me:$LINENO: result: $CC" >&5
3085: echo "${ECHO_T}$CC" >&6
1.1 parser 3086: else
1.11 paf 3087: echo "$as_me:$LINENO: result: no" >&5
3088: echo "${ECHO_T}no" >&6
1.1 parser 3089: fi
1.11 paf 3090:
3091: test -n "$CC" && break
3092: done
3093: fi
3094: if test -z "$CC"; then
3095: ac_ct_CC=$CC
3096: for ac_prog in cl
3097: do
3098: # Extract the first word of "$ac_prog", so it can be a program name with args.
3099: set dummy $ac_prog; ac_word=$2
3100: echo "$as_me:$LINENO: checking for $ac_word" >&5
3101: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3103: echo $ECHO_N "(cached) $ECHO_C" >&6
3104: else
3105: if test -n "$ac_ct_CC"; then
3106: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3107: else
3108: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109: for as_dir in $PATH
3110: do
3111: IFS=$as_save_IFS
3112: test -z "$as_dir" && as_dir=.
3113: for ac_exec_ext in '' $ac_executable_extensions; do
3114: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115: ac_cv_prog_ac_ct_CC="$ac_prog"
3116: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117: break 2
1.1 parser 3118: fi
1.11 paf 3119: done
3120: done
3121:
3122: fi
3123: fi
3124: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3125: if test -n "$ac_ct_CC"; then
3126: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3127: echo "${ECHO_T}$ac_ct_CC" >&6
3128: else
3129: echo "$as_me:$LINENO: result: no" >&5
3130: echo "${ECHO_T}no" >&6
1.1 parser 3131: fi
3132:
1.11 paf 3133: test -n "$ac_ct_CC" && break
3134: done
1.1 parser 3135:
1.11 paf 3136: CC=$ac_ct_CC
3137: fi
1.1 parser 3138:
1.11 paf 3139: fi
1.1 parser 3140:
3141:
1.11 paf 3142: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3143: See \`config.log' for more details." >&5
3144: echo "$as_me: error: no acceptable C compiler found in \$PATH
3145: See \`config.log' for more details." >&2;}
3146: { (exit 1); exit 1; }; }
3147:
3148: # Provide some information about the compiler.
3149: echo "$as_me:$LINENO:" \
3150: "checking for C compiler version" >&5
3151: ac_compiler=`set X $ac_compile; echo $2`
3152: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3153: (eval $ac_compiler --version </dev/null >&5) 2>&5
3154: ac_status=$?
3155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156: (exit $ac_status); }
3157: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3158: (eval $ac_compiler -v </dev/null >&5) 2>&5
3159: ac_status=$?
3160: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161: (exit $ac_status); }
3162: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3163: (eval $ac_compiler -V </dev/null >&5) 2>&5
3164: ac_status=$?
3165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166: (exit $ac_status); }
3167:
3168: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3169: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3170: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3171: echo $ECHO_N "(cached) $ECHO_C" >&6
3172: else
3173: cat >conftest.$ac_ext <<_ACEOF
3174: /* confdefs.h. */
3175: _ACEOF
3176: cat confdefs.h >>conftest.$ac_ext
3177: cat >>conftest.$ac_ext <<_ACEOF
3178: /* end confdefs.h. */
3179:
3180: int
3181: main ()
3182: {
3183: #ifndef __GNUC__
3184: choke me
1.1 parser 3185: #endif
3186:
1.11 paf 3187: ;
3188: return 0;
3189: }
3190: _ACEOF
3191: rm -f conftest.$ac_objext
3192: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3193: (eval $ac_compile) 2>conftest.er1
1.11 paf 3194: ac_status=$?
1.18 paf 3195: grep -v '^ *+' conftest.er1 >conftest.err
3196: rm -f conftest.er1
3197: cat conftest.err >&5
1.11 paf 3198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199: (exit $ac_status); } &&
1.18 paf 3200: { ac_try='test -z "$ac_c_werror_flag"
3201: || test ! -s conftest.err'
3202: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203: (eval $ac_try) 2>&5
3204: ac_status=$?
3205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206: (exit $ac_status); }; } &&
3207: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3208: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209: (eval $ac_try) 2>&5
3210: ac_status=$?
3211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212: (exit $ac_status); }; }; then
3213: ac_compiler_gnu=yes
3214: else
3215: echo "$as_me: failed program was:" >&5
3216: sed 's/^/| /' conftest.$ac_ext >&5
3217:
3218: ac_compiler_gnu=no
3219: fi
1.18 paf 3220: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3221: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3222:
3223: fi
3224: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3225: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3226: GCC=`test $ac_compiler_gnu = yes && echo yes`
3227: ac_test_CFLAGS=${CFLAGS+set}
3228: ac_save_CFLAGS=$CFLAGS
3229: CFLAGS="-g"
3230: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3231: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3232: if test "${ac_cv_prog_cc_g+set}" = set; then
3233: echo $ECHO_N "(cached) $ECHO_C" >&6
3234: else
3235: cat >conftest.$ac_ext <<_ACEOF
3236: /* confdefs.h. */
3237: _ACEOF
3238: cat confdefs.h >>conftest.$ac_ext
3239: cat >>conftest.$ac_ext <<_ACEOF
3240: /* end confdefs.h. */
3241:
3242: int
3243: main ()
3244: {
3245:
3246: ;
3247: return 0;
3248: }
3249: _ACEOF
3250: rm -f conftest.$ac_objext
3251: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3252: (eval $ac_compile) 2>conftest.er1
1.11 paf 3253: ac_status=$?
1.18 paf 3254: grep -v '^ *+' conftest.er1 >conftest.err
3255: rm -f conftest.er1
3256: cat conftest.err >&5
1.11 paf 3257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258: (exit $ac_status); } &&
1.18 paf 3259: { ac_try='test -z "$ac_c_werror_flag"
3260: || test ! -s conftest.err'
3261: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262: (eval $ac_try) 2>&5
3263: ac_status=$?
3264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265: (exit $ac_status); }; } &&
3266: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3267: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268: (eval $ac_try) 2>&5
3269: ac_status=$?
3270: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271: (exit $ac_status); }; }; then
3272: ac_cv_prog_cc_g=yes
1.1 parser 3273: else
1.11 paf 3274: echo "$as_me: failed program was:" >&5
3275: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3276:
1.11 paf 3277: ac_cv_prog_cc_g=no
1.1 parser 3278: fi
1.18 paf 3279: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3280: fi
1.11 paf 3281: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3282: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3283: if test "$ac_test_CFLAGS" = set; then
1.11 paf 3284: CFLAGS=$ac_save_CFLAGS
1.1 parser 3285: elif test $ac_cv_prog_cc_g = yes; then
3286: if test "$GCC" = yes; then
3287: CFLAGS="-g -O2"
3288: else
3289: CFLAGS="-g"
3290: fi
3291: else
3292: if test "$GCC" = yes; then
3293: CFLAGS="-O2"
3294: else
3295: CFLAGS=
3296: fi
3297: fi
1.11 paf 3298: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3299: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3300: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3301: echo $ECHO_N "(cached) $ECHO_C" >&6
3302: else
3303: ac_cv_prog_cc_stdc=no
3304: ac_save_CC=$CC
3305: cat >conftest.$ac_ext <<_ACEOF
3306: /* confdefs.h. */
3307: _ACEOF
3308: cat confdefs.h >>conftest.$ac_ext
3309: cat >>conftest.$ac_ext <<_ACEOF
3310: /* end confdefs.h. */
3311: #include <stdarg.h>
3312: #include <stdio.h>
3313: #include <sys/types.h>
3314: #include <sys/stat.h>
3315: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316: struct buf { int x; };
3317: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318: static char *e (p, i)
3319: char **p;
3320: int i;
3321: {
3322: return p[i];
3323: }
3324: static char *f (char * (*g) (char **, int), char **p, ...)
3325: {
3326: char *s;
3327: va_list v;
3328: va_start (v,p);
3329: s = g (p, va_arg (v,int));
3330: va_end (v);
3331: return s;
3332: }
1.18 paf 3333:
3334: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335: function prototypes and stuff, but not '\xHH' hex character constants.
3336: These don't provoke an error unfortunately, instead are silently treated
3337: as 'x'. The following induces an error, until -std1 is added to get
3338: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339: array size at least. It's necessary to write '\x00'==0 to get something
3340: that's true only with -std1. */
3341: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342:
1.11 paf 3343: int test (int i, double x);
3344: struct s1 {int (*f) (int a);};
3345: struct s2 {int (*f) (double a);};
3346: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3347: int argc;
3348: char **argv;
3349: int
3350: main ()
3351: {
3352: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3353: ;
3354: return 0;
3355: }
3356: _ACEOF
3357: # Don't try gcc -ansi; that turns off useful extensions and
3358: # breaks some systems' header files.
3359: # AIX -qlanglvl=ansi
3360: # Ultrix and OSF/1 -std1
3361: # HP-UX 10.20 and later -Ae
3362: # HP-UX older versions -Aa -D_HPUX_SOURCE
3363: # SVR4 -Xc -D__EXTENSIONS__
3364: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365: do
3366: CC="$ac_save_CC $ac_arg"
3367: rm -f conftest.$ac_objext
3368: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3369: (eval $ac_compile) 2>conftest.er1
1.11 paf 3370: ac_status=$?
1.18 paf 3371: grep -v '^ *+' conftest.er1 >conftest.err
3372: rm -f conftest.er1
3373: cat conftest.err >&5
1.11 paf 3374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375: (exit $ac_status); } &&
1.18 paf 3376: { ac_try='test -z "$ac_c_werror_flag"
3377: || test ! -s conftest.err'
3378: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379: (eval $ac_try) 2>&5
3380: ac_status=$?
3381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382: (exit $ac_status); }; } &&
3383: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3384: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385: (eval $ac_try) 2>&5
3386: ac_status=$?
3387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388: (exit $ac_status); }; }; then
3389: ac_cv_prog_cc_stdc=$ac_arg
3390: break
3391: else
3392: echo "$as_me: failed program was:" >&5
3393: sed 's/^/| /' conftest.$ac_ext >&5
3394:
3395: fi
1.18 paf 3396: rm -f conftest.err conftest.$ac_objext
1.11 paf 3397: done
3398: rm -f conftest.$ac_ext conftest.$ac_objext
3399: CC=$ac_save_CC
3400:
3401: fi
3402:
3403: case "x$ac_cv_prog_cc_stdc" in
3404: x|xno)
3405: echo "$as_me:$LINENO: result: none needed" >&5
3406: echo "${ECHO_T}none needed" >&6 ;;
3407: *)
3408: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3409: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3410: CC="$CC $ac_cv_prog_cc_stdc" ;;
3411: esac
3412:
3413: # Some people use a C++ compiler to compile C. Since we use `exit',
3414: # in C++ we need to declare it. In case someone uses the same compiler
3415: # for both compiling C and C++ we need to have the C++ compiler decide
3416: # the declaration of exit, since it's the most demanding environment.
3417: cat >conftest.$ac_ext <<_ACEOF
3418: #ifndef __cplusplus
3419: choke me
3420: #endif
3421: _ACEOF
3422: rm -f conftest.$ac_objext
3423: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3424: (eval $ac_compile) 2>conftest.er1
1.11 paf 3425: ac_status=$?
1.18 paf 3426: grep -v '^ *+' conftest.er1 >conftest.err
3427: rm -f conftest.er1
3428: cat conftest.err >&5
1.11 paf 3429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430: (exit $ac_status); } &&
1.18 paf 3431: { ac_try='test -z "$ac_c_werror_flag"
3432: || test ! -s conftest.err'
3433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434: (eval $ac_try) 2>&5
3435: ac_status=$?
3436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437: (exit $ac_status); }; } &&
3438: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440: (eval $ac_try) 2>&5
3441: ac_status=$?
3442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443: (exit $ac_status); }; }; then
3444: for ac_declaration in \
1.18 paf 3445: '' \
1.11 paf 3446: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3447: 'extern "C" void std::exit (int); using std::exit;' \
3448: 'extern "C" void exit (int) throw ();' \
3449: 'extern "C" void exit (int);' \
3450: 'void exit (int);'
3451: do
3452: cat >conftest.$ac_ext <<_ACEOF
3453: /* confdefs.h. */
3454: _ACEOF
3455: cat confdefs.h >>conftest.$ac_ext
3456: cat >>conftest.$ac_ext <<_ACEOF
3457: /* end confdefs.h. */
1.18 paf 3458: $ac_declaration
1.11 paf 3459: #include <stdlib.h>
3460: int
3461: main ()
3462: {
3463: exit (42);
3464: ;
3465: return 0;
3466: }
3467: _ACEOF
3468: rm -f conftest.$ac_objext
3469: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3470: (eval $ac_compile) 2>conftest.er1
1.11 paf 3471: ac_status=$?
1.18 paf 3472: grep -v '^ *+' conftest.er1 >conftest.err
3473: rm -f conftest.er1
3474: cat conftest.err >&5
1.11 paf 3475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476: (exit $ac_status); } &&
1.18 paf 3477: { ac_try='test -z "$ac_c_werror_flag"
3478: || test ! -s conftest.err'
3479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480: (eval $ac_try) 2>&5
3481: ac_status=$?
3482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483: (exit $ac_status); }; } &&
3484: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3485: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486: (eval $ac_try) 2>&5
3487: ac_status=$?
3488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489: (exit $ac_status); }; }; then
3490: :
3491: else
3492: echo "$as_me: failed program was:" >&5
3493: sed 's/^/| /' conftest.$ac_ext >&5
3494:
3495: continue
3496: fi
1.18 paf 3497: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3498: cat >conftest.$ac_ext <<_ACEOF
3499: /* confdefs.h. */
3500: _ACEOF
3501: cat confdefs.h >>conftest.$ac_ext
3502: cat >>conftest.$ac_ext <<_ACEOF
3503: /* end confdefs.h. */
3504: $ac_declaration
3505: int
3506: main ()
3507: {
3508: exit (42);
3509: ;
3510: return 0;
3511: }
3512: _ACEOF
3513: rm -f conftest.$ac_objext
3514: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3515: (eval $ac_compile) 2>conftest.er1
1.11 paf 3516: ac_status=$?
1.18 paf 3517: grep -v '^ *+' conftest.er1 >conftest.err
3518: rm -f conftest.er1
3519: cat conftest.err >&5
1.11 paf 3520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521: (exit $ac_status); } &&
1.18 paf 3522: { ac_try='test -z "$ac_c_werror_flag"
3523: || test ! -s conftest.err'
3524: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525: (eval $ac_try) 2>&5
3526: ac_status=$?
3527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528: (exit $ac_status); }; } &&
3529: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3530: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531: (eval $ac_try) 2>&5
3532: ac_status=$?
3533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534: (exit $ac_status); }; }; then
3535: break
3536: else
3537: echo "$as_me: failed program was:" >&5
3538: sed 's/^/| /' conftest.$ac_ext >&5
3539:
3540: fi
1.18 paf 3541: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3542: done
3543: rm -f conftest*
3544: if test -n "$ac_declaration"; then
3545: echo '#ifdef __cplusplus' >>confdefs.h
3546: echo $ac_declaration >>confdefs.h
3547: echo '#endif' >>confdefs.h
3548: fi
3549:
3550: else
3551: echo "$as_me: failed program was:" >&5
3552: sed 's/^/| /' conftest.$ac_ext >&5
3553:
3554: fi
1.18 paf 3555: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3556: ac_ext=c
3557: ac_cpp='$CPP $CPPFLAGS'
3558: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 3561:
3562: depcc="$CC" am_compiler_list=
3563:
3564: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3565: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3566: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3567: echo $ECHO_N "(cached) $ECHO_C" >&6
3568: else
3569: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570: # We make a subdir and do the tests there. Otherwise we can end up
3571: # making bogus files that we don't know about and never remove. For
3572: # instance it was reported that on HP-UX the gcc test will end up
3573: # making a dummy file named `D' -- because `-MD' means `put the output
3574: # in D'.
3575: mkdir conftest.dir
3576: # Copy depcomp to subdir because otherwise we won't find it if we're
3577: # using a relative directory.
3578: cp "$am_depcomp" conftest.dir
3579: cd conftest.dir
1.18 paf 3580: # We will build objects and dependencies in a subdirectory because
3581: # it helps to detect inapplicable dependency modes. For instance
3582: # both Tru64's cc and ICC support -MD to output dependencies as a
3583: # side effect of compilation, but ICC will put the dependencies in
3584: # the current directory while Tru64 will put them in the object
3585: # directory.
3586: mkdir sub
1.11 paf 3587:
3588: am_cv_CC_dependencies_compiler_type=none
3589: if test "$am_compiler_list" = ""; then
3590: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591: fi
3592: for depmode in $am_compiler_list; do
1.18 paf 3593: # Setup a source with many dependencies, because some compilers
3594: # like to wrap large dependency lists on column 80 (with \), and
3595: # we should not choose a depcomp mode which is confused by this.
3596: #
1.11 paf 3597: # We need to recreate these files for each test, as the compiler may
3598: # overwrite some of them when testing with obscure command lines.
3599: # This happens at least with the AIX C compiler.
1.18 paf 3600: : > sub/conftest.c
3601: for i in 1 2 3 4 5 6; do
3602: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3603: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3604: # Solaris 8's {/usr,}/bin/sh.
3605: touch sub/conftst$i.h
3606: done
3607: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 3608:
3609: case $depmode in
3610: nosideeffect)
3611: # after this tag, mechanisms are not by side-effect, so they'll
3612: # only be used when explicitly requested
3613: if test "x$enable_dependency_tracking" = xyes; then
3614: continue
3615: else
3616: break
3617: fi
3618: ;;
3619: none) break ;;
3620: esac
3621: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3622: # mode. It turns out that the SunPro C++ compiler does not properly
3623: # handle `-M -o', and we need to detect this.
3624: if depmode=$depmode \
1.18 paf 3625: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3626: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3628: >/dev/null 2>conftest.err &&
3629: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3630: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 3631: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 3632: # icc doesn't choke on unknown options, it will just issue warnings
3633: # or remarks (even with -Werror). So we grep stderr for any message
3634: # that says an option was ignored or not supported.
3635: # When given -MP, icc 7.0 and 7.1 complain thusly:
3636: # icc: Command line warning: ignoring option '-M'; no argument required
3637: # The diagnosis changed in icc 8.0:
3638: # icc: Command line remark: option '-MP' not supported
3639: if (grep 'ignoring option' conftest.err ||
3640: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3641: am_cv_CC_dependencies_compiler_type=$depmode
3642: break
3643: fi
1.11 paf 3644: fi
3645: done
3646:
3647: cd ..
3648: rm -rf conftest.dir
3649: else
3650: am_cv_CC_dependencies_compiler_type=none
3651: fi
3652:
3653: fi
3654: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3655: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3656: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3657:
3658:
3659:
3660: if
3661: test "x$enable_dependency_tracking" != xno \
3662: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663: am__fastdepCC_TRUE=
3664: am__fastdepCC_FALSE='#'
3665: else
3666: am__fastdepCC_TRUE='#'
3667: am__fastdepCC_FALSE=
3668: fi
3669:
3670:
1.15 paf 3671:
3672: ac_ext=c
3673: ac_cpp='$CPP $CPPFLAGS'
3674: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677:
3678:
3679:
3680: case $enable_ltdl_convenience in
3681: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3682: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3683: { (exit 1); exit 1; }; } ;;
3684: "") enable_ltdl_convenience=yes
3685: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3686: esac
3687: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3688: LTDLINCL='-I${top_srcdir}/''libltdl'
3689: # For backwards non-gettext consistent compatibility...
3690: INCLTDL="$LTDLINCL"
3691:
3692:
3693:
3694:
3695: # Check whether --enable-static or --disable-static was given.
3696: if test "${enable_static+set}" = set; then
3697: enableval="$enable_static"
3698: p=${PACKAGE-default}
3699: case $enableval in
3700: yes) enable_static=yes ;;
3701: no) enable_static=no ;;
3702: *)
3703: enable_static=no
3704: # Look at the argument we got. We use all the common list separators.
3705: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3706: for pkg in $enableval; do
3707: if test "X$pkg" = "X$p"; then
3708: enable_static=yes
3709: fi
3710: done
3711: IFS="$ac_save_ifs"
3712: ;;
3713: esac
3714: else
3715: enable_static=no
3716: fi;
3717:
3718: # Check whether --enable-shared or --disable-shared was given.
3719: if test "${enable_shared+set}" = set; then
3720: enableval="$enable_shared"
3721: p=${PACKAGE-default}
3722: case $enableval in
3723: yes) enable_shared=yes ;;
3724: no) enable_shared=no ;;
3725: *)
3726: enable_shared=no
3727: # Look at the argument we got. We use all the common list separators.
3728: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3729: for pkg in $enableval; do
3730: if test "X$pkg" = "X$p"; then
3731: enable_shared=yes
3732: fi
3733: done
3734: IFS="$ac_save_ifs"
3735: ;;
3736: esac
3737: else
3738: enable_shared=yes
3739: fi;
3740: # Check whether --enable-fast-install or --disable-fast-install was given.
3741: if test "${enable_fast_install+set}" = set; then
3742: enableval="$enable_fast_install"
3743: p=${PACKAGE-default}
3744: case $enableval in
3745: yes) enable_fast_install=yes ;;
3746: no) enable_fast_install=no ;;
3747: *)
3748: enable_fast_install=no
3749: # Look at the argument we got. We use all the common list separators.
3750: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3751: for pkg in $enableval; do
3752: if test "X$pkg" = "X$p"; then
3753: enable_fast_install=yes
3754: fi
3755: done
3756: IFS="$ac_save_ifs"
3757: ;;
3758: esac
3759: else
3760: enable_fast_install=yes
3761: fi;
3762: # Make sure we can run config.sub.
3763: $ac_config_sub sun4 >/dev/null 2>&1 ||
3764: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3765: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3766: { (exit 1); exit 1; }; }
3767:
3768: echo "$as_me:$LINENO: checking build system type" >&5
3769: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3770: if test "${ac_cv_build+set}" = set; then
3771: echo $ECHO_N "(cached) $ECHO_C" >&6
3772: else
3773: ac_cv_build_alias=$build_alias
3774: test -z "$ac_cv_build_alias" &&
3775: ac_cv_build_alias=`$ac_config_guess`
3776: test -z "$ac_cv_build_alias" &&
3777: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3778: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3779: { (exit 1); exit 1; }; }
3780: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3781: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3782: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3783: { (exit 1); exit 1; }; }
3784:
3785: fi
3786: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3787: echo "${ECHO_T}$ac_cv_build" >&6
3788: build=$ac_cv_build
3789: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3790: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3791: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3792:
3793:
3794: echo "$as_me:$LINENO: checking host system type" >&5
3795: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3796: if test "${ac_cv_host+set}" = set; then
3797: echo $ECHO_N "(cached) $ECHO_C" >&6
3798: else
3799: ac_cv_host_alias=$host_alias
3800: test -z "$ac_cv_host_alias" &&
3801: ac_cv_host_alias=$ac_cv_build_alias
3802: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3803: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3804: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3805: { (exit 1); exit 1; }; }
3806:
3807: fi
3808: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3809: echo "${ECHO_T}$ac_cv_host" >&6
3810: host=$ac_cv_host
3811: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3812: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3813: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3814:
3815:
1.11 paf 3816: # Find the correct PATH separator. Usually this is `:', but
3817: # DJGPP uses `;' like DOS.
3818: if test "X${PATH_SEPARATOR+set}" != Xset; then
3819: UNAME=${UNAME-`uname 2>/dev/null`}
3820: case X$UNAME in
3821: *-DOS) lt_cv_sys_path_separator=';' ;;
3822: *) lt_cv_sys_path_separator=':' ;;
3823: esac
3824: PATH_SEPARATOR=$lt_cv_sys_path_separator
3825: fi
3826:
1.1 parser 3827:
3828: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3829: if test "${with_gnu_ld+set}" = set; then
3830: withval="$with_gnu_ld"
3831: test "$withval" = no || with_gnu_ld=yes
3832: else
3833: with_gnu_ld=no
1.11 paf 3834: fi;
1.1 parser 3835: ac_prog=ld
1.11 paf 3836: if test "$GCC" = yes; then
1.1 parser 3837: # Check if gcc -print-prog-name=ld gives a path.
1.11 paf 3838: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3839: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3840: case $host in
3841: *-*-mingw*)
3842: # gcc leaves a trailing carriage return which upsets mingw
3843: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3844: *)
3845: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3846: esac
3847: case $ac_prog in
1.1 parser 3848: # Accept absolute paths.
3849: [\\/]* | [A-Za-z]:[\\/]*)
3850: re_direlt='/[^/][^/]*/\.\./'
3851: # Canonicalize the path of ld
3852: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3853: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3854: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3855: done
3856: test -z "$LD" && LD="$ac_prog"
3857: ;;
3858: "")
3859: # If it fails, then pretend we aren't using GCC.
3860: ac_prog=ld
3861: ;;
3862: *)
3863: # If it is relative, then search for the first ld in PATH.
3864: with_gnu_ld=unknown
3865: ;;
3866: esac
3867: elif test "$with_gnu_ld" = yes; then
1.11 paf 3868: echo "$as_me:$LINENO: checking for GNU ld" >&5
3869: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3870: else
1.11 paf 3871: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3872: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3873: fi
1.11 paf 3874: if test "${lt_cv_path_LD+set}" = set; then
3875: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3876: else
3877: if test -z "$LD"; then
1.11 paf 3878: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3879: for ac_dir in $PATH; do
3880: test -z "$ac_dir" && ac_dir=.
3881: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.11 paf 3882: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3883: # Check to see if the program is GNU ld. I'd rather use --version,
3884: # but apparently some GNU ld's only accept -v.
3885: # Break only if it was the GNU/non-GNU ld that we prefer.
1.11 paf 3886: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3887: test "$with_gnu_ld" != no && break
3888: else
3889: test "$with_gnu_ld" != yes && break
3890: fi
3891: fi
3892: done
3893: IFS="$ac_save_ifs"
3894: else
1.11 paf 3895: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3896: fi
3897: fi
3898:
1.11 paf 3899: LD="$lt_cv_path_LD"
1.1 parser 3900: if test -n "$LD"; then
1.11 paf 3901: echo "$as_me:$LINENO: result: $LD" >&5
3902: echo "${ECHO_T}$LD" >&6
1.1 parser 3903: else
1.11 paf 3904: echo "$as_me:$LINENO: result: no" >&5
3905: echo "${ECHO_T}no" >&6
1.1 parser 3906: fi
1.11 paf 3907: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3908: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3909: { (exit 1); exit 1; }; }
3910: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3911: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3912: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3913: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3914: else
3915: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3916: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.11 paf 3917: lt_cv_prog_gnu_ld=yes
1.1 parser 3918: else
1.11 paf 3919: lt_cv_prog_gnu_ld=no
1.1 parser 3920: fi
3921: fi
1.11 paf 3922: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3923: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3924: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3925:
3926:
1.11 paf 3927: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3928: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3929: if test "${lt_cv_ld_reload_flag+set}" = set; then
3930: echo $ECHO_N "(cached) $ECHO_C" >&6
3931: else
3932: lt_cv_ld_reload_flag='-r'
3933: fi
3934: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3935: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3936: reload_flag=$lt_cv_ld_reload_flag
3937: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3938:
1.11 paf 3939: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3940: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3941: if test "${lt_cv_path_NM+set}" = set; then
3942: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3943: else
3944: if test -n "$NM"; then
3945: # Let the user override the test.
1.11 paf 3946: lt_cv_path_NM="$NM"
1.1 parser 3947: else
1.11 paf 3948: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3949: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3950: test -z "$ac_dir" && ac_dir=.
1.11 paf 3951: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3952: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3953: # Check to see if the nm accepts a BSD-compat flag.
3954: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3955: # nm: unknown option "B" ignored
1.11 paf 3956: # Tru64's nm complains that /dev/null is an invalid object file
3957: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3958: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3959: break
1.11 paf 3960: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3961: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3962: break
3963: else
1.11 paf 3964: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3965: continue # so that we can try to find one that supports BSD flags
3966: fi
3967: fi
3968: done
3969: IFS="$ac_save_ifs"
1.11 paf 3970: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3971: fi
3972: fi
3973:
1.11 paf 3974: NM="$lt_cv_path_NM"
3975: echo "$as_me:$LINENO: result: $NM" >&5
3976: echo "${ECHO_T}$NM" >&6
1.1 parser 3977:
1.11 paf 3978: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3979: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3980: if test "${lt_cv_path_SED+set}" = set; then
3981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3982: else
1.11 paf 3983: # Loop through the user's path and test for sed and gsed.
3984: # Then use that list of sed's as ones to test for truncation.
3985: as_executable_p="test -f"
3986: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987: for as_dir in $PATH
3988: do
3989: IFS=$as_save_IFS
3990: test -z "$as_dir" && as_dir=.
3991: for ac_prog in sed gsed; do
3992: for ac_exec_ext in '' $ac_executable_extensions; do
3993: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3994: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3995: fi
3996: done
3997: done
3998: done
3999:
4000: # Create a temporary directory, and hook for its removal unless debugging.
4001: $debug ||
4002: {
4003: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4004: trap '{ (exit 1); exit 1; }' 1 2 13 15
4005: }
4006:
4007: # Create a (secure) tmp directory for tmp files.
4008: : ${TMPDIR=/tmp}
4009: {
4010: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4011: test -n "$tmp" && test -d "$tmp"
4012: } ||
4013: {
4014: tmp=$TMPDIR/sed$$-$RANDOM
4015: (umask 077 && mkdir $tmp)
4016: } ||
4017: {
4018: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4019: { (exit 1); exit 1; }
4020: }
4021: _max=0
4022: _count=0
4023: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4024: # along with /bin/sed that truncates output.
4025: for _sed in $_sed_list /usr/xpg4/bin/sed; do
4026: test ! -f ${_sed} && break
4027: cat /dev/null > "$tmp/sed.in"
4028: _count=0
4029: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4030: # Check for GNU sed and select it if it is found.
4031: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4032: lt_cv_path_SED=${_sed}
4033: break
4034: fi
4035: while true; do
4036: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4037: mv "$tmp/sed.tmp" "$tmp/sed.in"
4038: cp "$tmp/sed.in" "$tmp/sed.nl"
4039: echo >>"$tmp/sed.nl"
4040: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4041: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4042: # 40000 chars as input seems more than enough
4043: test $_count -gt 10 && break
4044: _count=`expr $_count + 1`
4045: if test $_count -gt $_max; then
4046: _max=$_count
4047: lt_cv_path_SED=$_sed
4048: fi
4049: done
4050: done
4051: rm -rf "$tmp"
4052:
1.1 parser 4053: fi
4054:
1.11 paf 4055: if test "X$SED" != "X"; then
4056: lt_cv_path_SED=$SED
1.7 paf 4057: else
1.11 paf 4058: SED=$lt_cv_path_SED
1.7 paf 4059: fi
1.11 paf 4060: echo "$as_me:$LINENO: result: $SED" >&5
4061: echo "${ECHO_T}$SED" >&6
4062:
4063: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4064: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4065: LN_S=$as_ln_s
4066: if test "$LN_S" = "ln -s"; then
4067: echo "$as_me:$LINENO: result: yes" >&5
4068: echo "${ECHO_T}yes" >&6
4069: else
4070: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4071: echo "${ECHO_T}no, using $LN_S" >&6
4072: fi
4073:
4074: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4075: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4076: if test "${lt_cv_deplibs_check_method+set}" = set; then
4077: echo $ECHO_N "(cached) $ECHO_C" >&6
4078: else
4079: lt_cv_file_magic_cmd='$MAGIC_CMD'
4080: lt_cv_file_magic_test_file=
4081: lt_cv_deplibs_check_method='unknown'
4082: # Need to set the preceding variable on all platforms that support
4083: # interlibrary dependencies.
4084: # 'none' -- dependencies not supported.
4085: # `unknown' -- same as none, but documents that we really don't know.
4086: # 'pass_all' -- all dependencies passed with no checks.
4087: # 'test_compile' -- check by making test program.
4088: # 'file_magic [[regex]]' -- check by looking for files in library path
4089: # which responds to the $file_magic_cmd with a given egrep regex.
4090: # If you have `file' or equivalent on your system and you're not sure
4091: # whether `pass_all' will *always* work, you probably want this one.
4092:
4093: case $host_os in
4094: aix4* | aix5*)
4095: lt_cv_deplibs_check_method=pass_all
4096: ;;
1.7 paf 4097:
1.11 paf 4098: beos*)
4099: lt_cv_deplibs_check_method=pass_all
4100: ;;
1.1 parser 4101:
1.11 paf 4102: bsdi4*)
4103: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4104: lt_cv_file_magic_cmd='/usr/bin/file -L'
4105: lt_cv_file_magic_test_file=/shlib/libc.so
4106: ;;
1.1 parser 4107:
1.11 paf 4108: cygwin* | mingw* | pw32*)
4109: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4110: lt_cv_file_magic_cmd='$OBJDUMP -f'
4111: ;;
1.1 parser 4112:
1.11 paf 4113: darwin* | rhapsody*)
4114: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4115: lt_cv_file_magic_cmd='/usr/bin/file -L'
4116: case "$host_os" in
4117: rhapsody* | darwin1.[012])
4118: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4119: ;;
4120: *) # Darwin 1.3 on
4121: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4122: ;;
4123: esac
4124: ;;
1.1 parser 4125:
1.11 paf 4126: freebsd*)
4127: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4128: case $host_cpu in
4129: i*86 )
4130: # Not sure whether the presence of OpenBSD here was a mistake.
4131: # Let's accept both of them until this is cleared up.
4132: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4133: lt_cv_file_magic_cmd=/usr/bin/file
4134: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4135: ;;
4136: esac
1.11 paf 4137: else
4138: lt_cv_deplibs_check_method=pass_all
1.1 parser 4139: fi
4140: ;;
4141:
1.11 paf 4142: gnu*)
4143: lt_cv_deplibs_check_method=pass_all
4144: ;;
1.1 parser 4145:
1.11 paf 4146: hpux10.20*|hpux11*)
4147: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4148: lt_cv_file_magic_cmd=/usr/bin/file
4149: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4150: ;;
1.1 parser 4151:
1.11 paf 4152: irix5* | irix6* | nonstopux*)
4153: case $host_os in
4154: irix5* | nonstopux*)
4155: # this will be overridden with pass_all, but let us keep it just in case
4156: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4157: ;;
4158: *)
4159: case $LD in
4160: *-32|*"-32 ") libmagic=32-bit;;
4161: *-n32|*"-n32 ") libmagic=N32;;
4162: *-64|*"-64 ") libmagic=64-bit;;
4163: *) libmagic=never-match;;
4164: esac
4165: # this will be overridden with pass_all, but let us keep it just in case
4166: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4167: ;;
4168: esac
4169: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4170: lt_cv_deplibs_check_method=pass_all
4171: ;;
4172:
4173: # This must be Linux ELF.
4174: linux-gnu*)
4175: case $host_cpu in
4176: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4177: lt_cv_deplibs_check_method=pass_all ;;
4178: *)
4179: # glibc up to 2.1.1 does not perform some relocations on ARM
4180: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4181: esac
4182: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4183: ;;
4184:
4185: netbsd*)
4186: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4187: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4188: else
4189: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4190: fi
4191: ;;
4192:
4193: newos6*)
4194: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4195: lt_cv_file_magic_cmd=/usr/bin/file
4196: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4197: ;;
4198:
4199: openbsd*)
4200: lt_cv_file_magic_cmd=/usr/bin/file
4201: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4202: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4203: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4204: else
4205: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4206: fi
4207: ;;
4208:
4209: osf3* | osf4* | osf5*)
4210: # this will be overridden with pass_all, but let us keep it just in case
4211: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4212: lt_cv_file_magic_test_file=/shlib/libc.so
4213: lt_cv_deplibs_check_method=pass_all
4214: ;;
4215:
4216: sco3.2v5*)
4217: lt_cv_deplibs_check_method=pass_all
4218: ;;
4219:
4220: solaris*)
4221: lt_cv_deplibs_check_method=pass_all
4222: lt_cv_file_magic_test_file=/lib/libc.so
4223: ;;
4224:
4225: sysv5uw[78]* | sysv4*uw2*)
4226: lt_cv_deplibs_check_method=pass_all
4227: ;;
4228:
4229: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4230: case $host_vendor in
4231: motorola)
4232: 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]'
4233: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4234: ;;
4235: ncr)
4236: lt_cv_deplibs_check_method=pass_all
4237: ;;
4238: sequent)
4239: lt_cv_file_magic_cmd='/bin/file'
4240: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4241: ;;
4242: sni)
4243: lt_cv_file_magic_cmd='/bin/file'
4244: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4245: lt_cv_file_magic_test_file=/lib/libc.so
4246: ;;
4247: siemens)
4248: lt_cv_deplibs_check_method=pass_all
4249: ;;
4250: esac
4251: ;;
4252: esac
4253:
4254: fi
4255: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4256: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4257: file_magic_cmd=$lt_cv_file_magic_cmd
4258: deplibs_check_method=$lt_cv_deplibs_check_method
4259:
4260:
4261:
4262:
4263:
4264:
4265:
4266:
4267: # Check for command to grab the raw symbol name followed by C symbol from nm.
4268: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4269: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4270: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4271: echo $ECHO_N "(cached) $ECHO_C" >&6
4272: else
4273:
4274: # These are sane defaults that work on at least a few old systems.
4275: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4276:
4277: # Character class describing NM global symbol codes.
4278: symcode='[BCDEGRST]'
4279:
4280: # Regexp to match symbols that can be accessed directly from C.
4281: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4282:
4283: # Transform the above into a raw symbol and a C symbol.
4284: symxfrm='\1 \2\3 \3'
4285:
4286: # Transform an extracted symbol line into a proper C declaration
4287: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4288:
4289: # Transform an extracted symbol line into symbol name and symbol address
4290: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4291:
4292: # Define system-specific variables.
4293: case $host_os in
4294: aix*)
4295: symcode='[BCDT]'
4296: ;;
4297: cygwin* | mingw* | pw32*)
4298: symcode='[ABCDGISTW]'
4299: ;;
4300: hpux*) # Its linker distinguishes data from code symbols
4301: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4302: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4303: ;;
4304: irix* | nonstopux*)
4305: symcode='[BCDEGRST]'
4306: ;;
4307: osf*)
4308: symcode='[BCDEGQRST]'
4309: ;;
4310: solaris* | sysv5*)
4311: symcode='[BDT]'
4312: ;;
4313: sysv4)
4314: symcode='[DFNSTU]'
4315: ;;
4316: esac
4317:
4318: # Handle CRLF in mingw tool chain
4319: opt_cr=
4320: case $host_os in
4321: mingw*)
4322: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4323: ;;
4324: esac
4325:
4326: # If we're using GNU nm, then use its standard symbol codes.
4327: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4328: symcode='[ABCDGISTW]'
4329: fi
4330:
4331: # Try without a prefix undercore, then with it.
4332: for ac_symprfx in "" "_"; do
4333:
4334: # Write the raw and C identifiers.
4335: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4336:
4337: # Check to see that the pipe works correctly.
4338: pipe_works=no
4339: rm -f conftest*
4340: cat > conftest.$ac_ext <<EOF
4341: #ifdef __cplusplus
4342: extern "C" {
4343: #endif
4344: char nm_test_var;
4345: void nm_test_func(){}
4346: #ifdef __cplusplus
4347: }
4348: #endif
4349: int main(){nm_test_var='a';nm_test_func();return(0);}
4350: EOF
4351:
4352: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353: (eval $ac_compile) 2>&5
4354: ac_status=$?
4355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356: (exit $ac_status); }; then
4357: # Now try to grab the symbols.
4358: nlist=conftest.nm
4359: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4360: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4361: ac_status=$?
4362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363: (exit $ac_status); } && test -s "$nlist"; then
4364: # Try sorting and uniquifying the output.
4365: if sort "$nlist" | uniq > "$nlist"T; then
4366: mv -f "$nlist"T "$nlist"
4367: else
4368: rm -f "$nlist"T
4369: fi
4370:
4371: # Make sure that we snagged all the symbols we need.
4372: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4373: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4374: cat <<EOF > conftest.$ac_ext
4375: #ifdef __cplusplus
4376: extern "C" {
4377: #endif
4378:
4379: EOF
4380: # Now generate the symbol file.
4381: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4382:
4383: cat <<EOF >> conftest.$ac_ext
4384: #if defined (__STDC__) && __STDC__
4385: # define lt_ptr void *
4386: #else
4387: # define lt_ptr char *
4388: # define const
4389: #endif
4390:
4391: /* The mapping between symbol names and symbols. */
4392: const struct {
4393: const char *name;
4394: lt_ptr address;
4395: }
4396: lt_preloaded_symbols[] =
4397: {
4398: EOF
4399: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4400: cat <<\EOF >> conftest.$ac_ext
4401: {0, (lt_ptr) 0}
4402: };
4403:
4404: #ifdef __cplusplus
4405: }
4406: #endif
1.1 parser 4407: EOF
1.11 paf 4408: # Now try linking the two files.
4409: mv conftest.$ac_objext conftstm.$ac_objext
4410: save_LIBS="$LIBS"
4411: save_CFLAGS="$CFLAGS"
4412: LIBS="conftstm.$ac_objext"
4413: CFLAGS="$CFLAGS$no_builtin_flag"
4414: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415: (eval $ac_link) 2>&5
4416: ac_status=$?
4417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418: (exit $ac_status); } && test -s conftest$ac_exeext; then
4419: pipe_works=yes
4420: fi
4421: LIBS="$save_LIBS"
4422: CFLAGS="$save_CFLAGS"
4423: else
4424: echo "cannot find nm_test_func in $nlist" >&5
4425: fi
4426: else
4427: echo "cannot find nm_test_var in $nlist" >&5
4428: fi
4429: else
4430: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4431: fi
4432: else
4433: echo "$progname: failed program was:" >&5
4434: cat conftest.$ac_ext >&5
4435: fi
4436: rm -f conftest* conftst*
4437:
4438: # Do not use the global_symbol_pipe unless it works.
4439: if test "$pipe_works" = yes; then
4440: break
4441: else
4442: lt_cv_sys_global_symbol_pipe=
4443: fi
4444: done
4445:
4446: fi
4447:
4448: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4449: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4450: global_symbol_to_cdecl=
4451: global_symbol_to_c_name_address=
4452: else
4453: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4454: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4455: fi
4456: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4457: then
4458: echo "$as_me:$LINENO: result: failed" >&5
4459: echo "${ECHO_T}failed" >&6
4460: else
4461: echo "$as_me:$LINENO: result: ok" >&5
4462: echo "${ECHO_T}ok" >&6
4463: fi
4464:
1.15 paf 4465: ac_ext=c
4466: ac_cpp='$CPP $CPPFLAGS'
4467: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4471: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4472: # On Suns, sometimes $CPP names a directory.
4473: if test -n "$CPP" && test -d "$CPP"; then
4474: CPP=
4475: fi
4476: if test -z "$CPP"; then
4477: if test "${ac_cv_prog_CPP+set}" = set; then
1.11 paf 4478: echo $ECHO_N "(cached) $ECHO_C" >&6
4479: else
1.15 paf 4480: # Double quotes because CPP needs to be expanded
4481: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.11 paf 4482: do
4483: ac_preproc_ok=false
1.15 paf 4484: for ac_c_preproc_warn_flag in '' yes
1.11 paf 4485: do
4486: # Use a header file that comes with gcc, so configuring glibc
4487: # with a fresh cross-compiler works.
4488: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489: # <limits.h> exists even on freestanding compilers.
4490: # On the NeXT, cc -E runs the code through the compiler's parser,
4491: # not just through cpp. "Syntax error" is here to catch this case.
4492: cat >conftest.$ac_ext <<_ACEOF
4493: /* confdefs.h. */
4494: _ACEOF
4495: cat confdefs.h >>conftest.$ac_ext
4496: cat >>conftest.$ac_ext <<_ACEOF
4497: /* end confdefs.h. */
4498: #ifdef __STDC__
4499: # include <limits.h>
4500: #else
4501: # include <assert.h>
4502: #endif
1.18 paf 4503: Syntax error
1.11 paf 4504: _ACEOF
4505: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507: ac_status=$?
4508: grep -v '^ *+' conftest.er1 >conftest.err
4509: rm -f conftest.er1
4510: cat conftest.err >&5
4511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512: (exit $ac_status); } >/dev/null; then
4513: if test -s conftest.err; then
1.15 paf 4514: ac_cpp_err=$ac_c_preproc_warn_flag
1.18 paf 4515: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 4516: else
4517: ac_cpp_err=
4518: fi
4519: else
4520: ac_cpp_err=yes
4521: fi
4522: if test -z "$ac_cpp_err"; then
4523: :
4524: else
4525: echo "$as_me: failed program was:" >&5
4526: sed 's/^/| /' conftest.$ac_ext >&5
4527:
4528: # Broken: fails on valid input.
4529: continue
4530: fi
4531: rm -f conftest.err conftest.$ac_ext
4532:
4533: # OK, works on sane cases. Now check whether non-existent headers
4534: # can be detected and how.
4535: cat >conftest.$ac_ext <<_ACEOF
4536: /* confdefs.h. */
4537: _ACEOF
4538: cat confdefs.h >>conftest.$ac_ext
4539: cat >>conftest.$ac_ext <<_ACEOF
4540: /* end confdefs.h. */
4541: #include <ac_nonexistent.h>
4542: _ACEOF
4543: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4544: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4545: ac_status=$?
4546: grep -v '^ *+' conftest.er1 >conftest.err
4547: rm -f conftest.er1
4548: cat conftest.err >&5
4549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550: (exit $ac_status); } >/dev/null; then
4551: if test -s conftest.err; then
1.15 paf 4552: ac_cpp_err=$ac_c_preproc_warn_flag
1.18 paf 4553: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 4554: else
4555: ac_cpp_err=
4556: fi
4557: else
4558: ac_cpp_err=yes
4559: fi
4560: if test -z "$ac_cpp_err"; then
4561: # Broken: success on invalid input.
4562: continue
1.1 parser 4563: else
1.11 paf 4564: echo "$as_me: failed program was:" >&5
4565: sed 's/^/| /' conftest.$ac_ext >&5
4566:
4567: # Passes both tests.
4568: ac_preproc_ok=:
4569: break
1.1 parser 4570: fi
1.11 paf 4571: rm -f conftest.err conftest.$ac_ext
4572:
4573: done
4574: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4575: rm -f conftest.err conftest.$ac_ext
4576: if $ac_preproc_ok; then
4577: break
1.1 parser 4578: fi
4579:
1.11 paf 4580: done
1.15 paf 4581: ac_cv_prog_CPP=$CPP
1.11 paf 4582:
4583: fi
1.15 paf 4584: CPP=$ac_cv_prog_CPP
1.11 paf 4585: else
1.15 paf 4586: ac_cv_prog_CPP=$CPP
1.11 paf 4587: fi
1.15 paf 4588: echo "$as_me:$LINENO: result: $CPP" >&5
4589: echo "${ECHO_T}$CPP" >&6
1.11 paf 4590: ac_preproc_ok=false
1.15 paf 4591: for ac_c_preproc_warn_flag in '' yes
1.11 paf 4592: do
4593: # Use a header file that comes with gcc, so configuring glibc
4594: # with a fresh cross-compiler works.
4595: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4596: # <limits.h> exists even on freestanding compilers.
4597: # On the NeXT, cc -E runs the code through the compiler's parser,
4598: # not just through cpp. "Syntax error" is here to catch this case.
4599: cat >conftest.$ac_ext <<_ACEOF
4600: /* confdefs.h. */
4601: _ACEOF
4602: cat confdefs.h >>conftest.$ac_ext
4603: cat >>conftest.$ac_ext <<_ACEOF
4604: /* end confdefs.h. */
4605: #ifdef __STDC__
4606: # include <limits.h>
4607: #else
4608: # include <assert.h>
4609: #endif
1.18 paf 4610: Syntax error
1.11 paf 4611: _ACEOF
4612: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4613: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4614: ac_status=$?
4615: grep -v '^ *+' conftest.er1 >conftest.err
4616: rm -f conftest.er1
4617: cat conftest.err >&5
4618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619: (exit $ac_status); } >/dev/null; then
4620: if test -s conftest.err; then
1.15 paf 4621: ac_cpp_err=$ac_c_preproc_warn_flag
1.18 paf 4622: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 4623: else
4624: ac_cpp_err=
1.1 parser 4625: fi
1.11 paf 4626: else
4627: ac_cpp_err=yes
4628: fi
4629: if test -z "$ac_cpp_err"; then
4630: :
4631: else
4632: echo "$as_me: failed program was:" >&5
4633: sed 's/^/| /' conftest.$ac_ext >&5
4634:
4635: # Broken: fails on valid input.
4636: continue
4637: fi
4638: rm -f conftest.err conftest.$ac_ext
1.1 parser 4639:
1.11 paf 4640: # OK, works on sane cases. Now check whether non-existent headers
4641: # can be detected and how.
4642: cat >conftest.$ac_ext <<_ACEOF
4643: /* confdefs.h. */
4644: _ACEOF
4645: cat confdefs.h >>conftest.$ac_ext
4646: cat >>conftest.$ac_ext <<_ACEOF
4647: /* end confdefs.h. */
4648: #include <ac_nonexistent.h>
4649: _ACEOF
4650: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4651: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4652: ac_status=$?
4653: grep -v '^ *+' conftest.er1 >conftest.err
4654: rm -f conftest.er1
4655: cat conftest.err >&5
4656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657: (exit $ac_status); } >/dev/null; then
4658: if test -s conftest.err; then
1.15 paf 4659: ac_cpp_err=$ac_c_preproc_warn_flag
1.18 paf 4660: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 4661: else
4662: ac_cpp_err=
4663: fi
4664: else
4665: ac_cpp_err=yes
4666: fi
4667: if test -z "$ac_cpp_err"; then
4668: # Broken: success on invalid input.
4669: continue
1.7 paf 4670: else
1.11 paf 4671: echo "$as_me: failed program was:" >&5
4672: sed 's/^/| /' conftest.$ac_ext >&5
4673:
4674: # Passes both tests.
4675: ac_preproc_ok=:
4676: break
4677: fi
4678: rm -f conftest.err conftest.$ac_ext
4679:
4680: done
4681: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682: rm -f conftest.err conftest.$ac_ext
4683: if $ac_preproc_ok; then
4684: :
1.7 paf 4685: else
1.15 paf 4686: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.11 paf 4687: See \`config.log' for more details." >&5
1.15 paf 4688: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.11 paf 4689: See \`config.log' for more details." >&2;}
4690: { (exit 1); exit 1; }; }
4691: fi
4692:
1.15 paf 4693: ac_ext=c
4694: ac_cpp='$CPP $CPPFLAGS'
4695: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 4698:
4699:
4700: echo "$as_me:$LINENO: checking for egrep" >&5
4701: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4702: if test "${ac_cv_prog_egrep+set}" = set; then
4703: echo $ECHO_N "(cached) $ECHO_C" >&6
4704: else
4705: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4706: then ac_cv_prog_egrep='grep -E'
4707: else ac_cv_prog_egrep='egrep'
1.7 paf 4708: fi
4709: fi
1.11 paf 4710: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4711: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4712: EGREP=$ac_cv_prog_egrep
4713:
4714:
4715: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4716: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4717: if test "${ac_cv_header_stdc+set}" = set; then
4718: echo $ECHO_N "(cached) $ECHO_C" >&6
4719: else
4720: cat >conftest.$ac_ext <<_ACEOF
4721: /* confdefs.h. */
4722: _ACEOF
4723: cat confdefs.h >>conftest.$ac_ext
4724: cat >>conftest.$ac_ext <<_ACEOF
4725: /* end confdefs.h. */
4726: #include <stdlib.h>
4727: #include <stdarg.h>
4728: #include <string.h>
4729: #include <float.h>
4730:
4731: int
4732: main ()
4733: {
4734:
4735: ;
4736: return 0;
4737: }
4738: _ACEOF
4739: rm -f conftest.$ac_objext
4740: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 4741: (eval $ac_compile) 2>conftest.er1
1.11 paf 4742: ac_status=$?
1.18 paf 4743: grep -v '^ *+' conftest.er1 >conftest.err
4744: rm -f conftest.er1
4745: cat conftest.err >&5
1.11 paf 4746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747: (exit $ac_status); } &&
1.18 paf 4748: { ac_try='test -z "$ac_c_werror_flag"
4749: || test ! -s conftest.err'
4750: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751: (eval $ac_try) 2>&5
4752: ac_status=$?
4753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754: (exit $ac_status); }; } &&
4755: { ac_try='test -s conftest.$ac_objext'
1.11 paf 4756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757: (eval $ac_try) 2>&5
4758: ac_status=$?
4759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760: (exit $ac_status); }; }; then
4761: ac_cv_header_stdc=yes
4762: else
4763: echo "$as_me: failed program was:" >&5
4764: sed 's/^/| /' conftest.$ac_ext >&5
4765:
4766: ac_cv_header_stdc=no
4767: fi
1.18 paf 4768: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 4769:
4770: if test $ac_cv_header_stdc = yes; then
4771: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4772: cat >conftest.$ac_ext <<_ACEOF
4773: /* confdefs.h. */
4774: _ACEOF
4775: cat confdefs.h >>conftest.$ac_ext
4776: cat >>conftest.$ac_ext <<_ACEOF
4777: /* end confdefs.h. */
4778: #include <string.h>
4779:
4780: _ACEOF
4781: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782: $EGREP "memchr" >/dev/null 2>&1; then
4783: :
4784: else
4785: ac_cv_header_stdc=no
4786: fi
4787: rm -f conftest*
4788:
1.7 paf 4789: fi
1.11 paf 4790:
4791: if test $ac_cv_header_stdc = yes; then
4792: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4793: cat >conftest.$ac_ext <<_ACEOF
4794: /* confdefs.h. */
4795: _ACEOF
4796: cat confdefs.h >>conftest.$ac_ext
4797: cat >>conftest.$ac_ext <<_ACEOF
4798: /* end confdefs.h. */
4799: #include <stdlib.h>
4800:
4801: _ACEOF
4802: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803: $EGREP "free" >/dev/null 2>&1; then
4804: :
1.7 paf 4805: else
1.11 paf 4806: ac_cv_header_stdc=no
4807: fi
4808: rm -f conftest*
4809:
1.7 paf 4810: fi
4811:
1.11 paf 4812: if test $ac_cv_header_stdc = yes; then
4813: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4814: if test "$cross_compiling" = yes; then
4815: :
4816: else
4817: cat >conftest.$ac_ext <<_ACEOF
4818: /* confdefs.h. */
4819: _ACEOF
4820: cat confdefs.h >>conftest.$ac_ext
4821: cat >>conftest.$ac_ext <<_ACEOF
4822: /* end confdefs.h. */
4823: #include <ctype.h>
4824: #if ((' ' & 0x0FF) == 0x020)
4825: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4826: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4827: #else
4828: # define ISLOWER(c) \
1.18 paf 4829: (('a' <= (c) && (c) <= 'i') \
4830: || ('j' <= (c) && (c) <= 'r') \
4831: || ('s' <= (c) && (c) <= 'z'))
1.11 paf 4832: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4833: #endif
1.7 paf 4834:
1.11 paf 4835: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4836: int
4837: main ()
4838: {
4839: int i;
4840: for (i = 0; i < 256; i++)
4841: if (XOR (islower (i), ISLOWER (i))
1.18 paf 4842: || toupper (i) != TOUPPER (i))
1.11 paf 4843: exit(2);
4844: exit (0);
4845: }
4846: _ACEOF
4847: rm -f conftest$ac_exeext
4848: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849: (eval $ac_link) 2>&5
4850: ac_status=$?
4851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4853: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854: (eval $ac_try) 2>&5
4855: ac_status=$?
4856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857: (exit $ac_status); }; }; then
4858: :
1.7 paf 4859: else
1.11 paf 4860: echo "$as_me: program exited with status $ac_status" >&5
4861: echo "$as_me: failed program was:" >&5
4862: sed 's/^/| /' conftest.$ac_ext >&5
4863:
4864: ( exit $ac_status )
4865: ac_cv_header_stdc=no
4866: fi
1.18 paf 4867: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.11 paf 4868: fi
4869: fi
4870: fi
4871: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4872: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4873: if test $ac_cv_header_stdc = yes; then
4874:
4875: cat >>confdefs.h <<\_ACEOF
4876: #define STDC_HEADERS 1
4877: _ACEOF
4878:
4879: fi
4880:
4881: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4882:
4883:
4884:
4885:
4886:
4887:
4888:
4889:
4890:
4891: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.18 paf 4892: inttypes.h stdint.h unistd.h
1.11 paf 4893: do
4894: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4895: echo "$as_me:$LINENO: checking for $ac_header" >&5
4896: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4897: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4898: echo $ECHO_N "(cached) $ECHO_C" >&6
4899: else
4900: cat >conftest.$ac_ext <<_ACEOF
4901: /* confdefs.h. */
4902: _ACEOF
4903: cat confdefs.h >>conftest.$ac_ext
4904: cat >>conftest.$ac_ext <<_ACEOF
4905: /* end confdefs.h. */
4906: $ac_includes_default
4907:
4908: #include <$ac_header>
4909: _ACEOF
4910: rm -f conftest.$ac_objext
4911: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 4912: (eval $ac_compile) 2>conftest.er1
1.11 paf 4913: ac_status=$?
1.18 paf 4914: grep -v '^ *+' conftest.er1 >conftest.err
4915: rm -f conftest.er1
4916: cat conftest.err >&5
1.11 paf 4917: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918: (exit $ac_status); } &&
1.18 paf 4919: { ac_try='test -z "$ac_c_werror_flag"
4920: || test ! -s conftest.err'
4921: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922: (eval $ac_try) 2>&5
4923: ac_status=$?
4924: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925: (exit $ac_status); }; } &&
4926: { ac_try='test -s conftest.$ac_objext'
1.11 paf 4927: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928: (eval $ac_try) 2>&5
4929: ac_status=$?
4930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931: (exit $ac_status); }; }; then
4932: eval "$as_ac_Header=yes"
4933: else
4934: echo "$as_me: failed program was:" >&5
4935: sed 's/^/| /' conftest.$ac_ext >&5
4936:
4937: eval "$as_ac_Header=no"
4938: fi
1.18 paf 4939: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 4940: fi
4941: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4942: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4943: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944: cat >>confdefs.h <<_ACEOF
4945: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4946: _ACEOF
4947:
4948: fi
4949:
4950: done
4951:
4952:
4953:
4954: for ac_header in dlfcn.h
4955: do
4956: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4957: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4958: echo "$as_me:$LINENO: checking for $ac_header" >&5
4959: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4960: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4961: echo $ECHO_N "(cached) $ECHO_C" >&6
4962: fi
4963: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4964: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4965: else
4966: # Is the header compilable?
4967: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4968: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4969: cat >conftest.$ac_ext <<_ACEOF
4970: /* confdefs.h. */
4971: _ACEOF
4972: cat confdefs.h >>conftest.$ac_ext
4973: cat >>conftest.$ac_ext <<_ACEOF
4974: /* end confdefs.h. */
4975: $ac_includes_default
4976: #include <$ac_header>
4977: _ACEOF
4978: rm -f conftest.$ac_objext
4979: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 4980: (eval $ac_compile) 2>conftest.er1
1.11 paf 4981: ac_status=$?
1.18 paf 4982: grep -v '^ *+' conftest.er1 >conftest.err
4983: rm -f conftest.er1
4984: cat conftest.err >&5
1.11 paf 4985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986: (exit $ac_status); } &&
1.18 paf 4987: { ac_try='test -z "$ac_c_werror_flag"
4988: || test ! -s conftest.err'
4989: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990: (eval $ac_try) 2>&5
4991: ac_status=$?
4992: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993: (exit $ac_status); }; } &&
4994: { ac_try='test -s conftest.$ac_objext'
1.11 paf 4995: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996: (eval $ac_try) 2>&5
4997: ac_status=$?
4998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999: (exit $ac_status); }; }; then
5000: ac_header_compiler=yes
5001: else
5002: echo "$as_me: failed program was:" >&5
5003: sed 's/^/| /' conftest.$ac_ext >&5
5004:
5005: ac_header_compiler=no
5006: fi
1.18 paf 5007: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 5008: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5009: echo "${ECHO_T}$ac_header_compiler" >&6
5010:
5011: # Is the header present?
5012: echo "$as_me:$LINENO: checking $ac_header presence" >&5
5013: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5014: cat >conftest.$ac_ext <<_ACEOF
5015: /* confdefs.h. */
5016: _ACEOF
5017: cat confdefs.h >>conftest.$ac_ext
5018: cat >>conftest.$ac_ext <<_ACEOF
5019: /* end confdefs.h. */
5020: #include <$ac_header>
5021: _ACEOF
5022: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024: ac_status=$?
5025: grep -v '^ *+' conftest.er1 >conftest.err
5026: rm -f conftest.er1
5027: cat conftest.err >&5
5028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029: (exit $ac_status); } >/dev/null; then
5030: if test -s conftest.err; then
1.15 paf 5031: ac_cpp_err=$ac_c_preproc_warn_flag
1.18 paf 5032: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 5033: else
5034: ac_cpp_err=
5035: fi
1.7 paf 5036: else
1.11 paf 5037: ac_cpp_err=yes
1.7 paf 5038: fi
1.11 paf 5039: if test -z "$ac_cpp_err"; then
5040: ac_header_preproc=yes
5041: else
5042: echo "$as_me: failed program was:" >&5
5043: sed 's/^/| /' conftest.$ac_ext >&5
5044:
5045: ac_header_preproc=no
5046: fi
5047: rm -f conftest.err conftest.$ac_ext
5048: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5049: echo "${ECHO_T}$ac_header_preproc" >&6
5050:
5051: # So? What about this header?
1.18 paf 5052: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5053: yes:no: )
1.11 paf 5054: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5055: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.18 paf 5056: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5057: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5058: ac_header_preproc=yes
1.11 paf 5059: ;;
1.18 paf 5060: no:yes:* )
1.11 paf 5061: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5062: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.18 paf 5063: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5064: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5065: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5066: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5067: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5068: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.11 paf 5069: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5070: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.18 paf 5071: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5072: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.11 paf 5073: (
5074: cat <<\_ASBOX
1.18 paf 5075: ## ------------------------------------------ ##
5076: ## Report this to the AC_PACKAGE_NAME lists. ##
5077: ## ------------------------------------------ ##
1.11 paf 5078: _ASBOX
5079: ) |
5080: sed "s/^/$as_me: WARNING: /" >&2
5081: ;;
5082: esac
5083: echo "$as_me:$LINENO: checking for $ac_header" >&5
5084: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5085: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5086: echo $ECHO_N "(cached) $ECHO_C" >&6
5087: else
1.18 paf 5088: eval "$as_ac_Header=\$ac_header_preproc"
1.11 paf 5089: fi
5090: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5091: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5092:
5093: fi
5094: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5095: cat >>confdefs.h <<_ACEOF
5096: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5097: _ACEOF
5098:
5099: fi
5100:
5101: done
5102:
5103:
5104:
5105:
5106:
5107:
5108: # Only perform the check for file, if the check method requires it
5109: case $deplibs_check_method in
5110: file_magic*)
5111: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5112: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5113: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5114: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5115: echo $ECHO_N "(cached) $ECHO_C" >&6
5116: else
5117: case $MAGIC_CMD in
5118: /*)
5119: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5120: ;;
5121: ?:/*)
5122: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5123: ;;
5124: *)
5125: ac_save_MAGIC_CMD="$MAGIC_CMD"
5126: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5127: ac_dummy="/usr/bin:$PATH"
5128: for ac_dir in $ac_dummy; do
5129: test -z "$ac_dir" && ac_dir=.
5130: if test -f $ac_dir/${ac_tool_prefix}file; then
5131: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5132: if test -n "$file_magic_test_file"; then
5133: case $deplibs_check_method in
5134: "file_magic "*)
5135: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5136: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5137: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5138: egrep "$file_magic_regex" > /dev/null; then
5139: :
5140: else
5141: cat <<EOF 1>&2
5142:
5143: *** Warning: the command libtool uses to detect shared libraries,
5144: *** $file_magic_cmd, produces output that libtool cannot recognize.
5145: *** The result is that libtool may fail to recognize shared libraries
5146: *** as such. This will affect the creation of libtool libraries that
5147: *** depend on shared libraries, but programs linked with such libtool
5148: *** libraries will work regardless of this problem. Nevertheless, you
5149: *** may want to report the problem to your system manager and/or to
5150: *** bug-libtool@gnu.org
5151:
5152: EOF
5153: fi ;;
5154: esac
5155: fi
5156: break
5157: fi
5158: done
5159: IFS="$ac_save_ifs"
5160: MAGIC_CMD="$ac_save_MAGIC_CMD"
5161: ;;
5162: esac
5163: fi
5164:
5165: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5166: if test -n "$MAGIC_CMD"; then
5167: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5168: echo "${ECHO_T}$MAGIC_CMD" >&6
5169: else
5170: echo "$as_me:$LINENO: result: no" >&5
5171: echo "${ECHO_T}no" >&6
5172: fi
5173:
5174: if test -z "$lt_cv_path_MAGIC_CMD"; then
5175: if test -n "$ac_tool_prefix"; then
5176: echo "$as_me:$LINENO: checking for file" >&5
5177: echo $ECHO_N "checking for file... $ECHO_C" >&6
5178: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5179: echo $ECHO_N "(cached) $ECHO_C" >&6
5180: else
5181: case $MAGIC_CMD in
5182: /*)
5183: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5184: ;;
5185: ?:/*)
5186: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5187: ;;
5188: *)
5189: ac_save_MAGIC_CMD="$MAGIC_CMD"
5190: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5191: ac_dummy="/usr/bin:$PATH"
5192: for ac_dir in $ac_dummy; do
5193: test -z "$ac_dir" && ac_dir=.
5194: if test -f $ac_dir/file; then
5195: lt_cv_path_MAGIC_CMD="$ac_dir/file"
5196: if test -n "$file_magic_test_file"; then
5197: case $deplibs_check_method in
5198: "file_magic "*)
5199: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5200: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5201: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5202: egrep "$file_magic_regex" > /dev/null; then
5203: :
5204: else
5205: cat <<EOF 1>&2
5206:
5207: *** Warning: the command libtool uses to detect shared libraries,
5208: *** $file_magic_cmd, produces output that libtool cannot recognize.
5209: *** The result is that libtool may fail to recognize shared libraries
5210: *** as such. This will affect the creation of libtool libraries that
5211: *** depend on shared libraries, but programs linked with such libtool
5212: *** libraries will work regardless of this problem. Nevertheless, you
5213: *** may want to report the problem to your system manager and/or to
5214: *** bug-libtool@gnu.org
5215:
5216: EOF
5217: fi ;;
5218: esac
5219: fi
5220: break
5221: fi
5222: done
5223: IFS="$ac_save_ifs"
5224: MAGIC_CMD="$ac_save_MAGIC_CMD"
5225: ;;
5226: esac
5227: fi
5228:
5229: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5230: if test -n "$MAGIC_CMD"; then
5231: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5232: echo "${ECHO_T}$MAGIC_CMD" >&6
5233: else
5234: echo "$as_me:$LINENO: result: no" >&5
5235: echo "${ECHO_T}no" >&6
5236: fi
5237:
5238: else
5239: MAGIC_CMD=:
5240: fi
5241: fi
5242:
5243: fi
5244: ;;
5245: esac
5246:
5247: if test -n "$ac_tool_prefix"; then
5248: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5249: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5250: echo "$as_me:$LINENO: checking for $ac_word" >&5
5251: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252: if test "${ac_cv_prog_RANLIB+set}" = set; then
5253: echo $ECHO_N "(cached) $ECHO_C" >&6
5254: else
5255: if test -n "$RANLIB"; then
5256: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5257: else
5258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259: for as_dir in $PATH
5260: do
5261: IFS=$as_save_IFS
5262: test -z "$as_dir" && as_dir=.
5263: for ac_exec_ext in '' $ac_executable_extensions; do
5264: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5266: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267: break 2
5268: fi
5269: done
5270: done
5271:
5272: fi
5273: fi
5274: RANLIB=$ac_cv_prog_RANLIB
5275: if test -n "$RANLIB"; then
5276: echo "$as_me:$LINENO: result: $RANLIB" >&5
5277: echo "${ECHO_T}$RANLIB" >&6
5278: else
5279: echo "$as_me:$LINENO: result: no" >&5
5280: echo "${ECHO_T}no" >&6
5281: fi
5282:
5283: fi
5284: if test -z "$ac_cv_prog_RANLIB"; then
5285: ac_ct_RANLIB=$RANLIB
5286: # Extract the first word of "ranlib", so it can be a program name with args.
5287: set dummy ranlib; ac_word=$2
5288: echo "$as_me:$LINENO: checking for $ac_word" >&5
5289: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5291: echo $ECHO_N "(cached) $ECHO_C" >&6
5292: else
5293: if test -n "$ac_ct_RANLIB"; then
5294: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5295: else
5296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297: for as_dir in $PATH
5298: do
5299: IFS=$as_save_IFS
5300: test -z "$as_dir" && as_dir=.
5301: for ac_exec_ext in '' $ac_executable_extensions; do
5302: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303: ac_cv_prog_ac_ct_RANLIB="ranlib"
5304: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305: break 2
5306: fi
5307: done
5308: done
5309:
5310: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5311: fi
5312: fi
5313: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5314: if test -n "$ac_ct_RANLIB"; then
5315: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5316: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5317: else
5318: echo "$as_me:$LINENO: result: no" >&5
5319: echo "${ECHO_T}no" >&6
5320: fi
5321:
5322: RANLIB=$ac_ct_RANLIB
5323: else
5324: RANLIB="$ac_cv_prog_RANLIB"
5325: fi
5326:
5327: if test -n "$ac_tool_prefix"; then
5328: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5329: set dummy ${ac_tool_prefix}strip; ac_word=$2
5330: echo "$as_me:$LINENO: checking for $ac_word" >&5
5331: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332: if test "${ac_cv_prog_STRIP+set}" = set; then
5333: echo $ECHO_N "(cached) $ECHO_C" >&6
5334: else
5335: if test -n "$STRIP"; then
5336: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5337: else
5338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339: for as_dir in $PATH
5340: do
5341: IFS=$as_save_IFS
5342: test -z "$as_dir" && as_dir=.
5343: for ac_exec_ext in '' $ac_executable_extensions; do
5344: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5346: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347: break 2
5348: fi
5349: done
5350: done
5351:
5352: fi
5353: fi
5354: STRIP=$ac_cv_prog_STRIP
5355: if test -n "$STRIP"; then
5356: echo "$as_me:$LINENO: result: $STRIP" >&5
5357: echo "${ECHO_T}$STRIP" >&6
5358: else
5359: echo "$as_me:$LINENO: result: no" >&5
5360: echo "${ECHO_T}no" >&6
5361: fi
5362:
5363: fi
5364: if test -z "$ac_cv_prog_STRIP"; then
5365: ac_ct_STRIP=$STRIP
5366: # Extract the first word of "strip", so it can be a program name with args.
5367: set dummy strip; ac_word=$2
5368: echo "$as_me:$LINENO: checking for $ac_word" >&5
5369: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5371: echo $ECHO_N "(cached) $ECHO_C" >&6
5372: else
5373: if test -n "$ac_ct_STRIP"; then
5374: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5375: else
5376: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377: for as_dir in $PATH
5378: do
5379: IFS=$as_save_IFS
5380: test -z "$as_dir" && as_dir=.
5381: for ac_exec_ext in '' $ac_executable_extensions; do
5382: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383: ac_cv_prog_ac_ct_STRIP="strip"
5384: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385: break 2
5386: fi
5387: done
5388: done
5389:
5390: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5391: fi
5392: fi
5393: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5394: if test -n "$ac_ct_STRIP"; then
5395: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5396: echo "${ECHO_T}$ac_ct_STRIP" >&6
5397: else
5398: echo "$as_me:$LINENO: result: no" >&5
5399: echo "${ECHO_T}no" >&6
5400: fi
5401:
5402: STRIP=$ac_ct_STRIP
5403: else
5404: STRIP="$ac_cv_prog_STRIP"
5405: fi
5406:
5407:
5408: enable_dlopen=no
5409: enable_win32_dll=no
5410:
5411: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5412: if test "${enable_libtool_lock+set}" = set; then
5413: enableval="$enable_libtool_lock"
5414:
5415: fi;
5416: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5417:
5418: # Some flags need to be propagated to the compiler or linker for good
5419: # libtool support.
5420: case $host in
5421: *-*-irix6*)
5422: # Find out which ABI we are using.
1.18 paf 5423: echo '#line 5423 "configure"' > conftest.$ac_ext
1.11 paf 5424: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425: (eval $ac_compile) 2>&5
5426: ac_status=$?
5427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428: (exit $ac_status); }; then
5429: case `/usr/bin/file conftest.$ac_objext` in
5430: *32-bit*)
5431: LD="${LD-ld} -32"
5432: ;;
5433: *N32*)
5434: LD="${LD-ld} -n32"
5435: ;;
5436: *64-bit*)
5437: LD="${LD-ld} -64"
5438: ;;
5439: esac
5440: fi
5441: rm -rf conftest*
5442: ;;
5443:
5444: *-*-sco3.2v5*)
5445: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5446: SAVE_CFLAGS="$CFLAGS"
5447: CFLAGS="$CFLAGS -belf"
5448: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5449: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5450: if test "${lt_cv_cc_needs_belf+set}" = set; then
5451: echo $ECHO_N "(cached) $ECHO_C" >&6
5452: else
5453:
5454:
5455: ac_ext=c
5456: ac_cpp='$CPP $CPPFLAGS'
5457: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5458: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5459: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460:
5461: cat >conftest.$ac_ext <<_ACEOF
5462: /* confdefs.h. */
5463: _ACEOF
5464: cat confdefs.h >>conftest.$ac_ext
5465: cat >>conftest.$ac_ext <<_ACEOF
5466: /* end confdefs.h. */
5467:
5468: int
5469: main ()
5470: {
5471:
5472: ;
5473: return 0;
5474: }
5475: _ACEOF
5476: rm -f conftest.$ac_objext conftest$ac_exeext
5477: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 5478: (eval $ac_link) 2>conftest.er1
1.11 paf 5479: ac_status=$?
1.18 paf 5480: grep -v '^ *+' conftest.er1 >conftest.err
5481: rm -f conftest.er1
5482: cat conftest.err >&5
1.11 paf 5483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484: (exit $ac_status); } &&
1.18 paf 5485: { ac_try='test -z "$ac_c_werror_flag"
5486: || test ! -s conftest.err'
5487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488: (eval $ac_try) 2>&5
5489: ac_status=$?
5490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491: (exit $ac_status); }; } &&
5492: { ac_try='test -s conftest$ac_exeext'
1.11 paf 5493: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494: (eval $ac_try) 2>&5
5495: ac_status=$?
5496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497: (exit $ac_status); }; }; then
5498: lt_cv_cc_needs_belf=yes
5499: else
5500: echo "$as_me: failed program was:" >&5
5501: sed 's/^/| /' conftest.$ac_ext >&5
5502:
5503: lt_cv_cc_needs_belf=no
5504: fi
1.18 paf 5505: rm -f conftest.err conftest.$ac_objext \
5506: conftest$ac_exeext conftest.$ac_ext
1.15 paf 5507: ac_ext=c
5508: ac_cpp='$CPP $CPPFLAGS'
5509: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 5512:
5513: fi
5514: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5515: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5516: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5517: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5518: CFLAGS="$SAVE_CFLAGS"
5519: fi
5520: ;;
5521:
5522:
5523: esac
5524:
5525: # Sed substitution that helps us do robust quoting. It backslashifies
5526: # metacharacters that are still active within double-quoted strings.
5527: Xsed='sed -e s/^X//'
5528: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5529:
5530: # Same as above, but do not quote variable references.
5531: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5532:
5533: # Sed substitution to delay expansion of an escaped shell variable in a
5534: # double_quote_subst'ed string.
5535: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5536:
5537: # Constants:
5538: rm="rm -f"
5539:
5540: # Global variables:
5541: default_ofile=libtool
5542: can_build_shared=yes
5543:
5544: # All known linkers require a `.a' archive for static linking (except M$VC,
5545: # which needs '.lib').
5546: libext=a
5547: ltmain="$ac_aux_dir/ltmain.sh"
5548: ofile="$default_ofile"
5549: with_gnu_ld="$lt_cv_prog_gnu_ld"
5550: need_locks="$enable_libtool_lock"
5551:
5552: old_CC="$CC"
5553: old_CFLAGS="$CFLAGS"
5554:
5555: # Set sane defaults for various variables
5556: test -z "$AR" && AR=ar
5557: test -z "$AR_FLAGS" && AR_FLAGS=cru
5558: test -z "$AS" && AS=as
5559: test -z "$CC" && CC=cc
5560: test -z "$DLLTOOL" && DLLTOOL=dlltool
5561: test -z "$LD" && LD=ld
5562: test -z "$LN_S" && LN_S="ln -s"
5563: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5564: test -z "$NM" && NM=nm
5565: test -z "$OBJDUMP" && OBJDUMP=objdump
5566: test -z "$RANLIB" && RANLIB=:
5567: test -z "$STRIP" && STRIP=:
5568: test -z "$ac_objext" && ac_objext=o
5569:
5570: if test x"$host" != x"$build"; then
5571: ac_tool_prefix=${host_alias}-
5572: else
5573: ac_tool_prefix=
5574: fi
5575:
5576: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5577: case $host_os in
5578: linux-gnu*) ;;
5579: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5580: esac
5581:
5582: case $host_os in
5583: aix3*)
5584: # AIX sometimes has problems with the GCC collect2 program. For some
5585: # reason, if we set the COLLECT_NAMES environment variable, the problems
5586: # vanish in a puff of smoke.
5587: if test "X${COLLECT_NAMES+set}" != Xset; then
5588: COLLECT_NAMES=
5589: export COLLECT_NAMES
5590: fi
5591: ;;
5592: esac
5593:
5594: # Determine commands to create old-style static archives.
5595: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5596: old_postinstall_cmds='chmod 644 $oldlib'
5597: old_postuninstall_cmds=
5598:
5599: if test -n "$RANLIB"; then
5600: case $host_os in
5601: openbsd*)
5602: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5603: ;;
5604: *)
5605: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5606: ;;
5607: esac
5608: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5609: fi
5610:
5611: # Allow CC to be a program name with arguments.
5612: set dummy $CC
5613: compiler="$2"
5614:
1.18 paf 5615: ## FIXME: this should be a separate macro
5616: ##
1.11 paf 5617: echo "$as_me:$LINENO: checking for objdir" >&5
5618: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5619: rm -f .libs 2>/dev/null
5620: mkdir .libs 2>/dev/null
5621: if test -d .libs; then
5622: objdir=.libs
5623: else
5624: # MS-DOS does not allow filenames that begin with a dot.
5625: objdir=_libs
5626: fi
5627: rmdir .libs 2>/dev/null
5628: echo "$as_me:$LINENO: result: $objdir" >&5
5629: echo "${ECHO_T}$objdir" >&6
1.18 paf 5630: ##
5631: ## END FIXME
1.11 paf 5632:
5633:
1.18 paf 5634: ## FIXME: this should be a separate macro
5635: ##
1.11 paf 5636:
5637: # Check whether --with-pic or --without-pic was given.
5638: if test "${with_pic+set}" = set; then
5639: withval="$with_pic"
5640: pic_mode="$withval"
5641: else
5642: pic_mode=default
5643: fi;
5644: test -z "$pic_mode" && pic_mode=default
5645:
5646: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5647: # in isolation, and that seeing it set (from the cache) indicates that
5648: # the associated values are set (in the cache) correctly too.
5649: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5650: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5651: if test "${lt_cv_prog_cc_pic+set}" = set; then
5652: echo $ECHO_N "(cached) $ECHO_C" >&6
5653: else
5654: lt_cv_prog_cc_pic=
5655: lt_cv_prog_cc_shlib=
5656: lt_cv_prog_cc_wl=
5657: lt_cv_prog_cc_static=
5658: lt_cv_prog_cc_no_builtin=
5659: lt_cv_prog_cc_can_build_shared=$can_build_shared
5660:
5661: if test "$GCC" = yes; then
5662: lt_cv_prog_cc_wl='-Wl,'
5663: lt_cv_prog_cc_static='-static'
5664:
5665: case $host_os in
5666: aix*)
5667: # Below there is a dirty hack to force normal static linking with -ldl
5668: # The problem is because libdl dynamically linked with both libc and
5669: # libC (AIX C++ library), which obviously doesn't included in libraries
5670: # list by gcc. This cause undefined symbols with -static flags.
5671: # This hack allows C programs to be linked with "-static -ldl", but
5672: # not sure about C++ programs.
5673: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5674: ;;
5675: amigaos*)
5676: # FIXME: we need at least 68020 code to build shared libraries, but
5677: # adding the `-m68020' flag to GCC prevents building anything better,
5678: # like `-m68040'.
5679: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5680: ;;
5681: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5682: # PIC is the default for these OSes.
5683: ;;
5684: darwin* | rhapsody*)
5685: # PIC is the default on this platform
5686: # Common symbols not allowed in MH_DYLIB files
5687: lt_cv_prog_cc_pic='-fno-common'
5688: ;;
5689: cygwin* | mingw* | pw32* | os2*)
5690: # This hack is so that the source file can tell whether it is being
5691: # built for inclusion in a dll (and should export symbols for example).
5692: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5693: ;;
5694: sysv4*MP*)
5695: if test -d /usr/nec; then
5696: lt_cv_prog_cc_pic=-Kconform_pic
5697: fi
5698: ;;
5699: *)
5700: lt_cv_prog_cc_pic='-fPIC'
5701: ;;
5702: esac
5703: else
5704: # PORTME Check for PIC flags for the system compiler.
5705: case $host_os in
5706: aix3* | aix4* | aix5*)
5707: lt_cv_prog_cc_wl='-Wl,'
5708: # All AIX code is PIC.
5709: if test "$host_cpu" = ia64; then
5710: # AIX 5 now supports IA64 processor
5711: lt_cv_prog_cc_static='-Bstatic'
5712: else
5713: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5714: fi
5715: ;;
5716:
5717: hpux9* | hpux10* | hpux11*)
5718: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5719: lt_cv_prog_cc_wl='-Wl,'
5720: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5721: lt_cv_prog_cc_pic='+Z'
5722: ;;
5723:
5724: irix5* | irix6* | nonstopux*)
5725: lt_cv_prog_cc_wl='-Wl,'
5726: lt_cv_prog_cc_static='-non_shared'
5727: # PIC (with -KPIC) is the default.
5728: ;;
5729:
5730: cygwin* | mingw* | pw32* | os2*)
5731: # This hack is so that the source file can tell whether it is being
5732: # built for inclusion in a dll (and should export symbols for example).
5733: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5734: ;;
5735:
5736: newsos6)
5737: lt_cv_prog_cc_pic='-KPIC'
5738: lt_cv_prog_cc_static='-Bstatic'
5739: ;;
5740:
5741: osf3* | osf4* | osf5*)
5742: # All OSF/1 code is PIC.
5743: lt_cv_prog_cc_wl='-Wl,'
5744: lt_cv_prog_cc_static='-non_shared'
5745: ;;
5746:
5747: sco3.2v5*)
5748: lt_cv_prog_cc_pic='-Kpic'
5749: lt_cv_prog_cc_static='-dn'
5750: lt_cv_prog_cc_shlib='-belf'
5751: ;;
5752:
5753: solaris*)
5754: lt_cv_prog_cc_pic='-KPIC'
5755: lt_cv_prog_cc_static='-Bstatic'
5756: lt_cv_prog_cc_wl='-Wl,'
5757: ;;
5758:
5759: sunos4*)
5760: lt_cv_prog_cc_pic='-PIC'
5761: lt_cv_prog_cc_static='-Bstatic'
5762: lt_cv_prog_cc_wl='-Qoption ld '
5763: ;;
5764:
5765: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5766: lt_cv_prog_cc_pic='-KPIC'
5767: lt_cv_prog_cc_static='-Bstatic'
5768: lt_cv_prog_cc_wl='-Wl,'
5769: ;;
5770:
5771: uts4*)
5772: lt_cv_prog_cc_pic='-pic'
5773: lt_cv_prog_cc_static='-Bstatic'
5774: ;;
5775:
5776: sysv4*MP*)
5777: if test -d /usr/nec ;then
5778: lt_cv_prog_cc_pic='-Kconform_pic'
5779: lt_cv_prog_cc_static='-Bstatic'
5780: fi
5781: ;;
5782:
5783: *)
5784: lt_cv_prog_cc_can_build_shared=no
5785: ;;
5786: esac
5787: fi
5788:
5789: fi
5790:
5791: if test -z "$lt_cv_prog_cc_pic"; then
5792: echo "$as_me:$LINENO: result: none" >&5
5793: echo "${ECHO_T}none" >&6
5794: else
5795: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5796: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5797:
5798: # Check to make sure the pic_flag actually works.
5799: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5800: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5801: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5802: echo $ECHO_N "(cached) $ECHO_C" >&6
5803: else
5804: save_CFLAGS="$CFLAGS"
5805: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5806: cat >conftest.$ac_ext <<_ACEOF
5807: /* confdefs.h. */
5808: _ACEOF
5809: cat confdefs.h >>conftest.$ac_ext
5810: cat >>conftest.$ac_ext <<_ACEOF
5811: /* end confdefs.h. */
5812:
5813: int
5814: main ()
5815: {
5816:
5817: ;
5818: return 0;
5819: }
5820: _ACEOF
5821: rm -f conftest.$ac_objext
5822: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 5823: (eval $ac_compile) 2>conftest.er1
1.11 paf 5824: ac_status=$?
1.18 paf 5825: grep -v '^ *+' conftest.er1 >conftest.err
5826: rm -f conftest.er1
5827: cat conftest.err >&5
1.11 paf 5828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829: (exit $ac_status); } &&
1.18 paf 5830: { ac_try='test -z "$ac_c_werror_flag"
5831: || test ! -s conftest.err'
5832: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833: (eval $ac_try) 2>&5
5834: ac_status=$?
5835: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836: (exit $ac_status); }; } &&
5837: { ac_try='test -s conftest.$ac_objext'
1.11 paf 5838: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839: (eval $ac_try) 2>&5
5840: ac_status=$?
5841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842: (exit $ac_status); }; }; then
5843: case $host_os in
5844: hpux9* | hpux10* | hpux11*)
5845: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5846: # they create non-PIC objects. So, if there were any warnings, we
5847: # assume that PIC is not supported.
5848: if test -s conftest.err; then
5849: lt_cv_prog_cc_pic_works=no
5850: else
5851: lt_cv_prog_cc_pic_works=yes
5852: fi
5853: ;;
5854: *)
5855: lt_cv_prog_cc_pic_works=yes
5856: ;;
5857: esac
5858:
5859: else
5860: echo "$as_me: failed program was:" >&5
5861: sed 's/^/| /' conftest.$ac_ext >&5
5862:
5863: lt_cv_prog_cc_pic_works=no
5864:
5865: fi
1.18 paf 5866: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 5867: CFLAGS="$save_CFLAGS"
5868:
5869: fi
5870:
5871:
5872: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5873: lt_cv_prog_cc_pic=
5874: lt_cv_prog_cc_can_build_shared=no
5875: else
5876: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5877: fi
5878:
5879: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5880: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5881: fi
1.18 paf 5882: ##
5883: ## END FIXME
1.11 paf 5884:
5885: # Check for any special shared library compilation flags.
5886: if test -n "$lt_cv_prog_cc_shlib"; then
5887: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5888: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5889: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5890: else
5891: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5892: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5893: lt_cv_prog_cc_can_build_shared=no
5894: fi
5895: fi
5896:
1.18 paf 5897: ## FIXME: this should be a separate macro
5898: ##
1.11 paf 5899: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5900: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5901: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5902: echo $ECHO_N "(cached) $ECHO_C" >&6
5903: else
5904: lt_cv_prog_cc_static_works=no
5905: save_LDFLAGS="$LDFLAGS"
5906: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5907: cat >conftest.$ac_ext <<_ACEOF
5908: /* confdefs.h. */
5909: _ACEOF
5910: cat confdefs.h >>conftest.$ac_ext
5911: cat >>conftest.$ac_ext <<_ACEOF
5912: /* end confdefs.h. */
5913:
5914: int
5915: main ()
5916: {
5917:
5918: ;
5919: return 0;
5920: }
5921: _ACEOF
5922: rm -f conftest.$ac_objext conftest$ac_exeext
5923: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 5924: (eval $ac_link) 2>conftest.er1
1.11 paf 5925: ac_status=$?
1.18 paf 5926: grep -v '^ *+' conftest.er1 >conftest.err
5927: rm -f conftest.er1
5928: cat conftest.err >&5
1.11 paf 5929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930: (exit $ac_status); } &&
1.18 paf 5931: { ac_try='test -z "$ac_c_werror_flag"
5932: || test ! -s conftest.err'
5933: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934: (eval $ac_try) 2>&5
5935: ac_status=$?
5936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937: (exit $ac_status); }; } &&
5938: { ac_try='test -s conftest$ac_exeext'
1.11 paf 5939: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940: (eval $ac_try) 2>&5
5941: ac_status=$?
5942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943: (exit $ac_status); }; }; then
5944: lt_cv_prog_cc_static_works=yes
5945: else
5946: echo "$as_me: failed program was:" >&5
5947: sed 's/^/| /' conftest.$ac_ext >&5
5948:
5949: fi
1.18 paf 5950: rm -f conftest.err conftest.$ac_objext \
5951: conftest$ac_exeext conftest.$ac_ext
1.11 paf 5952: LDFLAGS="$save_LDFLAGS"
5953:
5954: fi
5955:
5956:
5957: # Belt *and* braces to stop my trousers falling down:
5958: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5959: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5960: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5961:
5962: pic_flag="$lt_cv_prog_cc_pic"
5963: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5964: wl="$lt_cv_prog_cc_wl"
5965: link_static_flag="$lt_cv_prog_cc_static"
5966: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5967: can_build_shared="$lt_cv_prog_cc_can_build_shared"
1.18 paf 5968: ##
5969: ## END FIXME
1.11 paf 5970:
5971:
1.18 paf 5972: ## FIXME: this should be a separate macro
5973: ##
1.11 paf 5974: # Check to see if options -o and -c are simultaneously supported by compiler
5975: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5976: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5977: if test "${lt_cv_compiler_c_o+set}" = set; then
5978: echo $ECHO_N "(cached) $ECHO_C" >&6
5979: else
5980:
5981: $rm -r conftest 2>/dev/null
5982: mkdir conftest
5983: cd conftest
5984: echo "int some_variable = 0;" > conftest.$ac_ext
5985: mkdir out
5986: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5987: # that will create temporary files in the current directory regardless of
5988: # the output directory. Thus, making CWD read-only will cause this test
5989: # to fail, enabling locking or at least warning the user not to do parallel
5990: # builds.
5991: chmod -w .
5992: save_CFLAGS="$CFLAGS"
5993: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5994: compiler_c_o=no
1.18 paf 5995: if { (eval echo configure:5995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1.11 paf 5996: # The compiler can only warn and ignore the option if not recognized
5997: # So say no if there are warnings
5998: if test -s out/conftest.err; then
5999: lt_cv_compiler_c_o=no
6000: else
6001: lt_cv_compiler_c_o=yes
6002: fi
6003: else
6004: # Append any errors to the config.log.
6005: cat out/conftest.err 1>&5
6006: lt_cv_compiler_c_o=no
6007: fi
6008: CFLAGS="$save_CFLAGS"
6009: chmod u+w .
6010: $rm conftest* out/*
6011: rmdir out
6012: cd ..
6013: rmdir conftest
6014: $rm -r conftest 2>/dev/null
6015:
6016: fi
6017:
6018: compiler_c_o=$lt_cv_compiler_c_o
6019: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6020: echo "${ECHO_T}$compiler_c_o" >&6
6021:
6022: if test x"$compiler_c_o" = x"yes"; then
6023: # Check to see if we can write to a .lo
6024: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6025: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6026: if test "${lt_cv_compiler_o_lo+set}" = set; then
6027: echo $ECHO_N "(cached) $ECHO_C" >&6
6028: else
6029:
6030: lt_cv_compiler_o_lo=no
6031: save_CFLAGS="$CFLAGS"
6032: CFLAGS="$CFLAGS -c -o conftest.lo"
6033: save_objext="$ac_objext"
6034: ac_objext=lo
6035: cat >conftest.$ac_ext <<_ACEOF
6036: /* confdefs.h. */
6037: _ACEOF
6038: cat confdefs.h >>conftest.$ac_ext
6039: cat >>conftest.$ac_ext <<_ACEOF
6040: /* end confdefs.h. */
6041:
6042: int
6043: main ()
6044: {
6045: int some_variable = 0;
6046: ;
6047: return 0;
6048: }
6049: _ACEOF
6050: rm -f conftest.$ac_objext
6051: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 6052: (eval $ac_compile) 2>conftest.er1
1.11 paf 6053: ac_status=$?
1.18 paf 6054: grep -v '^ *+' conftest.er1 >conftest.err
6055: rm -f conftest.er1
6056: cat conftest.err >&5
1.11 paf 6057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058: (exit $ac_status); } &&
1.18 paf 6059: { ac_try='test -z "$ac_c_werror_flag"
6060: || test ! -s conftest.err'
6061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062: (eval $ac_try) 2>&5
6063: ac_status=$?
6064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065: (exit $ac_status); }; } &&
6066: { ac_try='test -s conftest.$ac_objext'
1.11 paf 6067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068: (eval $ac_try) 2>&5
6069: ac_status=$?
6070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071: (exit $ac_status); }; }; then
6072: # The compiler can only warn and ignore the option if not recognized
6073: # So say no if there are warnings
6074: if test -s conftest.err; then
6075: lt_cv_compiler_o_lo=no
6076: else
6077: lt_cv_compiler_o_lo=yes
6078: fi
6079:
6080: else
6081: echo "$as_me: failed program was:" >&5
6082: sed 's/^/| /' conftest.$ac_ext >&5
6083:
6084: fi
1.18 paf 6085: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 6086: ac_objext="$save_objext"
6087: CFLAGS="$save_CFLAGS"
6088:
6089: fi
6090:
6091: compiler_o_lo=$lt_cv_compiler_o_lo
6092: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6093: echo "${ECHO_T}$compiler_o_lo" >&6
6094: else
6095: compiler_o_lo=no
6096: fi
1.18 paf 6097: ##
6098: ## END FIXME
1.11 paf 6099:
1.18 paf 6100: ## FIXME: this should be a separate macro
6101: ##
1.11 paf 6102: # Check to see if we can do hard links to lock some files if needed
6103: hard_links="nottested"
6104: if test "$compiler_c_o" = no && test "$need_locks" != no; then
6105: # do not overwrite the value of need_locks provided by the user
6106: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6107: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6108: hard_links=yes
6109: $rm conftest*
6110: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6111: touch conftest.a
6112: ln conftest.a conftest.b 2>&5 || hard_links=no
6113: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6114: echo "$as_me:$LINENO: result: $hard_links" >&5
6115: echo "${ECHO_T}$hard_links" >&6
6116: if test "$hard_links" = no; then
6117: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6118: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6119: need_locks=warn
6120: fi
6121: else
6122: need_locks=no
6123: fi
1.18 paf 6124: ##
6125: ## END FIXME
1.11 paf 6126:
1.18 paf 6127: ## FIXME: this should be a separate macro
6128: ##
1.11 paf 6129: if test "$GCC" = yes; then
6130: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6131: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6132: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6133: echo "int some_variable = 0;" > conftest.$ac_ext
6134: save_CFLAGS="$CFLAGS"
6135: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6136: compiler_rtti_exceptions=no
6137: cat >conftest.$ac_ext <<_ACEOF
6138: /* confdefs.h. */
6139: _ACEOF
6140: cat confdefs.h >>conftest.$ac_ext
6141: cat >>conftest.$ac_ext <<_ACEOF
6142: /* end confdefs.h. */
6143:
6144: int
6145: main ()
6146: {
6147: int some_variable = 0;
6148: ;
6149: return 0;
6150: }
6151: _ACEOF
6152: rm -f conftest.$ac_objext
6153: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 6154: (eval $ac_compile) 2>conftest.er1
1.11 paf 6155: ac_status=$?
1.18 paf 6156: grep -v '^ *+' conftest.er1 >conftest.err
6157: rm -f conftest.er1
6158: cat conftest.err >&5
1.11 paf 6159: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160: (exit $ac_status); } &&
1.18 paf 6161: { ac_try='test -z "$ac_c_werror_flag"
6162: || test ! -s conftest.err'
6163: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164: (eval $ac_try) 2>&5
6165: ac_status=$?
6166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167: (exit $ac_status); }; } &&
6168: { ac_try='test -s conftest.$ac_objext'
1.11 paf 6169: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170: (eval $ac_try) 2>&5
6171: ac_status=$?
6172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173: (exit $ac_status); }; }; then
6174: # The compiler can only warn and ignore the option if not recognized
6175: # So say no if there are warnings
6176: if test -s conftest.err; then
6177: compiler_rtti_exceptions=no
6178: else
6179: compiler_rtti_exceptions=yes
6180: fi
6181:
6182: else
6183: echo "$as_me: failed program was:" >&5
6184: sed 's/^/| /' conftest.$ac_ext >&5
6185:
6186: fi
1.18 paf 6187: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 6188: CFLAGS="$save_CFLAGS"
6189: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6190: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6191:
6192: if test "$compiler_rtti_exceptions" = "yes"; then
6193: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6194: else
6195: no_builtin_flag=' -fno-builtin'
6196: fi
6197: fi
1.18 paf 6198: ##
6199: ## END FIXME
1.11 paf 6200:
1.18 paf 6201: ## FIXME: this should be a separate macro
6202: ##
1.11 paf 6203: # See if the linker supports building shared libraries.
6204: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6205: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6206:
6207: allow_undefined_flag=
6208: no_undefined_flag=
6209: need_lib_prefix=unknown
6210: need_version=unknown
6211: # when you set need_version to no, make sure it does not cause -set_version
6212: # flags to be left without arguments
6213: archive_cmds=
6214: archive_expsym_cmds=
6215: old_archive_from_new_cmds=
6216: old_archive_from_expsyms_cmds=
6217: export_dynamic_flag_spec=
6218: whole_archive_flag_spec=
6219: thread_safe_flag_spec=
6220: hardcode_into_libs=no
6221: hardcode_libdir_flag_spec=
6222: hardcode_libdir_separator=
6223: hardcode_direct=no
6224: hardcode_minus_L=no
6225: hardcode_shlibpath_var=unsupported
6226: runpath_var=
6227: link_all_deplibs=unknown
6228: always_export_symbols=no
6229: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6230: # include_expsyms should be a list of space-separated symbols to be *always*
6231: # included in the symbol list
6232: include_expsyms=
6233: # exclude_expsyms can be an egrep regular expression of symbols to exclude
6234: # it will be wrapped by ` (' and `)$', so one must not match beginning or
6235: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6236: # as well as any symbol that contains `d'.
6237: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6238: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6239: # platforms (ab)use it in PIC code, but their linkers get confused if
6240: # the symbol is explicitly referenced. Since portable code cannot
6241: # rely on this symbol name, it's probably fine to never include it in
6242: # preloaded symbol tables.
6243: extract_expsyms_cmds=
6244:
6245: case $host_os in
6246: cygwin* | mingw* | pw32*)
6247: # FIXME: the MSVC++ port hasn't been tested in a loooong time
6248: # When not using gcc, we currently assume that we are using
6249: # Microsoft Visual C++.
6250: if test "$GCC" != yes; then
6251: with_gnu_ld=no
6252: fi
6253: ;;
6254: openbsd*)
6255: with_gnu_ld=no
6256: ;;
6257: esac
6258:
6259: ld_shlibs=yes
6260: if test "$with_gnu_ld" = yes; then
6261: # If archive_cmds runs LD, not CC, wlarc should be empty
6262: wlarc='${wl}'
6263:
6264: # See if GNU ld supports shared libraries.
6265: case $host_os in
6266: aix3* | aix4* | aix5*)
6267: # On AIX, the GNU linker is very broken
6268: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6269: ld_shlibs=no
6270: cat <<EOF 1>&2
6271:
6272: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6273: *** to be unable to reliably create shared libraries on AIX.
6274: *** Therefore, libtool is disabling shared libraries support. If you
6275: *** really care for shared libraries, you may want to modify your PATH
6276: *** so that a non-GNU linker is found, and then restart.
6277:
6278: EOF
6279: ;;
6280:
6281: amigaos*)
6282: 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)'
6283: hardcode_libdir_flag_spec='-L$libdir'
6284: hardcode_minus_L=yes
6285:
6286: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6287: # that the semantics of dynamic libraries on AmigaOS, at least up
6288: # to version 4, is to share data among multiple programs linked
6289: # with the same dynamic library. Since this doesn't match the
6290: # behavior of shared libraries on other platforms, we can use
6291: # them.
6292: ld_shlibs=no
6293: ;;
6294:
6295: beos*)
6296: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6297: allow_undefined_flag=unsupported
6298: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6299: # support --undefined. This deserves some investigation. FIXME
6300: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6301: else
6302: ld_shlibs=no
6303: fi
6304: ;;
6305:
6306: cygwin* | mingw* | pw32*)
6307: # hardcode_libdir_flag_spec is actually meaningless, as there is
6308: # no search path for DLLs.
6309: hardcode_libdir_flag_spec='-L$libdir'
6310: allow_undefined_flag=unsupported
6311: always_export_symbols=yes
6312:
6313: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6314: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6315: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6316: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6317: else $CC -o impgen impgen.c ; fi)~
6318: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6319:
6320: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6321:
6322: # cygwin and mingw dlls have different entry points and sets of symbols
6323: # to exclude.
6324: # FIXME: what about values for MSVC?
6325: dll_entry=__cygwin_dll_entry@12
6326: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6327: case $host_os in
6328: mingw*)
6329: # mingw values
6330: dll_entry=_DllMainCRTStartup@12
6331: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6332: ;;
6333: esac
6334:
6335: # mingw and cygwin differ, and it's simplest to just exclude the union
6336: # of the two symbol sets.
6337: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6338:
6339: # recent cygwin and mingw systems supply a stub DllMain which the user
6340: # can override, but on older systems we have to supply one (in ltdll.c)
6341: if test "x$lt_cv_need_dllmain" = "xyes"; then
6342: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6343: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6344: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6345: else
6346: ltdll_obj=
6347: ltdll_cmds=
6348: fi
6349:
6350: # Extract the symbol export list from an `--export-all' def file,
6351: # then regenerate the def file from the symbol export list, so that
6352: # the compiled dll only exports the symbol export list.
6353: # Be careful not to strip the DATA tag left be newer dlltools.
6354: export_symbols_cmds="$ltdll_cmds"'
6355: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6356: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6357:
6358: # If the export-symbols file already is a .def file (1st line
6359: # is EXPORTS), use it as is.
6360: # If DATA tags from a recent dlltool are present, honour them!
6361: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6362: cp $export_symbols $output_objdir/$soname-def;
6363: else
6364: echo EXPORTS > $output_objdir/$soname-def;
6365: _lt_hint=1;
6366: cat $export_symbols | while read symbol; do
6367: set dummy \$symbol;
6368: case \$# in
6369: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6370: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6371: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6372: esac;
6373: _lt_hint=`expr 1 + \$_lt_hint`;
6374: done;
6375: fi~
6376: '"$ltdll_cmds"'
6377: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6378: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6379: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6380: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6381: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6382: ;;
6383:
6384: netbsd*)
6385: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6386: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6387: wlarc=
6388: else
6389: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6390: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6391: fi
6392: ;;
6393:
6394: solaris* | sysv5*)
6395: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6396: ld_shlibs=no
6397: cat <<EOF 1>&2
6398:
6399: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6400: *** create shared libraries on Solaris systems. Therefore, libtool
6401: *** is disabling shared libraries support. We urge you to upgrade GNU
6402: *** binutils to release 2.9.1 or newer. Another option is to modify
6403: *** your PATH or compiler configuration so that the native linker is
6404: *** used, and then restart.
6405:
6406: EOF
6407: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6408: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6409: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6410: else
6411: ld_shlibs=no
6412: fi
6413: ;;
6414:
6415: sunos4*)
6416: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6417: wlarc=
6418: hardcode_direct=yes
6419: hardcode_shlibpath_var=no
6420: ;;
6421:
6422: *)
6423: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6424: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6425: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6426: else
6427: ld_shlibs=no
6428: fi
6429: ;;
6430: esac
6431:
6432: if test "$ld_shlibs" = yes; then
6433: runpath_var=LD_RUN_PATH
6434: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6435: export_dynamic_flag_spec='${wl}--export-dynamic'
6436: case $host_os in
6437: cygwin* | mingw* | pw32*)
6438: # dlltool doesn't understand --whole-archive et. al.
6439: whole_archive_flag_spec=
6440: ;;
6441: *)
6442: # ancient GNU ld didn't support --whole-archive et. al.
6443: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6444: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6445: else
6446: whole_archive_flag_spec=
6447: fi
6448: ;;
6449: esac
6450: fi
6451: else
6452: # PORTME fill in a description of your system's linker (not GNU ld)
6453: case $host_os in
6454: aix3*)
6455: allow_undefined_flag=unsupported
6456: always_export_symbols=yes
6457: 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'
6458: # Note: this linker hardcodes the directories in LIBPATH if there
6459: # are no directories specified by -L.
6460: hardcode_minus_L=yes
6461: if test "$GCC" = yes && test -z "$link_static_flag"; then
6462: # Neither direct hardcoding nor static linking is supported with a
6463: # broken collect2.
6464: hardcode_direct=unsupported
6465: fi
6466: ;;
6467:
6468: aix4* | aix5*)
6469: if test "$host_cpu" = ia64; then
6470: # On IA64, the linker does run time linking by default, so we don't
6471: # have to do anything special.
6472: aix_use_runtimelinking=no
6473: exp_sym_flag='-Bexport'
6474: no_entry_flag=""
6475: else
6476: aix_use_runtimelinking=no
6477:
6478: # Test if we are trying to use run time linking or normal
6479: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6480: # need to do runtime linking.
6481: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6482: for ld_flag in $LDFLAGS; do
6483: case $ld_flag in
6484: *-brtl*)
6485: aix_use_runtimelinking=yes
6486: break
6487: ;;
6488: esac
6489: done
6490: esac
6491:
6492: exp_sym_flag='-bexport'
6493: no_entry_flag='-bnoentry'
6494: fi
6495:
6496: # When large executables or shared objects are built, AIX ld can
6497: # have problems creating the table of contents. If linking a library
6498: # or program results in "error TOC overflow" add -mminimal-toc to
6499: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6500: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6501:
6502: hardcode_direct=yes
6503: archive_cmds=''
6504: hardcode_libdir_separator=':'
6505: if test "$GCC" = yes; then
6506: case $host_os in aix4.[012]|aix4.[012].*)
6507: collect2name=`${CC} -print-prog-name=collect2`
6508: if test -f "$collect2name" && \
6509: strings "$collect2name" | grep resolve_lib_name >/dev/null
6510: then
6511: # We have reworked collect2
6512: hardcode_direct=yes
6513: else
6514: # We have old collect2
6515: hardcode_direct=unsupported
6516: # It fails to find uninstalled libraries when the uninstalled
6517: # path is not listed in the libpath. Setting hardcode_minus_L
6518: # to unsupported forces relinking
6519: hardcode_minus_L=yes
6520: hardcode_libdir_flag_spec='-L$libdir'
6521: hardcode_libdir_separator=
6522: fi
6523: esac
6524:
6525: shared_flag='-shared'
6526: else
6527: # not using gcc
6528: if test "$host_cpu" = ia64; then
6529: shared_flag='${wl}-G'
6530: else
6531: if test "$aix_use_runtimelinking" = yes; then
6532: shared_flag='${wl}-G'
6533: else
6534: shared_flag='${wl}-bM:SRE'
6535: fi
6536: fi
6537: fi
6538:
6539: # It seems that -bexpall can do strange things, so it is better to
6540: # generate a list of symbols to export.
6541: always_export_symbols=yes
6542: if test "$aix_use_runtimelinking" = yes; then
6543: # Warning - without using the other runtime loading flags (-brtl),
6544: # -berok will link without error, but may produce a broken library.
6545: allow_undefined_flag='-berok'
6546: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6547: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6548: else
6549: if test "$host_cpu" = ia64; then
6550: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6551: allow_undefined_flag="-z nodefs"
6552: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6553: else
6554: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6555: # Warning - without using the other run time loading flags,
6556: # -berok will link without error, but may produce a broken library.
6557: allow_undefined_flag='${wl}-berok'
6558: # This is a bit strange, but is similar to how AIX traditionally builds
6559: # it's shared libraries.
6560: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6561: fi
6562: fi
6563: ;;
6564:
6565: amigaos*)
6566: 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)'
6567: hardcode_libdir_flag_spec='-L$libdir'
6568: hardcode_minus_L=yes
6569: # see comment about different semantics on the GNU ld section
6570: ld_shlibs=no
6571: ;;
6572:
6573: cygwin* | mingw* | pw32*)
6574: # When not using gcc, we currently assume that we are using
6575: # Microsoft Visual C++.
6576: # hardcode_libdir_flag_spec is actually meaningless, as there is
6577: # no search path for DLLs.
6578: hardcode_libdir_flag_spec=' '
6579: allow_undefined_flag=unsupported
6580: # Tell ltmain to make .lib files, not .a files.
6581: libext=lib
6582: # FIXME: Setting linknames here is a bad hack.
6583: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6584: # The linker will automatically build a .lib file if we build a DLL.
6585: old_archive_from_new_cmds='true'
6586: # FIXME: Should let the user specify the lib program.
6587: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6588: fix_srcfile_path='`cygpath -w "$srcfile"`'
6589: ;;
6590:
6591: darwin* | rhapsody*)
6592: case "$host_os" in
6593: rhapsody* | darwin1.[012])
6594: allow_undefined_flag='-undefined suppress'
6595: ;;
6596: *) # Darwin 1.3 on
6597: allow_undefined_flag='-flat_namespace -undefined suppress'
6598: ;;
6599: esac
6600: # FIXME: Relying on posixy $() will cause problems for
6601: # cross-compilation, but unfortunately the echo tests do not
6602: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6603: # `"' quotes if we put them in here... so don't!
6604: archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6605: # We need to add '_' to the symbols in $export_symbols first
6606: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6607: hardcode_direct=yes
6608: hardcode_shlibpath_var=no
6609: whole_archive_flag_spec='-all_load $convenience'
6610: ;;
6611:
6612: freebsd1*)
6613: ld_shlibs=no
6614: ;;
6615:
6616: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6617: # support. Future versions do this automatically, but an explicit c++rt0.o
6618: # does not break anything, and helps significantly (at the cost of a little
6619: # extra space).
6620: freebsd2.2*)
6621: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6622: hardcode_libdir_flag_spec='-R$libdir'
6623: hardcode_direct=yes
6624: hardcode_shlibpath_var=no
6625: ;;
6626:
6627: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6628: freebsd2*)
6629: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6630: hardcode_direct=yes
6631: hardcode_minus_L=yes
6632: hardcode_shlibpath_var=no
6633: ;;
6634:
6635: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6636: freebsd*)
6637: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6638: hardcode_libdir_flag_spec='-R$libdir'
6639: hardcode_direct=yes
6640: hardcode_shlibpath_var=no
6641: ;;
6642:
6643: hpux9* | hpux10* | hpux11*)
6644: case $host_os in
6645: hpux9*) 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' ;;
6646: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6647: esac
6648: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6649: hardcode_libdir_separator=:
6650: hardcode_direct=yes
6651: hardcode_minus_L=yes # Not in the search PATH, but as the default
6652: # location of the library.
6653: export_dynamic_flag_spec='${wl}-E'
6654: ;;
6655:
6656: irix5* | irix6* | nonstopux*)
6657: if test "$GCC" = yes; then
6658: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6659: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6660: else
6661: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6662: hardcode_libdir_flag_spec='-rpath $libdir'
6663: fi
6664: hardcode_libdir_separator=:
6665: link_all_deplibs=yes
6666: ;;
6667:
6668: netbsd*)
6669: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6670: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6671: else
6672: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6673: fi
6674: hardcode_libdir_flag_spec='-R$libdir'
6675: hardcode_direct=yes
6676: hardcode_shlibpath_var=no
6677: ;;
6678:
6679: newsos6)
6680: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6681: hardcode_direct=yes
6682: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6683: hardcode_libdir_separator=:
6684: hardcode_shlibpath_var=no
6685: ;;
6686:
6687: openbsd*)
6688: hardcode_direct=yes
6689: hardcode_shlibpath_var=no
6690: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6691: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6692: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6693: export_dynamic_flag_spec='${wl}-E'
6694: else
6695: case "$host_os" in
6696: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6697: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6698: hardcode_libdir_flag_spec='-R$libdir'
6699: ;;
6700: *)
6701: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6702: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6703: ;;
6704: esac
6705: fi
6706: ;;
6707:
6708: os2*)
6709: hardcode_libdir_flag_spec='-L$libdir'
6710: hardcode_minus_L=yes
6711: allow_undefined_flag=unsupported
6712: 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'
6713: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6714: ;;
6715:
6716: osf3*)
6717: if test "$GCC" = yes; then
6718: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6719: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6720: else
6721: allow_undefined_flag=' -expect_unresolved \*'
6722: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6723: fi
6724: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6725: hardcode_libdir_separator=:
6726: ;;
6727:
6728: osf4* | osf5*) # as osf3* with the addition of -msym flag
6729: if test "$GCC" = yes; then
6730: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6731: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6732: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6733: else
6734: allow_undefined_flag=' -expect_unresolved \*'
6735: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6736: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6737: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6738:
6739: #Both c and cxx compiler support -rpath directly
6740: hardcode_libdir_flag_spec='-rpath $libdir'
6741: fi
6742: hardcode_libdir_separator=:
6743: ;;
6744:
6745: sco3.2v5*)
6746: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6747: hardcode_shlibpath_var=no
6748: runpath_var=LD_RUN_PATH
6749: hardcode_runpath_var=yes
6750: export_dynamic_flag_spec='${wl}-Bexport'
6751: ;;
6752:
6753: solaris*)
6754: # gcc --version < 3.0 without binutils cannot create self contained
6755: # shared libraries reliably, requiring libgcc.a to resolve some of
6756: # the object symbols generated in some cases. Libraries that use
6757: # assert need libgcc.a to resolve __eprintf, for example. Linking
6758: # a copy of libgcc.a into every shared library to guarantee resolving
6759: # such symbols causes other problems: According to Tim Van Holder
6760: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6761: # (to the application) exception stack for one thing.
6762: no_undefined_flag=' -z defs'
6763: if test "$GCC" = yes; then
6764: case `$CC --version 2>/dev/null` in
6765: [12].*)
6766: cat <<EOF 1>&2
6767:
6768: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6769: *** create self contained shared libraries on Solaris systems, without
6770: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6771: *** -no-undefined support, which will at least allow you to build shared
6772: *** libraries. However, you may find that when you link such libraries
6773: *** into an application without using GCC, you have to manually add
6774: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6775: *** upgrade to a newer version of GCC. Another option is to rebuild your
6776: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6777:
6778: EOF
6779: no_undefined_flag=
6780: ;;
6781: esac
6782: fi
6783: # $CC -shared without GNU ld will not create a library from C++
6784: # object files and a static libstdc++, better avoid it by now
6785: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6787: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6788: hardcode_libdir_flag_spec='-R$libdir'
6789: hardcode_shlibpath_var=no
6790: case $host_os in
6791: solaris2.[0-5] | solaris2.[0-5].*) ;;
6792: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6793: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6794: esac
6795: link_all_deplibs=yes
6796: ;;
6797:
6798: sunos4*)
6799: if test "x$host_vendor" = xsequent; then
6800: # Use $CC to link under sequent, because it throws in some extra .o
6801: # files that make .init and .fini sections work.
6802: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6803: else
6804: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6805: fi
6806: hardcode_libdir_flag_spec='-L$libdir'
6807: hardcode_direct=yes
6808: hardcode_minus_L=yes
6809: hardcode_shlibpath_var=no
6810: ;;
6811:
6812: sysv4)
6813: case $host_vendor in
6814: sni)
6815: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6816: hardcode_direct=yes # is this really true???
6817: ;;
6818: siemens)
6819: ## LD is ld it makes a PLAMLIB
6820: ## CC just makes a GrossModule.
6821: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6822: reload_cmds='$CC -r -o $output$reload_objs'
6823: hardcode_direct=no
6824: ;;
6825: motorola)
6826: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6827: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6828: ;;
6829: esac
6830: runpath_var='LD_RUN_PATH'
6831: hardcode_shlibpath_var=no
6832: ;;
6833:
6834: sysv4.3*)
6835: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6836: hardcode_shlibpath_var=no
6837: export_dynamic_flag_spec='-Bexport'
6838: ;;
6839:
6840: sysv5*)
6841: no_undefined_flag=' -z text'
6842: # $CC -shared without GNU ld will not create a library from C++
6843: # object files and a static libstdc++, better avoid it by now
6844: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6845: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6846: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6847: hardcode_libdir_flag_spec=
6848: hardcode_shlibpath_var=no
6849: runpath_var='LD_RUN_PATH'
6850: ;;
6851:
6852: uts4*)
6853: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6854: hardcode_libdir_flag_spec='-L$libdir'
6855: hardcode_shlibpath_var=no
6856: ;;
6857:
6858: dgux*)
6859: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6860: hardcode_libdir_flag_spec='-L$libdir'
6861: hardcode_shlibpath_var=no
6862: ;;
6863:
6864: sysv4*MP*)
6865: if test -d /usr/nec; then
6866: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6867: hardcode_shlibpath_var=no
6868: runpath_var=LD_RUN_PATH
6869: hardcode_runpath_var=yes
6870: ld_shlibs=yes
6871: fi
6872: ;;
6873:
6874: sysv4.2uw2*)
6875: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6876: hardcode_direct=yes
6877: hardcode_minus_L=no
6878: hardcode_shlibpath_var=no
6879: hardcode_runpath_var=yes
6880: runpath_var=LD_RUN_PATH
6881: ;;
6882:
6883: sysv5uw7* | unixware7*)
6884: no_undefined_flag='${wl}-z ${wl}text'
6885: if test "$GCC" = yes; then
6886: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6887: else
6888: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6889: fi
6890: runpath_var='LD_RUN_PATH'
6891: hardcode_shlibpath_var=no
6892: ;;
6893:
6894: *)
6895: ld_shlibs=no
6896: ;;
6897: esac
6898: fi
6899: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6900: echo "${ECHO_T}$ld_shlibs" >&6
6901: test "$ld_shlibs" = no && can_build_shared=no
1.18 paf 6902: ##
6903: ## END FIXME
1.11 paf 6904:
1.18 paf 6905: ## FIXME: this should be a separate macro
6906: ##
1.11 paf 6907: # Check hardcoding attributes.
6908: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6909: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6910: hardcode_action=
6911: if test -n "$hardcode_libdir_flag_spec" || \
6912: test -n "$runpath_var"; then
6913:
6914: # We can hardcode non-existant directories.
6915: if test "$hardcode_direct" != no &&
6916: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6917: # have to relink, otherwise we might link with an installed library
6918: # when we should be linking with a yet-to-be-installed one
6919: ## test "$hardcode_shlibpath_var" != no &&
6920: test "$hardcode_minus_L" != no; then
6921: # Linking always hardcodes the temporary library directory.
6922: hardcode_action=relink
6923: else
6924: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6925: hardcode_action=immediate
6926: fi
6927: else
6928: # We cannot hardcode anything, or else we can only hardcode existing
6929: # directories.
6930: hardcode_action=unsupported
6931: fi
6932: echo "$as_me:$LINENO: result: $hardcode_action" >&5
6933: echo "${ECHO_T}$hardcode_action" >&6
1.18 paf 6934: ##
6935: ## END FIXME
1.11 paf 6936:
1.18 paf 6937: ## FIXME: this should be a separate macro
6938: ##
1.11 paf 6939: striplib=
6940: old_striplib=
6941: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6942: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6943: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6944: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6945: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6946: echo "$as_me:$LINENO: result: yes" >&5
6947: echo "${ECHO_T}yes" >&6
6948: else
6949: echo "$as_me:$LINENO: result: no" >&5
6950: echo "${ECHO_T}no" >&6
6951: fi
1.18 paf 6952: ##
6953: ## END FIXME
1.11 paf 6954:
6955: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6956: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6957:
1.18 paf 6958: ## FIXME: this should be a separate macro
6959: ##
1.11 paf 6960: # PORTME Fill in your ld.so characteristics
6961: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6962: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6963: library_names_spec=
6964: libname_spec='lib$name'
6965: soname_spec=
6966: postinstall_cmds=
6967: postuninstall_cmds=
6968: finish_cmds=
6969: finish_eval=
6970: shlibpath_var=
6971: shlibpath_overrides_runpath=unknown
6972: version_type=none
6973: dynamic_linker="$host_os ld.so"
6974: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6975: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6976:
6977: case $host_os in
6978: aix3*)
6979: version_type=linux
6980: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6981: shlibpath_var=LIBPATH
6982:
6983: # AIX has no versioning support, so we append a major version to the name.
6984: soname_spec='${libname}${release}.so$major'
6985: ;;
6986:
6987: aix4* | aix5*)
6988: version_type=linux
6989: need_lib_prefix=no
6990: need_version=no
6991: hardcode_into_libs=yes
6992: if test "$host_cpu" = ia64; then
6993: # AIX 5 supports IA64
6994: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6995: shlibpath_var=LD_LIBRARY_PATH
6996: else
6997: # With GCC up to 2.95.x, collect2 would create an import file
6998: # for dependence libraries. The import file would start with
6999: # the line `#! .'. This would cause the generated library to
7000: # depend on `.', always an invalid library. This was fixed in
7001: # development snapshots of GCC prior to 3.0.
7002: case $host_os in
7003: aix4 | aix4.[01] | aix4.[01].*)
7004: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7005: echo ' yes '
7006: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7007: :
7008: else
7009: can_build_shared=no
7010: fi
7011: ;;
7012: esac
7013: # AIX (on Power*) has no versioning support, so currently we can
7014: # not hardcode correct soname into executable. Probably we can
7015: # add versioning support to collect2, so additional links can
7016: # be useful in future.
7017: if test "$aix_use_runtimelinking" = yes; then
7018: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7019: # instead of lib<name>.a to let people know that these are not
7020: # typical AIX shared libraries.
7021: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7022: else
7023: # We preserve .a as extension for shared libraries through AIX4.2
7024: # and later when we are not doing run time linking.
7025: library_names_spec='${libname}${release}.a $libname.a'
7026: soname_spec='${libname}${release}.so$major'
7027: fi
7028: shlibpath_var=LIBPATH
7029: fi
7030: hardcode_into_libs=yes
7031: ;;
7032:
7033: amigaos*)
7034: library_names_spec='$libname.ixlibrary $libname.a'
7035: # Create ${libname}_ixlibrary.a entries in /sys/libs.
7036: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
7037: ;;
7038:
7039: beos*)
7040: library_names_spec='${libname}.so'
7041: dynamic_linker="$host_os ld.so"
7042: shlibpath_var=LIBRARY_PATH
7043: ;;
7044:
7045: bsdi4*)
7046: version_type=linux
7047: need_version=no
7048: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7049: soname_spec='${libname}${release}.so$major'
7050: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7051: shlibpath_var=LD_LIBRARY_PATH
7052: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7053: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7054: export_dynamic_flag_spec=-rdynamic
7055: # the default ld.so.conf also contains /usr/contrib/lib and
7056: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7057: # libtool to hard-code these into programs
7058: ;;
7059:
7060: cygwin* | mingw* | pw32*)
7061: version_type=windows
7062: need_version=no
7063: need_lib_prefix=no
7064: case $GCC,$host_os in
7065: yes,cygwin*)
7066: library_names_spec='$libname.dll.a'
7067: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7068: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7069: dldir=$destdir/`dirname \$dlpath`~
7070: test -d \$dldir || mkdir -p \$dldir~
7071: $install_prog .libs/$dlname \$dldir/$dlname'
7072: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7073: dlpath=$dir/\$dldll~
7074: $rm \$dlpath'
7075: ;;
7076: yes,mingw*)
7077: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7078: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7079: ;;
7080: yes,pw32*)
7081: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7082: ;;
7083: *)
7084: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7085: ;;
7086: esac
7087: dynamic_linker='Win32 ld.exe'
7088: # FIXME: first we should search . and the directory the executable is in
7089: shlibpath_var=PATH
7090: ;;
7091:
7092: darwin* | rhapsody*)
7093: dynamic_linker="$host_os dyld"
7094: version_type=darwin
7095: need_lib_prefix=no
7096: need_version=no
7097: # FIXME: Relying on posixy $() will cause problems for
7098: # cross-compilation, but unfortunately the echo tests do not
7099: # yet detect zsh echo's removal of \ escapes.
7100: library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7101: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7102: shlibpath_overrides_runpath=yes
7103: shlibpath_var=DYLD_LIBRARY_PATH
7104: ;;
7105:
7106: freebsd1*)
7107: dynamic_linker=no
7108: ;;
7109:
7110: freebsd*)
7111: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7112: version_type=freebsd-$objformat
7113: case $version_type in
7114: freebsd-elf*)
7115: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7116: need_version=no
7117: need_lib_prefix=no
7118: ;;
7119: freebsd-*)
7120: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7121: need_version=yes
7122: ;;
7123: esac
7124: shlibpath_var=LD_LIBRARY_PATH
7125: case $host_os in
7126: freebsd2*)
7127: shlibpath_overrides_runpath=yes
7128: ;;
7129: *)
7130: shlibpath_overrides_runpath=no
7131: hardcode_into_libs=yes
7132: ;;
7133: esac
7134: ;;
7135:
7136: gnu*)
7137: version_type=linux
7138: need_lib_prefix=no
7139: need_version=no
7140: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7141: soname_spec='${libname}${release}.so$major'
7142: shlibpath_var=LD_LIBRARY_PATH
7143: hardcode_into_libs=yes
7144: ;;
7145:
7146: hpux9* | hpux10* | hpux11*)
7147: # Give a soname corresponding to the major version so that dld.sl refuses to
7148: # link against other versions.
7149: dynamic_linker="$host_os dld.sl"
7150: version_type=sunos
7151: need_lib_prefix=no
7152: need_version=no
7153: shlibpath_var=SHLIB_PATH
7154: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7155: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7156: soname_spec='${libname}${release}.sl$major'
7157: # HP-UX runs *really* slowly unless shared libraries are mode 555.
7158: postinstall_cmds='chmod 555 $lib'
7159: ;;
7160:
7161: irix5* | irix6* | nonstopux*)
7162: case $host_os in
7163: nonstopux*) version_type=nonstopux ;;
7164: *) version_type=irix ;;
7165: esac
7166: need_lib_prefix=no
7167: need_version=no
7168: soname_spec='${libname}${release}.so$major'
7169: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7170: case $host_os in
7171: irix5* | nonstopux*)
7172: libsuff= shlibsuff=
7173: ;;
7174: *)
7175: case $LD in # libtool.m4 will add one of these switches to LD
7176: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7177: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7178: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7179: *) libsuff= shlibsuff= libmagic=never-match;;
7180: esac
7181: ;;
7182: esac
7183: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7184: shlibpath_overrides_runpath=no
7185: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7186: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7187: ;;
7188:
7189: # No shared lib support for Linux oldld, aout, or coff.
7190: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7191: dynamic_linker=no
7192: ;;
7193:
7194: # This must be Linux ELF.
7195: linux-gnu*)
7196: version_type=linux
7197: need_lib_prefix=no
7198: need_version=no
7199: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7200: soname_spec='${libname}${release}.so$major'
7201: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7202: shlibpath_var=LD_LIBRARY_PATH
7203: shlibpath_overrides_runpath=no
7204: # This implies no fast_install, which is unacceptable.
7205: # Some rework will be needed to allow for fast_install
7206: # before this can be enabled.
7207: hardcode_into_libs=yes
7208:
7209: # We used to test for /lib/ld.so.1 and disable shared libraries on
7210: # powerpc, because MkLinux only supported shared libraries with the
7211: # GNU dynamic linker. Since this was broken with cross compilers,
7212: # most powerpc-linux boxes support dynamic linking these days and
7213: # people can always --disable-shared, the test was removed, and we
7214: # assume the GNU/Linux dynamic linker is in use.
7215: dynamic_linker='GNU/Linux ld.so'
7216: ;;
7217:
7218: netbsd*)
7219: version_type=sunos
7220: need_lib_prefix=no
7221: need_version=no
7222: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7223: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7224: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7225: dynamic_linker='NetBSD (a.out) ld.so'
7226: else
7227: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7228: soname_spec='${libname}${release}.so$major'
7229: dynamic_linker='NetBSD ld.elf_so'
7230: fi
7231: shlibpath_var=LD_LIBRARY_PATH
7232: shlibpath_overrides_runpath=yes
7233: hardcode_into_libs=yes
7234: ;;
7235:
7236: newsos6)
7237: version_type=linux
7238: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7239: shlibpath_var=LD_LIBRARY_PATH
7240: shlibpath_overrides_runpath=yes
7241: ;;
7242:
7243: openbsd*)
7244: version_type=sunos
7245: need_lib_prefix=no
7246: need_version=no
7247: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7248: case "$host_os" in
7249: openbsd2.[89] | openbsd2.[89].*)
7250: shlibpath_overrides_runpath=no
7251: ;;
7252: *)
7253: shlibpath_overrides_runpath=yes
7254: ;;
7255: esac
7256: else
7257: shlibpath_overrides_runpath=yes
7258: fi
7259: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7260: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7261: shlibpath_var=LD_LIBRARY_PATH
7262: ;;
7263:
7264: os2*)
7265: libname_spec='$name'
7266: need_lib_prefix=no
7267: library_names_spec='$libname.dll $libname.a'
7268: dynamic_linker='OS/2 ld.exe'
7269: shlibpath_var=LIBPATH
7270: ;;
7271:
7272: osf3* | osf4* | osf5*)
7273: version_type=osf
7274: need_version=no
7275: soname_spec='${libname}${release}.so$major'
7276: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7277: shlibpath_var=LD_LIBRARY_PATH
7278: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7279: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7280: hardcode_into_libs=yes
7281: ;;
7282:
7283: sco3.2v5*)
7284: version_type=osf
7285: soname_spec='${libname}${release}.so$major'
7286: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7287: shlibpath_var=LD_LIBRARY_PATH
7288: ;;
7289:
7290: solaris*)
7291: version_type=linux
7292: need_lib_prefix=no
7293: need_version=no
7294: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7295: soname_spec='${libname}${release}.so$major'
7296: shlibpath_var=LD_LIBRARY_PATH
7297: shlibpath_overrides_runpath=yes
7298: hardcode_into_libs=yes
7299: # ldd complains unless libraries are executable
7300: postinstall_cmds='chmod +x $lib'
7301: ;;
7302:
7303: sunos4*)
7304: version_type=sunos
7305: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7306: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7307: shlibpath_var=LD_LIBRARY_PATH
7308: shlibpath_overrides_runpath=yes
7309: if test "$with_gnu_ld" = yes; then
7310: need_lib_prefix=no
7311: fi
7312: need_version=yes
7313: ;;
7314:
7315: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7316: version_type=linux
7317: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7318: soname_spec='${libname}${release}.so$major'
7319: shlibpath_var=LD_LIBRARY_PATH
7320: case $host_vendor in
7321: sni)
7322: shlibpath_overrides_runpath=no
7323: need_lib_prefix=no
7324: export_dynamic_flag_spec='${wl}-Blargedynsym'
7325: runpath_var=LD_RUN_PATH
7326: ;;
7327: siemens)
7328: need_lib_prefix=no
7329: ;;
7330: motorola)
7331: need_lib_prefix=no
7332: need_version=no
7333: shlibpath_overrides_runpath=no
7334: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7335: ;;
7336: esac
7337: ;;
7338:
7339: uts4*)
7340: version_type=linux
7341: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7342: soname_spec='${libname}${release}.so$major'
7343: shlibpath_var=LD_LIBRARY_PATH
7344: ;;
7345:
7346: dgux*)
7347: version_type=linux
7348: need_lib_prefix=no
7349: need_version=no
7350: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7351: soname_spec='${libname}${release}.so$major'
7352: shlibpath_var=LD_LIBRARY_PATH
7353: ;;
7354:
7355: sysv4*MP*)
7356: if test -d /usr/nec ;then
7357: version_type=linux
7358: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7359: soname_spec='$libname.so.$major'
7360: shlibpath_var=LD_LIBRARY_PATH
7361: fi
7362: ;;
7363:
7364: *)
7365: dynamic_linker=no
7366: ;;
7367: esac
7368: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7369: echo "${ECHO_T}$dynamic_linker" >&6
7370: test "$dynamic_linker" = no && can_build_shared=no
1.18 paf 7371: ##
7372: ## END FIXME
1.11 paf 7373:
1.18 paf 7374: ## FIXME: this should be a separate macro
7375: ##
1.11 paf 7376: # Report the final consequences.
7377: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7378: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7379: echo "$as_me:$LINENO: result: $can_build_shared" >&5
7380: echo "${ECHO_T}$can_build_shared" >&6
1.18 paf 7381: ##
7382: ## END FIXME
1.11 paf 7383:
1.18 paf 7384: ## FIXME: this should be a separate macro
7385: ##
1.11 paf 7386: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7387: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7388: test "$can_build_shared" = "no" && enable_shared=no
7389:
7390: # On AIX, shared libraries and static libraries use the same namespace, and
7391: # are all built from PIC.
7392: case "$host_os" in
7393: aix3*)
7394: test "$enable_shared" = yes && enable_static=no
7395: if test -n "$RANLIB"; then
7396: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7397: postinstall_cmds='$RANLIB $lib'
7398: fi
7399: ;;
7400:
7401: aix4*)
7402: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7403: test "$enable_shared" = yes && enable_static=no
7404: fi
7405: ;;
7406: esac
7407: echo "$as_me:$LINENO: result: $enable_shared" >&5
7408: echo "${ECHO_T}$enable_shared" >&6
1.18 paf 7409: ##
7410: ## END FIXME
1.11 paf 7411:
1.18 paf 7412: ## FIXME: this should be a separate macro
7413: ##
1.11 paf 7414: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7415: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7416: # Make sure either enable_shared or enable_static is yes.
7417: test "$enable_shared" = yes || enable_static=yes
7418: echo "$as_me:$LINENO: result: $enable_static" >&5
7419: echo "${ECHO_T}$enable_static" >&6
1.18 paf 7420: ##
7421: ## END FIXME
1.11 paf 7422:
7423: if test "$hardcode_action" = relink; then
7424: # Fast installation is not supported
7425: enable_fast_install=no
7426: elif test "$shlibpath_overrides_runpath" = yes ||
7427: test "$enable_shared" = no; then
7428: # Fast installation is not necessary
7429: enable_fast_install=needless
7430: fi
7431:
7432: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7433: if test "$GCC" = yes; then
7434: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7435: fi
7436:
7437: if test "x$enable_dlopen" != xyes; then
7438: enable_dlopen=unknown
7439: enable_dlopen_self=unknown
7440: enable_dlopen_self_static=unknown
7441: else
7442: lt_cv_dlopen=no
7443: lt_cv_dlopen_libs=
7444:
7445: case $host_os in
7446: beos*)
7447: lt_cv_dlopen="load_add_on"
7448: lt_cv_dlopen_libs=
7449: lt_cv_dlopen_self=yes
7450: ;;
7451:
7452: cygwin* | mingw* | pw32*)
7453: lt_cv_dlopen="LoadLibrary"
7454: lt_cv_dlopen_libs=
7455: ;;
7456:
7457: *)
7458: echo "$as_me:$LINENO: checking for shl_load" >&5
7459: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7460: if test "${ac_cv_func_shl_load+set}" = set; then
7461: echo $ECHO_N "(cached) $ECHO_C" >&6
7462: else
7463: cat >conftest.$ac_ext <<_ACEOF
7464: /* confdefs.h. */
7465: _ACEOF
7466: cat confdefs.h >>conftest.$ac_ext
7467: cat >>conftest.$ac_ext <<_ACEOF
7468: /* end confdefs.h. */
1.18 paf 7469: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7470: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7471: #define shl_load innocuous_shl_load
7472:
1.11 paf 7473: /* System header to define __stub macros and hopefully few prototypes,
7474: which can conflict with char shl_load (); below.
7475: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476: <limits.h> exists even on freestanding compilers. */
1.18 paf 7477:
1.11 paf 7478: #ifdef __STDC__
7479: # include <limits.h>
7480: #else
7481: # include <assert.h>
7482: #endif
1.18 paf 7483:
7484: #undef shl_load
7485:
1.11 paf 7486: /* Override any gcc2 internal prototype to avoid an error. */
7487: #ifdef __cplusplus
7488: extern "C"
7489: {
7490: #endif
7491: /* We use char because int might match the return type of a gcc2
7492: builtin and then its argument prototype would still apply. */
7493: char shl_load ();
7494: /* The GNU C library defines this for functions which it implements
7495: to always fail with ENOSYS. Some functions are actually named
7496: something starting with __ and the normal name is an alias. */
7497: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7498: choke me
7499: #else
7500: char (*f) () = shl_load;
7501: #endif
7502: #ifdef __cplusplus
7503: }
7504: #endif
7505:
7506: int
7507: main ()
7508: {
7509: return f != shl_load;
7510: ;
7511: return 0;
7512: }
7513: _ACEOF
7514: rm -f conftest.$ac_objext conftest$ac_exeext
7515: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 7516: (eval $ac_link) 2>conftest.er1
1.11 paf 7517: ac_status=$?
1.18 paf 7518: grep -v '^ *+' conftest.er1 >conftest.err
7519: rm -f conftest.er1
7520: cat conftest.err >&5
1.11 paf 7521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522: (exit $ac_status); } &&
1.18 paf 7523: { ac_try='test -z "$ac_c_werror_flag"
7524: || test ! -s conftest.err'
7525: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526: (eval $ac_try) 2>&5
7527: ac_status=$?
7528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529: (exit $ac_status); }; } &&
7530: { ac_try='test -s conftest$ac_exeext'
1.11 paf 7531: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532: (eval $ac_try) 2>&5
7533: ac_status=$?
7534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535: (exit $ac_status); }; }; then
7536: ac_cv_func_shl_load=yes
7537: else
7538: echo "$as_me: failed program was:" >&5
7539: sed 's/^/| /' conftest.$ac_ext >&5
7540:
7541: ac_cv_func_shl_load=no
7542: fi
1.18 paf 7543: rm -f conftest.err conftest.$ac_objext \
7544: conftest$ac_exeext conftest.$ac_ext
1.11 paf 7545: fi
7546: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7547: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7548: if test $ac_cv_func_shl_load = yes; then
7549: lt_cv_dlopen="shl_load"
7550: else
7551: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7552: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7553: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7554: echo $ECHO_N "(cached) $ECHO_C" >&6
7555: else
7556: ac_check_lib_save_LIBS=$LIBS
7557: LIBS="-ldld $LIBS"
7558: cat >conftest.$ac_ext <<_ACEOF
7559: /* confdefs.h. */
7560: _ACEOF
7561: cat confdefs.h >>conftest.$ac_ext
7562: cat >>conftest.$ac_ext <<_ACEOF
7563: /* end confdefs.h. */
7564:
7565: /* Override any gcc2 internal prototype to avoid an error. */
7566: #ifdef __cplusplus
7567: extern "C"
7568: #endif
7569: /* We use char because int might match the return type of a gcc2
7570: builtin and then its argument prototype would still apply. */
7571: char shl_load ();
7572: int
7573: main ()
7574: {
7575: shl_load ();
7576: ;
7577: return 0;
7578: }
7579: _ACEOF
7580: rm -f conftest.$ac_objext conftest$ac_exeext
7581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 7582: (eval $ac_link) 2>conftest.er1
1.11 paf 7583: ac_status=$?
1.18 paf 7584: grep -v '^ *+' conftest.er1 >conftest.err
7585: rm -f conftest.er1
7586: cat conftest.err >&5
1.11 paf 7587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588: (exit $ac_status); } &&
1.18 paf 7589: { ac_try='test -z "$ac_c_werror_flag"
7590: || test ! -s conftest.err'
7591: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592: (eval $ac_try) 2>&5
7593: ac_status=$?
7594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595: (exit $ac_status); }; } &&
7596: { ac_try='test -s conftest$ac_exeext'
1.11 paf 7597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598: (eval $ac_try) 2>&5
7599: ac_status=$?
7600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601: (exit $ac_status); }; }; then
7602: ac_cv_lib_dld_shl_load=yes
7603: else
7604: echo "$as_me: failed program was:" >&5
7605: sed 's/^/| /' conftest.$ac_ext >&5
7606:
7607: ac_cv_lib_dld_shl_load=no
7608: fi
1.18 paf 7609: rm -f conftest.err conftest.$ac_objext \
7610: conftest$ac_exeext conftest.$ac_ext
1.11 paf 7611: LIBS=$ac_check_lib_save_LIBS
7612: fi
7613: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7614: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7615: if test $ac_cv_lib_dld_shl_load = yes; then
7616: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7617: else
7618: echo "$as_me:$LINENO: checking for dlopen" >&5
7619: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7620: if test "${ac_cv_func_dlopen+set}" = set; then
7621: echo $ECHO_N "(cached) $ECHO_C" >&6
7622: else
7623: cat >conftest.$ac_ext <<_ACEOF
7624: /* confdefs.h. */
7625: _ACEOF
7626: cat confdefs.h >>conftest.$ac_ext
7627: cat >>conftest.$ac_ext <<_ACEOF
7628: /* end confdefs.h. */
1.18 paf 7629: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7630: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7631: #define dlopen innocuous_dlopen
7632:
1.11 paf 7633: /* System header to define __stub macros and hopefully few prototypes,
7634: which can conflict with char dlopen (); below.
7635: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636: <limits.h> exists even on freestanding compilers. */
1.18 paf 7637:
1.11 paf 7638: #ifdef __STDC__
7639: # include <limits.h>
7640: #else
7641: # include <assert.h>
7642: #endif
1.18 paf 7643:
7644: #undef dlopen
7645:
1.11 paf 7646: /* Override any gcc2 internal prototype to avoid an error. */
7647: #ifdef __cplusplus
7648: extern "C"
7649: {
7650: #endif
7651: /* We use char because int might match the return type of a gcc2
7652: builtin and then its argument prototype would still apply. */
7653: char dlopen ();
7654: /* The GNU C library defines this for functions which it implements
7655: to always fail with ENOSYS. Some functions are actually named
7656: something starting with __ and the normal name is an alias. */
7657: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7658: choke me
7659: #else
7660: char (*f) () = dlopen;
7661: #endif
7662: #ifdef __cplusplus
7663: }
7664: #endif
7665:
7666: int
7667: main ()
7668: {
7669: return f != dlopen;
7670: ;
7671: return 0;
7672: }
7673: _ACEOF
7674: rm -f conftest.$ac_objext conftest$ac_exeext
7675: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 7676: (eval $ac_link) 2>conftest.er1
1.11 paf 7677: ac_status=$?
1.18 paf 7678: grep -v '^ *+' conftest.er1 >conftest.err
7679: rm -f conftest.er1
7680: cat conftest.err >&5
1.11 paf 7681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682: (exit $ac_status); } &&
1.18 paf 7683: { ac_try='test -z "$ac_c_werror_flag"
7684: || test ! -s conftest.err'
7685: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686: (eval $ac_try) 2>&5
7687: ac_status=$?
7688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689: (exit $ac_status); }; } &&
7690: { ac_try='test -s conftest$ac_exeext'
1.11 paf 7691: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692: (eval $ac_try) 2>&5
7693: ac_status=$?
7694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695: (exit $ac_status); }; }; then
7696: ac_cv_func_dlopen=yes
7697: else
7698: echo "$as_me: failed program was:" >&5
7699: sed 's/^/| /' conftest.$ac_ext >&5
7700:
7701: ac_cv_func_dlopen=no
7702: fi
1.18 paf 7703: rm -f conftest.err conftest.$ac_objext \
7704: conftest$ac_exeext conftest.$ac_ext
1.11 paf 7705: fi
7706: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7707: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7708: if test $ac_cv_func_dlopen = yes; then
7709: lt_cv_dlopen="dlopen"
7710: else
7711: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7712: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7713: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7714: echo $ECHO_N "(cached) $ECHO_C" >&6
7715: else
7716: ac_check_lib_save_LIBS=$LIBS
7717: LIBS="-ldl $LIBS"
7718: cat >conftest.$ac_ext <<_ACEOF
7719: /* confdefs.h. */
7720: _ACEOF
7721: cat confdefs.h >>conftest.$ac_ext
7722: cat >>conftest.$ac_ext <<_ACEOF
7723: /* end confdefs.h. */
7724:
7725: /* Override any gcc2 internal prototype to avoid an error. */
7726: #ifdef __cplusplus
7727: extern "C"
7728: #endif
7729: /* We use char because int might match the return type of a gcc2
7730: builtin and then its argument prototype would still apply. */
7731: char dlopen ();
7732: int
7733: main ()
7734: {
7735: dlopen ();
7736: ;
7737: return 0;
7738: }
7739: _ACEOF
7740: rm -f conftest.$ac_objext conftest$ac_exeext
7741: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 7742: (eval $ac_link) 2>conftest.er1
1.11 paf 7743: ac_status=$?
1.18 paf 7744: grep -v '^ *+' conftest.er1 >conftest.err
7745: rm -f conftest.er1
7746: cat conftest.err >&5
1.11 paf 7747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748: (exit $ac_status); } &&
1.18 paf 7749: { ac_try='test -z "$ac_c_werror_flag"
7750: || test ! -s conftest.err'
7751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752: (eval $ac_try) 2>&5
7753: ac_status=$?
7754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755: (exit $ac_status); }; } &&
7756: { ac_try='test -s conftest$ac_exeext'
1.11 paf 7757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758: (eval $ac_try) 2>&5
7759: ac_status=$?
7760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761: (exit $ac_status); }; }; then
7762: ac_cv_lib_dl_dlopen=yes
7763: else
7764: echo "$as_me: failed program was:" >&5
7765: sed 's/^/| /' conftest.$ac_ext >&5
7766:
7767: ac_cv_lib_dl_dlopen=no
7768: fi
1.18 paf 7769: rm -f conftest.err conftest.$ac_objext \
7770: conftest$ac_exeext conftest.$ac_ext
1.11 paf 7771: LIBS=$ac_check_lib_save_LIBS
7772: fi
7773: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7774: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7775: if test $ac_cv_lib_dl_dlopen = yes; then
7776: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7777: else
7778: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7779: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7780: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7781: echo $ECHO_N "(cached) $ECHO_C" >&6
7782: else
7783: ac_check_lib_save_LIBS=$LIBS
7784: LIBS="-lsvld $LIBS"
7785: cat >conftest.$ac_ext <<_ACEOF
7786: /* confdefs.h. */
7787: _ACEOF
7788: cat confdefs.h >>conftest.$ac_ext
7789: cat >>conftest.$ac_ext <<_ACEOF
7790: /* end confdefs.h. */
7791:
7792: /* Override any gcc2 internal prototype to avoid an error. */
7793: #ifdef __cplusplus
7794: extern "C"
7795: #endif
7796: /* We use char because int might match the return type of a gcc2
7797: builtin and then its argument prototype would still apply. */
7798: char dlopen ();
7799: int
7800: main ()
7801: {
7802: dlopen ();
7803: ;
7804: return 0;
7805: }
7806: _ACEOF
7807: rm -f conftest.$ac_objext conftest$ac_exeext
7808: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 7809: (eval $ac_link) 2>conftest.er1
1.11 paf 7810: ac_status=$?
1.18 paf 7811: grep -v '^ *+' conftest.er1 >conftest.err
7812: rm -f conftest.er1
7813: cat conftest.err >&5
1.11 paf 7814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815: (exit $ac_status); } &&
1.18 paf 7816: { ac_try='test -z "$ac_c_werror_flag"
7817: || test ! -s conftest.err'
7818: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819: (eval $ac_try) 2>&5
7820: ac_status=$?
7821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822: (exit $ac_status); }; } &&
7823: { ac_try='test -s conftest$ac_exeext'
1.11 paf 7824: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825: (eval $ac_try) 2>&5
7826: ac_status=$?
7827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828: (exit $ac_status); }; }; then
7829: ac_cv_lib_svld_dlopen=yes
7830: else
7831: echo "$as_me: failed program was:" >&5
7832: sed 's/^/| /' conftest.$ac_ext >&5
7833:
7834: ac_cv_lib_svld_dlopen=no
7835: fi
1.18 paf 7836: rm -f conftest.err conftest.$ac_objext \
7837: conftest$ac_exeext conftest.$ac_ext
1.11 paf 7838: LIBS=$ac_check_lib_save_LIBS
7839: fi
7840: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7841: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7842: if test $ac_cv_lib_svld_dlopen = yes; then
7843: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7844: else
7845: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7846: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7847: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7848: echo $ECHO_N "(cached) $ECHO_C" >&6
7849: else
7850: ac_check_lib_save_LIBS=$LIBS
7851: LIBS="-ldld $LIBS"
7852: cat >conftest.$ac_ext <<_ACEOF
7853: /* confdefs.h. */
7854: _ACEOF
7855: cat confdefs.h >>conftest.$ac_ext
7856: cat >>conftest.$ac_ext <<_ACEOF
7857: /* end confdefs.h. */
7858:
7859: /* Override any gcc2 internal prototype to avoid an error. */
7860: #ifdef __cplusplus
7861: extern "C"
7862: #endif
7863: /* We use char because int might match the return type of a gcc2
7864: builtin and then its argument prototype would still apply. */
7865: char dld_link ();
7866: int
7867: main ()
7868: {
7869: dld_link ();
7870: ;
7871: return 0;
7872: }
7873: _ACEOF
7874: rm -f conftest.$ac_objext conftest$ac_exeext
7875: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 7876: (eval $ac_link) 2>conftest.er1
1.11 paf 7877: ac_status=$?
1.18 paf 7878: grep -v '^ *+' conftest.er1 >conftest.err
7879: rm -f conftest.er1
7880: cat conftest.err >&5
1.11 paf 7881: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882: (exit $ac_status); } &&
1.18 paf 7883: { ac_try='test -z "$ac_c_werror_flag"
7884: || test ! -s conftest.err'
7885: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886: (eval $ac_try) 2>&5
7887: ac_status=$?
7888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889: (exit $ac_status); }; } &&
7890: { ac_try='test -s conftest$ac_exeext'
1.11 paf 7891: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892: (eval $ac_try) 2>&5
7893: ac_status=$?
7894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895: (exit $ac_status); }; }; then
7896: ac_cv_lib_dld_dld_link=yes
7897: else
7898: echo "$as_me: failed program was:" >&5
7899: sed 's/^/| /' conftest.$ac_ext >&5
7900:
7901: ac_cv_lib_dld_dld_link=no
7902: fi
1.18 paf 7903: rm -f conftest.err conftest.$ac_objext \
7904: conftest$ac_exeext conftest.$ac_ext
1.11 paf 7905: LIBS=$ac_check_lib_save_LIBS
7906: fi
7907: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7908: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7909: if test $ac_cv_lib_dld_dld_link = yes; then
7910: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7911: fi
7912:
7913:
7914: fi
7915:
7916:
7917: fi
7918:
7919:
7920: fi
7921:
7922:
7923: fi
7924:
7925:
7926: fi
7927:
7928: ;;
7929: esac
7930:
7931: if test "x$lt_cv_dlopen" != xno; then
7932: enable_dlopen=yes
7933: else
7934: enable_dlopen=no
7935: fi
7936:
7937: case $lt_cv_dlopen in
7938: dlopen)
7939: save_CPPFLAGS="$CPPFLAGS"
7940: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7941:
7942: save_LDFLAGS="$LDFLAGS"
7943: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7944:
7945: save_LIBS="$LIBS"
7946: LIBS="$lt_cv_dlopen_libs $LIBS"
7947:
7948: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7949: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7950: if test "${lt_cv_dlopen_self+set}" = set; then
7951: echo $ECHO_N "(cached) $ECHO_C" >&6
7952: else
7953: if test "$cross_compiling" = yes; then :
7954: lt_cv_dlopen_self=cross
7955: else
7956: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7957: lt_status=$lt_dlunknown
7958: cat > conftest.$ac_ext <<EOF
1.18 paf 7959: #line 7959 "configure"
1.11 paf 7960: #include "confdefs.h"
7961:
7962: #if HAVE_DLFCN_H
7963: #include <dlfcn.h>
7964: #endif
7965:
7966: #include <stdio.h>
7967:
7968: #ifdef RTLD_GLOBAL
7969: # define LT_DLGLOBAL RTLD_GLOBAL
7970: #else
7971: # ifdef DL_GLOBAL
7972: # define LT_DLGLOBAL DL_GLOBAL
7973: # else
7974: # define LT_DLGLOBAL 0
7975: # endif
7976: #endif
7977:
7978: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7979: find out it does not work in some platform. */
7980: #ifndef LT_DLLAZY_OR_NOW
7981: # ifdef RTLD_LAZY
7982: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7983: # else
7984: # ifdef DL_LAZY
7985: # define LT_DLLAZY_OR_NOW DL_LAZY
7986: # else
7987: # ifdef RTLD_NOW
7988: # define LT_DLLAZY_OR_NOW RTLD_NOW
7989: # else
7990: # ifdef DL_NOW
7991: # define LT_DLLAZY_OR_NOW DL_NOW
7992: # else
7993: # define LT_DLLAZY_OR_NOW 0
7994: # endif
7995: # endif
7996: # endif
7997: # endif
7998: #endif
7999:
8000: #ifdef __cplusplus
8001: extern "C" void exit (int);
8002: #endif
8003:
8004: void fnord() { int i=42;}
8005: int main ()
8006: {
8007: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8008: int status = $lt_dlunknown;
8009:
8010: if (self)
8011: {
8012: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8013: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8014: /* dlclose (self); */
8015: }
8016:
8017: exit (status);
8018: }
8019: EOF
8020: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021: (eval $ac_link) 2>&5
8022: ac_status=$?
8023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8025: (./conftest; exit; ) 2>/dev/null
8026: lt_status=$?
8027: case x$lt_status in
8028: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8029: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8030: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8031: esac
8032: else :
8033: # compilation failed
8034: lt_cv_dlopen_self=no
8035: fi
8036: fi
8037: rm -fr conftest*
8038:
8039:
8040: fi
8041: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8042: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8043:
8044: if test "x$lt_cv_dlopen_self" = xyes; then
8045: LDFLAGS="$LDFLAGS $link_static_flag"
8046: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8047: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8048: if test "${lt_cv_dlopen_self_static+set}" = set; then
8049: echo $ECHO_N "(cached) $ECHO_C" >&6
8050: else
8051: if test "$cross_compiling" = yes; then :
8052: lt_cv_dlopen_self_static=cross
8053: else
8054: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8055: lt_status=$lt_dlunknown
8056: cat > conftest.$ac_ext <<EOF
1.18 paf 8057: #line 8057 "configure"
1.11 paf 8058: #include "confdefs.h"
8059:
8060: #if HAVE_DLFCN_H
8061: #include <dlfcn.h>
8062: #endif
8063:
8064: #include <stdio.h>
8065:
8066: #ifdef RTLD_GLOBAL
8067: # define LT_DLGLOBAL RTLD_GLOBAL
8068: #else
8069: # ifdef DL_GLOBAL
8070: # define LT_DLGLOBAL DL_GLOBAL
8071: # else
8072: # define LT_DLGLOBAL 0
8073: # endif
8074: #endif
8075:
8076: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8077: find out it does not work in some platform. */
8078: #ifndef LT_DLLAZY_OR_NOW
8079: # ifdef RTLD_LAZY
8080: # define LT_DLLAZY_OR_NOW RTLD_LAZY
8081: # else
8082: # ifdef DL_LAZY
8083: # define LT_DLLAZY_OR_NOW DL_LAZY
8084: # else
8085: # ifdef RTLD_NOW
8086: # define LT_DLLAZY_OR_NOW RTLD_NOW
8087: # else
8088: # ifdef DL_NOW
8089: # define LT_DLLAZY_OR_NOW DL_NOW
8090: # else
8091: # define LT_DLLAZY_OR_NOW 0
8092: # endif
8093: # endif
8094: # endif
8095: # endif
8096: #endif
8097:
8098: #ifdef __cplusplus
8099: extern "C" void exit (int);
8100: #endif
8101:
8102: void fnord() { int i=42;}
8103: int main ()
8104: {
8105: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8106: int status = $lt_dlunknown;
8107:
8108: if (self)
8109: {
8110: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8111: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8112: /* dlclose (self); */
8113: }
8114:
8115: exit (status);
8116: }
8117: EOF
8118: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119: (eval $ac_link) 2>&5
8120: ac_status=$?
8121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8123: (./conftest; exit; ) 2>/dev/null
8124: lt_status=$?
8125: case x$lt_status in
8126: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8127: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8128: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8129: esac
8130: else :
8131: # compilation failed
8132: lt_cv_dlopen_self_static=no
8133: fi
8134: fi
8135: rm -fr conftest*
8136:
8137:
8138: fi
8139: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8140: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8141: fi
8142:
8143: CPPFLAGS="$save_CPPFLAGS"
8144: LDFLAGS="$save_LDFLAGS"
8145: LIBS="$save_LIBS"
8146: ;;
8147: esac
8148:
8149: case $lt_cv_dlopen_self in
8150: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8151: *) enable_dlopen_self=unknown ;;
8152: esac
8153:
8154: case $lt_cv_dlopen_self_static in
8155: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8156: *) enable_dlopen_self_static=unknown ;;
8157: esac
8158: fi
8159:
8160:
1.18 paf 8161: ## FIXME: this should be a separate macro
8162: ##
1.11 paf 8163: if test "$enable_shared" = yes && test "$GCC" = yes; then
8164: case $archive_cmds in
8165: *'~'*)
8166: # FIXME: we may have to deal with multi-command sequences.
8167: ;;
8168: '$CC '*)
8169: # Test whether the compiler implicitly links with -lc since on some
8170: # systems, -lgcc has to come before -lc. If gcc already passes -lc
8171: # to ld, don't add -lc before -lgcc.
8172: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8173: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8174: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8175: echo $ECHO_N "(cached) $ECHO_C" >&6
8176: else
8177: $rm conftest*
8178: echo 'static int dummy;' > conftest.$ac_ext
8179:
8180: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181: (eval $ac_compile) 2>&5
8182: ac_status=$?
8183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184: (exit $ac_status); }; then
8185: soname=conftest
8186: lib=conftest
8187: libobjs=conftest.$ac_objext
8188: deplibs=
8189: wl=$lt_cv_prog_cc_wl
8190: compiler_flags=-v
8191: linker_flags=-v
8192: verstring=
8193: output_objdir=.
8194: libname=conftest
8195: save_allow_undefined_flag=$allow_undefined_flag
8196: allow_undefined_flag=
8197: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8198: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8199: ac_status=$?
8200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201: (exit $ac_status); }
8202: then
8203: lt_cv_archive_cmds_need_lc=no
8204: else
8205: lt_cv_archive_cmds_need_lc=yes
8206: fi
8207: allow_undefined_flag=$save_allow_undefined_flag
8208: else
8209: cat conftest.err 1>&5
8210: fi
8211: fi
8212:
8213: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8214: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8215: ;;
8216: esac
8217: fi
8218: need_lc=${lt_cv_archive_cmds_need_lc-yes}
1.18 paf 8219: ##
8220: ## END FIXME
1.11 paf 8221:
1.18 paf 8222: ## FIXME: this should be a separate macro
8223: ##
1.11 paf 8224: # The second clause should only fire when bootstrapping the
8225: # libtool distribution, otherwise you forgot to ship ltmain.sh
8226: # with your package, and you will get complaints that there are
8227: # no rules to generate ltmain.sh.
8228: if test -f "$ltmain"; then
8229: :
8230: else
8231: # If there is no Makefile yet, we rely on a make rule to execute
8232: # `config.status --recheck' to rerun these tests and create the
8233: # libtool script then.
8234: test -f Makefile && make "$ltmain"
8235: fi
8236:
8237: if test -f "$ltmain"; then
8238: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8239: $rm -f "${ofile}T"
8240:
8241: echo creating $ofile
8242:
8243: # Now quote all the things that may contain metacharacters while being
8244: # careful not to overquote the AC_SUBSTed values. We take copies of the
8245: # variables and quote the copies for generation of the libtool script.
8246: for var in echo old_CC old_CFLAGS SED \
8247: AR AR_FLAGS CC LD LN_S NM SHELL \
8248: reload_flag reload_cmds wl \
8249: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8250: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8251: library_names_spec soname_spec \
8252: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8253: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8254: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8255: old_striplib striplib file_magic_cmd export_symbols_cmds \
8256: deplibs_check_method allow_undefined_flag no_undefined_flag \
8257: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8258: global_symbol_to_c_name_address \
8259: hardcode_libdir_flag_spec hardcode_libdir_separator \
8260: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8261: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8262:
8263: case $var in
8264: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8265: old_postinstall_cmds | old_postuninstall_cmds | \
8266: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8267: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8268: postinstall_cmds | postuninstall_cmds | \
8269: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8270: # Double-quote double-evaled strings.
8271: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8272: ;;
8273: *)
8274: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8275: ;;
8276: esac
8277: done
8278:
8279: cat <<__EOF__ > "${ofile}T"
8280: #! $SHELL
8281:
8282: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8283: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8284: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8285: #
8286: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8287: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8288: #
8289: # This program is free software; you can redistribute it and/or modify
8290: # it under the terms of the GNU General Public License as published by
8291: # the Free Software Foundation; either version 2 of the License, or
8292: # (at your option) any later version.
8293: #
8294: # This program is distributed in the hope that it will be useful, but
8295: # WITHOUT ANY WARRANTY; without even the implied warranty of
8296: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8297: # General Public License for more details.
8298: #
8299: # You should have received a copy of the GNU General Public License
8300: # along with this program; if not, write to the Free Software
8301: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8302: #
8303: # As a special exception to the GNU General Public License, if you
8304: # distribute this file as part of a program that contains a
8305: # configuration script generated by Autoconf, you may include it under
8306: # the same distribution terms that you use for the rest of that program.
8307:
8308: # A sed that does not truncate output.
8309: SED=$lt_SED
8310:
8311: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8312: Xsed="${SED} -e s/^X//"
8313:
8314: # The HP-UX ksh and POSIX shell print the target directory to stdout
8315: # if CDPATH is set.
8316: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8317:
8318: # ### BEGIN LIBTOOL CONFIG
8319:
8320: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8321:
8322: # Shell to use when invoking shell scripts.
8323: SHELL=$lt_SHELL
8324:
8325: # Whether or not to build shared libraries.
8326: build_libtool_libs=$enable_shared
8327:
8328: # Whether or not to build static libraries.
8329: build_old_libs=$enable_static
8330:
8331: # Whether or not to add -lc for building shared libraries.
8332: build_libtool_need_lc=$need_lc
8333:
8334: # Whether or not to optimize for fast installation.
8335: fast_install=$enable_fast_install
8336:
8337: # The host system.
8338: host_alias=$host_alias
8339: host=$host
8340:
8341: # An echo program that does not interpret backslashes.
8342: echo=$lt_echo
8343:
8344: # The archiver.
8345: AR=$lt_AR
8346: AR_FLAGS=$lt_AR_FLAGS
8347:
8348: # The default C compiler.
8349: CC=$lt_CC
8350:
8351: # Is the compiler the GNU C compiler?
8352: with_gcc=$GCC
8353:
8354: # The linker used to build libraries.
8355: LD=$lt_LD
8356:
8357: # Whether we need hard or soft links.
8358: LN_S=$lt_LN_S
8359:
8360: # A BSD-compatible nm program.
8361: NM=$lt_NM
8362:
8363: # A symbol stripping program
8364: STRIP=$STRIP
8365:
8366: # Used to examine libraries when file_magic_cmd begins "file"
8367: MAGIC_CMD=$MAGIC_CMD
8368:
8369: # Used on cygwin: DLL creation program.
8370: DLLTOOL="$DLLTOOL"
8371:
8372: # Used on cygwin: object dumper.
8373: OBJDUMP="$OBJDUMP"
8374:
8375: # Used on cygwin: assembler.
8376: AS="$AS"
8377:
8378: # The name of the directory that contains temporary libtool files.
8379: objdir=$objdir
8380:
8381: # How to create reloadable object files.
8382: reload_flag=$lt_reload_flag
8383: reload_cmds=$lt_reload_cmds
8384:
8385: # How to pass a linker flag through the compiler.
8386: wl=$lt_wl
8387:
8388: # Object file suffix (normally "o").
8389: objext="$ac_objext"
8390:
8391: # Old archive suffix (normally "a").
8392: libext="$libext"
8393:
8394: # Executable file suffix (normally "").
8395: exeext="$exeext"
8396:
8397: # Additional compiler flags for building library objects.
8398: pic_flag=$lt_pic_flag
8399: pic_mode=$pic_mode
8400:
8401: # Does compiler simultaneously support -c and -o options?
8402: compiler_c_o=$lt_compiler_c_o
8403:
8404: # Can we write directly to a .lo ?
8405: compiler_o_lo=$lt_compiler_o_lo
8406:
8407: # Must we lock files when doing compilation ?
8408: need_locks=$lt_need_locks
8409:
8410: # Do we need the lib prefix for modules?
8411: need_lib_prefix=$need_lib_prefix
8412:
8413: # Do we need a version for libraries?
8414: need_version=$need_version
8415:
8416: # Whether dlopen is supported.
8417: dlopen_support=$enable_dlopen
8418:
8419: # Whether dlopen of programs is supported.
8420: dlopen_self=$enable_dlopen_self
8421:
8422: # Whether dlopen of statically linked programs is supported.
8423: dlopen_self_static=$enable_dlopen_self_static
8424:
8425: # Compiler flag to prevent dynamic linking.
8426: link_static_flag=$lt_link_static_flag
8427:
8428: # Compiler flag to turn off builtin functions.
8429: no_builtin_flag=$lt_no_builtin_flag
8430:
8431: # Compiler flag to allow reflexive dlopens.
8432: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8433:
8434: # Compiler flag to generate shared objects directly from archives.
8435: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8436:
8437: # Compiler flag to generate thread-safe objects.
8438: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8439:
8440: # Library versioning type.
8441: version_type=$version_type
8442:
8443: # Format of library name prefix.
8444: libname_spec=$lt_libname_spec
8445:
8446: # List of archive names. First name is the real one, the rest are links.
8447: # The last name is the one that the linker finds with -lNAME.
8448: library_names_spec=$lt_library_names_spec
8449:
8450: # The coded name of the library, if different from the real name.
8451: soname_spec=$lt_soname_spec
8452:
8453: # Commands used to build and install an old-style archive.
8454: RANLIB=$lt_RANLIB
8455: old_archive_cmds=$lt_old_archive_cmds
8456: old_postinstall_cmds=$lt_old_postinstall_cmds
8457: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8458:
8459: # Create an old-style archive from a shared archive.
8460: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8461:
8462: # Create a temporary old-style archive to link instead of a shared archive.
8463: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8464:
8465: # Commands used to build and install a shared archive.
8466: archive_cmds=$lt_archive_cmds
8467: archive_expsym_cmds=$lt_archive_expsym_cmds
8468: postinstall_cmds=$lt_postinstall_cmds
8469: postuninstall_cmds=$lt_postuninstall_cmds
8470:
8471: # Commands to strip libraries.
8472: old_striplib=$lt_old_striplib
8473: striplib=$lt_striplib
8474:
8475: # Method to check whether dependent libraries are shared objects.
8476: deplibs_check_method=$lt_deplibs_check_method
8477:
8478: # Command to use when deplibs_check_method == file_magic.
8479: file_magic_cmd=$lt_file_magic_cmd
8480:
8481: # Flag that allows shared libraries with undefined symbols to be built.
8482: allow_undefined_flag=$lt_allow_undefined_flag
8483:
8484: # Flag that forces no undefined symbols.
8485: no_undefined_flag=$lt_no_undefined_flag
8486:
8487: # Commands used to finish a libtool library installation in a directory.
8488: finish_cmds=$lt_finish_cmds
8489:
8490: # Same as above, but a single script fragment to be evaled but not shown.
8491: finish_eval=$lt_finish_eval
8492:
8493: # Take the output of nm and produce a listing of raw symbols and C names.
8494: global_symbol_pipe=$lt_global_symbol_pipe
8495:
8496: # Transform the output of nm in a proper C declaration
8497: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8498:
8499: # Transform the output of nm in a C name address pair
8500: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8501:
8502: # This is the shared library runtime path variable.
8503: runpath_var=$runpath_var
8504:
8505: # This is the shared library path variable.
8506: shlibpath_var=$shlibpath_var
8507:
8508: # Is shlibpath searched before the hard-coded library search path?
8509: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8510:
8511: # How to hardcode a shared library path into an executable.
8512: hardcode_action=$hardcode_action
8513:
8514: # Whether we should hardcode library paths into libraries.
8515: hardcode_into_libs=$hardcode_into_libs
8516:
8517: # Flag to hardcode \$libdir into a binary during linking.
8518: # This must work even if \$libdir does not exist.
8519: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8520:
8521: # Whether we need a single -rpath flag with a separated argument.
8522: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8523:
8524: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8525: # resulting binary.
8526: hardcode_direct=$hardcode_direct
8527:
8528: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8529: # resulting binary.
8530: hardcode_minus_L=$hardcode_minus_L
8531:
8532: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8533: # the resulting binary.
8534: hardcode_shlibpath_var=$hardcode_shlibpath_var
8535:
8536: # Variables whose values should be saved in libtool wrapper scripts and
8537: # restored at relink time.
8538: variables_saved_for_relink="$variables_saved_for_relink"
8539:
8540: # Whether libtool must link a program against all its dependency libraries.
8541: link_all_deplibs=$link_all_deplibs
1.7 paf 8542:
1.11 paf 8543: # Compile-time system search path for libraries
8544: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.7 paf 8545:
1.11 paf 8546: # Run-time system search path for libraries
8547: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.7 paf 8548:
1.11 paf 8549: # Fix the shell variable \$srcfile for the compiler.
8550: fix_srcfile_path="$fix_srcfile_path"
1.7 paf 8551:
1.11 paf 8552: # Set to yes if exported symbols are required.
8553: always_export_symbols=$always_export_symbols
1.7 paf 8554:
1.11 paf 8555: # The commands to list exported symbols.
8556: export_symbols_cmds=$lt_export_symbols_cmds
1.7 paf 8557:
1.11 paf 8558: # The commands to extract the exported symbol list from a shared archive.
8559: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.7 paf 8560:
1.11 paf 8561: # Symbols that should not be listed in the preloaded symbols.
8562: exclude_expsyms=$lt_exclude_expsyms
1.7 paf 8563:
1.11 paf 8564: # Symbols that must always be exported.
8565: include_expsyms=$lt_include_expsyms
1.7 paf 8566:
1.11 paf 8567: # ### END LIBTOOL CONFIG
1.7 paf 8568:
1.11 paf 8569: __EOF__
1.1 parser 8570:
1.11 paf 8571: case $host_os in
8572: aix3*)
8573: cat <<\EOF >> "${ofile}T"
1.1 parser 8574:
1.11 paf 8575: # AIX sometimes has problems with the GCC collect2 program. For some
8576: # reason, if we set the COLLECT_NAMES environment variable, the problems
8577: # vanish in a puff of smoke.
8578: if test "X${COLLECT_NAMES+set}" != Xset; then
8579: COLLECT_NAMES=
8580: export COLLECT_NAMES
8581: fi
8582: EOF
8583: ;;
8584: esac
1.1 parser 8585:
1.11 paf 8586: case $host_os in
8587: cygwin* | mingw* | pw32* | os2*)
8588: cat <<'EOF' >> "${ofile}T"
8589: # This is a source program that is used to create dlls on Windows
8590: # Don't remove nor modify the starting and closing comments
8591: # /* ltdll.c starts here */
8592: # #define WIN32_LEAN_AND_MEAN
8593: # #include <windows.h>
8594: # #undef WIN32_LEAN_AND_MEAN
8595: # #include <stdio.h>
8596: #
8597: # #ifndef __CYGWIN__
8598: # # ifdef __CYGWIN32__
8599: # # define __CYGWIN__ __CYGWIN32__
8600: # # endif
8601: # #endif
8602: #
8603: # #ifdef __cplusplus
8604: # extern "C" {
8605: # #endif
8606: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8607: # #ifdef __cplusplus
8608: # }
8609: # #endif
8610: #
8611: # #ifdef __CYGWIN__
8612: # #include <cygwin/cygwin_dll.h>
8613: # DECLARE_CYGWIN_DLL( DllMain );
8614: # #endif
8615: # HINSTANCE __hDllInstance_base;
8616: #
8617: # BOOL APIENTRY
8618: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8619: # {
8620: # __hDllInstance_base = hInst;
8621: # return TRUE;
8622: # }
8623: # /* ltdll.c ends here */
8624: # This is a source program that is used to create import libraries
8625: # on Windows for dlls which lack them. Don't remove nor modify the
8626: # starting and closing comments
8627: # /* impgen.c starts here */
8628: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8629: #
8630: # This file is part of GNU libtool.
8631: #
8632: # This program is free software; you can redistribute it and/or modify
8633: # it under the terms of the GNU General Public License as published by
8634: # the Free Software Foundation; either version 2 of the License, or
8635: # (at your option) any later version.
8636: #
8637: # This program is distributed in the hope that it will be useful,
8638: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8639: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8640: # GNU General Public License for more details.
8641: #
8642: # You should have received a copy of the GNU General Public License
8643: # along with this program; if not, write to the Free Software
8644: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8645: # */
8646: #
8647: # #include <stdio.h> /* for printf() */
8648: # #include <unistd.h> /* for open(), lseek(), read() */
8649: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8650: # #include <string.h> /* for strdup() */
8651: #
8652: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8653: # #ifndef O_BINARY
8654: # #define O_BINARY 0
8655: # #endif
8656: #
8657: # static unsigned int
8658: # pe_get16 (fd, offset)
8659: # int fd;
8660: # int offset;
8661: # {
8662: # unsigned char b[2];
8663: # lseek (fd, offset, SEEK_SET);
8664: # read (fd, b, 2);
8665: # return b[0] + (b[1]<<8);
8666: # }
8667: #
8668: # static unsigned int
8669: # pe_get32 (fd, offset)
8670: # int fd;
8671: # int offset;
8672: # {
8673: # unsigned char b[4];
8674: # lseek (fd, offset, SEEK_SET);
8675: # read (fd, b, 4);
8676: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8677: # }
8678: #
8679: # static unsigned int
8680: # pe_as32 (ptr)
8681: # void *ptr;
8682: # {
8683: # unsigned char *b = ptr;
8684: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8685: # }
8686: #
8687: # int
8688: # main (argc, argv)
8689: # int argc;
8690: # char *argv[];
8691: # {
8692: # int dll;
8693: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8694: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8695: # unsigned long name_rvas, nexp;
8696: # unsigned char *expdata, *erva;
8697: # char *filename, *dll_name;
8698: #
8699: # filename = argv[1];
8700: #
8701: # dll = open(filename, O_RDONLY|O_BINARY);
8702: # if (dll < 1)
8703: # return 1;
8704: #
8705: # dll_name = filename;
8706: #
8707: # for (i=0; filename[i]; i++)
8708: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8709: # dll_name = filename + i +1;
8710: #
8711: # pe_header_offset = pe_get32 (dll, 0x3c);
8712: # opthdr_ofs = pe_header_offset + 4 + 20;
8713: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8714: #
8715: # if (num_entries < 1) /* no exports */
8716: # return 1;
8717: #
8718: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8719: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8720: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8721: # secptr = (pe_header_offset + 4 + 20 +
8722: # pe_get16 (dll, pe_header_offset + 4 + 16));
8723: #
8724: # expptr = 0;
8725: # for (i = 0; i < nsections; i++)
8726: # {
8727: # char sname[8];
8728: # unsigned long secptr1 = secptr + 40 * i;
8729: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8730: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8731: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8732: # lseek(dll, secptr1, SEEK_SET);
8733: # read(dll, sname, 8);
8734: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8735: # {
8736: # expptr = fptr + (export_rva - vaddr);
8737: # if (export_rva + export_size > vaddr + vsize)
8738: # export_size = vsize - (export_rva - vaddr);
8739: # break;
8740: # }
8741: # }
8742: #
8743: # expdata = (unsigned char*)malloc(export_size);
8744: # lseek (dll, expptr, SEEK_SET);
8745: # read (dll, expdata, export_size);
8746: # erva = expdata - export_rva;
8747: #
8748: # nexp = pe_as32 (expdata+24);
8749: # name_rvas = pe_as32 (expdata+32);
1.1 parser 8750: #
1.11 paf 8751: # printf ("EXPORTS\n");
8752: # for (i = 0; i<nexp; i++)
8753: # {
8754: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8755: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8756: # }
1.1 parser 8757: #
1.11 paf 8758: # return 0;
8759: # }
8760: # /* impgen.c ends here */
8761:
1.1 parser 8762: EOF
8763: ;;
1.11 paf 8764: esac
8765:
8766: # We use sed instead of cat because bash on DJGPP gets confused if
8767: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8768: # text mode, it properly converts lines to CR/LF. This bash problem
8769: # is reportedly fixed, but why not run on old versions too?
8770: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8771:
8772: mv -f "${ofile}T" "$ofile" || \
8773: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8774: chmod +x "$ofile"
1.1 parser 8775: fi
1.18 paf 8776: ##
8777: ## END FIXME
1.1 parser 8778:
8779:
8780:
8781:
8782:
8783: # This can be used to rebuild libtool when needed
1.11 paf 8784: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8785:
8786: # Always use rootdir libtool.
8787: LIBTOOL="$ac_aux_dir/libtool"
8788:
8789: # Prevent multiple expansion
8790:
8791:
8792:
8793:
8794: subdirs="$subdirs libltdl"
8795:
8796:
1.1 parser 8797:
8798:
8799:
8800:
8801:
8802:
8803:
8804:
1.11 paf 8805: for ac_header in stdio.h \
1.1 parser 8806: stdlib.h \
8807: string.h \
8808: setjmp.h \
1.3 paf 8809: ctype.h \
8810: setjmp.h
1.1 parser 8811:
8812: do
1.11 paf 8813: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8814: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815: echo "$as_me:$LINENO: checking for $ac_header" >&5
8816: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8817: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8818: echo $ECHO_N "(cached) $ECHO_C" >&6
8819: fi
8820: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8821: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8822: else
8823: # Is the header compilable?
8824: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8825: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8826: cat >conftest.$ac_ext <<_ACEOF
8827: /* confdefs.h. */
8828: _ACEOF
8829: cat confdefs.h >>conftest.$ac_ext
8830: cat >>conftest.$ac_ext <<_ACEOF
8831: /* end confdefs.h. */
8832: $ac_includes_default
8833: #include <$ac_header>
8834: _ACEOF
8835: rm -f conftest.$ac_objext
8836: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 8837: (eval $ac_compile) 2>conftest.er1
1.11 paf 8838: ac_status=$?
1.18 paf 8839: grep -v '^ *+' conftest.er1 >conftest.err
8840: rm -f conftest.er1
8841: cat conftest.err >&5
1.11 paf 8842: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843: (exit $ac_status); } &&
1.18 paf 8844: { ac_try='test -z "$ac_c_werror_flag"
8845: || test ! -s conftest.err'
8846: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847: (eval $ac_try) 2>&5
8848: ac_status=$?
8849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850: (exit $ac_status); }; } &&
8851: { ac_try='test -s conftest.$ac_objext'
1.11 paf 8852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853: (eval $ac_try) 2>&5
8854: ac_status=$?
8855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856: (exit $ac_status); }; }; then
8857: ac_header_compiler=yes
8858: else
8859: echo "$as_me: failed program was:" >&5
8860: sed 's/^/| /' conftest.$ac_ext >&5
8861:
8862: ac_header_compiler=no
8863: fi
1.18 paf 8864: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 8865: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866: echo "${ECHO_T}$ac_header_compiler" >&6
8867:
8868: # Is the header present?
8869: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8870: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8871: cat >conftest.$ac_ext <<_ACEOF
8872: /* confdefs.h. */
8873: _ACEOF
8874: cat confdefs.h >>conftest.$ac_ext
8875: cat >>conftest.$ac_ext <<_ACEOF
8876: /* end confdefs.h. */
8877: #include <$ac_header>
8878: _ACEOF
8879: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8880: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8881: ac_status=$?
8882: grep -v '^ *+' conftest.er1 >conftest.err
8883: rm -f conftest.er1
8884: cat conftest.err >&5
8885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886: (exit $ac_status); } >/dev/null; then
8887: if test -s conftest.err; then
1.15 paf 8888: ac_cpp_err=$ac_c_preproc_warn_flag
1.18 paf 8889: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 8890: else
8891: ac_cpp_err=
8892: fi
8893: else
8894: ac_cpp_err=yes
8895: fi
8896: if test -z "$ac_cpp_err"; then
8897: ac_header_preproc=yes
1.1 parser 8898: else
1.11 paf 8899: echo "$as_me: failed program was:" >&5
8900: sed 's/^/| /' conftest.$ac_ext >&5
8901:
8902: ac_header_preproc=no
8903: fi
8904: rm -f conftest.err conftest.$ac_ext
8905: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8906: echo "${ECHO_T}$ac_header_preproc" >&6
8907:
8908: # So? What about this header?
1.18 paf 8909: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8910: yes:no: )
1.11 paf 8911: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8912: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.18 paf 8913: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8914: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8915: ac_header_preproc=yes
1.11 paf 8916: ;;
1.18 paf 8917: no:yes:* )
1.11 paf 8918: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8919: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.18 paf 8920: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8921: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8922: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8923: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8924: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8925: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.11 paf 8926: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8927: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.18 paf 8928: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8929: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.11 paf 8930: (
8931: cat <<\_ASBOX
1.18 paf 8932: ## ------------------------------------------ ##
8933: ## Report this to the AC_PACKAGE_NAME lists. ##
8934: ## ------------------------------------------ ##
1.11 paf 8935: _ASBOX
8936: ) |
8937: sed "s/^/$as_me: WARNING: /" >&2
8938: ;;
8939: esac
8940: echo "$as_me:$LINENO: checking for $ac_header" >&5
8941: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8942: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8943: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 8944: else
1.18 paf 8945: eval "$as_ac_Header=\$ac_header_preproc"
1.1 parser 8946: fi
1.11 paf 8947: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8948: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8949:
1.1 parser 8950: fi
1.11 paf 8951: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952: cat >>confdefs.h <<_ACEOF
8953: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8954: _ACEOF
8955:
1.1 parser 8956: fi
1.11 paf 8957:
1.1 parser 8958: done
8959:
8960:
1.11 paf 8961: echo "$as_me:$LINENO: checking for BSD setenv/getenv/unsetenv" >&5
8962: echo $ECHO_N "checking for BSD setenv/getenv/unsetenv... $ECHO_C" >&6
8963: cat >conftest.$ac_ext <<_ACEOF
8964: /* confdefs.h. */
8965: _ACEOF
8966: cat confdefs.h >>conftest.$ac_ext
8967: cat >>conftest.$ac_ext <<_ACEOF
8968: /* end confdefs.h. */
1.4 paf 8969: #ifdef HAVE_STDLIB_H
8970: # include <stdlib.h>
8971: #endif
8972: #ifdef HAVE_STRING_H
8973: # include <string.h>
8974: #endif
8975:
1.11 paf 8976: int
8977: main ()
8978: {
1.4 paf 8979: #define TEST_NAME "oracle-configure-test-var"
8980: #define TEST_VALUE "oracle-configure-test-value"
8981: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
8982: char *getenv_value=getenv(TEST_NAME);
8983: if(!getenv_value)
8984: return 1;
8985: if(strcmp(getenv_value, TEST_VALUE)!=0)
8986: return 2;
8987: unsetenv(TEST_NAME);
8988:
1.11 paf 8989: ;
8990: return 0;
8991: }
8992: _ACEOF
1.17 paf 8993: rm -f conftest.$ac_objext conftest$ac_exeext
8994: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 8995: (eval $ac_link) 2>conftest.er1
1.11 paf 8996: ac_status=$?
1.18 paf 8997: grep -v '^ *+' conftest.er1 >conftest.err
8998: rm -f conftest.er1
8999: cat conftest.err >&5
1.11 paf 9000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001: (exit $ac_status); } &&
1.18 paf 9002: { ac_try='test -z "$ac_c_werror_flag"
9003: || test ! -s conftest.err'
9004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005: (eval $ac_try) 2>&5
9006: ac_status=$?
9007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008: (exit $ac_status); }; } &&
9009: { ac_try='test -s conftest$ac_exeext'
1.11 paf 9010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011: (eval $ac_try) 2>&5
9012: ac_status=$?
9013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014: (exit $ac_status); }; }; then
9015:
9016: echo "$as_me:$LINENO: result: yes" >&5
9017: echo "${ECHO_T}yes" >&6
9018:
9019: cat >>confdefs.h <<\_ACEOF
9020: #define HAVE_SETENV
9021: _ACEOF
1.4 paf 9022:
9023:
9024: else
1.11 paf 9025: echo "$as_me: failed program was:" >&5
9026: sed 's/^/| /' conftest.$ac_ext >&5
9027:
9028: echo "$as_me:$LINENO: result: no" >&5
9029: echo "${ECHO_T}no" >&6
9030:
9031: echo "$as_me:$LINENO: checking for POSIX putenv/getenv" >&5
9032: echo $ECHO_N "checking for POSIX putenv/getenv... $ECHO_C" >&6
9033: cat >conftest.$ac_ext <<_ACEOF
9034: /* confdefs.h. */
9035: _ACEOF
9036: cat confdefs.h >>conftest.$ac_ext
9037: cat >>conftest.$ac_ext <<_ACEOF
9038: /* end confdefs.h. */
1.4 paf 9039: #ifdef HAVE_STDLIB_H
9040: # include <stdlib.h>
9041: #endif
9042: #ifdef HAVE_STRING_H
9043: # include <string.h>
9044: #endif
1.1 parser 9045:
1.11 paf 9046: int
9047: main ()
9048: {
9049: #define TEST_NAME "oracle-configure-test-var"
9050: #define TEST_VALUE "oracle-configure-test-value"
9051: int result=putenv(TEST_NAME"="TEST_VALUE);
9052: char *getenv_value=getenv(TEST_NAME);
9053: if(!getenv_value)
9054: return 1;
9055: if(strcmp(getenv_value, TEST_NAME)!=0)
9056: return 2;
1.1 parser 9057:
1.11 paf 9058: ;
9059: return 0;
9060: }
9061: _ACEOF
1.17 paf 9062: rm -f conftest.$ac_objext conftest$ac_exeext
9063: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 9064: (eval $ac_link) 2>conftest.er1
1.11 paf 9065: ac_status=$?
1.18 paf 9066: grep -v '^ *+' conftest.er1 >conftest.err
9067: rm -f conftest.er1
9068: cat conftest.err >&5
1.11 paf 9069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070: (exit $ac_status); } &&
1.18 paf 9071: { ac_try='test -z "$ac_c_werror_flag"
9072: || test ! -s conftest.err'
9073: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074: (eval $ac_try) 2>&5
9075: ac_status=$?
9076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077: (exit $ac_status); }; } &&
9078: { ac_try='test -s conftest$ac_exeext'
1.11 paf 9079: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080: (eval $ac_try) 2>&5
9081: ac_status=$?
9082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083: (exit $ac_status); }; }; then
9084:
9085: echo "$as_me:$LINENO: result: yes" >&5
9086: echo "${ECHO_T}yes" >&6
9087:
9088: cat >>confdefs.h <<\_ACEOF
9089: #define HAVE_PUTENV
9090: _ACEOF
9091:
9092:
9093: else
9094: echo "$as_me: failed program was:" >&5
9095: sed 's/^/| /' conftest.$ac_ext >&5
9096:
9097: echo "$as_me:$LINENO: result: no" >&5
9098: echo "${ECHO_T}no" >&6
9099: { { echo "$as_me:$LINENO: error: \"there must be some function to modify environment\"" >&5
9100: echo "$as_me: error: \"there must be some function to modify environment\"" >&2;}
9101: { (exit 1); exit 1; }; }
9102:
9103: fi
1.18 paf 9104: rm -f conftest.err conftest.$ac_objext \
9105: conftest$ac_exeext conftest.$ac_ext
1.11 paf 9106:
9107: fi
1.18 paf 9108: rm -f conftest.err conftest.$ac_objext \
9109: conftest$ac_exeext conftest.$ac_ext
1.11 paf 9110:
9111:
9112: echo "$as_me:$LINENO: checking for size_t" >&5
9113: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9114: if test "${ac_cv_type_size_t+set}" = set; then
9115: echo $ECHO_N "(cached) $ECHO_C" >&6
9116: else
9117: cat >conftest.$ac_ext <<_ACEOF
9118: /* confdefs.h. */
9119: _ACEOF
9120: cat confdefs.h >>conftest.$ac_ext
9121: cat >>conftest.$ac_ext <<_ACEOF
9122: /* end confdefs.h. */
9123: $ac_includes_default
9124: int
9125: main ()
9126: {
9127: if ((size_t *) 0)
9128: return 0;
9129: if (sizeof (size_t))
9130: return 0;
9131: ;
9132: return 0;
9133: }
9134: _ACEOF
9135: rm -f conftest.$ac_objext
9136: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 9137: (eval $ac_compile) 2>conftest.er1
1.11 paf 9138: ac_status=$?
1.18 paf 9139: grep -v '^ *+' conftest.er1 >conftest.err
9140: rm -f conftest.er1
9141: cat conftest.err >&5
1.11 paf 9142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143: (exit $ac_status); } &&
1.18 paf 9144: { ac_try='test -z "$ac_c_werror_flag"
9145: || test ! -s conftest.err'
9146: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147: (eval $ac_try) 2>&5
9148: ac_status=$?
9149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150: (exit $ac_status); }; } &&
9151: { ac_try='test -s conftest.$ac_objext'
1.11 paf 9152: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153: (eval $ac_try) 2>&5
9154: ac_status=$?
9155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156: (exit $ac_status); }; }; then
1.1 parser 9157: ac_cv_type_size_t=yes
9158: else
1.11 paf 9159: echo "$as_me: failed program was:" >&5
9160: sed 's/^/| /' conftest.$ac_ext >&5
9161:
9162: ac_cv_type_size_t=no
9163: fi
1.18 paf 9164: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 9165: fi
1.11 paf 9166: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9167: echo "${ECHO_T}$ac_cv_type_size_t" >&6
9168: if test $ac_cv_type_size_t = yes; then
9169: :
9170: else
1.1 parser 9171:
1.11 paf 9172: cat >>confdefs.h <<_ACEOF
1.1 parser 9173: #define size_t unsigned
1.11 paf 9174: _ACEOF
1.1 parser 9175:
9176: fi
9177:
9178:
9179:
9180:
1.11 paf 9181: ac_config_files="$ac_config_files Makefile"
9182: cat >confcache <<\_ACEOF
1.1 parser 9183: # This file is a shell script that caches the results of configure
9184: # tests run on this system so they can be shared between configure
1.11 paf 9185: # scripts and configure runs, see configure's option --config-cache.
9186: # It is not useful on other systems. If it contains results you don't
9187: # want to keep, you may remove or edit it.
1.1 parser 9188: #
1.11 paf 9189: # config.status only pays attention to the cache file if you give it
9190: # the --recheck option to rerun configure.
1.1 parser 9191: #
1.11 paf 9192: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9193: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9194: # following values.
9195:
9196: _ACEOF
9197:
1.1 parser 9198: # The following way of writing the cache mishandles newlines in values,
9199: # but we know of no workaround that is simple, portable, and efficient.
9200: # So, don't put newlines in cache variables' values.
9201: # Ultrix sh set writes to stderr and can't be redirected directly,
9202: # and sets the high bit in the cache file unless we assign to the vars.
1.11 paf 9203: {
9204: (set) 2>&1 |
9205: case `(ac_space=' '; set | grep ac_space) 2>&1` in
9206: *ac_space=\ *)
9207: # `set' does not quote correctly, so add quotes (double-quote
9208: # substitution turns \\\\ into \\, and sed turns \\ into \).
9209: sed -n \
1.18 paf 9210: "s/'/'\\\\''/g;
9211: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.11 paf 9212: ;;
9213: *)
9214: # `set' quotes correctly as required by POSIX, so do not add quotes.
9215: sed -n \
1.18 paf 9216: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.11 paf 9217: ;;
9218: esac;
9219: } |
9220: sed '
9221: t clear
9222: : clear
9223: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9224: t end
9225: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9226: : end' >>confcache
9227: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 9228: if test -w $cache_file; then
1.11 paf 9229: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9230: cat confcache >$cache_file
1.1 parser 9231: else
9232: echo "not updating unwritable cache $cache_file"
9233: fi
9234: fi
9235: rm -f confcache
9236:
9237: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9238: # Let make expand exec_prefix.
9239: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9240:
1.11 paf 9241: # VPATH may cause trouble with some makes, so we remove $(srcdir),
9242: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9243: # trailing colons and then remove the whole line if VPATH becomes empty
9244: # (actually we leave an empty line to preserve line numbers).
1.1 parser 9245: if test "x$srcdir" = x.; then
1.18 paf 9246: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.11 paf 9247: s/:*\$(srcdir):*/:/;
9248: s/:*\${srcdir}:*/:/;
9249: s/:*@srcdir@:*/:/;
1.18 paf 9250: s/^\([^=]*=[ ]*\):*/\1/;
1.11 paf 9251: s/:*$//;
1.18 paf 9252: s/^[^=]*=[ ]*$//;
1.11 paf 9253: }'
1.1 parser 9254: fi
9255:
1.11 paf 9256: DEFS=-DHAVE_CONFIG_H
9257:
9258: ac_libobjs=
9259: ac_ltlibobjs=
9260: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9261: # 1. Remove the extension, and $U if already installed.
9262: ac_i=`echo "$ac_i" |
1.18 paf 9263: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.11 paf 9264: # 2. Add them.
9265: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9266: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9267: done
9268: LIBOBJS=$ac_libobjs
9269:
9270: LTLIBOBJS=$ac_ltlibobjs
9271:
1.1 parser 9272:
1.11 paf 9273: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9274: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9275: Usually this means the macro was only invoked conditionally." >&5
9276: echo "$as_me: error: conditional \"AMDEP\" was never defined.
9277: Usually this means the macro was only invoked conditionally." >&2;}
9278: { (exit 1); exit 1; }; }
9279: fi
9280: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9281: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9282: Usually this means the macro was only invoked conditionally." >&5
9283: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9284: Usually this means the macro was only invoked conditionally." >&2;}
9285: { (exit 1); exit 1; }; }
9286: fi
9287: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9288: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9289: Usually this means the macro was only invoked conditionally." >&5
9290: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9291: Usually this means the macro was only invoked conditionally." >&2;}
9292: { (exit 1); exit 1; }; }
9293: fi
1.1 parser 9294:
9295: : ${CONFIG_STATUS=./config.status}
1.11 paf 9296: ac_clean_files_save=$ac_clean_files
9297: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9298: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9299: echo "$as_me: creating $CONFIG_STATUS" >&6;}
9300: cat >$CONFIG_STATUS <<_ACEOF
9301: #! $SHELL
9302: # Generated by $as_me.
9303: # Run this file to recreate the current configuration.
9304: # Compiler output produced by configure, useful for debugging
9305: # configure, is in config.log if it exists.
9306:
9307: debug=false
9308: ac_cs_recheck=false
9309: ac_cs_silent=false
9310: SHELL=\${CONFIG_SHELL-$SHELL}
9311: _ACEOF
9312:
9313: cat >>$CONFIG_STATUS <<\_ACEOF
9314: ## --------------------- ##
9315: ## M4sh Initialization. ##
9316: ## --------------------- ##
9317:
9318: # Be Bourne compatible
9319: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9320: emulate sh
9321: NULLCMD=:
9322: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9323: # is contrary to our usage. Disable this feature.
9324: alias -g '${1+"$@"}'='"$@"'
9325: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9326: set -o posix
9327: fi
1.18 paf 9328: DUALCASE=1; export DUALCASE # for MKS sh
1.11 paf 9329:
9330: # Support unset when possible.
1.18 paf 9331: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.11 paf 9332: as_unset=unset
9333: else
9334: as_unset=false
9335: fi
9336:
9337:
9338: # Work around bugs in pre-3.0 UWIN ksh.
9339: $as_unset ENV MAIL MAILPATH
9340: PS1='$ '
9341: PS2='> '
9342: PS4='+ '
9343:
9344: # NLS nuisances.
9345: for as_var in \
9346: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9347: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9348: LC_TELEPHONE LC_TIME
9349: do
1.18 paf 9350: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.11 paf 9351: eval $as_var=C; export $as_var
9352: else
9353: $as_unset $as_var
9354: fi
9355: done
9356:
9357: # Required to use basename.
9358: if expr a : '\(a\)' >/dev/null 2>&1; then
9359: as_expr=expr
9360: else
9361: as_expr=false
9362: fi
9363:
9364: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9365: as_basename=basename
9366: else
9367: as_basename=false
9368: fi
9369:
9370:
9371: # Name of the executable.
9372: as_me=`$as_basename "$0" ||
9373: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9374: X"$0" : 'X\(//\)$' \| \
9375: X"$0" : 'X\(/\)$' \| \
9376: . : '\(.\)' 2>/dev/null ||
9377: echo X/"$0" |
9378: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9379: /^X\/\(\/\/\)$/{ s//\1/; q; }
9380: /^X\/\(\/\).*/{ s//\1/; q; }
9381: s/.*/./; q'`
9382:
9383:
9384: # PATH needs CR, and LINENO needs CR and PATH.
9385: # Avoid depending upon Character Ranges.
9386: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9387: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9388: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9389: as_cr_digits='0123456789'
9390: as_cr_alnum=$as_cr_Letters$as_cr_digits
9391:
9392: # The user is always right.
9393: if test "${PATH_SEPARATOR+set}" != set; then
9394: echo "#! /bin/sh" >conf$$.sh
9395: echo "exit 0" >>conf$$.sh
9396: chmod +x conf$$.sh
9397: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9398: PATH_SEPARATOR=';'
9399: else
9400: PATH_SEPARATOR=:
9401: fi
9402: rm -f conf$$.sh
9403: fi
9404:
9405:
9406: as_lineno_1=$LINENO
9407: as_lineno_2=$LINENO
9408: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9409: test "x$as_lineno_1" != "x$as_lineno_2" &&
9410: test "x$as_lineno_3" = "x$as_lineno_2" || {
9411: # Find who we are. Look in the path if we contain no path at all
9412: # relative or not.
9413: case $0 in
9414: *[\\/]* ) as_myself=$0 ;;
9415: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416: for as_dir in $PATH
9417: do
9418: IFS=$as_save_IFS
9419: test -z "$as_dir" && as_dir=.
9420: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9421: done
9422:
9423: ;;
9424: esac
9425: # We did not find ourselves, most probably we were run as `sh COMMAND'
9426: # in which case we are not to be found in the path.
9427: if test "x$as_myself" = x; then
9428: as_myself=$0
9429: fi
9430: if test ! -f "$as_myself"; then
9431: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9432: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9433: { (exit 1); exit 1; }; }
9434: fi
9435: case $CONFIG_SHELL in
9436: '')
9437: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9439: do
9440: IFS=$as_save_IFS
9441: test -z "$as_dir" && as_dir=.
9442: for as_base in sh bash ksh sh5; do
9443: case $as_dir in
9444: /*)
9445: if ("$as_dir/$as_base" -c '
9446: as_lineno_1=$LINENO
9447: as_lineno_2=$LINENO
9448: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9449: test "x$as_lineno_1" != "x$as_lineno_2" &&
9450: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9451: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9452: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9453: CONFIG_SHELL=$as_dir/$as_base
9454: export CONFIG_SHELL
9455: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9456: fi;;
9457: esac
9458: done
9459: done
9460: ;;
9461: esac
9462:
9463: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9464: # uniformly replaced by the line number. The first 'sed' inserts a
9465: # line-number line before each line; the second 'sed' does the real
9466: # work. The second script uses 'N' to pair each line-number line
9467: # with the numbered line, and appends trailing '-' during
9468: # substitution so that $LINENO is not a special case at line end.
9469: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9470: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9471: sed '=' <$as_myself |
9472: sed '
9473: N
9474: s,$,-,
9475: : loop
9476: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9477: t loop
9478: s,-$,,
9479: s,^['$as_cr_digits']*\n,,
9480: ' >$as_me.lineno &&
9481: chmod +x $as_me.lineno ||
9482: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9483: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9484: { (exit 1); exit 1; }; }
9485:
9486: # Don't try to exec as it changes $[0], causing all sort of problems
9487: # (the dirname of $[0] is not the place where we might find the
9488: # original and so on. Autoconf is especially sensible to this).
9489: . ./$as_me.lineno
9490: # Exit status is that of the last command.
9491: exit
9492: }
9493:
9494:
9495: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9496: *c*,-n*) ECHO_N= ECHO_C='
9497: ' ECHO_T=' ' ;;
9498: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9499: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9500: esac
9501:
9502: if expr a : '\(a\)' >/dev/null 2>&1; then
9503: as_expr=expr
9504: else
9505: as_expr=false
9506: fi
9507:
9508: rm -f conf$$ conf$$.exe conf$$.file
9509: echo >conf$$.file
9510: if ln -s conf$$.file conf$$ 2>/dev/null; then
9511: # We could just check for DJGPP; but this test a) works b) is more generic
9512: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9513: if test -f conf$$.exe; then
9514: # Don't use ln at all; we don't have any links
9515: as_ln_s='cp -p'
9516: else
9517: as_ln_s='ln -s'
9518: fi
9519: elif ln conf$$.file conf$$ 2>/dev/null; then
9520: as_ln_s=ln
9521: else
9522: as_ln_s='cp -p'
9523: fi
9524: rm -f conf$$ conf$$.exe conf$$.file
9525:
9526: if mkdir -p . 2>/dev/null; then
9527: as_mkdir_p=:
9528: else
1.18 paf 9529: test -d ./-p && rmdir ./-p
1.11 paf 9530: as_mkdir_p=false
9531: fi
9532:
9533: as_executable_p="test -f"
9534:
9535: # Sed expression to map a string onto a valid CPP name.
1.18 paf 9536: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 9537:
9538: # Sed expression to map a string onto a valid variable name.
1.18 paf 9539: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 9540:
9541:
9542: # IFS
9543: # We need space, tab and new line, in precisely that order.
9544: as_nl='
9545: '
9546: IFS=" $as_nl"
9547:
9548: # CDPATH.
9549: $as_unset CDPATH
9550:
9551: exec 6>&1
9552:
9553: # Open the log real soon, to keep \$[0] and so on meaningful, and to
9554: # report actual input values of CONFIG_FILES etc. instead of their
9555: # values after options handling. Logging --version etc. is OK.
9556: exec 5>>config.log
9557: {
9558: echo
9559: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9560: ## Running $as_me. ##
9561: _ASBOX
9562: } >&5
9563: cat >&5 <<_CSEOF
9564:
9565: This file was extended by $as_me, which was
1.18 paf 9566: generated by GNU Autoconf 2.59. Invocation command line was
1.11 paf 9567:
9568: CONFIG_FILES = $CONFIG_FILES
9569: CONFIG_HEADERS = $CONFIG_HEADERS
9570: CONFIG_LINKS = $CONFIG_LINKS
9571: CONFIG_COMMANDS = $CONFIG_COMMANDS
9572: $ $0 $@
9573:
9574: _CSEOF
9575: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9576: echo >&5
9577: _ACEOF
9578:
9579: # Files that config.status was made for.
9580: if test -n "$ac_config_files"; then
9581: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9582: fi
9583:
9584: if test -n "$ac_config_headers"; then
9585: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9586: fi
9587:
9588: if test -n "$ac_config_links"; then
9589: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9590: fi
9591:
9592: if test -n "$ac_config_commands"; then
9593: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9594: fi
9595:
9596: cat >>$CONFIG_STATUS <<\_ACEOF
9597:
9598: ac_cs_usage="\
9599: \`$as_me' instantiates files from templates according to the
9600: current configuration.
9601:
9602: Usage: $0 [OPTIONS] [FILE]...
9603:
9604: -h, --help print this help, then exit
9605: -V, --version print version number, then exit
9606: -q, --quiet do not print progress messages
9607: -d, --debug don't remove temporary files
9608: --recheck update $as_me by reconfiguring in the same conditions
9609: --file=FILE[:TEMPLATE]
1.18 paf 9610: instantiate the configuration file FILE
1.11 paf 9611: --header=FILE[:TEMPLATE]
1.18 paf 9612: instantiate the configuration header FILE
1.11 paf 9613:
9614: Configuration files:
9615: $config_files
9616:
9617: Configuration headers:
9618: $config_headers
9619:
9620: Configuration commands:
9621: $config_commands
9622:
9623: Report bugs to <bug-autoconf@gnu.org>."
9624: _ACEOF
9625:
9626: cat >>$CONFIG_STATUS <<_ACEOF
9627: ac_cs_version="\\
9628: config.status
1.18 paf 9629: configured by $0, generated by GNU Autoconf 2.59,
1.11 paf 9630: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9631:
1.18 paf 9632: Copyright (C) 2003 Free Software Foundation, Inc.
1.11 paf 9633: This config.status script is free software; the Free Software Foundation
9634: gives unlimited permission to copy, distribute and modify it."
9635: srcdir=$srcdir
9636: INSTALL="$INSTALL"
9637: _ACEOF
9638:
9639: cat >>$CONFIG_STATUS <<\_ACEOF
9640: # If no file are specified by the user, then we need to provide default
9641: # value. By we need to know if files were specified by the user.
9642: ac_need_defaults=:
9643: while test $# != 0
9644: do
9645: case $1 in
9646: --*=*)
9647: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9648: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9649: ac_shift=:
9650: ;;
9651: -*)
9652: ac_option=$1
9653: ac_optarg=$2
9654: ac_shift=shift
9655: ;;
9656: *) # This is not an option, so the user has probably given explicit
9657: # arguments.
9658: ac_option=$1
9659: ac_need_defaults=false;;
9660: esac
9661:
9662: case $ac_option in
9663: # Handling of the options.
9664: _ACEOF
9665: cat >>$CONFIG_STATUS <<\_ACEOF
9666: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9667: ac_cs_recheck=: ;;
9668: --version | --vers* | -V )
9669: echo "$ac_cs_version"; exit 0 ;;
9670: --he | --h)
9671: # Conflict between --help and --header
9672: { { echo "$as_me:$LINENO: error: ambiguous option: $1
9673: Try \`$0 --help' for more information." >&5
9674: echo "$as_me: error: ambiguous option: $1
9675: Try \`$0 --help' for more information." >&2;}
9676: { (exit 1); exit 1; }; };;
9677: --help | --hel | -h )
9678: echo "$ac_cs_usage"; exit 0 ;;
9679: --debug | --d* | -d )
9680: debug=: ;;
9681: --file | --fil | --fi | --f )
9682: $ac_shift
9683: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9684: ac_need_defaults=false;;
9685: --header | --heade | --head | --hea )
9686: $ac_shift
9687: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9688: ac_need_defaults=false;;
9689: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9690: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9691: ac_cs_silent=: ;;
9692:
9693: # This is an error.
9694: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9695: Try \`$0 --help' for more information." >&5
9696: echo "$as_me: error: unrecognized option: $1
9697: Try \`$0 --help' for more information." >&2;}
9698: { (exit 1); exit 1; }; } ;;
9699:
9700: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9701:
1.11 paf 9702: esac
9703: shift
9704: done
9705:
9706: ac_configure_extra_args=
9707:
9708: if $ac_cs_silent; then
9709: exec 6>/dev/null
9710: ac_configure_extra_args="$ac_configure_extra_args --silent"
9711: fi
9712:
9713: _ACEOF
9714: cat >>$CONFIG_STATUS <<_ACEOF
9715: if \$ac_cs_recheck; then
9716: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9717: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9718: fi
9719:
9720: _ACEOF
9721:
9722: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9723: #
1.11 paf 9724: # INIT-COMMANDS section.
1.1 parser 9725: #
9726:
1.11 paf 9727: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9728:
9729: _ACEOF
9730:
9731:
9732:
9733: cat >>$CONFIG_STATUS <<\_ACEOF
9734: for ac_config_target in $ac_config_targets
1.1 parser 9735: do
1.11 paf 9736: case "$ac_config_target" in
9737: # Handling of arguments.
9738: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9739: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9740: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
9741: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9742: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9743: { (exit 1); exit 1; }; };;
1.1 parser 9744: esac
9745: done
9746:
1.11 paf 9747: # If the user did not use the arguments to specify the items to instantiate,
9748: # then the envvar interface is used. Set only those that are not.
9749: # We use the long form for the default assignment because of an extremely
9750: # bizarre bug on SunOS 4.1.3.
9751: if $ac_need_defaults; then
9752: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9753: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9754: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9755: fi
9756:
9757: # Have a temporary directory for convenience. Make it in the build tree
9758: # simply because there is no reason to put it here, and in addition,
9759: # creating and moving files from /tmp can sometimes cause problems.
9760: # Create a temporary directory, and hook for its removal unless debugging.
9761: $debug ||
9762: {
9763: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9764: trap '{ (exit 1); exit 1; }' 1 2 13 15
9765: }
9766:
9767: # Create a (secure) tmp directory for tmp files.
9768:
9769: {
9770: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9771: test -n "$tmp" && test -d "$tmp"
9772: } ||
9773: {
9774: tmp=./confstat$$-$RANDOM
9775: (umask 077 && mkdir $tmp)
9776: } ||
9777: {
9778: echo "$me: cannot create a temporary directory in ." >&2
9779: { (exit 1); exit 1; }
9780: }
9781:
9782: _ACEOF
1.1 parser 9783:
1.11 paf 9784: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9785:
1.11 paf 9786: #
9787: # CONFIG_FILES section.
9788: #
1.1 parser 9789:
1.11 paf 9790: # No need to generate the scripts if there are no CONFIG_FILES.
9791: # This happens for instance when ./config.status config.h
9792: if test -n "\$CONFIG_FILES"; then
9793: # Protect against being on the right side of a sed subst in config.status.
9794: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9795: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9796: s,@SHELL@,$SHELL,;t t
9797: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9798: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9799: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9800: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9801: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9802: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9803: s,@exec_prefix@,$exec_prefix,;t t
9804: s,@prefix@,$prefix,;t t
9805: s,@program_transform_name@,$program_transform_name,;t t
9806: s,@bindir@,$bindir,;t t
9807: s,@sbindir@,$sbindir,;t t
9808: s,@libexecdir@,$libexecdir,;t t
9809: s,@datadir@,$datadir,;t t
9810: s,@sysconfdir@,$sysconfdir,;t t
9811: s,@sharedstatedir@,$sharedstatedir,;t t
9812: s,@localstatedir@,$localstatedir,;t t
9813: s,@libdir@,$libdir,;t t
9814: s,@includedir@,$includedir,;t t
9815: s,@oldincludedir@,$oldincludedir,;t t
9816: s,@infodir@,$infodir,;t t
9817: s,@mandir@,$mandir,;t t
9818: s,@build_alias@,$build_alias,;t t
9819: s,@host_alias@,$host_alias,;t t
9820: s,@target_alias@,$target_alias,;t t
9821: s,@DEFS@,$DEFS,;t t
9822: s,@ECHO_C@,$ECHO_C,;t t
9823: s,@ECHO_N@,$ECHO_N,;t t
9824: s,@ECHO_T@,$ECHO_T,;t t
9825: s,@LIBS@,$LIBS,;t t
9826: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9827: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9828: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9829: s,@CYGPATH_W@,$CYGPATH_W,;t t
9830: s,@PACKAGE@,$PACKAGE,;t t
9831: s,@VERSION@,$VERSION,;t t
9832: s,@ACLOCAL@,$ACLOCAL,;t t
9833: s,@AUTOCONF@,$AUTOCONF,;t t
9834: s,@AUTOMAKE@,$AUTOMAKE,;t t
9835: s,@AUTOHEADER@,$AUTOHEADER,;t t
9836: s,@MAKEINFO@,$MAKEINFO,;t t
9837: s,@install_sh@,$install_sh,;t t
9838: s,@STRIP@,$STRIP,;t t
9839: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9840: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.18 paf 9841: s,@mkdir_p@,$mkdir_p,;t t
1.11 paf 9842: s,@AWK@,$AWK,;t t
9843: s,@SET_MAKE@,$SET_MAKE,;t t
1.18 paf 9844: s,@am__leading_dot@,$am__leading_dot,;t t
9845: s,@AMTAR@,$AMTAR,;t t
9846: s,@am__tar@,$am__tar,;t t
9847: s,@am__untar@,$am__untar,;t t
1.11 paf 9848: s,@ORACLE_OCI_INC@,$ORACLE_OCI_INC,;t t
9849: s,@ORACLE_PUBLIC_INC@,$ORACLE_PUBLIC_INC,;t t
9850: s,@CXX@,$CXX,;t t
9851: s,@CXXFLAGS@,$CXXFLAGS,;t t
9852: s,@LDFLAGS@,$LDFLAGS,;t t
9853: s,@CPPFLAGS@,$CPPFLAGS,;t t
9854: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9855: s,@EXEEXT@,$EXEEXT,;t t
9856: s,@OBJEXT@,$OBJEXT,;t t
9857: s,@DEPDIR@,$DEPDIR,;t t
9858: s,@am__include@,$am__include,;t t
9859: s,@am__quote@,$am__quote,;t t
9860: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9861: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9862: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9863: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9864: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9865: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
1.15 paf 9866: s,@CC@,$CC,;t t
9867: s,@CFLAGS@,$CFLAGS,;t t
9868: s,@ac_ct_CC@,$ac_ct_CC,;t t
9869: s,@CCDEPMODE@,$CCDEPMODE,;t t
9870: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9871: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.11 paf 9872: s,@INCLTDL@,$INCLTDL,;t t
9873: s,@LIBLTDL@,$LIBLTDL,;t t
9874: s,@LIBADD_DL@,$LIBADD_DL,;t t
9875: s,@build@,$build,;t t
9876: s,@build_cpu@,$build_cpu,;t t
9877: s,@build_vendor@,$build_vendor,;t t
9878: s,@build_os@,$build_os,;t t
9879: s,@host@,$host,;t t
9880: s,@host_cpu@,$host_cpu,;t t
9881: s,@host_vendor@,$host_vendor,;t t
9882: s,@host_os@,$host_os,;t t
9883: s,@LN_S@,$LN_S,;t t
9884: s,@ECHO@,$ECHO,;t t
9885: s,@RANLIB@,$RANLIB,;t t
9886: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1.15 paf 9887: s,@CPP@,$CPP,;t t
1.11 paf 9888: s,@EGREP@,$EGREP,;t t
9889: s,@LIBTOOL@,$LIBTOOL,;t t
9890: s,@subdirs@,$subdirs,;t t
9891: s,@LIBOBJS@,$LIBOBJS,;t t
9892: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9893: CEOF
9894:
1.11 paf 9895: _ACEOF
1.1 parser 9896:
1.11 paf 9897: cat >>$CONFIG_STATUS <<\_ACEOF
9898: # Split the substitutions into bite-sized pieces for seds with
9899: # small command number limits, like on Digital OSF/1 and HP-UX.
9900: ac_max_sed_lines=48
9901: ac_sed_frag=1 # Number of current file.
9902: ac_beg=1 # First line for current file.
9903: ac_end=$ac_max_sed_lines # Line after last line for current file.
9904: ac_more_lines=:
9905: ac_sed_cmds=
9906: while $ac_more_lines; do
9907: if test $ac_beg -gt 1; then
9908: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9909: else
9910: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9911: fi
9912: if test ! -s $tmp/subs.frag; then
9913: ac_more_lines=false
9914: else
9915: # The purpose of the label and of the branching condition is to
9916: # speed up the sed processing (if there are no `@' at all, there
9917: # is no need to browse any of the substitutions).
9918: # These are the two extra sed commands mentioned above.
9919: (echo ':t
9920: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9921: if test -z "$ac_sed_cmds"; then
1.18 paf 9922: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.11 paf 9923: else
1.18 paf 9924: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.11 paf 9925: fi
9926: ac_sed_frag=`expr $ac_sed_frag + 1`
9927: ac_beg=$ac_end
9928: ac_end=`expr $ac_end + $ac_max_sed_lines`
9929: fi
9930: done
9931: if test -z "$ac_sed_cmds"; then
9932: ac_sed_cmds=cat
1.1 parser 9933: fi
1.11 paf 9934: fi # test -n "$CONFIG_FILES"
1.1 parser 9935:
1.11 paf 9936: _ACEOF
9937: cat >>$CONFIG_STATUS <<\_ACEOF
9938: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9939: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9940: case $ac_file in
9941: - | *:- | *:-:* ) # input from stdin
1.18 paf 9942: cat >$tmp/stdin
9943: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9944: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.11 paf 9945: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.18 paf 9946: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.11 paf 9947: * ) ac_file_in=$ac_file.in ;;
9948: esac
1.1 parser 9949:
1.11 paf 9950: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9951: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9952: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 9953: X"$ac_file" : 'X\(//\)[^/]' \| \
9954: X"$ac_file" : 'X\(//\)$' \| \
9955: X"$ac_file" : 'X\(/\)' \| \
9956: . : '\(.\)' 2>/dev/null ||
1.11 paf 9957: echo X"$ac_file" |
9958: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9959: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9960: /^X\(\/\/\)$/{ s//\1/; q; }
9961: /^X\(\/\).*/{ s//\1/; q; }
9962: s/.*/./; q'`
9963: { if $as_mkdir_p; then
9964: mkdir -p "$ac_dir"
9965: else
9966: as_dir="$ac_dir"
9967: as_dirs=
9968: while test ! -d "$as_dir"; do
9969: as_dirs="$as_dir $as_dirs"
9970: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9971: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 9972: X"$as_dir" : 'X\(//\)[^/]' \| \
9973: X"$as_dir" : 'X\(//\)$' \| \
9974: X"$as_dir" : 'X\(/\)' \| \
9975: . : '\(.\)' 2>/dev/null ||
1.11 paf 9976: echo X"$as_dir" |
9977: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9978: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9979: /^X\(\/\/\)$/{ s//\1/; q; }
9980: /^X\(\/\).*/{ s//\1/; q; }
9981: s/.*/./; q'`
9982: done
9983: test ! -n "$as_dirs" || mkdir $as_dirs
9984: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9985: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9986: { (exit 1); exit 1; }; }; }
9987:
9988: ac_builddir=.
9989:
9990: if test "$ac_dir" != .; then
9991: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9992: # A "../" for each directory in $ac_dir_suffix.
9993: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9994: else
9995: ac_dir_suffix= ac_top_builddir=
9996: fi
9997:
9998: case $srcdir in
9999: .) # No --srcdir option. We are building in place.
10000: ac_srcdir=.
10001: if test -z "$ac_top_builddir"; then
10002: ac_top_srcdir=.
10003: else
10004: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10005: fi ;;
10006: [\\/]* | ?:[\\/]* ) # Absolute path.
10007: ac_srcdir=$srcdir$ac_dir_suffix;
10008: ac_top_srcdir=$srcdir ;;
1.1 parser 10009: *) # Relative path.
1.11 paf 10010: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10011: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10012: esac
1.18 paf 10013:
10014: # Do not use `cd foo && pwd` to compute absolute paths, because
10015: # the directories may not exist.
10016: case `pwd` in
10017: .) ac_abs_builddir="$ac_dir";;
10018: *)
10019: case "$ac_dir" in
10020: .) ac_abs_builddir=`pwd`;;
10021: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10022: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10023: esac;;
10024: esac
10025: case $ac_abs_builddir in
10026: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10027: *)
10028: case ${ac_top_builddir}. in
10029: .) ac_abs_top_builddir=$ac_abs_builddir;;
10030: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10031: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10032: esac;;
10033: esac
10034: case $ac_abs_builddir in
10035: .) ac_abs_srcdir=$ac_srcdir;;
10036: *)
10037: case $ac_srcdir in
10038: .) ac_abs_srcdir=$ac_abs_builddir;;
10039: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10040: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10041: esac;;
10042: esac
10043: case $ac_abs_builddir in
10044: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10045: *)
10046: case $ac_top_srcdir in
10047: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10048: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10049: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10050: esac;;
10051: esac
1.11 paf 10052:
10053:
10054: case $INSTALL in
10055: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10056: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 10057: esac
10058:
1.11 paf 10059: if test x"$ac_file" != x-; then
10060: { echo "$as_me:$LINENO: creating $ac_file" >&5
10061: echo "$as_me: creating $ac_file" >&6;}
10062: rm -f "$ac_file"
10063: fi
10064: # Let's still pretend it is `configure' which instantiates (i.e., don't
10065: # use $as_me), people would be surprised to read:
10066: # /* config.h. Generated by config.status. */
10067: if test x"$ac_file" = x-; then
10068: configure_input=
10069: else
10070: configure_input="$ac_file. "
10071: fi
10072: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.18 paf 10073: sed 's,.*/,,'` by configure."
1.11 paf 10074:
10075: # First look for the input files in the build tree, otherwise in the
10076: # src tree.
10077: ac_file_inputs=`IFS=:
10078: for f in $ac_file_in; do
10079: case $f in
10080: -) echo $tmp/stdin ;;
10081: [\\/$]*)
1.18 paf 10082: # Absolute (can't be DOS-style, as IFS=:)
10083: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.11 paf 10084: echo "$as_me: error: cannot find input file: $f" >&2;}
10085: { (exit 1); exit 1; }; }
1.18 paf 10086: echo "$f";;
1.11 paf 10087: *) # Relative
1.18 paf 10088: if test -f "$f"; then
10089: # Build tree
10090: echo "$f"
10091: elif test -f "$srcdir/$f"; then
10092: # Source tree
10093: echo "$srcdir/$f"
10094: else
10095: # /dev/null tree
10096: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.11 paf 10097: echo "$as_me: error: cannot find input file: $f" >&2;}
10098: { (exit 1); exit 1; }; }
1.18 paf 10099: fi;;
1.11 paf 10100: esac
10101: done` || { (exit 1); exit 1; }
10102: _ACEOF
10103: cat >>$CONFIG_STATUS <<_ACEOF
10104: sed "$ac_vpsub
10105: $extrasub
10106: _ACEOF
10107: cat >>$CONFIG_STATUS <<\_ACEOF
10108: :t
10109: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10110: s,@configure_input@,$configure_input,;t t
10111: s,@srcdir@,$ac_srcdir,;t t
10112: s,@abs_srcdir@,$ac_abs_srcdir,;t t
10113: s,@top_srcdir@,$ac_top_srcdir,;t t
10114: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10115: s,@builddir@,$ac_builddir,;t t
10116: s,@abs_builddir@,$ac_abs_builddir,;t t
10117: s,@top_builddir@,$ac_top_builddir,;t t
10118: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10119: s,@INSTALL@,$ac_INSTALL,;t t
10120: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10121: rm -f $tmp/stdin
10122: if test x"$ac_file" != x-; then
10123: mv $tmp/out $ac_file
10124: else
10125: cat $tmp/out
10126: rm -f $tmp/out
10127: fi
10128:
10129: done
10130: _ACEOF
10131: cat >>$CONFIG_STATUS <<\_ACEOF
10132:
10133: #
10134: # CONFIG_HEADER section.
10135: #
1.1 parser 10136:
10137: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10138: # NAME is the cpp macro being defined and VALUE is the value it is being given.
10139: #
10140: # ac_d sets the value in "#define NAME VALUE" lines.
1.18 paf 10141: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10142: ac_dB='[ ].*$,\1#\2'
1.11 paf 10143: ac_dC=' '
10144: ac_dD=',;t'
10145: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.18 paf 10146: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.11 paf 10147: ac_uB='$,\1#\2define\3'
1.1 parser 10148: ac_uC=' '
1.11 paf 10149: ac_uD=',;t'
1.1 parser 10150:
1.11 paf 10151: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 10152: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.11 paf 10153: case $ac_file in
10154: - | *:- | *:-:* ) # input from stdin
1.18 paf 10155: cat >$tmp/stdin
10156: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10157: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.11 paf 10158: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.18 paf 10159: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.11 paf 10160: * ) ac_file_in=$ac_file.in ;;
1.1 parser 10161: esac
10162:
1.11 paf 10163: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10164: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 10165:
1.11 paf 10166: # First look for the input files in the build tree, otherwise in the
10167: # src tree.
10168: ac_file_inputs=`IFS=:
10169: for f in $ac_file_in; do
10170: case $f in
10171: -) echo $tmp/stdin ;;
10172: [\\/$]*)
1.18 paf 10173: # Absolute (can't be DOS-style, as IFS=:)
10174: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.11 paf 10175: echo "$as_me: error: cannot find input file: $f" >&2;}
10176: { (exit 1); exit 1; }; }
1.18 paf 10177: # Do quote $f, to prevent DOS paths from being IFS'd.
10178: echo "$f";;
1.11 paf 10179: *) # Relative
1.18 paf 10180: if test -f "$f"; then
10181: # Build tree
10182: echo "$f"
10183: elif test -f "$srcdir/$f"; then
10184: # Source tree
10185: echo "$srcdir/$f"
10186: else
10187: # /dev/null tree
10188: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.11 paf 10189: echo "$as_me: error: cannot find input file: $f" >&2;}
10190: { (exit 1); exit 1; }; }
1.18 paf 10191: fi;;
1.11 paf 10192: esac
10193: done` || { (exit 1); exit 1; }
10194: # Remove the trailing spaces.
1.18 paf 10195: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.11 paf 10196:
10197: _ACEOF
10198:
10199: # Transform confdefs.h into two sed scripts, `conftest.defines' and
10200: # `conftest.undefs', that substitutes the proper values into
10201: # config.h.in to produce config.h. The first handles `#define'
10202: # templates, and the second `#undef' templates.
10203: # And first: Protect against being on the right side of a sed subst in
10204: # config.status. Protect against being in an unquoted here document
10205: # in config.status.
10206: rm -f conftest.defines conftest.undefs
10207: # Using a here document instead of a string reduces the quoting nightmare.
10208: # Putting comments in sed scripts is not portable.
10209: #
10210: # `end' is used to avoid that the second main sed command (meant for
10211: # 0-ary CPP macros) applies to n-ary macro definitions.
10212: # See the Autoconf documentation for `clear'.
10213: cat >confdef2sed.sed <<\_ACEOF
10214: s/[\\&,]/\\&/g
10215: s,[\\$`],\\&,g
10216: t clear
10217: : clear
1.18 paf 10218: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.11 paf 10219: t end
1.18 paf 10220: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.11 paf 10221: : end
10222: _ACEOF
10223: # If some macros were called several times there might be several times
10224: # the same #defines, which is useless. Nevertheless, we may not want to
10225: # sort them, since we want the *last* AC-DEFINE to be honored.
10226: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10227: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10228: rm -f confdef2sed.sed
1.1 parser 10229:
10230: # This sed command replaces #undef with comments. This is necessary, for
10231: # example, in the case of _POSIX_SOURCE, which is predefined and required
10232: # on some systems where configure will not decide to define it.
1.11 paf 10233: cat >>conftest.undefs <<\_ACEOF
1.18 paf 10234: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.11 paf 10235: _ACEOF
10236:
10237: # Break up conftest.defines because some shells have a limit on the size
10238: # of here documents, and old seds have small limits too (100 cmds).
10239: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.18 paf 10240: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.11 paf 10241: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10242: echo ' :' >>$CONFIG_STATUS
10243: rm -f conftest.tail
10244: while grep . conftest.defines >/dev/null
10245: do
10246: # Write a limited-size here document to $tmp/defines.sed.
10247: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10248: # Speed up: don't consider the non `#define' lines.
1.18 paf 10249: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.11 paf 10250: # Work around the forget-to-reset-the-flag bug.
10251: echo 't clr' >>$CONFIG_STATUS
10252: echo ': clr' >>$CONFIG_STATUS
10253: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10254: echo 'CEOF
10255: sed -f $tmp/defines.sed $tmp/in >$tmp/out
10256: rm -f $tmp/in
10257: mv $tmp/out $tmp/in
10258: ' >>$CONFIG_STATUS
10259: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10260: rm -f conftest.defines
10261: mv conftest.tail conftest.defines
10262: done
10263: rm -f conftest.defines
10264: echo ' fi # grep' >>$CONFIG_STATUS
10265: echo >>$CONFIG_STATUS
10266:
10267: # Break up conftest.undefs because some shells have a limit on the size
10268: # of here documents, and old seds have small limits too (100 cmds).
10269: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 10270: rm -f conftest.tail
1.11 paf 10271: while grep . conftest.undefs >/dev/null
1.1 parser 10272: do
1.11 paf 10273: # Write a limited-size here document to $tmp/undefs.sed.
10274: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10275: # Speed up: don't consider the non `#undef'
1.18 paf 10276: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.11 paf 10277: # Work around the forget-to-reset-the-flag bug.
10278: echo 't clr' >>$CONFIG_STATUS
10279: echo ': clr' >>$CONFIG_STATUS
10280: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 10281: echo 'CEOF
1.11 paf 10282: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10283: rm -f $tmp/in
10284: mv $tmp/out $tmp/in
10285: ' >>$CONFIG_STATUS
10286: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10287: rm -f conftest.undefs
10288: mv conftest.tail conftest.undefs
10289: done
10290: rm -f conftest.undefs
10291:
10292: cat >>$CONFIG_STATUS <<\_ACEOF
10293: # Let's still pretend it is `configure' which instantiates (i.e., don't
10294: # use $as_me), people would be surprised to read:
10295: # /* config.h. Generated by config.status. */
10296: if test x"$ac_file" = x-; then
10297: echo "/* Generated by configure. */" >$tmp/config.h
10298: else
10299: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10300: fi
10301: cat $tmp/in >>$tmp/config.h
10302: rm -f $tmp/in
10303: if test x"$ac_file" != x-; then
10304: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10305: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10306: echo "$as_me: $ac_file is unchanged" >&6;}
10307: else
10308: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10309: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10310: X"$ac_file" : 'X\(//\)[^/]' \| \
10311: X"$ac_file" : 'X\(//\)$' \| \
10312: X"$ac_file" : 'X\(/\)' \| \
10313: . : '\(.\)' 2>/dev/null ||
1.11 paf 10314: echo X"$ac_file" |
10315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10316: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10317: /^X\(\/\/\)$/{ s//\1/; q; }
10318: /^X\(\/\).*/{ s//\1/; q; }
10319: s/.*/./; q'`
10320: { if $as_mkdir_p; then
10321: mkdir -p "$ac_dir"
10322: else
10323: as_dir="$ac_dir"
10324: as_dirs=
10325: while test ! -d "$as_dir"; do
10326: as_dirs="$as_dir $as_dirs"
10327: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10328: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10329: X"$as_dir" : 'X\(//\)[^/]' \| \
10330: X"$as_dir" : 'X\(//\)$' \| \
10331: X"$as_dir" : 'X\(/\)' \| \
10332: . : '\(.\)' 2>/dev/null ||
1.11 paf 10333: echo X"$as_dir" |
10334: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10335: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10336: /^X\(\/\/\)$/{ s//\1/; q; }
10337: /^X\(\/\).*/{ s//\1/; q; }
10338: s/.*/./; q'`
10339: done
10340: test ! -n "$as_dirs" || mkdir $as_dirs
10341: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10342: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10343: { (exit 1); exit 1; }; }; }
10344:
10345: rm -f $ac_file
10346: mv $tmp/config.h $ac_file
1.1 parser 10347: fi
1.11 paf 10348: else
10349: cat $tmp/config.h
10350: rm -f $tmp/config.h
1.1 parser 10351: fi
1.18 paf 10352: # Compute $ac_file's index in $config_headers.
10353: _am_stamp_count=1
10354: for _am_header in $config_headers :; do
10355: case $_am_header in
10356: $ac_file | $ac_file:* )
10357: break ;;
10358: * )
10359: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10360: esac
10361: done
1.11 paf 10362: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10363: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10364: X$ac_file : 'X\(//\)[^/]' \| \
10365: X$ac_file : 'X\(//\)$' \| \
10366: X$ac_file : 'X\(/\)' \| \
10367: . : '\(.\)' 2>/dev/null ||
1.11 paf 10368: echo X$ac_file |
10369: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10370: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10371: /^X\(\/\/\)$/{ s//\1/; q; }
10372: /^X\(\/\).*/{ s//\1/; q; }
10373: s/.*/./; q'`/stamp-h$_am_stamp_count
10374: done
10375: _ACEOF
10376: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10377:
1.11 paf 10378: #
10379: # CONFIG_COMMANDS section.
10380: #
10381: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10382: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10383: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10384: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10385: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10386: X"$ac_dest" : 'X\(//\)[^/]' \| \
10387: X"$ac_dest" : 'X\(//\)$' \| \
10388: X"$ac_dest" : 'X\(/\)' \| \
10389: . : '\(.\)' 2>/dev/null ||
1.11 paf 10390: echo X"$ac_dest" |
10391: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10392: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10393: /^X\(\/\/\)$/{ s//\1/; q; }
10394: /^X\(\/\).*/{ s//\1/; q; }
10395: s/.*/./; q'`
1.18 paf 10396: { if $as_mkdir_p; then
10397: mkdir -p "$ac_dir"
10398: else
10399: as_dir="$ac_dir"
10400: as_dirs=
10401: while test ! -d "$as_dir"; do
10402: as_dirs="$as_dir $as_dirs"
10403: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10404: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10405: X"$as_dir" : 'X\(//\)[^/]' \| \
10406: X"$as_dir" : 'X\(//\)$' \| \
10407: X"$as_dir" : 'X\(/\)' \| \
10408: . : '\(.\)' 2>/dev/null ||
10409: echo X"$as_dir" |
10410: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10411: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10412: /^X\(\/\/\)$/{ s//\1/; q; }
10413: /^X\(\/\).*/{ s//\1/; q; }
10414: s/.*/./; q'`
10415: done
10416: test ! -n "$as_dirs" || mkdir $as_dirs
10417: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10418: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10419: { (exit 1); exit 1; }; }; }
10420:
1.11 paf 10421: ac_builddir=.
10422:
10423: if test "$ac_dir" != .; then
10424: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10425: # A "../" for each directory in $ac_dir_suffix.
10426: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10427: else
10428: ac_dir_suffix= ac_top_builddir=
10429: fi
10430:
10431: case $srcdir in
10432: .) # No --srcdir option. We are building in place.
10433: ac_srcdir=.
10434: if test -z "$ac_top_builddir"; then
10435: ac_top_srcdir=.
10436: else
10437: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10438: fi ;;
10439: [\\/]* | ?:[\\/]* ) # Absolute path.
10440: ac_srcdir=$srcdir$ac_dir_suffix;
10441: ac_top_srcdir=$srcdir ;;
10442: *) # Relative path.
10443: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10444: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10445: esac
1.18 paf 10446:
10447: # Do not use `cd foo && pwd` to compute absolute paths, because
10448: # the directories may not exist.
10449: case `pwd` in
10450: .) ac_abs_builddir="$ac_dir";;
10451: *)
10452: case "$ac_dir" in
10453: .) ac_abs_builddir=`pwd`;;
10454: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10455: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10456: esac;;
10457: esac
10458: case $ac_abs_builddir in
10459: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10460: *)
10461: case ${ac_top_builddir}. in
10462: .) ac_abs_top_builddir=$ac_abs_builddir;;
10463: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10464: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10465: esac;;
10466: esac
10467: case $ac_abs_builddir in
10468: .) ac_abs_srcdir=$ac_srcdir;;
10469: *)
10470: case $ac_srcdir in
10471: .) ac_abs_srcdir=$ac_abs_builddir;;
10472: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10473: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10474: esac;;
10475: esac
10476: case $ac_abs_builddir in
10477: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10478: *)
10479: case $ac_top_srcdir in
10480: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10481: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10482: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10483: esac;;
10484: esac
1.11 paf 10485:
10486:
10487: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10488: echo "$as_me: executing $ac_dest commands" >&6;}
10489: case $ac_dest in
10490: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10491: # Strip MF so we end up with the name of the file.
10492: mf=`echo "$mf" | sed -e 's/:.*$//'`
10493: # Check whether this is an Automake generated Makefile or not.
10494: # We used to match only the files named `Makefile.in', but
10495: # some people rename them; so instead we look at the file content.
10496: # Grep'ing the first line is not enough: some people post-process
10497: # each Makefile.in and add a new line on top of each file to say so.
10498: # So let's grep whole file.
10499: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10500: dirpart=`(dirname "$mf") 2>/dev/null ||
10501: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10502: X"$mf" : 'X\(//\)[^/]' \| \
10503: X"$mf" : 'X\(//\)$' \| \
10504: X"$mf" : 'X\(/\)' \| \
10505: . : '\(.\)' 2>/dev/null ||
1.11 paf 10506: echo X"$mf" |
10507: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10508: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10509: /^X\(\/\/\)$/{ s//\1/; q; }
10510: /^X\(\/\).*/{ s//\1/; q; }
10511: s/.*/./; q'`
10512: else
10513: continue
10514: fi
1.18 paf 10515: # Extract the definition of DEPDIR, am__include, and am__quote
10516: # from the Makefile without running `make'.
10517: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.11 paf 10518: test -z "$DEPDIR" && continue
1.18 paf 10519: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10520: test -z "am__include" && continue
10521: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.11 paf 10522: # When using ansi2knr, U may be empty or an underscore; expand it
1.18 paf 10523: U=`sed -n 's/^U = //p' < "$mf"`
10524: # Find all dependency output files, they are included files with
10525: # $(DEPDIR) in their names. We invoke sed twice because it is the
10526: # simplest approach to changing $(DEPDIR) to its actual value in the
10527: # expansion.
10528: for file in `sed -n "
10529: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.11 paf 10530: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10531: # Make sure the directory exists.
10532: test -f "$dirpart/$file" && continue
10533: fdir=`(dirname "$file") 2>/dev/null ||
10534: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10535: X"$file" : 'X\(//\)[^/]' \| \
10536: X"$file" : 'X\(//\)$' \| \
10537: X"$file" : 'X\(/\)' \| \
10538: . : '\(.\)' 2>/dev/null ||
1.11 paf 10539: echo X"$file" |
10540: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10541: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10542: /^X\(\/\/\)$/{ s//\1/; q; }
10543: /^X\(\/\).*/{ s//\1/; q; }
10544: s/.*/./; q'`
10545: { if $as_mkdir_p; then
10546: mkdir -p $dirpart/$fdir
10547: else
10548: as_dir=$dirpart/$fdir
10549: as_dirs=
10550: while test ! -d "$as_dir"; do
10551: as_dirs="$as_dir $as_dirs"
10552: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10553: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10554: X"$as_dir" : 'X\(//\)[^/]' \| \
10555: X"$as_dir" : 'X\(//\)$' \| \
10556: X"$as_dir" : 'X\(/\)' \| \
10557: . : '\(.\)' 2>/dev/null ||
1.11 paf 10558: echo X"$as_dir" |
10559: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10560: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10561: /^X\(\/\/\)$/{ s//\1/; q; }
10562: /^X\(\/\).*/{ s//\1/; q; }
10563: s/.*/./; q'`
10564: done
10565: test ! -n "$as_dirs" || mkdir $as_dirs
10566: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10567: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10568: { (exit 1); exit 1; }; }; }
1.1 parser 10569:
1.11 paf 10570: # echo "creating $dirpart/$file"
10571: echo '# dummy' > "$dirpart/$file"
10572: done
10573: done
10574: ;;
10575: esac
10576: done
10577: _ACEOF
1.1 parser 10578:
1.11 paf 10579: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10580:
1.11 paf 10581: { (exit 0); exit 0; }
10582: _ACEOF
1.1 parser 10583: chmod +x $CONFIG_STATUS
1.11 paf 10584: ac_clean_files=$ac_clean_files_save
10585:
10586:
10587: # configure is writing to config.log, and then calls config.status.
10588: # config.status does its own redirection, appending to config.log.
10589: # Unfortunately, on DOS this fails, as config.log is still kept open
10590: # by configure, so config.status won't be able to write to it; its
10591: # output is simply discarded. So we exec the FD to /dev/null,
10592: # effectively closing config.log, so it can be properly (re)opened and
10593: # appended to by config.status. When coming back to configure, we
10594: # need to make the FD available again.
10595: if test "$no_create" != yes; then
10596: ac_cs_success=:
10597: ac_config_status_args=
10598: test "$silent" = yes &&
10599: ac_config_status_args="$ac_config_status_args --quiet"
10600: exec 5>/dev/null
10601: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10602: exec 5>>config.log
10603: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10604: # would make configure fail if this is the last instruction.
10605: $ac_cs_success || { (exit 1); exit 1; }
10606: fi
1.1 parser 10607:
1.11 paf 10608: #
10609: # CONFIG_SUBDIRS section.
10610: #
1.1 parser 10611: if test "$no_recursion" != yes; then
10612:
10613: # Remove --cache-file and --srcdir arguments so they do not pile up.
10614: ac_sub_configure_args=
10615: ac_prev=
10616: for ac_arg in $ac_configure_args; do
10617: if test -n "$ac_prev"; then
10618: ac_prev=
10619: continue
10620: fi
1.11 paf 10621: case $ac_arg in
1.1 parser 10622: -cache-file | --cache-file | --cache-fil | --cache-fi \
10623: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10624: ac_prev=cache_file ;;
10625: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.11 paf 10626: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10627: | --c=*)
10628: ;;
10629: --config-cache | -C)
1.1 parser 10630: ;;
10631: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10632: ac_prev=srcdir ;;
10633: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10634: ;;
1.11 paf 10635: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10636: ac_prev=prefix ;;
10637: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10638: ;;
1.1 parser 10639: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10640: esac
10641: done
10642:
1.11 paf 10643: # Always prepend --prefix to ensure using the same prefix
10644: # in subdir configurations.
10645: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10646:
10647: ac_popdir=`pwd`
10648: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 10649:
10650: # Do not complain, so a configure script can configure whichever
10651: # parts of a large source tree are present.
1.11 paf 10652: test -d $srcdir/$ac_dir || continue
1.1 parser 10653:
1.11 paf 10654: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10655: echo "$as_me: configuring in $ac_dir" >&6;}
10656: { if $as_mkdir_p; then
10657: mkdir -p "$ac_dir"
10658: else
10659: as_dir="$ac_dir"
10660: as_dirs=
10661: while test ! -d "$as_dir"; do
10662: as_dirs="$as_dir $as_dirs"
10663: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10664: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 10665: X"$as_dir" : 'X\(//\)[^/]' \| \
10666: X"$as_dir" : 'X\(//\)$' \| \
10667: X"$as_dir" : 'X\(/\)' \| \
10668: . : '\(.\)' 2>/dev/null ||
1.11 paf 10669: echo X"$as_dir" |
10670: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10671: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10672: /^X\(\/\/\)$/{ s//\1/; q; }
10673: /^X\(\/\).*/{ s//\1/; q; }
10674: s/.*/./; q'`
10675: done
10676: test ! -n "$as_dirs" || mkdir $as_dirs
10677: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10678: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10679: { (exit 1); exit 1; }; }; }
10680:
10681: ac_builddir=.
10682:
10683: if test "$ac_dir" != .; then
10684: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10685: # A "../" for each directory in $ac_dir_suffix.
10686: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10687: else
10688: ac_dir_suffix= ac_top_builddir=
10689: fi
10690:
10691: case $srcdir in
10692: .) # No --srcdir option. We are building in place.
10693: ac_srcdir=.
10694: if test -z "$ac_top_builddir"; then
10695: ac_top_srcdir=.
10696: else
10697: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10698: fi ;;
10699: [\\/]* | ?:[\\/]* ) # Absolute path.
10700: ac_srcdir=$srcdir$ac_dir_suffix;
10701: ac_top_srcdir=$srcdir ;;
10702: *) # Relative path.
10703: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10704: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10705: esac
1.18 paf 10706:
10707: # Do not use `cd foo && pwd` to compute absolute paths, because
10708: # the directories may not exist.
10709: case `pwd` in
10710: .) ac_abs_builddir="$ac_dir";;
10711: *)
10712: case "$ac_dir" in
10713: .) ac_abs_builddir=`pwd`;;
10714: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10715: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10716: esac;;
10717: esac
10718: case $ac_abs_builddir in
10719: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10720: *)
10721: case ${ac_top_builddir}. in
10722: .) ac_abs_top_builddir=$ac_abs_builddir;;
10723: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10724: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10725: esac;;
10726: esac
10727: case $ac_abs_builddir in
10728: .) ac_abs_srcdir=$ac_srcdir;;
10729: *)
10730: case $ac_srcdir in
10731: .) ac_abs_srcdir=$ac_abs_builddir;;
10732: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10733: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10734: esac;;
10735: esac
10736: case $ac_abs_builddir in
10737: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10738: *)
10739: case $ac_top_srcdir in
10740: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10741: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10742: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10743: esac;;
10744: esac
1.1 parser 10745:
10746:
1.11 paf 10747: cd $ac_dir
1.1 parser 10748:
10749: # Check for guested configure; otherwise get Cygnus style configure.
1.11 paf 10750: if test -f $ac_srcdir/configure.gnu; then
10751: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10752: elif test -f $ac_srcdir/configure; then
10753: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10754: elif test -f $ac_srcdir/configure.in; then
1.1 parser 10755: ac_sub_configure=$ac_configure
10756: else
1.11 paf 10757: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10758: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 10759: ac_sub_configure=
10760: fi
10761:
10762: # The recursion is here.
10763: if test -n "$ac_sub_configure"; then
10764: # Make the cache file name correct relative to the subdirectory.
1.11 paf 10765: case $cache_file in
10766: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10767: *) # Relative path.
1.18 paf 10768: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10769: esac
10770:
1.11 paf 10771: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10772: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10773: # The eval makes quoting arguments work.
1.11 paf 10774: eval $ac_sub_configure $ac_sub_configure_args \
1.18 paf 10775: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10776: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.11 paf 10777: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10778: { (exit 1); exit 1; }; }
1.1 parser 10779: fi
10780:
10781: cd $ac_popdir
10782: done
10783: fi
10784:
E-mail: