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