]> git.saurik.com Git - wxWidgets.git/blame - src/expat/configure
code cleanup for the pen width condition (patch 1034942 + more)
[wxWidgets.git] / src / expat / configure
CommitLineData
5e9f2524
VS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
79608eef 3# Generated by GNU Autoconf 2.57.
5e9f2524
VS
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
5e9f2524
VS
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
79608eef
VS
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
5e9f2524
VS
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
5e9f2524
VS
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
79608eef
VS
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
5e9f2524
VS
63
64
65# Name of the executable.
79608eef 66as_me=`$as_basename "$0" ||
5e9f2524
VS
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
79608eef 77
5e9f2524
VS
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
79608eef
VS
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
5e9f2524
VS
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
79608eef 96 rm -f conf$$.sh
5e9f2524
VS
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
79608eef
VS
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; }
5e9f2524
VS
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
79608eef
VS
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
5e9f2524
VS
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
79608eef
VS
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Find the correct PATH separator. Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
250 esac
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
5e9f2524 399
5e9f2524
VS
400
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
79608eef 413ac_config_libobj_dir=.
5e9f2524
VS
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
79608eef
VS
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
5e9f2524 431
79608eef 432ac_unique_file="expat"
5e9f2524
VS
433ac_unique_file="Makefile.in"
434# Factoring default headers for most tests.
435ac_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
79608eef
VS
471ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS FILEMAP LTLIBOBJS'
472ac_subst_files=''
5e9f2524
VS
473
474# Initialize some variables set by options.
475ac_init_help=
476ac_init_version=false
477# The variables have the same names as the options, with
478# dashes changed to underlines.
479cache_file=/dev/null
480exec_prefix=NONE
481no_create=
482no_recursion=
483prefix=NONE
484program_prefix=NONE
485program_suffix=NONE
486program_transform_name=s,x,x,
487silent=
488site=
489srcdir=
490verbose=
491x_includes=NONE
492x_libraries=NONE
493
494# Installation directory options.
495# These are left unexpanded so users can "make install exec_prefix=/foo"
496# and all the variables that are supposed to be based on exec_prefix
497# by default will actually change.
498# Use braces instead of parens because sh, perl, etc. also accept them.
499bindir='${exec_prefix}/bin'
500sbindir='${exec_prefix}/sbin'
501libexecdir='${exec_prefix}/libexec'
502datadir='${prefix}/share'
503sysconfdir='${prefix}/etc'
504sharedstatedir='${prefix}/com'
505localstatedir='${prefix}/var'
506libdir='${exec_prefix}/lib'
507includedir='${prefix}/include'
508oldincludedir='/usr/include'
509infodir='${prefix}/info'
510mandir='${prefix}/man'
511
512ac_prev=
513for ac_option
514do
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
518 ac_prev=
519 continue
520 fi
521
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524 # Accept the important Cygnus configure options, so we can diagnose typos.
525
526 case $ac_option in
527
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 bindir=$ac_optarg ;;
532
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
537
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
544
545 --config-cache | -C)
546 cache_file=config.cache ;;
547
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
552 datadir=$ac_optarg ;;
553
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
562
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 case $ac_option in
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 *) ac_optarg=yes ;;
573 esac
574 eval "enable_$ac_feature='$ac_optarg'" ;;
575
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
584
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
587 with_gas=yes ;;
588
589 -help | --help | --hel | --he | -h)
590 ac_init_help=long ;;
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
595
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
600
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 libdir=$ac_optarg ;;
617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
624
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 mandir=$ac_optarg ;;
638
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
642
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
645 no_create=yes ;;
646
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
650
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 prefix=$ac_optarg ;;
664
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
671
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
678
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
695
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
698 silent=yes ;;
699
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
704 sbindir=$ac_optarg ;;
705
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
715 sharedstatedir=$ac_optarg ;;
716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
720 site=$ac_optarg ;;
721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 srcdir=$ac_optarg ;;
726
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
742 -version | --version | --versio | --versi | --vers | -V)
743 ac_init_version=: ;;
744
745 -with-* | --with-*)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 case $ac_option in
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 *) ac_optarg=yes ;;
755 esac
756 eval "with_$ac_package='$ac_optarg'" ;;
757
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
766
767 --x)
768 # Obsolete; use --with-x.
769 with_x=yes ;;
770
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
777
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
784
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
788 ;;
789
790 *=*)
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
798 export $ac_envvar ;;
799
800 *)
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 ;;
807
808 esac
809done
810
811if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
815fi
816
817# Be sure to have absolute paths.
818for ac_var in exec_prefix prefix
819do
820 eval ac_val=$`echo $ac_var`
821 case $ac_val in
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
825 esac
826done
827
828# Be sure to have absolute paths.
829for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
831do
832 eval ac_val=$`echo $ac_var`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
837 esac
838done
839
840# There might be people who depend on the old broken behavior: `$host'
841# used to hold the argument of --host etc.
842# FIXME: To remove some day.
843build=$build_alias
844host=$host_alias
845target=$target_alias
846
847# FIXME: To remove some day.
848if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
854 cross_compiling=yes
855 fi
856fi
857
858ac_tool_prefix=
859test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861test "$silent" = yes && exec 6>/dev/null
862
863
864# Find the source files, if location was not specified.
865if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
874echo X"$0" |
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
879 s/.*/./; q'`
880 srcdir=$ac_confdir
881 if test ! -r $srcdir/$ac_unique_file; then
882 srcdir=..
883 fi
884else
885 ac_srcdir_defaulted=no
886fi
887if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
891 else
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
894 fi
895fi
79608eef
VS
896(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
5e9f2524
VS
899srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900ac_env_build_alias_set=${build_alias+set}
901ac_env_build_alias_value=$build_alias
902ac_cv_env_build_alias_set=${build_alias+set}
903ac_cv_env_build_alias_value=$build_alias
904ac_env_host_alias_set=${host_alias+set}
905ac_env_host_alias_value=$host_alias
906ac_cv_env_host_alias_set=${host_alias+set}
907ac_cv_env_host_alias_value=$host_alias
908ac_env_target_alias_set=${target_alias+set}
909ac_env_target_alias_value=$target_alias
910ac_cv_env_target_alias_set=${target_alias+set}
911ac_cv_env_target_alias_value=$target_alias
912ac_env_CC_set=${CC+set}
913ac_env_CC_value=$CC
914ac_cv_env_CC_set=${CC+set}
915ac_cv_env_CC_value=$CC
916ac_env_CFLAGS_set=${CFLAGS+set}
917ac_env_CFLAGS_value=$CFLAGS
918ac_cv_env_CFLAGS_set=${CFLAGS+set}
919ac_cv_env_CFLAGS_value=$CFLAGS
920ac_env_LDFLAGS_set=${LDFLAGS+set}
921ac_env_LDFLAGS_value=$LDFLAGS
922ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923ac_cv_env_LDFLAGS_value=$LDFLAGS
924ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_env_CPPFLAGS_value=$CPPFLAGS
926ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928ac_env_CPP_set=${CPP+set}
929ac_env_CPP_value=$CPP
930ac_cv_env_CPP_set=${CPP+set}
931ac_cv_env_CPP_value=$CPP
932
933#
934# Report the --help message.
935#
936if test "$ac_init_help" = "long"; then
937 # Omit some internal or obsolete options to make the list less imposing.
938 # This message is too long to be a string in the A/UX 3.1 sh.
939 cat <<_ACEOF
79608eef 940\`configure' configures this package to adapt to many kinds of systems.
5e9f2524
VS
941
942Usage: $0 [OPTION]... [VAR=VALUE]...
943
944To assign environment variables (e.g., CC, CFLAGS...), specify them as
945VAR=VALUE. See below for descriptions of some of the useful variables.
946
947Defaults for the options are specified in brackets.
948
949Configuration:
950 -h, --help display this help and exit
951 --help=short display options specific to this package
952 --help=recursive display the short help of all the included packages
953 -V, --version display version information and exit
954 -q, --quiet, --silent do not print \`checking...' messages
955 --cache-file=FILE cache test results in FILE [disabled]
956 -C, --config-cache alias for \`--cache-file=config.cache'
957 -n, --no-create do not create output files
958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
959
960_ACEOF
961
962 cat <<_ACEOF
963Installation directories:
964 --prefix=PREFIX install architecture-independent files in PREFIX
965 [$ac_default_prefix]
966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
967 [PREFIX]
968
969By default, \`make install' will install all the files in
970\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
971an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972for instance \`--prefix=\$HOME'.
973
974For better control, use the options below.
975
976Fine tuning of the installation directories:
977 --bindir=DIR user executables [EPREFIX/bin]
978 --sbindir=DIR system admin executables [EPREFIX/sbin]
979 --libexecdir=DIR program executables [EPREFIX/libexec]
980 --datadir=DIR read-only architecture-independent data [PREFIX/share]
981 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
982 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
983 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
984 --libdir=DIR object code libraries [EPREFIX/lib]
985 --includedir=DIR C header files [PREFIX/include]
986 --oldincludedir=DIR C header files for non-gcc [/usr/include]
987 --infodir=DIR info documentation [PREFIX/info]
988 --mandir=DIR man documentation [PREFIX/man]
989_ACEOF
990
991 cat <<\_ACEOF
992
993System types:
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996_ACEOF
997fi
998
999if test -n "$ac_init_help"; then
79608eef 1000
5e9f2524
VS
1001 cat <<\_ACEOF
1002
1003Optional Features:
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1006 --enable-shared=PKGS build shared libraries default=yes
1007 --enable-static=PKGS build static libraries default=yes
1008 --enable-fast-install=PKGS optimize for fast installation default=yes
1009 --disable-libtool-lock avoid locking (might break parallel builds)
1010
1011Optional Packages:
1012 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1013 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1014 --with-gnu-ld assume the C compiler uses GNU ld default=no
1015 --with-pic try to use only PIC/non-PIC objects default=use both
1016
1017Some influential environment variables:
1018 CC C compiler command
1019 CFLAGS C compiler flags
1020 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1021 nonstandard directory <lib dir>
1022 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1023 headers in a nonstandard directory <include dir>
1024 CPP C preprocessor
1025
1026Use these variables to override the choices made by `configure' or to help
1027it to find libraries and programs with nonstandard names/locations.
1028
5e9f2524
VS
1029_ACEOF
1030fi
1031
1032if test "$ac_init_help" = "recursive"; then
1033 # If there are subdirs, report their specific --help.
1034 ac_popdir=`pwd`
1035 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1036 test -d $ac_dir || continue
1037 ac_builddir=.
1038
1039if test "$ac_dir" != .; then
1040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1041 # A "../" for each directory in $ac_dir_suffix.
1042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1043else
1044 ac_dir_suffix= ac_top_builddir=
1045fi
1046
1047case $srcdir in
1048 .) # No --srcdir option. We are building in place.
1049 ac_srcdir=.
1050 if test -z "$ac_top_builddir"; then
1051 ac_top_srcdir=.
1052 else
1053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1054 fi ;;
1055 [\\/]* | ?:[\\/]* ) # Absolute path.
1056 ac_srcdir=$srcdir$ac_dir_suffix;
1057 ac_top_srcdir=$srcdir ;;
1058 *) # Relative path.
1059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1061esac
1062# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1063# absolute.
1064ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
79608eef 1065ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5e9f2524
VS
1066ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1067ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1068
1069 cd $ac_dir
1070 # Check for guested configure; otherwise get Cygnus style configure.
1071 if test -f $ac_srcdir/configure.gnu; then
1072 echo
1073 $SHELL $ac_srcdir/configure.gnu --help=recursive
1074 elif test -f $ac_srcdir/configure; then
1075 echo
1076 $SHELL $ac_srcdir/configure --help=recursive
1077 elif test -f $ac_srcdir/configure.ac ||
1078 test -f $ac_srcdir/configure.in; then
1079 echo
1080 $ac_configure --help
1081 else
1082 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1083 fi
1084 cd $ac_popdir
1085 done
1086fi
1087
1088test -n "$ac_init_help" && exit 0
1089if $ac_init_version; then
1090 cat <<\_ACEOF
5e9f2524
VS
1091
1092Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1093Free Software Foundation, Inc.
1094This configure script is free software; the Free Software Foundation
1095gives unlimited permission to copy, distribute and modify it.
1096_ACEOF
1097 exit 0
1098fi
1099exec 5>config.log
1100cat >&5 <<_ACEOF
1101This file contains any messages produced by compilers while
1102running configure, to aid debugging if configure makes a mistake.
1103
79608eef
VS
1104It was created by $as_me, which was
1105generated by GNU Autoconf 2.57. Invocation command line was
5e9f2524
VS
1106
1107 $ $0 $@
1108
1109_ACEOF
1110{
1111cat <<_ASUNAME
1112## --------- ##
1113## Platform. ##
1114## --------- ##
1115
1116hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1117uname -m = `(uname -m) 2>/dev/null || echo unknown`
1118uname -r = `(uname -r) 2>/dev/null || echo unknown`
1119uname -s = `(uname -s) 2>/dev/null || echo unknown`
1120uname -v = `(uname -v) 2>/dev/null || echo unknown`
1121
1122/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1123/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1124
1125/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1126/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1127/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1128hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1129/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1130/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1131/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1132
1133_ASUNAME
1134
1135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1136for as_dir in $PATH
1137do
1138 IFS=$as_save_IFS
1139 test -z "$as_dir" && as_dir=.
1140 echo "PATH: $as_dir"
1141done
1142
1143} >&5
1144
1145cat >&5 <<_ACEOF
1146
1147
1148## ----------- ##
1149## Core tests. ##
1150## ----------- ##
1151
1152_ACEOF
1153
1154
1155# Keep a trace of the command line.
1156# Strip out --no-create and --no-recursion so they do not pile up.
79608eef 1157# Strip out --silent because we don't want to record it for future runs.
5e9f2524 1158# Also quote any args containing shell meta-characters.
79608eef 1159# Make two passes to allow for proper duplicate-argument suppression.
5e9f2524 1160ac_configure_args=
79608eef
VS
1161ac_configure_args0=
1162ac_configure_args1=
5e9f2524 1163ac_sep=
79608eef
VS
1164ac_must_keep_next=false
1165for ac_pass in 1 2
5e9f2524 1166do
79608eef
VS
1167 for ac_arg
1168 do
1169 case $ac_arg in
1170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 continue ;;
1174 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1175 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1176 esac
1177 case $ac_pass in
1178 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1179 2)
1180 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1181 if test $ac_must_keep_next = true; then
1182 ac_must_keep_next=false # Got value, back to normal.
1183 else
1184 case $ac_arg in
1185 *=* | --config-cache | -C | -disable-* | --disable-* \
1186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1188 | -with-* | --with-* | -without-* | --without-* | --x)
1189 case "$ac_configure_args0 " in
1190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1191 esac
1192 ;;
1193 -* ) ac_must_keep_next=true ;;
1194 esac
1195 fi
1196 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1197 # Get rid of the leading space.
1198 ac_sep=" "
1199 ;;
1200 esac
1201 done
5e9f2524 1202done
79608eef
VS
1203$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1204$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
5e9f2524
VS
1205
1206# When interrupted or exit'd, cleanup temporary files, and complete
1207# config.log. We remove comments because anyway the quotes in there
1208# would cause problems or look ugly.
1209# WARNING: Be sure not to use single quotes in there, as some shells,
1210# such as our DU 5.0 friend, will then `close' the trap.
1211trap 'exit_status=$?
1212 # Save into config.log some information that might help in debugging.
1213 {
1214 echo
79608eef 1215
5e9f2524
VS
1216 cat <<\_ASBOX
1217## ---------------- ##
1218## Cache variables. ##
1219## ---------------- ##
1220_ASBOX
1221 echo
1222 # The following way of writing the cache mishandles newlines in values,
1223{
1224 (set) 2>&1 |
1225 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1226 *ac_space=\ *)
1227 sed -n \
1228 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1230 ;;
1231 *)
1232 sed -n \
1233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1234 ;;
1235 esac;
1236}
1237 echo
79608eef
VS
1238
1239 cat <<\_ASBOX
1240## ----------------- ##
1241## Output variables. ##
1242## ----------------- ##
1243_ASBOX
1244 echo
1245 for ac_var in $ac_subst_vars
1246 do
1247 eval ac_val=$`echo $ac_var`
1248 echo "$ac_var='"'"'$ac_val'"'"'"
1249 done | sort
1250 echo
1251
1252 if test -n "$ac_subst_files"; then
1253 cat <<\_ASBOX
1254## ------------- ##
1255## Output files. ##
1256## ------------- ##
1257_ASBOX
1258 echo
1259 for ac_var in $ac_subst_files
1260 do
1261 eval ac_val=$`echo $ac_var`
1262 echo "$ac_var='"'"'$ac_val'"'"'"
1263 done | sort
1264 echo
1265 fi
1266
5e9f2524
VS
1267 if test -s confdefs.h; then
1268 cat <<\_ASBOX
1269## ----------- ##
1270## confdefs.h. ##
1271## ----------- ##
1272_ASBOX
1273 echo
79608eef 1274 sed "/^$/d" confdefs.h | sort
5e9f2524
VS
1275 echo
1276 fi
1277 test "$ac_signal" != 0 &&
1278 echo "$as_me: caught signal $ac_signal"
1279 echo "$as_me: exit $exit_status"
1280 } >&5
1281 rm -f core core.* *.core &&
1282 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1283 exit $exit_status
1284 ' 0
1285for ac_signal in 1 2 13 15; do
1286 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1287done
1288ac_signal=0
1289
1290# confdefs.h avoids OS command line length limits that DEFS can exceed.
1291rm -rf conftest* confdefs.h
1292# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1293echo >confdefs.h
1294
1295# Predefined preprocessor variables.
1296
1297cat >>confdefs.h <<_ACEOF
1298#define PACKAGE_NAME "$PACKAGE_NAME"
1299_ACEOF
1300
1301
1302cat >>confdefs.h <<_ACEOF
1303#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1304_ACEOF
1305
1306
1307cat >>confdefs.h <<_ACEOF
1308#define PACKAGE_VERSION "$PACKAGE_VERSION"
1309_ACEOF
1310
1311
1312cat >>confdefs.h <<_ACEOF
1313#define PACKAGE_STRING "$PACKAGE_STRING"
1314_ACEOF
1315
1316
1317cat >>confdefs.h <<_ACEOF
1318#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1319_ACEOF
1320
1321
1322# Let the site file select an alternate cache file if it wants to.
1323# Prefer explicitly selected file to automatically selected ones.
1324if test -z "$CONFIG_SITE"; then
1325 if test "x$prefix" != xNONE; then
1326 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1327 else
1328 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1329 fi
1330fi
1331for ac_site_file in $CONFIG_SITE; do
1332 if test -r "$ac_site_file"; then
1333 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1334echo "$as_me: loading site script $ac_site_file" >&6;}
1335 sed 's/^/| /' "$ac_site_file" >&5
1336 . "$ac_site_file"
1337 fi
1338done
1339
1340if test -r "$cache_file"; then
1341 # Some versions of bash will fail to source /dev/null (special
1342 # files actually), so we avoid doing that.
1343 if test -f "$cache_file"; then
1344 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1345echo "$as_me: loading cache $cache_file" >&6;}
1346 case $cache_file in
1347 [\\/]* | ?:[\\/]* ) . $cache_file;;
1348 *) . ./$cache_file;;
1349 esac
1350 fi
1351else
1352 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1353echo "$as_me: creating cache $cache_file" >&6;}
1354 >$cache_file
1355fi
1356
1357# Check that the precious variables saved in the cache have kept the same
1358# value.
1359ac_cache_corrupted=false
1360for ac_var in `(set) 2>&1 |
1361 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1363 eval ac_new_set=\$ac_env_${ac_var}_set
1364 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1365 eval ac_new_val="\$ac_env_${ac_var}_value"
1366 case $ac_old_set,$ac_new_set in
1367 set,)
1368 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1369echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1370 ac_cache_corrupted=: ;;
1371 ,set)
1372 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1373echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1374 ac_cache_corrupted=: ;;
1375 ,);;
1376 *)
1377 if test "x$ac_old_val" != "x$ac_new_val"; then
1378 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1379echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1380 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1381echo "$as_me: former value: $ac_old_val" >&2;}
1382 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1383echo "$as_me: current value: $ac_new_val" >&2;}
1384 ac_cache_corrupted=:
1385 fi;;
1386 esac
1387 # Pass precious variables to config.status.
1388 if test "$ac_new_set" = set; then
1389 case $ac_new_val in
1390 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1392 *) ac_arg=$ac_var=$ac_new_val ;;
1393 esac
1394 case " $ac_configure_args " in
1395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1396 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1397 esac
1398 fi
1399done
1400if $ac_cache_corrupted; then
1401 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1402echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1403 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1404echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1405 { (exit 1); exit 1; }; }
1406fi
1407
1408ac_ext=c
1409ac_cpp='$CPP $CPPFLAGS'
1410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1412ac_compiler_gnu=$ac_cv_c_compiler_gnu
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
5e9f2524
VS
1427
1428
1429
1430
1431
1432
1433
1434
1435ac_aux_dir=
1436for ac_dir in conftools $srcdir/conftools; do
1437 if test -f $ac_dir/install-sh; then
1438 ac_aux_dir=$ac_dir
1439 ac_install_sh="$ac_aux_dir/install-sh -c"
1440 break
1441 elif test -f $ac_dir/install.sh; then
1442 ac_aux_dir=$ac_dir
1443 ac_install_sh="$ac_aux_dir/install.sh -c"
1444 break
1445 elif test -f $ac_dir/shtool; then
1446 ac_aux_dir=$ac_dir
1447 ac_install_sh="$ac_aux_dir/shtool install -c"
1448 break
1449 fi
1450done
1451if test -z "$ac_aux_dir"; then
1452 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1453echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1454 { (exit 1); exit 1; }; }
1455fi
1456ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1457ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1458ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1459
1460
1461
1462
1463LIBCURRENT=4
1464LIBREVISION=0
1465LIBAGE=4
1466
79608eef 1467 ac_config_headers="$ac_config_headers expat_config.h"
5e9f2524
VS
1468
1469
1470# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
1471## Copyright 1996, 1997, 1998, 1999, 2000, 2001
1472## Free Software Foundation, Inc.
1473## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1474##
1475## This program is free software; you can redistribute it and/or modify
1476## it under the terms of the GNU General Public License as published by
1477## the Free Software Foundation; either version 2 of the License, or
1478## (at your option) any later version.
1479##
1480## This program is distributed in the hope that it will be useful, but
1481## WITHOUT ANY WARRANTY; without even the implied warranty of
1482## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1483## General Public License for more details.
1484##
1485## You should have received a copy of the GNU General Public License
1486## along with this program; if not, write to the Free Software
1487## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1488##
1489## As a special exception to the GNU General Public License, if you
1490## distribute this file as part of a program that contains a
1491## configuration script generated by Autoconf, you may include it under
1492## the same distribution terms that you use for the rest of that program.
1493
1494# serial 46 AC_PROG_LIBTOOL
1495
1496
1497
1498
1499
1500# AC_LIBTOOL_HEADER_ASSERT
1501# ------------------------
1502# AC_LIBTOOL_HEADER_ASSERT
1503
1504# _LT_AC_CHECK_DLFCN
1505# --------------------
1506# _LT_AC_CHECK_DLFCN
1507
1508# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1509# ---------------------------------
1510 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1511
1512# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1513# ---------------------------------
1514# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1515
1516# _LT_AC_PROG_ECHO_BACKSLASH
1517# --------------------------
1518# Add some code to the start of the generated configure script which
1519# will find an echo command which doesn't interpret backslashes.
1520# _LT_AC_PROG_ECHO_BACKSLASH
1521
1522# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1523# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1524# ------------------------------------------------------------------
1525# _LT_AC_TRY_DLOPEN_SELF
1526
1527# AC_LIBTOOL_DLOPEN_SELF
1528# -------------------
1529# AC_LIBTOOL_DLOPEN_SELF
1530
1531# _LT_AC_LTCONFIG_HACK
1532
1533# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
1534
1535
1536# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
1537
1538
1539# AC_ENABLE_SHARED - implement the --enable-shared flag
1540# Usage: AC_ENABLE_SHARED[(DEFAULT)]
1541# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1542# `yes'.
1543
1544
1545# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
1546
1547
1548# AC_ENABLE_STATIC - implement the --enable-static flag
1549# Usage: AC_ENABLE_STATIC[(DEFAULT)]
1550# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1551# `yes'.
1552
1553
1554# AC_DISABLE_STATIC - set the default static flag to --disable-static
1555
1556
1557
1558# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
1559# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
1560# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1561# `yes'.
1562
1563
1564# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
1565
1566
1567# AC_LIBTOOL_PICMODE - implement the --with-pic flag
1568# Usage: AC_LIBTOOL_PICMODE[(MODE)]
1569# Where MODE is either `yes' or `no'. If omitted, it defaults to
1570# `both'.
1571
1572
1573
1574# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
1575
1576
1577
1578# AC_PATH_MAGIC - find a file program which can recognise a shared library
1579
1580
1581
1582# AC_PROG_LD - find the path to the GNU or non-GNU linker
1583
1584
1585# AC_PROG_LD_GNU -
1586
1587
1588# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
1589# -- PORTME Some linkers may need a different reload flag.
1590
1591
1592# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
1593# -- PORTME fill in with the dynamic library characteristics
1594
1595
1596
1597# AC_PROG_NM - find the path to a BSD-compatible name lister
1598
1599
1600# AC_CHECK_LIBM - check for math library
1601
1602
1603# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1604# the libltdl convenience library and INCLTDL to the include flags for
1605# the libltdl header and adds --enable-ltdl-convenience to the
1606# configure arguments. Note that LIBLTDL and INCLTDL are not
1607# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
1608# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
1609# with '${top_builddir}/' and INCLTDL will be prefixed with
1610# '${top_srcdir}/' (note the single quotes!). If your package is not
1611# flat and you're not using automake, define top_builddir and
1612# top_srcdir appropriately in the Makefiles.
1613
1614
1615# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1616# the libltdl installable library and INCLTDL to the include flags for
1617# the libltdl header and adds --enable-ltdl-install to the configure
1618# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
1619# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
1620# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
1621# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
1622# with '${top_srcdir}/' (note the single quotes!). If your package is
1623# not flat and you're not using automake, define top_builddir and
1624# top_srcdir appropriately in the Makefiles.
1625# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1626
1627
1628# old names
1629
1630
1631
1632
1633
1634
1635
1636
1637# This is just to silence aclocal about the macro not being used
1638
1639
1640
1641
1642
1643
1644# Check whether --enable-shared or --disable-shared was given.
1645if test "${enable_shared+set}" = set; then
1646 enableval="$enable_shared"
1647 p=${PACKAGE-default}
1648case $enableval in
1649yes) enable_shared=yes ;;
1650no) enable_shared=no ;;
1651*)
1652 enable_shared=no
1653 # Look at the argument we got. We use all the common list separators.
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1655 for pkg in $enableval; do
1656 if test "X$pkg" = "X$p"; then
1657 enable_shared=yes
1658 fi
1659 done
1660 IFS="$ac_save_ifs"
1661 ;;
1662esac
1663else
1664 enable_shared=yes
1665fi;
1666# Check whether --enable-static or --disable-static was given.
1667if test "${enable_static+set}" = set; then
1668 enableval="$enable_static"
1669 p=${PACKAGE-default}
1670case $enableval in
1671yes) enable_static=yes ;;
1672no) enable_static=no ;;
1673*)
1674 enable_static=no
1675 # Look at the argument we got. We use all the common list separators.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1677 for pkg in $enableval; do
1678 if test "X$pkg" = "X$p"; then
1679 enable_static=yes
1680 fi
1681 done
1682 IFS="$ac_save_ifs"
1683 ;;
1684esac
1685else
1686 enable_static=yes
1687fi;
1688# Check whether --enable-fast-install or --disable-fast-install was given.
1689if test "${enable_fast_install+set}" = set; then
1690 enableval="$enable_fast_install"
1691 p=${PACKAGE-default}
1692case $enableval in
1693yes) enable_fast_install=yes ;;
1694no) enable_fast_install=no ;;
1695*)
1696 enable_fast_install=no
1697 # Look at the argument we got. We use all the common list separators.
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1699 for pkg in $enableval; do
1700 if test "X$pkg" = "X$p"; then
1701 enable_fast_install=yes
1702 fi
1703 done
1704 IFS="$ac_save_ifs"
1705 ;;
1706esac
1707else
1708 enable_fast_install=yes
1709fi;
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714 { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721 ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723 ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727 { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731 { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742echo "$as_me:$LINENO: checking host system type" >&5
1743echo $ECHO_N "checking host system type... $ECHO_C" >&6
1744if test "${ac_cv_host+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746else
1747 ac_cv_host_alias=$host_alias
1748test -z "$ac_cv_host_alias" &&
1749 ac_cv_host_alias=$ac_cv_build_alias
1750ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1751 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1752echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1753 { (exit 1); exit 1; }; }
1754
1755fi
1756echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1757echo "${ECHO_T}$ac_cv_host" >&6
1758host=$ac_cv_host
1759host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762
1763
1764ac_ext=c
1765ac_cpp='$CPP $CPPFLAGS'
1766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1768ac_compiler_gnu=$ac_cv_c_compiler_gnu
1769if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1771set dummy ${ac_tool_prefix}gcc; ac_word=$2
1772echo "$as_me:$LINENO: checking for $ac_word" >&5
1773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774if test "${ac_cv_prog_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC="$CC" # Let the user override the test.
1779else
1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781for as_dir in $PATH
1782do
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791done
1792done
1793
1794fi
1795fi
1796CC=$ac_cv_prog_CC
1797if test -n "$CC"; then
1798 echo "$as_me:$LINENO: result: $CC" >&5
1799echo "${ECHO_T}$CC" >&6
1800else
1801 echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
1803fi
1804
1805fi
1806if test -z "$ac_cv_prog_CC"; then
1807 ac_ct_CC=$CC
1808 # Extract the first word of "gcc", so it can be a program name with args.
1809set dummy gcc; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 if test -n "$ac_ct_CC"; then
1816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_CC="gcc"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829done
1830done
1831
1832fi
1833fi
1834ac_ct_CC=$ac_cv_prog_ac_ct_CC
1835if test -n "$ac_ct_CC"; then
1836 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1837echo "${ECHO_T}$ac_ct_CC" >&6
1838else
1839 echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843 CC=$ac_ct_CC
1844else
1845 CC="$ac_cv_prog_CC"
1846fi
1847
1848if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1851set dummy ${ac_tool_prefix}cc; ac_word=$2
1852echo "$as_me:$LINENO: checking for $ac_word" >&5
1853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859else
1860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="${ac_tool_prefix}cc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871done
1872done
1873
1874fi
1875fi
1876CC=$ac_cv_prog_CC
1877if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879echo "${ECHO_T}$CC" >&6
1880else
1881 echo "$as_me:$LINENO: result: no" >&5
1882echo "${ECHO_T}no" >&6
1883fi
1884
1885fi
1886if test -z "$ac_cv_prog_CC"; then
1887 ac_ct_CC=$CC
1888 # Extract the first word of "cc", so it can be a program name with args.
1889set dummy cc; ac_word=$2
1890echo "$as_me:$LINENO: checking for $ac_word" >&5
1891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897else
1898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899for as_dir in $PATH
1900do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC="cc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909done
1910done
1911
1912fi
1913fi
1914ac_ct_CC=$ac_cv_prog_ac_ct_CC
1915if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917echo "${ECHO_T}$ac_ct_CC" >&6
1918else
1919 echo "$as_me:$LINENO: result: no" >&5
1920echo "${ECHO_T}no" >&6
1921fi
1922
1923 CC=$ac_ct_CC
1924else
1925 CC="$ac_cv_prog_CC"
1926fi
1927
1928fi
1929if test -z "$CC"; then
1930 # Extract the first word of "cc", so it can be a program name with args.
1931set dummy cc; ac_word=$2
1932echo "$as_me:$LINENO: checking for $ac_word" >&5
1933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1939else
1940 ac_prog_rejected=no
1941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942for as_dir in $PATH
1943do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1949 ac_prog_rejected=yes
1950 continue
1951 fi
1952 ac_cv_prog_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956done
1957done
1958
1959if test $ac_prog_rejected = yes; then
1960 # We found a bogon in the path, so make sure we never use it.
1961 set dummy $ac_cv_prog_CC
1962 shift
1963 if test $# != 0; then
1964 # We chose a different compiler from the bogus one.
1965 # However, it has the same basename, so the bogon will be chosen
1966 # first if we set CC to just the basename; use the full file name.
1967 shift
79608eef 1968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5e9f2524
VS
1969 fi
1970fi
1971fi
1972fi
1973CC=$ac_cv_prog_CC
1974if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976echo "${ECHO_T}$CC" >&6
1977else
1978 echo "$as_me:$LINENO: result: no" >&5
1979echo "${ECHO_T}no" >&6
1980fi
1981
1982fi
1983if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1985 for ac_prog in cl
1986 do
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1989echo "$as_me:$LINENO: checking for $ac_word" >&5
1990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1996else
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2007 fi
2008done
2009done
2010
2011fi
2012fi
2013CC=$ac_cv_prog_CC
2014if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016echo "${ECHO_T}$CC" >&6
2017else
2018 echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6
2020fi
2021
2022 test -n "$CC" && break
2023 done
2024fi
2025if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl
2028do
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030set dummy $ac_prog; ac_word=$2
2031echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038else
2039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_ac_ct_CC="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050done
2051done
2052
2053fi
2054fi
2055ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056if test -n "$ac_ct_CC"; then
2057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058echo "${ECHO_T}$ac_ct_CC" >&6
2059else
2060 echo "$as_me:$LINENO: result: no" >&5
2061echo "${ECHO_T}no" >&6
2062fi
2063
2064 test -n "$ac_ct_CC" && break
2065done
2066
2067 CC=$ac_ct_CC
2068fi
2069
2070fi
2071
2072
79608eef
VS
2073test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074See \`config.log' for more details." >&5
2075echo "$as_me: error: no acceptable C compiler found in \$PATH
2076See \`config.log' for more details." >&2;}
5e9f2524
VS
2077 { (exit 1); exit 1; }; }
2078
2079# Provide some information about the compiler.
2080echo "$as_me:$LINENO:" \
2081 "checking for C compiler version" >&5
2082ac_compiler=`set X $ac_compile; echo $2`
2083{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2084 (eval $ac_compiler --version </dev/null >&5) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2089 (eval $ac_compiler -v </dev/null >&5) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2094 (eval $ac_compiler -V </dev/null >&5) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098
2099cat >conftest.$ac_ext <<_ACEOF
2100#line $LINENO "configure"
79608eef
VS
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
5e9f2524 2106
5e9f2524
VS
2107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115ac_clean_files_save=$ac_clean_files
79608eef 2116ac_clean_files="$ac_clean_files a.out a.exe b.out"
5e9f2524
VS
2117# Try to create an executable without -o first, disregard a.out.
2118# It will help us diagnose broken compilers, and finding out an intuition
2119# of exeext.
2120echo "$as_me:$LINENO: checking for C compiler default output" >&5
2121echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2122ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2124 (eval $ac_link_default) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 # Find the output, starting from the most likely. This scheme is
2129# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130# resort.
2131
2132# Be careful to initialize this variable, since it used to be cached.
2133# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134ac_cv_exeext=
79608eef
VS
2135# b.out is created by i960 compilers.
2136for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2137do
2138 test -f "$ac_file" || continue
5e9f2524 2139 case $ac_file in
79608eef
VS
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 ;;
2142 conftest.$ac_ext )
2143 # This is the source file.
2144 ;;
2145 [ab].out )
2146 # We found the default executable, but exeext='' is most
2147 # certainly right.
2148 break;;
2149 *.* )
2150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2151 # FIXME: I believe we export ac_cv_exeext for Libtool,
2152 # but it would be cool to find out if it's true. Does anybody
2153 # maintain Libtool? --akim.
2154 export ac_cv_exeext
2155 break;;
2156 * )
2157 break;;
5e9f2524
VS
2158 esac
2159done
2160else
2161 echo "$as_me: failed program was:" >&5
79608eef
VS
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: C compiler cannot create executables
2167See \`config.log' for more details." >&2;}
5e9f2524
VS
2168 { (exit 77); exit 77; }; }
2169fi
2170
2171ac_exeext=$ac_cv_exeext
2172echo "$as_me:$LINENO: result: $ac_file" >&5
2173echo "${ECHO_T}$ac_file" >&6
2174
2175# Check the compiler produces executables we can run. If not, either
2176# the compiler is broken, or we cross compile.
2177echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2178echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2179# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2180# If not cross compiling, check that we can run a simple program.
2181if test "$cross_compiling" != yes; then
2182 if { ac_try='./$ac_file'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 cross_compiling=no
2189 else
2190 if test "$cross_compiling" = maybe; then
2191 cross_compiling=yes
2192 else
2193 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
79608eef
VS
2194If you meant to cross compile, use \`--host'.
2195See \`config.log' for more details." >&5
5e9f2524 2196echo "$as_me: error: cannot run C compiled programs.
79608eef
VS
2197If you meant to cross compile, use \`--host'.
2198See \`config.log' for more details." >&2;}
5e9f2524
VS
2199 { (exit 1); exit 1; }; }
2200 fi
2201 fi
2202fi
2203echo "$as_me:$LINENO: result: yes" >&5
2204echo "${ECHO_T}yes" >&6
2205
79608eef 2206rm -f a.out a.exe conftest$ac_cv_exeext b.out
5e9f2524
VS
2207ac_clean_files=$ac_clean_files_save
2208# Check the compiler produces executables we can run. If not, either
2209# the compiler is broken, or we cross compile.
2210echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2211echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2212echo "$as_me:$LINENO: result: $cross_compiling" >&5
2213echo "${ECHO_T}$cross_compiling" >&6
2214
2215echo "$as_me:$LINENO: checking for suffix of executables" >&5
2216echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2218 (eval $ac_link) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2223# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2224# work properly (i.e., refer to `conftest.exe'), while it won't with
2225# `rm'.
79608eef
VS
2226for ac_file in conftest.exe conftest conftest.*; do
2227 test -f "$ac_file" || continue
5e9f2524 2228 case $ac_file in
79608eef 2229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
5e9f2524
VS
2230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 export ac_cv_exeext
2232 break;;
2233 * ) break;;
2234 esac
2235done
2236else
79608eef
VS
2237 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2240See \`config.log' for more details." >&2;}
5e9f2524
VS
2241 { (exit 1); exit 1; }; }
2242fi
2243
2244rm -f conftest$ac_cv_exeext
2245echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2246echo "${ECHO_T}$ac_cv_exeext" >&6
2247
2248rm -f conftest.$ac_ext
2249EXEEXT=$ac_cv_exeext
2250ac_exeext=$EXEEXT
2251echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256 cat >conftest.$ac_ext <<_ACEOF
2257#line $LINENO "configure"
79608eef
VS
2258/* confdefs.h. */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h. */
5e9f2524 2263
5e9f2524
VS
2264int
2265main ()
2266{
2267
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272rm -f conftest.o conftest.obj
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 case $ac_file in
79608eef 2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
5e9f2524
VS
2281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 break;;
2283 esac
2284done
2285else
2286 echo "$as_me: failed program was:" >&5
79608eef
VS
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292See \`config.log' for more details." >&2;}
5e9f2524
VS
2293 { (exit 1); exit 1; }; }
2294fi
2295
2296rm -f conftest.$ac_cv_objext conftest.$ac_ext
2297fi
2298echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299echo "${ECHO_T}$ac_cv_objext" >&6
2300OBJEXT=$ac_cv_objext
2301ac_objext=$OBJEXT
2302echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306else
2307 cat >conftest.$ac_ext <<_ACEOF
2308#line $LINENO "configure"
79608eef
VS
2309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h. */
5e9f2524 2314
5e9f2524
VS
2315int
2316main ()
2317{
2318#ifndef __GNUC__
2319 choke me
2320#endif
2321
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326rm -f conftest.$ac_objext
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 ac_compiler_gnu=yes
2339else
2340 echo "$as_me: failed program was:" >&5
79608eef
VS
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
5e9f2524
VS
2343ac_compiler_gnu=no
2344fi
2345rm -f conftest.$ac_objext conftest.$ac_ext
2346ac_cv_c_compiler_gnu=$ac_compiler_gnu
2347
2348fi
2349echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2350echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2351GCC=`test $ac_compiler_gnu = yes && echo yes`
2352ac_test_CFLAGS=${CFLAGS+set}
2353ac_save_CFLAGS=$CFLAGS
2354CFLAGS="-g"
2355echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2356echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2357if test "${ac_cv_prog_cc_g+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 cat >conftest.$ac_ext <<_ACEOF
2361#line $LINENO "configure"
79608eef
VS
2362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
5e9f2524 2367
5e9f2524
VS
2368int
2369main ()
2370{
2371
2372 ;
2373 return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 ac_cv_prog_cc_g=yes
2389else
2390 echo "$as_me: failed program was:" >&5
79608eef
VS
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
5e9f2524
VS
2393ac_cv_prog_cc_g=no
2394fi
2395rm -f conftest.$ac_objext conftest.$ac_ext
2396fi
2397echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2398echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2399if test "$ac_test_CFLAGS" = set; then
2400 CFLAGS=$ac_save_CFLAGS
2401elif test $ac_cv_prog_cc_g = yes; then
2402 if test "$GCC" = yes; then
2403 CFLAGS="-g -O2"
2404 else
2405 CFLAGS="-g"
2406 fi
2407else
2408 if test "$GCC" = yes; then
2409 CFLAGS="-O2"
2410 else
2411 CFLAGS=
2412 fi
2413fi
79608eef
VS
2414echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2415echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2416if test "${ac_cv_prog_cc_stdc+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419 ac_cv_prog_cc_stdc=no
2420ac_save_CC=$CC
2421cat >conftest.$ac_ext <<_ACEOF
2422#line $LINENO "configure"
2423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h. */
2428#include <stdarg.h>
2429#include <stdio.h>
2430#include <sys/types.h>
2431#include <sys/stat.h>
2432/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2433struct buf { int x; };
2434FILE * (*rcsopen) (struct buf *, struct stat *, int);
2435static char *e (p, i)
2436 char **p;
2437 int i;
2438{
2439 return p[i];
2440}
2441static char *f (char * (*g) (char **, int), char **p, ...)
2442{
2443 char *s;
2444 va_list v;
2445 va_start (v,p);
2446 s = g (p, va_arg (v,int));
2447 va_end (v);
2448 return s;
2449}
2450int test (int i, double x);
2451struct s1 {int (*f) (int a);};
2452struct s2 {int (*f) (double a);};
2453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454int argc;
2455char **argv;
2456int
2457main ()
2458{
2459return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464# Don't try gcc -ansi; that turns off useful extensions and
2465# breaks some systems' header files.
2466# AIX -qlanglvl=ansi
2467# Ultrix and OSF/1 -std1
2468# HP-UX 10.20 and later -Ae
2469# HP-UX older versions -Aa -D_HPUX_SOURCE
2470# SVR4 -Xc -D__EXTENSIONS__
2471for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2472do
2473 CC="$ac_save_CC $ac_arg"
2474 rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cc_stdc=$ac_arg
2487break
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.$ac_objext
2494done
2495rm -f conftest.$ac_ext conftest.$ac_objext
2496CC=$ac_save_CC
2497
2498fi
2499
2500case "x$ac_cv_prog_cc_stdc" in
2501 x|xno)
2502 echo "$as_me:$LINENO: result: none needed" >&5
2503echo "${ECHO_T}none needed" >&6 ;;
2504 *)
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507 CC="$CC $ac_cv_prog_cc_stdc" ;;
2508esac
2509
5e9f2524
VS
2510# Some people use a C++ compiler to compile C. Since we use `exit',
2511# in C++ we need to declare it. In case someone uses the same compiler
2512# for both compiling C and C++ we need to have the C++ compiler decide
2513# the declaration of exit, since it's the most demanding environment.
2514cat >conftest.$ac_ext <<_ACEOF
2515#ifndef __cplusplus
2516 choke me
2517#endif
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 for ac_declaration in \
2532 ''\
2533 '#include <stdlib.h>' \
2534 'extern "C" void std::exit (int) throw (); using std::exit;' \
2535 'extern "C" void std::exit (int); using std::exit;' \
2536 'extern "C" void exit (int) throw ();' \
2537 'extern "C" void exit (int);' \
2538 'void exit (int);'
2539do
2540 cat >conftest.$ac_ext <<_ACEOF
2541#line $LINENO "configure"
79608eef
VS
2542/* confdefs.h. */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h. */
5e9f2524
VS
2547#include <stdlib.h>
2548$ac_declaration
5e9f2524
VS
2549int
2550main ()
2551{
2552exit (42);
2553 ;
2554 return 0;
2555}
2556_ACEOF
2557rm -f conftest.$ac_objext
2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 :
2570else
2571 echo "$as_me: failed program was:" >&5
79608eef
VS
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
5e9f2524
VS
2574continue
2575fi
2576rm -f conftest.$ac_objext conftest.$ac_ext
2577 cat >conftest.$ac_ext <<_ACEOF
2578#line $LINENO "configure"
79608eef
VS
2579/* confdefs.h. */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h. */
5e9f2524 2584$ac_declaration
5e9f2524
VS
2585int
2586main ()
2587{
2588exit (42);
2589 ;
2590 return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 break
2606else
2607 echo "$as_me: failed program was:" >&5
79608eef
VS
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
5e9f2524
VS
2610fi
2611rm -f conftest.$ac_objext conftest.$ac_ext
2612done
2613rm -f conftest*
2614if test -n "$ac_declaration"; then
2615 echo '#ifdef __cplusplus' >>confdefs.h
2616 echo $ac_declaration >>confdefs.h
2617 echo '#endif' >>confdefs.h
2618fi
2619
2620else
2621 echo "$as_me: failed program was:" >&5
79608eef
VS
2622sed 's/^/| /' conftest.$ac_ext >&5
2623
5e9f2524
VS
2624fi
2625rm -f conftest.$ac_objext conftest.$ac_ext
2626ac_ext=c
2627ac_cpp='$CPP $CPPFLAGS'
2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632# Find the correct PATH separator. Usually this is `:', but
2633# DJGPP uses `;' like DOS.
2634if test "X${PATH_SEPARATOR+set}" != Xset; then
2635 UNAME=${UNAME-`uname 2>/dev/null`}
2636 case X$UNAME in
2637 *-DOS) lt_cv_sys_path_separator=';' ;;
2638 *) lt_cv_sys_path_separator=':' ;;
2639 esac
2640 PATH_SEPARATOR=$lt_cv_sys_path_separator
2641fi
2642
2643
2644# Check whether --with-gnu-ld or --without-gnu-ld was given.
2645if test "${with_gnu_ld+set}" = set; then
2646 withval="$with_gnu_ld"
2647 test "$withval" = no || with_gnu_ld=yes
2648else
2649 with_gnu_ld=no
2650fi;
2651ac_prog=ld
2652if test "$GCC" = yes; then
2653 # Check if gcc -print-prog-name=ld gives a path.
2654 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2655echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2656 case $host in
2657 *-*-mingw*)
2658 # gcc leaves a trailing carriage return which upsets mingw
2659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2660 *)
2661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2662 esac
2663 case $ac_prog in
2664 # Accept absolute paths.
2665 [\\/]* | [A-Za-z]:[\\/]*)
2666 re_direlt='/[^/][^/]*/\.\./'
2667 # Canonicalize the path of ld
2668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2671 done
2672 test -z "$LD" && LD="$ac_prog"
2673 ;;
2674 "")
2675 # If it fails, then pretend we aren't using GCC.
2676 ac_prog=ld
2677 ;;
2678 *)
2679 # If it is relative, then search for the first ld in PATH.
2680 with_gnu_ld=unknown
2681 ;;
2682 esac
2683elif test "$with_gnu_ld" = yes; then
2684 echo "$as_me:$LINENO: checking for GNU ld" >&5
2685echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2686else
2687 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2688echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2689fi
2690if test "${lt_cv_path_LD+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692else
2693 if test -z "$LD"; then
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2695 for ac_dir in $PATH; do
2696 test -z "$ac_dir" && ac_dir=.
2697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2698 lt_cv_path_LD="$ac_dir/$ac_prog"
2699 # Check to see if the program is GNU ld. I'd rather use --version,
2700 # but apparently some GNU ld's only accept -v.
2701 # Break only if it was the GNU/non-GNU ld that we prefer.
2702 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2703 test "$with_gnu_ld" != no && break
2704 else
2705 test "$with_gnu_ld" != yes && break
2706 fi
2707 fi
2708 done
2709 IFS="$ac_save_ifs"
2710else
2711 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2712fi
2713fi
2714
2715LD="$lt_cv_path_LD"
2716if test -n "$LD"; then
2717 echo "$as_me:$LINENO: result: $LD" >&5
2718echo "${ECHO_T}$LD" >&6
2719else
2720 echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6
2722fi
2723test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2724echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2725 { (exit 1); exit 1; }; }
2726echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2727echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2728if test "${lt_cv_prog_gnu_ld+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730else
2731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2732if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2733 lt_cv_prog_gnu_ld=yes
2734else
2735 lt_cv_prog_gnu_ld=no
2736fi
2737fi
2738echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2739echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2740with_gnu_ld=$lt_cv_prog_gnu_ld
2741
2742
2743echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2744echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2745if test "${lt_cv_ld_reload_flag+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747else
2748 lt_cv_ld_reload_flag='-r'
2749fi
2750echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2751echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2752reload_flag=$lt_cv_ld_reload_flag
2753test -n "$reload_flag" && reload_flag=" $reload_flag"
2754
2755echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2756echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2757if test "${lt_cv_path_NM+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760 if test -n "$NM"; then
2761 # Let the user override the test.
2762 lt_cv_path_NM="$NM"
2763else
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2765 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2766 test -z "$ac_dir" && ac_dir=.
2767 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2768 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2769 # Check to see if the nm accepts a BSD-compat flag.
2770 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2771 # nm: unknown option "B" ignored
2772 # Tru64's nm complains that /dev/null is an invalid object file
2773 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2774 lt_cv_path_NM="$tmp_nm -B"
2775 break
2776 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2777 lt_cv_path_NM="$tmp_nm -p"
2778 break
2779 else
2780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2781 continue # so that we can try to find one that supports BSD flags
2782 fi
2783 fi
2784 done
2785 IFS="$ac_save_ifs"
2786 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2787fi
2788fi
2789
2790NM="$lt_cv_path_NM"
2791echo "$as_me:$LINENO: result: $NM" >&5
2792echo "${ECHO_T}$NM" >&6
2793
2794echo "$as_me:$LINENO: checking whether ln -s works" >&5
2795echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2796LN_S=$as_ln_s
2797if test "$LN_S" = "ln -s"; then
2798 echo "$as_me:$LINENO: result: yes" >&5
2799echo "${ECHO_T}yes" >&6
2800else
2801 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2802echo "${ECHO_T}no, using $LN_S" >&6
2803fi
2804
2805echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2806echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2807if test "${lt_cv_deplibs_check_method+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 lt_cv_file_magic_cmd='$MAGIC_CMD'
2811lt_cv_file_magic_test_file=
2812lt_cv_deplibs_check_method='unknown'
2813# Need to set the preceding variable on all platforms that support
2814# interlibrary dependencies.
2815# 'none' -- dependencies not supported.
2816# `unknown' -- same as none, but documents that we really don't know.
2817# 'pass_all' -- all dependencies passed with no checks.
2818# 'test_compile' -- check by making test program.
2819# 'file_magic [[regex]]' -- check by looking for files in library path
2820# which responds to the $file_magic_cmd with a given egrep regex.
2821# If you have `file' or equivalent on your system and you're not sure
2822# whether `pass_all' will *always* work, you probably want this one.
2823
2824case $host_os in
2825aix4* | aix5*)
2826 lt_cv_deplibs_check_method=pass_all
2827 ;;
2828
2829beos*)
2830 lt_cv_deplibs_check_method=pass_all
2831 ;;
2832
2833bsdi4*)
2834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2835 lt_cv_file_magic_cmd='/usr/bin/file -L'
2836 lt_cv_file_magic_test_file=/shlib/libc.so
2837 ;;
2838
2839cygwin* | mingw* | pw32*)
2840 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2841 lt_cv_file_magic_cmd='$OBJDUMP -f'
2842 ;;
2843
2844darwin* | rhapsody*)
2845 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2846 lt_cv_file_magic_cmd='/usr/bin/file -L'
2847 case "$host_os" in
2848 rhapsody* | darwin1.[012])
2849 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2850 ;;
2851 *) # Darwin 1.3 on
2852 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2853 ;;
2854 esac
2855 ;;
2856
2857freebsd*)
2858 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2859 case $host_cpu in
2860 i*86 )
2861 # Not sure whether the presence of OpenBSD here was a mistake.
2862 # Let's accept both of them until this is cleared up.
2863 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2864 lt_cv_file_magic_cmd=/usr/bin/file
2865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2866 ;;
2867 esac
2868 else
2869 lt_cv_deplibs_check_method=pass_all
2870 fi
2871 ;;
2872
2873gnu*)
2874 lt_cv_deplibs_check_method=pass_all
2875 ;;
2876
2877hpux10.20*|hpux11*)
2878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2879 lt_cv_file_magic_cmd=/usr/bin/file
2880 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2881 ;;
2882
2883irix5* | irix6*)
2884 case $host_os in
2885 irix5*)
2886 # this will be overridden with pass_all, but let us keep it just in case
2887 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2888 ;;
2889 *)
2890 case $LD in
2891 *-32|*"-32 ") libmagic=32-bit;;
2892 *-n32|*"-n32 ") libmagic=N32;;
2893 *-64|*"-64 ") libmagic=64-bit;;
2894 *) libmagic=never-match;;
2895 esac
2896 # this will be overridden with pass_all, but let us keep it just in case
2897 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2898 ;;
2899 esac
2900 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2901 lt_cv_deplibs_check_method=pass_all
2902 ;;
2903
2904# This must be Linux ELF.
2905linux-gnu*)
2906 case $host_cpu in
2907 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2908 lt_cv_deplibs_check_method=pass_all ;;
2909 *)
2910 # glibc up to 2.1.1 does not perform some relocations on ARM
2911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2912 esac
2913 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2914 ;;
2915
2916netbsd*)
2917 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2918 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2919 else
2920 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2921 fi
2922 ;;
2923
2924newos6*)
2925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2926 lt_cv_file_magic_cmd=/usr/bin/file
2927 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2928 ;;
2929
2930openbsd*)
2931 lt_cv_file_magic_cmd=/usr/bin/file
2932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2935 else
2936 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2937 fi
2938 ;;
2939
2940osf3* | osf4* | osf5*)
2941 # this will be overridden with pass_all, but let us keep it just in case
2942 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2943 lt_cv_file_magic_test_file=/shlib/libc.so
2944 lt_cv_deplibs_check_method=pass_all
2945 ;;
2946
2947sco3.2v5*)
2948 lt_cv_deplibs_check_method=pass_all
2949 ;;
2950
2951solaris*)
2952 lt_cv_deplibs_check_method=pass_all
2953 lt_cv_file_magic_test_file=/lib/libc.so
2954 ;;
2955
2956sysv5uw[78]* | sysv4*uw2*)
2957 lt_cv_deplibs_check_method=pass_all
2958 ;;
2959
2960sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2961 case $host_vendor in
2962 motorola)
2963 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]'
2964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2965 ;;
2966 ncr)
2967 lt_cv_deplibs_check_method=pass_all
2968 ;;
2969 sequent)
2970 lt_cv_file_magic_cmd='/bin/file'
2971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2972 ;;
2973 sni)
2974 lt_cv_file_magic_cmd='/bin/file'
2975 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2976 lt_cv_file_magic_test_file=/lib/libc.so
2977 ;;
2978 esac
2979 ;;
2980esac
2981
2982fi
2983echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2984echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2985file_magic_cmd=$lt_cv_file_magic_cmd
2986deplibs_check_method=$lt_cv_deplibs_check_method
2987
2988
2989
2990
2991
2992
2993
2994
2995# Check for command to grab the raw symbol name followed by C symbol from nm.
2996echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2997echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2998if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001
3002# These are sane defaults that work on at least a few old systems.
3003# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3004
3005# Character class describing NM global symbol codes.
3006symcode='[BCDEGRST]'
3007
3008# Regexp to match symbols that can be accessed directly from C.
3009sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3010
3011# Transform the above into a raw symbol and a C symbol.
3012symxfrm='\1 \2\3 \3'
3013
3014# Transform an extracted symbol line into a proper C declaration
3015lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3016
3017# Transform an extracted symbol line into symbol name and symbol address
3018lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3019
3020# Define system-specific variables.
3021case $host_os in
3022aix*)
3023 symcode='[BCDT]'
3024 ;;
3025cygwin* | mingw* | pw32*)
3026 symcode='[ABCDGISTW]'
3027 ;;
3028hpux*) # Its linker distinguishes data from code symbols
3029 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3030 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'"
3031 ;;
3032irix*)
3033 symcode='[BCDEGRST]'
3034 ;;
3035solaris* | sysv5*)
3036 symcode='[BDT]'
3037 ;;
3038sysv4)
3039 symcode='[DFNSTU]'
3040 ;;
3041esac
3042
3043# Handle CRLF in mingw tool chain
3044opt_cr=
3045case $host_os in
3046mingw*)
3047 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3048 ;;
3049esac
3050
3051# If we're using GNU nm, then use its standard symbol codes.
3052if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3053 symcode='[ABCDGISTW]'
3054fi
3055
3056# Try without a prefix undercore, then with it.
3057for ac_symprfx in "" "_"; do
3058
3059 # Write the raw and C identifiers.
3060lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3061
3062 # Check to see that the pipe works correctly.
3063 pipe_works=no
3064 rm -f conftest*
3065 cat > conftest.$ac_ext <<EOF
3066#ifdef __cplusplus
3067extern "C" {
3068#endif
3069char nm_test_var;
3070void nm_test_func(){}
3071#ifdef __cplusplus
3072}
3073#endif
3074int main(){nm_test_var='a';nm_test_func();return(0);}
3075EOF
3076
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # Now try to grab the symbols.
3083 nlist=conftest.nm
3084 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3085 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } && test -s "$nlist"; then
3089 # Try sorting and uniquifying the output.
3090 if sort "$nlist" | uniq > "$nlist"T; then
3091 mv -f "$nlist"T "$nlist"
3092 else
3093 rm -f "$nlist"T
3094 fi
3095
3096 # Make sure that we snagged all the symbols we need.
3097 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3098 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3099 cat <<EOF > conftest.$ac_ext
3100#ifdef __cplusplus
3101extern "C" {
3102#endif
3103
3104EOF
3105 # Now generate the symbol file.
3106 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3107
3108 cat <<EOF >> conftest.$ac_ext
3109#if defined (__STDC__) && __STDC__
3110# define lt_ptr void *
3111#else
3112# define lt_ptr char *
3113# define const
3114#endif
3115
3116/* The mapping between symbol names and symbols. */
3117const struct {
3118 const char *name;
3119 lt_ptr address;
3120}
3121lt_preloaded_symbols[] =
3122{
3123EOF
3124 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3125 cat <<\EOF >> conftest.$ac_ext
3126 {0, (lt_ptr) 0}
3127};
3128
3129#ifdef __cplusplus
3130}
3131#endif
3132EOF
3133 # Now try linking the two files.
3134 mv conftest.$ac_objext conftstm.$ac_objext
3135 save_LIBS="$LIBS"
3136 save_CFLAGS="$CFLAGS"
3137 LIBS="conftstm.$ac_objext"
3138 CFLAGS="$CFLAGS$no_builtin_flag"
3139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140 (eval $ac_link) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && test -s conftest; then
3144 pipe_works=yes
3145 fi
3146 LIBS="$save_LIBS"
3147 CFLAGS="$save_CFLAGS"
3148 else
3149 echo "cannot find nm_test_func in $nlist" >&5
3150 fi
3151 else
3152 echo "cannot find nm_test_var in $nlist" >&5
3153 fi
3154 else
3155 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3156 fi
3157 else
3158 echo "$progname: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 fi
3161 rm -f conftest* conftst*
3162
3163 # Do not use the global_symbol_pipe unless it works.
3164 if test "$pipe_works" = yes; then
3165 break
3166 else
3167 lt_cv_sys_global_symbol_pipe=
3168 fi
3169done
3170
3171fi
3172
3173global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3174if test -z "$lt_cv_sys_global_symbol_pipe"; then
3175 global_symbol_to_cdecl=
3176 global_symbol_to_c_name_address=
3177else
3178 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3179 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3180fi
3181if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3182then
3183 echo "$as_me:$LINENO: result: failed" >&5
3184echo "${ECHO_T}failed" >&6
3185else
3186 echo "$as_me:$LINENO: result: ok" >&5
3187echo "${ECHO_T}ok" >&6
3188fi
3189
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3197# On Suns, sometimes $CPP names a directory.
3198if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200fi
3201if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209for ac_c_preproc_warn_flag in '' yes
3210do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
79608eef
VS
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
5e9f2524
VS
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3218#line $LINENO "configure"
79608eef
VS
3219/* confdefs.h. */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h. */
3224#ifdef __STDC__
3225# include <limits.h>
3226#else
3227# include <assert.h>
3228#endif
5e9f2524
VS
3229 Syntax error
3230_ACEOF
3231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 ac_status=$?
79608eef 3234 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 else
3242 ac_cpp_err=
3243 fi
3244else
3245 ac_cpp_err=yes
3246fi
3247if test -z "$ac_cpp_err"; then
3248 :
3249else
3250 echo "$as_me: failed program was:" >&5
79608eef
VS
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
5e9f2524
VS
3253 # Broken: fails on valid input.
3254continue
3255fi
3256rm -f conftest.err conftest.$ac_ext
3257
3258 # OK, works on sane cases. Now check whether non-existent headers
3259 # can be detected and how.
3260 cat >conftest.$ac_ext <<_ACEOF
3261#line $LINENO "configure"
79608eef
VS
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
5e9f2524
VS
3267#include <ac_nonexistent.h>
3268_ACEOF
3269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271 ac_status=$?
79608eef 3272 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
3273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } >/dev/null; then
3277 if test -s conftest.err; then
3278 ac_cpp_err=$ac_c_preproc_warn_flag
3279 else
3280 ac_cpp_err=
3281 fi
3282else
3283 ac_cpp_err=yes
3284fi
3285if test -z "$ac_cpp_err"; then
3286 # Broken: success on invalid input.
3287continue
3288else
3289 echo "$as_me: failed program was:" >&5
79608eef
VS
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
5e9f2524
VS
3292 # Passes both tests.
3293ac_preproc_ok=:
3294break
3295fi
3296rm -f conftest.err conftest.$ac_ext
3297
3298done
3299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300rm -f conftest.err conftest.$ac_ext
3301if $ac_preproc_ok; then
3302 break
3303fi
3304
3305 done
3306 ac_cv_prog_CPP=$CPP
3307
3308fi
3309 CPP=$ac_cv_prog_CPP
3310else
3311 ac_cv_prog_CPP=$CPP
3312fi
3313echo "$as_me:$LINENO: result: $CPP" >&5
3314echo "${ECHO_T}$CPP" >&6
3315ac_preproc_ok=false
3316for ac_c_preproc_warn_flag in '' yes
3317do
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
79608eef
VS
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
5e9f2524
VS
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325#line $LINENO "configure"
79608eef
VS
3326/* confdefs.h. */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h. */
3331#ifdef __STDC__
3332# include <limits.h>
3333#else
3334# include <assert.h>
3335#endif
5e9f2524
VS
3336 Syntax error
3337_ACEOF
3338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340 ac_status=$?
79608eef 3341 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 else
3349 ac_cpp_err=
3350 fi
3351else
3352 ac_cpp_err=yes
3353fi
3354if test -z "$ac_cpp_err"; then
3355 :
3356else
3357 echo "$as_me: failed program was:" >&5
79608eef
VS
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
5e9f2524
VS
3360 # Broken: fails on valid input.
3361continue
3362fi
3363rm -f conftest.err conftest.$ac_ext
3364
3365 # OK, works on sane cases. Now check whether non-existent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368#line $LINENO "configure"
79608eef
VS
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h. */
5e9f2524
VS
3374#include <ac_nonexistent.h>
3375_ACEOF
3376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378 ac_status=$?
79608eef 3379 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 else
3387 ac_cpp_err=
3388 fi
3389else
3390 ac_cpp_err=yes
3391fi
3392if test -z "$ac_cpp_err"; then
3393 # Broken: success on invalid input.
3394continue
3395else
3396 echo "$as_me: failed program was:" >&5
79608eef
VS
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
5e9f2524
VS
3399 # Passes both tests.
3400ac_preproc_ok=:
3401break
3402fi
3403rm -f conftest.err conftest.$ac_ext
3404
3405done
3406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407rm -f conftest.err conftest.$ac_ext
3408if $ac_preproc_ok; then
3409 :
3410else
79608eef
VS
3411 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3412See \`config.log' for more details." >&5
3413echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3414See \`config.log' for more details." >&2;}
5e9f2524
VS
3415 { (exit 1); exit 1; }; }
3416fi
3417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
79608eef
VS
3425echo "$as_me:$LINENO: checking for egrep" >&5
3426echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3427if test "${ac_cv_prog_egrep+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3431 then ac_cv_prog_egrep='grep -E'
3432 else ac_cv_prog_egrep='egrep'
3433 fi
3434fi
3435echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3436echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3437 EGREP=$ac_cv_prog_egrep
3438
3439
5e9f2524
VS
3440echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3441echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3442if test "${ac_cv_header_stdc+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 cat >conftest.$ac_ext <<_ACEOF
3446#line $LINENO "configure"
79608eef
VS
3447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
5e9f2524
VS
3452#include <stdlib.h>
3453#include <stdarg.h>
3454#include <string.h>
3455#include <float.h>
3456
79608eef
VS
3457int
3458main ()
3459{
3460
3461 ;
3462 return 0;
3463}
5e9f2524 3464_ACEOF
79608eef
VS
3465rm -f conftest.$ac_objext
3466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
5e9f2524 3468 ac_status=$?
5e9f2524 3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
79608eef
VS
3470 (exit $ac_status); } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
5e9f2524
VS
3477 ac_cv_header_stdc=yes
3478else
3479 echo "$as_me: failed program was:" >&5
79608eef
VS
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482ac_cv_header_stdc=no
5e9f2524 3483fi
79608eef 3484rm -f conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
3485
3486if test $ac_cv_header_stdc = yes; then
3487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3488 cat >conftest.$ac_ext <<_ACEOF
3489#line $LINENO "configure"
79608eef
VS
3490/* confdefs.h. */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
3494/* end confdefs.h. */
5e9f2524
VS
3495#include <string.h>
3496
3497_ACEOF
3498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
79608eef 3499 $EGREP "memchr" >/dev/null 2>&1; then
5e9f2524
VS
3500 :
3501else
3502 ac_cv_header_stdc=no
3503fi
3504rm -f conftest*
3505
3506fi
3507
3508if test $ac_cv_header_stdc = yes; then
3509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3510 cat >conftest.$ac_ext <<_ACEOF
3511#line $LINENO "configure"
79608eef
VS
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
5e9f2524
VS
3517#include <stdlib.h>
3518
3519_ACEOF
3520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
79608eef 3521 $EGREP "free" >/dev/null 2>&1; then
5e9f2524
VS
3522 :
3523else
3524 ac_cv_header_stdc=no
3525fi
3526rm -f conftest*
3527
3528fi
3529
3530if test $ac_cv_header_stdc = yes; then
3531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3532 if test "$cross_compiling" = yes; then
3533 :
3534else
3535 cat >conftest.$ac_ext <<_ACEOF
3536#line $LINENO "configure"
79608eef
VS
3537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h. */
5e9f2524
VS
3542#include <ctype.h>
3543#if ((' ' & 0x0FF) == 0x020)
3544# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3545# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3546#else
79608eef
VS
3547# define ISLOWER(c) \
3548 (('a' <= (c) && (c) <= 'i') \
5e9f2524
VS
3549 || ('j' <= (c) && (c) <= 'r') \
3550 || ('s' <= (c) && (c) <= 'z'))
3551# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3552#endif
3553
3554#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3555int
3556main ()
3557{
3558 int i;
3559 for (i = 0; i < 256; i++)
3560 if (XOR (islower (i), ISLOWER (i))
3561 || toupper (i) != TOUPPER (i))
3562 exit(2);
3563 exit (0);
3564}
3565_ACEOF
3566rm -f conftest$ac_exeext
3567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3568 (eval $ac_link) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; }; then
3577 :
3578else
3579 echo "$as_me: program exited with status $ac_status" >&5
3580echo "$as_me: failed program was:" >&5
79608eef
VS
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
5e9f2524
VS
3583( exit $ac_status )
3584ac_cv_header_stdc=no
3585fi
79608eef 3586rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
3587fi
3588fi
3589fi
3590echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3591echo "${ECHO_T}$ac_cv_header_stdc" >&6
3592if test $ac_cv_header_stdc = yes; then
3593
3594cat >>confdefs.h <<\_ACEOF
3595#define STDC_HEADERS 1
3596_ACEOF
3597
3598fi
3599
3600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3611 inttypes.h stdint.h unistd.h
3612do
3613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614echo "$as_me:$LINENO: checking for $ac_header" >&5
3615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3616if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 cat >conftest.$ac_ext <<_ACEOF
3620#line $LINENO "configure"
79608eef
VS
3621/* confdefs.h. */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h. */
5e9f2524
VS
3626$ac_includes_default
3627
3628#include <$ac_header>
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 eval "$as_ac_Header=yes"
3643else
3644 echo "$as_me: failed program was:" >&5
79608eef
VS
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
5e9f2524
VS
3647eval "$as_ac_Header=no"
3648fi
3649rm -f conftest.$ac_objext conftest.$ac_ext
3650fi
3651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3653if test `eval echo '${'$as_ac_Header'}'` = yes; then
3654 cat >>confdefs.h <<_ACEOF
3655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3656_ACEOF
3657
3658fi
3659
3660done
3661
3662
3663
3664for ac_header in dlfcn.h
3665do
3666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3667if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo "$as_me:$LINENO: checking for $ac_header" >&5
3669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3670if eval "test \"\${$as_ac_Header+set}\" = set"; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672fi
3673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3675else
3676 # Is the header compilable?
3677echo "$as_me:$LINENO: checking $ac_header usability" >&5
3678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3679cat >conftest.$ac_ext <<_ACEOF
3680#line $LINENO "configure"
79608eef
VS
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
5e9f2524
VS
3686$ac_includes_default
3687#include <$ac_header>
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_header_compiler=yes
3702else
3703 echo "$as_me: failed program was:" >&5
79608eef
VS
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
5e9f2524
VS
3706ac_header_compiler=no
3707fi
3708rm -f conftest.$ac_objext conftest.$ac_ext
3709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3710echo "${ECHO_T}$ac_header_compiler" >&6
3711
3712# Is the header present?
3713echo "$as_me:$LINENO: checking $ac_header presence" >&5
3714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3715cat >conftest.$ac_ext <<_ACEOF
3716#line $LINENO "configure"
79608eef
VS
3717/* confdefs.h. */
3718_ACEOF
3719cat confdefs.h >>conftest.$ac_ext
3720cat >>conftest.$ac_ext <<_ACEOF
3721/* end confdefs.h. */
5e9f2524
VS
3722#include <$ac_header>
3723_ACEOF
3724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3726 ac_status=$?
79608eef 3727 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 else
3735 ac_cpp_err=
3736 fi
3737else
3738 ac_cpp_err=yes
3739fi
3740if test -z "$ac_cpp_err"; then
3741 ac_header_preproc=yes
3742else
3743 echo "$as_me: failed program was:" >&5
79608eef
VS
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
5e9f2524
VS
3746 ac_header_preproc=no
3747fi
3748rm -f conftest.err conftest.$ac_ext
3749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3750echo "${ECHO_T}$ac_header_preproc" >&6
3751
3752# So? What about this header?
3753case $ac_header_compiler:$ac_header_preproc in
3754 yes:no )
3755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
3758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3759 (
3760 cat <<\_ASBOX
3761## ------------------------------------ ##
3762## Report this to bug-autoconf@gnu.org. ##
3763## ------------------------------------ ##
3764_ASBOX
3765 ) |
3766 sed "s/^/$as_me: WARNING: /" >&2
3767 ;;
5e9f2524
VS
3768 no:yes )
3769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
3774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3775 (
3776 cat <<\_ASBOX
3777## ------------------------------------ ##
3778## Report this to bug-autoconf@gnu.org. ##
3779## ------------------------------------ ##
3780_ASBOX
3781 ) |
3782 sed "s/^/$as_me: WARNING: /" >&2
3783 ;;
5e9f2524
VS
3784esac
3785echo "$as_me:$LINENO: checking for $ac_header" >&5
3786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3787if eval "test \"\${$as_ac_Header+set}\" = set"; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790 eval "$as_ac_Header=$ac_header_preproc"
3791fi
3792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794
3795fi
3796if test `eval echo '${'$as_ac_Header'}'` = yes; then
3797 cat >>confdefs.h <<_ACEOF
3798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3799_ACEOF
3800
3801fi
3802
3803done
3804
3805
3806
3807
3808
3809# Only perform the check for file, if the check method requires it
3810case $deplibs_check_method in
3811file_magic*)
3812 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3813 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3814echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3815if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818 case $MAGIC_CMD in
3819 /*)
3820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3821 ;;
3822 ?:/*)
3823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3824 ;;
3825 *)
3826 ac_save_MAGIC_CMD="$MAGIC_CMD"
3827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3828 ac_dummy="/usr/bin:$PATH"
3829 for ac_dir in $ac_dummy; do
3830 test -z "$ac_dir" && ac_dir=.
3831 if test -f $ac_dir/${ac_tool_prefix}file; then
3832 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3833 if test -n "$file_magic_test_file"; then
3834 case $deplibs_check_method in
3835 "file_magic "*)
3836 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3839 egrep "$file_magic_regex" > /dev/null; then
3840 :
3841 else
3842 cat <<EOF 1>&2
3843
3844*** Warning: the command libtool uses to detect shared libraries,
3845*** $file_magic_cmd, produces output that libtool cannot recognize.
3846*** The result is that libtool may fail to recognize shared libraries
3847*** as such. This will affect the creation of libtool libraries that
3848*** depend on shared libraries, but programs linked with such libtool
3849*** libraries will work regardless of this problem. Nevertheless, you
3850*** may want to report the problem to your system manager and/or to
3851*** bug-libtool@gnu.org
3852
3853EOF
3854 fi ;;
3855 esac
3856 fi
3857 break
3858 fi
3859 done
3860 IFS="$ac_save_ifs"
3861 MAGIC_CMD="$ac_save_MAGIC_CMD"
3862 ;;
3863esac
3864fi
3865
3866MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3867if test -n "$MAGIC_CMD"; then
3868 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3869echo "${ECHO_T}$MAGIC_CMD" >&6
3870else
3871 echo "$as_me:$LINENO: result: no" >&5
3872echo "${ECHO_T}no" >&6
3873fi
3874
3875if test -z "$lt_cv_path_MAGIC_CMD"; then
3876 if test -n "$ac_tool_prefix"; then
3877 echo "$as_me:$LINENO: checking for file" >&5
3878echo $ECHO_N "checking for file... $ECHO_C" >&6
3879if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 case $MAGIC_CMD in
3883 /*)
3884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3885 ;;
3886 ?:/*)
3887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3888 ;;
3889 *)
3890 ac_save_MAGIC_CMD="$MAGIC_CMD"
3891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3892 ac_dummy="/usr/bin:$PATH"
3893 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/file; then
3896 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3897 if test -n "$file_magic_test_file"; then
3898 case $deplibs_check_method in
3899 "file_magic "*)
3900 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3903 egrep "$file_magic_regex" > /dev/null; then
3904 :
3905 else
3906 cat <<EOF 1>&2
3907
3908*** Warning: the command libtool uses to detect shared libraries,
3909*** $file_magic_cmd, produces output that libtool cannot recognize.
3910*** The result is that libtool may fail to recognize shared libraries
3911*** as such. This will affect the creation of libtool libraries that
3912*** depend on shared libraries, but programs linked with such libtool
3913*** libraries will work regardless of this problem. Nevertheless, you
3914*** may want to report the problem to your system manager and/or to
3915*** bug-libtool@gnu.org
3916
3917EOF
3918 fi ;;
3919 esac
3920 fi
3921 break
3922 fi
3923 done
3924 IFS="$ac_save_ifs"
3925 MAGIC_CMD="$ac_save_MAGIC_CMD"
3926 ;;
3927esac
3928fi
3929
3930MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3931if test -n "$MAGIC_CMD"; then
3932 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3933echo "${ECHO_T}$MAGIC_CMD" >&6
3934else
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937fi
3938
3939 else
3940 MAGIC_CMD=:
3941 fi
3942fi
3943
3944 fi
3945 ;;
3946esac
3947
3948if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3950set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3951echo "$as_me:$LINENO: checking for $ac_word" >&5
3952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953if test "${ac_cv_prog_RANLIB+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 if test -n "$RANLIB"; then
3957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971done
3972
3973fi
3974fi
3975RANLIB=$ac_cv_prog_RANLIB
3976if test -n "$RANLIB"; then
3977 echo "$as_me:$LINENO: result: $RANLIB" >&5
3978echo "${ECHO_T}$RANLIB" >&6
3979else
3980 echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6
3982fi
3983
3984fi
3985if test -z "$ac_cv_prog_RANLIB"; then
3986 ac_ct_RANLIB=$RANLIB
3987 # Extract the first word of "ranlib", so it can be a program name with args.
3988set dummy ranlib; ac_word=$2
3989echo "$as_me:$LINENO: checking for $ac_word" >&5
3990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
3994 if test -n "$ac_ct_RANLIB"; then
3995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_ac_ct_RANLIB="ranlib"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008done
4009done
4010
4011 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4012fi
4013fi
4014ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4015if test -n "$ac_ct_RANLIB"; then
4016 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4017echo "${ECHO_T}$ac_ct_RANLIB" >&6
4018else
4019 echo "$as_me:$LINENO: result: no" >&5
4020echo "${ECHO_T}no" >&6
4021fi
4022
4023 RANLIB=$ac_ct_RANLIB
4024else
4025 RANLIB="$ac_cv_prog_RANLIB"
4026fi
4027
4028if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4030set dummy ${ac_tool_prefix}strip; ac_word=$2
4031echo "$as_me:$LINENO: checking for $ac_word" >&5
4032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033if test "${ac_cv_prog_STRIP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036 if test -n "$STRIP"; then
4037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4038else
4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050done
4051done
4052
4053fi
4054fi
4055STRIP=$ac_cv_prog_STRIP
4056if test -n "$STRIP"; then
4057 echo "$as_me:$LINENO: result: $STRIP" >&5
4058echo "${ECHO_T}$STRIP" >&6
4059else
4060 echo "$as_me:$LINENO: result: no" >&5
4061echo "${ECHO_T}no" >&6
4062fi
4063
4064fi
4065if test -z "$ac_cv_prog_STRIP"; then
4066 ac_ct_STRIP=$STRIP
4067 # Extract the first word of "strip", so it can be a program name with args.
4068set dummy strip; ac_word=$2
4069echo "$as_me:$LINENO: checking for $ac_word" >&5
4070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 if test -n "$ac_ct_STRIP"; then
4075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_STRIP="strip"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088done
4089done
4090
4091 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4092fi
4093fi
4094ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4095if test -n "$ac_ct_STRIP"; then
4096 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4097echo "${ECHO_T}$ac_ct_STRIP" >&6
4098else
4099 echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6
4101fi
4102
4103 STRIP=$ac_ct_STRIP
4104else
4105 STRIP="$ac_cv_prog_STRIP"
4106fi
4107
4108
4109enable_dlopen=no
4110enable_win32_dll=no
4111
4112# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4113if test "${enable_libtool_lock+set}" = set; then
4114 enableval="$enable_libtool_lock"
4115
4116fi;
4117test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4118
4119# Some flags need to be propagated to the compiler or linker for good
4120# libtool support.
4121case $host in
4122*-*-irix6*)
4123 # Find out which ABI we are using.
79608eef 4124 echo '#line 4124 "configure"' > conftest.$ac_ext
5e9f2524
VS
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; then
4130 case `/usr/bin/file conftest.$ac_objext` in
4131 *32-bit*)
4132 LD="${LD-ld} -32"
4133 ;;
4134 *N32*)
4135 LD="${LD-ld} -n32"
4136 ;;
4137 *64-bit*)
4138 LD="${LD-ld} -64"
4139 ;;
4140 esac
4141 fi
4142 rm -rf conftest*
4143 ;;
4144
4145*-*-sco3.2v5*)
4146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4147 SAVE_CFLAGS="$CFLAGS"
4148 CFLAGS="$CFLAGS -belf"
4149 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4150echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4151if test "${lt_cv_cc_needs_belf+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154
4155
4156 ac_ext=c
4157ac_cpp='$CPP $CPPFLAGS'
4158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162 cat >conftest.$ac_ext <<_ACEOF
4163#line $LINENO "configure"
79608eef
VS
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
5e9f2524 4169
5e9f2524
VS
4170int
4171main ()
4172{
4173
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext conftest$ac_exeext
4179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 lt_cv_cc_needs_belf=yes
4191else
4192 echo "$as_me: failed program was:" >&5
79608eef
VS
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
5e9f2524
VS
4195lt_cv_cc_needs_belf=no
4196fi
4197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4198 ac_ext=c
4199ac_cpp='$CPP $CPPFLAGS'
4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204fi
4205echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4206echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4209 CFLAGS="$SAVE_CFLAGS"
4210 fi
4211 ;;
4212
4213
4214esac
4215
4216# Sed substitution that helps us do robust quoting. It backslashifies
4217# metacharacters that are still active within double-quoted strings.
4218Xsed='sed -e s/^X//'
4219sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4220
4221# Same as above, but do not quote variable references.
4222double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4223
4224# Sed substitution to delay expansion of an escaped shell variable in a
4225# double_quote_subst'ed string.
4226delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4227
4228# Constants:
4229rm="rm -f"
4230
4231# Global variables:
4232default_ofile=libtool
4233can_build_shared=yes
4234
4235# All known linkers require a `.a' archive for static linking (except M$VC,
4236# which needs '.lib').
4237libext=a
4238ltmain="$ac_aux_dir/ltmain.sh"
4239ofile="$default_ofile"
4240with_gnu_ld="$lt_cv_prog_gnu_ld"
4241need_locks="$enable_libtool_lock"
4242
4243old_CC="$CC"
4244old_CFLAGS="$CFLAGS"
4245
4246# Set sane defaults for various variables
4247test -z "$AR" && AR=ar
4248test -z "$AR_FLAGS" && AR_FLAGS=cru
4249test -z "$AS" && AS=as
4250test -z "$CC" && CC=cc
4251test -z "$DLLTOOL" && DLLTOOL=dlltool
4252test -z "$LD" && LD=ld
4253test -z "$LN_S" && LN_S="ln -s"
4254test -z "$MAGIC_CMD" && MAGIC_CMD=file
4255test -z "$NM" && NM=nm
4256test -z "$OBJDUMP" && OBJDUMP=objdump
4257test -z "$RANLIB" && RANLIB=:
4258test -z "$STRIP" && STRIP=:
4259test -z "$ac_objext" && ac_objext=o
4260
4261if test x"$host" != x"$build"; then
4262 ac_tool_prefix=${host_alias}-
4263else
4264 ac_tool_prefix=
4265fi
4266
4267# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4268case $host_os in
4269linux-gnu*) ;;
4270linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4271esac
4272
4273case $host_os in
4274aix3*)
4275 # AIX sometimes has problems with the GCC collect2 program. For some
4276 # reason, if we set the COLLECT_NAMES environment variable, the problems
4277 # vanish in a puff of smoke.
4278 if test "X${COLLECT_NAMES+set}" != Xset; then
4279 COLLECT_NAMES=
4280 export COLLECT_NAMES
4281 fi
4282 ;;
4283esac
4284
4285# Determine commands to create old-style static archives.
4286old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4287old_postinstall_cmds='chmod 644 $oldlib'
4288old_postuninstall_cmds=
4289
4290if test -n "$RANLIB"; then
4291 case $host_os in
4292 openbsd*)
4293 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4294 ;;
4295 *)
4296 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4297 ;;
4298 esac
4299 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4300fi
4301
4302# Allow CC to be a program name with arguments.
4303set dummy $CC
4304compiler="$2"
4305
4306## FIXME: this should be a separate macro
4307##
4308echo "$as_me:$LINENO: checking for objdir" >&5
4309echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4310rm -f .libs 2>/dev/null
4311mkdir .libs 2>/dev/null
4312if test -d .libs; then
4313 objdir=.libs
4314else
4315 # MS-DOS does not allow filenames that begin with a dot.
4316 objdir=_libs
4317fi
4318rmdir .libs 2>/dev/null
4319echo "$as_me:$LINENO: result: $objdir" >&5
4320echo "${ECHO_T}$objdir" >&6
4321##
4322## END FIXME
4323
4324
4325## FIXME: this should be a separate macro
4326##
4327
4328# Check whether --with-pic or --without-pic was given.
4329if test "${with_pic+set}" = set; then
4330 withval="$with_pic"
4331 pic_mode="$withval"
4332else
4333 pic_mode=default
4334fi;
4335test -z "$pic_mode" && pic_mode=default
4336
4337# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4338# in isolation, and that seeing it set (from the cache) indicates that
4339# the associated values are set (in the cache) correctly too.
4340echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4341echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4342if test "${lt_cv_prog_cc_pic+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345 lt_cv_prog_cc_pic=
4346 lt_cv_prog_cc_shlib=
4347 lt_cv_prog_cc_wl=
4348 lt_cv_prog_cc_static=
4349 lt_cv_prog_cc_no_builtin=
4350 lt_cv_prog_cc_can_build_shared=$can_build_shared
4351
4352 if test "$GCC" = yes; then
4353 lt_cv_prog_cc_wl='-Wl,'
4354 lt_cv_prog_cc_static='-static'
4355
4356 case $host_os in
4357 aix*)
4358 # Below there is a dirty hack to force normal static linking with -ldl
4359 # The problem is because libdl dynamically linked with both libc and
4360 # libC (AIX C++ library), which obviously doesn't included in libraries
4361 # list by gcc. This cause undefined symbols with -static flags.
4362 # This hack allows C programs to be linked with "-static -ldl", but
4363 # not sure about C++ programs.
4364 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4365 ;;
4366 amigaos*)
4367 # FIXME: we need at least 68020 code to build shared libraries, but
4368 # adding the `-m68020' flag to GCC prevents building anything better,
4369 # like `-m68040'.
4370 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4371 ;;
4372 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4373 # PIC is the default for these OSes.
4374 ;;
4375 darwin* | rhapsody*)
4376 # PIC is the default on this platform
4377 # Common symbols not allowed in MH_DYLIB files
4378 lt_cv_prog_cc_pic='-fno-common'
4379 ;;
4380 cygwin* | mingw* | pw32* | os2*)
4381 # This hack is so that the source file can tell whether it is being
4382 # built for inclusion in a dll (and should export symbols for example).
4383 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4384 ;;
4385 sysv4*MP*)
4386 if test -d /usr/nec; then
4387 lt_cv_prog_cc_pic=-Kconform_pic
4388 fi
4389 ;;
4390 *)
4391 lt_cv_prog_cc_pic='-fPIC'
4392 ;;
4393 esac
4394 else
4395 # PORTME Check for PIC flags for the system compiler.
4396 case $host_os in
4397 aix3* | aix4* | aix5*)
4398 lt_cv_prog_cc_wl='-Wl,'
4399 # All AIX code is PIC.
4400 if test "$host_cpu" = ia64; then
4401 # AIX 5 now supports IA64 processor
4402 lt_cv_prog_cc_static='-Bstatic'
4403 else
4404 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4405 fi
4406 ;;
4407
4408 hpux9* | hpux10* | hpux11*)
4409 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4410 lt_cv_prog_cc_wl='-Wl,'
4411 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4412 lt_cv_prog_cc_pic='+Z'
4413 ;;
4414
4415 irix5* | irix6*)
4416 lt_cv_prog_cc_wl='-Wl,'
4417 lt_cv_prog_cc_static='-non_shared'
4418 # PIC (with -KPIC) is the default.
4419 ;;
4420
4421 cygwin* | mingw* | pw32* | os2*)
4422 # This hack is so that the source file can tell whether it is being
4423 # built for inclusion in a dll (and should export symbols for example).
4424 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4425 ;;
4426
4427 newsos6)
4428 lt_cv_prog_cc_pic='-KPIC'
4429 lt_cv_prog_cc_static='-Bstatic'
4430 ;;
4431
4432 osf3* | osf4* | osf5*)
4433 # All OSF/1 code is PIC.
4434 lt_cv_prog_cc_wl='-Wl,'
4435 lt_cv_prog_cc_static='-non_shared'
4436 ;;
4437
4438 sco3.2v5*)
4439 lt_cv_prog_cc_pic='-Kpic'
4440 lt_cv_prog_cc_static='-dn'
4441 lt_cv_prog_cc_shlib='-belf'
4442 ;;
4443
4444 solaris*)
4445 lt_cv_prog_cc_pic='-KPIC'
4446 lt_cv_prog_cc_static='-Bstatic'
4447 lt_cv_prog_cc_wl='-Wl,'
4448 ;;
4449
4450 sunos4*)
4451 lt_cv_prog_cc_pic='-PIC'
4452 lt_cv_prog_cc_static='-Bstatic'
4453 lt_cv_prog_cc_wl='-Qoption ld '
4454 ;;
4455
4456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4457 lt_cv_prog_cc_pic='-KPIC'
4458 lt_cv_prog_cc_static='-Bstatic'
4459 if test "x$host_vendor" = xsni; then
4460 lt_cv_prog_cc_wl='-LD'
4461 else
4462 lt_cv_prog_cc_wl='-Wl,'
4463 fi
4464 ;;
4465
4466 uts4*)
4467 lt_cv_prog_cc_pic='-pic'
4468 lt_cv_prog_cc_static='-Bstatic'
4469 ;;
4470
4471 sysv4*MP*)
4472 if test -d /usr/nec ;then
4473 lt_cv_prog_cc_pic='-Kconform_pic'
4474 lt_cv_prog_cc_static='-Bstatic'
4475 fi
4476 ;;
4477
4478 *)
4479 lt_cv_prog_cc_can_build_shared=no
4480 ;;
4481 esac
4482 fi
4483
4484fi
4485
4486if test -z "$lt_cv_prog_cc_pic"; then
4487 echo "$as_me:$LINENO: result: none" >&5
4488echo "${ECHO_T}none" >&6
4489else
4490 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4491echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4492
4493 # Check to make sure the pic_flag actually works.
4494 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4495echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4496 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499 save_CFLAGS="$CFLAGS"
4500 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4501 cat >conftest.$ac_ext <<_ACEOF
4502#line $LINENO "configure"
79608eef
VS
4503/* confdefs.h. */
4504_ACEOF
4505cat confdefs.h >>conftest.$ac_ext
4506cat >>conftest.$ac_ext <<_ACEOF
4507/* end confdefs.h. */
5e9f2524 4508
5e9f2524
VS
4509int
4510main ()
4511{
4512
4513 ;
4514 return 0;
4515}
4516_ACEOF
4517rm -f conftest.$ac_objext
4518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 case $host_os in
4530 hpux9* | hpux10* | hpux11*)
4531 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4532 # they create non-PIC objects. So, if there were any warnings, we
4533 # assume that PIC is not supported.
4534 if test -s conftest.err; then
4535 lt_cv_prog_cc_pic_works=no
4536 else
4537 lt_cv_prog_cc_pic_works=yes
4538 fi
4539 ;;
4540 *)
4541 lt_cv_prog_cc_pic_works=yes
4542 ;;
4543 esac
4544
4545else
4546 echo "$as_me: failed program was:" >&5
79608eef
VS
4547sed 's/^/| /' conftest.$ac_ext >&5
4548
5e9f2524
VS
4549 lt_cv_prog_cc_pic_works=no
4550
4551fi
4552rm -f conftest.$ac_objext conftest.$ac_ext
4553 CFLAGS="$save_CFLAGS"
4554
4555fi
4556
4557
4558 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4559 lt_cv_prog_cc_pic=
4560 lt_cv_prog_cc_can_build_shared=no
4561 else
4562 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4563 fi
4564
4565 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4566echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4567fi
4568##
4569## END FIXME
4570
4571# Check for any special shared library compilation flags.
4572if test -n "$lt_cv_prog_cc_shlib"; then
4573 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4574echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4575 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4576 else
4577 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4578echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4579 lt_cv_prog_cc_can_build_shared=no
4580 fi
4581fi
4582
4583## FIXME: this should be a separate macro
4584##
4585echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4586echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4587if test "${lt_cv_prog_cc_static_works+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 lt_cv_prog_cc_static_works=no
4591 save_LDFLAGS="$LDFLAGS"
4592 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4593 cat >conftest.$ac_ext <<_ACEOF
4594#line $LINENO "configure"
79608eef
VS
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
5e9f2524 4600
5e9f2524
VS
4601int
4602main ()
4603{
4604
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609rm -f conftest.$ac_objext conftest$ac_exeext
4610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 lt_cv_prog_cc_static_works=yes
4622else
4623 echo "$as_me: failed program was:" >&5
79608eef
VS
4624sed 's/^/| /' conftest.$ac_ext >&5
4625
5e9f2524
VS
4626fi
4627rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4628 LDFLAGS="$save_LDFLAGS"
4629
4630fi
4631
4632
4633# Belt *and* braces to stop my trousers falling down:
4634test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4635echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4636echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4637
4638pic_flag="$lt_cv_prog_cc_pic"
4639special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4640wl="$lt_cv_prog_cc_wl"
4641link_static_flag="$lt_cv_prog_cc_static"
4642no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4643can_build_shared="$lt_cv_prog_cc_can_build_shared"
4644##
4645## END FIXME
4646
4647
4648## FIXME: this should be a separate macro
4649##
4650# Check to see if options -o and -c are simultaneously supported by compiler
4651echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4652echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4653if test "${lt_cv_compiler_c_o+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656
4657$rm -r conftest 2>/dev/null
4658mkdir conftest
4659cd conftest
4660echo "int some_variable = 0;" > conftest.$ac_ext
4661mkdir out
4662# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4663# that will create temporary files in the current directory regardless of
4664# the output directory. Thus, making CWD read-only will cause this test
4665# to fail, enabling locking or at least warning the user not to do parallel
4666# builds.
4667chmod -w .
4668save_CFLAGS="$CFLAGS"
4669CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4670compiler_c_o=no
79608eef 4671if { (eval echo configure:4671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5e9f2524
VS
4672 # The compiler can only warn and ignore the option if not recognized
4673 # So say no if there are warnings
4674 if test -s out/conftest.err; then
4675 lt_cv_compiler_c_o=no
4676 else
4677 lt_cv_compiler_c_o=yes
4678 fi
4679else
4680 # Append any errors to the config.log.
4681 cat out/conftest.err 1>&5
4682 lt_cv_compiler_c_o=no
4683fi
4684CFLAGS="$save_CFLAGS"
4685chmod u+w .
4686$rm conftest* out/*
4687rmdir out
4688cd ..
4689rmdir conftest
4690$rm -r conftest 2>/dev/null
4691
4692fi
4693
4694compiler_c_o=$lt_cv_compiler_c_o
4695echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4696echo "${ECHO_T}$compiler_c_o" >&6
4697
4698if test x"$compiler_c_o" = x"yes"; then
4699 # Check to see if we can write to a .lo
4700 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4701echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4702 if test "${lt_cv_compiler_o_lo+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705
4706 lt_cv_compiler_o_lo=no
4707 save_CFLAGS="$CFLAGS"
4708 CFLAGS="$CFLAGS -c -o conftest.lo"
4709 save_objext="$ac_objext"
4710 ac_objext=lo
4711 cat >conftest.$ac_ext <<_ACEOF
4712#line $LINENO "configure"
79608eef
VS
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
5e9f2524 4718
5e9f2524
VS
4719int
4720main ()
4721{
4722int some_variable = 0;
4723 ;
4724 return 0;
4725}
4726_ACEOF
4727rm -f conftest.$ac_objext
4728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 # The compiler can only warn and ignore the option if not recognized
4740 # So say no if there are warnings
4741 if test -s conftest.err; then
4742 lt_cv_compiler_o_lo=no
4743 else
4744 lt_cv_compiler_o_lo=yes
4745 fi
4746
4747else
4748 echo "$as_me: failed program was:" >&5
79608eef
VS
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
5e9f2524
VS
4751fi
4752rm -f conftest.$ac_objext conftest.$ac_ext
4753 ac_objext="$save_objext"
4754 CFLAGS="$save_CFLAGS"
4755
4756fi
4757
4758 compiler_o_lo=$lt_cv_compiler_o_lo
4759 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4760echo "${ECHO_T}$compiler_o_lo" >&6
4761else
4762 compiler_o_lo=no
4763fi
4764##
4765## END FIXME
4766
4767## FIXME: this should be a separate macro
4768##
4769# Check to see if we can do hard links to lock some files if needed
4770hard_links="nottested"
4771if test "$compiler_c_o" = no && test "$need_locks" != no; then
4772 # do not overwrite the value of need_locks provided by the user
4773 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4774echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4775 hard_links=yes
4776 $rm conftest*
4777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4778 touch conftest.a
4779 ln conftest.a conftest.b 2>&5 || hard_links=no
4780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4781 echo "$as_me:$LINENO: result: $hard_links" >&5
4782echo "${ECHO_T}$hard_links" >&6
4783 if test "$hard_links" = no; then
4784 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4785echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4786 need_locks=warn
4787 fi
4788else
4789 need_locks=no
4790fi
4791##
4792## END FIXME
4793
4794## FIXME: this should be a separate macro
4795##
4796if test "$GCC" = yes; then
4797 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4798 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4799echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4800 echo "int some_variable = 0;" > conftest.$ac_ext
4801 save_CFLAGS="$CFLAGS"
4802 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4803 compiler_rtti_exceptions=no
4804 cat >conftest.$ac_ext <<_ACEOF
4805#line $LINENO "configure"
79608eef
VS
4806/* confdefs.h. */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h. */
5e9f2524 4811
5e9f2524
VS
4812int
4813main ()
4814{
4815int some_variable = 0;
4816 ;
4817 return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext
4821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 # The compiler can only warn and ignore the option if not recognized
4833 # So say no if there are warnings
4834 if test -s conftest.err; then
4835 compiler_rtti_exceptions=no
4836 else
4837 compiler_rtti_exceptions=yes
4838 fi
4839
4840else
4841 echo "$as_me: failed program was:" >&5
79608eef
VS
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
5e9f2524
VS
4844fi
4845rm -f conftest.$ac_objext conftest.$ac_ext
4846 CFLAGS="$save_CFLAGS"
4847 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4848echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4849
4850 if test "$compiler_rtti_exceptions" = "yes"; then
4851 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4852 else
4853 no_builtin_flag=' -fno-builtin'
4854 fi
4855fi
4856##
4857## END FIXME
4858
4859## FIXME: this should be a separate macro
4860##
4861# See if the linker supports building shared libraries.
4862echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4863echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4864
4865allow_undefined_flag=
4866no_undefined_flag=
4867need_lib_prefix=unknown
4868need_version=unknown
4869# when you set need_version to no, make sure it does not cause -set_version
4870# flags to be left without arguments
4871archive_cmds=
4872archive_expsym_cmds=
4873old_archive_from_new_cmds=
4874old_archive_from_expsyms_cmds=
4875export_dynamic_flag_spec=
4876whole_archive_flag_spec=
4877thread_safe_flag_spec=
4878hardcode_into_libs=no
4879hardcode_libdir_flag_spec=
4880hardcode_libdir_separator=
4881hardcode_direct=no
4882hardcode_minus_L=no
4883hardcode_shlibpath_var=unsupported
4884runpath_var=
4885link_all_deplibs=unknown
4886always_export_symbols=no
4887export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4888# include_expsyms should be a list of space-separated symbols to be *always*
4889# included in the symbol list
4890include_expsyms=
4891# exclude_expsyms can be an egrep regular expression of symbols to exclude
4892# it will be wrapped by ` (' and `)$', so one must not match beginning or
4893# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4894# as well as any symbol that contains `d'.
4895exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4896# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4897# platforms (ab)use it in PIC code, but their linkers get confused if
4898# the symbol is explicitly referenced. Since portable code cannot
4899# rely on this symbol name, it's probably fine to never include it in
4900# preloaded symbol tables.
4901extract_expsyms_cmds=
4902
4903case $host_os in
4904cygwin* | mingw* | pw32*)
4905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4906 # When not using gcc, we currently assume that we are using
4907 # Microsoft Visual C++.
4908 if test "$GCC" != yes; then
4909 with_gnu_ld=no
4910 fi
4911 ;;
4912openbsd*)
4913 with_gnu_ld=no
4914 ;;
4915esac
4916
4917ld_shlibs=yes
4918if test "$with_gnu_ld" = yes; then
4919 # If archive_cmds runs LD, not CC, wlarc should be empty
4920 wlarc='${wl}'
4921
4922 # See if GNU ld supports shared libraries.
4923 case $host_os in
4924 aix3* | aix4* | aix5*)
4925 # On AIX, the GNU linker is very broken
4926 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4927 ld_shlibs=no
4928 cat <<EOF 1>&2
4929
4930*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4931*** to be unable to reliably create shared libraries on AIX.
4932*** Therefore, libtool is disabling shared libraries support. If you
4933*** really care for shared libraries, you may want to modify your PATH
4934*** so that a non-GNU linker is found, and then restart.
4935
4936EOF
4937 ;;
4938
4939 amigaos*)
4940 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)'
4941 hardcode_libdir_flag_spec='-L$libdir'
4942 hardcode_minus_L=yes
4943
4944 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4945 # that the semantics of dynamic libraries on AmigaOS, at least up
4946 # to version 4, is to share data among multiple programs linked
4947 # with the same dynamic library. Since this doesn't match the
4948 # behavior of shared libraries on other platforms, we can use
4949 # them.
4950 ld_shlibs=no
4951 ;;
4952
4953 beos*)
4954 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4955 allow_undefined_flag=unsupported
4956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4957 # support --undefined. This deserves some investigation. FIXME
4958 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4959 else
4960 ld_shlibs=no
4961 fi
4962 ;;
4963
4964 cygwin* | mingw* | pw32*)
4965 # hardcode_libdir_flag_spec is actually meaningless, as there is
4966 # no search path for DLLs.
4967 hardcode_libdir_flag_spec='-L$libdir'
4968 allow_undefined_flag=unsupported
4969 always_export_symbols=yes
4970
4971 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4972 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4973 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4974 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4975 else $CC -o impgen impgen.c ; fi)~
4976 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4977
4978 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4979
4980 # cygwin and mingw dlls have different entry points and sets of symbols
4981 # to exclude.
4982 # FIXME: what about values for MSVC?
4983 dll_entry=__cygwin_dll_entry@12
4984 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4985 case $host_os in
4986 mingw*)
4987 # mingw values
4988 dll_entry=_DllMainCRTStartup@12
4989 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4990 ;;
4991 esac
4992
4993 # mingw and cygwin differ, and it's simplest to just exclude the union
4994 # of the two symbol sets.
4995 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4996
4997 # recent cygwin and mingw systems supply a stub DllMain which the user
4998 # can override, but on older systems we have to supply one (in ltdll.c)
4999 if test "x$lt_cv_need_dllmain" = "xyes"; then
5000 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5001 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~
5002 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5003 else
5004 ltdll_obj=
5005 ltdll_cmds=
5006 fi
5007
5008 # Extract the symbol export list from an `--export-all' def file,
5009 # then regenerate the def file from the symbol export list, so that
5010 # the compiled dll only exports the symbol export list.
5011 # Be careful not to strip the DATA tag left be newer dlltools.
5012 export_symbols_cmds="$ltdll_cmds"'
5013 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5014 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5015
5016 # If the export-symbols file already is a .def file (1st line
5017 # is EXPORTS), use it as is.
5018 # If DATA tags from a recent dlltool are present, honour them!
5019 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5020 cp $export_symbols $output_objdir/$soname-def;
5021 else
5022 echo EXPORTS > $output_objdir/$soname-def;
5023 _lt_hint=1;
5024 cat $export_symbols | while read symbol; do
5025 set dummy \$symbol;
5026 case \$# in
5027 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5028 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5029 esac;
5030 _lt_hint=`expr 1 + \$_lt_hint`;
5031 done;
5032 fi~
5033 '"$ltdll_cmds"'
5034 $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~
5035 $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~
5036 $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~
5037 $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~
5038 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5039 ;;
5040
5041 netbsd*)
5042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5043 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5044 wlarc=
5045 else
5046 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5047 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5048 fi
5049 ;;
5050
5051 solaris* | sysv5*)
5052 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5053 ld_shlibs=no
5054 cat <<EOF 1>&2
5055
5056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5057*** create shared libraries on Solaris systems. Therefore, libtool
5058*** is disabling shared libraries support. We urge you to upgrade GNU
5059*** binutils to release 2.9.1 or newer. Another option is to modify
5060*** your PATH or compiler configuration so that the native linker is
5061*** used, and then restart.
5062
5063EOF
5064 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5067 else
5068 ld_shlibs=no
5069 fi
5070 ;;
5071
5072 sunos4*)
5073 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5074 wlarc=
5075 hardcode_direct=yes
5076 hardcode_shlibpath_var=no
5077 ;;
5078
5079 *)
5080 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5083 else
5084 ld_shlibs=no
5085 fi
5086 ;;
5087 esac
5088
5089 if test "$ld_shlibs" = yes; then
5090 runpath_var=LD_RUN_PATH
5091 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5092 export_dynamic_flag_spec='${wl}--export-dynamic'
5093 case $host_os in
5094 cygwin* | mingw* | pw32*)
5095 # dlltool doesn't understand --whole-archive et. al.
5096 whole_archive_flag_spec=
5097 ;;
5098 *)
5099 # ancient GNU ld didn't support --whole-archive et. al.
5100 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5101 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5102 else
5103 whole_archive_flag_spec=
5104 fi
5105 ;;
5106 esac
5107 fi
5108else
5109 # PORTME fill in a description of your system's linker (not GNU ld)
5110 case $host_os in
5111 aix3*)
5112 allow_undefined_flag=unsupported
5113 always_export_symbols=yes
5114 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'
5115 # Note: this linker hardcodes the directories in LIBPATH if there
5116 # are no directories specified by -L.
5117 hardcode_minus_L=yes
5118 if test "$GCC" = yes && test -z "$link_static_flag"; then
5119 # Neither direct hardcoding nor static linking is supported with a
5120 # broken collect2.
5121 hardcode_direct=unsupported
5122 fi
5123 ;;
5124
5125 aix4* | aix5*)
5126 if test "$host_cpu" = ia64; then
5127 # On IA64, the linker does run time linking by default, so we don't
5128 # have to do anything special.
5129 aix_use_runtimelinking=no
5130 exp_sym_flag='-Bexport'
5131 no_entry_flag=""
5132 else
5133 aix_use_runtimelinking=no
5134
5135 # Test if we are trying to use run time linking or normal
5136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5137 # need to do runtime linking.
5138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5139 for ld_flag in $LDFLAGS; do
5140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5141 aix_use_runtimelinking=yes
5142 break
5143 fi
5144 done
5145 esac
5146
5147 exp_sym_flag='-bexport'
5148 no_entry_flag='-bnoentry'
5149 fi
5150
5151 # When large executables or shared objects are built, AIX ld can
5152 # have problems creating the table of contents. If linking a library
5153 # or program results in "error TOC overflow" add -mminimal-toc to
5154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5156
5157 hardcode_direct=yes
5158 archive_cmds=''
5159 hardcode_libdir_separator=':'
5160 if test "$GCC" = yes; then
5161 case $host_os in aix4.[012]|aix4.[012].*)
5162 collect2name=`${CC} -print-prog-name=collect2`
5163 if test -f "$collect2name" && \
5164 strings "$collect2name" | grep resolve_lib_name >/dev/null
5165 then
5166 # We have reworked collect2
5167 hardcode_direct=yes
5168 else
5169 # We have old collect2
5170 hardcode_direct=unsupported
5171 # It fails to find uninstalled libraries when the uninstalled
5172 # path is not listed in the libpath. Setting hardcode_minus_L
5173 # to unsupported forces relinking
5174 hardcode_minus_L=yes
5175 hardcode_libdir_flag_spec='-L$libdir'
5176 hardcode_libdir_separator=
5177 fi
5178 esac
5179
5180 shared_flag='-shared'
5181 else
5182 # not using gcc
5183 if test "$host_cpu" = ia64; then
5184 shared_flag='${wl}-G'
5185 else
5186 if test "$aix_use_runtimelinking" = yes; then
5187 shared_flag='${wl}-G'
5188 else
5189 shared_flag='${wl}-bM:SRE'
5190 fi
5191 fi
5192 fi
5193
5194 # It seems that -bexpall can do strange things, so it is better to
5195 # generate a list of symbols to export.
5196 always_export_symbols=yes
5197 if test "$aix_use_runtimelinking" = yes; then
5198 # Warning - without using the other runtime loading flags (-brtl),
5199 # -berok will link without error, but may produce a broken library.
5200 allow_undefined_flag='-berok'
5201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5202 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"
5203 else
5204 if test "$host_cpu" = ia64; then
5205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5206 allow_undefined_flag="-z nodefs"
5207 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"
5208 else
5209 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5210 # Warning - without using the other run time loading flags,
5211 # -berok will link without error, but may produce a broken library.
5212 allow_undefined_flag='${wl}-berok'
5213 # This is a bit strange, but is similar to how AIX traditionally builds
5214 # it's shared libraries.
5215 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'
5216 fi
5217 fi
5218 ;;
5219
5220 amigaos*)
5221 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)'
5222 hardcode_libdir_flag_spec='-L$libdir'
5223 hardcode_minus_L=yes
5224 # see comment about different semantics on the GNU ld section
5225 ld_shlibs=no
5226 ;;
5227
5228 cygwin* | mingw* | pw32*)
5229 # When not using gcc, we currently assume that we are using
5230 # Microsoft Visual C++.
5231 # hardcode_libdir_flag_spec is actually meaningless, as there is
5232 # no search path for DLLs.
5233 hardcode_libdir_flag_spec=' '
5234 allow_undefined_flag=unsupported
5235 # Tell ltmain to make .lib files, not .a files.
5236 libext=lib
5237 # FIXME: Setting linknames here is a bad hack.
5238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5239 # The linker will automatically build a .lib file if we build a DLL.
5240 old_archive_from_new_cmds='true'
5241 # FIXME: Should let the user specify the lib program.
5242 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5243 fix_srcfile_path='`cygpath -w "$srcfile"`'
5244 ;;
5245
5246 darwin* | rhapsody*)
5247 case "$host_os" in
5248 rhapsody* | darwin1.[012])
5249 allow_undefined_flag='-undefined suppress'
5250 ;;
5251 *) # Darwin 1.3 on
5252 allow_undefined_flag='-flat_namespace -undefined suppress'
5253 ;;
5254 esac
5255 # FIXME: Relying on posixy $() will cause problems for
5256 # cross-compilation, but unfortunately the echo tests do not
5257 # yet detect zsh echo's removal of \ escapes.
5258 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5259 # We need to add '_' to the symbols in $export_symbols first
5260 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5261 hardcode_direct=yes
5262 hardcode_shlibpath_var=no
5263 whole_archive_flag_spec='-all_load $convenience'
5264 ;;
5265
5266 freebsd1*)
5267 ld_shlibs=no
5268 ;;
5269
5270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5271 # support. Future versions do this automatically, but an explicit c++rt0.o
5272 # does not break anything, and helps significantly (at the cost of a little
5273 # extra space).
5274 freebsd2.2*)
5275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5276 hardcode_libdir_flag_spec='-R$libdir'
5277 hardcode_direct=yes
5278 hardcode_shlibpath_var=no
5279 ;;
5280
5281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5282 freebsd2*)
5283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5284 hardcode_direct=yes
5285 hardcode_minus_L=yes
5286 hardcode_shlibpath_var=no
5287 ;;
5288
5289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5290 freebsd*)
5291 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5292 hardcode_libdir_flag_spec='-R$libdir'
5293 hardcode_direct=yes
5294 hardcode_shlibpath_var=no
5295 ;;
5296
5297 hpux9* | hpux10* | hpux11*)
5298 case $host_os in
5299 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' ;;
5300 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5301 esac
5302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5303 hardcode_libdir_separator=:
5304 hardcode_direct=yes
5305 hardcode_minus_L=yes # Not in the search PATH, but as the default
5306 # location of the library.
5307 export_dynamic_flag_spec='${wl}-E'
5308 ;;
5309
5310 irix5* | irix6*)
5311 if test "$GCC" = yes; then
5312 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'
5313 else
5314 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'
5315 fi
5316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5317 hardcode_libdir_separator=:
5318 link_all_deplibs=yes
5319 ;;
5320
5321 netbsd*)
5322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5324 else
5325 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5326 fi
5327 hardcode_libdir_flag_spec='-R$libdir'
5328 hardcode_direct=yes
5329 hardcode_shlibpath_var=no
5330 ;;
5331
5332 newsos6)
5333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5334 hardcode_direct=yes
5335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5336 hardcode_libdir_separator=:
5337 hardcode_shlibpath_var=no
5338 ;;
5339
5340 openbsd*)
5341 hardcode_direct=yes
5342 hardcode_shlibpath_var=no
5343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5346 export_dynamic_flag_spec='${wl}-E'
5347 else
5348 case "$host_os" in
5349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5351 hardcode_libdir_flag_spec='-R$libdir'
5352 ;;
5353 *)
5354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5356 ;;
5357 esac
5358 fi
5359 ;;
5360
5361 os2*)
5362 hardcode_libdir_flag_spec='-L$libdir'
5363 hardcode_minus_L=yes
5364 allow_undefined_flag=unsupported
5365 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'
5366 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5367 ;;
5368
5369 osf3*)
5370 if test "$GCC" = yes; then
5371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5372 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'
5373 else
5374 allow_undefined_flag=' -expect_unresolved \*'
5375 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'
5376 fi
5377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5378 hardcode_libdir_separator=:
5379 ;;
5380
5381 osf4* | osf5*) # as osf3* with the addition of -msym flag
5382 if test "$GCC" = yes; then
5383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5384 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'
5385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5386 else
5387 allow_undefined_flag=' -expect_unresolved \*'
5388 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'
5389 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5390 $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'
5391
5392 #Both c and cxx compiler support -rpath directly
5393 hardcode_libdir_flag_spec='-rpath $libdir'
5394 fi
5395 hardcode_libdir_separator=:
5396 ;;
5397
5398 sco3.2v5*)
5399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5400 hardcode_shlibpath_var=no
5401 runpath_var=LD_RUN_PATH
5402 hardcode_runpath_var=yes
5403 export_dynamic_flag_spec='${wl}-Bexport'
5404 ;;
5405
5406 solaris*)
5407 # gcc --version < 3.0 without binutils cannot create self contained
5408 # shared libraries reliably, requiring libgcc.a to resolve some of
5409 # the object symbols generated in some cases. Libraries that use
5410 # assert need libgcc.a to resolve __eprintf, for example. Linking
5411 # a copy of libgcc.a into every shared library to guarantee resolving
5412 # such symbols causes other problems: According to Tim Van Holder
5413 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5414 # (to the application) exception stack for one thing.
5415 no_undefined_flag=' -z defs'
5416 if test "$GCC" = yes; then
5417 case `$CC --version 2>/dev/null` in
5418 [12].*)
5419 cat <<EOF 1>&2
5420
5421*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5422*** create self contained shared libraries on Solaris systems, without
5423*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5424*** -no-undefined support, which will at least allow you to build shared
5425*** libraries. However, you may find that when you link such libraries
5426*** into an application without using GCC, you have to manually add
5427*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5428*** upgrade to a newer version of GCC. Another option is to rebuild your
5429*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5430
5431EOF
5432 no_undefined_flag=
5433 ;;
5434 esac
5435 fi
5436 # $CC -shared without GNU ld will not create a library from C++
5437 # object files and a static libstdc++, better avoid it by now
5438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5439 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5441 hardcode_libdir_flag_spec='-R$libdir'
5442 hardcode_shlibpath_var=no
5443 case $host_os in
5444 solaris2.[0-5] | solaris2.[0-5].*) ;;
5445 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5446 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5447 esac
5448 link_all_deplibs=yes
5449 ;;
5450
5451 sunos4*)
5452 if test "x$host_vendor" = xsequent; then
5453 # Use $CC to link under sequent, because it throws in some extra .o
5454 # files that make .init and .fini sections work.
5455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5456 else
5457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5458 fi
5459 hardcode_libdir_flag_spec='-L$libdir'
5460 hardcode_direct=yes
5461 hardcode_minus_L=yes
5462 hardcode_shlibpath_var=no
5463 ;;
5464
5465 sysv4)
5466 if test "x$host_vendor" = xsno; then
5467 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5468 hardcode_direct=yes # is this really true???
5469 else
5470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5471 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5472 fi
5473 runpath_var='LD_RUN_PATH'
5474 hardcode_shlibpath_var=no
5475 ;;
5476
5477 sysv4.3*)
5478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5479 hardcode_shlibpath_var=no
5480 export_dynamic_flag_spec='-Bexport'
5481 ;;
5482
5483 sysv5*)
5484 no_undefined_flag=' -z text'
5485 # $CC -shared without GNU ld will not create a library from C++
5486 # object files and a static libstdc++, better avoid it by now
5487 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5488 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5490 hardcode_libdir_flag_spec=
5491 hardcode_shlibpath_var=no
5492 runpath_var='LD_RUN_PATH'
5493 ;;
5494
5495 uts4*)
5496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5497 hardcode_libdir_flag_spec='-L$libdir'
5498 hardcode_shlibpath_var=no
5499 ;;
5500
5501 dgux*)
5502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5503 hardcode_libdir_flag_spec='-L$libdir'
5504 hardcode_shlibpath_var=no
5505 ;;
5506
5507 sysv4*MP*)
5508 if test -d /usr/nec; then
5509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5510 hardcode_shlibpath_var=no
5511 runpath_var=LD_RUN_PATH
5512 hardcode_runpath_var=yes
5513 ld_shlibs=yes
5514 fi
5515 ;;
5516
5517 sysv4.2uw2*)
5518 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5519 hardcode_direct=yes
5520 hardcode_minus_L=no
5521 hardcode_shlibpath_var=no
5522 hardcode_runpath_var=yes
5523 runpath_var=LD_RUN_PATH
5524 ;;
5525
5526 sysv5uw7* | unixware7*)
5527 no_undefined_flag='${wl}-z ${wl}text'
5528 if test "$GCC" = yes; then
5529 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5530 else
5531 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5532 fi
5533 runpath_var='LD_RUN_PATH'
5534 hardcode_shlibpath_var=no
5535 ;;
5536
5537 *)
5538 ld_shlibs=no
5539 ;;
5540 esac
5541fi
5542echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5543echo "${ECHO_T}$ld_shlibs" >&6
5544test "$ld_shlibs" = no && can_build_shared=no
5545##
5546## END FIXME
5547
5548## FIXME: this should be a separate macro
5549##
5550# Check hardcoding attributes.
5551echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5552echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5553hardcode_action=
5554if test -n "$hardcode_libdir_flag_spec" || \
5555 test -n "$runpath_var"; then
5556
5557 # We can hardcode non-existant directories.
5558 if test "$hardcode_direct" != no &&
5559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5560 # have to relink, otherwise we might link with an installed library
5561 # when we should be linking with a yet-to-be-installed one
5562 ## test "$hardcode_shlibpath_var" != no &&
5563 test "$hardcode_minus_L" != no; then
5564 # Linking always hardcodes the temporary library directory.
5565 hardcode_action=relink
5566 else
5567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5568 hardcode_action=immediate
5569 fi
5570else
5571 # We cannot hardcode anything, or else we can only hardcode existing
5572 # directories.
5573 hardcode_action=unsupported
5574fi
5575echo "$as_me:$LINENO: result: $hardcode_action" >&5
5576echo "${ECHO_T}$hardcode_action" >&6
5577##
5578## END FIXME
5579
5580## FIXME: this should be a separate macro
5581##
5582striplib=
5583old_striplib=
5584echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5585echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5586if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5587 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5588 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594fi
5595##
5596## END FIXME
5597
5598reload_cmds='$LD$reload_flag -o $output$reload_objs'
5599test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600
5601## FIXME: this should be a separate macro
5602##
5603# PORTME Fill in your ld.so characteristics
5604echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5605echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5606library_names_spec=
5607libname_spec='lib$name'
5608soname_spec=
5609postinstall_cmds=
5610postuninstall_cmds=
5611finish_cmds=
5612finish_eval=
5613shlibpath_var=
5614shlibpath_overrides_runpath=unknown
5615version_type=none
5616dynamic_linker="$host_os ld.so"
5617sys_lib_dlsearch_path_spec="/lib /usr/lib"
5618sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5619
5620case $host_os in
5621aix3*)
5622 version_type=linux
5623 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5624 shlibpath_var=LIBPATH
5625
5626 # AIX has no versioning support, so we append a major version to the name.
5627 soname_spec='${libname}${release}.so$major'
5628 ;;
5629
5630aix4* | aix5*)
5631 version_type=linux
5632 if test "$host_cpu" = ia64; then
5633 # AIX 5 supports IA64
5634 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5635 shlibpath_var=LD_LIBRARY_PATH
5636 else
5637 # With GCC up to 2.95.x, collect2 would create an import file
5638 # for dependence libraries. The import file would start with
5639 # the line `#! .'. This would cause the generated library to
5640 # depend on `.', always an invalid library. This was fixed in
5641 # development snapshots of GCC prior to 3.0.
5642 case $host_os in
5643 aix4 | aix4.[01] | aix4.[01].*)
5644 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5645 echo ' yes '
5646 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5647 :
5648 else
5649 can_build_shared=no
5650 fi
5651 ;;
5652 esac
5653 # AIX (on Power*) has no versioning support, so currently we can
5654 # not hardcode correct soname into executable. Probably we can
5655 # add versioning support to collect2, so additional links can
5656 # be useful in future.
5657 if test "$aix_use_runtimelinking" = yes; then
5658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5659 # instead of lib<name>.a to let people know that these are not
5660 # typical AIX shared libraries.
5661 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5662 else
5663 # We preserve .a as extension for shared libraries through AIX4.2
5664 # and later when we are not doing run time linking.
5665 library_names_spec='${libname}${release}.a $libname.a'
5666 soname_spec='${libname}${release}.so$major'
5667 fi
5668 shlibpath_var=LIBPATH
5669 fi
5670 ;;
5671
5672amigaos*)
5673 library_names_spec='$libname.ixlibrary $libname.a'
5674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5675 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'
5676 ;;
5677
5678beos*)
5679 library_names_spec='${libname}.so'
5680 dynamic_linker="$host_os ld.so"
5681 shlibpath_var=LIBRARY_PATH
5682 ;;
5683
5684bsdi4*)
5685 version_type=linux
5686 need_version=no
5687 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5688 soname_spec='${libname}${release}.so$major'
5689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5690 shlibpath_var=LD_LIBRARY_PATH
5691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5693 export_dynamic_flag_spec=-rdynamic
5694 # the default ld.so.conf also contains /usr/contrib/lib and
5695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5696 # libtool to hard-code these into programs
5697 ;;
5698
5699cygwin* | mingw* | pw32*)
5700 version_type=windows
5701 need_version=no
5702 need_lib_prefix=no
5703 case $GCC,$host_os in
5704 yes,cygwin*)
5705 library_names_spec='$libname.dll.a'
5706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5707 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5708 dldir=$destdir/`dirname \$dlpath`~
5709 test -d \$dldir || mkdir -p \$dldir~
5710 $install_prog .libs/$dlname \$dldir/$dlname'
5711 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5712 dlpath=$dir/\$dldll~
5713 $rm \$dlpath'
5714 ;;
5715 yes,mingw*)
5716 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5718 ;;
5719 yes,pw32*)
5720 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5721 ;;
5722 *)
5723 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5724 ;;
5725 esac
5726 dynamic_linker='Win32 ld.exe'
5727 # FIXME: first we should search . and the directory the executable is in
5728 shlibpath_var=PATH
5729 ;;
5730
5731darwin* | rhapsody*)
5732 dynamic_linker="$host_os dyld"
5733 version_type=darwin
5734 need_lib_prefix=no
5735 need_version=no
5736 # FIXME: Relying on posixy $() will cause problems for
5737 # cross-compilation, but unfortunately the echo tests do not
5738 # yet detect zsh echo's removal of \ escapes.
5739 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)'
5740 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5741 shlibpath_overrides_runpath=yes
5742 shlibpath_var=DYLD_LIBRARY_PATH
5743 ;;
5744
5745freebsd1*)
5746 dynamic_linker=no
5747 ;;
5748
5749freebsd*)
5750 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5751 version_type=freebsd-$objformat
5752 case $version_type in
5753 freebsd-elf*)
5754 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5755 need_version=no
5756 need_lib_prefix=no
5757 ;;
5758 freebsd-*)
5759 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5760 need_version=yes
5761 ;;
5762 esac
5763 shlibpath_var=LD_LIBRARY_PATH
5764 case $host_os in
5765 freebsd2*)
5766 shlibpath_overrides_runpath=yes
5767 ;;
5768 *)
5769 shlibpath_overrides_runpath=no
5770 hardcode_into_libs=yes
5771 ;;
5772 esac
5773 ;;
5774
5775gnu*)
5776 version_type=linux
5777 need_lib_prefix=no
5778 need_version=no
5779 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5780 soname_spec='${libname}${release}.so$major'
5781 shlibpath_var=LD_LIBRARY_PATH
5782 hardcode_into_libs=yes
5783 ;;
5784
5785hpux9* | hpux10* | hpux11*)
5786 # Give a soname corresponding to the major version so that dld.sl refuses to
5787 # link against other versions.
5788 dynamic_linker="$host_os dld.sl"
5789 version_type=sunos
5790 need_lib_prefix=no
5791 need_version=no
5792 shlibpath_var=SHLIB_PATH
5793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5794 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5795 soname_spec='${libname}${release}.sl$major'
5796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5797 postinstall_cmds='chmod 555 $lib'
5798 ;;
5799
5800irix5* | irix6*)
5801 version_type=irix
5802 need_lib_prefix=no
5803 need_version=no
5804 soname_spec='${libname}${release}.so$major'
5805 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5806 case $host_os in
5807 irix5*)
5808 libsuff= shlibsuff=
5809 ;;
5810 *)
5811 case $LD in # libtool.m4 will add one of these switches to LD
5812 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5813 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5814 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5815 *) libsuff= shlibsuff= libmagic=never-match;;
5816 esac
5817 ;;
5818 esac
5819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5820 shlibpath_overrides_runpath=no
5821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5823 ;;
5824
5825# No shared lib support for Linux oldld, aout, or coff.
5826linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5827 dynamic_linker=no
5828 ;;
5829
5830# This must be Linux ELF.
5831linux-gnu*)
5832 version_type=linux
5833 need_lib_prefix=no
5834 need_version=no
5835 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5836 soname_spec='${libname}${release}.so$major'
5837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5838 shlibpath_var=LD_LIBRARY_PATH
5839 shlibpath_overrides_runpath=no
5840 # This implies no fast_install, which is unacceptable.
5841 # Some rework will be needed to allow for fast_install
5842 # before this can be enabled.
5843 hardcode_into_libs=yes
5844
5845 # We used to test for /lib/ld.so.1 and disable shared libraries on
5846 # powerpc, because MkLinux only supported shared libraries with the
5847 # GNU dynamic linker. Since this was broken with cross compilers,
5848 # most powerpc-linux boxes support dynamic linking these days and
5849 # people can always --disable-shared, the test was removed, and we
5850 # assume the GNU/Linux dynamic linker is in use.
5851 dynamic_linker='GNU/Linux ld.so'
5852 ;;
5853
5854netbsd*)
5855 version_type=sunos
5856 need_lib_prefix=no
5857 need_version=no
5858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5859 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5861 dynamic_linker='NetBSD (a.out) ld.so'
5862 else
5863 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5864 soname_spec='${libname}${release}.so$major'
5865 dynamic_linker='NetBSD ld.elf_so'
5866 fi
5867 shlibpath_var=LD_LIBRARY_PATH
5868 shlibpath_overrides_runpath=yes
5869 hardcode_into_libs=yes
5870 ;;
5871
5872newsos6)
5873 version_type=linux
5874 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5875 shlibpath_var=LD_LIBRARY_PATH
5876 shlibpath_overrides_runpath=yes
5877 ;;
5878
5879openbsd*)
5880 version_type=sunos
5881 need_lib_prefix=no
5882 need_version=no
5883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5884 case "$host_os" in
5885 openbsd2.[89] | openbsd2.[89].*)
5886 shlibpath_overrides_runpath=no
5887 ;;
5888 *)
5889 shlibpath_overrides_runpath=yes
5890 ;;
5891 esac
5892 else
5893 shlibpath_overrides_runpath=yes
5894 fi
5895 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5897 shlibpath_var=LD_LIBRARY_PATH
5898 ;;
5899
5900os2*)
5901 libname_spec='$name'
5902 need_lib_prefix=no
5903 library_names_spec='$libname.dll $libname.a'
5904 dynamic_linker='OS/2 ld.exe'
5905 shlibpath_var=LIBPATH
5906 ;;
5907
5908osf3* | osf4* | osf5*)
5909 version_type=osf
5910 need_version=no
5911 soname_spec='${libname}${release}.so'
5912 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5913 shlibpath_var=LD_LIBRARY_PATH
5914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5916 ;;
5917
5918sco3.2v5*)
5919 version_type=osf
5920 soname_spec='${libname}${release}.so$major'
5921 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5922 shlibpath_var=LD_LIBRARY_PATH
5923 ;;
5924
5925solaris*)
5926 version_type=linux
5927 need_lib_prefix=no
5928 need_version=no
5929 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5930 soname_spec='${libname}${release}.so$major'
5931 shlibpath_var=LD_LIBRARY_PATH
5932 shlibpath_overrides_runpath=yes
5933 hardcode_into_libs=yes
5934 # ldd complains unless libraries are executable
5935 postinstall_cmds='chmod +x $lib'
5936 ;;
5937
5938sunos4*)
5939 version_type=sunos
5940 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5942 shlibpath_var=LD_LIBRARY_PATH
5943 shlibpath_overrides_runpath=yes
5944 if test "$with_gnu_ld" = yes; then
5945 need_lib_prefix=no
5946 fi
5947 need_version=yes
5948 ;;
5949
5950sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5951 version_type=linux
5952 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5953 soname_spec='${libname}${release}.so$major'
5954 shlibpath_var=LD_LIBRARY_PATH
5955 case $host_vendor in
5956 sni)
5957 shlibpath_overrides_runpath=no
5958 ;;
5959 motorola)
5960 need_lib_prefix=no
5961 need_version=no
5962 shlibpath_overrides_runpath=no
5963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5964 ;;
5965 esac
5966 ;;
5967
5968uts4*)
5969 version_type=linux
5970 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5971 soname_spec='${libname}${release}.so$major'
5972 shlibpath_var=LD_LIBRARY_PATH
5973 ;;
5974
5975dgux*)
5976 version_type=linux
5977 need_lib_prefix=no
5978 need_version=no
5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5980 soname_spec='${libname}${release}.so$major'
5981 shlibpath_var=LD_LIBRARY_PATH
5982 ;;
5983
5984sysv4*MP*)
5985 if test -d /usr/nec ;then
5986 version_type=linux
5987 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5988 soname_spec='$libname.so.$major'
5989 shlibpath_var=LD_LIBRARY_PATH
5990 fi
5991 ;;
5992
5993*)
5994 dynamic_linker=no
5995 ;;
5996esac
5997echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5998echo "${ECHO_T}$dynamic_linker" >&6
5999test "$dynamic_linker" = no && can_build_shared=no
6000##
6001## END FIXME
6002
6003## FIXME: this should be a separate macro
6004##
6005# Report the final consequences.
6006echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6007echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6008echo "$as_me:$LINENO: result: $can_build_shared" >&5
6009echo "${ECHO_T}$can_build_shared" >&6
6010##
6011## END FIXME
6012
6013## FIXME: this should be a separate macro
6014##
6015echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6016echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6017test "$can_build_shared" = "no" && enable_shared=no
6018
6019# On AIX, shared libraries and static libraries use the same namespace, and
6020# are all built from PIC.
6021case "$host_os" in
6022aix3*)
6023 test "$enable_shared" = yes && enable_static=no
6024 if test -n "$RANLIB"; then
6025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6026 postinstall_cmds='$RANLIB $lib'
6027 fi
6028 ;;
6029
6030aix4*)
6031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6032 test "$enable_shared" = yes && enable_static=no
6033 fi
6034 ;;
6035esac
6036echo "$as_me:$LINENO: result: $enable_shared" >&5
6037echo "${ECHO_T}$enable_shared" >&6
6038##
6039## END FIXME
6040
6041## FIXME: this should be a separate macro
6042##
6043echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6044echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6045# Make sure either enable_shared or enable_static is yes.
6046test "$enable_shared" = yes || enable_static=yes
6047echo "$as_me:$LINENO: result: $enable_static" >&5
6048echo "${ECHO_T}$enable_static" >&6
6049##
6050## END FIXME
6051
6052if test "$hardcode_action" = relink; then
6053 # Fast installation is not supported
6054 enable_fast_install=no
6055elif test "$shlibpath_overrides_runpath" = yes ||
6056 test "$enable_shared" = no; then
6057 # Fast installation is not necessary
6058 enable_fast_install=needless
6059fi
6060
6061variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6062if test "$GCC" = yes; then
6063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6064fi
6065
6066if test "x$enable_dlopen" != xyes; then
6067 enable_dlopen=unknown
6068 enable_dlopen_self=unknown
6069 enable_dlopen_self_static=unknown
6070else
6071 lt_cv_dlopen=no
6072 lt_cv_dlopen_libs=
6073
6074 case $host_os in
6075 beos*)
6076 lt_cv_dlopen="load_add_on"
6077 lt_cv_dlopen_libs=
6078 lt_cv_dlopen_self=yes
6079 ;;
6080
6081 cygwin* | mingw* | pw32*)
6082 lt_cv_dlopen="LoadLibrary"
6083 lt_cv_dlopen_libs=
6084 ;;
6085
6086 *)
6087 echo "$as_me:$LINENO: checking for shl_load" >&5
6088echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6089if test "${ac_cv_func_shl_load+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 cat >conftest.$ac_ext <<_ACEOF
6093#line $LINENO "configure"
79608eef
VS
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
5e9f2524 6099/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
6100 which can conflict with char shl_load (); below.
6101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102 <limits.h> exists even on freestanding compilers. */
6103#ifdef __STDC__
6104# include <limits.h>
6105#else
6106# include <assert.h>
6107#endif
5e9f2524
VS
6108/* Override any gcc2 internal prototype to avoid an error. */
6109#ifdef __cplusplus
6110extern "C"
79608eef 6111{
5e9f2524
VS
6112#endif
6113/* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6115char shl_load ();
5e9f2524
VS
6116/* The GNU C library defines this for functions which it implements
6117 to always fail with ENOSYS. Some functions are actually named
6118 something starting with __ and the normal name is an alias. */
6119#if defined (__stub_shl_load) || defined (__stub___shl_load)
6120choke me
6121#else
79608eef
VS
6122char (*f) () = shl_load;
6123#endif
6124#ifdef __cplusplus
6125}
5e9f2524
VS
6126#endif
6127
79608eef
VS
6128int
6129main ()
6130{
6131return f != shl_load;
5e9f2524
VS
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext conftest$ac_exeext
6137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -s conftest$ac_exeext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 ac_cv_func_shl_load=yes
6149else
6150 echo "$as_me: failed program was:" >&5
79608eef
VS
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
5e9f2524
VS
6153ac_cv_func_shl_load=no
6154fi
6155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6156fi
6157echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6158echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6159if test $ac_cv_func_shl_load = yes; then
6160 lt_cv_dlopen="shl_load"
6161else
6162 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6163echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6164if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166else
6167 ac_check_lib_save_LIBS=$LIBS
6168LIBS="-ldld $LIBS"
6169cat >conftest.$ac_ext <<_ACEOF
6170#line $LINENO "configure"
79608eef
VS
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
5e9f2524
VS
6176
6177/* Override any gcc2 internal prototype to avoid an error. */
6178#ifdef __cplusplus
6179extern "C"
6180#endif
6181/* We use char because int might match the return type of a gcc2
6182 builtin and then its argument prototype would still apply. */
6183char shl_load ();
5e9f2524
VS
6184int
6185main ()
6186{
6187shl_load ();
6188 ;
6189 return 0;
6190}
6191_ACEOF
6192rm -f conftest.$ac_objext conftest$ac_exeext
6193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_lib_dld_shl_load=yes
6205else
6206 echo "$as_me: failed program was:" >&5
79608eef
VS
6207sed 's/^/| /' conftest.$ac_ext >&5
6208
5e9f2524
VS
6209ac_cv_lib_dld_shl_load=no
6210fi
6211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212LIBS=$ac_check_lib_save_LIBS
6213fi
6214echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6215echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6216if test $ac_cv_lib_dld_shl_load = yes; then
6217 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6218else
6219 echo "$as_me:$LINENO: checking for dlopen" >&5
6220echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6221if test "${ac_cv_func_dlopen+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 cat >conftest.$ac_ext <<_ACEOF
6225#line $LINENO "configure"
79608eef
VS
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
5e9f2524 6231/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
6232 which can conflict with char dlopen (); below.
6233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234 <limits.h> exists even on freestanding compilers. */
6235#ifdef __STDC__
6236# include <limits.h>
6237#else
6238# include <assert.h>
6239#endif
5e9f2524
VS
6240/* Override any gcc2 internal prototype to avoid an error. */
6241#ifdef __cplusplus
6242extern "C"
79608eef 6243{
5e9f2524
VS
6244#endif
6245/* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6247char dlopen ();
5e9f2524
VS
6248/* The GNU C library defines this for functions which it implements
6249 to always fail with ENOSYS. Some functions are actually named
6250 something starting with __ and the normal name is an alias. */
6251#if defined (__stub_dlopen) || defined (__stub___dlopen)
6252choke me
6253#else
79608eef
VS
6254char (*f) () = dlopen;
6255#endif
6256#ifdef __cplusplus
6257}
5e9f2524
VS
6258#endif
6259
79608eef
VS
6260int
6261main ()
6262{
6263return f != dlopen;
5e9f2524
VS
6264 ;
6265 return 0;
6266}
6267_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext
6269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -s conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_func_dlopen=yes
6281else
6282 echo "$as_me: failed program was:" >&5
79608eef
VS
6283sed 's/^/| /' conftest.$ac_ext >&5
6284
5e9f2524
VS
6285ac_cv_func_dlopen=no
6286fi
6287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6290echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6291if test $ac_cv_func_dlopen = yes; then
6292 lt_cv_dlopen="dlopen"
6293else
6294 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6295echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6296if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298else
6299 ac_check_lib_save_LIBS=$LIBS
6300LIBS="-ldl $LIBS"
6301cat >conftest.$ac_ext <<_ACEOF
6302#line $LINENO "configure"
79608eef
VS
6303/* confdefs.h. */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
6307/* end confdefs.h. */
5e9f2524
VS
6308
6309/* Override any gcc2 internal prototype to avoid an error. */
6310#ifdef __cplusplus
6311extern "C"
6312#endif
6313/* We use char because int might match the return type of a gcc2
6314 builtin and then its argument prototype would still apply. */
6315char dlopen ();
5e9f2524
VS
6316int
6317main ()
6318{
6319dlopen ();
6320 ;
6321 return 0;
6322}
6323_ACEOF
6324rm -f conftest.$ac_objext conftest$ac_exeext
6325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326 (eval $ac_link) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest$ac_exeext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_cv_lib_dl_dlopen=yes
6337else
6338 echo "$as_me: failed program was:" >&5
79608eef
VS
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
5e9f2524
VS
6341ac_cv_lib_dl_dlopen=no
6342fi
6343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6344LIBS=$ac_check_lib_save_LIBS
6345fi
6346echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6347echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6348if test $ac_cv_lib_dl_dlopen = yes; then
6349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6350else
6351 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6352echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6353if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356 ac_check_lib_save_LIBS=$LIBS
6357LIBS="-lsvld $LIBS"
6358cat >conftest.$ac_ext <<_ACEOF
6359#line $LINENO "configure"
79608eef
VS
6360/* confdefs.h. */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h. */
5e9f2524
VS
6365
6366/* Override any gcc2 internal prototype to avoid an error. */
6367#ifdef __cplusplus
6368extern "C"
6369#endif
6370/* We use char because int might match the return type of a gcc2
6371 builtin and then its argument prototype would still apply. */
6372char dlopen ();
5e9f2524
VS
6373int
6374main ()
6375{
6376dlopen ();
6377 ;
6378 return 0;
6379}
6380_ACEOF
6381rm -f conftest.$ac_objext conftest$ac_exeext
6382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6383 (eval $ac_link) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -s conftest$ac_exeext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_cv_lib_svld_dlopen=yes
6394else
6395 echo "$as_me: failed program was:" >&5
79608eef
VS
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
5e9f2524
VS
6398ac_cv_lib_svld_dlopen=no
6399fi
6400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401LIBS=$ac_check_lib_save_LIBS
6402fi
6403echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6404echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6405if test $ac_cv_lib_svld_dlopen = yes; then
6406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6407else
6408 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6409echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6410if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413 ac_check_lib_save_LIBS=$LIBS
6414LIBS="-ldld $LIBS"
6415cat >conftest.$ac_ext <<_ACEOF
6416#line $LINENO "configure"
79608eef
VS
6417/* confdefs.h. */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h. */
5e9f2524
VS
6422
6423/* Override any gcc2 internal prototype to avoid an error. */
6424#ifdef __cplusplus
6425extern "C"
6426#endif
6427/* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429char dld_link ();
5e9f2524
VS
6430int
6431main ()
6432{
6433dld_link ();
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext conftest$ac_exeext
6439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_lib_dld_dld_link=yes
6451else
6452 echo "$as_me: failed program was:" >&5
79608eef
VS
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
5e9f2524
VS
6455ac_cv_lib_dld_dld_link=no
6456fi
6457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6458LIBS=$ac_check_lib_save_LIBS
6459fi
6460echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6461echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6462if test $ac_cv_lib_dld_dld_link = yes; then
6463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6464fi
6465
6466
6467fi
6468
6469
6470fi
6471
6472
6473fi
6474
6475
6476fi
6477
6478
6479fi
6480
6481 ;;
6482 esac
6483
6484 if test "x$lt_cv_dlopen" != xno; then
6485 enable_dlopen=yes
6486 else
6487 enable_dlopen=no
6488 fi
6489
6490 case $lt_cv_dlopen in
6491 dlopen)
6492 save_CPPFLAGS="$CPPFLAGS"
6493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6494
6495 save_LDFLAGS="$LDFLAGS"
6496 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6497
6498 save_LIBS="$LIBS"
6499 LIBS="$lt_cv_dlopen_libs $LIBS"
6500
6501 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6502echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6503if test "${lt_cv_dlopen_self+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 if test "$cross_compiling" = yes; then :
6507 lt_cv_dlopen_self=cross
6508else
6509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6510 lt_status=$lt_dlunknown
6511 cat > conftest.$ac_ext <<EOF
79608eef 6512#line 6512 "configure"
5e9f2524
VS
6513#include "confdefs.h"
6514
6515#if HAVE_DLFCN_H
6516#include <dlfcn.h>
6517#endif
6518
6519#include <stdio.h>
6520
6521#ifdef RTLD_GLOBAL
6522# define LT_DLGLOBAL RTLD_GLOBAL
6523#else
6524# ifdef DL_GLOBAL
6525# define LT_DLGLOBAL DL_GLOBAL
6526# else
6527# define LT_DLGLOBAL 0
6528# endif
6529#endif
6530
6531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6532 find out it does not work in some platform. */
6533#ifndef LT_DLLAZY_OR_NOW
6534# ifdef RTLD_LAZY
6535# define LT_DLLAZY_OR_NOW RTLD_LAZY
6536# else
6537# ifdef DL_LAZY
6538# define LT_DLLAZY_OR_NOW DL_LAZY
6539# else
6540# ifdef RTLD_NOW
6541# define LT_DLLAZY_OR_NOW RTLD_NOW
6542# else
6543# ifdef DL_NOW
6544# define LT_DLLAZY_OR_NOW DL_NOW
6545# else
6546# define LT_DLLAZY_OR_NOW 0
6547# endif
6548# endif
6549# endif
6550# endif
6551#endif
6552
6553#ifdef __cplusplus
6554extern "C" void exit (int);
6555#endif
6556
6557void fnord() { int i=42;}
6558int main ()
6559{
6560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6561 int status = $lt_dlunknown;
6562
6563 if (self)
6564 {
6565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6567 /* dlclose (self); */
6568 }
6569
6570 exit (status);
6571}
6572EOF
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6578 (./conftest; exit; ) 2>/dev/null
6579 lt_status=$?
6580 case x$lt_status in
6581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6583 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6584 esac
6585 else :
6586 # compilation failed
6587 lt_cv_dlopen_self=no
6588 fi
6589fi
6590rm -fr conftest*
6591
6592
6593fi
6594echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6595echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6596
6597 if test "x$lt_cv_dlopen_self" = xyes; then
6598 LDFLAGS="$LDFLAGS $link_static_flag"
6599 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6600echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6601if test "${lt_cv_dlopen_self_static+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604 if test "$cross_compiling" = yes; then :
6605 lt_cv_dlopen_self_static=cross
6606else
6607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6608 lt_status=$lt_dlunknown
6609 cat > conftest.$ac_ext <<EOF
79608eef 6610#line 6610 "configure"
5e9f2524
VS
6611#include "confdefs.h"
6612
6613#if HAVE_DLFCN_H
6614#include <dlfcn.h>
6615#endif
6616
6617#include <stdio.h>
6618
6619#ifdef RTLD_GLOBAL
6620# define LT_DLGLOBAL RTLD_GLOBAL
6621#else
6622# ifdef DL_GLOBAL
6623# define LT_DLGLOBAL DL_GLOBAL
6624# else
6625# define LT_DLGLOBAL 0
6626# endif
6627#endif
6628
6629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6630 find out it does not work in some platform. */
6631#ifndef LT_DLLAZY_OR_NOW
6632# ifdef RTLD_LAZY
6633# define LT_DLLAZY_OR_NOW RTLD_LAZY
6634# else
6635# ifdef DL_LAZY
6636# define LT_DLLAZY_OR_NOW DL_LAZY
6637# else
6638# ifdef RTLD_NOW
6639# define LT_DLLAZY_OR_NOW RTLD_NOW
6640# else
6641# ifdef DL_NOW
6642# define LT_DLLAZY_OR_NOW DL_NOW
6643# else
6644# define LT_DLLAZY_OR_NOW 0
6645# endif
6646# endif
6647# endif
6648# endif
6649#endif
6650
6651#ifdef __cplusplus
6652extern "C" void exit (int);
6653#endif
6654
6655void fnord() { int i=42;}
6656int main ()
6657{
6658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6659 int status = $lt_dlunknown;
6660
6661 if (self)
6662 {
6663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6665 /* dlclose (self); */
6666 }
6667
6668 exit (status);
6669}
6670EOF
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6676 (./conftest; exit; ) 2>/dev/null
6677 lt_status=$?
6678 case x$lt_status in
6679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6681 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6682 esac
6683 else :
6684 # compilation failed
6685 lt_cv_dlopen_self_static=no
6686 fi
6687fi
6688rm -fr conftest*
6689
6690
6691fi
6692echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6693echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6694 fi
6695
6696 CPPFLAGS="$save_CPPFLAGS"
6697 LDFLAGS="$save_LDFLAGS"
6698 LIBS="$save_LIBS"
6699 ;;
6700 esac
6701
6702 case $lt_cv_dlopen_self in
6703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6704 *) enable_dlopen_self=unknown ;;
6705 esac
6706
6707 case $lt_cv_dlopen_self_static in
6708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6709 *) enable_dlopen_self_static=unknown ;;
6710 esac
6711fi
6712
6713
6714## FIXME: this should be a separate macro
6715##
6716if test "$enable_shared" = yes && test "$GCC" = yes; then
6717 case $archive_cmds in
6718 *'~'*)
6719 # FIXME: we may have to deal with multi-command sequences.
6720 ;;
6721 '$CC '*)
6722 # Test whether the compiler implicitly links with -lc since on some
6723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6724 # to ld, don't add -lc before -lgcc.
6725 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6726echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6727 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730 $rm conftest*
6731 echo 'static int dummy;' > conftest.$ac_ext
6732
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; then
6738 soname=conftest
6739 lib=conftest
6740 libobjs=conftest.$ac_objext
6741 deplibs=
6742 wl=$lt_cv_prog_cc_wl
6743 compiler_flags=-v
6744 linker_flags=-v
6745 verstring=
6746 output_objdir=.
6747 libname=conftest
6748 save_allow_undefined_flag=$allow_undefined_flag
6749 allow_undefined_flag=
6750 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6751 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }
6755 then
6756 lt_cv_archive_cmds_need_lc=no
6757 else
6758 lt_cv_archive_cmds_need_lc=yes
6759 fi
6760 allow_undefined_flag=$save_allow_undefined_flag
6761 else
6762 cat conftest.err 1>&5
6763 fi
6764fi
6765
6766 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6767echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6768 ;;
6769 esac
6770fi
6771need_lc=${lt_cv_archive_cmds_need_lc-yes}
6772##
6773## END FIXME
6774
6775## FIXME: this should be a separate macro
6776##
6777# The second clause should only fire when bootstrapping the
6778# libtool distribution, otherwise you forgot to ship ltmain.sh
6779# with your package, and you will get complaints that there are
6780# no rules to generate ltmain.sh.
6781if test -f "$ltmain"; then
6782 :
6783else
6784 # If there is no Makefile yet, we rely on a make rule to execute
6785 # `config.status --recheck' to rerun these tests and create the
6786 # libtool script then.
6787 test -f Makefile && make "$ltmain"
6788fi
6789
6790if test -f "$ltmain"; then
6791 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6792 $rm -f "${ofile}T"
6793
6794 echo creating $ofile
6795
6796 # Now quote all the things that may contain metacharacters while being
6797 # careful not to overquote the AC_SUBSTed values. We take copies of the
6798 # variables and quote the copies for generation of the libtool script.
6799 for var in echo old_CC old_CFLAGS \
6800 AR AR_FLAGS CC LD LN_S NM SHELL \
6801 reload_flag reload_cmds wl \
6802 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6803 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6804 library_names_spec soname_spec \
6805 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6806 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6807 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6808 old_striplib striplib file_magic_cmd export_symbols_cmds \
6809 deplibs_check_method allow_undefined_flag no_undefined_flag \
6810 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6811 global_symbol_to_c_name_address \
6812 hardcode_libdir_flag_spec hardcode_libdir_separator \
6813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6814 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6815
6816 case $var in
6817 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6818 old_postinstall_cmds | old_postuninstall_cmds | \
6819 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6820 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6821 postinstall_cmds | postuninstall_cmds | \
6822 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6823 # Double-quote double-evaled strings.
6824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6825 ;;
6826 *)
6827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6828 ;;
6829 esac
6830 done
6831
6832 cat <<__EOF__ > "${ofile}T"
6833#! $SHELL
6834
6835# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6836# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6837# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6838#
6839# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6840# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6841#
6842# This program is free software; you can redistribute it and/or modify
6843# it under the terms of the GNU General Public License as published by
6844# the Free Software Foundation; either version 2 of the License, or
6845# (at your option) any later version.
6846#
6847# This program is distributed in the hope that it will be useful, but
6848# WITHOUT ANY WARRANTY; without even the implied warranty of
6849# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6850# General Public License for more details.
6851#
6852# You should have received a copy of the GNU General Public License
6853# along with this program; if not, write to the Free Software
6854# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6855#
6856# As a special exception to the GNU General Public License, if you
6857# distribute this file as part of a program that contains a
6858# configuration script generated by Autoconf, you may include it under
6859# the same distribution terms that you use for the rest of that program.
6860
6861# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6862Xsed="sed -e s/^X//"
6863
6864# The HP-UX ksh and POSIX shell print the target directory to stdout
6865# if CDPATH is set.
6866if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6867
6868# ### BEGIN LIBTOOL CONFIG
6869
6870# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6871
6872# Shell to use when invoking shell scripts.
6873SHELL=$lt_SHELL
6874
6875# Whether or not to build shared libraries.
6876build_libtool_libs=$enable_shared
6877
6878# Whether or not to build static libraries.
6879build_old_libs=$enable_static
6880
6881# Whether or not to add -lc for building shared libraries.
6882build_libtool_need_lc=$need_lc
6883
6884# Whether or not to optimize for fast installation.
6885fast_install=$enable_fast_install
6886
6887# The host system.
6888host_alias=$host_alias
6889host=$host
6890
6891# An echo program that does not interpret backslashes.
6892echo=$lt_echo
6893
6894# The archiver.
6895AR=$lt_AR
6896AR_FLAGS=$lt_AR_FLAGS
6897
6898# The default C compiler.
6899CC=$lt_CC
6900
6901# Is the compiler the GNU C compiler?
6902with_gcc=$GCC
6903
6904# The linker used to build libraries.
6905LD=$lt_LD
6906
6907# Whether we need hard or soft links.
6908LN_S=$lt_LN_S
6909
6910# A BSD-compatible nm program.
6911NM=$lt_NM
6912
6913# A symbol stripping program
6914STRIP=$STRIP
6915
6916# Used to examine libraries when file_magic_cmd begins "file"
6917MAGIC_CMD=$MAGIC_CMD
6918
6919# Used on cygwin: DLL creation program.
6920DLLTOOL="$DLLTOOL"
6921
6922# Used on cygwin: object dumper.
6923OBJDUMP="$OBJDUMP"
6924
6925# Used on cygwin: assembler.
6926AS="$AS"
6927
6928# The name of the directory that contains temporary libtool files.
6929objdir=$objdir
6930
6931# How to create reloadable object files.
6932reload_flag=$lt_reload_flag
6933reload_cmds=$lt_reload_cmds
6934
6935# How to pass a linker flag through the compiler.
6936wl=$lt_wl
6937
6938# Object file suffix (normally "o").
6939objext="$ac_objext"
6940
6941# Old archive suffix (normally "a").
6942libext="$libext"
6943
6944# Executable file suffix (normally "").
6945exeext="$exeext"
6946
6947# Additional compiler flags for building library objects.
6948pic_flag=$lt_pic_flag
6949pic_mode=$pic_mode
6950
6951# Does compiler simultaneously support -c and -o options?
6952compiler_c_o=$lt_compiler_c_o
6953
6954# Can we write directly to a .lo ?
6955compiler_o_lo=$lt_compiler_o_lo
6956
6957# Must we lock files when doing compilation ?
6958need_locks=$lt_need_locks
6959
6960# Do we need the lib prefix for modules?
6961need_lib_prefix=$need_lib_prefix
6962
6963# Do we need a version for libraries?
6964need_version=$need_version
6965
6966# Whether dlopen is supported.
6967dlopen_support=$enable_dlopen
6968
6969# Whether dlopen of programs is supported.
6970dlopen_self=$enable_dlopen_self
6971
6972# Whether dlopen of statically linked programs is supported.
6973dlopen_self_static=$enable_dlopen_self_static
6974
6975# Compiler flag to prevent dynamic linking.
6976link_static_flag=$lt_link_static_flag
6977
6978# Compiler flag to turn off builtin functions.
6979no_builtin_flag=$lt_no_builtin_flag
6980
6981# Compiler flag to allow reflexive dlopens.
6982export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6983
6984# Compiler flag to generate shared objects directly from archives.
6985whole_archive_flag_spec=$lt_whole_archive_flag_spec
6986
6987# Compiler flag to generate thread-safe objects.
6988thread_safe_flag_spec=$lt_thread_safe_flag_spec
6989
6990# Library versioning type.
6991version_type=$version_type
6992
6993# Format of library name prefix.
6994libname_spec=$lt_libname_spec
6995
6996# List of archive names. First name is the real one, the rest are links.
6997# The last name is the one that the linker finds with -lNAME.
6998library_names_spec=$lt_library_names_spec
6999
7000# The coded name of the library, if different from the real name.
7001soname_spec=$lt_soname_spec
7002
7003# Commands used to build and install an old-style archive.
7004RANLIB=$lt_RANLIB
7005old_archive_cmds=$lt_old_archive_cmds
7006old_postinstall_cmds=$lt_old_postinstall_cmds
7007old_postuninstall_cmds=$lt_old_postuninstall_cmds
7008
7009# Create an old-style archive from a shared archive.
7010old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7011
7012# Create a temporary old-style archive to link instead of a shared archive.
7013old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7014
7015# Commands used to build and install a shared archive.
7016archive_cmds=$lt_archive_cmds
7017archive_expsym_cmds=$lt_archive_expsym_cmds
7018postinstall_cmds=$lt_postinstall_cmds
7019postuninstall_cmds=$lt_postuninstall_cmds
7020
7021# Commands to strip libraries.
7022old_striplib=$lt_old_striplib
7023striplib=$lt_striplib
7024
7025# Method to check whether dependent libraries are shared objects.
7026deplibs_check_method=$lt_deplibs_check_method
7027
7028# Command to use when deplibs_check_method == file_magic.
7029file_magic_cmd=$lt_file_magic_cmd
7030
7031# Flag that allows shared libraries with undefined symbols to be built.
7032allow_undefined_flag=$lt_allow_undefined_flag
7033
7034# Flag that forces no undefined symbols.
7035no_undefined_flag=$lt_no_undefined_flag
7036
7037# Commands used to finish a libtool library installation in a directory.
7038finish_cmds=$lt_finish_cmds
7039
7040# Same as above, but a single script fragment to be evaled but not shown.
7041finish_eval=$lt_finish_eval
7042
7043# Take the output of nm and produce a listing of raw symbols and C names.
7044global_symbol_pipe=$lt_global_symbol_pipe
7045
7046# Transform the output of nm in a proper C declaration
7047global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7048
7049# Transform the output of nm in a C name address pair
7050global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7051
7052# This is the shared library runtime path variable.
7053runpath_var=$runpath_var
7054
7055# This is the shared library path variable.
7056shlibpath_var=$shlibpath_var
7057
7058# Is shlibpath searched before the hard-coded library search path?
7059shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7060
7061# How to hardcode a shared library path into an executable.
7062hardcode_action=$hardcode_action
7063
7064# Whether we should hardcode library paths into libraries.
7065hardcode_into_libs=$hardcode_into_libs
7066
7067# Flag to hardcode \$libdir into a binary during linking.
7068# This must work even if \$libdir does not exist.
7069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7070
7071# Whether we need a single -rpath flag with a separated argument.
7072hardcode_libdir_separator=$lt_hardcode_libdir_separator
7073
7074# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7075# resulting binary.
7076hardcode_direct=$hardcode_direct
7077
7078# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7079# resulting binary.
7080hardcode_minus_L=$hardcode_minus_L
7081
7082# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7083# the resulting binary.
7084hardcode_shlibpath_var=$hardcode_shlibpath_var
7085
7086# Variables whose values should be saved in libtool wrapper scripts and
7087# restored at relink time.
7088variables_saved_for_relink="$variables_saved_for_relink"
7089
7090# Whether libtool must link a program against all its dependency libraries.
7091link_all_deplibs=$link_all_deplibs
7092
7093# Compile-time system search path for libraries
7094sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7095
7096# Run-time system search path for libraries
7097sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7098
7099# Fix the shell variable \$srcfile for the compiler.
7100fix_srcfile_path="$fix_srcfile_path"
7101
7102# Set to yes if exported symbols are required.
7103always_export_symbols=$always_export_symbols
7104
7105# The commands to list exported symbols.
7106export_symbols_cmds=$lt_export_symbols_cmds
7107
7108# The commands to extract the exported symbol list from a shared archive.
7109extract_expsyms_cmds=$lt_extract_expsyms_cmds
7110
7111# Symbols that should not be listed in the preloaded symbols.
7112exclude_expsyms=$lt_exclude_expsyms
7113
7114# Symbols that must always be exported.
7115include_expsyms=$lt_include_expsyms
7116
7117# ### END LIBTOOL CONFIG
7118
7119__EOF__
7120
7121 case $host_os in
7122 aix3*)
7123 cat <<\EOF >> "${ofile}T"
7124
7125# AIX sometimes has problems with the GCC collect2 program. For some
7126# reason, if we set the COLLECT_NAMES environment variable, the problems
7127# vanish in a puff of smoke.
7128if test "X${COLLECT_NAMES+set}" != Xset; then
7129 COLLECT_NAMES=
7130 export COLLECT_NAMES
7131fi
7132EOF
7133 ;;
7134 esac
7135
7136 case $host_os in
7137 cygwin* | mingw* | pw32* | os2*)
7138 cat <<'EOF' >> "${ofile}T"
7139 # This is a source program that is used to create dlls on Windows
7140 # Don't remove nor modify the starting and closing comments
7141# /* ltdll.c starts here */
7142# #define WIN32_LEAN_AND_MEAN
7143# #include <windows.h>
7144# #undef WIN32_LEAN_AND_MEAN
7145# #include <stdio.h>
7146#
7147# #ifndef __CYGWIN__
7148# # ifdef __CYGWIN32__
7149# # define __CYGWIN__ __CYGWIN32__
7150# # endif
7151# #endif
7152#
7153# #ifdef __cplusplus
7154# extern "C" {
7155# #endif
7156# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7157# #ifdef __cplusplus
7158# }
7159# #endif
7160#
7161# #ifdef __CYGWIN__
7162# #include <cygwin/cygwin_dll.h>
7163# DECLARE_CYGWIN_DLL( DllMain );
7164# #endif
7165# HINSTANCE __hDllInstance_base;
7166#
7167# BOOL APIENTRY
7168# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7169# {
7170# __hDllInstance_base = hInst;
7171# return TRUE;
7172# }
7173# /* ltdll.c ends here */
7174 # This is a source program that is used to create import libraries
7175 # on Windows for dlls which lack them. Don't remove nor modify the
7176 # starting and closing comments
7177# /* impgen.c starts here */
7178# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7179#
7180# This file is part of GNU libtool.
7181#
7182# This program is free software; you can redistribute it and/or modify
7183# it under the terms of the GNU General Public License as published by
7184# the Free Software Foundation; either version 2 of the License, or
7185# (at your option) any later version.
7186#
7187# This program is distributed in the hope that it will be useful,
7188# but WITHOUT ANY WARRANTY; without even the implied warranty of
7189# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7190# GNU General Public License for more details.
7191#
7192# You should have received a copy of the GNU General Public License
7193# along with this program; if not, write to the Free Software
7194# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7195# */
7196#
7197# #include <stdio.h> /* for printf() */
7198# #include <unistd.h> /* for open(), lseek(), read() */
7199# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7200# #include <string.h> /* for strdup() */
7201#
7202# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7203# #ifndef O_BINARY
7204# #define O_BINARY 0
7205# #endif
7206#
7207# static unsigned int
7208# pe_get16 (fd, offset)
7209# int fd;
7210# int offset;
7211# {
7212# unsigned char b[2];
7213# lseek (fd, offset, SEEK_SET);
7214# read (fd, b, 2);
7215# return b[0] + (b[1]<<8);
7216# }
7217#
7218# static unsigned int
7219# pe_get32 (fd, offset)
7220# int fd;
7221# int offset;
7222# {
7223# unsigned char b[4];
7224# lseek (fd, offset, SEEK_SET);
7225# read (fd, b, 4);
7226# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7227# }
7228#
7229# static unsigned int
7230# pe_as32 (ptr)
7231# void *ptr;
7232# {
7233# unsigned char *b = ptr;
7234# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7235# }
7236#
7237# int
7238# main (argc, argv)
7239# int argc;
7240# char *argv[];
7241# {
7242# int dll;
7243# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7244# unsigned long export_rva, export_size, nsections, secptr, expptr;
7245# unsigned long name_rvas, nexp;
7246# unsigned char *expdata, *erva;
7247# char *filename, *dll_name;
7248#
7249# filename = argv[1];
7250#
7251# dll = open(filename, O_RDONLY|O_BINARY);
7252# if (dll < 1)
7253# return 1;
7254#
7255# dll_name = filename;
7256#
7257# for (i=0; filename[i]; i++)
7258# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7259# dll_name = filename + i +1;
7260#
7261# pe_header_offset = pe_get32 (dll, 0x3c);
7262# opthdr_ofs = pe_header_offset + 4 + 20;
7263# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7264#
7265# if (num_entries < 1) /* no exports */
7266# return 1;
7267#
7268# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7269# export_size = pe_get32 (dll, opthdr_ofs + 100);
7270# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7271# secptr = (pe_header_offset + 4 + 20 +
7272# pe_get16 (dll, pe_header_offset + 4 + 16));
7273#
7274# expptr = 0;
7275# for (i = 0; i < nsections; i++)
7276# {
7277# char sname[8];
7278# unsigned long secptr1 = secptr + 40 * i;
7279# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7280# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7281# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7282# lseek(dll, secptr1, SEEK_SET);
7283# read(dll, sname, 8);
7284# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7285# {
7286# expptr = fptr + (export_rva - vaddr);
7287# if (export_rva + export_size > vaddr + vsize)
7288# export_size = vsize - (export_rva - vaddr);
7289# break;
7290# }
7291# }
7292#
7293# expdata = (unsigned char*)malloc(export_size);
7294# lseek (dll, expptr, SEEK_SET);
7295# read (dll, expdata, export_size);
7296# erva = expdata - export_rva;
7297#
7298# nexp = pe_as32 (expdata+24);
7299# name_rvas = pe_as32 (expdata+32);
7300#
7301# printf ("EXPORTS\n");
7302# for (i = 0; i<nexp; i++)
7303# {
7304# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7305# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7306# }
7307#
7308# return 0;
7309# }
7310# /* impgen.c ends here */
7311
7312EOF
7313 ;;
7314 esac
7315
7316 # We use sed instead of cat because bash on DJGPP gets confused if
7317 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7318 # text mode, it properly converts lines to CR/LF. This bash problem
7319 # is reportedly fixed, but why not run on old versions too?
7320 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7321
7322 mv -f "${ofile}T" "$ofile" || \
7323 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7324 chmod +x "$ofile"
7325fi
7326##
7327## END FIXME
7328
7329
7330
7331
7332
7333# This can be used to rebuild libtool when needed
7334LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7335
7336# Always use our own libtool.
7337LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7338
7339# Prevent multiple expansion
7340
7341
7342
7343
7344
7345
7346
7347ac_ext=c
7348ac_cpp='$CPP $CPPFLAGS'
7349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7354set dummy ${ac_tool_prefix}gcc; ac_word=$2
7355echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357if test "${ac_cv_prog_CC+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360 if test -n "$CC"; then
7361 ac_cv_prog_CC="$CC" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375done
7376
7377fi
7378fi
7379CC=$ac_cv_prog_CC
7380if test -n "$CC"; then
7381 echo "$as_me:$LINENO: result: $CC" >&5
7382echo "${ECHO_T}$CC" >&6
7383else
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
7386fi
7387
7388fi
7389if test -z "$ac_cv_prog_CC"; then
7390 ac_ct_CC=$CC
7391 # Extract the first word of "gcc", so it can be a program name with args.
7392set dummy gcc; ac_word=$2
7393echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7395if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398 if test -n "$ac_ct_CC"; then
7399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_ac_ct_CC="gcc"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413done
7414
7415fi
7416fi
7417ac_ct_CC=$ac_cv_prog_ac_ct_CC
7418if test -n "$ac_ct_CC"; then
7419 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7420echo "${ECHO_T}$ac_ct_CC" >&6
7421else
7422 echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
7424fi
7425
7426 CC=$ac_ct_CC
7427else
7428 CC="$ac_cv_prog_CC"
7429fi
7430
7431if test -z "$CC"; then
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7434set dummy ${ac_tool_prefix}cc; ac_word=$2
7435echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7437if test "${ac_cv_prog_CC+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 if test -n "$CC"; then
7441 ac_cv_prog_CC="$CC" # Let the user override the test.
7442else
7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_CC="${ac_tool_prefix}cc"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454done
7455done
7456
7457fi
7458fi
7459CC=$ac_cv_prog_CC
7460if test -n "$CC"; then
7461 echo "$as_me:$LINENO: result: $CC" >&5
7462echo "${ECHO_T}$CC" >&6
7463else
7464 echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6
7466fi
7467
7468fi
7469if test -z "$ac_cv_prog_CC"; then
7470 ac_ct_CC=$CC
7471 # Extract the first word of "cc", so it can be a program name with args.
7472set dummy cc; ac_word=$2
7473echo "$as_me:$LINENO: checking for $ac_word" >&5
7474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478 if test -n "$ac_ct_CC"; then
7479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7480else
7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_ac_ct_CC="cc"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492done
7493done
7494
7495fi
7496fi
7497ac_ct_CC=$ac_cv_prog_ac_ct_CC
7498if test -n "$ac_ct_CC"; then
7499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7500echo "${ECHO_T}$ac_ct_CC" >&6
7501else
7502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504fi
7505
7506 CC=$ac_ct_CC
7507else
7508 CC="$ac_cv_prog_CC"
7509fi
7510
7511fi
7512if test -z "$CC"; then
7513 # Extract the first word of "cc", so it can be a program name with args.
7514set dummy cc; ac_word=$2
7515echo "$as_me:$LINENO: checking for $ac_word" >&5
7516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7517if test "${ac_cv_prog_CC+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 if test -n "$CC"; then
7521 ac_cv_prog_CC="$CC" # Let the user override the test.
7522else
7523 ac_prog_rejected=no
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7532 ac_prog_rejected=yes
7533 continue
7534 fi
7535 ac_cv_prog_CC="cc"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539done
7540done
7541
7542if test $ac_prog_rejected = yes; then
7543 # We found a bogon in the path, so make sure we never use it.
7544 set dummy $ac_cv_prog_CC
7545 shift
7546 if test $# != 0; then
7547 # We chose a different compiler from the bogus one.
7548 # However, it has the same basename, so the bogon will be chosen
7549 # first if we set CC to just the basename; use the full file name.
7550 shift
79608eef 7551 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5e9f2524
VS
7552 fi
7553fi
7554fi
7555fi
7556CC=$ac_cv_prog_CC
7557if test -n "$CC"; then
7558 echo "$as_me:$LINENO: result: $CC" >&5
7559echo "${ECHO_T}$CC" >&6
7560else
7561 echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6
7563fi
7564
7565fi
7566if test -z "$CC"; then
7567 if test -n "$ac_tool_prefix"; then
7568 for ac_prog in cl
7569 do
7570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7572echo "$as_me:$LINENO: checking for $ac_word" >&5
7573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7574if test "${ac_cv_prog_CC+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 if test -n "$CC"; then
7578 ac_cv_prog_CC="$CC" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591done
7592done
7593
7594fi
7595fi
7596CC=$ac_cv_prog_CC
7597if test -n "$CC"; then
7598 echo "$as_me:$LINENO: result: $CC" >&5
7599echo "${ECHO_T}$CC" >&6
7600else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603fi
7604
7605 test -n "$CC" && break
7606 done
7607fi
7608if test -z "$CC"; then
7609 ac_ct_CC=$CC
7610 for ac_prog in cl
7611do
7612 # Extract the first word of "$ac_prog", so it can be a program name with args.
7613set dummy $ac_prog; ac_word=$2
7614echo "$as_me:$LINENO: checking for $ac_word" >&5
7615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619 if test -n "$ac_ct_CC"; then
7620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7621else
7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623for as_dir in $PATH
7624do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_CC="$ac_prog"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633done
7634done
7635
7636fi
7637fi
7638ac_ct_CC=$ac_cv_prog_ac_ct_CC
7639if test -n "$ac_ct_CC"; then
7640 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7641echo "${ECHO_T}$ac_ct_CC" >&6
7642else
7643 echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6
7645fi
7646
7647 test -n "$ac_ct_CC" && break
7648done
7649
7650 CC=$ac_ct_CC
7651fi
7652
7653fi
7654
7655
79608eef
VS
7656test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7657See \`config.log' for more details." >&5
7658echo "$as_me: error: no acceptable C compiler found in \$PATH
7659See \`config.log' for more details." >&2;}
5e9f2524
VS
7660 { (exit 1); exit 1; }; }
7661
7662# Provide some information about the compiler.
7663echo "$as_me:$LINENO:" \
7664 "checking for C compiler version" >&5
7665ac_compiler=`set X $ac_compile; echo $2`
7666{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7667 (eval $ac_compiler --version </dev/null >&5) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }
7671{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7672 (eval $ac_compiler -v </dev/null >&5) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }
7676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7677 (eval $ac_compiler -V </dev/null >&5) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }
7681
7682echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7683echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7684if test "${ac_cv_c_compiler_gnu+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687 cat >conftest.$ac_ext <<_ACEOF
7688#line $LINENO "configure"
79608eef
VS
7689/* confdefs.h. */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h. */
5e9f2524 7694
5e9f2524
VS
7695int
7696main ()
7697{
7698#ifndef __GNUC__
7699 choke me
7700#endif
7701
7702 ;
7703 return 0;
7704}
7705_ACEOF
7706rm -f conftest.$ac_objext
7707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_compiler_gnu=yes
7719else
7720 echo "$as_me: failed program was:" >&5
79608eef
VS
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
5e9f2524
VS
7723ac_compiler_gnu=no
7724fi
7725rm -f conftest.$ac_objext conftest.$ac_ext
7726ac_cv_c_compiler_gnu=$ac_compiler_gnu
7727
7728fi
7729echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7730echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7731GCC=`test $ac_compiler_gnu = yes && echo yes`
7732ac_test_CFLAGS=${CFLAGS+set}
7733ac_save_CFLAGS=$CFLAGS
7734CFLAGS="-g"
7735echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7736echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7737if test "${ac_cv_prog_cc_g+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 cat >conftest.$ac_ext <<_ACEOF
7741#line $LINENO "configure"
79608eef
VS
7742/* confdefs.h. */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h. */
5e9f2524 7747
5e9f2524
VS
7748int
7749main ()
7750{
7751
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756rm -f conftest.$ac_objext
7757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -s conftest.$ac_objext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_prog_cc_g=yes
7769else
7770 echo "$as_me: failed program was:" >&5
79608eef
VS
7771sed 's/^/| /' conftest.$ac_ext >&5
7772
5e9f2524
VS
7773ac_cv_prog_cc_g=no
7774fi
7775rm -f conftest.$ac_objext conftest.$ac_ext
7776fi
7777echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7778echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7779if test "$ac_test_CFLAGS" = set; then
7780 CFLAGS=$ac_save_CFLAGS
7781elif test $ac_cv_prog_cc_g = yes; then
7782 if test "$GCC" = yes; then
7783 CFLAGS="-g -O2"
7784 else
7785 CFLAGS="-g"
7786 fi
7787else
7788 if test "$GCC" = yes; then
7789 CFLAGS="-O2"
7790 else
7791 CFLAGS=
7792 fi
7793fi
79608eef
VS
7794echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7795echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7796if test "${ac_cv_prog_cc_stdc+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 ac_cv_prog_cc_stdc=no
7800ac_save_CC=$CC
7801cat >conftest.$ac_ext <<_ACEOF
7802#line $LINENO "configure"
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
7808#include <stdarg.h>
7809#include <stdio.h>
7810#include <sys/types.h>
7811#include <sys/stat.h>
7812/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7813struct buf { int x; };
7814FILE * (*rcsopen) (struct buf *, struct stat *, int);
7815static char *e (p, i)
7816 char **p;
7817 int i;
7818{
7819 return p[i];
7820}
7821static char *f (char * (*g) (char **, int), char **p, ...)
7822{
7823 char *s;
7824 va_list v;
7825 va_start (v,p);
7826 s = g (p, va_arg (v,int));
7827 va_end (v);
7828 return s;
7829}
7830int test (int i, double x);
7831struct s1 {int (*f) (int a);};
7832struct s2 {int (*f) (double a);};
7833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7834int argc;
7835char **argv;
7836int
7837main ()
7838{
7839return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844# Don't try gcc -ansi; that turns off useful extensions and
7845# breaks some systems' header files.
7846# AIX -qlanglvl=ansi
7847# Ultrix and OSF/1 -std1
7848# HP-UX 10.20 and later -Ae
7849# HP-UX older versions -Aa -D_HPUX_SOURCE
7850# SVR4 -Xc -D__EXTENSIONS__
7851for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7852do
7853 CC="$ac_save_CC $ac_arg"
7854 rm -f conftest.$ac_objext
7855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856 (eval $ac_compile) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -s conftest.$ac_objext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_prog_cc_stdc=$ac_arg
7867break
7868else
7869 echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872fi
7873rm -f conftest.$ac_objext
7874done
7875rm -f conftest.$ac_ext conftest.$ac_objext
7876CC=$ac_save_CC
7877
7878fi
7879
7880case "x$ac_cv_prog_cc_stdc" in
7881 x|xno)
7882 echo "$as_me:$LINENO: result: none needed" >&5
7883echo "${ECHO_T}none needed" >&6 ;;
7884 *)
7885 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7886echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7887 CC="$CC $ac_cv_prog_cc_stdc" ;;
7888esac
7889
5e9f2524
VS
7890# Some people use a C++ compiler to compile C. Since we use `exit',
7891# in C++ we need to declare it. In case someone uses the same compiler
7892# for both compiling C and C++ we need to have the C++ compiler decide
7893# the declaration of exit, since it's the most demanding environment.
7894cat >conftest.$ac_ext <<_ACEOF
7895#ifndef __cplusplus
7896 choke me
7897#endif
7898_ACEOF
7899rm -f conftest.$ac_objext
7900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901 (eval $ac_compile) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 for ac_declaration in \
7912 ''\
7913 '#include <stdlib.h>' \
7914 'extern "C" void std::exit (int) throw (); using std::exit;' \
7915 'extern "C" void std::exit (int); using std::exit;' \
7916 'extern "C" void exit (int) throw ();' \
7917 'extern "C" void exit (int);' \
7918 'void exit (int);'
7919do
7920 cat >conftest.$ac_ext <<_ACEOF
7921#line $LINENO "configure"
79608eef
VS
7922/* confdefs.h. */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h. */
5e9f2524
VS
7927#include <stdlib.h>
7928$ac_declaration
5e9f2524
VS
7929int
7930main ()
7931{
7932exit (42);
7933 ;
7934 return 0;
7935}
7936_ACEOF
7937rm -f conftest.$ac_objext
7938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 :
7950else
7951 echo "$as_me: failed program was:" >&5
79608eef
VS
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
5e9f2524
VS
7954continue
7955fi
7956rm -f conftest.$ac_objext conftest.$ac_ext
7957 cat >conftest.$ac_ext <<_ACEOF
7958#line $LINENO "configure"
79608eef
VS
7959/* confdefs.h. */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h. */
5e9f2524 7964$ac_declaration
5e9f2524
VS
7965int
7966main ()
7967{
7968exit (42);
7969 ;
7970 return 0;
7971}
7972_ACEOF
7973rm -f conftest.$ac_objext
7974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -s conftest.$ac_objext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 break
7986else
7987 echo "$as_me: failed program was:" >&5
79608eef
VS
7988sed 's/^/| /' conftest.$ac_ext >&5
7989
5e9f2524
VS
7990fi
7991rm -f conftest.$ac_objext conftest.$ac_ext
7992done
7993rm -f conftest*
7994if test -n "$ac_declaration"; then
7995 echo '#ifdef __cplusplus' >>confdefs.h
7996 echo $ac_declaration >>confdefs.h
7997 echo '#endif' >>confdefs.h
7998fi
7999
8000else
8001 echo "$as_me: failed program was:" >&5
79608eef
VS
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
5e9f2524
VS
8004fi
8005rm -f conftest.$ac_objext conftest.$ac_ext
8006ac_ext=c
8007ac_cpp='$CPP $CPPFLAGS'
8008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012# Find a good install program. We prefer a C program (faster),
8013# so one script is as good as another. But avoid the broken or
8014# incompatible versions:
8015# SysV /etc/install, /usr/sbin/install
8016# SunOS /usr/etc/install
8017# IRIX /sbin/install
8018# AIX /bin/install
8019# AmigaOS /C/install, which installs bootblocks on floppy discs
8020# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8021# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8022# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8023# ./install, which can be erroneously created by make from ./install.sh.
8024echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8025echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8026if test -z "$INSTALL"; then
8027if test "${ac_cv_path_install+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 # Account for people who put trailing slashes in PATH elements.
8036case $as_dir/ in
8037 ./ | .// | /cC/* | \
8038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8039 /usr/ucb/* ) ;;
8040 *)
8041 # OSF1 and SCO ODT 3.0 have their own names for install.
8042 # Don't use installbsd from OSF since it installs stuff as root
8043 # by default.
8044 for ac_prog in ginstall scoinst install; do
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8047 if test $ac_prog = install &&
8048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8049 # AIX install. It has an incompatible calling convention.
8050 :
8051 elif test $ac_prog = install &&
8052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8053 # program-specific install script used by HP pwplus--don't use.
8054 :
8055 else
8056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8057 break 3
8058 fi
8059 fi
8060 done
8061 done
8062 ;;
8063esac
8064done
8065
8066
8067fi
8068 if test "${ac_cv_path_install+set}" = set; then
8069 INSTALL=$ac_cv_path_install
8070 else
8071 # As a last resort, use the slow shell script. We don't cache a
8072 # path for INSTALL within a source directory, because that will
8073 # break other packages using the cache if that directory is
8074 # removed, or if the path is relative.
8075 INSTALL=$ac_install_sh
8076 fi
8077fi
8078echo "$as_me:$LINENO: result: $INSTALL" >&5
8079echo "${ECHO_T}$INSTALL" >&6
8080
8081# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8082# It thinks the first close brace ends the variable substitution.
8083test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8084
8085test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8086
8087test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8088
8089
8090if test "$GCC" = yes ; then
8091 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
8092 CFLAGS="$OLDCFLAGS -fexceptions"
8093 echo "$as_me:$LINENO: checking whether gcc accepts -fexceptions" >&5
8094echo $ECHO_N "checking whether gcc accepts -fexceptions... $ECHO_C" >&6
8095 cat >conftest.$ac_ext <<_ACEOF
8096#line $LINENO "configure"
79608eef
VS
8097/* confdefs.h. */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
8101/* end confdefs.h. */
5e9f2524 8102
5e9f2524
VS
8103int
8104main ()
8105{
8106(void)1
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext
8112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 echo "$as_me:$LINENO: result: yes" >&5
8124echo "${ECHO_T}yes" >&6
8125else
8126 echo "$as_me: failed program was:" >&5
79608eef
VS
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
5e9f2524
VS
8129echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6; CFLAGS="$OLDCFLAGS"
8131fi
8132rm -f conftest.$ac_objext conftest.$ac_ext
8133fi
8134
8135echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8136echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8137if test "${ac_cv_header_stdc+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139else
8140 cat >conftest.$ac_ext <<_ACEOF
8141#line $LINENO "configure"
79608eef
VS
8142/* confdefs.h. */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h. */
5e9f2524
VS
8147#include <stdlib.h>
8148#include <stdarg.h>
8149#include <string.h>
8150#include <float.h>
8151
79608eef
VS
8152int
8153main ()
8154{
8155
8156 ;
8157 return 0;
8158}
5e9f2524 8159_ACEOF
79608eef
VS
8160rm -f conftest.$ac_objext
8161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162 (eval $ac_compile) 2>&5
5e9f2524 8163 ac_status=$?
5e9f2524 8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
79608eef
VS
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest.$ac_objext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
5e9f2524
VS
8172 ac_cv_header_stdc=yes
8173else
8174 echo "$as_me: failed program was:" >&5
79608eef
VS
8175sed 's/^/| /' conftest.$ac_ext >&5
8176
8177ac_cv_header_stdc=no
5e9f2524 8178fi
79608eef 8179rm -f conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
8180
8181if test $ac_cv_header_stdc = yes; then
8182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8183 cat >conftest.$ac_ext <<_ACEOF
8184#line $LINENO "configure"
79608eef
VS
8185/* confdefs.h. */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h. */
5e9f2524
VS
8190#include <string.h>
8191
8192_ACEOF
8193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
79608eef 8194 $EGREP "memchr" >/dev/null 2>&1; then
5e9f2524
VS
8195 :
8196else
8197 ac_cv_header_stdc=no
8198fi
8199rm -f conftest*
8200
8201fi
8202
8203if test $ac_cv_header_stdc = yes; then
8204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8205 cat >conftest.$ac_ext <<_ACEOF
8206#line $LINENO "configure"
79608eef
VS
8207/* confdefs.h. */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h. */
5e9f2524
VS
8212#include <stdlib.h>
8213
8214_ACEOF
8215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
79608eef 8216 $EGREP "free" >/dev/null 2>&1; then
5e9f2524
VS
8217 :
8218else
8219 ac_cv_header_stdc=no
8220fi
8221rm -f conftest*
8222
8223fi
8224
8225if test $ac_cv_header_stdc = yes; then
8226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8227 if test "$cross_compiling" = yes; then
8228 :
8229else
8230 cat >conftest.$ac_ext <<_ACEOF
8231#line $LINENO "configure"
79608eef
VS
8232/* confdefs.h. */
8233_ACEOF
8234cat confdefs.h >>conftest.$ac_ext
8235cat >>conftest.$ac_ext <<_ACEOF
8236/* end confdefs.h. */
5e9f2524
VS
8237#include <ctype.h>
8238#if ((' ' & 0x0FF) == 0x020)
8239# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8240# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8241#else
79608eef
VS
8242# define ISLOWER(c) \
8243 (('a' <= (c) && (c) <= 'i') \
5e9f2524
VS
8244 || ('j' <= (c) && (c) <= 'r') \
8245 || ('s' <= (c) && (c) <= 'z'))
8246# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8247#endif
8248
8249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8250int
8251main ()
8252{
8253 int i;
8254 for (i = 0; i < 256; i++)
8255 if (XOR (islower (i), ISLOWER (i))
8256 || toupper (i) != TOUPPER (i))
8257 exit(2);
8258 exit (0);
8259}
8260_ACEOF
8261rm -f conftest$ac_exeext
8262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 :
8273else
8274 echo "$as_me: program exited with status $ac_status" >&5
8275echo "$as_me: failed program was:" >&5
79608eef
VS
8276sed 's/^/| /' conftest.$ac_ext >&5
8277
5e9f2524
VS
8278( exit $ac_status )
8279ac_cv_header_stdc=no
8280fi
79608eef 8281rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
8282fi
8283fi
8284fi
8285echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8286echo "${ECHO_T}$ac_cv_header_stdc" >&6
8287if test $ac_cv_header_stdc = yes; then
8288
8289cat >>confdefs.h <<\_ACEOF
8290#define STDC_HEADERS 1
8291_ACEOF
8292
8293fi
8294
8295
8296
8297for ac_header in fcntl.h unistd.h
8298do
8299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300if eval "test \"\${$as_ac_Header+set}\" = set"; then
8301 echo "$as_me:$LINENO: checking for $ac_header" >&5
8302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8303if eval "test \"\${$as_ac_Header+set}\" = set"; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305fi
8306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8308else
8309 # Is the header compilable?
8310echo "$as_me:$LINENO: checking $ac_header usability" >&5
8311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8312cat >conftest.$ac_ext <<_ACEOF
8313#line $LINENO "configure"
79608eef
VS
8314/* confdefs.h. */
8315_ACEOF
8316cat confdefs.h >>conftest.$ac_ext
8317cat >>conftest.$ac_ext <<_ACEOF
8318/* end confdefs.h. */
5e9f2524
VS
8319$ac_includes_default
8320#include <$ac_header>
8321_ACEOF
8322rm -f conftest.$ac_objext
8323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8324 (eval $ac_compile) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -s conftest.$ac_objext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_header_compiler=yes
8335else
8336 echo "$as_me: failed program was:" >&5
79608eef
VS
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
5e9f2524
VS
8339ac_header_compiler=no
8340fi
8341rm -f conftest.$ac_objext conftest.$ac_ext
8342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8343echo "${ECHO_T}$ac_header_compiler" >&6
8344
8345# Is the header present?
8346echo "$as_me:$LINENO: checking $ac_header presence" >&5
8347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8348cat >conftest.$ac_ext <<_ACEOF
8349#line $LINENO "configure"
79608eef
VS
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h. */
5e9f2524
VS
8355#include <$ac_header>
8356_ACEOF
8357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8359 ac_status=$?
79608eef 8360 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } >/dev/null; then
8365 if test -s conftest.err; then
8366 ac_cpp_err=$ac_c_preproc_warn_flag
8367 else
8368 ac_cpp_err=
8369 fi
8370else
8371 ac_cpp_err=yes
8372fi
8373if test -z "$ac_cpp_err"; then
8374 ac_header_preproc=yes
8375else
8376 echo "$as_me: failed program was:" >&5
79608eef
VS
8377sed 's/^/| /' conftest.$ac_ext >&5
8378
5e9f2524
VS
8379 ac_header_preproc=no
8380fi
8381rm -f conftest.err conftest.$ac_ext
8382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8383echo "${ECHO_T}$ac_header_preproc" >&6
8384
8385# So? What about this header?
8386case $ac_header_compiler:$ac_header_preproc in
8387 yes:no )
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
8391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8392 (
8393 cat <<\_ASBOX
8394## ------------------------------------ ##
8395## Report this to bug-autoconf@gnu.org. ##
8396## ------------------------------------ ##
8397_ASBOX
8398 ) |
8399 sed "s/^/$as_me: WARNING: /" >&2
8400 ;;
5e9f2524
VS
8401 no:yes )
8402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
8407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8408 (
8409 cat <<\_ASBOX
8410## ------------------------------------ ##
8411## Report this to bug-autoconf@gnu.org. ##
8412## ------------------------------------ ##
8413_ASBOX
8414 ) |
8415 sed "s/^/$as_me: WARNING: /" >&2
8416 ;;
5e9f2524
VS
8417esac
8418echo "$as_me:$LINENO: checking for $ac_header" >&5
8419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8420if eval "test \"\${$as_ac_Header+set}\" = set"; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423 eval "$as_ac_Header=$ac_header_preproc"
8424fi
8425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8427
8428fi
8429if test `eval echo '${'$as_ac_Header'}'` = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8432_ACEOF
8433
8434fi
8435
8436done
8437
8438
8439
8440echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8441echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8442if test "${ac_cv_c_bigendian+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445 ac_cv_c_bigendian=unknown
8446# See if sys/param.h defines the BYTE_ORDER macro.
8447cat >conftest.$ac_ext <<_ACEOF
8448#line $LINENO "configure"
79608eef
VS
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
5e9f2524
VS
8454#include <sys/types.h>
8455#include <sys/param.h>
5e9f2524
VS
8456int
8457main ()
8458{
8459
8460#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8461 bogus endian macros
8462#endif
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467rm -f conftest.$ac_objext
8468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469 (eval $ac_compile) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 # It does; now see whether it defined to BIG_ENDIAN or not.
8480cat >conftest.$ac_ext <<_ACEOF
8481#line $LINENO "configure"
79608eef
VS
8482/* confdefs.h. */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h. */
5e9f2524
VS
8487#include <sys/types.h>
8488#include <sys/param.h>
5e9f2524
VS
8489int
8490main ()
8491{
8492
8493#if BYTE_ORDER != BIG_ENDIAN
8494 not big endian
8495#endif
8496 ;
8497 return 0;
8498}
8499_ACEOF
8500rm -f conftest.$ac_objext
8501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502 (eval $ac_compile) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_c_bigendian=yes
8513else
8514 echo "$as_me: failed program was:" >&5
79608eef
VS
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
5e9f2524
VS
8517ac_cv_c_bigendian=no
8518fi
8519rm -f conftest.$ac_objext conftest.$ac_ext
8520else
8521 echo "$as_me: failed program was:" >&5
79608eef
VS
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
5e9f2524
VS
8524fi
8525rm -f conftest.$ac_objext conftest.$ac_ext
8526if test $ac_cv_c_bigendian = unknown; then
8527if test "$cross_compiling" = yes; then
8528 echo $ac_n "cross-compiling... " 2>&6
8529else
8530 cat >conftest.$ac_ext <<_ACEOF
8531#line $LINENO "configure"
79608eef
VS
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
5e9f2524
VS
8537main () {
8538 /* Are we little or big endian? From Harbison&Steele. */
8539 union
8540 {
8541 long l;
8542 char c[sizeof (long)];
8543 } u;
8544 u.l = 1;
8545 exit (u.c[sizeof (long) - 1] == 1);
8546}
8547_ACEOF
8548rm -f conftest$ac_exeext
8549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_cv_c_bigendian=no
8560else
8561 echo "$as_me: program exited with status $ac_status" >&5
8562echo "$as_me: failed program was:" >&5
79608eef
VS
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
5e9f2524
VS
8565( exit $ac_status )
8566ac_cv_c_bigendian=yes
8567fi
79608eef 8568rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
8569fi
8570fi
8571fi
8572echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8573echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8574if test $ac_cv_c_bigendian = unknown; then
8575echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8576echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8577
8578cat >conftest.c <<EOF
8579short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8580short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8581void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8582short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8583short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8584void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8585int main() { _ascii (); _ebcdic (); return 0; }
8586EOF
8587 if test -f conftest.c ; then
8588 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
8589 if test `grep -l BIGenDianSyS conftest.o` ; then
8590 echo $ac_n ' big endian probe OK, ' 1>&6
8591 ac_cv_c_bigendian=yes
8592 fi
8593 if test `grep -l LiTTleEnDian conftest.o` ; then
8594 echo $ac_n ' little endian probe OK, ' 1>&6
8595 if test $ac_cv_c_bigendian = yes ; then
8596 ac_cv_c_bigendian=unknown;
8597 else
8598 ac_cv_c_bigendian=no
8599 fi
8600 fi
8601 echo $ac_n 'guessing bigendian ... ' >&6
8602 fi
8603 fi
8604echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8605echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8606fi
8607if test $ac_cv_c_bigendian = yes; then
8608
8609cat >>confdefs.h <<\_ACEOF
8610#define WORDS_BIGENDIAN 1
8611_ACEOF
8612
8613 BYTEORDER=4321
8614else
8615 BYTEORDER=1234
8616fi
8617
8618cat >>confdefs.h <<_ACEOF
8619#define BYTEORDER $BYTEORDER
8620_ACEOF
8621
8622if test $ac_cv_c_bigendian = unknown; then
8623 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
8624echo "$as_me: error: unknown endianess - sorry" >&2;}
8625 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
8626fi
8627
8628
5e9f2524
VS
8629echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8630echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8631if test "${ac_cv_c_const+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634 cat >conftest.$ac_ext <<_ACEOF
8635#line $LINENO "configure"
79608eef
VS
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
5e9f2524 8641
5e9f2524
VS
8642int
8643main ()
8644{
8645/* FIXME: Include the comments suggested by Paul. */
8646#ifndef __cplusplus
8647 /* Ultrix mips cc rejects this. */
8648 typedef int charset[2];
8649 const charset x;
8650 /* SunOS 4.1.1 cc rejects this. */
8651 char const *const *ccp;
8652 char **p;
8653 /* NEC SVR4.0.2 mips cc rejects this. */
8654 struct point {int x, y;};
8655 static struct point const zero = {0,0};
8656 /* AIX XL C 1.02.0.0 rejects this.
8657 It does not let you subtract one const X* pointer from another in
8658 an arm of an if-expression whose if-part is not a constant
8659 expression */
8660 const char *g = "string";
8661 ccp = &g + (g ? g-g : 0);
8662 /* HPUX 7.0 cc rejects these. */
8663 ++ccp;
8664 p = (char**) ccp;
8665 ccp = (char const *const *) p;
8666 { /* SCO 3.2v4 cc rejects this. */
8667 char *t;
8668 char const *s = 0 ? (char *) 0 : (char const *) 0;
8669
8670 *t++ = 0;
8671 }
8672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8673 int x[] = {25, 17};
8674 const int *foo = &x[0];
8675 ++foo;
8676 }
8677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8678 typedef const int *iptr;
8679 iptr p = 0;
8680 ++p;
8681 }
8682 { /* AIX XL C 1.02.0.0 rejects this saying
8683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8684 struct s { int j; const int *ap[3]; };
8685 struct s *b; b->j = 5;
8686 }
8687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8688 const int foo = 10;
8689 }
8690#endif
8691
8692 ;
8693 return 0;
8694}
8695_ACEOF
8696rm -f conftest.$ac_objext
8697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698 (eval $ac_compile) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -s conftest.$ac_objext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_cv_c_const=yes
8709else
8710 echo "$as_me: failed program was:" >&5
79608eef
VS
8711sed 's/^/| /' conftest.$ac_ext >&5
8712
5e9f2524
VS
8713ac_cv_c_const=no
8714fi
8715rm -f conftest.$ac_objext conftest.$ac_ext
8716fi
8717echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8718echo "${ECHO_T}$ac_cv_c_const" >&6
8719if test $ac_cv_c_const = no; then
8720
8721cat >>confdefs.h <<\_ACEOF
8722#define const
8723_ACEOF
8724
8725fi
8726
8727echo "$as_me:$LINENO: checking for off_t" >&5
8728echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8729if test "${ac_cv_type_off_t+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731else
8732 cat >conftest.$ac_ext <<_ACEOF
8733#line $LINENO "configure"
79608eef
VS
8734/* confdefs.h. */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h. */
5e9f2524 8739$ac_includes_default
5e9f2524
VS
8740int
8741main ()
8742{
8743if ((off_t *) 0)
8744 return 0;
8745if (sizeof (off_t))
8746 return 0;
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext
8752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_type_off_t=yes
8764else
8765 echo "$as_me: failed program was:" >&5
79608eef
VS
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
5e9f2524
VS
8768ac_cv_type_off_t=no
8769fi
8770rm -f conftest.$ac_objext conftest.$ac_ext
8771fi
8772echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8773echo "${ECHO_T}$ac_cv_type_off_t" >&6
8774if test $ac_cv_type_off_t = yes; then
8775 :
8776else
8777
8778cat >>confdefs.h <<_ACEOF
8779#define off_t long
8780_ACEOF
8781
8782fi
8783
8784echo "$as_me:$LINENO: checking for size_t" >&5
8785echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8786if test "${ac_cv_type_size_t+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789 cat >conftest.$ac_ext <<_ACEOF
8790#line $LINENO "configure"
79608eef
VS
8791/* confdefs.h. */
8792_ACEOF
8793cat confdefs.h >>conftest.$ac_ext
8794cat >>conftest.$ac_ext <<_ACEOF
8795/* end confdefs.h. */
5e9f2524 8796$ac_includes_default
5e9f2524
VS
8797int
8798main ()
8799{
8800if ((size_t *) 0)
8801 return 0;
8802if (sizeof (size_t))
8803 return 0;
8804 ;
8805 return 0;
8806}
8807_ACEOF
8808rm -f conftest.$ac_objext
8809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_type_size_t=yes
8821else
8822 echo "$as_me: failed program was:" >&5
79608eef
VS
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
5e9f2524
VS
8825ac_cv_type_size_t=no
8826fi
8827rm -f conftest.$ac_objext conftest.$ac_ext
8828fi
8829echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8830echo "${ECHO_T}$ac_cv_type_size_t" >&6
8831if test $ac_cv_type_size_t = yes; then
8832 :
8833else
8834
8835cat >>confdefs.h <<_ACEOF
8836#define size_t unsigned
8837_ACEOF
8838
8839fi
8840
8841
8842
8843echo "$as_me:$LINENO: checking for working memcmp" >&5
8844echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8845if test "${ac_cv_func_memcmp_working+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848 if test "$cross_compiling" = yes; then
8849 ac_cv_func_memcmp_working=no
8850else
8851 cat >conftest.$ac_ext <<_ACEOF
8852#line $LINENO "configure"
79608eef
VS
8853/* confdefs.h. */
8854_ACEOF
8855cat confdefs.h >>conftest.$ac_ext
8856cat >>conftest.$ac_ext <<_ACEOF
8857/* end confdefs.h. */
5e9f2524 8858
5e9f2524
VS
8859int
8860main ()
8861{
8862
8863 /* Some versions of memcmp are not 8-bit clean. */
8864 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8865 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8866 exit (1);
8867
8868 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8869 or more and with at least one buffer not starting on a 4-byte boundary.
8870 William Lewis provided this test program. */
8871 {
8872 char foo[21];
8873 char bar[21];
8874 int i;
8875 for (i = 0; i < 4; i++)
8876 {
8877 char *a = foo + i;
8878 char *b = bar + i;
8879 strcpy (a, "--------01111111");
8880 strcpy (b, "--------10000000");
8881 if (memcmp (a, b, 16) >= 0)
8882 exit (1);
8883 }
8884 exit (0);
8885 }
8886
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891rm -f conftest$ac_exeext
8892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_func_memcmp_working=yes
8903else
8904 echo "$as_me: program exited with status $ac_status" >&5
8905echo "$as_me: failed program was:" >&5
79608eef
VS
8906sed 's/^/| /' conftest.$ac_ext >&5
8907
5e9f2524
VS
8908( exit $ac_status )
8909ac_cv_func_memcmp_working=no
8910fi
79608eef 8911rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
8912fi
8913fi
8914echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8915echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8916test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8917
8918
8919
8920for ac_header in stdlib.h unistd.h
8921do
8922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8923if eval "test \"\${$as_ac_Header+set}\" = set"; then
8924 echo "$as_me:$LINENO: checking for $ac_header" >&5
8925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8926if eval "test \"\${$as_ac_Header+set}\" = set"; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928fi
8929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8931else
8932 # Is the header compilable?
8933echo "$as_me:$LINENO: checking $ac_header usability" >&5
8934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8935cat >conftest.$ac_ext <<_ACEOF
8936#line $LINENO "configure"
79608eef
VS
8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
5e9f2524
VS
8942$ac_includes_default
8943#include <$ac_header>
8944_ACEOF
8945rm -f conftest.$ac_objext
8946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_header_compiler=yes
8958else
8959 echo "$as_me: failed program was:" >&5
79608eef
VS
8960sed 's/^/| /' conftest.$ac_ext >&5
8961
5e9f2524
VS
8962ac_header_compiler=no
8963fi
8964rm -f conftest.$ac_objext conftest.$ac_ext
8965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8966echo "${ECHO_T}$ac_header_compiler" >&6
8967
8968# Is the header present?
8969echo "$as_me:$LINENO: checking $ac_header presence" >&5
8970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8971cat >conftest.$ac_ext <<_ACEOF
8972#line $LINENO "configure"
79608eef
VS
8973/* confdefs.h. */
8974_ACEOF
8975cat confdefs.h >>conftest.$ac_ext
8976cat >>conftest.$ac_ext <<_ACEOF
8977/* end confdefs.h. */
5e9f2524
VS
8978#include <$ac_header>
8979_ACEOF
8980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8982 ac_status=$?
79608eef 8983 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } >/dev/null; then
8988 if test -s conftest.err; then
8989 ac_cpp_err=$ac_c_preproc_warn_flag
8990 else
8991 ac_cpp_err=
8992 fi
8993else
8994 ac_cpp_err=yes
8995fi
8996if test -z "$ac_cpp_err"; then
8997 ac_header_preproc=yes
8998else
8999 echo "$as_me: failed program was:" >&5
79608eef
VS
9000sed 's/^/| /' conftest.$ac_ext >&5
9001
5e9f2524
VS
9002 ac_header_preproc=no
9003fi
9004rm -f conftest.err conftest.$ac_ext
9005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9006echo "${ECHO_T}$ac_header_preproc" >&6
9007
9008# So? What about this header?
9009case $ac_header_compiler:$ac_header_preproc in
9010 yes:no )
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
9014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9015 (
9016 cat <<\_ASBOX
9017## ------------------------------------ ##
9018## Report this to bug-autoconf@gnu.org. ##
9019## ------------------------------------ ##
9020_ASBOX
9021 ) |
9022 sed "s/^/$as_me: WARNING: /" >&2
9023 ;;
5e9f2524
VS
9024 no:yes )
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
9030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9031 (
9032 cat <<\_ASBOX
9033## ------------------------------------ ##
9034## Report this to bug-autoconf@gnu.org. ##
9035## ------------------------------------ ##
9036_ASBOX
9037 ) |
9038 sed "s/^/$as_me: WARNING: /" >&2
9039 ;;
5e9f2524
VS
9040esac
9041echo "$as_me:$LINENO: checking for $ac_header" >&5
9042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9043if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045else
9046 eval "$as_ac_Header=$ac_header_preproc"
9047fi
9048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050
9051fi
9052if test `eval echo '${'$as_ac_Header'}'` = yes; then
9053 cat >>confdefs.h <<_ACEOF
9054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9055_ACEOF
9056
9057fi
9058
9059done
9060
9061
9062for ac_func in getpagesize
9063do
9064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9065echo "$as_me:$LINENO: checking for $ac_func" >&5
9066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9067if eval "test \"\${$as_ac_var+set}\" = set"; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069else
9070 cat >conftest.$ac_ext <<_ACEOF
9071#line $LINENO "configure"
79608eef
VS
9072/* confdefs.h. */
9073_ACEOF
9074cat confdefs.h >>conftest.$ac_ext
9075cat >>conftest.$ac_ext <<_ACEOF
9076/* end confdefs.h. */
5e9f2524 9077/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
9078 which can conflict with char $ac_func (); below.
9079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9080 <limits.h> exists even on freestanding compilers. */
9081#ifdef __STDC__
9082# include <limits.h>
9083#else
9084# include <assert.h>
9085#endif
5e9f2524
VS
9086/* Override any gcc2 internal prototype to avoid an error. */
9087#ifdef __cplusplus
9088extern "C"
79608eef 9089{
5e9f2524
VS
9090#endif
9091/* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9093char $ac_func ();
5e9f2524
VS
9094/* The GNU C library defines this for functions which it implements
9095 to always fail with ENOSYS. Some functions are actually named
9096 something starting with __ and the normal name is an alias. */
9097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9098choke me
9099#else
79608eef
VS
9100char (*f) () = $ac_func;
9101#endif
9102#ifdef __cplusplus
9103}
5e9f2524
VS
9104#endif
9105
79608eef
VS
9106int
9107main ()
9108{
9109return f != $ac_func;
5e9f2524
VS
9110 ;
9111 return 0;
9112}
9113_ACEOF
9114rm -f conftest.$ac_objext conftest$ac_exeext
9115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 eval "$as_ac_var=yes"
9127else
9128 echo "$as_me: failed program was:" >&5
79608eef
VS
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
5e9f2524
VS
9131eval "$as_ac_var=no"
9132fi
9133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9134fi
9135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9137if test `eval echo '${'$as_ac_var'}'` = yes; then
9138 cat >>confdefs.h <<_ACEOF
9139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9140_ACEOF
9141
9142fi
9143done
9144
9145echo "$as_me:$LINENO: checking for working mmap" >&5
9146echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9147if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150 if test "$cross_compiling" = yes; then
9151 ac_cv_func_mmap_fixed_mapped=no
9152else
9153 cat >conftest.$ac_ext <<_ACEOF
9154#line $LINENO "configure"
79608eef
VS
9155/* confdefs.h. */
9156_ACEOF
9157cat confdefs.h >>conftest.$ac_ext
9158cat >>conftest.$ac_ext <<_ACEOF
9159/* end confdefs.h. */
5e9f2524
VS
9160$ac_includes_default
9161/* malloc might have been renamed as rpl_malloc. */
9162#undef malloc
9163
9164/* Thanks to Mike Haertel and Jim Avera for this test.
9165 Here is a matrix of mmap possibilities:
9166 mmap private not fixed
9167 mmap private fixed at somewhere currently unmapped
9168 mmap private fixed at somewhere already mapped
9169 mmap shared not fixed
9170 mmap shared fixed at somewhere currently unmapped
9171 mmap shared fixed at somewhere already mapped
9172 For private mappings, we should verify that changes cannot be read()
9173 back from the file, nor mmap's back from the file at a different
9174 address. (There have been systems where private was not correctly
9175 implemented like the infamous i386 svr4.0, and systems where the
9176 VM page cache was not coherent with the file system buffer cache
9177 like early versions of FreeBSD and possibly contemporary NetBSD.)
9178 For shared mappings, we should conversely verify that changes get
9179 propagated back to all the places they're supposed to be.
9180
9181 Grep wants private fixed already mapped.
9182 The main things grep needs to know about mmap are:
9183 * does it exist and is it safe to write into the mmap'd area
9184 * how to use it (BSD variants) */
9185
9186#include <fcntl.h>
9187#include <sys/mman.h>
9188
9189#if !STDC_HEADERS && !HAVE_STDLIB_H
9190char *malloc ();
9191#endif
9192
9193/* This mess was copied from the GNU getpagesize.h. */
9194#if !HAVE_GETPAGESIZE
9195/* Assume that all systems that can run configure have sys/param.h. */
9196# if !HAVE_SYS_PARAM_H
9197# define HAVE_SYS_PARAM_H 1
9198# endif
9199
9200# ifdef _SC_PAGESIZE
9201# define getpagesize() sysconf(_SC_PAGESIZE)
9202# else /* no _SC_PAGESIZE */
9203# if HAVE_SYS_PARAM_H
9204# include <sys/param.h>
9205# ifdef EXEC_PAGESIZE
9206# define getpagesize() EXEC_PAGESIZE
9207# else /* no EXEC_PAGESIZE */
9208# ifdef NBPG
9209# define getpagesize() NBPG * CLSIZE
9210# ifndef CLSIZE
9211# define CLSIZE 1
9212# endif /* no CLSIZE */
9213# else /* no NBPG */
9214# ifdef NBPC
9215# define getpagesize() NBPC
9216# else /* no NBPC */
9217# ifdef PAGESIZE
9218# define getpagesize() PAGESIZE
9219# endif /* PAGESIZE */
9220# endif /* no NBPC */
9221# endif /* no NBPG */
9222# endif /* no EXEC_PAGESIZE */
9223# else /* no HAVE_SYS_PARAM_H */
9224# define getpagesize() 8192 /* punt totally */
9225# endif /* no HAVE_SYS_PARAM_H */
9226# endif /* no _SC_PAGESIZE */
9227
9228#endif /* no HAVE_GETPAGESIZE */
9229
9230int
9231main ()
9232{
9233 char *data, *data2, *data3;
9234 int i, pagesize;
9235 int fd;
9236
9237 pagesize = getpagesize ();
9238
9239 /* First, make a file with some known garbage in it. */
9240 data = (char *) malloc (pagesize);
9241 if (!data)
9242 exit (1);
9243 for (i = 0; i < pagesize; ++i)
9244 *(data + i) = rand ();
9245 umask (0);
9246 fd = creat ("conftest.mmap", 0600);
9247 if (fd < 0)
9248 exit (1);
9249 if (write (fd, data, pagesize) != pagesize)
9250 exit (1);
9251 close (fd);
9252
9253 /* Next, try to mmap the file at a fixed address which already has
9254 something else allocated at it. If we can, also make sure that
9255 we see the same garbage. */
9256 fd = open ("conftest.mmap", O_RDWR);
9257 if (fd < 0)
9258 exit (1);
9259 data2 = (char *) malloc (2 * pagesize);
9260 if (!data2)
9261 exit (1);
9262 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9263 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9264 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9265 exit (1);
9266 for (i = 0; i < pagesize; ++i)
9267 if (*(data + i) != *(data2 + i))
9268 exit (1);
9269
9270 /* Finally, make sure that changes to the mapped area do not
9271 percolate back to the file as seen by read(). (This is a bug on
9272 some variants of i386 svr4.0.) */
9273 for (i = 0; i < pagesize; ++i)
9274 *(data2 + i) = *(data2 + i) + 1;
9275 data3 = (char *) malloc (pagesize);
9276 if (!data3)
9277 exit (1);
9278 if (read (fd, data3, pagesize) != pagesize)
9279 exit (1);
9280 for (i = 0; i < pagesize; ++i)
9281 if (*(data + i) != *(data3 + i))
9282 exit (1);
9283 close (fd);
9284 exit (0);
9285}
9286_ACEOF
9287rm -f conftest$ac_exeext
9288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_func_mmap_fixed_mapped=yes
9299else
9300 echo "$as_me: program exited with status $ac_status" >&5
9301echo "$as_me: failed program was:" >&5
79608eef
VS
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
5e9f2524
VS
9304( exit $ac_status )
9305ac_cv_func_mmap_fixed_mapped=no
9306fi
79608eef 9307rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
9308fi
9309fi
9310echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9311echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9312if test $ac_cv_func_mmap_fixed_mapped = yes; then
9313
9314cat >>confdefs.h <<\_ACEOF
9315#define HAVE_MMAP 1
9316_ACEOF
9317
9318fi
9319rm -f conftest.mmap
9320
9321
9322if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
9323 FILEMAP=unixfilemap
9324else
9325 FILEMAP=readfilemap
9326fi
9327
9328
9329
9330
9331for ac_func in memmove bcopy
9332do
9333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9334echo "$as_me:$LINENO: checking for $ac_func" >&5
9335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9336if eval "test \"\${$as_ac_var+set}\" = set"; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339 cat >conftest.$ac_ext <<_ACEOF
9340#line $LINENO "configure"
79608eef
VS
9341/* confdefs.h. */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h. */
5e9f2524 9346/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
9347 which can conflict with char $ac_func (); below.
9348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9349 <limits.h> exists even on freestanding compilers. */
9350#ifdef __STDC__
9351# include <limits.h>
9352#else
9353# include <assert.h>
9354#endif
5e9f2524
VS
9355/* Override any gcc2 internal prototype to avoid an error. */
9356#ifdef __cplusplus
9357extern "C"
79608eef 9358{
5e9f2524
VS
9359#endif
9360/* We use char because int might match the return type of a gcc2
9361 builtin and then its argument prototype would still apply. */
9362char $ac_func ();
5e9f2524
VS
9363/* The GNU C library defines this for functions which it implements
9364 to always fail with ENOSYS. Some functions are actually named
9365 something starting with __ and the normal name is an alias. */
9366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9367choke me
9368#else
79608eef
VS
9369char (*f) () = $ac_func;
9370#endif
9371#ifdef __cplusplus
9372}
5e9f2524
VS
9373#endif
9374
79608eef
VS
9375int
9376main ()
9377{
9378return f != $ac_func;
5e9f2524
VS
9379 ;
9380 return 0;
9381}
9382_ACEOF
9383rm -f conftest.$ac_objext conftest$ac_exeext
9384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -s conftest$ac_exeext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 eval "$as_ac_var=yes"
9396else
9397 echo "$as_me: failed program was:" >&5
79608eef
VS
9398sed 's/^/| /' conftest.$ac_ext >&5
9399
5e9f2524
VS
9400eval "$as_ac_var=no"
9401fi
9402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9403fi
9404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9406if test `eval echo '${'$as_ac_var'}'` = yes; then
9407 cat >>confdefs.h <<_ACEOF
9408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9409_ACEOF
9410
9411fi
9412done
9413
9414
9415
9416cat >>confdefs.h <<\_ACEOF
9417#define XML_NS 1
9418_ACEOF
9419
9420
9421cat >>confdefs.h <<\_ACEOF
9422#define XML_DTD 1
9423_ACEOF
9424
9425
9426cat >>confdefs.h <<\_ACEOF
9427#define XML_CONTEXT_BYTES 1024
9428_ACEOF
9429
9430
79608eef 9431 ac_config_files="$ac_config_files Makefile"
5e9f2524
VS
9432
9433cat >confcache <<\_ACEOF
9434# This file is a shell script that caches the results of configure
9435# tests run on this system so they can be shared between configure
9436# scripts and configure runs, see configure's option --config-cache.
9437# It is not useful on other systems. If it contains results you don't
9438# want to keep, you may remove or edit it.
9439#
9440# config.status only pays attention to the cache file if you give it
9441# the --recheck option to rerun configure.
9442#
79608eef 9443# `ac_cv_env_foo' variables (set or unset) will be overridden when
5e9f2524
VS
9444# loading this file, other *unset* `ac_cv_foo' will be assigned the
9445# following values.
9446
9447_ACEOF
9448
9449# The following way of writing the cache mishandles newlines in values,
9450# but we know of no workaround that is simple, portable, and efficient.
9451# So, don't put newlines in cache variables' values.
9452# Ultrix sh set writes to stderr and can't be redirected directly,
9453# and sets the high bit in the cache file unless we assign to the vars.
9454{
9455 (set) 2>&1 |
9456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9457 *ac_space=\ *)
9458 # `set' does not quote correctly, so add quotes (double-quote
9459 # substitution turns \\\\ into \\, and sed turns \\ into \).
9460 sed -n \
9461 "s/'/'\\\\''/g;
9462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9463 ;;
9464 *)
9465 # `set' quotes correctly as required by POSIX, so do not add quotes.
9466 sed -n \
9467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9468 ;;
9469 esac;
9470} |
9471 sed '
9472 t clear
9473 : clear
9474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9475 t end
9476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9477 : end' >>confcache
79608eef 9478if diff $cache_file confcache >/dev/null 2>&1; then :; else
5e9f2524
VS
9479 if test -w $cache_file; then
9480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9481 cat confcache >$cache_file
9482 else
9483 echo "not updating unwritable cache $cache_file"
9484 fi
9485fi
9486rm -f confcache
9487
9488test "x$prefix" = xNONE && prefix=$ac_default_prefix
9489# Let make expand exec_prefix.
9490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9491
9492# VPATH may cause trouble with some makes, so we remove $(srcdir),
9493# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9494# trailing colons and then remove the whole line if VPATH becomes empty
9495# (actually we leave an empty line to preserve line numbers).
9496if test "x$srcdir" = x.; then
9497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9498s/:*\$(srcdir):*/:/;
9499s/:*\${srcdir}:*/:/;
9500s/:*@srcdir@:*/:/;
9501s/^\([^=]*=[ ]*\):*/\1/;
9502s/:*$//;
9503s/^[^=]*=[ ]*$//;
9504}'
9505fi
9506
9507DEFS=-DHAVE_CONFIG_H
9508
79608eef
VS
9509ac_libobjs=
9510ac_ltlibobjs=
9511for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9512 # 1. Remove the extension, and $U if already installed.
9513 ac_i=`echo "$ac_i" |
9514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9515 # 2. Add them.
9516 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9517 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9518done
9519LIBOBJS=$ac_libobjs
9520
9521LTLIBOBJS=$ac_ltlibobjs
9522
9523
5e9f2524
VS
9524
9525: ${CONFIG_STATUS=./config.status}
9526ac_clean_files_save=$ac_clean_files
9527ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9528{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9529echo "$as_me: creating $CONFIG_STATUS" >&6;}
9530cat >$CONFIG_STATUS <<_ACEOF
9531#! $SHELL
9532# Generated by $as_me.
9533# Run this file to recreate the current configuration.
9534# Compiler output produced by configure, useful for debugging
9535# configure, is in config.log if it exists.
9536
9537debug=false
79608eef
VS
9538ac_cs_recheck=false
9539ac_cs_silent=false
5e9f2524
VS
9540SHELL=\${CONFIG_SHELL-$SHELL}
9541_ACEOF
9542
9543cat >>$CONFIG_STATUS <<\_ACEOF
5e9f2524
VS
9544## --------------------- ##
9545## M4sh Initialization. ##
9546## --------------------- ##
9547
9548# Be Bourne compatible
9549if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9550 emulate sh
9551 NULLCMD=:
79608eef
VS
9552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9553 # is contrary to our usage. Disable this feature.
9554 alias -g '${1+"$@"}'='"$@"'
5e9f2524
VS
9555elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9556 set -o posix
9557fi
9558
5e9f2524
VS
9559# Support unset when possible.
9560if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9561 as_unset=unset
9562else
9563 as_unset=false
9564fi
9565
79608eef
VS
9566
9567# Work around bugs in pre-3.0 UWIN ksh.
9568$as_unset ENV MAIL MAILPATH
9569PS1='$ '
9570PS2='> '
9571PS4='+ '
9572
9573# NLS nuisances.
9574for as_var in \
9575 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9576 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9577 LC_TELEPHONE LC_TIME
9578do
9579 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9580 eval $as_var=C; export $as_var
9581 else
9582 $as_unset $as_var
9583 fi
9584done
9585
9586# Required to use basename.
9587if expr a : '\(a\)' >/dev/null 2>&1; then
9588 as_expr=expr
9589else
9590 as_expr=false
9591fi
9592
9593if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9594 as_basename=basename
9595else
9596 as_basename=false
9597fi
5e9f2524
VS
9598
9599
9600# Name of the executable.
79608eef 9601as_me=`$as_basename "$0" ||
5e9f2524
VS
9602$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9603 X"$0" : 'X\(//\)$' \| \
9604 X"$0" : 'X\(/\)$' \| \
9605 . : '\(.\)' 2>/dev/null ||
9606echo X/"$0" |
9607 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9608 /^X\/\(\/\/\)$/{ s//\1/; q; }
9609 /^X\/\(\/\).*/{ s//\1/; q; }
9610 s/.*/./; q'`
9611
79608eef 9612
5e9f2524
VS
9613# PATH needs CR, and LINENO needs CR and PATH.
9614# Avoid depending upon Character Ranges.
9615as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9616as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9617as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9618as_cr_digits='0123456789'
9619as_cr_alnum=$as_cr_Letters$as_cr_digits
9620
9621# The user is always right.
9622if test "${PATH_SEPARATOR+set}" != set; then
79608eef
VS
9623 echo "#! /bin/sh" >conf$$.sh
9624 echo "exit 0" >>conf$$.sh
9625 chmod +x conf$$.sh
9626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5e9f2524
VS
9627 PATH_SEPARATOR=';'
9628 else
9629 PATH_SEPARATOR=:
9630 fi
79608eef 9631 rm -f conf$$.sh
5e9f2524
VS
9632fi
9633
9634
9635 as_lineno_1=$LINENO
9636 as_lineno_2=$LINENO
9637 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9638 test "x$as_lineno_1" != "x$as_lineno_2" &&
9639 test "x$as_lineno_3" = "x$as_lineno_2" || {
9640 # Find who we are. Look in the path if we contain no path at all
9641 # relative or not.
9642 case $0 in
9643 *[\\/]* ) as_myself=$0 ;;
9644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9650done
9651
9652 ;;
9653 esac
9654 # We did not find ourselves, most probably we were run as `sh COMMAND'
9655 # in which case we are not to be found in the path.
9656 if test "x$as_myself" = x; then
9657 as_myself=$0
9658 fi
9659 if test ! -f "$as_myself"; then
9660 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9661echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9662 { (exit 1); exit 1; }; }
9663 fi
9664 case $CONFIG_SHELL in
9665 '')
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9668do
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for as_base in sh bash ksh sh5; do
9672 case $as_dir in
9673 /*)
9674 if ("$as_dir/$as_base" -c '
9675 as_lineno_1=$LINENO
9676 as_lineno_2=$LINENO
9677 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9678 test "x$as_lineno_1" != "x$as_lineno_2" &&
9679 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
79608eef
VS
9680 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9681 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5e9f2524
VS
9682 CONFIG_SHELL=$as_dir/$as_base
9683 export CONFIG_SHELL
9684 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9685 fi;;
9686 esac
9687 done
9688done
9689;;
9690 esac
9691
9692 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9693 # uniformly replaced by the line number. The first 'sed' inserts a
9694 # line-number line before each line; the second 'sed' does the real
9695 # work. The second script uses 'N' to pair each line-number line
9696 # with the numbered line, and appends trailing '-' during
9697 # substitution so that $LINENO is not a special case at line end.
9698 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9699 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9700 sed '=' <$as_myself |
9701 sed '
9702 N
9703 s,$,-,
9704 : loop
9705 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9706 t loop
9707 s,-$,,
9708 s,^['$as_cr_digits']*\n,,
9709 ' >$as_me.lineno &&
9710 chmod +x $as_me.lineno ||
9711 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9712echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9713 { (exit 1); exit 1; }; }
9714
9715 # Don't try to exec as it changes $[0], causing all sort of problems
9716 # (the dirname of $[0] is not the place where we might find the
9717 # original and so on. Autoconf is especially sensible to this).
9718 . ./$as_me.lineno
9719 # Exit status is that of the last command.
9720 exit
9721}
9722
9723
9724case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9725 *c*,-n*) ECHO_N= ECHO_C='
9726' ECHO_T=' ' ;;
9727 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9728 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9729esac
9730
9731if expr a : '\(a\)' >/dev/null 2>&1; then
9732 as_expr=expr
9733else
9734 as_expr=false
9735fi
9736
9737rm -f conf$$ conf$$.exe conf$$.file
9738echo >conf$$.file
9739if ln -s conf$$.file conf$$ 2>/dev/null; then
9740 # We could just check for DJGPP; but this test a) works b) is more generic
9741 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9742 if test -f conf$$.exe; then
9743 # Don't use ln at all; we don't have any links
9744 as_ln_s='cp -p'
9745 else
9746 as_ln_s='ln -s'
9747 fi
9748elif ln conf$$.file conf$$ 2>/dev/null; then
9749 as_ln_s=ln
9750else
9751 as_ln_s='cp -p'
9752fi
9753rm -f conf$$ conf$$.exe conf$$.file
9754
79608eef
VS
9755if mkdir -p . 2>/dev/null; then
9756 as_mkdir_p=:
9757else
9758 as_mkdir_p=false
9759fi
9760
5e9f2524
VS
9761as_executable_p="test -f"
9762
9763# Sed expression to map a string onto a valid CPP name.
9764as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9765
9766# Sed expression to map a string onto a valid variable name.
9767as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9768
9769
9770# IFS
9771# We need space, tab and new line, in precisely that order.
9772as_nl='
9773'
9774IFS=" $as_nl"
9775
9776# CDPATH.
79608eef 9777$as_unset CDPATH
5e9f2524
VS
9778
9779exec 6>&1
9780
9781# Open the log real soon, to keep \$[0] and so on meaningful, and to
9782# report actual input values of CONFIG_FILES etc. instead of their
9783# values after options handling. Logging --version etc. is OK.
9784exec 5>>config.log
9785{
9786 echo
9787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9788## Running $as_me. ##
9789_ASBOX
9790} >&5
9791cat >&5 <<_CSEOF
9792
79608eef
VS
9793This file was extended by $as_me, which was
9794generated by GNU Autoconf 2.57. Invocation command line was
5e9f2524
VS
9795
9796 CONFIG_FILES = $CONFIG_FILES
9797 CONFIG_HEADERS = $CONFIG_HEADERS
9798 CONFIG_LINKS = $CONFIG_LINKS
9799 CONFIG_COMMANDS = $CONFIG_COMMANDS
9800 $ $0 $@
9801
9802_CSEOF
9803echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9804echo >&5
9805_ACEOF
9806
9807# Files that config.status was made for.
9808if test -n "$ac_config_files"; then
9809 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9810fi
9811
9812if test -n "$ac_config_headers"; then
9813 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9814fi
9815
9816if test -n "$ac_config_links"; then
9817 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9818fi
9819
9820if test -n "$ac_config_commands"; then
9821 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9822fi
9823
9824cat >>$CONFIG_STATUS <<\_ACEOF
9825
9826ac_cs_usage="\
9827\`$as_me' instantiates files from templates according to the
9828current configuration.
9829
9830Usage: $0 [OPTIONS] [FILE]...
9831
9832 -h, --help print this help, then exit
9833 -V, --version print version number, then exit
79608eef 9834 -q, --quiet do not print progress messages
5e9f2524
VS
9835 -d, --debug don't remove temporary files
9836 --recheck update $as_me by reconfiguring in the same conditions
9837 --file=FILE[:TEMPLATE]
9838 instantiate the configuration file FILE
9839 --header=FILE[:TEMPLATE]
9840 instantiate the configuration header FILE
9841
9842Configuration files:
9843$config_files
9844
9845Configuration headers:
9846$config_headers
9847
9848Report bugs to <bug-autoconf@gnu.org>."
9849_ACEOF
9850
9851cat >>$CONFIG_STATUS <<_ACEOF
9852ac_cs_version="\\
79608eef
VS
9853config.status
9854configured by $0, generated by GNU Autoconf 2.57,
5e9f2524
VS
9855 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9856
9857Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9858Free Software Foundation, Inc.
9859This config.status script is free software; the Free Software Foundation
9860gives unlimited permission to copy, distribute and modify it."
9861srcdir=$srcdir
9862INSTALL="$INSTALL"
9863_ACEOF
9864
9865cat >>$CONFIG_STATUS <<\_ACEOF
9866# If no file are specified by the user, then we need to provide default
9867# value. By we need to know if files were specified by the user.
9868ac_need_defaults=:
9869while test $# != 0
9870do
9871 case $1 in
9872 --*=*)
9873 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9874 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
79608eef
VS
9875 ac_shift=:
9876 ;;
9877 -*)
9878 ac_option=$1
9879 ac_optarg=$2
9880 ac_shift=shift
5e9f2524 9881 ;;
5e9f2524
VS
9882 *) # This is not an option, so the user has probably given explicit
9883 # arguments.
79608eef 9884 ac_option=$1
5e9f2524
VS
9885 ac_need_defaults=false;;
9886 esac
9887
79608eef 9888 case $ac_option in
5e9f2524
VS
9889 # Handling of the options.
9890_ACEOF
5e9f2524 9891cat >>$CONFIG_STATUS <<\_ACEOF
79608eef
VS
9892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9893 ac_cs_recheck=: ;;
5e9f2524
VS
9894 --version | --vers* | -V )
9895 echo "$ac_cs_version"; exit 0 ;;
9896 --he | --h)
9897 # Conflict between --help and --header
9898 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9899Try \`$0 --help' for more information." >&5
9900echo "$as_me: error: ambiguous option: $1
9901Try \`$0 --help' for more information." >&2;}
9902 { (exit 1); exit 1; }; };;
9903 --help | --hel | -h )
9904 echo "$ac_cs_usage"; exit 0 ;;
9905 --debug | --d* | -d )
9906 debug=: ;;
9907 --file | --fil | --fi | --f )
79608eef
VS
9908 $ac_shift
9909 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5e9f2524
VS
9910 ac_need_defaults=false;;
9911 --header | --heade | --head | --hea )
79608eef
VS
9912 $ac_shift
9913 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5e9f2524 9914 ac_need_defaults=false;;
79608eef
VS
9915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9917 ac_cs_silent=: ;;
5e9f2524
VS
9918
9919 # This is an error.
9920 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9921Try \`$0 --help' for more information." >&5
9922echo "$as_me: error: unrecognized option: $1
9923Try \`$0 --help' for more information." >&2;}
9924 { (exit 1); exit 1; }; } ;;
9925
9926 *) ac_config_targets="$ac_config_targets $1" ;;
9927
9928 esac
9929 shift
9930done
9931
79608eef
VS
9932ac_configure_extra_args=
9933
9934if $ac_cs_silent; then
9935 exec 6>/dev/null
9936 ac_configure_extra_args="$ac_configure_extra_args --silent"
9937fi
9938
9939_ACEOF
9940cat >>$CONFIG_STATUS <<_ACEOF
9941if \$ac_cs_recheck; then
9942 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9943 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9944fi
9945
5e9f2524
VS
9946_ACEOF
9947
9948
9949
9950
9951
9952cat >>$CONFIG_STATUS <<\_ACEOF
9953for ac_config_target in $ac_config_targets
9954do
9955 case "$ac_config_target" in
9956 # Handling of arguments.
9957 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9958 "expat_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
9959 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9960echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9961 { (exit 1); exit 1; }; };;
9962 esac
9963done
9964
9965# If the user did not use the arguments to specify the items to instantiate,
9966# then the envvar interface is used. Set only those that are not.
9967# We use the long form for the default assignment because of an extremely
9968# bizarre bug on SunOS 4.1.3.
9969if $ac_need_defaults; then
9970 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9971 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9972fi
9973
79608eef
VS
9974# Have a temporary directory for convenience. Make it in the build tree
9975# simply because there is no reason to put it here, and in addition,
9976# creating and moving files from /tmp can sometimes cause problems.
5e9f2524
VS
9977# Create a temporary directory, and hook for its removal unless debugging.
9978$debug ||
9979{
9980 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9981 trap '{ (exit 1); exit 1; }' 1 2 13 15
9982}
9983
9984# Create a (secure) tmp directory for tmp files.
79608eef 9985
5e9f2524 9986{
79608eef 9987 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5e9f2524
VS
9988 test -n "$tmp" && test -d "$tmp"
9989} ||
9990{
79608eef 9991 tmp=./confstat$$-$RANDOM
5e9f2524
VS
9992 (umask 077 && mkdir $tmp)
9993} ||
9994{
79608eef 9995 echo "$me: cannot create a temporary directory in ." >&2
5e9f2524
VS
9996 { (exit 1); exit 1; }
9997}
9998
9999_ACEOF
10000
10001cat >>$CONFIG_STATUS <<_ACEOF
10002
10003#
10004# CONFIG_FILES section.
10005#
10006
10007# No need to generate the scripts if there are no CONFIG_FILES.
10008# This happens for instance when ./config.status config.h
10009if test -n "\$CONFIG_FILES"; then
10010 # Protect against being on the right side of a sed subst in config.status.
10011 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10012 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10013s,@SHELL@,$SHELL,;t t
10014s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10015s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10016s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10017s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10018s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10019s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10020s,@exec_prefix@,$exec_prefix,;t t
10021s,@prefix@,$prefix,;t t
10022s,@program_transform_name@,$program_transform_name,;t t
10023s,@bindir@,$bindir,;t t
10024s,@sbindir@,$sbindir,;t t
10025s,@libexecdir@,$libexecdir,;t t
10026s,@datadir@,$datadir,;t t
10027s,@sysconfdir@,$sysconfdir,;t t
10028s,@sharedstatedir@,$sharedstatedir,;t t
10029s,@localstatedir@,$localstatedir,;t t
10030s,@libdir@,$libdir,;t t
10031s,@includedir@,$includedir,;t t
10032s,@oldincludedir@,$oldincludedir,;t t
10033s,@infodir@,$infodir,;t t
10034s,@mandir@,$mandir,;t t
10035s,@build_alias@,$build_alias,;t t
10036s,@host_alias@,$host_alias,;t t
10037s,@target_alias@,$target_alias,;t t
10038s,@DEFS@,$DEFS,;t t
10039s,@ECHO_C@,$ECHO_C,;t t
10040s,@ECHO_N@,$ECHO_N,;t t
10041s,@ECHO_T@,$ECHO_T,;t t
10042s,@LIBS@,$LIBS,;t t
10043s,@build@,$build,;t t
10044s,@build_cpu@,$build_cpu,;t t
10045s,@build_vendor@,$build_vendor,;t t
10046s,@build_os@,$build_os,;t t
10047s,@host@,$host,;t t
10048s,@host_cpu@,$host_cpu,;t t
10049s,@host_vendor@,$host_vendor,;t t
10050s,@host_os@,$host_os,;t t
10051s,@CC@,$CC,;t t
10052s,@CFLAGS@,$CFLAGS,;t t
10053s,@LDFLAGS@,$LDFLAGS,;t t
10054s,@CPPFLAGS@,$CPPFLAGS,;t t
10055s,@ac_ct_CC@,$ac_ct_CC,;t t
10056s,@EXEEXT@,$EXEEXT,;t t
10057s,@OBJEXT@,$OBJEXT,;t t
10058s,@LN_S@,$LN_S,;t t
10059s,@ECHO@,$ECHO,;t t
10060s,@RANLIB@,$RANLIB,;t t
10061s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10062s,@STRIP@,$STRIP,;t t
10063s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10064s,@CPP@,$CPP,;t t
79608eef 10065s,@EGREP@,$EGREP,;t t
5e9f2524
VS
10066s,@LIBTOOL@,$LIBTOOL,;t t
10067s,@LIBCURRENT@,$LIBCURRENT,;t t
10068s,@LIBREVISION@,$LIBREVISION,;t t
10069s,@LIBAGE@,$LIBAGE,;t t
10070s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10071s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10072s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10073s,@LIBOBJS@,$LIBOBJS,;t t
10074s,@FILEMAP@,$FILEMAP,;t t
79608eef 10075s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5e9f2524
VS
10076CEOF
10077
10078_ACEOF
10079
10080 cat >>$CONFIG_STATUS <<\_ACEOF
10081 # Split the substitutions into bite-sized pieces for seds with
10082 # small command number limits, like on Digital OSF/1 and HP-UX.
10083 ac_max_sed_lines=48
10084 ac_sed_frag=1 # Number of current file.
10085 ac_beg=1 # First line for current file.
10086 ac_end=$ac_max_sed_lines # Line after last line for current file.
10087 ac_more_lines=:
10088 ac_sed_cmds=
10089 while $ac_more_lines; do
10090 if test $ac_beg -gt 1; then
10091 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10092 else
10093 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10094 fi
10095 if test ! -s $tmp/subs.frag; then
10096 ac_more_lines=false
10097 else
10098 # The purpose of the label and of the branching condition is to
10099 # speed up the sed processing (if there are no `@' at all, there
10100 # is no need to browse any of the substitutions).
10101 # These are the two extra sed commands mentioned above.
10102 (echo ':t
10103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10104 if test -z "$ac_sed_cmds"; then
10105 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10106 else
10107 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10108 fi
10109 ac_sed_frag=`expr $ac_sed_frag + 1`
10110 ac_beg=$ac_end
10111 ac_end=`expr $ac_end + $ac_max_sed_lines`
10112 fi
10113 done
10114 if test -z "$ac_sed_cmds"; then
10115 ac_sed_cmds=cat
10116 fi
10117fi # test -n "$CONFIG_FILES"
10118
10119_ACEOF
10120cat >>$CONFIG_STATUS <<\_ACEOF
10121for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10123 case $ac_file in
10124 - | *:- | *:-:* ) # input from stdin
10125 cat >$tmp/stdin
10126 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10128 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10130 * ) ac_file_in=$ac_file.in ;;
10131 esac
10132
10133 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10135$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10136 X"$ac_file" : 'X\(//\)[^/]' \| \
10137 X"$ac_file" : 'X\(//\)$' \| \
10138 X"$ac_file" : 'X\(/\)' \| \
10139 . : '\(.\)' 2>/dev/null ||
10140echo X"$ac_file" |
10141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10143 /^X\(\/\/\)$/{ s//\1/; q; }
10144 /^X\(\/\).*/{ s//\1/; q; }
10145 s/.*/./; q'`
79608eef
VS
10146 { if $as_mkdir_p; then
10147 mkdir -p "$ac_dir"
10148 else
10149 as_dir="$ac_dir"
10150 as_dirs=
10151 while test ! -d "$as_dir"; do
10152 as_dirs="$as_dir $as_dirs"
10153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155 X"$as_dir" : 'X\(//\)[^/]' \| \
10156 X"$as_dir" : 'X\(//\)$' \| \
10157 X"$as_dir" : 'X\(/\)' \| \
10158 . : '\(.\)' 2>/dev/null ||
10159echo X"$as_dir" |
10160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10162 /^X\(\/\/\)$/{ s//\1/; q; }
10163 /^X\(\/\).*/{ s//\1/; q; }
10164 s/.*/./; q'`
10165 done
10166 test ! -n "$as_dirs" || mkdir $as_dirs
10167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10168echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10169 { (exit 1); exit 1; }; }; }
5e9f2524
VS
10170
10171 ac_builddir=.
10172
10173if test "$ac_dir" != .; then
10174 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10175 # A "../" for each directory in $ac_dir_suffix.
10176 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10177else
10178 ac_dir_suffix= ac_top_builddir=
10179fi
10180
10181case $srcdir in
10182 .) # No --srcdir option. We are building in place.
10183 ac_srcdir=.
10184 if test -z "$ac_top_builddir"; then
10185 ac_top_srcdir=.
10186 else
10187 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10188 fi ;;
10189 [\\/]* | ?:[\\/]* ) # Absolute path.
10190 ac_srcdir=$srcdir$ac_dir_suffix;
10191 ac_top_srcdir=$srcdir ;;
10192 *) # Relative path.
10193 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10194 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10195esac
10196# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10197# absolute.
10198ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
79608eef 10199ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5e9f2524
VS
10200ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10201ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10202
10203
10204 case $INSTALL in
10205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10206 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10207 esac
10208
10209 if test x"$ac_file" != x-; then
10210 { echo "$as_me:$LINENO: creating $ac_file" >&5
10211echo "$as_me: creating $ac_file" >&6;}
10212 rm -f "$ac_file"
10213 fi
10214 # Let's still pretend it is `configure' which instantiates (i.e., don't
10215 # use $as_me), people would be surprised to read:
10216 # /* config.h. Generated by config.status. */
10217 if test x"$ac_file" = x-; then
10218 configure_input=
10219 else
10220 configure_input="$ac_file. "
10221 fi
10222 configure_input=$configure_input"Generated from `echo $ac_file_in |
10223 sed 's,.*/,,'` by configure."
10224
10225 # First look for the input files in the build tree, otherwise in the
10226 # src tree.
10227 ac_file_inputs=`IFS=:
10228 for f in $ac_file_in; do
10229 case $f in
10230 -) echo $tmp/stdin ;;
10231 [\\/$]*)
10232 # Absolute (can't be DOS-style, as IFS=:)
10233 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10234echo "$as_me: error: cannot find input file: $f" >&2;}
10235 { (exit 1); exit 1; }; }
10236 echo $f;;
10237 *) # Relative
10238 if test -f "$f"; then
10239 # Build tree
10240 echo $f
10241 elif test -f "$srcdir/$f"; then
10242 # Source tree
10243 echo $srcdir/$f
10244 else
10245 # /dev/null tree
10246 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10247echo "$as_me: error: cannot find input file: $f" >&2;}
10248 { (exit 1); exit 1; }; }
10249 fi;;
10250 esac
10251 done` || { (exit 1); exit 1; }
10252_ACEOF
10253cat >>$CONFIG_STATUS <<_ACEOF
10254 sed "$ac_vpsub
10255$extrasub
10256_ACEOF
10257cat >>$CONFIG_STATUS <<\_ACEOF
10258:t
10259/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10260s,@configure_input@,$configure_input,;t t
10261s,@srcdir@,$ac_srcdir,;t t
10262s,@abs_srcdir@,$ac_abs_srcdir,;t t
10263s,@top_srcdir@,$ac_top_srcdir,;t t
10264s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10265s,@builddir@,$ac_builddir,;t t
10266s,@abs_builddir@,$ac_abs_builddir,;t t
10267s,@top_builddir@,$ac_top_builddir,;t t
10268s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10269s,@INSTALL@,$ac_INSTALL,;t t
10270" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10271 rm -f $tmp/stdin
10272 if test x"$ac_file" != x-; then
10273 mv $tmp/out $ac_file
10274 else
10275 cat $tmp/out
10276 rm -f $tmp/out
10277 fi
10278
10279done
10280_ACEOF
10281cat >>$CONFIG_STATUS <<\_ACEOF
10282
10283#
10284# CONFIG_HEADER section.
10285#
10286
10287# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10288# NAME is the cpp macro being defined and VALUE is the value it is being given.
10289#
10290# ac_d sets the value in "#define NAME VALUE" lines.
10291ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10292ac_dB='[ ].*$,\1#\2'
10293ac_dC=' '
10294ac_dD=',;t'
10295# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10296ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10297ac_uB='$,\1#\2define\3'
10298ac_uC=' '
10299ac_uD=',;t'
10300
10301for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10302 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10303 case $ac_file in
10304 - | *:- | *:-:* ) # input from stdin
10305 cat >$tmp/stdin
10306 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10308 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10310 * ) ac_file_in=$ac_file.in ;;
10311 esac
10312
10313 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10314echo "$as_me: creating $ac_file" >&6;}
10315
10316 # First look for the input files in the build tree, otherwise in the
10317 # src tree.
10318 ac_file_inputs=`IFS=:
10319 for f in $ac_file_in; do
10320 case $f in
10321 -) echo $tmp/stdin ;;
10322 [\\/$]*)
10323 # Absolute (can't be DOS-style, as IFS=:)
10324 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10325echo "$as_me: error: cannot find input file: $f" >&2;}
10326 { (exit 1); exit 1; }; }
10327 echo $f;;
10328 *) # Relative
10329 if test -f "$f"; then
10330 # Build tree
10331 echo $f
10332 elif test -f "$srcdir/$f"; then
10333 # Source tree
10334 echo $srcdir/$f
10335 else
10336 # /dev/null tree
10337 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10338echo "$as_me: error: cannot find input file: $f" >&2;}
10339 { (exit 1); exit 1; }; }
10340 fi;;
10341 esac
10342 done` || { (exit 1); exit 1; }
10343 # Remove the trailing spaces.
10344 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10345
10346_ACEOF
10347
10348# Transform confdefs.h into two sed scripts, `conftest.defines' and
10349# `conftest.undefs', that substitutes the proper values into
10350# config.h.in to produce config.h. The first handles `#define'
10351# templates, and the second `#undef' templates.
10352# And first: Protect against being on the right side of a sed subst in
10353# config.status. Protect against being in an unquoted here document
10354# in config.status.
10355rm -f conftest.defines conftest.undefs
10356# Using a here document instead of a string reduces the quoting nightmare.
10357# Putting comments in sed scripts is not portable.
10358#
10359# `end' is used to avoid that the second main sed command (meant for
10360# 0-ary CPP macros) applies to n-ary macro definitions.
10361# See the Autoconf documentation for `clear'.
10362cat >confdef2sed.sed <<\_ACEOF
10363s/[\\&,]/\\&/g
10364s,[\\$`],\\&,g
10365t clear
10366: clear
10367s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10368t end
10369s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10370: end
10371_ACEOF
10372# If some macros were called several times there might be several times
10373# the same #defines, which is useless. Nevertheless, we may not want to
10374# sort them, since we want the *last* AC-DEFINE to be honored.
10375uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10376sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10377rm -f confdef2sed.sed
10378
10379# This sed command replaces #undef with comments. This is necessary, for
10380# example, in the case of _POSIX_SOURCE, which is predefined and required
10381# on some systems where configure will not decide to define it.
10382cat >>conftest.undefs <<\_ACEOF
10383s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10384_ACEOF
10385
10386# Break up conftest.defines because some shells have a limit on the size
10387# of here documents, and old seds have small limits too (100 cmds).
10388echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
79608eef 10389echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5e9f2524
VS
10390echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10391echo ' :' >>$CONFIG_STATUS
10392rm -f conftest.tail
10393while grep . conftest.defines >/dev/null
10394do
10395 # Write a limited-size here document to $tmp/defines.sed.
10396 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10397 # Speed up: don't consider the non `#define' lines.
10398 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10399 # Work around the forget-to-reset-the-flag bug.
10400 echo 't clr' >>$CONFIG_STATUS
10401 echo ': clr' >>$CONFIG_STATUS
10402 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10403 echo 'CEOF
10404 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10405 rm -f $tmp/in
10406 mv $tmp/out $tmp/in
10407' >>$CONFIG_STATUS
10408 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10409 rm -f conftest.defines
10410 mv conftest.tail conftest.defines
10411done
10412rm -f conftest.defines
79608eef 10413echo ' fi # grep' >>$CONFIG_STATUS
5e9f2524
VS
10414echo >>$CONFIG_STATUS
10415
10416# Break up conftest.undefs because some shells have a limit on the size
10417# of here documents, and old seds have small limits too (100 cmds).
10418echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10419rm -f conftest.tail
10420while grep . conftest.undefs >/dev/null
10421do
10422 # Write a limited-size here document to $tmp/undefs.sed.
10423 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10424 # Speed up: don't consider the non `#undef'
10425 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10426 # Work around the forget-to-reset-the-flag bug.
10427 echo 't clr' >>$CONFIG_STATUS
10428 echo ': clr' >>$CONFIG_STATUS
10429 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10430 echo 'CEOF
10431 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10432 rm -f $tmp/in
10433 mv $tmp/out $tmp/in
10434' >>$CONFIG_STATUS
10435 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10436 rm -f conftest.undefs
10437 mv conftest.tail conftest.undefs
10438done
10439rm -f conftest.undefs
10440
10441cat >>$CONFIG_STATUS <<\_ACEOF
10442 # Let's still pretend it is `configure' which instantiates (i.e., don't
10443 # use $as_me), people would be surprised to read:
10444 # /* config.h. Generated by config.status. */
10445 if test x"$ac_file" = x-; then
10446 echo "/* Generated by configure. */" >$tmp/config.h
10447 else
10448 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10449 fi
10450 cat $tmp/in >>$tmp/config.h
10451 rm -f $tmp/in
10452 if test x"$ac_file" != x-; then
79608eef 10453 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5e9f2524
VS
10454 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10455echo "$as_me: $ac_file is unchanged" >&6;}
10456 else
10457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10459 X"$ac_file" : 'X\(//\)[^/]' \| \
10460 X"$ac_file" : 'X\(//\)$' \| \
10461 X"$ac_file" : 'X\(/\)' \| \
10462 . : '\(.\)' 2>/dev/null ||
10463echo X"$ac_file" |
10464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10466 /^X\(\/\/\)$/{ s//\1/; q; }
10467 /^X\(\/\).*/{ s//\1/; q; }
10468 s/.*/./; q'`
79608eef
VS
10469 { if $as_mkdir_p; then
10470 mkdir -p "$ac_dir"
10471 else
10472 as_dir="$ac_dir"
10473 as_dirs=
10474 while test ! -d "$as_dir"; do
10475 as_dirs="$as_dir $as_dirs"
10476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10477$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10478 X"$as_dir" : 'X\(//\)[^/]' \| \
10479 X"$as_dir" : 'X\(//\)$' \| \
10480 X"$as_dir" : 'X\(/\)' \| \
10481 . : '\(.\)' 2>/dev/null ||
10482echo X"$as_dir" |
10483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10485 /^X\(\/\/\)$/{ s//\1/; q; }
10486 /^X\(\/\).*/{ s//\1/; q; }
10487 s/.*/./; q'`
10488 done
10489 test ! -n "$as_dirs" || mkdir $as_dirs
10490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10491echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10492 { (exit 1); exit 1; }; }; }
5e9f2524
VS
10493
10494 rm -f $ac_file
10495 mv $tmp/config.h $ac_file
10496 fi
10497 else
10498 cat $tmp/config.h
10499 rm -f $tmp/config.h
10500 fi
10501done
10502_ACEOF
10503
10504cat >>$CONFIG_STATUS <<\_ACEOF
10505
10506{ (exit 0); exit 0; }
10507_ACEOF
10508chmod +x $CONFIG_STATUS
10509ac_clean_files=$ac_clean_files_save
10510
10511
10512# configure is writing to config.log, and then calls config.status.
10513# config.status does its own redirection, appending to config.log.
10514# Unfortunately, on DOS this fails, as config.log is still kept open
10515# by configure, so config.status won't be able to write to it; its
10516# output is simply discarded. So we exec the FD to /dev/null,
10517# effectively closing config.log, so it can be properly (re)opened and
10518# appended to by config.status. When coming back to configure, we
10519# need to make the FD available again.
10520if test "$no_create" != yes; then
10521 ac_cs_success=:
79608eef
VS
10522 ac_config_status_args=
10523 test "$silent" = yes &&
10524 ac_config_status_args="$ac_config_status_args --quiet"
5e9f2524 10525 exec 5>/dev/null
79608eef 10526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5e9f2524
VS
10527 exec 5>>config.log
10528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10529 # would make configure fail if this is the last instruction.
10530 $ac_cs_success || { (exit 1); exit 1; }
10531fi
10532
10533
10534abs_srcdir="`cd $srcdir && pwd`"
10535abs_builddir="`pwd`"
10536if test "$abs_srcdir" != "$abs_builddir"; then
1772d112 10537 ${MAKE:-make} mkdir-init
5e9f2524 10538fi