Annotation of sql/pgsql/configure, revision 1.21
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.16 paf 3: # Generated by GNU Autoconf 2.59.
1.1 parser 4: #
1.16 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.10 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.16 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.10 paf 23:
24: # Support unset when possible.
1.16 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.10 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.16 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.10 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.16 paf 221: test -d ./-p && rmdir ./-p
1.10 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.16 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.16 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 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.10 paf 408: exec 6>&1
409:
410: #
411: # Initializations.
412: #
1.1 parser 413: ac_default_prefix=/usr/local
1.10 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="parser3pgsql.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.21 ! misha 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 PGSQL_INC LDFLAGS CXX CXXFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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.10 paf 473: ac_subst_files=''
1.1 parser 474:
475: # Initialize some variables set by options.
1.10 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.10 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.10 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.10 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.10 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.10 paf 532: bindir=$ac_optarg ;;
1.1 parser 533:
534: -build | --build | --buil | --bui | --bu)
1.10 paf 535: ac_prev=build_alias ;;
1.1 parser 536: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.10 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.10 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.10 paf 553: datadir=$ac_optarg ;;
1.1 parser 554:
555: -disable-* | --disable-*)
1.10 paf 556: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 557: # Reject names that are not valid shell variable names.
1.10 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.10 paf 565: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 566: # Reject names that are not valid shell variable names.
1.10 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.10 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.10 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.10 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.10 paf 598: ac_prev=host_alias ;;
1.1 parser 599: -host=* | --host=* | --hos=* | --ho=*)
1.10 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.10 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.10 paf 612: infodir=$ac_optarg ;;
1.1 parser 613:
614: -libdir | --libdir | --libdi | --libd)
615: ac_prev=libdir ;;
616: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.10 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.10 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.10 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.10 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.10 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.10 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.10 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.10 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.10 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.10 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.10 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.10 paf 716: sharedstatedir=$ac_optarg ;;
1.1 parser 717:
718: -site | --site | --sit)
719: ac_prev=site ;;
720: -site=* | --site=* | --sit=*)
1.10 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.10 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.10 paf 733: sysconfdir=$ac_optarg ;;
1.1 parser 734:
735: -target | --target | --targe | --targ | --tar | --ta | --t)
1.10 paf 736: ac_prev=target_alias ;;
1.1 parser 737: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.10 paf 738: target_alias=$ac_optarg ;;
1.1 parser 739:
740: -v | -verbose | --verbose | --verbos | --verbo | --verb)
741: verbose=yes ;;
742:
1.10 paf 743: -version | --version | --versio | --versi | --vers | -V)
744: ac_init_version=: ;;
1.1 parser 745:
746: -with-* | --with-*)
1.10 paf 747: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 748: # Reject names that are not valid shell variable names.
1.10 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.10 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.10 paf 757: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 758:
759: -without-* | --without-*)
1.10 paf 760: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 761: # Reject names that are not valid shell variable names.
1.10 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.10 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.10 paf 784: x_libraries=$ac_optarg ;;
1.1 parser 785:
1.10 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.10 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.10 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.10 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.10 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.10 paf 829: # Be sure to have absolute paths.
830: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.16 paf 831: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 832: do
1.10 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.10 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.10 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.10 paf 869: ac_confdir=`(dirname "$0") 2>/dev/null ||
870: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 871: X"$0" : 'X\(//\)[^/]' \| \
872: X"$0" : 'X\(//\)$' \| \
873: X"$0" : 'X\(/\)' \| \
874: . : '\(.\)' 2>/dev/null ||
1.10 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.10 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.10 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.10 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.10 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.16 paf 974: [$ac_default_prefix]
1.10 paf 975: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.16 paf 976: [PREFIX]
1.10 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.16 paf 1020: --disable-dependency-tracking speeds up one-time build
1021: --enable-dependency-tracking do not reject slow dependency extractors
1.10 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-pgsql-inc=DIR DIR is the PgSQL includes directory
1.21 ! misha 1031: --with-dynamic-stdcpp link libstdc++ dynamically
! 1032: by default, libstdc++ is linked statically
1.10 paf 1033: --with-gnu-ld assume the C compiler uses GNU ld default=no
1034: --with-pic try to use only PIC/non-PIC objects default=use both
1035:
1036: Some influential environment variables:
1037: CXX C++ compiler command
1038: CXXFLAGS C++ compiler flags
1039: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040: nonstandard directory <lib dir>
1041: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042: headers in a nonstandard directory <include dir>
1043: CC C compiler command
1044: CFLAGS C compiler flags
1.15 paf 1045: CPP C preprocessor
1.10 paf 1046:
1047: Use these variables to override the choices made by `configure' or to help
1048: it to find libraries and programs with nonstandard names/locations.
1049:
1050: _ACEOF
1051: fi
1052:
1053: if test "$ac_init_help" = "recursive"; then
1054: # If there are subdirs, report their specific --help.
1055: ac_popdir=`pwd`
1056: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057: test -d $ac_dir || continue
1058: ac_builddir=.
1059:
1060: if test "$ac_dir" != .; then
1061: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062: # A "../" for each directory in $ac_dir_suffix.
1063: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064: else
1065: ac_dir_suffix= ac_top_builddir=
1066: fi
1067:
1068: case $srcdir in
1069: .) # No --srcdir option. We are building in place.
1070: ac_srcdir=.
1071: if test -z "$ac_top_builddir"; then
1072: ac_top_srcdir=.
1073: else
1074: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075: fi ;;
1076: [\\/]* | ?:[\\/]* ) # Absolute path.
1077: ac_srcdir=$srcdir$ac_dir_suffix;
1078: ac_top_srcdir=$srcdir ;;
1079: *) # Relative path.
1080: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082: esac
1.16 paf 1083:
1084: # Do not use `cd foo && pwd` to compute absolute paths, because
1085: # the directories may not exist.
1086: case `pwd` in
1087: .) ac_abs_builddir="$ac_dir";;
1088: *)
1089: case "$ac_dir" in
1090: .) ac_abs_builddir=`pwd`;;
1091: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092: *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093: esac;;
1094: esac
1095: case $ac_abs_builddir in
1096: .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097: *)
1098: case ${ac_top_builddir}. in
1099: .) ac_abs_top_builddir=$ac_abs_builddir;;
1100: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102: esac;;
1103: esac
1104: case $ac_abs_builddir in
1105: .) ac_abs_srcdir=$ac_srcdir;;
1106: *)
1107: case $ac_srcdir in
1108: .) ac_abs_srcdir=$ac_abs_builddir;;
1109: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111: esac;;
1112: esac
1113: case $ac_abs_builddir in
1114: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115: *)
1116: case $ac_top_srcdir in
1117: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120: esac;;
1121: esac
1.10 paf 1122:
1123: cd $ac_dir
1124: # Check for guested configure; otherwise get Cygnus style configure.
1125: if test -f $ac_srcdir/configure.gnu; then
1126: echo
1127: $SHELL $ac_srcdir/configure.gnu --help=recursive
1128: elif test -f $ac_srcdir/configure; then
1129: echo
1130: $SHELL $ac_srcdir/configure --help=recursive
1131: elif test -f $ac_srcdir/configure.ac ||
1.16 paf 1132: test -f $ac_srcdir/configure.in; then
1.10 paf 1133: echo
1134: $ac_configure --help
1135: else
1136: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137: fi
1138: cd $ac_popdir
1139: done
1140: fi
1.1 parser 1141:
1.10 paf 1142: test -n "$ac_init_help" && exit 0
1143: if $ac_init_version; then
1144: cat <<\_ACEOF
1145:
1.16 paf 1146: Copyright (C) 2003 Free Software Foundation, Inc.
1.10 paf 1147: This configure script is free software; the Free Software Foundation
1148: gives unlimited permission to copy, distribute and modify it.
1149: _ACEOF
1150: exit 0
1151: fi
1152: exec 5>config.log
1153: cat >&5 <<_ACEOF
1154: This file contains any messages produced by compilers while
1155: running configure, to aid debugging if configure makes a mistake.
1156:
1157: It was created by $as_me, which was
1.16 paf 1158: generated by GNU Autoconf 2.59. Invocation command line was
1.10 paf 1159:
1160: $ $0 $@
1161:
1162: _ACEOF
1163: {
1164: cat <<_ASUNAME
1165: ## --------- ##
1166: ## Platform. ##
1167: ## --------- ##
1168:
1169: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174:
1175: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177:
1178: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185:
1186: _ASUNAME
1187:
1188: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189: for as_dir in $PATH
1190: do
1191: IFS=$as_save_IFS
1192: test -z "$as_dir" && as_dir=.
1193: echo "PATH: $as_dir"
1194: done
1195:
1196: } >&5
1197:
1198: cat >&5 <<_ACEOF
1199:
1200:
1201: ## ----------- ##
1202: ## Core tests. ##
1203: ## ----------- ##
1204:
1205: _ACEOF
1206:
1207:
1208: # Keep a trace of the command line.
1209: # Strip out --no-create and --no-recursion so they do not pile up.
1210: # Strip out --silent because we don't want to record it for future runs.
1211: # Also quote any args containing shell meta-characters.
1212: # Make two passes to allow for proper duplicate-argument suppression.
1213: ac_configure_args=
1214: ac_configure_args0=
1215: ac_configure_args1=
1216: ac_sep=
1217: ac_must_keep_next=false
1218: for ac_pass in 1 2
1219: do
1220: for ac_arg
1221: do
1222: case $ac_arg in
1223: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225: | -silent | --silent | --silen | --sile | --sil)
1226: continue ;;
1227: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229: esac
1230: case $ac_pass in
1231: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232: 2)
1233: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234: if test $ac_must_keep_next = true; then
1.16 paf 1235: ac_must_keep_next=false # Got value, back to normal.
1.10 paf 1236: else
1.16 paf 1237: case $ac_arg in
1238: *=* | --config-cache | -C | -disable-* | --disable-* \
1239: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241: | -with-* | --with-* | -without-* | --without-* | --x)
1242: case "$ac_configure_args0 " in
1243: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244: esac
1245: ;;
1246: -* ) ac_must_keep_next=true ;;
1247: esac
1.10 paf 1248: fi
1249: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250: # Get rid of the leading space.
1251: ac_sep=" "
1252: ;;
1253: esac
1254: done
1255: done
1256: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258:
1259: # When interrupted or exit'd, cleanup temporary files, and complete
1260: # config.log. We remove comments because anyway the quotes in there
1261: # would cause problems or look ugly.
1262: # WARNING: Be sure not to use single quotes in there, as some shells,
1263: # such as our DU 5.0 friend, will then `close' the trap.
1264: trap 'exit_status=$?
1265: # Save into config.log some information that might help in debugging.
1266: {
1267: echo
1268:
1269: cat <<\_ASBOX
1270: ## ---------------- ##
1271: ## Cache variables. ##
1272: ## ---------------- ##
1273: _ASBOX
1274: echo
1275: # The following way of writing the cache mishandles newlines in values,
1276: {
1277: (set) 2>&1 |
1278: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279: *ac_space=\ *)
1280: sed -n \
1.16 paf 1281: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.10 paf 1283: ;;
1284: *)
1285: sed -n \
1.16 paf 1286: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.10 paf 1287: ;;
1288: esac;
1289: }
1290: echo
1291:
1292: cat <<\_ASBOX
1293: ## ----------------- ##
1294: ## Output variables. ##
1295: ## ----------------- ##
1296: _ASBOX
1297: echo
1298: for ac_var in $ac_subst_vars
1299: do
1300: eval ac_val=$`echo $ac_var`
1301: echo "$ac_var='"'"'$ac_val'"'"'"
1302: done | sort
1303: echo
1304:
1305: if test -n "$ac_subst_files"; then
1306: cat <<\_ASBOX
1307: ## ------------- ##
1308: ## Output files. ##
1309: ## ------------- ##
1310: _ASBOX
1311: echo
1312: for ac_var in $ac_subst_files
1313: do
1314: eval ac_val=$`echo $ac_var`
1.16 paf 1315: echo "$ac_var='"'"'$ac_val'"'"'"
1.10 paf 1316: done | sort
1317: echo
1318: fi
1319:
1320: if test -s confdefs.h; then
1321: cat <<\_ASBOX
1322: ## ----------- ##
1323: ## confdefs.h. ##
1324: ## ----------- ##
1325: _ASBOX
1326: echo
1327: sed "/^$/d" confdefs.h | sort
1328: echo
1329: fi
1330: test "$ac_signal" != 0 &&
1331: echo "$as_me: caught signal $ac_signal"
1332: echo "$as_me: exit $exit_status"
1333: } >&5
1.16 paf 1334: rm -f core *.core &&
1.10 paf 1335: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336: exit $exit_status
1337: ' 0
1338: for ac_signal in 1 2 13 15; do
1339: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340: done
1341: ac_signal=0
1342:
1343: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344: rm -rf conftest* confdefs.h
1345: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346: echo >confdefs.h
1347:
1348: # Predefined preprocessor variables.
1349:
1350: cat >>confdefs.h <<_ACEOF
1351: #define PACKAGE_NAME "$PACKAGE_NAME"
1352: _ACEOF
1353:
1354:
1355: cat >>confdefs.h <<_ACEOF
1356: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357: _ACEOF
1358:
1359:
1360: cat >>confdefs.h <<_ACEOF
1361: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362: _ACEOF
1363:
1364:
1365: cat >>confdefs.h <<_ACEOF
1366: #define PACKAGE_STRING "$PACKAGE_STRING"
1367: _ACEOF
1368:
1369:
1370: cat >>confdefs.h <<_ACEOF
1371: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372: _ACEOF
1373:
1374:
1375: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1376: # Prefer explicitly selected file to automatically selected ones.
1377: if test -z "$CONFIG_SITE"; then
1378: if test "x$prefix" != xNONE; then
1379: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380: else
1381: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382: fi
1383: fi
1384: for ac_site_file in $CONFIG_SITE; do
1385: if test -r "$ac_site_file"; then
1.10 paf 1386: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387: echo "$as_me: loading site script $ac_site_file" >&6;}
1388: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1389: . "$ac_site_file"
1390: fi
1391: done
1392:
1393: if test -r "$cache_file"; then
1.10 paf 1394: # Some versions of bash will fail to source /dev/null (special
1395: # files actually), so we avoid doing that.
1396: if test -f "$cache_file"; then
1397: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398: echo "$as_me: loading cache $cache_file" >&6;}
1399: case $cache_file in
1400: [\\/]* | ?:[\\/]* ) . $cache_file;;
1401: *) . ./$cache_file;;
1402: esac
1403: fi
1.1 parser 1404: else
1.10 paf 1405: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406: echo "$as_me: creating cache $cache_file" >&6;}
1407: >$cache_file
1408: fi
1409:
1410: # Check that the precious variables saved in the cache have kept the same
1411: # value.
1412: ac_cache_corrupted=false
1413: for ac_var in `(set) 2>&1 |
1.16 paf 1414: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.10 paf 1415: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416: eval ac_new_set=\$ac_env_${ac_var}_set
1417: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418: eval ac_new_val="\$ac_env_${ac_var}_value"
1419: case $ac_old_set,$ac_new_set in
1420: set,)
1421: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423: ac_cache_corrupted=: ;;
1424: ,set)
1425: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427: ac_cache_corrupted=: ;;
1428: ,);;
1429: *)
1430: if test "x$ac_old_val" != "x$ac_new_val"; then
1.16 paf 1431: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.10 paf 1432: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.16 paf 1433: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.10 paf 1434: echo "$as_me: former value: $ac_old_val" >&2;}
1.16 paf 1435: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.10 paf 1436: echo "$as_me: current value: $ac_new_val" >&2;}
1.16 paf 1437: ac_cache_corrupted=:
1.10 paf 1438: fi;;
1439: esac
1440: # Pass precious variables to config.status.
1441: if test "$ac_new_set" = set; then
1442: case $ac_new_val in
1443: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445: *) ac_arg=$ac_var=$ac_new_val ;;
1446: esac
1447: case " $ac_configure_args " in
1448: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450: esac
1451: fi
1452: done
1453: if $ac_cache_corrupted; then
1454: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458: { (exit 1); exit 1; }; }
1.1 parser 1459: fi
1460:
1461: ac_ext=c
1462: ac_cpp='$CPP $CPPFLAGS'
1.10 paf 1463: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1466:
1467:
1.10 paf 1468:
1469:
1470:
1471:
1472:
1473:
1474:
1475:
1476:
1477:
1478:
1479:
1480:
1481:
1482:
1483:
1484:
1.16 paf 1485: am__api_version="1.9"
1.1 parser 1486: ac_aux_dir=
1487: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488: if test -f $ac_dir/install-sh; then
1489: ac_aux_dir=$ac_dir
1490: ac_install_sh="$ac_aux_dir/install-sh -c"
1491: break
1492: elif test -f $ac_dir/install.sh; then
1493: ac_aux_dir=$ac_dir
1494: ac_install_sh="$ac_aux_dir/install.sh -c"
1495: break
1.10 paf 1496: elif test -f $ac_dir/shtool; then
1497: ac_aux_dir=$ac_dir
1498: ac_install_sh="$ac_aux_dir/shtool install -c"
1499: break
1.1 parser 1500: fi
1501: done
1502: if test -z "$ac_aux_dir"; then
1.10 paf 1503: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505: { (exit 1); exit 1; }; }
1506: fi
1507: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1510:
1511: # Find a good install program. We prefer a C program (faster),
1512: # so one script is as good as another. But avoid the broken or
1513: # incompatible versions:
1514: # SysV /etc/install, /usr/sbin/install
1515: # SunOS /usr/etc/install
1516: # IRIX /sbin/install
1517: # AIX /bin/install
1.10 paf 1518: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1519: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1520: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1521: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 1522: # OS/2's system install, which has a completely different semantic
1.1 parser 1523: # ./install, which can be erroneously created by make from ./install.sh.
1.10 paf 1524: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1525: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1526: if test -z "$INSTALL"; then
1.10 paf 1527: if test "${ac_cv_path_install+set}" = set; then
1528: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1529: else
1.10 paf 1530: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531: for as_dir in $PATH
1532: do
1533: IFS=$as_save_IFS
1534: test -z "$as_dir" && as_dir=.
1535: # Account for people who put trailing slashes in PATH elements.
1536: case $as_dir/ in
1537: ./ | .// | /cC/* | \
1538: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.16 paf 1539: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.10 paf 1540: /usr/ucb/* ) ;;
1541: *)
1542: # OSF1 and SCO ODT 3.0 have their own names for install.
1543: # Don't use installbsd from OSF since it installs stuff as root
1544: # by default.
1545: for ac_prog in ginstall scoinst install; do
1546: for ac_exec_ext in '' $ac_executable_extensions; do
1.16 paf 1547: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1548: if test $ac_prog = install &&
1549: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1550: # AIX install. It has an incompatible calling convention.
1551: :
1552: elif test $ac_prog = install &&
1553: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554: # program-specific install script used by HP pwplus--don't use.
1555: :
1556: else
1557: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1558: break 3
1559: fi
1560: fi
1.1 parser 1561: done
1.10 paf 1562: done
1563: ;;
1564: esac
1565: done
1566:
1.1 parser 1567:
1568: fi
1569: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 1570: INSTALL=$ac_cv_path_install
1.1 parser 1571: else
1572: # As a last resort, use the slow shell script. We don't cache a
1573: # path for INSTALL within a source directory, because that will
1574: # break other packages using the cache if that directory is
1575: # removed, or if the path is relative.
1.10 paf 1576: INSTALL=$ac_install_sh
1.1 parser 1577: fi
1578: fi
1.10 paf 1579: echo "$as_me:$LINENO: result: $INSTALL" >&5
1580: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1581:
1582: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1583: # It thinks the first close brace ends the variable substitution.
1584: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1585:
1.10 paf 1586: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1587:
1588: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1589:
1.10 paf 1590: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1591: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1592: # Just in case
1593: sleep 1
1.10 paf 1594: echo timestamp > conftest.file
1.1 parser 1595: # Do `set' in a subshell so we don't clobber the current shell's
1596: # arguments. Must try -L first in case configure is actually a
1597: # symlink; some systems play weird games with the mod time of symlinks
1598: # (eg FreeBSD returns the mod time of the symlink's containing
1599: # directory).
1600: if (
1.10 paf 1601: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1602: if test "$*" = "X"; then
1603: # -L didn't work.
1.10 paf 1604: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1605: fi
1.10 paf 1606: rm -f conftest.file
1607: if test "$*" != "X $srcdir/configure conftest.file" \
1608: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1609:
1610: # If neither matched, then we have a broken ls. This can happen
1611: # if, for instance, CONFIG_SHELL is bash and it inherits a
1612: # broken ls alias from the environment. This has actually
1613: # happened. Such a system could not be considered "sane".
1.10 paf 1614: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1615: alias in your environment" >&5
1616: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1617: alias in your environment" >&2;}
1618: { (exit 1); exit 1; }; }
1.1 parser 1619: fi
1620:
1.10 paf 1621: test "$2" = conftest.file
1.1 parser 1622: )
1623: then
1624: # Ok.
1625: :
1626: else
1.10 paf 1627: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1628: Check your system clock" >&5
1629: echo "$as_me: error: newly created file is older than distributed files!
1630: Check your system clock" >&2;}
1631: { (exit 1); exit 1; }; }
1.1 parser 1632: fi
1.10 paf 1633: echo "$as_me:$LINENO: result: yes" >&5
1634: echo "${ECHO_T}yes" >&6
1.1 parser 1635: test "$program_prefix" != NONE &&
1.10 paf 1636: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1637: # Use a double $ so make ignores it.
1638: test "$program_suffix" != NONE &&
1.10 paf 1639: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1640: # Double any \ or $. echo might interpret backslashes.
1641: # By default was `s,x,x', remove it if useless.
1642: cat <<\_ACEOF >conftest.sed
1643: s/[\\$]/&&/g;s/;s,x,x,$//
1644: _ACEOF
1645: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1646: rm conftest.sed
1647:
1648: # expand $ac_aux_dir to an absolute path
1649: am_aux_dir=`cd $ac_aux_dir && pwd`
1650:
1651: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1652: # Use eval to expand $SHELL
1653: if eval "$MISSING --run true"; then
1654: am_missing_run="$MISSING --run "
1655: else
1656: am_missing_run=
1657: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1658: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1659: fi
1660:
1.16 paf 1661: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1662: # We used to keeping the `.' as first argument, in order to
1663: # allow $(mkdir_p) to be used without argument. As in
1664: # $(mkdir_p) $(somedir)
1665: # where $(somedir) is conditionally defined. However this is wrong
1666: # for two reasons:
1667: # 1. if the package is installed by a user who cannot write `.'
1668: # make install will fail,
1669: # 2. the above comment should most certainly read
1670: # $(mkdir_p) $(DESTDIR)$(somedir)
1671: # so it does not work when $(somedir) is undefined and
1672: # $(DESTDIR) is not.
1673: # To support the latter case, we have to write
1674: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1675: # so the `.' trick is pointless.
1676: mkdir_p='mkdir -p --'
1677: else
1678: # On NextStep and OpenStep, the `mkdir' command does not
1679: # recognize any option. It will interpret all options as
1680: # directories to create, and then abort because `.' already
1681: # exists.
1682: for d in ./-p ./--version;
1683: do
1684: test -d $d && rmdir $d
1685: done
1686: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1687: if test -f "$ac_aux_dir/mkinstalldirs"; then
1688: mkdir_p='$(mkinstalldirs)'
1689: else
1690: mkdir_p='$(install_sh) -d'
1691: fi
1692: fi
1693:
1.10 paf 1694: for ac_prog in gawk mawk nawk awk
1695: do
1696: # Extract the first word of "$ac_prog", so it can be a program name with args.
1697: set dummy $ac_prog; ac_word=$2
1698: echo "$as_me:$LINENO: checking for $ac_word" >&5
1699: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700: if test "${ac_cv_prog_AWK+set}" = set; then
1701: echo $ECHO_N "(cached) $ECHO_C" >&6
1702: else
1703: if test -n "$AWK"; then
1704: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1705: else
1706: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707: for as_dir in $PATH
1708: do
1709: IFS=$as_save_IFS
1710: test -z "$as_dir" && as_dir=.
1711: for ac_exec_ext in '' $ac_executable_extensions; do
1712: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713: ac_cv_prog_AWK="$ac_prog"
1714: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715: break 2
1716: fi
1717: done
1718: done
1719:
1720: fi
1721: fi
1722: AWK=$ac_cv_prog_AWK
1723: if test -n "$AWK"; then
1724: echo "$as_me:$LINENO: result: $AWK" >&5
1725: echo "${ECHO_T}$AWK" >&6
1726: else
1727: echo "$as_me:$LINENO: result: no" >&5
1728: echo "${ECHO_T}no" >&6
1729: fi
1.1 parser 1730:
1.10 paf 1731: test -n "$AWK" && break
1732: done
1.1 parser 1733:
1.10 paf 1734: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1735: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.16 paf 1736: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.10 paf 1737: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1738: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1739: else
1.10 paf 1740: cat >conftest.make <<\_ACEOF
1.1 parser 1741: all:
1.10 paf 1742: @echo 'ac_maketemp="$(MAKE)"'
1743: _ACEOF
1.1 parser 1744: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.10 paf 1745: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1746: if test -n "$ac_maketemp"; then
1747: eval ac_cv_prog_make_${ac_make}_set=yes
1748: else
1749: eval ac_cv_prog_make_${ac_make}_set=no
1750: fi
1.10 paf 1751: rm -f conftest.make
1.1 parser 1752: fi
1753: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.10 paf 1754: echo "$as_me:$LINENO: result: yes" >&5
1755: echo "${ECHO_T}yes" >&6
1.1 parser 1756: SET_MAKE=
1757: else
1.10 paf 1758: echo "$as_me:$LINENO: result: no" >&5
1759: echo "${ECHO_T}no" >&6
1.1 parser 1760: SET_MAKE="MAKE=${MAKE-make}"
1761: fi
1762:
1.16 paf 1763: rm -rf .tst 2>/dev/null
1764: mkdir .tst 2>/dev/null
1765: if test -d .tst; then
1766: am__leading_dot=.
1767: else
1768: am__leading_dot=_
1769: fi
1770: rmdir .tst 2>/dev/null
1771:
1772: # test to see if srcdir already configured
1.10 paf 1773: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1774: test -f $srcdir/config.status; then
1775: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1776: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1777: { (exit 1); exit 1; }; }
1778: fi
1779:
1780: # test whether we have cygpath
1781: if test -z "$CYGPATH_W"; then
1782: if (cygpath --version) >/dev/null 2>/dev/null; then
1783: CYGPATH_W='cygpath -w'
1784: else
1785: CYGPATH_W=echo
1786: fi
1787: fi
1788:
1789:
1790: # Define the identity of the package.
1791: PACKAGE=parser3pgsql
1.20 misha 1792: VERSION=10.1
1.1 parser 1793:
1794:
1.10 paf 1795: # Some tools Automake needs.
1796:
1797: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1798:
1799:
1800: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1801:
1802:
1803: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1804:
1805:
1806: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1807:
1808:
1809: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1810:
1.10 paf 1811: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1812:
1.10 paf 1813: # Installed binaries are usually stripped using `strip' when the user
1814: # run `make install-strip'. However `strip' might not be the right
1815: # tool to use in cross-compilation environments, therefore Automake
1816: # will honor the `STRIP' environment variable to overrule this program.
1817: if test "$cross_compiling" != no; then
1818: if test -n "$ac_tool_prefix"; then
1819: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1820: set dummy ${ac_tool_prefix}strip; ac_word=$2
1821: echo "$as_me:$LINENO: checking for $ac_word" >&5
1822: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823: if test "${ac_cv_prog_STRIP+set}" = set; then
1824: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1825: else
1.10 paf 1826: if test -n "$STRIP"; then
1827: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1828: else
1829: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830: for as_dir in $PATH
1831: do
1832: IFS=$as_save_IFS
1833: test -z "$as_dir" && as_dir=.
1834: for ac_exec_ext in '' $ac_executable_extensions; do
1835: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1837: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838: break 2
1839: fi
1840: done
1841: done
1842:
1843: fi
1844: fi
1845: STRIP=$ac_cv_prog_STRIP
1846: if test -n "$STRIP"; then
1847: echo "$as_me:$LINENO: result: $STRIP" >&5
1848: echo "${ECHO_T}$STRIP" >&6
1849: else
1850: echo "$as_me:$LINENO: result: no" >&5
1851: echo "${ECHO_T}no" >&6
1.1 parser 1852: fi
1853:
1.10 paf 1854: fi
1855: if test -z "$ac_cv_prog_STRIP"; then
1856: ac_ct_STRIP=$STRIP
1857: # Extract the first word of "strip", so it can be a program name with args.
1858: set dummy strip; ac_word=$2
1859: echo "$as_me:$LINENO: checking for $ac_word" >&5
1860: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1862: echo $ECHO_N "(cached) $ECHO_C" >&6
1863: else
1864: if test -n "$ac_ct_STRIP"; then
1865: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1866: else
1.10 paf 1867: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868: for as_dir in $PATH
1869: do
1870: IFS=$as_save_IFS
1871: test -z "$as_dir" && as_dir=.
1872: for ac_exec_ext in '' $ac_executable_extensions; do
1873: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874: ac_cv_prog_ac_ct_STRIP="strip"
1875: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876: break 2
1877: fi
1878: done
1879: done
1880:
1881: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1882: fi
1.1 parser 1883: fi
1.10 paf 1884: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1885: if test -n "$ac_ct_STRIP"; then
1886: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1887: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1888: else
1.10 paf 1889: echo "$as_me:$LINENO: result: no" >&5
1890: echo "${ECHO_T}no" >&6
1.1 parser 1891: fi
1892:
1.10 paf 1893: STRIP=$ac_ct_STRIP
1.1 parser 1894: else
1.10 paf 1895: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1896: fi
1897:
1898: fi
1.10 paf 1899: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1900:
1.10 paf 1901: # We need awk for the "check" target. The system "awk" is bad on
1902: # some platforms.
1.16 paf 1903: # Always define AMTAR for backward compatibility.
1904:
1905: AMTAR=${AMTAR-"${am_missing_run}tar"}
1906:
1907: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1908:
1909:
1.1 parser 1910:
1911:
1912:
1913:
1.10 paf 1914: ac_config_headers="$ac_config_headers config_auto.h"
1915:
1.1 parser 1916:
1917:
1918:
1.2 parser 1919: # Check whether --with-pgsql-inc or --without-pgsql-inc was given.
1.1 parser 1920: if test "${with_pgsql_inc+set}" = set; then
1921: withval="$with_pgsql_inc"
1.10 paf 1922:
1.1 parser 1923: else
1924: withval="/usr/local/pgsql/include"
1925:
1.10 paf 1926: fi;
1.1 parser 1927: PGSQL_INC=$withval
1928:
1929:
1.2 parser 1930: if test \! -f "$PGSQL_INC/libpq-fe.h"; then
1.10 paf 1931: { { echo "$as_me:$LINENO: error: $PGSQL_INC does not seem to be valid PgSQL includes directory" >&5
1932: echo "$as_me: error: $PGSQL_INC does not seem to be valid PgSQL includes directory" >&2;}
1933: { (exit 1); exit 1; }; }
1.2 parser 1934: fi
1.1 parser 1935:
1.21 ! misha 1936:
! 1937:
! 1938: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
! 1939: if test "${with_dynamic_stdcpp+set}" = set; then
! 1940: withval="$with_dynamic_stdcpp"
! 1941:
! 1942: LDFLAGS="-lstdc++"
! 1943:
! 1944: else
! 1945:
! 1946: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
! 1947:
! 1948: fi;
! 1949:
! 1950:
! 1951:
! 1952:
1.1 parser 1953: # Find a good install program. We prefer a C program (faster),
1954: # so one script is as good as another. But avoid the broken or
1955: # incompatible versions:
1956: # SysV /etc/install, /usr/sbin/install
1957: # SunOS /usr/etc/install
1958: # IRIX /sbin/install
1959: # AIX /bin/install
1.10 paf 1960: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1961: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 1964: # OS/2's system install, which has a completely different semantic
1.1 parser 1965: # ./install, which can be erroneously created by make from ./install.sh.
1.10 paf 1966: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1968: if test -z "$INSTALL"; then
1.10 paf 1969: if test "${ac_cv_path_install+set}" = set; then
1970: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1971: else
1.10 paf 1972: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973: for as_dir in $PATH
1974: do
1975: IFS=$as_save_IFS
1976: test -z "$as_dir" && as_dir=.
1977: # Account for people who put trailing slashes in PATH elements.
1978: case $as_dir/ in
1979: ./ | .// | /cC/* | \
1980: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.16 paf 1981: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.10 paf 1982: /usr/ucb/* ) ;;
1983: *)
1984: # OSF1 and SCO ODT 3.0 have their own names for install.
1985: # Don't use installbsd from OSF since it installs stuff as root
1986: # by default.
1987: for ac_prog in ginstall scoinst install; do
1988: for ac_exec_ext in '' $ac_executable_extensions; do
1.16 paf 1989: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1990: if test $ac_prog = install &&
1991: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992: # AIX install. It has an incompatible calling convention.
1993: :
1994: elif test $ac_prog = install &&
1995: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996: # program-specific install script used by HP pwplus--don't use.
1997: :
1998: else
1999: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2000: break 3
2001: fi
2002: fi
1.1 parser 2003: done
1.10 paf 2004: done
2005: ;;
2006: esac
2007: done
2008:
1.1 parser 2009:
2010: fi
2011: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 2012: INSTALL=$ac_cv_path_install
1.1 parser 2013: else
2014: # As a last resort, use the slow shell script. We don't cache a
2015: # path for INSTALL within a source directory, because that will
2016: # break other packages using the cache if that directory is
2017: # removed, or if the path is relative.
1.10 paf 2018: INSTALL=$ac_install_sh
1.1 parser 2019: fi
2020: fi
1.10 paf 2021: echo "$as_me:$LINENO: result: $INSTALL" >&5
2022: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 2023:
2024: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2025: # It thinks the first close brace ends the variable substitution.
2026: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2027:
1.10 paf 2028: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2029:
2030: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2031:
1.10 paf 2032: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2033: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.16 paf 2034: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.10 paf 2035: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2036: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2037: else
1.10 paf 2038: cat >conftest.make <<\_ACEOF
1.1 parser 2039: all:
1.10 paf 2040: @echo 'ac_maketemp="$(MAKE)"'
2041: _ACEOF
1.1 parser 2042: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.10 paf 2043: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 2044: if test -n "$ac_maketemp"; then
2045: eval ac_cv_prog_make_${ac_make}_set=yes
2046: else
2047: eval ac_cv_prog_make_${ac_make}_set=no
2048: fi
1.10 paf 2049: rm -f conftest.make
1.1 parser 2050: fi
2051: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.10 paf 2052: echo "$as_me:$LINENO: result: yes" >&5
2053: echo "${ECHO_T}yes" >&6
1.1 parser 2054: SET_MAKE=
2055: else
1.10 paf 2056: echo "$as_me:$LINENO: result: no" >&5
2057: echo "${ECHO_T}no" >&6
1.1 parser 2058: SET_MAKE="MAKE=${MAKE-make}"
2059: fi
2060:
1.10 paf 2061: for ac_prog in gawk mawk nawk awk
1.1 parser 2062: do
1.10 paf 2063: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 parser 2064: set dummy $ac_prog; ac_word=$2
1.10 paf 2065: echo "$as_me:$LINENO: checking for $ac_word" >&5
2066: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067: if test "${ac_cv_prog_AWK+set}" = set; then
2068: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2069: else
2070: if test -n "$AWK"; then
2071: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2072: else
1.10 paf 2073: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074: for as_dir in $PATH
2075: do
2076: IFS=$as_save_IFS
2077: test -z "$as_dir" && as_dir=.
2078: for ac_exec_ext in '' $ac_executable_extensions; do
2079: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080: ac_cv_prog_AWK="$ac_prog"
2081: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082: break 2
2083: fi
2084: done
2085: done
2086:
1.1 parser 2087: fi
2088: fi
1.10 paf 2089: AWK=$ac_cv_prog_AWK
1.1 parser 2090: if test -n "$AWK"; then
1.10 paf 2091: echo "$as_me:$LINENO: result: $AWK" >&5
2092: echo "${ECHO_T}$AWK" >&6
1.1 parser 2093: else
1.10 paf 2094: echo "$as_me:$LINENO: result: no" >&5
2095: echo "${ECHO_T}no" >&6
1.1 parser 2096: fi
2097:
1.10 paf 2098: test -n "$AWK" && break
1.1 parser 2099: done
2100:
1.10 paf 2101: ac_ext=cc
2102: ac_cpp='$CXXCPP $CPPFLAGS'
2103: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2106: if test -n "$ac_tool_prefix"; then
2107: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2108: do
2109: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111: echo "$as_me:$LINENO: checking for $ac_word" >&5
2112: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113: if test "${ac_cv_prog_CXX+set}" = set; then
2114: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2115: else
2116: if test -n "$CXX"; then
2117: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2118: else
1.10 paf 2119: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120: for as_dir in $PATH
2121: do
2122: IFS=$as_save_IFS
2123: test -z "$as_dir" && as_dir=.
2124: for ac_exec_ext in '' $ac_executable_extensions; do
2125: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2127: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128: break 2
2129: fi
2130: done
2131: done
2132:
1.1 parser 2133: fi
2134: fi
1.10 paf 2135: CXX=$ac_cv_prog_CXX
1.1 parser 2136: if test -n "$CXX"; then
1.10 paf 2137: echo "$as_me:$LINENO: result: $CXX" >&5
2138: echo "${ECHO_T}$CXX" >&6
1.1 parser 2139: else
1.10 paf 2140: echo "$as_me:$LINENO: result: no" >&5
2141: echo "${ECHO_T}no" >&6
1.1 parser 2142: fi
2143:
1.10 paf 2144: test -n "$CXX" && break
2145: done
2146: fi
2147: if test -z "$CXX"; then
2148: ac_ct_CXX=$CXX
2149: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2150: do
2151: # Extract the first word of "$ac_prog", so it can be a program name with args.
2152: set dummy $ac_prog; ac_word=$2
2153: echo "$as_me:$LINENO: checking for $ac_word" >&5
2154: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2156: echo $ECHO_N "(cached) $ECHO_C" >&6
2157: else
2158: if test -n "$ac_ct_CXX"; then
2159: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2160: else
2161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162: for as_dir in $PATH
2163: do
2164: IFS=$as_save_IFS
2165: test -z "$as_dir" && as_dir=.
2166: for ac_exec_ext in '' $ac_executable_extensions; do
2167: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168: ac_cv_prog_ac_ct_CXX="$ac_prog"
2169: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170: break 2
2171: fi
2172: done
1.1 parser 2173: done
2174:
1.10 paf 2175: fi
2176: fi
2177: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2178: if test -n "$ac_ct_CXX"; then
2179: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2180: echo "${ECHO_T}$ac_ct_CXX" >&6
2181: else
2182: echo "$as_me:$LINENO: result: no" >&5
2183: echo "${ECHO_T}no" >&6
2184: fi
1.1 parser 2185:
1.10 paf 2186: test -n "$ac_ct_CXX" && break
2187: done
2188: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2189:
1.10 paf 2190: CXX=$ac_ct_CXX
2191: fi
1.1 parser 2192:
2193:
1.10 paf 2194: # Provide some information about the compiler.
2195: echo "$as_me:$LINENO:" \
2196: "checking for C++ compiler version" >&5
2197: ac_compiler=`set X $ac_compile; echo $2`
2198: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2199: (eval $ac_compiler --version </dev/null >&5) 2>&5
2200: ac_status=$?
2201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202: (exit $ac_status); }
2203: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2204: (eval $ac_compiler -v </dev/null >&5) 2>&5
2205: ac_status=$?
2206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207: (exit $ac_status); }
2208: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2209: (eval $ac_compiler -V </dev/null >&5) 2>&5
2210: ac_status=$?
2211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212: (exit $ac_status); }
2213:
2214: cat >conftest.$ac_ext <<_ACEOF
2215: /* confdefs.h. */
2216: _ACEOF
2217: cat confdefs.h >>conftest.$ac_ext
2218: cat >>conftest.$ac_ext <<_ACEOF
2219: /* end confdefs.h. */
2220:
2221: int
2222: main ()
2223: {
2224:
2225: ;
2226: return 0;
2227: }
2228: _ACEOF
2229: ac_clean_files_save=$ac_clean_files
2230: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2231: # Try to create an executable without -o first, disregard a.out.
2232: # It will help us diagnose broken compilers, and finding out an intuition
2233: # of exeext.
1.16 paf 2234: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2235: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.10 paf 2236: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2238: (eval $ac_link_default) 2>&5
2239: ac_status=$?
2240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241: (exit $ac_status); }; then
2242: # Find the output, starting from the most likely. This scheme is
2243: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2244: # resort.
2245:
2246: # Be careful to initialize this variable, since it used to be cached.
2247: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2248: ac_cv_exeext=
2249: # b.out is created by i960 compilers.
2250: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2251: do
2252: test -f "$ac_file" || continue
2253: case $ac_file in
2254: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.16 paf 2255: ;;
1.10 paf 2256: conftest.$ac_ext )
1.16 paf 2257: # This is the source file.
2258: ;;
1.10 paf 2259: [ab].out )
1.16 paf 2260: # We found the default executable, but exeext='' is most
2261: # certainly right.
2262: break;;
1.10 paf 2263: *.* )
1.16 paf 2264: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265: # FIXME: I believe we export ac_cv_exeext for Libtool,
2266: # but it would be cool to find out if it's true. Does anybody
2267: # maintain Libtool? --akim.
2268: export ac_cv_exeext
2269: break;;
1.10 paf 2270: * )
1.16 paf 2271: break;;
1.10 paf 2272: esac
2273: done
2274: else
2275: echo "$as_me: failed program was:" >&5
2276: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2277:
1.10 paf 2278: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2279: See \`config.log' for more details." >&5
2280: echo "$as_me: error: C++ compiler cannot create executables
2281: See \`config.log' for more details." >&2;}
2282: { (exit 77); exit 77; }; }
2283: fi
2284:
2285: ac_exeext=$ac_cv_exeext
2286: echo "$as_me:$LINENO: result: $ac_file" >&5
2287: echo "${ECHO_T}$ac_file" >&6
2288:
2289: # Check the compiler produces executables we can run. If not, either
2290: # the compiler is broken, or we cross compile.
2291: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2292: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2293: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2294: # If not cross compiling, check that we can run a simple program.
2295: if test "$cross_compiling" != yes; then
2296: if { ac_try='./$ac_file'
2297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298: (eval $ac_try) 2>&5
2299: ac_status=$?
2300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301: (exit $ac_status); }; }; then
2302: cross_compiling=no
2303: else
2304: if test "$cross_compiling" = maybe; then
2305: cross_compiling=yes
2306: else
2307: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2308: If you meant to cross compile, use \`--host'.
2309: See \`config.log' for more details." >&5
2310: echo "$as_me: error: cannot run C++ compiled programs.
2311: If you meant to cross compile, use \`--host'.
2312: See \`config.log' for more details." >&2;}
2313: { (exit 1); exit 1; }; }
2314: fi
1.1 parser 2315: fi
1.10 paf 2316: fi
2317: echo "$as_me:$LINENO: result: yes" >&5
2318: echo "${ECHO_T}yes" >&6
2319:
2320: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2321: ac_clean_files=$ac_clean_files_save
2322: # Check the compiler produces executables we can run. If not, either
2323: # the compiler is broken, or we cross compile.
2324: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2325: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2326: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2327: echo "${ECHO_T}$cross_compiling" >&6
2328:
2329: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2330: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2331: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2332: (eval $ac_link) 2>&5
2333: ac_status=$?
2334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335: (exit $ac_status); }; then
2336: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2337: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2338: # work properly (i.e., refer to `conftest.exe'), while it won't with
2339: # `rm'.
2340: for ac_file in conftest.exe conftest conftest.*; do
2341: test -f "$ac_file" || continue
2342: case $ac_file in
2343: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2344: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.16 paf 2345: export ac_cv_exeext
2346: break;;
1.10 paf 2347: * ) break;;
2348: esac
2349: done
1.1 parser 2350: else
1.10 paf 2351: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2352: See \`config.log' for more details." >&5
2353: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2354: See \`config.log' for more details." >&2;}
2355: { (exit 1); exit 1; }; }
2356: fi
2357:
2358: rm -f conftest$ac_cv_exeext
2359: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2360: echo "${ECHO_T}$ac_cv_exeext" >&6
2361:
2362: rm -f conftest.$ac_ext
2363: EXEEXT=$ac_cv_exeext
2364: ac_exeext=$EXEEXT
2365: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2366: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2367: if test "${ac_cv_objext+set}" = set; then
2368: echo $ECHO_N "(cached) $ECHO_C" >&6
2369: else
2370: cat >conftest.$ac_ext <<_ACEOF
2371: /* confdefs.h. */
2372: _ACEOF
2373: cat confdefs.h >>conftest.$ac_ext
2374: cat >>conftest.$ac_ext <<_ACEOF
2375: /* end confdefs.h. */
2376:
2377: int
2378: main ()
2379: {
2380:
2381: ;
2382: return 0;
2383: }
2384: _ACEOF
2385: rm -f conftest.o conftest.obj
2386: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387: (eval $ac_compile) 2>&5
2388: ac_status=$?
2389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390: (exit $ac_status); }; then
2391: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2392: case $ac_file in
2393: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2394: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2395: break;;
2396: esac
2397: done
1.1 parser 2398: else
1.10 paf 2399: echo "$as_me: failed program was:" >&5
2400: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2401:
1.10 paf 2402: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2403: See \`config.log' for more details." >&5
2404: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2405: See \`config.log' for more details." >&2;}
2406: { (exit 1); exit 1; }; }
2407: fi
2408:
2409: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2410: fi
2411: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2412: echo "${ECHO_T}$ac_cv_objext" >&6
2413: OBJEXT=$ac_cv_objext
2414: ac_objext=$OBJEXT
2415: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2416: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2417: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2418: echo $ECHO_N "(cached) $ECHO_C" >&6
2419: else
2420: cat >conftest.$ac_ext <<_ACEOF
2421: /* confdefs.h. */
2422: _ACEOF
2423: cat confdefs.h >>conftest.$ac_ext
2424: cat >>conftest.$ac_ext <<_ACEOF
2425: /* end confdefs.h. */
2426:
2427: int
2428: main ()
2429: {
2430: #ifndef __GNUC__
2431: choke me
2432: #endif
1.1 parser 2433:
1.10 paf 2434: ;
2435: return 0;
2436: }
2437: _ACEOF
2438: rm -f conftest.$ac_objext
2439: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2440: (eval $ac_compile) 2>conftest.er1
1.10 paf 2441: ac_status=$?
1.16 paf 2442: grep -v '^ *+' conftest.er1 >conftest.err
2443: rm -f conftest.er1
2444: cat conftest.err >&5
1.10 paf 2445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446: (exit $ac_status); } &&
1.16 paf 2447: { ac_try='test -z "$ac_cxx_werror_flag"
2448: || test ! -s conftest.err'
2449: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450: (eval $ac_try) 2>&5
2451: ac_status=$?
2452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453: (exit $ac_status); }; } &&
2454: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2455: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456: (eval $ac_try) 2>&5
2457: ac_status=$?
2458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459: (exit $ac_status); }; }; then
2460: ac_compiler_gnu=yes
2461: else
2462: echo "$as_me: failed program was:" >&5
2463: sed 's/^/| /' conftest.$ac_ext >&5
2464:
2465: ac_compiler_gnu=no
2466: fi
1.16 paf 2467: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2468: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2469:
2470: fi
2471: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2472: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2473: GXX=`test $ac_compiler_gnu = yes && echo yes`
2474: ac_test_CXXFLAGS=${CXXFLAGS+set}
2475: ac_save_CXXFLAGS=$CXXFLAGS
2476: CXXFLAGS="-g"
2477: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2478: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2479: if test "${ac_cv_prog_cxx_g+set}" = set; then
2480: echo $ECHO_N "(cached) $ECHO_C" >&6
2481: else
2482: cat >conftest.$ac_ext <<_ACEOF
2483: /* confdefs.h. */
2484: _ACEOF
2485: cat confdefs.h >>conftest.$ac_ext
2486: cat >>conftest.$ac_ext <<_ACEOF
2487: /* end confdefs.h. */
2488:
2489: int
2490: main ()
2491: {
2492:
2493: ;
2494: return 0;
2495: }
2496: _ACEOF
2497: rm -f conftest.$ac_objext
2498: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2499: (eval $ac_compile) 2>conftest.er1
1.10 paf 2500: ac_status=$?
1.16 paf 2501: grep -v '^ *+' conftest.er1 >conftest.err
2502: rm -f conftest.er1
2503: cat conftest.err >&5
1.10 paf 2504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505: (exit $ac_status); } &&
1.16 paf 2506: { ac_try='test -z "$ac_cxx_werror_flag"
2507: || test ! -s conftest.err'
2508: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509: (eval $ac_try) 2>&5
2510: ac_status=$?
2511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512: (exit $ac_status); }; } &&
2513: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2514: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515: (eval $ac_try) 2>&5
2516: ac_status=$?
2517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518: (exit $ac_status); }; }; then
2519: ac_cv_prog_cxx_g=yes
1.1 parser 2520: else
1.10 paf 2521: echo "$as_me: failed program was:" >&5
2522: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2523:
1.10 paf 2524: ac_cv_prog_cxx_g=no
1.1 parser 2525: fi
1.16 paf 2526: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2527: fi
1.10 paf 2528: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2529: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2530: if test "$ac_test_CXXFLAGS" = set; then
1.10 paf 2531: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2532: elif test $ac_cv_prog_cxx_g = yes; then
2533: if test "$GXX" = yes; then
2534: CXXFLAGS="-g -O2"
2535: else
2536: CXXFLAGS="-g"
2537: fi
2538: else
2539: if test "$GXX" = yes; then
2540: CXXFLAGS="-O2"
2541: else
2542: CXXFLAGS=
2543: fi
2544: fi
1.10 paf 2545: for ac_declaration in \
1.16 paf 2546: '' \
1.10 paf 2547: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2548: 'extern "C" void std::exit (int); using std::exit;' \
2549: 'extern "C" void exit (int) throw ();' \
2550: 'extern "C" void exit (int);' \
2551: 'void exit (int);'
2552: do
2553: cat >conftest.$ac_ext <<_ACEOF
2554: /* confdefs.h. */
2555: _ACEOF
2556: cat confdefs.h >>conftest.$ac_ext
2557: cat >>conftest.$ac_ext <<_ACEOF
2558: /* end confdefs.h. */
1.16 paf 2559: $ac_declaration
1.10 paf 2560: #include <stdlib.h>
2561: int
2562: main ()
2563: {
2564: exit (42);
2565: ;
2566: return 0;
2567: }
2568: _ACEOF
2569: rm -f conftest.$ac_objext
2570: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2571: (eval $ac_compile) 2>conftest.er1
1.10 paf 2572: ac_status=$?
1.16 paf 2573: grep -v '^ *+' conftest.er1 >conftest.err
2574: rm -f conftest.er1
2575: cat conftest.err >&5
1.10 paf 2576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577: (exit $ac_status); } &&
1.16 paf 2578: { ac_try='test -z "$ac_cxx_werror_flag"
2579: || test ! -s conftest.err'
2580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581: (eval $ac_try) 2>&5
2582: ac_status=$?
2583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584: (exit $ac_status); }; } &&
2585: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2586: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587: (eval $ac_try) 2>&5
2588: ac_status=$?
2589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590: (exit $ac_status); }; }; then
2591: :
2592: else
2593: echo "$as_me: failed program was:" >&5
2594: sed 's/^/| /' conftest.$ac_ext >&5
2595:
2596: continue
2597: fi
1.16 paf 2598: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2599: cat >conftest.$ac_ext <<_ACEOF
2600: /* confdefs.h. */
2601: _ACEOF
2602: cat confdefs.h >>conftest.$ac_ext
2603: cat >>conftest.$ac_ext <<_ACEOF
2604: /* end confdefs.h. */
2605: $ac_declaration
2606: int
2607: main ()
2608: {
2609: exit (42);
2610: ;
2611: return 0;
2612: }
2613: _ACEOF
2614: rm -f conftest.$ac_objext
2615: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2616: (eval $ac_compile) 2>conftest.er1
1.10 paf 2617: ac_status=$?
1.16 paf 2618: grep -v '^ *+' conftest.er1 >conftest.err
2619: rm -f conftest.er1
2620: cat conftest.err >&5
1.10 paf 2621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622: (exit $ac_status); } &&
1.16 paf 2623: { ac_try='test -z "$ac_cxx_werror_flag"
2624: || test ! -s conftest.err'
2625: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626: (eval $ac_try) 2>&5
2627: ac_status=$?
2628: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629: (exit $ac_status); }; } &&
2630: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2631: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632: (eval $ac_try) 2>&5
2633: ac_status=$?
2634: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635: (exit $ac_status); }; }; then
2636: break
2637: else
2638: echo "$as_me: failed program was:" >&5
2639: sed 's/^/| /' conftest.$ac_ext >&5
2640:
2641: fi
1.16 paf 2642: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2643: done
2644: rm -f conftest*
2645: if test -n "$ac_declaration"; then
2646: echo '#ifdef __cplusplus' >>confdefs.h
2647: echo $ac_declaration >>confdefs.h
2648: echo '#endif' >>confdefs.h
2649: fi
2650:
1.15 paf 2651: ac_ext=c
2652: ac_cpp='$CPP $CPPFLAGS'
2653: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 paf 2656: DEPDIR="${am__leading_dot}deps"
1.10 paf 2657:
2658: ac_config_commands="$ac_config_commands depfiles"
2659:
2660:
2661: am_make=${MAKE-make}
2662: cat > confinc << 'END'
1.16 paf 2663: am__doit:
1.10 paf 2664: @echo done
1.16 paf 2665: .PHONY: am__doit
1.10 paf 2666: END
2667: # If we don't find an include directive, just comment out the code.
2668: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2669: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2670: am__include="#"
2671: am__quote=
2672: _am_result=none
2673: # First try GNU make style include.
2674: echo "include confinc" > confmf
2675: # We grep out `Entering directory' and `Leaving directory'
2676: # messages which can occur if `w' ends up in MAKEFLAGS.
2677: # In particular we don't look at `^make:' because GNU make might
2678: # be invoked under some other name (usually "gmake"), in which
2679: # case it prints its new name instead of `make'.
2680: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2681: am__include=include
2682: am__quote=
2683: _am_result=GNU
2684: fi
2685: # Now try BSD make style include.
2686: if test "$am__include" = "#"; then
2687: echo '.include "confinc"' > confmf
2688: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2689: am__include=.include
2690: am__quote="\""
2691: _am_result=BSD
2692: fi
2693: fi
2694:
2695:
2696: echo "$as_me:$LINENO: result: $_am_result" >&5
2697: echo "${ECHO_T}$_am_result" >&6
2698: rm -f confinc confmf
2699:
2700: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2701: if test "${enable_dependency_tracking+set}" = set; then
2702: enableval="$enable_dependency_tracking"
2703:
2704: fi;
2705: if test "x$enable_dependency_tracking" != xno; then
2706: am_depcomp="$ac_aux_dir/depcomp"
2707: AMDEPBACKSLASH='\'
2708: fi
2709:
2710:
2711: if test "x$enable_dependency_tracking" != xno; then
2712: AMDEP_TRUE=
2713: AMDEP_FALSE='#'
2714: else
2715: AMDEP_TRUE='#'
2716: AMDEP_FALSE=
2717: fi
2718:
2719:
2720:
2721:
2722: depcc="$CXX" am_compiler_list=
2723:
2724: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2725: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2726: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2727: echo $ECHO_N "(cached) $ECHO_C" >&6
2728: else
2729: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2730: # We make a subdir and do the tests there. Otherwise we can end up
2731: # making bogus files that we don't know about and never remove. For
2732: # instance it was reported that on HP-UX the gcc test will end up
2733: # making a dummy file named `D' -- because `-MD' means `put the output
2734: # in D'.
2735: mkdir conftest.dir
2736: # Copy depcomp to subdir because otherwise we won't find it if we're
2737: # using a relative directory.
2738: cp "$am_depcomp" conftest.dir
2739: cd conftest.dir
1.16 paf 2740: # We will build objects and dependencies in a subdirectory because
2741: # it helps to detect inapplicable dependency modes. For instance
2742: # both Tru64's cc and ICC support -MD to output dependencies as a
2743: # side effect of compilation, but ICC will put the dependencies in
2744: # the current directory while Tru64 will put them in the object
2745: # directory.
2746: mkdir sub
1.10 paf 2747:
2748: am_cv_CXX_dependencies_compiler_type=none
2749: if test "$am_compiler_list" = ""; then
2750: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2751: fi
2752: for depmode in $am_compiler_list; do
1.16 paf 2753: # Setup a source with many dependencies, because some compilers
2754: # like to wrap large dependency lists on column 80 (with \), and
2755: # we should not choose a depcomp mode which is confused by this.
2756: #
1.10 paf 2757: # We need to recreate these files for each test, as the compiler may
2758: # overwrite some of them when testing with obscure command lines.
2759: # This happens at least with the AIX C compiler.
1.16 paf 2760: : > sub/conftest.c
2761: for i in 1 2 3 4 5 6; do
2762: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2763: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2764: # Solaris 8's {/usr,}/bin/sh.
2765: touch sub/conftst$i.h
2766: done
2767: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 2768:
2769: case $depmode in
2770: nosideeffect)
2771: # after this tag, mechanisms are not by side-effect, so they'll
2772: # only be used when explicitly requested
2773: if test "x$enable_dependency_tracking" = xyes; then
2774: continue
2775: else
2776: break
2777: fi
2778: ;;
2779: none) break ;;
2780: esac
2781: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782: # mode. It turns out that the SunPro C++ compiler does not properly
2783: # handle `-M -o', and we need to detect this.
2784: if depmode=$depmode \
1.16 paf 2785: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2786: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2787: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2788: >/dev/null 2>conftest.err &&
2789: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2790: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 2791: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 2792: # icc doesn't choke on unknown options, it will just issue warnings
2793: # or remarks (even with -Werror). So we grep stderr for any message
2794: # that says an option was ignored or not supported.
2795: # When given -MP, icc 7.0 and 7.1 complain thusly:
2796: # icc: Command line warning: ignoring option '-M'; no argument required
2797: # The diagnosis changed in icc 8.0:
2798: # icc: Command line remark: option '-MP' not supported
2799: if (grep 'ignoring option' conftest.err ||
2800: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2801: am_cv_CXX_dependencies_compiler_type=$depmode
2802: break
2803: fi
1.10 paf 2804: fi
2805: done
2806:
2807: cd ..
2808: rm -rf conftest.dir
2809: else
2810: am_cv_CXX_dependencies_compiler_type=none
2811: fi
2812:
2813: fi
2814: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2815: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2816: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2817:
2818:
2819:
2820: if
2821: test "x$enable_dependency_tracking" != xno \
2822: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2823: am__fastdepCXX_TRUE=
2824: am__fastdepCXX_FALSE='#'
2825: else
2826: am__fastdepCXX_TRUE='#'
2827: am__fastdepCXX_FALSE=
2828: fi
2829:
1.1 parser 2830:
1.10 paf 2831: ac_ext=c
2832: ac_cpp='$CPP $CPPFLAGS'
2833: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836: if test -n "$ac_tool_prefix"; then
2837: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839: echo "$as_me:$LINENO: checking for $ac_word" >&5
2840: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841: if test "${ac_cv_prog_CC+set}" = set; then
2842: echo $ECHO_N "(cached) $ECHO_C" >&6
2843: else
2844: if test -n "$CC"; then
2845: ac_cv_prog_CC="$CC" # Let the user override the test.
2846: else
2847: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848: for as_dir in $PATH
2849: do
2850: IFS=$as_save_IFS
2851: test -z "$as_dir" && as_dir=.
2852: for ac_exec_ext in '' $ac_executable_extensions; do
2853: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856: break 2
2857: fi
2858: done
2859: done
1.1 parser 2860:
1.10 paf 2861: fi
2862: fi
2863: CC=$ac_cv_prog_CC
2864: if test -n "$CC"; then
2865: echo "$as_me:$LINENO: result: $CC" >&5
2866: echo "${ECHO_T}$CC" >&6
2867: else
2868: echo "$as_me:$LINENO: result: no" >&5
2869: echo "${ECHO_T}no" >&6
2870: fi
1.1 parser 2871:
1.10 paf 2872: fi
2873: if test -z "$ac_cv_prog_CC"; then
2874: ac_ct_CC=$CC
2875: # Extract the first word of "gcc", so it can be a program name with args.
2876: set dummy gcc; ac_word=$2
2877: echo "$as_me:$LINENO: checking for $ac_word" >&5
2878: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2880: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2881: else
1.10 paf 2882: if test -n "$ac_ct_CC"; then
2883: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2884: else
1.10 paf 2885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886: for as_dir in $PATH
2887: do
2888: IFS=$as_save_IFS
2889: test -z "$as_dir" && as_dir=.
2890: for ac_exec_ext in '' $ac_executable_extensions; do
2891: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892: ac_cv_prog_ac_ct_CC="gcc"
2893: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894: break 2
2895: fi
2896: done
2897: done
2898:
2899: fi
1.1 parser 2900: fi
1.10 paf 2901: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902: if test -n "$ac_ct_CC"; then
2903: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2904: echo "${ECHO_T}$ac_ct_CC" >&6
2905: else
2906: echo "$as_me:$LINENO: result: no" >&5
2907: echo "${ECHO_T}no" >&6
1.1 parser 2908: fi
1.10 paf 2909:
2910: CC=$ac_ct_CC
1.1 parser 2911: else
1.10 paf 2912: CC="$ac_cv_prog_CC"
1.1 parser 2913: fi
2914:
1.10 paf 2915: if test -z "$CC"; then
2916: if test -n "$ac_tool_prefix"; then
2917: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2918: set dummy ${ac_tool_prefix}cc; ac_word=$2
2919: echo "$as_me:$LINENO: checking for $ac_word" >&5
2920: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921: if test "${ac_cv_prog_CC+set}" = set; then
2922: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2923: else
2924: if test -n "$CC"; then
2925: ac_cv_prog_CC="$CC" # Let the user override the test.
2926: else
1.10 paf 2927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928: for as_dir in $PATH
2929: do
2930: IFS=$as_save_IFS
2931: test -z "$as_dir" && as_dir=.
2932: for ac_exec_ext in '' $ac_executable_extensions; do
2933: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934: ac_cv_prog_CC="${ac_tool_prefix}cc"
2935: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936: break 2
2937: fi
2938: done
2939: done
2940:
1.1 parser 2941: fi
2942: fi
1.10 paf 2943: CC=$ac_cv_prog_CC
1.1 parser 2944: if test -n "$CC"; then
1.10 paf 2945: echo "$as_me:$LINENO: result: $CC" >&5
2946: echo "${ECHO_T}$CC" >&6
2947: else
2948: echo "$as_me:$LINENO: result: no" >&5
2949: echo "${ECHO_T}no" >&6
2950: fi
2951:
2952: fi
2953: if test -z "$ac_cv_prog_CC"; then
2954: ac_ct_CC=$CC
2955: # Extract the first word of "cc", so it can be a program name with args.
2956: set dummy cc; ac_word=$2
2957: echo "$as_me:$LINENO: checking for $ac_word" >&5
2958: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2960: echo $ECHO_N "(cached) $ECHO_C" >&6
2961: else
2962: if test -n "$ac_ct_CC"; then
2963: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964: else
2965: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966: for as_dir in $PATH
2967: do
2968: IFS=$as_save_IFS
2969: test -z "$as_dir" && as_dir=.
2970: for ac_exec_ext in '' $ac_executable_extensions; do
2971: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972: ac_cv_prog_ac_ct_CC="cc"
2973: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974: break 2
2975: fi
2976: done
2977: done
2978:
2979: fi
2980: fi
2981: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982: if test -n "$ac_ct_CC"; then
2983: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2984: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 parser 2985: else
1.10 paf 2986: echo "$as_me:$LINENO: result: no" >&5
2987: echo "${ECHO_T}no" >&6
1.1 parser 2988: fi
2989:
1.10 paf 2990: CC=$ac_ct_CC
2991: else
2992: CC="$ac_cv_prog_CC"
2993: fi
2994:
2995: fi
1.1 parser 2996: if test -z "$CC"; then
2997: # Extract the first word of "cc", so it can be a program name with args.
2998: set dummy cc; ac_word=$2
1.10 paf 2999: echo "$as_me:$LINENO: checking for $ac_word" >&5
3000: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001: if test "${ac_cv_prog_CC+set}" = set; then
3002: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3003: else
3004: if test -n "$CC"; then
3005: ac_cv_prog_CC="$CC" # Let the user override the test.
3006: else
3007: ac_prog_rejected=no
1.10 paf 3008: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009: for as_dir in $PATH
3010: do
3011: IFS=$as_save_IFS
3012: test -z "$as_dir" && as_dir=.
3013: for ac_exec_ext in '' $ac_executable_extensions; do
3014: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3016: ac_prog_rejected=yes
3017: continue
3018: fi
3019: ac_cv_prog_CC="cc"
3020: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021: break 2
3022: fi
3023: done
3024: done
3025:
1.1 parser 3026: if test $ac_prog_rejected = yes; then
3027: # We found a bogon in the path, so make sure we never use it.
3028: set dummy $ac_cv_prog_CC
3029: shift
1.10 paf 3030: if test $# != 0; then
1.1 parser 3031: # We chose a different compiler from the bogus one.
3032: # However, it has the same basename, so the bogon will be chosen
3033: # first if we set CC to just the basename; use the full file name.
3034: shift
1.10 paf 3035: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3036: fi
3037: fi
3038: fi
3039: fi
1.10 paf 3040: CC=$ac_cv_prog_CC
1.1 parser 3041: if test -n "$CC"; then
1.10 paf 3042: echo "$as_me:$LINENO: result: $CC" >&5
3043: echo "${ECHO_T}$CC" >&6
1.1 parser 3044: else
1.10 paf 3045: echo "$as_me:$LINENO: result: no" >&5
3046: echo "${ECHO_T}no" >&6
1.1 parser 3047: fi
3048:
1.10 paf 3049: fi
3050: if test -z "$CC"; then
3051: if test -n "$ac_tool_prefix"; then
3052: for ac_prog in cl
3053: do
3054: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056: echo "$as_me:$LINENO: checking for $ac_word" >&5
3057: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058: if test "${ac_cv_prog_CC+set}" = set; then
3059: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3060: else
3061: if test -n "$CC"; then
3062: ac_cv_prog_CC="$CC" # Let the user override the test.
3063: else
1.10 paf 3064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065: for as_dir in $PATH
3066: do
3067: IFS=$as_save_IFS
3068: test -z "$as_dir" && as_dir=.
3069: for ac_exec_ext in '' $ac_executable_extensions; do
3070: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3072: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073: break 2
3074: fi
3075: done
3076: done
3077:
1.1 parser 3078: fi
3079: fi
1.10 paf 3080: CC=$ac_cv_prog_CC
1.1 parser 3081: if test -n "$CC"; then
1.10 paf 3082: echo "$as_me:$LINENO: result: $CC" >&5
3083: echo "${ECHO_T}$CC" >&6
1.1 parser 3084: else
1.10 paf 3085: echo "$as_me:$LINENO: result: no" >&5
3086: echo "${ECHO_T}no" >&6
3087: fi
3088:
3089: test -n "$CC" && break
3090: done
1.1 parser 3091: fi
1.10 paf 3092: if test -z "$CC"; then
3093: ac_ct_CC=$CC
3094: for ac_prog in cl
3095: do
3096: # Extract the first word of "$ac_prog", so it can be a program name with args.
3097: set dummy $ac_prog; ac_word=$2
3098: echo "$as_me:$LINENO: checking for $ac_word" >&5
3099: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3101: echo $ECHO_N "(cached) $ECHO_C" >&6
3102: else
3103: if test -n "$ac_ct_CC"; then
3104: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105: else
3106: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107: for as_dir in $PATH
3108: do
3109: IFS=$as_save_IFS
3110: test -z "$as_dir" && as_dir=.
3111: for ac_exec_ext in '' $ac_executable_extensions; do
3112: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113: ac_cv_prog_ac_ct_CC="$ac_prog"
3114: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115: break 2
1.1 parser 3116: fi
1.10 paf 3117: done
3118: done
3119:
3120: fi
3121: fi
3122: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123: if test -n "$ac_ct_CC"; then
3124: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3125: echo "${ECHO_T}$ac_ct_CC" >&6
3126: else
3127: echo "$as_me:$LINENO: result: no" >&5
3128: echo "${ECHO_T}no" >&6
1.1 parser 3129: fi
3130:
1.10 paf 3131: test -n "$ac_ct_CC" && break
3132: done
1.1 parser 3133:
1.10 paf 3134: CC=$ac_ct_CC
3135: fi
1.1 parser 3136:
1.10 paf 3137: fi
1.1 parser 3138:
3139:
1.10 paf 3140: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3141: See \`config.log' for more details." >&5
3142: echo "$as_me: error: no acceptable C compiler found in \$PATH
3143: See \`config.log' for more details." >&2;}
3144: { (exit 1); exit 1; }; }
3145:
3146: # Provide some information about the compiler.
3147: echo "$as_me:$LINENO:" \
3148: "checking for C compiler version" >&5
3149: ac_compiler=`set X $ac_compile; echo $2`
3150: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3151: (eval $ac_compiler --version </dev/null >&5) 2>&5
3152: ac_status=$?
3153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154: (exit $ac_status); }
3155: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3156: (eval $ac_compiler -v </dev/null >&5) 2>&5
3157: ac_status=$?
3158: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159: (exit $ac_status); }
3160: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3161: (eval $ac_compiler -V </dev/null >&5) 2>&5
3162: ac_status=$?
3163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164: (exit $ac_status); }
3165:
3166: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3167: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3168: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3169: echo $ECHO_N "(cached) $ECHO_C" >&6
3170: else
3171: cat >conftest.$ac_ext <<_ACEOF
3172: /* confdefs.h. */
3173: _ACEOF
3174: cat confdefs.h >>conftest.$ac_ext
3175: cat >>conftest.$ac_ext <<_ACEOF
3176: /* end confdefs.h. */
3177:
3178: int
3179: main ()
3180: {
3181: #ifndef __GNUC__
3182: choke me
1.1 parser 3183: #endif
3184:
1.10 paf 3185: ;
3186: return 0;
3187: }
3188: _ACEOF
3189: rm -f conftest.$ac_objext
3190: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3191: (eval $ac_compile) 2>conftest.er1
1.10 paf 3192: ac_status=$?
1.16 paf 3193: grep -v '^ *+' conftest.er1 >conftest.err
3194: rm -f conftest.er1
3195: cat conftest.err >&5
1.10 paf 3196: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197: (exit $ac_status); } &&
1.16 paf 3198: { ac_try='test -z "$ac_c_werror_flag"
3199: || test ! -s conftest.err'
3200: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201: (eval $ac_try) 2>&5
3202: ac_status=$?
3203: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204: (exit $ac_status); }; } &&
3205: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3206: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207: (eval $ac_try) 2>&5
3208: ac_status=$?
3209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210: (exit $ac_status); }; }; then
3211: ac_compiler_gnu=yes
3212: else
3213: echo "$as_me: failed program was:" >&5
3214: sed 's/^/| /' conftest.$ac_ext >&5
3215:
3216: ac_compiler_gnu=no
3217: fi
1.16 paf 3218: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3219: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220:
3221: fi
3222: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3223: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3224: GCC=`test $ac_compiler_gnu = yes && echo yes`
3225: ac_test_CFLAGS=${CFLAGS+set}
3226: ac_save_CFLAGS=$CFLAGS
3227: CFLAGS="-g"
3228: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3229: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3230: if test "${ac_cv_prog_cc_g+set}" = set; then
3231: echo $ECHO_N "(cached) $ECHO_C" >&6
3232: else
3233: cat >conftest.$ac_ext <<_ACEOF
3234: /* confdefs.h. */
3235: _ACEOF
3236: cat confdefs.h >>conftest.$ac_ext
3237: cat >>conftest.$ac_ext <<_ACEOF
3238: /* end confdefs.h. */
3239:
3240: int
3241: main ()
3242: {
3243:
3244: ;
3245: return 0;
3246: }
3247: _ACEOF
3248: rm -f conftest.$ac_objext
3249: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3250: (eval $ac_compile) 2>conftest.er1
1.10 paf 3251: ac_status=$?
1.16 paf 3252: grep -v '^ *+' conftest.er1 >conftest.err
3253: rm -f conftest.er1
3254: cat conftest.err >&5
1.10 paf 3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256: (exit $ac_status); } &&
1.16 paf 3257: { ac_try='test -z "$ac_c_werror_flag"
3258: || test ! -s conftest.err'
3259: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260: (eval $ac_try) 2>&5
3261: ac_status=$?
3262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263: (exit $ac_status); }; } &&
3264: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3265: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266: (eval $ac_try) 2>&5
3267: ac_status=$?
3268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269: (exit $ac_status); }; }; then
3270: ac_cv_prog_cc_g=yes
1.1 parser 3271: else
1.10 paf 3272: echo "$as_me: failed program was:" >&5
3273: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3274:
1.10 paf 3275: ac_cv_prog_cc_g=no
1.1 parser 3276: fi
1.16 paf 3277: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3278: fi
1.10 paf 3279: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3281: if test "$ac_test_CFLAGS" = set; then
1.10 paf 3282: CFLAGS=$ac_save_CFLAGS
1.1 parser 3283: elif test $ac_cv_prog_cc_g = yes; then
3284: if test "$GCC" = yes; then
3285: CFLAGS="-g -O2"
3286: else
3287: CFLAGS="-g"
3288: fi
3289: else
3290: if test "$GCC" = yes; then
3291: CFLAGS="-O2"
3292: else
3293: CFLAGS=
3294: fi
3295: fi
1.10 paf 3296: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3297: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3298: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3299: echo $ECHO_N "(cached) $ECHO_C" >&6
3300: else
3301: ac_cv_prog_cc_stdc=no
3302: ac_save_CC=$CC
3303: cat >conftest.$ac_ext <<_ACEOF
3304: /* confdefs.h. */
3305: _ACEOF
3306: cat confdefs.h >>conftest.$ac_ext
3307: cat >>conftest.$ac_ext <<_ACEOF
3308: /* end confdefs.h. */
3309: #include <stdarg.h>
3310: #include <stdio.h>
3311: #include <sys/types.h>
3312: #include <sys/stat.h>
3313: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314: struct buf { int x; };
3315: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316: static char *e (p, i)
3317: char **p;
3318: int i;
3319: {
3320: return p[i];
3321: }
3322: static char *f (char * (*g) (char **, int), char **p, ...)
3323: {
3324: char *s;
3325: va_list v;
3326: va_start (v,p);
3327: s = g (p, va_arg (v,int));
3328: va_end (v);
3329: return s;
3330: }
1.16 paf 3331:
3332: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333: function prototypes and stuff, but not '\xHH' hex character constants.
3334: These don't provoke an error unfortunately, instead are silently treated
3335: as 'x'. The following induces an error, until -std1 is added to get
3336: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337: array size at least. It's necessary to write '\x00'==0 to get something
3338: that's true only with -std1. */
3339: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340:
1.10 paf 3341: int test (int i, double x);
3342: struct s1 {int (*f) (int a);};
3343: struct s2 {int (*f) (double a);};
3344: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345: int argc;
3346: char **argv;
3347: int
3348: main ()
3349: {
3350: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3351: ;
3352: return 0;
3353: }
3354: _ACEOF
3355: # Don't try gcc -ansi; that turns off useful extensions and
3356: # breaks some systems' header files.
3357: # AIX -qlanglvl=ansi
3358: # Ultrix and OSF/1 -std1
3359: # HP-UX 10.20 and later -Ae
3360: # HP-UX older versions -Aa -D_HPUX_SOURCE
3361: # SVR4 -Xc -D__EXTENSIONS__
3362: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363: do
3364: CC="$ac_save_CC $ac_arg"
3365: rm -f conftest.$ac_objext
3366: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3367: (eval $ac_compile) 2>conftest.er1
1.10 paf 3368: ac_status=$?
1.16 paf 3369: grep -v '^ *+' conftest.er1 >conftest.err
3370: rm -f conftest.er1
3371: cat conftest.err >&5
1.10 paf 3372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373: (exit $ac_status); } &&
1.16 paf 3374: { ac_try='test -z "$ac_c_werror_flag"
3375: || test ! -s conftest.err'
3376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377: (eval $ac_try) 2>&5
3378: ac_status=$?
3379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380: (exit $ac_status); }; } &&
3381: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3382: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383: (eval $ac_try) 2>&5
3384: ac_status=$?
3385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386: (exit $ac_status); }; }; then
3387: ac_cv_prog_cc_stdc=$ac_arg
3388: break
3389: else
3390: echo "$as_me: failed program was:" >&5
3391: sed 's/^/| /' conftest.$ac_ext >&5
3392:
3393: fi
1.16 paf 3394: rm -f conftest.err conftest.$ac_objext
1.10 paf 3395: done
3396: rm -f conftest.$ac_ext conftest.$ac_objext
3397: CC=$ac_save_CC
3398:
3399: fi
3400:
3401: case "x$ac_cv_prog_cc_stdc" in
3402: x|xno)
3403: echo "$as_me:$LINENO: result: none needed" >&5
3404: echo "${ECHO_T}none needed" >&6 ;;
3405: *)
3406: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3407: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3408: CC="$CC $ac_cv_prog_cc_stdc" ;;
3409: esac
3410:
3411: # Some people use a C++ compiler to compile C. Since we use `exit',
3412: # in C++ we need to declare it. In case someone uses the same compiler
3413: # for both compiling C and C++ we need to have the C++ compiler decide
3414: # the declaration of exit, since it's the most demanding environment.
3415: cat >conftest.$ac_ext <<_ACEOF
3416: #ifndef __cplusplus
3417: choke me
3418: #endif
3419: _ACEOF
3420: rm -f conftest.$ac_objext
3421: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3422: (eval $ac_compile) 2>conftest.er1
1.10 paf 3423: ac_status=$?
1.16 paf 3424: grep -v '^ *+' conftest.er1 >conftest.err
3425: rm -f conftest.er1
3426: cat conftest.err >&5
1.10 paf 3427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428: (exit $ac_status); } &&
1.16 paf 3429: { ac_try='test -z "$ac_c_werror_flag"
3430: || test ! -s conftest.err'
3431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432: (eval $ac_try) 2>&5
3433: ac_status=$?
3434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435: (exit $ac_status); }; } &&
3436: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438: (eval $ac_try) 2>&5
3439: ac_status=$?
3440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441: (exit $ac_status); }; }; then
3442: for ac_declaration in \
1.16 paf 3443: '' \
1.10 paf 3444: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3445: 'extern "C" void std::exit (int); using std::exit;' \
3446: 'extern "C" void exit (int) throw ();' \
3447: 'extern "C" void exit (int);' \
3448: 'void exit (int);'
3449: do
3450: cat >conftest.$ac_ext <<_ACEOF
3451: /* confdefs.h. */
3452: _ACEOF
3453: cat confdefs.h >>conftest.$ac_ext
3454: cat >>conftest.$ac_ext <<_ACEOF
3455: /* end confdefs.h. */
1.16 paf 3456: $ac_declaration
1.10 paf 3457: #include <stdlib.h>
3458: int
3459: main ()
3460: {
3461: exit (42);
3462: ;
3463: return 0;
3464: }
3465: _ACEOF
3466: rm -f conftest.$ac_objext
3467: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3468: (eval $ac_compile) 2>conftest.er1
1.10 paf 3469: ac_status=$?
1.16 paf 3470: grep -v '^ *+' conftest.er1 >conftest.err
3471: rm -f conftest.er1
3472: cat conftest.err >&5
1.10 paf 3473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474: (exit $ac_status); } &&
1.16 paf 3475: { ac_try='test -z "$ac_c_werror_flag"
3476: || test ! -s conftest.err'
3477: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478: (eval $ac_try) 2>&5
3479: ac_status=$?
3480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481: (exit $ac_status); }; } &&
3482: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3483: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484: (eval $ac_try) 2>&5
3485: ac_status=$?
3486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487: (exit $ac_status); }; }; then
3488: :
3489: else
3490: echo "$as_me: failed program was:" >&5
3491: sed 's/^/| /' conftest.$ac_ext >&5
3492:
3493: continue
3494: fi
1.16 paf 3495: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3496: cat >conftest.$ac_ext <<_ACEOF
3497: /* confdefs.h. */
3498: _ACEOF
3499: cat confdefs.h >>conftest.$ac_ext
3500: cat >>conftest.$ac_ext <<_ACEOF
3501: /* end confdefs.h. */
3502: $ac_declaration
3503: int
3504: main ()
3505: {
3506: exit (42);
3507: ;
3508: return 0;
3509: }
3510: _ACEOF
3511: rm -f conftest.$ac_objext
3512: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3513: (eval $ac_compile) 2>conftest.er1
1.10 paf 3514: ac_status=$?
1.16 paf 3515: grep -v '^ *+' conftest.er1 >conftest.err
3516: rm -f conftest.er1
3517: cat conftest.err >&5
1.10 paf 3518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519: (exit $ac_status); } &&
1.16 paf 3520: { ac_try='test -z "$ac_c_werror_flag"
3521: || test ! -s conftest.err'
3522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523: (eval $ac_try) 2>&5
3524: ac_status=$?
3525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526: (exit $ac_status); }; } &&
3527: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3528: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529: (eval $ac_try) 2>&5
3530: ac_status=$?
3531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532: (exit $ac_status); }; }; then
3533: break
3534: else
3535: echo "$as_me: failed program was:" >&5
3536: sed 's/^/| /' conftest.$ac_ext >&5
3537:
3538: fi
1.16 paf 3539: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3540: done
3541: rm -f conftest*
3542: if test -n "$ac_declaration"; then
3543: echo '#ifdef __cplusplus' >>confdefs.h
3544: echo $ac_declaration >>confdefs.h
3545: echo '#endif' >>confdefs.h
3546: fi
3547:
3548: else
3549: echo "$as_me: failed program was:" >&5
3550: sed 's/^/| /' conftest.$ac_ext >&5
3551:
3552: fi
1.16 paf 3553: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3554: ac_ext=c
3555: ac_cpp='$CPP $CPPFLAGS'
3556: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 3559:
3560: depcc="$CC" am_compiler_list=
3561:
3562: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3563: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3564: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3565: echo $ECHO_N "(cached) $ECHO_C" >&6
3566: else
3567: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3568: # We make a subdir and do the tests there. Otherwise we can end up
3569: # making bogus files that we don't know about and never remove. For
3570: # instance it was reported that on HP-UX the gcc test will end up
3571: # making a dummy file named `D' -- because `-MD' means `put the output
3572: # in D'.
3573: mkdir conftest.dir
3574: # Copy depcomp to subdir because otherwise we won't find it if we're
3575: # using a relative directory.
3576: cp "$am_depcomp" conftest.dir
3577: cd conftest.dir
1.16 paf 3578: # We will build objects and dependencies in a subdirectory because
3579: # it helps to detect inapplicable dependency modes. For instance
3580: # both Tru64's cc and ICC support -MD to output dependencies as a
3581: # side effect of compilation, but ICC will put the dependencies in
3582: # the current directory while Tru64 will put them in the object
3583: # directory.
3584: mkdir sub
1.10 paf 3585:
3586: am_cv_CC_dependencies_compiler_type=none
3587: if test "$am_compiler_list" = ""; then
3588: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3589: fi
3590: for depmode in $am_compiler_list; do
1.16 paf 3591: # Setup a source with many dependencies, because some compilers
3592: # like to wrap large dependency lists on column 80 (with \), and
3593: # we should not choose a depcomp mode which is confused by this.
3594: #
1.10 paf 3595: # We need to recreate these files for each test, as the compiler may
3596: # overwrite some of them when testing with obscure command lines.
3597: # This happens at least with the AIX C compiler.
1.16 paf 3598: : > sub/conftest.c
3599: for i in 1 2 3 4 5 6; do
3600: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3601: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3602: # Solaris 8's {/usr,}/bin/sh.
3603: touch sub/conftst$i.h
3604: done
3605: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 3606:
3607: case $depmode in
3608: nosideeffect)
3609: # after this tag, mechanisms are not by side-effect, so they'll
3610: # only be used when explicitly requested
3611: if test "x$enable_dependency_tracking" = xyes; then
3612: continue
3613: else
3614: break
3615: fi
3616: ;;
3617: none) break ;;
3618: esac
3619: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3620: # mode. It turns out that the SunPro C++ compiler does not properly
3621: # handle `-M -o', and we need to detect this.
3622: if depmode=$depmode \
1.16 paf 3623: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3624: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3625: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3626: >/dev/null 2>conftest.err &&
3627: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3628: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 3629: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 3630: # icc doesn't choke on unknown options, it will just issue warnings
3631: # or remarks (even with -Werror). So we grep stderr for any message
3632: # that says an option was ignored or not supported.
3633: # When given -MP, icc 7.0 and 7.1 complain thusly:
3634: # icc: Command line warning: ignoring option '-M'; no argument required
3635: # The diagnosis changed in icc 8.0:
3636: # icc: Command line remark: option '-MP' not supported
3637: if (grep 'ignoring option' conftest.err ||
3638: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3639: am_cv_CC_dependencies_compiler_type=$depmode
3640: break
3641: fi
1.10 paf 3642: fi
3643: done
3644:
3645: cd ..
3646: rm -rf conftest.dir
3647: else
3648: am_cv_CC_dependencies_compiler_type=none
3649: fi
3650:
3651: fi
3652: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3653: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3654: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3655:
3656:
3657:
3658: if
3659: test "x$enable_dependency_tracking" != xno \
3660: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3661: am__fastdepCC_TRUE=
3662: am__fastdepCC_FALSE='#'
3663: else
3664: am__fastdepCC_TRUE='#'
3665: am__fastdepCC_FALSE=
3666: fi
3667:
3668:
1.15 paf 3669:
3670: ac_ext=c
3671: ac_cpp='$CPP $CPPFLAGS'
3672: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675:
3676:
3677: case $enable_ltdl_convenience in
3678: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3679: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3680: { (exit 1); exit 1; }; } ;;
3681: "") enable_ltdl_convenience=yes
3682: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3683: esac
3684: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3685: LTDLINCL='-I${top_srcdir}/''libltdl'
3686: # For backwards non-gettext consistent compatibility...
3687: INCLTDL="$LTDLINCL"
3688:
3689:
3690:
3691:
3692: # Check whether --enable-static or --disable-static was given.
3693: if test "${enable_static+set}" = set; then
3694: enableval="$enable_static"
3695: p=${PACKAGE-default}
3696: case $enableval in
3697: yes) enable_static=yes ;;
3698: no) enable_static=no ;;
3699: *)
3700: enable_static=no
3701: # Look at the argument we got. We use all the common list separators.
3702: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3703: for pkg in $enableval; do
3704: if test "X$pkg" = "X$p"; then
3705: enable_static=yes
3706: fi
3707: done
3708: IFS="$ac_save_ifs"
3709: ;;
3710: esac
3711: else
3712: enable_static=no
3713: fi;
3714:
3715: # Check whether --enable-shared or --disable-shared was given.
3716: if test "${enable_shared+set}" = set; then
3717: enableval="$enable_shared"
3718: p=${PACKAGE-default}
3719: case $enableval in
3720: yes) enable_shared=yes ;;
3721: no) enable_shared=no ;;
3722: *)
3723: enable_shared=no
3724: # Look at the argument we got. We use all the common list separators.
3725: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3726: for pkg in $enableval; do
3727: if test "X$pkg" = "X$p"; then
3728: enable_shared=yes
3729: fi
3730: done
3731: IFS="$ac_save_ifs"
3732: ;;
3733: esac
3734: else
3735: enable_shared=yes
3736: fi;
3737: # Check whether --enable-fast-install or --disable-fast-install was given.
3738: if test "${enable_fast_install+set}" = set; then
3739: enableval="$enable_fast_install"
3740: p=${PACKAGE-default}
3741: case $enableval in
3742: yes) enable_fast_install=yes ;;
3743: no) enable_fast_install=no ;;
3744: *)
3745: enable_fast_install=no
3746: # Look at the argument we got. We use all the common list separators.
3747: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3748: for pkg in $enableval; do
3749: if test "X$pkg" = "X$p"; then
3750: enable_fast_install=yes
3751: fi
3752: done
3753: IFS="$ac_save_ifs"
3754: ;;
3755: esac
3756: else
3757: enable_fast_install=yes
3758: fi;
3759: # Make sure we can run config.sub.
3760: $ac_config_sub sun4 >/dev/null 2>&1 ||
3761: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3762: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3763: { (exit 1); exit 1; }; }
3764:
3765: echo "$as_me:$LINENO: checking build system type" >&5
3766: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3767: if test "${ac_cv_build+set}" = set; then
3768: echo $ECHO_N "(cached) $ECHO_C" >&6
3769: else
3770: ac_cv_build_alias=$build_alias
3771: test -z "$ac_cv_build_alias" &&
3772: ac_cv_build_alias=`$ac_config_guess`
3773: test -z "$ac_cv_build_alias" &&
3774: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3775: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3776: { (exit 1); exit 1; }; }
3777: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3778: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3779: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3780: { (exit 1); exit 1; }; }
3781:
3782: fi
3783: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3784: echo "${ECHO_T}$ac_cv_build" >&6
3785: build=$ac_cv_build
3786: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3787: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3788: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3789:
3790:
3791: echo "$as_me:$LINENO: checking host system type" >&5
3792: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3793: if test "${ac_cv_host+set}" = set; then
3794: echo $ECHO_N "(cached) $ECHO_C" >&6
3795: else
3796: ac_cv_host_alias=$host_alias
3797: test -z "$ac_cv_host_alias" &&
3798: ac_cv_host_alias=$ac_cv_build_alias
3799: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3800: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3801: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3802: { (exit 1); exit 1; }; }
3803:
3804: fi
3805: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3806: echo "${ECHO_T}$ac_cv_host" >&6
3807: host=$ac_cv_host
3808: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3809: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3810: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3811:
3812:
1.10 paf 3813: # Find the correct PATH separator. Usually this is `:', but
3814: # DJGPP uses `;' like DOS.
3815: if test "X${PATH_SEPARATOR+set}" != Xset; then
3816: UNAME=${UNAME-`uname 2>/dev/null`}
3817: case X$UNAME in
3818: *-DOS) lt_cv_sys_path_separator=';' ;;
3819: *) lt_cv_sys_path_separator=':' ;;
3820: esac
3821: PATH_SEPARATOR=$lt_cv_sys_path_separator
3822: fi
3823:
1.1 parser 3824:
3825: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3826: if test "${with_gnu_ld+set}" = set; then
3827: withval="$with_gnu_ld"
3828: test "$withval" = no || with_gnu_ld=yes
3829: else
3830: with_gnu_ld=no
1.10 paf 3831: fi;
1.1 parser 3832: ac_prog=ld
1.10 paf 3833: if test "$GCC" = yes; then
1.1 parser 3834: # Check if gcc -print-prog-name=ld gives a path.
1.10 paf 3835: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3836: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3837: case $host in
3838: *-*-mingw*)
3839: # gcc leaves a trailing carriage return which upsets mingw
3840: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3841: *)
3842: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3843: esac
3844: case $ac_prog in
1.1 parser 3845: # Accept absolute paths.
3846: [\\/]* | [A-Za-z]:[\\/]*)
3847: re_direlt='/[^/][^/]*/\.\./'
3848: # Canonicalize the path of ld
3849: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3850: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3851: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3852: done
3853: test -z "$LD" && LD="$ac_prog"
3854: ;;
3855: "")
3856: # If it fails, then pretend we aren't using GCC.
3857: ac_prog=ld
3858: ;;
3859: *)
3860: # If it is relative, then search for the first ld in PATH.
3861: with_gnu_ld=unknown
3862: ;;
3863: esac
3864: elif test "$with_gnu_ld" = yes; then
1.10 paf 3865: echo "$as_me:$LINENO: checking for GNU ld" >&5
3866: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3867: else
1.10 paf 3868: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3869: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3870: fi
1.10 paf 3871: if test "${lt_cv_path_LD+set}" = set; then
3872: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3873: else
3874: if test -z "$LD"; then
1.10 paf 3875: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3876: for ac_dir in $PATH; do
3877: test -z "$ac_dir" && ac_dir=.
3878: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 paf 3879: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3880: # Check to see if the program is GNU ld. I'd rather use --version,
3881: # but apparently some GNU ld's only accept -v.
3882: # Break only if it was the GNU/non-GNU ld that we prefer.
1.10 paf 3883: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3884: test "$with_gnu_ld" != no && break
3885: else
3886: test "$with_gnu_ld" != yes && break
3887: fi
3888: fi
3889: done
3890: IFS="$ac_save_ifs"
3891: else
1.10 paf 3892: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3893: fi
3894: fi
3895:
1.10 paf 3896: LD="$lt_cv_path_LD"
1.1 parser 3897: if test -n "$LD"; then
1.10 paf 3898: echo "$as_me:$LINENO: result: $LD" >&5
3899: echo "${ECHO_T}$LD" >&6
1.1 parser 3900: else
1.10 paf 3901: echo "$as_me:$LINENO: result: no" >&5
3902: echo "${ECHO_T}no" >&6
1.1 parser 3903: fi
1.10 paf 3904: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3905: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3906: { (exit 1); exit 1; }; }
3907: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3908: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3909: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3910: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3911: else
3912: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3913: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.10 paf 3914: lt_cv_prog_gnu_ld=yes
1.1 parser 3915: else
1.10 paf 3916: lt_cv_prog_gnu_ld=no
1.1 parser 3917: fi
3918: fi
1.10 paf 3919: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3920: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3921: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3922:
3923:
1.10 paf 3924: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3925: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3926: if test "${lt_cv_ld_reload_flag+set}" = set; then
3927: echo $ECHO_N "(cached) $ECHO_C" >&6
3928: else
3929: lt_cv_ld_reload_flag='-r'
3930: fi
3931: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3932: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3933: reload_flag=$lt_cv_ld_reload_flag
3934: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3935:
1.10 paf 3936: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3937: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3938: if test "${lt_cv_path_NM+set}" = set; then
3939: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3940: else
3941: if test -n "$NM"; then
3942: # Let the user override the test.
1.10 paf 3943: lt_cv_path_NM="$NM"
1.1 parser 3944: else
1.10 paf 3945: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3946: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3947: test -z "$ac_dir" && ac_dir=.
1.10 paf 3948: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3949: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3950: # Check to see if the nm accepts a BSD-compat flag.
3951: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3952: # nm: unknown option "B" ignored
1.10 paf 3953: # Tru64's nm complains that /dev/null is an invalid object file
3954: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3955: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3956: break
1.10 paf 3957: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3958: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3959: break
3960: else
1.10 paf 3961: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3962: continue # so that we can try to find one that supports BSD flags
3963: fi
3964: fi
3965: done
3966: IFS="$ac_save_ifs"
1.10 paf 3967: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3968: fi
3969: fi
3970:
1.10 paf 3971: NM="$lt_cv_path_NM"
3972: echo "$as_me:$LINENO: result: $NM" >&5
3973: echo "${ECHO_T}$NM" >&6
1.1 parser 3974:
1.10 paf 3975: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3976: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3977: if test "${lt_cv_path_SED+set}" = set; then
3978: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3979: else
1.10 paf 3980: # Loop through the user's path and test for sed and gsed.
3981: # Then use that list of sed's as ones to test for truncation.
3982: as_executable_p="test -f"
3983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984: for as_dir in $PATH
3985: do
3986: IFS=$as_save_IFS
3987: test -z "$as_dir" && as_dir=.
3988: for ac_prog in sed gsed; do
3989: for ac_exec_ext in '' $ac_executable_extensions; do
3990: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3991: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3992: fi
3993: done
3994: done
3995: done
3996:
3997: # Create a temporary directory, and hook for its removal unless debugging.
3998: $debug ||
3999: {
4000: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4001: trap '{ (exit 1); exit 1; }' 1 2 13 15
4002: }
4003:
4004: # Create a (secure) tmp directory for tmp files.
4005: : ${TMPDIR=/tmp}
4006: {
4007: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4008: test -n "$tmp" && test -d "$tmp"
4009: } ||
4010: {
4011: tmp=$TMPDIR/sed$$-$RANDOM
4012: (umask 077 && mkdir $tmp)
4013: } ||
4014: {
4015: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4016: { (exit 1); exit 1; }
4017: }
4018: _max=0
4019: _count=0
4020: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4021: # along with /bin/sed that truncates output.
4022: for _sed in $_sed_list /usr/xpg4/bin/sed; do
4023: test ! -f ${_sed} && break
4024: cat /dev/null > "$tmp/sed.in"
4025: _count=0
4026: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4027: # Check for GNU sed and select it if it is found.
4028: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4029: lt_cv_path_SED=${_sed}
4030: break
4031: fi
4032: while true; do
4033: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4034: mv "$tmp/sed.tmp" "$tmp/sed.in"
4035: cp "$tmp/sed.in" "$tmp/sed.nl"
4036: echo >>"$tmp/sed.nl"
4037: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4038: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4039: # 40000 chars as input seems more than enough
4040: test $_count -gt 10 && break
4041: _count=`expr $_count + 1`
4042: if test $_count -gt $_max; then
4043: _max=$_count
4044: lt_cv_path_SED=$_sed
4045: fi
4046: done
4047: done
4048: rm -rf "$tmp"
4049:
1.1 parser 4050: fi
4051:
1.10 paf 4052: if test "X$SED" != "X"; then
4053: lt_cv_path_SED=$SED
1.6 paf 4054: else
1.10 paf 4055: SED=$lt_cv_path_SED
1.6 paf 4056: fi
1.10 paf 4057: echo "$as_me:$LINENO: result: $SED" >&5
4058: echo "${ECHO_T}$SED" >&6
4059:
4060: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4061: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4062: LN_S=$as_ln_s
4063: if test "$LN_S" = "ln -s"; then
4064: echo "$as_me:$LINENO: result: yes" >&5
4065: echo "${ECHO_T}yes" >&6
4066: else
4067: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4068: echo "${ECHO_T}no, using $LN_S" >&6
4069: fi
4070:
4071: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4072: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4073: if test "${lt_cv_deplibs_check_method+set}" = set; then
4074: echo $ECHO_N "(cached) $ECHO_C" >&6
4075: else
4076: lt_cv_file_magic_cmd='$MAGIC_CMD'
4077: lt_cv_file_magic_test_file=
4078: lt_cv_deplibs_check_method='unknown'
4079: # Need to set the preceding variable on all platforms that support
4080: # interlibrary dependencies.
4081: # 'none' -- dependencies not supported.
4082: # `unknown' -- same as none, but documents that we really don't know.
4083: # 'pass_all' -- all dependencies passed with no checks.
4084: # 'test_compile' -- check by making test program.
4085: # 'file_magic [[regex]]' -- check by looking for files in library path
4086: # which responds to the $file_magic_cmd with a given egrep regex.
4087: # If you have `file' or equivalent on your system and you're not sure
4088: # whether `pass_all' will *always* work, you probably want this one.
4089:
4090: case $host_os in
4091: aix4* | aix5*)
4092: lt_cv_deplibs_check_method=pass_all
4093: ;;
1.6 paf 4094:
1.10 paf 4095: beos*)
4096: lt_cv_deplibs_check_method=pass_all
4097: ;;
1.1 parser 4098:
1.10 paf 4099: bsdi4*)
4100: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4101: lt_cv_file_magic_cmd='/usr/bin/file -L'
4102: lt_cv_file_magic_test_file=/shlib/libc.so
4103: ;;
1.1 parser 4104:
1.10 paf 4105: cygwin* | mingw* | pw32*)
4106: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4107: lt_cv_file_magic_cmd='$OBJDUMP -f'
4108: ;;
1.1 parser 4109:
1.10 paf 4110: darwin* | rhapsody*)
4111: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4112: lt_cv_file_magic_cmd='/usr/bin/file -L'
4113: case "$host_os" in
4114: rhapsody* | darwin1.[012])
4115: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4116: ;;
4117: *) # Darwin 1.3 on
4118: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4119: ;;
4120: esac
4121: ;;
1.1 parser 4122:
1.10 paf 4123: freebsd*)
4124: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4125: case $host_cpu in
4126: i*86 )
4127: # Not sure whether the presence of OpenBSD here was a mistake.
4128: # Let's accept both of them until this is cleared up.
4129: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4130: lt_cv_file_magic_cmd=/usr/bin/file
4131: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4132: ;;
4133: esac
1.10 paf 4134: else
4135: lt_cv_deplibs_check_method=pass_all
1.1 parser 4136: fi
4137: ;;
4138:
1.10 paf 4139: gnu*)
4140: lt_cv_deplibs_check_method=pass_all
4141: ;;
4142:
4143: hpux10.20*|hpux11*)
4144: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4145: lt_cv_file_magic_cmd=/usr/bin/file
4146: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4147: ;;
1.1 parser 4148:
1.10 paf 4149: irix5* | irix6* | nonstopux*)
4150: case $host_os in
4151: irix5* | nonstopux*)
4152: # this will be overridden with pass_all, but let us keep it just in case
4153: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4154: ;;
4155: *)
4156: case $LD in
4157: *-32|*"-32 ") libmagic=32-bit;;
4158: *-n32|*"-n32 ") libmagic=N32;;
4159: *-64|*"-64 ") libmagic=64-bit;;
4160: *) libmagic=never-match;;
4161: esac
4162: # this will be overridden with pass_all, but let us keep it just in case
4163: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4164: ;;
4165: esac
4166: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4167: lt_cv_deplibs_check_method=pass_all
4168: ;;
1.1 parser 4169:
1.10 paf 4170: # This must be Linux ELF.
4171: linux-gnu*)
4172: case $host_cpu in
4173: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4174: lt_cv_deplibs_check_method=pass_all ;;
4175: *)
4176: # glibc up to 2.1.1 does not perform some relocations on ARM
4177: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4178: esac
4179: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4180: ;;
4181:
4182: netbsd*)
4183: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4184: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4185: else
4186: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4187: fi
4188: ;;
4189:
4190: newos6*)
4191: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4192: lt_cv_file_magic_cmd=/usr/bin/file
4193: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4194: ;;
1.1 parser 4195:
1.10 paf 4196: openbsd*)
4197: lt_cv_file_magic_cmd=/usr/bin/file
4198: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4199: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4200: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4201: else
4202: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1.1 parser 4203: fi
4204: ;;
4205:
1.10 paf 4206: osf3* | osf4* | osf5*)
4207: # this will be overridden with pass_all, but let us keep it just in case
4208: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4209: lt_cv_file_magic_test_file=/shlib/libc.so
4210: lt_cv_deplibs_check_method=pass_all
4211: ;;
4212:
4213: sco3.2v5*)
4214: lt_cv_deplibs_check_method=pass_all
4215: ;;
4216:
4217: solaris*)
4218: lt_cv_deplibs_check_method=pass_all
4219: lt_cv_file_magic_test_file=/lib/libc.so
4220: ;;
4221:
4222: sysv5uw[78]* | sysv4*uw2*)
4223: lt_cv_deplibs_check_method=pass_all
4224: ;;
4225:
4226: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4227: case $host_vendor in
4228: motorola)
4229: 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]'
4230: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4231: ;;
4232: ncr)
4233: lt_cv_deplibs_check_method=pass_all
4234: ;;
4235: sequent)
4236: lt_cv_file_magic_cmd='/bin/file'
4237: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4238: ;;
4239: sni)
4240: lt_cv_file_magic_cmd='/bin/file'
4241: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4242: lt_cv_file_magic_test_file=/lib/libc.so
4243: ;;
4244: siemens)
4245: lt_cv_deplibs_check_method=pass_all
4246: ;;
4247: esac
4248: ;;
4249: esac
4250:
4251: fi
4252: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4253: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4254: file_magic_cmd=$lt_cv_file_magic_cmd
4255: deplibs_check_method=$lt_cv_deplibs_check_method
4256:
4257:
4258:
4259:
4260:
4261:
4262:
4263:
4264: # Check for command to grab the raw symbol name followed by C symbol from nm.
4265: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4266: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4267: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4268: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4269: else
1.10 paf 4270:
4271: # These are sane defaults that work on at least a few old systems.
4272: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4273:
4274: # Character class describing NM global symbol codes.
4275: symcode='[BCDEGRST]'
4276:
4277: # Regexp to match symbols that can be accessed directly from C.
4278: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4279:
4280: # Transform the above into a raw symbol and a C symbol.
4281: symxfrm='\1 \2\3 \3'
4282:
4283: # Transform an extracted symbol line into a proper C declaration
4284: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4285:
4286: # Transform an extracted symbol line into symbol name and symbol address
4287: 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'"
4288:
4289: # Define system-specific variables.
4290: case $host_os in
4291: aix*)
4292: symcode='[BCDT]'
4293: ;;
4294: cygwin* | mingw* | pw32*)
4295: symcode='[ABCDGISTW]'
4296: ;;
4297: hpux*) # Its linker distinguishes data from code symbols
4298: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4299: 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'"
4300: ;;
4301: irix* | nonstopux*)
4302: symcode='[BCDEGRST]'
4303: ;;
4304: osf*)
4305: symcode='[BCDEGQRST]'
4306: ;;
4307: solaris* | sysv5*)
4308: symcode='[BDT]'
4309: ;;
4310: sysv4)
4311: symcode='[DFNSTU]'
4312: ;;
4313: esac
4314:
4315: # Handle CRLF in mingw tool chain
4316: opt_cr=
4317: case $host_os in
4318: mingw*)
4319: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4320: ;;
4321: esac
4322:
4323: # If we're using GNU nm, then use its standard symbol codes.
4324: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4325: symcode='[ABCDGISTW]'
4326: fi
4327:
4328: # Try without a prefix undercore, then with it.
4329: for ac_symprfx in "" "_"; do
4330:
4331: # Write the raw and C identifiers.
4332: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4333:
4334: # Check to see that the pipe works correctly.
4335: pipe_works=no
4336: rm -f conftest*
4337: cat > conftest.$ac_ext <<EOF
4338: #ifdef __cplusplus
4339: extern "C" {
4340: #endif
4341: char nm_test_var;
4342: void nm_test_func(){}
4343: #ifdef __cplusplus
4344: }
4345: #endif
4346: int main(){nm_test_var='a';nm_test_func();return(0);}
4347: EOF
4348:
4349: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350: (eval $ac_compile) 2>&5
4351: ac_status=$?
4352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353: (exit $ac_status); }; then
4354: # Now try to grab the symbols.
4355: nlist=conftest.nm
4356: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4357: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4358: ac_status=$?
4359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360: (exit $ac_status); } && test -s "$nlist"; then
4361: # Try sorting and uniquifying the output.
4362: if sort "$nlist" | uniq > "$nlist"T; then
4363: mv -f "$nlist"T "$nlist"
4364: else
4365: rm -f "$nlist"T
4366: fi
4367:
4368: # Make sure that we snagged all the symbols we need.
4369: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4370: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4371: cat <<EOF > conftest.$ac_ext
4372: #ifdef __cplusplus
4373: extern "C" {
4374: #endif
4375:
4376: EOF
4377: # Now generate the symbol file.
4378: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4379:
4380: cat <<EOF >> conftest.$ac_ext
4381: #if defined (__STDC__) && __STDC__
4382: # define lt_ptr void *
4383: #else
4384: # define lt_ptr char *
4385: # define const
4386: #endif
4387:
4388: /* The mapping between symbol names and symbols. */
4389: const struct {
4390: const char *name;
4391: lt_ptr address;
4392: }
4393: lt_preloaded_symbols[] =
4394: {
4395: EOF
4396: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4397: cat <<\EOF >> conftest.$ac_ext
4398: {0, (lt_ptr) 0}
4399: };
4400:
4401: #ifdef __cplusplus
4402: }
4403: #endif
4404: EOF
4405: # Now try linking the two files.
4406: mv conftest.$ac_objext conftstm.$ac_objext
4407: save_LIBS="$LIBS"
4408: save_CFLAGS="$CFLAGS"
4409: LIBS="conftstm.$ac_objext"
4410: CFLAGS="$CFLAGS$no_builtin_flag"
4411: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4412: (eval $ac_link) 2>&5
4413: ac_status=$?
4414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415: (exit $ac_status); } && test -s conftest$ac_exeext; then
4416: pipe_works=yes
4417: fi
4418: LIBS="$save_LIBS"
4419: CFLAGS="$save_CFLAGS"
4420: else
4421: echo "cannot find nm_test_func in $nlist" >&5
4422: fi
4423: else
4424: echo "cannot find nm_test_var in $nlist" >&5
4425: fi
4426: else
4427: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1.6 paf 4428: fi
1.10 paf 4429: else
4430: echo "$progname: failed program was:" >&5
4431: cat conftest.$ac_ext >&5
4432: fi
4433: rm -f conftest* conftst*
4434:
4435: # Do not use the global_symbol_pipe unless it works.
4436: if test "$pipe_works" = yes; then
4437: break
4438: else
4439: lt_cv_sys_global_symbol_pipe=
4440: fi
4441: done
4442:
1.6 paf 4443: fi
1.10 paf 4444:
4445: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4446: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4447: global_symbol_to_cdecl=
4448: global_symbol_to_c_name_address=
4449: else
4450: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4451: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1.6 paf 4452: fi
1.10 paf 4453: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4454: then
4455: echo "$as_me:$LINENO: result: failed" >&5
4456: echo "${ECHO_T}failed" >&6
1.6 paf 4457: else
1.10 paf 4458: echo "$as_me:$LINENO: result: ok" >&5
4459: echo "${ECHO_T}ok" >&6
1.6 paf 4460: fi
4461:
1.15 paf 4462: ac_ext=c
4463: ac_cpp='$CPP $CPPFLAGS'
4464: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4468: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4469: # On Suns, sometimes $CPP names a directory.
4470: if test -n "$CPP" && test -d "$CPP"; then
4471: CPP=
4472: fi
4473: if test -z "$CPP"; then
4474: if test "${ac_cv_prog_CPP+set}" = set; then
1.10 paf 4475: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4476: else
1.15 paf 4477: # Double quotes because CPP needs to be expanded
4478: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.10 paf 4479: do
4480: ac_preproc_ok=false
1.15 paf 4481: for ac_c_preproc_warn_flag in '' yes
1.10 paf 4482: do
4483: # Use a header file that comes with gcc, so configuring glibc
4484: # with a fresh cross-compiler works.
4485: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486: # <limits.h> exists even on freestanding compilers.
4487: # On the NeXT, cc -E runs the code through the compiler's parser,
4488: # not just through cpp. "Syntax error" is here to catch this case.
4489: cat >conftest.$ac_ext <<_ACEOF
4490: /* confdefs.h. */
4491: _ACEOF
4492: cat confdefs.h >>conftest.$ac_ext
4493: cat >>conftest.$ac_ext <<_ACEOF
4494: /* end confdefs.h. */
4495: #ifdef __STDC__
4496: # include <limits.h>
4497: #else
4498: # include <assert.h>
4499: #endif
1.16 paf 4500: Syntax error
1.10 paf 4501: _ACEOF
4502: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4503: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4504: ac_status=$?
4505: grep -v '^ *+' conftest.er1 >conftest.err
4506: rm -f conftest.er1
4507: cat conftest.err >&5
4508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509: (exit $ac_status); } >/dev/null; then
4510: if test -s conftest.err; then
1.15 paf 4511: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4512: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4513: else
4514: ac_cpp_err=
4515: fi
1.6 paf 4516: else
1.10 paf 4517: ac_cpp_err=yes
1.6 paf 4518: fi
1.10 paf 4519: if test -z "$ac_cpp_err"; then
4520: :
4521: else
4522: echo "$as_me: failed program was:" >&5
4523: sed 's/^/| /' conftest.$ac_ext >&5
4524:
4525: # Broken: fails on valid input.
4526: continue
1.6 paf 4527: fi
1.10 paf 4528: rm -f conftest.err conftest.$ac_ext
4529:
4530: # OK, works on sane cases. Now check whether non-existent headers
4531: # can be detected and how.
4532: cat >conftest.$ac_ext <<_ACEOF
4533: /* confdefs.h. */
4534: _ACEOF
4535: cat confdefs.h >>conftest.$ac_ext
4536: cat >>conftest.$ac_ext <<_ACEOF
4537: /* end confdefs.h. */
4538: #include <ac_nonexistent.h>
4539: _ACEOF
4540: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4541: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4542: ac_status=$?
4543: grep -v '^ *+' conftest.er1 >conftest.err
4544: rm -f conftest.er1
4545: cat conftest.err >&5
4546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547: (exit $ac_status); } >/dev/null; then
4548: if test -s conftest.err; then
1.15 paf 4549: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4550: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4551: else
4552: ac_cpp_err=
4553: fi
1.6 paf 4554: else
1.10 paf 4555: ac_cpp_err=yes
1.6 paf 4556: fi
1.10 paf 4557: if test -z "$ac_cpp_err"; then
4558: # Broken: success on invalid input.
4559: continue
4560: else
4561: echo "$as_me: failed program was:" >&5
4562: sed 's/^/| /' conftest.$ac_ext >&5
1.6 paf 4563:
1.10 paf 4564: # Passes both tests.
4565: ac_preproc_ok=:
4566: break
1.6 paf 4567: fi
1.10 paf 4568: rm -f conftest.err conftest.$ac_ext
4569:
4570: done
4571: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572: rm -f conftest.err conftest.$ac_ext
4573: if $ac_preproc_ok; then
4574: break
1.6 paf 4575: fi
4576:
1.10 paf 4577: done
1.15 paf 4578: ac_cv_prog_CPP=$CPP
1.10 paf 4579:
4580: fi
1.15 paf 4581: CPP=$ac_cv_prog_CPP
1.6 paf 4582: else
1.15 paf 4583: ac_cv_prog_CPP=$CPP
1.10 paf 4584: fi
1.15 paf 4585: echo "$as_me:$LINENO: result: $CPP" >&5
4586: echo "${ECHO_T}$CPP" >&6
1.10 paf 4587: ac_preproc_ok=false
1.15 paf 4588: for ac_c_preproc_warn_flag in '' yes
1.10 paf 4589: do
4590: # Use a header file that comes with gcc, so configuring glibc
4591: # with a fresh cross-compiler works.
4592: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593: # <limits.h> exists even on freestanding compilers.
4594: # On the NeXT, cc -E runs the code through the compiler's parser,
4595: # not just through cpp. "Syntax error" is here to catch this case.
4596: cat >conftest.$ac_ext <<_ACEOF
4597: /* confdefs.h. */
4598: _ACEOF
4599: cat confdefs.h >>conftest.$ac_ext
4600: cat >>conftest.$ac_ext <<_ACEOF
4601: /* end confdefs.h. */
4602: #ifdef __STDC__
4603: # include <limits.h>
4604: #else
4605: # include <assert.h>
4606: #endif
1.16 paf 4607: Syntax error
1.10 paf 4608: _ACEOF
4609: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4610: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4611: ac_status=$?
4612: grep -v '^ *+' conftest.er1 >conftest.err
4613: rm -f conftest.er1
4614: cat conftest.err >&5
4615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616: (exit $ac_status); } >/dev/null; then
4617: if test -s conftest.err; then
1.15 paf 4618: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4619: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4620: else
4621: ac_cpp_err=
4622: fi
1.6 paf 4623: else
1.10 paf 4624: ac_cpp_err=yes
1.6 paf 4625: fi
1.10 paf 4626: if test -z "$ac_cpp_err"; then
4627: :
1.6 paf 4628: else
1.10 paf 4629: echo "$as_me: failed program was:" >&5
4630: sed 's/^/| /' conftest.$ac_ext >&5
4631:
4632: # Broken: fails on valid input.
4633: continue
1.6 paf 4634: fi
1.10 paf 4635: rm -f conftest.err conftest.$ac_ext
1.6 paf 4636:
1.10 paf 4637: # OK, works on sane cases. Now check whether non-existent headers
4638: # can be detected and how.
4639: cat >conftest.$ac_ext <<_ACEOF
4640: /* confdefs.h. */
4641: _ACEOF
4642: cat confdefs.h >>conftest.$ac_ext
4643: cat >>conftest.$ac_ext <<_ACEOF
4644: /* end confdefs.h. */
4645: #include <ac_nonexistent.h>
4646: _ACEOF
4647: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4648: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4649: ac_status=$?
4650: grep -v '^ *+' conftest.er1 >conftest.err
4651: rm -f conftest.er1
4652: cat conftest.err >&5
4653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654: (exit $ac_status); } >/dev/null; then
4655: if test -s conftest.err; then
1.15 paf 4656: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4657: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4658: else
4659: ac_cpp_err=
4660: fi
1.6 paf 4661: else
1.10 paf 4662: ac_cpp_err=yes
1.6 paf 4663: fi
1.10 paf 4664: if test -z "$ac_cpp_err"; then
4665: # Broken: success on invalid input.
4666: continue
1.6 paf 4667: else
1.10 paf 4668: echo "$as_me: failed program was:" >&5
4669: sed 's/^/| /' conftest.$ac_ext >&5
4670:
4671: # Passes both tests.
4672: ac_preproc_ok=:
4673: break
1.6 paf 4674: fi
1.10 paf 4675: rm -f conftest.err conftest.$ac_ext
1.6 paf 4676:
1.10 paf 4677: done
4678: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679: rm -f conftest.err conftest.$ac_ext
4680: if $ac_preproc_ok; then
4681: :
1.6 paf 4682: else
1.15 paf 4683: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.10 paf 4684: See \`config.log' for more details." >&5
1.15 paf 4685: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.10 paf 4686: See \`config.log' for more details." >&2;}
4687: { (exit 1); exit 1; }; }
1.6 paf 4688: fi
4689:
1.15 paf 4690: ac_ext=c
4691: ac_cpp='$CPP $CPPFLAGS'
4692: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 4695:
4696:
4697: echo "$as_me:$LINENO: checking for egrep" >&5
4698: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4699: if test "${ac_cv_prog_egrep+set}" = set; then
4700: echo $ECHO_N "(cached) $ECHO_C" >&6
4701: else
4702: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4703: then ac_cv_prog_egrep='grep -E'
4704: else ac_cv_prog_egrep='egrep'
1.6 paf 4705: fi
4706: fi
1.10 paf 4707: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4708: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4709: EGREP=$ac_cv_prog_egrep
4710:
4711:
4712: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4713: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4714: if test "${ac_cv_header_stdc+set}" = set; then
4715: echo $ECHO_N "(cached) $ECHO_C" >&6
4716: else
4717: cat >conftest.$ac_ext <<_ACEOF
4718: /* confdefs.h. */
4719: _ACEOF
4720: cat confdefs.h >>conftest.$ac_ext
4721: cat >>conftest.$ac_ext <<_ACEOF
4722: /* end confdefs.h. */
4723: #include <stdlib.h>
4724: #include <stdarg.h>
4725: #include <string.h>
4726: #include <float.h>
4727:
4728: int
4729: main ()
4730: {
4731:
4732: ;
4733: return 0;
4734: }
4735: _ACEOF
4736: rm -f conftest.$ac_objext
4737: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 4738: (eval $ac_compile) 2>conftest.er1
1.10 paf 4739: ac_status=$?
1.16 paf 4740: grep -v '^ *+' conftest.er1 >conftest.err
4741: rm -f conftest.er1
4742: cat conftest.err >&5
1.10 paf 4743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744: (exit $ac_status); } &&
1.16 paf 4745: { ac_try='test -z "$ac_c_werror_flag"
4746: || test ! -s conftest.err'
4747: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748: (eval $ac_try) 2>&5
4749: ac_status=$?
4750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751: (exit $ac_status); }; } &&
4752: { ac_try='test -s conftest.$ac_objext'
1.10 paf 4753: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754: (eval $ac_try) 2>&5
4755: ac_status=$?
4756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757: (exit $ac_status); }; }; then
4758: ac_cv_header_stdc=yes
1.6 paf 4759: else
1.10 paf 4760: echo "$as_me: failed program was:" >&5
4761: sed 's/^/| /' conftest.$ac_ext >&5
4762:
4763: ac_cv_header_stdc=no
1.6 paf 4764: fi
1.16 paf 4765: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.6 paf 4766:
1.10 paf 4767: if test $ac_cv_header_stdc = yes; then
4768: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4769: cat >conftest.$ac_ext <<_ACEOF
4770: /* confdefs.h. */
4771: _ACEOF
4772: cat confdefs.h >>conftest.$ac_ext
4773: cat >>conftest.$ac_ext <<_ACEOF
4774: /* end confdefs.h. */
4775: #include <string.h>
1.6 paf 4776:
1.10 paf 4777: _ACEOF
4778: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779: $EGREP "memchr" >/dev/null 2>&1; then
4780: :
1.6 paf 4781: else
1.10 paf 4782: ac_cv_header_stdc=no
1.6 paf 4783: fi
1.10 paf 4784: rm -f conftest*
4785:
1.6 paf 4786: fi
1.10 paf 4787:
4788: if test $ac_cv_header_stdc = yes; then
4789: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4790: cat >conftest.$ac_ext <<_ACEOF
4791: /* confdefs.h. */
4792: _ACEOF
4793: cat confdefs.h >>conftest.$ac_ext
4794: cat >>conftest.$ac_ext <<_ACEOF
4795: /* end confdefs.h. */
4796: #include <stdlib.h>
4797:
4798: _ACEOF
4799: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4800: $EGREP "free" >/dev/null 2>&1; then
4801: :
1.6 paf 4802: else
1.10 paf 4803: ac_cv_header_stdc=no
1.6 paf 4804: fi
1.10 paf 4805: rm -f conftest*
1.6 paf 4806:
4807: fi
4808:
1.10 paf 4809: if test $ac_cv_header_stdc = yes; then
4810: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4811: if test "$cross_compiling" = yes; then
4812: :
4813: else
4814: cat >conftest.$ac_ext <<_ACEOF
4815: /* confdefs.h. */
4816: _ACEOF
4817: cat confdefs.h >>conftest.$ac_ext
4818: cat >>conftest.$ac_ext <<_ACEOF
4819: /* end confdefs.h. */
4820: #include <ctype.h>
4821: #if ((' ' & 0x0FF) == 0x020)
4822: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4823: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4824: #else
4825: # define ISLOWER(c) \
1.16 paf 4826: (('a' <= (c) && (c) <= 'i') \
4827: || ('j' <= (c) && (c) <= 'r') \
4828: || ('s' <= (c) && (c) <= 'z'))
1.10 paf 4829: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4830: #endif
1.1 parser 4831:
1.10 paf 4832: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4833: int
4834: main ()
4835: {
4836: int i;
4837: for (i = 0; i < 256; i++)
4838: if (XOR (islower (i), ISLOWER (i))
1.16 paf 4839: || toupper (i) != TOUPPER (i))
1.10 paf 4840: exit(2);
4841: exit (0);
4842: }
4843: _ACEOF
4844: rm -f conftest$ac_exeext
4845: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846: (eval $ac_link) 2>&5
4847: ac_status=$?
4848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4850: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851: (eval $ac_try) 2>&5
4852: ac_status=$?
4853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854: (exit $ac_status); }; }; then
1.1 parser 4855: :
4856: else
1.10 paf 4857: echo "$as_me: program exited with status $ac_status" >&5
4858: echo "$as_me: failed program was:" >&5
4859: sed 's/^/| /' conftest.$ac_ext >&5
4860:
4861: ( exit $ac_status )
4862: ac_cv_header_stdc=no
4863: fi
1.16 paf 4864: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.10 paf 4865: fi
4866: fi
1.1 parser 4867: fi
1.10 paf 4868: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4869: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4870: if test $ac_cv_header_stdc = yes; then
4871:
4872: cat >>confdefs.h <<\_ACEOF
4873: #define STDC_HEADERS 1
4874: _ACEOF
1.1 parser 4875:
1.10 paf 4876: fi
1.1 parser 4877:
1.10 paf 4878: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 parser 4879:
4880:
4881:
4882:
4883:
4884:
4885:
4886:
4887:
1.10 paf 4888: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.16 paf 4889: inttypes.h stdint.h unistd.h
1.10 paf 4890: do
4891: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4892: echo "$as_me:$LINENO: checking for $ac_header" >&5
4893: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4894: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4895: echo $ECHO_N "(cached) $ECHO_C" >&6
4896: else
4897: cat >conftest.$ac_ext <<_ACEOF
4898: /* confdefs.h. */
4899: _ACEOF
4900: cat confdefs.h >>conftest.$ac_ext
4901: cat >>conftest.$ac_ext <<_ACEOF
4902: /* end confdefs.h. */
4903: $ac_includes_default
4904:
4905: #include <$ac_header>
4906: _ACEOF
4907: rm -f conftest.$ac_objext
4908: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 4909: (eval $ac_compile) 2>conftest.er1
1.10 paf 4910: ac_status=$?
1.16 paf 4911: grep -v '^ *+' conftest.er1 >conftest.err
4912: rm -f conftest.er1
4913: cat conftest.err >&5
1.10 paf 4914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915: (exit $ac_status); } &&
1.16 paf 4916: { ac_try='test -z "$ac_c_werror_flag"
4917: || test ! -s conftest.err'
4918: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919: (eval $ac_try) 2>&5
4920: ac_status=$?
4921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922: (exit $ac_status); }; } &&
4923: { ac_try='test -s conftest.$ac_objext'
1.10 paf 4924: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925: (eval $ac_try) 2>&5
4926: ac_status=$?
4927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928: (exit $ac_status); }; }; then
4929: eval "$as_ac_Header=yes"
4930: else
4931: echo "$as_me: failed program was:" >&5
4932: sed 's/^/| /' conftest.$ac_ext >&5
4933:
4934: eval "$as_ac_Header=no"
4935: fi
1.16 paf 4936: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 4937: fi
4938: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4939: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941: cat >>confdefs.h <<_ACEOF
4942: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943: _ACEOF
1.1 parser 4944:
1.10 paf 4945: fi
4946:
4947: done
4948:
4949:
4950:
4951: for ac_header in dlfcn.h
4952: do
4953: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4954: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4955: echo "$as_me:$LINENO: checking for $ac_header" >&5
4956: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4957: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4958: echo $ECHO_N "(cached) $ECHO_C" >&6
4959: fi
4960: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4962: else
4963: # Is the header compilable?
4964: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4965: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4966: cat >conftest.$ac_ext <<_ACEOF
4967: /* confdefs.h. */
4968: _ACEOF
4969: cat confdefs.h >>conftest.$ac_ext
4970: cat >>conftest.$ac_ext <<_ACEOF
4971: /* end confdefs.h. */
4972: $ac_includes_default
4973: #include <$ac_header>
4974: _ACEOF
4975: rm -f conftest.$ac_objext
4976: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 4977: (eval $ac_compile) 2>conftest.er1
1.10 paf 4978: ac_status=$?
1.16 paf 4979: grep -v '^ *+' conftest.er1 >conftest.err
4980: rm -f conftest.er1
4981: cat conftest.err >&5
1.10 paf 4982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983: (exit $ac_status); } &&
1.16 paf 4984: { ac_try='test -z "$ac_c_werror_flag"
4985: || test ! -s conftest.err'
4986: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987: (eval $ac_try) 2>&5
4988: ac_status=$?
4989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990: (exit $ac_status); }; } &&
4991: { ac_try='test -s conftest.$ac_objext'
1.10 paf 4992: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993: (eval $ac_try) 2>&5
4994: ac_status=$?
4995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996: (exit $ac_status); }; }; then
4997: ac_header_compiler=yes
4998: else
4999: echo "$as_me: failed program was:" >&5
5000: sed 's/^/| /' conftest.$ac_ext >&5
5001:
5002: ac_header_compiler=no
5003: fi
1.16 paf 5004: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 5005: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5006: echo "${ECHO_T}$ac_header_compiler" >&6
5007:
5008: # Is the header present?
5009: echo "$as_me:$LINENO: checking $ac_header presence" >&5
5010: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5011: cat >conftest.$ac_ext <<_ACEOF
5012: /* confdefs.h. */
5013: _ACEOF
5014: cat confdefs.h >>conftest.$ac_ext
5015: cat >>conftest.$ac_ext <<_ACEOF
5016: /* end confdefs.h. */
5017: #include <$ac_header>
5018: _ACEOF
5019: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021: ac_status=$?
5022: grep -v '^ *+' conftest.er1 >conftest.err
5023: rm -f conftest.er1
5024: cat conftest.err >&5
5025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026: (exit $ac_status); } >/dev/null; then
5027: if test -s conftest.err; then
1.15 paf 5028: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 5029: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 5030: else
5031: ac_cpp_err=
5032: fi
5033: else
5034: ac_cpp_err=yes
5035: fi
5036: if test -z "$ac_cpp_err"; then
5037: ac_header_preproc=yes
5038: else
5039: echo "$as_me: failed program was:" >&5
5040: sed 's/^/| /' conftest.$ac_ext >&5
5041:
5042: ac_header_preproc=no
5043: fi
5044: rm -f conftest.err conftest.$ac_ext
5045: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5046: echo "${ECHO_T}$ac_header_preproc" >&6
5047:
5048: # So? What about this header?
1.16 paf 5049: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5050: yes:no: )
1.10 paf 5051: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5052: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.16 paf 5053: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5054: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5055: ac_header_preproc=yes
1.10 paf 5056: ;;
1.16 paf 5057: no:yes:* )
1.10 paf 5058: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5059: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.16 paf 5060: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5061: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5062: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5063: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5064: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5065: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.10 paf 5066: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5067: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.16 paf 5068: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5069: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.10 paf 5070: (
5071: cat <<\_ASBOX
1.16 paf 5072: ## ------------------------------------------ ##
5073: ## Report this to the AC_PACKAGE_NAME lists. ##
5074: ## ------------------------------------------ ##
1.10 paf 5075: _ASBOX
5076: ) |
5077: sed "s/^/$as_me: WARNING: /" >&2
5078: ;;
5079: esac
5080: echo "$as_me:$LINENO: checking for $ac_header" >&5
5081: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5082: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5083: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5084: else
1.16 paf 5085: eval "$as_ac_Header=\$ac_header_preproc"
1.10 paf 5086: fi
5087: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5088: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5089:
5090: fi
5091: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5092: cat >>confdefs.h <<_ACEOF
5093: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5094: _ACEOF
5095:
5096: fi
5097:
5098: done
5099:
5100:
5101:
5102:
5103:
5104:
5105: # Only perform the check for file, if the check method requires it
5106: case $deplibs_check_method in
5107: file_magic*)
5108: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5109: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5110: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5111: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5112: echo $ECHO_N "(cached) $ECHO_C" >&6
5113: else
5114: case $MAGIC_CMD in
5115: /*)
5116: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5117: ;;
5118: ?:/*)
5119: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5120: ;;
5121: *)
5122: ac_save_MAGIC_CMD="$MAGIC_CMD"
5123: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5124: ac_dummy="/usr/bin:$PATH"
5125: for ac_dir in $ac_dummy; do
5126: test -z "$ac_dir" && ac_dir=.
5127: if test -f $ac_dir/${ac_tool_prefix}file; then
5128: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5129: if test -n "$file_magic_test_file"; then
5130: case $deplibs_check_method in
5131: "file_magic "*)
5132: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5133: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5134: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5135: egrep "$file_magic_regex" > /dev/null; then
5136: :
5137: else
5138: cat <<EOF 1>&2
5139:
5140: *** Warning: the command libtool uses to detect shared libraries,
5141: *** $file_magic_cmd, produces output that libtool cannot recognize.
5142: *** The result is that libtool may fail to recognize shared libraries
5143: *** as such. This will affect the creation of libtool libraries that
5144: *** depend on shared libraries, but programs linked with such libtool
5145: *** libraries will work regardless of this problem. Nevertheless, you
5146: *** may want to report the problem to your system manager and/or to
5147: *** bug-libtool@gnu.org
5148:
5149: EOF
5150: fi ;;
5151: esac
5152: fi
5153: break
5154: fi
5155: done
5156: IFS="$ac_save_ifs"
5157: MAGIC_CMD="$ac_save_MAGIC_CMD"
5158: ;;
5159: esac
5160: fi
5161:
5162: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5163: if test -n "$MAGIC_CMD"; then
5164: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5165: echo "${ECHO_T}$MAGIC_CMD" >&6
5166: else
5167: echo "$as_me:$LINENO: result: no" >&5
5168: echo "${ECHO_T}no" >&6
5169: fi
5170:
5171: if test -z "$lt_cv_path_MAGIC_CMD"; then
5172: if test -n "$ac_tool_prefix"; then
5173: echo "$as_me:$LINENO: checking for file" >&5
5174: echo $ECHO_N "checking for file... $ECHO_C" >&6
5175: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5176: echo $ECHO_N "(cached) $ECHO_C" >&6
5177: else
5178: case $MAGIC_CMD in
5179: /*)
5180: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5181: ;;
5182: ?:/*)
5183: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5184: ;;
5185: *)
5186: ac_save_MAGIC_CMD="$MAGIC_CMD"
5187: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5188: ac_dummy="/usr/bin:$PATH"
5189: for ac_dir in $ac_dummy; do
5190: test -z "$ac_dir" && ac_dir=.
5191: if test -f $ac_dir/file; then
5192: lt_cv_path_MAGIC_CMD="$ac_dir/file"
5193: if test -n "$file_magic_test_file"; then
5194: case $deplibs_check_method in
5195: "file_magic "*)
5196: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5197: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5198: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5199: egrep "$file_magic_regex" > /dev/null; then
5200: :
5201: else
5202: cat <<EOF 1>&2
5203:
5204: *** Warning: the command libtool uses to detect shared libraries,
5205: *** $file_magic_cmd, produces output that libtool cannot recognize.
5206: *** The result is that libtool may fail to recognize shared libraries
5207: *** as such. This will affect the creation of libtool libraries that
5208: *** depend on shared libraries, but programs linked with such libtool
5209: *** libraries will work regardless of this problem. Nevertheless, you
5210: *** may want to report the problem to your system manager and/or to
5211: *** bug-libtool@gnu.org
5212:
1.1 parser 5213: EOF
1.10 paf 5214: fi ;;
5215: esac
5216: fi
5217: break
5218: fi
5219: done
5220: IFS="$ac_save_ifs"
5221: MAGIC_CMD="$ac_save_MAGIC_CMD"
5222: ;;
5223: esac
5224: fi
5225:
5226: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5227: if test -n "$MAGIC_CMD"; then
5228: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5229: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 parser 5230: else
1.10 paf 5231: echo "$as_me:$LINENO: result: no" >&5
5232: echo "${ECHO_T}no" >&6
1.1 parser 5233: fi
1.10 paf 5234:
5235: else
5236: MAGIC_CMD=:
5237: fi
1.1 parser 5238: fi
5239:
1.10 paf 5240: fi
5241: ;;
5242: esac
1.1 parser 5243:
1.10 paf 5244: if test -n "$ac_tool_prefix"; then
5245: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5246: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5247: echo "$as_me:$LINENO: checking for $ac_word" >&5
5248: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249: if test "${ac_cv_prog_RANLIB+set}" = set; then
5250: echo $ECHO_N "(cached) $ECHO_C" >&6
5251: else
5252: if test -n "$RANLIB"; then
5253: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5254: else
5255: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256: for as_dir in $PATH
1.1 parser 5257: do
1.10 paf 5258: IFS=$as_save_IFS
5259: test -z "$as_dir" && as_dir=.
5260: for ac_exec_ext in '' $ac_executable_extensions; do
5261: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5263: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264: break 2
5265: fi
5266: done
5267: done
5268:
5269: fi
5270: fi
5271: RANLIB=$ac_cv_prog_RANLIB
5272: if test -n "$RANLIB"; then
5273: echo "$as_me:$LINENO: result: $RANLIB" >&5
5274: echo "${ECHO_T}$RANLIB" >&6
5275: else
5276: echo "$as_me:$LINENO: result: no" >&5
5277: echo "${ECHO_T}no" >&6
5278: fi
5279:
5280: fi
5281: if test -z "$ac_cv_prog_RANLIB"; then
5282: ac_ct_RANLIB=$RANLIB
5283: # Extract the first word of "ranlib", so it can be a program name with args.
5284: set dummy ranlib; ac_word=$2
5285: echo "$as_me:$LINENO: checking for $ac_word" >&5
5286: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5288: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5289: else
1.10 paf 5290: if test -n "$ac_ct_RANLIB"; then
5291: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.1 parser 5292: else
1.10 paf 5293: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294: for as_dir in $PATH
5295: do
5296: IFS=$as_save_IFS
5297: test -z "$as_dir" && as_dir=.
5298: for ac_exec_ext in '' $ac_executable_extensions; do
5299: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300: ac_cv_prog_ac_ct_RANLIB="ranlib"
5301: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302: break 2
5303: fi
5304: done
5305: done
5306:
5307: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5308: fi
1.1 parser 5309: fi
1.10 paf 5310: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5311: if test -n "$ac_ct_RANLIB"; then
5312: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5313: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5314: else
5315: echo "$as_me:$LINENO: result: no" >&5
5316: echo "${ECHO_T}no" >&6
1.1 parser 5317: fi
1.10 paf 5318:
5319: RANLIB=$ac_ct_RANLIB
1.1 parser 5320: else
1.10 paf 5321: RANLIB="$ac_cv_prog_RANLIB"
1.1 parser 5322: fi
1.10 paf 5323:
5324: if test -n "$ac_tool_prefix"; then
5325: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5326: set dummy ${ac_tool_prefix}strip; ac_word=$2
5327: echo "$as_me:$LINENO: checking for $ac_word" >&5
5328: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329: if test "${ac_cv_prog_STRIP+set}" = set; then
5330: echo $ECHO_N "(cached) $ECHO_C" >&6
5331: else
5332: if test -n "$STRIP"; then
5333: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5334: else
5335: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336: for as_dir in $PATH
5337: do
5338: IFS=$as_save_IFS
5339: test -z "$as_dir" && as_dir=.
5340: for ac_exec_ext in '' $ac_executable_extensions; do
5341: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5343: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344: break 2
5345: fi
5346: done
1.1 parser 5347: done
5348:
1.10 paf 5349: fi
5350: fi
5351: STRIP=$ac_cv_prog_STRIP
5352: if test -n "$STRIP"; then
5353: echo "$as_me:$LINENO: result: $STRIP" >&5
5354: echo "${ECHO_T}$STRIP" >&6
5355: else
5356: echo "$as_me:$LINENO: result: no" >&5
5357: echo "${ECHO_T}no" >&6
5358: fi
5359:
5360: fi
5361: if test -z "$ac_cv_prog_STRIP"; then
5362: ac_ct_STRIP=$STRIP
5363: # Extract the first word of "strip", so it can be a program name with args.
5364: set dummy strip; ac_word=$2
5365: echo "$as_me:$LINENO: checking for $ac_word" >&5
5366: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5367: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5368: echo $ECHO_N "(cached) $ECHO_C" >&6
5369: else
5370: if test -n "$ac_ct_STRIP"; then
5371: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5372: else
5373: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374: for as_dir in $PATH
5375: do
5376: IFS=$as_save_IFS
5377: test -z "$as_dir" && as_dir=.
5378: for ac_exec_ext in '' $ac_executable_extensions; do
5379: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380: ac_cv_prog_ac_ct_STRIP="strip"
5381: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382: break 2
5383: fi
5384: done
5385: done
1.1 parser 5386:
1.10 paf 5387: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5388: fi
5389: fi
5390: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5391: if test -n "$ac_ct_STRIP"; then
5392: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5393: echo "${ECHO_T}$ac_ct_STRIP" >&6
5394: else
5395: echo "$as_me:$LINENO: result: no" >&5
5396: echo "${ECHO_T}no" >&6
5397: fi
1.1 parser 5398:
1.10 paf 5399: STRIP=$ac_ct_STRIP
1.1 parser 5400: else
1.10 paf 5401: STRIP="$ac_cv_prog_STRIP"
5402: fi
5403:
5404:
5405: enable_dlopen=no
5406: enable_win32_dll=no
5407:
5408: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5409: if test "${enable_libtool_lock+set}" = set; then
5410: enableval="$enable_libtool_lock"
5411:
5412: fi;
5413: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5414:
5415: # Some flags need to be propagated to the compiler or linker for good
5416: # libtool support.
5417: case $host in
5418: *-*-irix6*)
5419: # Find out which ABI we are using.
1.21 ! misha 5420: echo '#line 5420 "configure"' > conftest.$ac_ext
1.10 paf 5421: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422: (eval $ac_compile) 2>&5
5423: ac_status=$?
5424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425: (exit $ac_status); }; then
5426: case `/usr/bin/file conftest.$ac_objext` in
5427: *32-bit*)
5428: LD="${LD-ld} -32"
5429: ;;
5430: *N32*)
5431: LD="${LD-ld} -n32"
5432: ;;
5433: *64-bit*)
5434: LD="${LD-ld} -64"
5435: ;;
5436: esac
5437: fi
1.1 parser 5438: rm -rf conftest*
1.10 paf 5439: ;;
5440:
5441: *-*-sco3.2v5*)
5442: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5443: SAVE_CFLAGS="$CFLAGS"
5444: CFLAGS="$CFLAGS -belf"
5445: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5446: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5447: if test "${lt_cv_cc_needs_belf+set}" = set; then
5448: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5449: else
5450:
1.10 paf 5451:
5452: ac_ext=c
5453: ac_cpp='$CPP $CPPFLAGS'
5454: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5457:
5458: cat >conftest.$ac_ext <<_ACEOF
5459: /* confdefs.h. */
5460: _ACEOF
5461: cat confdefs.h >>conftest.$ac_ext
5462: cat >>conftest.$ac_ext <<_ACEOF
5463: /* end confdefs.h. */
5464:
5465: int
5466: main ()
5467: {
5468:
5469: ;
5470: return 0;
5471: }
5472: _ACEOF
5473: rm -f conftest.$ac_objext conftest$ac_exeext
5474: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 5475: (eval $ac_link) 2>conftest.er1
1.10 paf 5476: ac_status=$?
1.16 paf 5477: grep -v '^ *+' conftest.er1 >conftest.err
5478: rm -f conftest.er1
5479: cat conftest.err >&5
1.10 paf 5480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481: (exit $ac_status); } &&
1.16 paf 5482: { ac_try='test -z "$ac_c_werror_flag"
5483: || test ! -s conftest.err'
5484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485: (eval $ac_try) 2>&5
5486: ac_status=$?
5487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488: (exit $ac_status); }; } &&
5489: { ac_try='test -s conftest$ac_exeext'
1.10 paf 5490: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491: (eval $ac_try) 2>&5
5492: ac_status=$?
5493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494: (exit $ac_status); }; }; then
5495: lt_cv_cc_needs_belf=yes
1.1 parser 5496: else
1.10 paf 5497: echo "$as_me: failed program was:" >&5
5498: sed 's/^/| /' conftest.$ac_ext >&5
5499:
5500: lt_cv_cc_needs_belf=no
1.1 parser 5501: fi
1.16 paf 5502: rm -f conftest.err conftest.$ac_objext \
5503: conftest$ac_exeext conftest.$ac_ext
1.15 paf 5504: ac_ext=c
5505: ac_cpp='$CPP $CPPFLAGS'
5506: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 5509:
5510: fi
1.10 paf 5511: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5512: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5513: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5514: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5515: CFLAGS="$SAVE_CFLAGS"
5516: fi
5517: ;;
5518:
5519:
5520: esac
1.1 parser 5521:
1.10 paf 5522: # Sed substitution that helps us do robust quoting. It backslashifies
5523: # metacharacters that are still active within double-quoted strings.
5524: Xsed='sed -e s/^X//'
5525: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5526:
5527: # Same as above, but do not quote variable references.
5528: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5529:
5530: # Sed substitution to delay expansion of an escaped shell variable in a
5531: # double_quote_subst'ed string.
5532: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5533:
5534: # Constants:
5535: rm="rm -f"
5536:
5537: # Global variables:
5538: default_ofile=libtool
5539: can_build_shared=yes
5540:
5541: # All known linkers require a `.a' archive for static linking (except M$VC,
5542: # which needs '.lib').
5543: libext=a
5544: ltmain="$ac_aux_dir/ltmain.sh"
5545: ofile="$default_ofile"
5546: with_gnu_ld="$lt_cv_prog_gnu_ld"
5547: need_locks="$enable_libtool_lock"
5548:
5549: old_CC="$CC"
5550: old_CFLAGS="$CFLAGS"
5551:
5552: # Set sane defaults for various variables
5553: test -z "$AR" && AR=ar
5554: test -z "$AR_FLAGS" && AR_FLAGS=cru
5555: test -z "$AS" && AS=as
5556: test -z "$CC" && CC=cc
5557: test -z "$DLLTOOL" && DLLTOOL=dlltool
5558: test -z "$LD" && LD=ld
5559: test -z "$LN_S" && LN_S="ln -s"
5560: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5561: test -z "$NM" && NM=nm
5562: test -z "$OBJDUMP" && OBJDUMP=objdump
5563: test -z "$RANLIB" && RANLIB=:
5564: test -z "$STRIP" && STRIP=:
5565: test -z "$ac_objext" && ac_objext=o
5566:
5567: if test x"$host" != x"$build"; then
5568: ac_tool_prefix=${host_alias}-
1.1 parser 5569: else
1.10 paf 5570: ac_tool_prefix=
1.1 parser 5571: fi
5572:
1.10 paf 5573: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5574: case $host_os in
5575: linux-gnu*) ;;
5576: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5577: esac
5578:
5579: case $host_os in
5580: aix3*)
5581: # AIX sometimes has problems with the GCC collect2 program. For some
5582: # reason, if we set the COLLECT_NAMES environment variable, the problems
5583: # vanish in a puff of smoke.
5584: if test "X${COLLECT_NAMES+set}" != Xset; then
5585: COLLECT_NAMES=
5586: export COLLECT_NAMES
5587: fi
5588: ;;
5589: esac
5590:
5591: # Determine commands to create old-style static archives.
5592: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5593: old_postinstall_cmds='chmod 644 $oldlib'
5594: old_postuninstall_cmds=
5595:
5596: if test -n "$RANLIB"; then
5597: case $host_os in
5598: openbsd*)
5599: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5600: ;;
5601: *)
5602: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5603: ;;
5604: esac
5605: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.1 parser 5606: fi
5607:
1.10 paf 5608: # Allow CC to be a program name with arguments.
5609: set dummy $CC
5610: compiler="$2"
5611:
1.16 paf 5612: ## FIXME: this should be a separate macro
5613: ##
1.10 paf 5614: echo "$as_me:$LINENO: checking for objdir" >&5
5615: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5616: rm -f .libs 2>/dev/null
5617: mkdir .libs 2>/dev/null
5618: if test -d .libs; then
5619: objdir=.libs
5620: else
5621: # MS-DOS does not allow filenames that begin with a dot.
5622: objdir=_libs
5623: fi
5624: rmdir .libs 2>/dev/null
5625: echo "$as_me:$LINENO: result: $objdir" >&5
5626: echo "${ECHO_T}$objdir" >&6
1.16 paf 5627: ##
5628: ## END FIXME
1.10 paf 5629:
5630:
1.16 paf 5631: ## FIXME: this should be a separate macro
5632: ##
1.10 paf 5633:
5634: # Check whether --with-pic or --without-pic was given.
5635: if test "${with_pic+set}" = set; then
5636: withval="$with_pic"
5637: pic_mode="$withval"
5638: else
5639: pic_mode=default
5640: fi;
5641: test -z "$pic_mode" && pic_mode=default
5642:
5643: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5644: # in isolation, and that seeing it set (from the cache) indicates that
5645: # the associated values are set (in the cache) correctly too.
5646: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5647: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5648: if test "${lt_cv_prog_cc_pic+set}" = set; then
5649: echo $ECHO_N "(cached) $ECHO_C" >&6
5650: else
5651: lt_cv_prog_cc_pic=
5652: lt_cv_prog_cc_shlib=
5653: lt_cv_prog_cc_wl=
5654: lt_cv_prog_cc_static=
5655: lt_cv_prog_cc_no_builtin=
5656: lt_cv_prog_cc_can_build_shared=$can_build_shared
5657:
5658: if test "$GCC" = yes; then
5659: lt_cv_prog_cc_wl='-Wl,'
5660: lt_cv_prog_cc_static='-static'
1.1 parser 5661:
1.10 paf 5662: case $host_os in
5663: aix*)
5664: # Below there is a dirty hack to force normal static linking with -ldl
5665: # The problem is because libdl dynamically linked with both libc and
5666: # libC (AIX C++ library), which obviously doesn't included in libraries
5667: # list by gcc. This cause undefined symbols with -static flags.
5668: # This hack allows C programs to be linked with "-static -ldl", but
5669: # not sure about C++ programs.
5670: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5671: ;;
5672: amigaos*)
5673: # FIXME: we need at least 68020 code to build shared libraries, but
5674: # adding the `-m68020' flag to GCC prevents building anything better,
5675: # like `-m68040'.
5676: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5677: ;;
5678: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5679: # PIC is the default for these OSes.
5680: ;;
5681: darwin* | rhapsody*)
5682: # PIC is the default on this platform
5683: # Common symbols not allowed in MH_DYLIB files
5684: lt_cv_prog_cc_pic='-fno-common'
5685: ;;
5686: cygwin* | mingw* | pw32* | os2*)
5687: # This hack is so that the source file can tell whether it is being
5688: # built for inclusion in a dll (and should export symbols for example).
5689: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5690: ;;
5691: sysv4*MP*)
5692: if test -d /usr/nec; then
5693: lt_cv_prog_cc_pic=-Kconform_pic
5694: fi
5695: ;;
5696: *)
5697: lt_cv_prog_cc_pic='-fPIC'
5698: ;;
5699: esac
5700: else
5701: # PORTME Check for PIC flags for the system compiler.
5702: case $host_os in
5703: aix3* | aix4* | aix5*)
5704: lt_cv_prog_cc_wl='-Wl,'
5705: # All AIX code is PIC.
5706: if test "$host_cpu" = ia64; then
5707: # AIX 5 now supports IA64 processor
5708: lt_cv_prog_cc_static='-Bstatic'
5709: else
5710: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5711: fi
5712: ;;
5713:
5714: hpux9* | hpux10* | hpux11*)
5715: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5716: lt_cv_prog_cc_wl='-Wl,'
5717: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5718: lt_cv_prog_cc_pic='+Z'
5719: ;;
5720:
5721: irix5* | irix6* | nonstopux*)
5722: lt_cv_prog_cc_wl='-Wl,'
5723: lt_cv_prog_cc_static='-non_shared'
5724: # PIC (with -KPIC) is the default.
5725: ;;
5726:
5727: cygwin* | mingw* | pw32* | os2*)
5728: # This hack is so that the source file can tell whether it is being
5729: # built for inclusion in a dll (and should export symbols for example).
5730: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5731: ;;
5732:
5733: newsos6)
5734: lt_cv_prog_cc_pic='-KPIC'
5735: lt_cv_prog_cc_static='-Bstatic'
5736: ;;
5737:
5738: osf3* | osf4* | osf5*)
5739: # All OSF/1 code is PIC.
5740: lt_cv_prog_cc_wl='-Wl,'
5741: lt_cv_prog_cc_static='-non_shared'
5742: ;;
5743:
5744: sco3.2v5*)
5745: lt_cv_prog_cc_pic='-Kpic'
5746: lt_cv_prog_cc_static='-dn'
5747: lt_cv_prog_cc_shlib='-belf'
5748: ;;
5749:
5750: solaris*)
5751: lt_cv_prog_cc_pic='-KPIC'
5752: lt_cv_prog_cc_static='-Bstatic'
5753: lt_cv_prog_cc_wl='-Wl,'
5754: ;;
5755:
5756: sunos4*)
5757: lt_cv_prog_cc_pic='-PIC'
5758: lt_cv_prog_cc_static='-Bstatic'
5759: lt_cv_prog_cc_wl='-Qoption ld '
5760: ;;
5761:
5762: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5763: lt_cv_prog_cc_pic='-KPIC'
5764: lt_cv_prog_cc_static='-Bstatic'
5765: lt_cv_prog_cc_wl='-Wl,'
5766: ;;
5767:
5768: uts4*)
5769: lt_cv_prog_cc_pic='-pic'
5770: lt_cv_prog_cc_static='-Bstatic'
5771: ;;
5772:
5773: sysv4*MP*)
5774: if test -d /usr/nec ;then
5775: lt_cv_prog_cc_pic='-Kconform_pic'
5776: lt_cv_prog_cc_static='-Bstatic'
5777: fi
5778: ;;
5779:
5780: *)
5781: lt_cv_prog_cc_can_build_shared=no
5782: ;;
5783: esac
5784: fi
5785:
5786: fi
5787:
5788: if test -z "$lt_cv_prog_cc_pic"; then
5789: echo "$as_me:$LINENO: result: none" >&5
5790: echo "${ECHO_T}none" >&6
5791: else
5792: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5793: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5794:
5795: # Check to make sure the pic_flag actually works.
5796: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5797: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5798: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5799: echo $ECHO_N "(cached) $ECHO_C" >&6
5800: else
5801: save_CFLAGS="$CFLAGS"
5802: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5803: cat >conftest.$ac_ext <<_ACEOF
5804: /* confdefs.h. */
5805: _ACEOF
5806: cat confdefs.h >>conftest.$ac_ext
5807: cat >>conftest.$ac_ext <<_ACEOF
5808: /* end confdefs.h. */
5809:
5810: int
5811: main ()
5812: {
5813:
5814: ;
5815: return 0;
5816: }
5817: _ACEOF
5818: rm -f conftest.$ac_objext
5819: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 5820: (eval $ac_compile) 2>conftest.er1
1.10 paf 5821: ac_status=$?
1.16 paf 5822: grep -v '^ *+' conftest.er1 >conftest.err
5823: rm -f conftest.er1
5824: cat conftest.err >&5
1.10 paf 5825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826: (exit $ac_status); } &&
1.16 paf 5827: { ac_try='test -z "$ac_c_werror_flag"
5828: || test ! -s conftest.err'
5829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830: (eval $ac_try) 2>&5
5831: ac_status=$?
5832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833: (exit $ac_status); }; } &&
5834: { ac_try='test -s conftest.$ac_objext'
1.10 paf 5835: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836: (eval $ac_try) 2>&5
5837: ac_status=$?
5838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839: (exit $ac_status); }; }; then
5840: case $host_os in
5841: hpux9* | hpux10* | hpux11*)
5842: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5843: # they create non-PIC objects. So, if there were any warnings, we
5844: # assume that PIC is not supported.
5845: if test -s conftest.err; then
5846: lt_cv_prog_cc_pic_works=no
5847: else
5848: lt_cv_prog_cc_pic_works=yes
5849: fi
5850: ;;
5851: *)
5852: lt_cv_prog_cc_pic_works=yes
5853: ;;
5854: esac
5855:
5856: else
5857: echo "$as_me: failed program was:" >&5
5858: sed 's/^/| /' conftest.$ac_ext >&5
5859:
5860: lt_cv_prog_cc_pic_works=no
5861:
5862: fi
1.16 paf 5863: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 5864: CFLAGS="$save_CFLAGS"
5865:
5866: fi
5867:
5868:
5869: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5870: lt_cv_prog_cc_pic=
5871: lt_cv_prog_cc_can_build_shared=no
5872: else
5873: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5874: fi
5875:
5876: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5877: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5878: fi
1.16 paf 5879: ##
5880: ## END FIXME
1.10 paf 5881:
5882: # Check for any special shared library compilation flags.
5883: if test -n "$lt_cv_prog_cc_shlib"; then
5884: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5885: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5886: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5887: else
5888: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5889: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5890: lt_cv_prog_cc_can_build_shared=no
5891: fi
5892: fi
5893:
1.16 paf 5894: ## FIXME: this should be a separate macro
5895: ##
1.10 paf 5896: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5897: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5898: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5899: echo $ECHO_N "(cached) $ECHO_C" >&6
5900: else
5901: lt_cv_prog_cc_static_works=no
5902: save_LDFLAGS="$LDFLAGS"
5903: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5904: cat >conftest.$ac_ext <<_ACEOF
5905: /* confdefs.h. */
5906: _ACEOF
5907: cat confdefs.h >>conftest.$ac_ext
5908: cat >>conftest.$ac_ext <<_ACEOF
5909: /* end confdefs.h. */
5910:
5911: int
5912: main ()
5913: {
5914:
5915: ;
5916: return 0;
5917: }
5918: _ACEOF
5919: rm -f conftest.$ac_objext conftest$ac_exeext
5920: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 5921: (eval $ac_link) 2>conftest.er1
1.10 paf 5922: ac_status=$?
1.16 paf 5923: grep -v '^ *+' conftest.er1 >conftest.err
5924: rm -f conftest.er1
5925: cat conftest.err >&5
1.10 paf 5926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927: (exit $ac_status); } &&
1.16 paf 5928: { ac_try='test -z "$ac_c_werror_flag"
5929: || test ! -s conftest.err'
5930: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931: (eval $ac_try) 2>&5
5932: ac_status=$?
5933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934: (exit $ac_status); }; } &&
5935: { ac_try='test -s conftest$ac_exeext'
1.10 paf 5936: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937: (eval $ac_try) 2>&5
5938: ac_status=$?
5939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940: (exit $ac_status); }; }; then
5941: lt_cv_prog_cc_static_works=yes
5942: else
5943: echo "$as_me: failed program was:" >&5
5944: sed 's/^/| /' conftest.$ac_ext >&5
5945:
5946: fi
1.16 paf 5947: rm -f conftest.err conftest.$ac_objext \
5948: conftest$ac_exeext conftest.$ac_ext
1.10 paf 5949: LDFLAGS="$save_LDFLAGS"
5950:
5951: fi
5952:
5953:
5954: # Belt *and* braces to stop my trousers falling down:
5955: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5956: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5957: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5958:
5959: pic_flag="$lt_cv_prog_cc_pic"
5960: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5961: wl="$lt_cv_prog_cc_wl"
5962: link_static_flag="$lt_cv_prog_cc_static"
5963: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5964: can_build_shared="$lt_cv_prog_cc_can_build_shared"
1.16 paf 5965: ##
5966: ## END FIXME
1.10 paf 5967:
5968:
1.16 paf 5969: ## FIXME: this should be a separate macro
5970: ##
1.10 paf 5971: # Check to see if options -o and -c are simultaneously supported by compiler
5972: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5973: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5974: if test "${lt_cv_compiler_c_o+set}" = set; then
5975: echo $ECHO_N "(cached) $ECHO_C" >&6
5976: else
5977:
5978: $rm -r conftest 2>/dev/null
5979: mkdir conftest
5980: cd conftest
5981: echo "int some_variable = 0;" > conftest.$ac_ext
5982: mkdir out
5983: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5984: # that will create temporary files in the current directory regardless of
5985: # the output directory. Thus, making CWD read-only will cause this test
5986: # to fail, enabling locking or at least warning the user not to do parallel
5987: # builds.
5988: chmod -w .
5989: save_CFLAGS="$CFLAGS"
5990: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5991: compiler_c_o=no
1.21 ! misha 5992: if { (eval echo configure:5992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1.10 paf 5993: # The compiler can only warn and ignore the option if not recognized
5994: # So say no if there are warnings
5995: if test -s out/conftest.err; then
5996: lt_cv_compiler_c_o=no
5997: else
5998: lt_cv_compiler_c_o=yes
5999: fi
6000: else
6001: # Append any errors to the config.log.
6002: cat out/conftest.err 1>&5
6003: lt_cv_compiler_c_o=no
6004: fi
6005: CFLAGS="$save_CFLAGS"
6006: chmod u+w .
6007: $rm conftest* out/*
6008: rmdir out
6009: cd ..
6010: rmdir conftest
6011: $rm -r conftest 2>/dev/null
6012:
6013: fi
6014:
6015: compiler_c_o=$lt_cv_compiler_c_o
6016: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6017: echo "${ECHO_T}$compiler_c_o" >&6
6018:
6019: if test x"$compiler_c_o" = x"yes"; then
6020: # Check to see if we can write to a .lo
6021: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6022: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6023: if test "${lt_cv_compiler_o_lo+set}" = set; then
6024: echo $ECHO_N "(cached) $ECHO_C" >&6
6025: else
6026:
6027: lt_cv_compiler_o_lo=no
6028: save_CFLAGS="$CFLAGS"
6029: CFLAGS="$CFLAGS -c -o conftest.lo"
6030: save_objext="$ac_objext"
6031: ac_objext=lo
6032: cat >conftest.$ac_ext <<_ACEOF
6033: /* confdefs.h. */
6034: _ACEOF
6035: cat confdefs.h >>conftest.$ac_ext
6036: cat >>conftest.$ac_ext <<_ACEOF
6037: /* end confdefs.h. */
6038:
6039: int
6040: main ()
6041: {
6042: int some_variable = 0;
6043: ;
6044: return 0;
6045: }
6046: _ACEOF
6047: rm -f conftest.$ac_objext
6048: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 6049: (eval $ac_compile) 2>conftest.er1
1.10 paf 6050: ac_status=$?
1.16 paf 6051: grep -v '^ *+' conftest.er1 >conftest.err
6052: rm -f conftest.er1
6053: cat conftest.err >&5
1.10 paf 6054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055: (exit $ac_status); } &&
1.16 paf 6056: { ac_try='test -z "$ac_c_werror_flag"
6057: || test ! -s conftest.err'
6058: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059: (eval $ac_try) 2>&5
6060: ac_status=$?
6061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062: (exit $ac_status); }; } &&
6063: { ac_try='test -s conftest.$ac_objext'
1.10 paf 6064: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065: (eval $ac_try) 2>&5
6066: ac_status=$?
6067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068: (exit $ac_status); }; }; then
6069: # The compiler can only warn and ignore the option if not recognized
6070: # So say no if there are warnings
6071: if test -s conftest.err; then
6072: lt_cv_compiler_o_lo=no
6073: else
6074: lt_cv_compiler_o_lo=yes
6075: fi
6076:
6077: else
6078: echo "$as_me: failed program was:" >&5
6079: sed 's/^/| /' conftest.$ac_ext >&5
6080:
6081: fi
1.16 paf 6082: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 6083: ac_objext="$save_objext"
6084: CFLAGS="$save_CFLAGS"
6085:
6086: fi
6087:
6088: compiler_o_lo=$lt_cv_compiler_o_lo
6089: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6090: echo "${ECHO_T}$compiler_o_lo" >&6
6091: else
6092: compiler_o_lo=no
6093: fi
1.16 paf 6094: ##
6095: ## END FIXME
1.10 paf 6096:
1.16 paf 6097: ## FIXME: this should be a separate macro
6098: ##
1.10 paf 6099: # Check to see if we can do hard links to lock some files if needed
6100: hard_links="nottested"
6101: if test "$compiler_c_o" = no && test "$need_locks" != no; then
6102: # do not overwrite the value of need_locks provided by the user
6103: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6104: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6105: hard_links=yes
6106: $rm conftest*
6107: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6108: touch conftest.a
6109: ln conftest.a conftest.b 2>&5 || hard_links=no
6110: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6111: echo "$as_me:$LINENO: result: $hard_links" >&5
6112: echo "${ECHO_T}$hard_links" >&6
6113: if test "$hard_links" = no; then
6114: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6115: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6116: need_locks=warn
6117: fi
6118: else
6119: need_locks=no
6120: fi
1.16 paf 6121: ##
6122: ## END FIXME
1.10 paf 6123:
1.16 paf 6124: ## FIXME: this should be a separate macro
6125: ##
1.10 paf 6126: if test "$GCC" = yes; then
6127: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6128: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6129: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6130: echo "int some_variable = 0;" > conftest.$ac_ext
6131: save_CFLAGS="$CFLAGS"
6132: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6133: compiler_rtti_exceptions=no
6134: cat >conftest.$ac_ext <<_ACEOF
6135: /* confdefs.h. */
6136: _ACEOF
6137: cat confdefs.h >>conftest.$ac_ext
6138: cat >>conftest.$ac_ext <<_ACEOF
6139: /* end confdefs.h. */
6140:
6141: int
6142: main ()
6143: {
6144: int some_variable = 0;
6145: ;
6146: return 0;
6147: }
6148: _ACEOF
6149: rm -f conftest.$ac_objext
6150: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 6151: (eval $ac_compile) 2>conftest.er1
1.10 paf 6152: ac_status=$?
1.16 paf 6153: grep -v '^ *+' conftest.er1 >conftest.err
6154: rm -f conftest.er1
6155: cat conftest.err >&5
1.10 paf 6156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157: (exit $ac_status); } &&
1.16 paf 6158: { ac_try='test -z "$ac_c_werror_flag"
6159: || test ! -s conftest.err'
6160: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161: (eval $ac_try) 2>&5
6162: ac_status=$?
6163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164: (exit $ac_status); }; } &&
6165: { ac_try='test -s conftest.$ac_objext'
1.10 paf 6166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167: (eval $ac_try) 2>&5
6168: ac_status=$?
6169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170: (exit $ac_status); }; }; then
6171: # The compiler can only warn and ignore the option if not recognized
6172: # So say no if there are warnings
6173: if test -s conftest.err; then
6174: compiler_rtti_exceptions=no
6175: else
6176: compiler_rtti_exceptions=yes
6177: fi
6178:
6179: else
6180: echo "$as_me: failed program was:" >&5
6181: sed 's/^/| /' conftest.$ac_ext >&5
6182:
6183: fi
1.16 paf 6184: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 6185: CFLAGS="$save_CFLAGS"
6186: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6187: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6188:
6189: if test "$compiler_rtti_exceptions" = "yes"; then
6190: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6191: else
6192: no_builtin_flag=' -fno-builtin'
6193: fi
6194: fi
1.16 paf 6195: ##
6196: ## END FIXME
1.10 paf 6197:
1.16 paf 6198: ## FIXME: this should be a separate macro
6199: ##
1.10 paf 6200: # See if the linker supports building shared libraries.
6201: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6202: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6203:
6204: allow_undefined_flag=
6205: no_undefined_flag=
6206: need_lib_prefix=unknown
6207: need_version=unknown
6208: # when you set need_version to no, make sure it does not cause -set_version
6209: # flags to be left without arguments
6210: archive_cmds=
6211: archive_expsym_cmds=
6212: old_archive_from_new_cmds=
6213: old_archive_from_expsyms_cmds=
6214: export_dynamic_flag_spec=
6215: whole_archive_flag_spec=
6216: thread_safe_flag_spec=
6217: hardcode_into_libs=no
6218: hardcode_libdir_flag_spec=
6219: hardcode_libdir_separator=
6220: hardcode_direct=no
6221: hardcode_minus_L=no
6222: hardcode_shlibpath_var=unsupported
6223: runpath_var=
6224: link_all_deplibs=unknown
6225: always_export_symbols=no
6226: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6227: # include_expsyms should be a list of space-separated symbols to be *always*
6228: # included in the symbol list
6229: include_expsyms=
6230: # exclude_expsyms can be an egrep regular expression of symbols to exclude
6231: # it will be wrapped by ` (' and `)$', so one must not match beginning or
6232: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6233: # as well as any symbol that contains `d'.
6234: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6235: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6236: # platforms (ab)use it in PIC code, but their linkers get confused if
6237: # the symbol is explicitly referenced. Since portable code cannot
6238: # rely on this symbol name, it's probably fine to never include it in
6239: # preloaded symbol tables.
6240: extract_expsyms_cmds=
6241:
6242: case $host_os in
6243: cygwin* | mingw* | pw32*)
6244: # FIXME: the MSVC++ port hasn't been tested in a loooong time
6245: # When not using gcc, we currently assume that we are using
6246: # Microsoft Visual C++.
6247: if test "$GCC" != yes; then
6248: with_gnu_ld=no
6249: fi
6250: ;;
6251: openbsd*)
6252: with_gnu_ld=no
6253: ;;
6254: esac
6255:
6256: ld_shlibs=yes
6257: if test "$with_gnu_ld" = yes; then
6258: # If archive_cmds runs LD, not CC, wlarc should be empty
6259: wlarc='${wl}'
6260:
6261: # See if GNU ld supports shared libraries.
6262: case $host_os in
6263: aix3* | aix4* | aix5*)
6264: # On AIX, the GNU linker is very broken
6265: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6266: ld_shlibs=no
6267: cat <<EOF 1>&2
6268:
6269: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6270: *** to be unable to reliably create shared libraries on AIX.
6271: *** Therefore, libtool is disabling shared libraries support. If you
6272: *** really care for shared libraries, you may want to modify your PATH
6273: *** so that a non-GNU linker is found, and then restart.
6274:
6275: EOF
6276: ;;
6277:
6278: amigaos*)
6279: 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)'
6280: hardcode_libdir_flag_spec='-L$libdir'
6281: hardcode_minus_L=yes
6282:
6283: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6284: # that the semantics of dynamic libraries on AmigaOS, at least up
6285: # to version 4, is to share data among multiple programs linked
6286: # with the same dynamic library. Since this doesn't match the
6287: # behavior of shared libraries on other platforms, we can use
6288: # them.
6289: ld_shlibs=no
6290: ;;
6291:
6292: beos*)
6293: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6294: allow_undefined_flag=unsupported
6295: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6296: # support --undefined. This deserves some investigation. FIXME
6297: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6298: else
6299: ld_shlibs=no
6300: fi
6301: ;;
6302:
6303: cygwin* | mingw* | pw32*)
6304: # hardcode_libdir_flag_spec is actually meaningless, as there is
6305: # no search path for DLLs.
6306: hardcode_libdir_flag_spec='-L$libdir'
6307: allow_undefined_flag=unsupported
6308: always_export_symbols=yes
6309:
6310: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6311: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6312: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6313: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6314: else $CC -o impgen impgen.c ; fi)~
6315: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6316:
6317: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6318:
6319: # cygwin and mingw dlls have different entry points and sets of symbols
6320: # to exclude.
6321: # FIXME: what about values for MSVC?
6322: dll_entry=__cygwin_dll_entry@12
6323: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6324: case $host_os in
6325: mingw*)
6326: # mingw values
6327: dll_entry=_DllMainCRTStartup@12
6328: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6329: ;;
6330: esac
6331:
6332: # mingw and cygwin differ, and it's simplest to just exclude the union
6333: # of the two symbol sets.
6334: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6335:
6336: # recent cygwin and mingw systems supply a stub DllMain which the user
6337: # can override, but on older systems we have to supply one (in ltdll.c)
6338: if test "x$lt_cv_need_dllmain" = "xyes"; then
6339: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6340: 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~
6341: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6342: else
6343: ltdll_obj=
6344: ltdll_cmds=
6345: fi
6346:
6347: # Extract the symbol export list from an `--export-all' def file,
6348: # then regenerate the def file from the symbol export list, so that
6349: # the compiled dll only exports the symbol export list.
6350: # Be careful not to strip the DATA tag left be newer dlltools.
6351: export_symbols_cmds="$ltdll_cmds"'
6352: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6353: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6354:
6355: # If the export-symbols file already is a .def file (1st line
6356: # is EXPORTS), use it as is.
6357: # If DATA tags from a recent dlltool are present, honour them!
6358: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6359: cp $export_symbols $output_objdir/$soname-def;
6360: else
6361: echo EXPORTS > $output_objdir/$soname-def;
6362: _lt_hint=1;
6363: cat $export_symbols | while read symbol; do
6364: set dummy \$symbol;
6365: case \$# in
6366: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6367: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6368: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6369: esac;
6370: _lt_hint=`expr 1 + \$_lt_hint`;
6371: done;
6372: fi~
6373: '"$ltdll_cmds"'
6374: $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~
6375: $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~
6376: $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~
6377: $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~
6378: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6379: ;;
6380:
6381: netbsd*)
6382: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6383: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6384: wlarc=
6385: else
6386: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6387: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6388: fi
6389: ;;
6390:
6391: solaris* | sysv5*)
6392: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6393: ld_shlibs=no
6394: cat <<EOF 1>&2
6395:
6396: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6397: *** create shared libraries on Solaris systems. Therefore, libtool
6398: *** is disabling shared libraries support. We urge you to upgrade GNU
6399: *** binutils to release 2.9.1 or newer. Another option is to modify
6400: *** your PATH or compiler configuration so that the native linker is
6401: *** used, and then restart.
6402:
6403: EOF
6404: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6405: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6406: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6407: else
6408: ld_shlibs=no
6409: fi
6410: ;;
6411:
6412: sunos4*)
6413: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6414: wlarc=
6415: hardcode_direct=yes
6416: hardcode_shlibpath_var=no
6417: ;;
6418:
6419: *)
6420: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6421: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6422: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6423: else
6424: ld_shlibs=no
6425: fi
6426: ;;
6427: esac
6428:
6429: if test "$ld_shlibs" = yes; then
6430: runpath_var=LD_RUN_PATH
6431: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6432: export_dynamic_flag_spec='${wl}--export-dynamic'
6433: case $host_os in
6434: cygwin* | mingw* | pw32*)
6435: # dlltool doesn't understand --whole-archive et. al.
6436: whole_archive_flag_spec=
6437: ;;
6438: *)
6439: # ancient GNU ld didn't support --whole-archive et. al.
6440: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6441: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6442: else
6443: whole_archive_flag_spec=
6444: fi
6445: ;;
6446: esac
6447: fi
6448: else
6449: # PORTME fill in a description of your system's linker (not GNU ld)
6450: case $host_os in
6451: aix3*)
6452: allow_undefined_flag=unsupported
6453: always_export_symbols=yes
6454: 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'
6455: # Note: this linker hardcodes the directories in LIBPATH if there
6456: # are no directories specified by -L.
6457: hardcode_minus_L=yes
6458: if test "$GCC" = yes && test -z "$link_static_flag"; then
6459: # Neither direct hardcoding nor static linking is supported with a
6460: # broken collect2.
6461: hardcode_direct=unsupported
6462: fi
6463: ;;
6464:
6465: aix4* | aix5*)
6466: if test "$host_cpu" = ia64; then
6467: # On IA64, the linker does run time linking by default, so we don't
6468: # have to do anything special.
6469: aix_use_runtimelinking=no
6470: exp_sym_flag='-Bexport'
6471: no_entry_flag=""
6472: else
6473: aix_use_runtimelinking=no
6474:
6475: # Test if we are trying to use run time linking or normal
6476: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6477: # need to do runtime linking.
6478: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6479: for ld_flag in $LDFLAGS; do
6480: case $ld_flag in
6481: *-brtl*)
6482: aix_use_runtimelinking=yes
6483: break
6484: ;;
6485: esac
6486: done
6487: esac
6488:
6489: exp_sym_flag='-bexport'
6490: no_entry_flag='-bnoentry'
6491: fi
6492:
6493: # When large executables or shared objects are built, AIX ld can
6494: # have problems creating the table of contents. If linking a library
6495: # or program results in "error TOC overflow" add -mminimal-toc to
6496: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6497: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6498:
6499: hardcode_direct=yes
6500: archive_cmds=''
6501: hardcode_libdir_separator=':'
6502: if test "$GCC" = yes; then
6503: case $host_os in aix4.[012]|aix4.[012].*)
6504: collect2name=`${CC} -print-prog-name=collect2`
6505: if test -f "$collect2name" && \
6506: strings "$collect2name" | grep resolve_lib_name >/dev/null
6507: then
6508: # We have reworked collect2
6509: hardcode_direct=yes
6510: else
6511: # We have old collect2
6512: hardcode_direct=unsupported
6513: # It fails to find uninstalled libraries when the uninstalled
6514: # path is not listed in the libpath. Setting hardcode_minus_L
6515: # to unsupported forces relinking
6516: hardcode_minus_L=yes
6517: hardcode_libdir_flag_spec='-L$libdir'
6518: hardcode_libdir_separator=
6519: fi
6520: esac
6521:
6522: shared_flag='-shared'
6523: else
6524: # not using gcc
6525: if test "$host_cpu" = ia64; then
6526: shared_flag='${wl}-G'
6527: else
6528: if test "$aix_use_runtimelinking" = yes; then
6529: shared_flag='${wl}-G'
6530: else
6531: shared_flag='${wl}-bM:SRE'
6532: fi
6533: fi
6534: fi
6535:
6536: # It seems that -bexpall can do strange things, so it is better to
6537: # generate a list of symbols to export.
6538: always_export_symbols=yes
6539: if test "$aix_use_runtimelinking" = yes; then
6540: # Warning - without using the other runtime loading flags (-brtl),
6541: # -berok will link without error, but may produce a broken library.
6542: allow_undefined_flag='-berok'
6543: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6544: 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"
6545: else
6546: if test "$host_cpu" = ia64; then
6547: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6548: allow_undefined_flag="-z nodefs"
6549: 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"
6550: else
6551: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6552: # Warning - without using the other run time loading flags,
6553: # -berok will link without error, but may produce a broken library.
6554: allow_undefined_flag='${wl}-berok'
6555: # This is a bit strange, but is similar to how AIX traditionally builds
6556: # it's shared libraries.
6557: 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'
6558: fi
6559: fi
6560: ;;
6561:
6562: amigaos*)
6563: 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)'
6564: hardcode_libdir_flag_spec='-L$libdir'
6565: hardcode_minus_L=yes
6566: # see comment about different semantics on the GNU ld section
6567: ld_shlibs=no
6568: ;;
6569:
6570: cygwin* | mingw* | pw32*)
6571: # When not using gcc, we currently assume that we are using
6572: # Microsoft Visual C++.
6573: # hardcode_libdir_flag_spec is actually meaningless, as there is
6574: # no search path for DLLs.
6575: hardcode_libdir_flag_spec=' '
6576: allow_undefined_flag=unsupported
6577: # Tell ltmain to make .lib files, not .a files.
6578: libext=lib
6579: # FIXME: Setting linknames here is a bad hack.
6580: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6581: # The linker will automatically build a .lib file if we build a DLL.
6582: old_archive_from_new_cmds='true'
6583: # FIXME: Should let the user specify the lib program.
6584: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6585: fix_srcfile_path='`cygpath -w "$srcfile"`'
6586: ;;
6587:
6588: darwin* | rhapsody*)
6589: case "$host_os" in
6590: rhapsody* | darwin1.[012])
6591: allow_undefined_flag='-undefined suppress'
6592: ;;
6593: *) # Darwin 1.3 on
6594: allow_undefined_flag='-flat_namespace -undefined suppress'
6595: ;;
6596: esac
6597: # FIXME: Relying on posixy $() will cause problems for
6598: # cross-compilation, but unfortunately the echo tests do not
6599: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6600: # `"' quotes if we put them in here... so don't!
6601: 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)'
6602: # We need to add '_' to the symbols in $export_symbols first
6603: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6604: hardcode_direct=yes
6605: hardcode_shlibpath_var=no
6606: whole_archive_flag_spec='-all_load $convenience'
6607: ;;
6608:
6609: freebsd1*)
6610: ld_shlibs=no
6611: ;;
6612:
6613: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6614: # support. Future versions do this automatically, but an explicit c++rt0.o
6615: # does not break anything, and helps significantly (at the cost of a little
6616: # extra space).
6617: freebsd2.2*)
6618: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6619: hardcode_libdir_flag_spec='-R$libdir'
6620: hardcode_direct=yes
6621: hardcode_shlibpath_var=no
6622: ;;
6623:
6624: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6625: freebsd2*)
6626: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6627: hardcode_direct=yes
6628: hardcode_minus_L=yes
6629: hardcode_shlibpath_var=no
6630: ;;
6631:
6632: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6633: freebsd*)
6634: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6635: hardcode_libdir_flag_spec='-R$libdir'
6636: hardcode_direct=yes
6637: hardcode_shlibpath_var=no
6638: ;;
6639:
6640: hpux9* | hpux10* | hpux11*)
6641: case $host_os in
6642: 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' ;;
6643: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6644: esac
6645: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6646: hardcode_libdir_separator=:
6647: hardcode_direct=yes
6648: hardcode_minus_L=yes # Not in the search PATH, but as the default
6649: # location of the library.
6650: export_dynamic_flag_spec='${wl}-E'
6651: ;;
6652:
6653: irix5* | irix6* | nonstopux*)
6654: if test "$GCC" = yes; then
6655: 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'
6656: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6657: else
6658: 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'
6659: hardcode_libdir_flag_spec='-rpath $libdir'
6660: fi
6661: hardcode_libdir_separator=:
6662: link_all_deplibs=yes
6663: ;;
6664:
6665: netbsd*)
6666: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6667: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6668: else
6669: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6670: fi
6671: hardcode_libdir_flag_spec='-R$libdir'
6672: hardcode_direct=yes
6673: hardcode_shlibpath_var=no
6674: ;;
6675:
6676: newsos6)
6677: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6678: hardcode_direct=yes
6679: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6680: hardcode_libdir_separator=:
6681: hardcode_shlibpath_var=no
6682: ;;
6683:
6684: openbsd*)
6685: hardcode_direct=yes
6686: hardcode_shlibpath_var=no
6687: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6688: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6689: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6690: export_dynamic_flag_spec='${wl}-E'
6691: else
6692: case "$host_os" in
6693: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6694: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6695: hardcode_libdir_flag_spec='-R$libdir'
6696: ;;
6697: *)
6698: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6699: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6700: ;;
6701: esac
6702: fi
6703: ;;
6704:
6705: os2*)
6706: hardcode_libdir_flag_spec='-L$libdir'
6707: hardcode_minus_L=yes
6708: allow_undefined_flag=unsupported
6709: 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'
6710: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6711: ;;
6712:
6713: osf3*)
6714: if test "$GCC" = yes; then
6715: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6716: 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'
6717: else
6718: allow_undefined_flag=' -expect_unresolved \*'
6719: 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'
6720: fi
6721: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6722: hardcode_libdir_separator=:
6723: ;;
6724:
6725: osf4* | osf5*) # as osf3* with the addition of -msym flag
6726: if test "$GCC" = yes; then
6727: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6728: 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'
6729: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6730: else
6731: allow_undefined_flag=' -expect_unresolved \*'
6732: 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'
6733: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6734: $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'
6735:
6736: #Both c and cxx compiler support -rpath directly
6737: hardcode_libdir_flag_spec='-rpath $libdir'
6738: fi
6739: hardcode_libdir_separator=:
6740: ;;
6741:
6742: sco3.2v5*)
6743: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744: hardcode_shlibpath_var=no
6745: runpath_var=LD_RUN_PATH
6746: hardcode_runpath_var=yes
6747: export_dynamic_flag_spec='${wl}-Bexport'
6748: ;;
6749:
6750: solaris*)
6751: # gcc --version < 3.0 without binutils cannot create self contained
6752: # shared libraries reliably, requiring libgcc.a to resolve some of
6753: # the object symbols generated in some cases. Libraries that use
6754: # assert need libgcc.a to resolve __eprintf, for example. Linking
6755: # a copy of libgcc.a into every shared library to guarantee resolving
6756: # such symbols causes other problems: According to Tim Van Holder
6757: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6758: # (to the application) exception stack for one thing.
6759: no_undefined_flag=' -z defs'
6760: if test "$GCC" = yes; then
6761: case `$CC --version 2>/dev/null` in
6762: [12].*)
6763: cat <<EOF 1>&2
6764:
6765: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6766: *** create self contained shared libraries on Solaris systems, without
6767: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6768: *** -no-undefined support, which will at least allow you to build shared
6769: *** libraries. However, you may find that when you link such libraries
6770: *** into an application without using GCC, you have to manually add
6771: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6772: *** upgrade to a newer version of GCC. Another option is to rebuild your
6773: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6774:
6775: EOF
6776: no_undefined_flag=
6777: ;;
6778: esac
6779: fi
6780: # $CC -shared without GNU ld will not create a library from C++
6781: # object files and a static libstdc++, better avoid it by now
6782: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6783: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6784: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6785: hardcode_libdir_flag_spec='-R$libdir'
6786: hardcode_shlibpath_var=no
6787: case $host_os in
6788: solaris2.[0-5] | solaris2.[0-5].*) ;;
6789: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6790: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6791: esac
6792: link_all_deplibs=yes
6793: ;;
6794:
6795: sunos4*)
6796: if test "x$host_vendor" = xsequent; then
6797: # Use $CC to link under sequent, because it throws in some extra .o
6798: # files that make .init and .fini sections work.
6799: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6800: else
6801: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6802: fi
6803: hardcode_libdir_flag_spec='-L$libdir'
6804: hardcode_direct=yes
6805: hardcode_minus_L=yes
6806: hardcode_shlibpath_var=no
6807: ;;
6808:
6809: sysv4)
6810: case $host_vendor in
6811: sni)
6812: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6813: hardcode_direct=yes # is this really true???
6814: ;;
6815: siemens)
6816: ## LD is ld it makes a PLAMLIB
6817: ## CC just makes a GrossModule.
6818: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6819: reload_cmds='$CC -r -o $output$reload_objs'
6820: hardcode_direct=no
6821: ;;
6822: motorola)
6823: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6824: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6825: ;;
6826: esac
6827: runpath_var='LD_RUN_PATH'
6828: hardcode_shlibpath_var=no
6829: ;;
6830:
6831: sysv4.3*)
6832: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6833: hardcode_shlibpath_var=no
6834: export_dynamic_flag_spec='-Bexport'
6835: ;;
6836:
6837: sysv5*)
6838: no_undefined_flag=' -z text'
6839: # $CC -shared without GNU ld will not create a library from C++
6840: # object files and a static libstdc++, better avoid it by now
6841: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6842: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6843: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6844: hardcode_libdir_flag_spec=
6845: hardcode_shlibpath_var=no
6846: runpath_var='LD_RUN_PATH'
6847: ;;
6848:
6849: uts4*)
6850: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6851: hardcode_libdir_flag_spec='-L$libdir'
6852: hardcode_shlibpath_var=no
6853: ;;
6854:
6855: dgux*)
6856: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6857: hardcode_libdir_flag_spec='-L$libdir'
6858: hardcode_shlibpath_var=no
6859: ;;
6860:
6861: sysv4*MP*)
6862: if test -d /usr/nec; then
6863: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6864: hardcode_shlibpath_var=no
6865: runpath_var=LD_RUN_PATH
6866: hardcode_runpath_var=yes
6867: ld_shlibs=yes
6868: fi
6869: ;;
6870:
6871: sysv4.2uw2*)
6872: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6873: hardcode_direct=yes
6874: hardcode_minus_L=no
6875: hardcode_shlibpath_var=no
6876: hardcode_runpath_var=yes
6877: runpath_var=LD_RUN_PATH
6878: ;;
6879:
6880: sysv5uw7* | unixware7*)
6881: no_undefined_flag='${wl}-z ${wl}text'
6882: if test "$GCC" = yes; then
6883: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6884: else
6885: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6886: fi
6887: runpath_var='LD_RUN_PATH'
6888: hardcode_shlibpath_var=no
6889: ;;
6890:
6891: *)
6892: ld_shlibs=no
6893: ;;
6894: esac
6895: fi
6896: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6897: echo "${ECHO_T}$ld_shlibs" >&6
6898: test "$ld_shlibs" = no && can_build_shared=no
1.16 paf 6899: ##
6900: ## END FIXME
1.10 paf 6901:
1.16 paf 6902: ## FIXME: this should be a separate macro
6903: ##
1.10 paf 6904: # Check hardcoding attributes.
6905: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6906: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6907: hardcode_action=
6908: if test -n "$hardcode_libdir_flag_spec" || \
6909: test -n "$runpath_var"; then
6910:
6911: # We can hardcode non-existant directories.
6912: if test "$hardcode_direct" != no &&
6913: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6914: # have to relink, otherwise we might link with an installed library
6915: # when we should be linking with a yet-to-be-installed one
6916: ## test "$hardcode_shlibpath_var" != no &&
6917: test "$hardcode_minus_L" != no; then
6918: # Linking always hardcodes the temporary library directory.
6919: hardcode_action=relink
6920: else
6921: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6922: hardcode_action=immediate
6923: fi
6924: else
6925: # We cannot hardcode anything, or else we can only hardcode existing
6926: # directories.
6927: hardcode_action=unsupported
6928: fi
6929: echo "$as_me:$LINENO: result: $hardcode_action" >&5
6930: echo "${ECHO_T}$hardcode_action" >&6
1.16 paf 6931: ##
6932: ## END FIXME
1.10 paf 6933:
1.16 paf 6934: ## FIXME: this should be a separate macro
6935: ##
1.10 paf 6936: striplib=
6937: old_striplib=
6938: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6939: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6940: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6941: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6942: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6943: echo "$as_me:$LINENO: result: yes" >&5
6944: echo "${ECHO_T}yes" >&6
6945: else
6946: echo "$as_me:$LINENO: result: no" >&5
6947: echo "${ECHO_T}no" >&6
6948: fi
1.16 paf 6949: ##
6950: ## END FIXME
1.10 paf 6951:
6952: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6953: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6954:
1.16 paf 6955: ## FIXME: this should be a separate macro
6956: ##
1.10 paf 6957: # PORTME Fill in your ld.so characteristics
6958: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6959: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6960: library_names_spec=
6961: libname_spec='lib$name'
6962: soname_spec=
6963: postinstall_cmds=
6964: postuninstall_cmds=
6965: finish_cmds=
6966: finish_eval=
6967: shlibpath_var=
6968: shlibpath_overrides_runpath=unknown
6969: version_type=none
6970: dynamic_linker="$host_os ld.so"
6971: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6972: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6973:
6974: case $host_os in
6975: aix3*)
6976: version_type=linux
6977: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6978: shlibpath_var=LIBPATH
6979:
6980: # AIX has no versioning support, so we append a major version to the name.
6981: soname_spec='${libname}${release}.so$major'
6982: ;;
6983:
6984: aix4* | aix5*)
6985: version_type=linux
6986: need_lib_prefix=no
6987: need_version=no
6988: hardcode_into_libs=yes
6989: if test "$host_cpu" = ia64; then
6990: # AIX 5 supports IA64
6991: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6992: shlibpath_var=LD_LIBRARY_PATH
6993: else
6994: # With GCC up to 2.95.x, collect2 would create an import file
6995: # for dependence libraries. The import file would start with
6996: # the line `#! .'. This would cause the generated library to
6997: # depend on `.', always an invalid library. This was fixed in
6998: # development snapshots of GCC prior to 3.0.
6999: case $host_os in
7000: aix4 | aix4.[01] | aix4.[01].*)
7001: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7002: echo ' yes '
7003: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7004: :
7005: else
7006: can_build_shared=no
7007: fi
7008: ;;
7009: esac
7010: # AIX (on Power*) has no versioning support, so currently we can
7011: # not hardcode correct soname into executable. Probably we can
7012: # add versioning support to collect2, so additional links can
7013: # be useful in future.
7014: if test "$aix_use_runtimelinking" = yes; then
7015: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7016: # instead of lib<name>.a to let people know that these are not
7017: # typical AIX shared libraries.
7018: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7019: else
7020: # We preserve .a as extension for shared libraries through AIX4.2
7021: # and later when we are not doing run time linking.
7022: library_names_spec='${libname}${release}.a $libname.a'
7023: soname_spec='${libname}${release}.so$major'
7024: fi
7025: shlibpath_var=LIBPATH
7026: fi
7027: hardcode_into_libs=yes
7028: ;;
7029:
7030: amigaos*)
7031: library_names_spec='$libname.ixlibrary $libname.a'
7032: # Create ${libname}_ixlibrary.a entries in /sys/libs.
7033: 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'
7034: ;;
7035:
7036: beos*)
7037: library_names_spec='${libname}.so'
7038: dynamic_linker="$host_os ld.so"
7039: shlibpath_var=LIBRARY_PATH
7040: ;;
7041:
7042: bsdi4*)
7043: version_type=linux
7044: need_version=no
7045: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7046: soname_spec='${libname}${release}.so$major'
7047: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7048: shlibpath_var=LD_LIBRARY_PATH
7049: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7050: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7051: export_dynamic_flag_spec=-rdynamic
7052: # the default ld.so.conf also contains /usr/contrib/lib and
7053: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7054: # libtool to hard-code these into programs
7055: ;;
7056:
7057: cygwin* | mingw* | pw32*)
7058: version_type=windows
7059: need_version=no
7060: need_lib_prefix=no
7061: case $GCC,$host_os in
7062: yes,cygwin*)
7063: library_names_spec='$libname.dll.a'
7064: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7065: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7066: dldir=$destdir/`dirname \$dlpath`~
7067: test -d \$dldir || mkdir -p \$dldir~
7068: $install_prog .libs/$dlname \$dldir/$dlname'
7069: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7070: dlpath=$dir/\$dldll~
7071: $rm \$dlpath'
7072: ;;
7073: yes,mingw*)
7074: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7075: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7076: ;;
7077: yes,pw32*)
7078: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7079: ;;
7080: *)
7081: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7082: ;;
7083: esac
7084: dynamic_linker='Win32 ld.exe'
7085: # FIXME: first we should search . and the directory the executable is in
7086: shlibpath_var=PATH
7087: ;;
7088:
7089: darwin* | rhapsody*)
7090: dynamic_linker="$host_os dyld"
7091: version_type=darwin
7092: need_lib_prefix=no
7093: need_version=no
7094: # FIXME: Relying on posixy $() will cause problems for
7095: # cross-compilation, but unfortunately the echo tests do not
7096: # yet detect zsh echo's removal of \ escapes.
7097: 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)'
7098: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7099: shlibpath_overrides_runpath=yes
7100: shlibpath_var=DYLD_LIBRARY_PATH
7101: ;;
7102:
7103: freebsd1*)
7104: dynamic_linker=no
7105: ;;
7106:
7107: freebsd*)
7108: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7109: version_type=freebsd-$objformat
7110: case $version_type in
7111: freebsd-elf*)
7112: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7113: need_version=no
7114: need_lib_prefix=no
7115: ;;
7116: freebsd-*)
7117: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7118: need_version=yes
7119: ;;
7120: esac
7121: shlibpath_var=LD_LIBRARY_PATH
7122: case $host_os in
7123: freebsd2*)
7124: shlibpath_overrides_runpath=yes
7125: ;;
7126: *)
7127: shlibpath_overrides_runpath=no
7128: hardcode_into_libs=yes
7129: ;;
7130: esac
7131: ;;
7132:
7133: gnu*)
7134: version_type=linux
7135: need_lib_prefix=no
7136: need_version=no
7137: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7138: soname_spec='${libname}${release}.so$major'
7139: shlibpath_var=LD_LIBRARY_PATH
7140: hardcode_into_libs=yes
7141: ;;
7142:
7143: hpux9* | hpux10* | hpux11*)
7144: # Give a soname corresponding to the major version so that dld.sl refuses to
7145: # link against other versions.
7146: dynamic_linker="$host_os dld.sl"
7147: version_type=sunos
7148: need_lib_prefix=no
7149: need_version=no
7150: shlibpath_var=SHLIB_PATH
7151: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7152: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7153: soname_spec='${libname}${release}.sl$major'
7154: # HP-UX runs *really* slowly unless shared libraries are mode 555.
7155: postinstall_cmds='chmod 555 $lib'
7156: ;;
7157:
7158: irix5* | irix6* | nonstopux*)
7159: case $host_os in
7160: nonstopux*) version_type=nonstopux ;;
7161: *) version_type=irix ;;
7162: esac
7163: need_lib_prefix=no
7164: need_version=no
7165: soname_spec='${libname}${release}.so$major'
7166: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7167: case $host_os in
7168: irix5* | nonstopux*)
7169: libsuff= shlibsuff=
7170: ;;
7171: *)
7172: case $LD in # libtool.m4 will add one of these switches to LD
7173: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7174: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7175: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7176: *) libsuff= shlibsuff= libmagic=never-match;;
7177: esac
7178: ;;
7179: esac
7180: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7181: shlibpath_overrides_runpath=no
7182: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7183: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7184: ;;
7185:
7186: # No shared lib support for Linux oldld, aout, or coff.
7187: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7188: dynamic_linker=no
7189: ;;
7190:
7191: # This must be Linux ELF.
7192: linux-gnu*)
7193: version_type=linux
7194: need_lib_prefix=no
7195: need_version=no
7196: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7197: soname_spec='${libname}${release}.so$major'
7198: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7199: shlibpath_var=LD_LIBRARY_PATH
7200: shlibpath_overrides_runpath=no
7201: # This implies no fast_install, which is unacceptable.
7202: # Some rework will be needed to allow for fast_install
7203: # before this can be enabled.
7204: hardcode_into_libs=yes
7205:
7206: # We used to test for /lib/ld.so.1 and disable shared libraries on
7207: # powerpc, because MkLinux only supported shared libraries with the
7208: # GNU dynamic linker. Since this was broken with cross compilers,
7209: # most powerpc-linux boxes support dynamic linking these days and
7210: # people can always --disable-shared, the test was removed, and we
7211: # assume the GNU/Linux dynamic linker is in use.
7212: dynamic_linker='GNU/Linux ld.so'
7213: ;;
7214:
7215: netbsd*)
7216: version_type=sunos
7217: need_lib_prefix=no
7218: need_version=no
7219: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7220: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7221: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7222: dynamic_linker='NetBSD (a.out) ld.so'
7223: else
7224: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7225: soname_spec='${libname}${release}.so$major'
7226: dynamic_linker='NetBSD ld.elf_so'
7227: fi
7228: shlibpath_var=LD_LIBRARY_PATH
7229: shlibpath_overrides_runpath=yes
7230: hardcode_into_libs=yes
7231: ;;
7232:
7233: newsos6)
7234: version_type=linux
7235: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7236: shlibpath_var=LD_LIBRARY_PATH
7237: shlibpath_overrides_runpath=yes
7238: ;;
7239:
7240: openbsd*)
7241: version_type=sunos
7242: need_lib_prefix=no
7243: need_version=no
7244: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7245: case "$host_os" in
7246: openbsd2.[89] | openbsd2.[89].*)
7247: shlibpath_overrides_runpath=no
7248: ;;
7249: *)
7250: shlibpath_overrides_runpath=yes
7251: ;;
7252: esac
7253: else
7254: shlibpath_overrides_runpath=yes
7255: fi
7256: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7257: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7258: shlibpath_var=LD_LIBRARY_PATH
7259: ;;
7260:
7261: os2*)
7262: libname_spec='$name'
7263: need_lib_prefix=no
7264: library_names_spec='$libname.dll $libname.a'
7265: dynamic_linker='OS/2 ld.exe'
7266: shlibpath_var=LIBPATH
7267: ;;
7268:
7269: osf3* | osf4* | osf5*)
7270: version_type=osf
7271: need_version=no
7272: soname_spec='${libname}${release}.so$major'
7273: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7274: shlibpath_var=LD_LIBRARY_PATH
7275: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7276: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7277: hardcode_into_libs=yes
7278: ;;
7279:
7280: sco3.2v5*)
7281: version_type=osf
7282: soname_spec='${libname}${release}.so$major'
7283: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7284: shlibpath_var=LD_LIBRARY_PATH
7285: ;;
7286:
7287: solaris*)
7288: version_type=linux
7289: need_lib_prefix=no
7290: need_version=no
7291: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7292: soname_spec='${libname}${release}.so$major'
7293: shlibpath_var=LD_LIBRARY_PATH
7294: shlibpath_overrides_runpath=yes
7295: hardcode_into_libs=yes
7296: # ldd complains unless libraries are executable
7297: postinstall_cmds='chmod +x $lib'
7298: ;;
7299:
7300: sunos4*)
7301: version_type=sunos
7302: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7303: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7304: shlibpath_var=LD_LIBRARY_PATH
7305: shlibpath_overrides_runpath=yes
7306: if test "$with_gnu_ld" = yes; then
7307: need_lib_prefix=no
7308: fi
7309: need_version=yes
7310: ;;
7311:
7312: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7313: version_type=linux
7314: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7315: soname_spec='${libname}${release}.so$major'
7316: shlibpath_var=LD_LIBRARY_PATH
7317: case $host_vendor in
7318: sni)
7319: shlibpath_overrides_runpath=no
7320: need_lib_prefix=no
7321: export_dynamic_flag_spec='${wl}-Blargedynsym'
7322: runpath_var=LD_RUN_PATH
7323: ;;
7324: siemens)
7325: need_lib_prefix=no
7326: ;;
7327: motorola)
7328: need_lib_prefix=no
7329: need_version=no
7330: shlibpath_overrides_runpath=no
7331: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7332: ;;
7333: esac
7334: ;;
7335:
7336: uts4*)
7337: version_type=linux
7338: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7339: soname_spec='${libname}${release}.so$major'
7340: shlibpath_var=LD_LIBRARY_PATH
7341: ;;
7342:
7343: dgux*)
7344: version_type=linux
7345: need_lib_prefix=no
7346: need_version=no
7347: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7348: soname_spec='${libname}${release}.so$major'
7349: shlibpath_var=LD_LIBRARY_PATH
7350: ;;
7351:
7352: sysv4*MP*)
7353: if test -d /usr/nec ;then
7354: version_type=linux
7355: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7356: soname_spec='$libname.so.$major'
7357: shlibpath_var=LD_LIBRARY_PATH
7358: fi
7359: ;;
7360:
7361: *)
7362: dynamic_linker=no
7363: ;;
7364: esac
7365: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7366: echo "${ECHO_T}$dynamic_linker" >&6
7367: test "$dynamic_linker" = no && can_build_shared=no
1.16 paf 7368: ##
7369: ## END FIXME
1.10 paf 7370:
1.16 paf 7371: ## FIXME: this should be a separate macro
7372: ##
1.10 paf 7373: # Report the final consequences.
7374: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7375: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7376: echo "$as_me:$LINENO: result: $can_build_shared" >&5
7377: echo "${ECHO_T}$can_build_shared" >&6
1.16 paf 7378: ##
7379: ## END FIXME
1.10 paf 7380:
1.16 paf 7381: ## FIXME: this should be a separate macro
7382: ##
1.10 paf 7383: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7384: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7385: test "$can_build_shared" = "no" && enable_shared=no
7386:
7387: # On AIX, shared libraries and static libraries use the same namespace, and
7388: # are all built from PIC.
7389: case "$host_os" in
7390: aix3*)
7391: test "$enable_shared" = yes && enable_static=no
7392: if test -n "$RANLIB"; then
7393: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7394: postinstall_cmds='$RANLIB $lib'
7395: fi
7396: ;;
7397:
7398: aix4*)
7399: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7400: test "$enable_shared" = yes && enable_static=no
7401: fi
7402: ;;
7403: esac
7404: echo "$as_me:$LINENO: result: $enable_shared" >&5
7405: echo "${ECHO_T}$enable_shared" >&6
1.16 paf 7406: ##
7407: ## END FIXME
1.10 paf 7408:
1.16 paf 7409: ## FIXME: this should be a separate macro
7410: ##
1.10 paf 7411: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7412: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7413: # Make sure either enable_shared or enable_static is yes.
7414: test "$enable_shared" = yes || enable_static=yes
7415: echo "$as_me:$LINENO: result: $enable_static" >&5
7416: echo "${ECHO_T}$enable_static" >&6
1.16 paf 7417: ##
7418: ## END FIXME
1.10 paf 7419:
7420: if test "$hardcode_action" = relink; then
7421: # Fast installation is not supported
7422: enable_fast_install=no
7423: elif test "$shlibpath_overrides_runpath" = yes ||
7424: test "$enable_shared" = no; then
7425: # Fast installation is not necessary
7426: enable_fast_install=needless
7427: fi
7428:
7429: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7430: if test "$GCC" = yes; then
7431: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7432: fi
7433:
7434: if test "x$enable_dlopen" != xyes; then
7435: enable_dlopen=unknown
7436: enable_dlopen_self=unknown
7437: enable_dlopen_self_static=unknown
7438: else
7439: lt_cv_dlopen=no
7440: lt_cv_dlopen_libs=
7441:
7442: case $host_os in
7443: beos*)
7444: lt_cv_dlopen="load_add_on"
7445: lt_cv_dlopen_libs=
7446: lt_cv_dlopen_self=yes
7447: ;;
7448:
7449: cygwin* | mingw* | pw32*)
7450: lt_cv_dlopen="LoadLibrary"
7451: lt_cv_dlopen_libs=
7452: ;;
7453:
7454: *)
7455: echo "$as_me:$LINENO: checking for shl_load" >&5
7456: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7457: if test "${ac_cv_func_shl_load+set}" = set; then
7458: echo $ECHO_N "(cached) $ECHO_C" >&6
7459: else
7460: cat >conftest.$ac_ext <<_ACEOF
7461: /* confdefs.h. */
7462: _ACEOF
7463: cat confdefs.h >>conftest.$ac_ext
7464: cat >>conftest.$ac_ext <<_ACEOF
7465: /* end confdefs.h. */
1.16 paf 7466: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7467: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7468: #define shl_load innocuous_shl_load
7469:
1.10 paf 7470: /* System header to define __stub macros and hopefully few prototypes,
7471: which can conflict with char shl_load (); below.
7472: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473: <limits.h> exists even on freestanding compilers. */
1.16 paf 7474:
1.10 paf 7475: #ifdef __STDC__
7476: # include <limits.h>
7477: #else
7478: # include <assert.h>
7479: #endif
1.16 paf 7480:
7481: #undef shl_load
7482:
1.10 paf 7483: /* Override any gcc2 internal prototype to avoid an error. */
7484: #ifdef __cplusplus
7485: extern "C"
7486: {
7487: #endif
7488: /* We use char because int might match the return type of a gcc2
7489: builtin and then its argument prototype would still apply. */
7490: char shl_load ();
7491: /* The GNU C library defines this for functions which it implements
7492: to always fail with ENOSYS. Some functions are actually named
7493: something starting with __ and the normal name is an alias. */
7494: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7495: choke me
7496: #else
7497: char (*f) () = shl_load;
7498: #endif
7499: #ifdef __cplusplus
7500: }
7501: #endif
7502:
7503: int
7504: main ()
7505: {
7506: return f != shl_load;
7507: ;
7508: return 0;
7509: }
7510: _ACEOF
7511: rm -f conftest.$ac_objext conftest$ac_exeext
7512: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7513: (eval $ac_link) 2>conftest.er1
1.10 paf 7514: ac_status=$?
1.16 paf 7515: grep -v '^ *+' conftest.er1 >conftest.err
7516: rm -f conftest.er1
7517: cat conftest.err >&5
1.10 paf 7518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519: (exit $ac_status); } &&
1.16 paf 7520: { ac_try='test -z "$ac_c_werror_flag"
7521: || test ! -s conftest.err'
7522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523: (eval $ac_try) 2>&5
7524: ac_status=$?
7525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526: (exit $ac_status); }; } &&
7527: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7528: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529: (eval $ac_try) 2>&5
7530: ac_status=$?
7531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532: (exit $ac_status); }; }; then
7533: ac_cv_func_shl_load=yes
7534: else
7535: echo "$as_me: failed program was:" >&5
7536: sed 's/^/| /' conftest.$ac_ext >&5
7537:
7538: ac_cv_func_shl_load=no
7539: fi
1.16 paf 7540: rm -f conftest.err conftest.$ac_objext \
7541: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7542: fi
7543: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7544: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7545: if test $ac_cv_func_shl_load = yes; then
7546: lt_cv_dlopen="shl_load"
7547: else
7548: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7549: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7550: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7551: echo $ECHO_N "(cached) $ECHO_C" >&6
7552: else
7553: ac_check_lib_save_LIBS=$LIBS
7554: LIBS="-ldld $LIBS"
7555: cat >conftest.$ac_ext <<_ACEOF
7556: /* confdefs.h. */
7557: _ACEOF
7558: cat confdefs.h >>conftest.$ac_ext
7559: cat >>conftest.$ac_ext <<_ACEOF
7560: /* end confdefs.h. */
7561:
7562: /* Override any gcc2 internal prototype to avoid an error. */
7563: #ifdef __cplusplus
7564: extern "C"
7565: #endif
7566: /* We use char because int might match the return type of a gcc2
7567: builtin and then its argument prototype would still apply. */
7568: char shl_load ();
7569: int
7570: main ()
7571: {
7572: shl_load ();
7573: ;
7574: return 0;
7575: }
7576: _ACEOF
7577: rm -f conftest.$ac_objext conftest$ac_exeext
7578: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7579: (eval $ac_link) 2>conftest.er1
1.10 paf 7580: ac_status=$?
1.16 paf 7581: grep -v '^ *+' conftest.er1 >conftest.err
7582: rm -f conftest.er1
7583: cat conftest.err >&5
1.10 paf 7584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585: (exit $ac_status); } &&
1.16 paf 7586: { ac_try='test -z "$ac_c_werror_flag"
7587: || test ! -s conftest.err'
7588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589: (eval $ac_try) 2>&5
7590: ac_status=$?
7591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592: (exit $ac_status); }; } &&
7593: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7594: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595: (eval $ac_try) 2>&5
7596: ac_status=$?
7597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598: (exit $ac_status); }; }; then
7599: ac_cv_lib_dld_shl_load=yes
7600: else
7601: echo "$as_me: failed program was:" >&5
7602: sed 's/^/| /' conftest.$ac_ext >&5
7603:
7604: ac_cv_lib_dld_shl_load=no
7605: fi
1.16 paf 7606: rm -f conftest.err conftest.$ac_objext \
7607: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7608: LIBS=$ac_check_lib_save_LIBS
7609: fi
7610: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7611: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7612: if test $ac_cv_lib_dld_shl_load = yes; then
7613: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7614: else
7615: echo "$as_me:$LINENO: checking for dlopen" >&5
7616: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7617: if test "${ac_cv_func_dlopen+set}" = set; then
7618: echo $ECHO_N "(cached) $ECHO_C" >&6
7619: else
7620: cat >conftest.$ac_ext <<_ACEOF
7621: /* confdefs.h. */
7622: _ACEOF
7623: cat confdefs.h >>conftest.$ac_ext
7624: cat >>conftest.$ac_ext <<_ACEOF
7625: /* end confdefs.h. */
1.16 paf 7626: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7627: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7628: #define dlopen innocuous_dlopen
7629:
1.10 paf 7630: /* System header to define __stub macros and hopefully few prototypes,
7631: which can conflict with char dlopen (); below.
7632: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633: <limits.h> exists even on freestanding compilers. */
1.16 paf 7634:
1.10 paf 7635: #ifdef __STDC__
7636: # include <limits.h>
7637: #else
7638: # include <assert.h>
7639: #endif
1.16 paf 7640:
7641: #undef dlopen
7642:
1.10 paf 7643: /* Override any gcc2 internal prototype to avoid an error. */
7644: #ifdef __cplusplus
7645: extern "C"
7646: {
7647: #endif
7648: /* We use char because int might match the return type of a gcc2
7649: builtin and then its argument prototype would still apply. */
7650: char dlopen ();
7651: /* The GNU C library defines this for functions which it implements
7652: to always fail with ENOSYS. Some functions are actually named
7653: something starting with __ and the normal name is an alias. */
7654: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7655: choke me
7656: #else
7657: char (*f) () = dlopen;
7658: #endif
7659: #ifdef __cplusplus
7660: }
7661: #endif
7662:
7663: int
7664: main ()
7665: {
7666: return f != dlopen;
7667: ;
7668: return 0;
7669: }
7670: _ACEOF
7671: rm -f conftest.$ac_objext conftest$ac_exeext
7672: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7673: (eval $ac_link) 2>conftest.er1
1.10 paf 7674: ac_status=$?
1.16 paf 7675: grep -v '^ *+' conftest.er1 >conftest.err
7676: rm -f conftest.er1
7677: cat conftest.err >&5
1.10 paf 7678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679: (exit $ac_status); } &&
1.16 paf 7680: { ac_try='test -z "$ac_c_werror_flag"
7681: || test ! -s conftest.err'
7682: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683: (eval $ac_try) 2>&5
7684: ac_status=$?
7685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686: (exit $ac_status); }; } &&
7687: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7688: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689: (eval $ac_try) 2>&5
7690: ac_status=$?
7691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692: (exit $ac_status); }; }; then
7693: ac_cv_func_dlopen=yes
7694: else
7695: echo "$as_me: failed program was:" >&5
7696: sed 's/^/| /' conftest.$ac_ext >&5
7697:
7698: ac_cv_func_dlopen=no
7699: fi
1.16 paf 7700: rm -f conftest.err conftest.$ac_objext \
7701: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7702: fi
7703: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7704: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7705: if test $ac_cv_func_dlopen = yes; then
7706: lt_cv_dlopen="dlopen"
7707: else
7708: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7709: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7710: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7711: echo $ECHO_N "(cached) $ECHO_C" >&6
7712: else
7713: ac_check_lib_save_LIBS=$LIBS
7714: LIBS="-ldl $LIBS"
7715: cat >conftest.$ac_ext <<_ACEOF
7716: /* confdefs.h. */
7717: _ACEOF
7718: cat confdefs.h >>conftest.$ac_ext
7719: cat >>conftest.$ac_ext <<_ACEOF
7720: /* end confdefs.h. */
7721:
7722: /* Override any gcc2 internal prototype to avoid an error. */
7723: #ifdef __cplusplus
7724: extern "C"
7725: #endif
7726: /* We use char because int might match the return type of a gcc2
7727: builtin and then its argument prototype would still apply. */
7728: char dlopen ();
7729: int
7730: main ()
7731: {
7732: dlopen ();
7733: ;
7734: return 0;
7735: }
7736: _ACEOF
7737: rm -f conftest.$ac_objext conftest$ac_exeext
7738: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7739: (eval $ac_link) 2>conftest.er1
1.10 paf 7740: ac_status=$?
1.16 paf 7741: grep -v '^ *+' conftest.er1 >conftest.err
7742: rm -f conftest.er1
7743: cat conftest.err >&5
1.10 paf 7744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745: (exit $ac_status); } &&
1.16 paf 7746: { ac_try='test -z "$ac_c_werror_flag"
7747: || test ! -s conftest.err'
7748: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749: (eval $ac_try) 2>&5
7750: ac_status=$?
7751: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752: (exit $ac_status); }; } &&
7753: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7754: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755: (eval $ac_try) 2>&5
7756: ac_status=$?
7757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758: (exit $ac_status); }; }; then
7759: ac_cv_lib_dl_dlopen=yes
7760: else
7761: echo "$as_me: failed program was:" >&5
7762: sed 's/^/| /' conftest.$ac_ext >&5
7763:
7764: ac_cv_lib_dl_dlopen=no
7765: fi
1.16 paf 7766: rm -f conftest.err conftest.$ac_objext \
7767: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7768: LIBS=$ac_check_lib_save_LIBS
7769: fi
7770: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7771: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7772: if test $ac_cv_lib_dl_dlopen = yes; then
7773: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7774: else
7775: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7776: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7777: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7778: echo $ECHO_N "(cached) $ECHO_C" >&6
7779: else
7780: ac_check_lib_save_LIBS=$LIBS
7781: LIBS="-lsvld $LIBS"
7782: cat >conftest.$ac_ext <<_ACEOF
7783: /* confdefs.h. */
7784: _ACEOF
7785: cat confdefs.h >>conftest.$ac_ext
7786: cat >>conftest.$ac_ext <<_ACEOF
7787: /* end confdefs.h. */
7788:
7789: /* Override any gcc2 internal prototype to avoid an error. */
7790: #ifdef __cplusplus
7791: extern "C"
7792: #endif
7793: /* We use char because int might match the return type of a gcc2
7794: builtin and then its argument prototype would still apply. */
7795: char dlopen ();
7796: int
7797: main ()
7798: {
7799: dlopen ();
7800: ;
7801: return 0;
7802: }
7803: _ACEOF
7804: rm -f conftest.$ac_objext conftest$ac_exeext
7805: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7806: (eval $ac_link) 2>conftest.er1
1.10 paf 7807: ac_status=$?
1.16 paf 7808: grep -v '^ *+' conftest.er1 >conftest.err
7809: rm -f conftest.er1
7810: cat conftest.err >&5
1.10 paf 7811: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812: (exit $ac_status); } &&
1.16 paf 7813: { ac_try='test -z "$ac_c_werror_flag"
7814: || test ! -s conftest.err'
7815: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816: (eval $ac_try) 2>&5
7817: ac_status=$?
7818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819: (exit $ac_status); }; } &&
7820: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822: (eval $ac_try) 2>&5
7823: ac_status=$?
7824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825: (exit $ac_status); }; }; then
7826: ac_cv_lib_svld_dlopen=yes
7827: else
7828: echo "$as_me: failed program was:" >&5
7829: sed 's/^/| /' conftest.$ac_ext >&5
7830:
7831: ac_cv_lib_svld_dlopen=no
7832: fi
1.16 paf 7833: rm -f conftest.err conftest.$ac_objext \
7834: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7835: LIBS=$ac_check_lib_save_LIBS
7836: fi
7837: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7838: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7839: if test $ac_cv_lib_svld_dlopen = yes; then
7840: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7841: else
7842: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7843: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7844: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7845: echo $ECHO_N "(cached) $ECHO_C" >&6
7846: else
7847: ac_check_lib_save_LIBS=$LIBS
7848: LIBS="-ldld $LIBS"
7849: cat >conftest.$ac_ext <<_ACEOF
7850: /* confdefs.h. */
7851: _ACEOF
7852: cat confdefs.h >>conftest.$ac_ext
7853: cat >>conftest.$ac_ext <<_ACEOF
7854: /* end confdefs.h. */
7855:
7856: /* Override any gcc2 internal prototype to avoid an error. */
7857: #ifdef __cplusplus
7858: extern "C"
7859: #endif
7860: /* We use char because int might match the return type of a gcc2
7861: builtin and then its argument prototype would still apply. */
7862: char dld_link ();
7863: int
7864: main ()
7865: {
7866: dld_link ();
7867: ;
7868: return 0;
7869: }
7870: _ACEOF
7871: rm -f conftest.$ac_objext conftest$ac_exeext
7872: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7873: (eval $ac_link) 2>conftest.er1
1.10 paf 7874: ac_status=$?
1.16 paf 7875: grep -v '^ *+' conftest.er1 >conftest.err
7876: rm -f conftest.er1
7877: cat conftest.err >&5
1.10 paf 7878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879: (exit $ac_status); } &&
1.16 paf 7880: { ac_try='test -z "$ac_c_werror_flag"
7881: || test ! -s conftest.err'
7882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883: (eval $ac_try) 2>&5
7884: ac_status=$?
7885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886: (exit $ac_status); }; } &&
7887: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7888: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889: (eval $ac_try) 2>&5
7890: ac_status=$?
7891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892: (exit $ac_status); }; }; then
7893: ac_cv_lib_dld_dld_link=yes
7894: else
7895: echo "$as_me: failed program was:" >&5
7896: sed 's/^/| /' conftest.$ac_ext >&5
7897:
7898: ac_cv_lib_dld_dld_link=no
7899: fi
1.16 paf 7900: rm -f conftest.err conftest.$ac_objext \
7901: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7902: LIBS=$ac_check_lib_save_LIBS
7903: fi
7904: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7905: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7906: if test $ac_cv_lib_dld_dld_link = yes; then
7907: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7908: fi
7909:
7910:
7911: fi
7912:
7913:
7914: fi
7915:
7916:
7917: fi
7918:
7919:
7920: fi
7921:
7922:
7923: fi
7924:
7925: ;;
7926: esac
7927:
7928: if test "x$lt_cv_dlopen" != xno; then
7929: enable_dlopen=yes
7930: else
7931: enable_dlopen=no
7932: fi
7933:
7934: case $lt_cv_dlopen in
7935: dlopen)
7936: save_CPPFLAGS="$CPPFLAGS"
7937: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7938:
7939: save_LDFLAGS="$LDFLAGS"
7940: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7941:
7942: save_LIBS="$LIBS"
7943: LIBS="$lt_cv_dlopen_libs $LIBS"
7944:
7945: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7946: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7947: if test "${lt_cv_dlopen_self+set}" = set; then
7948: echo $ECHO_N "(cached) $ECHO_C" >&6
7949: else
7950: if test "$cross_compiling" = yes; then :
7951: lt_cv_dlopen_self=cross
7952: else
7953: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7954: lt_status=$lt_dlunknown
7955: cat > conftest.$ac_ext <<EOF
1.21 ! misha 7956: #line 7956 "configure"
1.10 paf 7957: #include "confdefs.h"
7958:
7959: #if HAVE_DLFCN_H
7960: #include <dlfcn.h>
7961: #endif
7962:
7963: #include <stdio.h>
7964:
7965: #ifdef RTLD_GLOBAL
7966: # define LT_DLGLOBAL RTLD_GLOBAL
7967: #else
7968: # ifdef DL_GLOBAL
7969: # define LT_DLGLOBAL DL_GLOBAL
7970: # else
7971: # define LT_DLGLOBAL 0
7972: # endif
7973: #endif
7974:
7975: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7976: find out it does not work in some platform. */
7977: #ifndef LT_DLLAZY_OR_NOW
7978: # ifdef RTLD_LAZY
7979: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7980: # else
7981: # ifdef DL_LAZY
7982: # define LT_DLLAZY_OR_NOW DL_LAZY
7983: # else
7984: # ifdef RTLD_NOW
7985: # define LT_DLLAZY_OR_NOW RTLD_NOW
7986: # else
7987: # ifdef DL_NOW
7988: # define LT_DLLAZY_OR_NOW DL_NOW
7989: # else
7990: # define LT_DLLAZY_OR_NOW 0
7991: # endif
7992: # endif
7993: # endif
7994: # endif
7995: #endif
7996:
7997: #ifdef __cplusplus
7998: extern "C" void exit (int);
7999: #endif
8000:
8001: void fnord() { int i=42;}
8002: int main ()
8003: {
8004: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8005: int status = $lt_dlunknown;
8006:
8007: if (self)
8008: {
8009: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8010: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8011: /* dlclose (self); */
8012: }
8013:
8014: exit (status);
8015: }
8016: EOF
8017: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018: (eval $ac_link) 2>&5
8019: ac_status=$?
8020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8022: (./conftest; exit; ) 2>/dev/null
8023: lt_status=$?
8024: case x$lt_status in
8025: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8026: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8027: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8028: esac
8029: else :
8030: # compilation failed
8031: lt_cv_dlopen_self=no
8032: fi
8033: fi
8034: rm -fr conftest*
8035:
8036:
8037: fi
8038: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8039: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8040:
8041: if test "x$lt_cv_dlopen_self" = xyes; then
8042: LDFLAGS="$LDFLAGS $link_static_flag"
8043: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8044: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8045: if test "${lt_cv_dlopen_self_static+set}" = set; then
8046: echo $ECHO_N "(cached) $ECHO_C" >&6
8047: else
8048: if test "$cross_compiling" = yes; then :
8049: lt_cv_dlopen_self_static=cross
8050: else
8051: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8052: lt_status=$lt_dlunknown
8053: cat > conftest.$ac_ext <<EOF
1.21 ! misha 8054: #line 8054 "configure"
1.10 paf 8055: #include "confdefs.h"
8056:
8057: #if HAVE_DLFCN_H
8058: #include <dlfcn.h>
8059: #endif
8060:
8061: #include <stdio.h>
8062:
8063: #ifdef RTLD_GLOBAL
8064: # define LT_DLGLOBAL RTLD_GLOBAL
8065: #else
8066: # ifdef DL_GLOBAL
8067: # define LT_DLGLOBAL DL_GLOBAL
8068: # else
8069: # define LT_DLGLOBAL 0
8070: # endif
8071: #endif
8072:
8073: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8074: find out it does not work in some platform. */
8075: #ifndef LT_DLLAZY_OR_NOW
8076: # ifdef RTLD_LAZY
8077: # define LT_DLLAZY_OR_NOW RTLD_LAZY
8078: # else
8079: # ifdef DL_LAZY
8080: # define LT_DLLAZY_OR_NOW DL_LAZY
8081: # else
8082: # ifdef RTLD_NOW
8083: # define LT_DLLAZY_OR_NOW RTLD_NOW
8084: # else
8085: # ifdef DL_NOW
8086: # define LT_DLLAZY_OR_NOW DL_NOW
8087: # else
8088: # define LT_DLLAZY_OR_NOW 0
8089: # endif
8090: # endif
8091: # endif
8092: # endif
8093: #endif
8094:
8095: #ifdef __cplusplus
8096: extern "C" void exit (int);
8097: #endif
8098:
8099: void fnord() { int i=42;}
8100: int main ()
8101: {
8102: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8103: int status = $lt_dlunknown;
8104:
8105: if (self)
8106: {
8107: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8108: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8109: /* dlclose (self); */
8110: }
8111:
8112: exit (status);
8113: }
1.1 parser 8114: EOF
1.10 paf 8115: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116: (eval $ac_link) 2>&5
8117: ac_status=$?
8118: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8120: (./conftest; exit; ) 2>/dev/null
8121: lt_status=$?
8122: case x$lt_status in
8123: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8124: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8125: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8126: esac
8127: else :
8128: # compilation failed
8129: lt_cv_dlopen_self_static=no
8130: fi
8131: fi
8132: rm -fr conftest*
8133:
8134:
8135: fi
8136: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8137: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8138: fi
8139:
8140: CPPFLAGS="$save_CPPFLAGS"
8141: LDFLAGS="$save_LDFLAGS"
8142: LIBS="$save_LIBS"
8143: ;;
8144: esac
8145:
8146: case $lt_cv_dlopen_self in
8147: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8148: *) enable_dlopen_self=unknown ;;
8149: esac
8150:
8151: case $lt_cv_dlopen_self_static in
8152: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8153: *) enable_dlopen_self_static=unknown ;;
8154: esac
8155: fi
8156:
8157:
1.16 paf 8158: ## FIXME: this should be a separate macro
8159: ##
1.10 paf 8160: if test "$enable_shared" = yes && test "$GCC" = yes; then
8161: case $archive_cmds in
8162: *'~'*)
8163: # FIXME: we may have to deal with multi-command sequences.
8164: ;;
8165: '$CC '*)
8166: # Test whether the compiler implicitly links with -lc since on some
8167: # systems, -lgcc has to come before -lc. If gcc already passes -lc
8168: # to ld, don't add -lc before -lgcc.
8169: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8170: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8171: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8172: echo $ECHO_N "(cached) $ECHO_C" >&6
8173: else
8174: $rm conftest*
8175: echo 'static int dummy;' > conftest.$ac_ext
8176:
8177: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8178: (eval $ac_compile) 2>&5
8179: ac_status=$?
8180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181: (exit $ac_status); }; then
8182: soname=conftest
8183: lib=conftest
8184: libobjs=conftest.$ac_objext
8185: deplibs=
8186: wl=$lt_cv_prog_cc_wl
8187: compiler_flags=-v
8188: linker_flags=-v
8189: verstring=
8190: output_objdir=.
8191: libname=conftest
8192: save_allow_undefined_flag=$allow_undefined_flag
8193: allow_undefined_flag=
8194: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8195: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8196: ac_status=$?
8197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198: (exit $ac_status); }
8199: then
8200: lt_cv_archive_cmds_need_lc=no
8201: else
8202: lt_cv_archive_cmds_need_lc=yes
8203: fi
8204: allow_undefined_flag=$save_allow_undefined_flag
8205: else
8206: cat conftest.err 1>&5
8207: fi
8208: fi
8209:
8210: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8211: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8212: ;;
8213: esac
8214: fi
8215: need_lc=${lt_cv_archive_cmds_need_lc-yes}
1.16 paf 8216: ##
8217: ## END FIXME
1.10 paf 8218:
1.16 paf 8219: ## FIXME: this should be a separate macro
8220: ##
1.10 paf 8221: # The second clause should only fire when bootstrapping the
8222: # libtool distribution, otherwise you forgot to ship ltmain.sh
8223: # with your package, and you will get complaints that there are
8224: # no rules to generate ltmain.sh.
8225: if test -f "$ltmain"; then
1.1 parser 8226: :
8227: else
1.10 paf 8228: # If there is no Makefile yet, we rely on a make rule to execute
8229: # `config.status --recheck' to rerun these tests and create the
8230: # libtool script then.
8231: test -f Makefile && make "$ltmain"
8232: fi
8233:
8234: if test -f "$ltmain"; then
8235: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8236: $rm -f "${ofile}T"
8237:
8238: echo creating $ofile
8239:
8240: # Now quote all the things that may contain metacharacters while being
8241: # careful not to overquote the AC_SUBSTed values. We take copies of the
8242: # variables and quote the copies for generation of the libtool script.
8243: for var in echo old_CC old_CFLAGS SED \
8244: AR AR_FLAGS CC LD LN_S NM SHELL \
8245: reload_flag reload_cmds wl \
8246: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8247: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8248: library_names_spec soname_spec \
8249: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8250: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8251: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8252: old_striplib striplib file_magic_cmd export_symbols_cmds \
8253: deplibs_check_method allow_undefined_flag no_undefined_flag \
8254: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8255: global_symbol_to_c_name_address \
8256: hardcode_libdir_flag_spec hardcode_libdir_separator \
8257: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8258: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8259:
8260: case $var in
8261: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8262: old_postinstall_cmds | old_postuninstall_cmds | \
8263: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8264: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8265: postinstall_cmds | postuninstall_cmds | \
8266: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8267: # Double-quote double-evaled strings.
8268: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8269: ;;
8270: *)
8271: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8272: ;;
8273: esac
8274: done
8275:
8276: cat <<__EOF__ > "${ofile}T"
8277: #! $SHELL
8278:
8279: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8280: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8281: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8282: #
8283: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8284: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8285: #
8286: # This program is free software; you can redistribute it and/or modify
8287: # it under the terms of the GNU General Public License as published by
8288: # the Free Software Foundation; either version 2 of the License, or
8289: # (at your option) any later version.
8290: #
8291: # This program is distributed in the hope that it will be useful, but
8292: # WITHOUT ANY WARRANTY; without even the implied warranty of
8293: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8294: # General Public License for more details.
8295: #
8296: # You should have received a copy of the GNU General Public License
8297: # along with this program; if not, write to the Free Software
8298: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8299: #
8300: # As a special exception to the GNU General Public License, if you
8301: # distribute this file as part of a program that contains a
8302: # configuration script generated by Autoconf, you may include it under
8303: # the same distribution terms that you use for the rest of that program.
8304:
8305: # A sed that does not truncate output.
8306: SED=$lt_SED
8307:
8308: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8309: Xsed="${SED} -e s/^X//"
8310:
8311: # The HP-UX ksh and POSIX shell print the target directory to stdout
8312: # if CDPATH is set.
8313: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8314:
8315: # ### BEGIN LIBTOOL CONFIG
8316:
8317: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8318:
8319: # Shell to use when invoking shell scripts.
8320: SHELL=$lt_SHELL
8321:
8322: # Whether or not to build shared libraries.
8323: build_libtool_libs=$enable_shared
8324:
8325: # Whether or not to build static libraries.
8326: build_old_libs=$enable_static
8327:
8328: # Whether or not to add -lc for building shared libraries.
8329: build_libtool_need_lc=$need_lc
8330:
8331: # Whether or not to optimize for fast installation.
8332: fast_install=$enable_fast_install
8333:
8334: # The host system.
8335: host_alias=$host_alias
8336: host=$host
8337:
8338: # An echo program that does not interpret backslashes.
8339: echo=$lt_echo
8340:
8341: # The archiver.
8342: AR=$lt_AR
8343: AR_FLAGS=$lt_AR_FLAGS
8344:
8345: # The default C compiler.
8346: CC=$lt_CC
8347:
8348: # Is the compiler the GNU C compiler?
8349: with_gcc=$GCC
8350:
8351: # The linker used to build libraries.
8352: LD=$lt_LD
8353:
8354: # Whether we need hard or soft links.
8355: LN_S=$lt_LN_S
8356:
8357: # A BSD-compatible nm program.
8358: NM=$lt_NM
8359:
8360: # A symbol stripping program
8361: STRIP=$STRIP
8362:
8363: # Used to examine libraries when file_magic_cmd begins "file"
8364: MAGIC_CMD=$MAGIC_CMD
8365:
8366: # Used on cygwin: DLL creation program.
8367: DLLTOOL="$DLLTOOL"
8368:
8369: # Used on cygwin: object dumper.
8370: OBJDUMP="$OBJDUMP"
8371:
8372: # Used on cygwin: assembler.
8373: AS="$AS"
8374:
8375: # The name of the directory that contains temporary libtool files.
8376: objdir=$objdir
8377:
8378: # How to create reloadable object files.
8379: reload_flag=$lt_reload_flag
8380: reload_cmds=$lt_reload_cmds
8381:
8382: # How to pass a linker flag through the compiler.
8383: wl=$lt_wl
8384:
8385: # Object file suffix (normally "o").
8386: objext="$ac_objext"
8387:
8388: # Old archive suffix (normally "a").
8389: libext="$libext"
8390:
8391: # Executable file suffix (normally "").
8392: exeext="$exeext"
8393:
8394: # Additional compiler flags for building library objects.
8395: pic_flag=$lt_pic_flag
8396: pic_mode=$pic_mode
8397:
8398: # Does compiler simultaneously support -c and -o options?
8399: compiler_c_o=$lt_compiler_c_o
8400:
8401: # Can we write directly to a .lo ?
8402: compiler_o_lo=$lt_compiler_o_lo
8403:
8404: # Must we lock files when doing compilation ?
8405: need_locks=$lt_need_locks
8406:
8407: # Do we need the lib prefix for modules?
8408: need_lib_prefix=$need_lib_prefix
8409:
8410: # Do we need a version for libraries?
8411: need_version=$need_version
8412:
8413: # Whether dlopen is supported.
8414: dlopen_support=$enable_dlopen
8415:
8416: # Whether dlopen of programs is supported.
8417: dlopen_self=$enable_dlopen_self
8418:
8419: # Whether dlopen of statically linked programs is supported.
8420: dlopen_self_static=$enable_dlopen_self_static
8421:
8422: # Compiler flag to prevent dynamic linking.
8423: link_static_flag=$lt_link_static_flag
8424:
8425: # Compiler flag to turn off builtin functions.
8426: no_builtin_flag=$lt_no_builtin_flag
8427:
8428: # Compiler flag to allow reflexive dlopens.
8429: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8430:
8431: # Compiler flag to generate shared objects directly from archives.
8432: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8433:
8434: # Compiler flag to generate thread-safe objects.
8435: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8436:
8437: # Library versioning type.
8438: version_type=$version_type
8439:
8440: # Format of library name prefix.
8441: libname_spec=$lt_libname_spec
8442:
8443: # List of archive names. First name is the real one, the rest are links.
8444: # The last name is the one that the linker finds with -lNAME.
8445: library_names_spec=$lt_library_names_spec
8446:
8447: # The coded name of the library, if different from the real name.
8448: soname_spec=$lt_soname_spec
8449:
8450: # Commands used to build and install an old-style archive.
8451: RANLIB=$lt_RANLIB
8452: old_archive_cmds=$lt_old_archive_cmds
8453: old_postinstall_cmds=$lt_old_postinstall_cmds
8454: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8455:
8456: # Create an old-style archive from a shared archive.
8457: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8458:
8459: # Create a temporary old-style archive to link instead of a shared archive.
8460: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8461:
8462: # Commands used to build and install a shared archive.
8463: archive_cmds=$lt_archive_cmds
8464: archive_expsym_cmds=$lt_archive_expsym_cmds
8465: postinstall_cmds=$lt_postinstall_cmds
8466: postuninstall_cmds=$lt_postuninstall_cmds
8467:
8468: # Commands to strip libraries.
8469: old_striplib=$lt_old_striplib
8470: striplib=$lt_striplib
8471:
8472: # Method to check whether dependent libraries are shared objects.
8473: deplibs_check_method=$lt_deplibs_check_method
8474:
8475: # Command to use when deplibs_check_method == file_magic.
8476: file_magic_cmd=$lt_file_magic_cmd
8477:
8478: # Flag that allows shared libraries with undefined symbols to be built.
8479: allow_undefined_flag=$lt_allow_undefined_flag
8480:
8481: # Flag that forces no undefined symbols.
8482: no_undefined_flag=$lt_no_undefined_flag
8483:
8484: # Commands used to finish a libtool library installation in a directory.
8485: finish_cmds=$lt_finish_cmds
8486:
8487: # Same as above, but a single script fragment to be evaled but not shown.
8488: finish_eval=$lt_finish_eval
8489:
8490: # Take the output of nm and produce a listing of raw symbols and C names.
8491: global_symbol_pipe=$lt_global_symbol_pipe
8492:
8493: # Transform the output of nm in a proper C declaration
8494: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8495:
8496: # Transform the output of nm in a C name address pair
8497: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8498:
8499: # This is the shared library runtime path variable.
8500: runpath_var=$runpath_var
8501:
8502: # This is the shared library path variable.
8503: shlibpath_var=$shlibpath_var
8504:
8505: # Is shlibpath searched before the hard-coded library search path?
8506: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8507:
8508: # How to hardcode a shared library path into an executable.
8509: hardcode_action=$hardcode_action
8510:
8511: # Whether we should hardcode library paths into libraries.
8512: hardcode_into_libs=$hardcode_into_libs
8513:
8514: # Flag to hardcode \$libdir into a binary during linking.
8515: # This must work even if \$libdir does not exist.
8516: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8517:
8518: # Whether we need a single -rpath flag with a separated argument.
8519: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8520:
8521: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8522: # resulting binary.
8523: hardcode_direct=$hardcode_direct
8524:
8525: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8526: # resulting binary.
8527: hardcode_minus_L=$hardcode_minus_L
8528:
8529: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8530: # the resulting binary.
8531: hardcode_shlibpath_var=$hardcode_shlibpath_var
8532:
8533: # Variables whose values should be saved in libtool wrapper scripts and
8534: # restored at relink time.
8535: variables_saved_for_relink="$variables_saved_for_relink"
8536:
8537: # Whether libtool must link a program against all its dependency libraries.
8538: link_all_deplibs=$link_all_deplibs
8539:
8540: # Compile-time system search path for libraries
8541: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8542:
8543: # Run-time system search path for libraries
8544: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8545:
8546: # Fix the shell variable \$srcfile for the compiler.
8547: fix_srcfile_path="$fix_srcfile_path"
8548:
8549: # Set to yes if exported symbols are required.
8550: always_export_symbols=$always_export_symbols
8551:
8552: # The commands to list exported symbols.
8553: export_symbols_cmds=$lt_export_symbols_cmds
8554:
8555: # The commands to extract the exported symbol list from a shared archive.
8556: extract_expsyms_cmds=$lt_extract_expsyms_cmds
8557:
8558: # Symbols that should not be listed in the preloaded symbols.
8559: exclude_expsyms=$lt_exclude_expsyms
8560:
8561: # Symbols that must always be exported.
8562: include_expsyms=$lt_include_expsyms
8563:
8564: # ### END LIBTOOL CONFIG
8565:
8566: __EOF__
8567:
8568: case $host_os in
8569: aix3*)
8570: cat <<\EOF >> "${ofile}T"
8571:
8572: # AIX sometimes has problems with the GCC collect2 program. For some
8573: # reason, if we set the COLLECT_NAMES environment variable, the problems
8574: # vanish in a puff of smoke.
8575: if test "X${COLLECT_NAMES+set}" != Xset; then
8576: COLLECT_NAMES=
8577: export COLLECT_NAMES
8578: fi
8579: EOF
8580: ;;
8581: esac
8582:
8583: case $host_os in
8584: cygwin* | mingw* | pw32* | os2*)
8585: cat <<'EOF' >> "${ofile}T"
8586: # This is a source program that is used to create dlls on Windows
8587: # Don't remove nor modify the starting and closing comments
8588: # /* ltdll.c starts here */
8589: # #define WIN32_LEAN_AND_MEAN
8590: # #include <windows.h>
8591: # #undef WIN32_LEAN_AND_MEAN
8592: # #include <stdio.h>
8593: #
8594: # #ifndef __CYGWIN__
8595: # # ifdef __CYGWIN32__
8596: # # define __CYGWIN__ __CYGWIN32__
8597: # # endif
8598: # #endif
8599: #
8600: # #ifdef __cplusplus
8601: # extern "C" {
8602: # #endif
8603: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8604: # #ifdef __cplusplus
8605: # }
8606: # #endif
8607: #
8608: # #ifdef __CYGWIN__
8609: # #include <cygwin/cygwin_dll.h>
8610: # DECLARE_CYGWIN_DLL( DllMain );
8611: # #endif
8612: # HINSTANCE __hDllInstance_base;
8613: #
8614: # BOOL APIENTRY
8615: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8616: # {
8617: # __hDllInstance_base = hInst;
8618: # return TRUE;
8619: # }
8620: # /* ltdll.c ends here */
8621: # This is a source program that is used to create import libraries
8622: # on Windows for dlls which lack them. Don't remove nor modify the
8623: # starting and closing comments
8624: # /* impgen.c starts here */
8625: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8626: #
8627: # This file is part of GNU libtool.
8628: #
8629: # This program is free software; you can redistribute it and/or modify
8630: # it under the terms of the GNU General Public License as published by
8631: # the Free Software Foundation; either version 2 of the License, or
8632: # (at your option) any later version.
8633: #
8634: # This program is distributed in the hope that it will be useful,
8635: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8636: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8637: # GNU General Public License for more details.
8638: #
8639: # You should have received a copy of the GNU General Public License
8640: # along with this program; if not, write to the Free Software
8641: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8642: # */
8643: #
8644: # #include <stdio.h> /* for printf() */
8645: # #include <unistd.h> /* for open(), lseek(), read() */
8646: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8647: # #include <string.h> /* for strdup() */
8648: #
8649: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8650: # #ifndef O_BINARY
8651: # #define O_BINARY 0
8652: # #endif
8653: #
8654: # static unsigned int
8655: # pe_get16 (fd, offset)
8656: # int fd;
8657: # int offset;
8658: # {
8659: # unsigned char b[2];
8660: # lseek (fd, offset, SEEK_SET);
8661: # read (fd, b, 2);
8662: # return b[0] + (b[1]<<8);
8663: # }
8664: #
8665: # static unsigned int
8666: # pe_get32 (fd, offset)
8667: # int fd;
8668: # int offset;
8669: # {
8670: # unsigned char b[4];
8671: # lseek (fd, offset, SEEK_SET);
8672: # read (fd, b, 4);
8673: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8674: # }
8675: #
8676: # static unsigned int
8677: # pe_as32 (ptr)
8678: # void *ptr;
8679: # {
8680: # unsigned char *b = ptr;
8681: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8682: # }
8683: #
8684: # int
8685: # main (argc, argv)
8686: # int argc;
8687: # char *argv[];
8688: # {
8689: # int dll;
8690: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8691: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8692: # unsigned long name_rvas, nexp;
8693: # unsigned char *expdata, *erva;
8694: # char *filename, *dll_name;
8695: #
8696: # filename = argv[1];
8697: #
8698: # dll = open(filename, O_RDONLY|O_BINARY);
8699: # if (dll < 1)
8700: # return 1;
8701: #
8702: # dll_name = filename;
8703: #
8704: # for (i=0; filename[i]; i++)
8705: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8706: # dll_name = filename + i +1;
8707: #
8708: # pe_header_offset = pe_get32 (dll, 0x3c);
8709: # opthdr_ofs = pe_header_offset + 4 + 20;
8710: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8711: #
8712: # if (num_entries < 1) /* no exports */
8713: # return 1;
8714: #
8715: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8716: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8717: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8718: # secptr = (pe_header_offset + 4 + 20 +
8719: # pe_get16 (dll, pe_header_offset + 4 + 16));
8720: #
8721: # expptr = 0;
8722: # for (i = 0; i < nsections; i++)
8723: # {
8724: # char sname[8];
8725: # unsigned long secptr1 = secptr + 40 * i;
8726: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8727: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8728: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8729: # lseek(dll, secptr1, SEEK_SET);
8730: # read(dll, sname, 8);
8731: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8732: # {
8733: # expptr = fptr + (export_rva - vaddr);
8734: # if (export_rva + export_size > vaddr + vsize)
8735: # export_size = vsize - (export_rva - vaddr);
8736: # break;
8737: # }
8738: # }
8739: #
8740: # expdata = (unsigned char*)malloc(export_size);
8741: # lseek (dll, expptr, SEEK_SET);
8742: # read (dll, expdata, export_size);
8743: # erva = expdata - export_rva;
8744: #
8745: # nexp = pe_as32 (expdata+24);
8746: # name_rvas = pe_as32 (expdata+32);
8747: #
8748: # printf ("EXPORTS\n");
8749: # for (i = 0; i<nexp; i++)
8750: # {
8751: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8752: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8753: # }
8754: #
8755: # return 0;
8756: # }
8757: # /* impgen.c ends here */
8758:
8759: EOF
8760: ;;
8761: esac
8762:
8763: # We use sed instead of cat because bash on DJGPP gets confused if
8764: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8765: # text mode, it properly converts lines to CR/LF. This bash problem
8766: # is reportedly fixed, but why not run on old versions too?
8767: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8768:
8769: mv -f "${ofile}T" "$ofile" || \
8770: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8771: chmod +x "$ofile"
8772: fi
1.16 paf 8773: ##
8774: ## END FIXME
1.10 paf 8775:
8776:
8777:
8778:
8779:
8780: # This can be used to rebuild libtool when needed
8781: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8782:
8783: # Always use rootdir libtool.
8784: LIBTOOL="$ac_aux_dir/libtool"
8785:
8786: # Prevent multiple expansion
8787:
8788:
8789:
8790:
8791: subdirs="$subdirs libltdl"
8792:
8793:
8794:
8795:
8796:
8797:
8798:
8799:
1.13 paf 8800:
1.10 paf 8801: for ac_header in stdio.h \
8802: stdlib.h \
8803: string.h \
1.13 paf 8804: setjmp.h \
8805: ctype.h
1.10 paf 8806:
8807: do
8808: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8809: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8810: echo "$as_me:$LINENO: checking for $ac_header" >&5
8811: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8812: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813: echo $ECHO_N "(cached) $ECHO_C" >&6
8814: fi
8815: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8816: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8817: else
8818: # Is the header compilable?
8819: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8820: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8821: cat >conftest.$ac_ext <<_ACEOF
8822: /* confdefs.h. */
8823: _ACEOF
8824: cat confdefs.h >>conftest.$ac_ext
8825: cat >>conftest.$ac_ext <<_ACEOF
8826: /* end confdefs.h. */
8827: $ac_includes_default
8828: #include <$ac_header>
8829: _ACEOF
8830: rm -f conftest.$ac_objext
8831: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 8832: (eval $ac_compile) 2>conftest.er1
1.10 paf 8833: ac_status=$?
1.16 paf 8834: grep -v '^ *+' conftest.er1 >conftest.err
8835: rm -f conftest.er1
8836: cat conftest.err >&5
1.10 paf 8837: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838: (exit $ac_status); } &&
1.16 paf 8839: { ac_try='test -z "$ac_c_werror_flag"
8840: || test ! -s conftest.err'
8841: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842: (eval $ac_try) 2>&5
8843: ac_status=$?
8844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845: (exit $ac_status); }; } &&
8846: { ac_try='test -s conftest.$ac_objext'
1.10 paf 8847: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848: (eval $ac_try) 2>&5
8849: ac_status=$?
8850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851: (exit $ac_status); }; }; then
8852: ac_header_compiler=yes
8853: else
8854: echo "$as_me: failed program was:" >&5
8855: sed 's/^/| /' conftest.$ac_ext >&5
8856:
8857: ac_header_compiler=no
8858: fi
1.16 paf 8859: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 8860: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8861: echo "${ECHO_T}$ac_header_compiler" >&6
8862:
8863: # Is the header present?
8864: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8865: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8866: cat >conftest.$ac_ext <<_ACEOF
8867: /* confdefs.h. */
8868: _ACEOF
8869: cat confdefs.h >>conftest.$ac_ext
8870: cat >>conftest.$ac_ext <<_ACEOF
8871: /* end confdefs.h. */
8872: #include <$ac_header>
8873: _ACEOF
8874: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8875: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8876: ac_status=$?
8877: grep -v '^ *+' conftest.er1 >conftest.err
8878: rm -f conftest.er1
8879: cat conftest.err >&5
8880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881: (exit $ac_status); } >/dev/null; then
8882: if test -s conftest.err; then
1.15 paf 8883: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 8884: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 8885: else
8886: ac_cpp_err=
8887: fi
8888: else
8889: ac_cpp_err=yes
8890: fi
8891: if test -z "$ac_cpp_err"; then
8892: ac_header_preproc=yes
8893: else
8894: echo "$as_me: failed program was:" >&5
8895: sed 's/^/| /' conftest.$ac_ext >&5
8896:
8897: ac_header_preproc=no
8898: fi
8899: rm -f conftest.err conftest.$ac_ext
8900: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8901: echo "${ECHO_T}$ac_header_preproc" >&6
8902:
8903: # So? What about this header?
1.16 paf 8904: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8905: yes:no: )
1.10 paf 8906: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8907: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.16 paf 8908: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8909: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8910: ac_header_preproc=yes
1.10 paf 8911: ;;
1.16 paf 8912: no:yes:* )
1.10 paf 8913: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8914: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.16 paf 8915: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8916: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8917: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8918: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8919: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8920: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.10 paf 8921: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8922: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.16 paf 8923: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8924: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.10 paf 8925: (
8926: cat <<\_ASBOX
1.16 paf 8927: ## ------------------------------------------ ##
8928: ## Report this to the AC_PACKAGE_NAME lists. ##
8929: ## ------------------------------------------ ##
1.10 paf 8930: _ASBOX
8931: ) |
8932: sed "s/^/$as_me: WARNING: /" >&2
8933: ;;
8934: esac
8935: echo "$as_me:$LINENO: checking for $ac_header" >&5
8936: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8937: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8938: echo $ECHO_N "(cached) $ECHO_C" >&6
8939: else
1.16 paf 8940: eval "$as_ac_Header=\$ac_header_preproc"
1.1 parser 8941: fi
1.10 paf 8942: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8943: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8944:
1.1 parser 8945: fi
1.10 paf 8946: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8947: cat >>confdefs.h <<_ACEOF
8948: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8949: _ACEOF
1.1 parser 8950:
8951: fi
8952:
1.10 paf 8953: done
8954:
1.1 parser 8955:
8956:
1.10 paf 8957: echo "$as_me:$LINENO: checking for size_t" >&5
8958: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8959: if test "${ac_cv_type_size_t+set}" = set; then
8960: echo $ECHO_N "(cached) $ECHO_C" >&6
8961: else
8962: cat >conftest.$ac_ext <<_ACEOF
8963: /* confdefs.h. */
8964: _ACEOF
8965: cat confdefs.h >>conftest.$ac_ext
8966: cat >>conftest.$ac_ext <<_ACEOF
8967: /* end confdefs.h. */
8968: $ac_includes_default
8969: int
8970: main ()
8971: {
8972: if ((size_t *) 0)
8973: return 0;
8974: if (sizeof (size_t))
8975: return 0;
8976: ;
8977: return 0;
8978: }
8979: _ACEOF
8980: rm -f conftest.$ac_objext
8981: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 8982: (eval $ac_compile) 2>conftest.er1
1.10 paf 8983: ac_status=$?
1.16 paf 8984: grep -v '^ *+' conftest.er1 >conftest.err
8985: rm -f conftest.er1
8986: cat conftest.err >&5
1.10 paf 8987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988: (exit $ac_status); } &&
1.16 paf 8989: { ac_try='test -z "$ac_c_werror_flag"
8990: || test ! -s conftest.err'
8991: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992: (eval $ac_try) 2>&5
8993: ac_status=$?
8994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995: (exit $ac_status); }; } &&
8996: { ac_try='test -s conftest.$ac_objext'
1.10 paf 8997: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998: (eval $ac_try) 2>&5
8999: ac_status=$?
9000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001: (exit $ac_status); }; }; then
1.1 parser 9002: ac_cv_type_size_t=yes
9003: else
1.10 paf 9004: echo "$as_me: failed program was:" >&5
9005: sed 's/^/| /' conftest.$ac_ext >&5
9006:
9007: ac_cv_type_size_t=no
9008: fi
1.16 paf 9009: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 9010: fi
1.10 paf 9011: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9012: echo "${ECHO_T}$ac_cv_type_size_t" >&6
9013: if test $ac_cv_type_size_t = yes; then
9014: :
9015: else
1.1 parser 9016:
1.10 paf 9017: cat >>confdefs.h <<_ACEOF
1.1 parser 9018: #define size_t unsigned
1.10 paf 9019: _ACEOF
1.1 parser 9020:
9021: fi
9022:
9023:
9024:
9025:
1.10 paf 9026: ac_config_files="$ac_config_files Makefile"
9027: cat >confcache <<\_ACEOF
1.1 parser 9028: # This file is a shell script that caches the results of configure
9029: # tests run on this system so they can be shared between configure
1.10 paf 9030: # scripts and configure runs, see configure's option --config-cache.
9031: # It is not useful on other systems. If it contains results you don't
9032: # want to keep, you may remove or edit it.
1.1 parser 9033: #
1.10 paf 9034: # config.status only pays attention to the cache file if you give it
9035: # the --recheck option to rerun configure.
1.1 parser 9036: #
1.10 paf 9037: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9038: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9039: # following values.
9040:
9041: _ACEOF
9042:
1.1 parser 9043: # The following way of writing the cache mishandles newlines in values,
9044: # but we know of no workaround that is simple, portable, and efficient.
9045: # So, don't put newlines in cache variables' values.
9046: # Ultrix sh set writes to stderr and can't be redirected directly,
9047: # and sets the high bit in the cache file unless we assign to the vars.
1.10 paf 9048: {
9049: (set) 2>&1 |
9050: case `(ac_space=' '; set | grep ac_space) 2>&1` in
9051: *ac_space=\ *)
9052: # `set' does not quote correctly, so add quotes (double-quote
9053: # substitution turns \\\\ into \\, and sed turns \\ into \).
9054: sed -n \
1.16 paf 9055: "s/'/'\\\\''/g;
9056: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.10 paf 9057: ;;
9058: *)
9059: # `set' quotes correctly as required by POSIX, so do not add quotes.
9060: sed -n \
1.16 paf 9061: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.10 paf 9062: ;;
9063: esac;
9064: } |
9065: sed '
9066: t clear
9067: : clear
9068: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9069: t end
9070: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9071: : end' >>confcache
9072: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 9073: if test -w $cache_file; then
1.10 paf 9074: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9075: cat confcache >$cache_file
1.1 parser 9076: else
9077: echo "not updating unwritable cache $cache_file"
9078: fi
9079: fi
9080: rm -f confcache
9081:
9082: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9083: # Let make expand exec_prefix.
9084: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9085:
1.10 paf 9086: # VPATH may cause trouble with some makes, so we remove $(srcdir),
9087: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9088: # trailing colons and then remove the whole line if VPATH becomes empty
9089: # (actually we leave an empty line to preserve line numbers).
1.1 parser 9090: if test "x$srcdir" = x.; then
1.16 paf 9091: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.10 paf 9092: s/:*\$(srcdir):*/:/;
9093: s/:*\${srcdir}:*/:/;
9094: s/:*@srcdir@:*/:/;
1.16 paf 9095: s/^\([^=]*=[ ]*\):*/\1/;
1.10 paf 9096: s/:*$//;
1.16 paf 9097: s/^[^=]*=[ ]*$//;
1.10 paf 9098: }'
1.1 parser 9099: fi
9100:
1.10 paf 9101: DEFS=-DHAVE_CONFIG_H
9102:
9103: ac_libobjs=
9104: ac_ltlibobjs=
9105: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9106: # 1. Remove the extension, and $U if already installed.
9107: ac_i=`echo "$ac_i" |
1.16 paf 9108: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.10 paf 9109: # 2. Add them.
9110: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9111: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9112: done
9113: LIBOBJS=$ac_libobjs
9114:
9115: LTLIBOBJS=$ac_ltlibobjs
9116:
1.1 parser 9117:
1.10 paf 9118: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9119: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9120: Usually this means the macro was only invoked conditionally." >&5
9121: echo "$as_me: error: conditional \"AMDEP\" was never defined.
9122: Usually this means the macro was only invoked conditionally." >&2;}
9123: { (exit 1); exit 1; }; }
9124: fi
9125: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9126: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9127: Usually this means the macro was only invoked conditionally." >&5
9128: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9129: Usually this means the macro was only invoked conditionally." >&2;}
9130: { (exit 1); exit 1; }; }
9131: fi
9132: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9133: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9134: Usually this means the macro was only invoked conditionally." >&5
9135: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9136: Usually this means the macro was only invoked conditionally." >&2;}
9137: { (exit 1); exit 1; }; }
9138: fi
1.1 parser 9139:
9140: : ${CONFIG_STATUS=./config.status}
1.10 paf 9141: ac_clean_files_save=$ac_clean_files
9142: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9143: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9144: echo "$as_me: creating $CONFIG_STATUS" >&6;}
9145: cat >$CONFIG_STATUS <<_ACEOF
9146: #! $SHELL
9147: # Generated by $as_me.
9148: # Run this file to recreate the current configuration.
9149: # Compiler output produced by configure, useful for debugging
9150: # configure, is in config.log if it exists.
9151:
9152: debug=false
9153: ac_cs_recheck=false
9154: ac_cs_silent=false
9155: SHELL=\${CONFIG_SHELL-$SHELL}
9156: _ACEOF
9157:
9158: cat >>$CONFIG_STATUS <<\_ACEOF
9159: ## --------------------- ##
9160: ## M4sh Initialization. ##
9161: ## --------------------- ##
9162:
9163: # Be Bourne compatible
9164: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9165: emulate sh
9166: NULLCMD=:
9167: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9168: # is contrary to our usage. Disable this feature.
9169: alias -g '${1+"$@"}'='"$@"'
9170: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9171: set -o posix
9172: fi
1.16 paf 9173: DUALCASE=1; export DUALCASE # for MKS sh
1.10 paf 9174:
9175: # Support unset when possible.
1.16 paf 9176: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.10 paf 9177: as_unset=unset
9178: else
9179: as_unset=false
9180: fi
9181:
9182:
9183: # Work around bugs in pre-3.0 UWIN ksh.
9184: $as_unset ENV MAIL MAILPATH
9185: PS1='$ '
9186: PS2='> '
9187: PS4='+ '
9188:
9189: # NLS nuisances.
9190: for as_var in \
9191: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9192: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9193: LC_TELEPHONE LC_TIME
9194: do
1.16 paf 9195: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.10 paf 9196: eval $as_var=C; export $as_var
9197: else
9198: $as_unset $as_var
9199: fi
9200: done
9201:
9202: # Required to use basename.
9203: if expr a : '\(a\)' >/dev/null 2>&1; then
9204: as_expr=expr
9205: else
9206: as_expr=false
9207: fi
9208:
9209: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9210: as_basename=basename
9211: else
9212: as_basename=false
9213: fi
9214:
9215:
9216: # Name of the executable.
9217: as_me=`$as_basename "$0" ||
9218: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9219: X"$0" : 'X\(//\)$' \| \
9220: X"$0" : 'X\(/\)$' \| \
9221: . : '\(.\)' 2>/dev/null ||
9222: echo X/"$0" |
9223: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9224: /^X\/\(\/\/\)$/{ s//\1/; q; }
9225: /^X\/\(\/\).*/{ s//\1/; q; }
9226: s/.*/./; q'`
9227:
9228:
9229: # PATH needs CR, and LINENO needs CR and PATH.
9230: # Avoid depending upon Character Ranges.
9231: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9232: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9233: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9234: as_cr_digits='0123456789'
9235: as_cr_alnum=$as_cr_Letters$as_cr_digits
9236:
9237: # The user is always right.
9238: if test "${PATH_SEPARATOR+set}" != set; then
9239: echo "#! /bin/sh" >conf$$.sh
9240: echo "exit 0" >>conf$$.sh
9241: chmod +x conf$$.sh
9242: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9243: PATH_SEPARATOR=';'
9244: else
9245: PATH_SEPARATOR=:
9246: fi
9247: rm -f conf$$.sh
9248: fi
9249:
9250:
9251: as_lineno_1=$LINENO
9252: as_lineno_2=$LINENO
9253: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9254: test "x$as_lineno_1" != "x$as_lineno_2" &&
9255: test "x$as_lineno_3" = "x$as_lineno_2" || {
9256: # Find who we are. Look in the path if we contain no path at all
9257: # relative or not.
9258: case $0 in
9259: *[\\/]* ) as_myself=$0 ;;
9260: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261: for as_dir in $PATH
9262: do
9263: IFS=$as_save_IFS
9264: test -z "$as_dir" && as_dir=.
9265: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9266: done
9267:
9268: ;;
9269: esac
9270: # We did not find ourselves, most probably we were run as `sh COMMAND'
9271: # in which case we are not to be found in the path.
9272: if test "x$as_myself" = x; then
9273: as_myself=$0
9274: fi
9275: if test ! -f "$as_myself"; then
9276: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9277: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9278: { (exit 1); exit 1; }; }
9279: fi
9280: case $CONFIG_SHELL in
9281: '')
9282: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9284: do
9285: IFS=$as_save_IFS
9286: test -z "$as_dir" && as_dir=.
9287: for as_base in sh bash ksh sh5; do
9288: case $as_dir in
9289: /*)
9290: if ("$as_dir/$as_base" -c '
9291: as_lineno_1=$LINENO
9292: as_lineno_2=$LINENO
9293: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9294: test "x$as_lineno_1" != "x$as_lineno_2" &&
9295: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9296: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9297: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9298: CONFIG_SHELL=$as_dir/$as_base
9299: export CONFIG_SHELL
9300: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9301: fi;;
9302: esac
9303: done
9304: done
9305: ;;
9306: esac
9307:
9308: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9309: # uniformly replaced by the line number. The first 'sed' inserts a
9310: # line-number line before each line; the second 'sed' does the real
9311: # work. The second script uses 'N' to pair each line-number line
9312: # with the numbered line, and appends trailing '-' during
9313: # substitution so that $LINENO is not a special case at line end.
9314: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9315: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9316: sed '=' <$as_myself |
9317: sed '
9318: N
9319: s,$,-,
9320: : loop
9321: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9322: t loop
9323: s,-$,,
9324: s,^['$as_cr_digits']*\n,,
9325: ' >$as_me.lineno &&
9326: chmod +x $as_me.lineno ||
9327: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9328: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9329: { (exit 1); exit 1; }; }
9330:
9331: # Don't try to exec as it changes $[0], causing all sort of problems
9332: # (the dirname of $[0] is not the place where we might find the
9333: # original and so on. Autoconf is especially sensible to this).
9334: . ./$as_me.lineno
9335: # Exit status is that of the last command.
9336: exit
9337: }
9338:
9339:
9340: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9341: *c*,-n*) ECHO_N= ECHO_C='
9342: ' ECHO_T=' ' ;;
9343: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9344: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9345: esac
9346:
9347: if expr a : '\(a\)' >/dev/null 2>&1; then
9348: as_expr=expr
9349: else
9350: as_expr=false
9351: fi
9352:
9353: rm -f conf$$ conf$$.exe conf$$.file
9354: echo >conf$$.file
9355: if ln -s conf$$.file conf$$ 2>/dev/null; then
9356: # We could just check for DJGPP; but this test a) works b) is more generic
9357: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9358: if test -f conf$$.exe; then
9359: # Don't use ln at all; we don't have any links
9360: as_ln_s='cp -p'
9361: else
9362: as_ln_s='ln -s'
9363: fi
9364: elif ln conf$$.file conf$$ 2>/dev/null; then
9365: as_ln_s=ln
9366: else
9367: as_ln_s='cp -p'
9368: fi
9369: rm -f conf$$ conf$$.exe conf$$.file
9370:
9371: if mkdir -p . 2>/dev/null; then
9372: as_mkdir_p=:
9373: else
1.16 paf 9374: test -d ./-p && rmdir ./-p
1.10 paf 9375: as_mkdir_p=false
9376: fi
9377:
9378: as_executable_p="test -f"
9379:
9380: # Sed expression to map a string onto a valid CPP name.
1.16 paf 9381: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 9382:
9383: # Sed expression to map a string onto a valid variable name.
1.16 paf 9384: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 9385:
9386:
9387: # IFS
9388: # We need space, tab and new line, in precisely that order.
9389: as_nl='
9390: '
9391: IFS=" $as_nl"
9392:
9393: # CDPATH.
9394: $as_unset CDPATH
9395:
9396: exec 6>&1
9397:
9398: # Open the log real soon, to keep \$[0] and so on meaningful, and to
9399: # report actual input values of CONFIG_FILES etc. instead of their
9400: # values after options handling. Logging --version etc. is OK.
9401: exec 5>>config.log
9402: {
9403: echo
9404: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9405: ## Running $as_me. ##
9406: _ASBOX
9407: } >&5
9408: cat >&5 <<_CSEOF
9409:
9410: This file was extended by $as_me, which was
1.16 paf 9411: generated by GNU Autoconf 2.59. Invocation command line was
1.10 paf 9412:
9413: CONFIG_FILES = $CONFIG_FILES
9414: CONFIG_HEADERS = $CONFIG_HEADERS
9415: CONFIG_LINKS = $CONFIG_LINKS
9416: CONFIG_COMMANDS = $CONFIG_COMMANDS
9417: $ $0 $@
9418:
9419: _CSEOF
9420: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9421: echo >&5
9422: _ACEOF
9423:
9424: # Files that config.status was made for.
9425: if test -n "$ac_config_files"; then
9426: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9427: fi
9428:
9429: if test -n "$ac_config_headers"; then
9430: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9431: fi
9432:
9433: if test -n "$ac_config_links"; then
9434: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9435: fi
9436:
9437: if test -n "$ac_config_commands"; then
9438: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9439: fi
9440:
9441: cat >>$CONFIG_STATUS <<\_ACEOF
9442:
9443: ac_cs_usage="\
9444: \`$as_me' instantiates files from templates according to the
9445: current configuration.
9446:
9447: Usage: $0 [OPTIONS] [FILE]...
9448:
9449: -h, --help print this help, then exit
9450: -V, --version print version number, then exit
9451: -q, --quiet do not print progress messages
9452: -d, --debug don't remove temporary files
9453: --recheck update $as_me by reconfiguring in the same conditions
9454: --file=FILE[:TEMPLATE]
1.16 paf 9455: instantiate the configuration file FILE
1.10 paf 9456: --header=FILE[:TEMPLATE]
1.16 paf 9457: instantiate the configuration header FILE
1.10 paf 9458:
9459: Configuration files:
9460: $config_files
9461:
9462: Configuration headers:
9463: $config_headers
9464:
9465: Configuration commands:
9466: $config_commands
9467:
9468: Report bugs to <bug-autoconf@gnu.org>."
9469: _ACEOF
9470:
9471: cat >>$CONFIG_STATUS <<_ACEOF
9472: ac_cs_version="\\
9473: config.status
1.16 paf 9474: configured by $0, generated by GNU Autoconf 2.59,
1.10 paf 9475: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9476:
1.16 paf 9477: Copyright (C) 2003 Free Software Foundation, Inc.
1.10 paf 9478: This config.status script is free software; the Free Software Foundation
9479: gives unlimited permission to copy, distribute and modify it."
9480: srcdir=$srcdir
9481: INSTALL="$INSTALL"
9482: _ACEOF
9483:
9484: cat >>$CONFIG_STATUS <<\_ACEOF
9485: # If no file are specified by the user, then we need to provide default
9486: # value. By we need to know if files were specified by the user.
9487: ac_need_defaults=:
9488: while test $# != 0
9489: do
9490: case $1 in
9491: --*=*)
9492: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9493: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9494: ac_shift=:
9495: ;;
9496: -*)
9497: ac_option=$1
9498: ac_optarg=$2
9499: ac_shift=shift
9500: ;;
9501: *) # This is not an option, so the user has probably given explicit
9502: # arguments.
9503: ac_option=$1
9504: ac_need_defaults=false;;
9505: esac
9506:
9507: case $ac_option in
9508: # Handling of the options.
9509: _ACEOF
9510: cat >>$CONFIG_STATUS <<\_ACEOF
9511: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9512: ac_cs_recheck=: ;;
9513: --version | --vers* | -V )
9514: echo "$ac_cs_version"; exit 0 ;;
9515: --he | --h)
9516: # Conflict between --help and --header
9517: { { echo "$as_me:$LINENO: error: ambiguous option: $1
9518: Try \`$0 --help' for more information." >&5
9519: echo "$as_me: error: ambiguous option: $1
9520: Try \`$0 --help' for more information." >&2;}
9521: { (exit 1); exit 1; }; };;
9522: --help | --hel | -h )
9523: echo "$ac_cs_usage"; exit 0 ;;
9524: --debug | --d* | -d )
9525: debug=: ;;
9526: --file | --fil | --fi | --f )
9527: $ac_shift
9528: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9529: ac_need_defaults=false;;
9530: --header | --heade | --head | --hea )
9531: $ac_shift
9532: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9533: ac_need_defaults=false;;
9534: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9535: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9536: ac_cs_silent=: ;;
9537:
9538: # This is an error.
9539: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9540: Try \`$0 --help' for more information." >&5
9541: echo "$as_me: error: unrecognized option: $1
9542: Try \`$0 --help' for more information." >&2;}
9543: { (exit 1); exit 1; }; } ;;
9544:
9545: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9546:
1.10 paf 9547: esac
9548: shift
9549: done
9550:
9551: ac_configure_extra_args=
9552:
9553: if $ac_cs_silent; then
9554: exec 6>/dev/null
9555: ac_configure_extra_args="$ac_configure_extra_args --silent"
9556: fi
9557:
9558: _ACEOF
9559: cat >>$CONFIG_STATUS <<_ACEOF
9560: if \$ac_cs_recheck; then
9561: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9562: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9563: fi
9564:
9565: _ACEOF
9566:
9567: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9568: #
1.10 paf 9569: # INIT-COMMANDS section.
1.1 parser 9570: #
9571:
1.10 paf 9572: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9573:
9574: _ACEOF
9575:
9576:
9577:
9578: cat >>$CONFIG_STATUS <<\_ACEOF
9579: for ac_config_target in $ac_config_targets
1.1 parser 9580: do
1.10 paf 9581: case "$ac_config_target" in
9582: # Handling of arguments.
9583: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9584: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9585: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
9586: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9587: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9588: { (exit 1); exit 1; }; };;
1.1 parser 9589: esac
9590: done
9591:
1.10 paf 9592: # If the user did not use the arguments to specify the items to instantiate,
9593: # then the envvar interface is used. Set only those that are not.
9594: # We use the long form for the default assignment because of an extremely
9595: # bizarre bug on SunOS 4.1.3.
9596: if $ac_need_defaults; then
9597: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9598: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9599: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9600: fi
9601:
9602: # Have a temporary directory for convenience. Make it in the build tree
9603: # simply because there is no reason to put it here, and in addition,
9604: # creating and moving files from /tmp can sometimes cause problems.
9605: # Create a temporary directory, and hook for its removal unless debugging.
9606: $debug ||
9607: {
9608: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9609: trap '{ (exit 1); exit 1; }' 1 2 13 15
9610: }
9611:
9612: # Create a (secure) tmp directory for tmp files.
9613:
9614: {
9615: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9616: test -n "$tmp" && test -d "$tmp"
9617: } ||
9618: {
9619: tmp=./confstat$$-$RANDOM
9620: (umask 077 && mkdir $tmp)
9621: } ||
9622: {
9623: echo "$me: cannot create a temporary directory in ." >&2
9624: { (exit 1); exit 1; }
9625: }
9626:
9627: _ACEOF
1.1 parser 9628:
1.10 paf 9629: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9630:
1.10 paf 9631: #
9632: # CONFIG_FILES section.
9633: #
1.1 parser 9634:
1.10 paf 9635: # No need to generate the scripts if there are no CONFIG_FILES.
9636: # This happens for instance when ./config.status config.h
9637: if test -n "\$CONFIG_FILES"; then
9638: # Protect against being on the right side of a sed subst in config.status.
9639: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9640: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9641: s,@SHELL@,$SHELL,;t t
9642: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9643: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9644: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9645: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9646: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9647: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9648: s,@exec_prefix@,$exec_prefix,;t t
9649: s,@prefix@,$prefix,;t t
9650: s,@program_transform_name@,$program_transform_name,;t t
9651: s,@bindir@,$bindir,;t t
9652: s,@sbindir@,$sbindir,;t t
9653: s,@libexecdir@,$libexecdir,;t t
9654: s,@datadir@,$datadir,;t t
9655: s,@sysconfdir@,$sysconfdir,;t t
9656: s,@sharedstatedir@,$sharedstatedir,;t t
9657: s,@localstatedir@,$localstatedir,;t t
9658: s,@libdir@,$libdir,;t t
9659: s,@includedir@,$includedir,;t t
9660: s,@oldincludedir@,$oldincludedir,;t t
9661: s,@infodir@,$infodir,;t t
9662: s,@mandir@,$mandir,;t t
9663: s,@build_alias@,$build_alias,;t t
9664: s,@host_alias@,$host_alias,;t t
9665: s,@target_alias@,$target_alias,;t t
9666: s,@DEFS@,$DEFS,;t t
9667: s,@ECHO_C@,$ECHO_C,;t t
9668: s,@ECHO_N@,$ECHO_N,;t t
9669: s,@ECHO_T@,$ECHO_T,;t t
9670: s,@LIBS@,$LIBS,;t t
9671: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9672: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9673: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9674: s,@CYGPATH_W@,$CYGPATH_W,;t t
9675: s,@PACKAGE@,$PACKAGE,;t t
9676: s,@VERSION@,$VERSION,;t t
9677: s,@ACLOCAL@,$ACLOCAL,;t t
9678: s,@AUTOCONF@,$AUTOCONF,;t t
9679: s,@AUTOMAKE@,$AUTOMAKE,;t t
9680: s,@AUTOHEADER@,$AUTOHEADER,;t t
9681: s,@MAKEINFO@,$MAKEINFO,;t t
9682: s,@install_sh@,$install_sh,;t t
9683: s,@STRIP@,$STRIP,;t t
9684: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9685: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.16 paf 9686: s,@mkdir_p@,$mkdir_p,;t t
1.10 paf 9687: s,@AWK@,$AWK,;t t
9688: s,@SET_MAKE@,$SET_MAKE,;t t
1.16 paf 9689: s,@am__leading_dot@,$am__leading_dot,;t t
9690: s,@AMTAR@,$AMTAR,;t t
9691: s,@am__tar@,$am__tar,;t t
9692: s,@am__untar@,$am__untar,;t t
1.10 paf 9693: s,@PGSQL_INC@,$PGSQL_INC,;t t
1.21 ! misha 9694: s,@LDFLAGS@,$LDFLAGS,;t t
1.10 paf 9695: s,@CXX@,$CXX,;t t
9696: s,@CXXFLAGS@,$CXXFLAGS,;t t
9697: s,@CPPFLAGS@,$CPPFLAGS,;t t
9698: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9699: s,@EXEEXT@,$EXEEXT,;t t
9700: s,@OBJEXT@,$OBJEXT,;t t
9701: s,@DEPDIR@,$DEPDIR,;t t
9702: s,@am__include@,$am__include,;t t
9703: s,@am__quote@,$am__quote,;t t
9704: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9705: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9706: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9707: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9708: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9709: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
1.15 paf 9710: s,@CC@,$CC,;t t
9711: s,@CFLAGS@,$CFLAGS,;t t
9712: s,@ac_ct_CC@,$ac_ct_CC,;t t
9713: s,@CCDEPMODE@,$CCDEPMODE,;t t
9714: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9715: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.10 paf 9716: s,@INCLTDL@,$INCLTDL,;t t
9717: s,@LIBLTDL@,$LIBLTDL,;t t
9718: s,@LIBADD_DL@,$LIBADD_DL,;t t
9719: s,@build@,$build,;t t
9720: s,@build_cpu@,$build_cpu,;t t
9721: s,@build_vendor@,$build_vendor,;t t
9722: s,@build_os@,$build_os,;t t
9723: s,@host@,$host,;t t
9724: s,@host_cpu@,$host_cpu,;t t
9725: s,@host_vendor@,$host_vendor,;t t
9726: s,@host_os@,$host_os,;t t
9727: s,@LN_S@,$LN_S,;t t
9728: s,@ECHO@,$ECHO,;t t
9729: s,@RANLIB@,$RANLIB,;t t
9730: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1.15 paf 9731: s,@CPP@,$CPP,;t t
1.10 paf 9732: s,@EGREP@,$EGREP,;t t
9733: s,@LIBTOOL@,$LIBTOOL,;t t
9734: s,@subdirs@,$subdirs,;t t
9735: s,@LIBOBJS@,$LIBOBJS,;t t
9736: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9737: CEOF
9738:
1.10 paf 9739: _ACEOF
1.1 parser 9740:
1.10 paf 9741: cat >>$CONFIG_STATUS <<\_ACEOF
9742: # Split the substitutions into bite-sized pieces for seds with
9743: # small command number limits, like on Digital OSF/1 and HP-UX.
9744: ac_max_sed_lines=48
9745: ac_sed_frag=1 # Number of current file.
9746: ac_beg=1 # First line for current file.
9747: ac_end=$ac_max_sed_lines # Line after last line for current file.
9748: ac_more_lines=:
9749: ac_sed_cmds=
9750: while $ac_more_lines; do
9751: if test $ac_beg -gt 1; then
9752: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9753: else
9754: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9755: fi
9756: if test ! -s $tmp/subs.frag; then
9757: ac_more_lines=false
9758: else
9759: # The purpose of the label and of the branching condition is to
9760: # speed up the sed processing (if there are no `@' at all, there
9761: # is no need to browse any of the substitutions).
9762: # These are the two extra sed commands mentioned above.
9763: (echo ':t
9764: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9765: if test -z "$ac_sed_cmds"; then
1.16 paf 9766: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.10 paf 9767: else
1.16 paf 9768: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.10 paf 9769: fi
9770: ac_sed_frag=`expr $ac_sed_frag + 1`
9771: ac_beg=$ac_end
9772: ac_end=`expr $ac_end + $ac_max_sed_lines`
9773: fi
9774: done
9775: if test -z "$ac_sed_cmds"; then
9776: ac_sed_cmds=cat
1.1 parser 9777: fi
1.10 paf 9778: fi # test -n "$CONFIG_FILES"
1.1 parser 9779:
1.10 paf 9780: _ACEOF
9781: cat >>$CONFIG_STATUS <<\_ACEOF
9782: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9783: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9784: case $ac_file in
9785: - | *:- | *:-:* ) # input from stdin
1.16 paf 9786: cat >$tmp/stdin
9787: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9788: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 9789: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.16 paf 9790: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 9791: * ) ac_file_in=$ac_file.in ;;
9792: esac
1.1 parser 9793:
1.10 paf 9794: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9795: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9796: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 9797: X"$ac_file" : 'X\(//\)[^/]' \| \
9798: X"$ac_file" : 'X\(//\)$' \| \
9799: X"$ac_file" : 'X\(/\)' \| \
9800: . : '\(.\)' 2>/dev/null ||
1.10 paf 9801: echo X"$ac_file" |
9802: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9803: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9804: /^X\(\/\/\)$/{ s//\1/; q; }
9805: /^X\(\/\).*/{ s//\1/; q; }
9806: s/.*/./; q'`
9807: { if $as_mkdir_p; then
9808: mkdir -p "$ac_dir"
9809: else
9810: as_dir="$ac_dir"
9811: as_dirs=
9812: while test ! -d "$as_dir"; do
9813: as_dirs="$as_dir $as_dirs"
9814: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9815: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 9816: X"$as_dir" : 'X\(//\)[^/]' \| \
9817: X"$as_dir" : 'X\(//\)$' \| \
9818: X"$as_dir" : 'X\(/\)' \| \
9819: . : '\(.\)' 2>/dev/null ||
1.10 paf 9820: echo X"$as_dir" |
9821: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9822: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9823: /^X\(\/\/\)$/{ s//\1/; q; }
9824: /^X\(\/\).*/{ s//\1/; q; }
9825: s/.*/./; q'`
9826: done
9827: test ! -n "$as_dirs" || mkdir $as_dirs
9828: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9829: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9830: { (exit 1); exit 1; }; }; }
9831:
9832: ac_builddir=.
9833:
9834: if test "$ac_dir" != .; then
9835: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9836: # A "../" for each directory in $ac_dir_suffix.
9837: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9838: else
9839: ac_dir_suffix= ac_top_builddir=
9840: fi
9841:
9842: case $srcdir in
9843: .) # No --srcdir option. We are building in place.
9844: ac_srcdir=.
9845: if test -z "$ac_top_builddir"; then
9846: ac_top_srcdir=.
9847: else
9848: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9849: fi ;;
9850: [\\/]* | ?:[\\/]* ) # Absolute path.
9851: ac_srcdir=$srcdir$ac_dir_suffix;
9852: ac_top_srcdir=$srcdir ;;
1.1 parser 9853: *) # Relative path.
1.10 paf 9854: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9855: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9856: esac
1.16 paf 9857:
9858: # Do not use `cd foo && pwd` to compute absolute paths, because
9859: # the directories may not exist.
9860: case `pwd` in
9861: .) ac_abs_builddir="$ac_dir";;
9862: *)
9863: case "$ac_dir" in
9864: .) ac_abs_builddir=`pwd`;;
9865: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9866: *) ac_abs_builddir=`pwd`/"$ac_dir";;
9867: esac;;
9868: esac
9869: case $ac_abs_builddir in
9870: .) ac_abs_top_builddir=${ac_top_builddir}.;;
9871: *)
9872: case ${ac_top_builddir}. in
9873: .) ac_abs_top_builddir=$ac_abs_builddir;;
9874: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9875: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9876: esac;;
9877: esac
9878: case $ac_abs_builddir in
9879: .) ac_abs_srcdir=$ac_srcdir;;
9880: *)
9881: case $ac_srcdir in
9882: .) ac_abs_srcdir=$ac_abs_builddir;;
9883: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9884: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9885: esac;;
9886: esac
9887: case $ac_abs_builddir in
9888: .) ac_abs_top_srcdir=$ac_top_srcdir;;
9889: *)
9890: case $ac_top_srcdir in
9891: .) ac_abs_top_srcdir=$ac_abs_builddir;;
9892: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9893: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9894: esac;;
9895: esac
1.10 paf 9896:
9897:
9898: case $INSTALL in
9899: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9900: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 9901: esac
9902:
1.10 paf 9903: if test x"$ac_file" != x-; then
9904: { echo "$as_me:$LINENO: creating $ac_file" >&5
9905: echo "$as_me: creating $ac_file" >&6;}
9906: rm -f "$ac_file"
9907: fi
9908: # Let's still pretend it is `configure' which instantiates (i.e., don't
9909: # use $as_me), people would be surprised to read:
9910: # /* config.h. Generated by config.status. */
9911: if test x"$ac_file" = x-; then
9912: configure_input=
9913: else
9914: configure_input="$ac_file. "
9915: fi
9916: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.16 paf 9917: sed 's,.*/,,'` by configure."
1.10 paf 9918:
9919: # First look for the input files in the build tree, otherwise in the
9920: # src tree.
9921: ac_file_inputs=`IFS=:
9922: for f in $ac_file_in; do
9923: case $f in
9924: -) echo $tmp/stdin ;;
9925: [\\/$]*)
1.16 paf 9926: # Absolute (can't be DOS-style, as IFS=:)
9927: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 9928: echo "$as_me: error: cannot find input file: $f" >&2;}
9929: { (exit 1); exit 1; }; }
1.16 paf 9930: echo "$f";;
1.10 paf 9931: *) # Relative
1.16 paf 9932: if test -f "$f"; then
9933: # Build tree
9934: echo "$f"
9935: elif test -f "$srcdir/$f"; then
9936: # Source tree
9937: echo "$srcdir/$f"
9938: else
9939: # /dev/null tree
9940: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 9941: echo "$as_me: error: cannot find input file: $f" >&2;}
9942: { (exit 1); exit 1; }; }
1.16 paf 9943: fi;;
1.10 paf 9944: esac
9945: done` || { (exit 1); exit 1; }
9946: _ACEOF
9947: cat >>$CONFIG_STATUS <<_ACEOF
9948: sed "$ac_vpsub
9949: $extrasub
9950: _ACEOF
9951: cat >>$CONFIG_STATUS <<\_ACEOF
9952: :t
9953: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9954: s,@configure_input@,$configure_input,;t t
9955: s,@srcdir@,$ac_srcdir,;t t
9956: s,@abs_srcdir@,$ac_abs_srcdir,;t t
9957: s,@top_srcdir@,$ac_top_srcdir,;t t
9958: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9959: s,@builddir@,$ac_builddir,;t t
9960: s,@abs_builddir@,$ac_abs_builddir,;t t
9961: s,@top_builddir@,$ac_top_builddir,;t t
9962: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9963: s,@INSTALL@,$ac_INSTALL,;t t
9964: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9965: rm -f $tmp/stdin
9966: if test x"$ac_file" != x-; then
9967: mv $tmp/out $ac_file
9968: else
9969: cat $tmp/out
9970: rm -f $tmp/out
9971: fi
9972:
9973: done
9974: _ACEOF
9975: cat >>$CONFIG_STATUS <<\_ACEOF
9976:
9977: #
9978: # CONFIG_HEADER section.
9979: #
1.1 parser 9980:
9981: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9982: # NAME is the cpp macro being defined and VALUE is the value it is being given.
9983: #
9984: # ac_d sets the value in "#define NAME VALUE" lines.
1.16 paf 9985: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9986: ac_dB='[ ].*$,\1#\2'
1.10 paf 9987: ac_dC=' '
9988: ac_dD=',;t'
9989: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.16 paf 9990: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.10 paf 9991: ac_uB='$,\1#\2define\3'
1.1 parser 9992: ac_uC=' '
1.10 paf 9993: ac_uD=',;t'
1.1 parser 9994:
1.10 paf 9995: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 9996: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.10 paf 9997: case $ac_file in
9998: - | *:- | *:-:* ) # input from stdin
1.16 paf 9999: cat >$tmp/stdin
10000: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10001: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 10002: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.16 paf 10003: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 10004: * ) ac_file_in=$ac_file.in ;;
1.1 parser 10005: esac
10006:
1.10 paf 10007: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10008: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 10009:
1.10 paf 10010: # First look for the input files in the build tree, otherwise in the
10011: # src tree.
10012: ac_file_inputs=`IFS=:
10013: for f in $ac_file_in; do
10014: case $f in
10015: -) echo $tmp/stdin ;;
10016: [\\/$]*)
1.16 paf 10017: # Absolute (can't be DOS-style, as IFS=:)
10018: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 10019: echo "$as_me: error: cannot find input file: $f" >&2;}
10020: { (exit 1); exit 1; }; }
1.16 paf 10021: # Do quote $f, to prevent DOS paths from being IFS'd.
10022: echo "$f";;
1.10 paf 10023: *) # Relative
1.16 paf 10024: if test -f "$f"; then
10025: # Build tree
10026: echo "$f"
10027: elif test -f "$srcdir/$f"; then
10028: # Source tree
10029: echo "$srcdir/$f"
10030: else
10031: # /dev/null tree
10032: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 10033: echo "$as_me: error: cannot find input file: $f" >&2;}
10034: { (exit 1); exit 1; }; }
1.16 paf 10035: fi;;
1.10 paf 10036: esac
10037: done` || { (exit 1); exit 1; }
10038: # Remove the trailing spaces.
1.16 paf 10039: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.10 paf 10040:
10041: _ACEOF
10042:
10043: # Transform confdefs.h into two sed scripts, `conftest.defines' and
10044: # `conftest.undefs', that substitutes the proper values into
10045: # config.h.in to produce config.h. The first handles `#define'
10046: # templates, and the second `#undef' templates.
10047: # And first: Protect against being on the right side of a sed subst in
10048: # config.status. Protect against being in an unquoted here document
10049: # in config.status.
10050: rm -f conftest.defines conftest.undefs
10051: # Using a here document instead of a string reduces the quoting nightmare.
10052: # Putting comments in sed scripts is not portable.
10053: #
10054: # `end' is used to avoid that the second main sed command (meant for
10055: # 0-ary CPP macros) applies to n-ary macro definitions.
10056: # See the Autoconf documentation for `clear'.
10057: cat >confdef2sed.sed <<\_ACEOF
10058: s/[\\&,]/\\&/g
10059: s,[\\$`],\\&,g
10060: t clear
10061: : clear
1.16 paf 10062: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.10 paf 10063: t end
1.16 paf 10064: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.10 paf 10065: : end
10066: _ACEOF
10067: # If some macros were called several times there might be several times
10068: # the same #defines, which is useless. Nevertheless, we may not want to
10069: # sort them, since we want the *last* AC-DEFINE to be honored.
10070: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10071: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10072: rm -f confdef2sed.sed
1.1 parser 10073:
10074: # This sed command replaces #undef with comments. This is necessary, for
10075: # example, in the case of _POSIX_SOURCE, which is predefined and required
10076: # on some systems where configure will not decide to define it.
1.10 paf 10077: cat >>conftest.undefs <<\_ACEOF
1.16 paf 10078: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.10 paf 10079: _ACEOF
10080:
10081: # Break up conftest.defines because some shells have a limit on the size
10082: # of here documents, and old seds have small limits too (100 cmds).
10083: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.16 paf 10084: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.10 paf 10085: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10086: echo ' :' >>$CONFIG_STATUS
10087: rm -f conftest.tail
10088: while grep . conftest.defines >/dev/null
10089: do
10090: # Write a limited-size here document to $tmp/defines.sed.
10091: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10092: # Speed up: don't consider the non `#define' lines.
1.16 paf 10093: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.10 paf 10094: # Work around the forget-to-reset-the-flag bug.
10095: echo 't clr' >>$CONFIG_STATUS
10096: echo ': clr' >>$CONFIG_STATUS
10097: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10098: echo 'CEOF
10099: sed -f $tmp/defines.sed $tmp/in >$tmp/out
10100: rm -f $tmp/in
10101: mv $tmp/out $tmp/in
10102: ' >>$CONFIG_STATUS
10103: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10104: rm -f conftest.defines
10105: mv conftest.tail conftest.defines
10106: done
10107: rm -f conftest.defines
10108: echo ' fi # grep' >>$CONFIG_STATUS
10109: echo >>$CONFIG_STATUS
10110:
10111: # Break up conftest.undefs because some shells have a limit on the size
10112: # of here documents, and old seds have small limits too (100 cmds).
10113: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 10114: rm -f conftest.tail
1.10 paf 10115: while grep . conftest.undefs >/dev/null
1.1 parser 10116: do
1.10 paf 10117: # Write a limited-size here document to $tmp/undefs.sed.
10118: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10119: # Speed up: don't consider the non `#undef'
1.16 paf 10120: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.10 paf 10121: # Work around the forget-to-reset-the-flag bug.
10122: echo 't clr' >>$CONFIG_STATUS
10123: echo ': clr' >>$CONFIG_STATUS
10124: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 10125: echo 'CEOF
1.10 paf 10126: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10127: rm -f $tmp/in
10128: mv $tmp/out $tmp/in
10129: ' >>$CONFIG_STATUS
10130: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10131: rm -f conftest.undefs
10132: mv conftest.tail conftest.undefs
10133: done
10134: rm -f conftest.undefs
10135:
10136: cat >>$CONFIG_STATUS <<\_ACEOF
10137: # Let's still pretend it is `configure' which instantiates (i.e., don't
10138: # use $as_me), people would be surprised to read:
10139: # /* config.h. Generated by config.status. */
10140: if test x"$ac_file" = x-; then
10141: echo "/* Generated by configure. */" >$tmp/config.h
10142: else
10143: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10144: fi
10145: cat $tmp/in >>$tmp/config.h
10146: rm -f $tmp/in
10147: if test x"$ac_file" != x-; then
10148: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10149: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10150: echo "$as_me: $ac_file is unchanged" >&6;}
10151: else
10152: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10153: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10154: X"$ac_file" : 'X\(//\)[^/]' \| \
10155: X"$ac_file" : 'X\(//\)$' \| \
10156: X"$ac_file" : 'X\(/\)' \| \
10157: . : '\(.\)' 2>/dev/null ||
1.10 paf 10158: echo X"$ac_file" |
10159: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10160: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10161: /^X\(\/\/\)$/{ s//\1/; q; }
10162: /^X\(\/\).*/{ s//\1/; q; }
10163: s/.*/./; q'`
10164: { if $as_mkdir_p; then
10165: mkdir -p "$ac_dir"
10166: else
10167: as_dir="$ac_dir"
10168: as_dirs=
10169: while test ! -d "$as_dir"; do
10170: as_dirs="$as_dir $as_dirs"
10171: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10172: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10173: X"$as_dir" : 'X\(//\)[^/]' \| \
10174: X"$as_dir" : 'X\(//\)$' \| \
10175: X"$as_dir" : 'X\(/\)' \| \
10176: . : '\(.\)' 2>/dev/null ||
1.10 paf 10177: echo X"$as_dir" |
10178: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10179: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10180: /^X\(\/\/\)$/{ s//\1/; q; }
10181: /^X\(\/\).*/{ s//\1/; q; }
10182: s/.*/./; q'`
10183: done
10184: test ! -n "$as_dirs" || mkdir $as_dirs
10185: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10186: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10187: { (exit 1); exit 1; }; }; }
10188:
10189: rm -f $ac_file
10190: mv $tmp/config.h $ac_file
1.1 parser 10191: fi
1.10 paf 10192: else
10193: cat $tmp/config.h
10194: rm -f $tmp/config.h
1.1 parser 10195: fi
1.16 paf 10196: # Compute $ac_file's index in $config_headers.
10197: _am_stamp_count=1
10198: for _am_header in $config_headers :; do
10199: case $_am_header in
10200: $ac_file | $ac_file:* )
10201: break ;;
10202: * )
10203: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10204: esac
10205: done
1.10 paf 10206: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10207: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10208: X$ac_file : 'X\(//\)[^/]' \| \
10209: X$ac_file : 'X\(//\)$' \| \
10210: X$ac_file : 'X\(/\)' \| \
10211: . : '\(.\)' 2>/dev/null ||
1.10 paf 10212: echo X$ac_file |
10213: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10214: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10215: /^X\(\/\/\)$/{ s//\1/; q; }
10216: /^X\(\/\).*/{ s//\1/; q; }
10217: s/.*/./; q'`/stamp-h$_am_stamp_count
10218: done
10219: _ACEOF
10220: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10221:
1.10 paf 10222: #
10223: # CONFIG_COMMANDS section.
10224: #
10225: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10226: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10227: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10228: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10229: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10230: X"$ac_dest" : 'X\(//\)[^/]' \| \
10231: X"$ac_dest" : 'X\(//\)$' \| \
10232: X"$ac_dest" : 'X\(/\)' \| \
10233: . : '\(.\)' 2>/dev/null ||
1.10 paf 10234: echo X"$ac_dest" |
10235: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10236: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10237: /^X\(\/\/\)$/{ s//\1/; q; }
10238: /^X\(\/\).*/{ s//\1/; q; }
10239: s/.*/./; q'`
1.16 paf 10240: { if $as_mkdir_p; then
10241: mkdir -p "$ac_dir"
10242: else
10243: as_dir="$ac_dir"
10244: as_dirs=
10245: while test ! -d "$as_dir"; do
10246: as_dirs="$as_dir $as_dirs"
10247: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10248: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10249: X"$as_dir" : 'X\(//\)[^/]' \| \
10250: X"$as_dir" : 'X\(//\)$' \| \
10251: X"$as_dir" : 'X\(/\)' \| \
10252: . : '\(.\)' 2>/dev/null ||
10253: echo X"$as_dir" |
10254: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10255: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10256: /^X\(\/\/\)$/{ s//\1/; q; }
10257: /^X\(\/\).*/{ s//\1/; q; }
10258: s/.*/./; q'`
10259: done
10260: test ! -n "$as_dirs" || mkdir $as_dirs
10261: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10262: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10263: { (exit 1); exit 1; }; }; }
10264:
1.10 paf 10265: ac_builddir=.
10266:
10267: if test "$ac_dir" != .; then
10268: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10269: # A "../" for each directory in $ac_dir_suffix.
10270: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10271: else
10272: ac_dir_suffix= ac_top_builddir=
10273: fi
10274:
10275: case $srcdir in
10276: .) # No --srcdir option. We are building in place.
10277: ac_srcdir=.
10278: if test -z "$ac_top_builddir"; then
10279: ac_top_srcdir=.
10280: else
10281: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10282: fi ;;
10283: [\\/]* | ?:[\\/]* ) # Absolute path.
10284: ac_srcdir=$srcdir$ac_dir_suffix;
10285: ac_top_srcdir=$srcdir ;;
10286: *) # Relative path.
10287: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10288: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10289: esac
1.16 paf 10290:
10291: # Do not use `cd foo && pwd` to compute absolute paths, because
10292: # the directories may not exist.
10293: case `pwd` in
10294: .) ac_abs_builddir="$ac_dir";;
10295: *)
10296: case "$ac_dir" in
10297: .) ac_abs_builddir=`pwd`;;
10298: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10299: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10300: esac;;
10301: esac
10302: case $ac_abs_builddir in
10303: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10304: *)
10305: case ${ac_top_builddir}. in
10306: .) ac_abs_top_builddir=$ac_abs_builddir;;
10307: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10308: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10309: esac;;
10310: esac
10311: case $ac_abs_builddir in
10312: .) ac_abs_srcdir=$ac_srcdir;;
10313: *)
10314: case $ac_srcdir in
10315: .) ac_abs_srcdir=$ac_abs_builddir;;
10316: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10317: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10318: esac;;
10319: esac
10320: case $ac_abs_builddir in
10321: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10322: *)
10323: case $ac_top_srcdir in
10324: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10325: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10326: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10327: esac;;
10328: esac
1.10 paf 10329:
10330:
10331: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10332: echo "$as_me: executing $ac_dest commands" >&6;}
10333: case $ac_dest in
10334: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10335: # Strip MF so we end up with the name of the file.
10336: mf=`echo "$mf" | sed -e 's/:.*$//'`
10337: # Check whether this is an Automake generated Makefile or not.
10338: # We used to match only the files named `Makefile.in', but
10339: # some people rename them; so instead we look at the file content.
10340: # Grep'ing the first line is not enough: some people post-process
10341: # each Makefile.in and add a new line on top of each file to say so.
10342: # So let's grep whole file.
10343: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10344: dirpart=`(dirname "$mf") 2>/dev/null ||
10345: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10346: X"$mf" : 'X\(//\)[^/]' \| \
10347: X"$mf" : 'X\(//\)$' \| \
10348: X"$mf" : 'X\(/\)' \| \
10349: . : '\(.\)' 2>/dev/null ||
1.10 paf 10350: echo X"$mf" |
10351: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10352: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10353: /^X\(\/\/\)$/{ s//\1/; q; }
10354: /^X\(\/\).*/{ s//\1/; q; }
10355: s/.*/./; q'`
10356: else
10357: continue
10358: fi
1.16 paf 10359: # Extract the definition of DEPDIR, am__include, and am__quote
10360: # from the Makefile without running `make'.
10361: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.10 paf 10362: test -z "$DEPDIR" && continue
1.16 paf 10363: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10364: test -z "am__include" && continue
10365: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.10 paf 10366: # When using ansi2knr, U may be empty or an underscore; expand it
1.16 paf 10367: U=`sed -n 's/^U = //p' < "$mf"`
10368: # Find all dependency output files, they are included files with
10369: # $(DEPDIR) in their names. We invoke sed twice because it is the
10370: # simplest approach to changing $(DEPDIR) to its actual value in the
10371: # expansion.
10372: for file in `sed -n "
10373: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.10 paf 10374: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10375: # Make sure the directory exists.
10376: test -f "$dirpart/$file" && continue
10377: fdir=`(dirname "$file") 2>/dev/null ||
10378: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10379: X"$file" : 'X\(//\)[^/]' \| \
10380: X"$file" : 'X\(//\)$' \| \
10381: X"$file" : 'X\(/\)' \| \
10382: . : '\(.\)' 2>/dev/null ||
1.10 paf 10383: echo X"$file" |
10384: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10385: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10386: /^X\(\/\/\)$/{ s//\1/; q; }
10387: /^X\(\/\).*/{ s//\1/; q; }
10388: s/.*/./; q'`
10389: { if $as_mkdir_p; then
10390: mkdir -p $dirpart/$fdir
10391: else
10392: as_dir=$dirpart/$fdir
10393: as_dirs=
10394: while test ! -d "$as_dir"; do
10395: as_dirs="$as_dir $as_dirs"
10396: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10397: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10398: X"$as_dir" : 'X\(//\)[^/]' \| \
10399: X"$as_dir" : 'X\(//\)$' \| \
10400: X"$as_dir" : 'X\(/\)' \| \
10401: . : '\(.\)' 2>/dev/null ||
1.10 paf 10402: echo X"$as_dir" |
10403: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10404: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10405: /^X\(\/\/\)$/{ s//\1/; q; }
10406: /^X\(\/\).*/{ s//\1/; q; }
10407: s/.*/./; q'`
10408: done
10409: test ! -n "$as_dirs" || mkdir $as_dirs
10410: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10411: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10412: { (exit 1); exit 1; }; }; }
1.1 parser 10413:
1.10 paf 10414: # echo "creating $dirpart/$file"
10415: echo '# dummy' > "$dirpart/$file"
10416: done
10417: done
10418: ;;
10419: esac
10420: done
10421: _ACEOF
1.1 parser 10422:
1.10 paf 10423: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10424:
1.10 paf 10425: { (exit 0); exit 0; }
10426: _ACEOF
1.1 parser 10427: chmod +x $CONFIG_STATUS
1.10 paf 10428: ac_clean_files=$ac_clean_files_save
10429:
10430:
10431: # configure is writing to config.log, and then calls config.status.
10432: # config.status does its own redirection, appending to config.log.
10433: # Unfortunately, on DOS this fails, as config.log is still kept open
10434: # by configure, so config.status won't be able to write to it; its
10435: # output is simply discarded. So we exec the FD to /dev/null,
10436: # effectively closing config.log, so it can be properly (re)opened and
10437: # appended to by config.status. When coming back to configure, we
10438: # need to make the FD available again.
10439: if test "$no_create" != yes; then
10440: ac_cs_success=:
10441: ac_config_status_args=
10442: test "$silent" = yes &&
10443: ac_config_status_args="$ac_config_status_args --quiet"
10444: exec 5>/dev/null
10445: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10446: exec 5>>config.log
10447: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10448: # would make configure fail if this is the last instruction.
10449: $ac_cs_success || { (exit 1); exit 1; }
10450: fi
1.1 parser 10451:
1.10 paf 10452: #
10453: # CONFIG_SUBDIRS section.
10454: #
1.1 parser 10455: if test "$no_recursion" != yes; then
10456:
10457: # Remove --cache-file and --srcdir arguments so they do not pile up.
10458: ac_sub_configure_args=
10459: ac_prev=
10460: for ac_arg in $ac_configure_args; do
10461: if test -n "$ac_prev"; then
10462: ac_prev=
10463: continue
10464: fi
1.10 paf 10465: case $ac_arg in
1.1 parser 10466: -cache-file | --cache-file | --cache-fil | --cache-fi \
10467: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10468: ac_prev=cache_file ;;
10469: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.10 paf 10470: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10471: | --c=*)
10472: ;;
10473: --config-cache | -C)
1.1 parser 10474: ;;
10475: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10476: ac_prev=srcdir ;;
10477: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10478: ;;
1.10 paf 10479: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10480: ac_prev=prefix ;;
10481: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10482: ;;
1.1 parser 10483: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10484: esac
10485: done
10486:
1.10 paf 10487: # Always prepend --prefix to ensure using the same prefix
10488: # in subdir configurations.
10489: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10490:
10491: ac_popdir=`pwd`
10492: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 10493:
10494: # Do not complain, so a configure script can configure whichever
10495: # parts of a large source tree are present.
1.10 paf 10496: test -d $srcdir/$ac_dir || continue
1.1 parser 10497:
1.10 paf 10498: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10499: echo "$as_me: configuring in $ac_dir" >&6;}
10500: { if $as_mkdir_p; then
10501: mkdir -p "$ac_dir"
10502: else
10503: as_dir="$ac_dir"
10504: as_dirs=
10505: while test ! -d "$as_dir"; do
10506: as_dirs="$as_dir $as_dirs"
10507: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10508: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10509: X"$as_dir" : 'X\(//\)[^/]' \| \
10510: X"$as_dir" : 'X\(//\)$' \| \
10511: X"$as_dir" : 'X\(/\)' \| \
10512: . : '\(.\)' 2>/dev/null ||
1.10 paf 10513: echo X"$as_dir" |
10514: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10515: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10516: /^X\(\/\/\)$/{ s//\1/; q; }
10517: /^X\(\/\).*/{ s//\1/; q; }
10518: s/.*/./; q'`
10519: done
10520: test ! -n "$as_dirs" || mkdir $as_dirs
10521: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10522: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10523: { (exit 1); exit 1; }; }; }
10524:
10525: ac_builddir=.
10526:
10527: if test "$ac_dir" != .; then
10528: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10529: # A "../" for each directory in $ac_dir_suffix.
10530: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10531: else
10532: ac_dir_suffix= ac_top_builddir=
10533: fi
10534:
10535: case $srcdir in
10536: .) # No --srcdir option. We are building in place.
10537: ac_srcdir=.
10538: if test -z "$ac_top_builddir"; then
10539: ac_top_srcdir=.
10540: else
10541: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10542: fi ;;
10543: [\\/]* | ?:[\\/]* ) # Absolute path.
10544: ac_srcdir=$srcdir$ac_dir_suffix;
10545: ac_top_srcdir=$srcdir ;;
10546: *) # Relative path.
10547: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10548: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10549: esac
1.16 paf 10550:
10551: # Do not use `cd foo && pwd` to compute absolute paths, because
10552: # the directories may not exist.
10553: case `pwd` in
10554: .) ac_abs_builddir="$ac_dir";;
10555: *)
10556: case "$ac_dir" in
10557: .) ac_abs_builddir=`pwd`;;
10558: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10559: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10560: esac;;
10561: esac
10562: case $ac_abs_builddir in
10563: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10564: *)
10565: case ${ac_top_builddir}. in
10566: .) ac_abs_top_builddir=$ac_abs_builddir;;
10567: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10568: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10569: esac;;
10570: esac
10571: case $ac_abs_builddir in
10572: .) ac_abs_srcdir=$ac_srcdir;;
10573: *)
10574: case $ac_srcdir in
10575: .) ac_abs_srcdir=$ac_abs_builddir;;
10576: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10577: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10578: esac;;
10579: esac
10580: case $ac_abs_builddir in
10581: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10582: *)
10583: case $ac_top_srcdir in
10584: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10585: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10586: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10587: esac;;
10588: esac
1.1 parser 10589:
10590:
1.10 paf 10591: cd $ac_dir
1.1 parser 10592:
10593: # Check for guested configure; otherwise get Cygnus style configure.
1.10 paf 10594: if test -f $ac_srcdir/configure.gnu; then
10595: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10596: elif test -f $ac_srcdir/configure; then
10597: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10598: elif test -f $ac_srcdir/configure.in; then
1.1 parser 10599: ac_sub_configure=$ac_configure
10600: else
1.10 paf 10601: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10602: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 10603: ac_sub_configure=
10604: fi
10605:
10606: # The recursion is here.
10607: if test -n "$ac_sub_configure"; then
10608: # Make the cache file name correct relative to the subdirectory.
1.10 paf 10609: case $cache_file in
10610: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10611: *) # Relative path.
1.16 paf 10612: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10613: esac
10614:
1.10 paf 10615: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10616: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10617: # The eval makes quoting arguments work.
1.10 paf 10618: eval $ac_sub_configure $ac_sub_configure_args \
1.16 paf 10619: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10620: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.10 paf 10621: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10622: { (exit 1); exit 1; }; }
1.1 parser 10623: fi
10624:
10625: cd $ac_popdir
10626: done
10627: fi
10628:
E-mail: