Initial revision
[TestXSLT.git] / libsablot / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator.  Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246   UNAME=${UNAME-`uname 2>/dev/null`}
247   case X$UNAME in
248     *-DOS) lt_cv_sys_path_separator=';' ;;
249     *)     lt_cv_sys_path_separator=':' ;;
250   esac
251   PATH_SEPARATOR=$lt_cv_sys_path_separator
252 fi
253
254
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 case X$ECHO in
259 X*--fallback-echo)
260   # Remove one level of quotation (which was required for Make).
261   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262   ;;
263 esac
264
265 echo=${ECHO-echo}
266 if test "X$1" = X--no-reexec; then
267   # Discard the --no-reexec flag, and continue.
268   shift
269 elif test "X$1" = X--fallback-echo; then
270   # Avoid inline document here, it may be left over
271   :
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273   # Yippee, $echo works!
274   :
275 else
276   # Restart under the correct shell.
277   exec $SHELL "$0" --no-reexec ${1+"$@"}
278 fi
279
280 if test "X$1" = X--fallback-echo; then
281   # used as fallback echo
282   shift
283   cat <<EOF
284
285 EOF
286   exit 0
287 fi
288
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 # if CDPATH is set.
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299        echo_test_string="`eval $cmd`" &&
300        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301     then
302       break
303     fi
304   done
305 fi
306
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309    test "X$echo_testing_string" = "X$echo_test_string"; then
310   :
311 else
312   # The Solaris, AIX, and Digital Unix default echo programs unquote
313   # backslashes.  This makes it impossible to quote backslashes using
314   #   echo "$something" | sed 's/\\/\\\\/g'
315   #
316   # So, first we look for a working echo in the user's PATH.
317
318   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319   for dir in $PATH /usr/ucb; do
320     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323        test "X$echo_testing_string" = "X$echo_test_string"; then
324       echo="$dir/echo"
325       break
326     fi
327   done
328   IFS="$save_ifs"
329
330   if test "X$echo" = Xecho; then
331     # We didn't find a better echo, so look for alternatives.
332     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334        test "X$echo_testing_string" = "X$echo_test_string"; then
335       # This shell has a builtin print -r that does the trick.
336       echo='print -r'
337     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338          test "X$CONFIG_SHELL" != X/bin/ksh; then
339       # If we have ksh, try running configure again with it.
340       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341       export ORIGINAL_CONFIG_SHELL
342       CONFIG_SHELL=/bin/ksh
343       export CONFIG_SHELL
344       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345     else
346       # Try using printf.
347       echo='printf %s\n'
348       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350          test "X$echo_testing_string" = "X$echo_test_string"; then
351         # Cool, printf works
352         :
353       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358         export CONFIG_SHELL
359         SHELL="$CONFIG_SHELL"
360         export SHELL
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363            test "X$echo_testing_string" = 'X\t' &&
364            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365            test "X$echo_testing_string" = "X$echo_test_string"; then
366         echo="$CONFIG_SHELL $0 --fallback-echo"
367       else
368         # maybe with a smaller string...
369         prev=:
370
371         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373           then
374             break
375           fi
376           prev="$cmd"
377         done
378
379         if test "$prev" != 'sed 50q "$0"'; then
380           echo_test_string=`eval $prev`
381           export echo_test_string
382           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383         else
384           # Oops.  We lost completely, so just stick with echo.
385           echo=echo
386         fi
387       fi
388     fi
389   fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION EXEEXT OBJEXT ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH DEPDIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC am__include am__quote CCDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP CXXWARNING_FLAGS PERL_PROG BUILD_APIDOCS HTML_DIR EXPAT_LIBS sabcfg_types_h ICONV_LIB has_perl OTHER_LIBS LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942
943 #
944 # Report the --help message.
945 #
946 if test "$ac_init_help" = "long"; then
947   # Omit some internal or obsolete options to make the list less imposing.
948   # This message is too long to be a string in the A/UX 3.1 sh.
949   cat <<_ACEOF
950 \`configure' configures this package to adapt to many kinds of systems.
951
952 Usage: $0 [OPTION]... [VAR=VALUE]...
953
954 To assign environment variables (e.g., CC, CFLAGS...), specify them as
955 VAR=VALUE.  See below for descriptions of some of the useful variables.
956
957 Defaults for the options are specified in brackets.
958
959 Configuration:
960   -h, --help              display this help and exit
961       --help=short        display options specific to this package
962       --help=recursive    display the short help of all the included packages
963   -V, --version           display version information and exit
964   -q, --quiet, --silent   do not print \`checking...' messages
965       --cache-file=FILE   cache test results in FILE [disabled]
966   -C, --config-cache      alias for \`--cache-file=config.cache'
967   -n, --no-create         do not create output files
968       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
969
970 _ACEOF
971
972   cat <<_ACEOF
973 Installation directories:
974   --prefix=PREFIX         install architecture-independent files in PREFIX
975                           [$ac_default_prefix]
976   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
977                           [PREFIX]
978
979 By default, \`make install' will install all the files in
980 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
981 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982 for instance \`--prefix=\$HOME'.
983
984 For better control, use the options below.
985
986 Fine tuning of the installation directories:
987   --bindir=DIR           user executables [EPREFIX/bin]
988   --sbindir=DIR          system admin executables [EPREFIX/sbin]
989   --libexecdir=DIR       program executables [EPREFIX/libexec]
990   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
991   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
992   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
993   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
994   --libdir=DIR           object code libraries [EPREFIX/lib]
995   --includedir=DIR       C header files [PREFIX/include]
996   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
997   --infodir=DIR          info documentation [PREFIX/info]
998   --mandir=DIR           man documentation [PREFIX/man]
999 _ACEOF
1000
1001   cat <<\_ACEOF
1002
1003 Program names:
1004   --program-prefix=PREFIX            prepend PREFIX to installed program names
1005   --program-suffix=SUFFIX            append SUFFIX to installed program names
1006   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1007
1008 System types:
1009   --build=BUILD     configure for building on BUILD [guessed]
1010   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1011 _ACEOF
1012 fi
1013
1014 if test -n "$ac_init_help"; then
1015
1016   cat <<\_ACEOF
1017
1018 Optional Features:
1019   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1020   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1021   --disable-dependency-tracking Speeds up one-time builds
1022   --enable-dependency-tracking  Do not reject slow dependency extractors
1023   --enable-shared=PKGS  build shared libraries default=yes
1024   --enable-static=PKGS  build static libraries default=yes
1025   --enable-fast-install=PKGS  optimize for fast installation default=yes
1026   --disable-libtool-lock  avoid locking (might break parallel builds)
1027   --enable-warnings           display all warning while compiling
1028   --enable-abort-on-error     abort processor on XSLT error
1029   --disable-adding-meta       do not output the META html tag
1030   --disable-document-errors   ignore errors in the document() function
1031   --enable-javascript     enable JavaScript extensions (e.g. exslt.org)
1032   --enable-perlconnect    enable JS engine perlconnect)
1033   --enable-iconv-typecast typecast the second parameter of iconv to char**
1034   --enable-check-leaks    enable memory leak checking (optional)
1035   --disable-dom           disable the DOM interface (smaller)
1036   --enable-debugger       enable xslt debugger
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1042   --with-pic              try to use only PIC/non-PIC objects default=use both
1043   --with-js-prefix=DIR    set alternate JavaScript prefix
1044   --with-expat-prefix=DIR set alternate expat prefix
1045   --with-iconv-prefix=DIR set alternate iconv prefix
1046   --with-perl=PATH use perl binary to install apidocs
1047   --with-html-dir=DIR path to install HTML documentation (defaults to docdir)
1048   --with-readline         use the GNU readline in the debugger
1049
1050 Some influential environment variables:
1051   CC          C compiler command
1052   CFLAGS      C compiler flags
1053   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054               nonstandard directory <lib dir>
1055   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056               headers in a nonstandard directory <include dir>
1057   CPP         C preprocessor
1058   CXX         C++ compiler command
1059   CXXFLAGS    C++ compiler flags
1060   CXXCPP      C++ preprocessor
1061
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1064
1065 _ACEOF
1066 fi
1067
1068 if test "$ac_init_help" = "recursive"; then
1069   # If there are subdirs, report their specific --help.
1070   ac_popdir=`pwd`
1071   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072     test -d $ac_dir || continue
1073     ac_builddir=.
1074
1075 if test "$ac_dir" != .; then
1076   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077   # A "../" for each directory in $ac_dir_suffix.
1078   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080   ac_dir_suffix= ac_top_builddir=
1081 fi
1082
1083 case $srcdir in
1084   .)  # No --srcdir option.  We are building in place.
1085     ac_srcdir=.
1086     if test -z "$ac_top_builddir"; then
1087        ac_top_srcdir=.
1088     else
1089        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090     fi ;;
1091   [\\/]* | ?:[\\/]* )  # Absolute path.
1092     ac_srcdir=$srcdir$ac_dir_suffix;
1093     ac_top_srcdir=$srcdir ;;
1094   *) # Relative path.
1095     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1099 # absolute.
1100 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1101 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1102 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1103 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1104
1105     cd $ac_dir
1106     # Check for guested configure; otherwise get Cygnus style configure.
1107     if test -f $ac_srcdir/configure.gnu; then
1108       echo
1109       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1110     elif test -f $ac_srcdir/configure; then
1111       echo
1112       $SHELL $ac_srcdir/configure  --help=recursive
1113     elif test -f $ac_srcdir/configure.ac ||
1114            test -f $ac_srcdir/configure.in; then
1115       echo
1116       $ac_configure --help
1117     else
1118       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1119     fi
1120     cd $ac_popdir
1121   done
1122 fi
1123
1124 test -n "$ac_init_help" && exit 0
1125 if $ac_init_version; then
1126   cat <<\_ACEOF
1127
1128 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1129 Free Software Foundation, Inc.
1130 This configure script is free software; the Free Software Foundation
1131 gives unlimited permission to copy, distribute and modify it.
1132 _ACEOF
1133   exit 0
1134 fi
1135 exec 5>config.log
1136 cat >&5 <<_ACEOF
1137 This file contains any messages produced by compilers while
1138 running configure, to aid debugging if configure makes a mistake.
1139
1140 It was created by $as_me, which was
1141 generated by GNU Autoconf 2.57.  Invocation command line was
1142
1143   $ $0 $@
1144
1145 _ACEOF
1146 {
1147 cat <<_ASUNAME
1148 ## --------- ##
1149 ## Platform. ##
1150 ## --------- ##
1151
1152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1157
1158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1159 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1160
1161 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1162 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1164 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1165 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1166 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1167 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1168
1169 _ASUNAME
1170
1171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1172 for as_dir in $PATH
1173 do
1174   IFS=$as_save_IFS
1175   test -z "$as_dir" && as_dir=.
1176   echo "PATH: $as_dir"
1177 done
1178
1179 } >&5
1180
1181 cat >&5 <<_ACEOF
1182
1183
1184 ## ----------- ##
1185 ## Core tests. ##
1186 ## ----------- ##
1187
1188 _ACEOF
1189
1190
1191 # Keep a trace of the command line.
1192 # Strip out --no-create and --no-recursion so they do not pile up.
1193 # Strip out --silent because we don't want to record it for future runs.
1194 # Also quote any args containing shell meta-characters.
1195 # Make two passes to allow for proper duplicate-argument suppression.
1196 ac_configure_args=
1197 ac_configure_args0=
1198 ac_configure_args1=
1199 ac_sep=
1200 ac_must_keep_next=false
1201 for ac_pass in 1 2
1202 do
1203   for ac_arg
1204   do
1205     case $ac_arg in
1206     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1207     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208     | -silent | --silent | --silen | --sile | --sil)
1209       continue ;;
1210     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1211       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1212     esac
1213     case $ac_pass in
1214     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1215     2)
1216       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1217       if test $ac_must_keep_next = true; then
1218         ac_must_keep_next=false # Got value, back to normal.
1219       else
1220         case $ac_arg in
1221           *=* | --config-cache | -C | -disable-* | --disable-* \
1222           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1223           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1224           | -with-* | --with-* | -without-* | --without-* | --x)
1225             case "$ac_configure_args0 " in
1226               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1227             esac
1228             ;;
1229           -* ) ac_must_keep_next=true ;;
1230         esac
1231       fi
1232       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1233       # Get rid of the leading space.
1234       ac_sep=" "
1235       ;;
1236     esac
1237   done
1238 done
1239 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1240 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1241
1242 # When interrupted or exit'd, cleanup temporary files, and complete
1243 # config.log.  We remove comments because anyway the quotes in there
1244 # would cause problems or look ugly.
1245 # WARNING: Be sure not to use single quotes in there, as some shells,
1246 # such as our DU 5.0 friend, will then `close' the trap.
1247 trap 'exit_status=$?
1248   # Save into config.log some information that might help in debugging.
1249   {
1250     echo
1251
1252     cat <<\_ASBOX
1253 ## ---------------- ##
1254 ## Cache variables. ##
1255 ## ---------------- ##
1256 _ASBOX
1257     echo
1258     # The following way of writing the cache mishandles newlines in values,
1259 {
1260   (set) 2>&1 |
1261     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1262     *ac_space=\ *)
1263       sed -n \
1264         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1265           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1266       ;;
1267     *)
1268       sed -n \
1269         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1270       ;;
1271     esac;
1272 }
1273     echo
1274
1275     cat <<\_ASBOX
1276 ## ----------------- ##
1277 ## Output variables. ##
1278 ## ----------------- ##
1279 _ASBOX
1280     echo
1281     for ac_var in $ac_subst_vars
1282     do
1283       eval ac_val=$`echo $ac_var`
1284       echo "$ac_var='"'"'$ac_val'"'"'"
1285     done | sort
1286     echo
1287
1288     if test -n "$ac_subst_files"; then
1289       cat <<\_ASBOX
1290 ## ------------- ##
1291 ## Output files. ##
1292 ## ------------- ##
1293 _ASBOX
1294       echo
1295       for ac_var in $ac_subst_files
1296       do
1297         eval ac_val=$`echo $ac_var`
1298         echo "$ac_var='"'"'$ac_val'"'"'"
1299       done | sort
1300       echo
1301     fi
1302
1303     if test -s confdefs.h; then
1304       cat <<\_ASBOX
1305 ## ----------- ##
1306 ## confdefs.h. ##
1307 ## ----------- ##
1308 _ASBOX
1309       echo
1310       sed "/^$/d" confdefs.h | sort
1311       echo
1312     fi
1313     test "$ac_signal" != 0 &&
1314       echo "$as_me: caught signal $ac_signal"
1315     echo "$as_me: exit $exit_status"
1316   } >&5
1317   rm -f core core.* *.core &&
1318   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1319     exit $exit_status
1320      ' 0
1321 for ac_signal in 1 2 13 15; do
1322   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1323 done
1324 ac_signal=0
1325
1326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1327 rm -rf conftest* confdefs.h
1328 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1329 echo >confdefs.h
1330
1331 # Predefined preprocessor variables.
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_NAME "$PACKAGE_NAME"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_STRING "$PACKAGE_STRING"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1355 _ACEOF
1356
1357
1358 # Let the site file select an alternate cache file if it wants to.
1359 # Prefer explicitly selected file to automatically selected ones.
1360 if test -z "$CONFIG_SITE"; then
1361   if test "x$prefix" != xNONE; then
1362     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1363   else
1364     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1365   fi
1366 fi
1367 for ac_site_file in $CONFIG_SITE; do
1368   if test -r "$ac_site_file"; then
1369     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1370 echo "$as_me: loading site script $ac_site_file" >&6;}
1371     sed 's/^/| /' "$ac_site_file" >&5
1372     . "$ac_site_file"
1373   fi
1374 done
1375
1376 if test -r "$cache_file"; then
1377   # Some versions of bash will fail to source /dev/null (special
1378   # files actually), so we avoid doing that.
1379   if test -f "$cache_file"; then
1380     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1381 echo "$as_me: loading cache $cache_file" >&6;}
1382     case $cache_file in
1383       [\\/]* | ?:[\\/]* ) . $cache_file;;
1384       *)                      . ./$cache_file;;
1385     esac
1386   fi
1387 else
1388   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1389 echo "$as_me: creating cache $cache_file" >&6;}
1390   >$cache_file
1391 fi
1392
1393 # Check that the precious variables saved in the cache have kept the same
1394 # value.
1395 ac_cache_corrupted=false
1396 for ac_var in `(set) 2>&1 |
1397                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1398   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1399   eval ac_new_set=\$ac_env_${ac_var}_set
1400   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1401   eval ac_new_val="\$ac_env_${ac_var}_value"
1402   case $ac_old_set,$ac_new_set in
1403     set,)
1404       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1406       ac_cache_corrupted=: ;;
1407     ,set)
1408       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1410       ac_cache_corrupted=: ;;
1411     ,);;
1412     *)
1413       if test "x$ac_old_val" != "x$ac_new_val"; then
1414         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1417 echo "$as_me:   former value:  $ac_old_val" >&2;}
1418         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1419 echo "$as_me:   current value: $ac_new_val" >&2;}
1420         ac_cache_corrupted=:
1421       fi;;
1422   esac
1423   # Pass precious variables to config.status.
1424   if test "$ac_new_set" = set; then
1425     case $ac_new_val in
1426     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1427       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1428     *) ac_arg=$ac_var=$ac_new_val ;;
1429     esac
1430     case " $ac_configure_args " in
1431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1432       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1433     esac
1434   fi
1435 done
1436 if $ac_cache_corrupted; then
1437   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1438 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1439   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1440 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1441    { (exit 1); exit 1; }; }
1442 fi
1443
1444 ac_ext=c
1445 ac_cpp='$CPP $CPPFLAGS'
1446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469 PKG_NAME=Sablot
1470 PKG_VERSION=0.98
1471
1472
1473
1474 ac_aux_dir=
1475 for ac_dir in tools $srcdir/tools; do
1476   if test -f $ac_dir/install-sh; then
1477     ac_aux_dir=$ac_dir
1478     ac_install_sh="$ac_aux_dir/install-sh -c"
1479     break
1480   elif test -f $ac_dir/install.sh; then
1481     ac_aux_dir=$ac_dir
1482     ac_install_sh="$ac_aux_dir/install.sh -c"
1483     break
1484   elif test -f $ac_dir/shtool; then
1485     ac_aux_dir=$ac_dir
1486     ac_install_sh="$ac_aux_dir/shtool install -c"
1487     break
1488   fi
1489 done
1490 if test -z "$ac_aux_dir"; then
1491   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1492 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1493    { (exit 1); exit 1; }; }
1494 fi
1495 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1498
1499
1500 # Find a good install program.  We prefer a C program (faster),
1501 # so one script is as good as another.  But avoid the broken or
1502 # incompatible versions:
1503 # SysV /etc/install, /usr/sbin/install
1504 # SunOS /usr/etc/install
1505 # IRIX /sbin/install
1506 # AIX /bin/install
1507 # AmigaOS /C/install, which installs bootblocks on floppy discs
1508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1511 # ./install, which can be erroneously created by make from ./install.sh.
1512 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1513 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1514 if test -z "$INSTALL"; then
1515 if test "${ac_cv_path_install+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1520 do
1521   IFS=$as_save_IFS
1522   test -z "$as_dir" && as_dir=.
1523   # Account for people who put trailing slashes in PATH elements.
1524 case $as_dir/ in
1525   ./ | .// | /cC/* | \
1526   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1527   /usr/ucb/* ) ;;
1528   *)
1529     # OSF1 and SCO ODT 3.0 have their own names for install.
1530     # Don't use installbsd from OSF since it installs stuff as root
1531     # by default.
1532     for ac_prog in ginstall scoinst install; do
1533       for ac_exec_ext in '' $ac_executable_extensions; do
1534         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1535           if test $ac_prog = install &&
1536             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1537             # AIX install.  It has an incompatible calling convention.
1538             :
1539           elif test $ac_prog = install &&
1540             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1541             # program-specific install script used by HP pwplus--don't use.
1542             :
1543           else
1544             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1545             break 3
1546           fi
1547         fi
1548       done
1549     done
1550     ;;
1551 esac
1552 done
1553
1554
1555 fi
1556   if test "${ac_cv_path_install+set}" = set; then
1557     INSTALL=$ac_cv_path_install
1558   else
1559     # As a last resort, use the slow shell script.  We don't cache a
1560     # path for INSTALL within a source directory, because that will
1561     # break other packages using the cache if that directory is
1562     # removed, or if the path is relative.
1563     INSTALL=$ac_install_sh
1564   fi
1565 fi
1566 echo "$as_me:$LINENO: result: $INSTALL" >&5
1567 echo "${ECHO_T}$INSTALL" >&6
1568
1569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1570 # It thinks the first close brace ends the variable substitution.
1571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1572
1573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1574
1575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1576
1577 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1578 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1579 # Just in case
1580 sleep 1
1581 echo timestamp > conftest.file
1582 # Do `set' in a subshell so we don't clobber the current shell's
1583 # arguments.  Must try -L first in case configure is actually a
1584 # symlink; some systems play weird games with the mod time of symlinks
1585 # (eg FreeBSD returns the mod time of the symlink's containing
1586 # directory).
1587 if (
1588    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1589    if test "$*" = "X"; then
1590       # -L didn't work.
1591       set X `ls -t $srcdir/configure conftest.file`
1592    fi
1593    rm -f conftest.file
1594    if test "$*" != "X $srcdir/configure conftest.file" \
1595       && test "$*" != "X conftest.file $srcdir/configure"; then
1596
1597       # If neither matched, then we have a broken ls.  This can happen
1598       # if, for instance, CONFIG_SHELL is bash and it inherits a
1599       # broken ls alias from the environment.  This has actually
1600       # happened.  Such a system could not be considered "sane".
1601       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1602 alias in your environment" >&5
1603 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1604 alias in your environment" >&2;}
1605    { (exit 1); exit 1; }; }
1606    fi
1607
1608    test "$2" = conftest.file
1609    )
1610 then
1611    # Ok.
1612    :
1613 else
1614    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1615 Check your system clock" >&5
1616 echo "$as_me: error: newly created file is older than distributed files!
1617 Check your system clock" >&2;}
1618    { (exit 1); exit 1; }; }
1619 fi
1620 echo "$as_me:$LINENO: result: yes" >&5
1621 echo "${ECHO_T}yes" >&6
1622 test "$program_prefix" != NONE &&
1623   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1624 # Use a double $ so make ignores it.
1625 test "$program_suffix" != NONE &&
1626   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1627 # Double any \ or $.  echo might interpret backslashes.
1628 # By default was `s,x,x', remove it if useless.
1629 cat <<\_ACEOF >conftest.sed
1630 s/[\\$]/&&/g;s/;s,x,x,$//
1631 _ACEOF
1632 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1633 rm conftest.sed
1634
1635
1636 # expand $ac_aux_dir to an absolute path
1637 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1638
1639 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1640 # Use eval to expand $SHELL
1641 if eval "$MISSING --run true"; then
1642   am_missing_run="$MISSING --run "
1643 else
1644   am_missing_run=
1645   am_backtick='`'
1646   { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1647 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1648 fi
1649
1650 for ac_prog in gawk mawk nawk awk
1651 do
1652   # Extract the first word of "$ac_prog", so it can be a program name with args.
1653 set dummy $ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_AWK+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$AWK"; then
1660   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     ac_cv_prog_AWK="$ac_prog"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 AWK=$ac_cv_prog_AWK
1679 if test -n "$AWK"; then
1680   echo "$as_me:$LINENO: result: $AWK" >&5
1681 echo "${ECHO_T}$AWK" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687   test -n "$AWK" && break
1688 done
1689
1690 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1691 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1692 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1693 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   cat >conftest.make <<\_ACEOF
1697 all:
1698         @echo 'ac_maketemp="$(MAKE)"'
1699 _ACEOF
1700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1701 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1702 if test -n "$ac_maketemp"; then
1703   eval ac_cv_prog_make_${ac_make}_set=yes
1704 else
1705   eval ac_cv_prog_make_${ac_make}_set=no
1706 fi
1707 rm -f conftest.make
1708 fi
1709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1710   echo "$as_me:$LINENO: result: yes" >&5
1711 echo "${ECHO_T}yes" >&6
1712   SET_MAKE=
1713 else
1714   echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716   SET_MAKE="MAKE=${MAKE-make}"
1717 fi
1718
1719 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1720 if test "${enable_dependency_tracking+set}" = set; then
1721   enableval="$enable_dependency_tracking"
1722
1723 fi;
1724 if test "x$enable_dependency_tracking" != xno; then
1725   am_depcomp="$ac_aux_dir/depcomp"
1726   AMDEPBACKSLASH='\'
1727 fi
1728
1729
1730 if test "x$enable_dependency_tracking" != xno; then
1731   AMDEP_TRUE=
1732   AMDEP_FALSE='#'
1733 else
1734   AMDEP_TRUE='#'
1735   AMDEP_FALSE=
1736 fi
1737
1738
1739
1740
1741 rm -f .deps 2>/dev/null
1742 mkdir .deps 2>/dev/null
1743 if test -d .deps; then
1744   DEPDIR=.deps
1745 else
1746   # MS-DOS does not allow filenames that begin with a dot.
1747   DEPDIR=_deps
1748 fi
1749 rmdir .deps 2>/dev/null
1750
1751
1752 # test to see if srcdir already configured
1753 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1754    test -f $srcdir/config.status; then
1755   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1756 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1757    { (exit 1); exit 1; }; }
1758 fi
1759
1760 # Define the identity of the package.
1761 PACKAGE=$PKG_NAME
1762 VERSION=$PKG_VERSION
1763
1764
1765 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1766 # the ones we care about.
1767
1768 # Autoconf 2.50 always computes EXEEXT.  However we need to be
1769 # compatible with 2.13, for now.  So we always define EXEEXT, but we
1770 # don't compute it.
1771
1772 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1773 # requests that it be used.  This is a bit dumb.
1774 : ${OBJEXT=o}
1775
1776
1777 # Some tools Automake needs.
1778
1779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1780
1781
1782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1783
1784
1785 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1786
1787
1788 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1789
1790
1791 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1792
1793
1794 AMTAR=${AMTAR-"${am_missing_run}tar"}
1795
1796 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1797
1798 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1799
1800 # We need awk for the "check" target.  The system "awk" is bad on
1801 # some platforms.
1802
1803
1804
1805
1806                                                               ac_config_headers="$ac_config_headers autocfg/config.h:autocfg/config.h.in"
1807
1808
1809 # Check whether --enable-shared or --disable-shared was given.
1810 if test "${enable_shared+set}" = set; then
1811   enableval="$enable_shared"
1812   p=${PACKAGE-default}
1813 case $enableval in
1814 yes) enable_shared=yes ;;
1815 no) enable_shared=no ;;
1816 *)
1817   enable_shared=no
1818   # Look at the argument we got.  We use all the common list separators.
1819   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1820   for pkg in $enableval; do
1821     if test "X$pkg" = "X$p"; then
1822       enable_shared=yes
1823     fi
1824   done
1825   IFS="$ac_save_ifs"
1826   ;;
1827 esac
1828 else
1829   enable_shared=yes
1830 fi;
1831 # Check whether --enable-static or --disable-static was given.
1832 if test "${enable_static+set}" = set; then
1833   enableval="$enable_static"
1834   p=${PACKAGE-default}
1835 case $enableval in
1836 yes) enable_static=yes ;;
1837 no) enable_static=no ;;
1838 *)
1839   enable_static=no
1840   # Look at the argument we got.  We use all the common list separators.
1841   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1842   for pkg in $enableval; do
1843     if test "X$pkg" = "X$p"; then
1844       enable_static=yes
1845     fi
1846   done
1847   IFS="$ac_save_ifs"
1848   ;;
1849 esac
1850 else
1851   enable_static=yes
1852 fi;
1853 # Check whether --enable-fast-install or --disable-fast-install was given.
1854 if test "${enable_fast_install+set}" = set; then
1855   enableval="$enable_fast_install"
1856   p=${PACKAGE-default}
1857 case $enableval in
1858 yes) enable_fast_install=yes ;;
1859 no) enable_fast_install=no ;;
1860 *)
1861   enable_fast_install=no
1862   # Look at the argument we got.  We use all the common list separators.
1863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1864   for pkg in $enableval; do
1865     if test "X$pkg" = "X$p"; then
1866       enable_fast_install=yes
1867     fi
1868   done
1869   IFS="$ac_save_ifs"
1870   ;;
1871 esac
1872 else
1873   enable_fast_install=yes
1874 fi;
1875 # Make sure we can run config.sub.
1876 $ac_config_sub sun4 >/dev/null 2>&1 ||
1877   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1878 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1879    { (exit 1); exit 1; }; }
1880
1881 echo "$as_me:$LINENO: checking build system type" >&5
1882 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1883 if test "${ac_cv_build+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   ac_cv_build_alias=$build_alias
1887 test -z "$ac_cv_build_alias" &&
1888   ac_cv_build_alias=`$ac_config_guess`
1889 test -z "$ac_cv_build_alias" &&
1890   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1891 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1892    { (exit 1); exit 1; }; }
1893 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1894   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1895 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1896    { (exit 1); exit 1; }; }
1897
1898 fi
1899 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1900 echo "${ECHO_T}$ac_cv_build" >&6
1901 build=$ac_cv_build
1902 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1903 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1904 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1905
1906
1907 echo "$as_me:$LINENO: checking host system type" >&5
1908 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1909 if test "${ac_cv_host+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   ac_cv_host_alias=$host_alias
1913 test -z "$ac_cv_host_alias" &&
1914   ac_cv_host_alias=$ac_cv_build_alias
1915 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1916   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1917 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1918    { (exit 1); exit 1; }; }
1919
1920 fi
1921 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1922 echo "${ECHO_T}$ac_cv_host" >&6
1923 host=$ac_cv_host
1924 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1925 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1926 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927
1928
1929
1930           ac_config_commands="$ac_config_commands default-1"
1931
1932 am_make=${MAKE-make}
1933 cat > confinc << 'END'
1934 doit:
1935         @echo done
1936 END
1937 # If we don't find an include directive, just comment out the code.
1938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1940 am__include='#'
1941 am__quote=
1942 _am_result=none
1943 # First try GNU make style include.
1944 echo "include confinc" > confmf
1945 # We grep out `Entering directory' and `Leaving directory'
1946 # messages which can occur if `w' ends up in MAKEFLAGS.
1947 # In particular we don't look at `^make:' because GNU make might
1948 # be invoked under some other name (usually "gmake"), in which
1949 # case it prints its new name instead of `make'.
1950 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1951    am__include=include
1952    am__quote=
1953    _am_result=GNU
1954 fi
1955 # Now try BSD make style include.
1956 if test "$am__include" = "#"; then
1957    echo '.include "confinc"' > confmf
1958    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1959       am__include=.include
1960       am__quote='"'
1961       _am_result=BSD
1962    fi
1963 fi
1964
1965
1966 echo "$as_me:$LINENO: result: $_am_result" >&5
1967 echo "${ECHO_T}$_am_result" >&6
1968 rm -f confinc confmf
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$CC"; then
1984   ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991   for ac_exec_ext in '' $ac_executable_extensions; do
1992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995     break 2
1996   fi
1997 done
1998 done
1999
2000 fi
2001 fi
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004   echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6
2006 else
2007   echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2009 fi
2010
2011 fi
2012 if test -z "$ac_cv_prog_CC"; then
2013   ac_ct_CC=$CC
2014   # Extract the first word of "gcc", so it can be a program name with args.
2015 set dummy gcc; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$ac_ct_CC"; then
2022   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031     ac_cv_prog_ac_ct_CC="gcc"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037
2038 fi
2039 fi
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6
2044 else
2045   echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049   CC=$ac_ct_CC
2050 else
2051   CC="$ac_cv_prog_CC"
2052 fi
2053
2054 if test -z "$CC"; then
2055   if test -n "$ac_tool_prefix"; then
2056   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}cc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   if test -n "$CC"; then
2064   ac_cv_prog_CC="$CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069   IFS=$as_save_IFS
2070   test -z "$as_dir" && as_dir=.
2071   for ac_exec_ext in '' $ac_executable_extensions; do
2072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073     ac_cv_prog_CC="${ac_tool_prefix}cc"
2074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075     break 2
2076   fi
2077 done
2078 done
2079
2080 fi
2081 fi
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084   echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2086 else
2087   echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2089 fi
2090
2091 fi
2092 if test -z "$ac_cv_prog_CC"; then
2093   ac_ct_CC=$CC
2094   # Extract the first word of "cc", so it can be a program name with args.
2095 set dummy cc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$ac_ct_CC"; then
2102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111     ac_cv_prog_ac_ct_CC="cc"
2112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117
2118 fi
2119 fi
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2124 else
2125   echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2127 fi
2128
2129   CC=$ac_ct_CC
2130 else
2131   CC="$ac_cv_prog_CC"
2132 fi
2133
2134 fi
2135 if test -z "$CC"; then
2136   # Extract the first word of "cc", so it can be a program name with args.
2137 set dummy cc; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   if test -n "$CC"; then
2144   ac_cv_prog_CC="$CC" # Let the user override the test.
2145 else
2146   ac_prog_rejected=no
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   for ac_exec_ext in '' $ac_executable_extensions; do
2153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2155        ac_prog_rejected=yes
2156        continue
2157      fi
2158     ac_cv_prog_CC="cc"
2159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164
2165 if test $ac_prog_rejected = yes; then
2166   # We found a bogon in the path, so make sure we never use it.
2167   set dummy $ac_cv_prog_CC
2168   shift
2169   if test $# != 0; then
2170     # We chose a different compiler from the bogus one.
2171     # However, it has the same basename, so the bogon will be chosen
2172     # first if we set CC to just the basename; use the full file name.
2173     shift
2174     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2175   fi
2176 fi
2177 fi
2178 fi
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181   echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6
2183 else
2184   echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2186 fi
2187
2188 fi
2189 if test -z "$CC"; then
2190   if test -n "$ac_tool_prefix"; then
2191   for ac_prog in cl
2192   do
2193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   if test -n "$CC"; then
2201   ac_cv_prog_CC="$CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221   echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6
2223 else
2224   echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2226 fi
2227
2228     test -n "$CC" && break
2229   done
2230 fi
2231 if test -z "$CC"; then
2232   ac_ct_CC=$CC
2233   for ac_prog in cl
2234 do
2235   # Extract the first word of "$ac_prog", so it can be a program name with args.
2236 set dummy $ac_prog; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   if test -n "$ac_ct_CC"; then
2243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252     ac_cv_prog_ac_ct_CC="$ac_prog"
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258
2259 fi
2260 fi
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270   test -n "$ac_ct_CC" && break
2271 done
2272
2273   CC=$ac_ct_CC
2274 fi
2275
2276 fi
2277
2278
2279 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: no acceptable C compiler found in \$PATH
2282 See \`config.log' for more details." >&2;}
2283    { (exit 1); exit 1; }; }
2284
2285 # Provide some information about the compiler.
2286 echo "$as_me:$LINENO:" \
2287      "checking for C compiler version" >&5
2288 ac_compiler=`set X $ac_compile; echo $2`
2289 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2290   (eval $ac_compiler --version </dev/null >&5) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }
2294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2295   (eval $ac_compiler -v </dev/null >&5) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }
2299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2300   (eval $ac_compiler -V </dev/null >&5) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }
2304
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2307 /* confdefs.h.  */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h.  */
2312
2313 int
2314 main ()
2315 {
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 ac_clean_files_save=$ac_clean_files
2322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2323 # Try to create an executable without -o first, disregard a.out.
2324 # It will help us diagnose broken compilers, and finding out an intuition
2325 # of exeext.
2326 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2327 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2329 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2330   (eval $ac_link_default) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; then
2334   # Find the output, starting from the most likely.  This scheme is
2335 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2336 # resort.
2337
2338 # Be careful to initialize this variable, since it used to be cached.
2339 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2340 ac_cv_exeext=
2341 # b.out is created by i960 compilers.
2342 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2343 do
2344   test -f "$ac_file" || continue
2345   case $ac_file in
2346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2347         ;;
2348     conftest.$ac_ext )
2349         # This is the source file.
2350         ;;
2351     [ab].out )
2352         # We found the default executable, but exeext='' is most
2353         # certainly right.
2354         break;;
2355     *.* )
2356         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2357         # FIXME: I believe we export ac_cv_exeext for Libtool,
2358         # but it would be cool to find out if it's true.  Does anybody
2359         # maintain Libtool? --akim.
2360         export ac_cv_exeext
2361         break;;
2362     * )
2363         break;;
2364   esac
2365 done
2366 else
2367   echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: C compiler cannot create executables
2373 See \`config.log' for more details." >&2;}
2374    { (exit 77); exit 77; }; }
2375 fi
2376
2377 ac_exeext=$ac_cv_exeext
2378 echo "$as_me:$LINENO: result: $ac_file" >&5
2379 echo "${ECHO_T}$ac_file" >&6
2380
2381 # Check the compiler produces executables we can run.  If not, either
2382 # the compiler is broken, or we cross compile.
2383 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2384 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2385 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2386 # If not cross compiling, check that we can run a simple program.
2387 if test "$cross_compiling" != yes; then
2388   if { ac_try='./$ac_file'
2389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390   (eval $ac_try) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; }; then
2394     cross_compiling=no
2395   else
2396     if test "$cross_compiling" = maybe; then
2397         cross_compiling=yes
2398     else
2399         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2400 If you meant to cross compile, use \`--host'.
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: cannot run C compiled programs.
2403 If you meant to cross compile, use \`--host'.
2404 See \`config.log' for more details." >&2;}
2405    { (exit 1); exit 1; }; }
2406     fi
2407   fi
2408 fi
2409 echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6
2411
2412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2413 ac_clean_files=$ac_clean_files_save
2414 # Check the compiler produces executables we can run.  If not, either
2415 # the compiler is broken, or we cross compile.
2416 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2418 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2419 echo "${ECHO_T}$cross_compiling" >&6
2420
2421 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2424   (eval $ac_link) 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; then
2428   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2429 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2430 # work properly (i.e., refer to `conftest.exe'), while it won't with
2431 # `rm'.
2432 for ac_file in conftest.exe conftest conftest.*; do
2433   test -f "$ac_file" || continue
2434   case $ac_file in
2435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2436     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2437           export ac_cv_exeext
2438           break;;
2439     * ) break;;
2440   esac
2441 done
2442 else
2443   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2446 See \`config.log' for more details." >&2;}
2447    { (exit 1); exit 1; }; }
2448 fi
2449
2450 rm -f conftest$ac_cv_exeext
2451 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2452 echo "${ECHO_T}$ac_cv_exeext" >&6
2453
2454 rm -f conftest.$ac_ext
2455 EXEEXT=$ac_cv_exeext
2456 ac_exeext=$EXEEXT
2457 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2458 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2459 if test "${ac_cv_objext+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   cat >conftest.$ac_ext <<_ACEOF
2463 #line $LINENO "configure"
2464 /* confdefs.h.  */
2465 _ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h.  */
2469
2470 int
2471 main ()
2472 {
2473
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.o conftest.obj
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480   (eval $ac_compile) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; then
2484   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2485   case $ac_file in
2486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2487     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2488        break;;
2489   esac
2490 done
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500 fi
2501
2502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2503 fi
2504 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2505 echo "${ECHO_T}$ac_cv_objext" >&6
2506 OBJEXT=$ac_cv_objext
2507 ac_objext=$OBJEXT
2508 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2509 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2510 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2515 /* confdefs.h.  */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h.  */
2520
2521 int
2522 main ()
2523 {
2524 #ifndef __GNUC__
2525        choke me
2526 #endif
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534   (eval $ac_compile) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); } &&
2538          { ac_try='test -s conftest.$ac_objext'
2539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540   (eval $ac_try) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; }; then
2544   ac_compiler_gnu=yes
2545 else
2546   echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 ac_compiler_gnu=no
2550 fi
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2553
2554 fi
2555 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2556 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2557 GCC=`test $ac_compiler_gnu = yes && echo yes`
2558 ac_test_CFLAGS=${CFLAGS+set}
2559 ac_save_CFLAGS=$CFLAGS
2560 CFLAGS="-g"
2561 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2562 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2563 if test "${ac_cv_prog_cc_g+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   cat >conftest.$ac_ext <<_ACEOF
2567 #line $LINENO "configure"
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573
2574 int
2575 main ()
2576 {
2577
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584   (eval $ac_compile) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   ac_cv_prog_cc_g=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 ac_cv_prog_cc_g=no
2600 fi
2601 rm -f conftest.$ac_objext conftest.$ac_ext
2602 fi
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2605 if test "$ac_test_CFLAGS" = set; then
2606   CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608   if test "$GCC" = yes; then
2609     CFLAGS="-g -O2"
2610   else
2611     CFLAGS="-g"
2612   fi
2613 else
2614   if test "$GCC" = yes; then
2615     CFLAGS="-O2"
2616   else
2617     CFLAGS=
2618   fi
2619 fi
2620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   ac_cv_prog_cc_stdc=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #line $LINENO "configure"
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 #include <stdarg.h>
2635 #include <stdio.h>
2636 #include <sys/types.h>
2637 #include <sys/stat.h>
2638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2639 struct buf { int x; };
2640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2641 static char *e (p, i)
2642      char **p;
2643      int i;
2644 {
2645   return p[i];
2646 }
2647 static char *f (char * (*g) (char **, int), char **p, ...)
2648 {
2649   char *s;
2650   va_list v;
2651   va_start (v,p);
2652   s = g (p, va_arg (v,int));
2653   va_end (v);
2654   return s;
2655 }
2656 int test (int i, double x);
2657 struct s1 {int (*f) (int a);};
2658 struct s2 {int (*f) (double a);};
2659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2660 int argc;
2661 char **argv;
2662 int
2663 main ()
2664 {
2665 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 # Don't try gcc -ansi; that turns off useful extensions and
2671 # breaks some systems' header files.
2672 # AIX                   -qlanglvl=ansi
2673 # Ultrix and OSF/1      -std1
2674 # HP-UX 10.20 and later -Ae
2675 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2676 # SVR4                  -Xc -D__EXTENSIONS__
2677 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678 do
2679   CC="$ac_save_CC $ac_arg"
2680   rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682   (eval $ac_compile) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); } &&
2686          { ac_try='test -s conftest.$ac_objext'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; }; then
2692   ac_cv_prog_cc_stdc=$ac_arg
2693 break
2694 else
2695   echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 fi
2699 rm -f conftest.$ac_objext
2700 done
2701 rm -f conftest.$ac_ext conftest.$ac_objext
2702 CC=$ac_save_CC
2703
2704 fi
2705
2706 case "x$ac_cv_prog_cc_stdc" in
2707   x|xno)
2708     echo "$as_me:$LINENO: result: none needed" >&5
2709 echo "${ECHO_T}none needed" >&6 ;;
2710   *)
2711     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2712 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2713     CC="$CC $ac_cv_prog_cc_stdc" ;;
2714 esac
2715
2716 # Some people use a C++ compiler to compile C.  Since we use `exit',
2717 # in C++ we need to declare it.  In case someone uses the same compiler
2718 # for both compiling C and C++ we need to have the C++ compiler decide
2719 # the declaration of exit, since it's the most demanding environment.
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #ifndef __cplusplus
2722   choke me
2723 #endif
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727   (eval $ac_compile) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } &&
2731          { ac_try='test -s conftest.$ac_objext'
2732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   for ac_declaration in \
2738    ''\
2739    '#include <stdlib.h>' \
2740    'extern "C" void std::exit (int) throw (); using std::exit;' \
2741    'extern "C" void std::exit (int); using std::exit;' \
2742    'extern "C" void exit (int) throw ();' \
2743    'extern "C" void exit (int);' \
2744    'void exit (int);'
2745 do
2746   cat >conftest.$ac_ext <<_ACEOF
2747 #line $LINENO "configure"
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753 #include <stdlib.h>
2754 $ac_declaration
2755 int
2756 main ()
2757 {
2758 exit (42);
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -s conftest.$ac_objext'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; }; then
2775   :
2776 else
2777   echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 continue
2781 fi
2782 rm -f conftest.$ac_objext conftest.$ac_ext
2783   cat >conftest.$ac_ext <<_ACEOF
2784 #line $LINENO "configure"
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790 $ac_declaration
2791 int
2792 main ()
2793 {
2794 exit (42);
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   break
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 fi
2817 rm -f conftest.$ac_objext conftest.$ac_ext
2818 done
2819 rm -f conftest*
2820 if test -n "$ac_declaration"; then
2821   echo '#ifdef __cplusplus' >>confdefs.h
2822   echo $ac_declaration      >>confdefs.h
2823   echo '#endif'             >>confdefs.h
2824 fi
2825
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 fi
2831 rm -f conftest.$ac_objext conftest.$ac_ext
2832 ac_ext=c
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837
2838 depcc="$CC"   am_compiler_list=
2839
2840 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2841 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2842 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2846   # We make a subdir and do the tests there.  Otherwise we can end up
2847   # making bogus files that we don't know about and never remove.  For
2848   # instance it was reported that on HP-UX the gcc test will end up
2849   # making a dummy file named `D' -- because `-MD' means `put the output
2850   # in D'.
2851   mkdir conftest.dir
2852   # Copy depcomp to subdir because otherwise we won't find it if we're
2853   # using a relative directory.
2854   cp "$am_depcomp" conftest.dir
2855   cd conftest.dir
2856
2857   am_cv_CC_dependencies_compiler_type=none
2858   if test "$am_compiler_list" = ""; then
2859      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2860   fi
2861   for depmode in $am_compiler_list; do
2862     # We need to recreate these files for each test, as the compiler may
2863     # overwrite some of them when testing with obscure command lines.
2864     # This happens at least with the AIX C compiler.
2865     echo '#include "conftest.h"' > conftest.c
2866     echo 'int i;' > conftest.h
2867     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2868
2869     case $depmode in
2870     nosideeffect)
2871       # after this tag, mechanisms are not by side-effect, so they'll
2872       # only be used when explicitly requested
2873       if test "x$enable_dependency_tracking" = xyes; then
2874         continue
2875       else
2876         break
2877       fi
2878       ;;
2879     none) break ;;
2880     esac
2881     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2882     # mode.  It turns out that the SunPro C++ compiler does not properly
2883     # handle `-M -o', and we need to detect this.
2884     if depmode=$depmode \
2885        source=conftest.c object=conftest.o \
2886        depfile=conftest.Po tmpdepfile=conftest.TPo \
2887        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2888        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2889        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2890       am_cv_CC_dependencies_compiler_type=$depmode
2891       break
2892     fi
2893   done
2894
2895   cd ..
2896   rm -rf conftest.dir
2897 else
2898   am_cv_CC_dependencies_compiler_type=none
2899 fi
2900
2901 fi
2902 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2903 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2904 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2905
2906
2907 # Find the correct PATH separator.  Usually this is `:', but
2908 # DJGPP uses `;' like DOS.
2909 if test "X${PATH_SEPARATOR+set}" != Xset; then
2910   UNAME=${UNAME-`uname 2>/dev/null`}
2911   case X$UNAME in
2912     *-DOS) lt_cv_sys_path_separator=';' ;;
2913     *)     lt_cv_sys_path_separator=':' ;;
2914   esac
2915   PATH_SEPARATOR=$lt_cv_sys_path_separator
2916 fi
2917
2918
2919 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2920 if test "${with_gnu_ld+set}" = set; then
2921   withval="$with_gnu_ld"
2922   test "$withval" = no || with_gnu_ld=yes
2923 else
2924   with_gnu_ld=no
2925 fi;
2926 ac_prog=ld
2927 if test "$GCC" = yes; then
2928   # Check if gcc -print-prog-name=ld gives a path.
2929   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2930 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2931   case $host in
2932   *-*-mingw*)
2933     # gcc leaves a trailing carriage return which upsets mingw
2934     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2935   *)
2936     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2937   esac
2938   case $ac_prog in
2939     # Accept absolute paths.
2940     [\\/]* | [A-Za-z]:[\\/]*)
2941       re_direlt='/[^/][^/]*/\.\./'
2942       # Canonicalize the path of ld
2943       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2944       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2945         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2946       done
2947       test -z "$LD" && LD="$ac_prog"
2948       ;;
2949   "")
2950     # If it fails, then pretend we aren't using GCC.
2951     ac_prog=ld
2952     ;;
2953   *)
2954     # If it is relative, then search for the first ld in PATH.
2955     with_gnu_ld=unknown
2956     ;;
2957   esac
2958 elif test "$with_gnu_ld" = yes; then
2959   echo "$as_me:$LINENO: checking for GNU ld" >&5
2960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2961 else
2962   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2963 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2964 fi
2965 if test "${lt_cv_path_LD+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   if test -z "$LD"; then
2969   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2970   for ac_dir in $PATH; do
2971     test -z "$ac_dir" && ac_dir=.
2972     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2973       lt_cv_path_LD="$ac_dir/$ac_prog"
2974       # Check to see if the program is GNU ld.  I'd rather use --version,
2975       # but apparently some GNU ld's only accept -v.
2976       # Break only if it was the GNU/non-GNU ld that we prefer.
2977       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2978         test "$with_gnu_ld" != no && break
2979       else
2980         test "$with_gnu_ld" != yes && break
2981       fi
2982     fi
2983   done
2984   IFS="$ac_save_ifs"
2985 else
2986   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2987 fi
2988 fi
2989
2990 LD="$lt_cv_path_LD"
2991 if test -n "$LD"; then
2992   echo "$as_me:$LINENO: result: $LD" >&5
2993 echo "${ECHO_T}$LD" >&6
2994 else
2995   echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2997 fi
2998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3000    { (exit 1); exit 1; }; }
3001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3003 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3007 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3008   lt_cv_prog_gnu_ld=yes
3009 else
3010   lt_cv_prog_gnu_ld=no
3011 fi
3012 fi
3013 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3014 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3015 with_gnu_ld=$lt_cv_prog_gnu_ld
3016
3017
3018 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3019 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3020 if test "${lt_cv_ld_reload_flag+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   lt_cv_ld_reload_flag='-r'
3024 fi
3025 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3026 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3027 reload_flag=$lt_cv_ld_reload_flag
3028 test -n "$reload_flag" && reload_flag=" $reload_flag"
3029
3030 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3031 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3032 if test "${lt_cv_path_NM+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   if test -n "$NM"; then
3036   # Let the user override the test.
3037   lt_cv_path_NM="$NM"
3038 else
3039   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3040   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3041     test -z "$ac_dir" && ac_dir=.
3042     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3043     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3044       # Check to see if the nm accepts a BSD-compat flag.
3045       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3046       #   nm: unknown option "B" ignored
3047       # Tru64's nm complains that /dev/null is an invalid object file
3048       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3049         lt_cv_path_NM="$tmp_nm -B"
3050         break
3051       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3052         lt_cv_path_NM="$tmp_nm -p"
3053         break
3054       else
3055         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3056         continue # so that we can try to find one that supports BSD flags
3057       fi
3058     fi
3059   done
3060   IFS="$ac_save_ifs"
3061   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3062 fi
3063 fi
3064
3065 NM="$lt_cv_path_NM"
3066 echo "$as_me:$LINENO: result: $NM" >&5
3067 echo "${ECHO_T}$NM" >&6
3068
3069 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3070 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3071 LN_S=$as_ln_s
3072 if test "$LN_S" = "ln -s"; then
3073   echo "$as_me:$LINENO: result: yes" >&5
3074 echo "${ECHO_T}yes" >&6
3075 else
3076   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3077 echo "${ECHO_T}no, using $LN_S" >&6
3078 fi
3079
3080 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3081 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3082 if test "${lt_cv_deplibs_check_method+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   lt_cv_file_magic_cmd='$MAGIC_CMD'
3086 lt_cv_file_magic_test_file=
3087 lt_cv_deplibs_check_method='unknown'
3088 # Need to set the preceding variable on all platforms that support
3089 # interlibrary dependencies.
3090 # 'none' -- dependencies not supported.
3091 # `unknown' -- same as none, but documents that we really don't know.
3092 # 'pass_all' -- all dependencies passed with no checks.
3093 # 'test_compile' -- check by making test program.
3094 # 'file_magic [[regex]]' -- check by looking for files in library path
3095 # which responds to the $file_magic_cmd with a given egrep regex.
3096 # If you have `file' or equivalent on your system and you're not sure
3097 # whether `pass_all' will *always* work, you probably want this one.
3098
3099 case $host_os in
3100 aix4* | aix5*)
3101   lt_cv_deplibs_check_method=pass_all
3102   ;;
3103
3104 beos*)
3105   lt_cv_deplibs_check_method=pass_all
3106   ;;
3107
3108 bsdi4*)
3109   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3110   lt_cv_file_magic_cmd='/usr/bin/file -L'
3111   lt_cv_file_magic_test_file=/shlib/libc.so
3112   ;;
3113
3114 cygwin* | mingw* | pw32*)
3115   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3116   lt_cv_file_magic_cmd='$OBJDUMP -f'
3117   ;;
3118
3119 darwin* | rhapsody*)
3120   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3121   lt_cv_file_magic_cmd='/usr/bin/file -L'
3122   case "$host_os" in
3123   rhapsody* | darwin1.[012])
3124     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3125     ;;
3126   *) # Darwin 1.3 on
3127     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3128     ;;
3129   esac
3130   ;;
3131
3132 freebsd*)
3133   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3134     case $host_cpu in
3135     i*86 )
3136       # Not sure whether the presence of OpenBSD here was a mistake.
3137       # Let's accept both of them until this is cleared up.
3138       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3139       lt_cv_file_magic_cmd=/usr/bin/file
3140       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3141       ;;
3142     esac
3143   else
3144     lt_cv_deplibs_check_method=pass_all
3145   fi
3146   ;;
3147
3148 gnu*)
3149   lt_cv_deplibs_check_method=pass_all
3150   ;;
3151
3152 hpux10.20*|hpux11*)
3153   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3154   lt_cv_file_magic_cmd=/usr/bin/file
3155   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3156   ;;
3157
3158 irix5* | irix6*)
3159   case $host_os in
3160   irix5*)
3161     # this will be overridden with pass_all, but let us keep it just in case
3162     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3163     ;;
3164   *)
3165     case $LD in
3166     *-32|*"-32 ") libmagic=32-bit;;
3167     *-n32|*"-n32 ") libmagic=N32;;
3168     *-64|*"-64 ") libmagic=64-bit;;
3169     *) libmagic=never-match;;
3170     esac
3171     # this will be overridden with pass_all, but let us keep it just in case
3172     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3173     ;;
3174   esac
3175   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3176   lt_cv_deplibs_check_method=pass_all
3177   ;;
3178
3179 # This must be Linux ELF.
3180 linux-gnu*)
3181   case $host_cpu in
3182   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3183     lt_cv_deplibs_check_method=pass_all ;;
3184   *)
3185     # glibc up to 2.1.1 does not perform some relocations on ARM
3186     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3187   esac
3188   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3189   ;;
3190
3191 netbsd*)
3192   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3193     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3194   else
3195     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3196   fi
3197   ;;
3198
3199 newos6*)
3200   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3201   lt_cv_file_magic_cmd=/usr/bin/file
3202   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3203   ;;
3204
3205 openbsd*)
3206   lt_cv_file_magic_cmd=/usr/bin/file
3207   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3208   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3209     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3210   else
3211     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3212   fi
3213   ;;
3214
3215 osf3* | osf4* | osf5*)
3216   # this will be overridden with pass_all, but let us keep it just in case
3217   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3218   lt_cv_file_magic_test_file=/shlib/libc.so
3219   lt_cv_deplibs_check_method=pass_all
3220   ;;
3221
3222 sco3.2v5*)
3223   lt_cv_deplibs_check_method=pass_all
3224   ;;
3225
3226 solaris*)
3227   lt_cv_deplibs_check_method=pass_all
3228   lt_cv_file_magic_test_file=/lib/libc.so
3229   ;;
3230
3231 sysv5uw[78]* | sysv4*uw2*)
3232   lt_cv_deplibs_check_method=pass_all
3233   ;;
3234
3235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3236   case $host_vendor in
3237   motorola)
3238     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]'
3239     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3240     ;;
3241   ncr)
3242     lt_cv_deplibs_check_method=pass_all
3243     ;;
3244   sequent)
3245     lt_cv_file_magic_cmd='/bin/file'
3246     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3247     ;;
3248   sni)
3249     lt_cv_file_magic_cmd='/bin/file'
3250     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3251     lt_cv_file_magic_test_file=/lib/libc.so
3252     ;;
3253   esac
3254   ;;
3255 esac
3256
3257 fi
3258 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3259 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3260 file_magic_cmd=$lt_cv_file_magic_cmd
3261 deplibs_check_method=$lt_cv_deplibs_check_method
3262
3263
3264
3265
3266
3267
3268
3269
3270 # Check for command to grab the raw symbol name followed by C symbol from nm.
3271 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3272 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3273 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276
3277 # These are sane defaults that work on at least a few old systems.
3278 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3279
3280 # Character class describing NM global symbol codes.
3281 symcode='[BCDEGRST]'
3282
3283 # Regexp to match symbols that can be accessed directly from C.
3284 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3285
3286 # Transform the above into a raw symbol and a C symbol.
3287 symxfrm='\1 \2\3 \3'
3288
3289 # Transform an extracted symbol line into a proper C declaration
3290 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3291
3292 # Transform an extracted symbol line into symbol name and symbol address
3293 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'"
3294
3295 # Define system-specific variables.
3296 case $host_os in
3297 aix*)
3298   symcode='[BCDT]'
3299   ;;
3300 cygwin* | mingw* | pw32*)
3301   symcode='[ABCDGISTW]'
3302   ;;
3303 hpux*) # Its linker distinguishes data from code symbols
3304   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3305   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'"
3306   ;;
3307 irix*)
3308   symcode='[BCDEGRST]'
3309   ;;
3310 solaris* | sysv5*)
3311   symcode='[BDT]'
3312   ;;
3313 sysv4)
3314   symcode='[DFNSTU]'
3315   ;;
3316 esac
3317
3318 # Handle CRLF in mingw tool chain
3319 opt_cr=
3320 case $host_os in
3321 mingw*)
3322   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3323   ;;
3324 esac
3325
3326 # If we're using GNU nm, then use its standard symbol codes.
3327 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3328   symcode='[ABCDGISTW]'
3329 fi
3330
3331 # Try without a prefix undercore, then with it.
3332 for ac_symprfx in "" "_"; do
3333
3334   # Write the raw and C identifiers.
3335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3336
3337   # Check to see that the pipe works correctly.
3338   pipe_works=no
3339   rm -f conftest*
3340   cat > conftest.$ac_ext <<EOF
3341 #ifdef __cplusplus
3342 extern "C" {
3343 #endif
3344 char nm_test_var;
3345 void nm_test_func(){}
3346 #ifdef __cplusplus
3347 }
3348 #endif
3349 int main(){nm_test_var='a';nm_test_func();return(0);}
3350 EOF
3351
3352   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353   (eval $ac_compile) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; then
3357     # Now try to grab the symbols.
3358     nlist=conftest.nm
3359     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3360   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } && test -s "$nlist"; then
3364       # Try sorting and uniquifying the output.
3365       if sort "$nlist" | uniq > "$nlist"T; then
3366         mv -f "$nlist"T "$nlist"
3367       else
3368         rm -f "$nlist"T
3369       fi
3370
3371       # Make sure that we snagged all the symbols we need.
3372       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3373         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3374           cat <<EOF > conftest.$ac_ext
3375 #ifdef __cplusplus
3376 extern "C" {
3377 #endif
3378
3379 EOF
3380           # Now generate the symbol file.
3381           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3382
3383           cat <<EOF >> conftest.$ac_ext
3384 #if defined (__STDC__) && __STDC__
3385 # define lt_ptr void *
3386 #else
3387 # define lt_ptr char *
3388 # define const
3389 #endif
3390
3391 /* The mapping between symbol names and symbols. */
3392 const struct {
3393   const char *name;
3394   lt_ptr address;
3395 }
3396 lt_preloaded_symbols[] =
3397 {
3398 EOF
3399           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3400           cat <<\EOF >> conftest.$ac_ext
3401   {0, (lt_ptr) 0}
3402 };
3403
3404 #ifdef __cplusplus
3405 }
3406 #endif
3407 EOF
3408           # Now try linking the two files.
3409           mv conftest.$ac_objext conftstm.$ac_objext
3410           save_LIBS="$LIBS"
3411           save_CFLAGS="$CFLAGS"
3412           LIBS="conftstm.$ac_objext"
3413           CFLAGS="$CFLAGS$no_builtin_flag"
3414           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3415   (eval $ac_link) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } && test -s conftest; then
3419             pipe_works=yes
3420           fi
3421           LIBS="$save_LIBS"
3422           CFLAGS="$save_CFLAGS"
3423         else
3424           echo "cannot find nm_test_func in $nlist" >&5
3425         fi
3426       else
3427         echo "cannot find nm_test_var in $nlist" >&5
3428       fi
3429     else
3430       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3431     fi
3432   else
3433     echo "$progname: failed program was:" >&5
3434     cat conftest.$ac_ext >&5
3435   fi
3436   rm -f conftest* conftst*
3437
3438   # Do not use the global_symbol_pipe unless it works.
3439   if test "$pipe_works" = yes; then
3440     break
3441   else
3442     lt_cv_sys_global_symbol_pipe=
3443   fi
3444 done
3445
3446 fi
3447
3448 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3450   global_symbol_to_cdecl=
3451   global_symbol_to_c_name_address=
3452 else
3453   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3454   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3455 fi
3456 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3457 then
3458   echo "$as_me:$LINENO: result: failed" >&5
3459 echo "${ECHO_T}failed" >&6
3460 else
3461   echo "$as_me:$LINENO: result: ok" >&5
3462 echo "${ECHO_T}ok" >&6
3463 fi
3464
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3472 # On Suns, sometimes $CPP names a directory.
3473 if test -n "$CPP" && test -d "$CPP"; then
3474   CPP=
3475 fi
3476 if test -z "$CPP"; then
3477   if test "${ac_cv_prog_CPP+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480       # Double quotes because CPP needs to be expanded
3481     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3482     do
3483       ac_preproc_ok=false
3484 for ac_c_preproc_warn_flag in '' yes
3485 do
3486   # Use a header file that comes with gcc, so configuring glibc
3487   # with a fresh cross-compiler works.
3488   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3489   # <limits.h> exists even on freestanding compilers.
3490   # On the NeXT, cc -E runs the code through the compiler's parser,
3491   # not just through cpp. "Syntax error" is here to catch this case.
3492   cat >conftest.$ac_ext <<_ACEOF
3493 #line $LINENO "configure"
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499 #ifdef __STDC__
3500 # include <limits.h>
3501 #else
3502 # include <assert.h>
3503 #endif
3504                      Syntax error
3505 _ACEOF
3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } >/dev/null; then
3514   if test -s conftest.err; then
3515     ac_cpp_err=$ac_c_preproc_warn_flag
3516   else
3517     ac_cpp_err=
3518   fi
3519 else
3520   ac_cpp_err=yes
3521 fi
3522 if test -z "$ac_cpp_err"; then
3523   :
3524 else
3525   echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528   # Broken: fails on valid input.
3529 continue
3530 fi
3531 rm -f conftest.err conftest.$ac_ext
3532
3533   # OK, works on sane cases.  Now check whether non-existent headers
3534   # can be detected and how.
3535   cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #include <ac_nonexistent.h>
3543 _ACEOF
3544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } >/dev/null; then
3552   if test -s conftest.err; then
3553     ac_cpp_err=$ac_c_preproc_warn_flag
3554   else
3555     ac_cpp_err=
3556   fi
3557 else
3558   ac_cpp_err=yes
3559 fi
3560 if test -z "$ac_cpp_err"; then
3561   # Broken: success on invalid input.
3562 continue
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567   # Passes both tests.
3568 ac_preproc_ok=:
3569 break
3570 fi
3571 rm -f conftest.err conftest.$ac_ext
3572
3573 done
3574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3575 rm -f conftest.err conftest.$ac_ext
3576 if $ac_preproc_ok; then
3577   break
3578 fi
3579
3580     done
3581     ac_cv_prog_CPP=$CPP
3582
3583 fi
3584   CPP=$ac_cv_prog_CPP
3585 else
3586   ac_cv_prog_CPP=$CPP
3587 fi
3588 echo "$as_me:$LINENO: result: $CPP" >&5
3589 echo "${ECHO_T}$CPP" >&6
3590 ac_preproc_ok=false
3591 for ac_c_preproc_warn_flag in '' yes
3592 do
3593   # Use a header file that comes with gcc, so configuring glibc
3594   # with a fresh cross-compiler works.
3595   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3596   # <limits.h> exists even on freestanding compilers.
3597   # On the NeXT, cc -E runs the code through the compiler's parser,
3598   # not just through cpp. "Syntax error" is here to catch this case.
3599   cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 /* confdefs.h.  */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h.  */
3606 #ifdef __STDC__
3607 # include <limits.h>
3608 #else
3609 # include <assert.h>
3610 #endif
3611                      Syntax error
3612 _ACEOF
3613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } >/dev/null; then
3621   if test -s conftest.err; then
3622     ac_cpp_err=$ac_c_preproc_warn_flag
3623   else
3624     ac_cpp_err=
3625   fi
3626 else
3627   ac_cpp_err=yes
3628 fi
3629 if test -z "$ac_cpp_err"; then
3630   :
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635   # Broken: fails on valid input.
3636 continue
3637 fi
3638 rm -f conftest.err conftest.$ac_ext
3639
3640   # OK, works on sane cases.  Now check whether non-existent headers
3641   # can be detected and how.
3642   cat >conftest.$ac_ext <<_ACEOF
3643 #line $LINENO "configure"
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649 #include <ac_nonexistent.h>
3650 _ACEOF
3651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3653   ac_status=$?
3654   grep -v '^ *+' conftest.er1 >conftest.err
3655   rm -f conftest.er1
3656   cat conftest.err >&5
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } >/dev/null; then
3659   if test -s conftest.err; then
3660     ac_cpp_err=$ac_c_preproc_warn_flag
3661   else
3662     ac_cpp_err=
3663   fi
3664 else
3665   ac_cpp_err=yes
3666 fi
3667 if test -z "$ac_cpp_err"; then
3668   # Broken: success on invalid input.
3669 continue
3670 else
3671   echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674   # Passes both tests.
3675 ac_preproc_ok=:
3676 break
3677 fi
3678 rm -f conftest.err conftest.$ac_ext
3679
3680 done
3681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682 rm -f conftest.err conftest.$ac_ext
3683 if $ac_preproc_ok; then
3684   :
3685 else
3686   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3687 See \`config.log' for more details." >&5
3688 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3689 See \`config.log' for more details." >&2;}
3690    { (exit 1); exit 1; }; }
3691 fi
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699
3700 echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3702 if test "${ac_cv_prog_egrep+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3706     then ac_cv_prog_egrep='grep -E'
3707     else ac_cv_prog_egrep='egrep'
3708     fi
3709 fi
3710 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3711 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3712  EGREP=$ac_cv_prog_egrep
3713
3714
3715 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3717 if test "${ac_cv_header_stdc+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   cat >conftest.$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3722 /* confdefs.h.  */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h.  */
3727 #include <stdlib.h>
3728 #include <stdarg.h>
3729 #include <string.h>
3730 #include <float.h>
3731
3732 int
3733 main ()
3734 {
3735
3736   ;
3737   return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742   (eval $ac_compile) 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } &&
3746          { ac_try='test -s conftest.$ac_objext'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; }; then
3752   ac_cv_header_stdc=yes
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 ac_cv_header_stdc=no
3758 fi
3759 rm -f conftest.$ac_objext conftest.$ac_ext
3760
3761 if test $ac_cv_header_stdc = yes; then
3762   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763   cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 /* confdefs.h.  */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h.  */
3770 #include <string.h>
3771
3772 _ACEOF
3773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3774   $EGREP "memchr" >/dev/null 2>&1; then
3775   :
3776 else
3777   ac_cv_header_stdc=no
3778 fi
3779 rm -f conftest*
3780
3781 fi
3782
3783 if test $ac_cv_header_stdc = yes; then
3784   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3785   cat >conftest.$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792 #include <stdlib.h>
3793
3794 _ACEOF
3795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796   $EGREP "free" >/dev/null 2>&1; then
3797   :
3798 else
3799   ac_cv_header_stdc=no
3800 fi
3801 rm -f conftest*
3802
3803 fi
3804
3805 if test $ac_cv_header_stdc = yes; then
3806   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3807   if test "$cross_compiling" = yes; then
3808   :
3809 else
3810   cat >conftest.$ac_ext <<_ACEOF
3811 #line $LINENO "configure"
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817 #include <ctype.h>
3818 #if ((' ' & 0x0FF) == 0x020)
3819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3821 #else
3822 # define ISLOWER(c) \
3823                    (('a' <= (c) && (c) <= 'i') \
3824                      || ('j' <= (c) && (c) <= 'r') \
3825                      || ('s' <= (c) && (c) <= 'z'))
3826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3827 #endif
3828
3829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3830 int
3831 main ()
3832 {
3833   int i;
3834   for (i = 0; i < 256; i++)
3835     if (XOR (islower (i), ISLOWER (i))
3836         || toupper (i) != TOUPPER (i))
3837       exit(2);
3838   exit (0);
3839 }
3840 _ACEOF
3841 rm -f conftest$ac_exeext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843   (eval $ac_link) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848   (eval $ac_try) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; }; then
3852   :
3853 else
3854   echo "$as_me: program exited with status $ac_status" >&5
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 ( exit $ac_status )
3859 ac_cv_header_stdc=no
3860 fi
3861 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 fi
3864 fi
3865 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3866 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3867 if test $ac_cv_header_stdc = yes; then
3868
3869 cat >>confdefs.h <<\_ACEOF
3870 #define STDC_HEADERS 1
3871 _ACEOF
3872
3873 fi
3874
3875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3886                   inttypes.h stdint.h unistd.h
3887 do
3888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3889 echo "$as_me:$LINENO: checking for $ac_header" >&5
3890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   cat >conftest.$ac_ext <<_ACEOF
3895 #line $LINENO "configure"
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 $ac_includes_default
3902
3903 #include <$ac_header>
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907   (eval $ac_compile) 2>&5
3908   ac_status=$?
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); } &&
3911          { ac_try='test -s conftest.$ac_objext'
3912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913   (eval $ac_try) 2>&5
3914   ac_status=$?
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); }; }; then
3917   eval "$as_ac_Header=yes"
3918 else
3919   echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 eval "$as_ac_Header=no"
3923 fi
3924 rm -f conftest.$ac_objext conftest.$ac_ext
3925 fi
3926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3929   cat >>confdefs.h <<_ACEOF
3930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931 _ACEOF
3932
3933 fi
3934
3935 done
3936
3937
3938
3939 for ac_header in dlfcn.h
3940 do
3941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943   echo "$as_me:$LINENO: checking for $ac_header" >&5
3944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 fi
3948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3950 else
3951   # Is the header compilable?
3952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 /* confdefs.h.  */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h.  */
3961 $ac_includes_default
3962 #include <$ac_header>
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966   (eval $ac_compile) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } &&
3970          { ac_try='test -s conftest.$ac_objext'
3971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972   (eval $ac_try) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; }; then
3976   ac_header_compiler=yes
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 ac_header_compiler=no
3982 fi
3983 rm -f conftest.$ac_objext conftest.$ac_ext
3984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3985 echo "${ECHO_T}$ac_header_compiler" >&6
3986
3987 # Is the header present?
3988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3990 cat >conftest.$ac_ext <<_ACEOF
3991 #line $LINENO "configure"
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997 #include <$ac_header>
3998 _ACEOF
3999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4001   ac_status=$?
4002   grep -v '^ *+' conftest.er1 >conftest.err
4003   rm -f conftest.er1
4004   cat conftest.err >&5
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); } >/dev/null; then
4007   if test -s conftest.err; then
4008     ac_cpp_err=$ac_c_preproc_warn_flag
4009   else
4010     ac_cpp_err=
4011   fi
4012 else
4013   ac_cpp_err=yes
4014 fi
4015 if test -z "$ac_cpp_err"; then
4016   ac_header_preproc=yes
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021   ac_header_preproc=no
4022 fi
4023 rm -f conftest.err conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4025 echo "${ECHO_T}$ac_header_preproc" >&6
4026
4027 # So?  What about this header?
4028 case $ac_header_compiler:$ac_header_preproc in
4029   yes:no )
4030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4034     (
4035       cat <<\_ASBOX
4036 ## ------------------------------------ ##
4037 ## Report this to bug-autoconf@gnu.org. ##
4038 ## ------------------------------------ ##
4039 _ASBOX
4040     ) |
4041       sed "s/^/$as_me: WARNING:     /" >&2
4042     ;;
4043   no:yes )
4044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4046     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4050     (
4051       cat <<\_ASBOX
4052 ## ------------------------------------ ##
4053 ## Report this to bug-autoconf@gnu.org. ##
4054 ## ------------------------------------ ##
4055 _ASBOX
4056     ) |
4057       sed "s/^/$as_me: WARNING:     /" >&2
4058     ;;
4059 esac
4060 echo "$as_me:$LINENO: checking for $ac_header" >&5
4061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   eval "$as_ac_Header=$ac_header_preproc"
4066 fi
4067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4069
4070 fi
4071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4072   cat >>confdefs.h <<_ACEOF
4073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4074 _ACEOF
4075
4076 fi
4077
4078 done
4079
4080
4081
4082
4083
4084 # Only perform the check for file, if the check method requires it
4085 case $deplibs_check_method in
4086 file_magic*)
4087   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4088     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4089 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4090 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   case $MAGIC_CMD in
4094   /*)
4095   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4096   ;;
4097   ?:/*)
4098   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4099   ;;
4100   *)
4101   ac_save_MAGIC_CMD="$MAGIC_CMD"
4102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4103   ac_dummy="/usr/bin:$PATH"
4104   for ac_dir in $ac_dummy; do
4105     test -z "$ac_dir" && ac_dir=.
4106     if test -f $ac_dir/${ac_tool_prefix}file; then
4107       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4108       if test -n "$file_magic_test_file"; then
4109         case $deplibs_check_method in
4110         "file_magic "*)
4111           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4112           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4113           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4114             egrep "$file_magic_regex" > /dev/null; then
4115             :
4116           else
4117             cat <<EOF 1>&2
4118
4119 *** Warning: the command libtool uses to detect shared libraries,
4120 *** $file_magic_cmd, produces output that libtool cannot recognize.
4121 *** The result is that libtool may fail to recognize shared libraries
4122 *** as such.  This will affect the creation of libtool libraries that
4123 *** depend on shared libraries, but programs linked with such libtool
4124 *** libraries will work regardless of this problem.  Nevertheless, you
4125 *** may want to report the problem to your system manager and/or to
4126 *** bug-libtool@gnu.org
4127
4128 EOF
4129           fi ;;
4130         esac
4131       fi
4132       break
4133     fi
4134   done
4135   IFS="$ac_save_ifs"
4136   MAGIC_CMD="$ac_save_MAGIC_CMD"
4137   ;;
4138 esac
4139 fi
4140
4141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4142 if test -n "$MAGIC_CMD"; then
4143   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4144 echo "${ECHO_T}$MAGIC_CMD" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4148 fi
4149
4150 if test -z "$lt_cv_path_MAGIC_CMD"; then
4151   if test -n "$ac_tool_prefix"; then
4152     echo "$as_me:$LINENO: checking for file" >&5
4153 echo $ECHO_N "checking for file... $ECHO_C" >&6
4154 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   case $MAGIC_CMD in
4158   /*)
4159   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4160   ;;
4161   ?:/*)
4162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4163   ;;
4164   *)
4165   ac_save_MAGIC_CMD="$MAGIC_CMD"
4166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4167   ac_dummy="/usr/bin:$PATH"
4168   for ac_dir in $ac_dummy; do
4169     test -z "$ac_dir" && ac_dir=.
4170     if test -f $ac_dir/file; then
4171       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4172       if test -n "$file_magic_test_file"; then
4173         case $deplibs_check_method in
4174         "file_magic "*)
4175           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4176           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4177           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4178             egrep "$file_magic_regex" > /dev/null; then
4179             :
4180           else
4181             cat <<EOF 1>&2
4182
4183 *** Warning: the command libtool uses to detect shared libraries,
4184 *** $file_magic_cmd, produces output that libtool cannot recognize.
4185 *** The result is that libtool may fail to recognize shared libraries
4186 *** as such.  This will affect the creation of libtool libraries that
4187 *** depend on shared libraries, but programs linked with such libtool
4188 *** libraries will work regardless of this problem.  Nevertheless, you
4189 *** may want to report the problem to your system manager and/or to
4190 *** bug-libtool@gnu.org
4191
4192 EOF
4193           fi ;;
4194         esac
4195       fi
4196       break
4197     fi
4198   done
4199   IFS="$ac_save_ifs"
4200   MAGIC_CMD="$ac_save_MAGIC_CMD"
4201   ;;
4202 esac
4203 fi
4204
4205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4206 if test -n "$MAGIC_CMD"; then
4207   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4208 echo "${ECHO_T}$MAGIC_CMD" >&6
4209 else
4210   echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4212 fi
4213
4214   else
4215     MAGIC_CMD=:
4216   fi
4217 fi
4218
4219   fi
4220   ;;
4221 esac
4222
4223 if test -n "$ac_tool_prefix"; then
4224   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_RANLIB+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   if test -n "$RANLIB"; then
4232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239   for ac_exec_ext in '' $ac_executable_extensions; do
4240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246 done
4247
4248 fi
4249 fi
4250 RANLIB=$ac_cv_prog_RANLIB
4251 if test -n "$RANLIB"; then
4252   echo "$as_me:$LINENO: result: $RANLIB" >&5
4253 echo "${ECHO_T}$RANLIB" >&6
4254 else
4255   echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4257 fi
4258
4259 fi
4260 if test -z "$ac_cv_prog_RANLIB"; then
4261   ac_ct_RANLIB=$RANLIB
4262   # Extract the first word of "ranlib", so it can be a program name with args.
4263 set dummy ranlib; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   if test -n "$ac_ct_RANLIB"; then
4270   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277   for ac_exec_ext in '' $ac_executable_extensions; do
4278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_prog_ac_ct_RANLIB="ranlib"
4280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284 done
4285
4286   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4287 fi
4288 fi
4289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4290 if test -n "$ac_ct_RANLIB"; then
4291   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4292 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4293 else
4294   echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4296 fi
4297
4298   RANLIB=$ac_ct_RANLIB
4299 else
4300   RANLIB="$ac_cv_prog_RANLIB"
4301 fi
4302
4303 if test -n "$ac_tool_prefix"; then
4304   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4305 set dummy ${ac_tool_prefix}strip; ac_word=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_prog_STRIP+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   if test -n "$STRIP"; then
4312   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317   IFS=$as_save_IFS
4318   test -z "$as_dir" && as_dir=.
4319   for ac_exec_ext in '' $ac_executable_extensions; do
4320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326 done
4327
4328 fi
4329 fi
4330 STRIP=$ac_cv_prog_STRIP
4331 if test -n "$STRIP"; then
4332   echo "$as_me:$LINENO: result: $STRIP" >&5
4333 echo "${ECHO_T}$STRIP" >&6
4334 else
4335   echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4337 fi
4338
4339 fi
4340 if test -z "$ac_cv_prog_STRIP"; then
4341   ac_ct_STRIP=$STRIP
4342   # Extract the first word of "strip", so it can be a program name with args.
4343 set dummy strip; ac_word=$2
4344 echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   if test -n "$ac_ct_STRIP"; then
4350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355   IFS=$as_save_IFS
4356   test -z "$as_dir" && as_dir=.
4357   for ac_exec_ext in '' $ac_executable_extensions; do
4358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359     ac_cv_prog_ac_ct_STRIP="strip"
4360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361     break 2
4362   fi
4363 done
4364 done
4365
4366   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4367 fi
4368 fi
4369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4370 if test -n "$ac_ct_STRIP"; then
4371   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4372 echo "${ECHO_T}$ac_ct_STRIP" >&6
4373 else
4374   echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4376 fi
4377
4378   STRIP=$ac_ct_STRIP
4379 else
4380   STRIP="$ac_cv_prog_STRIP"
4381 fi
4382
4383
4384 enable_dlopen=no
4385 enable_win32_dll=no
4386
4387 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4388 if test "${enable_libtool_lock+set}" = set; then
4389   enableval="$enable_libtool_lock"
4390
4391 fi;
4392 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4393
4394 # Some flags need to be propagated to the compiler or linker for good
4395 # libtool support.
4396 case $host in
4397 *-*-irix6*)
4398   # Find out which ABI we are using.
4399   echo '#line 4399 "configure"' > conftest.$ac_ext
4400   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401   (eval $ac_compile) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; then
4405     case `/usr/bin/file conftest.$ac_objext` in
4406     *32-bit*)
4407       LD="${LD-ld} -32"
4408       ;;
4409     *N32*)
4410       LD="${LD-ld} -n32"
4411       ;;
4412     *64-bit*)
4413       LD="${LD-ld} -64"
4414       ;;
4415     esac
4416   fi
4417   rm -rf conftest*
4418   ;;
4419
4420 *-*-sco3.2v5*)
4421   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4422   SAVE_CFLAGS="$CFLAGS"
4423   CFLAGS="$CFLAGS -belf"
4424   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4425 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4426 if test "${lt_cv_cc_needs_belf+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429
4430
4431      ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437      cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444
4445 int
4446 main ()
4447 {
4448
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext conftest$ac_exeext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455   (eval $ac_link) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -s conftest$ac_exeext'
4460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461   (eval $ac_try) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; }; then
4465   lt_cv_cc_needs_belf=yes
4466 else
4467   echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 lt_cv_cc_needs_belf=no
4471 fi
4472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4473      ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479 fi
4480 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4481 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4482   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4483     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4484     CFLAGS="$SAVE_CFLAGS"
4485   fi
4486   ;;
4487
4488
4489 esac
4490
4491 # Sed substitution that helps us do robust quoting.  It backslashifies
4492 # metacharacters that are still active within double-quoted strings.
4493 Xsed='sed -e s/^X//'
4494 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4495
4496 # Same as above, but do not quote variable references.
4497 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4498
4499 # Sed substitution to delay expansion of an escaped shell variable in a
4500 # double_quote_subst'ed string.
4501 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4502
4503 # Constants:
4504 rm="rm -f"
4505
4506 # Global variables:
4507 default_ofile=libtool
4508 can_build_shared=yes
4509
4510 # All known linkers require a `.a' archive for static linking (except M$VC,
4511 # which needs '.lib').
4512 libext=a
4513 ltmain="$ac_aux_dir/ltmain.sh"
4514 ofile="$default_ofile"
4515 with_gnu_ld="$lt_cv_prog_gnu_ld"
4516 need_locks="$enable_libtool_lock"
4517
4518 old_CC="$CC"
4519 old_CFLAGS="$CFLAGS"
4520
4521 # Set sane defaults for various variables
4522 test -z "$AR" && AR=ar
4523 test -z "$AR_FLAGS" && AR_FLAGS=cru
4524 test -z "$AS" && AS=as
4525 test -z "$CC" && CC=cc
4526 test -z "$DLLTOOL" && DLLTOOL=dlltool
4527 test -z "$LD" && LD=ld
4528 test -z "$LN_S" && LN_S="ln -s"
4529 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4530 test -z "$NM" && NM=nm
4531 test -z "$OBJDUMP" && OBJDUMP=objdump
4532 test -z "$RANLIB" && RANLIB=:
4533 test -z "$STRIP" && STRIP=:
4534 test -z "$ac_objext" && ac_objext=o
4535
4536 if test x"$host" != x"$build"; then
4537   ac_tool_prefix=${host_alias}-
4538 else
4539   ac_tool_prefix=
4540 fi
4541
4542 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4543 case $host_os in
4544 linux-gnu*) ;;
4545 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4546 esac
4547
4548 case $host_os in
4549 aix3*)
4550   # AIX sometimes has problems with the GCC collect2 program.  For some
4551   # reason, if we set the COLLECT_NAMES environment variable, the problems
4552   # vanish in a puff of smoke.
4553   if test "X${COLLECT_NAMES+set}" != Xset; then
4554     COLLECT_NAMES=
4555     export COLLECT_NAMES
4556   fi
4557   ;;
4558 esac
4559
4560 # Determine commands to create old-style static archives.
4561 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4562 old_postinstall_cmds='chmod 644 $oldlib'
4563 old_postuninstall_cmds=
4564
4565 if test -n "$RANLIB"; then
4566   case $host_os in
4567   openbsd*)
4568     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4569     ;;
4570   *)
4571     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4572     ;;
4573   esac
4574   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4575 fi
4576
4577 # Allow CC to be a program name with arguments.
4578 set dummy $CC
4579 compiler="$2"
4580
4581 echo "$as_me:$LINENO: checking for objdir" >&5
4582 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4583 rm -f .libs 2>/dev/null
4584 mkdir .libs 2>/dev/null
4585 if test -d .libs; then
4586   objdir=.libs
4587 else
4588   # MS-DOS does not allow filenames that begin with a dot.
4589   objdir=_libs
4590 fi
4591 rmdir .libs 2>/dev/null
4592 echo "$as_me:$LINENO: result: $objdir" >&5
4593 echo "${ECHO_T}$objdir" >&6
4594
4595
4596
4597 # Check whether --with-pic or --without-pic was given.
4598 if test "${with_pic+set}" = set; then
4599   withval="$with_pic"
4600   pic_mode="$withval"
4601 else
4602   pic_mode=default
4603 fi;
4604 test -z "$pic_mode" && pic_mode=default
4605
4606 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4607 # in isolation, and that seeing it set (from the cache) indicates that
4608 # the associated values are set (in the cache) correctly too.
4609 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4610 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4611 if test "${lt_cv_prog_cc_pic+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614    lt_cv_prog_cc_pic=
4615   lt_cv_prog_cc_shlib=
4616   lt_cv_prog_cc_wl=
4617   lt_cv_prog_cc_static=
4618   lt_cv_prog_cc_no_builtin=
4619   lt_cv_prog_cc_can_build_shared=$can_build_shared
4620
4621   if test "$GCC" = yes; then
4622     lt_cv_prog_cc_wl='-Wl,'
4623     lt_cv_prog_cc_static='-static'
4624
4625     case $host_os in
4626     aix*)
4627       # Below there is a dirty hack to force normal static linking with -ldl
4628       # The problem is because libdl dynamically linked with both libc and
4629       # libC (AIX C++ library), which obviously doesn't included in libraries
4630       # list by gcc. This cause undefined symbols with -static flags.
4631       # This hack allows C programs to be linked with "-static -ldl", but
4632       # not sure about C++ programs.
4633       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4634       ;;
4635     amigaos*)
4636       # FIXME: we need at least 68020 code to build shared libraries, but
4637       # adding the `-m68020' flag to GCC prevents building anything better,
4638       # like `-m68040'.
4639       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4640       ;;
4641     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4642       # PIC is the default for these OSes.
4643       ;;
4644     darwin* | rhapsody*)
4645       # PIC is the default on this platform
4646       # Common symbols not allowed in MH_DYLIB files
4647       lt_cv_prog_cc_pic='-fno-common'
4648       ;;
4649     cygwin* | mingw* | pw32* | os2*)
4650       # This hack is so that the source file can tell whether it is being
4651       # built for inclusion in a dll (and should export symbols for example).
4652       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4653       ;;
4654     sysv4*MP*)
4655       if test -d /usr/nec; then
4656          lt_cv_prog_cc_pic=-Kconform_pic
4657       fi
4658       ;;
4659     *)
4660       lt_cv_prog_cc_pic='-fPIC'
4661       ;;
4662     esac
4663   else
4664     # PORTME Check for PIC flags for the system compiler.
4665     case $host_os in
4666     aix3* | aix4* | aix5*)
4667       lt_cv_prog_cc_wl='-Wl,'
4668       # All AIX code is PIC.
4669       if test "$host_cpu" = ia64; then
4670         # AIX 5 now supports IA64 processor
4671         lt_cv_prog_cc_static='-Bstatic'
4672       else
4673         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4674       fi
4675       ;;
4676
4677     hpux9* | hpux10* | hpux11*)
4678       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4679       lt_cv_prog_cc_wl='-Wl,'
4680       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4681       lt_cv_prog_cc_pic='+Z'
4682       ;;
4683
4684     irix5* | irix6*)
4685       lt_cv_prog_cc_wl='-Wl,'
4686       lt_cv_prog_cc_static='-non_shared'
4687       # PIC (with -KPIC) is the default.
4688       ;;
4689
4690     cygwin* | mingw* | pw32* | os2*)
4691       # This hack is so that the source file can tell whether it is being
4692       # built for inclusion in a dll (and should export symbols for example).
4693       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4694       ;;
4695
4696     newsos6)
4697       lt_cv_prog_cc_pic='-KPIC'
4698       lt_cv_prog_cc_static='-Bstatic'
4699       ;;
4700
4701     osf3* | osf4* | osf5*)
4702       # All OSF/1 code is PIC.
4703       lt_cv_prog_cc_wl='-Wl,'
4704       lt_cv_prog_cc_static='-non_shared'
4705       ;;
4706
4707     sco3.2v5*)
4708       lt_cv_prog_cc_pic='-Kpic'
4709       lt_cv_prog_cc_static='-dn'
4710       lt_cv_prog_cc_shlib='-belf'
4711       ;;
4712
4713     solaris*)
4714       lt_cv_prog_cc_pic='-KPIC'
4715       lt_cv_prog_cc_static='-Bstatic'
4716       lt_cv_prog_cc_wl='-Wl,'
4717       ;;
4718
4719     sunos4*)
4720       lt_cv_prog_cc_pic='-PIC'
4721       lt_cv_prog_cc_static='-Bstatic'
4722       lt_cv_prog_cc_wl='-Qoption ld '
4723       ;;
4724
4725     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4726       lt_cv_prog_cc_pic='-KPIC'
4727       lt_cv_prog_cc_static='-Bstatic'
4728       if test "x$host_vendor" = xsni; then
4729         lt_cv_prog_cc_wl='-LD'
4730       else
4731         lt_cv_prog_cc_wl='-Wl,'
4732       fi
4733       ;;
4734
4735     uts4*)
4736       lt_cv_prog_cc_pic='-pic'
4737       lt_cv_prog_cc_static='-Bstatic'
4738       ;;
4739
4740     sysv4*MP*)
4741       if test -d /usr/nec ;then
4742         lt_cv_prog_cc_pic='-Kconform_pic'
4743         lt_cv_prog_cc_static='-Bstatic'
4744       fi
4745       ;;
4746
4747     *)
4748       lt_cv_prog_cc_can_build_shared=no
4749       ;;
4750     esac
4751   fi
4752
4753 fi
4754
4755 if test -z "$lt_cv_prog_cc_pic"; then
4756   echo "$as_me:$LINENO: result: none" >&5
4757 echo "${ECHO_T}none" >&6
4758 else
4759   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4760 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4761
4762   # Check to make sure the pic_flag actually works.
4763   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4764 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4765   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768       save_CFLAGS="$CFLAGS"
4769     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4770     cat >conftest.$ac_ext <<_ACEOF
4771 #line $LINENO "configure"
4772 /* confdefs.h.  */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h.  */
4777
4778 int
4779 main ()
4780 {
4781
4782   ;
4783   return 0;
4784 }
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); } &&
4792          { ac_try='test -s conftest.$ac_objext'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; }; then
4798         case $host_os in
4799       hpux9* | hpux10* | hpux11*)
4800         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4801         # they create non-PIC objects.  So, if there were any warnings, we
4802         # assume that PIC is not supported.
4803         if test -s conftest.err; then
4804           lt_cv_prog_cc_pic_works=no
4805         else
4806           lt_cv_prog_cc_pic_works=yes
4807         fi
4808         ;;
4809       *)
4810         lt_cv_prog_cc_pic_works=yes
4811         ;;
4812       esac
4813
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818       lt_cv_prog_cc_pic_works=no
4819
4820 fi
4821 rm -f conftest.$ac_objext conftest.$ac_ext
4822     CFLAGS="$save_CFLAGS"
4823
4824 fi
4825
4826
4827   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4828     lt_cv_prog_cc_pic=
4829     lt_cv_prog_cc_can_build_shared=no
4830   else
4831     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4832   fi
4833
4834   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4835 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4836 fi
4837
4838 # Check for any special shared library compilation flags.
4839 if test -n "$lt_cv_prog_cc_shlib"; then
4840   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4841 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4842   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4843   else
4844    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4845 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4846     lt_cv_prog_cc_can_build_shared=no
4847   fi
4848 fi
4849
4850 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4851 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4852 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855     lt_cv_prog_cc_static_works=no
4856   save_LDFLAGS="$LDFLAGS"
4857   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4858   cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4860 /* confdefs.h.  */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h.  */
4865
4866 int
4867 main ()
4868 {
4869
4870   ;
4871   return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest.$ac_objext conftest$ac_exeext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4876   (eval $ac_link) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } &&
4880          { ac_try='test -s conftest$ac_exeext'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; }; then
4886   lt_cv_prog_cc_static_works=yes
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 fi
4892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4893   LDFLAGS="$save_LDFLAGS"
4894
4895 fi
4896
4897
4898 # Belt *and* braces to stop my trousers falling down:
4899 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4900 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4901 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4902
4903 pic_flag="$lt_cv_prog_cc_pic"
4904 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4905 wl="$lt_cv_prog_cc_wl"
4906 link_static_flag="$lt_cv_prog_cc_static"
4907 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4908 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4909
4910
4911 # Check to see if options -o and -c are simultaneously supported by compiler
4912 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4914 if test "${lt_cv_compiler_c_o+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917
4918 $rm -r conftest 2>/dev/null
4919 mkdir conftest
4920 cd conftest
4921 echo "int some_variable = 0;" > conftest.$ac_ext
4922 mkdir out
4923 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4924 # that will create temporary files in the current directory regardless of
4925 # the output directory.  Thus, making CWD read-only will cause this test
4926 # to fail, enabling locking or at least warning the user not to do parallel
4927 # builds.
4928 chmod -w .
4929 save_CFLAGS="$CFLAGS"
4930 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4931 compiler_c_o=no
4932 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4933   # The compiler can only warn and ignore the option if not recognized
4934   # So say no if there are warnings
4935   if test -s out/conftest.err; then
4936     lt_cv_compiler_c_o=no
4937   else
4938     lt_cv_compiler_c_o=yes
4939   fi
4940 else
4941   # Append any errors to the config.log.
4942   cat out/conftest.err 1>&5
4943   lt_cv_compiler_c_o=no
4944 fi
4945 CFLAGS="$save_CFLAGS"
4946 chmod u+w .
4947 $rm conftest* out/*
4948 rmdir out
4949 cd ..
4950 rmdir conftest
4951 $rm -r conftest 2>/dev/null
4952
4953 fi
4954
4955 compiler_c_o=$lt_cv_compiler_c_o
4956 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4957 echo "${ECHO_T}$compiler_c_o" >&6
4958
4959 if test x"$compiler_c_o" = x"yes"; then
4960   # Check to see if we can write to a .lo
4961   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4962 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4963   if test "${lt_cv_compiler_o_lo+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966
4967   lt_cv_compiler_o_lo=no
4968   save_CFLAGS="$CFLAGS"
4969   CFLAGS="$CFLAGS -c -o conftest.lo"
4970   save_objext="$ac_objext"
4971   ac_objext=lo
4972   cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979
4980 int
4981 main ()
4982 {
4983 int some_variable = 0;
4984   ;
4985   return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990   (eval $ac_compile) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000       # The compiler can only warn and ignore the option if not recognized
5001     # So say no if there are warnings
5002     if test -s conftest.err; then
5003       lt_cv_compiler_o_lo=no
5004     else
5005       lt_cv_compiler_o_lo=yes
5006     fi
5007
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 fi
5013 rm -f conftest.$ac_objext conftest.$ac_ext
5014   ac_objext="$save_objext"
5015   CFLAGS="$save_CFLAGS"
5016
5017 fi
5018
5019   compiler_o_lo=$lt_cv_compiler_o_lo
5020   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5021 echo "${ECHO_T}$compiler_o_lo" >&6
5022 else
5023   compiler_o_lo=no
5024 fi
5025
5026 # Check to see if we can do hard links to lock some files if needed
5027 hard_links="nottested"
5028 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5029   # do not overwrite the value of need_locks provided by the user
5030   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5031 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5032   hard_links=yes
5033   $rm conftest*
5034   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5035   touch conftest.a
5036   ln conftest.a conftest.b 2>&5 || hard_links=no
5037   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5038   echo "$as_me:$LINENO: result: $hard_links" >&5
5039 echo "${ECHO_T}$hard_links" >&6
5040   if test "$hard_links" = no; then
5041     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5042 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5043     need_locks=warn
5044   fi
5045 else
5046   need_locks=no
5047 fi
5048
5049 if test "$GCC" = yes; then
5050   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5051   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5052 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5053   echo "int some_variable = 0;" > conftest.$ac_ext
5054   save_CFLAGS="$CFLAGS"
5055   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5056   compiler_rtti_exceptions=no
5057   cat >conftest.$ac_ext <<_ACEOF
5058 #line $LINENO "configure"
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064
5065 int
5066 main ()
5067 {
5068 int some_variable = 0;
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075   (eval $ac_compile) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } &&
5079          { ac_try='test -s conftest.$ac_objext'
5080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081   (eval $ac_try) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); }; }; then
5085       # The compiler can only warn and ignore the option if not recognized
5086     # So say no if there are warnings
5087     if test -s conftest.err; then
5088       compiler_rtti_exceptions=no
5089     else
5090       compiler_rtti_exceptions=yes
5091     fi
5092
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 fi
5098 rm -f conftest.$ac_objext conftest.$ac_ext
5099   CFLAGS="$save_CFLAGS"
5100   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5101 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5102
5103   if test "$compiler_rtti_exceptions" = "yes"; then
5104     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5105   else
5106     no_builtin_flag=' -fno-builtin'
5107   fi
5108 fi
5109
5110 # See if the linker supports building shared libraries.
5111 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5112 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5113
5114 allow_undefined_flag=
5115 no_undefined_flag=
5116 need_lib_prefix=unknown
5117 need_version=unknown
5118 # when you set need_version to no, make sure it does not cause -set_version
5119 # flags to be left without arguments
5120 archive_cmds=
5121 archive_expsym_cmds=
5122 old_archive_from_new_cmds=
5123 old_archive_from_expsyms_cmds=
5124 export_dynamic_flag_spec=
5125 whole_archive_flag_spec=
5126 thread_safe_flag_spec=
5127 hardcode_into_libs=no
5128 hardcode_libdir_flag_spec=
5129 hardcode_libdir_separator=
5130 hardcode_direct=no
5131 hardcode_minus_L=no
5132 hardcode_shlibpath_var=unsupported
5133 runpath_var=
5134 link_all_deplibs=unknown
5135 always_export_symbols=no
5136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5137 # include_expsyms should be a list of space-separated symbols to be *always*
5138 # included in the symbol list
5139 include_expsyms=
5140 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5141 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5142 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5143 # as well as any symbol that contains `d'.
5144 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5145 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5146 # platforms (ab)use it in PIC code, but their linkers get confused if
5147 # the symbol is explicitly referenced.  Since portable code cannot
5148 # rely on this symbol name, it's probably fine to never include it in
5149 # preloaded symbol tables.
5150 extract_expsyms_cmds=
5151
5152 case $host_os in
5153 cygwin* | mingw* | pw32*)
5154   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5155   # When not using gcc, we currently assume that we are using
5156   # Microsoft Visual C++.
5157   if test "$GCC" != yes; then
5158     with_gnu_ld=no
5159   fi
5160   ;;
5161 openbsd*)
5162   with_gnu_ld=no
5163   ;;
5164 esac
5165
5166 ld_shlibs=yes
5167 if test "$with_gnu_ld" = yes; then
5168   # If archive_cmds runs LD, not CC, wlarc should be empty
5169   wlarc='${wl}'
5170
5171   # See if GNU ld supports shared libraries.
5172   case $host_os in
5173   aix3* | aix4* | aix5*)
5174     # On AIX, the GNU linker is very broken
5175     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5176     ld_shlibs=no
5177     cat <<EOF 1>&2
5178
5179 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5180 *** to be unable to reliably create shared libraries on AIX.
5181 *** Therefore, libtool is disabling shared libraries support.  If you
5182 *** really care for shared libraries, you may want to modify your PATH
5183 *** so that a non-GNU linker is found, and then restart.
5184
5185 EOF
5186     ;;
5187
5188   amigaos*)
5189     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)'
5190     hardcode_libdir_flag_spec='-L$libdir'
5191     hardcode_minus_L=yes
5192
5193     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5194     # that the semantics of dynamic libraries on AmigaOS, at least up
5195     # to version 4, is to share data among multiple programs linked
5196     # with the same dynamic library.  Since this doesn't match the
5197     # behavior of shared libraries on other platforms, we can use
5198     # them.
5199     ld_shlibs=no
5200     ;;
5201
5202   beos*)
5203     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5204       allow_undefined_flag=unsupported
5205       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5206       # support --undefined.  This deserves some investigation.  FIXME
5207       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5208     else
5209       ld_shlibs=no
5210     fi
5211     ;;
5212
5213   cygwin* | mingw* | pw32*)
5214     # hardcode_libdir_flag_spec is actually meaningless, as there is
5215     # no search path for DLLs.
5216     hardcode_libdir_flag_spec='-L$libdir'
5217     allow_undefined_flag=unsupported
5218     always_export_symbols=yes
5219
5220     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5221       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5222       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5223       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5224       else $CC -o impgen impgen.c ; fi)~
5225       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5226
5227     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5228
5229     # cygwin and mingw dlls have different entry points and sets of symbols
5230     # to exclude.
5231     # FIXME: what about values for MSVC?
5232     dll_entry=__cygwin_dll_entry@12
5233     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5234     case $host_os in
5235     mingw*)
5236       # mingw values
5237       dll_entry=_DllMainCRTStartup@12
5238       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5239       ;;
5240     esac
5241
5242     # mingw and cygwin differ, and it's simplest to just exclude the union
5243     # of the two symbol sets.
5244     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5245
5246     # recent cygwin and mingw systems supply a stub DllMain which the user
5247     # can override, but on older systems we have to supply one (in ltdll.c)
5248     if test "x$lt_cv_need_dllmain" = "xyes"; then
5249       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5250       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~
5251         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5252     else
5253       ltdll_obj=
5254       ltdll_cmds=
5255     fi
5256
5257     # Extract the symbol export list from an `--export-all' def file,
5258     # then regenerate the def file from the symbol export list, so that
5259     # the compiled dll only exports the symbol export list.
5260     # Be careful not to strip the DATA tag left be newer dlltools.
5261     export_symbols_cmds="$ltdll_cmds"'
5262       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5263       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5264
5265     # If the export-symbols file already is a .def file (1st line
5266     # is EXPORTS), use it as is.
5267     # If DATA tags from a recent dlltool are present, honour them!
5268     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5269         cp $export_symbols $output_objdir/$soname-def;
5270       else
5271         echo EXPORTS > $output_objdir/$soname-def;
5272         _lt_hint=1;
5273         cat $export_symbols | while read symbol; do
5274          set dummy \$symbol;
5275          case \$# in
5276            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5277            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5278          esac;
5279          _lt_hint=`expr 1 + \$_lt_hint`;
5280         done;
5281       fi~
5282       '"$ltdll_cmds"'
5283       $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~
5284       $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~
5285       $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~
5286       $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~
5287       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5288     ;;
5289
5290   netbsd*)
5291     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5292       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5293       wlarc=
5294     else
5295       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5296       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5297     fi
5298     ;;
5299
5300   solaris* | sysv5*)
5301     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5302       ld_shlibs=no
5303       cat <<EOF 1>&2
5304
5305 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5306 *** create shared libraries on Solaris systems.  Therefore, libtool
5307 *** is disabling shared libraries support.  We urge you to upgrade GNU
5308 *** binutils to release 2.9.1 or newer.  Another option is to modify
5309 *** your PATH or compiler configuration so that the native linker is
5310 *** used, and then restart.
5311
5312 EOF
5313     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5314       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5315       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5316     else
5317       ld_shlibs=no
5318     fi
5319     ;;
5320
5321   sunos4*)
5322     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5323     wlarc=
5324     hardcode_direct=yes
5325     hardcode_shlibpath_var=no
5326     ;;
5327
5328   *)
5329     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5330       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5331       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5332     else
5333       ld_shlibs=no
5334     fi
5335     ;;
5336   esac
5337
5338   if test "$ld_shlibs" = yes; then
5339     runpath_var=LD_RUN_PATH
5340     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5341     export_dynamic_flag_spec='${wl}--export-dynamic'
5342     case $host_os in
5343     cygwin* | mingw* | pw32*)
5344       # dlltool doesn't understand --whole-archive et. al.
5345       whole_archive_flag_spec=
5346       ;;
5347     *)
5348       # ancient GNU ld didn't support --whole-archive et. al.
5349       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5350         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5351       else
5352         whole_archive_flag_spec=
5353       fi
5354       ;;
5355     esac
5356   fi
5357 else
5358   # PORTME fill in a description of your system's linker (not GNU ld)
5359   case $host_os in
5360   aix3*)
5361     allow_undefined_flag=unsupported
5362     always_export_symbols=yes
5363     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'
5364     # Note: this linker hardcodes the directories in LIBPATH if there
5365     # are no directories specified by -L.
5366     hardcode_minus_L=yes
5367     if test "$GCC" = yes && test -z "$link_static_flag"; then
5368       # Neither direct hardcoding nor static linking is supported with a
5369       # broken collect2.
5370       hardcode_direct=unsupported
5371     fi
5372     ;;
5373
5374   aix4* | aix5*)
5375     if test "$host_cpu" = ia64; then
5376       # On IA64, the linker does run time linking by default, so we don't
5377       # have to do anything special.
5378       aix_use_runtimelinking=no
5379       exp_sym_flag='-Bexport'
5380       no_entry_flag=""
5381     else
5382       aix_use_runtimelinking=no
5383
5384       # Test if we are trying to use run time linking or normal
5385       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5386       # need to do runtime linking.
5387       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5388         for ld_flag in $LDFLAGS; do
5389           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5390             aix_use_runtimelinking=yes
5391             break
5392           fi
5393         done
5394       esac
5395
5396       exp_sym_flag='-bexport'
5397       no_entry_flag='-bnoentry'
5398     fi
5399
5400     # When large executables or shared objects are built, AIX ld can
5401     # have problems creating the table of contents.  If linking a library
5402     # or program results in "error TOC overflow" add -mminimal-toc to
5403     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5404     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5405
5406     hardcode_direct=yes
5407     archive_cmds=''
5408     hardcode_libdir_separator=':'
5409     if test "$GCC" = yes; then
5410       case $host_os in aix4.[012]|aix4.[012].*)
5411         collect2name=`${CC} -print-prog-name=collect2`
5412         if test -f "$collect2name" && \
5413           strings "$collect2name" | grep resolve_lib_name >/dev/null
5414         then
5415           # We have reworked collect2
5416           hardcode_direct=yes
5417         else
5418           # We have old collect2
5419           hardcode_direct=unsupported
5420           # It fails to find uninstalled libraries when the uninstalled
5421           # path is not listed in the libpath.  Setting hardcode_minus_L
5422           # to unsupported forces relinking
5423           hardcode_minus_L=yes
5424           hardcode_libdir_flag_spec='-L$libdir'
5425           hardcode_libdir_separator=
5426         fi
5427       esac
5428
5429       shared_flag='-shared'
5430     else
5431       # not using gcc
5432       if test "$host_cpu" = ia64; then
5433         shared_flag='${wl}-G'
5434       else
5435         if test "$aix_use_runtimelinking" = yes; then
5436           shared_flag='${wl}-G'
5437         else
5438           shared_flag='${wl}-bM:SRE'
5439         fi
5440       fi
5441     fi
5442
5443     # It seems that -bexpall can do strange things, so it is better to
5444     # generate a list of symbols to export.
5445     always_export_symbols=yes
5446     if test "$aix_use_runtimelinking" = yes; then
5447       # Warning - without using the other runtime loading flags (-brtl),
5448       # -berok will link without error, but may produce a broken library.
5449       allow_undefined_flag='-berok'
5450       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5451       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"
5452     else
5453       if test "$host_cpu" = ia64; then
5454         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5455         allow_undefined_flag="-z nodefs"
5456         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"
5457       else
5458         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5459         # Warning - without using the other run time loading flags,
5460         # -berok will link without error, but may produce a broken library.
5461         allow_undefined_flag='${wl}-berok'
5462         # This is a bit strange, but is similar to how AIX traditionally builds
5463         # it's shared libraries.
5464         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'
5465       fi
5466     fi
5467     ;;
5468
5469   amigaos*)
5470     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)'
5471     hardcode_libdir_flag_spec='-L$libdir'
5472     hardcode_minus_L=yes
5473     # see comment about different semantics on the GNU ld section
5474     ld_shlibs=no
5475     ;;
5476
5477   cygwin* | mingw* | pw32*)
5478     # When not using gcc, we currently assume that we are using
5479     # Microsoft Visual C++.
5480     # hardcode_libdir_flag_spec is actually meaningless, as there is
5481     # no search path for DLLs.
5482     hardcode_libdir_flag_spec=' '
5483     allow_undefined_flag=unsupported
5484     # Tell ltmain to make .lib files, not .a files.
5485     libext=lib
5486     # FIXME: Setting linknames here is a bad hack.
5487     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5488     # The linker will automatically build a .lib file if we build a DLL.
5489     old_archive_from_new_cmds='true'
5490     # FIXME: Should let the user specify the lib program.
5491     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5492     fix_srcfile_path='`cygpath -w "$srcfile"`'
5493     ;;
5494
5495   darwin* | rhapsody*)
5496     case "$host_os" in
5497     rhapsody* | darwin1.[012])
5498       allow_undefined_flag='-undefined suppress'
5499       ;;
5500     *) # Darwin 1.3 on
5501       allow_undefined_flag='-flat_namespace -undefined suppress'
5502       ;;
5503     esac
5504     # FIXME: Relying on posixy $() will cause problems for
5505     #        cross-compilation, but unfortunately the echo tests do not
5506     #        yet detect zsh echo's removal of \ escapes.
5507     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'
5508     # We need to add '_' to the symbols in $export_symbols first
5509     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5510     hardcode_direct=yes
5511     hardcode_shlibpath_var=no
5512     whole_archive_flag_spec='-all_load $convenience'
5513     ;;
5514
5515   freebsd1*)
5516     ld_shlibs=no
5517     ;;
5518
5519   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5520   # support.  Future versions do this automatically, but an explicit c++rt0.o
5521   # does not break anything, and helps significantly (at the cost of a little
5522   # extra space).
5523   freebsd2.2*)
5524     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5525     hardcode_libdir_flag_spec='-R$libdir'
5526     hardcode_direct=yes
5527     hardcode_shlibpath_var=no
5528     ;;
5529
5530   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5531   freebsd2*)
5532     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5533     hardcode_direct=yes
5534     hardcode_minus_L=yes
5535     hardcode_shlibpath_var=no
5536     ;;
5537
5538   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5539   freebsd*)
5540     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5541     hardcode_libdir_flag_spec='-R$libdir'
5542     hardcode_direct=yes
5543     hardcode_shlibpath_var=no
5544     ;;
5545
5546   hpux9* | hpux10* | hpux11*)
5547     case $host_os in
5548     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' ;;
5549     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5550     esac
5551     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5552     hardcode_libdir_separator=:
5553     hardcode_direct=yes
5554     hardcode_minus_L=yes # Not in the search PATH, but as the default
5555                          # location of the library.
5556     export_dynamic_flag_spec='${wl}-E'
5557     ;;
5558
5559   irix5* | irix6*)
5560     if test "$GCC" = yes; then
5561       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'
5562     else
5563       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'
5564     fi
5565     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5566     hardcode_libdir_separator=:
5567     link_all_deplibs=yes
5568     ;;
5569
5570   netbsd*)
5571     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5572       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5573     else
5574       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5575     fi
5576     hardcode_libdir_flag_spec='-R$libdir'
5577     hardcode_direct=yes
5578     hardcode_shlibpath_var=no
5579     ;;
5580
5581   newsos6)
5582     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5583     hardcode_direct=yes
5584     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5585     hardcode_libdir_separator=:
5586     hardcode_shlibpath_var=no
5587     ;;
5588
5589   openbsd*)
5590     hardcode_direct=yes
5591     hardcode_shlibpath_var=no
5592     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5593       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5594       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5595       export_dynamic_flag_spec='${wl}-E'
5596     else
5597       case "$host_os" in
5598       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5599         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5600         hardcode_libdir_flag_spec='-R$libdir'
5601         ;;
5602       *)
5603         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5604         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5605         ;;
5606       esac
5607     fi
5608     ;;
5609
5610   os2*)
5611     hardcode_libdir_flag_spec='-L$libdir'
5612     hardcode_minus_L=yes
5613     allow_undefined_flag=unsupported
5614     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'
5615     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5616     ;;
5617
5618   osf3*)
5619     if test "$GCC" = yes; then
5620       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5621       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'
5622     else
5623       allow_undefined_flag=' -expect_unresolved \*'
5624       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'
5625     fi
5626     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5627     hardcode_libdir_separator=:
5628     ;;
5629
5630   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5631     if test "$GCC" = yes; then
5632       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5633       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'
5634       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5635     else
5636       allow_undefined_flag=' -expect_unresolved \*'
5637       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'
5638       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5639       $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'
5640
5641       #Both c and cxx compiler support -rpath directly
5642       hardcode_libdir_flag_spec='-rpath $libdir'
5643     fi
5644     hardcode_libdir_separator=:
5645     ;;
5646
5647   sco3.2v5*)
5648     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649     hardcode_shlibpath_var=no
5650     runpath_var=LD_RUN_PATH
5651     hardcode_runpath_var=yes
5652     export_dynamic_flag_spec='${wl}-Bexport'
5653     ;;
5654
5655   solaris*)
5656     # gcc --version < 3.0 without binutils cannot create self contained
5657     # shared libraries reliably, requiring libgcc.a to resolve some of
5658     # the object symbols generated in some cases.  Libraries that use
5659     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5660     # a copy of libgcc.a into every shared library to guarantee resolving
5661     # such symbols causes other problems:  According to Tim Van Holder
5662     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5663     # (to the application) exception stack for one thing.
5664     no_undefined_flag=' -z defs'
5665     if test "$GCC" = yes; then
5666       case `$CC --version 2>/dev/null` in
5667       [12].*)
5668         cat <<EOF 1>&2
5669
5670 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5671 *** create self contained shared libraries on Solaris systems, without
5672 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5673 *** -no-undefined support, which will at least allow you to build shared
5674 *** libraries.  However, you may find that when you link such libraries
5675 *** into an application without using GCC, you have to manually add
5676 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5677 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5678 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5679
5680 EOF
5681         no_undefined_flag=
5682         ;;
5683       esac
5684     fi
5685     # $CC -shared without GNU ld will not create a library from C++
5686     # object files and a static libstdc++, better avoid it by now
5687     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5688     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5689                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5690     hardcode_libdir_flag_spec='-R$libdir'
5691     hardcode_shlibpath_var=no
5692     case $host_os in
5693     solaris2.[0-5] | solaris2.[0-5].*) ;;
5694     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5695       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5696     esac
5697     link_all_deplibs=yes
5698     ;;
5699
5700   sunos4*)
5701     if test "x$host_vendor" = xsequent; then
5702       # Use $CC to link under sequent, because it throws in some extra .o
5703       # files that make .init and .fini sections work.
5704       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5705     else
5706       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5707     fi
5708     hardcode_libdir_flag_spec='-L$libdir'
5709     hardcode_direct=yes
5710     hardcode_minus_L=yes
5711     hardcode_shlibpath_var=no
5712     ;;
5713
5714   sysv4)
5715     if test "x$host_vendor" = xsno; then
5716       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5717       hardcode_direct=yes # is this really true???
5718     else
5719       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5720       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5721     fi
5722     runpath_var='LD_RUN_PATH'
5723     hardcode_shlibpath_var=no
5724     ;;
5725
5726   sysv4.3*)
5727     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5728     hardcode_shlibpath_var=no
5729     export_dynamic_flag_spec='-Bexport'
5730     ;;
5731
5732   sysv5*)
5733     no_undefined_flag=' -z text'
5734     # $CC -shared without GNU ld will not create a library from C++
5735     # object files and a static libstdc++, better avoid it by now
5736     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5737     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5738                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5739     hardcode_libdir_flag_spec=
5740     hardcode_shlibpath_var=no
5741     runpath_var='LD_RUN_PATH'
5742     ;;
5743
5744   uts4*)
5745     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5746     hardcode_libdir_flag_spec='-L$libdir'
5747     hardcode_shlibpath_var=no
5748     ;;
5749
5750   dgux*)
5751     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5752     hardcode_libdir_flag_spec='-L$libdir'
5753     hardcode_shlibpath_var=no
5754     ;;
5755
5756   sysv4*MP*)
5757     if test -d /usr/nec; then
5758       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5759       hardcode_shlibpath_var=no
5760       runpath_var=LD_RUN_PATH
5761       hardcode_runpath_var=yes
5762       ld_shlibs=yes
5763     fi
5764     ;;
5765
5766   sysv4.2uw2*)
5767     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5768     hardcode_direct=yes
5769     hardcode_minus_L=no
5770     hardcode_shlibpath_var=no
5771     hardcode_runpath_var=yes
5772     runpath_var=LD_RUN_PATH
5773     ;;
5774
5775   sysv5uw7* | unixware7*)
5776     no_undefined_flag='${wl}-z ${wl}text'
5777     if test "$GCC" = yes; then
5778       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5779     else
5780       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5781     fi
5782     runpath_var='LD_RUN_PATH'
5783     hardcode_shlibpath_var=no
5784     ;;
5785
5786   *)
5787     ld_shlibs=no
5788     ;;
5789   esac
5790 fi
5791 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5792 echo "${ECHO_T}$ld_shlibs" >&6
5793 test "$ld_shlibs" = no && can_build_shared=no
5794
5795 # Check hardcoding attributes.
5796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5798 hardcode_action=
5799 if test -n "$hardcode_libdir_flag_spec" || \
5800    test -n "$runpath_var"; then
5801
5802   # We can hardcode non-existant directories.
5803   if test "$hardcode_direct" != no &&
5804      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5805      # have to relink, otherwise we might link with an installed library
5806      # when we should be linking with a yet-to-be-installed one
5807      ## test "$hardcode_shlibpath_var" != no &&
5808      test "$hardcode_minus_L" != no; then
5809     # Linking always hardcodes the temporary library directory.
5810     hardcode_action=relink
5811   else
5812     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5813     hardcode_action=immediate
5814   fi
5815 else
5816   # We cannot hardcode anything, or else we can only hardcode existing
5817   # directories.
5818   hardcode_action=unsupported
5819 fi
5820 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5821 echo "${ECHO_T}$hardcode_action" >&6
5822
5823 striplib=
5824 old_striplib=
5825 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5826 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5827 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5828   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5829   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5830   echo "$as_me:$LINENO: result: yes" >&5
5831 echo "${ECHO_T}yes" >&6
5832 else
5833   echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5835 fi
5836
5837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5839
5840 # PORTME Fill in your ld.so characteristics
5841 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5843 library_names_spec=
5844 libname_spec='lib$name'
5845 soname_spec=
5846 postinstall_cmds=
5847 postuninstall_cmds=
5848 finish_cmds=
5849 finish_eval=
5850 shlibpath_var=
5851 shlibpath_overrides_runpath=unknown
5852 version_type=none
5853 dynamic_linker="$host_os ld.so"
5854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5856
5857 case $host_os in
5858 aix3*)
5859   version_type=linux
5860   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5861   shlibpath_var=LIBPATH
5862
5863   # AIX has no versioning support, so we append a major version to the name.
5864   soname_spec='${libname}${release}.so$major'
5865   ;;
5866
5867 aix4* | aix5*)
5868   version_type=linux
5869   if test "$host_cpu" = ia64; then
5870     # AIX 5 supports IA64
5871     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5872     shlibpath_var=LD_LIBRARY_PATH
5873   else
5874     # With GCC up to 2.95.x, collect2 would create an import file
5875     # for dependence libraries.  The import file would start with
5876     # the line `#! .'.  This would cause the generated library to
5877     # depend on `.', always an invalid library.  This was fixed in
5878     # development snapshots of GCC prior to 3.0.
5879     case $host_os in
5880       aix4 | aix4.[01] | aix4.[01].*)
5881         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5882              echo ' yes '
5883              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5884           :
5885         else
5886           can_build_shared=no
5887         fi
5888         ;;
5889     esac
5890     # AIX (on Power*) has no versioning support, so currently we can
5891     # not hardcode correct soname into executable. Probably we can
5892     # add versioning support to collect2, so additional links can
5893     # be useful in future.
5894     if test "$aix_use_runtimelinking" = yes; then
5895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5896       # instead of lib<name>.a to let people know that these are not
5897       # typical AIX shared libraries.
5898       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5899     else
5900       # We preserve .a as extension for shared libraries through AIX4.2
5901       # and later when we are not doing run time linking.
5902       library_names_spec='${libname}${release}.a $libname.a'
5903       soname_spec='${libname}${release}.so$major'
5904     fi
5905     shlibpath_var=LIBPATH
5906   fi
5907   ;;
5908
5909 amigaos*)
5910   library_names_spec='$libname.ixlibrary $libname.a'
5911   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5912   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'
5913   ;;
5914
5915 beos*)
5916   library_names_spec='${libname}.so'
5917   dynamic_linker="$host_os ld.so"
5918   shlibpath_var=LIBRARY_PATH
5919   ;;
5920
5921 bsdi4*)
5922   version_type=linux
5923   need_version=no
5924   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5925   soname_spec='${libname}${release}.so$major'
5926   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5927   shlibpath_var=LD_LIBRARY_PATH
5928   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5929   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5930   export_dynamic_flag_spec=-rdynamic
5931   # the default ld.so.conf also contains /usr/contrib/lib and
5932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5933   # libtool to hard-code these into programs
5934   ;;
5935
5936 cygwin* | mingw* | pw32*)
5937   version_type=windows
5938   need_version=no
5939   need_lib_prefix=no
5940   case $GCC,$host_os in
5941   yes,cygwin*)
5942     library_names_spec='$libname.dll.a'
5943     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5944     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5945       dldir=$destdir/`dirname \$dlpath`~
5946       test -d \$dldir || mkdir -p \$dldir~
5947       $install_prog .libs/$dlname \$dldir/$dlname'
5948     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5949       dlpath=$dir/\$dldll~
5950        $rm \$dlpath'
5951     ;;
5952   yes,mingw*)
5953     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5954     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5955     ;;
5956   yes,pw32*)
5957     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5958     ;;
5959   *)
5960     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5961     ;;
5962   esac
5963   dynamic_linker='Win32 ld.exe'
5964   # FIXME: first we should search . and the directory the executable is in
5965   shlibpath_var=PATH
5966   ;;
5967
5968 darwin* | rhapsody*)
5969   dynamic_linker="$host_os dyld"
5970   version_type=darwin
5971   need_lib_prefix=no
5972   need_version=no
5973   # FIXME: Relying on posixy $() will cause problems for
5974   #        cross-compilation, but unfortunately the echo tests do not
5975   #        yet detect zsh echo's removal of \ escapes.
5976   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)'
5977   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5978   shlibpath_overrides_runpath=yes
5979   shlibpath_var=DYLD_LIBRARY_PATH
5980   ;;
5981
5982 freebsd1*)
5983   dynamic_linker=no
5984   ;;
5985
5986 freebsd*)
5987   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5988   version_type=freebsd-$objformat
5989   case $version_type in
5990     freebsd-elf*)
5991       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5992       need_version=no
5993       need_lib_prefix=no
5994       ;;
5995     freebsd-*)
5996       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5997       need_version=yes
5998       ;;
5999   esac
6000   shlibpath_var=LD_LIBRARY_PATH
6001   case $host_os in
6002   freebsd2*)
6003     shlibpath_overrides_runpath=yes
6004     ;;
6005   *)
6006     shlibpath_overrides_runpath=no
6007     hardcode_into_libs=yes
6008     ;;
6009   esac
6010   ;;
6011
6012 gnu*)
6013   version_type=linux
6014   need_lib_prefix=no
6015   need_version=no
6016   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6017   soname_spec='${libname}${release}.so$major'
6018   shlibpath_var=LD_LIBRARY_PATH
6019   hardcode_into_libs=yes
6020   ;;
6021
6022 hpux9* | hpux10* | hpux11*)
6023   # Give a soname corresponding to the major version so that dld.sl refuses to
6024   # link against other versions.
6025   dynamic_linker="$host_os dld.sl"
6026   version_type=sunos
6027   need_lib_prefix=no
6028   need_version=no
6029   shlibpath_var=SHLIB_PATH
6030   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6031   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6032   soname_spec='${libname}${release}.sl$major'
6033   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6034   postinstall_cmds='chmod 555 $lib'
6035   ;;
6036
6037 irix5* | irix6*)
6038   version_type=irix
6039   need_lib_prefix=no
6040   need_version=no
6041   soname_spec='${libname}${release}.so$major'
6042   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6043   case $host_os in
6044   irix5*)
6045     libsuff= shlibsuff=
6046     ;;
6047   *)
6048     case $LD in # libtool.m4 will add one of these switches to LD
6049     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6050     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6051     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6052     *) libsuff= shlibsuff= libmagic=never-match;;
6053     esac
6054     ;;
6055   esac
6056   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6057   shlibpath_overrides_runpath=no
6058   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6059   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6060   ;;
6061
6062 # No shared lib support for Linux oldld, aout, or coff.
6063 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6064   dynamic_linker=no
6065   ;;
6066
6067 # This must be Linux ELF.
6068 linux-gnu*)
6069   version_type=linux
6070   need_lib_prefix=no
6071   need_version=no
6072   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6073   soname_spec='${libname}${release}.so$major'
6074   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6075   shlibpath_var=LD_LIBRARY_PATH
6076   shlibpath_overrides_runpath=no
6077   # This implies no fast_install, which is unacceptable.
6078   # Some rework will be needed to allow for fast_install
6079   # before this can be enabled.
6080   hardcode_into_libs=yes
6081
6082   # We used to test for /lib/ld.so.1 and disable shared libraries on
6083   # powerpc, because MkLinux only supported shared libraries with the
6084   # GNU dynamic linker.  Since this was broken with cross compilers,
6085   # most powerpc-linux boxes support dynamic linking these days and
6086   # people can always --disable-shared, the test was removed, and we
6087   # assume the GNU/Linux dynamic linker is in use.
6088   dynamic_linker='GNU/Linux ld.so'
6089   ;;
6090
6091 netbsd*)
6092   version_type=sunos
6093   need_lib_prefix=no
6094   need_version=no
6095   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6096     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6097     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6098     dynamic_linker='NetBSD (a.out) ld.so'
6099   else
6100     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6101     soname_spec='${libname}${release}.so$major'
6102     dynamic_linker='NetBSD ld.elf_so'
6103   fi
6104   shlibpath_var=LD_LIBRARY_PATH
6105   shlibpath_overrides_runpath=yes
6106   hardcode_into_libs=yes
6107   ;;
6108
6109 newsos6)
6110   version_type=linux
6111   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6112   shlibpath_var=LD_LIBRARY_PATH
6113   shlibpath_overrides_runpath=yes
6114   ;;
6115
6116 openbsd*)
6117   version_type=sunos
6118   need_lib_prefix=no
6119   need_version=no
6120   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6121     case "$host_os" in
6122     openbsd2.[89] | openbsd2.[89].*)
6123       shlibpath_overrides_runpath=no
6124       ;;
6125     *)
6126       shlibpath_overrides_runpath=yes
6127       ;;
6128     esac
6129   else
6130     shlibpath_overrides_runpath=yes
6131   fi
6132   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6134   shlibpath_var=LD_LIBRARY_PATH
6135   ;;
6136
6137 os2*)
6138   libname_spec='$name'
6139   need_lib_prefix=no
6140   library_names_spec='$libname.dll $libname.a'
6141   dynamic_linker='OS/2 ld.exe'
6142   shlibpath_var=LIBPATH
6143   ;;
6144
6145 osf3* | osf4* | osf5*)
6146   version_type=osf
6147   need_version=no
6148   soname_spec='${libname}${release}.so'
6149   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6150   shlibpath_var=LD_LIBRARY_PATH
6151   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6152   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6153   ;;
6154
6155 sco3.2v5*)
6156   version_type=osf
6157   soname_spec='${libname}${release}.so$major'
6158   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6159   shlibpath_var=LD_LIBRARY_PATH
6160   ;;
6161
6162 solaris*)
6163   version_type=linux
6164   need_lib_prefix=no
6165   need_version=no
6166   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6167   soname_spec='${libname}${release}.so$major'
6168   shlibpath_var=LD_LIBRARY_PATH
6169   shlibpath_overrides_runpath=yes
6170   hardcode_into_libs=yes
6171   # ldd complains unless libraries are executable
6172   postinstall_cmds='chmod +x $lib'
6173   ;;
6174
6175 sunos4*)
6176   version_type=sunos
6177   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6178   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6179   shlibpath_var=LD_LIBRARY_PATH
6180   shlibpath_overrides_runpath=yes
6181   if test "$with_gnu_ld" = yes; then
6182     need_lib_prefix=no
6183   fi
6184   need_version=yes
6185   ;;
6186
6187 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6188   version_type=linux
6189   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6190   soname_spec='${libname}${release}.so$major'
6191   shlibpath_var=LD_LIBRARY_PATH
6192   case $host_vendor in
6193     sni)
6194       shlibpath_overrides_runpath=no
6195       ;;
6196     motorola)
6197       need_lib_prefix=no
6198       need_version=no
6199       shlibpath_overrides_runpath=no
6200       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6201       ;;
6202   esac
6203   ;;
6204
6205 uts4*)
6206   version_type=linux
6207   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6208   soname_spec='${libname}${release}.so$major'
6209   shlibpath_var=LD_LIBRARY_PATH
6210   ;;
6211
6212 dgux*)
6213   version_type=linux
6214   need_lib_prefix=no
6215   need_version=no
6216   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6217   soname_spec='${libname}${release}.so$major'
6218   shlibpath_var=LD_LIBRARY_PATH
6219   ;;
6220
6221 sysv4*MP*)
6222   if test -d /usr/nec ;then
6223     version_type=linux
6224     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6225     soname_spec='$libname.so.$major'
6226     shlibpath_var=LD_LIBRARY_PATH
6227   fi
6228   ;;
6229
6230 *)
6231   dynamic_linker=no
6232   ;;
6233 esac
6234 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6235 echo "${ECHO_T}$dynamic_linker" >&6
6236 test "$dynamic_linker" = no && can_build_shared=no
6237
6238 # Report the final consequences.
6239 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6240 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6241 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6242 echo "${ECHO_T}$can_build_shared" >&6
6243
6244 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6245 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6246 test "$can_build_shared" = "no" && enable_shared=no
6247
6248 # On AIX, shared libraries and static libraries use the same namespace, and
6249 # are all built from PIC.
6250 case "$host_os" in
6251 aix3*)
6252   test "$enable_shared" = yes && enable_static=no
6253   if test -n "$RANLIB"; then
6254     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6255     postinstall_cmds='$RANLIB $lib'
6256   fi
6257   ;;
6258
6259 aix4*)
6260   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6261     test "$enable_shared" = yes && enable_static=no
6262   fi
6263   ;;
6264 esac
6265 echo "$as_me:$LINENO: result: $enable_shared" >&5
6266 echo "${ECHO_T}$enable_shared" >&6
6267
6268 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6269 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6270 # Make sure either enable_shared or enable_static is yes.
6271 test "$enable_shared" = yes || enable_static=yes
6272 echo "$as_me:$LINENO: result: $enable_static" >&5
6273 echo "${ECHO_T}$enable_static" >&6
6274
6275 if test "$hardcode_action" = relink; then
6276   # Fast installation is not supported
6277   enable_fast_install=no
6278 elif test "$shlibpath_overrides_runpath" = yes ||
6279      test "$enable_shared" = no; then
6280   # Fast installation is not necessary
6281   enable_fast_install=needless
6282 fi
6283
6284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6285 if test "$GCC" = yes; then
6286   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6287 fi
6288
6289 if test "x$enable_dlopen" != xyes; then
6290   enable_dlopen=unknown
6291   enable_dlopen_self=unknown
6292   enable_dlopen_self_static=unknown
6293 else
6294   lt_cv_dlopen=no
6295   lt_cv_dlopen_libs=
6296
6297   case $host_os in
6298   beos*)
6299     lt_cv_dlopen="load_add_on"
6300     lt_cv_dlopen_libs=
6301     lt_cv_dlopen_self=yes
6302     ;;
6303
6304   cygwin* | mingw* | pw32*)
6305     lt_cv_dlopen="LoadLibrary"
6306     lt_cv_dlopen_libs=
6307    ;;
6308
6309   *)
6310     echo "$as_me:$LINENO: checking for shl_load" >&5
6311 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6312 if test "${ac_cv_func_shl_load+set}" = set; then
6313   echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315   cat >conftest.$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 /* System header to define __stub macros and hopefully few prototypes,
6323     which can conflict with char shl_load (); below.
6324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6325     <limits.h> exists even on freestanding compilers.  */
6326 #ifdef __STDC__
6327 # include <limits.h>
6328 #else
6329 # include <assert.h>
6330 #endif
6331 /* Override any gcc2 internal prototype to avoid an error.  */
6332 #ifdef __cplusplus
6333 extern "C"
6334 {
6335 #endif
6336 /* We use char because int might match the return type of a gcc2
6337    builtin and then its argument prototype would still apply.  */
6338 char shl_load ();
6339 /* The GNU C library defines this for functions which it implements
6340     to always fail with ENOSYS.  Some functions are actually named
6341     something starting with __ and the normal name is an alias.  */
6342 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6343 choke me
6344 #else
6345 char (*f) () = shl_load;
6346 #endif
6347 #ifdef __cplusplus
6348 }
6349 #endif
6350
6351 int
6352 main ()
6353 {
6354 return f != shl_load;
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361   (eval $ac_link) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -s conftest$ac_exeext'
6366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; }; then
6371   ac_cv_func_shl_load=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 ac_cv_func_shl_load=no
6377 fi
6378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6379 fi
6380 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6381 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6382 if test $ac_cv_func_shl_load = yes; then
6383   lt_cv_dlopen="shl_load"
6384 else
6385   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6386 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6387 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   ac_check_lib_save_LIBS=$LIBS
6391 LIBS="-ldld  $LIBS"
6392 cat >conftest.$ac_ext <<_ACEOF
6393 #line $LINENO "configure"
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399
6400 /* Override any gcc2 internal prototype to avoid an error.  */
6401 #ifdef __cplusplus
6402 extern "C"
6403 #endif
6404 /* We use char because int might match the return type of a gcc2
6405    builtin and then its argument prototype would still apply.  */
6406 char shl_load ();
6407 int
6408 main ()
6409 {
6410 shl_load ();
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417   (eval $ac_link) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } &&
6421          { ac_try='test -s conftest$ac_exeext'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; }; then
6427   ac_cv_lib_dld_shl_load=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_cv_lib_dld_shl_load=no
6433 fi
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6435 LIBS=$ac_check_lib_save_LIBS
6436 fi
6437 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6438 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6439 if test $ac_cv_lib_dld_shl_load = yes; then
6440   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6441 else
6442   echo "$as_me:$LINENO: checking for dlopen" >&5
6443 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6444 if test "${ac_cv_func_dlopen+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   cat >conftest.$ac_ext <<_ACEOF
6448 #line $LINENO "configure"
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 /* System header to define __stub macros and hopefully few prototypes,
6455     which can conflict with char dlopen (); below.
6456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6457     <limits.h> exists even on freestanding compilers.  */
6458 #ifdef __STDC__
6459 # include <limits.h>
6460 #else
6461 # include <assert.h>
6462 #endif
6463 /* Override any gcc2 internal prototype to avoid an error.  */
6464 #ifdef __cplusplus
6465 extern "C"
6466 {
6467 #endif
6468 /* We use char because int might match the return type of a gcc2
6469    builtin and then its argument prototype would still apply.  */
6470 char dlopen ();
6471 /* The GNU C library defines this for functions which it implements
6472     to always fail with ENOSYS.  Some functions are actually named
6473     something starting with __ and the normal name is an alias.  */
6474 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6475 choke me
6476 #else
6477 char (*f) () = dlopen;
6478 #endif
6479 #ifdef __cplusplus
6480 }
6481 #endif
6482
6483 int
6484 main ()
6485 {
6486 return f != dlopen;
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493   (eval $ac_link) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } &&
6497          { ac_try='test -s conftest$ac_exeext'
6498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; }; then
6503   ac_cv_func_dlopen=yes
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508 ac_cv_func_dlopen=no
6509 fi
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 fi
6512 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6513 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6514 if test $ac_cv_func_dlopen = yes; then
6515   lt_cv_dlopen="dlopen"
6516 else
6517   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6518 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   ac_check_lib_save_LIBS=$LIBS
6523 LIBS="-ldl  $LIBS"
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531
6532 /* Override any gcc2 internal prototype to avoid an error.  */
6533 #ifdef __cplusplus
6534 extern "C"
6535 #endif
6536 /* We use char because int might match the return type of a gcc2
6537    builtin and then its argument prototype would still apply.  */
6538 char dlopen ();
6539 int
6540 main ()
6541 {
6542 dlopen ();
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549   (eval $ac_link) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); } &&
6553          { ac_try='test -s conftest$ac_exeext'
6554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555   (eval $ac_try) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }; }; then
6559   ac_cv_lib_dl_dlopen=yes
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_cv_lib_dl_dlopen=no
6565 fi
6566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6568 fi
6569 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6570 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6571 if test $ac_cv_lib_dl_dlopen = yes; then
6572   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6573 else
6574   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6575 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6576 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   ac_check_lib_save_LIBS=$LIBS
6580 LIBS="-lsvld  $LIBS"
6581 cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588
6589 /* Override any gcc2 internal prototype to avoid an error.  */
6590 #ifdef __cplusplus
6591 extern "C"
6592 #endif
6593 /* We use char because int might match the return type of a gcc2
6594    builtin and then its argument prototype would still apply.  */
6595 char dlopen ();
6596 int
6597 main ()
6598 {
6599 dlopen ();
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606   (eval $ac_link) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); } &&
6610          { ac_try='test -s conftest$ac_exeext'
6611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612   (eval $ac_try) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); }; }; then
6616   ac_cv_lib_svld_dlopen=yes
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 ac_cv_lib_svld_dlopen=no
6622 fi
6623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6624 LIBS=$ac_check_lib_save_LIBS
6625 fi
6626 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6627 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6628 if test $ac_cv_lib_svld_dlopen = yes; then
6629   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6630 else
6631   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6632 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   ac_check_lib_save_LIBS=$LIBS
6637 LIBS="-ldld  $LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645
6646 /* Override any gcc2 internal prototype to avoid an error.  */
6647 #ifdef __cplusplus
6648 extern "C"
6649 #endif
6650 /* We use char because int might match the return type of a gcc2
6651    builtin and then its argument prototype would still apply.  */
6652 char dld_link ();
6653 int
6654 main ()
6655 {
6656 dld_link ();
6657   ;
6658   return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext conftest$ac_exeext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6663   (eval $ac_link) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); } &&
6667          { ac_try='test -s conftest$ac_exeext'
6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669   (eval $ac_try) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); }; }; then
6673   ac_cv_lib_dld_dld_link=yes
6674 else
6675   echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6677
6678 ac_cv_lib_dld_dld_link=no
6679 fi
6680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_check_lib_save_LIBS
6682 fi
6683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6684 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6685 if test $ac_cv_lib_dld_dld_link = yes; then
6686   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6687 fi
6688
6689
6690 fi
6691
6692
6693 fi
6694
6695
6696 fi
6697
6698
6699 fi
6700
6701
6702 fi
6703
6704     ;;
6705   esac
6706
6707   if test "x$lt_cv_dlopen" != xno; then
6708     enable_dlopen=yes
6709   else
6710     enable_dlopen=no
6711   fi
6712
6713   case $lt_cv_dlopen in
6714   dlopen)
6715     save_CPPFLAGS="$CPPFLAGS"
6716         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6717
6718     save_LDFLAGS="$LDFLAGS"
6719     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6720
6721     save_LIBS="$LIBS"
6722     LIBS="$lt_cv_dlopen_libs $LIBS"
6723
6724     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6725 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6726 if test "${lt_cv_dlopen_self+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729           if test "$cross_compiling" = yes; then :
6730   lt_cv_dlopen_self=cross
6731 else
6732     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6733   lt_status=$lt_dlunknown
6734   cat > conftest.$ac_ext <<EOF
6735 #line 6735 "configure"
6736 #include "confdefs.h"
6737
6738 #if HAVE_DLFCN_H
6739 #include <dlfcn.h>
6740 #endif
6741
6742 #include <stdio.h>
6743
6744 #ifdef RTLD_GLOBAL
6745 #  define LT_DLGLOBAL           RTLD_GLOBAL
6746 #else
6747 #  ifdef DL_GLOBAL
6748 #    define LT_DLGLOBAL         DL_GLOBAL
6749 #  else
6750 #    define LT_DLGLOBAL         0
6751 #  endif
6752 #endif
6753
6754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6755    find out it does not work in some platform. */
6756 #ifndef LT_DLLAZY_OR_NOW
6757 #  ifdef RTLD_LAZY
6758 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6759 #  else
6760 #    ifdef DL_LAZY
6761 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6762 #    else
6763 #      ifdef RTLD_NOW
6764 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6765 #      else
6766 #        ifdef DL_NOW
6767 #          define LT_DLLAZY_OR_NOW      DL_NOW
6768 #        else
6769 #          define LT_DLLAZY_OR_NOW      0
6770 #        endif
6771 #      endif
6772 #    endif
6773 #  endif
6774 #endif
6775
6776 #ifdef __cplusplus
6777 extern "C" void exit (int);
6778 #endif
6779
6780 void fnord() { int i=42;}
6781 int main ()
6782 {
6783   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6784   int status = $lt_dlunknown;
6785
6786   if (self)
6787     {
6788       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6789       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6790       /* dlclose (self); */
6791     }
6792
6793     exit (status);
6794 }
6795 EOF
6796   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797   (eval $ac_link) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6801     (./conftest; exit; ) 2>/dev/null
6802     lt_status=$?
6803     case x$lt_status in
6804       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6805       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6806       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6807     esac
6808   else :
6809     # compilation failed
6810     lt_cv_dlopen_self=no
6811   fi
6812 fi
6813 rm -fr conftest*
6814
6815
6816 fi
6817 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6818 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6819
6820     if test "x$lt_cv_dlopen_self" = xyes; then
6821       LDFLAGS="$LDFLAGS $link_static_flag"
6822       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6823 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6824 if test "${lt_cv_dlopen_self_static+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827           if test "$cross_compiling" = yes; then :
6828   lt_cv_dlopen_self_static=cross
6829 else
6830     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6831   lt_status=$lt_dlunknown
6832   cat > conftest.$ac_ext <<EOF
6833 #line 6833 "configure"
6834 #include "confdefs.h"
6835
6836 #if HAVE_DLFCN_H
6837 #include <dlfcn.h>
6838 #endif
6839
6840 #include <stdio.h>
6841
6842 #ifdef RTLD_GLOBAL
6843 #  define LT_DLGLOBAL           RTLD_GLOBAL
6844 #else
6845 #  ifdef DL_GLOBAL
6846 #    define LT_DLGLOBAL         DL_GLOBAL
6847 #  else
6848 #    define LT_DLGLOBAL         0
6849 #  endif
6850 #endif
6851
6852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6853    find out it does not work in some platform. */
6854 #ifndef LT_DLLAZY_OR_NOW
6855 #  ifdef RTLD_LAZY
6856 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6857 #  else
6858 #    ifdef DL_LAZY
6859 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6860 #    else
6861 #      ifdef RTLD_NOW
6862 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6863 #      else
6864 #        ifdef DL_NOW
6865 #          define LT_DLLAZY_OR_NOW      DL_NOW
6866 #        else
6867 #          define LT_DLLAZY_OR_NOW      0
6868 #        endif
6869 #      endif
6870 #    endif
6871 #  endif
6872 #endif
6873
6874 #ifdef __cplusplus
6875 extern "C" void exit (int);
6876 #endif
6877
6878 void fnord() { int i=42;}
6879 int main ()
6880 {
6881   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6882   int status = $lt_dlunknown;
6883
6884   if (self)
6885     {
6886       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6887       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6888       /* dlclose (self); */
6889     }
6890
6891     exit (status);
6892 }
6893 EOF
6894   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895   (eval $ac_link) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6899     (./conftest; exit; ) 2>/dev/null
6900     lt_status=$?
6901     case x$lt_status in
6902       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6903       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6904       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6905     esac
6906   else :
6907     # compilation failed
6908     lt_cv_dlopen_self_static=no
6909   fi
6910 fi
6911 rm -fr conftest*
6912
6913
6914 fi
6915 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6916 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6917     fi
6918
6919     CPPFLAGS="$save_CPPFLAGS"
6920     LDFLAGS="$save_LDFLAGS"
6921     LIBS="$save_LIBS"
6922     ;;
6923   esac
6924
6925   case $lt_cv_dlopen_self in
6926   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6927   *) enable_dlopen_self=unknown ;;
6928   esac
6929
6930   case $lt_cv_dlopen_self_static in
6931   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6932   *) enable_dlopen_self_static=unknown ;;
6933   esac
6934 fi
6935
6936
6937 if test "$enable_shared" = yes && test "$GCC" = yes; then
6938   case $archive_cmds in
6939   *'~'*)
6940     # FIXME: we may have to deal with multi-command sequences.
6941     ;;
6942   '$CC '*)
6943     # Test whether the compiler implicitly links with -lc since on some
6944     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6945     # to ld, don't add -lc before -lgcc.
6946     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6947 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6948     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   $rm conftest*
6952     echo 'static int dummy;' > conftest.$ac_ext
6953
6954     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955   (eval $ac_compile) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; then
6959       soname=conftest
6960       lib=conftest
6961       libobjs=conftest.$ac_objext
6962       deplibs=
6963       wl=$lt_cv_prog_cc_wl
6964       compiler_flags=-v
6965       linker_flags=-v
6966       verstring=
6967       output_objdir=.
6968       libname=conftest
6969       save_allow_undefined_flag=$allow_undefined_flag
6970       allow_undefined_flag=
6971       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6972   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); }
6976       then
6977         lt_cv_archive_cmds_need_lc=no
6978       else
6979         lt_cv_archive_cmds_need_lc=yes
6980       fi
6981       allow_undefined_flag=$save_allow_undefined_flag
6982     else
6983       cat conftest.err 1>&5
6984     fi
6985 fi
6986
6987     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6988 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6989     ;;
6990   esac
6991 fi
6992 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6993
6994 # The second clause should only fire when bootstrapping the
6995 # libtool distribution, otherwise you forgot to ship ltmain.sh
6996 # with your package, and you will get complaints that there are
6997 # no rules to generate ltmain.sh.
6998 if test -f "$ltmain"; then
6999   :
7000 else
7001   # If there is no Makefile yet, we rely on a make rule to execute
7002   # `config.status --recheck' to rerun these tests and create the
7003   # libtool script then.
7004   test -f Makefile && make "$ltmain"
7005 fi
7006
7007 if test -f "$ltmain"; then
7008   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7009   $rm -f "${ofile}T"
7010
7011   echo creating $ofile
7012
7013   # Now quote all the things that may contain metacharacters while being
7014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7015   # variables and quote the copies for generation of the libtool script.
7016   for var in echo old_CC old_CFLAGS \
7017     AR AR_FLAGS CC LD LN_S NM SHELL \
7018     reload_flag reload_cmds wl \
7019     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7020     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7021     library_names_spec soname_spec \
7022     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7023     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7024     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7025     old_striplib striplib file_magic_cmd export_symbols_cmds \
7026     deplibs_check_method allow_undefined_flag no_undefined_flag \
7027     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7028     global_symbol_to_c_name_address \
7029     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7030     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7031     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7032
7033     case $var in
7034     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7035     old_postinstall_cmds | old_postuninstall_cmds | \
7036     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7037     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7038     postinstall_cmds | postuninstall_cmds | \
7039     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7040       # Double-quote double-evaled strings.
7041       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7042       ;;
7043     *)
7044       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7045       ;;
7046     esac
7047   done
7048
7049   cat <<__EOF__ > "${ofile}T"
7050 #! $SHELL
7051
7052 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7053 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7054 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7055 #
7056 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7057 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7058 #
7059 # This program is free software; you can redistribute it and/or modify
7060 # it under the terms of the GNU General Public License as published by
7061 # the Free Software Foundation; either version 2 of the License, or
7062 # (at your option) any later version.
7063 #
7064 # This program is distributed in the hope that it will be useful, but
7065 # WITHOUT ANY WARRANTY; without even the implied warranty of
7066 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7067 # General Public License for more details.
7068 #
7069 # You should have received a copy of the GNU General Public License
7070 # along with this program; if not, write to the Free Software
7071 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7072 #
7073 # As a special exception to the GNU General Public License, if you
7074 # distribute this file as part of a program that contains a
7075 # configuration script generated by Autoconf, you may include it under
7076 # the same distribution terms that you use for the rest of that program.
7077
7078 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7079 Xsed="sed -e s/^X//"
7080
7081 # The HP-UX ksh and POSIX shell print the target directory to stdout
7082 # if CDPATH is set.
7083 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7084
7085 # ### BEGIN LIBTOOL CONFIG
7086
7087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7088
7089 # Shell to use when invoking shell scripts.
7090 SHELL=$lt_SHELL
7091
7092 # Whether or not to build shared libraries.
7093 build_libtool_libs=$enable_shared
7094
7095 # Whether or not to build static libraries.
7096 build_old_libs=$enable_static
7097
7098 # Whether or not to add -lc for building shared libraries.
7099 build_libtool_need_lc=$need_lc
7100
7101 # Whether or not to optimize for fast installation.
7102 fast_install=$enable_fast_install
7103
7104 # The host system.
7105 host_alias=$host_alias
7106 host=$host
7107
7108 # An echo program that does not interpret backslashes.
7109 echo=$lt_echo
7110
7111 # The archiver.
7112 AR=$lt_AR
7113 AR_FLAGS=$lt_AR_FLAGS
7114
7115 # The default C compiler.
7116 CC=$lt_CC
7117
7118 # Is the compiler the GNU C compiler?
7119 with_gcc=$GCC
7120
7121 # The linker used to build libraries.
7122 LD=$lt_LD
7123
7124 # Whether we need hard or soft links.
7125 LN_S=$lt_LN_S
7126
7127 # A BSD-compatible nm program.
7128 NM=$lt_NM
7129
7130 # A symbol stripping program
7131 STRIP=$STRIP
7132
7133 # Used to examine libraries when file_magic_cmd begins "file"
7134 MAGIC_CMD=$MAGIC_CMD
7135
7136 # Used on cygwin: DLL creation program.
7137 DLLTOOL="$DLLTOOL"
7138
7139 # Used on cygwin: object dumper.
7140 OBJDUMP="$OBJDUMP"
7141
7142 # Used on cygwin: assembler.
7143 AS="$AS"
7144
7145 # The name of the directory that contains temporary libtool files.
7146 objdir=$objdir
7147
7148 # How to create reloadable object files.
7149 reload_flag=$lt_reload_flag
7150 reload_cmds=$lt_reload_cmds
7151
7152 # How to pass a linker flag through the compiler.
7153 wl=$lt_wl
7154
7155 # Object file suffix (normally "o").
7156 objext="$ac_objext"
7157
7158 # Old archive suffix (normally "a").
7159 libext="$libext"
7160
7161 # Executable file suffix (normally "").
7162 exeext="$exeext"
7163
7164 # Additional compiler flags for building library objects.
7165 pic_flag=$lt_pic_flag
7166 pic_mode=$pic_mode
7167
7168 # Does compiler simultaneously support -c and -o options?
7169 compiler_c_o=$lt_compiler_c_o
7170
7171 # Can we write directly to a .lo ?
7172 compiler_o_lo=$lt_compiler_o_lo
7173
7174 # Must we lock files when doing compilation ?
7175 need_locks=$lt_need_locks
7176
7177 # Do we need the lib prefix for modules?
7178 need_lib_prefix=$need_lib_prefix
7179
7180 # Do we need a version for libraries?
7181 need_version=$need_version
7182
7183 # Whether dlopen is supported.
7184 dlopen_support=$enable_dlopen
7185
7186 # Whether dlopen of programs is supported.
7187 dlopen_self=$enable_dlopen_self
7188
7189 # Whether dlopen of statically linked programs is supported.
7190 dlopen_self_static=$enable_dlopen_self_static
7191
7192 # Compiler flag to prevent dynamic linking.
7193 link_static_flag=$lt_link_static_flag
7194
7195 # Compiler flag to turn off builtin functions.
7196 no_builtin_flag=$lt_no_builtin_flag
7197
7198 # Compiler flag to allow reflexive dlopens.
7199 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7200
7201 # Compiler flag to generate shared objects directly from archives.
7202 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7203
7204 # Compiler flag to generate thread-safe objects.
7205 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7206
7207 # Library versioning type.
7208 version_type=$version_type
7209
7210 # Format of library name prefix.
7211 libname_spec=$lt_libname_spec
7212
7213 # List of archive names.  First name is the real one, the rest are links.
7214 # The last name is the one that the linker finds with -lNAME.
7215 library_names_spec=$lt_library_names_spec
7216
7217 # The coded name of the library, if different from the real name.
7218 soname_spec=$lt_soname_spec
7219
7220 # Commands used to build and install an old-style archive.
7221 RANLIB=$lt_RANLIB
7222 old_archive_cmds=$lt_old_archive_cmds
7223 old_postinstall_cmds=$lt_old_postinstall_cmds
7224 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7225
7226 # Create an old-style archive from a shared archive.
7227 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7228
7229 # Create a temporary old-style archive to link instead of a shared archive.
7230 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7231
7232 # Commands used to build and install a shared archive.
7233 archive_cmds=$lt_archive_cmds
7234 archive_expsym_cmds=$lt_archive_expsym_cmds
7235 postinstall_cmds=$lt_postinstall_cmds
7236 postuninstall_cmds=$lt_postuninstall_cmds
7237
7238 # Commands to strip libraries.
7239 old_striplib=$lt_old_striplib
7240 striplib=$lt_striplib
7241
7242 # Method to check whether dependent libraries are shared objects.
7243 deplibs_check_method=$lt_deplibs_check_method
7244
7245 # Command to use when deplibs_check_method == file_magic.
7246 file_magic_cmd=$lt_file_magic_cmd
7247
7248 # Flag that allows shared libraries with undefined symbols to be built.
7249 allow_undefined_flag=$lt_allow_undefined_flag
7250
7251 # Flag that forces no undefined symbols.
7252 no_undefined_flag=$lt_no_undefined_flag
7253
7254 # Commands used to finish a libtool library installation in a directory.
7255 finish_cmds=$lt_finish_cmds
7256
7257 # Same as above, but a single script fragment to be evaled but not shown.
7258 finish_eval=$lt_finish_eval
7259
7260 # Take the output of nm and produce a listing of raw symbols and C names.
7261 global_symbol_pipe=$lt_global_symbol_pipe
7262
7263 # Transform the output of nm in a proper C declaration
7264 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7265
7266 # Transform the output of nm in a C name address pair
7267 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7268
7269 # This is the shared library runtime path variable.
7270 runpath_var=$runpath_var
7271
7272 # This is the shared library path variable.
7273 shlibpath_var=$shlibpath_var
7274
7275 # Is shlibpath searched before the hard-coded library search path?
7276 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7277
7278 # How to hardcode a shared library path into an executable.
7279 hardcode_action=$hardcode_action
7280
7281 # Whether we should hardcode library paths into libraries.
7282 hardcode_into_libs=$hardcode_into_libs
7283
7284 # Flag to hardcode \$libdir into a binary during linking.
7285 # This must work even if \$libdir does not exist.
7286 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7287
7288 # Whether we need a single -rpath flag with a separated argument.
7289 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7290
7291 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7292 # resulting binary.
7293 hardcode_direct=$hardcode_direct
7294
7295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7296 # resulting binary.
7297 hardcode_minus_L=$hardcode_minus_L
7298
7299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7300 # the resulting binary.
7301 hardcode_shlibpath_var=$hardcode_shlibpath_var
7302
7303 # Variables whose values should be saved in libtool wrapper scripts and
7304 # restored at relink time.
7305 variables_saved_for_relink="$variables_saved_for_relink"
7306
7307 # Whether libtool must link a program against all its dependency libraries.
7308 link_all_deplibs=$link_all_deplibs
7309
7310 # Compile-time system search path for libraries
7311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7312
7313 # Run-time system search path for libraries
7314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7315
7316 # Fix the shell variable \$srcfile for the compiler.
7317 fix_srcfile_path="$fix_srcfile_path"
7318
7319 # Set to yes if exported symbols are required.
7320 always_export_symbols=$always_export_symbols
7321
7322 # The commands to list exported symbols.
7323 export_symbols_cmds=$lt_export_symbols_cmds
7324
7325 # The commands to extract the exported symbol list from a shared archive.
7326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7327
7328 # Symbols that should not be listed in the preloaded symbols.
7329 exclude_expsyms=$lt_exclude_expsyms
7330
7331 # Symbols that must always be exported.
7332 include_expsyms=$lt_include_expsyms
7333
7334 # ### END LIBTOOL CONFIG
7335
7336 __EOF__
7337
7338   case $host_os in
7339   aix3*)
7340     cat <<\EOF >> "${ofile}T"
7341
7342 # AIX sometimes has problems with the GCC collect2 program.  For some
7343 # reason, if we set the COLLECT_NAMES environment variable, the problems
7344 # vanish in a puff of smoke.
7345 if test "X${COLLECT_NAMES+set}" != Xset; then
7346   COLLECT_NAMES=
7347   export COLLECT_NAMES
7348 fi
7349 EOF
7350     ;;
7351   esac
7352
7353   case $host_os in
7354   cygwin* | mingw* | pw32* | os2*)
7355     cat <<'EOF' >> "${ofile}T"
7356       # This is a source program that is used to create dlls on Windows
7357       # Don't remove nor modify the starting and closing comments
7358 # /* ltdll.c starts here */
7359 # #define WIN32_LEAN_AND_MEAN
7360 # #include <windows.h>
7361 # #undef WIN32_LEAN_AND_MEAN
7362 # #include <stdio.h>
7363 #
7364 # #ifndef __CYGWIN__
7365 # #  ifdef __CYGWIN32__
7366 # #    define __CYGWIN__ __CYGWIN32__
7367 # #  endif
7368 # #endif
7369 #
7370 # #ifdef __cplusplus
7371 # extern "C" {
7372 # #endif
7373 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7374 # #ifdef __cplusplus
7375 # }
7376 # #endif
7377 #
7378 # #ifdef __CYGWIN__
7379 # #include <cygwin/cygwin_dll.h>
7380 # DECLARE_CYGWIN_DLL( DllMain );
7381 # #endif
7382 # HINSTANCE __hDllInstance_base;
7383 #
7384 # BOOL APIENTRY
7385 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7386 # {
7387 #   __hDllInstance_base = hInst;
7388 #   return TRUE;
7389 # }
7390 # /* ltdll.c ends here */
7391         # This is a source program that is used to create import libraries
7392         # on Windows for dlls which lack them. Don't remove nor modify the
7393         # starting and closing comments
7394 # /* impgen.c starts here */
7395 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7396 #
7397 #  This file is part of GNU libtool.
7398 #
7399 #  This program is free software; you can redistribute it and/or modify
7400 #  it under the terms of the GNU General Public License as published by
7401 #  the Free Software Foundation; either version 2 of the License, or
7402 #  (at your option) any later version.
7403 #
7404 #  This program is distributed in the hope that it will be useful,
7405 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7406 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7407 #  GNU General Public License for more details.
7408 #
7409 #  You should have received a copy of the GNU General Public License
7410 #  along with this program; if not, write to the Free Software
7411 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7412 #  */
7413 #
7414 # #include <stdio.h>            /* for printf() */
7415 # #include <unistd.h>           /* for open(), lseek(), read() */
7416 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7417 # #include <string.h>           /* for strdup() */
7418 #
7419 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7420 # #ifndef O_BINARY
7421 # #define O_BINARY 0
7422 # #endif
7423 #
7424 # static unsigned int
7425 # pe_get16 (fd, offset)
7426 #      int fd;
7427 #      int offset;
7428 # {
7429 #   unsigned char b[2];
7430 #   lseek (fd, offset, SEEK_SET);
7431 #   read (fd, b, 2);
7432 #   return b[0] + (b[1]<<8);
7433 # }
7434 #
7435 # static unsigned int
7436 # pe_get32 (fd, offset)
7437 #     int fd;
7438 #     int offset;
7439 # {
7440 #   unsigned char b[4];
7441 #   lseek (fd, offset, SEEK_SET);
7442 #   read (fd, b, 4);
7443 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7444 # }
7445 #
7446 # static unsigned int
7447 # pe_as32 (ptr)
7448 #      void *ptr;
7449 # {
7450 #   unsigned char *b = ptr;
7451 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7452 # }
7453 #
7454 # int
7455 # main (argc, argv)
7456 #     int argc;
7457 #     char *argv[];
7458 # {
7459 #     int dll;
7460 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7461 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7462 #     unsigned long name_rvas, nexp;
7463 #     unsigned char *expdata, *erva;
7464 #     char *filename, *dll_name;
7465 #
7466 #     filename = argv[1];
7467 #
7468 #     dll = open(filename, O_RDONLY|O_BINARY);
7469 #     if (dll < 1)
7470 #       return 1;
7471 #
7472 #     dll_name = filename;
7473 #
7474 #     for (i=0; filename[i]; i++)
7475 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7476 #           dll_name = filename + i +1;
7477 #
7478 #     pe_header_offset = pe_get32 (dll, 0x3c);
7479 #     opthdr_ofs = pe_header_offset + 4 + 20;
7480 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7481 #
7482 #     if (num_entries < 1) /* no exports */
7483 #       return 1;
7484 #
7485 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7486 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7487 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7488 #     secptr = (pe_header_offset + 4 + 20 +
7489 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7490 #
7491 #     expptr = 0;
7492 #     for (i = 0; i < nsections; i++)
7493 #     {
7494 #       char sname[8];
7495 #       unsigned long secptr1 = secptr + 40 * i;
7496 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7497 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7498 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7499 #       lseek(dll, secptr1, SEEK_SET);
7500 #       read(dll, sname, 8);
7501 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7502 #       {
7503 #           expptr = fptr + (export_rva - vaddr);
7504 #           if (export_rva + export_size > vaddr + vsize)
7505 #               export_size = vsize - (export_rva - vaddr);
7506 #           break;
7507 #       }
7508 #     }
7509 #
7510 #     expdata = (unsigned char*)malloc(export_size);
7511 #     lseek (dll, expptr, SEEK_SET);
7512 #     read (dll, expdata, export_size);
7513 #     erva = expdata - export_rva;
7514 #
7515 #     nexp = pe_as32 (expdata+24);
7516 #     name_rvas = pe_as32 (expdata+32);
7517 #
7518 #     printf ("EXPORTS\n");
7519 #     for (i = 0; i<nexp; i++)
7520 #     {
7521 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7522 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7523 #     }
7524 #
7525 #     return 0;
7526 # }
7527 # /* impgen.c ends here */
7528
7529 EOF
7530     ;;
7531   esac
7532
7533   # We use sed instead of cat because bash on DJGPP gets confused if
7534   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7535   # text mode, it properly converts lines to CR/LF.  This bash problem
7536   # is reportedly fixed, but why not run on old versions too?
7537   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7538
7539   mv -f "${ofile}T" "$ofile" || \
7540     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7541   chmod +x "$ofile"
7542 fi
7543
7544
7545
7546
7547
7548 # This can be used to rebuild libtool when needed
7549 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7550
7551 # Always use our own libtool.
7552 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7553
7554 # Prevent multiple expansion
7555
7556
7557
7558 ac_ext=cc
7559 ac_cpp='$CXXCPP $CPPFLAGS'
7560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7563
7564 ac_ext=cc
7565 ac_cpp='$CXXCPP $CPPFLAGS'
7566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7569 if test -n "$ac_tool_prefix"; then
7570   for ac_prog in $CCC $EXTRA_CXX
7571   do
7572     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_CXX+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   if test -n "$CXX"; then
7580   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587   for ac_exec_ext in '' $ac_executable_extensions; do
7588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594 done
7595
7596 fi
7597 fi
7598 CXX=$ac_cv_prog_CXX
7599 if test -n "$CXX"; then
7600   echo "$as_me:$LINENO: result: $CXX" >&5
7601 echo "${ECHO_T}$CXX" >&6
7602 else
7603   echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7605 fi
7606
7607     test -n "$CXX" && break
7608   done
7609 fi
7610 if test -z "$CXX"; then
7611   ac_ct_CXX=$CXX
7612   for ac_prog in $CCC $EXTRA_CXX
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   if test -n "$ac_ct_CXX"; then
7622   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627   IFS=$as_save_IFS
7628   test -z "$as_dir" && as_dir=.
7629   for ac_exec_ext in '' $ac_executable_extensions; do
7630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631     ac_cv_prog_ac_ct_CXX="$ac_prog"
7632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633     break 2
7634   fi
7635 done
7636 done
7637
7638 fi
7639 fi
7640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7641 if test -n "$ac_ct_CXX"; then
7642   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7643 echo "${ECHO_T}$ac_ct_CXX" >&6
7644 else
7645   echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6
7647 fi
7648
7649   test -n "$ac_ct_CXX" && break
7650 done
7651 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7652
7653   CXX=$ac_ct_CXX
7654 fi
7655
7656
7657 # Provide some information about the compiler.
7658 echo "$as_me:$LINENO:" \
7659      "checking for C++ compiler version" >&5
7660 ac_compiler=`set X $ac_compile; echo $2`
7661 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7662   (eval $ac_compiler --version </dev/null >&5) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }
7666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7667   (eval $ac_compiler -v </dev/null >&5) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }
7671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7672   (eval $ac_compiler -V </dev/null >&5) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }
7676
7677 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7678 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   cat >conftest.$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689
7690 int
7691 main ()
7692 {
7693 #ifndef __GNUC__
7694        choke me
7695 #endif
7696
7697   ;
7698   return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703   (eval $ac_compile) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); } &&
7707          { ac_try='test -s conftest.$ac_objext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   ac_compiler_gnu=yes
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_compiler_gnu=no
7719 fi
7720 rm -f conftest.$ac_objext conftest.$ac_ext
7721 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7722
7723 fi
7724 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7725 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7726 GXX=`test $ac_compiler_gnu = yes && echo yes`
7727 ac_test_CXXFLAGS=${CXXFLAGS+set}
7728 ac_save_CXXFLAGS=$CXXFLAGS
7729 CXXFLAGS="-g"
7730 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7731 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7732 if test "${ac_cv_prog_cxx_g+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   cat >conftest.$ac_ext <<_ACEOF
7736 #line $LINENO "configure"
7737 /* confdefs.h.  */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h.  */
7742
7743 int
7744 main ()
7745 {
7746
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7753   (eval $ac_compile) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } &&
7757          { ac_try='test -s conftest.$ac_objext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_cv_prog_cxx_g=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_cv_prog_cxx_g=no
7769 fi
7770 rm -f conftest.$ac_objext conftest.$ac_ext
7771 fi
7772 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7773 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7774 if test "$ac_test_CXXFLAGS" = set; then
7775   CXXFLAGS=$ac_save_CXXFLAGS
7776 elif test $ac_cv_prog_cxx_g = yes; then
7777   if test "$GXX" = yes; then
7778     CXXFLAGS="-g -O2"
7779   else
7780     CXXFLAGS="-g"
7781   fi
7782 else
7783   if test "$GXX" = yes; then
7784     CXXFLAGS="-O2"
7785   else
7786     CXXFLAGS=
7787   fi
7788 fi
7789 for ac_declaration in \
7790    ''\
7791    '#include <stdlib.h>' \
7792    'extern "C" void std::exit (int) throw (); using std::exit;' \
7793    'extern "C" void std::exit (int); using std::exit;' \
7794    'extern "C" void exit (int) throw ();' \
7795    'extern "C" void exit (int);' \
7796    'void exit (int);'
7797 do
7798   cat >conftest.$ac_ext <<_ACEOF
7799 #line $LINENO "configure"
7800 /* confdefs.h.  */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h.  */
7805 #include <stdlib.h>
7806 $ac_declaration
7807 int
7808 main ()
7809 {
7810 exit (42);
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7817   (eval $ac_compile) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } &&
7821          { ac_try='test -s conftest.$ac_objext'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; }; then
7827   :
7828 else
7829   echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 continue
7833 fi
7834 rm -f conftest.$ac_objext conftest.$ac_ext
7835   cat >conftest.$ac_ext <<_ACEOF
7836 #line $LINENO "configure"
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842 $ac_declaration
7843 int
7844 main ()
7845 {
7846 exit (42);
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7853   (eval $ac_compile) 2>&5
7854   ac_status=$?
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } &&
7857          { ac_try='test -s conftest.$ac_objext'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   break
7864 else
7865   echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 fi
7869 rm -f conftest.$ac_objext conftest.$ac_ext
7870 done
7871 rm -f conftest*
7872 if test -n "$ac_declaration"; then
7873   echo '#ifdef __cplusplus' >>confdefs.h
7874   echo $ac_declaration      >>confdefs.h
7875   echo '#endif'             >>confdefs.h
7876 fi
7877
7878 ac_ext=cc
7879 ac_cpp='$CXXCPP $CPPFLAGS'
7880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7883
7884 depcc="$CXX"  am_compiler_list=
7885
7886 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7887 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7888 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7892   # We make a subdir and do the tests there.  Otherwise we can end up
7893   # making bogus files that we don't know about and never remove.  For
7894   # instance it was reported that on HP-UX the gcc test will end up
7895   # making a dummy file named `D' -- because `-MD' means `put the output
7896   # in D'.
7897   mkdir conftest.dir
7898   # Copy depcomp to subdir because otherwise we won't find it if we're
7899   # using a relative directory.
7900   cp "$am_depcomp" conftest.dir
7901   cd conftest.dir
7902
7903   am_cv_CXX_dependencies_compiler_type=none
7904   if test "$am_compiler_list" = ""; then
7905      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7906   fi
7907   for depmode in $am_compiler_list; do
7908     # We need to recreate these files for each test, as the compiler may
7909     # overwrite some of them when testing with obscure command lines.
7910     # This happens at least with the AIX C compiler.
7911     echo '#include "conftest.h"' > conftest.c
7912     echo 'int i;' > conftest.h
7913     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7914
7915     case $depmode in
7916     nosideeffect)
7917       # after this tag, mechanisms are not by side-effect, so they'll
7918       # only be used when explicitly requested
7919       if test "x$enable_dependency_tracking" = xyes; then
7920         continue
7921       else
7922         break
7923       fi
7924       ;;
7925     none) break ;;
7926     esac
7927     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7928     # mode.  It turns out that the SunPro C++ compiler does not properly
7929     # handle `-M -o', and we need to detect this.
7930     if depmode=$depmode \
7931        source=conftest.c object=conftest.o \
7932        depfile=conftest.Po tmpdepfile=conftest.TPo \
7933        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7934        grep conftest.h conftest.Po > /dev/null 2>&1 &&
7935        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7936       am_cv_CXX_dependencies_compiler_type=$depmode
7937       break
7938     fi
7939   done
7940
7941   cd ..
7942   rm -rf conftest.dir
7943 else
7944   am_cv_CXX_dependencies_compiler_type=none
7945 fi
7946
7947 fi
7948 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7949 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7950 CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
7951
7952
7953 ac_ext=cc
7954 ac_cpp='$CXXCPP $CPPFLAGS'
7955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7960 if test -z "$CXXCPP"; then
7961   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964       # Double quotes because CXXCPP needs to be expanded
7965     for CXXCPP in "$CXX -E" "/lib/cpp"
7966     do
7967       ac_preproc_ok=false
7968 for ac_cxx_preproc_warn_flag in '' yes
7969 do
7970   # Use a header file that comes with gcc, so configuring glibc
7971   # with a fresh cross-compiler works.
7972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7973   # <limits.h> exists even on freestanding compilers.
7974   # On the NeXT, cc -E runs the code through the compiler's parser,
7975   # not just through cpp. "Syntax error" is here to catch this case.
7976   cat >conftest.$ac_ext <<_ACEOF
7977 #line $LINENO "configure"
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983 #ifdef __STDC__
7984 # include <limits.h>
7985 #else
7986 # include <assert.h>
7987 #endif
7988                      Syntax error
7989 _ACEOF
7990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } >/dev/null; then
7998   if test -s conftest.err; then
7999     ac_cpp_err=$ac_cxx_preproc_warn_flag
8000   else
8001     ac_cpp_err=
8002   fi
8003 else
8004   ac_cpp_err=yes
8005 fi
8006 if test -z "$ac_cpp_err"; then
8007   :
8008 else
8009   echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012   # Broken: fails on valid input.
8013 continue
8014 fi
8015 rm -f conftest.err conftest.$ac_ext
8016
8017   # OK, works on sane cases.  Now check whether non-existent headers
8018   # can be detected and how.
8019   cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 #include <ac_nonexistent.h>
8027 _ACEOF
8028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8030   ac_status=$?
8031   grep -v '^ *+' conftest.er1 >conftest.err
8032   rm -f conftest.er1
8033   cat conftest.err >&5
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); } >/dev/null; then
8036   if test -s conftest.err; then
8037     ac_cpp_err=$ac_cxx_preproc_warn_flag
8038   else
8039     ac_cpp_err=
8040   fi
8041 else
8042   ac_cpp_err=yes
8043 fi
8044 if test -z "$ac_cpp_err"; then
8045   # Broken: success on invalid input.
8046 continue
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051   # Passes both tests.
8052 ac_preproc_ok=:
8053 break
8054 fi
8055 rm -f conftest.err conftest.$ac_ext
8056
8057 done
8058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8059 rm -f conftest.err conftest.$ac_ext
8060 if $ac_preproc_ok; then
8061   break
8062 fi
8063
8064     done
8065     ac_cv_prog_CXXCPP=$CXXCPP
8066
8067 fi
8068   CXXCPP=$ac_cv_prog_CXXCPP
8069 else
8070   ac_cv_prog_CXXCPP=$CXXCPP
8071 fi
8072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8073 echo "${ECHO_T}$CXXCPP" >&6
8074 ac_preproc_ok=false
8075 for ac_cxx_preproc_warn_flag in '' yes
8076 do
8077   # Use a header file that comes with gcc, so configuring glibc
8078   # with a fresh cross-compiler works.
8079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8080   # <limits.h> exists even on freestanding compilers.
8081   # On the NeXT, cc -E runs the code through the compiler's parser,
8082   # not just through cpp. "Syntax error" is here to catch this case.
8083   cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 #ifdef __STDC__
8091 # include <limits.h>
8092 #else
8093 # include <assert.h>
8094 #endif
8095                      Syntax error
8096 _ACEOF
8097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8099   ac_status=$?
8100   grep -v '^ *+' conftest.er1 >conftest.err
8101   rm -f conftest.er1
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); } >/dev/null; then
8105   if test -s conftest.err; then
8106     ac_cpp_err=$ac_cxx_preproc_warn_flag
8107   else
8108     ac_cpp_err=
8109   fi
8110 else
8111   ac_cpp_err=yes
8112 fi
8113 if test -z "$ac_cpp_err"; then
8114   :
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119   # Broken: fails on valid input.
8120 continue
8121 fi
8122 rm -f conftest.err conftest.$ac_ext
8123
8124   # OK, works on sane cases.  Now check whether non-existent headers
8125   # can be detected and how.
8126   cat >conftest.$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8128 /* confdefs.h.  */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h.  */
8133 #include <ac_nonexistent.h>
8134 _ACEOF
8135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8137   ac_status=$?
8138   grep -v '^ *+' conftest.er1 >conftest.err
8139   rm -f conftest.er1
8140   cat conftest.err >&5
8141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142   (exit $ac_status); } >/dev/null; then
8143   if test -s conftest.err; then
8144     ac_cpp_err=$ac_cxx_preproc_warn_flag
8145   else
8146     ac_cpp_err=
8147   fi
8148 else
8149   ac_cpp_err=yes
8150 fi
8151 if test -z "$ac_cpp_err"; then
8152   # Broken: success on invalid input.
8153 continue
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158   # Passes both tests.
8159 ac_preproc_ok=:
8160 break
8161 fi
8162 rm -f conftest.err conftest.$ac_ext
8163
8164 done
8165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8166 rm -f conftest.err conftest.$ac_ext
8167 if $ac_preproc_ok; then
8168   :
8169 else
8170   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8171 See \`config.log' for more details." >&5
8172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8173 See \`config.log' for more details." >&2;}
8174    { (exit 1); exit 1; }; }
8175 fi
8176
8177 ac_ext=cc
8178 ac_cpp='$CXXCPP $CPPFLAGS'
8179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8182
8183
8184 CXXWARNING_FLAGS=
8185 # Check whether --enable-warnings or --disable-warnings was given.
8186 if test "${enable_warnings+set}" = set; then
8187   enableval="$enable_warnings"
8188
8189 fi;
8190 if test -z "$enable_warnings"; then
8191   enable_warnings=no
8192 fi
8193 if test x$enable_warnings != xno; then
8194   CXXWARNING_FLAGS='-Wall -W -Winline -Wno-unused-parameter'
8195   echo "$as_me:$LINENO: checking Whether $CXX accepts -Wno-unused-parameter" >&5
8196 echo $ECHO_N "checking Whether $CXX accepts -Wno-unused-parameter... $ECHO_C" >&6
8197   old_cxxflags="$CXXFLAGS"
8198   CXXFLAGS="$old_cxxflags $CXXWARNING_FLAGS"
8199
8200 cat >conftest.$ac_ext <<_ACEOF
8201 #line $LINENO "configure"
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207
8208 int
8209 main ()
8210 {
8211 return 0;
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218   (eval $ac_compile) 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); } &&
8222          { ac_try='test -s conftest.$ac_objext'
8223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224   (eval $ac_try) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   echo "$as_me:$LINENO: result: yes" >&5
8229 echo "${ECHO_T}yes" >&6
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234  echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236       CXXWARNING_FLAGS="-Wall -W -Winline"
8237
8238 fi
8239 rm -f conftest.$ac_objext conftest.$ac_ext
8240   CXXFLAGS="$old_cxxflags"
8241 fi
8242
8243
8244 # Check whether --enable-abort-on-error or --disable-abort-on-error was given.
8245 if test "${enable_abort_on_error+set}" = set; then
8246   enableval="$enable_abort_on_error"
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define SABLOT_ABORT_ON_ERROR 1
8250 _ACEOF
8251
8252 fi;
8253
8254 # Check whether --enable-adding-meta or --disable-adding-meta was given.
8255 if test "${enable_adding_meta+set}" = set; then
8256   enableval="$enable_adding_meta"
8257
8258 fi;
8259 if test x$enable_adding_meta = xno; then
8260
8261 cat >>confdefs.h <<\_ACEOF
8262 #define SABLOT_DISABLE_ADDING_META 1
8263 _ACEOF
8264
8265 fi
8266
8267 # Check whether --enable-document-errors or --disable-document-errors was given.
8268 if test "${enable_document_errors+set}" = set; then
8269   enableval="$enable_document_errors"
8270
8271 fi;
8272 if test x$enable_document_errors = xno; then
8273
8274 cat >>confdefs.h <<\_ACEOF
8275 #define SABLOT_DISABLE_DOC_ERRORS 1
8276 _ACEOF
8277
8278 fi
8279
8280 # Check whether --enable-javascript or --disable-javascript was given.
8281 if test "${enable_javascript+set}" = set; then
8282   enableval="$enable_javascript"
8283
8284 fi;
8285 if test x$enable_javascript = xyes; then
8286   js_enabled=1
8287
8288 cat >>confdefs.h <<\_ACEOF
8289 #define ENABLE_JS 1
8290 _ACEOF
8291
8292 else
8293   js_enabled=0
8294 fi
8295
8296 # Check whether --with-js-prefix or --without-js-prefix was given.
8297 if test "${with_js_prefix+set}" = set; then
8298   withval="$with_js_prefix"
8299   if test -x $withval ; then
8300    #on Redhat js header files are in include/js
8301    if test -x $withval/include/js ; then
8302     CFLAGS="$CFLAGS -I$withval/include/js"
8303     CXXFLAGS="$CXXFLAGS -I$withval/include/js"
8304     CPPFLAGS="$CPPFLAGS -I$withval/include/js"
8305    else
8306     if test -x $withval/include ; then
8307      CFLAGS="$CFLAGS -I$withval/include"
8308      CPPFLAGS="$CPPFLAGS -I$withval/include"
8309      CXXFLAGS="$CXXFLAGS -I$withval/include"
8310     else
8311      { { echo "$as_me:$LINENO: error: prefix for JavaScript not valid (include dir)" >&5
8312 echo "$as_me: error: prefix for JavaScript not valid (include dir)" >&2;}
8313    { (exit 1); exit 1; }; }
8314     fi
8315    fi
8316    if test -x $withval/lib ; then
8317     LDFLAGS="$LDFLAGS -L$withval/lib"
8318    else
8319     { { echo "$as_me:$LINENO: error: prefix for JavaScript library invalid (libdir)" >&5
8320 echo "$as_me: error: prefix for JavaScript library invalid (libdir)" >&2;}
8321    { (exit 1); exit 1; }; }
8322    fi
8323   else
8324    { { echo "$as_me:$LINENO: error: prefix for JavaScript library invalid (not a directory)" >&5
8325 echo "$as_me: error: prefix for JavaScript library invalid (not a directory)" >&2;}
8326    { (exit 1); exit 1; }; }
8327   fi
8328
8329
8330 fi;
8331
8332
8333 # Check whether --with-expat-prefix or --without-expat-prefix was given.
8334 if test "${with_expat_prefix+set}" = set; then
8335   withval="$with_expat_prefix"
8336   if test -x $withval ; then
8337    if test -x $withval/include ; then
8338     CFLAGS="$CFLAGS -I$withval/include"
8339     CPPFLAGS="$CPPFLAGS -I$withval/include"
8340     CXXFLAGS="$CXXFLAGS -I$withval/include"
8341    else
8342     { { echo "$as_me:$LINENO: error: prefix for Expat not valid (include dir)" >&5
8343 echo "$as_me: error: prefix for Expat not valid (include dir)" >&2;}
8344    { (exit 1); exit 1; }; }
8345    fi
8346    if test -x $withval/lib ; then
8347     LDFLAGS="$LDFLAGS -L$withval/lib"
8348    else
8349     { { echo "$as_me:$LINENO: error: prefix for Expat library invalid (libdir)" >&5
8350 echo "$as_me: error: prefix for Expat library invalid (libdir)" >&2;}
8351    { (exit 1); exit 1; }; }
8352    fi
8353   else
8354    { { echo "$as_me:$LINENO: error: prefix for Expat library invalid (not a directory)" >&5
8355 echo "$as_me: error: prefix for Expat library invalid (not a directory)" >&2;}
8356    { (exit 1); exit 1; }; }
8357   fi
8358
8359
8360 fi;
8361
8362
8363 # Check whether --with-iconv-prefix or --without-iconv-prefix was given.
8364 if test "${with_iconv_prefix+set}" = set; then
8365   withval="$with_iconv_prefix"
8366   if test -x $withval ; then
8367    if test -x $withval/include ; then
8368     CFLAGS="$CFLAGS -I$withval/include"
8369     CXXFLAGS="$CXXFLAGS -I$withval/include"
8370     CPPFLAGS="$CPPFLAGS -I$withval/include"
8371    else
8372     { { echo "$as_me:$LINENO: error: prefix for Iconv not valid (include dir)" >&5
8373 echo "$as_me: error: prefix for Iconv not valid (include dir)" >&2;}
8374    { (exit 1); exit 1; }; }
8375    fi
8376    if test -x $withval/lib ; then
8377     LDFLAGS="$LDFLAGS -L$withval/lib"
8378    else
8379     { { echo "$as_me:$LINENO: error: prefix for Iconv library invalid (libdir)" >&5
8380 echo "$as_me: error: prefix for Iconv library invalid (libdir)" >&2;}
8381    { (exit 1); exit 1; }; }
8382    fi
8383   else
8384    { { echo "$as_me:$LINENO: error: prefix for Iconv library invalid (not a directory)" >&5
8385 echo "$as_me: error: prefix for Iconv library invalid (not a directory)" >&2;}
8386    { (exit 1); exit 1; }; }
8387   fi
8388
8389
8390 fi;
8391
8392
8393
8394
8395 # Check whether --with-perl or --without-perl was given.
8396 if test "${with_perl+set}" = set; then
8397   withval="$with_perl"
8398   if test -x $withval ; then
8399    echo "$as_me:$LINENO: checking perl version of $withval" >&5
8400 echo $ECHO_N "checking perl version of $withval... $ECHO_C" >&6
8401    perlv=`$withval -v | sed -n -e "s%^This is perl, v\(ersion \)\?\(5.*\) built.*$%\2%p"`
8402    if test -z "$perlv" ; then
8403     { { echo "$as_me:$LINENO: error: You need to provide a path to perl 5" >&5
8404 echo "$as_me: error: You need to provide a path to perl 5" >&2;}
8405    { (exit 1); exit 1; }; }
8406    else
8407     echo "$as_me:$LINENO: result: $perlv ok" >&5
8408 echo "${ECHO_T}$perlv ok" >&6
8409     PERL_PROG=$withval
8410
8411    fi
8412   else
8413    { { echo "$as_me:$LINENO: error: Perl $withval is not executable" >&5
8414 echo "$as_me: error: Perl $withval is not executable" >&2;}
8415    { (exit 1); exit 1; }; }
8416   fi
8417
8418 else
8419   # Extract the first word of "perl", so it can be a program name with args.
8420 set dummy perl; ac_word=$2
8421 echo "$as_me:$LINENO: checking for $ac_word" >&5
8422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8423 if test "${ac_cv_path_PERL_PROG+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   case $PERL_PROG in
8427   [\\/]* | ?:[\\/]*)
8428   ac_cv_path_PERL_PROG="$PERL_PROG" # Let the user override the test with a path.
8429   ;;
8430   *)
8431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434   IFS=$as_save_IFS
8435   test -z "$as_dir" && as_dir=.
8436   for ac_exec_ext in '' $ac_executable_extensions; do
8437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438     ac_cv_path_PERL_PROG="$as_dir/$ac_word$ac_exec_ext"
8439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8440     break 2
8441   fi
8442 done
8443 done
8444
8445   test -z "$ac_cv_path_PERL_PROG" && ac_cv_path_PERL_PROG="/usr/bin/perl"
8446   ;;
8447 esac
8448 fi
8449 PERL_PROG=$ac_cv_path_PERL_PROG
8450
8451 if test -n "$PERL_PROG"; then
8452   echo "$as_me:$LINENO: result: $PERL_PROG" >&5
8453 echo "${ECHO_T}$PERL_PROG" >&6
8454 else
8455   echo "$as_me:$LINENO: result: no" >&5
8456 echo "${ECHO_T}no" >&6
8457 fi
8458
8459
8460 fi;
8461 echo "$as_me:$LINENO: checking XML::Parser perl module" >&5
8462 echo $ECHO_N "checking XML::Parser perl module... $ECHO_C" >&6
8463 PERL_SOURCE='eval { require XML::Parser; }; print "yes" unless $@; '
8464 BUILD_APIDOCS=`echo $PERL_SOURCE | $PERL_PROG`
8465 if test "x$BUILD_APIDOCS" = "xyes"; then
8466   echo "$as_me:$LINENO: result: yes" >&5
8467 echo "${ECHO_T}yes" >&6
8468 else
8469   echo "$as_me:$LINENO: result: no: documentation requires XML::Parser module and will not be built." >&5
8470 echo "${ECHO_T}no: documentation requires XML::Parser module and will not be built." >&6
8471 fi
8472
8473
8474
8475
8476 # Check whether --with-html-dir or --without-html-dir was given.
8477 if test "${with_html_dir+set}" = set; then
8478   withval="$with_html_dir"
8479   echo "$as_me:$LINENO: checking html dir" >&5
8480 echo $ECHO_N "checking html dir... $ECHO_C" >&6
8481    HTML_DIR=$withval
8482    if test -x $withval ; then
8483
8484      echo "$as_me:$LINENO: result: $withval" >&5
8485 echo "${ECHO_T}$withval" >&6
8486    else
8487
8488      { echo "$as_me:$LINENO: WARNING: Directory $withval does not exist and will be created" >&5
8489 echo "$as_me: WARNING: Directory $withval does not exist and will be created" >&2;}
8490    fi
8491
8492 else
8493   if test "x$BUILD_APIDOCS" = "xyes"; then
8494     { echo "$as_me:$LINENO: Setting html dir to $datadir/doc/html" >&5
8495 echo "$as_me: Setting html dir to $datadir/doc/html" >&6;}
8496     HTML_DIR=$datadir/doc/html
8497   fi
8498
8499
8500
8501 fi;
8502
8503 # Check whether --enable-perlconnect or --disable-perlconnect was given.
8504 if test "${enable_perlconnect+set}" = set; then
8505   enableval="$enable_perlconnect"
8506
8507 fi;
8508 if test x$enable_perlconnect = xyes; then
8509   perlconnect_enabled=1
8510 else
8511   perlconnect_enabled=0
8512 fi
8513
8514 # Check whether --enable-iconv-typecast or --disable-iconv-typecast was given.
8515 if test "${enable_iconv_typecast+set}" = set; then
8516   enableval="$enable_iconv_typecast"
8517
8518 fi;
8519 if test x$enable_iconv_typecast = xyes; then
8520   force_iconv_typecast=1
8521 fi
8522
8523 # Check whether --enable-check-leaks or --disable-check-leaks was given.
8524 if test "${enable_check_leaks+set}" = set; then
8525   enableval="$enable_check_leaks"
8526
8527 fi;
8528 if test x$enable_check_leaks = xyes; then
8529
8530 cat >>confdefs.h <<\_ACEOF
8531 #define CHECK_LEAKS 1
8532 _ACEOF
8533
8534 fi
8535
8536 # Check whether --enable-dom or --disable-dom was given.
8537 if test "${enable_dom+set}" = set; then
8538   enableval="$enable_dom"
8539   __dom_given=1
8540 else
8541   __dom_given=0
8542 fi;
8543
8544 __has_dom=0
8545 if test x$__dom_given = x1; then
8546   if test x$enable_dom = xyes; then
8547
8548 cat >>confdefs.h <<\_ACEOF
8549 #define ENABLE_DOM 1
8550 _ACEOF
8551
8552     __has_dom=1
8553   else
8554
8555 cat >>confdefs.h <<\_ACEOF
8556 #define DISABLE_DOM 1
8557 _ACEOF
8558
8559   fi
8560 else
8561
8562 cat >>confdefs.h <<\_ACEOF
8563 #define ENABLE_DOM 1
8564 _ACEOF
8565
8566   __has_dom=1
8567 fi
8568
8569 if test x$enable_javascript = xyes -a x$__has_dom = x0; then
8570    { { echo "$as_me:$LINENO: error: --disable-dom must not be specified with --enable-javascript" >&5
8571 echo "$as_me: error: --disable-dom must not be specified with --enable-javascript" >&2;}
8572    { (exit 1); exit 1; }; }
8573 fi
8574
8575
8576
8577
8578
8579 OTHER_LIBS=
8580
8581 echo "$as_me:$LINENO: checking whether to build under GPL" >&5
8582 echo $ECHO_N "checking whether to build under GPL... $ECHO_C" >&6
8583 if test ! x$SABLOT_GPL = 'x'; then
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define SABLOT_GPL 1
8587 _ACEOF
8588
8589   echo "$as_me:$LINENO: result: yes" >&5
8590 echo "${ECHO_T}yes" >&6
8591 else
8592   echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6
8594 fi
8595
8596
8597 echo "$as_me:$LINENO: checking whether to build the debugger" >&5
8598 echo $ECHO_N "checking whether to build the debugger... $ECHO_C" >&6
8599 # Check whether --enable-debugger or --disable-debugger was given.
8600 if test "${enable_debugger+set}" = set; then
8601   enableval="$enable_debugger"
8602
8603 fi;
8604 if test x$enable_debugger = xyes; then
8605   echo "$as_me:$LINENO: result: yes" >&5
8606 echo "${ECHO_T}yes" >&6
8607
8608 cat >>confdefs.h <<\_ACEOF
8609 #define SABLOT_DEBUGGER 1
8610 _ACEOF
8611
8612
8613 # Check whether --with-readline or --without-readline was given.
8614 if test "${with_readline+set}" = set; then
8615   withval="$with_readline"
8616   userl=1
8617 else
8618   userl=0
8619 fi;
8620   if test x$userl = x1; then
8621     if test x$SABLOT_GPL = 'x'; then
8622       { { echo "$as_me:$LINENO: error: you must compile under GNU's GPL to use the debugger" >&5
8623 echo "$as_me: error: you must compile under GNU's GPL to use the debugger" >&2;}
8624    { (exit 1); exit 1; }; }
8625     fi
8626     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
8627 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
8628 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   ac_check_lib_save_LIBS=$LIBS
8632 LIBS="-lncurses  $LIBS"
8633 cat >conftest.$ac_ext <<_ACEOF
8634 #line $LINENO "configure"
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 /* Override any gcc2 internal prototype to avoid an error.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 /* We use char because int might match the return type of a gcc2
8646    builtin and then its argument prototype would still apply.  */
8647 char initscr ();
8648 int
8649 main ()
8650 {
8651 initscr ();
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658   (eval $ac_link) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } &&
8662          { ac_try='test -s conftest$ac_exeext'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; }; then
8668   ac_cv_lib_ncurses_initscr=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_lib_ncurses_initscr=no
8674 fi
8675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
8679 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
8680 if test $ac_cv_lib_ncurses_initscr = yes; then
8681   __rllib=-lncurses; OTHER_LIBS="$OTHER_LIBS -lncurses"
8682 else
8683   __rllib=
8684 fi
8685
8686     __rl=1
8687     echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8688 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8689 if test "${ac_cv_lib_readline_readline+set}" = set; then
8690   echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692   ac_check_lib_save_LIBS=$LIBS
8693 LIBS="-lreadline $__rllib $LIBS"
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701
8702 /* Override any gcc2 internal prototype to avoid an error.  */
8703 #ifdef __cplusplus
8704 extern "C"
8705 #endif
8706 /* We use char because int might match the return type of a gcc2
8707    builtin and then its argument prototype would still apply.  */
8708 char readline ();
8709 int
8710 main ()
8711 {
8712 readline ();
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 rm -f conftest.$ac_objext conftest$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719   (eval $ac_link) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   ac_cv_lib_readline_readline=yes
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 ac_cv_lib_readline_readline=no
8735 fi
8736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8738 fi
8739 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8740 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8741 if test $ac_cv_lib_readline_readline = yes; then
8742   OTHER_LIBS="$OTHER_LIBS -lreadline"
8743 else
8744   __rl=0
8745 fi
8746
8747
8748
8749
8750 for ac_header in readline/readline.h readline/history.h
8751 do
8752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8754   echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 fi
8759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8761 else
8762   # Is the header compilable?
8763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8767 /* confdefs.h.  */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h.  */
8772 $ac_includes_default
8773 #include <$ac_header>
8774 _ACEOF
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777   (eval $ac_compile) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } &&
8781          { ac_try='test -s conftest.$ac_objext'
8782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783   (eval $ac_try) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_header_compiler=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792 ac_header_compiler=no
8793 fi
8794 rm -f conftest.$ac_objext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8796 echo "${ECHO_T}$ac_header_compiler" >&6
8797
8798 # Is the header present?
8799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8802 #line $LINENO "configure"
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 #include <$ac_header>
8809 _ACEOF
8810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8812   ac_status=$?
8813   grep -v '^ *+' conftest.er1 >conftest.err
8814   rm -f conftest.er1
8815   cat conftest.err >&5
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); } >/dev/null; then
8818   if test -s conftest.err; then
8819     ac_cpp_err=$ac_cxx_preproc_warn_flag
8820   else
8821     ac_cpp_err=
8822   fi
8823 else
8824   ac_cpp_err=yes
8825 fi
8826 if test -z "$ac_cpp_err"; then
8827   ac_header_preproc=yes
8828 else
8829   echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832   ac_header_preproc=no
8833 fi
8834 rm -f conftest.err conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836 echo "${ECHO_T}$ac_header_preproc" >&6
8837
8838 # So?  What about this header?
8839 case $ac_header_compiler:$ac_header_preproc in
8840   yes:no )
8841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845     (
8846       cat <<\_ASBOX
8847 ## ------------------------------------ ##
8848 ## Report this to bug-autoconf@gnu.org. ##
8849 ## ------------------------------------ ##
8850 _ASBOX
8851     ) |
8852       sed "s/^/$as_me: WARNING:     /" >&2
8853     ;;
8854   no:yes )
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861     (
8862       cat <<\_ASBOX
8863 ## ------------------------------------ ##
8864 ## Report this to bug-autoconf@gnu.org. ##
8865 ## ------------------------------------ ##
8866 _ASBOX
8867     ) |
8868       sed "s/^/$as_me: WARNING:     /" >&2
8869     ;;
8870 esac
8871 echo "$as_me:$LINENO: checking for $ac_header" >&5
8872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876   eval "$as_ac_Header=$ac_header_preproc"
8877 fi
8878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8880
8881 fi
8882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8883   cat >>confdefs.h <<_ACEOF
8884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 _ACEOF
8886
8887 fi
8888
8889 done
8890
8891   fi
8892
8893
8894 else
8895   echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6
8897 fi
8898
8899
8900
8901
8902 echo "$as_me:$LINENO: checking where to find xml parser" >&5
8903 echo $ECHO_N "checking where to find xml parser... $ECHO_C" >&6
8904 exec 6>/dev/null
8905
8906 echo "$as_me:$LINENO: checking for XML_Parse in -lexpat" >&5
8907 echo $ECHO_N "checking for XML_Parse in -lexpat... $ECHO_C" >&6
8908 if test "${ac_cv_lib_expat_XML_Parse+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   ac_check_lib_save_LIBS=$LIBS
8912 LIBS="-lexpat  $LIBS"
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 /* confdefs.h.  */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h.  */
8920
8921 /* Override any gcc2 internal prototype to avoid an error.  */
8922 #ifdef __cplusplus
8923 extern "C"
8924 #endif
8925 /* We use char because int might match the return type of a gcc2
8926    builtin and then its argument prototype would still apply.  */
8927 char XML_Parse ();
8928 int
8929 main ()
8930 {
8931 XML_Parse ();
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938   (eval $ac_link) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -s conftest$ac_exeext'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948   ac_cv_lib_expat_XML_Parse=yes
8949 else
8950   echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 ac_cv_lib_expat_XML_Parse=no
8954 fi
8955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8957 fi
8958 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_Parse" >&5
8959 echo "${ECHO_T}$ac_cv_lib_expat_XML_Parse" >&6
8960 if test $ac_cv_lib_expat_XML_Parse = yes; then
8961   xmle=1; EXPAT_LIBS=-lexpat
8962 else
8963   xmle=0
8964 fi
8965
8966
8967 if test $xmle = 0; then
8968   echo "$as_me:$LINENO: checking for XML_Parse in -lxmlparse" >&5
8969 echo $ECHO_N "checking for XML_Parse in -lxmlparse... $ECHO_C" >&6
8970 if test "${ac_cv_lib_xmlparse_XML_Parse+set}" = set; then
8971   echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973   ac_check_lib_save_LIBS=$LIBS
8974 LIBS="-lxmlparse -lxmltok $LIBS"
8975 cat >conftest.$ac_ext <<_ACEOF
8976 #line $LINENO "configure"
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982
8983 /* Override any gcc2 internal prototype to avoid an error.  */
8984 #ifdef __cplusplus
8985 extern "C"
8986 #endif
8987 /* We use char because int might match the return type of a gcc2
8988    builtin and then its argument prototype would still apply.  */
8989 char XML_Parse ();
8990 int
8991 main ()
8992 {
8993 XML_Parse ();
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000   (eval $ac_link) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -s conftest$ac_exeext'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; }; then
9010   ac_cv_lib_xmlparse_XML_Parse=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 ac_cv_lib_xmlparse_XML_Parse=no
9016 fi
9017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9018 LIBS=$ac_check_lib_save_LIBS
9019 fi
9020 echo "$as_me:$LINENO: result: $ac_cv_lib_xmlparse_XML_Parse" >&5
9021 echo "${ECHO_T}$ac_cv_lib_xmlparse_XML_Parse" >&6
9022 if test $ac_cv_lib_xmlparse_XML_Parse = yes; then
9023   xmlp=1; EXPAT_LIBS="EXPAT_LIBS=-lxmlparse -lxmltok"
9024 else
9025   xmlp=0
9026 fi
9027
9028 fi
9029
9030 if test ! x$silent = xyes; then
9031   exec 6>&1
9032 fi
9033
9034 panic=0
9035 if test $xmle = 1; then
9036   resmsg='expat (new)'
9037 elif $xmlp = 1; then
9038   resmsg='expat (old)'
9039 else
9040   resmsg='not found (panic)'
9041   panic=1
9042 fi
9043
9044 echo "$as_me:$LINENO: result: $resmsg" >&5
9045 echo "${ECHO_T}$resmsg" >&6;
9046 if test $panic = 1; then
9047   { { echo "$as_me:$LINENO: error: Couldn't find the expat libraries" >&5
9048 echo "$as_me: error: Couldn't find the expat libraries" >&2;}
9049    { (exit 1); exit 1; }; }
9050 fi
9051
9052 if test $xmle = 1; then
9053
9054 for ac_header in expat.h
9055 do
9056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058   echo "$as_me:$LINENO: checking for $ac_header" >&5
9059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 fi
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065 else
9066   # Is the header compilable?
9067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line $LINENO "configure"
9071 /* confdefs.h.  */
9072 _ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h.  */
9076 $ac_includes_default
9077 #include <$ac_header>
9078 _ACEOF
9079 rm -f conftest.$ac_objext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081   (eval $ac_compile) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } &&
9085          { ac_try='test -s conftest.$ac_objext'
9086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087   (eval $ac_try) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); }; }; then
9091   ac_header_compiler=yes
9092 else
9093   echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9095
9096 ac_header_compiler=no
9097 fi
9098 rm -f conftest.$ac_objext conftest.$ac_ext
9099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9100 echo "${ECHO_T}$ac_header_compiler" >&6
9101
9102 # Is the header present?
9103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112 #include <$ac_header>
9113 _ACEOF
9114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } >/dev/null; then
9122   if test -s conftest.err; then
9123     ac_cpp_err=$ac_cxx_preproc_warn_flag
9124   else
9125     ac_cpp_err=
9126   fi
9127 else
9128   ac_cpp_err=yes
9129 fi
9130 if test -z "$ac_cpp_err"; then
9131   ac_header_preproc=yes
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136   ac_header_preproc=no
9137 fi
9138 rm -f conftest.err conftest.$ac_ext
9139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140 echo "${ECHO_T}$ac_header_preproc" >&6
9141
9142 # So?  What about this header?
9143 case $ac_header_compiler:$ac_header_preproc in
9144   yes:no )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9149     (
9150       cat <<\_ASBOX
9151 ## ------------------------------------ ##
9152 ## Report this to bug-autoconf@gnu.org. ##
9153 ## ------------------------------------ ##
9154 _ASBOX
9155     ) |
9156       sed "s/^/$as_me: WARNING:     /" >&2
9157     ;;
9158   no:yes )
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9161     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165     (
9166       cat <<\_ASBOX
9167 ## ------------------------------------ ##
9168 ## Report this to bug-autoconf@gnu.org. ##
9169 ## ------------------------------------ ##
9170 _ASBOX
9171     ) |
9172       sed "s/^/$as_me: WARNING:     /" >&2
9173     ;;
9174 esac
9175 echo "$as_me:$LINENO: checking for $ac_header" >&5
9176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   eval "$as_ac_Header=$ac_header_preproc"
9181 fi
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9184
9185 fi
9186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9187   cat >>confdefs.h <<_ACEOF
9188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9189 _ACEOF
9190  has_expat_headers=1
9191 else
9192   has_expat_headers=0
9193 fi
9194
9195 done
9196
9197 else
9198
9199
9200 for ac_header in xmlparse.h xmltok/xmlparse.h
9201 do
9202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9204   echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 fi
9209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9211 else
9212   # Is the header compilable?
9213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 /* confdefs.h.  */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h.  */
9222 $ac_includes_default
9223 #include <$ac_header>
9224 _ACEOF
9225 rm -f conftest.$ac_objext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9227   (eval $ac_compile) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } &&
9231          { ac_try='test -s conftest.$ac_objext'
9232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233   (eval $ac_try) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237   ac_header_compiler=yes
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 ac_header_compiler=no
9243 fi
9244 rm -f conftest.$ac_objext conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6
9247
9248 # Is the header present?
9249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9252 #line $LINENO "configure"
9253 /* confdefs.h.  */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h.  */
9258 #include <$ac_header>
9259 _ACEOF
9260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262   ac_status=$?
9263   grep -v '^ *+' conftest.er1 >conftest.err
9264   rm -f conftest.er1
9265   cat conftest.err >&5
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } >/dev/null; then
9268   if test -s conftest.err; then
9269     ac_cpp_err=$ac_cxx_preproc_warn_flag
9270   else
9271     ac_cpp_err=
9272   fi
9273 else
9274   ac_cpp_err=yes
9275 fi
9276 if test -z "$ac_cpp_err"; then
9277   ac_header_preproc=yes
9278 else
9279   echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282   ac_header_preproc=no
9283 fi
9284 rm -f conftest.err conftest.$ac_ext
9285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9286 echo "${ECHO_T}$ac_header_preproc" >&6
9287
9288 # So?  What about this header?
9289 case $ac_header_compiler:$ac_header_preproc in
9290   yes:no )
9291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9295     (
9296       cat <<\_ASBOX
9297 ## ------------------------------------ ##
9298 ## Report this to bug-autoconf@gnu.org. ##
9299 ## ------------------------------------ ##
9300 _ASBOX
9301     ) |
9302       sed "s/^/$as_me: WARNING:     /" >&2
9303     ;;
9304   no:yes )
9305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9307     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9311     (
9312       cat <<\_ASBOX
9313 ## ------------------------------------ ##
9314 ## Report this to bug-autoconf@gnu.org. ##
9315 ## ------------------------------------ ##
9316 _ASBOX
9317     ) |
9318       sed "s/^/$as_me: WARNING:     /" >&2
9319     ;;
9320 esac
9321 echo "$as_me:$LINENO: checking for $ac_header" >&5
9322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324   echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326   eval "$as_ac_Header=$ac_header_preproc"
9327 fi
9328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9330
9331 fi
9332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9333   cat >>confdefs.h <<_ACEOF
9334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 _ACEOF
9336  has_expat_headers=1
9337 else
9338   has_expat_headers=0
9339 fi
9340
9341 done
9342
9343 fi
9344
9345 if test $has_expat_headers = 0; then
9346   { { echo "$as_me:$LINENO: error: Couldn't find the expat header file(s)" >&5
9347 echo "$as_me: error: Couldn't find the expat header file(s)" >&2;}
9348    { (exit 1); exit 1; }; }
9349 fi
9350
9351 echo "$as_me:$LINENO: checking whether expat.h is broken" >&5
9352 echo $ECHO_N "checking whether expat.h is broken... $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360
9361 #include <expat.h>
9362
9363 int
9364 main ()
9365 {
9366
9367 return 1;
9368
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375   (eval $ac_compile) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } &&
9379          { ac_try='test -s conftest.$ac_objext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385
9386  echo "$as_me:$LINENO: result: no" >&5
9387 echo "${ECHO_T}no" >&6
9388
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393
9394  echo "$as_me:$LINENO: result: yes" >&5
9395 echo "${ECHO_T}yes" >&6
9396  { { echo "$as_me:$LINENO: error: You probably have expat version 1.95.6. Please refer to:
9397   http://sourceforge.net/tracker/index.php?func=detail&aid=676844&group_id=10127&atid=110127
9398   for a description of the problem." >&5
9399 echo "$as_me: error: You probably have expat version 1.95.6. Please refer to:
9400   http://sourceforge.net/tracker/index.php?func=detail&aid=676844&group_id=10127&atid=110127
9401   for a description of the problem." >&2;}
9402    { (exit 1); exit 1; }; }
9403
9404 fi
9405 rm -f conftest.$ac_objext conftest.$ac_ext
9406
9407 echo "$as_me:$LINENO: checking for XML_SetReturnNSTriplet in -lexpat" >&5
9408 echo $ECHO_N "checking for XML_SetReturnNSTriplet in -lexpat... $ECHO_C" >&6
9409 if test "${ac_cv_lib_expat_XML_SetReturnNSTriplet+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   ac_check_lib_save_LIBS=$LIBS
9413 LIBS="-lexpat  $LIBS"
9414 cat >conftest.$ac_ext <<_ACEOF
9415 #line $LINENO "configure"
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421
9422 /* Override any gcc2 internal prototype to avoid an error.  */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 /* We use char because int might match the return type of a gcc2
9427    builtin and then its argument prototype would still apply.  */
9428 char XML_SetReturnNSTriplet ();
9429 int
9430 main ()
9431 {
9432 XML_SetReturnNSTriplet ();
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439   (eval $ac_link) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); } &&
9443          { ac_try='test -s conftest$ac_exeext'
9444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445   (eval $ac_try) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); }; }; then
9449   ac_cv_lib_expat_XML_SetReturnNSTriplet=yes
9450 else
9451   echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454 ac_cv_lib_expat_XML_SetReturnNSTriplet=no
9455 fi
9456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9458 fi
9459 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_SetReturnNSTriplet" >&5
9460 echo "${ECHO_T}$ac_cv_lib_expat_XML_SetReturnNSTriplet" >&6
9461 if test $ac_cv_lib_expat_XML_SetReturnNSTriplet = yes; then
9462   has_extrip=1
9463 else
9464   has_extrip=0
9465 fi
9466
9467
9468 if test $has_extrip = 1; then
9469   echo "$as_me:$LINENO: checking whether XML_SetReturnNSTriplet works" >&5
9470 echo $ECHO_N "checking whether XML_SetReturnNSTriplet works... $ECHO_C" >&6
9471   save_libs=$LIBS
9472   LIBS=-lexpat
9473   if test "$cross_compiling" = yes; then
9474   extrip_ok=0
9475 else
9476   cat >conftest.$ac_ext <<_ACEOF
9477 #line $LINENO "configure"
9478 /* confdefs.h.  */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h.  */
9483
9484 #include <expat.h>
9485 #include <string.h>
9486 const char* xml = "<?xml version='1.0'?><a:b xmlns:a='http'/>";
9487 int cnt = 0;
9488 void tcStartElement(void *data, const char *elName, const char **atts)
9489 {
9490   const char *q = elName;
9491   do {
9492     q = strchr(q, '|');
9493     if (q) { cnt++; q++; }
9494   } while (q);
9495 }
9496 void tcEndElement(void *data, const char *elName) {}
9497 int main (int argc, char* argv[])
9498 {
9499   XML_Parser theParser = XML_ParserCreateNS(NULL, '|');
9500   XML_SetElementHandler(theParser, tcStartElement, tcEndElement);
9501   XML_SetReturnNSTriplet(theParser, 1);
9502   XML_Parse(theParser, xml, strlen(xml), 1);
9503   XML_ParserFree(theParser);
9504   return cnt == 2 ? 0 : 1;
9505 }
9506 _ACEOF
9507 rm -f conftest$ac_exeext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9509   (eval $ac_link) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   extrip_ok=1
9519 else
9520   echo "$as_me: program exited with status $ac_status" >&5
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524 ( exit $ac_status )
9525 extrip_ok=0
9526 fi
9527 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9528 fi
9529
9530   LIBS=$save_libs
9531
9532   if test $extrip_ok = 1; then
9533     echo "$as_me:$LINENO: result: yes" >&5
9534 echo "${ECHO_T}yes" >&6
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define EXPAT_SUPPORTS_TRIPLETS 1
9538 _ACEOF
9539
9540   else
9541     echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6
9543   fi
9544 fi
9545
9546
9547
9548
9549
9550 if test "${ac_cv_header_sys_types_h+set}" = set; then
9551   echo "$as_me:$LINENO: checking for sys/types.h" >&5
9552 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
9553 if test "${ac_cv_header_sys_types_h+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 fi
9556 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
9557 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
9558 else
9559   # Is the header compilable?
9560 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
9561 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9564 /* confdefs.h.  */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h.  */
9569 $ac_includes_default
9570 #include <sys/types.h>
9571 _ACEOF
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574   (eval $ac_compile) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -s conftest.$ac_objext'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_header_compiler=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_header_compiler=no
9590 fi
9591 rm -f conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593 echo "${ECHO_T}$ac_header_compiler" >&6
9594
9595 # Is the header present?
9596 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
9597 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 #include <sys/types.h>
9606 _ACEOF
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } >/dev/null; then
9615   if test -s conftest.err; then
9616     ac_cpp_err=$ac_cxx_preproc_warn_flag
9617   else
9618     ac_cpp_err=
9619   fi
9620 else
9621   ac_cpp_err=yes
9622 fi
9623 if test -z "$ac_cpp_err"; then
9624   ac_header_preproc=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629   ac_header_preproc=no
9630 fi
9631 rm -f conftest.err conftest.$ac_ext
9632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633 echo "${ECHO_T}$ac_header_preproc" >&6
9634
9635 # So?  What about this header?
9636 case $ac_header_compiler:$ac_header_preproc in
9637   yes:no )
9638     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
9639 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
9641 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
9642     (
9643       cat <<\_ASBOX
9644 ## ------------------------------------ ##
9645 ## Report this to bug-autoconf@gnu.org. ##
9646 ## ------------------------------------ ##
9647 _ASBOX
9648     ) |
9649       sed "s/^/$as_me: WARNING:     /" >&2
9650     ;;
9651   no:yes )
9652     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
9653 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
9654     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
9655 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
9656     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
9658     (
9659       cat <<\_ASBOX
9660 ## ------------------------------------ ##
9661 ## Report this to bug-autoconf@gnu.org. ##
9662 ## ------------------------------------ ##
9663 _ASBOX
9664     ) |
9665       sed "s/^/$as_me: WARNING:     /" >&2
9666     ;;
9667 esac
9668 echo "$as_me:$LINENO: checking for sys/types.h" >&5
9669 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
9670 if test "${ac_cv_header_sys_types_h+set}" = set; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   ac_cv_header_sys_types_h=$ac_header_preproc
9674 fi
9675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
9677
9678 fi
9679 if test $ac_cv_header_sys_types_h = yes; then
9680   sabcfg_types_h=1
9681 else
9682   sabcfg_types_h=0
9683 fi
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694 for ac_header in timeb.h sys/timeb.h sys/time.h \
9695          unistd.h ieeefp.h sunmath.h
9696 do
9697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9699   echo "$as_me:$LINENO: checking for $ac_header" >&5
9700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 fi
9704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9706 else
9707   # Is the header compilable?
9708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9710 cat >conftest.$ac_ext <<_ACEOF
9711 #line $LINENO "configure"
9712 /* confdefs.h.  */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h.  */
9717 $ac_includes_default
9718 #include <$ac_header>
9719 _ACEOF
9720 rm -f conftest.$ac_objext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9722   (eval $ac_compile) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } &&
9726          { ac_try='test -s conftest.$ac_objext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   ac_header_compiler=yes
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_header_compiler=no
9738 fi
9739 rm -f conftest.$ac_objext conftest.$ac_ext
9740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9741 echo "${ECHO_T}$ac_header_compiler" >&6
9742
9743 # Is the header present?
9744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9746 cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753 #include <$ac_header>
9754 _ACEOF
9755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } >/dev/null; then
9763   if test -s conftest.err; then
9764     ac_cpp_err=$ac_cxx_preproc_warn_flag
9765   else
9766     ac_cpp_err=
9767   fi
9768 else
9769   ac_cpp_err=yes
9770 fi
9771 if test -z "$ac_cpp_err"; then
9772   ac_header_preproc=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777   ac_header_preproc=no
9778 fi
9779 rm -f conftest.err conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9781 echo "${ECHO_T}$ac_header_preproc" >&6
9782
9783 # So?  What about this header?
9784 case $ac_header_compiler:$ac_header_preproc in
9785   yes:no )
9786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9790     (
9791       cat <<\_ASBOX
9792 ## ------------------------------------ ##
9793 ## Report this to bug-autoconf@gnu.org. ##
9794 ## ------------------------------------ ##
9795 _ASBOX
9796     ) |
9797       sed "s/^/$as_me: WARNING:     /" >&2
9798     ;;
9799   no:yes )
9800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9802     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9806     (
9807       cat <<\_ASBOX
9808 ## ------------------------------------ ##
9809 ## Report this to bug-autoconf@gnu.org. ##
9810 ## ------------------------------------ ##
9811 _ASBOX
9812     ) |
9813       sed "s/^/$as_me: WARNING:     /" >&2
9814     ;;
9815 esac
9816 echo "$as_me:$LINENO: checking for $ac_header" >&5
9817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   eval "$as_ac_Header=$ac_header_preproc"
9822 fi
9823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9825
9826 fi
9827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9828   cat >>confdefs.h <<_ACEOF
9829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9830 _ACEOF
9831
9832 fi
9833
9834 done
9835
9836
9837
9838 for ac_header in iconv.h
9839 do
9840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842   echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 fi
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9849 else
9850   # Is the header compilable?
9851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860 $ac_includes_default
9861 #include <$ac_header>
9862 _ACEOF
9863 rm -f conftest.$ac_objext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9865   (eval $ac_compile) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } &&
9869          { ac_try='test -s conftest.$ac_objext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_header_compiler=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 ac_header_compiler=no
9881 fi
9882 rm -f conftest.$ac_objext conftest.$ac_ext
9883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9884 echo "${ECHO_T}$ac_header_compiler" >&6
9885
9886 # Is the header present?
9887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896 #include <$ac_header>
9897 _ACEOF
9898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } >/dev/null; then
9906   if test -s conftest.err; then
9907     ac_cpp_err=$ac_cxx_preproc_warn_flag
9908   else
9909     ac_cpp_err=
9910   fi
9911 else
9912   ac_cpp_err=yes
9913 fi
9914 if test -z "$ac_cpp_err"; then
9915   ac_header_preproc=yes
9916 else
9917   echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920   ac_header_preproc=no
9921 fi
9922 rm -f conftest.err conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9924 echo "${ECHO_T}$ac_header_preproc" >&6
9925
9926 # So?  What about this header?
9927 case $ac_header_compiler:$ac_header_preproc in
9928   yes:no )
9929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9933     (
9934       cat <<\_ASBOX
9935 ## ------------------------------------ ##
9936 ## Report this to bug-autoconf@gnu.org. ##
9937 ## ------------------------------------ ##
9938 _ASBOX
9939     ) |
9940       sed "s/^/$as_me: WARNING:     /" >&2
9941     ;;
9942   no:yes )
9943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9945     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9949     (
9950       cat <<\_ASBOX
9951 ## ------------------------------------ ##
9952 ## Report this to bug-autoconf@gnu.org. ##
9953 ## ------------------------------------ ##
9954 _ASBOX
9955     ) |
9956       sed "s/^/$as_me: WARNING:     /" >&2
9957     ;;
9958 esac
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   eval "$as_ac_Header=$ac_header_preproc"
9965 fi
9966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9968
9969 fi
9970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9971   cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9973 _ACEOF
9974  has_iconv=1
9975 else
9976   has_iconv=0
9977 fi
9978
9979 done
9980
9981
9982
9983 ICONV_LIB=
9984 if test $has_iconv = 1; then
9985   echo "$as_me:$LINENO: checking where to find iconv_open" >&5
9986 echo $ECHO_N "checking where to find iconv_open... $ECHO_C" >&6
9987   exec 6>/dev/null
9988
9989 for ac_func in iconv_open
9990 do
9991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9992 echo "$as_me:$LINENO: checking for $ac_func" >&5
9993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9994 if eval "test \"\${$as_ac_var+set}\" = set"; then
9995   echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997   cat >conftest.$ac_ext <<_ACEOF
9998 #line $LINENO "configure"
9999 /* confdefs.h.  */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h.  */
10004 /* System header to define __stub macros and hopefully few prototypes,
10005     which can conflict with char $ac_func (); below.
10006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007     <limits.h> exists even on freestanding compilers.  */
10008 #ifdef __STDC__
10009 # include <limits.h>
10010 #else
10011 # include <assert.h>
10012 #endif
10013 /* Override any gcc2 internal prototype to avoid an error.  */
10014 #ifdef __cplusplus
10015 extern "C"
10016 {
10017 #endif
10018 /* We use char because int might match the return type of a gcc2
10019    builtin and then its argument prototype would still apply.  */
10020 char $ac_func ();
10021 /* The GNU C library defines this for functions which it implements
10022     to always fail with ENOSYS.  Some functions are actually named
10023     something starting with __ and the normal name is an alias.  */
10024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10025 choke me
10026 #else
10027 char (*f) () = $ac_func;
10028 #endif
10029 #ifdef __cplusplus
10030 }
10031 #endif
10032
10033 int
10034 main ()
10035 {
10036 return f != $ac_func;
10037   ;
10038   return 0;
10039 }
10040 _ACEOF
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043   (eval $ac_link) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); } &&
10047          { ac_try='test -s conftest$ac_exeext'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   eval "$as_ac_var=yes"
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 eval "$as_ac_var=no"
10059 fi
10060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10061 fi
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10064 if test `eval echo '${'$as_ac_var'}'` = yes; then
10065   cat >>confdefs.h <<_ACEOF
10066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10067 _ACEOF
10068  iconv_in_libc=1
10069 else
10070   iconv_in_libc=0
10071 fi
10072 done
10073
10074   echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
10075 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
10076 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-liconv  $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088
10089 /* Override any gcc2 internal prototype to avoid an error.  */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 /* We use char because int might match the return type of a gcc2
10094    builtin and then its argument prototype would still apply.  */
10095 char iconv_open ();
10096 int
10097 main ()
10098 {
10099 iconv_open ();
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106   (eval $ac_link) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } &&
10110          { ac_try='test -s conftest$ac_exeext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_cv_lib_iconv_iconv_open=yes
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121 ac_cv_lib_iconv_iconv_open=no
10122 fi
10123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10125 fi
10126 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
10127 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
10128 if test $ac_cv_lib_iconv_iconv_open = yes; then
10129   iconv_in_iconv=1
10130 else
10131   iconv_in_iconv=0
10132 fi
10133
10134   echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
10135 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
10136 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-liconv  $LIBS"
10141 cat >conftest.$ac_ext <<_ACEOF
10142 #line $LINENO "configure"
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148
10149 /* Override any gcc2 internal prototype to avoid an error.  */
10150 #ifdef __cplusplus
10151 extern "C"
10152 #endif
10153 /* We use char because int might match the return type of a gcc2
10154    builtin and then its argument prototype would still apply.  */
10155 char libiconv_open ();
10156 int
10157 main ()
10158 {
10159 libiconv_open ();
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166   (eval $ac_link) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } &&
10170          { ac_try='test -s conftest$ac_exeext'
10171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172   (eval $ac_try) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; }; then
10176   ac_cv_lib_iconv_libiconv_open=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181 ac_cv_lib_iconv_libiconv_open=no
10182 fi
10183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10184 LIBS=$ac_check_lib_save_LIBS
10185 fi
10186 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
10187 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
10188 if test $ac_cv_lib_iconv_libiconv_open = yes; then
10189   libiconv_in_iconv=1
10190 else
10191   libiconv_in_iconv=0
10192 fi
10193
10194   if test ! x$silent = xyes; then
10195     exec 6>&1
10196   fi
10197   #standalone library rules over libc
10198   if test $iconv_in_iconv = 1 -o $libiconv_in_iconv = 1; then
10199     echo "$as_me:$LINENO: result: libiconv" >&5
10200 echo "${ECHO_T}libiconv" >&6
10201     ICONV_LIB=-liconv
10202   elif test $iconv_in_libc = 1; then
10203     echo "$as_me:$LINENO: result: libc" >&5
10204 echo "${ECHO_T}libc" >&6
10205   else
10206     echo "$as_me:$LINENO: result: not found (panic)" >&5
10207 echo "${ECHO_T}not found (panic)" >&6
10208     { { echo "$as_me:$LINENO: error: iconv.h found, while iconv library not found" >&5
10209 echo "$as_me: error: iconv.h found, while iconv library not found" >&2;}
10210    { (exit 1); exit 1; }; }
10211   fi
10212   #we have iconv at this moment, so we'll check out the need of
10213   #typecast in the call of iconv
10214   echo "$as_me:$LINENO: checking whether to typecast in iconv" >&5
10215 echo $ECHO_N "checking whether to typecast in iconv... $ECHO_C" >&6
10216   if test x$force_iconv_typecast = x1; then
10217     echo "$as_me:$LINENO: result: forced" >&5
10218 echo "${ECHO_T}forced" >&6
10219
10220 cat >>confdefs.h <<\_ACEOF
10221 #define SABLOT_ICONV_CAST_OK 1
10222 _ACEOF
10223
10224   else
10225     cat >conftest.$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 #include <iconv.h>
10233 int
10234 main ()
10235 {
10236
10237                    {
10238                       const char *src = "nothing";
10239                       char *outbuf;
10240                       size_t insize = 0;
10241                       size_t outsize = 0;
10242                       iconv_t cd;
10243                       iconv(cd, &src, &insize, &outbuf, &outsize);
10244                    }
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251   (eval $ac_compile) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -s conftest.$ac_objext'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   iconv_cast=0
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 iconv_cast=1
10267 fi
10268 rm -f conftest.$ac_objext conftest.$ac_ext
10269     if test $iconv_cast = 1; then
10270       echo "$as_me:$LINENO: result: yes" >&5
10271 echo "${ECHO_T}yes" >&6
10272
10273 cat >>confdefs.h <<\_ACEOF
10274 #define SABLOT_ICONV_CAST_OK 1
10275 _ACEOF
10276
10277     else
10278       echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10280     fi
10281   fi
10282 fi
10283
10284
10285 echo "$as_me:$LINENO: checking whether to force -lm switch" >&5
10286 echo $ECHO_N "checking whether to force -lm switch... $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 #include <math.h>
10295 int
10296 main ()
10297 {
10298 { double foo; foo = ceil(1.234); }
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305   (eval $ac_link) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } &&
10309          { ac_try='test -s conftest$ac_exeext'
10310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311   (eval $ac_try) 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); }; }; then
10315   link_libm=0
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 link_libm=1
10321 fi
10322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10323 if test $link_libm = 1; then
10324   echo "$as_me:$LINENO: result: yes" >&5
10325 echo "${ECHO_T}yes" >&6
10326   OTHER_LIBS="$OTHER_LIBS -lm"
10327 else
10328   echo "$as_me:$LINENO: result: no" >&5
10329 echo "${ECHO_T}no" >&6
10330 fi
10331
10332 if test $js_enabled = 1; then
10333     if test x$SABLOT_JSLIB = x; then
10334     SABLOT_JSLIB=js
10335   fi
10336         if test $perlconnect_enabled = 1; then
10337     # Extract the first word of "perl", so it can be a program name with args.
10338 set dummy perl; ac_word=$2
10339 echo "$as_me:$LINENO: checking for $ac_word" >&5
10340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10341 if test "${ac_cv_prog_has_perl+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   if test -n "$has_perl"; then
10345   ac_cv_prog_has_perl="$has_perl" # Let the user override the test.
10346 else
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10349 do
10350   IFS=$as_save_IFS
10351   test -z "$as_dir" && as_dir=.
10352   for ac_exec_ext in '' $ac_executable_extensions; do
10353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10354     ac_cv_prog_has_perl="yes"
10355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10356     break 2
10357   fi
10358 done
10359 done
10360
10361   test -z "$ac_cv_prog_has_perl" && ac_cv_prog_has_perl="no"
10362 fi
10363 fi
10364 has_perl=$ac_cv_prog_has_perl
10365 if test -n "$has_perl"; then
10366   echo "$as_me:$LINENO: result: $has_perl" >&5
10367 echo "${ECHO_T}$has_perl" >&6
10368 else
10369   echo "$as_me:$LINENO: result: no" >&5
10370 echo "${ECHO_T}no" >&6
10371 fi
10372
10373     if test $has_perl = yes; then
10374       PERLLDFLAGS=`perl -MExtUtils::Embed -e ldopts`
10375                   PERLLDFLAGS=`echo $PERLLDFLAGS | perl -pe 's/-rdynamic/-export-dynamic/'`
10376     fi
10377   else
10378     PERLLDFLAGS=
10379   fi
10380
10381   as_ac_Lib=`echo "ac_cv_lib_$SABLOT_JSLIB''_js_NewContext" | $as_tr_sh`
10382 echo "$as_me:$LINENO: checking for js_NewContext in -l$SABLOT_JSLIB" >&5
10383 echo $ECHO_N "checking for js_NewContext in -l$SABLOT_JSLIB... $ECHO_C" >&6
10384 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-l$SABLOT_JSLIB $PERLLDFLAGS $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396
10397 /* Override any gcc2 internal prototype to avoid an error.  */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 /* We use char because int might match the return type of a gcc2
10402    builtin and then its argument prototype would still apply.  */
10403 char js_NewContext ();
10404 int
10405 main ()
10406 {
10407 js_NewContext ();
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414   (eval $ac_link) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -s conftest$ac_exeext'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; }; then
10424   eval "$as_ac_Lib=yes"
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 eval "$as_ac_Lib=no"
10430 fi
10431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10432 LIBS=$ac_check_lib_save_LIBS
10433 fi
10434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10435 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10436 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10437   has_js=1; OTHER_LIBS="$OTHER_LIBS -l$SABLOT_JSLIB $PERLLDFLAGS"
10438 else
10439   has_js=0
10440 fi
10441
10442   if test $has_js = 1; then
10443     echo '#define XP_UNIX' >> confdefs.h
10444
10445 for ac_header in jsapi.h
10446 do
10447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449   echo "$as_me:$LINENO: checking for $ac_header" >&5
10450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 fi
10454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10456 else
10457   # Is the header compilable?
10458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10460 cat >conftest.$ac_ext <<_ACEOF
10461 #line $LINENO "configure"
10462 /* confdefs.h.  */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h.  */
10467 $ac_includes_default
10468 #include <$ac_header>
10469 _ACEOF
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472   (eval $ac_compile) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } &&
10476          { ac_try='test -s conftest.$ac_objext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   ac_header_compiler=yes
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_header_compiler=no
10488 fi
10489 rm -f conftest.$ac_objext conftest.$ac_ext
10490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 echo "${ECHO_T}$ac_header_compiler" >&6
10492
10493 # Is the header present?
10494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10496 cat >conftest.$ac_ext <<_ACEOF
10497 #line $LINENO "configure"
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503 #include <$ac_header>
10504 _ACEOF
10505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } >/dev/null; then
10513   if test -s conftest.err; then
10514     ac_cpp_err=$ac_cxx_preproc_warn_flag
10515   else
10516     ac_cpp_err=
10517   fi
10518 else
10519   ac_cpp_err=yes
10520 fi
10521 if test -z "$ac_cpp_err"; then
10522   ac_header_preproc=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527   ac_header_preproc=no
10528 fi
10529 rm -f conftest.err conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 echo "${ECHO_T}$ac_header_preproc" >&6
10532
10533 # So?  What about this header?
10534 case $ac_header_compiler:$ac_header_preproc in
10535   yes:no )
10536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10540     (
10541       cat <<\_ASBOX
10542 ## ------------------------------------ ##
10543 ## Report this to bug-autoconf@gnu.org. ##
10544 ## ------------------------------------ ##
10545 _ASBOX
10546     ) |
10547       sed "s/^/$as_me: WARNING:     /" >&2
10548     ;;
10549   no:yes )
10550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10552     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10556     (
10557       cat <<\_ASBOX
10558 ## ------------------------------------ ##
10559 ## Report this to bug-autoconf@gnu.org. ##
10560 ## ------------------------------------ ##
10561 _ASBOX
10562     ) |
10563       sed "s/^/$as_me: WARNING:     /" >&2
10564     ;;
10565 esac
10566 echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   eval "$as_ac_Header=$ac_header_preproc"
10572 fi
10573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10575
10576 fi
10577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10578   cat >>confdefs.h <<_ACEOF
10579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10580 _ACEOF
10581  has_js_header=1
10582 else
10583   has_js_header=0
10584 fi
10585
10586 done
10587
10588     if test $has_js_header = 0; then
10589       { { echo "$as_me:$LINENO: error: required file jsapi.h not found" >&5
10590 echo "$as_me: error: required file jsapi.h not found" >&2;}
10591    { (exit 1); exit 1; }; }
10592     fi
10593   else
10594     { { echo "$as_me:$LINENO: error: JavaScript library not found" >&5
10595 echo "$as_me: error: JavaScript library not found" >&2;}
10596    { (exit 1); exit 1; }; }
10597   fi
10598 fi
10599
10600
10601
10602 for ac_func in ftime gettimeofday
10603 do
10604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605 echo "$as_me:$LINENO: checking for $ac_func" >&5
10606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_var+set}\" = set"; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   cat >conftest.$ac_ext <<_ACEOF
10611 #line $LINENO "configure"
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617 /* System header to define __stub macros and hopefully few prototypes,
10618     which can conflict with char $ac_func (); below.
10619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10620     <limits.h> exists even on freestanding compilers.  */
10621 #ifdef __STDC__
10622 # include <limits.h>
10623 #else
10624 # include <assert.h>
10625 #endif
10626 /* Override any gcc2 internal prototype to avoid an error.  */
10627 #ifdef __cplusplus
10628 extern "C"
10629 {
10630 #endif
10631 /* We use char because int might match the return type of a gcc2
10632    builtin and then its argument prototype would still apply.  */
10633 char $ac_func ();
10634 /* The GNU C library defines this for functions which it implements
10635     to always fail with ENOSYS.  Some functions are actually named
10636     something starting with __ and the normal name is an alias.  */
10637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10638 choke me
10639 #else
10640 char (*f) () = $ac_func;
10641 #endif
10642 #ifdef __cplusplus
10643 }
10644 #endif
10645
10646 int
10647 main ()
10648 {
10649 return f != $ac_func;
10650   ;
10651   return 0;
10652 }
10653 _ACEOF
10654 rm -f conftest.$ac_objext conftest$ac_exeext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656   (eval $ac_link) 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); } &&
10660          { ac_try='test -s conftest$ac_exeext'
10661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662   (eval $ac_try) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); }; }; then
10666   eval "$as_ac_var=yes"
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671 eval "$as_ac_var=no"
10672 fi
10673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10674 fi
10675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10677 if test `eval echo '${'$as_ac_var'}'` = yes; then
10678   cat >>confdefs.h <<_ACEOF
10679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10680 _ACEOF
10681  break
10682 fi
10683 done
10684
10685
10686 for ac_func in mtrace
10687 do
10688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10689 echo "$as_me:$LINENO: checking for $ac_func" >&5
10690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10691 if eval "test \"\${$as_ac_var+set}\" = set"; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   cat >conftest.$ac_ext <<_ACEOF
10695 #line $LINENO "configure"
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701 /* System header to define __stub macros and hopefully few prototypes,
10702     which can conflict with char $ac_func (); below.
10703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704     <limits.h> exists even on freestanding compilers.  */
10705 #ifdef __STDC__
10706 # include <limits.h>
10707 #else
10708 # include <assert.h>
10709 #endif
10710 /* Override any gcc2 internal prototype to avoid an error.  */
10711 #ifdef __cplusplus
10712 extern "C"
10713 {
10714 #endif
10715 /* We use char because int might match the return type of a gcc2
10716    builtin and then its argument prototype would still apply.  */
10717 char $ac_func ();
10718 /* The GNU C library defines this for functions which it implements
10719     to always fail with ENOSYS.  Some functions are actually named
10720     something starting with __ and the normal name is an alias.  */
10721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10722 choke me
10723 #else
10724 char (*f) () = $ac_func;
10725 #endif
10726 #ifdef __cplusplus
10727 }
10728 #endif
10729
10730 int
10731 main ()
10732 {
10733 return f != $ac_func;
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740   (eval $ac_link) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } &&
10744          { ac_try='test -s conftest$ac_exeext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   eval "$as_ac_var=yes"
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 eval "$as_ac_var=no"
10756 fi
10757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10758 fi
10759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10761 if test `eval echo '${'$as_ac_var'}'` = yes; then
10762   cat >>confdefs.h <<_ACEOF
10763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10764 _ACEOF
10765
10766 fi
10767 done
10768
10769
10770
10771 for ac_func in setvbuf
10772 do
10773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10776 if eval "test \"\${$as_ac_var+set}\" = set"; then
10777   echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779   cat >conftest.$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10781 /* confdefs.h.  */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h.  */
10786 /* System header to define __stub macros and hopefully few prototypes,
10787     which can conflict with char $ac_func (); below.
10788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10789     <limits.h> exists even on freestanding compilers.  */
10790 #ifdef __STDC__
10791 # include <limits.h>
10792 #else
10793 # include <assert.h>
10794 #endif
10795 /* Override any gcc2 internal prototype to avoid an error.  */
10796 #ifdef __cplusplus
10797 extern "C"
10798 {
10799 #endif
10800 /* We use char because int might match the return type of a gcc2
10801    builtin and then its argument prototype would still apply.  */
10802 char $ac_func ();
10803 /* The GNU C library defines this for functions which it implements
10804     to always fail with ENOSYS.  Some functions are actually named
10805     something starting with __ and the normal name is an alias.  */
10806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10807 choke me
10808 #else
10809 char (*f) () = $ac_func;
10810 #endif
10811 #ifdef __cplusplus
10812 }
10813 #endif
10814
10815 int
10816 main ()
10817 {
10818 return f != $ac_func;
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10825   (eval $ac_link) 2>&5
10826   ac_status=$?
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } &&
10829          { ac_try='test -s conftest$ac_exeext'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; }; then
10835   eval "$as_ac_var=yes"
10836 else
10837   echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840 eval "$as_ac_var=no"
10841 fi
10842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10843 fi
10844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10846 if test `eval echo '${'$as_ac_var'}'` = yes; then
10847   cat >>confdefs.h <<_ACEOF
10848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10849 _ACEOF
10850
10851 fi
10852 done
10853
10854
10855
10856 echo "$as_me:$LINENO: checking for isnan" >&5
10857 echo $ECHO_N "checking for isnan... $ECHO_C" >&6
10858 if test "${ac_cv_func_isnan+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   cat >conftest.$ac_ext <<_ACEOF
10862 #line $LINENO "configure"
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868 /* System header to define __stub macros and hopefully few prototypes,
10869     which can conflict with char isnan (); below.
10870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871     <limits.h> exists even on freestanding compilers.  */
10872 #ifdef __STDC__
10873 # include <limits.h>
10874 #else
10875 # include <assert.h>
10876 #endif
10877 /* Override any gcc2 internal prototype to avoid an error.  */
10878 #ifdef __cplusplus
10879 extern "C"
10880 {
10881 #endif
10882 /* We use char because int might match the return type of a gcc2
10883    builtin and then its argument prototype would still apply.  */
10884 char isnan ();
10885 /* The GNU C library defines this for functions which it implements
10886     to always fail with ENOSYS.  Some functions are actually named
10887     something starting with __ and the normal name is an alias.  */
10888 #if defined (__stub_isnan) || defined (__stub___isnan)
10889 choke me
10890 #else
10891 char (*f) () = isnan;
10892 #endif
10893 #ifdef __cplusplus
10894 }
10895 #endif
10896
10897 int
10898 main ()
10899 {
10900 return f != isnan;
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907   (eval $ac_link) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -s conftest$ac_exeext'
10912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913   (eval $ac_try) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; }; then
10917   ac_cv_func_isnan=yes
10918 else
10919   echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922 ac_cv_func_isnan=no
10923 fi
10924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
10927 echo "${ECHO_T}$ac_cv_func_isnan" >&6
10928 if test $ac_cv_func_isnan = yes; then
10929   has_isnan=1;
10930 cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_ISNAN 1
10932 _ACEOF
10933
10934 else
10935   has_isnan=0
10936 fi
10937
10938 echo "$as_me:$LINENO: checking for isinf" >&5
10939 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10940 if test "${ac_cv_func_isinf+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943   cat >conftest.$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10945 /* confdefs.h.  */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h.  */
10950 /* System header to define __stub macros and hopefully few prototypes,
10951     which can conflict with char isinf (); below.
10952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10953     <limits.h> exists even on freestanding compilers.  */
10954 #ifdef __STDC__
10955 # include <limits.h>
10956 #else
10957 # include <assert.h>
10958 #endif
10959 /* Override any gcc2 internal prototype to avoid an error.  */
10960 #ifdef __cplusplus
10961 extern "C"
10962 {
10963 #endif
10964 /* We use char because int might match the return type of a gcc2
10965    builtin and then its argument prototype would still apply.  */
10966 char isinf ();
10967 /* The GNU C library defines this for functions which it implements
10968     to always fail with ENOSYS.  Some functions are actually named
10969     something starting with __ and the normal name is an alias.  */
10970 #if defined (__stub_isinf) || defined (__stub___isinf)
10971 choke me
10972 #else
10973 char (*f) () = isinf;
10974 #endif
10975 #ifdef __cplusplus
10976 }
10977 #endif
10978
10979 int
10980 main ()
10981 {
10982 return f != isinf;
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989   (eval $ac_link) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } &&
10993          { ac_try='test -s conftest$ac_exeext'
10994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995   (eval $ac_try) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; }; then
10999   ac_cv_func_isinf=yes
11000 else
11001   echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 ac_cv_func_isinf=no
11005 fi
11006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11007 fi
11008 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11009 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11010 if test $ac_cv_func_isinf = yes; then
11011   has_isinf=1;
11012 cat >>confdefs.h <<\_ACEOF
11013 #define HAVE_ISINF 1
11014 _ACEOF
11015
11016 else
11017   has_isinf=0
11018 fi
11019
11020 echo "$as_me:$LINENO: checking for finite" >&5
11021 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11022 if test "${ac_cv_func_finite+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 /* System header to define __stub macros and hopefully few prototypes,
11033     which can conflict with char finite (); below.
11034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035     <limits.h> exists even on freestanding compilers.  */
11036 #ifdef __STDC__
11037 # include <limits.h>
11038 #else
11039 # include <assert.h>
11040 #endif
11041 /* Override any gcc2 internal prototype to avoid an error.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 {
11045 #endif
11046 /* We use char because int might match the return type of a gcc2
11047    builtin and then its argument prototype would still apply.  */
11048 char finite ();
11049 /* The GNU C library defines this for functions which it implements
11050     to always fail with ENOSYS.  Some functions are actually named
11051     something starting with __ and the normal name is an alias.  */
11052 #if defined (__stub_finite) || defined (__stub___finite)
11053 choke me
11054 #else
11055 char (*f) () = finite;
11056 #endif
11057 #ifdef __cplusplus
11058 }
11059 #endif
11060
11061 int
11062 main ()
11063 {
11064 return f != finite;
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071   (eval $ac_link) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -s conftest$ac_exeext'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   ac_cv_func_finite=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_cv_func_finite=no
11087 fi
11088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11089 fi
11090 echo "$as_me:$LINENO: result: $ac_cv_func_finite" >&5
11091 echo "${ECHO_T}$ac_cv_func_finite" >&6
11092 if test $ac_cv_func_finite = yes; then
11093   has_finite=1;
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_FINITE 1
11096 _ACEOF
11097
11098 else
11099   has_finite=0
11100 fi
11101
11102
11103 if test $has_isnan = 0; then
11104   echo "$as_me:$LINENO: checking for macro isnan" >&5
11105 echo $ECHO_N "checking for macro isnan... $ECHO_C" >&6
11106   cat >conftest.$ac_ext <<_ACEOF
11107 #line $LINENO "configure"
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 #include <math.h>
11114 int
11115 main ()
11116 {
11117 { int foo; foo = isnan(0); }
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124   (eval $ac_link) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } &&
11128          { ac_try='test -s conftest$ac_exeext'
11129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130   (eval $ac_try) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; }; then
11134   has_isnan=1
11135 else
11136   echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11138
11139 has_isnan=0
11140 fi
11141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11142   if test $has_isnan = 1; then
11143     echo "$as_me:$LINENO: result: yes" >&5
11144 echo "${ECHO_T}yes" >&6
11145
11146 cat >>confdefs.h <<\_ACEOF
11147 #define HAVE_ISNAN 1
11148 _ACEOF
11149
11150   else
11151     echo "$as_me:$LINENO: result: no" >&5
11152 echo "${ECHO_T}no" >&6
11153   fi
11154 fi
11155
11156 if test $has_isinf = 0; then
11157   echo "$as_me:$LINENO: checking for macro isinf" >&5
11158 echo $ECHO_N "checking for macro isinf... $ECHO_C" >&6
11159   cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166 #include <math.h>
11167 int
11168 main ()
11169 {
11170 { int foo; foo = isinf(0); }
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177   (eval $ac_link) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -s conftest$ac_exeext'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   has_isinf=1
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 has_isinf=0
11193 fi
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11195   if test $has_isinf = 1; then
11196     echo "$as_me:$LINENO: result: yes" >&5
11197 echo "${ECHO_T}yes" >&6
11198
11199 cat >>confdefs.h <<\_ACEOF
11200 #define HAVE_ISINF 1
11201 _ACEOF
11202
11203   else
11204     echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6
11206   fi
11207 fi
11208
11209 if test $has_finite = 0; then
11210   echo "$as_me:$LINENO: checking for macro finite" >&5
11211 echo $ECHO_N "checking for macro finite... $ECHO_C" >&6
11212   cat >conftest.$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 #include <math.h>
11220 int
11221 main ()
11222 {
11223 { int foo; foo = finite(0); }
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11230   (eval $ac_link) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } &&
11234          { ac_try='test -s conftest$ac_exeext'
11235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236   (eval $ac_try) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; }; then
11240   has_finite=1
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 has_finite=0
11246 fi
11247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11248   if test $has_finite = 1; then
11249     echo "$as_me:$LINENO: result: yes" >&5
11250 echo "${ECHO_T}yes" >&6
11251
11252 cat >>confdefs.h <<\_ACEOF
11253 #define HAVE_FINITE 1
11254 _ACEOF
11255
11256   else
11257     echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6
11259   fi
11260 fi
11261
11262 if test "${ac_cv_header_wchar_h+set}" = set; then
11263   echo "$as_me:$LINENO: checking for wchar.h" >&5
11264 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
11265 if test "${ac_cv_header_wchar_h+set}" = set; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 fi
11268 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
11269 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
11270 else
11271   # Is the header compilable?
11272 echo "$as_me:$LINENO: checking wchar.h usability" >&5
11273 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
11274 cat >conftest.$ac_ext <<_ACEOF
11275 #line $LINENO "configure"
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 $ac_includes_default
11282 #include <wchar.h>
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286   (eval $ac_compile) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -s conftest.$ac_objext'
11291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292   (eval $ac_try) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   ac_header_compiler=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_header_compiler=no
11302 fi
11303 rm -f conftest.$ac_objext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11305 echo "${ECHO_T}$ac_header_compiler" >&6
11306
11307 # Is the header present?
11308 echo "$as_me:$LINENO: checking wchar.h presence" >&5
11309 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
11310 cat >conftest.$ac_ext <<_ACEOF
11311 #line $LINENO "configure"
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 #include <wchar.h>
11318 _ACEOF
11319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11321   ac_status=$?
11322   grep -v '^ *+' conftest.er1 >conftest.err
11323   rm -f conftest.er1
11324   cat conftest.err >&5
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } >/dev/null; then
11327   if test -s conftest.err; then
11328     ac_cpp_err=$ac_cxx_preproc_warn_flag
11329   else
11330     ac_cpp_err=
11331   fi
11332 else
11333   ac_cpp_err=yes
11334 fi
11335 if test -z "$ac_cpp_err"; then
11336   ac_header_preproc=yes
11337 else
11338   echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341   ac_header_preproc=no
11342 fi
11343 rm -f conftest.err conftest.$ac_ext
11344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6
11346
11347 # So?  What about this header?
11348 case $ac_header_compiler:$ac_header_preproc in
11349   yes:no )
11350     { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
11353 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
11354     (
11355       cat <<\_ASBOX
11356 ## ------------------------------------ ##
11357 ## Report this to bug-autoconf@gnu.org. ##
11358 ## ------------------------------------ ##
11359 _ASBOX
11360     ) |
11361       sed "s/^/$as_me: WARNING:     /" >&2
11362     ;;
11363   no:yes )
11364     { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
11365 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
11367 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
11369 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
11370     (
11371       cat <<\_ASBOX
11372 ## ------------------------------------ ##
11373 ## Report this to bug-autoconf@gnu.org. ##
11374 ## ------------------------------------ ##
11375 _ASBOX
11376     ) |
11377       sed "s/^/$as_me: WARNING:     /" >&2
11378     ;;
11379 esac
11380 echo "$as_me:$LINENO: checking for wchar.h" >&5
11381 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
11382 if test "${ac_cv_header_wchar_h+set}" = set; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   ac_cv_header_wchar_h=$ac_header_preproc
11386 fi
11387 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
11388 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
11389
11390 fi
11391 if test $ac_cv_header_wchar_h = yes; then
11392   has_wchar=1
11393 else
11394   has_wchar=0
11395 fi
11396
11397
11398
11399 if test $has_wchar = 1; then
11400
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_WCHAR_H 1
11403 _ACEOF
11404
11405
11406
11407 for ac_func in wcsxfrm wcscmp
11408 do
11409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11412 if eval "test \"\${$as_ac_var+set}\" = set"; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 /* System header to define __stub macros and hopefully few prototypes,
11423     which can conflict with char $ac_func (); below.
11424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11425     <limits.h> exists even on freestanding compilers.  */
11426 #ifdef __STDC__
11427 # include <limits.h>
11428 #else
11429 # include <assert.h>
11430 #endif
11431 /* Override any gcc2 internal prototype to avoid an error.  */
11432 #ifdef __cplusplus
11433 extern "C"
11434 {
11435 #endif
11436 /* We use char because int might match the return type of a gcc2
11437    builtin and then its argument prototype would still apply.  */
11438 char $ac_func ();
11439 /* The GNU C library defines this for functions which it implements
11440     to always fail with ENOSYS.  Some functions are actually named
11441     something starting with __ and the normal name is an alias.  */
11442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11443 choke me
11444 #else
11445 char (*f) () = $ac_func;
11446 #endif
11447 #ifdef __cplusplus
11448 }
11449 #endif
11450
11451 int
11452 main ()
11453 {
11454 return f != $ac_func;
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461   (eval $ac_link) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } &&
11465          { ac_try='test -s conftest$ac_exeext'
11466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467   (eval $ac_try) 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; }; then
11471   eval "$as_ac_var=yes"
11472 else
11473   echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 eval "$as_ac_var=no"
11477 fi
11478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11479 fi
11480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11482 if test `eval echo '${'$as_ac_var'}'` = yes; then
11483   cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11485 _ACEOF
11486
11487 fi
11488 done
11489
11490 fi
11491
11492
11493
11494
11495
11496
11497                                                                                                                         ac_config_files="$ac_config_files src/engine/sabcfg.h Makefile src/Makefile src/engine/Makefile src/command/Makefile src/command/sablot-config doc/Makefile doc/man/Makefile doc/misc/Makefile doc/apidoc/Makefile utils/Makefile utils/apidoc/Makefile"
11498 cat >confcache <<\_ACEOF
11499 # This file is a shell script that caches the results of configure
11500 # tests run on this system so they can be shared between configure
11501 # scripts and configure runs, see configure's option --config-cache.
11502 # It is not useful on other systems.  If it contains results you don't
11503 # want to keep, you may remove or edit it.
11504 #
11505 # config.status only pays attention to the cache file if you give it
11506 # the --recheck option to rerun configure.
11507 #
11508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11510 # following values.
11511
11512 _ACEOF
11513
11514 # The following way of writing the cache mishandles newlines in values,
11515 # but we know of no workaround that is simple, portable, and efficient.
11516 # So, don't put newlines in cache variables' values.
11517 # Ultrix sh set writes to stderr and can't be redirected directly,
11518 # and sets the high bit in the cache file unless we assign to the vars.
11519 {
11520   (set) 2>&1 |
11521     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11522     *ac_space=\ *)
11523       # `set' does not quote correctly, so add quotes (double-quote
11524       # substitution turns \\\\ into \\, and sed turns \\ into \).
11525       sed -n \
11526         "s/'/'\\\\''/g;
11527           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11528       ;;
11529     *)
11530       # `set' quotes correctly as required by POSIX, so do not add quotes.
11531       sed -n \
11532         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11533       ;;
11534     esac;
11535 } |
11536   sed '
11537      t clear
11538      : clear
11539      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11540      t end
11541      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11542      : end' >>confcache
11543 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11544   if test -w $cache_file; then
11545     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11546     cat confcache >$cache_file
11547   else
11548     echo "not updating unwritable cache $cache_file"
11549   fi
11550 fi
11551 rm -f confcache
11552
11553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11554 # Let make expand exec_prefix.
11555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11556
11557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11559 # trailing colons and then remove the whole line if VPATH becomes empty
11560 # (actually we leave an empty line to preserve line numbers).
11561 if test "x$srcdir" = x.; then
11562   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11563 s/:*\$(srcdir):*/:/;
11564 s/:*\${srcdir}:*/:/;
11565 s/:*@srcdir@:*/:/;
11566 s/^\([^=]*=[    ]*\):*/\1/;
11567 s/:*$//;
11568 s/^[^=]*=[      ]*$//;
11569 }'
11570 fi
11571
11572 DEFS=-DHAVE_CONFIG_H
11573
11574 ac_libobjs=
11575 ac_ltlibobjs=
11576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11577   # 1. Remove the extension, and $U if already installed.
11578   ac_i=`echo "$ac_i" |
11579          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11580   # 2. Add them.
11581   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11582   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11583 done
11584 LIBOBJS=$ac_libobjs
11585
11586 LTLIBOBJS=$ac_ltlibobjs
11587
11588
11589
11590 : ${CONFIG_STATUS=./config.status}
11591 ac_clean_files_save=$ac_clean_files
11592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11593 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11594 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11595 cat >$CONFIG_STATUS <<_ACEOF
11596 #! $SHELL
11597 # Generated by $as_me.
11598 # Run this file to recreate the current configuration.
11599 # Compiler output produced by configure, useful for debugging
11600 # configure, is in config.log if it exists.
11601
11602 debug=false
11603 ac_cs_recheck=false
11604 ac_cs_silent=false
11605 SHELL=\${CONFIG_SHELL-$SHELL}
11606 _ACEOF
11607
11608 cat >>$CONFIG_STATUS <<\_ACEOF
11609 ## --------------------- ##
11610 ## M4sh Initialization.  ##
11611 ## --------------------- ##
11612
11613 # Be Bourne compatible
11614 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11615   emulate sh
11616   NULLCMD=:
11617   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11618   # is contrary to our usage.  Disable this feature.
11619   alias -g '${1+"$@"}'='"$@"'
11620 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11621   set -o posix
11622 fi
11623
11624 # Support unset when possible.
11625 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11626   as_unset=unset
11627 else
11628   as_unset=false
11629 fi
11630
11631
11632 # Work around bugs in pre-3.0 UWIN ksh.
11633 $as_unset ENV MAIL MAILPATH
11634 PS1='$ '
11635 PS2='> '
11636 PS4='+ '
11637
11638 # NLS nuisances.
11639 for as_var in \
11640   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11641   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11642   LC_TELEPHONE LC_TIME
11643 do
11644   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11645     eval $as_var=C; export $as_var
11646   else
11647     $as_unset $as_var
11648   fi
11649 done
11650
11651 # Required to use basename.
11652 if expr a : '\(a\)' >/dev/null 2>&1; then
11653   as_expr=expr
11654 else
11655   as_expr=false
11656 fi
11657
11658 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11659   as_basename=basename
11660 else
11661   as_basename=false
11662 fi
11663
11664
11665 # Name of the executable.
11666 as_me=`$as_basename "$0" ||
11667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11668          X"$0" : 'X\(//\)$' \| \
11669          X"$0" : 'X\(/\)$' \| \
11670          .     : '\(.\)' 2>/dev/null ||
11671 echo X/"$0" |
11672     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11673           /^X\/\(\/\/\)$/{ s//\1/; q; }
11674           /^X\/\(\/\).*/{ s//\1/; q; }
11675           s/.*/./; q'`
11676
11677
11678 # PATH needs CR, and LINENO needs CR and PATH.
11679 # Avoid depending upon Character Ranges.
11680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11683 as_cr_digits='0123456789'
11684 as_cr_alnum=$as_cr_Letters$as_cr_digits
11685
11686 # The user is always right.
11687 if test "${PATH_SEPARATOR+set}" != set; then
11688   echo "#! /bin/sh" >conf$$.sh
11689   echo  "exit 0"   >>conf$$.sh
11690   chmod +x conf$$.sh
11691   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11692     PATH_SEPARATOR=';'
11693   else
11694     PATH_SEPARATOR=:
11695   fi
11696   rm -f conf$$.sh
11697 fi
11698
11699
11700   as_lineno_1=$LINENO
11701   as_lineno_2=$LINENO
11702   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11703   test "x$as_lineno_1" != "x$as_lineno_2" &&
11704   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11705   # Find who we are.  Look in the path if we contain no path at all
11706   # relative or not.
11707   case $0 in
11708     *[\\/]* ) as_myself=$0 ;;
11709     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11711 do
11712   IFS=$as_save_IFS
11713   test -z "$as_dir" && as_dir=.
11714   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11715 done
11716
11717        ;;
11718   esac
11719   # We did not find ourselves, most probably we were run as `sh COMMAND'
11720   # in which case we are not to be found in the path.
11721   if test "x$as_myself" = x; then
11722     as_myself=$0
11723   fi
11724   if test ! -f "$as_myself"; then
11725     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11726 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11727    { (exit 1); exit 1; }; }
11728   fi
11729   case $CONFIG_SHELL in
11730   '')
11731     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11733 do
11734   IFS=$as_save_IFS
11735   test -z "$as_dir" && as_dir=.
11736   for as_base in sh bash ksh sh5; do
11737          case $as_dir in
11738          /*)
11739            if ("$as_dir/$as_base" -c '
11740   as_lineno_1=$LINENO
11741   as_lineno_2=$LINENO
11742   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11743   test "x$as_lineno_1" != "x$as_lineno_2" &&
11744   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11745              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11746              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11747              CONFIG_SHELL=$as_dir/$as_base
11748              export CONFIG_SHELL
11749              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11750            fi;;
11751          esac
11752        done
11753 done
11754 ;;
11755   esac
11756
11757   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11758   # uniformly replaced by the line number.  The first 'sed' inserts a
11759   # line-number line before each line; the second 'sed' does the real
11760   # work.  The second script uses 'N' to pair each line-number line
11761   # with the numbered line, and appends trailing '-' during
11762   # substitution so that $LINENO is not a special case at line end.
11763   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11764   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11765   sed '=' <$as_myself |
11766     sed '
11767       N
11768       s,$,-,
11769       : loop
11770       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11771       t loop
11772       s,-$,,
11773       s,^['$as_cr_digits']*\n,,
11774     ' >$as_me.lineno &&
11775   chmod +x $as_me.lineno ||
11776     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11777 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11778    { (exit 1); exit 1; }; }
11779
11780   # Don't try to exec as it changes $[0], causing all sort of problems
11781   # (the dirname of $[0] is not the place where we might find the
11782   # original and so on.  Autoconf is especially sensible to this).
11783   . ./$as_me.lineno
11784   # Exit status is that of the last command.
11785   exit
11786 }
11787
11788
11789 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11790   *c*,-n*) ECHO_N= ECHO_C='
11791 ' ECHO_T='      ' ;;
11792   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11793   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11794 esac
11795
11796 if expr a : '\(a\)' >/dev/null 2>&1; then
11797   as_expr=expr
11798 else
11799   as_expr=false
11800 fi
11801
11802 rm -f conf$$ conf$$.exe conf$$.file
11803 echo >conf$$.file
11804 if ln -s conf$$.file conf$$ 2>/dev/null; then
11805   # We could just check for DJGPP; but this test a) works b) is more generic
11806   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11807   if test -f conf$$.exe; then
11808     # Don't use ln at all; we don't have any links
11809     as_ln_s='cp -p'
11810   else
11811     as_ln_s='ln -s'
11812   fi
11813 elif ln conf$$.file conf$$ 2>/dev/null; then
11814   as_ln_s=ln
11815 else
11816   as_ln_s='cp -p'
11817 fi
11818 rm -f conf$$ conf$$.exe conf$$.file
11819
11820 if mkdir -p . 2>/dev/null; then
11821   as_mkdir_p=:
11822 else
11823   as_mkdir_p=false
11824 fi
11825
11826 as_executable_p="test -f"
11827
11828 # Sed expression to map a string onto a valid CPP name.
11829 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11830
11831 # Sed expression to map a string onto a valid variable name.
11832 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11833
11834
11835 # IFS
11836 # We need space, tab and new line, in precisely that order.
11837 as_nl='
11838 '
11839 IFS="   $as_nl"
11840
11841 # CDPATH.
11842 $as_unset CDPATH
11843
11844 exec 6>&1
11845
11846 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11847 # report actual input values of CONFIG_FILES etc. instead of their
11848 # values after options handling.  Logging --version etc. is OK.
11849 exec 5>>config.log
11850 {
11851   echo
11852   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11853 ## Running $as_me. ##
11854 _ASBOX
11855 } >&5
11856 cat >&5 <<_CSEOF
11857
11858 This file was extended by $as_me, which was
11859 generated by GNU Autoconf 2.57.  Invocation command line was
11860
11861   CONFIG_FILES    = $CONFIG_FILES
11862   CONFIG_HEADERS  = $CONFIG_HEADERS
11863   CONFIG_LINKS    = $CONFIG_LINKS
11864   CONFIG_COMMANDS = $CONFIG_COMMANDS
11865   $ $0 $@
11866
11867 _CSEOF
11868 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11869 echo >&5
11870 _ACEOF
11871
11872 # Files that config.status was made for.
11873 if test -n "$ac_config_files"; then
11874   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11875 fi
11876
11877 if test -n "$ac_config_headers"; then
11878   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11879 fi
11880
11881 if test -n "$ac_config_links"; then
11882   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11883 fi
11884
11885 if test -n "$ac_config_commands"; then
11886   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11887 fi
11888
11889 cat >>$CONFIG_STATUS <<\_ACEOF
11890
11891 ac_cs_usage="\
11892 \`$as_me' instantiates files from templates according to the
11893 current configuration.
11894
11895 Usage: $0 [OPTIONS] [FILE]...
11896
11897   -h, --help       print this help, then exit
11898   -V, --version    print version number, then exit
11899   -q, --quiet      do not print progress messages
11900   -d, --debug      don't remove temporary files
11901       --recheck    update $as_me by reconfiguring in the same conditions
11902   --file=FILE[:TEMPLATE]
11903                    instantiate the configuration file FILE
11904   --header=FILE[:TEMPLATE]
11905                    instantiate the configuration header FILE
11906
11907 Configuration files:
11908 $config_files
11909
11910 Configuration headers:
11911 $config_headers
11912
11913 Configuration commands:
11914 $config_commands
11915
11916 Report bugs to <bug-autoconf@gnu.org>."
11917 _ACEOF
11918
11919 cat >>$CONFIG_STATUS <<_ACEOF
11920 ac_cs_version="\\
11921 config.status
11922 configured by $0, generated by GNU Autoconf 2.57,
11923   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11924
11925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11926 Free Software Foundation, Inc.
11927 This config.status script is free software; the Free Software Foundation
11928 gives unlimited permission to copy, distribute and modify it."
11929 srcdir=$srcdir
11930 INSTALL="$INSTALL"
11931 _ACEOF
11932
11933 cat >>$CONFIG_STATUS <<\_ACEOF
11934 # If no file are specified by the user, then we need to provide default
11935 # value.  By we need to know if files were specified by the user.
11936 ac_need_defaults=:
11937 while test $# != 0
11938 do
11939   case $1 in
11940   --*=*)
11941     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11942     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11943     ac_shift=:
11944     ;;
11945   -*)
11946     ac_option=$1
11947     ac_optarg=$2
11948     ac_shift=shift
11949     ;;
11950   *) # This is not an option, so the user has probably given explicit
11951      # arguments.
11952      ac_option=$1
11953      ac_need_defaults=false;;
11954   esac
11955
11956   case $ac_option in
11957   # Handling of the options.
11958 _ACEOF
11959 cat >>$CONFIG_STATUS <<\_ACEOF
11960   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11961     ac_cs_recheck=: ;;
11962   --version | --vers* | -V )
11963     echo "$ac_cs_version"; exit 0 ;;
11964   --he | --h)
11965     # Conflict between --help and --header
11966     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11967 Try \`$0 --help' for more information." >&5
11968 echo "$as_me: error: ambiguous option: $1
11969 Try \`$0 --help' for more information." >&2;}
11970    { (exit 1); exit 1; }; };;
11971   --help | --hel | -h )
11972     echo "$ac_cs_usage"; exit 0 ;;
11973   --debug | --d* | -d )
11974     debug=: ;;
11975   --file | --fil | --fi | --f )
11976     $ac_shift
11977     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11978     ac_need_defaults=false;;
11979   --header | --heade | --head | --hea )
11980     $ac_shift
11981     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11982     ac_need_defaults=false;;
11983   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11984   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11985     ac_cs_silent=: ;;
11986
11987   # This is an error.
11988   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11989 Try \`$0 --help' for more information." >&5
11990 echo "$as_me: error: unrecognized option: $1
11991 Try \`$0 --help' for more information." >&2;}
11992    { (exit 1); exit 1; }; } ;;
11993
11994   *) ac_config_targets="$ac_config_targets $1" ;;
11995
11996   esac
11997   shift
11998 done
11999
12000 ac_configure_extra_args=
12001
12002 if $ac_cs_silent; then
12003   exec 6>/dev/null
12004   ac_configure_extra_args="$ac_configure_extra_args --silent"
12005 fi
12006
12007 _ACEOF
12008 cat >>$CONFIG_STATUS <<_ACEOF
12009 if \$ac_cs_recheck; then
12010   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12011   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12012 fi
12013
12014 _ACEOF
12015
12016 cat >>$CONFIG_STATUS <<_ACEOF
12017 #
12018 # INIT-COMMANDS section.
12019 #
12020
12021 AMDEP_TRUE="$AMDEP_TRUE"
12022 ac_aux_dir="$ac_aux_dir"
12023
12024 _ACEOF
12025
12026
12027
12028 cat >>$CONFIG_STATUS <<\_ACEOF
12029 for ac_config_target in $ac_config_targets
12030 do
12031   case "$ac_config_target" in
12032   # Handling of arguments.
12033   "src/engine/sabcfg.h" ) CONFIG_FILES="$CONFIG_FILES src/engine/sabcfg.h" ;;
12034   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12035   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12036   "src/engine/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/engine/Makefile" ;;
12037   "src/command/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/command/Makefile" ;;
12038   "src/command/sablot-config" ) CONFIG_FILES="$CONFIG_FILES src/command/sablot-config" ;;
12039   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12040   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
12041   "doc/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
12042   "doc/apidoc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/apidoc/Makefile" ;;
12043   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
12044   "utils/apidoc/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/apidoc/Makefile" ;;
12045   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12046   "autocfg/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS autocfg/config.h:autocfg/config.h.in" ;;
12047   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12048 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12049    { (exit 1); exit 1; }; };;
12050   esac
12051 done
12052
12053 # If the user did not use the arguments to specify the items to instantiate,
12054 # then the envvar interface is used.  Set only those that are not.
12055 # We use the long form for the default assignment because of an extremely
12056 # bizarre bug on SunOS 4.1.3.
12057 if $ac_need_defaults; then
12058   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12059   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12060   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12061 fi
12062
12063 # Have a temporary directory for convenience.  Make it in the build tree
12064 # simply because there is no reason to put it here, and in addition,
12065 # creating and moving files from /tmp can sometimes cause problems.
12066 # Create a temporary directory, and hook for its removal unless debugging.
12067 $debug ||
12068 {
12069   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12070   trap '{ (exit 1); exit 1; }' 1 2 13 15
12071 }
12072
12073 # Create a (secure) tmp directory for tmp files.
12074
12075 {
12076   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12077   test -n "$tmp" && test -d "$tmp"
12078 }  ||
12079 {
12080   tmp=./confstat$$-$RANDOM
12081   (umask 077 && mkdir $tmp)
12082 } ||
12083 {
12084    echo "$me: cannot create a temporary directory in ." >&2
12085    { (exit 1); exit 1; }
12086 }
12087
12088 _ACEOF
12089
12090 cat >>$CONFIG_STATUS <<_ACEOF
12091
12092 #
12093 # CONFIG_FILES section.
12094 #
12095
12096 # No need to generate the scripts if there are no CONFIG_FILES.
12097 # This happens for instance when ./config.status config.h
12098 if test -n "\$CONFIG_FILES"; then
12099   # Protect against being on the right side of a sed subst in config.status.
12100   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12101    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12102 s,@SHELL@,$SHELL,;t t
12103 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12109 s,@exec_prefix@,$exec_prefix,;t t
12110 s,@prefix@,$prefix,;t t
12111 s,@program_transform_name@,$program_transform_name,;t t
12112 s,@bindir@,$bindir,;t t
12113 s,@sbindir@,$sbindir,;t t
12114 s,@libexecdir@,$libexecdir,;t t
12115 s,@datadir@,$datadir,;t t
12116 s,@sysconfdir@,$sysconfdir,;t t
12117 s,@sharedstatedir@,$sharedstatedir,;t t
12118 s,@localstatedir@,$localstatedir,;t t
12119 s,@libdir@,$libdir,;t t
12120 s,@includedir@,$includedir,;t t
12121 s,@oldincludedir@,$oldincludedir,;t t
12122 s,@infodir@,$infodir,;t t
12123 s,@mandir@,$mandir,;t t
12124 s,@build_alias@,$build_alias,;t t
12125 s,@host_alias@,$host_alias,;t t
12126 s,@target_alias@,$target_alias,;t t
12127 s,@DEFS@,$DEFS,;t t
12128 s,@ECHO_C@,$ECHO_C,;t t
12129 s,@ECHO_N@,$ECHO_N,;t t
12130 s,@ECHO_T@,$ECHO_T,;t t
12131 s,@LIBS@,$LIBS,;t t
12132 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12133 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12134 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12135 s,@PACKAGE@,$PACKAGE,;t t
12136 s,@VERSION@,$VERSION,;t t
12137 s,@EXEEXT@,$EXEEXT,;t t
12138 s,@OBJEXT@,$OBJEXT,;t t
12139 s,@ACLOCAL@,$ACLOCAL,;t t
12140 s,@AUTOCONF@,$AUTOCONF,;t t
12141 s,@AUTOMAKE@,$AUTOMAKE,;t t
12142 s,@AUTOHEADER@,$AUTOHEADER,;t t
12143 s,@MAKEINFO@,$MAKEINFO,;t t
12144 s,@AMTAR@,$AMTAR,;t t
12145 s,@install_sh@,$install_sh,;t t
12146 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12147 s,@AWK@,$AWK,;t t
12148 s,@SET_MAKE@,$SET_MAKE,;t t
12149 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12150 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12151 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12152 s,@DEPDIR@,$DEPDIR,;t t
12153 s,@build@,$build,;t t
12154 s,@build_cpu@,$build_cpu,;t t
12155 s,@build_vendor@,$build_vendor,;t t
12156 s,@build_os@,$build_os,;t t
12157 s,@host@,$host,;t t
12158 s,@host_cpu@,$host_cpu,;t t
12159 s,@host_vendor@,$host_vendor,;t t
12160 s,@host_os@,$host_os,;t t
12161 s,@CC@,$CC,;t t
12162 s,@CFLAGS@,$CFLAGS,;t t
12163 s,@LDFLAGS@,$LDFLAGS,;t t
12164 s,@CPPFLAGS@,$CPPFLAGS,;t t
12165 s,@ac_ct_CC@,$ac_ct_CC,;t t
12166 s,@am__include@,$am__include,;t t
12167 s,@am__quote@,$am__quote,;t t
12168 s,@CCDEPMODE@,$CCDEPMODE,;t t
12169 s,@LN_S@,$LN_S,;t t
12170 s,@ECHO@,$ECHO,;t t
12171 s,@RANLIB@,$RANLIB,;t t
12172 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12173 s,@STRIP@,$STRIP,;t t
12174 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12175 s,@CPP@,$CPP,;t t
12176 s,@EGREP@,$EGREP,;t t
12177 s,@LIBTOOL@,$LIBTOOL,;t t
12178 s,@CXX@,$CXX,;t t
12179 s,@CXXFLAGS@,$CXXFLAGS,;t t
12180 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12181 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
12182 s,@CXXCPP@,$CXXCPP,;t t
12183 s,@CXXWARNING_FLAGS@,$CXXWARNING_FLAGS,;t t
12184 s,@PERL_PROG@,$PERL_PROG,;t t
12185 s,@BUILD_APIDOCS@,$BUILD_APIDOCS,;t t
12186 s,@HTML_DIR@,$HTML_DIR,;t t
12187 s,@EXPAT_LIBS@,$EXPAT_LIBS,;t t
12188 s,@sabcfg_types_h@,$sabcfg_types_h,;t t
12189 s,@ICONV_LIB@,$ICONV_LIB,;t t
12190 s,@has_perl@,$has_perl,;t t
12191 s,@OTHER_LIBS@,$OTHER_LIBS,;t t
12192 s,@LIBOBJS@,$LIBOBJS,;t t
12193 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12194 CEOF
12195
12196 _ACEOF
12197
12198   cat >>$CONFIG_STATUS <<\_ACEOF
12199   # Split the substitutions into bite-sized pieces for seds with
12200   # small command number limits, like on Digital OSF/1 and HP-UX.
12201   ac_max_sed_lines=48
12202   ac_sed_frag=1 # Number of current file.
12203   ac_beg=1 # First line for current file.
12204   ac_end=$ac_max_sed_lines # Line after last line for current file.
12205   ac_more_lines=:
12206   ac_sed_cmds=
12207   while $ac_more_lines; do
12208     if test $ac_beg -gt 1; then
12209       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12210     else
12211       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12212     fi
12213     if test ! -s $tmp/subs.frag; then
12214       ac_more_lines=false
12215     else
12216       # The purpose of the label and of the branching condition is to
12217       # speed up the sed processing (if there are no `@' at all, there
12218       # is no need to browse any of the substitutions).
12219       # These are the two extra sed commands mentioned above.
12220       (echo ':t
12221   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12222       if test -z "$ac_sed_cmds"; then
12223         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12224       else
12225         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12226       fi
12227       ac_sed_frag=`expr $ac_sed_frag + 1`
12228       ac_beg=$ac_end
12229       ac_end=`expr $ac_end + $ac_max_sed_lines`
12230     fi
12231   done
12232   if test -z "$ac_sed_cmds"; then
12233     ac_sed_cmds=cat
12234   fi
12235 fi # test -n "$CONFIG_FILES"
12236
12237 _ACEOF
12238 cat >>$CONFIG_STATUS <<\_ACEOF
12239 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12240   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12241   case $ac_file in
12242   - | *:- | *:-:* ) # input from stdin
12243         cat >$tmp/stdin
12244         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12245         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12246   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12247         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12248   * )   ac_file_in=$ac_file.in ;;
12249   esac
12250
12251   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12252   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12254          X"$ac_file" : 'X\(//\)[^/]' \| \
12255          X"$ac_file" : 'X\(//\)$' \| \
12256          X"$ac_file" : 'X\(/\)' \| \
12257          .     : '\(.\)' 2>/dev/null ||
12258 echo X"$ac_file" |
12259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12261           /^X\(\/\/\)$/{ s//\1/; q; }
12262           /^X\(\/\).*/{ s//\1/; q; }
12263           s/.*/./; q'`
12264   { if $as_mkdir_p; then
12265     mkdir -p "$ac_dir"
12266   else
12267     as_dir="$ac_dir"
12268     as_dirs=
12269     while test ! -d "$as_dir"; do
12270       as_dirs="$as_dir $as_dirs"
12271       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12273          X"$as_dir" : 'X\(//\)[^/]' \| \
12274          X"$as_dir" : 'X\(//\)$' \| \
12275          X"$as_dir" : 'X\(/\)' \| \
12276          .     : '\(.\)' 2>/dev/null ||
12277 echo X"$as_dir" |
12278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12279           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12280           /^X\(\/\/\)$/{ s//\1/; q; }
12281           /^X\(\/\).*/{ s//\1/; q; }
12282           s/.*/./; q'`
12283     done
12284     test ! -n "$as_dirs" || mkdir $as_dirs
12285   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12287    { (exit 1); exit 1; }; }; }
12288
12289   ac_builddir=.
12290
12291 if test "$ac_dir" != .; then
12292   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12293   # A "../" for each directory in $ac_dir_suffix.
12294   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12295 else
12296   ac_dir_suffix= ac_top_builddir=
12297 fi
12298
12299 case $srcdir in
12300   .)  # No --srcdir option.  We are building in place.
12301     ac_srcdir=.
12302     if test -z "$ac_top_builddir"; then
12303        ac_top_srcdir=.
12304     else
12305        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12306     fi ;;
12307   [\\/]* | ?:[\\/]* )  # Absolute path.
12308     ac_srcdir=$srcdir$ac_dir_suffix;
12309     ac_top_srcdir=$srcdir ;;
12310   *) # Relative path.
12311     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12312     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12313 esac
12314 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12315 # absolute.
12316 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12317 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12318 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12319 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12320
12321
12322   case $INSTALL in
12323   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12324   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12325   esac
12326
12327   if test x"$ac_file" != x-; then
12328     { echo "$as_me:$LINENO: creating $ac_file" >&5
12329 echo "$as_me: creating $ac_file" >&6;}
12330     rm -f "$ac_file"
12331   fi
12332   # Let's still pretend it is `configure' which instantiates (i.e., don't
12333   # use $as_me), people would be surprised to read:
12334   #    /* config.h.  Generated by config.status.  */
12335   if test x"$ac_file" = x-; then
12336     configure_input=
12337   else
12338     configure_input="$ac_file.  "
12339   fi
12340   configure_input=$configure_input"Generated from `echo $ac_file_in |
12341                                      sed 's,.*/,,'` by configure."
12342
12343   # First look for the input files in the build tree, otherwise in the
12344   # src tree.
12345   ac_file_inputs=`IFS=:
12346     for f in $ac_file_in; do
12347       case $f in
12348       -) echo $tmp/stdin ;;
12349       [\\/$]*)
12350          # Absolute (can't be DOS-style, as IFS=:)
12351          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12352 echo "$as_me: error: cannot find input file: $f" >&2;}
12353    { (exit 1); exit 1; }; }
12354          echo $f;;
12355       *) # Relative
12356          if test -f "$f"; then
12357            # Build tree
12358            echo $f
12359          elif test -f "$srcdir/$f"; then
12360            # Source tree
12361            echo $srcdir/$f
12362          else
12363            # /dev/null tree
12364            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12365 echo "$as_me: error: cannot find input file: $f" >&2;}
12366    { (exit 1); exit 1; }; }
12367          fi;;
12368       esac
12369     done` || { (exit 1); exit 1; }
12370 _ACEOF
12371 cat >>$CONFIG_STATUS <<_ACEOF
12372   sed "$ac_vpsub
12373 $extrasub
12374 _ACEOF
12375 cat >>$CONFIG_STATUS <<\_ACEOF
12376 :t
12377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12378 s,@configure_input@,$configure_input,;t t
12379 s,@srcdir@,$ac_srcdir,;t t
12380 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12381 s,@top_srcdir@,$ac_top_srcdir,;t t
12382 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12383 s,@builddir@,$ac_builddir,;t t
12384 s,@abs_builddir@,$ac_abs_builddir,;t t
12385 s,@top_builddir@,$ac_top_builddir,;t t
12386 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12387 s,@INSTALL@,$ac_INSTALL,;t t
12388 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12389   rm -f $tmp/stdin
12390   if test x"$ac_file" != x-; then
12391     mv $tmp/out $ac_file
12392   else
12393     cat $tmp/out
12394     rm -f $tmp/out
12395   fi
12396
12397 done
12398 _ACEOF
12399 cat >>$CONFIG_STATUS <<\_ACEOF
12400
12401 #
12402 # CONFIG_HEADER section.
12403 #
12404
12405 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12406 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12407 #
12408 # ac_d sets the value in "#define NAME VALUE" lines.
12409 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12410 ac_dB='[        ].*$,\1#\2'
12411 ac_dC=' '
12412 ac_dD=',;t'
12413 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12414 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12415 ac_uB='$,\1#\2define\3'
12416 ac_uC=' '
12417 ac_uD=',;t'
12418
12419 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12420   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12421   case $ac_file in
12422   - | *:- | *:-:* ) # input from stdin
12423         cat >$tmp/stdin
12424         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12425         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12426   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12427         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12428   * )   ac_file_in=$ac_file.in ;;
12429   esac
12430
12431   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12432 echo "$as_me: creating $ac_file" >&6;}
12433
12434   # First look for the input files in the build tree, otherwise in the
12435   # src tree.
12436   ac_file_inputs=`IFS=:
12437     for f in $ac_file_in; do
12438       case $f in
12439       -) echo $tmp/stdin ;;
12440       [\\/$]*)
12441          # Absolute (can't be DOS-style, as IFS=:)
12442          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12443 echo "$as_me: error: cannot find input file: $f" >&2;}
12444    { (exit 1); exit 1; }; }
12445          echo $f;;
12446       *) # Relative
12447          if test -f "$f"; then
12448            # Build tree
12449            echo $f
12450          elif test -f "$srcdir/$f"; then
12451            # Source tree
12452            echo $srcdir/$f
12453          else
12454            # /dev/null tree
12455            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12456 echo "$as_me: error: cannot find input file: $f" >&2;}
12457    { (exit 1); exit 1; }; }
12458          fi;;
12459       esac
12460     done` || { (exit 1); exit 1; }
12461   # Remove the trailing spaces.
12462   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12463
12464 _ACEOF
12465
12466 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12467 # `conftest.undefs', that substitutes the proper values into
12468 # config.h.in to produce config.h.  The first handles `#define'
12469 # templates, and the second `#undef' templates.
12470 # And first: Protect against being on the right side of a sed subst in
12471 # config.status.  Protect against being in an unquoted here document
12472 # in config.status.
12473 rm -f conftest.defines conftest.undefs
12474 # Using a here document instead of a string reduces the quoting nightmare.
12475 # Putting comments in sed scripts is not portable.
12476 #
12477 # `end' is used to avoid that the second main sed command (meant for
12478 # 0-ary CPP macros) applies to n-ary macro definitions.
12479 # See the Autoconf documentation for `clear'.
12480 cat >confdef2sed.sed <<\_ACEOF
12481 s/[\\&,]/\\&/g
12482 s,[\\$`],\\&,g
12483 t clear
12484 : clear
12485 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12486 t end
12487 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12488 : end
12489 _ACEOF
12490 # If some macros were called several times there might be several times
12491 # the same #defines, which is useless.  Nevertheless, we may not want to
12492 # sort them, since we want the *last* AC-DEFINE to be honored.
12493 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12494 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12495 rm -f confdef2sed.sed
12496
12497 # This sed command replaces #undef with comments.  This is necessary, for
12498 # example, in the case of _POSIX_SOURCE, which is predefined and required
12499 # on some systems where configure will not decide to define it.
12500 cat >>conftest.undefs <<\_ACEOF
12501 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12502 _ACEOF
12503
12504 # Break up conftest.defines because some shells have a limit on the size
12505 # of here documents, and old seds have small limits too (100 cmds).
12506 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12507 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12508 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12509 echo '  :' >>$CONFIG_STATUS
12510 rm -f conftest.tail
12511 while grep . conftest.defines >/dev/null
12512 do
12513   # Write a limited-size here document to $tmp/defines.sed.
12514   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12515   # Speed up: don't consider the non `#define' lines.
12516   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12517   # Work around the forget-to-reset-the-flag bug.
12518   echo 't clr' >>$CONFIG_STATUS
12519   echo ': clr' >>$CONFIG_STATUS
12520   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12521   echo 'CEOF
12522   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12523   rm -f $tmp/in
12524   mv $tmp/out $tmp/in
12525 ' >>$CONFIG_STATUS
12526   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12527   rm -f conftest.defines
12528   mv conftest.tail conftest.defines
12529 done
12530 rm -f conftest.defines
12531 echo '  fi # grep' >>$CONFIG_STATUS
12532 echo >>$CONFIG_STATUS
12533
12534 # Break up conftest.undefs because some shells have a limit on the size
12535 # of here documents, and old seds have small limits too (100 cmds).
12536 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12537 rm -f conftest.tail
12538 while grep . conftest.undefs >/dev/null
12539 do
12540   # Write a limited-size here document to $tmp/undefs.sed.
12541   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12542   # Speed up: don't consider the non `#undef'
12543   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12544   # Work around the forget-to-reset-the-flag bug.
12545   echo 't clr' >>$CONFIG_STATUS
12546   echo ': clr' >>$CONFIG_STATUS
12547   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12548   echo 'CEOF
12549   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12550   rm -f $tmp/in
12551   mv $tmp/out $tmp/in
12552 ' >>$CONFIG_STATUS
12553   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12554   rm -f conftest.undefs
12555   mv conftest.tail conftest.undefs
12556 done
12557 rm -f conftest.undefs
12558
12559 cat >>$CONFIG_STATUS <<\_ACEOF
12560   # Let's still pretend it is `configure' which instantiates (i.e., don't
12561   # use $as_me), people would be surprised to read:
12562   #    /* config.h.  Generated by config.status.  */
12563   if test x"$ac_file" = x-; then
12564     echo "/* Generated by configure.  */" >$tmp/config.h
12565   else
12566     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12567   fi
12568   cat $tmp/in >>$tmp/config.h
12569   rm -f $tmp/in
12570   if test x"$ac_file" != x-; then
12571     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12572       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12573 echo "$as_me: $ac_file is unchanged" >&6;}
12574     else
12575       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12577          X"$ac_file" : 'X\(//\)[^/]' \| \
12578          X"$ac_file" : 'X\(//\)$' \| \
12579          X"$ac_file" : 'X\(/\)' \| \
12580          .     : '\(.\)' 2>/dev/null ||
12581 echo X"$ac_file" |
12582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12584           /^X\(\/\/\)$/{ s//\1/; q; }
12585           /^X\(\/\).*/{ s//\1/; q; }
12586           s/.*/./; q'`
12587       { if $as_mkdir_p; then
12588     mkdir -p "$ac_dir"
12589   else
12590     as_dir="$ac_dir"
12591     as_dirs=
12592     while test ! -d "$as_dir"; do
12593       as_dirs="$as_dir $as_dirs"
12594       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12596          X"$as_dir" : 'X\(//\)[^/]' \| \
12597          X"$as_dir" : 'X\(//\)$' \| \
12598          X"$as_dir" : 'X\(/\)' \| \
12599          .     : '\(.\)' 2>/dev/null ||
12600 echo X"$as_dir" |
12601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12603           /^X\(\/\/\)$/{ s//\1/; q; }
12604           /^X\(\/\).*/{ s//\1/; q; }
12605           s/.*/./; q'`
12606     done
12607     test ! -n "$as_dirs" || mkdir $as_dirs
12608   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12610    { (exit 1); exit 1; }; }; }
12611
12612       rm -f $ac_file
12613       mv $tmp/config.h $ac_file
12614     fi
12615   else
12616     cat $tmp/config.h
12617     rm -f $tmp/config.h
12618   fi
12619   # Run the commands associated with the file.
12620   case $ac_file in
12621     autocfg/config.h ) # update the timestamp
12622 echo timestamp >"autocfg/stamp-h1"
12623  ;;
12624   esac
12625 done
12626 _ACEOF
12627 cat >>$CONFIG_STATUS <<\_ACEOF
12628
12629 #
12630 # CONFIG_COMMANDS section.
12631 #
12632 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12633   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12634   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12635   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12636 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12637          X"$ac_dest" : 'X\(//\)[^/]' \| \
12638          X"$ac_dest" : 'X\(//\)$' \| \
12639          X"$ac_dest" : 'X\(/\)' \| \
12640          .     : '\(.\)' 2>/dev/null ||
12641 echo X"$ac_dest" |
12642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12643           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12644           /^X\(\/\/\)$/{ s//\1/; q; }
12645           /^X\(\/\).*/{ s//\1/; q; }
12646           s/.*/./; q'`
12647   ac_builddir=.
12648
12649 if test "$ac_dir" != .; then
12650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12651   # A "../" for each directory in $ac_dir_suffix.
12652   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12653 else
12654   ac_dir_suffix= ac_top_builddir=
12655 fi
12656
12657 case $srcdir in
12658   .)  # No --srcdir option.  We are building in place.
12659     ac_srcdir=.
12660     if test -z "$ac_top_builddir"; then
12661        ac_top_srcdir=.
12662     else
12663        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12664     fi ;;
12665   [\\/]* | ?:[\\/]* )  # Absolute path.
12666     ac_srcdir=$srcdir$ac_dir_suffix;
12667     ac_top_srcdir=$srcdir ;;
12668   *) # Relative path.
12669     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12670     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12671 esac
12672 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12673 # absolute.
12674 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12675 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12676 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12677 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12678
12679
12680   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12681 echo "$as_me: executing $ac_dest commands" >&6;}
12682   case $ac_dest in
12683     default-1 )
12684 test x"$AMDEP_TRUE" != x"" ||
12685 for mf in $CONFIG_FILES; do
12686   case "$mf" in
12687   Makefile) dirpart=.;;
12688   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
12689   *) continue;;
12690   esac
12691   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12692   # Extract the definition of DEP_FILES from the Makefile without
12693   # running `make'.
12694   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12695   test -z "$DEPDIR" && continue
12696   # When using ansi2knr, U may be empty or an underscore; expand it
12697   U=`sed -n -e '/^U = / s///p' < "$mf"`
12698   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12699   # We invoke sed twice because it is the simplest approach to
12700   # changing $(DEPDIR) to its actual value in the expansion.
12701   for file in `sed -n -e '
12702     /^DEP_FILES = .*\\\\$/ {
12703       s/^DEP_FILES = //
12704       :loop
12705         s/\\\\$//
12706         p
12707         n
12708         /\\\\$/ b loop
12709       p
12710     }
12711     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12712        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12713     # Make sure the directory exists.
12714     test -f "$dirpart/$file" && continue
12715     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
12716     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
12717     # echo "creating $dirpart/$file"
12718     echo '# dummy' > "$dirpart/$file"
12719   done
12720 done
12721  ;;
12722   esac
12723 done
12724 _ACEOF
12725
12726 cat >>$CONFIG_STATUS <<\_ACEOF
12727
12728 { (exit 0); exit 0; }
12729 _ACEOF
12730 chmod +x $CONFIG_STATUS
12731 ac_clean_files=$ac_clean_files_save
12732
12733
12734 # configure is writing to config.log, and then calls config.status.
12735 # config.status does its own redirection, appending to config.log.
12736 # Unfortunately, on DOS this fails, as config.log is still kept open
12737 # by configure, so config.status won't be able to write to it; its
12738 # output is simply discarded.  So we exec the FD to /dev/null,
12739 # effectively closing config.log, so it can be properly (re)opened and
12740 # appended to by config.status.  When coming back to configure, we
12741 # need to make the FD available again.
12742 if test "$no_create" != yes; then
12743   ac_cs_success=:
12744   ac_config_status_args=
12745   test "$silent" = yes &&
12746     ac_config_status_args="$ac_config_status_args --quiet"
12747   exec 5>/dev/null
12748   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12749   exec 5>>config.log
12750   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12751   # would make configure fail if this is the last instruction.
12752   $ac_cs_success || { (exit 1); exit 1; }
12753 fi
12754
12755
12756
12757
12758 if test $has_wchar = 0; then
12759   { echo "$as_me:$LINENO: WARNING: Your system doesn't support standard widechar library (wchar.h), result of the <xsl:sort> instruction may be undefined" >&5
12760 echo "$as_me: WARNING: Your system doesn't support standard widechar library (wchar.h), result of the <xsl:sort> instruction may be undefined" >&2;}
12761 fi
12762
12763