remove useless calls
[catagits/fcgi2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
9
10 # Find the correct PATH separator.  Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13   UNAME=${UNAME-`uname 2>/dev/null`}
14   case X$UNAME in
15     *-DOS) lt_cv_sys_path_separator=';' ;;
16     *)     lt_cv_sys_path_separator=':' ;;
17   esac
18 fi
19
20 # Check that we are running under the correct shell.
21 SHELL=${CONFIG_SHELL-/bin/sh}
22
23 case X$ECHO in
24 X*--fallback-echo)
25   # Remove one level of quotation (which was required for Make).
26   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27   ;;
28 esac
29
30 echo=${ECHO-echo}
31 if test "X$1" = X--no-reexec; then
32   # Discard the --no-reexec flag, and continue.
33   shift
34 elif test "X$1" = X--fallback-echo; then
35   # Avoid inline document here, it may be left over
36   :
37 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38   # Yippee, $echo works!
39   :
40 else
41   # Restart under the correct shell.
42   exec $SHELL "$0" --no-reexec ${1+"$@"}
43 fi
44
45 if test "X$1" = X--fallback-echo; then
46   # used as fallback echo
47   shift
48   cat <<EOF
49
50 EOF
51   exit 0
52 fi
53
54 # The HP-UX ksh and POSIX shell print the target directory to stdout
55 # if CDPATH is set.
56 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58 if test -z "$ECHO"; then
59 if test "X${echo_test_string+set}" != Xset; then
60 # find a string as large as possible, as long as the shell can cope with it
61   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64        echo_test_string="`eval $cmd`" &&
65        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66     then
67       break
68     fi
69   done
70 fi
71
72 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74    test "X$echo_testing_string" = "X$echo_test_string"; then
75   :
76 else
77   # The Solaris, AIX, and Digital Unix default echo programs unquote
78   # backslashes.  This makes it impossible to quote backslashes using
79   #   echo "$something" | sed 's/\\/\\\\/g'
80   #
81   # So, first we look for a working echo in the user's PATH.
82
83   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84   for dir in $PATH /usr/ucb; do
85     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88        test "X$echo_testing_string" = "X$echo_test_string"; then
89       echo="$dir/echo"
90       break
91     fi
92   done
93   IFS="$save_ifs"
94
95   if test "X$echo" = Xecho; then
96     # We didn't find a better echo, so look for alternatives.
97     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99        test "X$echo_testing_string" = "X$echo_test_string"; then
100       # This shell has a builtin print -r that does the trick.
101       echo='print -r'
102     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103          test "X$CONFIG_SHELL" != X/bin/ksh; then
104       # If we have ksh, try running configure again with it.
105       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106       export ORIGINAL_CONFIG_SHELL
107       CONFIG_SHELL=/bin/ksh
108       export CONFIG_SHELL
109       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110     else
111       # Try using printf.
112       echo='printf %s\n'
113       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115          test "X$echo_testing_string" = "X$echo_test_string"; then
116         # Cool, printf works
117         :
118       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119            test "X$echo_testing_string" = 'X\t' &&
120            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121            test "X$echo_testing_string" = "X$echo_test_string"; then
122         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123         export CONFIG_SHELL
124         SHELL="$CONFIG_SHELL"
125         export SHELL
126         echo="$CONFIG_SHELL $0 --fallback-echo"
127       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128            test "X$echo_testing_string" = 'X\t' &&
129            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130            test "X$echo_testing_string" = "X$echo_test_string"; then
131         echo="$CONFIG_SHELL $0 --fallback-echo"
132       else
133         # maybe with a smaller string...
134         prev=:
135
136         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138           then
139             break
140           fi
141           prev="$cmd"
142         done
143
144         if test "$prev" != 'sed 50q "$0"'; then
145           echo_test_string=`eval $prev`
146           export echo_test_string
147           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148         else
149           # Oops.  We lost completely, so just stick with echo.
150           echo=echo
151         fi
152       fi
153     fi
154   fi
155 fi
156 fi
157
158 # Copy echo and quote the copy suitably for passing to libtool from
159 # the Makefile, instead of quoting the original, which is used later.
160 ECHO=$echo
161 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163 fi
164
165 # Avoid depending upon Character Ranges.
166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
169 as_cr_digits='0123456789'
170 as_cr_alnum=$as_cr_Letters$as_cr_digits
171
172 # Sed expression to map a string onto a valid variable name.
173 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
174
175 # Sed expression to map a string onto a valid CPP name.
176 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
177
178 # Be Bourne compatible
179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
180   emulate sh
181   NULLCMD=:
182 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
183   set -o posix
184 fi
185
186 # Name of the executable.
187 as_me=`echo "$0" |sed 's,.*[\\/],,'`
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Support unset when possible.
216 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
217   as_unset=unset
218 else
219   as_unset=false
220 fi
221
222 # NLS nuisances.
223 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
224 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
225 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
226 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
227 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
228 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
229 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
230 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
231
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
235 '
236 IFS="   $as_nl"
237
238 # CDPATH.
239 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
240
241 # Name of the host.
242 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
243 # so uname gets run too.
244 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245
246 exec 6>&1
247
248 #
249 # Initializations.
250 #
251 ac_default_prefix=/usr/local
252 cross_compiling=no
253 subdirs=
254 MFLAGS= MAKEFLAGS=
255 SHELL=${CONFIG_SHELL-/bin/sh}
256
257 # Maximum number of lines to put in a shell here document.
258 # This variable seems obsolete.  It should probably be removed, and
259 # only ac_max_sed_lines should be used.
260 : ${ac_max_here_lines=38}
261
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299 # Initialize some variables set by options.
300 ac_init_help=
301 ac_init_version=false
302 # The variables have the same names as the options, with
303 # dashes changed to underlines.
304 cache_file=/dev/null
305 exec_prefix=NONE
306 no_create=
307 no_recursion=
308 prefix=NONE
309 program_prefix=NONE
310 program_suffix=NONE
311 program_transform_name=s,x,x,
312 silent=
313 site=
314 srcdir=
315 verbose=
316 x_includes=NONE
317 x_libraries=NONE
318
319 # Installation directory options.
320 # These are left unexpanded so users can "make install exec_prefix=/foo"
321 # and all the variables that are supposed to be based on exec_prefix
322 # by default will actually change.
323 # Use braces instead of parens because sh, perl, etc. also accept them.
324 bindir='${exec_prefix}/bin'
325 sbindir='${exec_prefix}/sbin'
326 libexecdir='${exec_prefix}/libexec'
327 datadir='${prefix}/share'
328 sysconfdir='${prefix}/etc'
329 sharedstatedir='${prefix}/com'
330 localstatedir='${prefix}/var'
331 libdir='${exec_prefix}/lib'
332 includedir='${prefix}/include'
333 oldincludedir='/usr/include'
334 infodir='${prefix}/info'
335 mandir='${prefix}/man'
336
337 # Identity of this package.
338 PACKAGE_NAME=
339 PACKAGE_TARNAME=
340 PACKAGE_VERSION=
341 PACKAGE_STRING=
342 PACKAGE_BUGREPORT=
343
344 ac_prev=
345 for ac_option
346 do
347   # If the previous option needs an argument, assign it.
348   if test -n "$ac_prev"; then
349     eval "$ac_prev=\$ac_option"
350     ac_prev=
351     continue
352   fi
353
354   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355
356   # Accept the important Cygnus configure options, so we can diagnose typos.
357
358   case $ac_option in
359
360   -bindir | --bindir | --bindi | --bind | --bin | --bi)
361     ac_prev=bindir ;;
362   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
363     bindir=$ac_optarg ;;
364
365   -build | --build | --buil | --bui | --bu)
366     ac_prev=build_alias ;;
367   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
368     build_alias=$ac_optarg ;;
369
370   -cache-file | --cache-file | --cache-fil | --cache-fi \
371   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
372     ac_prev=cache_file ;;
373   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
374   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
375     cache_file=$ac_optarg ;;
376
377   --config-cache | -C)
378     cache_file=config.cache ;;
379
380   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381     ac_prev=datadir ;;
382   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383   | --da=*)
384     datadir=$ac_optarg ;;
385
386   -disable-* | --disable-*)
387     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
388     # Reject names that are not valid shell variable names.
389     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
390       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
391    { (exit 1); exit 1; }; }
392     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
393     eval "enable_$ac_feature=no" ;;
394
395   -enable-* | --enable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     case $ac_option in
403       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
404       *) ac_optarg=yes ;;
405     esac
406     eval "enable_$ac_feature='$ac_optarg'" ;;
407
408   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
409   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
410   | --exec | --exe | --ex)
411     ac_prev=exec_prefix ;;
412   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
413   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
414   | --exec=* | --exe=* | --ex=*)
415     exec_prefix=$ac_optarg ;;
416
417   -gas | --gas | --ga | --g)
418     # Obsolete; use --with-gas.
419     with_gas=yes ;;
420
421   -help | --help | --hel | --he | -h)
422     ac_init_help=long ;;
423   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
424     ac_init_help=recursive ;;
425   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
426     ac_init_help=short ;;
427
428   -host | --host | --hos | --ho)
429     ac_prev=host_alias ;;
430   -host=* | --host=* | --hos=* | --ho=*)
431     host_alias=$ac_optarg ;;
432
433   -includedir | --includedir | --includedi | --included | --include \
434   | --includ | --inclu | --incl | --inc)
435     ac_prev=includedir ;;
436   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
437   | --includ=* | --inclu=* | --incl=* | --inc=*)
438     includedir=$ac_optarg ;;
439
440   -infodir | --infodir | --infodi | --infod | --info | --inf)
441     ac_prev=infodir ;;
442   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
443     infodir=$ac_optarg ;;
444
445   -libdir | --libdir | --libdi | --libd)
446     ac_prev=libdir ;;
447   -libdir=* | --libdir=* | --libdi=* | --libd=*)
448     libdir=$ac_optarg ;;
449
450   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
451   | --libexe | --libex | --libe)
452     ac_prev=libexecdir ;;
453   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
454   | --libexe=* | --libex=* | --libe=*)
455     libexecdir=$ac_optarg ;;
456
457   -localstatedir | --localstatedir | --localstatedi | --localstated \
458   | --localstate | --localstat | --localsta | --localst \
459   | --locals | --local | --loca | --loc | --lo)
460     ac_prev=localstatedir ;;
461   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
462   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
463   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
464     localstatedir=$ac_optarg ;;
465
466   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467     ac_prev=mandir ;;
468   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
469     mandir=$ac_optarg ;;
470
471   -nfp | --nfp | --nf)
472     # Obsolete; use --without-fp.
473     with_fp=no ;;
474
475   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476   | --no-cr | --no-c)
477     no_create=yes ;;
478
479   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
481     no_recursion=yes ;;
482
483   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
484   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
485   | --oldin | --oldi | --old | --ol | --o)
486     ac_prev=oldincludedir ;;
487   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
488   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
489   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
490     oldincludedir=$ac_optarg ;;
491
492   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493     ac_prev=prefix ;;
494   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
495     prefix=$ac_optarg ;;
496
497   -program-prefix | --program-prefix | --program-prefi | --program-pref \
498   | --program-pre | --program-pr | --program-p)
499     ac_prev=program_prefix ;;
500   -program-prefix=* | --program-prefix=* | --program-prefi=* \
501   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
502     program_prefix=$ac_optarg ;;
503
504   -program-suffix | --program-suffix | --program-suffi | --program-suff \
505   | --program-suf | --program-su | --program-s)
506     ac_prev=program_suffix ;;
507   -program-suffix=* | --program-suffix=* | --program-suffi=* \
508   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
509     program_suffix=$ac_optarg ;;
510
511   -program-transform-name | --program-transform-name \
512   | --program-transform-nam | --program-transform-na \
513   | --program-transform-n | --program-transform- \
514   | --program-transform | --program-transfor \
515   | --program-transfo | --program-transf \
516   | --program-trans | --program-tran \
517   | --progr-tra | --program-tr | --program-t)
518     ac_prev=program_transform_name ;;
519   -program-transform-name=* | --program-transform-name=* \
520   | --program-transform-nam=* | --program-transform-na=* \
521   | --program-transform-n=* | --program-transform-=* \
522   | --program-transform=* | --program-transfor=* \
523   | --program-transfo=* | --program-transf=* \
524   | --program-trans=* | --program-tran=* \
525   | --progr-tra=* | --program-tr=* | --program-t=*)
526     program_transform_name=$ac_optarg ;;
527
528   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
529   | -silent | --silent | --silen | --sile | --sil)
530     silent=yes ;;
531
532   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533     ac_prev=sbindir ;;
534   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535   | --sbi=* | --sb=*)
536     sbindir=$ac_optarg ;;
537
538   -sharedstatedir | --sharedstatedir | --sharedstatedi \
539   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
540   | --sharedst | --shareds | --shared | --share | --shar \
541   | --sha | --sh)
542     ac_prev=sharedstatedir ;;
543   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
544   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
545   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546   | --sha=* | --sh=*)
547     sharedstatedir=$ac_optarg ;;
548
549   -site | --site | --sit)
550     ac_prev=site ;;
551   -site=* | --site=* | --sit=*)
552     site=$ac_optarg ;;
553
554   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555     ac_prev=srcdir ;;
556   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
557     srcdir=$ac_optarg ;;
558
559   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
560   | --syscon | --sysco | --sysc | --sys | --sy)
561     ac_prev=sysconfdir ;;
562   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
563   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
564     sysconfdir=$ac_optarg ;;
565
566   -target | --target | --targe | --targ | --tar | --ta | --t)
567     ac_prev=target_alias ;;
568   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
569     target_alias=$ac_optarg ;;
570
571   -v | -verbose | --verbose | --verbos | --verbo | --verb)
572     verbose=yes ;;
573
574   -version | --version | --versio | --versi | --vers | -V)
575     ac_init_version=: ;;
576
577   -with-* | --with-*)
578     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
579     # Reject names that are not valid shell variable names.
580     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
581       { echo "$as_me: error: invalid package name: $ac_package" >&2
582    { (exit 1); exit 1; }; }
583     ac_package=`echo $ac_package| sed 's/-/_/g'`
584     case $ac_option in
585       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
586       *) ac_optarg=yes ;;
587     esac
588     eval "with_$ac_package='$ac_optarg'" ;;
589
590   -without-* | --without-*)
591     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package | sed 's/-/_/g'`
597     eval "with_$ac_package=no" ;;
598
599   --x)
600     # Obsolete; use --with-x.
601     with_x=yes ;;
602
603   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
604   | --x-incl | --x-inc | --x-in | --x-i)
605     ac_prev=x_includes ;;
606   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
607   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
608     x_includes=$ac_optarg ;;
609
610   -x-libraries | --x-libraries | --x-librarie | --x-librari \
611   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
612     ac_prev=x_libraries ;;
613   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
614   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
615     x_libraries=$ac_optarg ;;
616
617   -*) { echo "$as_me: error: unrecognized option: $ac_option
618 Try \`$0 --help' for more information." >&2
619    { (exit 1); exit 1; }; }
620     ;;
621
622   *=*)
623     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
624     # Reject names that are not valid shell variable names.
625     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
626       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
627    { (exit 1); exit 1; }; }
628     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
629     eval "$ac_envvar='$ac_optarg'"
630     export $ac_envvar ;;
631
632   *)
633     # FIXME: should be removed in autoconf 3.0.
634     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
635     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
636       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
637     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
638     ;;
639
640   esac
641 done
642
643 if test -n "$ac_prev"; then
644   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
645   { echo "$as_me: error: missing argument to $ac_option" >&2
646    { (exit 1); exit 1; }; }
647 fi
648
649 # Be sure to have absolute paths.
650 for ac_var in exec_prefix prefix
651 do
652   eval ac_val=$`echo $ac_var`
653   case $ac_val in
654     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
655     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
656    { (exit 1); exit 1; }; };;
657   esac
658 done
659
660 # Be sure to have absolute paths.
661 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
662               localstatedir libdir includedir oldincludedir infodir mandir
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* ) ;;
667     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # There might be people who depend on the old broken behavior: `$host'
673 # used to hold the argument of --host etc.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: should be removed in autoconf 3.0.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694 # Find the source files, if location was not specified.
695 if test -z "$srcdir"; then
696   ac_srcdir_defaulted=yes
697   # Try the directory containing this script, then its parent.
698   ac_prog=$0
699   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
700   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
701   srcdir=$ac_confdir
702   if test ! -r $srcdir/$ac_unique_file; then
703     srcdir=..
704   fi
705 else
706   ac_srcdir_defaulted=no
707 fi
708 if test ! -r $srcdir/$ac_unique_file; then
709   if test "$ac_srcdir_defaulted" = yes; then
710     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
711    { (exit 1); exit 1; }; }
712   else
713     { echo "$as_me: error: cannot find sources in $srcdir" >&2
714    { (exit 1); exit 1; }; }
715   fi
716 fi
717 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
718 ac_env_build_alias_set=${build_alias+set}
719 ac_env_build_alias_value=$build_alias
720 ac_cv_env_build_alias_set=${build_alias+set}
721 ac_cv_env_build_alias_value=$build_alias
722 ac_env_host_alias_set=${host_alias+set}
723 ac_env_host_alias_value=$host_alias
724 ac_cv_env_host_alias_set=${host_alias+set}
725 ac_cv_env_host_alias_value=$host_alias
726 ac_env_target_alias_set=${target_alias+set}
727 ac_env_target_alias_value=$target_alias
728 ac_cv_env_target_alias_set=${target_alias+set}
729 ac_cv_env_target_alias_value=$target_alias
730 ac_env_CC_set=${CC+set}
731 ac_env_CC_value=$CC
732 ac_cv_env_CC_set=${CC+set}
733 ac_cv_env_CC_value=$CC
734 ac_env_CFLAGS_set=${CFLAGS+set}
735 ac_env_CFLAGS_value=$CFLAGS
736 ac_cv_env_CFLAGS_set=${CFLAGS+set}
737 ac_cv_env_CFLAGS_value=$CFLAGS
738 ac_env_LDFLAGS_set=${LDFLAGS+set}
739 ac_env_LDFLAGS_value=$LDFLAGS
740 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
741 ac_cv_env_LDFLAGS_value=$LDFLAGS
742 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
743 ac_env_CPPFLAGS_value=$CPPFLAGS
744 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
745 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
746 ac_env_CPP_set=${CPP+set}
747 ac_env_CPP_value=$CPP
748 ac_cv_env_CPP_set=${CPP+set}
749 ac_cv_env_CPP_value=$CPP
750
751 #
752 # Report the --help message.
753 #
754 if test "$ac_init_help" = "long"; then
755   # Omit some internal or obsolete options to make the list less imposing.
756   # This message is too long to be a string in the A/UX 3.1 sh.
757   cat <<EOF
758 \`configure' configures this package to adapt to many kinds of systems.
759
760 Usage: $0 [OPTION]... [VAR=VALUE]...
761
762 To assign environment variables (e.g., CC, CFLAGS...), specify them as
763 VAR=VALUE.  See below for descriptions of some of the useful variables.
764
765 Defaults for the options are specified in brackets.
766
767 Configuration:
768   -h, --help              display this help and exit
769       --help=short        display options specific to this package
770       --help=recursive    display the short help of all the included packages
771   -V, --version           display version information and exit
772   -q, --quiet, --silent   do not print \`checking...' messages
773       --cache-file=FILE   cache test results in FILE [disabled]
774   -C, --config-cache      alias for \`--cache-file=config.cache'
775   -n, --no-create         do not create output files
776       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
777
778 EOF
779
780   cat <<EOF
781 Installation directories:
782   --prefix=PREFIX         install architecture-independent files in PREFIX
783                           [$ac_default_prefix]
784   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
785                           [PREFIX]
786
787 By default, \`make install' will install all the files in
788 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
789 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
790 for instance \`--prefix=\$HOME'.
791
792 For better control, use the options below.
793
794 Fine tuning of the installation directories:
795   --bindir=DIR           user executables [EPREFIX/bin]
796   --sbindir=DIR          system admin executables [EPREFIX/sbin]
797   --libexecdir=DIR       program executables [EPREFIX/libexec]
798   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
799   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
800   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
801   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
802   --libdir=DIR           object code libraries [EPREFIX/lib]
803   --includedir=DIR       C header files [PREFIX/include]
804   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
805   --infodir=DIR          info documentation [PREFIX/info]
806   --mandir=DIR           man documentation [PREFIX/man]
807 EOF
808
809   cat <<\EOF
810
811 Program names:
812   --program-prefix=PREFIX            prepend PREFIX to installed program names
813   --program-suffix=SUFFIX            append SUFFIX to installed program names
814   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
815
816 System types:
817   --build=BUILD     configure for building on BUILD [guessed]
818   --host=HOST       build programs to run on HOST [BUILD]
819 EOF
820 fi
821
822 if test -n "$ac_init_help"; then
823
824   cat <<\EOF
825
826 Optional Features:
827   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
828   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
829   --disable-dependency-tracking Speeds up one-time builds
830   --enable-dependency-tracking  Do not reject slow dependency extractors
831   --enable-shared=PKGS  build shared libraries default=yes
832   --enable-static=PKGS  build static libraries default=yes
833   --enable-fast-install=PKGS  optimize for fast installation default=yes
834   --disable-libtool-lock  avoid locking (might break parallel builds)
835
836 Optional Packages:
837   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
838   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
839   --with-gnu-ld           assume the C compiler uses GNU ld default=no
840   --with-pic              try to use only PIC/non-PIC objects default=use both
841
842 Some influential environment variables:
843   CC          C compiler command
844   CFLAGS      C compiler flags
845   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
846               nonstandard directory <lib dir>
847   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
848               headers in a nonstandard directory <include dir>
849   CPP         C preprocessor
850
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
853
854 EOF
855 fi
856
857 if test "$ac_init_help" = "recursive"; then
858   # If there are subdirs, report their specific --help.
859   ac_popdir=`pwd`
860   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
861     cd $ac_subdir
862     # A "../" for each directory in /$ac_subdir.
863     ac_dots=`echo $ac_subdir |
864              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
865
866     case $srcdir in
867     .) # No --srcdir option.  We are building in place.
868       ac_sub_srcdir=$srcdir ;;
869     [\\/]* | ?:[\\/]* ) # Absolute path.
870       ac_sub_srcdir=$srcdir/$ac_subdir ;;
871     *) # Relative path.
872       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
873     esac
874
875     # Check for guested configure; otherwise get Cygnus style configure.
876     if test -f $ac_sub_srcdir/configure.gnu; then
877       echo
878       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
879     elif test -f $ac_sub_srcdir/configure; then
880       echo
881       $SHELL $ac_sub_srcdir/configure  --help=recursive
882     elif test -f $ac_sub_srcdir/configure.ac ||
883            test -f $ac_sub_srcdir/configure.in; then
884       echo
885       $ac_configure --help
886     else
887       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
888     fi
889     cd $ac_popdir
890   done
891 fi
892
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
895   cat <<\EOF
896
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
901 EOF
902   exit 0
903 fi
904 exec 5>config.log
905 cat >&5 <<EOF
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
908
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.  Invocation command line was
911
912   $ $0 $@
913
914 EOF
915 {
916 cat <<_ASUNAME
917 ## ---------- ##
918 ## Platform.  ##
919 ## ---------- ##
920
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
926
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
929
930 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
931 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
934 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
935 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
936 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
937
938 PATH = $PATH
939
940 _ASUNAME
941 } >&5
942
943 cat >&5 <<EOF
944 ## ------------ ##
945 ## Core tests.  ##
946 ## ------------ ##
947
948 EOF
949
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
953 ac_configure_args=
954 ac_sep=
955 for ac_arg
956 do
957   case $ac_arg in
958   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959   | --no-cr | --no-c) ;;
960   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
965     ac_sep=" " ;;
966   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
967      ac_sep=" " ;;
968   esac
969   # Get rid of the leading space.
970 done
971
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log.  We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
975 trap 'exit_status=$?
976   # Save into config.log some information that might help in debugging.
977   echo >&5
978   echo "## ----------------- ##" >&5
979   echo "## Cache variables.  ##" >&5
980   echo "## ----------------- ##" >&5
981   echo >&5
982   # The following way of writing the cache mishandles newlines in values,
983 {
984   (set) 2>&1 |
985     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
986     *ac_space=\ *)
987       sed -n \
988         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
990       ;;
991     *)
992       sed -n \
993         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
994       ;;
995     esac;
996 } >&5
997   sed "/^$/d" confdefs.h >conftest.log
998   if test -s conftest.log; then
999     echo >&5
1000     echo "## ------------ ##" >&5
1001     echo "## confdefs.h.  ##" >&5
1002     echo "## ------------ ##" >&5
1003     echo >&5
1004     cat conftest.log >&5
1005   fi
1006   (echo; echo) >&5
1007   test "$ac_signal" != 0 &&
1008     echo "$as_me: caught signal $ac_signal" >&5
1009   echo "$as_me: exit $exit_status" >&5
1010   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1011     exit $exit_status
1012      ' 0
1013 for ac_signal in 1 2 13 15; do
1014   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1015 done
1016 ac_signal=0
1017
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1021 echo >confdefs.h
1022
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026   if test "x$prefix" != xNONE; then
1027     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1028   else
1029     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1030   fi
1031 fi
1032 for ac_site_file in $CONFIG_SITE; do
1033   if test -r "$ac_site_file"; then
1034     { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036     cat "$ac_site_file" >&5
1037     . "$ac_site_file"
1038   fi
1039 done
1040
1041 if test -r "$cache_file"; then
1042   # Some versions of bash will fail to source /dev/null (special
1043   # files actually), so we avoid doing that.
1044   if test -f "$cache_file"; then
1045     { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1047     case $cache_file in
1048       [\\/]* | ?:[\\/]* ) . $cache_file;;
1049       *)                      . ./$cache_file;;
1050     esac
1051   fi
1052 else
1053   { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1055   >$cache_file
1056 fi
1057
1058 # Check that the precious variables saved in the cache have kept the same
1059 # value.
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064   eval ac_new_set=\$ac_env_${ac_var}_set
1065   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066   eval ac_new_val="\$ac_env_${ac_var}_value"
1067   case $ac_old_set,$ac_new_set in
1068     set,)
1069       { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071       ac_cache_corrupted=: ;;
1072     ,set)
1073       { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075       ac_cache_corrupted=: ;;
1076     ,);;
1077     *)
1078       if test "x$ac_old_val" != "x$ac_new_val"; then
1079         { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081         { echo "$as_me:1081:   former value:  $ac_old_val" >&5
1082 echo "$as_me:   former value:  $ac_old_val" >&2;}
1083         { echo "$as_me:1083:   current value: $ac_new_val" >&5
1084 echo "$as_me:   current value: $ac_new_val" >&2;}
1085         ac_cache_corrupted=:
1086       fi;;
1087   esac
1088   # Pass precious variables to config.status.  It doesn't matter if
1089   # we pass some twice (in addition to the command line arguments).
1090   if test "$ac_new_set" = set; then
1091     case $ac_new_val in
1092     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094       ac_configure_args="$ac_configure_args '$ac_arg'"
1095       ;;
1096     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1097        ;;
1098     esac
1099   fi
1100 done
1101 if $ac_cache_corrupted; then
1102   { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104   { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106    { (exit 1); exit 1; }; }
1107 fi
1108
1109 ac_ext=c
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114
1115 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1116   *c*,-n*) ECHO_N= ECHO_C='
1117 ' ECHO_T='      ' ;;
1118   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1119   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1120 esac
1121 echo "#! $SHELL" >conftest.sh
1122 echo  "exit 0"   >>conftest.sh
1123 chmod +x conftest.sh
1124 if { (echo "$as_me:1124: PATH=\".;.\"; conftest.sh") >&5
1125   (PATH=".;."; conftest.sh) 2>&5
1126   ac_status=$?
1127   echo "$as_me:1127: \$? = $ac_status" >&5
1128   (exit $ac_status); }; then
1129   ac_path_separator=';'
1130 else
1131   ac_path_separator=:
1132 fi
1133 PATH_SEPARATOR="$ac_path_separator"
1134 rm -f conftest.sh
1135
1136 ac_aux_dir=
1137 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1138   if test -f $ac_dir/install-sh; then
1139     ac_aux_dir=$ac_dir
1140     ac_install_sh="$ac_aux_dir/install-sh -c"
1141     break
1142   elif test -f $ac_dir/install.sh; then
1143     ac_aux_dir=$ac_dir
1144     ac_install_sh="$ac_aux_dir/install.sh -c"
1145     break
1146   elif test -f $ac_dir/shtool; then
1147     ac_aux_dir=$ac_dir
1148     ac_install_sh="$ac_aux_dir/shtool install -c"
1149     break
1150   fi
1151 done
1152 if test -z "$ac_aux_dir"; then
1153   { { echo "$as_me:1153: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1154 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1155    { (exit 1); exit 1; }; }
1156 fi
1157 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1158 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1159 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1160
1161 # Find a good install program.  We prefer a C program (faster),
1162 # so one script is as good as another.  But avoid the broken or
1163 # incompatible versions:
1164 # SysV /etc/install, /usr/sbin/install
1165 # SunOS /usr/etc/install
1166 # IRIX /sbin/install
1167 # AIX /bin/install
1168 # AmigaOS /C/install, which installs bootblocks on floppy discs
1169 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1170 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1171 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1172 # ./install, which can be erroneously created by make from ./install.sh.
1173 echo "$as_me:1173: checking for a BSD compatible install" >&5
1174 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1175 if test -z "$INSTALL"; then
1176 if test "${ac_cv_path_install+set}" = set; then
1177   echo $ECHO_N "(cached) $ECHO_C" >&6
1178 else
1179     ac_save_IFS=$IFS; IFS=$ac_path_separator
1180   for ac_dir in $PATH; do
1181     IFS=$ac_save_IFS
1182     # Account for people who put trailing slashes in PATH elements.
1183     case $ac_dir/ in
1184     / | ./ | .// | /cC/* \
1185     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1186     | /usr/ucb/* ) ;;
1187     *)
1188       # OSF1 and SCO ODT 3.0 have their own names for install.
1189       # Don't use installbsd from OSF since it installs stuff as root
1190       # by default.
1191       for ac_prog in ginstall scoinst install; do
1192         if $as_executable_p "$ac_dir/$ac_prog"; then
1193           if test $ac_prog = install &&
1194             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1195             # AIX install.  It has an incompatible calling convention.
1196             :
1197           elif test $ac_prog = install &&
1198             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1199             # program-specific install script used by HP pwplus--don't use.
1200             :
1201           else
1202             ac_cv_path_install="$ac_dir/$ac_prog -c"
1203             break 2
1204           fi
1205         fi
1206       done
1207       ;;
1208     esac
1209   done
1210
1211 fi
1212   if test "${ac_cv_path_install+set}" = set; then
1213     INSTALL=$ac_cv_path_install
1214   else
1215     # As a last resort, use the slow shell script.  We don't cache a
1216     # path for INSTALL within a source directory, because that will
1217     # break other packages using the cache if that directory is
1218     # removed, or if the path is relative.
1219     INSTALL=$ac_install_sh
1220   fi
1221 fi
1222 echo "$as_me:1222: result: $INSTALL" >&5
1223 echo "${ECHO_T}$INSTALL" >&6
1224
1225 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1226 # It thinks the first close brace ends the variable substitution.
1227 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1228
1229 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1230
1231 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1232
1233 echo "$as_me:1233: checking whether build environment is sane" >&5
1234 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1235 # Just in case
1236 sleep 1
1237 echo timestamp > conftest.file
1238 # Do `set' in a subshell so we don't clobber the current shell's
1239 # arguments.  Must try -L first in case configure is actually a
1240 # symlink; some systems play weird games with the mod time of symlinks
1241 # (eg FreeBSD returns the mod time of the symlink's containing
1242 # directory).
1243 if (
1244    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1245    if test "$*" = "X"; then
1246       # -L didn't work.
1247       set X `ls -t $srcdir/configure conftest.file`
1248    fi
1249    rm -f conftest.file
1250    if test "$*" != "X $srcdir/configure conftest.file" \
1251       && test "$*" != "X conftest.file $srcdir/configure"; then
1252
1253       # If neither matched, then we have a broken ls.  This can happen
1254       # if, for instance, CONFIG_SHELL is bash and it inherits a
1255       # broken ls alias from the environment.  This has actually
1256       # happened.  Such a system could not be considered "sane".
1257       { { echo "$as_me:1257: error: ls -t appears to fail.  Make sure there is not a broken
1258 alias in your environment" >&5
1259 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1260 alias in your environment" >&2;}
1261    { (exit 1); exit 1; }; }
1262    fi
1263
1264    test "$2" = conftest.file
1265    )
1266 then
1267    # Ok.
1268    :
1269 else
1270    { { echo "$as_me:1270: error: newly created file is older than distributed files!
1271 Check your system clock" >&5
1272 echo "$as_me: error: newly created file is older than distributed files!
1273 Check your system clock" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276 echo "$as_me:1276: result: yes" >&5
1277 echo "${ECHO_T}yes" >&6
1278 test "$program_prefix" != NONE &&
1279   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1280 # Use a double $ so make ignores it.
1281 test "$program_suffix" != NONE &&
1282   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1283 # Double any \ or $.  echo might interpret backslashes.
1284 # By default was `s,x,x', remove it if useless.
1285 cat <<\_ACEOF >conftest.sed
1286 s/[\\$]/&&/g;s/;s,x,x,$//
1287 _ACEOF
1288 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1289 rm conftest.sed
1290
1291 test x"${MISSING+set}" = xset ||
1292   MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1293 # Use eval to expand $SHELL
1294 if eval "$MISSING --run true"; then
1295   am_missing_run="$MISSING --run "
1296 else
1297   am_missing_run=
1298   am_backtick='`'
1299   { echo "$as_me:1299: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1300 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1301 fi
1302
1303 # expand $ac_aux_dir to an absolute path
1304 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1305
1306 for ac_prog in mawk gawk nawk awk
1307 do
1308   # Extract the first word of "$ac_prog", so it can be a program name with args.
1309 set dummy $ac_prog; ac_word=$2
1310 echo "$as_me:1310: checking for $ac_word" >&5
1311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1312 if test "${ac_cv_prog_AWK+set}" = set; then
1313   echo $ECHO_N "(cached) $ECHO_C" >&6
1314 else
1315   if test -n "$AWK"; then
1316   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1317 else
1318   ac_save_IFS=$IFS; IFS=$ac_path_separator
1319 ac_dummy="$PATH"
1320 for ac_dir in $ac_dummy; do
1321   IFS=$ac_save_IFS
1322   test -z "$ac_dir" && ac_dir=.
1323   $as_executable_p "$ac_dir/$ac_word" || continue
1324 ac_cv_prog_AWK="$ac_prog"
1325 echo "$as_me:1325: found $ac_dir/$ac_word" >&5
1326 break
1327 done
1328
1329 fi
1330 fi
1331 AWK=$ac_cv_prog_AWK
1332 if test -n "$AWK"; then
1333   echo "$as_me:1333: result: $AWK" >&5
1334 echo "${ECHO_T}$AWK" >&6
1335 else
1336   echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1338 fi
1339
1340   test -n "$AWK" && break
1341 done
1342
1343 echo "$as_me:1343: checking whether ${MAKE-make} sets \${MAKE}" >&5
1344 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1345 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1346 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1347   echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349   cat >conftest.make <<\EOF
1350 all:
1351         @echo 'ac_maketemp="${MAKE}"'
1352 EOF
1353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1354 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1355 if test -n "$ac_maketemp"; then
1356   eval ac_cv_prog_make_${ac_make}_set=yes
1357 else
1358   eval ac_cv_prog_make_${ac_make}_set=no
1359 fi
1360 rm -f conftest.make
1361 fi
1362 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1363   echo "$as_me:1363: result: yes" >&5
1364 echo "${ECHO_T}yes" >&6
1365   SET_MAKE=
1366 else
1367   echo "$as_me:1367: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1369   SET_MAKE="MAKE=${MAKE-make}"
1370 fi
1371
1372 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1373 if test "${enable_dependency_tracking+set}" = set; then
1374   enableval="$enable_dependency_tracking"
1375
1376 fi;
1377 if test "x$enable_dependency_tracking" != xno; then
1378   am_depcomp="$ac_aux_dir/depcomp"
1379   AMDEPBACKSLASH='\'
1380 fi
1381
1382 if test "x$enable_dependency_tracking" != xno; then
1383   AMDEP_TRUE=
1384   AMDEP_FALSE='#'
1385 else
1386   AMDEP_TRUE='#'
1387   AMDEP_FALSE=
1388 fi
1389
1390 rm -f .deps 2>/dev/null
1391 mkdir .deps 2>/dev/null
1392 if test -d .deps; then
1393   DEPDIR=.deps
1394 else
1395   # MS-DOS does not allow filenames that begin with a dot.
1396   DEPDIR=_deps
1397 fi
1398 rmdir .deps 2>/dev/null
1399
1400 # test to see if srcdir already configured
1401 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1402    test -f $srcdir/config.status; then
1403   { { echo "$as_me:1403: error: source directory already configured; run \"make distclean\" there first" >&5
1404 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1405    { (exit 1); exit 1; }; }
1406 fi
1407
1408 # Define the identity of the package.
1409 PACKAGE=fcgi
1410 VERSION=2.2.1
1411
1412 cat >>confdefs.h <<EOF
1413 #define PACKAGE "$PACKAGE"
1414 EOF
1415
1416 cat >>confdefs.h <<EOF
1417 #define VERSION "$VERSION"
1418 EOF
1419
1420 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1421 # the ones we care about.
1422
1423 # Autoconf 2.50 always computes EXEEXT.  However we need to be
1424 # compatible with 2.13, for now.  So we always define EXEEXT, but we
1425 # don't compute it.
1426
1427 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1428 # requests that it be used.  This is a bit dumb.
1429 : ${OBJEXT=o}
1430
1431 # Some tools Automake needs.
1432
1433 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1434
1435 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1436
1437 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1438
1439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1440
1441 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1442
1443 AMTAR=${AMTAR-"${am_missing_run}tar"}
1444
1445 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1446
1447 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1448
1449 # We need awk for the "check" target.  The system "awk" is bad on
1450 # some platforms.
1451
1452                                                     ac_config_headers="$ac_config_headers include/fcgi_config.h"
1453
1454 ac_ext=c
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459 if test -n "$ac_tool_prefix"; then
1460   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1462 echo "$as_me:1462: checking for $ac_word" >&5
1463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464 if test "${ac_cv_prog_CC+set}" = set; then
1465   echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467   if test -n "$CC"; then
1468   ac_cv_prog_CC="$CC" # Let the user override the test.
1469 else
1470   ac_save_IFS=$IFS; IFS=$ac_path_separator
1471 ac_dummy="$PATH"
1472 for ac_dir in $ac_dummy; do
1473   IFS=$ac_save_IFS
1474   test -z "$ac_dir" && ac_dir=.
1475   $as_executable_p "$ac_dir/$ac_word" || continue
1476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1477 echo "$as_me:1477: found $ac_dir/$ac_word" >&5
1478 break
1479 done
1480
1481 fi
1482 fi
1483 CC=$ac_cv_prog_CC
1484 if test -n "$CC"; then
1485   echo "$as_me:1485: result: $CC" >&5
1486 echo "${ECHO_T}$CC" >&6
1487 else
1488   echo "$as_me:1488: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1490 fi
1491
1492 fi
1493 if test -z "$ac_cv_prog_CC"; then
1494   ac_ct_CC=$CC
1495   # Extract the first word of "gcc", so it can be a program name with args.
1496 set dummy gcc; ac_word=$2
1497 echo "$as_me:1497: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1500   echo $ECHO_N "(cached) $ECHO_C" >&6
1501 else
1502   if test -n "$ac_ct_CC"; then
1503   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1504 else
1505   ac_save_IFS=$IFS; IFS=$ac_path_separator
1506 ac_dummy="$PATH"
1507 for ac_dir in $ac_dummy; do
1508   IFS=$ac_save_IFS
1509   test -z "$ac_dir" && ac_dir=.
1510   $as_executable_p "$ac_dir/$ac_word" || continue
1511 ac_cv_prog_ac_ct_CC="gcc"
1512 echo "$as_me:1512: found $ac_dir/$ac_word" >&5
1513 break
1514 done
1515
1516 fi
1517 fi
1518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520   echo "$as_me:1520: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1522 else
1523   echo "$as_me:1523: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527   CC=$ac_ct_CC
1528 else
1529   CC="$ac_cv_prog_CC"
1530 fi
1531
1532 if test -z "$CC"; then
1533   if test -n "$ac_tool_prefix"; then
1534   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1535 set dummy ${ac_tool_prefix}cc; ac_word=$2
1536 echo "$as_me:1536: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539   echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541   if test -n "$CC"; then
1542   ac_cv_prog_CC="$CC" # Let the user override the test.
1543 else
1544   ac_save_IFS=$IFS; IFS=$ac_path_separator
1545 ac_dummy="$PATH"
1546 for ac_dir in $ac_dummy; do
1547   IFS=$ac_save_IFS
1548   test -z "$ac_dir" && ac_dir=.
1549   $as_executable_p "$ac_dir/$ac_word" || continue
1550 ac_cv_prog_CC="${ac_tool_prefix}cc"
1551 echo "$as_me:1551: found $ac_dir/$ac_word" >&5
1552 break
1553 done
1554
1555 fi
1556 fi
1557 CC=$ac_cv_prog_CC
1558 if test -n "$CC"; then
1559   echo "$as_me:1559: result: $CC" >&5
1560 echo "${ECHO_T}$CC" >&6
1561 else
1562   echo "$as_me:1562: result: no" >&5
1563 echo "${ECHO_T}no" >&6
1564 fi
1565
1566 fi
1567 if test -z "$ac_cv_prog_CC"; then
1568   ac_ct_CC=$CC
1569   # Extract the first word of "cc", so it can be a program name with args.
1570 set dummy cc; ac_word=$2
1571 echo "$as_me:1571: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574   echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576   if test -n "$ac_ct_CC"; then
1577   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578 else
1579   ac_save_IFS=$IFS; IFS=$ac_path_separator
1580 ac_dummy="$PATH"
1581 for ac_dir in $ac_dummy; do
1582   IFS=$ac_save_IFS
1583   test -z "$ac_dir" && ac_dir=.
1584   $as_executable_p "$ac_dir/$ac_word" || continue
1585 ac_cv_prog_ac_ct_CC="cc"
1586 echo "$as_me:1586: found $ac_dir/$ac_word" >&5
1587 break
1588 done
1589
1590 fi
1591 fi
1592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1593 if test -n "$ac_ct_CC"; then
1594   echo "$as_me:1594: result: $ac_ct_CC" >&5
1595 echo "${ECHO_T}$ac_ct_CC" >&6
1596 else
1597   echo "$as_me:1597: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1599 fi
1600
1601   CC=$ac_ct_CC
1602 else
1603   CC="$ac_cv_prog_CC"
1604 fi
1605
1606 fi
1607 if test -z "$CC"; then
1608   # Extract the first word of "cc", so it can be a program name with args.
1609 set dummy cc; ac_word=$2
1610 echo "$as_me:1610: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   if test -n "$CC"; then
1616   ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618   ac_prog_rejected=no
1619   ac_save_IFS=$IFS; IFS=$ac_path_separator
1620 ac_dummy="$PATH"
1621 for ac_dir in $ac_dummy; do
1622   IFS=$ac_save_IFS
1623   test -z "$ac_dir" && ac_dir=.
1624   $as_executable_p "$ac_dir/$ac_word" || continue
1625 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1626   ac_prog_rejected=yes
1627   continue
1628 fi
1629 ac_cv_prog_CC="cc"
1630 echo "$as_me:1630: found $ac_dir/$ac_word" >&5
1631 break
1632 done
1633
1634 if test $ac_prog_rejected = yes; then
1635   # We found a bogon in the path, so make sure we never use it.
1636   set dummy $ac_cv_prog_CC
1637   shift
1638   if test $# != 0; then
1639     # We chose a different compiler from the bogus one.
1640     # However, it has the same basename, so the bogon will be chosen
1641     # first if we set CC to just the basename; use the full file name.
1642     shift
1643     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1644     shift
1645     ac_cv_prog_CC="$@"
1646   fi
1647 fi
1648 fi
1649 fi
1650 CC=$ac_cv_prog_CC
1651 if test -n "$CC"; then
1652   echo "$as_me:1652: result: $CC" >&5
1653 echo "${ECHO_T}$CC" >&6
1654 else
1655   echo "$as_me:1655: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1657 fi
1658
1659 fi
1660 if test -z "$CC"; then
1661   if test -n "$ac_tool_prefix"; then
1662   for ac_prog in cl
1663   do
1664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1666 echo "$as_me:1666: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   if test -n "$CC"; then
1672   ac_cv_prog_CC="$CC" # Let the user override the test.
1673 else
1674   ac_save_IFS=$IFS; IFS=$ac_path_separator
1675 ac_dummy="$PATH"
1676 for ac_dir in $ac_dummy; do
1677   IFS=$ac_save_IFS
1678   test -z "$ac_dir" && ac_dir=.
1679   $as_executable_p "$ac_dir/$ac_word" || continue
1680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1681 echo "$as_me:1681: found $ac_dir/$ac_word" >&5
1682 break
1683 done
1684
1685 fi
1686 fi
1687 CC=$ac_cv_prog_CC
1688 if test -n "$CC"; then
1689   echo "$as_me:1689: result: $CC" >&5
1690 echo "${ECHO_T}$CC" >&6
1691 else
1692   echo "$as_me:1692: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696     test -n "$CC" && break
1697   done
1698 fi
1699 if test -z "$CC"; then
1700   ac_ct_CC=$CC
1701   for ac_prog in cl
1702 do
1703   # Extract the first word of "$ac_prog", so it can be a program name with args.
1704 set dummy $ac_prog; ac_word=$2
1705 echo "$as_me:1705: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708   echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710   if test -n "$ac_ct_CC"; then
1711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 else
1713   ac_save_IFS=$IFS; IFS=$ac_path_separator
1714 ac_dummy="$PATH"
1715 for ac_dir in $ac_dummy; do
1716   IFS=$ac_save_IFS
1717   test -z "$ac_dir" && ac_dir=.
1718   $as_executable_p "$ac_dir/$ac_word" || continue
1719 ac_cv_prog_ac_ct_CC="$ac_prog"
1720 echo "$as_me:1720: found $ac_dir/$ac_word" >&5
1721 break
1722 done
1723
1724 fi
1725 fi
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728   echo "$as_me:1728: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731   echo "$as_me:1731: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735   test -n "$ac_ct_CC" && break
1736 done
1737
1738   CC=$ac_ct_CC
1739 fi
1740
1741 fi
1742
1743 test -z "$CC" && { { echo "$as_me:1743: error: no acceptable cc found in \$PATH" >&5
1744 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1745    { (exit 1); exit 1; }; }
1746
1747 # Provide some information about the compiler.
1748 echo "$as_me:1748:" \
1749      "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:1751: \"$ac_compiler --version </dev/null >&5\"") >&5
1752   (eval $ac_compiler --version </dev/null >&5) 2>&5
1753   ac_status=$?
1754   echo "$as_me:1754: \$? = $ac_status" >&5
1755   (exit $ac_status); }
1756 { (eval echo "$as_me:1756: \"$ac_compiler -v </dev/null >&5\"") >&5
1757   (eval $ac_compiler -v </dev/null >&5) 2>&5
1758   ac_status=$?
1759   echo "$as_me:1759: \$? = $ac_status" >&5
1760   (exit $ac_status); }
1761 { (eval echo "$as_me:1761: \"$ac_compiler -V </dev/null >&5\"") >&5
1762   (eval $ac_compiler -V </dev/null >&5) 2>&5
1763   ac_status=$?
1764   echo "$as_me:1764: \$? = $ac_status" >&5
1765   (exit $ac_status); }
1766
1767 cat >conftest.$ac_ext <<_ACEOF
1768 #line 1768 "configure"
1769 #include "confdefs.h"
1770
1771 int
1772 main ()
1773 {
1774
1775   ;
1776   return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:1784: checking for C compiler default output" >&5
1785 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:1787: \"$ac_link_default\"") >&5
1788   (eval $ac_link_default) 2>&5
1789   ac_status=$?
1790   echo "$as_me:1790: \$? = $ac_status" >&5
1791   (exit $ac_status); }; then
1792   # Find the output, starting from the most likely.  This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1795 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1796                 ls a.out conftest 2>/dev/null;
1797                 ls a.* conftest.* 2>/dev/null`; do
1798   case $ac_file in
1799     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1800     a.out ) # We found the default executable, but exeext='' is most
1801             # certainly right.
1802             break;;
1803     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1805           export ac_cv_exeext
1806           break;;
1807     * ) break;;
1808   esac
1809 done
1810 else
1811   echo "$as_me: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 { { echo "$as_me:1813: error: C compiler cannot create executables" >&5
1814 echo "$as_me: error: C compiler cannot create executables" >&2;}
1815    { (exit 77); exit 77; }; }
1816 fi
1817
1818 ac_exeext=$ac_cv_exeext
1819 echo "$as_me:1819: result: $ac_file" >&5
1820 echo "${ECHO_T}$ac_file" >&6
1821
1822 # Check the compiler produces executables we can run.  If not, either
1823 # the compiler is broken, or we cross compile.
1824 echo "$as_me:1824: checking whether the C compiler works" >&5
1825 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1826 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1827 # If not cross compiling, check that we can run a simple program.
1828 if test "$cross_compiling" != yes; then
1829   if { ac_try='./$ac_file'
1830   { (eval echo "$as_me:1830: \"$ac_try\"") >&5
1831   (eval $ac_try) 2>&5
1832   ac_status=$?
1833   echo "$as_me:1833: \$? = $ac_status" >&5
1834   (exit $ac_status); }; }; then
1835     cross_compiling=no
1836   else
1837     if test "$cross_compiling" = maybe; then
1838         cross_compiling=yes
1839     else
1840         { { echo "$as_me:1840: error: cannot run C compiled programs.
1841 If you meant to cross compile, use \`--host'." >&5
1842 echo "$as_me: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'." >&2;}
1844    { (exit 1); exit 1; }; }
1845     fi
1846   fi
1847 fi
1848 echo "$as_me:1848: result: yes" >&5
1849 echo "${ECHO_T}yes" >&6
1850
1851 rm -f a.out a.exe conftest$ac_cv_exeext
1852 ac_clean_files=$ac_clean_files_save
1853 # Check the compiler produces executables we can run.  If not, either
1854 # the compiler is broken, or we cross compile.
1855 echo "$as_me:1855: checking whether we are cross compiling" >&5
1856 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1857 echo "$as_me:1857: result: $cross_compiling" >&5
1858 echo "${ECHO_T}$cross_compiling" >&6
1859
1860 echo "$as_me:1860: checking for executable suffix" >&5
1861 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1862 if { (eval echo "$as_me:1862: \"$ac_link\"") >&5
1863   (eval $ac_link) 2>&5
1864   ac_status=$?
1865   echo "$as_me:1865: \$? = $ac_status" >&5
1866   (exit $ac_status); }; then
1867   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1868 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1869 # work properly (i.e., refer to `conftest.exe'), while it won't with
1870 # `rm'.
1871 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1872   case $ac_file in
1873     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1874     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875           export ac_cv_exeext
1876           break;;
1877     * ) break;;
1878   esac
1879 done
1880 else
1881   { { echo "$as_me:1881: error: cannot compute EXEEXT: cannot compile and link" >&5
1882 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886 rm -f conftest$ac_cv_exeext
1887 echo "$as_me:1887: result: $ac_cv_exeext" >&5
1888 echo "${ECHO_T}$ac_cv_exeext" >&6
1889
1890 rm -f conftest.$ac_ext
1891 EXEEXT=$ac_cv_exeext
1892 ac_exeext=$EXEEXT
1893 echo "$as_me:1893: checking for object suffix" >&5
1894 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1895 if test "${ac_cv_objext+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   cat >conftest.$ac_ext <<_ACEOF
1899 #line 1899 "configure"
1900 #include "confdefs.h"
1901
1902 int
1903 main ()
1904 {
1905
1906   ;
1907   return 0;
1908 }
1909 _ACEOF
1910 rm -f conftest.o conftest.obj
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912   (eval $ac_compile) 2>&5
1913   ac_status=$?
1914   echo "$as_me:1914: \$? = $ac_status" >&5
1915   (exit $ac_status); }; then
1916   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1917   case $ac_file in
1918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1919     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1920        break;;
1921   esac
1922 done
1923 else
1924   echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 { { echo "$as_me:1926: error: cannot compute OBJEXT: cannot compile" >&5
1927 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930
1931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1932 fi
1933 echo "$as_me:1933: result: $ac_cv_objext" >&5
1934 echo "${ECHO_T}$ac_cv_objext" >&6
1935 OBJEXT=$ac_cv_objext
1936 ac_objext=$OBJEXT
1937 echo "$as_me:1937: checking whether we are using the GNU C compiler" >&5
1938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1945
1946 int
1947 main ()
1948 {
1949 #ifndef __GNUC__
1950        choke me
1951 #endif
1952
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 rm -f conftest.$ac_objext
1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
1959   (eval $ac_compile) 2>&5
1960   ac_status=$?
1961   echo "$as_me:1961: \$? = $ac_status" >&5
1962   (exit $ac_status); } &&
1963          { ac_try='test -s conftest.$ac_objext'
1964   { (eval echo "$as_me:1964: \"$ac_try\"") >&5
1965   (eval $ac_try) 2>&5
1966   ac_status=$?
1967   echo "$as_me:1967: \$? = $ac_status" >&5
1968   (exit $ac_status); }; }; then
1969   ac_compiler_gnu=yes
1970 else
1971   echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 ac_compiler_gnu=no
1974 fi
1975 rm -f conftest.$ac_objext conftest.$ac_ext
1976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1977
1978 fi
1979 echo "$as_me:1979: result: $ac_cv_c_compiler_gnu" >&5
1980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1981 GCC=`test $ac_compiler_gnu = yes && echo yes`
1982 ac_test_CFLAGS=${CFLAGS+set}
1983 ac_save_CFLAGS=$CFLAGS
1984 CFLAGS="-g"
1985 echo "$as_me:1985: checking whether $CC accepts -g" >&5
1986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1987 if test "${ac_cv_prog_cc_g+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   cat >conftest.$ac_ext <<_ACEOF
1991 #line 1991 "configure"
1992 #include "confdefs.h"
1993
1994 int
1995 main ()
1996 {
1997
1998   ;
1999   return 0;
2000 }
2001 _ACEOF
2002 rm -f conftest.$ac_objext
2003 if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004   (eval $ac_compile) 2>&5
2005   ac_status=$?
2006   echo "$as_me:2006: \$? = $ac_status" >&5
2007   (exit $ac_status); } &&
2008          { ac_try='test -s conftest.$ac_objext'
2009   { (eval echo "$as_me:2009: \"$ac_try\"") >&5
2010   (eval $ac_try) 2>&5
2011   ac_status=$?
2012   echo "$as_me:2012: \$? = $ac_status" >&5
2013   (exit $ac_status); }; }; then
2014   ac_cv_prog_cc_g=yes
2015 else
2016   echo "$as_me: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2018 ac_cv_prog_cc_g=no
2019 fi
2020 rm -f conftest.$ac_objext conftest.$ac_ext
2021 fi
2022 echo "$as_me:2022: result: $ac_cv_prog_cc_g" >&5
2023 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2024 if test "$ac_test_CFLAGS" = set; then
2025   CFLAGS=$ac_save_CFLAGS
2026 elif test $ac_cv_prog_cc_g = yes; then
2027   if test "$GCC" = yes; then
2028     CFLAGS="-g -O2"
2029   else
2030     CFLAGS="-g"
2031   fi
2032 else
2033   if test "$GCC" = yes; then
2034     CFLAGS="-O2"
2035   else
2036     CFLAGS=
2037   fi
2038 fi
2039 # Some people use a C++ compiler to compile C.  Since we use `exit',
2040 # in C++ we need to declare it.  In case someone uses the same compiler
2041 # for both compiling C and C++ we need to have the C++ compiler decide
2042 # the declaration of exit, since it's the most demanding environment.
2043 cat >conftest.$ac_ext <<_ACEOF
2044 #ifndef __cplusplus
2045   choke me
2046 #endif
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:2049: \"$ac_compile\"") >&5
2050   (eval $ac_compile) 2>&5
2051   ac_status=$?
2052   echo "$as_me:2052: \$? = $ac_status" >&5
2053   (exit $ac_status); } &&
2054          { ac_try='test -s conftest.$ac_objext'
2055   { (eval echo "$as_me:2055: \"$ac_try\"") >&5
2056   (eval $ac_try) 2>&5
2057   ac_status=$?
2058   echo "$as_me:2058: \$? = $ac_status" >&5
2059   (exit $ac_status); }; }; then
2060   for ac_declaration in \
2061    ''\
2062    '#include <stdlib.h>' \
2063    'extern "C" void std::exit (int) throw (); using std::exit;' \
2064    'extern "C" void std::exit (int); using std::exit;' \
2065    'extern "C" void exit (int) throw ();' \
2066    'extern "C" void exit (int);' \
2067    'void exit (int);'
2068 do
2069   cat >conftest.$ac_ext <<_ACEOF
2070 #line 2070 "configure"
2071 #include "confdefs.h"
2072 #include <stdlib.h>
2073 $ac_declaration
2074 int
2075 main ()
2076 {
2077 exit (42);
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:2083: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>&5
2085   ac_status=$?
2086   echo "$as_me:2086: \$? = $ac_status" >&5
2087   (exit $ac_status); } &&
2088          { ac_try='test -s conftest.$ac_objext'
2089   { (eval echo "$as_me:2089: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:2092: \$? = $ac_status" >&5
2093   (exit $ac_status); }; }; then
2094   :
2095 else
2096   echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 continue
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101   cat >conftest.$ac_ext <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2104 $ac_declaration
2105 int
2106 main ()
2107 {
2108 exit (42);
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 rm -f conftest.$ac_objext
2114 if { (eval echo "$as_me:2114: \"$ac_compile\"") >&5
2115   (eval $ac_compile) 2>&5
2116   ac_status=$?
2117   echo "$as_me:2117: \$? = $ac_status" >&5
2118   (exit $ac_status); } &&
2119          { ac_try='test -s conftest.$ac_objext'
2120   { (eval echo "$as_me:2120: \"$ac_try\"") >&5
2121   (eval $ac_try) 2>&5
2122   ac_status=$?
2123   echo "$as_me:2123: \$? = $ac_status" >&5
2124   (exit $ac_status); }; }; then
2125   break
2126 else
2127   echo "$as_me: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2129 fi
2130 rm -f conftest.$ac_objext conftest.$ac_ext
2131 done
2132 rm -f conftest*
2133 if test -n "$ac_declaration"; then
2134   echo '#ifdef __cplusplus' >>confdefs.h
2135   echo $ac_declaration      >>confdefs.h
2136   echo '#endif'             >>confdefs.h
2137 fi
2138
2139 else
2140   echo "$as_me: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2142 fi
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2144 ac_ext=c
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149
2150 ac_config_commands="$ac_config_commands default-1"
2151
2152 am_make=${MAKE-make}
2153 cat > confinc << 'END'
2154 doit:
2155         @echo done
2156 END
2157 # If we don't find an include directive, just comment out the code.
2158 echo "$as_me:2158: checking for style of include used by $am_make" >&5
2159 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2160 am__include='#'
2161 am__quote=
2162 _am_result=none
2163 # First try GNU make style include.
2164 echo "include confinc" > confmf
2165 # We grep out `Entering directory' and `Leaving directory'
2166 # messages which can occur if `w' ends up in MAKEFLAGS.
2167 # In particular we don't look at `^make:' because GNU make might
2168 # be invoked under some other name (usually "gmake"), in which
2169 # case it prints its new name instead of `make'.
2170 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2171    am__include=include
2172    am__quote=
2173    _am_result=GNU
2174 fi
2175 # Now try BSD make style include.
2176 if test "$am__include" = "#"; then
2177    echo '.include "confinc"' > confmf
2178    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2179       am__include=.include
2180       am__quote='"'
2181       _am_result=BSD
2182    fi
2183 fi
2184
2185 echo "$as_me:2185: result: $_am_result" >&5
2186 echo "${ECHO_T}$_am_result" >&6
2187 rm -f confinc confmf
2188
2189 depcc="$CC"   am_compiler_list=
2190
2191 echo "$as_me:2191: checking dependency style of $depcc" >&5
2192 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2193 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2197   # We make a subdir and do the tests there.  Otherwise we can end up
2198   # making bogus files that we don't know about and never remove.  For
2199   # instance it was reported that on HP-UX the gcc test will end up
2200   # making a dummy file named `D' -- because `-MD' means `put the output
2201   # in D'.
2202   mkdir conftest.dir
2203   # Copy depcomp to subdir because otherwise we won't find it if we're
2204   # using a relative directory.
2205   cp "$am_depcomp" conftest.dir
2206   cd conftest.dir
2207
2208   am_cv_CC_dependencies_compiler_type=none
2209   if test "$am_compiler_list" = ""; then
2210      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2211   fi
2212   for depmode in $am_compiler_list; do
2213     # We need to recreate these files for each test, as the compiler may
2214     # overwrite some of them when testing with obscure command lines.
2215     # This happens at least with the AIX C compiler.
2216     echo '#include "conftest.h"' > conftest.c
2217     echo 'int i;' > conftest.h
2218     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2219
2220     case $depmode in
2221     nosideeffect)
2222       # after this tag, mechanisms are not by side-effect, so they'll
2223       # only be used when explicitly requested
2224       if test "x$enable_dependency_tracking" = xyes; then
2225         continue
2226       else
2227         break
2228       fi
2229       ;;
2230     none) break ;;
2231     esac
2232     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2233     # mode.  It turns out that the SunPro C++ compiler does not properly
2234     # handle `-M -o', and we need to detect this.
2235     if depmode=$depmode \
2236        source=conftest.c object=conftest.o \
2237        depfile=conftest.Po tmpdepfile=conftest.TPo \
2238        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2239        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2240        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2241       am_cv_CC_dependencies_compiler_type=$depmode
2242       break
2243     fi
2244   done
2245
2246   cd ..
2247   rm -rf conftest.dir
2248 else
2249   am_cv_CC_dependencies_compiler_type=none
2250 fi
2251
2252 fi
2253 echo "$as_me:2253: result: $am_cv_CC_dependencies_compiler_type" >&5
2254 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2255 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2256
2257 ac_ext=c
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262 echo "$as_me:2262: checking how to run the C preprocessor" >&5
2263 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2264 # On Suns, sometimes $CPP names a directory.
2265 if test -n "$CPP" && test -d "$CPP"; then
2266   CPP=
2267 fi
2268 if test -z "$CPP"; then
2269   if test "${ac_cv_prog_CPP+set}" = set; then
2270   echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272       # Double quotes because CPP needs to be expanded
2273     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2274     do
2275       ac_preproc_ok=false
2276 for ac_c_preproc_warn_flag in '' yes
2277 do
2278   # Use a header file that comes with gcc, so configuring glibc
2279   # with a fresh cross-compiler works.
2280   # On the NeXT, cc -E runs the code through the compiler's parser,
2281   # not just through cpp. "Syntax error" is here to catch this case.
2282   cat >conftest.$ac_ext <<_ACEOF
2283 #line 2283 "configure"
2284 #include "confdefs.h"
2285 #include <assert.h>
2286                      Syntax error
2287 _ACEOF
2288 if { (eval echo "$as_me:2288: \"$ac_cpp conftest.$ac_ext\"") >&5
2289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2290   ac_status=$?
2291   egrep -v '^ *\+' conftest.er1 >conftest.err
2292   rm -f conftest.er1
2293   cat conftest.err >&5
2294   echo "$as_me:2294: \$? = $ac_status" >&5
2295   (exit $ac_status); } >/dev/null; then
2296   if test -s conftest.err; then
2297     ac_cpp_err=$ac_c_preproc_warn_flag
2298   else
2299     ac_cpp_err=
2300   fi
2301 else
2302   ac_cpp_err=yes
2303 fi
2304 if test -z "$ac_cpp_err"; then
2305   :
2306 else
2307   echo "$as_me: failed program was:" >&5
2308   cat conftest.$ac_ext >&5
2309   # Broken: fails on valid input.
2310 continue
2311 fi
2312 rm -f conftest.err conftest.$ac_ext
2313
2314   # OK, works on sane cases.  Now check whether non-existent headers
2315   # can be detected and how.
2316   cat >conftest.$ac_ext <<_ACEOF
2317 #line 2317 "configure"
2318 #include "confdefs.h"
2319 #include <ac_nonexistent.h>
2320 _ACEOF
2321 if { (eval echo "$as_me:2321: \"$ac_cpp conftest.$ac_ext\"") >&5
2322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2323   ac_status=$?
2324   egrep -v '^ *\+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:2327: \$? = $ac_status" >&5
2328   (exit $ac_status); } >/dev/null; then
2329   if test -s conftest.err; then
2330     ac_cpp_err=$ac_c_preproc_warn_flag
2331   else
2332     ac_cpp_err=
2333   fi
2334 else
2335   ac_cpp_err=yes
2336 fi
2337 if test -z "$ac_cpp_err"; then
2338   # Broken: success on invalid input.
2339 continue
2340 else
2341   echo "$as_me: failed program was:" >&5
2342   cat conftest.$ac_ext >&5
2343   # Passes both tests.
2344 ac_preproc_ok=:
2345 break
2346 fi
2347 rm -f conftest.err conftest.$ac_ext
2348
2349 done
2350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2351 rm -f conftest.err conftest.$ac_ext
2352 if $ac_preproc_ok; then
2353   break
2354 fi
2355
2356     done
2357     ac_cv_prog_CPP=$CPP
2358
2359 fi
2360   CPP=$ac_cv_prog_CPP
2361 else
2362   ac_cv_prog_CPP=$CPP
2363 fi
2364 echo "$as_me:2364: result: $CPP" >&5
2365 echo "${ECHO_T}$CPP" >&6
2366 ac_preproc_ok=false
2367 for ac_c_preproc_warn_flag in '' yes
2368 do
2369   # Use a header file that comes with gcc, so configuring glibc
2370   # with a fresh cross-compiler works.
2371   # On the NeXT, cc -E runs the code through the compiler's parser,
2372   # not just through cpp. "Syntax error" is here to catch this case.
2373   cat >conftest.$ac_ext <<_ACEOF
2374 #line 2374 "configure"
2375 #include "confdefs.h"
2376 #include <assert.h>
2377                      Syntax error
2378 _ACEOF
2379 if { (eval echo "$as_me:2379: \"$ac_cpp conftest.$ac_ext\"") >&5
2380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2381   ac_status=$?
2382   egrep -v '^ *\+' conftest.er1 >conftest.err
2383   rm -f conftest.er1
2384   cat conftest.err >&5
2385   echo "$as_me:2385: \$? = $ac_status" >&5
2386   (exit $ac_status); } >/dev/null; then
2387   if test -s conftest.err; then
2388     ac_cpp_err=$ac_c_preproc_warn_flag
2389   else
2390     ac_cpp_err=
2391   fi
2392 else
2393   ac_cpp_err=yes
2394 fi
2395 if test -z "$ac_cpp_err"; then
2396   :
2397 else
2398   echo "$as_me: failed program was:" >&5
2399   cat conftest.$ac_ext >&5
2400   # Broken: fails on valid input.
2401 continue
2402 fi
2403 rm -f conftest.err conftest.$ac_ext
2404
2405   # OK, works on sane cases.  Now check whether non-existent headers
2406   # can be detected and how.
2407   cat >conftest.$ac_ext <<_ACEOF
2408 #line 2408 "configure"
2409 #include "confdefs.h"
2410 #include <ac_nonexistent.h>
2411 _ACEOF
2412 if { (eval echo "$as_me:2412: \"$ac_cpp conftest.$ac_ext\"") >&5
2413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2414   ac_status=$?
2415   egrep -v '^ *\+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:2418: \$? = $ac_status" >&5
2419   (exit $ac_status); } >/dev/null; then
2420   if test -s conftest.err; then
2421     ac_cpp_err=$ac_c_preproc_warn_flag
2422   else
2423     ac_cpp_err=
2424   fi
2425 else
2426   ac_cpp_err=yes
2427 fi
2428 if test -z "$ac_cpp_err"; then
2429   # Broken: success on invalid input.
2430 continue
2431 else
2432   echo "$as_me: failed program was:" >&5
2433   cat conftest.$ac_ext >&5
2434   # Passes both tests.
2435 ac_preproc_ok=:
2436 break
2437 fi
2438 rm -f conftest.err conftest.$ac_ext
2439
2440 done
2441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2442 rm -f conftest.err conftest.$ac_ext
2443 if $ac_preproc_ok; then
2444   :
2445 else
2446   { { echo "$as_me:2446: error: C preprocessor \"$CPP\" fails sanity check" >&5
2447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2448    { (exit 1); exit 1; }; }
2449 fi
2450
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457 # Find a good install program.  We prefer a C program (faster),
2458 # so one script is as good as another.  But avoid the broken or
2459 # incompatible versions:
2460 # SysV /etc/install, /usr/sbin/install
2461 # SunOS /usr/etc/install
2462 # IRIX /sbin/install
2463 # AIX /bin/install
2464 # AmigaOS /C/install, which installs bootblocks on floppy discs
2465 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2466 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2467 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2468 # ./install, which can be erroneously created by make from ./install.sh.
2469 echo "$as_me:2469: checking for a BSD compatible install" >&5
2470 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2471 if test -z "$INSTALL"; then
2472 if test "${ac_cv_path_install+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475     ac_save_IFS=$IFS; IFS=$ac_path_separator
2476   for ac_dir in $PATH; do
2477     IFS=$ac_save_IFS
2478     # Account for people who put trailing slashes in PATH elements.
2479     case $ac_dir/ in
2480     / | ./ | .// | /cC/* \
2481     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2482     | /usr/ucb/* ) ;;
2483     *)
2484       # OSF1 and SCO ODT 3.0 have their own names for install.
2485       # Don't use installbsd from OSF since it installs stuff as root
2486       # by default.
2487       for ac_prog in ginstall scoinst install; do
2488         if $as_executable_p "$ac_dir/$ac_prog"; then
2489           if test $ac_prog = install &&
2490             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2491             # AIX install.  It has an incompatible calling convention.
2492             :
2493           elif test $ac_prog = install &&
2494             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2495             # program-specific install script used by HP pwplus--don't use.
2496             :
2497           else
2498             ac_cv_path_install="$ac_dir/$ac_prog -c"
2499             break 2
2500           fi
2501         fi
2502       done
2503       ;;
2504     esac
2505   done
2506
2507 fi
2508   if test "${ac_cv_path_install+set}" = set; then
2509     INSTALL=$ac_cv_path_install
2510   else
2511     # As a last resort, use the slow shell script.  We don't cache a
2512     # path for INSTALL within a source directory, because that will
2513     # break other packages using the cache if that directory is
2514     # removed, or if the path is relative.
2515     INSTALL=$ac_install_sh
2516   fi
2517 fi
2518 echo "$as_me:2518: result: $INSTALL" >&5
2519 echo "${ECHO_T}$INSTALL" >&6
2520
2521 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2522 # It thinks the first close brace ends the variable substitution.
2523 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524
2525 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526
2527 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528
2529 # Check whether --enable-shared or --disable-shared was given.
2530 if test "${enable_shared+set}" = set; then
2531   enableval="$enable_shared"
2532   p=${PACKAGE-default}
2533 case $enableval in
2534 yes) enable_shared=yes ;;
2535 no) enable_shared=no ;;
2536 *)
2537   enable_shared=no
2538   # Look at the argument we got.  We use all the common list separators.
2539   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2540   for pkg in $enableval; do
2541     if test "X$pkg" = "X$p"; then
2542       enable_shared=yes
2543     fi
2544   done
2545   IFS="$ac_save_ifs"
2546   ;;
2547 esac
2548 else
2549   enable_shared=yes
2550 fi;
2551 # Check whether --enable-static or --disable-static was given.
2552 if test "${enable_static+set}" = set; then
2553   enableval="$enable_static"
2554   p=${PACKAGE-default}
2555 case $enableval in
2556 yes) enable_static=yes ;;
2557 no) enable_static=no ;;
2558 *)
2559   enable_static=no
2560   # Look at the argument we got.  We use all the common list separators.
2561   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2562   for pkg in $enableval; do
2563     if test "X$pkg" = "X$p"; then
2564       enable_static=yes
2565     fi
2566   done
2567   IFS="$ac_save_ifs"
2568   ;;
2569 esac
2570 else
2571   enable_static=yes
2572 fi;
2573 # Check whether --enable-fast-install or --disable-fast-install was given.
2574 if test "${enable_fast_install+set}" = set; then
2575   enableval="$enable_fast_install"
2576   p=${PACKAGE-default}
2577 case $enableval in
2578 yes) enable_fast_install=yes ;;
2579 no) enable_fast_install=no ;;
2580 *)
2581   enable_fast_install=no
2582   # Look at the argument we got.  We use all the common list separators.
2583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2584   for pkg in $enableval; do
2585     if test "X$pkg" = "X$p"; then
2586       enable_fast_install=yes
2587     fi
2588   done
2589   IFS="$ac_save_ifs"
2590   ;;
2591 esac
2592 else
2593   enable_fast_install=yes
2594 fi;
2595 # Make sure we can run config.sub.
2596 $ac_config_sub sun4 >/dev/null 2>&1 ||
2597   { { echo "$as_me:2597: error: cannot run $ac_config_sub" >&5
2598 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2599    { (exit 1); exit 1; }; }
2600
2601 echo "$as_me:2601: checking build system type" >&5
2602 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2603 if test "${ac_cv_build+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   ac_cv_build_alias=$build_alias
2607 test -z "$ac_cv_build_alias" &&
2608   ac_cv_build_alias=`$ac_config_guess`
2609 test -z "$ac_cv_build_alias" &&
2610   { { echo "$as_me:2610: error: cannot guess build type; you must specify one" >&5
2611 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2612    { (exit 1); exit 1; }; }
2613 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2614   { { echo "$as_me:2614: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2615 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2616    { (exit 1); exit 1; }; }
2617
2618 fi
2619 echo "$as_me:2619: result: $ac_cv_build" >&5
2620 echo "${ECHO_T}$ac_cv_build" >&6
2621 build=$ac_cv_build
2622 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2623 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2624 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2625
2626 echo "$as_me:2626: checking host system type" >&5
2627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2628 if test "${ac_cv_host+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   ac_cv_host_alias=$host_alias
2632 test -z "$ac_cv_host_alias" &&
2633   ac_cv_host_alias=$ac_cv_build_alias
2634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2635   { { echo "$as_me:2635: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2637    { (exit 1); exit 1; }; }
2638
2639 fi
2640 echo "$as_me:2640: result: $ac_cv_host" >&5
2641 echo "${ECHO_T}$ac_cv_host" >&6
2642 host=$ac_cv_host
2643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2646
2647 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2648 if test "${with_gnu_ld+set}" = set; then
2649   withval="$with_gnu_ld"
2650   test "$withval" = no || with_gnu_ld=yes
2651 else
2652   with_gnu_ld=no
2653 fi;
2654 ac_prog=ld
2655 if test "$GCC" = yes; then
2656   # Check if gcc -print-prog-name=ld gives a path.
2657   echo "$as_me:2657: checking for ld used by GCC" >&5
2658 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2659   case $host in
2660   *-*-mingw*)
2661     # gcc leaves a trailing carriage return which upsets mingw
2662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2663   *)
2664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2665   esac
2666   case $ac_prog in
2667     # Accept absolute paths.
2668     [\\/]* | [A-Za-z]:[\\/]*)
2669       re_direlt='/[^/][^/]*/\.\./'
2670       # Canonicalize the path of ld
2671       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2672       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2673         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2674       done
2675       test -z "$LD" && LD="$ac_prog"
2676       ;;
2677   "")
2678     # If it fails, then pretend we aren't using GCC.
2679     ac_prog=ld
2680     ;;
2681   *)
2682     # If it is relative, then search for the first ld in PATH.
2683     with_gnu_ld=unknown
2684     ;;
2685   esac
2686 elif test "$with_gnu_ld" = yes; then
2687   echo "$as_me:2687: checking for GNU ld" >&5
2688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2689 else
2690   echo "$as_me:2690: checking for non-GNU ld" >&5
2691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2692 fi
2693 if test "${lt_cv_path_LD+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   if test -z "$LD"; then
2697   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2698   for ac_dir in $PATH; do
2699     test -z "$ac_dir" && ac_dir=.
2700     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2701       lt_cv_path_LD="$ac_dir/$ac_prog"
2702       # Check to see if the program is GNU ld.  I'd rather use --version,
2703       # but apparently some GNU ld's only accept -v.
2704       # Break only if it was the GNU/non-GNU ld that we prefer.
2705       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2706         test "$with_gnu_ld" != no && break
2707       else
2708         test "$with_gnu_ld" != yes && break
2709       fi
2710     fi
2711   done
2712   IFS="$ac_save_ifs"
2713 else
2714   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2715 fi
2716 fi
2717
2718 LD="$lt_cv_path_LD"
2719 if test -n "$LD"; then
2720   echo "$as_me:2720: result: $LD" >&5
2721 echo "${ECHO_T}$LD" >&6
2722 else
2723   echo "$as_me:2723: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2725 fi
2726 test -z "$LD" && { { echo "$as_me:2726: error: no acceptable ld found in \$PATH" >&5
2727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2728    { (exit 1); exit 1; }; }
2729 echo "$as_me:2729: checking if the linker ($LD) is GNU ld" >&5
2730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2735 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2736   lt_cv_prog_gnu_ld=yes
2737 else
2738   lt_cv_prog_gnu_ld=no
2739 fi
2740 fi
2741 echo "$as_me:2741: result: $lt_cv_prog_gnu_ld" >&5
2742 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2743 with_gnu_ld=$lt_cv_prog_gnu_ld
2744
2745 echo "$as_me:2745: checking for $LD option to reload object files" >&5
2746 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2747 if test "${lt_cv_ld_reload_flag+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   lt_cv_ld_reload_flag='-r'
2751 fi
2752 echo "$as_me:2752: result: $lt_cv_ld_reload_flag" >&5
2753 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2754 reload_flag=$lt_cv_ld_reload_flag
2755 test -n "$reload_flag" && reload_flag=" $reload_flag"
2756
2757 echo "$as_me:2757: checking for BSD-compatible nm" >&5
2758 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2759 if test "${lt_cv_path_NM+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762   if test -n "$NM"; then
2763   # Let the user override the test.
2764   lt_cv_path_NM="$NM"
2765 else
2766   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2767   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2768     test -z "$ac_dir" && ac_dir=.
2769     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2770     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2771       # Check to see if the nm accepts a BSD-compat flag.
2772       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2773       #   nm: unknown option "B" ignored
2774       # Tru64's nm complains that /dev/null is an invalid object file
2775       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2776         lt_cv_path_NM="$tmp_nm -B"
2777         break
2778       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2779         lt_cv_path_NM="$tmp_nm -p"
2780         break
2781       else
2782         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2783         continue # so that we can try to find one that supports BSD flags
2784       fi
2785     fi
2786   done
2787   IFS="$ac_save_ifs"
2788   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2789 fi
2790 fi
2791
2792 NM="$lt_cv_path_NM"
2793 echo "$as_me:2793: result: $NM" >&5
2794 echo "${ECHO_T}$NM" >&6
2795
2796 echo "$as_me:2796: checking whether ln -s works" >&5
2797 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2798 LN_S=$as_ln_s
2799 if test "$LN_S" = "ln -s"; then
2800   echo "$as_me:2800: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2802 else
2803   echo "$as_me:2803: result: no, using $LN_S" >&5
2804 echo "${ECHO_T}no, using $LN_S" >&6
2805 fi
2806
2807 echo "$as_me:2807: checking how to recognise dependant libraries" >&5
2808 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2809 if test "${lt_cv_deplibs_check_method+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   lt_cv_file_magic_cmd='$MAGIC_CMD'
2813 lt_cv_file_magic_test_file=
2814 lt_cv_deplibs_check_method='unknown'
2815 # Need to set the preceding variable on all platforms that support
2816 # interlibrary dependencies.
2817 # 'none' -- dependencies not supported.
2818 # `unknown' -- same as none, but documents that we really don't know.
2819 # 'pass_all' -- all dependencies passed with no checks.
2820 # 'test_compile' -- check by making test program.
2821 # ['file_magic [regex]'] -- check by looking for files in library path
2822 # which responds to the $file_magic_cmd with a given egrep regex.
2823 # If you have `file' or equivalent on your system and you're not sure
2824 # whether `pass_all' will *always* work, you probably want this one.
2825
2826 case $host_os in
2827 aix4* | aix5*)
2828   lt_cv_deplibs_check_method=pass_all
2829   ;;
2830
2831 beos*)
2832   lt_cv_deplibs_check_method=pass_all
2833   ;;
2834
2835 bsdi4*)
2836   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2837   lt_cv_file_magic_cmd='/usr/bin/file -L'
2838   lt_cv_file_magic_test_file=/shlib/libc.so
2839   ;;
2840
2841 cygwin* | mingw* | pw32*)
2842   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2843   lt_cv_file_magic_cmd='$OBJDUMP -f'
2844   ;;
2845
2846 darwin* | rhapsody*)
2847   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2848   lt_cv_file_magic_cmd='/usr/bin/file -L'
2849   case "$host_os" in
2850   rhapsody* | darwin1.012)
2851     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2852     ;;
2853   *) # Darwin 1.3 on
2854     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2855     ;;
2856   esac
2857   ;;
2858
2859 freebsd*)
2860   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2861     case $host_cpu in
2862     i*86 )
2863       # Not sure whether the presence of OpenBSD here was a mistake.
2864       # Let's accept both of them until this is cleared up.
2865       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2866       lt_cv_file_magic_cmd=/usr/bin/file
2867       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2868       ;;
2869     esac
2870   else
2871     lt_cv_deplibs_check_method=pass_all
2872   fi
2873   ;;
2874
2875 gnu*)
2876   lt_cv_deplibs_check_method=pass_all
2877   ;;
2878
2879 hpux10.20*|hpux11*)
2880   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2881   lt_cv_file_magic_cmd=/usr/bin/file
2882   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2883   ;;
2884
2885 irix5* | irix6*)
2886   case $host_os in
2887   irix5*)
2888     # this will be overridden with pass_all, but let us keep it just in case
2889     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2890     ;;
2891   *)
2892     case $LD in
2893     *-32|*"-32 ") libmagic=32-bit;;
2894     *-n32|*"-n32 ") libmagic=N32;;
2895     *-64|*"-64 ") libmagic=64-bit;;
2896     *) libmagic=never-match;;
2897     esac
2898     # this will be overridden with pass_all, but let us keep it just in case
2899     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2900     ;;
2901   esac
2902   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2903   lt_cv_deplibs_check_method=pass_all
2904   ;;
2905
2906 # This must be Linux ELF.
2907 linux-gnu*)
2908   case $host_cpu in
2909   alpha* | i*86 | powerpc* | sparc* | ia64* )
2910     lt_cv_deplibs_check_method=pass_all ;;
2911   *)
2912     # glibc up to 2.1.1 does not perform some relocations on ARM
2913     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2914   esac
2915   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2916   ;;
2917
2918 netbsd*)
2919   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2920     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2921   else
2922     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2923   fi
2924   ;;
2925
2926 newos6*)
2927   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2928   lt_cv_file_magic_cmd=/usr/bin/file
2929   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2930   ;;
2931
2932 osf3* | osf4* | osf5*)
2933   # this will be overridden with pass_all, but let us keep it just in case
2934   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2935   lt_cv_file_magic_test_file=/shlib/libc.so
2936   lt_cv_deplibs_check_method=pass_all
2937   ;;
2938
2939 sco3.2v5*)
2940   lt_cv_deplibs_check_method=pass_all
2941   ;;
2942
2943 solaris*)
2944   lt_cv_deplibs_check_method=pass_all
2945   lt_cv_file_magic_test_file=/lib/libc.so
2946   ;;
2947
2948 sysv5uw[78]* | sysv4*uw2*)
2949   lt_cv_deplibs_check_method=pass_all
2950   ;;
2951
2952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2953   case $host_vendor in
2954   motorola)
2955     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]'
2956     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2957     ;;
2958   ncr)
2959     lt_cv_deplibs_check_method=pass_all
2960     ;;
2961   sequent)
2962     lt_cv_file_magic_cmd='/bin/file'
2963     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2964     ;;
2965   sni)
2966     lt_cv_file_magic_cmd='/bin/file'
2967     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2968     lt_cv_file_magic_test_file=/lib/libc.so
2969     ;;
2970   esac
2971   ;;
2972 esac
2973
2974 fi
2975 echo "$as_me:2975: result: $lt_cv_deplibs_check_method" >&5
2976 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2977 file_magic_cmd=$lt_cv_file_magic_cmd
2978 deplibs_check_method=$lt_cv_deplibs_check_method
2979
2980 # Check for command to grab the raw symbol name followed by C symbol from nm.
2981 echo "$as_me:2981: checking command to parse $NM output" >&5
2982 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2983 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986
2987 # These are sane defaults that work on at least a few old systems.
2988 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2989
2990 # Character class describing NM global symbol codes.
2991 symcode='[BCDEGRST]'
2992
2993 # Regexp to match symbols that can be accessed directly from C.
2994 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2995
2996 # Transform the above into a raw symbol and a C symbol.
2997 symxfrm='\1 \2\3 \3'
2998
2999 # Transform an extracted symbol line into a proper C declaration
3000 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3001
3002 # Define system-specific variables.
3003 case $host_os in
3004 aix*)
3005   symcode='[BCDT]'
3006   ;;
3007 cygwin* | mingw* | pw32*)
3008   symcode='[ABCDGISTW]'
3009   ;;
3010 hpux*) # Its linker distinguishes data from code symbols
3011   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3012   ;;
3013 irix*)
3014   symcode='[BCDEGRST]'
3015   ;;
3016 solaris* | sysv5*)
3017   symcode='[BDT]'
3018   ;;
3019 sysv4)
3020   symcode='[DFNSTU]'
3021   ;;
3022 esac
3023
3024 # Handle CRLF in mingw tool chain
3025 opt_cr=
3026 case $host_os in
3027 mingw*)
3028   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3029   ;;
3030 esac
3031
3032 # If we're using GNU nm, then use its standard symbol codes.
3033 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3034   symcode='[ABCDGISTW]'
3035 fi
3036
3037 # Try without a prefix undercore, then with it.
3038 for ac_symprfx in "" "_"; do
3039
3040   # Write the raw and C identifiers.
3041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3042
3043   # Check to see that the pipe works correctly.
3044   pipe_works=no
3045   rm -f conftest*
3046   cat > conftest.$ac_ext <<EOF
3047 #ifdef __cplusplus
3048 extern "C" {
3049 #endif
3050 char nm_test_var;
3051 void nm_test_func(){}
3052 #ifdef __cplusplus
3053 }
3054 #endif
3055 int main(){nm_test_var='a';nm_test_func();return(0);}
3056 EOF
3057
3058   if { (eval echo "$as_me:3058: \"$ac_compile\"") >&5
3059   (eval $ac_compile) 2>&5
3060   ac_status=$?
3061   echo "$as_me:3061: \$? = $ac_status" >&5
3062   (exit $ac_status); }; then
3063     # Now try to grab the symbols.
3064     nlist=conftest.nm
3065     if { (eval echo "$as_me:3065: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3066   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3067   ac_status=$?
3068   echo "$as_me:3068: \$? = $ac_status" >&5
3069   (exit $ac_status); } && test -s "$nlist"; then
3070       # Try sorting and uniquifying the output.
3071       if sort "$nlist" | uniq > "$nlist"T; then
3072         mv -f "$nlist"T "$nlist"
3073       else
3074         rm -f "$nlist"T
3075       fi
3076
3077       # Make sure that we snagged all the symbols we need.
3078       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3079         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3080           cat <<EOF > conftest.$ac_ext
3081 #ifdef __cplusplus
3082 extern "C" {
3083 #endif
3084
3085 EOF
3086           # Now generate the symbol file.
3087           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3088
3089           cat <<EOF >> conftest.$ac_ext
3090 #if defined (__STDC__) && __STDC__
3091 # define lt_ptr_t void *
3092 #else
3093 # define lt_ptr_t char *
3094 # define const
3095 #endif
3096
3097 /* The mapping between symbol names and symbols. */
3098 const struct {
3099   const char *name;
3100   lt_ptr_t address;
3101 }
3102 lt_preloaded_symbols[] =
3103 {
3104 EOF
3105           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3106           cat <<\EOF >> conftest.$ac_ext
3107   {0, (lt_ptr_t) 0}
3108 };
3109
3110 #ifdef __cplusplus
3111 }
3112 #endif
3113 EOF
3114           # Now try linking the two files.
3115           mv conftest.$ac_objext conftstm.$ac_objext
3116           save_LIBS="$LIBS"
3117           save_CFLAGS="$CFLAGS"
3118           LIBS="conftstm.$ac_objext"
3119           CFLAGS="$CFLAGS$no_builtin_flag"
3120           if { (eval echo "$as_me:3120: \"$ac_link\"") >&5
3121   (eval $ac_link) 2>&5
3122   ac_status=$?
3123   echo "$as_me:3123: \$? = $ac_status" >&5
3124   (exit $ac_status); } && test -s conftest; then
3125             pipe_works=yes
3126           fi
3127           LIBS="$save_LIBS"
3128           CFLAGS="$save_CFLAGS"
3129         else
3130           echo "cannot find nm_test_func in $nlist" >&5
3131         fi
3132       else
3133         echo "cannot find nm_test_var in $nlist" >&5
3134       fi
3135     else
3136       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3137     fi
3138   else
3139     echo "$progname: failed program was:" >&5
3140     cat conftest.$ac_ext >&5
3141   fi
3142   rm -f conftest* conftst*
3143
3144   # Do not use the global_symbol_pipe unless it works.
3145   if test "$pipe_works" = yes; then
3146     break
3147   else
3148     lt_cv_sys_global_symbol_pipe=
3149   fi
3150 done
3151
3152 fi
3153
3154 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3156   global_symbol_to_cdecl=
3157 else
3158   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3159 fi
3160 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3161   echo "$as_me:3161: result: failed" >&5
3162 echo "${ECHO_T}failed" >&6
3163 else
3164   echo "$as_me:3164: result: ok" >&5
3165 echo "${ECHO_T}ok" >&6
3166 fi
3167
3168 for ac_header in dlfcn.h
3169 do
3170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3171 echo "$as_me:3171: checking for $ac_header" >&5
3172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176   cat >conftest.$ac_ext <<_ACEOF
3177 #line 3177 "configure"
3178 #include "confdefs.h"
3179 #include <$ac_header>
3180 _ACEOF
3181 if { (eval echo "$as_me:3181: \"$ac_cpp conftest.$ac_ext\"") >&5
3182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3183   ac_status=$?
3184   egrep -v '^ *\+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:3187: \$? = $ac_status" >&5
3188   (exit $ac_status); } >/dev/null; then
3189   if test -s conftest.err; then
3190     ac_cpp_err=$ac_c_preproc_warn_flag
3191   else
3192     ac_cpp_err=
3193   fi
3194 else
3195   ac_cpp_err=yes
3196 fi
3197 if test -z "$ac_cpp_err"; then
3198   eval "$as_ac_Header=yes"
3199 else
3200   echo "$as_me: failed program was:" >&5
3201   cat conftest.$ac_ext >&5
3202   eval "$as_ac_Header=no"
3203 fi
3204 rm -f conftest.err conftest.$ac_ext
3205 fi
3206 echo "$as_me:3206: result: `eval echo '${'$as_ac_Header'}'`" >&5
3207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3209   cat >>confdefs.h <<EOF
3210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3211 EOF
3212
3213 fi
3214 done
3215
3216 # Only perform the check for file, if the check method requires it
3217 case $deplibs_check_method in
3218 file_magic*)
3219   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3220     echo "$as_me:3220: checking for ${ac_tool_prefix}file" >&5
3221 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $MAGIC_CMD in
3226   /*)
3227   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3228   ;;
3229   ?:/*)
3230   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3231   ;;
3232   *)
3233   ac_save_MAGIC_CMD="$MAGIC_CMD"
3234   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3235   ac_dummy="/usr/bin:$PATH"
3236   for ac_dir in $ac_dummy; do
3237     test -z "$ac_dir" && ac_dir=.
3238     if test -f $ac_dir/${ac_tool_prefix}file; then
3239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3240       if test -n "$file_magic_test_file"; then
3241         case $deplibs_check_method in
3242         "file_magic "*)
3243           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3246             egrep "$file_magic_regex" > /dev/null; then
3247             :
3248           else
3249             cat <<EOF 1>&2
3250
3251 *** Warning: the command libtool uses to detect shared libraries,
3252 *** $file_magic_cmd, produces output that libtool cannot recognize.
3253 *** The result is that libtool may fail to recognize shared libraries
3254 *** as such.  This will affect the creation of libtool libraries that
3255 *** depend on shared libraries, but programs linked with such libtool
3256 *** libraries will work regardless of this problem.  Nevertheless, you
3257 *** may want to report the problem to your system manager and/or to
3258 *** bug-libtool@gnu.org
3259
3260 EOF
3261           fi ;;
3262         esac
3263       fi
3264       break
3265     fi
3266   done
3267   IFS="$ac_save_ifs"
3268   MAGIC_CMD="$ac_save_MAGIC_CMD"
3269   ;;
3270 esac
3271 fi
3272
3273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3274 if test -n "$MAGIC_CMD"; then
3275   echo "$as_me:3275: result: $MAGIC_CMD" >&5
3276 echo "${ECHO_T}$MAGIC_CMD" >&6
3277 else
3278   echo "$as_me:3278: result: no" >&5
3279 echo "${ECHO_T}no" >&6
3280 fi
3281
3282 if test -z "$lt_cv_path_MAGIC_CMD"; then
3283   if test -n "$ac_tool_prefix"; then
3284     echo "$as_me:3284: checking for file" >&5
3285 echo $ECHO_N "checking for file... $ECHO_C" >&6
3286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   case $MAGIC_CMD in
3290   /*)
3291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3292   ;;
3293   ?:/*)
3294   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3295   ;;
3296   *)
3297   ac_save_MAGIC_CMD="$MAGIC_CMD"
3298   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3299   ac_dummy="/usr/bin:$PATH"
3300   for ac_dir in $ac_dummy; do
3301     test -z "$ac_dir" && ac_dir=.
3302     if test -f $ac_dir/file; then
3303       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3304       if test -n "$file_magic_test_file"; then
3305         case $deplibs_check_method in
3306         "file_magic "*)
3307           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3308           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3309           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3310             egrep "$file_magic_regex" > /dev/null; then
3311             :
3312           else
3313             cat <<EOF 1>&2
3314
3315 *** Warning: the command libtool uses to detect shared libraries,
3316 *** $file_magic_cmd, produces output that libtool cannot recognize.
3317 *** The result is that libtool may fail to recognize shared libraries
3318 *** as such.  This will affect the creation of libtool libraries that
3319 *** depend on shared libraries, but programs linked with such libtool
3320 *** libraries will work regardless of this problem.  Nevertheless, you
3321 *** may want to report the problem to your system manager and/or to
3322 *** bug-libtool@gnu.org
3323
3324 EOF
3325           fi ;;
3326         esac
3327       fi
3328       break
3329     fi
3330   done
3331   IFS="$ac_save_ifs"
3332   MAGIC_CMD="$ac_save_MAGIC_CMD"
3333   ;;
3334 esac
3335 fi
3336
3337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3338 if test -n "$MAGIC_CMD"; then
3339   echo "$as_me:3339: result: $MAGIC_CMD" >&5
3340 echo "${ECHO_T}$MAGIC_CMD" >&6
3341 else
3342   echo "$as_me:3342: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346   else
3347     MAGIC_CMD=:
3348   fi
3349 fi
3350
3351   fi
3352   ;;
3353 esac
3354
3355 if test -n "$ac_tool_prefix"; then
3356   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3358 echo "$as_me:3358: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_RANLIB+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   if test -n "$RANLIB"; then
3364   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 else
3366   ac_save_IFS=$IFS; IFS=$ac_path_separator
3367 ac_dummy="$PATH"
3368 for ac_dir in $ac_dummy; do
3369   IFS=$ac_save_IFS
3370   test -z "$ac_dir" && ac_dir=.
3371   $as_executable_p "$ac_dir/$ac_word" || continue
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:3373: found $ac_dir/$ac_word" >&5
3374 break
3375 done
3376
3377 fi
3378 fi
3379 RANLIB=$ac_cv_prog_RANLIB
3380 if test -n "$RANLIB"; then
3381   echo "$as_me:3381: result: $RANLIB" >&5
3382 echo "${ECHO_T}$RANLIB" >&6
3383 else
3384   echo "$as_me:3384: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 fi
3389 if test -z "$ac_cv_prog_RANLIB"; then
3390   ac_ct_RANLIB=$RANLIB
3391   # Extract the first word of "ranlib", so it can be a program name with args.
3392 set dummy ranlib; ac_word=$2
3393 echo "$as_me:3393: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   if test -n "$ac_ct_RANLIB"; then
3399   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3400 else
3401   ac_save_IFS=$IFS; IFS=$ac_path_separator
3402 ac_dummy="$PATH"
3403 for ac_dir in $ac_dummy; do
3404   IFS=$ac_save_IFS
3405   test -z "$ac_dir" && ac_dir=.
3406   $as_executable_p "$ac_dir/$ac_word" || continue
3407 ac_cv_prog_ac_ct_RANLIB="ranlib"
3408 echo "$as_me:3408: found $ac_dir/$ac_word" >&5
3409 break
3410 done
3411
3412   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3413 fi
3414 fi
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417   echo "$as_me:3417: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 else
3420   echo "$as_me:3420: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424   RANLIB=$ac_ct_RANLIB
3425 else
3426   RANLIB="$ac_cv_prog_RANLIB"
3427 fi
3428
3429 if test -n "$ac_tool_prefix"; then
3430   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3431 set dummy ${ac_tool_prefix}strip; ac_word=$2
3432 echo "$as_me:3432: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_STRIP+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   if test -n "$STRIP"; then
3438   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3439 else
3440   ac_save_IFS=$IFS; IFS=$ac_path_separator
3441 ac_dummy="$PATH"
3442 for ac_dir in $ac_dummy; do
3443   IFS=$ac_save_IFS
3444   test -z "$ac_dir" && ac_dir=.
3445   $as_executable_p "$ac_dir/$ac_word" || continue
3446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3447 echo "$as_me:3447: found $ac_dir/$ac_word" >&5
3448 break
3449 done
3450
3451 fi
3452 fi
3453 STRIP=$ac_cv_prog_STRIP
3454 if test -n "$STRIP"; then
3455   echo "$as_me:3455: result: $STRIP" >&5
3456 echo "${ECHO_T}$STRIP" >&6
3457 else
3458   echo "$as_me:3458: result: no" >&5
3459 echo "${ECHO_T}no" >&6
3460 fi
3461
3462 fi
3463 if test -z "$ac_cv_prog_STRIP"; then
3464   ac_ct_STRIP=$STRIP
3465   # Extract the first word of "strip", so it can be a program name with args.
3466 set dummy strip; ac_word=$2
3467 echo "$as_me:3467: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   if test -n "$ac_ct_STRIP"; then
3473   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3474 else
3475   ac_save_IFS=$IFS; IFS=$ac_path_separator
3476 ac_dummy="$PATH"
3477 for ac_dir in $ac_dummy; do
3478   IFS=$ac_save_IFS
3479   test -z "$ac_dir" && ac_dir=.
3480   $as_executable_p "$ac_dir/$ac_word" || continue
3481 ac_cv_prog_ac_ct_STRIP="strip"
3482 echo "$as_me:3482: found $ac_dir/$ac_word" >&5
3483 break
3484 done
3485
3486   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3487 fi
3488 fi
3489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3490 if test -n "$ac_ct_STRIP"; then
3491   echo "$as_me:3491: result: $ac_ct_STRIP" >&5
3492 echo "${ECHO_T}$ac_ct_STRIP" >&6
3493 else
3494   echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498   STRIP=$ac_ct_STRIP
3499 else
3500   STRIP="$ac_cv_prog_STRIP"
3501 fi
3502
3503 enable_dlopen=no
3504 enable_win32_dll=no
3505
3506 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3507 if test "${enable_libtool_lock+set}" = set; then
3508   enableval="$enable_libtool_lock"
3509
3510 fi;
3511 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3512
3513 # Some flags need to be propagated to the compiler or linker for good
3514 # libtool support.
3515 case $host in
3516 *-*-irix6*)
3517   # Find out which ABI we are using.
3518   echo '#line 3518 "configure"' > conftest.$ac_ext
3519   if { (eval echo "$as_me:3519: \"$ac_compile\"") >&5
3520   (eval $ac_compile) 2>&5
3521   ac_status=$?
3522   echo "$as_me:3522: \$? = $ac_status" >&5
3523   (exit $ac_status); }; then
3524     case `/usr/bin/file conftest.$ac_objext` in
3525     *32-bit*)
3526       LD="${LD-ld} -32"
3527       ;;
3528     *N32*)
3529       LD="${LD-ld} -n32"
3530       ;;
3531     *64-bit*)
3532       LD="${LD-ld} -64"
3533       ;;
3534     esac
3535   fi
3536   rm -rf conftest*
3537   ;;
3538
3539 *-*-sco3.2v5*)
3540   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3541   SAVE_CFLAGS="$CFLAGS"
3542   CFLAGS="$CFLAGS -belf"
3543   echo "$as_me:3543: checking whether the C compiler needs -belf" >&5
3544 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3545 if test "${lt_cv_cc_needs_belf+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548
3549      ac_ext=c
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554
3555      cat >conftest.$ac_ext <<_ACEOF
3556 #line 3556 "configure"
3557 #include "confdefs.h"
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext conftest$ac_exeext
3568 if { (eval echo "$as_me:3568: \"$ac_link\"") >&5
3569   (eval $ac_link) 2>&5
3570   ac_status=$?
3571   echo "$as_me:3571: \$? = $ac_status" >&5
3572   (exit $ac_status); } &&
3573          { ac_try='test -s conftest$ac_exeext'
3574   { (eval echo "$as_me:3574: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:3577: \$? = $ac_status" >&5
3578   (exit $ac_status); }; }; then
3579   lt_cv_cc_needs_belf=yes
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3583 lt_cv_cc_needs_belf=no
3584 fi
3585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3586      ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
3592 fi
3593 echo "$as_me:3593: result: $lt_cv_cc_needs_belf" >&5
3594 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3595   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3596     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3597     CFLAGS="$SAVE_CFLAGS"
3598   fi
3599   ;;
3600
3601 esac
3602
3603 # Sed substitution that helps us do robust quoting.  It backslashifies
3604 # metacharacters that are still active within double-quoted strings.
3605 Xsed='sed -e s/^X//'
3606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3607
3608 # Same as above, but do not quote variable references.
3609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3610
3611 # Sed substitution to delay expansion of an escaped shell variable in a
3612 # double_quote_subst'ed string.
3613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3614
3615 # Constants:
3616 rm="rm -f"
3617
3618 # Global variables:
3619 default_ofile=libtool
3620 can_build_shared=yes
3621
3622 # All known linkers require a `.a' archive for static linking (except M$VC,
3623 # which needs '.lib').
3624 libext=a
3625 ltmain="$ac_aux_dir/ltmain.sh"
3626 ofile="$default_ofile"
3627 with_gnu_ld="$lt_cv_prog_gnu_ld"
3628 need_locks="$enable_libtool_lock"
3629
3630 old_CC="$CC"
3631 old_CFLAGS="$CFLAGS"
3632
3633 # Set sane defaults for various variables
3634 test -z "$AR" && AR=ar
3635 test -z "$AR_FLAGS" && AR_FLAGS=cru
3636 test -z "$AS" && AS=as
3637 test -z "$CC" && CC=cc
3638 test -z "$DLLTOOL" && DLLTOOL=dlltool
3639 test -z "$LD" && LD=ld
3640 test -z "$LN_S" && LN_S="ln -s"
3641 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3642 test -z "$NM" && NM=nm
3643 test -z "$OBJDUMP" && OBJDUMP=objdump
3644 test -z "$RANLIB" && RANLIB=:
3645 test -z "$STRIP" && STRIP=:
3646 test -z "$ac_objext" && ac_objext=o
3647
3648 if test x"$host" != x"$build"; then
3649   ac_tool_prefix=${host_alias}-
3650 else
3651   ac_tool_prefix=
3652 fi
3653
3654 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3655 case $host_os in
3656 linux-gnu*) ;;
3657 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3658 esac
3659
3660 case $host_os in
3661 aix3*)
3662   # AIX sometimes has problems with the GCC collect2 program.  For some
3663   # reason, if we set the COLLECT_NAMES environment variable, the problems
3664   # vanish in a puff of smoke.
3665   if test "X${COLLECT_NAMES+set}" != Xset; then
3666     COLLECT_NAMES=
3667     export COLLECT_NAMES
3668   fi
3669   ;;
3670 esac
3671
3672 # Determine commands to create old-style static archives.
3673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3674 old_postinstall_cmds='chmod 644 $oldlib'
3675 old_postuninstall_cmds=
3676
3677 if test -n "$RANLIB"; then
3678   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3679   old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3680 fi
3681
3682 # Allow CC to be a program name with arguments.
3683 set dummy $CC
3684 compiler="$2"
3685
3686 echo "$as_me:3686: checking for objdir" >&5
3687 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3688 rm -f .libs 2>/dev/null
3689 mkdir .libs 2>/dev/null
3690 if test -d .libs; then
3691   objdir=.libs
3692 else
3693   # MS-DOS does not allow filenames that begin with a dot.
3694   objdir=_libs
3695 fi
3696 rmdir .libs 2>/dev/null
3697 echo "$as_me:3697: result: $objdir" >&5
3698 echo "${ECHO_T}$objdir" >&6
3699
3700 # Check whether --with-pic or --without-pic was given.
3701 if test "${with_pic+set}" = set; then
3702   withval="$with_pic"
3703   pic_mode="$withval"
3704 else
3705   pic_mode=default
3706 fi;
3707 test -z "$pic_mode" && pic_mode=default
3708
3709 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3710 # in isolation, and that seeing it set (from the cache) indicates that
3711 # the associated values are set (in the cache) correctly too.
3712 echo "$as_me:3712: checking for $compiler option to produce PIC" >&5
3713 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3714 if test "${lt_cv_prog_cc_pic+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717    lt_cv_prog_cc_pic=
3718   lt_cv_prog_cc_shlib=
3719   lt_cv_prog_cc_wl=
3720   lt_cv_prog_cc_static=
3721   lt_cv_prog_cc_no_builtin=
3722   lt_cv_prog_cc_can_build_shared=$can_build_shared
3723
3724   if test "$GCC" = yes; then
3725     lt_cv_prog_cc_wl='-Wl,'
3726     lt_cv_prog_cc_static='-static'
3727
3728     case $host_os in
3729     aix*)
3730       # Below there is a dirty hack to force normal static linking with -ldl
3731       # The problem is because libdl dynamically linked with both libc and
3732       # libC (AIX C++ library), which obviously doesn't included in libraries
3733       # list by gcc. This cause undefined symbols with -static flags.
3734       # This hack allows C programs to be linked with "-static -ldl", but
3735       # we not sure about C++ programs.
3736       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3737       ;;
3738     amigaos*)
3739       # FIXME: we need at least 68020 code to build shared libraries, but
3740       # adding the `-m68020' flag to GCC prevents building anything better,
3741       # like `-m68040'.
3742       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3743       ;;
3744     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3745       # PIC is the default for these OSes.
3746       ;;
3747     darwin* | rhapsody*)
3748       # PIC is the default on this platform
3749       # Common symbols not allowed in MH_DYLIB files
3750       lt_cv_prog_cc_pic='-fno-common'
3751       ;;
3752     cygwin* | mingw* | pw32* | os2*)
3753       # This hack is so that the source file can tell whether it is being
3754       # built for inclusion in a dll (and should export symbols for example).
3755       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3756       ;;
3757     sysv4*MP*)
3758       if test -d /usr/nec; then
3759          lt_cv_prog_cc_pic=-Kconform_pic
3760       fi
3761       ;;
3762     *)
3763       lt_cv_prog_cc_pic='-fPIC'
3764       ;;
3765     esac
3766   else
3767     # PORTME Check for PIC flags for the system compiler.
3768     case $host_os in
3769     aix3* | aix4* | aix5*)
3770       # All AIX code is PIC.
3771       if test "$host_cpu" = ia64; then
3772         # AIX 5 now supports IA64 processor
3773         lt_cv_prog_cc_static='-Bstatic'
3774         lt_cv_prog_cc_wl='-Wl,'
3775       else
3776         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3777       fi
3778       ;;
3779
3780     hpux9* | hpux10* | hpux11*)
3781       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3782       lt_cv_prog_cc_wl='-Wl,'
3783       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3784       lt_cv_prog_cc_pic='+Z'
3785       ;;
3786
3787     irix5* | irix6*)
3788       lt_cv_prog_cc_wl='-Wl,'
3789       lt_cv_prog_cc_static='-non_shared'
3790       # PIC (with -KPIC) is the default.
3791       ;;
3792
3793     cygwin* | mingw* | pw32* | os2*)
3794       # This hack is so that the source file can tell whether it is being
3795       # built for inclusion in a dll (and should export symbols for example).
3796       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3797       ;;
3798
3799     newsos6)
3800       lt_cv_prog_cc_pic='-KPIC'
3801       lt_cv_prog_cc_static='-Bstatic'
3802       ;;
3803
3804     osf3* | osf4* | osf5*)
3805       # All OSF/1 code is PIC.
3806       lt_cv_prog_cc_wl='-Wl,'
3807       lt_cv_prog_cc_static='-non_shared'
3808       ;;
3809
3810     sco3.2v5*)
3811       lt_cv_prog_cc_pic='-Kpic'
3812       lt_cv_prog_cc_static='-dn'
3813       lt_cv_prog_cc_shlib='-belf'
3814       ;;
3815
3816     solaris*)
3817       lt_cv_prog_cc_pic='-KPIC'
3818       lt_cv_prog_cc_static='-Bstatic'
3819       lt_cv_prog_cc_wl='-Wl,'
3820       ;;
3821
3822     sunos4*)
3823       lt_cv_prog_cc_pic='-PIC'
3824       lt_cv_prog_cc_static='-Bstatic'
3825       lt_cv_prog_cc_wl='-Qoption ld '
3826       ;;
3827
3828     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3829       lt_cv_prog_cc_pic='-KPIC'
3830       lt_cv_prog_cc_static='-Bstatic'
3831       if test "x$host_vendor" = xsni; then
3832         lt_cv_prog_cc_wl='-LD'
3833       else
3834         lt_cv_prog_cc_wl='-Wl,'
3835       fi
3836       ;;
3837
3838     uts4*)
3839       lt_cv_prog_cc_pic='-pic'
3840       lt_cv_prog_cc_static='-Bstatic'
3841       ;;
3842
3843     sysv4*MP*)
3844       if test -d /usr/nec ;then
3845         lt_cv_prog_cc_pic='-Kconform_pic'
3846         lt_cv_prog_cc_static='-Bstatic'
3847       fi
3848       ;;
3849
3850     *)
3851       lt_cv_prog_cc_can_build_shared=no
3852       ;;
3853     esac
3854   fi
3855
3856 fi
3857
3858 if test -z "$lt_cv_prog_cc_pic"; then
3859   echo "$as_me:3859: result: none" >&5
3860 echo "${ECHO_T}none" >&6
3861 else
3862   echo "$as_me:3862: result: $lt_cv_prog_cc_pic" >&5
3863 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3864
3865   # Check to make sure the pic_flag actually works.
3866   echo "$as_me:3866: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3867 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3868   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871       save_CFLAGS="$CFLAGS"
3872     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3873     cat >conftest.$ac_ext <<_ACEOF
3874 #line 3874 "configure"
3875 #include "confdefs.h"
3876
3877 int
3878 main ()
3879 {
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:3886: \"$ac_compile\"") >&5
3887   (eval $ac_compile) 2>&5
3888   ac_status=$?
3889   echo "$as_me:3889: \$? = $ac_status" >&5
3890   (exit $ac_status); } &&
3891          { ac_try='test -s conftest.$ac_objext'
3892   { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3893   (eval $ac_try) 2>&5
3894   ac_status=$?
3895   echo "$as_me:3895: \$? = $ac_status" >&5
3896   (exit $ac_status); }; }; then
3897         case $host_os in
3898       hpux9* | hpux10* | hpux11*)
3899         # On HP-UX, both CC and GCC only warn that PIC is supported... then
3900         # they create non-PIC objects.  So, if there were any warnings, we
3901         # assume that PIC is not supported.
3902         if test -s conftest.err; then
3903           lt_cv_prog_cc_pic_works=no
3904         else
3905           lt_cv_prog_cc_pic_works=yes
3906         fi
3907         ;;
3908       *)
3909         lt_cv_prog_cc_pic_works=yes
3910         ;;
3911       esac
3912
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916       lt_cv_prog_cc_pic_works=no
3917
3918 fi
3919 rm -f conftest.$ac_objext conftest.$ac_ext
3920     CFLAGS="$save_CFLAGS"
3921
3922 fi
3923
3924   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3925     lt_cv_prog_cc_pic=
3926     lt_cv_prog_cc_can_build_shared=no
3927   else
3928     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3929   fi
3930
3931   echo "$as_me:3931: result: $lt_cv_prog_cc_pic_works" >&5
3932 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3933 fi
3934
3935 # Check for any special shared library compilation flags.
3936 if test -n "$lt_cv_prog_cc_shlib"; then
3937   { echo "$as_me:3937: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3938 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3939   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
3940   else
3941    { echo "$as_me:3941: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3942 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3943     lt_cv_prog_cc_can_build_shared=no
3944   fi
3945 fi
3946
3947 echo "$as_me:3947: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3948 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3949 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952     lt_cv_prog_cc_static_works=no
3953   save_LDFLAGS="$LDFLAGS"
3954   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3955   cat >conftest.$ac_ext <<_ACEOF
3956 #line 3956 "configure"
3957 #include "confdefs.h"
3958
3959 int
3960 main ()
3961 {
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (eval echo "$as_me:3968: \"$ac_link\"") >&5
3969   (eval $ac_link) 2>&5
3970   ac_status=$?
3971   echo "$as_me:3971: \$? = $ac_status" >&5
3972   (exit $ac_status); } &&
3973          { ac_try='test -s conftest$ac_exeext'
3974   { (eval echo "$as_me:3974: \"$ac_try\"") >&5
3975   (eval $ac_try) 2>&5
3976   ac_status=$?
3977   echo "$as_me:3977: \$? = $ac_status" >&5
3978   (exit $ac_status); }; }; then
3979   lt_cv_prog_cc_static_works=yes
3980 else
3981   echo "$as_me: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3983 fi
3984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3985   LDFLAGS="$save_LDFLAGS"
3986
3987 fi
3988
3989 # Belt *and* braces to stop my trousers falling down:
3990 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3991 echo "$as_me:3991: result: $lt_cv_prog_cc_static_works" >&5
3992 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3993
3994 pic_flag="$lt_cv_prog_cc_pic"
3995 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3996 wl="$lt_cv_prog_cc_wl"
3997 link_static_flag="$lt_cv_prog_cc_static"
3998 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3999 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4000
4001 # Check to see if options -o and -c are simultaneously supported by compiler
4002 echo "$as_me:4002: checking if $compiler supports -c -o file.$ac_objext" >&5
4003 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4004 if test "${lt_cv_compiler_c_o+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007
4008 $rm -r conftest 2>/dev/null
4009 mkdir conftest
4010 cd conftest
4011 echo "int some_variable = 0;" > conftest.$ac_ext
4012 mkdir out
4013 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4014 # that will create temporary files in the current directory regardless of
4015 # the output directory.  Thus, making CWD read-only will cause this test
4016 # to fail, enabling locking or at least warning the user not to do parallel
4017 # builds.
4018 chmod -w .
4019 save_CFLAGS="$CFLAGS"
4020 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4021 compiler_c_o=no
4022 if { (eval echo configure:4022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4023   # The compiler can only warn and ignore the option if not recognized
4024   # So say no if there are warnings
4025   if test -s out/conftest.err; then
4026     lt_cv_compiler_c_o=no
4027   else
4028     lt_cv_compiler_c_o=yes
4029   fi
4030 else
4031   # Append any errors to the config.log.
4032   cat out/conftest.err 1>&5
4033   lt_cv_compiler_c_o=no
4034 fi
4035 CFLAGS="$save_CFLAGS"
4036 chmod u+w .
4037 $rm conftest* out/*
4038 rmdir out
4039 cd ..
4040 rmdir conftest
4041 $rm -r conftest 2>/dev/null
4042
4043 fi
4044
4045 compiler_c_o=$lt_cv_compiler_c_o
4046 echo "$as_me:4046: result: $compiler_c_o" >&5
4047 echo "${ECHO_T}$compiler_c_o" >&6
4048
4049 if test x"$compiler_c_o" = x"yes"; then
4050   # Check to see if we can write to a .lo
4051   echo "$as_me:4051: checking if $compiler supports -c -o file.lo" >&5
4052 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4053   if test "${lt_cv_compiler_o_lo+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056
4057   lt_cv_compiler_o_lo=no
4058   save_CFLAGS="$CFLAGS"
4059   CFLAGS="$CFLAGS -c -o conftest.lo"
4060   cat >conftest.$ac_ext <<_ACEOF
4061 #line 4061 "configure"
4062 #include "confdefs.h"
4063
4064 int
4065 main ()
4066 {
4067 int some_variable = 0;
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:4073: \"$ac_compile\"") >&5
4074   (eval $ac_compile) 2>&5
4075   ac_status=$?
4076   echo "$as_me:4076: \$? = $ac_status" >&5
4077   (exit $ac_status); } &&
4078          { ac_try='test -s conftest.$ac_objext'
4079   { (eval echo "$as_me:4079: \"$ac_try\"") >&5
4080   (eval $ac_try) 2>&5
4081   ac_status=$?
4082   echo "$as_me:4082: \$? = $ac_status" >&5
4083   (exit $ac_status); }; }; then
4084       # The compiler can only warn and ignore the option if not recognized
4085     # So say no if there are warnings
4086     if test -s conftest.err; then
4087       lt_cv_compiler_o_lo=no
4088     else
4089       lt_cv_compiler_o_lo=yes
4090     fi
4091
4092 else
4093   echo "$as_me: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4095 fi
4096 rm -f conftest.$ac_objext conftest.$ac_ext
4097   CFLAGS="$save_CFLAGS"
4098
4099 fi
4100
4101   compiler_o_lo=$lt_cv_compiler_o_lo
4102   echo "$as_me:4102: result: $compiler_c_lo" >&5
4103 echo "${ECHO_T}$compiler_c_lo" >&6
4104 else
4105   compiler_o_lo=no
4106 fi
4107
4108 # Check to see if we can do hard links to lock some files if needed
4109 hard_links="nottested"
4110 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4111   # do not overwrite the value of need_locks provided by the user
4112   echo "$as_me:4112: checking if we can lock with hard links" >&5
4113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4114   hard_links=yes
4115   $rm conftest*
4116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4117   touch conftest.a
4118   ln conftest.a conftest.b 2>&5 || hard_links=no
4119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4120   echo "$as_me:4120: result: $hard_links" >&5
4121 echo "${ECHO_T}$hard_links" >&6
4122   if test "$hard_links" = no; then
4123     { echo "$as_me:4123: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4125     need_locks=warn
4126   fi
4127 else
4128   need_locks=no
4129 fi
4130
4131 if test "$GCC" = yes; then
4132   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4133   echo "$as_me:4133: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4134 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4135   echo "int some_variable = 0;" > conftest.$ac_ext
4136   save_CFLAGS="$CFLAGS"
4137   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4138   compiler_rtti_exceptions=no
4139   cat >conftest.$ac_ext <<_ACEOF
4140 #line 4140 "configure"
4141 #include "confdefs.h"
4142
4143 int
4144 main ()
4145 {
4146 int some_variable = 0;
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:4152: \"$ac_compile\"") >&5
4153   (eval $ac_compile) 2>&5
4154   ac_status=$?
4155   echo "$as_me:4155: \$? = $ac_status" >&5
4156   (exit $ac_status); } &&
4157          { ac_try='test -s conftest.$ac_objext'
4158   { (eval echo "$as_me:4158: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:4161: \$? = $ac_status" >&5
4162   (exit $ac_status); }; }; then
4163       # The compiler can only warn and ignore the option if not recognized
4164     # So say no if there are warnings
4165     if test -s conftest.err; then
4166       compiler_rtti_exceptions=no
4167     else
4168       compiler_rtti_exceptions=yes
4169     fi
4170
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4174 fi
4175 rm -f conftest.$ac_objext conftest.$ac_ext
4176   CFLAGS="$save_CFLAGS"
4177   echo "$as_me:4177: result: $compiler_rtti_exceptions" >&5
4178 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4179
4180   if test "$compiler_rtti_exceptions" = "yes"; then
4181     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4182   else
4183     no_builtin_flag=' -fno-builtin'
4184   fi
4185 fi
4186
4187 # See if the linker supports building shared libraries.
4188 echo "$as_me:4188: checking whether the linker ($LD) supports shared libraries" >&5
4189 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4190
4191 allow_undefined_flag=
4192 no_undefined_flag=
4193 need_lib_prefix=unknown
4194 need_version=unknown
4195 # when you set need_version to no, make sure it does not cause -set_version
4196 # flags to be left without arguments
4197 archive_cmds=
4198 archive_expsym_cmds=
4199 old_archive_from_new_cmds=
4200 old_archive_from_expsyms_cmds=
4201 export_dynamic_flag_spec=
4202 whole_archive_flag_spec=
4203 thread_safe_flag_spec=
4204 hardcode_into_libs=no
4205 hardcode_libdir_flag_spec=
4206 hardcode_libdir_separator=
4207 hardcode_direct=no
4208 hardcode_minus_L=no
4209 hardcode_shlibpath_var=unsupported
4210 runpath_var=
4211 link_all_deplibs=unknown
4212 always_export_symbols=no
4213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4214 # include_expsyms should be a list of space-separated symbols to be *always*
4215 # included in the symbol list
4216 include_expsyms=
4217 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4218 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4219 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4220 # as well as any symbol that contains `d'.
4221 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4222 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4223 # platforms (ab)use it in PIC code, but their linkers get confused if
4224 # the symbol is explicitly referenced.  Since portable code cannot
4225 # rely on this symbol name, it's probably fine to never include it in
4226 # preloaded symbol tables.
4227 extract_expsyms_cmds=
4228
4229 case $host_os in
4230 cygwin* | mingw* | pw32* )
4231   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4232   # When not using gcc, we currently assume that we are using
4233   # Microsoft Visual C++.
4234   if test "$GCC" != yes; then
4235     with_gnu_ld=no
4236   fi
4237   ;;
4238
4239 esac
4240
4241 ld_shlibs=yes
4242 if test "$with_gnu_ld" = yes; then
4243   # If archive_cmds runs LD, not CC, wlarc should be empty
4244   wlarc='${wl}'
4245
4246   # See if GNU ld supports shared libraries.
4247   case $host_os in
4248   aix3* | aix4* | aix5*)
4249     # On AIX, the GNU linker is very broken
4250     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4251     ld_shlibs=no
4252     cat <<EOF 1>&2
4253
4254 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4255 *** to be unable to reliably create shared libraries on AIX.
4256 *** Therefore, libtool is disabling shared libraries support.  If you
4257 *** really care for shared libraries, you may want to modify your PATH
4258 *** so that a non-GNU linker is found, and then restart.
4259
4260 EOF
4261     ;;
4262
4263   amigaos*)
4264     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)'
4265     hardcode_libdir_flag_spec='-L$libdir'
4266     hardcode_minus_L=yes
4267
4268     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4269     # that the semantics of dynamic libraries on AmigaOS, at least up
4270     # to version 4, is to share data among multiple programs linked
4271     # with the same dynamic library.  Since this doesn't match the
4272     # behavior of shared libraries on other platforms, we can use
4273     # them.
4274     ld_shlibs=no
4275     ;;
4276
4277   beos*)
4278     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4279       allow_undefined_flag=unsupported
4280       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4281       # support --undefined.  This deserves some investigation.  FIXME
4282       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4283     else
4284       ld_shlibs=no
4285     fi
4286     ;;
4287
4288   cygwin* | mingw* | pw32*)
4289     # hardcode_libdir_flag_spec is actually meaningless, as there is
4290     # no search path for DLLs.
4291     hardcode_libdir_flag_spec='-L$libdir'
4292     allow_undefined_flag=unsupported
4293     always_export_symbols=yes
4294
4295     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4296       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4297       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4298       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4299       else $CC -o impgen impgen.c ; fi)~
4300       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4301
4302     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4303
4304     # cygwin and mingw dlls have different entry points and sets of symbols
4305     # to exclude.
4306     # FIXME: what about values for MSVC?
4307     dll_entry=__cygwin_dll_entry@12
4308     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4309     case $host_os in
4310     mingw*)
4311       # mingw values
4312       dll_entry=_DllMainCRTStartup@12
4313       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4314       ;;
4315     esac
4316
4317     # mingw and cygwin differ, and it's simplest to just exclude the union
4318     # of the two symbol sets.
4319     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4320
4321     # recent cygwin and mingw systems supply a stub DllMain which the user
4322     # can override, but on older systems we have to supply one (in ltdll.c)
4323     if test "x$lt_cv_need_dllmain" = "xyes"; then
4324       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4325       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~
4326         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4327     else
4328       ltdll_obj=
4329       ltdll_cmds=
4330     fi
4331
4332     # Extract the symbol export list from an `--export-all' def file,
4333     # then regenerate the def file from the symbol export list, so that
4334     # the compiled dll only exports the symbol export list.
4335     # Be careful not to strip the DATA tag left be newer dlltools.
4336     export_symbols_cmds="$ltdll_cmds"'
4337       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4338       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4339
4340     # If the export-symbols file already is a .def file (1st line
4341     # is EXPORTS), use it as is.
4342     # If DATA tags from a recent dlltool are present, honour them!
4343     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4344         cp $export_symbols $output_objdir/$soname-def;
4345       else
4346         echo EXPORTS > $output_objdir/$soname-def;
4347         _lt_hint=1;
4348         cat $export_symbols | while read symbol; do
4349          set dummy \$symbol;
4350          case \$# in
4351            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4352            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4353          esac;
4354          _lt_hint=`expr 1 + \$_lt_hint`;
4355         done;
4356       fi~
4357       '"$ltdll_cmds"'
4358       $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~
4359       $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~
4360       $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~
4361       $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~
4362       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4363     ;;
4364
4365   netbsd*)
4366     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4367       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4368       wlarc=
4369     else
4370       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4371       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4372     fi
4373     ;;
4374
4375   solaris* | sysv5*)
4376     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4377       ld_shlibs=no
4378       cat <<EOF 1>&2
4379
4380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4381 *** create shared libraries on Solaris systems.  Therefore, libtool
4382 *** is disabling shared libraries support.  We urge you to upgrade GNU
4383 *** binutils to release 2.9.1 or newer.  Another option is to modify
4384 *** your PATH or compiler configuration so that the native linker is
4385 *** used, and then restart.
4386
4387 EOF
4388     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4389       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4390       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4391     else
4392       ld_shlibs=no
4393     fi
4394     ;;
4395
4396   sunos4*)
4397     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4398     wlarc=
4399     hardcode_direct=yes
4400     hardcode_shlibpath_var=no
4401     ;;
4402
4403   *)
4404     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4405       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4406       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4407     else
4408       ld_shlibs=no
4409     fi
4410     ;;
4411   esac
4412
4413   if test "$ld_shlibs" = yes; then
4414     runpath_var=LD_RUN_PATH
4415     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4416     export_dynamic_flag_spec='${wl}--export-dynamic'
4417     case $host_os in
4418     cygwin* | mingw* | pw32*)
4419       # dlltool doesn't understand --whole-archive et. al.
4420       whole_archive_flag_spec=
4421       ;;
4422     *)
4423       # ancient GNU ld didn't support --whole-archive et. al.
4424       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4425         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4426       else
4427         whole_archive_flag_spec=
4428       fi
4429       ;;
4430     esac
4431   fi
4432 else
4433   # PORTME fill in a description of your system's linker (not GNU ld)
4434   case $host_os in
4435   aix3*)
4436     allow_undefined_flag=unsupported
4437     always_export_symbols=yes
4438     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'
4439     # Note: this linker hardcodes the directories in LIBPATH if there
4440     # are no directories specified by -L.
4441     hardcode_minus_L=yes
4442     if test "$GCC" = yes && test -z "$link_static_flag"; then
4443       # Neither direct hardcoding nor static linking is supported with a
4444       # broken collect2.
4445       hardcode_direct=unsupported
4446     fi
4447     ;;
4448
4449   aix4* | aix5*)
4450     # When large executables or shared objects are built, AIX ld can
4451     # have problems creating the table of contents.  If linking a library
4452     # or program results in "error TOC overflow" add -mminimal-toc to
4453     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4454     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4455
4456     archive_cmds=''
4457     hardcode_libdir_separator=':'
4458     if test "$GCC" = yes; then
4459       collect2name=`${CC} -print-prog-name=collect2`
4460       if test -f "$collect2name" && \
4461          strings "$collect2name" | grep resolve_lib_name >/dev/null
4462       then
4463         # We have reworked collect2
4464         hardcode_direct=yes
4465       else
4466         # We have old collect2
4467         hardcode_direct=unsupported
4468         # It fails to find uninstalled libraries when the uninstalled
4469         # path is not listed in the libpath.  Setting hardcode_minus_L
4470         # to unsupported forces relinking
4471         hardcode_minus_L=yes
4472         hardcode_libdir_flag_spec='-L$libdir'
4473         hardcode_libdir_separator=
4474       fi
4475       shared_flag='-shared'
4476     else
4477       if test "$host_cpu" = ia64; then
4478         shared_flag='-G'
4479       else
4480         shared_flag='${wl}-bM:SRE'
4481       fi
4482       hardcode_direct=yes
4483     fi
4484
4485     if test "$host_cpu" = ia64; then
4486       # On IA64, the linker does run time linking by default, so we don't
4487       # have to do anything special.
4488       aix_use_runtimelinking=no
4489       exp_sym_flag='-Bexport'
4490       no_entry_flag=""
4491     else
4492       # Test if we are trying to use run time linking, or normal AIX style linking.
4493       # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4494       aix_use_runtimelinking=no
4495       for ld_flag in $LDFLAGS; do
4496         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4497           aix_use_runtimelinking=yes
4498           break
4499         fi
4500       done
4501       exp_sym_flag='-bexport'
4502       no_entry_flag='-bnoentry'
4503     fi
4504     # It seems that -bexpall can do strange things, so it is better to
4505     # generate a list of symbols to export.
4506     always_export_symbols=yes
4507     if test "$aix_use_runtimelinking" = yes; then
4508       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4509       allow_undefined_flag=' -Wl,-G'
4510       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"
4511     else
4512       if test "$host_cpu" = ia64; then
4513         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4514        allow_undefined_flag="-znodefs"
4515         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"
4516       else
4517         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4518         # Warning - without using the other run time loading flags, -berok will
4519         #           link without error, but may produce a broken library.
4520         allow_undefined_flag='${wl}-berok"
4521         # This is a bit strange, but is similar to how AIX traditionally builds
4522         # it's shared libraries.
4523         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'
4524       fi
4525     fi
4526     ;;
4527
4528   amigaos*)
4529     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)'
4530     hardcode_libdir_flag_spec='-L$libdir'
4531     hardcode_minus_L=yes
4532     # see comment about different semantics on the GNU ld section
4533     ld_shlibs=no
4534     ;;
4535
4536   cygwin* | mingw* | pw32*)
4537     # When not using gcc, we currently assume that we are using
4538     # Microsoft Visual C++.
4539     # hardcode_libdir_flag_spec is actually meaningless, as there is
4540     # no search path for DLLs.
4541     hardcode_libdir_flag_spec=' '
4542     allow_undefined_flag=unsupported
4543     # Tell ltmain to make .lib files, not .a files.
4544     libext=lib
4545     # FIXME: Setting linknames here is a bad hack.
4546     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4547     # The linker will automatically build a .lib file if we build a DLL.
4548     old_archive_from_new_cmds='true'
4549     # FIXME: Should let the user specify the lib program.
4550     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4551     fix_srcfile_path='`cygpath -w "$srcfile"`'
4552     ;;
4553
4554   darwin* | rhapsody*)
4555     allow_undefined_flag='-undefined suppress'
4556     # FIXME: Relying on posixy $() will cause problems for
4557     #        cross-compilation, but unfortunately the echo tests do not
4558     #        yet detect zsh echo's removal of \ escapes.
4559     archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4560     # We need to add '_' to the symbols in $export_symbols first
4561     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4562     hardcode_direct=yes
4563     hardcode_shlibpath_var=no
4564     whole_archive_flag_spec='-all_load $convenience'
4565     ;;
4566
4567   freebsd1*)
4568     ld_shlibs=no
4569     ;;
4570
4571   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4572   # support.  Future versions do this automatically, but an explicit c++rt0.o
4573   # does not break anything, and helps significantly (at the cost of a little
4574   # extra space).
4575   freebsd2.2*)
4576     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4577     hardcode_libdir_flag_spec='-R$libdir'
4578     hardcode_direct=yes
4579     hardcode_shlibpath_var=no
4580     ;;
4581
4582   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4583   freebsd2*)
4584     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4585     hardcode_direct=yes
4586     hardcode_minus_L=yes
4587     hardcode_shlibpath_var=no
4588     ;;
4589
4590   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4591   freebsd*)
4592     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4593     hardcode_libdir_flag_spec='-R$libdir'
4594     hardcode_direct=yes
4595     hardcode_shlibpath_var=no
4596     ;;
4597
4598   hpux9* | hpux10* | hpux11*)
4599     case $host_os in
4600     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' ;;
4601     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4602     esac
4603     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4604     hardcode_libdir_separator=:
4605     hardcode_direct=yes
4606     hardcode_minus_L=yes # Not in the search PATH, but as the default
4607                          # location of the library.
4608     export_dynamic_flag_spec='${wl}-E'
4609     ;;
4610
4611   irix5* | irix6*)
4612     if test "$GCC" = yes; then
4613       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'
4614     else
4615       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'
4616     fi
4617     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4618     hardcode_libdir_separator=:
4619     link_all_deplibs=yes
4620     ;;
4621
4622   netbsd*)
4623     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4624       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4625     else
4626       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4627     fi
4628     hardcode_libdir_flag_spec='-R$libdir'
4629     hardcode_direct=yes
4630     hardcode_shlibpath_var=no
4631     ;;
4632
4633   newsos6)
4634     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4635     hardcode_direct=yes
4636     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4637     hardcode_libdir_separator=:
4638     hardcode_shlibpath_var=no
4639     ;;
4640
4641   openbsd*)
4642     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4643     hardcode_libdir_flag_spec='-R$libdir'
4644     hardcode_direct=yes
4645     hardcode_shlibpath_var=no
4646     ;;
4647
4648   os2*)
4649     hardcode_libdir_flag_spec='-L$libdir'
4650     hardcode_minus_L=yes
4651     allow_undefined_flag=unsupported
4652     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'
4653     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4654     ;;
4655
4656   osf3*)
4657     if test "$GCC" = yes; then
4658       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4659       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'
4660     else
4661       allow_undefined_flag=' -expect_unresolved \*'
4662       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'
4663     fi
4664     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4665     hardcode_libdir_separator=:
4666     ;;
4667
4668   osf4* | osf5*)        # as osf3* with the addition of -msym flag
4669     if test "$GCC" = yes; then
4670       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4671       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'
4672       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4673     else
4674       allow_undefined_flag=' -expect_unresolved \*'
4675       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'
4676       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4677       $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'
4678
4679       #Both c and cxx compiler support -rpath directly
4680       hardcode_libdir_flag_spec='-rpath $libdir'
4681     fi
4682     hardcode_libdir_separator=:
4683     ;;
4684
4685   sco3.2v5*)
4686     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4687     hardcode_shlibpath_var=no
4688     runpath_var=LD_RUN_PATH
4689     hardcode_runpath_var=yes
4690     ;;
4691
4692   solaris*)
4693     no_undefined_flag=' -z defs'
4694     # $CC -shared without GNU ld will not create a library from C++
4695     # object files and a static libstdc++, better avoid it by now
4696     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4697     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4698                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4699     hardcode_libdir_flag_spec='-R$libdir'
4700     hardcode_shlibpath_var=no
4701     case $host_os in
4702     solaris2.[0-5] | solaris2.[0-5].*) ;;
4703     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4704       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4705     esac
4706     link_all_deplibs=yes
4707     ;;
4708
4709   sunos4*)
4710     if test "x$host_vendor" = xsequent; then
4711       # Use $CC to link under sequent, because it throws in some extra .o
4712       # files that make .init and .fini sections work.
4713       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4714     else
4715       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4716     fi
4717     hardcode_libdir_flag_spec='-L$libdir'
4718     hardcode_direct=yes
4719     hardcode_minus_L=yes
4720     hardcode_shlibpath_var=no
4721     ;;
4722
4723   sysv4)
4724     if test "x$host_vendor" = xsno; then
4725       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4726       hardcode_direct=yes # is this really true???
4727     else
4728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4729       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4730     fi
4731     runpath_var='LD_RUN_PATH'
4732     hardcode_shlibpath_var=no
4733     ;;
4734
4735   sysv4.3*)
4736     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4737     hardcode_shlibpath_var=no
4738     export_dynamic_flag_spec='-Bexport'
4739     ;;
4740
4741   sysv5*)
4742     no_undefined_flag=' -z text'
4743     # $CC -shared without GNU ld will not create a library from C++
4744     # object files and a static libstdc++, better avoid it by now
4745     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4746     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4747                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4748     hardcode_libdir_flag_spec=
4749     hardcode_shlibpath_var=no
4750     runpath_var='LD_RUN_PATH'
4751     ;;
4752
4753   uts4*)
4754     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4755     hardcode_libdir_flag_spec='-L$libdir'
4756     hardcode_shlibpath_var=no
4757     ;;
4758
4759   dgux*)
4760     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4761     hardcode_libdir_flag_spec='-L$libdir'
4762     hardcode_shlibpath_var=no
4763     ;;
4764
4765   sysv4*MP*)
4766     if test -d /usr/nec; then
4767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4768       hardcode_shlibpath_var=no
4769       runpath_var=LD_RUN_PATH
4770       hardcode_runpath_var=yes
4771       ld_shlibs=yes
4772     fi
4773     ;;
4774
4775   sysv4.2uw2*)
4776     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4777     hardcode_direct=yes
4778     hardcode_minus_L=no
4779     hardcode_shlibpath_var=no
4780     hardcode_runpath_var=yes
4781     runpath_var=LD_RUN_PATH
4782     ;;
4783
4784   sysv5uw7* | unixware7*)
4785     no_undefined_flag='${wl}-z ${wl}text'
4786     if test "$GCC" = yes; then
4787       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4788     else
4789       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4790     fi
4791     runpath_var='LD_RUN_PATH'
4792     hardcode_shlibpath_var=no
4793     ;;
4794
4795   *)
4796     ld_shlibs=no
4797     ;;
4798   esac
4799 fi
4800 echo "$as_me:4800: result: $ld_shlibs" >&5
4801 echo "${ECHO_T}$ld_shlibs" >&6
4802 test "$ld_shlibs" = no && can_build_shared=no
4803
4804 # Check hardcoding attributes.
4805 echo "$as_me:4805: checking how to hardcode library paths into programs" >&5
4806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4807 hardcode_action=
4808 if test -n "$hardcode_libdir_flag_spec" || \
4809    test -n "$runpath_var"; then
4810
4811   # We can hardcode non-existant directories.
4812   if test "$hardcode_direct" != no &&
4813      # If the only mechanism to avoid hardcoding is shlibpath_var, we
4814      # have to relink, otherwise we might link with an installed library
4815      # when we should be linking with a yet-to-be-installed one
4816      ## test "$hardcode_shlibpath_var" != no &&
4817      test "$hardcode_minus_L" != no; then
4818     # Linking always hardcodes the temporary library directory.
4819     hardcode_action=relink
4820   else
4821     # We can link without hardcoding, and we can hardcode nonexisting dirs.
4822     hardcode_action=immediate
4823   fi
4824 else
4825   # We cannot hardcode anything, or else we can only hardcode existing
4826   # directories.
4827   hardcode_action=unsupported
4828 fi
4829 echo "$as_me:4829: result: $hardcode_action" >&5
4830 echo "${ECHO_T}$hardcode_action" >&6
4831
4832 striplib=
4833 old_striplib=
4834 echo "$as_me:4834: checking whether stripping libraries is possible" >&5
4835 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4836 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4837   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4838   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4839   echo "$as_me:4839: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6
4841 else
4842   echo "$as_me:4842: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4844 fi
4845
4846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4848
4849 # PORTME Fill in your ld.so characteristics
4850 echo "$as_me:4850: checking dynamic linker characteristics" >&5
4851 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4852 library_names_spec=
4853 libname_spec='lib$name'
4854 soname_spec=
4855 postinstall_cmds=
4856 postuninstall_cmds=
4857 finish_cmds=
4858 finish_eval=
4859 shlibpath_var=
4860 shlibpath_overrides_runpath=unknown
4861 version_type=none
4862 dynamic_linker="$host_os ld.so"
4863 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4864 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4865
4866 case $host_os in
4867 aix3*)
4868   version_type=linux
4869   library_names_spec='${libname}${release}.so$versuffix $libname.a'
4870   shlibpath_var=LIBPATH
4871
4872   # AIX has no versioning support, so we append a major version to the name.
4873   soname_spec='${libname}${release}.so$major'
4874   ;;
4875
4876 aix4* | aix5*)
4877   version_type=linux
4878   if test "$host_cpu" = ia64; then
4879     # AIX 5 supports IA64
4880     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4881     shlibpath_var=LD_LIBRARY_PATH
4882   else
4883     # With GCC up to 2.95.x, collect2 would create an import file
4884     # for dependence libraries.  The import file would start with
4885     # the line `#! .'.  This would cause the generated library to
4886     # depend on `.', always an invalid library.  This was fixed in
4887     # development snapshots of GCC prior to 3.0.
4888     case $host_os in
4889        aix4 | aix4.[01] | aix4.[01].*)
4890       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4891            echo ' yes '
4892            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4893         :
4894       else
4895         can_build_shared=no
4896       fi
4897       ;;
4898     esac
4899     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4900     # soname into executable. Probably we can add versioning support to
4901     # collect2, so additional links can be useful in future.
4902     if test "$aix_use_runtimelinking" = yes; then
4903       # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4904       # lib<name>.a to let people know that these are not typical AIX shared libraries.
4905       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4906     else
4907       # We preserve .a as extension for shared libraries through AIX4.2
4908       # and later when we are not doing run time linking.
4909       library_names_spec='${libname}${release}.a $libname.a'
4910       soname_spec='${libname}${release}.so$major'
4911     fi
4912     shlibpath_var=LIBPATH
4913     deplibs_check_method=pass_all
4914   fi
4915   ;;
4916
4917 amigaos*)
4918   library_names_spec='$libname.ixlibrary $libname.a'
4919   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4920   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'
4921   ;;
4922
4923 beos*)
4924   library_names_spec='${libname}.so'
4925   dynamic_linker="$host_os ld.so"
4926   shlibpath_var=LIBRARY_PATH
4927   ;;
4928
4929 bsdi4*)
4930   version_type=linux
4931   need_version=no
4932   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4933   soname_spec='${libname}${release}.so$major'
4934   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4935   shlibpath_var=LD_LIBRARY_PATH
4936   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4937   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4938   export_dynamic_flag_spec=-rdynamic
4939   # the default ld.so.conf also contains /usr/contrib/lib and
4940   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4941   # libtool to hard-code these into programs
4942   ;;
4943
4944 cygwin* | mingw* | pw32*)
4945   version_type=windows
4946   need_version=no
4947   need_lib_prefix=no
4948   case $GCC,$host_os in
4949   yes,cygwin*)
4950     library_names_spec='$libname.dll.a'
4951     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4952     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4953       dldir=$destdir/`dirname \$dlpath`~
4954       test -d \$dldir || mkdir -p \$dldir~
4955       $install_prog .libs/$dlname \$dldir/$dlname'
4956     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4957       dlpath=$dir/\$dldll~
4958        $rm \$dlpath'
4959     ;;
4960   yes,mingw*)
4961     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4962     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4963     ;;
4964   yes,pw32*)
4965     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4966     ;;
4967   *)
4968     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4969     ;;
4970   esac
4971   dynamic_linker='Win32 ld.exe'
4972   # FIXME: first we should search . and the directory the executable is in
4973   shlibpath_var=PATH
4974   ;;
4975
4976 darwin* | rhapsody*)
4977   dynamic_linker="$host_os dyld"
4978   version_type=darwin
4979   need_lib_prefix=no
4980   need_version=no
4981   # FIXME: Relying on posixy $() will cause problems for
4982   #        cross-compilation, but unfortunately the echo tests do not
4983   #        yet detect zsh echo's removal of \ escapes.
4984   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)'
4985   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4986   shlibpath_overrides_runpath=yes
4987   shlibpath_var=DYLD_LIBRARY_PATH
4988   ;;
4989
4990 freebsd1*)
4991   dynamic_linker=no
4992   ;;
4993
4994 freebsd*)
4995   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4996   version_type=freebsd-$objformat
4997   case $version_type in
4998     freebsd-elf*)
4999       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5000       need_version=no
5001       need_lib_prefix=no
5002       ;;
5003     freebsd-*)
5004       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5005       need_version=yes
5006       ;;
5007   esac
5008   shlibpath_var=LD_LIBRARY_PATH
5009   case $host_os in
5010   freebsd2*)
5011     shlibpath_overrides_runpath=yes
5012     ;;
5013   *)
5014     shlibpath_overrides_runpath=no
5015     hardcode_into_libs=yes
5016     ;;
5017   esac
5018   ;;
5019
5020 gnu*)
5021   version_type=linux
5022   need_lib_prefix=no
5023   need_version=no
5024   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5025   soname_spec='${libname}${release}.so$major'
5026   shlibpath_var=LD_LIBRARY_PATH
5027   hardcode_into_libs=yes
5028   ;;
5029
5030 hpux9* | hpux10* | hpux11*)
5031   # Give a soname corresponding to the major version so that dld.sl refuses to
5032   # link against other versions.
5033   dynamic_linker="$host_os dld.sl"
5034   version_type=sunos
5035   need_lib_prefix=no
5036   need_version=no
5037   shlibpath_var=SHLIB_PATH
5038   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5039   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5040   soname_spec='${libname}${release}.sl$major'
5041   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5042   postinstall_cmds='chmod 555 $lib'
5043   ;;
5044
5045 irix5* | irix6*)
5046   version_type=irix
5047   need_lib_prefix=no
5048   need_version=no
5049   soname_spec='${libname}${release}.so$major'
5050   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5051   case $host_os in
5052   irix5*)
5053     libsuff= shlibsuff=
5054     ;;
5055   *)
5056     case $LD in # libtool.m4 will add one of these switches to LD
5057     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5058     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5059     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5060     *) libsuff= shlibsuff= libmagic=never-match;;
5061     esac
5062     ;;
5063   esac
5064   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5065   shlibpath_overrides_runpath=no
5066   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5067   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5068   ;;
5069
5070 # No shared lib support for Linux oldld, aout, or coff.
5071 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5072   dynamic_linker=no
5073   ;;
5074
5075 # This must be Linux ELF.
5076 linux-gnu*)
5077   version_type=linux
5078   need_lib_prefix=no
5079   need_version=no
5080   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5081   soname_spec='${libname}${release}.so$major'
5082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5083   shlibpath_var=LD_LIBRARY_PATH
5084   shlibpath_overrides_runpath=no
5085   # This implies no fast_install, which is unacceptable.
5086   # Some rework will be needed to allow for fast_install
5087   # before this can be enabled.
5088   hardcode_into_libs=yes
5089
5090   # We used to test for /lib/ld.so.1 and disable shared libraries on
5091   # powerpc, because MkLinux only supported shared libraries with the
5092   # GNU dynamic linker.  Since this was broken with cross compilers,
5093   # most powerpc-linux boxes support dynamic linking these days and
5094   # people can always --disable-shared, the test was removed, and we
5095   # assume the GNU/Linux dynamic linker is in use.
5096   dynamic_linker='GNU/Linux ld.so'
5097   ;;
5098
5099 netbsd*)
5100   version_type=sunos
5101   need_lib_prefix=no
5102   need_version=no
5103   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5104     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5105     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5106     dynamic_linker='NetBSD (a.out) ld.so'
5107   else
5108     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5109     soname_spec='${libname}${release}.so$major'
5110     dynamic_linker='NetBSD ld.elf_so'
5111   fi
5112   shlibpath_var=LD_LIBRARY_PATH
5113   shlibpath_overrides_runpath=yes
5114   hardcode_into_libs=yes
5115   ;;
5116
5117 newsos6)
5118   version_type=linux
5119   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5120   shlibpath_var=LD_LIBRARY_PATH
5121   shlibpath_overrides_runpath=yes
5122   ;;
5123
5124 openbsd*)
5125   version_type=sunos
5126   if test "$with_gnu_ld" = yes; then
5127     need_lib_prefix=no
5128     need_version=no
5129   fi
5130   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5131   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5132   shlibpath_var=LD_LIBRARY_PATH
5133   ;;
5134
5135 os2*)
5136   libname_spec='$name'
5137   need_lib_prefix=no
5138   library_names_spec='$libname.dll $libname.a'
5139   dynamic_linker='OS/2 ld.exe'
5140   shlibpath_var=LIBPATH
5141   ;;
5142
5143 osf3* | osf4* | osf5*)
5144   version_type=osf
5145   need_version=no
5146   soname_spec='${libname}${release}.so'
5147   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5148   shlibpath_var=LD_LIBRARY_PATH
5149   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5150   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5151   ;;
5152
5153 sco3.2v5*)
5154   version_type=osf
5155   soname_spec='${libname}${release}.so$major'
5156   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5157   shlibpath_var=LD_LIBRARY_PATH
5158   ;;
5159
5160 solaris*)
5161   version_type=linux
5162   need_lib_prefix=no
5163   need_version=no
5164   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5165   soname_spec='${libname}${release}.so$major'
5166   shlibpath_var=LD_LIBRARY_PATH
5167   shlibpath_overrides_runpath=yes
5168   hardcode_into_libs=yes
5169   # ldd complains unless libraries are executable
5170   postinstall_cmds='chmod +x $lib'
5171   ;;
5172
5173 sunos4*)
5174   version_type=sunos
5175   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5176   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5177   shlibpath_var=LD_LIBRARY_PATH
5178   shlibpath_overrides_runpath=yes
5179   if test "$with_gnu_ld" = yes; then
5180     need_lib_prefix=no
5181   fi
5182   need_version=yes
5183   ;;
5184
5185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5186   version_type=linux
5187   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5188   soname_spec='${libname}${release}.so$major'
5189   shlibpath_var=LD_LIBRARY_PATH
5190   case $host_vendor in
5191     sni)
5192       shlibpath_overrides_runpath=no
5193       ;;
5194     motorola)
5195       need_lib_prefix=no
5196       need_version=no
5197       shlibpath_overrides_runpath=no
5198       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5199       ;;
5200   esac
5201   ;;
5202
5203 uts4*)
5204   version_type=linux
5205   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5206   soname_spec='${libname}${release}.so$major'
5207   shlibpath_var=LD_LIBRARY_PATH
5208   ;;
5209
5210 dgux*)
5211   version_type=linux
5212   need_lib_prefix=no
5213   need_version=no
5214   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5215   soname_spec='${libname}${release}.so$major'
5216   shlibpath_var=LD_LIBRARY_PATH
5217   ;;
5218
5219 sysv4*MP*)
5220   if test -d /usr/nec ;then
5221     version_type=linux
5222     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5223     soname_spec='$libname.so.$major'
5224     shlibpath_var=LD_LIBRARY_PATH
5225   fi
5226   ;;
5227
5228 *)
5229   dynamic_linker=no
5230   ;;
5231 esac
5232 echo "$as_me:5232: result: $dynamic_linker" >&5
5233 echo "${ECHO_T}$dynamic_linker" >&6
5234 test "$dynamic_linker" = no && can_build_shared=no
5235
5236 # Report the final consequences.
5237 echo "$as_me:5237: checking if libtool supports shared libraries" >&5
5238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5239 echo "$as_me:5239: result: $can_build_shared" >&5
5240 echo "${ECHO_T}$can_build_shared" >&6
5241
5242 if test "$hardcode_action" = relink; then
5243   # Fast installation is not supported
5244   enable_fast_install=no
5245 elif test "$shlibpath_overrides_runpath" = yes ||
5246      test "$enable_shared" = no; then
5247   # Fast installation is not necessary
5248   enable_fast_install=needless
5249 fi
5250
5251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5252 if test "$GCC" = yes; then
5253   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5254 fi
5255
5256 if test "x$enable_dlopen" != xyes; then
5257   enable_dlopen=unknown
5258   enable_dlopen_self=unknown
5259   enable_dlopen_self_static=unknown
5260 else
5261   lt_cv_dlopen=no
5262   lt_cv_dlopen_libs=
5263
5264   case $host_os in
5265   beos*)
5266     lt_cv_dlopen="load_add_on"
5267     lt_cv_dlopen_libs=
5268     lt_cv_dlopen_self=yes
5269     ;;
5270
5271   cygwin* | mingw* | pw32*)
5272     lt_cv_dlopen="LoadLibrary"
5273     lt_cv_dlopen_libs=
5274    ;;
5275
5276   *)
5277     echo "$as_me:5277: checking for dlopen in -ldl" >&5
5278 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-ldl  $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line 5285 "configure"
5286 #include "confdefs.h"
5287
5288 /* Override any gcc2 internal prototype to avoid an error.  */
5289 #ifdef __cplusplus
5290 extern "C"
5291 #endif
5292 /* We use char because int might match the return type of a gcc2
5293    builtin and then its argument prototype would still apply.  */
5294 char dlopen ();
5295 int
5296 main ()
5297 {
5298 dlopen ();
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext conftest$ac_exeext
5304 if { (eval echo "$as_me:5304: \"$ac_link\"") >&5
5305   (eval $ac_link) 2>&5
5306   ac_status=$?
5307   echo "$as_me:5307: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -s conftest$ac_exeext'
5310   { (eval echo "$as_me:5310: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:5313: \$? = $ac_status" >&5
5314   (exit $ac_status); }; }; then
5315   ac_cv_lib_dl_dlopen=yes
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 ac_cv_lib_dl_dlopen=no
5320 fi
5321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5323 fi
5324 echo "$as_me:5324: result: $ac_cv_lib_dl_dlopen" >&5
5325 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5326 if test $ac_cv_lib_dl_dlopen = yes; then
5327   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5328 else
5329   echo "$as_me:5329: checking for dlopen" >&5
5330 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5331 if test "${ac_cv_func_dlopen+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   cat >conftest.$ac_ext <<_ACEOF
5335 #line 5335 "configure"
5336 #include "confdefs.h"
5337 /* System header to define __stub macros and hopefully few prototypes,
5338     which can conflict with char dlopen (); below.  */
5339 #include <assert.h>
5340 /* Override any gcc2 internal prototype to avoid an error.  */
5341 #ifdef __cplusplus
5342 extern "C"
5343 #endif
5344 /* We use char because int might match the return type of a gcc2
5345    builtin and then its argument prototype would still apply.  */
5346 char dlopen ();
5347 char (*f) ();
5348
5349 int
5350 main ()
5351 {
5352 /* The GNU C library defines this for functions which it implements
5353     to always fail with ENOSYS.  Some functions are actually named
5354     something starting with __ and the normal name is an alias.  */
5355 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5356 choke me
5357 #else
5358 f = dlopen;
5359 #endif
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:5366: \"$ac_link\"") >&5
5367   (eval $ac_link) 2>&5
5368   ac_status=$?
5369   echo "$as_me:5369: \$? = $ac_status" >&5
5370   (exit $ac_status); } &&
5371          { ac_try='test -s conftest$ac_exeext'
5372   { (eval echo "$as_me:5372: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:5375: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_cv_func_dlopen=yes
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 ac_cv_func_dlopen=no
5382 fi
5383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5384 fi
5385 echo "$as_me:5385: result: $ac_cv_func_dlopen" >&5
5386 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5387 if test $ac_cv_func_dlopen = yes; then
5388   lt_cv_dlopen="dlopen"
5389 else
5390   echo "$as_me:5390: checking for shl_load" >&5
5391 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5392 if test "${ac_cv_func_shl_load+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   cat >conftest.$ac_ext <<_ACEOF
5396 #line 5396 "configure"
5397 #include "confdefs.h"
5398 /* System header to define __stub macros and hopefully few prototypes,
5399     which can conflict with char shl_load (); below.  */
5400 #include <assert.h>
5401 /* Override any gcc2 internal prototype to avoid an error.  */
5402 #ifdef __cplusplus
5403 extern "C"
5404 #endif
5405 /* We use char because int might match the return type of a gcc2
5406    builtin and then its argument prototype would still apply.  */
5407 char shl_load ();
5408 char (*f) ();
5409
5410 int
5411 main ()
5412 {
5413 /* The GNU C library defines this for functions which it implements
5414     to always fail with ENOSYS.  Some functions are actually named
5415     something starting with __ and the normal name is an alias.  */
5416 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5417 choke me
5418 #else
5419 f = shl_load;
5420 #endif
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:5427: \"$ac_link\"") >&5
5428   (eval $ac_link) 2>&5
5429   ac_status=$?
5430   echo "$as_me:5430: \$? = $ac_status" >&5
5431   (exit $ac_status); } &&
5432          { ac_try='test -s conftest$ac_exeext'
5433   { (eval echo "$as_me:5433: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:5436: \$? = $ac_status" >&5
5437   (exit $ac_status); }; }; then
5438   ac_cv_func_shl_load=yes
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_func_shl_load=no
5443 fi
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 fi
5446 echo "$as_me:5446: result: $ac_cv_func_shl_load" >&5
5447 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5448 if test $ac_cv_func_shl_load = yes; then
5449   lt_cv_dlopen="shl_load"
5450 else
5451   echo "$as_me:5451: checking for dlopen in -lsvld" >&5
5452 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5453 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456   ac_check_lib_save_LIBS=$LIBS
5457 LIBS="-lsvld  $LIBS"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line 5459 "configure"
5460 #include "confdefs.h"
5461
5462 /* Override any gcc2 internal prototype to avoid an error.  */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 /* We use char because int might match the return type of a gcc2
5467    builtin and then its argument prototype would still apply.  */
5468 char dlopen ();
5469 int
5470 main ()
5471 {
5472 dlopen ();
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:5478: \"$ac_link\"") >&5
5479   (eval $ac_link) 2>&5
5480   ac_status=$?
5481   echo "$as_me:5481: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -s conftest$ac_exeext'
5484   { (eval echo "$as_me:5484: \"$ac_try\"") >&5
5485   (eval $ac_try) 2>&5
5486   ac_status=$?
5487   echo "$as_me:5487: \$? = $ac_status" >&5
5488   (exit $ac_status); }; }; then
5489   ac_cv_lib_svld_dlopen=yes
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 ac_cv_lib_svld_dlopen=no
5494 fi
5495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5496 LIBS=$ac_check_lib_save_LIBS
5497 fi
5498 echo "$as_me:5498: result: $ac_cv_lib_svld_dlopen" >&5
5499 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5500 if test $ac_cv_lib_svld_dlopen = yes; then
5501   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5502 else
5503   echo "$as_me:5503: checking for shl_load in -ldld" >&5
5504 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5505 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   ac_check_lib_save_LIBS=$LIBS
5509 LIBS="-ldld  $LIBS"
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line 5511 "configure"
5512 #include "confdefs.h"
5513
5514 /* Override any gcc2 internal prototype to avoid an error.  */
5515 #ifdef __cplusplus
5516 extern "C"
5517 #endif
5518 /* We use char because int might match the return type of a gcc2
5519    builtin and then its argument prototype would still apply.  */
5520 char shl_load ();
5521 int
5522 main ()
5523 {
5524 shl_load ();
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:5530: \"$ac_link\"") >&5
5531   (eval $ac_link) 2>&5
5532   ac_status=$?
5533   echo "$as_me:5533: \$? = $ac_status" >&5
5534   (exit $ac_status); } &&
5535          { ac_try='test -s conftest$ac_exeext'
5536   { (eval echo "$as_me:5536: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:5539: \$? = $ac_status" >&5
5540   (exit $ac_status); }; }; then
5541   ac_cv_lib_dld_shl_load=yes
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5545 ac_cv_lib_dld_shl_load=no
5546 fi
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548 LIBS=$ac_check_lib_save_LIBS
5549 fi
5550 echo "$as_me:5550: result: $ac_cv_lib_dld_shl_load" >&5
5551 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5552 if test $ac_cv_lib_dld_shl_load = yes; then
5553   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5554 fi
5555
5556 fi
5557
5558 fi
5559
5560 fi
5561
5562 fi
5563
5564     ;;
5565   esac
5566
5567   if test "x$lt_cv_dlopen" != xno; then
5568     enable_dlopen=yes
5569   else
5570     enable_dlopen=no
5571   fi
5572
5573   case $lt_cv_dlopen in
5574   dlopen)
5575     save_CPPFLAGS="$CPPFLAGS"
5576         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5577
5578     save_LDFLAGS="$LDFLAGS"
5579     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5580
5581     save_LIBS="$LIBS"
5582     LIBS="$lt_cv_dlopen_libs $LIBS"
5583
5584     echo "$as_me:5584: checking whether a program can dlopen itself" >&5
5585 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5586 if test "${lt_cv_dlopen_self+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589           if test "$cross_compiling" = yes; then :
5590   lt_cv_dlopen_self=cross
5591 else
5592     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5593   lt_status=$lt_dlunknown
5594   cat > conftest.$ac_ext <<EOF
5595 #line 5595 "configure"
5596 #include "confdefs.h"
5597
5598 #if HAVE_DLFCN_H
5599 #include <dlfcn.h>
5600 #endif
5601
5602 #include <stdio.h>
5603
5604 #ifdef RTLD_GLOBAL
5605 #  define LT_DLGLOBAL           RTLD_GLOBAL
5606 #else
5607 #  ifdef DL_GLOBAL
5608 #    define LT_DLGLOBAL         DL_GLOBAL
5609 #  else
5610 #    define LT_DLGLOBAL         0
5611 #  endif
5612 #endif
5613
5614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5615    find out it does not work in some platform. */
5616 #ifndef LT_DLLAZY_OR_NOW
5617 #  ifdef RTLD_LAZY
5618 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5619 #  else
5620 #    ifdef DL_LAZY
5621 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5622 #    else
5623 #      ifdef RTLD_NOW
5624 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5625 #      else
5626 #        ifdef DL_NOW
5627 #          define LT_DLLAZY_OR_NOW      DL_NOW
5628 #        else
5629 #          define LT_DLLAZY_OR_NOW      0
5630 #        endif
5631 #      endif
5632 #    endif
5633 #  endif
5634 #endif
5635
5636 #ifdef __cplusplus
5637 extern "C" void exit (int);
5638 #endif
5639
5640 void fnord() { int i=42;}
5641 int main ()
5642 {
5643   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5644   int status = $lt_dlunknown;
5645
5646   if (self)
5647     {
5648       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5649       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5650       /* dlclose (self); */
5651     }
5652
5653     exit (status);
5654 }
5655 EOF
5656   if { (eval echo "$as_me:5656: \"$ac_link\"") >&5
5657   (eval $ac_link) 2>&5
5658   ac_status=$?
5659   echo "$as_me:5659: \$? = $ac_status" >&5
5660   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5661     (./conftest; exit; ) 2>/dev/null
5662     lt_status=$?
5663     case x$lt_status in
5664       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5665       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5666       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5667     esac
5668   else :
5669     # compilation failed
5670     lt_cv_dlopen_self=no
5671   fi
5672 fi
5673 rm -fr conftest*
5674
5675 fi
5676 echo "$as_me:5676: result: $lt_cv_dlopen_self" >&5
5677 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5678
5679     if test "x$lt_cv_dlopen_self" = xyes; then
5680       LDFLAGS="$LDFLAGS $link_static_flag"
5681       echo "$as_me:5681: checking whether a statically linked program can dlopen itself" >&5
5682 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5683 if test "${lt_cv_dlopen_self_static+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686           if test "$cross_compiling" = yes; then :
5687   lt_cv_dlopen_self_static=cross
5688 else
5689     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5690   lt_status=$lt_dlunknown
5691   cat > conftest.$ac_ext <<EOF
5692 #line 5692 "configure"
5693 #include "confdefs.h"
5694
5695 #if HAVE_DLFCN_H
5696 #include <dlfcn.h>
5697 #endif
5698
5699 #include <stdio.h>
5700
5701 #ifdef RTLD_GLOBAL
5702 #  define LT_DLGLOBAL           RTLD_GLOBAL
5703 #else
5704 #  ifdef DL_GLOBAL
5705 #    define LT_DLGLOBAL         DL_GLOBAL
5706 #  else
5707 #    define LT_DLGLOBAL         0
5708 #  endif
5709 #endif
5710
5711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5712    find out it does not work in some platform. */
5713 #ifndef LT_DLLAZY_OR_NOW
5714 #  ifdef RTLD_LAZY
5715 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5716 #  else
5717 #    ifdef DL_LAZY
5718 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5719 #    else
5720 #      ifdef RTLD_NOW
5721 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5722 #      else
5723 #        ifdef DL_NOW
5724 #          define LT_DLLAZY_OR_NOW      DL_NOW
5725 #        else
5726 #          define LT_DLLAZY_OR_NOW      0
5727 #        endif
5728 #      endif
5729 #    endif
5730 #  endif
5731 #endif
5732
5733 #ifdef __cplusplus
5734 extern "C" void exit (int);
5735 #endif
5736
5737 void fnord() { int i=42;}
5738 int main ()
5739 {
5740   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5741   int status = $lt_dlunknown;
5742
5743   if (self)
5744     {
5745       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5746       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5747       /* dlclose (self); */
5748     }
5749
5750     exit (status);
5751 }
5752 EOF
5753   if { (eval echo "$as_me:5753: \"$ac_link\"") >&5
5754   (eval $ac_link) 2>&5
5755   ac_status=$?
5756   echo "$as_me:5756: \$? = $ac_status" >&5
5757   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5758     (./conftest; exit; ) 2>/dev/null
5759     lt_status=$?
5760     case x$lt_status in
5761       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5762       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5763       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5764     esac
5765   else :
5766     # compilation failed
5767     lt_cv_dlopen_self_static=no
5768   fi
5769 fi
5770 rm -fr conftest*
5771
5772 fi
5773 echo "$as_me:5773: result: $lt_cv_dlopen_self_static" >&5
5774 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5775     fi
5776
5777     CPPFLAGS="$save_CPPFLAGS"
5778     LDFLAGS="$save_LDFLAGS"
5779     LIBS="$save_LIBS"
5780     ;;
5781   esac
5782
5783   case $lt_cv_dlopen_self in
5784   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5785   *) enable_dlopen_self=unknown ;;
5786   esac
5787
5788   case $lt_cv_dlopen_self_static in
5789   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5790   *) enable_dlopen_self_static=unknown ;;
5791   esac
5792 fi
5793
5794 if test "$enable_shared" = yes && test "$GCC" = yes; then
5795   case $archive_cmds in
5796   *'~'*)
5797     # FIXME: we may have to deal with multi-command sequences.
5798     ;;
5799   '$CC '*)
5800     # Test whether the compiler implicitly links with -lc since on some
5801     # systems, -lgcc has to come before -lc. If gcc already passes -lc
5802     # to ld, don't add -lc before -lgcc.
5803     echo "$as_me:5803: checking whether -lc should be explicitly linked in" >&5
5804 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5805     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   $rm conftest*
5809     echo 'static int dummy;' > conftest.$ac_ext
5810
5811     if { (eval echo "$as_me:5811: \"$ac_compile\"") >&5
5812   (eval $ac_compile) 2>&5
5813   ac_status=$?
5814   echo "$as_me:5814: \$? = $ac_status" >&5
5815   (exit $ac_status); }; then
5816       soname=conftest
5817       lib=conftest
5818       libobjs=conftest.$ac_objext
5819       deplibs=
5820       wl=$lt_cv_prog_cc_wl
5821       compiler_flags=-v
5822       linker_flags=-v
5823       verstring=
5824       output_objdir=.
5825       libname=conftest
5826       save_allow_undefined_flag=$allow_undefined_flag
5827       allow_undefined_flag=
5828       if { (eval echo "$as_me:5828: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5829   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5830   ac_status=$?
5831   echo "$as_me:5831: \$? = $ac_status" >&5
5832   (exit $ac_status); }
5833       then
5834         lt_cv_archive_cmds_need_lc=no
5835       else
5836         lt_cv_archive_cmds_need_lc=yes
5837       fi
5838       allow_undefined_flag=$save_allow_undefined_flag
5839     else
5840       cat conftest.err 1>&5
5841     fi
5842 fi
5843
5844     echo "$as_me:5844: result: $lt_cv_archive_cmds_need_lc" >&5
5845 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5846     ;;
5847   esac
5848 fi
5849 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5850
5851 # The second clause should only fire when bootstrapping the
5852 # libtool distribution, otherwise you forgot to ship ltmain.sh
5853 # with your package, and you will get complaints that there are
5854 # no rules to generate ltmain.sh.
5855 if test -f "$ltmain"; then
5856   :
5857 else
5858   # If there is no Makefile yet, we rely on a make rule to execute
5859   # `config.status --recheck' to rerun these tests and create the
5860   # libtool script then.
5861   test -f Makefile && make "$ltmain"
5862 fi
5863
5864 if test -f "$ltmain"; then
5865   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5866   $rm -f "${ofile}T"
5867
5868   echo creating $ofile
5869
5870   # Now quote all the things that may contain metacharacters while being
5871   # careful not to overquote the AC_SUBSTed values.  We take copies of the
5872   # variables and quote the copies for generation of the libtool script.
5873   for var in echo old_CC old_CFLAGS \
5874     AR AR_FLAGS CC LD LN_S NM SHELL \
5875     reload_flag reload_cmds wl \
5876     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5877     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5878     library_names_spec soname_spec \
5879     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5880     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5881     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5882     old_striplib striplib file_magic_cmd export_symbols_cmds \
5883     deplibs_check_method allow_undefined_flag no_undefined_flag \
5884     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5885     hardcode_libdir_flag_spec hardcode_libdir_separator  \
5886     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5887     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5888
5889     case $var in
5890     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5891     old_postinstall_cmds | old_postuninstall_cmds | \
5892     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5893     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5894     postinstall_cmds | postuninstall_cmds | \
5895     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5896       # Double-quote double-evaled strings.
5897       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5898       ;;
5899     *)
5900       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5901       ;;
5902     esac
5903   done
5904
5905   cat <<__EOF__ > "${ofile}T"
5906 #! $SHELL
5907
5908 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5911 #
5912 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5913 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5914 #
5915 # This program is free software; you can redistribute it and/or modify
5916 # it under the terms of the GNU General Public License as published by
5917 # the Free Software Foundation; either version 2 of the License, or
5918 # (at your option) any later version.
5919 #
5920 # This program is distributed in the hope that it will be useful, but
5921 # WITHOUT ANY WARRANTY; without even the implied warranty of
5922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5923 # General Public License for more details.
5924 #
5925 # You should have received a copy of the GNU General Public License
5926 # along with this program; if not, write to the Free Software
5927 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5928 #
5929 # As a special exception to the GNU General Public License, if you
5930 # distribute this file as part of a program that contains a
5931 # configuration script generated by Autoconf, you may include it under
5932 # the same distribution terms that you use for the rest of that program.
5933
5934 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5935 Xsed="sed -e s/^X//"
5936
5937 # The HP-UX ksh and POSIX shell print the target directory to stdout
5938 # if CDPATH is set.
5939 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5940
5941 # ### BEGIN LIBTOOL CONFIG
5942
5943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5944
5945 # Shell to use when invoking shell scripts.
5946 SHELL=$lt_SHELL
5947
5948 # Whether or not to build shared libraries.
5949 build_libtool_libs=$enable_shared
5950
5951 # Whether or not to add -lc for building shared libraries.
5952 build_libtool_need_lc=$need_lc
5953
5954 # Whether or not to build static libraries.
5955 build_old_libs=$enable_static
5956
5957 # Whether or not to optimize for fast installation.
5958 fast_install=$enable_fast_install
5959
5960 # The host system.
5961 host_alias=$host_alias
5962 host=$host
5963
5964 # An echo program that does not interpret backslashes.
5965 echo=$lt_echo
5966
5967 # The archiver.
5968 AR=$lt_AR
5969 AR_FLAGS=$lt_AR_FLAGS
5970
5971 # The default C compiler.
5972 CC=$lt_CC
5973
5974 # Is the compiler the GNU C compiler?
5975 with_gcc=$GCC
5976
5977 # The linker used to build libraries.
5978 LD=$lt_LD
5979
5980 # Whether we need hard or soft links.
5981 LN_S=$lt_LN_S
5982
5983 # A BSD-compatible nm program.
5984 NM=$lt_NM
5985
5986 # A symbol stripping program
5987 STRIP=$STRIP
5988
5989 # Used to examine libraries when file_magic_cmd begins "file"
5990 MAGIC_CMD=$MAGIC_CMD
5991
5992 # Used on cygwin: DLL creation program.
5993 DLLTOOL="$DLLTOOL"
5994
5995 # Used on cygwin: object dumper.
5996 OBJDUMP="$OBJDUMP"
5997
5998 # Used on cygwin: assembler.
5999 AS="$AS"
6000
6001 # The name of the directory that contains temporary libtool files.
6002 objdir=$objdir
6003
6004 # How to create reloadable object files.
6005 reload_flag=$lt_reload_flag
6006 reload_cmds=$lt_reload_cmds
6007
6008 # How to pass a linker flag through the compiler.
6009 wl=$lt_wl
6010
6011 # Object file suffix (normally "o").
6012 objext="$ac_objext"
6013
6014 # Old archive suffix (normally "a").
6015 libext="$libext"
6016
6017 # Executable file suffix (normally "").
6018 exeext="$exeext"
6019
6020 # Additional compiler flags for building library objects.
6021 pic_flag=$lt_pic_flag
6022 pic_mode=$pic_mode
6023
6024 # Does compiler simultaneously support -c and -o options?
6025 compiler_c_o=$lt_compiler_c_o
6026
6027 # Can we write directly to a .lo ?
6028 compiler_o_lo=$lt_compiler_o_lo
6029
6030 # Must we lock files when doing compilation ?
6031 need_locks=$lt_need_locks
6032
6033 # Do we need the lib prefix for modules?
6034 need_lib_prefix=$need_lib_prefix
6035
6036 # Do we need a version for libraries?
6037 need_version=$need_version
6038
6039 # Whether dlopen is supported.
6040 dlopen_support=$enable_dlopen
6041
6042 # Whether dlopen of programs is supported.
6043 dlopen_self=$enable_dlopen_self
6044
6045 # Whether dlopen of statically linked programs is supported.
6046 dlopen_self_static=$enable_dlopen_self_static
6047
6048 # Compiler flag to prevent dynamic linking.
6049 link_static_flag=$lt_link_static_flag
6050
6051 # Compiler flag to turn off builtin functions.
6052 no_builtin_flag=$lt_no_builtin_flag
6053
6054 # Compiler flag to allow reflexive dlopens.
6055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6056
6057 # Compiler flag to generate shared objects directly from archives.
6058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6059
6060 # Compiler flag to generate thread-safe objects.
6061 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6062
6063 # Library versioning type.
6064 version_type=$version_type
6065
6066 # Format of library name prefix.
6067 libname_spec=$lt_libname_spec
6068
6069 # List of archive names.  First name is the real one, the rest are links.
6070 # The last name is the one that the linker finds with -lNAME.
6071 library_names_spec=$lt_library_names_spec
6072
6073 # The coded name of the library, if different from the real name.
6074 soname_spec=$lt_soname_spec
6075
6076 # Commands used to build and install an old-style archive.
6077 RANLIB=$lt_RANLIB
6078 old_archive_cmds=$lt_old_archive_cmds
6079 old_postinstall_cmds=$lt_old_postinstall_cmds
6080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6081
6082 # Create an old-style archive from a shared archive.
6083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6084
6085 # Create a temporary old-style archive to link instead of a shared archive.
6086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6087
6088 # Commands used to build and install a shared archive.
6089 archive_cmds=$lt_archive_cmds
6090 archive_expsym_cmds=$lt_archive_expsym_cmds
6091 postinstall_cmds=$lt_postinstall_cmds
6092 postuninstall_cmds=$lt_postuninstall_cmds
6093
6094 # Commands to strip libraries.
6095 old_striplib=$lt_old_striplib
6096 striplib=$lt_striplib
6097
6098 # Method to check whether dependent libraries are shared objects.
6099 deplibs_check_method=$lt_deplibs_check_method
6100
6101 # Command to use when deplibs_check_method == file_magic.
6102 file_magic_cmd=$lt_file_magic_cmd
6103
6104 # Flag that allows shared libraries with undefined symbols to be built.
6105 allow_undefined_flag=$lt_allow_undefined_flag
6106
6107 # Flag that forces no undefined symbols.
6108 no_undefined_flag=$lt_no_undefined_flag
6109
6110 # Commands used to finish a libtool library installation in a directory.
6111 finish_cmds=$lt_finish_cmds
6112
6113 # Same as above, but a single script fragment to be evaled but not shown.
6114 finish_eval=$lt_finish_eval
6115
6116 # Take the output of nm and produce a listing of raw symbols and C names.
6117 global_symbol_pipe=$lt_global_symbol_pipe
6118
6119 # Transform the output of nm in a proper C declaration
6120 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6121
6122 # This is the shared library runtime path variable.
6123 runpath_var=$runpath_var
6124
6125 # This is the shared library path variable.
6126 shlibpath_var=$shlibpath_var
6127
6128 # Is shlibpath searched before the hard-coded library search path?
6129 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6130
6131 # How to hardcode a shared library path into an executable.
6132 hardcode_action=$hardcode_action
6133
6134 # Whether we should hardcode library paths into libraries.
6135 hardcode_into_libs=$hardcode_into_libs
6136
6137 # Flag to hardcode \$libdir into a binary during linking.
6138 # This must work even if \$libdir does not exist.
6139 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6140
6141 # Whether we need a single -rpath flag with a separated argument.
6142 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6143
6144 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6145 # resulting binary.
6146 hardcode_direct=$hardcode_direct
6147
6148 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6149 # resulting binary.
6150 hardcode_minus_L=$hardcode_minus_L
6151
6152 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6153 # the resulting binary.
6154 hardcode_shlibpath_var=$hardcode_shlibpath_var
6155
6156 # Variables whose values should be saved in libtool wrapper scripts and
6157 # restored at relink time.
6158 variables_saved_for_relink="$variables_saved_for_relink"
6159
6160 # Whether libtool must link a program against all its dependency libraries.
6161 link_all_deplibs=$link_all_deplibs
6162
6163 # Compile-time system search path for libraries
6164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6165
6166 # Run-time system search path for libraries
6167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6168
6169 # Fix the shell variable \$srcfile for the compiler.
6170 fix_srcfile_path="$fix_srcfile_path"
6171
6172 # Set to yes if exported symbols are required.
6173 always_export_symbols=$always_export_symbols
6174
6175 # The commands to list exported symbols.
6176 export_symbols_cmds=$lt_export_symbols_cmds
6177
6178 # The commands to extract the exported symbol list from a shared archive.
6179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6180
6181 # Symbols that should not be listed in the preloaded symbols.
6182 exclude_expsyms=$lt_exclude_expsyms
6183
6184 # Symbols that must always be exported.
6185 include_expsyms=$lt_include_expsyms
6186
6187 # ### END LIBTOOL CONFIG
6188
6189 __EOF__
6190
6191   case $host_os in
6192   aix3*)
6193     cat <<\EOF >> "${ofile}T"
6194
6195 # AIX sometimes has problems with the GCC collect2 program.  For some
6196 # reason, if we set the COLLECT_NAMES environment variable, the problems
6197 # vanish in a puff of smoke.
6198 if test "X${COLLECT_NAMES+set}" != Xset; then
6199   COLLECT_NAMES=
6200   export COLLECT_NAMES
6201 fi
6202 EOF
6203     ;;
6204   esac
6205
6206   case $host_os in
6207   cygwin* | mingw* | pw32* | os2*)
6208     cat <<'EOF' >> "${ofile}T"
6209       # This is a source program that is used to create dlls on Windows
6210       # Don't remove nor modify the starting and closing comments
6211 # /* ltdll.c starts here */
6212 # #define WIN32_LEAN_AND_MEAN
6213 # #include <windows.h>
6214 # #undef WIN32_LEAN_AND_MEAN
6215 # #include <stdio.h>
6216 #
6217 # #ifndef __CYGWIN__
6218 # #  ifdef __CYGWIN32__
6219 # #    define __CYGWIN__ __CYGWIN32__
6220 # #  endif
6221 # #endif
6222 #
6223 # #ifdef __cplusplus
6224 # extern "C" {
6225 # #endif
6226 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6227 # #ifdef __cplusplus
6228 # }
6229 # #endif
6230 #
6231 # #ifdef __CYGWIN__
6232 # #include <cygwin/cygwin_dll.h>
6233 # DECLARE_CYGWIN_DLL( DllMain );
6234 # #endif
6235 # HINSTANCE __hDllInstance_base;
6236 #
6237 # BOOL APIENTRY
6238 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6239 # {
6240 #   __hDllInstance_base = hInst;
6241 #   return TRUE;
6242 # }
6243 # /* ltdll.c ends here */
6244         # This is a source program that is used to create import libraries
6245         # on Windows for dlls which lack them. Don't remove nor modify the
6246         # starting and closing comments
6247 # /* impgen.c starts here */
6248 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6249 #
6250 #  This file is part of GNU libtool.
6251 #
6252 #  This program is free software; you can redistribute it and/or modify
6253 #  it under the terms of the GNU General Public License as published by
6254 #  the Free Software Foundation; either version 2 of the License, or
6255 #  (at your option) any later version.
6256 #
6257 #  This program is distributed in the hope that it will be useful,
6258 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
6259 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6260 #  GNU General Public License for more details.
6261 #
6262 #  You should have received a copy of the GNU General Public License
6263 #  along with this program; if not, write to the Free Software
6264 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6265 #  */
6266 #
6267 # #include <stdio.h>            /* for printf() */
6268 # #include <unistd.h>           /* for open(), lseek(), read() */
6269 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6270 # #include <string.h>           /* for strdup() */
6271 #
6272 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6273 # #ifndef O_BINARY
6274 # #define O_BINARY 0
6275 # #endif
6276 #
6277 # static unsigned int
6278 # pe_get16 (fd, offset)
6279 #      int fd;
6280 #      int offset;
6281 # {
6282 #   unsigned char b[2];
6283 #   lseek (fd, offset, SEEK_SET);
6284 #   read (fd, b, 2);
6285 #   return b[0] + (b[1]<<8);
6286 # }
6287 #
6288 # static unsigned int
6289 # pe_get32 (fd, offset)
6290 #     int fd;
6291 #     int offset;
6292 # {
6293 #   unsigned char b[4];
6294 #   lseek (fd, offset, SEEK_SET);
6295 #   read (fd, b, 4);
6296 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6297 # }
6298 #
6299 # static unsigned int
6300 # pe_as32 (ptr)
6301 #      void *ptr;
6302 # {
6303 #   unsigned char *b = ptr;
6304 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6305 # }
6306 #
6307 # int
6308 # main (argc, argv)
6309 #     int argc;
6310 #     char *argv[];
6311 # {
6312 #     int dll;
6313 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6314 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
6315 #     unsigned long name_rvas, nexp;
6316 #     unsigned char *expdata, *erva;
6317 #     char *filename, *dll_name;
6318 #
6319 #     filename = argv[1];
6320 #
6321 #     dll = open(filename, O_RDONLY|O_BINARY);
6322 #     if (dll < 1)
6323 #       return 1;
6324 #
6325 #     dll_name = filename;
6326 #
6327 #     for (i=0; filename[i]; i++)
6328 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6329 #           dll_name = filename + i +1;
6330 #
6331 #     pe_header_offset = pe_get32 (dll, 0x3c);
6332 #     opthdr_ofs = pe_header_offset + 4 + 20;
6333 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6334 #
6335 #     if (num_entries < 1) /* no exports */
6336 #       return 1;
6337 #
6338 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6339 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
6340 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6341 #     secptr = (pe_header_offset + 4 + 20 +
6342 #             pe_get16 (dll, pe_header_offset + 4 + 16));
6343 #
6344 #     expptr = 0;
6345 #     for (i = 0; i < nsections; i++)
6346 #     {
6347 #       char sname[8];
6348 #       unsigned long secptr1 = secptr + 40 * i;
6349 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6350 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6351 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6352 #       lseek(dll, secptr1, SEEK_SET);
6353 #       read(dll, sname, 8);
6354 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6355 #       {
6356 #           expptr = fptr + (export_rva - vaddr);
6357 #           if (export_rva + export_size > vaddr + vsize)
6358 #               export_size = vsize - (export_rva - vaddr);
6359 #           break;
6360 #       }
6361 #     }
6362 #
6363 #     expdata = (unsigned char*)malloc(export_size);
6364 #     lseek (dll, expptr, SEEK_SET);
6365 #     read (dll, expdata, export_size);
6366 #     erva = expdata - export_rva;
6367 #
6368 #     nexp = pe_as32 (expdata+24);
6369 #     name_rvas = pe_as32 (expdata+32);
6370 #
6371 #     printf ("EXPORTS\n");
6372 #     for (i = 0; i<nexp; i++)
6373 #     {
6374 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6375 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6376 #     }
6377 #
6378 #     return 0;
6379 # }
6380 # /* impgen.c ends here */
6381
6382 EOF
6383     ;;
6384   esac
6385
6386   # We use sed instead of cat because bash on DJGPP gets confused if
6387   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6388   # text mode, it properly converts lines to CR/LF.  This bash problem
6389   # is reportedly fixed, but why not run on old versions too?
6390   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6391
6392   mv -f "${ofile}T" "$ofile" || \
6393     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6394   chmod +x "$ofile"
6395 fi
6396
6397 # This can be used to rebuild libtool when needed
6398 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6399
6400 # Always use our own libtool.
6401 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6402
6403 # Prevent multiple expansion
6404
6405 echo "$as_me:6405: checking for main in -lnsl" >&5
6406 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6407 if test "${ac_cv_lib_nsl_main+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   ac_check_lib_save_LIBS=$LIBS
6411 LIBS="-lnsl  $LIBS"
6412 cat >conftest.$ac_ext <<_ACEOF
6413 #line 6413 "configure"
6414 #include "confdefs.h"
6415
6416 int
6417 main ()
6418 {
6419 main ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:6425: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>&5
6427   ac_status=$?
6428   echo "$as_me:6428: \$? = $ac_status" >&5
6429   (exit $ac_status); } &&
6430          { ac_try='test -s conftest$ac_exeext'
6431   { (eval echo "$as_me:6431: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:6434: \$? = $ac_status" >&5
6435   (exit $ac_status); }; }; then
6436   ac_cv_lib_nsl_main=yes
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 ac_cv_lib_nsl_main=no
6441 fi
6442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6443 LIBS=$ac_check_lib_save_LIBS
6444 fi
6445 echo "$as_me:6445: result: $ac_cv_lib_nsl_main" >&5
6446 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6447 if test $ac_cv_lib_nsl_main = yes; then
6448   cat >>confdefs.h <<EOF
6449 #define HAVE_LIBNSL 1
6450 EOF
6451
6452   LIBS="-lnsl $LIBS"
6453
6454 fi
6455  ac_cv_lib_nsl=ac_cv_lib_nsl_main
6456
6457 echo "$as_me:6457: checking for main in -lresolv" >&5
6458 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6459 if test "${ac_cv_lib_resolv_main+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   ac_check_lib_save_LIBS=$LIBS
6463 LIBS="-lresolv  $LIBS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line 6465 "configure"
6466 #include "confdefs.h"
6467
6468 int
6469 main ()
6470 {
6471 main ();
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (eval echo "$as_me:6477: \"$ac_link\"") >&5
6478   (eval $ac_link) 2>&5
6479   ac_status=$?
6480   echo "$as_me:6480: \$? = $ac_status" >&5
6481   (exit $ac_status); } &&
6482          { ac_try='test -s conftest$ac_exeext'
6483   { (eval echo "$as_me:6483: \"$ac_try\"") >&5
6484   (eval $ac_try) 2>&5
6485   ac_status=$?
6486   echo "$as_me:6486: \$? = $ac_status" >&5
6487   (exit $ac_status); }; }; then
6488   ac_cv_lib_resolv_main=yes
6489 else
6490   echo "$as_me: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6492 ac_cv_lib_resolv_main=no
6493 fi
6494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6495 LIBS=$ac_check_lib_save_LIBS
6496 fi
6497 echo "$as_me:6497: result: $ac_cv_lib_resolv_main" >&5
6498 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6499 if test $ac_cv_lib_resolv_main = yes; then
6500   cat >>confdefs.h <<EOF
6501 #define HAVE_LIBRESOLV 1
6502 EOF
6503
6504   LIBS="-lresolv $LIBS"
6505
6506 fi
6507  ac_cv_lib_resolv=ac_cv_lib_resolv_main
6508
6509 echo "$as_me:6509: checking for main in -lsocket" >&5
6510 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
6511 if test "${ac_cv_lib_socket_main+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   ac_check_lib_save_LIBS=$LIBS
6515 LIBS="-lsocket  $LIBS"
6516 cat >conftest.$ac_ext <<_ACEOF
6517 #line 6517 "configure"
6518 #include "confdefs.h"
6519
6520 int
6521 main ()
6522 {
6523 main ();
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:6529: \"$ac_link\"") >&5
6530   (eval $ac_link) 2>&5
6531   ac_status=$?
6532   echo "$as_me:6532: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:6535: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:6538: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_lib_socket_main=yes
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6544 ac_cv_lib_socket_main=no
6545 fi
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 LIBS=$ac_check_lib_save_LIBS
6548 fi
6549 echo "$as_me:6549: result: $ac_cv_lib_socket_main" >&5
6550 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
6551 if test $ac_cv_lib_socket_main = yes; then
6552   cat >>confdefs.h <<EOF
6553 #define HAVE_LIBSOCKET 1
6554 EOF
6555
6556   LIBS="-lsocket $LIBS"
6557
6558 fi
6559  ac_cv_lib_socket=ac_cv_lib_socket_main
6560
6561 echo "$as_me:6561: checking for main in -ldnet_stub" >&5
6562 echo $ECHO_N "checking for main in -ldnet_stub... $ECHO_C" >&6
6563 if test "${ac_cv_lib_dnet_stub_main+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   ac_check_lib_save_LIBS=$LIBS
6567 LIBS="-ldnet_stub  $LIBS"
6568 cat >conftest.$ac_ext <<_ACEOF
6569 #line 6569 "configure"
6570 #include "confdefs.h"
6571
6572 int
6573 main ()
6574 {
6575 main ();
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (eval echo "$as_me:6581: \"$ac_link\"") >&5
6582   (eval $ac_link) 2>&5
6583   ac_status=$?
6584   echo "$as_me:6584: \$? = $ac_status" >&5
6585   (exit $ac_status); } &&
6586          { ac_try='test -s conftest$ac_exeext'
6587   { (eval echo "$as_me:6587: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:6590: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   ac_cv_lib_dnet_stub_main=yes
6593 else
6594   echo "$as_me: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 ac_cv_lib_dnet_stub_main=no
6597 fi
6598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599 LIBS=$ac_check_lib_save_LIBS
6600 fi
6601 echo "$as_me:6601: result: $ac_cv_lib_dnet_stub_main" >&5
6602 echo "${ECHO_T}$ac_cv_lib_dnet_stub_main" >&6
6603 if test $ac_cv_lib_dnet_stub_main = yes; then
6604   cat >>confdefs.h <<EOF
6605 #define HAVE_LIBDNET_STUB 1
6606 EOF
6607
6608   LIBS="-ldnet_stub $LIBS"
6609
6610 fi
6611  ac_cv_lib_dnet_stub=ac_cv_lib_dnet_stub_main
6612
6613 echo "$as_me:6613: checking for main in -lieee" >&5
6614 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6
6615 if test "${ac_cv_lib_ieee_main+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   ac_check_lib_save_LIBS=$LIBS
6619 LIBS="-lieee  $LIBS"
6620 cat >conftest.$ac_ext <<_ACEOF
6621 #line 6621 "configure"
6622 #include "confdefs.h"
6623
6624 int
6625 main ()
6626 {
6627 main ();
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (eval echo "$as_me:6633: \"$ac_link\"") >&5
6634   (eval $ac_link) 2>&5
6635   ac_status=$?
6636   echo "$as_me:6636: \$? = $ac_status" >&5
6637   (exit $ac_status); } &&
6638          { ac_try='test -s conftest$ac_exeext'
6639   { (eval echo "$as_me:6639: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:6642: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   ac_cv_lib_ieee_main=yes
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 ac_cv_lib_ieee_main=no
6649 fi
6650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 LIBS=$ac_check_lib_save_LIBS
6652 fi
6653 echo "$as_me:6653: result: $ac_cv_lib_ieee_main" >&5
6654 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6
6655 if test $ac_cv_lib_ieee_main = yes; then
6656   cat >>confdefs.h <<EOF
6657 #define HAVE_LIBIEEE 1
6658 EOF
6659
6660   LIBS="-lieee $LIBS"
6661
6662 fi
6663  ac_cv_lib_ieee=ac_cv_lib_ieee_main
6664
6665 echo "$as_me:6665: checking for main in -lpthread" >&5
6666 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6667 if test "${ac_cv_lib_pthread_main+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   ac_check_lib_save_LIBS=$LIBS
6671 LIBS="-lpthread  $LIBS"
6672 cat >conftest.$ac_ext <<_ACEOF
6673 #line 6673 "configure"
6674 #include "confdefs.h"
6675
6676 int
6677 main ()
6678 {
6679 main ();
6680   ;
6681   return 0;
6682 }
6683 _ACEOF
6684 rm -f conftest.$ac_objext conftest$ac_exeext
6685 if { (eval echo "$as_me:6685: \"$ac_link\"") >&5
6686   (eval $ac_link) 2>&5
6687   ac_status=$?
6688   echo "$as_me:6688: \$? = $ac_status" >&5
6689   (exit $ac_status); } &&
6690          { ac_try='test -s conftest$ac_exeext'
6691   { (eval echo "$as_me:6691: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:6694: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   ac_cv_lib_pthread_main=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 ac_cv_lib_pthread_main=no
6701 fi
6702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS
6704 fi
6705 echo "$as_me:6705: result: $ac_cv_lib_pthread_main" >&5
6706 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6707 if test $ac_cv_lib_pthread_main = yes; then
6708
6709 cat >>confdefs.h <<\EOF
6710 #define HAVE_LIBPTHREAD 1
6711 EOF
6712
6713          threaded=threaded
6714 fi
6715
6716 ac_cv_lib_pthread=ac_cv_lib_pthread_main
6717
6718 echo "$as_me:6718: checking for ANSI C header files" >&5
6719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6720 if test "${ac_cv_header_stdc+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   cat >conftest.$ac_ext <<_ACEOF
6724 #line 6724 "configure"
6725 #include "confdefs.h"
6726 #include <stdlib.h>
6727 #include <stdarg.h>
6728 #include <string.h>
6729 #include <float.h>
6730
6731 _ACEOF
6732 if { (eval echo "$as_me:6732: \"$ac_cpp conftest.$ac_ext\"") >&5
6733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6734   ac_status=$?
6735   egrep -v '^ *\+' conftest.er1 >conftest.err
6736   rm -f conftest.er1
6737   cat conftest.err >&5
6738   echo "$as_me:6738: \$? = $ac_status" >&5
6739   (exit $ac_status); } >/dev/null; then
6740   if test -s conftest.err; then
6741     ac_cpp_err=$ac_c_preproc_warn_flag
6742   else
6743     ac_cpp_err=
6744   fi
6745 else
6746   ac_cpp_err=yes
6747 fi
6748 if test -z "$ac_cpp_err"; then
6749   ac_cv_header_stdc=yes
6750 else
6751   echo "$as_me: failed program was:" >&5
6752   cat conftest.$ac_ext >&5
6753   ac_cv_header_stdc=no
6754 fi
6755 rm -f conftest.err conftest.$ac_ext
6756
6757 if test $ac_cv_header_stdc = yes; then
6758   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6759   cat >conftest.$ac_ext <<_ACEOF
6760 #line 6760 "configure"
6761 #include "confdefs.h"
6762 #include <string.h>
6763
6764 _ACEOF
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766   egrep "memchr" >/dev/null 2>&1; then
6767   :
6768 else
6769   ac_cv_header_stdc=no
6770 fi
6771 rm -f conftest*
6772
6773 fi
6774
6775 if test $ac_cv_header_stdc = yes; then
6776   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6777   cat >conftest.$ac_ext <<_ACEOF
6778 #line 6778 "configure"
6779 #include "confdefs.h"
6780 #include <stdlib.h>
6781
6782 _ACEOF
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784   egrep "free" >/dev/null 2>&1; then
6785   :
6786 else
6787   ac_cv_header_stdc=no
6788 fi
6789 rm -f conftest*
6790
6791 fi
6792
6793 if test $ac_cv_header_stdc = yes; then
6794   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6795   if test "$cross_compiling" = yes; then
6796   :
6797 else
6798   cat >conftest.$ac_ext <<_ACEOF
6799 #line 6799 "configure"
6800 #include "confdefs.h"
6801 #include <ctype.h>
6802 #if ((' ' & 0x0FF) == 0x020)
6803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6805 #else
6806 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6807                      || ('j' <= (c) && (c) <= 'r') \
6808                      || ('s' <= (c) && (c) <= 'z'))
6809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6810 #endif
6811
6812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6813 int
6814 main ()
6815 {
6816   int i;
6817   for (i = 0; i < 256; i++)
6818     if (XOR (islower (i), ISLOWER (i))
6819         || toupper (i) != TOUPPER (i))
6820       exit(2);
6821   exit (0);
6822 }
6823 _ACEOF
6824 rm -f conftest$ac_exeext
6825 if { (eval echo "$as_me:6825: \"$ac_link\"") >&5
6826   (eval $ac_link) 2>&5
6827   ac_status=$?
6828   echo "$as_me:6828: \$? = $ac_status" >&5
6829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6830   { (eval echo "$as_me:6830: \"$ac_try\"") >&5
6831   (eval $ac_try) 2>&5
6832   ac_status=$?
6833   echo "$as_me:6833: \$? = $ac_status" >&5
6834   (exit $ac_status); }; }; then
6835   :
6836 else
6837   echo "$as_me: program exited with status $ac_status" >&5
6838 echo "$as_me: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 ac_cv_header_stdc=no
6841 fi
6842 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6843 fi
6844 fi
6845 fi
6846 echo "$as_me:6846: result: $ac_cv_header_stdc" >&5
6847 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6848 if test $ac_cv_header_stdc = yes; then
6849
6850 cat >>confdefs.h <<\EOF
6851 #define STDC_HEADERS 1
6852 EOF
6853
6854 fi
6855
6856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6857
6858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6859                   inttypes.h stdint.h unistd.h
6860 do
6861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 echo "$as_me:6862: checking for $ac_header" >&5
6863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   cat >conftest.$ac_ext <<_ACEOF
6868 #line 6868 "configure"
6869 #include "confdefs.h"
6870 $ac_includes_default
6871 #include <$ac_header>
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:6874: \"$ac_compile\"") >&5
6875   (eval $ac_compile) 2>&5
6876   ac_status=$?
6877   echo "$as_me:6877: \$? = $ac_status" >&5
6878   (exit $ac_status); } &&
6879          { ac_try='test -s conftest.$ac_objext'
6880   { (eval echo "$as_me:6880: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:6883: \$? = $ac_status" >&5
6884   (exit $ac_status); }; }; then
6885   eval "$as_ac_Header=yes"
6886 else
6887   echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 eval "$as_ac_Header=no"
6890 fi
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6892 fi
6893 echo "$as_me:6893: result: `eval echo '${'$as_ac_Header'}'`" >&5
6894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6896   cat >>confdefs.h <<EOF
6897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6898 EOF
6899
6900 fi
6901 done
6902
6903 echo "$as_me:6903: checking for $CC option to accept ANSI C" >&5
6904 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6905 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   ac_cv_prog_cc_stdc=no
6909 ac_save_CC=$CC
6910 cat >conftest.$ac_ext <<_ACEOF
6911 #line 6911 "configure"
6912 #include "confdefs.h"
6913 #include <stdarg.h>
6914 #include <stdio.h>
6915 #include <sys/types.h>
6916 #include <sys/stat.h>
6917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6918 struct buf { int x; };
6919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6920 static char *e (p, i)
6921      char **p;
6922      int i;
6923 {
6924   return p[i];
6925 }
6926 static char *f (char * (*g) (char **, int), char **p, ...)
6927 {
6928   char *s;
6929   va_list v;
6930   va_start (v,p);
6931   s = g (p, va_arg (v,int));
6932   va_end (v);
6933   return s;
6934 }
6935 int test (int i, double x);
6936 struct s1 {int (*f) (int a);};
6937 struct s2 {int (*f) (double a);};
6938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6939 int argc;
6940 char **argv;
6941 int
6942 main ()
6943 {
6944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 # Don't try gcc -ansi; that turns off useful extensions and
6950 # breaks some systems' header files.
6951 # AIX                   -qlanglvl=ansi
6952 # Ultrix and OSF/1      -std1
6953 # HP-UX 10.20 and later -Ae
6954 # HP-UX older versions  -Aa -D_HPUX_SOURCE
6955 # SVR4                  -Xc -D__EXTENSIONS__
6956 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6957 do
6958   CC="$ac_save_CC $ac_arg"
6959   rm -f conftest.$ac_objext
6960 if { (eval echo "$as_me:6960: \"$ac_compile\"") >&5
6961   (eval $ac_compile) 2>&5
6962   ac_status=$?
6963   echo "$as_me:6963: \$? = $ac_status" >&5
6964   (exit $ac_status); } &&
6965          { ac_try='test -s conftest.$ac_objext'
6966   { (eval echo "$as_me:6966: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:6969: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_cv_prog_cc_stdc=$ac_arg
6972 break
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6976 fi
6977 rm -f conftest.$ac_objext
6978 done
6979 rm -f conftest.$ac_ext conftest.$ac_objext
6980 CC=$ac_save_CC
6981
6982 fi
6983
6984 case "x$ac_cv_prog_cc_stdc" in
6985   x|xno)
6986     echo "$as_me:6986: result: none needed" >&5
6987 echo "${ECHO_T}none needed" >&6 ;;
6988   *)
6989     echo "$as_me:6989: result: $ac_cv_prog_cc_stdc" >&5
6990 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6991     CC="$CC $ac_cv_prog_cc_stdc" ;;
6992 esac
6993
6994     echo "$as_me:6994: checking for ssize_t" >&5
6995 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6996 if test "${ac_cv_type_ssize_t+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   cat >conftest.$ac_ext <<_ACEOF
7000 #line 7000 "configure"
7001 #include "confdefs.h"
7002 $ac_includes_default
7003 int
7004 main ()
7005 {
7006 if ((ssize_t *) 0)
7007   return 0;
7008 if (sizeof (ssize_t))
7009   return 0;
7010   ;
7011   return 0;
7012 }
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (eval echo "$as_me:7015: \"$ac_compile\"") >&5
7016   (eval $ac_compile) 2>&5
7017   ac_status=$?
7018   echo "$as_me:7018: \$? = $ac_status" >&5
7019   (exit $ac_status); } &&
7020          { ac_try='test -s conftest.$ac_objext'
7021   { (eval echo "$as_me:7021: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:7024: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   ac_cv_type_ssize_t=yes
7027 else
7028   echo "$as_me: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 ac_cv_type_ssize_t=no
7031 fi
7032 rm -f conftest.$ac_objext conftest.$ac_ext
7033 fi
7034 echo "$as_me:7034: result: $ac_cv_type_ssize_t" >&5
7035 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7036 if test $ac_cv_type_ssize_t = yes; then
7037   :
7038 else
7039
7040 cat >>confdefs.h <<EOF
7041 #define ssize_t int
7042 EOF
7043
7044 fi
7045
7046     echo "$as_me:7046: checking for sun_len in sys/un.h" >&5
7047 echo $ECHO_N "checking for sun_len in sys/un.h... $ECHO_C" >&6
7048     cat >conftest.$ac_ext <<_ACEOF
7049 #line 7049 "configure"
7050 #include "confdefs.h"
7051 #include <sys/un.h>
7052
7053 _ACEOF
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055   egrep "sun_len" >/dev/null 2>&1; then
7056   echo "$as_me:7056: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6
7058
7059 cat >>confdefs.h <<\EOF
7060 #define HAVE_SOCKADDR_UN_SUN_LEN 1
7061 EOF
7062
7063 else
7064   echo "$as_me:7064: result: no" >&5
7065 echo "${ECHO_T}no" >&6
7066 fi
7067 rm -f conftest*
7068
7069     echo "$as_me:7069: checking for fpos_t in stdio.h" >&5
7070 echo $ECHO_N "checking for fpos_t in stdio.h... $ECHO_C" >&6
7071     cat >conftest.$ac_ext <<_ACEOF
7072 #line 7072 "configure"
7073 #include "confdefs.h"
7074 #include <stdio.h>
7075
7076 _ACEOF
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078   egrep "fpos_t" >/dev/null 2>&1; then
7079   echo "$as_me:7079: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7081
7082 cat >>confdefs.h <<\EOF
7083 #define HAVE_FPOS 1
7084 EOF
7085
7086 else
7087   echo "$as_me:7087: result: no" >&5
7088 echo "${ECHO_T}no" >&6
7089 fi
7090 rm -f conftest*
7091
7092 for ac_header in sys/socket.h netdb.h netinet/in.h arpa/inet.h
7093 do
7094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 echo "$as_me:7095: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   cat >conftest.$ac_ext <<_ACEOF
7101 #line 7101 "configure"
7102 #include "confdefs.h"
7103 #include <$ac_header>
7104 _ACEOF
7105 if { (eval echo "$as_me:7105: \"$ac_cpp conftest.$ac_ext\"") >&5
7106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7107   ac_status=$?
7108   egrep -v '^ *\+' conftest.er1 >conftest.err
7109   rm -f conftest.er1
7110   cat conftest.err >&5
7111   echo "$as_me:7111: \$? = $ac_status" >&5
7112   (exit $ac_status); } >/dev/null; then
7113   if test -s conftest.err; then
7114     ac_cpp_err=$ac_c_preproc_warn_flag
7115   else
7116     ac_cpp_err=
7117   fi
7118 else
7119   ac_cpp_err=yes
7120 fi
7121 if test -z "$ac_cpp_err"; then
7122   eval "$as_ac_Header=yes"
7123 else
7124   echo "$as_me: failed program was:" >&5
7125   cat conftest.$ac_ext >&5
7126   eval "$as_ac_Header=no"
7127 fi
7128 rm -f conftest.err conftest.$ac_ext
7129 fi
7130 echo "$as_me:7130: result: `eval echo '${'$as_ac_Header'}'`" >&5
7131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7133   cat >>confdefs.h <<EOF
7134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7135 EOF
7136
7137 fi
7138 done
7139
7140 for ac_header in sys/time.h limits.h sys/param.h unistd.h
7141 do
7142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 echo "$as_me:7143: checking for $ac_header" >&5
7144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   cat >conftest.$ac_ext <<_ACEOF
7149 #line 7149 "configure"
7150 #include "confdefs.h"
7151 #include <$ac_header>
7152 _ACEOF
7153 if { (eval echo "$as_me:7153: \"$ac_cpp conftest.$ac_ext\"") >&5
7154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155   ac_status=$?
7156   egrep -v '^ *\+' conftest.er1 >conftest.err
7157   rm -f conftest.er1
7158   cat conftest.err >&5
7159   echo "$as_me:7159: \$? = $ac_status" >&5
7160   (exit $ac_status); } >/dev/null; then
7161   if test -s conftest.err; then
7162     ac_cpp_err=$ac_c_preproc_warn_flag
7163   else
7164     ac_cpp_err=
7165   fi
7166 else
7167   ac_cpp_err=yes
7168 fi
7169 if test -z "$ac_cpp_err"; then
7170   eval "$as_ac_Header=yes"
7171 else
7172   echo "$as_me: failed program was:" >&5
7173   cat conftest.$ac_ext >&5
7174   eval "$as_ac_Header=no"
7175 fi
7176 rm -f conftest.err conftest.$ac_ext
7177 fi
7178 echo "$as_me:7178: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7181   cat >>confdefs.h <<EOF
7182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7183 EOF
7184
7185 fi
7186 done
7187
7188     echo "$as_me:7188: checking for a fileno() prototype in stdio.h" >&5
7189 echo $ECHO_N "checking for a fileno() prototype in stdio.h... $ECHO_C" >&6
7190     cat >conftest.$ac_ext <<_ACEOF
7191 #line 7191 "configure"
7192 #include "confdefs.h"
7193 #include <stdio.h>
7194
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197   egrep "fileno" >/dev/null 2>&1; then
7198   echo "$as_me:7198: result: yes" >&5
7199 echo "${ECHO_T}yes" >&6
7200
7201 cat >>confdefs.h <<\EOF
7202 #define HAVE_FILENO_PROTO 1
7203 EOF
7204
7205 else
7206   echo "$as_me:7206: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7208 fi
7209 rm -f conftest*
7210
7211     if test "$HAVE_SYS_SOCKET_H"; then
7212         echo "$as_me:7212: checking for socklen_t in sys/socket.h" >&5
7213 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
7214         cat >conftest.$ac_ext <<_ACEOF
7215 #line 7215 "configure"
7216 #include "confdefs.h"
7217 #include <sys/socket.h>
7218
7219 _ACEOF
7220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7221   egrep "socklen_t" >/dev/null 2>&1; then
7222   echo "$as_me:7222: result: yes" >&5
7223 echo "${ECHO_T}yes" >&6
7224
7225 cat >>confdefs.h <<\EOF
7226 #define HAVE_SOCKLEN 1
7227 EOF
7228
7229 else
7230   echo "$as_me:7230: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7232 fi
7233 rm -f conftest*
7234
7235     fi
7236
7237     #--------------------------------------------------------------------
7238     #  Do we need cross-process locking on this platform?
7239     #--------------------------------------------------------------------
7240     echo "$as_me:7240: checking whether cross-process locking is required by accept()" >&5
7241 echo $ECHO_N "checking whether cross-process locking is required by accept()... $ECHO_C" >&6
7242     case "`uname -sr`" in
7243         IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
7244                     echo "$as_me:7244: result: yes" >&5
7245 echo "${ECHO_T}yes" >&6
7246
7247 cat >>confdefs.h <<\EOF
7248 #define USE_LOCKING 1
7249 EOF
7250
7251             ;;
7252         *)
7253                     echo "$as_me:7253: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7255                 ;;
7256     esac
7257
7258     #--------------------------------------------------------------------
7259     #  Does va_arg(arg, long double) crash the compiler?
7260     #  hpux 9.04 compiler does and so does Stratus FTX (uses HP's compiler)
7261     #--------------------------------------------------------------------
7262     echo "$as_me:7262: checking whether va_arg(arg, long double) crashes the compiler" >&5
7263 echo $ECHO_N "checking whether va_arg(arg, long double) crashes the compiler... $ECHO_C" >&6
7264     cat >conftest.$ac_ext <<_ACEOF
7265 #line 7265 "configure"
7266 #include "confdefs.h"
7267 #include <stdarg.h>
7268 int
7269 main ()
7270 {
7271 long double lDblArg; va_list arg; lDblArg = va_arg(arg, long double);
7272   ;
7273   return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (eval echo "$as_me:7277: \"$ac_compile\"") >&5
7278   (eval $ac_compile) 2>&5
7279   ac_status=$?
7280   echo "$as_me:7280: \$? = $ac_status" >&5
7281   (exit $ac_status); } &&
7282          { ac_try='test -s conftest.$ac_objext'
7283   { (eval echo "$as_me:7283: \"$ac_try\"") >&5
7284   (eval $ac_try) 2>&5
7285   ac_status=$?
7286   echo "$as_me:7286: \$? = $ac_status" >&5
7287   (exit $ac_status); }; }; then
7288   echo "$as_me:7288: result: no" >&5
7289 echo "${ECHO_T}no" >&6
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 echo "$as_me:7293: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6
7295
7296 cat >>confdefs.h <<\EOF
7297 #define HAVE_VA_ARG_LONG_DOUBLE_BUG 1
7298 EOF
7299
7300 fi
7301 rm -f conftest.$ac_objext conftest.$ac_ext
7302
7303     echo "$as_me:7303: checking for an ANSI C-conforming const" >&5
7304 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7305 if test "${ac_cv_c_const+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   cat >conftest.$ac_ext <<_ACEOF
7309 #line 7309 "configure"
7310 #include "confdefs.h"
7311
7312 int
7313 main ()
7314 {
7315 /* FIXME: Include the comments suggested by Paul. */
7316 #ifndef __cplusplus
7317   /* Ultrix mips cc rejects this.  */
7318   typedef int charset[2];
7319   const charset x;
7320   /* SunOS 4.1.1 cc rejects this.  */
7321   char const *const *ccp;
7322   char **p;
7323   /* NEC SVR4.0.2 mips cc rejects this.  */
7324   struct point {int x, y;};
7325   static struct point const zero = {0,0};
7326   /* AIX XL C 1.02.0.0 rejects this.
7327      It does not let you subtract one const X* pointer from another in
7328      an arm of an if-expression whose if-part is not a constant
7329      expression */
7330   const char *g = "string";
7331   ccp = &g + (g ? g-g : 0);
7332   /* HPUX 7.0 cc rejects these. */
7333   ++ccp;
7334   p = (char**) ccp;
7335   ccp = (char const *const *) p;
7336   { /* SCO 3.2v4 cc rejects this.  */
7337     char *t;
7338     char const *s = 0 ? (char *) 0 : (char const *) 0;
7339
7340     *t++ = 0;
7341   }
7342   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7343     int x[] = {25, 17};
7344     const int *foo = &x[0];
7345     ++foo;
7346   }
7347   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7348     typedef const int *iptr;
7349     iptr p = 0;
7350     ++p;
7351   }
7352   { /* AIX XL C 1.02.0.0 rejects this saying
7353        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7354     struct s { int j; const int *ap[3]; };
7355     struct s *b; b->j = 5;
7356   }
7357   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7358     const int foo = 10;
7359   }
7360 #endif
7361
7362   ;
7363   return 0;
7364 }
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (eval echo "$as_me:7367: \"$ac_compile\"") >&5
7368   (eval $ac_compile) 2>&5
7369   ac_status=$?
7370   echo "$as_me:7370: \$? = $ac_status" >&5
7371   (exit $ac_status); } &&
7372          { ac_try='test -s conftest.$ac_objext'
7373   { (eval echo "$as_me:7373: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:7376: \$? = $ac_status" >&5
7377   (exit $ac_status); }; }; then
7378   ac_cv_c_const=yes
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7382 ac_cv_c_const=no
7383 fi
7384 rm -f conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 echo "$as_me:7386: result: $ac_cv_c_const" >&5
7387 echo "${ECHO_T}$ac_cv_c_const" >&6
7388 if test $ac_cv_c_const = no; then
7389
7390 cat >>confdefs.h <<\EOF
7391 #define const
7392 EOF
7393
7394 fi
7395
7396 for ac_func in strerror
7397 do
7398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7399 echo "$as_me:7399: checking for $ac_func" >&5
7400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7401 if eval "test \"\${$as_ac_var+set}\" = set"; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   cat >conftest.$ac_ext <<_ACEOF
7405 #line 7405 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408     which can conflict with char $ac_func (); below.  */
7409 #include <assert.h>
7410 /* Override any gcc2 internal prototype to avoid an error.  */
7411 #ifdef __cplusplus
7412 extern "C"
7413 #endif
7414 /* We use char because int might match the return type of a gcc2
7415    builtin and then its argument prototype would still apply.  */
7416 char $ac_func ();
7417 char (*f) ();
7418
7419 int
7420 main ()
7421 {
7422 /* The GNU C library defines this for functions which it implements
7423     to always fail with ENOSYS.  Some functions are actually named
7424     something starting with __ and the normal name is an alias.  */
7425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7426 choke me
7427 #else
7428 f = $ac_func;
7429 #endif
7430
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:7436: \"$ac_link\"") >&5
7437   (eval $ac_link) 2>&5
7438   ac_status=$?
7439   echo "$as_me:7439: \$? = $ac_status" >&5
7440   (exit $ac_status); } &&
7441          { ac_try='test -s conftest$ac_exeext'
7442   { (eval echo "$as_me:7442: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:7445: \$? = $ac_status" >&5
7446   (exit $ac_status); }; }; then
7447   eval "$as_ac_var=yes"
7448 else
7449   echo "$as_me: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 eval "$as_ac_var=no"
7452 fi
7453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7454 fi
7455 echo "$as_me:7455: result: `eval echo '${'$as_ac_var'}'`" >&5
7456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7457 if test `eval echo '${'$as_ac_var'}'` = yes; then
7458   cat >>confdefs.h <<EOF
7459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7460 EOF
7461
7462 else
7463   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7464 fi
7465 done
7466
7467 echo "$as_me:7467: checking for inline" >&5
7468 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7469 if test "${ac_cv_c_inline+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   ac_cv_c_inline=no
7473 for ac_kw in inline __inline__ __inline; do
7474   cat >conftest.$ac_ext <<_ACEOF
7475 #line 7475 "configure"
7476 #include "confdefs.h"
7477 #ifndef __cplusplus
7478 static $ac_kw int static_foo () {return 0; }
7479 $ac_kw int foo () {return 0; }
7480 #endif
7481
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:7484: \"$ac_compile\"") >&5
7485   (eval $ac_compile) 2>&5
7486   ac_status=$?
7487   echo "$as_me:7487: \$? = $ac_status" >&5
7488   (exit $ac_status); } &&
7489          { ac_try='test -s conftest.$ac_objext'
7490   { (eval echo "$as_me:7490: \"$ac_try\"") >&5
7491   (eval $ac_try) 2>&5
7492   ac_status=$?
7493   echo "$as_me:7493: \$? = $ac_status" >&5
7494   (exit $ac_status); }; }; then
7495   ac_cv_c_inline=$ac_kw; break
7496 else
7497   echo "$as_me: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7499 fi
7500 rm -f conftest.$ac_objext conftest.$ac_ext
7501 done
7502
7503 fi
7504 echo "$as_me:7504: result: $ac_cv_c_inline" >&5
7505 echo "${ECHO_T}$ac_cv_c_inline" >&6
7506 case $ac_cv_c_inline in
7507   inline | yes) ;;
7508   no)
7509 cat >>confdefs.h <<\EOF
7510 #define inline
7511 EOF
7512  ;;
7513   *)  cat >>confdefs.h <<EOF
7514 #define inline $ac_cv_c_inline
7515 EOF
7516  ;;
7517 esac
7518
7519 #--------------------------------------------------------------------
7520 #  This is a little hokie in that it avoids including config.guess
7521 #  and config.sub in the distribution, but its been working so far.
7522 #  Windows builds don't run configure so we should be safe fixing
7523 #  this to 'unix' (at least for now).
7524 #--------------------------------------------------------------------
7525 SYSTEM=unix
7526
7527 if test "$GCC"; then
7528         CCDEFS="$CCDEFS -Wall -Wmissing-prototypes"
7529 fi
7530
7531 ac_config_files="$ac_config_files Makefile libfcgi/Makefile cgi-fcgi/Makefile examples/Makefile"
7532
7533 cat >confcache <<\_ACEOF
7534 # This file is a shell script that caches the results of configure
7535 # tests run on this system so they can be shared between configure
7536 # scripts and configure runs, see configure's option --config-cache.
7537 # It is not useful on other systems.  If it contains results you don't
7538 # want to keep, you may remove or edit it.
7539 #
7540 # config.status only pays attention to the cache file if you give it
7541 # the --recheck option to rerun configure.
7542 #
7543 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7544 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7545 # following values.
7546
7547 _ACEOF
7548
7549 # The following way of writing the cache mishandles newlines in values,
7550 # but we know of no workaround that is simple, portable, and efficient.
7551 # So, don't put newlines in cache variables' values.
7552 # Ultrix sh set writes to stderr and can't be redirected directly,
7553 # and sets the high bit in the cache file unless we assign to the vars.
7554 {
7555   (set) 2>&1 |
7556     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7557     *ac_space=\ *)
7558       # `set' does not quote correctly, so add quotes (double-quote
7559       # substitution turns \\\\ into \\, and sed turns \\ into \).
7560       sed -n \
7561         "s/'/'\\\\''/g;
7562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7563       ;;
7564     *)
7565       # `set' quotes correctly as required by POSIX, so do not add quotes.
7566       sed -n \
7567         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7568       ;;
7569     esac;
7570 } |
7571   sed '
7572      t clear
7573      : clear
7574      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7575      t end
7576      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7577      : end' >>confcache
7578 if cmp -s $cache_file confcache; then :; else
7579   if test -w $cache_file; then
7580     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7581     cat confcache >$cache_file
7582   else
7583     echo "not updating unwritable cache $cache_file"
7584   fi
7585 fi
7586 rm -f confcache
7587
7588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7589 # Let make expand exec_prefix.
7590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7591
7592 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7593 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7594 # trailing colons and then remove the whole line if VPATH becomes empty
7595 # (actually we leave an empty line to preserve line numbers).
7596 if test "x$srcdir" = x.; then
7597   ac_vpsub='/^[         ]*VPATH[        ]*=/{
7598 s/:*\$(srcdir):*/:/;
7599 s/:*\${srcdir}:*/:/;
7600 s/:*@srcdir@:*/:/;
7601 s/^\([^=]*=[    ]*\):*/\1/;
7602 s/:*$//;
7603 s/^[^=]*=[      ]*$//;
7604 }'
7605 fi
7606
7607 DEFS=-DHAVE_CONFIG_H
7608
7609 : ${CONFIG_STATUS=./config.status}
7610 ac_clean_files_save=$ac_clean_files
7611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7612 { echo "$as_me:7612: creating $CONFIG_STATUS" >&5
7613 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7614 cat >$CONFIG_STATUS <<_ACEOF
7615 #! $SHELL
7616 # Generated automatically by configure.
7617 # Run this file to recreate the current configuration.
7618 # Compiler output produced by configure, useful for debugging
7619 # configure, is in config.log if it exists.
7620
7621 debug=false
7622 SHELL=\${CONFIG_SHELL-$SHELL}
7623 ac_cs_invocation="\$0 \$@"
7624
7625 _ACEOF
7626
7627 cat >>$CONFIG_STATUS <<\_ACEOF
7628 # Be Bourne compatible
7629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7630   emulate sh
7631   NULLCMD=:
7632 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7633   set -o posix
7634 fi
7635
7636 # Name of the executable.
7637 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7638
7639 if expr a : '\(a\)' >/dev/null 2>&1; then
7640   as_expr=expr
7641 else
7642   as_expr=false
7643 fi
7644
7645 rm -f conf$$ conf$$.exe conf$$.file
7646 echo >conf$$.file
7647 if ln -s conf$$.file conf$$ 2>/dev/null; then
7648   # We could just check for DJGPP; but this test a) works b) is more generic
7649   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7650   if test -f conf$$.exe; then
7651     # Don't use ln at all; we don't have any links
7652     as_ln_s='cp -p'
7653   else
7654     as_ln_s='ln -s'
7655   fi
7656 elif ln conf$$.file conf$$ 2>/dev/null; then
7657   as_ln_s=ln
7658 else
7659   as_ln_s='cp -p'
7660 fi
7661 rm -f conf$$ conf$$.exe conf$$.file
7662
7663 as_executable_p="test -f"
7664
7665 # Support unset when possible.
7666 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7667   as_unset=unset
7668 else
7669   as_unset=false
7670 fi
7671
7672 # NLS nuisances.
7673 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7674 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7675 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7676 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7677 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7678 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7679 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7680 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7681
7682 # IFS
7683 # We need space, tab and new line, in precisely that order.
7684 as_nl='
7685 '
7686 IFS="   $as_nl"
7687
7688 # CDPATH.
7689 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7690
7691 exec 6>&1
7692
7693 _ACEOF
7694
7695 # Files that config.status was made for.
7696 if test -n "$ac_config_files"; then
7697   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7698 fi
7699
7700 if test -n "$ac_config_headers"; then
7701   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7702 fi
7703
7704 if test -n "$ac_config_links"; then
7705   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7706 fi
7707
7708 if test -n "$ac_config_commands"; then
7709   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7710 fi
7711
7712 cat >>$CONFIG_STATUS <<\EOF
7713
7714 ac_cs_usage="\
7715 \`$as_me' instantiates files from templates according to the
7716 current configuration.
7717
7718 Usage: $0 [OPTIONS] [FILE]...
7719
7720   -h, --help       print this help, then exit
7721   -V, --version    print version number, then exit
7722   -d, --debug      don't remove temporary files
7723       --recheck    update $as_me by reconfiguring in the same conditions
7724   --file=FILE[:TEMPLATE]
7725                    instantiate the configuration file FILE
7726   --header=FILE[:TEMPLATE]
7727                    instantiate the configuration header FILE
7728
7729 Configuration files:
7730 $config_files
7731
7732 Configuration headers:
7733 $config_headers
7734
7735 Configuration commands:
7736 $config_commands
7737
7738 Report bugs to <bug-autoconf@gnu.org>."
7739 EOF
7740
7741 cat >>$CONFIG_STATUS <<EOF
7742 ac_cs_version="\\
7743 config.status
7744 configured by $0, generated by GNU Autoconf 2.52,
7745   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7746
7747 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7748 Free Software Foundation, Inc.
7749 This config.status script is free software; the Free Software Foundation
7750 gives unlimited permission to copy, distribute and modify it."
7751 srcdir=$srcdir
7752 INSTALL="$INSTALL"
7753 EOF
7754
7755 cat >>$CONFIG_STATUS <<\EOF
7756 # If no file are specified by the user, then we need to provide default
7757 # value.  By we need to know if files were specified by the user.
7758 ac_need_defaults=:
7759 while test $# != 0
7760 do
7761   case $1 in
7762   --*=*)
7763     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7764     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7765     shift
7766     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7767     shift
7768     ;;
7769   -*);;
7770   *) # This is not an option, so the user has probably given explicit
7771      # arguments.
7772      ac_need_defaults=false;;
7773   esac
7774
7775   case $1 in
7776   # Handling of the options.
7777 EOF
7778 cat >>$CONFIG_STATUS <<EOF
7779   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7780     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7781     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7782 EOF
7783 cat >>$CONFIG_STATUS <<\EOF
7784   --version | --vers* | -V )
7785     echo "$ac_cs_version"; exit 0 ;;
7786   --he | --h)
7787     # Conflict between --help and --header
7788     { { echo "$as_me:7788: error: ambiguous option: $1
7789 Try \`$0 --help' for more information." >&5
7790 echo "$as_me: error: ambiguous option: $1
7791 Try \`$0 --help' for more information." >&2;}
7792    { (exit 1); exit 1; }; };;
7793   --help | --hel | -h )
7794     echo "$ac_cs_usage"; exit 0 ;;
7795   --debug | --d* | -d )
7796     debug=: ;;
7797   --file | --fil | --fi | --f )
7798     shift
7799     CONFIG_FILES="$CONFIG_FILES $1"
7800     ac_need_defaults=false;;
7801   --header | --heade | --head | --hea )
7802     shift
7803     CONFIG_HEADERS="$CONFIG_HEADERS $1"
7804     ac_need_defaults=false;;
7805
7806   # This is an error.
7807   -*) { { echo "$as_me:7807: error: unrecognized option: $1
7808 Try \`$0 --help' for more information." >&5
7809 echo "$as_me: error: unrecognized option: $1
7810 Try \`$0 --help' for more information." >&2;}
7811    { (exit 1); exit 1; }; } ;;
7812
7813   *) ac_config_targets="$ac_config_targets $1" ;;
7814
7815   esac
7816   shift
7817 done
7818
7819 exec 5>>config.log
7820 cat >&5 << _ACEOF
7821
7822 ## ----------------------- ##
7823 ## Running config.status.  ##
7824 ## ----------------------- ##
7825
7826 This file was extended by $as_me 2.52, executed with
7827   CONFIG_FILES    = $CONFIG_FILES
7828   CONFIG_HEADERS  = $CONFIG_HEADERS
7829   CONFIG_LINKS    = $CONFIG_LINKS
7830   CONFIG_COMMANDS = $CONFIG_COMMANDS
7831   > $ac_cs_invocation
7832 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7833
7834 _ACEOF
7835 EOF
7836
7837 cat >>$CONFIG_STATUS <<EOF
7838 #
7839 # INIT-COMMANDS section.
7840 #
7841
7842 AMDEP_TRUE="$AMDEP_TRUE"
7843 ac_aux_dir="$ac_aux_dir"
7844
7845 EOF
7846
7847 cat >>$CONFIG_STATUS <<\EOF
7848 for ac_config_target in $ac_config_targets
7849 do
7850   case "$ac_config_target" in
7851   # Handling of arguments.
7852   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7853   "libfcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libfcgi/Makefile" ;;
7854   "cgi-fcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-fcgi/Makefile" ;;
7855   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7856   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7857   "include/fcgi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/fcgi_config.h" ;;
7858   *) { { echo "$as_me:7858: error: invalid argument: $ac_config_target" >&5
7859 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7860    { (exit 1); exit 1; }; };;
7861   esac
7862 done
7863
7864 # If the user did not use the arguments to specify the items to instantiate,
7865 # then the envvar interface is used.  Set only those that are not.
7866 # We use the long form for the default assignment because of an extremely
7867 # bizarre bug on SunOS 4.1.3.
7868 if $ac_need_defaults; then
7869   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7870   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7871   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7872 fi
7873
7874 # Create a temporary directory, and hook for its removal unless debugging.
7875 $debug ||
7876 {
7877   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7878   trap '{ (exit 1); exit 1; }' 1 2 13 15
7879 }
7880
7881 # Create a (secure) tmp directory for tmp files.
7882 : ${TMPDIR=/tmp}
7883 {
7884   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7885   test -n "$tmp" && test -d "$tmp"
7886 }  ||
7887 {
7888   tmp=$TMPDIR/cs$$-$RANDOM
7889   (umask 077 && mkdir $tmp)
7890 } ||
7891 {
7892    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7893    { (exit 1); exit 1; }
7894 }
7895
7896 EOF
7897
7898 cat >>$CONFIG_STATUS <<EOF
7899
7900 #
7901 # CONFIG_FILES section.
7902 #
7903
7904 # No need to generate the scripts if there are no CONFIG_FILES.
7905 # This happens for instance when ./config.status config.h
7906 if test -n "\$CONFIG_FILES"; then
7907   # Protect against being on the right side of a sed subst in config.status.
7908   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7909    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7910 s,@SHELL@,$SHELL,;t t
7911 s,@exec_prefix@,$exec_prefix,;t t
7912 s,@prefix@,$prefix,;t t
7913 s,@program_transform_name@,$program_transform_name,;t t
7914 s,@bindir@,$bindir,;t t
7915 s,@sbindir@,$sbindir,;t t
7916 s,@libexecdir@,$libexecdir,;t t
7917 s,@datadir@,$datadir,;t t
7918 s,@sysconfdir@,$sysconfdir,;t t
7919 s,@sharedstatedir@,$sharedstatedir,;t t
7920 s,@localstatedir@,$localstatedir,;t t
7921 s,@libdir@,$libdir,;t t
7922 s,@includedir@,$includedir,;t t
7923 s,@oldincludedir@,$oldincludedir,;t t
7924 s,@infodir@,$infodir,;t t
7925 s,@mandir@,$mandir,;t t
7926 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7927 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7928 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7929 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7930 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7931 s,@build_alias@,$build_alias,;t t
7932 s,@host_alias@,$host_alias,;t t
7933 s,@target_alias@,$target_alias,;t t
7934 s,@ECHO_C@,$ECHO_C,;t t
7935 s,@ECHO_N@,$ECHO_N,;t t
7936 s,@ECHO_T@,$ECHO_T,;t t
7937 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7938 s,@DEFS@,$DEFS,;t t
7939 s,@LIBS@,$LIBS,;t t
7940 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7941 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7942 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7943 s,@PACKAGE@,$PACKAGE,;t t
7944 s,@VERSION@,$VERSION,;t t
7945 s,@EXEEXT@,$EXEEXT,;t t
7946 s,@OBJEXT@,$OBJEXT,;t t
7947 s,@ACLOCAL@,$ACLOCAL,;t t
7948 s,@AUTOCONF@,$AUTOCONF,;t t
7949 s,@AUTOMAKE@,$AUTOMAKE,;t t
7950 s,@AUTOHEADER@,$AUTOHEADER,;t t
7951 s,@MAKEINFO@,$MAKEINFO,;t t
7952 s,@AMTAR@,$AMTAR,;t t
7953 s,@install_sh@,$install_sh,;t t
7954 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7955 s,@AWK@,$AWK,;t t
7956 s,@SET_MAKE@,$SET_MAKE,;t t
7957 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7958 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7959 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7960 s,@DEPDIR@,$DEPDIR,;t t
7961 s,@CC@,$CC,;t t
7962 s,@CFLAGS@,$CFLAGS,;t t
7963 s,@LDFLAGS@,$LDFLAGS,;t t
7964 s,@CPPFLAGS@,$CPPFLAGS,;t t
7965 s,@ac_ct_CC@,$ac_ct_CC,;t t
7966 s,@am__include@,$am__include,;t t
7967 s,@am__quote@,$am__quote,;t t
7968 s,@CCDEPMODE@,$CCDEPMODE,;t t
7969 s,@CPP@,$CPP,;t t
7970 s,@build@,$build,;t t
7971 s,@build_cpu@,$build_cpu,;t t
7972 s,@build_vendor@,$build_vendor,;t t
7973 s,@build_os@,$build_os,;t t
7974 s,@host@,$host,;t t
7975 s,@host_cpu@,$host_cpu,;t t
7976 s,@host_vendor@,$host_vendor,;t t
7977 s,@host_os@,$host_os,;t t
7978 s,@LN_S@,$LN_S,;t t
7979 s,@ECHO@,$ECHO,;t t
7980 s,@RANLIB@,$RANLIB,;t t
7981 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7982 s,@STRIP@,$STRIP,;t t
7983 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7984 s,@LIBTOOL@,$LIBTOOL,;t t
7985 s,@threaded@,$threaded,;t t
7986 s,@HAVE_LIBPTHREAD@,$HAVE_LIBPTHREAD,;t t
7987 s,@LIBOBJS@,$LIBOBJS,;t t
7988 s,@SYSTEM@,$SYSTEM,;t t
7989 s,@CCDEFS@,$CCDEFS,;t t
7990 CEOF
7991
7992 EOF
7993
7994   cat >>$CONFIG_STATUS <<\EOF
7995   # Split the substitutions into bite-sized pieces for seds with
7996   # small command number limits, like on Digital OSF/1 and HP-UX.
7997   ac_max_sed_lines=48
7998   ac_sed_frag=1 # Number of current file.
7999   ac_beg=1 # First line for current file.
8000   ac_end=$ac_max_sed_lines # Line after last line for current file.
8001   ac_more_lines=:
8002   ac_sed_cmds=
8003   while $ac_more_lines; do
8004     if test $ac_beg -gt 1; then
8005       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8006     else
8007       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8008     fi
8009     if test ! -s $tmp/subs.frag; then
8010       ac_more_lines=false
8011     else
8012       # The purpose of the label and of the branching condition is to
8013       # speed up the sed processing (if there are no `@' at all, there
8014       # is no need to browse any of the substitutions).
8015       # These are the two extra sed commands mentioned above.
8016       (echo ':t
8017   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8018       if test -z "$ac_sed_cmds"; then
8019         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8020       else
8021         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8022       fi
8023       ac_sed_frag=`expr $ac_sed_frag + 1`
8024       ac_beg=$ac_end
8025       ac_end=`expr $ac_end + $ac_max_sed_lines`
8026     fi
8027   done
8028   if test -z "$ac_sed_cmds"; then
8029     ac_sed_cmds=cat
8030   fi
8031 fi # test -n "$CONFIG_FILES"
8032
8033 EOF
8034 cat >>$CONFIG_STATUS <<\EOF
8035 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8036   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8037   case $ac_file in
8038   - | *:- | *:-:* ) # input from stdin
8039         cat >$tmp/stdin
8040         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8041         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8042   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8043         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8044   * )   ac_file_in=$ac_file.in ;;
8045   esac
8046
8047   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8048   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8049          X"$ac_file" : 'X\(//\)[^/]' \| \
8050          X"$ac_file" : 'X\(//\)$' \| \
8051          X"$ac_file" : 'X\(/\)' \| \
8052          .     : '\(.\)' 2>/dev/null ||
8053 echo X"$ac_file" |
8054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8055           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8056           /^X\(\/\/\)$/{ s//\1/; q; }
8057           /^X\(\/\).*/{ s//\1/; q; }
8058           s/.*/./; q'`
8059   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8060     { case "$ac_dir" in
8061   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8062   *)                      as_incr_dir=.;;
8063 esac
8064 as_dummy="$ac_dir"
8065 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8066   case $as_mkdir_dir in
8067     # Skip DOS drivespec
8068     ?:) as_incr_dir=$as_mkdir_dir ;;
8069     *)
8070       as_incr_dir=$as_incr_dir/$as_mkdir_dir
8071       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8072     ;;
8073   esac
8074 done; }
8075
8076     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8077     # A "../" for each directory in $ac_dir_suffix.
8078     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8079   else
8080     ac_dir_suffix= ac_dots=
8081   fi
8082
8083   case $srcdir in
8084   .)  ac_srcdir=.
8085       if test -z "$ac_dots"; then
8086          ac_top_srcdir=.
8087       else
8088          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8089       fi ;;
8090   [\\/]* | ?:[\\/]* )
8091       ac_srcdir=$srcdir$ac_dir_suffix;
8092       ac_top_srcdir=$srcdir ;;
8093   *) # Relative path.
8094     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8095     ac_top_srcdir=$ac_dots$srcdir ;;
8096   esac
8097
8098   case $INSTALL in
8099   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8100   *) ac_INSTALL=$ac_dots$INSTALL ;;
8101   esac
8102
8103   if test x"$ac_file" != x-; then
8104     { echo "$as_me:8104: creating $ac_file" >&5
8105 echo "$as_me: creating $ac_file" >&6;}
8106     rm -f "$ac_file"
8107   fi
8108   # Let's still pretend it is `configure' which instantiates (i.e., don't
8109   # use $as_me), people would be surprised to read:
8110   #    /* config.h.  Generated automatically by config.status.  */
8111   configure_input="Generated automatically from `echo $ac_file_in |
8112                                                  sed 's,.*/,,'` by configure."
8113
8114   # First look for the input files in the build tree, otherwise in the
8115   # src tree.
8116   ac_file_inputs=`IFS=:
8117     for f in $ac_file_in; do
8118       case $f in
8119       -) echo $tmp/stdin ;;
8120       [\\/$]*)
8121          # Absolute (can't be DOS-style, as IFS=:)
8122          test -f "$f" || { { echo "$as_me:8122: error: cannot find input file: $f" >&5
8123 echo "$as_me: error: cannot find input file: $f" >&2;}
8124    { (exit 1); exit 1; }; }
8125          echo $f;;
8126       *) # Relative
8127          if test -f "$f"; then
8128            # Build tree
8129            echo $f
8130          elif test -f "$srcdir/$f"; then
8131            # Source tree
8132            echo $srcdir/$f
8133          else
8134            # /dev/null tree
8135            { { echo "$as_me:8135: error: cannot find input file: $f" >&5
8136 echo "$as_me: error: cannot find input file: $f" >&2;}
8137    { (exit 1); exit 1; }; }
8138          fi;;
8139       esac
8140     done` || { (exit 1); exit 1; }
8141 EOF
8142 cat >>$CONFIG_STATUS <<EOF
8143   sed "$ac_vpsub
8144 $extrasub
8145 EOF
8146 cat >>$CONFIG_STATUS <<\EOF
8147 :t
8148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8149 s,@configure_input@,$configure_input,;t t
8150 s,@srcdir@,$ac_srcdir,;t t
8151 s,@top_srcdir@,$ac_top_srcdir,;t t
8152 s,@INSTALL@,$ac_INSTALL,;t t
8153 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8154   rm -f $tmp/stdin
8155   if test x"$ac_file" != x-; then
8156     mv $tmp/out $ac_file
8157   else
8158     cat $tmp/out
8159     rm -f $tmp/out
8160   fi
8161
8162 done
8163 EOF
8164 cat >>$CONFIG_STATUS <<\EOF
8165
8166 #
8167 # CONFIG_HEADER section.
8168 #
8169
8170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8172 #
8173 # ac_d sets the value in "#define NAME VALUE" lines.
8174 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8175 ac_dB='[        ].*$,\1#\2'
8176 ac_dC=' '
8177 ac_dD=',;t'
8178 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8179 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8180 ac_uB='$,\1#\2define\3'
8181 ac_uC=' '
8182 ac_uD=',;t'
8183
8184 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8185   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8186   case $ac_file in
8187   - | *:- | *:-:* ) # input from stdin
8188         cat >$tmp/stdin
8189         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8190         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8191   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8192         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8193   * )   ac_file_in=$ac_file.in ;;
8194   esac
8195
8196   test x"$ac_file" != x- && { echo "$as_me:8196: creating $ac_file" >&5
8197 echo "$as_me: creating $ac_file" >&6;}
8198
8199   # First look for the input files in the build tree, otherwise in the
8200   # src tree.
8201   ac_file_inputs=`IFS=:
8202     for f in $ac_file_in; do
8203       case $f in
8204       -) echo $tmp/stdin ;;
8205       [\\/$]*)
8206          # Absolute (can't be DOS-style, as IFS=:)
8207          test -f "$f" || { { echo "$as_me:8207: error: cannot find input file: $f" >&5
8208 echo "$as_me: error: cannot find input file: $f" >&2;}
8209    { (exit 1); exit 1; }; }
8210          echo $f;;
8211       *) # Relative
8212          if test -f "$f"; then
8213            # Build tree
8214            echo $f
8215          elif test -f "$srcdir/$f"; then
8216            # Source tree
8217            echo $srcdir/$f
8218          else
8219            # /dev/null tree
8220            { { echo "$as_me:8220: error: cannot find input file: $f" >&5
8221 echo "$as_me: error: cannot find input file: $f" >&2;}
8222    { (exit 1); exit 1; }; }
8223          fi;;
8224       esac
8225     done` || { (exit 1); exit 1; }
8226   # Remove the trailing spaces.
8227   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8228
8229 EOF
8230
8231 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8232 # `conftest.undefs', that substitutes the proper values into
8233 # config.h.in to produce config.h.  The first handles `#define'
8234 # templates, and the second `#undef' templates.
8235 # And first: Protect against being on the right side of a sed subst in
8236 # config.status.  Protect against being in an unquoted here document
8237 # in config.status.
8238 rm -f conftest.defines conftest.undefs
8239 # Using a here document instead of a string reduces the quoting nightmare.
8240 # Putting comments in sed scripts is not portable.
8241 #
8242 # `end' is used to avoid that the second main sed command (meant for
8243 # 0-ary CPP macros) applies to n-ary macro definitions.
8244 # See the Autoconf documentation for `clear'.
8245 cat >confdef2sed.sed <<\EOF
8246 s/[\\&,]/\\&/g
8247 s,[\\$`],\\&,g
8248 t clear
8249 : clear
8250 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8251 t end
8252 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8253 : end
8254 EOF
8255 # If some macros were called several times there might be several times
8256 # the same #defines, which is useless.  Nevertheless, we may not want to
8257 # sort them, since we want the *last* AC-DEFINE to be honored.
8258 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8259 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8260 rm -f confdef2sed.sed
8261
8262 # This sed command replaces #undef with comments.  This is necessary, for
8263 # example, in the case of _POSIX_SOURCE, which is predefined and required
8264 # on some systems where configure will not decide to define it.
8265 cat >>conftest.undefs <<\EOF
8266 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8267 EOF
8268
8269 # Break up conftest.defines because some shells have a limit on the size
8270 # of here documents, and old seds have small limits too (100 cmds).
8271 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8272 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8273 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8274 echo '  :' >>$CONFIG_STATUS
8275 rm -f conftest.tail
8276 while grep . conftest.defines >/dev/null
8277 do
8278   # Write a limited-size here document to $tmp/defines.sed.
8279   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8280   # Speed up: don't consider the non `#define' lines.
8281   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8282   # Work around the forget-to-reset-the-flag bug.
8283   echo 't clr' >>$CONFIG_STATUS
8284   echo ': clr' >>$CONFIG_STATUS
8285   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8286   echo 'CEOF
8287   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8288   rm -f $tmp/in
8289   mv $tmp/out $tmp/in
8290 ' >>$CONFIG_STATUS
8291   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8292   rm -f conftest.defines
8293   mv conftest.tail conftest.defines
8294 done
8295 rm -f conftest.defines
8296 echo '  fi # egrep' >>$CONFIG_STATUS
8297 echo >>$CONFIG_STATUS
8298
8299 # Break up conftest.undefs because some shells have a limit on the size
8300 # of here documents, and old seds have small limits too (100 cmds).
8301 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8302 rm -f conftest.tail
8303 while grep . conftest.undefs >/dev/null
8304 do
8305   # Write a limited-size here document to $tmp/undefs.sed.
8306   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8307   # Speed up: don't consider the non `#undef'
8308   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8309   # Work around the forget-to-reset-the-flag bug.
8310   echo 't clr' >>$CONFIG_STATUS
8311   echo ': clr' >>$CONFIG_STATUS
8312   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8313   echo 'CEOF
8314   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8315   rm -f $tmp/in
8316   mv $tmp/out $tmp/in
8317 ' >>$CONFIG_STATUS
8318   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8319   rm -f conftest.undefs
8320   mv conftest.tail conftest.undefs
8321 done
8322 rm -f conftest.undefs
8323
8324 cat >>$CONFIG_STATUS <<\EOF
8325   # Let's still pretend it is `configure' which instantiates (i.e., don't
8326   # use $as_me), people would be surprised to read:
8327   #    /* config.h.  Generated automatically by config.status.  */
8328   if test x"$ac_file" = x-; then
8329     echo "/* Generated automatically by configure.  */" >$tmp/config.h
8330   else
8331     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8332   fi
8333   cat $tmp/in >>$tmp/config.h
8334   rm -f $tmp/in
8335   if test x"$ac_file" != x-; then
8336     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8337       { echo "$as_me:8337: $ac_file is unchanged" >&5
8338 echo "$as_me: $ac_file is unchanged" >&6;}
8339     else
8340       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8341          X"$ac_file" : 'X\(//\)[^/]' \| \
8342          X"$ac_file" : 'X\(//\)$' \| \
8343          X"$ac_file" : 'X\(/\)' \| \
8344          .     : '\(.\)' 2>/dev/null ||
8345 echo X"$ac_file" |
8346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8347           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8348           /^X\(\/\/\)$/{ s//\1/; q; }
8349           /^X\(\/\).*/{ s//\1/; q; }
8350           s/.*/./; q'`
8351       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8352         { case "$ac_dir" in
8353   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8354   *)                      as_incr_dir=.;;
8355 esac
8356 as_dummy="$ac_dir"
8357 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8358   case $as_mkdir_dir in
8359     # Skip DOS drivespec
8360     ?:) as_incr_dir=$as_mkdir_dir ;;
8361     *)
8362       as_incr_dir=$as_incr_dir/$as_mkdir_dir
8363       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8364     ;;
8365   esac
8366 done; }
8367
8368       fi
8369       rm -f $ac_file
8370       mv $tmp/config.h $ac_file
8371     fi
8372   else
8373     cat $tmp/config.h
8374     rm -f $tmp/config.h
8375   fi
8376   # Run the commands associated with the file.
8377   case $ac_file in
8378     include/fcgi_config.h ) # update the timestamp
8379 echo timestamp >"include/stamp-h1"
8380  ;;
8381   esac
8382 done
8383 EOF
8384 cat >>$CONFIG_STATUS <<\EOF
8385
8386 #
8387 # CONFIG_COMMANDS section.
8388 #
8389 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8390   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8391   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8392
8393   case $ac_dest in
8394     default-1 )
8395 test x"$AMDEP_TRUE" != x"" ||
8396 for mf in $CONFIG_FILES; do
8397   case "$mf" in
8398   Makefile) dirpart=.;;
8399   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
8400   *) continue;;
8401   esac
8402   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8403   # Extract the definition of DEP_FILES from the Makefile without
8404   # running `make'.
8405   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8406   test -z "$DEPDIR" && continue
8407   # When using ansi2knr, U may be empty or an underscore; expand it
8408   U=`sed -n -e '/^U = / s///p' < "$mf"`
8409   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8410   # We invoke sed twice because it is the simplest approach to
8411   # changing $(DEPDIR) to its actual value in the expansion.
8412   for file in `sed -n -e '
8413     /^DEP_FILES = .*\\\\$/ {
8414       s/^DEP_FILES = //
8415       :loop
8416         s/\\\\$//
8417         p
8418         n
8419         /\\\\$/ b loop
8420       p
8421     }
8422     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8423        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8424     # Make sure the directory exists.
8425     test -f "$dirpart/$file" && continue
8426     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
8427     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
8428     # echo "creating $dirpart/$file"
8429     echo '# dummy' > "$dirpart/$file"
8430   done
8431 done
8432  ;;
8433   esac
8434 done
8435 EOF
8436
8437 cat >>$CONFIG_STATUS <<\EOF
8438
8439 { (exit 0); exit 0; }
8440 EOF
8441 chmod +x $CONFIG_STATUS
8442 ac_clean_files=$ac_clean_files_save
8443
8444 # configure is writing to config.log, and then calls config.status.
8445 # config.status does its own redirection, appending to config.log.
8446 # Unfortunately, on DOS this fails, as config.log is still kept open
8447 # by configure, so config.status won't be able to write to it; its
8448 # output is simply discarded.  So we exec the FD to /dev/null,
8449 # effectively closing config.log, so it can be properly (re)opened and
8450 # appended to by config.status.  When coming back to configure, we
8451 # need to make the FD available again.
8452 if test "$no_create" != yes; then
8453   ac_cs_success=:
8454   exec 5>/dev/null
8455   $SHELL $CONFIG_STATUS || ac_cs_success=false
8456   exec 5>>config.log
8457   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8458   # would make configure fail if this is the last instruction.
8459   $ac_cs_success || { (exit 1); exit 1; }
8460 fi
8461