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