]> www.wagner.pp.ru Git - oss/fgis.git/blob - configure
df4fc8089705a02b7bf29d6dc74226931d0c4358
[oss/fgis.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56 for fGIS 0.0.1.
4 #
5 # Report bugs to <dron@remotesensing.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Find the correct PATH separator.  Usually this is `:', but
246 # DJGPP uses `;' like DOS.
247 if test "X${PATH_SEPARATOR+set}" != Xset; then
248   UNAME=${UNAME-`uname 2>/dev/null`}
249   case X$UNAME in
250     *-DOS) lt_cv_sys_path_separator=';' ;;
251     *)     lt_cv_sys_path_separator=':' ;;
252   esac
253   PATH_SEPARATOR=$lt_cv_sys_path_separator
254 fi
255
256
257 # Check that we are running under the correct shell.
258 SHELL=${CONFIG_SHELL-/bin/sh}
259
260 case X$ECHO in
261 X*--fallback-echo)
262   # Remove one level of quotation (which was required for Make).
263   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
264   ;;
265 esac
266
267 echo=${ECHO-echo}
268 if test "X$1" = X--no-reexec; then
269   # Discard the --no-reexec flag, and continue.
270   shift
271 elif test "X$1" = X--fallback-echo; then
272   # Avoid inline document here, it may be left over
273   :
274 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275   # Yippee, $echo works!
276   :
277 else
278   # Restart under the correct shell.
279   exec $SHELL "$0" --no-reexec ${1+"$@"}
280 fi
281
282 if test "X$1" = X--fallback-echo; then
283   # used as fallback echo
284   shift
285   cat <<EOF
286
287 EOF
288   exit 0
289 fi
290
291 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 # if CDPATH is set.
293 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294
295 if test -z "$ECHO"; then
296 if test "X${echo_test_string+set}" != Xset; then
297 # find a string as large as possible, as long as the shell can cope with it
298   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301        echo_test_string="`eval $cmd`" &&
302        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303     then
304       break
305     fi
306   done
307 fi
308
309 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311    test "X$echo_testing_string" = "X$echo_test_string"; then
312   :
313 else
314   # The Solaris, AIX, and Digital Unix default echo programs unquote
315   # backslashes.  This makes it impossible to quote backslashes using
316   #   echo "$something" | sed 's/\\/\\\\/g'
317   #
318   # So, first we look for a working echo in the user's PATH.
319
320   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321   for dir in $PATH /usr/ucb; do
322     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       echo="$dir/echo"
327       break
328     fi
329   done
330   IFS="$save_ifs"
331
332   if test "X$echo" = Xecho; then
333     # We didn't find a better echo, so look for alternatives.
334     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336        test "X$echo_testing_string" = "X$echo_test_string"; then
337       # This shell has a builtin print -r that does the trick.
338       echo='print -r'
339     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340          test "X$CONFIG_SHELL" != X/bin/ksh; then
341       # If we have ksh, try running configure again with it.
342       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343       export ORIGINAL_CONFIG_SHELL
344       CONFIG_SHELL=/bin/ksh
345       export CONFIG_SHELL
346       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
347     else
348       # Try using printf.
349       echo='printf %s\n'
350       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352          test "X$echo_testing_string" = "X$echo_test_string"; then
353         # Cool, printf works
354         :
355       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360         export CONFIG_SHELL
361         SHELL="$CONFIG_SHELL"
362         export SHELL
363         echo="$CONFIG_SHELL $0 --fallback-echo"
364       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365            test "X$echo_testing_string" = 'X\t' &&
366            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367            test "X$echo_testing_string" = "X$echo_test_string"; then
368         echo="$CONFIG_SHELL $0 --fallback-echo"
369       else
370         # maybe with a smaller string...
371         prev=:
372
373         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
375           then
376             break
377           fi
378           prev="$cmd"
379         done
380
381         if test "$prev" != 'sed 50q "$0"'; then
382           echo_test_string=`eval $prev`
383           export echo_test_string
384           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385         else
386           # Oops.  We lost completely, so just stick with echo.
387           echo=echo
388         fi
389       fi
390     fi
391   fi
392 fi
393 fi
394
395 # Copy echo and quote the copy suitably for passing to libtool from
396 # the Makefile, instead of quoting the original, which is used later.
397 ECHO=$echo
398 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400 fi
401
402
403
404 # Name of the host.
405 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406 # so uname gets run too.
407 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
409 exec 6>&1
410
411 #
412 # Initializations.
413 #
414 ac_default_prefix=/usr/local
415 ac_config_libobj_dir=.
416 cross_compiling=no
417 subdirs=
418 MFLAGS=
419 MAKEFLAGS=
420 SHELL=${CONFIG_SHELL-/bin/sh}
421
422 # Maximum number of lines to put in a shell here document.
423 # This variable seems obsolete.  It should probably be removed, and
424 # only ac_max_sed_lines should be used.
425 : ${ac_max_here_lines=38}
426
427 # Identity of this package.
428 PACKAGE_NAME='fGIS'
429 PACKAGE_TARNAME='fgis'
430 PACKAGE_VERSION='0.0.1'
431 PACKAGE_STRING='fGIS 0.0.1'
432 PACKAGE_BUGREPORT='dron@remotesensing.org'
433
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL YACC ALLOCA LIBOBJS POW_LIB FGIS_LIBDIR TCLHDIR TCLHDIRDASHI TCL_LIBRARY TCL_DEFS TCL_DELETEME TCL_DBGX TCL_EXEC_PREFIX TCL_SHLIB_LD SHLIB_SUFFIX TCL_LD_FLAGS TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_SHARED_LIB_SUFFIX TCL_INC_DIR TCL_PACKAGE_PATH TKHDIRDASHI TK_VERSION TK_DEFS TK_DBGX TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TK_INC_DIR LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CPP_set=${CPP+set}
929 ac_env_CPP_value=$CPP
930 ac_cv_env_CPP_set=${CPP+set}
931 ac_cv_env_CPP_value=$CPP
932
933 #
934 # Report the --help message.
935 #
936 if test "$ac_init_help" = "long"; then
937   # Omit some internal or obsolete options to make the list less imposing.
938   # This message is too long to be a string in the A/UX 3.1 sh.
939   cat <<_ACEOF
940 \`configure' configures fGIS 0.0.1 to adapt to many kinds of systems.
941
942 Usage: $0 [OPTION]... [VAR=VALUE]...
943
944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
945 VAR=VALUE.  See below for descriptions of some of the useful variables.
946
947 Defaults for the options are specified in brackets.
948
949 Configuration:
950   -h, --help              display this help and exit
951       --help=short        display options specific to this package
952       --help=recursive    display the short help of all the included packages
953   -V, --version           display version information and exit
954   -q, --quiet, --silent   do not print \`checking...' messages
955       --cache-file=FILE   cache test results in FILE [disabled]
956   -C, --config-cache      alias for \`--cache-file=config.cache'
957   -n, --no-create         do not create output files
958       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
959
960 _ACEOF
961
962   cat <<_ACEOF
963 Installation directories:
964   --prefix=PREFIX         install architecture-independent files in PREFIX
965                           [$ac_default_prefix]
966   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
967                           [PREFIX]
968
969 By default, \`make install' will install all the files in
970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972 for instance \`--prefix=\$HOME'.
973
974 For better control, use the options below.
975
976 Fine tuning of the installation directories:
977   --bindir=DIR           user executables [EPREFIX/bin]
978   --sbindir=DIR          system admin executables [EPREFIX/sbin]
979   --libexecdir=DIR       program executables [EPREFIX/libexec]
980   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
981   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
982   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
983   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
984   --libdir=DIR           object code libraries [EPREFIX/lib]
985   --includedir=DIR       C header files [PREFIX/include]
986   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
987   --infodir=DIR          info documentation [PREFIX/info]
988   --mandir=DIR           man documentation [PREFIX/man]
989 _ACEOF
990
991   cat <<\_ACEOF
992
993 Program names:
994   --program-prefix=PREFIX            prepend PREFIX to installed program names
995   --program-suffix=SUFFIX            append SUFFIX to installed program names
996   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
997
998 X features:
999   --x-includes=DIR    X include files are in DIR
1000   --x-libraries=DIR   X library files are in DIR
1001
1002 System types:
1003   --build=BUILD     configure for building on BUILD [guessed]
1004   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1005 _ACEOF
1006 fi
1007
1008 if test -n "$ac_init_help"; then
1009   case $ac_init_help in
1010      short | recursive ) echo "Configuration of fGIS 0.0.1:";;
1011    esac
1012   cat <<\_ACEOF
1013
1014 Optional Features:
1015   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1016   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1017   --enable-shared=PKGS  build shared libraries default=yes
1018   --enable-static=PKGS  build static libraries default=yes
1019   --enable-fast-install=PKGS  optimize for fast installation default=yes
1020   --disable-libtool-lock  avoid locking (might break parallel builds)
1021
1022 Optional Packages:
1023   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1024   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1025   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1026   --with-pic              try to use only PIC/non-PIC objects default=use both
1027   --with-x                use the X Window System
1028   --with-tclinclude=DIR   directory where tcl private headers are
1029   --with-tcl           directory containing tcl configuration (tclConfig.sh)
1030   --with-tkinclude       directory where tk private headers are
1031   --with-tk           directory containing tk configuration (tkConfig.sh)
1032
1033 Some influential environment variables:
1034   CC          C compiler command
1035   CFLAGS      C compiler flags
1036   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1037               nonstandard directory <lib dir>
1038   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039               headers in a nonstandard directory <include dir>
1040   CPP         C preprocessor
1041
1042 Use these variables to override the choices made by `configure' or to help
1043 it to find libraries and programs with nonstandard names/locations.
1044
1045 Report bugs to <dron@remotesensing.org>.
1046 _ACEOF
1047 fi
1048
1049 if test "$ac_init_help" = "recursive"; then
1050   # If there are subdirs, report their specific --help.
1051   ac_popdir=`pwd`
1052   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1053     test -d $ac_dir || continue
1054     ac_builddir=.
1055
1056 if test "$ac_dir" != .; then
1057   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1058   # A "../" for each directory in $ac_dir_suffix.
1059   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1060 else
1061   ac_dir_suffix= ac_top_builddir=
1062 fi
1063
1064 case $srcdir in
1065   .)  # No --srcdir option.  We are building in place.
1066     ac_srcdir=.
1067     if test -z "$ac_top_builddir"; then
1068        ac_top_srcdir=.
1069     else
1070        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1071     fi ;;
1072   [\\/]* | ?:[\\/]* )  # Absolute path.
1073     ac_srcdir=$srcdir$ac_dir_suffix;
1074     ac_top_srcdir=$srcdir ;;
1075   *) # Relative path.
1076     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1077     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1078 esac
1079 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1080 # absolute.
1081 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1082 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1083 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1084 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1085
1086     cd $ac_dir
1087     # Check for guested configure; otherwise get Cygnus style configure.
1088     if test -f $ac_srcdir/configure.gnu; then
1089       echo
1090       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1091     elif test -f $ac_srcdir/configure; then
1092       echo
1093       $SHELL $ac_srcdir/configure  --help=recursive
1094     elif test -f $ac_srcdir/configure.ac ||
1095            test -f $ac_srcdir/configure.in; then
1096       echo
1097       $ac_configure --help
1098     else
1099       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1100     fi
1101     cd $ac_popdir
1102   done
1103 fi
1104
1105 test -n "$ac_init_help" && exit 0
1106 if $ac_init_version; then
1107   cat <<\_ACEOF
1108 fGIS configure 0.0.1
1109 generated by GNU Autoconf 2.56
1110
1111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112 Free Software Foundation, Inc.
1113 This configure script is free software; the Free Software Foundation
1114 gives unlimited permission to copy, distribute and modify it.
1115 _ACEOF
1116   exit 0
1117 fi
1118 exec 5>config.log
1119 cat >&5 <<_ACEOF
1120 This file contains any messages produced by compilers while
1121 running configure, to aid debugging if configure makes a mistake.
1122
1123 It was created by fGIS $as_me 0.0.1, which was
1124 generated by GNU Autoconf 2.56.  Invocation command line was
1125
1126   $ $0 $@
1127
1128 _ACEOF
1129 {
1130 cat <<_ASUNAME
1131 ## --------- ##
1132 ## Platform. ##
1133 ## --------- ##
1134
1135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1140
1141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1143
1144 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1145 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1148 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1149 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1150 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1151
1152 _ASUNAME
1153
1154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1155 for as_dir in $PATH
1156 do
1157   IFS=$as_save_IFS
1158   test -z "$as_dir" && as_dir=.
1159   echo "PATH: $as_dir"
1160 done
1161
1162 } >&5
1163
1164 cat >&5 <<_ACEOF
1165
1166
1167 ## ----------- ##
1168 ## Core tests. ##
1169 ## ----------- ##
1170
1171 _ACEOF
1172
1173
1174 # Keep a trace of the command line.
1175 # Strip out --no-create and --no-recursion so they do not pile up.
1176 # Strip out --silent because we don't want to record it for future runs.
1177 # Also quote any args containing shell meta-characters.
1178 # Make two passes to allow for proper duplicate-argument suppression.
1179 ac_configure_args=
1180 ac_configure_args0=
1181 ac_configure_args1=
1182 ac_sep=
1183 ac_must_keep_next=false
1184 for ac_pass in 1 2
1185 do
1186   for ac_arg
1187   do
1188     case $ac_arg in
1189     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1190     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191     | -silent | --silent | --silen | --sile | --sil)
1192       continue ;;
1193     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1195     esac
1196     case $ac_pass in
1197     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1198     2)
1199       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1200       if test $ac_must_keep_next = true; then
1201         ac_must_keep_next=false # Got value, back to normal.
1202       else
1203         case $ac_arg in
1204           *=* | --config-cache | -C | -disable-* | --disable-* \
1205           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1206           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1207           | -with-* | --with-* | -without-* | --without-* | --x)
1208             case "$ac_configure_args0 " in
1209               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1210             esac
1211             ;;
1212           -* ) ac_must_keep_next=true ;;
1213         esac
1214       fi
1215       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1216       # Get rid of the leading space.
1217       ac_sep=" "
1218       ;;
1219     esac
1220   done
1221 done
1222 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1223 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1224
1225 # When interrupted or exit'd, cleanup temporary files, and complete
1226 # config.log.  We remove comments because anyway the quotes in there
1227 # would cause problems or look ugly.
1228 # WARNING: Be sure not to use single quotes in there, as some shells,
1229 # such as our DU 5.0 friend, will then `close' the trap.
1230 trap 'exit_status=$?
1231   # Save into config.log some information that might help in debugging.
1232   {
1233     echo
1234
1235     cat <<\_ASBOX
1236 ## ---------------- ##
1237 ## Cache variables. ##
1238 ## ---------------- ##
1239 _ASBOX
1240     echo
1241     # The following way of writing the cache mishandles newlines in values,
1242 {
1243   (set) 2>&1 |
1244     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1245     *ac_space=\ *)
1246       sed -n \
1247         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1248           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1249       ;;
1250     *)
1251       sed -n \
1252         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1253       ;;
1254     esac;
1255 }
1256     echo
1257
1258     cat <<\_ASBOX
1259 ## ----------------- ##
1260 ## Output variables. ##
1261 ## ----------------- ##
1262 _ASBOX
1263     echo
1264     for ac_var in $ac_subst_vars
1265     do
1266       eval ac_val=$`echo $ac_var`
1267       echo "$ac_var='"'"'$ac_val'"'"'"
1268     done | sort
1269     echo
1270
1271     if test -n "$ac_subst_files"; then
1272       cat <<\_ASBOX
1273 ## ------------- ##
1274 ## Output files. ##
1275 ## ------------- ##
1276 _ASBOX
1277       echo
1278       for ac_var in $ac_subst_files
1279       do
1280         eval ac_val=$`echo $ac_var`
1281         echo "$ac_var='"'"'$ac_val'"'"'"
1282       done | sort
1283       echo
1284     fi
1285
1286     if test -s confdefs.h; then
1287       cat <<\_ASBOX
1288 ## ----------- ##
1289 ## confdefs.h. ##
1290 ## ----------- ##
1291 _ASBOX
1292       echo
1293       sed "/^$/d" confdefs.h | sort
1294       echo
1295     fi
1296     test "$ac_signal" != 0 &&
1297       echo "$as_me: caught signal $ac_signal"
1298     echo "$as_me: exit $exit_status"
1299   } >&5
1300   rm -f core core.* *.core &&
1301   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1302     exit $exit_status
1303      ' 0
1304 for ac_signal in 1 2 13 15; do
1305   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1306 done
1307 ac_signal=0
1308
1309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1310 rm -rf conftest* confdefs.h
1311 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1312 echo >confdefs.h
1313
1314 # Predefined preprocessor variables.
1315
1316 cat >>confdefs.h <<_ACEOF
1317 #define PACKAGE_NAME "$PACKAGE_NAME"
1318 _ACEOF
1319
1320
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1323 _ACEOF
1324
1325
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1328 _ACEOF
1329
1330
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_STRING "$PACKAGE_STRING"
1333 _ACEOF
1334
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1338 _ACEOF
1339
1340
1341 # Let the site file select an alternate cache file if it wants to.
1342 # Prefer explicitly selected file to automatically selected ones.
1343 if test -z "$CONFIG_SITE"; then
1344   if test "x$prefix" != xNONE; then
1345     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1346   else
1347     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1348   fi
1349 fi
1350 for ac_site_file in $CONFIG_SITE; do
1351   if test -r "$ac_site_file"; then
1352     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1353 echo "$as_me: loading site script $ac_site_file" >&6;}
1354     sed 's/^/| /' "$ac_site_file" >&5
1355     . "$ac_site_file"
1356   fi
1357 done
1358
1359 if test -r "$cache_file"; then
1360   # Some versions of bash will fail to source /dev/null (special
1361   # files actually), so we avoid doing that.
1362   if test -f "$cache_file"; then
1363     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1364 echo "$as_me: loading cache $cache_file" >&6;}
1365     case $cache_file in
1366       [\\/]* | ?:[\\/]* ) . $cache_file;;
1367       *)                      . ./$cache_file;;
1368     esac
1369   fi
1370 else
1371   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1372 echo "$as_me: creating cache $cache_file" >&6;}
1373   >$cache_file
1374 fi
1375
1376 # Check that the precious variables saved in the cache have kept the same
1377 # value.
1378 ac_cache_corrupted=false
1379 for ac_var in `(set) 2>&1 |
1380                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1381   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1382   eval ac_new_set=\$ac_env_${ac_var}_set
1383   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1384   eval ac_new_val="\$ac_env_${ac_var}_value"
1385   case $ac_old_set,$ac_new_set in
1386     set,)
1387       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1388 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1389       ac_cache_corrupted=: ;;
1390     ,set)
1391       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1392 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1393       ac_cache_corrupted=: ;;
1394     ,);;
1395     *)
1396       if test "x$ac_old_val" != "x$ac_new_val"; then
1397         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1398 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1399         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1400 echo "$as_me:   former value:  $ac_old_val" >&2;}
1401         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1402 echo "$as_me:   current value: $ac_new_val" >&2;}
1403         ac_cache_corrupted=:
1404       fi;;
1405   esac
1406   # Pass precious variables to config.status.
1407   if test "$ac_new_set" = set; then
1408     case $ac_new_val in
1409     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1410       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1411     *) ac_arg=$ac_var=$ac_new_val ;;
1412     esac
1413     case " $ac_configure_args " in
1414       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1415       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1416     esac
1417   fi
1418 done
1419 if $ac_cache_corrupted; then
1420   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1421 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1422   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1423 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1424    { (exit 1); exit 1; }; }
1425 fi
1426
1427 ac_ext=c
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459 # AC_CONFIG_HEADERS([config.h])
1460 am__api_version="1.4"
1461 ac_aux_dir=
1462 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1463   if test -f $ac_dir/install-sh; then
1464     ac_aux_dir=$ac_dir
1465     ac_install_sh="$ac_aux_dir/install-sh -c"
1466     break
1467   elif test -f $ac_dir/install.sh; then
1468     ac_aux_dir=$ac_dir
1469     ac_install_sh="$ac_aux_dir/install.sh -c"
1470     break
1471   elif test -f $ac_dir/shtool; then
1472     ac_aux_dir=$ac_dir
1473     ac_install_sh="$ac_aux_dir/shtool install -c"
1474     break
1475   fi
1476 done
1477 if test -z "$ac_aux_dir"; then
1478   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1479 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1480    { (exit 1); exit 1; }; }
1481 fi
1482 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1483 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1484 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1485
1486 # Find a good install program.  We prefer a C program (faster),
1487 # so one script is as good as another.  But avoid the broken or
1488 # incompatible versions:
1489 # SysV /etc/install, /usr/sbin/install
1490 # SunOS /usr/etc/install
1491 # IRIX /sbin/install
1492 # AIX /bin/install
1493 # AmigaOS /C/install, which installs bootblocks on floppy discs
1494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1497 # ./install, which can be erroneously created by make from ./install.sh.
1498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1500 if test -z "$INSTALL"; then
1501 if test "${ac_cv_path_install+set}" = set; then
1502   echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   # Account for people who put trailing slashes in PATH elements.
1510 case $as_dir/ in
1511   ./ | .// | /cC/* | \
1512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1513   /usr/ucb/* ) ;;
1514   *)
1515     # OSF1 and SCO ODT 3.0 have their own names for install.
1516     # Don't use installbsd from OSF since it installs stuff as root
1517     # by default.
1518     for ac_prog in ginstall scoinst install; do
1519       for ac_exec_ext in '' $ac_executable_extensions; do
1520         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1521           if test $ac_prog = install &&
1522             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523             # AIX install.  It has an incompatible calling convention.
1524             :
1525           elif test $ac_prog = install &&
1526             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1527             # program-specific install script used by HP pwplus--don't use.
1528             :
1529           else
1530             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1531             break 3
1532           fi
1533         fi
1534       done
1535     done
1536     ;;
1537 esac
1538 done
1539
1540
1541 fi
1542   if test "${ac_cv_path_install+set}" = set; then
1543     INSTALL=$ac_cv_path_install
1544   else
1545     # As a last resort, use the slow shell script.  We don't cache a
1546     # path for INSTALL within a source directory, because that will
1547     # break other packages using the cache if that directory is
1548     # removed, or if the path is relative.
1549     INSTALL=$ac_install_sh
1550   fi
1551 fi
1552 echo "$as_me:$LINENO: result: $INSTALL" >&5
1553 echo "${ECHO_T}$INSTALL" >&6
1554
1555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1556 # It thinks the first close brace ends the variable substitution.
1557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1558
1559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1560
1561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1562
1563 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1564 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1565 # Just in case
1566 sleep 1
1567 echo timestamp > conftestfile
1568 # Do `set' in a subshell so we don't clobber the current shell's
1569 # arguments.  Must try -L first in case configure is actually a
1570 # symlink; some systems play weird games with the mod time of symlinks
1571 # (eg FreeBSD returns the mod time of the symlink's containing
1572 # directory).
1573 if (
1574    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1575    if test "$*" = "X"; then
1576       # -L didn't work.
1577       set X `ls -t $srcdir/configure conftestfile`
1578    fi
1579    if test "$*" != "X $srcdir/configure conftestfile" \
1580       && test "$*" != "X conftestfile $srcdir/configure"; then
1581
1582       # If neither matched, then we have a broken ls.  This can happen
1583       # if, for instance, CONFIG_SHELL is bash and it inherits a
1584       # broken ls alias from the environment.  This has actually
1585       # happened.  Such a system could not be considered "sane".
1586       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1587 alias in your environment" >&5
1588 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1589 alias in your environment" >&2;}
1590    { (exit 1); exit 1; }; }
1591    fi
1592
1593    test "$2" = conftestfile
1594    )
1595 then
1596    # Ok.
1597    :
1598 else
1599    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1600 Check your system clock" >&5
1601 echo "$as_me: error: newly created file is older than distributed files!
1602 Check your system clock" >&2;}
1603    { (exit 1); exit 1; }; }
1604 fi
1605 rm -f conftest*
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608 test "$program_prefix" != NONE &&
1609   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1610 # Use a double $ so make ignores it.
1611 test "$program_suffix" != NONE &&
1612   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1613 # Double any \ or $.  echo might interpret backslashes.
1614 # By default was `s,x,x', remove it if useless.
1615 cat <<\_ACEOF >conftest.sed
1616 s/[\\$]/&&/g;s/;s,x,x,$//
1617 _ACEOF
1618 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1619 rm conftest.sed
1620
1621 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1623 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1624 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   cat >conftest.make <<\_ACEOF
1628 all:
1629         @echo 'ac_maketemp="$(MAKE)"'
1630 _ACEOF
1631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1632 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1633 if test -n "$ac_maketemp"; then
1634   eval ac_cv_prog_make_${ac_make}_set=yes
1635 else
1636   eval ac_cv_prog_make_${ac_make}_set=no
1637 fi
1638 rm -f conftest.make
1639 fi
1640 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1641   echo "$as_me:$LINENO: result: yes" >&5
1642 echo "${ECHO_T}yes" >&6
1643   SET_MAKE=
1644 else
1645   echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647   SET_MAKE="MAKE=${MAKE-make}"
1648 fi
1649
1650
1651 PACKAGE=
1652
1653 VERSION=
1654
1655 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1656   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1657 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1658    { (exit 1); exit 1; }; }
1659 fi
1660
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE "$PACKAGE"
1663 _ACEOF
1664
1665
1666 cat >>confdefs.h <<_ACEOF
1667 #define VERSION "$VERSION"
1668 _ACEOF
1669
1670
1671
1672 missing_dir=`cd $ac_aux_dir && pwd`
1673 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1674 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1675 # Run test in a subshell; some versions of sh will print an error if
1676 # an executable is not found, even if stderr is redirected.
1677 # Redirect stdin to placate older versions of autoconf.  Sigh.
1678 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1679    ACLOCAL=aclocal-${am__api_version}
1680    echo "$as_me:$LINENO: result: found" >&5
1681 echo "${ECHO_T}found" >&6
1682 else
1683    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1684    echo "$as_me:$LINENO: result: missing" >&5
1685 echo "${ECHO_T}missing" >&6
1686 fi
1687
1688 echo "$as_me:$LINENO: checking for working autoconf" >&5
1689 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1690 # Run test in a subshell; some versions of sh will print an error if
1691 # an executable is not found, even if stderr is redirected.
1692 # Redirect stdin to placate older versions of autoconf.  Sigh.
1693 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1694    AUTOCONF=autoconf
1695    echo "$as_me:$LINENO: result: found" >&5
1696 echo "${ECHO_T}found" >&6
1697 else
1698    AUTOCONF="$missing_dir/missing autoconf"
1699    echo "$as_me:$LINENO: result: missing" >&5
1700 echo "${ECHO_T}missing" >&6
1701 fi
1702
1703 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1704 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1705 # Run test in a subshell; some versions of sh will print an error if
1706 # an executable is not found, even if stderr is redirected.
1707 # Redirect stdin to placate older versions of autoconf.  Sigh.
1708 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1709    AUTOMAKE=automake-${am__api_version}
1710    echo "$as_me:$LINENO: result: found" >&5
1711 echo "${ECHO_T}found" >&6
1712 else
1713    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1714    echo "$as_me:$LINENO: result: missing" >&5
1715 echo "${ECHO_T}missing" >&6
1716 fi
1717
1718 echo "$as_me:$LINENO: checking for working autoheader" >&5
1719 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1720 # Run test in a subshell; some versions of sh will print an error if
1721 # an executable is not found, even if stderr is redirected.
1722 # Redirect stdin to placate older versions of autoconf.  Sigh.
1723 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1724    AUTOHEADER=autoheader
1725    echo "$as_me:$LINENO: result: found" >&5
1726 echo "${ECHO_T}found" >&6
1727 else
1728    AUTOHEADER="$missing_dir/missing autoheader"
1729    echo "$as_me:$LINENO: result: missing" >&5
1730 echo "${ECHO_T}missing" >&6
1731 fi
1732
1733 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1734 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1735 # Run test in a subshell; some versions of sh will print an error if
1736 # an executable is not found, even if stderr is redirected.
1737 # Redirect stdin to placate older versions of autoconf.  Sigh.
1738 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1739    MAKEINFO=makeinfo
1740    echo "$as_me:$LINENO: result: found" >&5
1741 echo "${ECHO_T}found" >&6
1742 else
1743    MAKEINFO="$missing_dir/missing makeinfo"
1744    echo "$as_me:$LINENO: result: missing" >&5
1745 echo "${ECHO_T}missing" >&6
1746 fi
1747
1748
1749 # AC_CONFIG_SRCDIR([include/regex.h])
1750
1751           ac_config_headers="$ac_config_headers include/config.h"
1752
1753           ac_config_commands="$ac_config_commands default-1"
1754
1755
1756
1757 # Check whether --enable-shared or --disable-shared was given.
1758 if test "${enable_shared+set}" = set; then
1759   enableval="$enable_shared"
1760   p=${PACKAGE-default}
1761 case $enableval in
1762 yes) enable_shared=yes ;;
1763 no) enable_shared=no ;;
1764 *)
1765   enable_shared=no
1766   # Look at the argument we got.  We use all the common list separators.
1767   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1768   for pkg in $enableval; do
1769     if test "X$pkg" = "X$p"; then
1770       enable_shared=yes
1771     fi
1772   done
1773   IFS="$ac_save_ifs"
1774   ;;
1775 esac
1776 else
1777   enable_shared=yes
1778 fi;
1779 # Check whether --enable-static or --disable-static was given.
1780 if test "${enable_static+set}" = set; then
1781   enableval="$enable_static"
1782   p=${PACKAGE-default}
1783 case $enableval in
1784 yes) enable_static=yes ;;
1785 no) enable_static=no ;;
1786 *)
1787   enable_static=no
1788   # Look at the argument we got.  We use all the common list separators.
1789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1790   for pkg in $enableval; do
1791     if test "X$pkg" = "X$p"; then
1792       enable_static=yes
1793     fi
1794   done
1795   IFS="$ac_save_ifs"
1796   ;;
1797 esac
1798 else
1799   enable_static=yes
1800 fi;
1801 # Check whether --enable-fast-install or --disable-fast-install was given.
1802 if test "${enable_fast_install+set}" = set; then
1803   enableval="$enable_fast_install"
1804   p=${PACKAGE-default}
1805 case $enableval in
1806 yes) enable_fast_install=yes ;;
1807 no) enable_fast_install=no ;;
1808 *)
1809   enable_fast_install=no
1810   # Look at the argument we got.  We use all the common list separators.
1811   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1812   for pkg in $enableval; do
1813     if test "X$pkg" = "X$p"; then
1814       enable_fast_install=yes
1815     fi
1816   done
1817   IFS="$ac_save_ifs"
1818   ;;
1819 esac
1820 else
1821   enable_fast_install=yes
1822 fi;
1823 # Make sure we can run config.sub.
1824 $ac_config_sub sun4 >/dev/null 2>&1 ||
1825   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1826 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1827    { (exit 1); exit 1; }; }
1828
1829 echo "$as_me:$LINENO: checking build system type" >&5
1830 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1831 if test "${ac_cv_build+set}" = set; then
1832   echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834   ac_cv_build_alias=$build_alias
1835 test -z "$ac_cv_build_alias" &&
1836   ac_cv_build_alias=`$ac_config_guess`
1837 test -z "$ac_cv_build_alias" &&
1838   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1839 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1840    { (exit 1); exit 1; }; }
1841 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1842   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1843 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1844    { (exit 1); exit 1; }; }
1845
1846 fi
1847 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1848 echo "${ECHO_T}$ac_cv_build" >&6
1849 build=$ac_cv_build
1850 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1851 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1852 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1853
1854
1855 echo "$as_me:$LINENO: checking host system type" >&5
1856 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1857 if test "${ac_cv_host+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   ac_cv_host_alias=$host_alias
1861 test -z "$ac_cv_host_alias" &&
1862   ac_cv_host_alias=$ac_cv_build_alias
1863 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1864   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1865 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1866    { (exit 1); exit 1; }; }
1867
1868 fi
1869 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1870 echo "${ECHO_T}$ac_cv_host" >&6
1871 host=$ac_cv_host
1872 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1873 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1874 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1875
1876
1877 ac_ext=c
1878 ac_cpp='$CPP $CPPFLAGS'
1879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1882 if test -n "$ac_tool_prefix"; then
1883   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$CC"; then
1891   ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911   echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918 fi
1919 if test -z "$ac_cv_prog_CC"; then
1920   ac_ct_CC=$CC
1921   # Extract the first word of "gcc", so it can be a program name with args.
1922 set dummy gcc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$ac_ct_CC"; then
1929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_ac_ct_CC="gcc"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1944
1945 fi
1946 fi
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956   CC=$ac_ct_CC
1957 else
1958   CC="$ac_cv_prog_CC"
1959 fi
1960
1961 if test -z "$CC"; then
1962   if test -n "$ac_tool_prefix"; then
1963   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$CC"; then
1971   ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_CC="${ac_tool_prefix}cc"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991   echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998 fi
1999 if test -z "$ac_cv_prog_CC"; then
2000   ac_ct_CC=$CC
2001   # Extract the first word of "cc", so it can be a program name with args.
2002 set dummy cc; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$ac_ct_CC"; then
2009   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_ac_ct_CC="cc"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028 if test -n "$ac_ct_CC"; then
2029   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030 echo "${ECHO_T}$ac_ct_CC" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036   CC=$ac_ct_CC
2037 else
2038   CC="$ac_cv_prog_CC"
2039 fi
2040
2041 fi
2042 if test -z "$CC"; then
2043   # Extract the first word of "cc", so it can be a program name with args.
2044 set dummy cc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053   ac_prog_rejected=no
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2062        ac_prog_rejected=yes
2063        continue
2064      fi
2065     ac_cv_prog_CC="cc"
2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067     break 2
2068   fi
2069 done
2070 done
2071
2072 if test $ac_prog_rejected = yes; then
2073   # We found a bogon in the path, so make sure we never use it.
2074   set dummy $ac_cv_prog_CC
2075   shift
2076   if test $# != 0; then
2077     # We chose a different compiler from the bogus one.
2078     # However, it has the same basename, so the bogon will be chosen
2079     # first if we set CC to just the basename; use the full file name.
2080     shift
2081     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2082   fi
2083 fi
2084 fi
2085 fi
2086 CC=$ac_cv_prog_CC
2087 if test -n "$CC"; then
2088   echo "$as_me:$LINENO: result: $CC" >&5
2089 echo "${ECHO_T}$CC" >&6
2090 else
2091   echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2093 fi
2094
2095 fi
2096 if test -z "$CC"; then
2097   if test -n "$ac_tool_prefix"; then
2098   for ac_prog in cl
2099   do
2100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_CC+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   if test -n "$CC"; then
2108   ac_cv_prog_CC="$CC" # Let the user override the test.
2109 else
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113   IFS=$as_save_IFS
2114   test -z "$as_dir" && as_dir=.
2115   for ac_exec_ext in '' $ac_executable_extensions; do
2116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119     break 2
2120   fi
2121 done
2122 done
2123
2124 fi
2125 fi
2126 CC=$ac_cv_prog_CC
2127 if test -n "$CC"; then
2128   echo "$as_me:$LINENO: result: $CC" >&5
2129 echo "${ECHO_T}$CC" >&6
2130 else
2131   echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2133 fi
2134
2135     test -n "$CC" && break
2136   done
2137 fi
2138 if test -z "$CC"; then
2139   ac_ct_CC=$CC
2140   for ac_prog in cl
2141 do
2142   # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy $ac_prog; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$ac_ct_CC"; then
2150   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159     ac_cv_prog_ac_ct_CC="$ac_prog"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165
2166 fi
2167 fi
2168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2169 if test -n "$ac_ct_CC"; then
2170   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2171 echo "${ECHO_T}$ac_ct_CC" >&6
2172 else
2173   echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177   test -n "$ac_ct_CC" && break
2178 done
2179
2180   CC=$ac_ct_CC
2181 fi
2182
2183 fi
2184
2185
2186 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: no acceptable C compiler found in \$PATH
2189 See \`config.log' for more details." >&2;}
2190    { (exit 1); exit 1; }; }
2191
2192 # Provide some information about the compiler.
2193 echo "$as_me:$LINENO:" \
2194      "checking for C compiler version" >&5
2195 ac_compiler=`set X $ac_compile; echo $2`
2196 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2197   (eval $ac_compiler --version </dev/null >&5) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }
2201 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2202   (eval $ac_compiler -v </dev/null >&5) 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2207   (eval $ac_compiler -V </dev/null >&5) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }
2211
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #line $LINENO "configure"
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219
2220 int
2221 main ()
2222 {
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 ac_clean_files_save=$ac_clean_files
2229 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2230 # Try to create an executable without -o first, disregard a.out.
2231 # It will help us diagnose broken compilers, and finding out an intuition
2232 # of exeext.
2233 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2234 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2235 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2236 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2237   (eval $ac_link_default) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; then
2241   # Find the output, starting from the most likely.  This scheme is
2242 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2243 # resort.
2244
2245 # Be careful to initialize this variable, since it used to be cached.
2246 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2247 ac_cv_exeext=
2248 # b.out is created by i960 compilers.
2249 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2250 do
2251   test -f "$ac_file" || continue
2252   case $ac_file in
2253     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2254         ;;
2255     conftest.$ac_ext )
2256         # This is the source file.
2257         ;;
2258     [ab].out )
2259         # We found the default executable, but exeext='' is most
2260         # certainly right.
2261         break;;
2262     *.* )
2263         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264         # FIXME: I believe we export ac_cv_exeext for Libtool,
2265         # but it would be cool to find out if it's true.  Does anybody
2266         # maintain Libtool? --akim.
2267         export ac_cv_exeext
2268         break;;
2269     * )
2270         break;;
2271   esac
2272 done
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: C compiler cannot create executables
2280 See \`config.log' for more details." >&2;}
2281    { (exit 77); exit 77; }; }
2282 fi
2283
2284 ac_exeext=$ac_cv_exeext
2285 echo "$as_me:$LINENO: result: $ac_file" >&5
2286 echo "${ECHO_T}$ac_file" >&6
2287
2288 # Check the compiler produces executables we can run.  If not, either
2289 # the compiler is broken, or we cross compile.
2290 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2291 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2292 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2293 # If not cross compiling, check that we can run a simple program.
2294 if test "$cross_compiling" != yes; then
2295   if { ac_try='./$ac_file'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; }; then
2301     cross_compiling=no
2302   else
2303     if test "$cross_compiling" = maybe; then
2304         cross_compiling=yes
2305     else
2306         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: cannot run C compiled programs.
2310 If you meant to cross compile, use \`--host'.
2311 See \`config.log' for more details." >&2;}
2312    { (exit 1); exit 1; }; }
2313     fi
2314   fi
2315 fi
2316 echo "$as_me:$LINENO: result: yes" >&5
2317 echo "${ECHO_T}yes" >&6
2318
2319 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2320 ac_clean_files=$ac_clean_files_save
2321 # Check the compiler produces executables we can run.  If not, either
2322 # the compiler is broken, or we cross compile.
2323 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2324 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2325 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2326 echo "${ECHO_T}$cross_compiling" >&6
2327
2328 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2329 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2331   (eval $ac_link) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; then
2335   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2336 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2337 # work properly (i.e., refer to `conftest.exe'), while it won't with
2338 # `rm'.
2339 for ac_file in conftest.exe conftest conftest.*; do
2340   test -f "$ac_file" || continue
2341   case $ac_file in
2342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2343     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2344           export ac_cv_exeext
2345           break;;
2346     * ) break;;
2347   esac
2348 done
2349 else
2350   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2353 See \`config.log' for more details." >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 rm -f conftest$ac_cv_exeext
2358 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2359 echo "${ECHO_T}$ac_cv_exeext" >&6
2360
2361 rm -f conftest.$ac_ext
2362 EXEEXT=$ac_cv_exeext
2363 ac_exeext=$EXEEXT
2364 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2365 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2366 if test "${ac_cv_objext+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 int
2378 main ()
2379 {
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.o conftest.obj
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387   (eval $ac_compile) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; then
2391   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2392   case $ac_file in
2393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2394     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2395        break;;
2396   esac
2397 done
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2405 See \`config.log' for more details." >&2;}
2406    { (exit 1); exit 1; }; }
2407 fi
2408
2409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2410 fi
2411 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2412 echo "${ECHO_T}$ac_cv_objext" >&6
2413 OBJEXT=$ac_cv_objext
2414 ac_objext=$OBJEXT
2415 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2416 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2417 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   cat >conftest.$ac_ext <<_ACEOF
2421 #line $LINENO "configure"
2422 /* confdefs.h.  */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h.  */
2427
2428 int
2429 main ()
2430 {
2431 #ifndef __GNUC__
2432        choke me
2433 #endif
2434
2435   ;
2436   return 0;
2437 }
2438 _ACEOF
2439 rm -f conftest.$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441   (eval $ac_compile) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   ac_compiler_gnu=yes
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 ac_compiler_gnu=no
2457 fi
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2459 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2460
2461 fi
2462 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2463 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2464 GCC=`test $ac_compiler_gnu = yes && echo yes`
2465 ac_test_CFLAGS=${CFLAGS+set}
2466 ac_save_CFLAGS=$CFLAGS
2467 CFLAGS="-g"
2468 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480
2481 int
2482 main ()
2483 {
2484
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491   (eval $ac_compile) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497   (eval $ac_try) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; }; then
2501   ac_cv_prog_cc_g=yes
2502 else
2503   echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_cv_prog_cc_g=no
2507 fi
2508 rm -f conftest.$ac_objext conftest.$ac_ext
2509 fi
2510 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2511 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2512 if test "$ac_test_CFLAGS" = set; then
2513   CFLAGS=$ac_save_CFLAGS
2514 elif test $ac_cv_prog_cc_g = yes; then
2515   if test "$GCC" = yes; then
2516     CFLAGS="-g -O2"
2517   else
2518     CFLAGS="-g"
2519   fi
2520 else
2521   if test "$GCC" = yes; then
2522     CFLAGS="-O2"
2523   else
2524     CFLAGS=
2525   fi
2526 fi
2527 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2528 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2529 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   ac_cv_prog_cc_stdc=no
2533 ac_save_CC=$CC
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 /* confdefs.h.  */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h.  */
2541 #include <stdarg.h>
2542 #include <stdio.h>
2543 #include <sys/types.h>
2544 #include <sys/stat.h>
2545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2546 struct buf { int x; };
2547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2548 static char *e (p, i)
2549      char **p;
2550      int i;
2551 {
2552   return p[i];
2553 }
2554 static char *f (char * (*g) (char **, int), char **p, ...)
2555 {
2556   char *s;
2557   va_list v;
2558   va_start (v,p);
2559   s = g (p, va_arg (v,int));
2560   va_end (v);
2561   return s;
2562 }
2563 int test (int i, double x);
2564 struct s1 {int (*f) (int a);};
2565 struct s2 {int (*f) (double a);};
2566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2567 int argc;
2568 char **argv;
2569 int
2570 main ()
2571 {
2572 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 # Don't try gcc -ansi; that turns off useful extensions and
2578 # breaks some systems' header files.
2579 # AIX                   -qlanglvl=ansi
2580 # Ultrix and OSF/1      -std1
2581 # HP-UX 10.20 and later -Ae
2582 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2583 # SVR4                  -Xc -D__EXTENSIONS__
2584 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2585 do
2586   CC="$ac_save_CC $ac_arg"
2587   rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_cv_prog_cc_stdc=$ac_arg
2600 break
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 fi
2606 rm -f conftest.$ac_objext
2607 done
2608 rm -f conftest.$ac_ext conftest.$ac_objext
2609 CC=$ac_save_CC
2610
2611 fi
2612
2613 case "x$ac_cv_prog_cc_stdc" in
2614   x|xno)
2615     echo "$as_me:$LINENO: result: none needed" >&5
2616 echo "${ECHO_T}none needed" >&6 ;;
2617   *)
2618     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2620     CC="$CC $ac_cv_prog_cc_stdc" ;;
2621 esac
2622
2623 # Some people use a C++ compiler to compile C.  Since we use `exit',
2624 # in C++ we need to declare it.  In case someone uses the same compiler
2625 # for both compiling C and C++ we need to have the C++ compiler decide
2626 # the declaration of exit, since it's the most demanding environment.
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #ifndef __cplusplus
2629   choke me
2630 #endif
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634   (eval $ac_compile) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } &&
2638          { ac_try='test -s conftest.$ac_objext'
2639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640   (eval $ac_try) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; }; then
2644   for ac_declaration in \
2645    ''\
2646    '#include <stdlib.h>' \
2647    'extern "C" void std::exit (int) throw (); using std::exit;' \
2648    'extern "C" void std::exit (int); using std::exit;' \
2649    'extern "C" void exit (int) throw ();' \
2650    'extern "C" void exit (int);' \
2651    'void exit (int);'
2652 do
2653   cat >conftest.$ac_ext <<_ACEOF
2654 #line $LINENO "configure"
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660 #include <stdlib.h>
2661 $ac_declaration
2662 int
2663 main ()
2664 {
2665 exit (42);
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); } &&
2676          { ac_try='test -s conftest.$ac_objext'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; }; then
2682   :
2683 else
2684   echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 continue
2688 fi
2689 rm -f conftest.$ac_objext conftest.$ac_ext
2690   cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697 $ac_declaration
2698 int
2699 main ()
2700 {
2701 exit (42);
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   break
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 fi
2724 rm -f conftest.$ac_objext conftest.$ac_ext
2725 done
2726 rm -f conftest*
2727 if test -n "$ac_declaration"; then
2728   echo '#ifdef __cplusplus' >>confdefs.h
2729   echo $ac_declaration      >>confdefs.h
2730   echo '#endif'             >>confdefs.h
2731 fi
2732
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 fi
2738 rm -f conftest.$ac_objext conftest.$ac_ext
2739 ac_ext=c
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
2745 # Find the correct PATH separator.  Usually this is `:', but
2746 # DJGPP uses `;' like DOS.
2747 if test "X${PATH_SEPARATOR+set}" != Xset; then
2748   UNAME=${UNAME-`uname 2>/dev/null`}
2749   case X$UNAME in
2750     *-DOS) lt_cv_sys_path_separator=';' ;;
2751     *)     lt_cv_sys_path_separator=':' ;;
2752   esac
2753   PATH_SEPARATOR=$lt_cv_sys_path_separator
2754 fi
2755
2756
2757 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2758 if test "${with_gnu_ld+set}" = set; then
2759   withval="$with_gnu_ld"
2760   test "$withval" = no || with_gnu_ld=yes
2761 else
2762   with_gnu_ld=no
2763 fi;
2764 ac_prog=ld
2765 if test "$GCC" = yes; then
2766   # Check if gcc -print-prog-name=ld gives a path.
2767   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2768 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2769   case $host in
2770   *-*-mingw*)
2771     # gcc leaves a trailing carriage return which upsets mingw
2772     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2773   *)
2774     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2775   esac
2776   case $ac_prog in
2777     # Accept absolute paths.
2778     [\\/]* | [A-Za-z]:[\\/]*)
2779       re_direlt='/[^/][^/]*/\.\./'
2780       # Canonicalize the path of ld
2781       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2782       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2783         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2784       done
2785       test -z "$LD" && LD="$ac_prog"
2786       ;;
2787   "")
2788     # If it fails, then pretend we aren't using GCC.
2789     ac_prog=ld
2790     ;;
2791   *)
2792     # If it is relative, then search for the first ld in PATH.
2793     with_gnu_ld=unknown
2794     ;;
2795   esac
2796 elif test "$with_gnu_ld" = yes; then
2797   echo "$as_me:$LINENO: checking for GNU ld" >&5
2798 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2799 else
2800   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2801 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2802 fi
2803 if test "${lt_cv_path_LD+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -z "$LD"; then
2807   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2808   for ac_dir in $PATH; do
2809     test -z "$ac_dir" && ac_dir=.
2810     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2811       lt_cv_path_LD="$ac_dir/$ac_prog"
2812       # Check to see if the program is GNU ld.  I'd rather use --version,
2813       # but apparently some GNU ld's only accept -v.
2814       # Break only if it was the GNU/non-GNU ld that we prefer.
2815       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2816         test "$with_gnu_ld" != no && break
2817       else
2818         test "$with_gnu_ld" != yes && break
2819       fi
2820     fi
2821   done
2822   IFS="$ac_save_ifs"
2823 else
2824   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2825 fi
2826 fi
2827
2828 LD="$lt_cv_path_LD"
2829 if test -n "$LD"; then
2830   echo "$as_me:$LINENO: result: $LD" >&5
2831 echo "${ECHO_T}$LD" >&6
2832 else
2833   echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2835 fi
2836 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2837 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2838    { (exit 1); exit 1; }; }
2839 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2840 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2841 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2845 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2846   lt_cv_prog_gnu_ld=yes
2847 else
2848   lt_cv_prog_gnu_ld=no
2849 fi
2850 fi
2851 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2852 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2853 with_gnu_ld=$lt_cv_prog_gnu_ld
2854
2855
2856 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2857 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2858 if test "${lt_cv_ld_reload_flag+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861   lt_cv_ld_reload_flag='-r'
2862 fi
2863 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2864 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2865 reload_flag=$lt_cv_ld_reload_flag
2866 test -n "$reload_flag" && reload_flag=" $reload_flag"
2867
2868 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2869 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2870 if test "${lt_cv_path_NM+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   if test -n "$NM"; then
2874   # Let the user override the test.
2875   lt_cv_path_NM="$NM"
2876 else
2877   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2878   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2879     test -z "$ac_dir" && ac_dir=.
2880     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2881     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2882       # Check to see if the nm accepts a BSD-compat flag.
2883       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2884       #   nm: unknown option "B" ignored
2885       # Tru64's nm complains that /dev/null is an invalid object file
2886       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2887         lt_cv_path_NM="$tmp_nm -B"
2888         break
2889       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2890         lt_cv_path_NM="$tmp_nm -p"
2891         break
2892       else
2893         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2894         continue # so that we can try to find one that supports BSD flags
2895       fi
2896     fi
2897   done
2898   IFS="$ac_save_ifs"
2899   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2900 fi
2901 fi
2902
2903 NM="$lt_cv_path_NM"
2904 echo "$as_me:$LINENO: result: $NM" >&5
2905 echo "${ECHO_T}$NM" >&6
2906
2907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2908 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2909 LN_S=$as_ln_s
2910 if test "$LN_S" = "ln -s"; then
2911   echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6
2913 else
2914   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2915 echo "${ECHO_T}no, using $LN_S" >&6
2916 fi
2917
2918 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2919 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2920 if test "${lt_cv_deplibs_check_method+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   lt_cv_file_magic_cmd='$MAGIC_CMD'
2924 lt_cv_file_magic_test_file=
2925 lt_cv_deplibs_check_method='unknown'
2926 # Need to set the preceding variable on all platforms that support
2927 # interlibrary dependencies.
2928 # 'none' -- dependencies not supported.
2929 # `unknown' -- same as none, but documents that we really don't know.
2930 # 'pass_all' -- all dependencies passed with no checks.
2931 # 'test_compile' -- check by making test program.
2932 # 'file_magic [[regex]]' -- check by looking for files in library path
2933 # which responds to the $file_magic_cmd with a given egrep regex.
2934 # If you have `file' or equivalent on your system and you're not sure
2935 # whether `pass_all' will *always* work, you probably want this one.
2936
2937 case $host_os in
2938 aix4* | aix5*)
2939   lt_cv_deplibs_check_method=pass_all
2940   ;;
2941
2942 beos*)
2943   lt_cv_deplibs_check_method=pass_all
2944   ;;
2945
2946 bsdi4*)
2947   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2948   lt_cv_file_magic_cmd='/usr/bin/file -L'
2949   lt_cv_file_magic_test_file=/shlib/libc.so
2950   ;;
2951
2952 cygwin* | mingw* | pw32*)
2953   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2954   lt_cv_file_magic_cmd='$OBJDUMP -f'
2955   ;;
2956
2957 darwin* | rhapsody*)
2958   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2959   lt_cv_file_magic_cmd='/usr/bin/file -L'
2960   case "$host_os" in
2961   rhapsody* | darwin1.[012])
2962     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2963     ;;
2964   *) # Darwin 1.3 on
2965     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2966     ;;
2967   esac
2968   ;;
2969
2970 freebsd*)
2971   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2972     case $host_cpu in
2973     i*86 )
2974       # Not sure whether the presence of OpenBSD here was a mistake.
2975       # Let's accept both of them until this is cleared up.
2976       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2977       lt_cv_file_magic_cmd=/usr/bin/file
2978       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2979       ;;
2980     esac
2981   else
2982     lt_cv_deplibs_check_method=pass_all
2983   fi
2984   ;;
2985
2986 gnu*)
2987   lt_cv_deplibs_check_method=pass_all
2988   ;;
2989
2990 hpux10.20*|hpux11*)
2991   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2992   lt_cv_file_magic_cmd=/usr/bin/file
2993   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2994   ;;
2995
2996 irix5* | irix6* | nonstopux*)
2997   case $host_os in
2998   irix5* | nonstopux*)
2999     # this will be overridden with pass_all, but let us keep it just in case
3000     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3001     ;;
3002   *)
3003     case $LD in
3004     *-32|*"-32 ") libmagic=32-bit;;
3005     *-n32|*"-n32 ") libmagic=N32;;
3006     *-64|*"-64 ") libmagic=64-bit;;
3007     *) libmagic=never-match;;
3008     esac
3009     # this will be overridden with pass_all, but let us keep it just in case
3010     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3011     ;;
3012   esac
3013   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3014   lt_cv_deplibs_check_method=pass_all
3015   ;;
3016
3017 # This must be Linux ELF.
3018 linux-gnu*)
3019   lt_cv_deplibs_check_method=pass_all
3020   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3021   ;;
3022
3023 netbsd*)
3024   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3025     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3026   else
3027     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3028   fi
3029   ;;
3030
3031 newos6*)
3032   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3033   lt_cv_file_magic_cmd=/usr/bin/file
3034   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3035   ;;
3036
3037 openbsd*)
3038   lt_cv_file_magic_cmd=/usr/bin/file
3039   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3040   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3041     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3042   else
3043     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3044   fi
3045   ;;
3046
3047 osf3* | osf4* | osf5*)
3048   # this will be overridden with pass_all, but let us keep it just in case
3049   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3050   lt_cv_file_magic_test_file=/shlib/libc.so
3051   lt_cv_deplibs_check_method=pass_all
3052   ;;
3053
3054 sco3.2v5*)
3055   lt_cv_deplibs_check_method=pass_all
3056   ;;
3057
3058 solaris*)
3059   lt_cv_deplibs_check_method=pass_all
3060   lt_cv_file_magic_test_file=/lib/libc.so
3061   ;;
3062
3063 sysv5uw[78]* | sysv4*uw2*)
3064   lt_cv_deplibs_check_method=pass_all
3065   ;;
3066
3067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3068   case $host_vendor in
3069   motorola)
3070     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]'
3071     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3072     ;;
3073   ncr)
3074     lt_cv_deplibs_check_method=pass_all
3075     ;;
3076   sequent)
3077     lt_cv_file_magic_cmd='/bin/file'
3078     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3079     ;;
3080   sni)
3081     lt_cv_file_magic_cmd='/bin/file'
3082     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3083     lt_cv_file_magic_test_file=/lib/libc.so
3084     ;;
3085   esac
3086   ;;
3087 esac
3088
3089 fi
3090 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3091 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3092 file_magic_cmd=$lt_cv_file_magic_cmd
3093 deplibs_check_method=$lt_cv_deplibs_check_method
3094
3095
3096
3097
3098
3099
3100
3101
3102 # Check for command to grab the raw symbol name followed by C symbol from nm.
3103 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3104 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3105 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108
3109 # These are sane defaults that work on at least a few old systems.
3110 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3111
3112 # Character class describing NM global symbol codes.
3113 symcode='[BCDEGRST]'
3114
3115 # Regexp to match symbols that can be accessed directly from C.
3116 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3117
3118 # Transform the above into a raw symbol and a C symbol.
3119 symxfrm='\1 \2\3 \3'
3120
3121 # Transform an extracted symbol line into a proper C declaration
3122 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3123
3124 # Transform an extracted symbol line into symbol name and symbol address
3125 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'"
3126
3127 # Define system-specific variables.
3128 case $host_os in
3129 aix*)
3130   symcode='[BCDT]'
3131   ;;
3132 cygwin* | mingw* | pw32*)
3133   symcode='[ABCDGISTW]'
3134   ;;
3135 hpux*) # Its linker distinguishes data from code symbols
3136   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3137   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'"
3138   ;;
3139 irix* | nonstopux*)
3140   symcode='[BCDEGRST]'
3141   ;;
3142 solaris* | sysv5*)
3143   symcode='[BDT]'
3144   ;;
3145 sysv4)
3146   symcode='[DFNSTU]'
3147   ;;
3148 esac
3149
3150 # Handle CRLF in mingw tool chain
3151 opt_cr=
3152 case $host_os in
3153 mingw*)
3154   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3155   ;;
3156 esac
3157
3158 # If we're using GNU nm, then use its standard symbol codes.
3159 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3160   symcode='[ABCDGISTW]'
3161 fi
3162
3163 # Try without a prefix undercore, then with it.
3164 for ac_symprfx in "" "_"; do
3165
3166   # Write the raw and C identifiers.
3167 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3168
3169   # Check to see that the pipe works correctly.
3170   pipe_works=no
3171   rm -f conftest*
3172   cat > conftest.$ac_ext <<EOF
3173 #ifdef __cplusplus
3174 extern "C" {
3175 #endif
3176 char nm_test_var;
3177 void nm_test_func(){}
3178 #ifdef __cplusplus
3179 }
3180 #endif
3181 int main(){nm_test_var='a';nm_test_func();return(0);}
3182 EOF
3183
3184   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185   (eval $ac_compile) 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; then
3189     # Now try to grab the symbols.
3190     nlist=conftest.nm
3191     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3192   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } && test -s "$nlist"; then
3196       # Try sorting and uniquifying the output.
3197       if sort "$nlist" | uniq > "$nlist"T; then
3198         mv -f "$nlist"T "$nlist"
3199       else
3200         rm -f "$nlist"T
3201       fi
3202
3203       # Make sure that we snagged all the symbols we need.
3204       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3205         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3206           cat <<EOF > conftest.$ac_ext
3207 #ifdef __cplusplus
3208 extern "C" {
3209 #endif
3210
3211 EOF
3212           # Now generate the symbol file.
3213           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3214
3215           cat <<EOF >> conftest.$ac_ext
3216 #if defined (__STDC__) && __STDC__
3217 # define lt_ptr void *
3218 #else
3219 # define lt_ptr char *
3220 # define const
3221 #endif
3222
3223 /* The mapping between symbol names and symbols. */
3224 const struct {
3225   const char *name;
3226   lt_ptr address;
3227 }
3228 lt_preloaded_symbols[] =
3229 {
3230 EOF
3231           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3232           cat <<\EOF >> conftest.$ac_ext
3233   {0, (lt_ptr) 0}
3234 };
3235
3236 #ifdef __cplusplus
3237 }
3238 #endif
3239 EOF
3240           # Now try linking the two files.
3241           mv conftest.$ac_objext conftstm.$ac_objext
3242           save_LIBS="$LIBS"
3243           save_CFLAGS="$CFLAGS"
3244           LIBS="conftstm.$ac_objext"
3245           CFLAGS="$CFLAGS$no_builtin_flag"
3246           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3247   (eval $ac_link) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } && test -s conftest; then
3251             pipe_works=yes
3252           fi
3253           LIBS="$save_LIBS"
3254           CFLAGS="$save_CFLAGS"
3255         else
3256           echo "cannot find nm_test_func in $nlist" >&5
3257         fi
3258       else
3259         echo "cannot find nm_test_var in $nlist" >&5
3260       fi
3261     else
3262       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3263     fi
3264   else
3265     echo "$progname: failed program was:" >&5
3266     cat conftest.$ac_ext >&5
3267   fi
3268   rm -f conftest* conftst*
3269
3270   # Do not use the global_symbol_pipe unless it works.
3271   if test "$pipe_works" = yes; then
3272     break
3273   else
3274     lt_cv_sys_global_symbol_pipe=
3275   fi
3276 done
3277
3278 fi
3279
3280 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3281 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3282   global_symbol_to_cdecl=
3283   global_symbol_to_c_name_address=
3284 else
3285   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3286   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3287 fi
3288 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3289 then
3290   echo "$as_me:$LINENO: result: failed" >&5
3291 echo "${ECHO_T}failed" >&6
3292 else
3293   echo "$as_me:$LINENO: result: ok" >&5
3294 echo "${ECHO_T}ok" >&6
3295 fi
3296
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3306   CPP=
3307 fi
3308 if test -z "$CPP"; then
3309   if test "${ac_cv_prog_CPP+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312       # Double quotes because CPP needs to be expanded
3313     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314     do
3315       ac_preproc_ok=false
3316 for ac_c_preproc_warn_flag in '' yes
3317 do
3318   # Use a header file that comes with gcc, so configuring glibc
3319   # with a fresh cross-compiler works.
3320   # On the NeXT, cc -E runs the code through the compiler's parser,
3321   # not just through cpp. "Syntax error" is here to catch this case.
3322   cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 /* confdefs.h.  */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h.  */
3329 #include <assert.h>
3330                      Syntax error
3331 _ACEOF
3332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3334   ac_status=$?
3335   grep -v '^ *+' conftest.er1 >conftest.err
3336   rm -f conftest.er1
3337   cat conftest.err >&5
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); } >/dev/null; then
3340   if test -s conftest.err; then
3341     ac_cpp_err=$ac_c_preproc_warn_flag
3342   else
3343     ac_cpp_err=
3344   fi
3345 else
3346   ac_cpp_err=yes
3347 fi
3348 if test -z "$ac_cpp_err"; then
3349   :
3350 else
3351   echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354   # Broken: fails on valid input.
3355 continue
3356 fi
3357 rm -f conftest.err conftest.$ac_ext
3358
3359   # OK, works on sane cases.  Now check whether non-existent headers
3360   # can be detected and how.
3361   cat >conftest.$ac_ext <<_ACEOF
3362 #line $LINENO "configure"
3363 /* confdefs.h.  */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h.  */
3368 #include <ac_nonexistent.h>
3369 _ACEOF
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   # Broken: success on invalid input.
3388 continue
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Passes both tests.
3394 ac_preproc_ok=:
3395 break
3396 fi
3397 rm -f conftest.err conftest.$ac_ext
3398
3399 done
3400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3401 rm -f conftest.err conftest.$ac_ext
3402 if $ac_preproc_ok; then
3403   break
3404 fi
3405
3406     done
3407     ac_cv_prog_CPP=$CPP
3408
3409 fi
3410   CPP=$ac_cv_prog_CPP
3411 else
3412   ac_cv_prog_CPP=$CPP
3413 fi
3414 echo "$as_me:$LINENO: result: $CPP" >&5
3415 echo "${ECHO_T}$CPP" >&6
3416 ac_preproc_ok=false
3417 for ac_c_preproc_warn_flag in '' yes
3418 do
3419   # Use a header file that comes with gcc, so configuring glibc
3420   # with a fresh cross-compiler works.
3421   # On the NeXT, cc -E runs the code through the compiler's parser,
3422   # not just through cpp. "Syntax error" is here to catch this case.
3423   cat >conftest.$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <assert.h>
3431                      Syntax error
3432 _ACEOF
3433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3435   ac_status=$?
3436   grep -v '^ *+' conftest.er1 >conftest.err
3437   rm -f conftest.er1
3438   cat conftest.err >&5
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } >/dev/null; then
3441   if test -s conftest.err; then
3442     ac_cpp_err=$ac_c_preproc_warn_flag
3443   else
3444     ac_cpp_err=
3445   fi
3446 else
3447   ac_cpp_err=yes
3448 fi
3449 if test -z "$ac_cpp_err"; then
3450   :
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455   # Broken: fails on valid input.
3456 continue
3457 fi
3458 rm -f conftest.err conftest.$ac_ext
3459
3460   # OK, works on sane cases.  Now check whether non-existent headers
3461   # can be detected and how.
3462   cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3473   ac_status=$?
3474   grep -v '^ *+' conftest.er1 >conftest.err
3475   rm -f conftest.er1
3476   cat conftest.err >&5
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); } >/dev/null; then
3479   if test -s conftest.err; then
3480     ac_cpp_err=$ac_c_preproc_warn_flag
3481   else
3482     ac_cpp_err=
3483   fi
3484 else
3485   ac_cpp_err=yes
3486 fi
3487 if test -z "$ac_cpp_err"; then
3488   # Broken: success on invalid input.
3489 continue
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494   # Passes both tests.
3495 ac_preproc_ok=:
3496 break
3497 fi
3498 rm -f conftest.err conftest.$ac_ext
3499
3500 done
3501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502 rm -f conftest.err conftest.$ac_ext
3503 if $ac_preproc_ok; then
3504   :
3505 else
3506   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3507 See \`config.log' for more details." >&5
3508 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details." >&2;}
3510    { (exit 1); exit 1; }; }
3511 fi
3512
3513 ac_ext=c
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518
3519
3520 echo "$as_me:$LINENO: checking for egrep" >&5
3521 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3522 if test "${ac_cv_prog_egrep+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3526     then ac_cv_prog_egrep='grep -E'
3527     else ac_cv_prog_egrep='egrep'
3528     fi
3529 fi
3530 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3531 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3532  EGREP=$ac_cv_prog_egrep
3533
3534
3535 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3536 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3537 if test "${ac_cv_header_stdc+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   cat >conftest.$ac_ext <<_ACEOF
3541 #line $LINENO "configure"
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 #include <stdlib.h>
3548 #include <stdarg.h>
3549 #include <string.h>
3550 #include <float.h>
3551
3552 int
3553 main ()
3554 {
3555
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562   (eval $ac_compile) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); } &&
3566          { ac_try='test -s conftest.$ac_objext'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572   ac_cv_header_stdc=yes
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 ac_cv_header_stdc=no
3578 fi
3579 rm -f conftest.$ac_objext conftest.$ac_ext
3580
3581 if test $ac_cv_header_stdc = yes; then
3582   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590 #include <string.h>
3591
3592 _ACEOF
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594   $EGREP "memchr" >/dev/null 2>&1; then
3595   :
3596 else
3597   ac_cv_header_stdc=no
3598 fi
3599 rm -f conftest*
3600
3601 fi
3602
3603 if test $ac_cv_header_stdc = yes; then
3604   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3605   cat >conftest.$ac_ext <<_ACEOF
3606 #line $LINENO "configure"
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612 #include <stdlib.h>
3613
3614 _ACEOF
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616   $EGREP "free" >/dev/null 2>&1; then
3617   :
3618 else
3619   ac_cv_header_stdc=no
3620 fi
3621 rm -f conftest*
3622
3623 fi
3624
3625 if test $ac_cv_header_stdc = yes; then
3626   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3627   if test "$cross_compiling" = yes; then
3628   :
3629 else
3630   cat >conftest.$ac_ext <<_ACEOF
3631 #line $LINENO "configure"
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637 #include <ctype.h>
3638 #if ((' ' & 0x0FF) == 0x020)
3639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3641 #else
3642 # define ISLOWER(c) \
3643                    (('a' <= (c) && (c) <= 'i') \
3644                      || ('j' <= (c) && (c) <= 'r') \
3645                      || ('s' <= (c) && (c) <= 'z'))
3646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3647 #endif
3648
3649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3650 int
3651 main ()
3652 {
3653   int i;
3654   for (i = 0; i < 256; i++)
3655     if (XOR (islower (i), ISLOWER (i))
3656         || toupper (i) != TOUPPER (i))
3657       exit(2);
3658   exit (0);
3659 }
3660 _ACEOF
3661 rm -f conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663   (eval $ac_link) 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668   (eval $ac_try) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; }; then
3672   :
3673 else
3674   echo "$as_me: program exited with status $ac_status" >&5
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 ( exit $ac_status )
3679 ac_cv_header_stdc=no
3680 fi
3681 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3682 fi
3683 fi
3684 fi
3685 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3686 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3687 if test $ac_cv_header_stdc = yes; then
3688
3689 cat >>confdefs.h <<\_ACEOF
3690 #define STDC_HEADERS 1
3691 _ACEOF
3692
3693 fi
3694
3695 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3706                   inttypes.h stdint.h unistd.h
3707 do
3708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3709 echo "$as_me:$LINENO: checking for $ac_header" >&5
3710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   cat >conftest.$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3716 /* confdefs.h.  */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h.  */
3721 $ac_includes_default
3722
3723 #include <$ac_header>
3724 _ACEOF
3725 rm -f conftest.$ac_objext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727   (eval $ac_compile) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } &&
3731          { ac_try='test -s conftest.$ac_objext'
3732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733   (eval $ac_try) 2>&5
3734   ac_status=$?
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); }; }; then
3737   eval "$as_ac_Header=yes"
3738 else
3739   echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 eval "$as_ac_Header=no"
3743 fi
3744 rm -f conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3749   cat >>confdefs.h <<_ACEOF
3750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3751 _ACEOF
3752
3753 fi
3754
3755 done
3756
3757
3758
3759 for ac_header in dlfcn.h
3760 do
3761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3763   echo "$as_me:$LINENO: checking for $ac_header" >&5
3764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 fi
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770 else
3771   # Is the header compilable?
3772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3775 #line $LINENO "configure"
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781 $ac_includes_default
3782 #include <$ac_header>
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786   (eval $ac_compile) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } &&
3790          { ac_try='test -s conftest.$ac_objext'
3791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); }; }; then
3796   ac_header_compiler=yes
3797 else
3798   echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801 ac_header_compiler=no
3802 fi
3803 rm -f conftest.$ac_objext conftest.$ac_ext
3804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3805 echo "${ECHO_T}$ac_header_compiler" >&6
3806
3807 # Is the header present?
3808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
3818 _ACEOF
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } >/dev/null; then
3827   if test -s conftest.err; then
3828     ac_cpp_err=$ac_c_preproc_warn_flag
3829   else
3830     ac_cpp_err=
3831   fi
3832 else
3833   ac_cpp_err=yes
3834 fi
3835 if test -z "$ac_cpp_err"; then
3836   ac_header_preproc=yes
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841   ac_header_preproc=no
3842 fi
3843 rm -f conftest.err conftest.$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3845 echo "${ECHO_T}$ac_header_preproc" >&6
3846
3847 # So?  What about this header?
3848 case $ac_header_compiler:$ac_header_preproc in
3849   yes:no )
3850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3854     (
3855       cat <<\_ASBOX
3856 ## ------------------------------------ ##
3857 ## Report this to bug-autoconf@gnu.org. ##
3858 ## ------------------------------------ ##
3859 _ASBOX
3860     ) |
3861       sed "s/^/$as_me: WARNING:     /" >&2
3862     ;;
3863   no:yes )
3864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3866     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3870     (
3871       cat <<\_ASBOX
3872 ## ------------------------------------ ##
3873 ## Report this to bug-autoconf@gnu.org. ##
3874 ## ------------------------------------ ##
3875 _ASBOX
3876     ) |
3877       sed "s/^/$as_me: WARNING:     /" >&2
3878     ;;
3879 esac
3880 echo "$as_me:$LINENO: checking for $ac_header" >&5
3881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   eval "$as_ac_Header=$ac_header_preproc"
3886 fi
3887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3889
3890 fi
3891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3892   cat >>confdefs.h <<_ACEOF
3893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3894 _ACEOF
3895
3896 fi
3897
3898 done
3899
3900
3901
3902
3903
3904 # Only perform the check for file, if the check method requires it
3905 case $deplibs_check_method in
3906 file_magic*)
3907   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3908     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3909 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   case $MAGIC_CMD in
3914   /*)
3915   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3916   ;;
3917   ?:/*)
3918   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3919   ;;
3920   *)
3921   ac_save_MAGIC_CMD="$MAGIC_CMD"
3922   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3923   ac_dummy="/usr/bin:$PATH"
3924   for ac_dir in $ac_dummy; do
3925     test -z "$ac_dir" && ac_dir=.
3926     if test -f $ac_dir/${ac_tool_prefix}file; then
3927       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3928       if test -n "$file_magic_test_file"; then
3929         case $deplibs_check_method in
3930         "file_magic "*)
3931           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3932           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3933           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3934             egrep "$file_magic_regex" > /dev/null; then
3935             :
3936           else
3937             cat <<EOF 1>&2
3938
3939 *** Warning: the command libtool uses to detect shared libraries,
3940 *** $file_magic_cmd, produces output that libtool cannot recognize.
3941 *** The result is that libtool may fail to recognize shared libraries
3942 *** as such.  This will affect the creation of libtool libraries that
3943 *** depend on shared libraries, but programs linked with such libtool
3944 *** libraries will work regardless of this problem.  Nevertheless, you
3945 *** may want to report the problem to your system manager and/or to
3946 *** bug-libtool@gnu.org
3947
3948 EOF
3949           fi ;;
3950         esac
3951       fi
3952       break
3953     fi
3954   done
3955   IFS="$ac_save_ifs"
3956   MAGIC_CMD="$ac_save_MAGIC_CMD"
3957   ;;
3958 esac
3959 fi
3960
3961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3962 if test -n "$MAGIC_CMD"; then
3963   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3964 echo "${ECHO_T}$MAGIC_CMD" >&6
3965 else
3966   echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3968 fi
3969
3970 if test -z "$lt_cv_path_MAGIC_CMD"; then
3971   if test -n "$ac_tool_prefix"; then
3972     echo "$as_me:$LINENO: checking for file" >&5
3973 echo $ECHO_N "checking for file... $ECHO_C" >&6
3974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   case $MAGIC_CMD in
3978   /*)
3979   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3980   ;;
3981   ?:/*)
3982   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3983   ;;
3984   *)
3985   ac_save_MAGIC_CMD="$MAGIC_CMD"
3986   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3987   ac_dummy="/usr/bin:$PATH"
3988   for ac_dir in $ac_dummy; do
3989     test -z "$ac_dir" && ac_dir=.
3990     if test -f $ac_dir/file; then
3991       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3992       if test -n "$file_magic_test_file"; then
3993         case $deplibs_check_method in
3994         "file_magic "*)
3995           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3996           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3997           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3998             egrep "$file_magic_regex" > /dev/null; then
3999             :
4000           else
4001             cat <<EOF 1>&2
4002
4003 *** Warning: the command libtool uses to detect shared libraries,
4004 *** $file_magic_cmd, produces output that libtool cannot recognize.
4005 *** The result is that libtool may fail to recognize shared libraries
4006 *** as such.  This will affect the creation of libtool libraries that
4007 *** depend on shared libraries, but programs linked with such libtool
4008 *** libraries will work regardless of this problem.  Nevertheless, you
4009 *** may want to report the problem to your system manager and/or to
4010 *** bug-libtool@gnu.org
4011
4012 EOF
4013           fi ;;
4014         esac
4015       fi
4016       break
4017     fi
4018   done
4019   IFS="$ac_save_ifs"
4020   MAGIC_CMD="$ac_save_MAGIC_CMD"
4021   ;;
4022 esac
4023 fi
4024
4025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4026 if test -n "$MAGIC_CMD"; then
4027   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4028 echo "${ECHO_T}$MAGIC_CMD" >&6
4029 else
4030   echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4032 fi
4033
4034   else
4035     MAGIC_CMD=:
4036   fi
4037 fi
4038
4039   fi
4040   ;;
4041 esac
4042
4043 if test -n "$ac_tool_prefix"; then
4044   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_RANLIB+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   if test -n "$RANLIB"; then
4052   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059   for ac_exec_ext in '' $ac_executable_extensions; do
4060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063     break 2
4064   fi
4065 done
4066 done
4067
4068 fi
4069 fi
4070 RANLIB=$ac_cv_prog_RANLIB
4071 if test -n "$RANLIB"; then
4072   echo "$as_me:$LINENO: result: $RANLIB" >&5
4073 echo "${ECHO_T}$RANLIB" >&6
4074 else
4075   echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077 fi
4078
4079 fi
4080 if test -z "$ac_cv_prog_RANLIB"; then
4081   ac_ct_RANLIB=$RANLIB
4082   # Extract the first word of "ranlib", so it can be a program name with args.
4083 set dummy ranlib; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$ac_ct_RANLIB"; then
4090   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_ac_ct_RANLIB="ranlib"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4107 fi
4108 fi
4109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4110 if test -n "$ac_ct_RANLIB"; then
4111   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4112 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118   RANLIB=$ac_ct_RANLIB
4119 else
4120   RANLIB="$ac_cv_prog_RANLIB"
4121 fi
4122
4123 if test -n "$ac_tool_prefix"; then
4124   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}strip; ac_word=$2
4126 echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128 if test "${ac_cv_prog_STRIP+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   if test -n "$STRIP"; then
4132   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146 done
4147
4148 fi
4149 fi
4150 STRIP=$ac_cv_prog_STRIP
4151 if test -n "$STRIP"; then
4152   echo "$as_me:$LINENO: result: $STRIP" >&5
4153 echo "${ECHO_T}$STRIP" >&6
4154 else
4155   echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4157 fi
4158
4159 fi
4160 if test -z "$ac_cv_prog_STRIP"; then
4161   ac_ct_STRIP=$STRIP
4162   # Extract the first word of "strip", so it can be a program name with args.
4163 set dummy strip; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$ac_ct_STRIP"; then
4170   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     ac_cv_prog_ac_ct_STRIP="strip"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185
4186   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4187 fi
4188 fi
4189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4190 if test -n "$ac_ct_STRIP"; then
4191   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4192 echo "${ECHO_T}$ac_ct_STRIP" >&6
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198   STRIP=$ac_ct_STRIP
4199 else
4200   STRIP="$ac_cv_prog_STRIP"
4201 fi
4202
4203
4204 enable_dlopen=no
4205 enable_win32_dll=no
4206
4207 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4208 if test "${enable_libtool_lock+set}" = set; then
4209   enableval="$enable_libtool_lock"
4210
4211 fi;
4212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4213
4214 # Some flags need to be propagated to the compiler or linker for good
4215 # libtool support.
4216 case $host in
4217 *-*-irix6*)
4218   # Find out which ABI we are using.
4219   echo '#line 4219 "configure"' > conftest.$ac_ext
4220   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221   (eval $ac_compile) 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }; then
4225     case `/usr/bin/file conftest.$ac_objext` in
4226     *32-bit*)
4227       LD="${LD-ld} -32"
4228       ;;
4229     *N32*)
4230       LD="${LD-ld} -n32"
4231       ;;
4232     *64-bit*)
4233       LD="${LD-ld} -64"
4234       ;;
4235     esac
4236   fi
4237   rm -rf conftest*
4238   ;;
4239
4240 *-*-sco3.2v5*)
4241   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4242   SAVE_CFLAGS="$CFLAGS"
4243   CFLAGS="$CFLAGS -belf"
4244   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4245 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4246 if test "${lt_cv_cc_needs_belf+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249
4250
4251      ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257      cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275   (eval $ac_link) 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); } &&
4279          { ac_try='test -s conftest$ac_exeext'
4280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   lt_cv_cc_needs_belf=yes
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 lt_cv_cc_needs_belf=no
4291 fi
4292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4293      ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299 fi
4300 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4301 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4302   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4303     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4304     CFLAGS="$SAVE_CFLAGS"
4305   fi
4306   ;;
4307
4308
4309 esac
4310
4311 # Sed substitution that helps us do robust quoting.  It backslashifies
4312 # metacharacters that are still active within double-quoted strings.
4313 Xsed='sed -e s/^X//'
4314 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4315
4316 # Same as above, but do not quote variable references.
4317 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4318
4319 # Sed substitution to delay expansion of an escaped shell variable in a
4320 # double_quote_subst'ed string.
4321 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4322
4323 # Constants:
4324 rm="rm -f"
4325
4326 # Global variables:
4327 default_ofile=libtool
4328 can_build_shared=yes
4329
4330 # All known linkers require a `.a' archive for static linking (except M$VC,
4331 # which needs '.lib').
4332 libext=a
4333 ltmain="$ac_aux_dir/ltmain.sh"
4334 ofile="$default_ofile"
4335 with_gnu_ld="$lt_cv_prog_gnu_ld"
4336 need_locks="$enable_libtool_lock"
4337
4338 old_CC="$CC"
4339 old_CFLAGS="$CFLAGS"
4340
4341 # Set sane defaults for various variables
4342 test -z "$AR" && AR=ar
4343 test -z "$AR_FLAGS" && AR_FLAGS=cru
4344 test -z "$AS" && AS=as
4345 test -z "$CC" && CC=cc
4346 test -z "$DLLTOOL" && DLLTOOL=dlltool
4347 test -z "$LD" && LD=ld
4348 test -z "$LN_S" && LN_S="ln -s"
4349 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4350 test -z "$NM" && NM=nm
4351 test -z "$OBJDUMP" && OBJDUMP=objdump
4352 test -z "$RANLIB" && RANLIB=:
4353 test -z "$STRIP" && STRIP=:
4354 test -z "$ac_objext" && ac_objext=o
4355
4356 if test x"$host" != x"$build"; then
4357   ac_tool_prefix=${host_alias}-
4358 else
4359   ac_tool_prefix=
4360 fi
4361
4362 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4363 case $host_os in
4364 linux-gnu*) ;;
4365 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4366 esac
4367
4368 case $host_os in
4369 aix3*)
4370   # AIX sometimes has problems with the GCC collect2 program.  For some
4371   # reason, if we set the COLLECT_NAMES environment variable, the problems
4372   # vanish in a puff of smoke.
4373   if test "X${COLLECT_NAMES+set}" != Xset; then
4374     COLLECT_NAMES=
4375     export COLLECT_NAMES
4376   fi
4377   ;;
4378 esac
4379
4380 # Determine commands to create old-style static archives.
4381 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4382 old_postinstall_cmds='chmod 644 $oldlib'
4383 old_postuninstall_cmds=
4384
4385 if test -n "$RANLIB"; then
4386   case $host_os in
4387   openbsd*)
4388     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4389     ;;
4390   *)
4391     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4392     ;;
4393   esac
4394   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4395 fi
4396
4397 # Allow CC to be a program name with arguments.
4398 set dummy $CC
4399 compiler="$2"
4400
4401 echo "$as_me:$LINENO: checking for objdir" >&5
4402 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4403 rm -f .libs 2>/dev/null
4404 mkdir .libs 2>/dev/null
4405 if test -d .libs; then
4406   objdir=.libs
4407 else
4408   # MS-DOS does not allow filenames that begin with a dot.
4409   objdir=_libs
4410 fi
4411 rmdir .libs 2>/dev/null
4412 echo "$as_me:$LINENO: result: $objdir" >&5
4413 echo "${ECHO_T}$objdir" >&6
4414
4415
4416
4417 # Check whether --with-pic or --without-pic was given.
4418 if test "${with_pic+set}" = set; then
4419   withval="$with_pic"
4420   pic_mode="$withval"
4421 else
4422   pic_mode=default
4423 fi;
4424 test -z "$pic_mode" && pic_mode=default
4425
4426 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4427 # in isolation, and that seeing it set (from the cache) indicates that
4428 # the associated values are set (in the cache) correctly too.
4429 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4430 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4431 if test "${lt_cv_prog_cc_pic+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434    lt_cv_prog_cc_pic=
4435   lt_cv_prog_cc_shlib=
4436   lt_cv_prog_cc_wl=
4437   lt_cv_prog_cc_static=
4438   lt_cv_prog_cc_no_builtin=
4439   lt_cv_prog_cc_can_build_shared=$can_build_shared
4440
4441   if test "$GCC" = yes; then
4442     lt_cv_prog_cc_wl='-Wl,'
4443     lt_cv_prog_cc_static='-static'
4444
4445     case $host_os in
4446     aix*)
4447       # Below there is a dirty hack to force normal static linking with -ldl
4448       # The problem is because libdl dynamically linked with both libc and
4449       # libC (AIX C++ library), which obviously doesn't included in libraries
4450       # list by gcc. This cause undefined symbols with -static flags.
4451       # This hack allows C programs to be linked with "-static -ldl", but
4452       # not sure about C++ programs.
4453       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4454       ;;
4455     amigaos*)
4456       # FIXME: we need at least 68020 code to build shared libraries, but
4457       # adding the `-m68020' flag to GCC prevents building anything better,
4458       # like `-m68040'.
4459       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4460       ;;
4461     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4462       # PIC is the default for these OSes.
4463       ;;
4464     darwin* | rhapsody*)
4465       # PIC is the default on this platform
4466       # Common symbols not allowed in MH_DYLIB files
4467       lt_cv_prog_cc_pic='-fno-common'
4468       ;;
4469     cygwin* | mingw* | pw32* | os2*)
4470       # This hack is so that the source file can tell whether it is being
4471       # built for inclusion in a dll (and should export symbols for example).
4472       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4473       ;;
4474     sysv4*MP*)
4475       if test -d /usr/nec; then
4476          lt_cv_prog_cc_pic=-Kconform_pic
4477       fi
4478       ;;
4479     *)
4480       lt_cv_prog_cc_pic='-fPIC'
4481       ;;
4482     esac
4483   else
4484     # PORTME Check for PIC flags for the system compiler.
4485     case $host_os in
4486     aix3* | aix4* | aix5*)
4487       lt_cv_prog_cc_wl='-Wl,'
4488       # All AIX code is PIC.
4489       if test "$host_cpu" = ia64; then
4490         # AIX 5 now supports IA64 processor
4491         lt_cv_prog_cc_static='-Bstatic'
4492       else
4493         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4494       fi
4495       ;;
4496
4497     hpux9* | hpux10* | hpux11*)
4498       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4499       lt_cv_prog_cc_wl='-Wl,'
4500       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4501       lt_cv_prog_cc_pic='+Z'
4502       ;;
4503
4504     irix5* | irix6* | nonstopux*)
4505       lt_cv_prog_cc_wl='-Wl,'
4506       lt_cv_prog_cc_static='-non_shared'
4507       # PIC (with -KPIC) is the default.
4508       ;;
4509
4510     cygwin* | mingw* | pw32* | os2*)
4511       # This hack is so that the source file can tell whether it is being
4512       # built for inclusion in a dll (and should export symbols for example).
4513       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4514       ;;
4515
4516     newsos6)
4517       lt_cv_prog_cc_pic='-KPIC'
4518       lt_cv_prog_cc_static='-Bstatic'
4519       ;;
4520
4521     osf3* | osf4* | osf5*)
4522       # All OSF/1 code is PIC.
4523       lt_cv_prog_cc_wl='-Wl,'
4524       lt_cv_prog_cc_static='-non_shared'
4525       ;;
4526
4527     sco3.2v5*)
4528       lt_cv_prog_cc_pic='-Kpic'
4529       lt_cv_prog_cc_static='-dn'
4530       lt_cv_prog_cc_shlib='-belf'
4531       ;;
4532
4533     solaris*)
4534       lt_cv_prog_cc_pic='-KPIC'
4535       lt_cv_prog_cc_static='-Bstatic'
4536       lt_cv_prog_cc_wl='-Wl,'
4537       ;;
4538
4539     sunos4*)
4540       lt_cv_prog_cc_pic='-PIC'
4541       lt_cv_prog_cc_static='-Bstatic'
4542       lt_cv_prog_cc_wl='-Qoption ld '
4543       ;;
4544
4545     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4546       lt_cv_prog_cc_pic='-KPIC'
4547       lt_cv_prog_cc_static='-Bstatic'
4548       if test "x$host_vendor" = xsni; then
4549         lt_cv_prog_cc_wl='-LD'
4550       else
4551         lt_cv_prog_cc_wl='-Wl,'
4552       fi
4553       ;;
4554
4555     uts4*)
4556       lt_cv_prog_cc_pic='-pic'
4557       lt_cv_prog_cc_static='-Bstatic'
4558       ;;
4559
4560     sysv4*MP*)
4561       if test -d /usr/nec ;then
4562         lt_cv_prog_cc_pic='-Kconform_pic'
4563         lt_cv_prog_cc_static='-Bstatic'
4564       fi
4565       ;;
4566
4567     *)
4568       lt_cv_prog_cc_can_build_shared=no
4569       ;;
4570     esac
4571   fi
4572
4573 fi
4574
4575 if test -z "$lt_cv_prog_cc_pic"; then
4576   echo "$as_me:$LINENO: result: none" >&5
4577 echo "${ECHO_T}none" >&6
4578 else
4579   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4580 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4581
4582   # Check to make sure the pic_flag actually works.
4583   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4584 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4585   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588       save_CFLAGS="$CFLAGS"
4589     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4590     cat >conftest.$ac_ext <<_ACEOF
4591 #line $LINENO "configure"
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597
4598 int
4599 main ()
4600 {
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608   (eval $ac_compile) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618         case $host_os in
4619       hpux9* | hpux10* | hpux11*)
4620         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4621         # they create non-PIC objects.  So, if there were any warnings, we
4622         # assume that PIC is not supported.
4623         if test -s conftest.err; then
4624           lt_cv_prog_cc_pic_works=no
4625         else
4626           lt_cv_prog_cc_pic_works=yes
4627         fi
4628         ;;
4629       *)
4630         lt_cv_prog_cc_pic_works=yes
4631         ;;
4632       esac
4633
4634 else
4635   echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638       lt_cv_prog_cc_pic_works=no
4639
4640 fi
4641 rm -f conftest.$ac_objext conftest.$ac_ext
4642     CFLAGS="$save_CFLAGS"
4643
4644 fi
4645
4646
4647   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4648     lt_cv_prog_cc_pic=
4649     lt_cv_prog_cc_can_build_shared=no
4650   else
4651     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4652   fi
4653
4654   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4655 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4656 fi
4657
4658 # Check for any special shared library compilation flags.
4659 if test -n "$lt_cv_prog_cc_shlib"; then
4660   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4661 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4662   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4663   else
4664    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4665 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4666     lt_cv_prog_cc_can_build_shared=no
4667   fi
4668 fi
4669
4670 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4671 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4672 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675     lt_cv_prog_cc_static_works=no
4676   save_LDFLAGS="$LDFLAGS"
4677   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4678   cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685
4686 int
4687 main ()
4688 {
4689
4690   ;
4691   return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest.$ac_objext conftest$ac_exeext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4696   (eval $ac_link) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } &&
4700          { ac_try='test -s conftest$ac_exeext'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; }; then
4706   lt_cv_prog_cc_static_works=yes
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 fi
4712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4713   LDFLAGS="$save_LDFLAGS"
4714
4715 fi
4716
4717
4718 # Belt *and* braces to stop my trousers falling down:
4719 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4720 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4721 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4722
4723 pic_flag="$lt_cv_prog_cc_pic"
4724 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4725 wl="$lt_cv_prog_cc_wl"
4726 link_static_flag="$lt_cv_prog_cc_static"
4727 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4728 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4729
4730
4731 # Check to see if options -o and -c are simultaneously supported by compiler
4732 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4733 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4734 if test "${lt_cv_compiler_c_o+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737
4738 $rm -r conftest 2>/dev/null
4739 mkdir conftest
4740 cd conftest
4741 echo "int some_variable = 0;" > conftest.$ac_ext
4742 mkdir out
4743 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4744 # that will create temporary files in the current directory regardless of
4745 # the output directory.  Thus, making CWD read-only will cause this test
4746 # to fail, enabling locking or at least warning the user not to do parallel
4747 # builds.
4748 chmod -w .
4749 save_CFLAGS="$CFLAGS"
4750 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4751 compiler_c_o=no
4752 if { (eval echo configure:4752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4753   # The compiler can only warn and ignore the option if not recognized
4754   # So say no if there are warnings
4755   if test -s out/conftest.err; then
4756     lt_cv_compiler_c_o=no
4757   else
4758     lt_cv_compiler_c_o=yes
4759   fi
4760 else
4761   # Append any errors to the config.log.
4762   cat out/conftest.err 1>&5
4763   lt_cv_compiler_c_o=no
4764 fi
4765 CFLAGS="$save_CFLAGS"
4766 chmod u+w .
4767 $rm conftest* out/*
4768 rmdir out
4769 cd ..
4770 rmdir conftest
4771 $rm -r conftest 2>/dev/null
4772
4773 fi
4774
4775 compiler_c_o=$lt_cv_compiler_c_o
4776 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4777 echo "${ECHO_T}$compiler_c_o" >&6
4778
4779 if test x"$compiler_c_o" = x"yes"; then
4780   # Check to see if we can write to a .lo
4781   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4782 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4783   if test "${lt_cv_compiler_o_lo+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786
4787   lt_cv_compiler_o_lo=no
4788   save_CFLAGS="$CFLAGS"
4789   CFLAGS="$CFLAGS -c -o conftest.lo"
4790   save_objext="$ac_objext"
4791   ac_objext=lo
4792   cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799
4800 int
4801 main ()
4802 {
4803 int some_variable = 0;
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810   (eval $ac_compile) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); } &&
4814          { ac_try='test -s conftest.$ac_objext'
4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); }; }; then
4820       # The compiler can only warn and ignore the option if not recognized
4821     # So say no if there are warnings
4822     if test -s conftest.err; then
4823       lt_cv_compiler_o_lo=no
4824     else
4825       lt_cv_compiler_o_lo=yes
4826     fi
4827
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832 fi
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834   ac_objext="$save_objext"
4835   CFLAGS="$save_CFLAGS"
4836
4837 fi
4838
4839   compiler_o_lo=$lt_cv_compiler_o_lo
4840   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4841 echo "${ECHO_T}$compiler_o_lo" >&6
4842 else
4843   compiler_o_lo=no
4844 fi
4845
4846 # Check to see if we can do hard links to lock some files if needed
4847 hard_links="nottested"
4848 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4849   # do not overwrite the value of need_locks provided by the user
4850   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4852   hard_links=yes
4853   $rm conftest*
4854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4855   touch conftest.a
4856   ln conftest.a conftest.b 2>&5 || hard_links=no
4857   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4858   echo "$as_me:$LINENO: result: $hard_links" >&5
4859 echo "${ECHO_T}$hard_links" >&6
4860   if test "$hard_links" = no; then
4861     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4863     need_locks=warn
4864   fi
4865 else
4866   need_locks=no
4867 fi
4868
4869 if test "$GCC" = yes; then
4870   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4871   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4872 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4873   echo "int some_variable = 0;" > conftest.$ac_ext
4874   save_CFLAGS="$CFLAGS"
4875   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4876   compiler_rtti_exceptions=no
4877   cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4879 /* confdefs.h.  */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h.  */
4884
4885 int
4886 main ()
4887 {
4888 int some_variable = 0;
4889   ;
4890   return 0;
4891 }
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895   (eval $ac_compile) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } &&
4899          { ac_try='test -s conftest.$ac_objext'
4900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901   (eval $ac_try) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); }; }; then
4905       # The compiler can only warn and ignore the option if not recognized
4906     # So say no if there are warnings
4907     if test -s conftest.err; then
4908       compiler_rtti_exceptions=no
4909     else
4910       compiler_rtti_exceptions=yes
4911     fi
4912
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 fi
4918 rm -f conftest.$ac_objext conftest.$ac_ext
4919   CFLAGS="$save_CFLAGS"
4920   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4921 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4922
4923   if test "$compiler_rtti_exceptions" = "yes"; then
4924     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4925   else
4926     no_builtin_flag=' -fno-builtin'
4927   fi
4928 fi
4929
4930 # See if the linker supports building shared libraries.
4931 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4932 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4933
4934 allow_undefined_flag=
4935 no_undefined_flag=
4936 need_lib_prefix=unknown
4937 need_version=unknown
4938 # when you set need_version to no, make sure it does not cause -set_version
4939 # flags to be left without arguments
4940 archive_cmds=
4941 archive_expsym_cmds=
4942 old_archive_from_new_cmds=
4943 old_archive_from_expsyms_cmds=
4944 export_dynamic_flag_spec=
4945 whole_archive_flag_spec=
4946 thread_safe_flag_spec=
4947 hardcode_into_libs=no
4948 hardcode_libdir_flag_spec=
4949 hardcode_libdir_separator=
4950 hardcode_direct=no
4951 hardcode_minus_L=no
4952 hardcode_shlibpath_var=unsupported
4953 runpath_var=
4954 link_all_deplibs=unknown
4955 always_export_symbols=no
4956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4957 # include_expsyms should be a list of space-separated symbols to be *always*
4958 # included in the symbol list
4959 include_expsyms=
4960 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4961 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4962 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4963 # as well as any symbol that contains `d'.
4964 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4965 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4966 # platforms (ab)use it in PIC code, but their linkers get confused if
4967 # the symbol is explicitly referenced.  Since portable code cannot
4968 # rely on this symbol name, it's probably fine to never include it in
4969 # preloaded symbol tables.
4970 extract_expsyms_cmds=
4971
4972 case $host_os in
4973 cygwin* | mingw* | pw32*)
4974   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4975   # When not using gcc, we currently assume that we are using
4976   # Microsoft Visual C++.
4977   if test "$GCC" != yes; then
4978     with_gnu_ld=no
4979   fi
4980   ;;
4981 openbsd*)
4982   with_gnu_ld=no
4983   ;;
4984 esac
4985
4986 ld_shlibs=yes
4987 if test "$with_gnu_ld" = yes; then
4988   # If archive_cmds runs LD, not CC, wlarc should be empty
4989   wlarc='${wl}'
4990
4991   # See if GNU ld supports shared libraries.
4992   case $host_os in
4993   aix3* | aix4* | aix5*)
4994     # On AIX, the GNU linker is very broken
4995     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4996     ld_shlibs=no
4997     cat <<EOF 1>&2
4998
4999 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5000 *** to be unable to reliably create shared libraries on AIX.
5001 *** Therefore, libtool is disabling shared libraries support.  If you
5002 *** really care for shared libraries, you may want to modify your PATH
5003 *** so that a non-GNU linker is found, and then restart.
5004
5005 EOF
5006     ;;
5007
5008   amigaos*)
5009     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)'
5010     hardcode_libdir_flag_spec='-L$libdir'
5011     hardcode_minus_L=yes
5012
5013     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5014     # that the semantics of dynamic libraries on AmigaOS, at least up
5015     # to version 4, is to share data among multiple programs linked
5016     # with the same dynamic library.  Since this doesn't match the
5017     # behavior of shared libraries on other platforms, we can use
5018     # them.
5019     ld_shlibs=no
5020     ;;
5021
5022   beos*)
5023     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5024       allow_undefined_flag=unsupported
5025       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5026       # support --undefined.  This deserves some investigation.  FIXME
5027       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5028     else
5029       ld_shlibs=no
5030     fi
5031     ;;
5032
5033   cygwin* | mingw* | pw32*)
5034     # hardcode_libdir_flag_spec is actually meaningless, as there is
5035     # no search path for DLLs.
5036     hardcode_libdir_flag_spec='-L$libdir'
5037     allow_undefined_flag=unsupported
5038     always_export_symbols=yes
5039
5040     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5041       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5042       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5043       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5044       else $CC -o impgen impgen.c ; fi)~
5045       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5046
5047     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5048
5049     # cygwin and mingw dlls have different entry points and sets of symbols
5050     # to exclude.
5051     # FIXME: what about values for MSVC?
5052     dll_entry=__cygwin_dll_entry@12
5053     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5054     case $host_os in
5055     mingw*)
5056       # mingw values
5057       dll_entry=_DllMainCRTStartup@12
5058       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5059       ;;
5060     esac
5061
5062     # mingw and cygwin differ, and it's simplest to just exclude the union
5063     # of the two symbol sets.
5064     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5065
5066     # recent cygwin and mingw systems supply a stub DllMain which the user
5067     # can override, but on older systems we have to supply one (in ltdll.c)
5068     if test "x$lt_cv_need_dllmain" = "xyes"; then
5069       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5070       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~
5071         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5072     else
5073       ltdll_obj=
5074       ltdll_cmds=
5075     fi
5076
5077     # Extract the symbol export list from an `--export-all' def file,
5078     # then regenerate the def file from the symbol export list, so that
5079     # the compiled dll only exports the symbol export list.
5080     # Be careful not to strip the DATA tag left be newer dlltools.
5081     export_symbols_cmds="$ltdll_cmds"'
5082       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5083       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5084
5085     # If the export-symbols file already is a .def file (1st line
5086     # is EXPORTS), use it as is.
5087     # If DATA tags from a recent dlltool are present, honour them!
5088     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5089         cp $export_symbols $output_objdir/$soname-def;
5090       else
5091         echo EXPORTS > $output_objdir/$soname-def;
5092         _lt_hint=1;
5093         cat $export_symbols | while read symbol; do
5094          set dummy \$symbol;
5095          case \$# in
5096            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5097            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5098          esac;
5099          _lt_hint=`expr 1 + \$_lt_hint`;
5100         done;
5101       fi~
5102       '"$ltdll_cmds"'
5103       $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~
5104       $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~
5105       $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~
5106       $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~
5107       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5108     ;;
5109
5110   netbsd*)
5111     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5112       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5113       wlarc=
5114     else
5115       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5116       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5117     fi
5118     ;;
5119
5120   solaris* | sysv5*)
5121     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5122       ld_shlibs=no
5123       cat <<EOF 1>&2
5124
5125 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5126 *** create shared libraries on Solaris systems.  Therefore, libtool
5127 *** is disabling shared libraries support.  We urge you to upgrade GNU
5128 *** binutils to release 2.9.1 or newer.  Another option is to modify
5129 *** your PATH or compiler configuration so that the native linker is
5130 *** used, and then restart.
5131
5132 EOF
5133     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5134       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5135       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5136     else
5137       ld_shlibs=no
5138     fi
5139     ;;
5140
5141   sunos4*)
5142     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5143     wlarc=
5144     hardcode_direct=yes
5145     hardcode_shlibpath_var=no
5146     ;;
5147
5148   *)
5149     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5150       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5151       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5152     else
5153       ld_shlibs=no
5154     fi
5155     ;;
5156   esac
5157
5158   if test "$ld_shlibs" = yes; then
5159     runpath_var=LD_RUN_PATH
5160     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5161     export_dynamic_flag_spec='${wl}--export-dynamic'
5162     case $host_os in
5163     cygwin* | mingw* | pw32*)
5164       # dlltool doesn't understand --whole-archive et. al.
5165       whole_archive_flag_spec=
5166       ;;
5167     *)
5168       # ancient GNU ld didn't support --whole-archive et. al.
5169       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5170         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5171       else
5172         whole_archive_flag_spec=
5173       fi
5174       ;;
5175     esac
5176   fi
5177 else
5178   # PORTME fill in a description of your system's linker (not GNU ld)
5179   case $host_os in
5180   aix3*)
5181     allow_undefined_flag=unsupported
5182     always_export_symbols=yes
5183     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'
5184     # Note: this linker hardcodes the directories in LIBPATH if there
5185     # are no directories specified by -L.
5186     hardcode_minus_L=yes
5187     if test "$GCC" = yes && test -z "$link_static_flag"; then
5188       # Neither direct hardcoding nor static linking is supported with a
5189       # broken collect2.
5190       hardcode_direct=unsupported
5191     fi
5192     ;;
5193
5194   aix4* | aix5*)
5195     if test "$host_cpu" = ia64; then
5196       # On IA64, the linker does run time linking by default, so we don't
5197       # have to do anything special.
5198       aix_use_runtimelinking=no
5199       exp_sym_flag='-Bexport'
5200       no_entry_flag=""
5201     else
5202       aix_use_runtimelinking=no
5203
5204       # Test if we are trying to use run time linking or normal
5205       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5206       # need to do runtime linking.
5207       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5208         for ld_flag in $LDFLAGS; do
5209           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5210             aix_use_runtimelinking=yes
5211             break
5212           fi
5213         done
5214       esac
5215
5216       exp_sym_flag='-bexport'
5217       no_entry_flag='-bnoentry'
5218     fi
5219
5220     # When large executables or shared objects are built, AIX ld can
5221     # have problems creating the table of contents.  If linking a library
5222     # or program results in "error TOC overflow" add -mminimal-toc to
5223     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5224     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5225
5226     hardcode_direct=yes
5227     archive_cmds=''
5228     hardcode_libdir_separator=':'
5229     if test "$GCC" = yes; then
5230       case $host_os in aix4.[012]|aix4.[012].*)
5231         collect2name=`${CC} -print-prog-name=collect2`
5232         if test -f "$collect2name" && \
5233           strings "$collect2name" | grep resolve_lib_name >/dev/null
5234         then
5235           # We have reworked collect2
5236           hardcode_direct=yes
5237         else
5238           # We have old collect2
5239           hardcode_direct=unsupported
5240           # It fails to find uninstalled libraries when the uninstalled
5241           # path is not listed in the libpath.  Setting hardcode_minus_L
5242           # to unsupported forces relinking
5243           hardcode_minus_L=yes
5244           hardcode_libdir_flag_spec='-L$libdir'
5245           hardcode_libdir_separator=
5246         fi
5247       esac
5248
5249       shared_flag='-shared'
5250     else
5251       # not using gcc
5252       if test "$host_cpu" = ia64; then
5253         shared_flag='${wl}-G'
5254       else
5255         if test "$aix_use_runtimelinking" = yes; then
5256           shared_flag='${wl}-G'
5257         else
5258           shared_flag='${wl}-bM:SRE'
5259         fi
5260       fi
5261     fi
5262
5263     # It seems that -bexpall can do strange things, so it is better to
5264     # generate a list of symbols to export.
5265     always_export_symbols=yes
5266     if test "$aix_use_runtimelinking" = yes; then
5267       # Warning - without using the other runtime loading flags (-brtl),
5268       # -berok will link without error, but may produce a broken library.
5269       allow_undefined_flag='-berok'
5270       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5271       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"
5272     else
5273       if test "$host_cpu" = ia64; then
5274         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5275         allow_undefined_flag="-z nodefs"
5276         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"
5277       else
5278         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5279         # Warning - without using the other run time loading flags,
5280         # -berok will link without error, but may produce a broken library.
5281         allow_undefined_flag='${wl}-berok'
5282         # This is a bit strange, but is similar to how AIX traditionally builds
5283         # it's shared libraries.
5284         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'
5285       fi
5286     fi
5287     ;;
5288
5289   amigaos*)
5290     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)'
5291     hardcode_libdir_flag_spec='-L$libdir'
5292     hardcode_minus_L=yes
5293     # see comment about different semantics on the GNU ld section
5294     ld_shlibs=no
5295     ;;
5296
5297   cygwin* | mingw* | pw32*)
5298     # When not using gcc, we currently assume that we are using
5299     # Microsoft Visual C++.
5300     # hardcode_libdir_flag_spec is actually meaningless, as there is
5301     # no search path for DLLs.
5302     hardcode_libdir_flag_spec=' '
5303     allow_undefined_flag=unsupported
5304     # Tell ltmain to make .lib files, not .a files.
5305     libext=lib
5306     # FIXME: Setting linknames here is a bad hack.
5307     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5308     # The linker will automatically build a .lib file if we build a DLL.
5309     old_archive_from_new_cmds='true'
5310     # FIXME: Should let the user specify the lib program.
5311     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5312     fix_srcfile_path='`cygpath -w "$srcfile"`'
5313     ;;
5314
5315   darwin* | rhapsody*)
5316     case "$host_os" in
5317     rhapsody* | darwin1.[012])
5318       allow_undefined_flag='-undefined suppress'
5319       ;;
5320     *) # Darwin 1.3 on
5321       allow_undefined_flag='-flat_namespace -undefined suppress'
5322       ;;
5323     esac
5324     # FIXME: Relying on posixy $() will cause problems for
5325     #        cross-compilation, but unfortunately the echo tests do not
5326     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5327     #        `"' quotes if we put them in here... so don't!
5328     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5329     # We need to add '_' to the symbols in $export_symbols first
5330     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5331     hardcode_direct=yes
5332     hardcode_shlibpath_var=no
5333     whole_archive_flag_spec='-all_load $convenience'
5334     ;;
5335
5336   freebsd1*)
5337     ld_shlibs=no
5338     ;;
5339
5340   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5341   # support.  Future versions do this automatically, but an explicit c++rt0.o
5342   # does not break anything, and helps significantly (at the cost of a little
5343   # extra space).
5344   freebsd2.2*)
5345     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5346     hardcode_libdir_flag_spec='-R$libdir'
5347     hardcode_direct=yes
5348     hardcode_shlibpath_var=no
5349     ;;
5350
5351   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5352   freebsd2*)
5353     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5354     hardcode_direct=yes
5355     hardcode_minus_L=yes
5356     hardcode_shlibpath_var=no
5357     ;;
5358
5359   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5360   freebsd*)
5361     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5362     hardcode_libdir_flag_spec='-R$libdir'
5363     hardcode_direct=yes
5364     hardcode_shlibpath_var=no
5365     ;;
5366
5367   hpux9* | hpux10* | hpux11*)
5368     case $host_os in
5369     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' ;;
5370     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5371     esac
5372     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5373     hardcode_libdir_separator=:
5374     hardcode_direct=yes
5375     hardcode_minus_L=yes # Not in the search PATH, but as the default
5376                          # location of the library.
5377     export_dynamic_flag_spec='${wl}-E'
5378     ;;
5379
5380   irix5* | irix6* | nonstopux*)
5381     if test "$GCC" = yes; then
5382       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'
5383     else
5384       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'
5385     fi
5386     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5387     hardcode_libdir_separator=:
5388     link_all_deplibs=yes
5389     ;;
5390
5391   netbsd*)
5392     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5393       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5394     else
5395       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5396     fi
5397     hardcode_libdir_flag_spec='-R$libdir'
5398     hardcode_direct=yes
5399     hardcode_shlibpath_var=no
5400     ;;
5401
5402   newsos6)
5403     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5404     hardcode_direct=yes
5405     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5406     hardcode_libdir_separator=:
5407     hardcode_shlibpath_var=no
5408     ;;
5409
5410   openbsd*)
5411     hardcode_direct=yes
5412     hardcode_shlibpath_var=no
5413     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5414       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5415       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5416       export_dynamic_flag_spec='${wl}-E'
5417     else
5418       case "$host_os" in
5419       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5420         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5421         hardcode_libdir_flag_spec='-R$libdir'
5422         ;;
5423       *)
5424         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5425         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5426         ;;
5427       esac
5428     fi
5429     ;;
5430
5431   os2*)
5432     hardcode_libdir_flag_spec='-L$libdir'
5433     hardcode_minus_L=yes
5434     allow_undefined_flag=unsupported
5435     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'
5436     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5437     ;;
5438
5439   osf3*)
5440     if test "$GCC" = yes; then
5441       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5442       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'
5443     else
5444       allow_undefined_flag=' -expect_unresolved \*'
5445       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'
5446     fi
5447     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5448     hardcode_libdir_separator=:
5449     ;;
5450
5451   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5452     if test "$GCC" = yes; then
5453       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5454       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'
5455       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5456     else
5457       allow_undefined_flag=' -expect_unresolved \*'
5458       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'
5459       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5460       $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'
5461
5462       #Both c and cxx compiler support -rpath directly
5463       hardcode_libdir_flag_spec='-rpath $libdir'
5464     fi
5465     hardcode_libdir_separator=:
5466     ;;
5467
5468   sco3.2v5*)
5469     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5470     hardcode_shlibpath_var=no
5471     runpath_var=LD_RUN_PATH
5472     hardcode_runpath_var=yes
5473     export_dynamic_flag_spec='${wl}-Bexport'
5474     ;;
5475
5476   solaris*)
5477     # gcc --version < 3.0 without binutils cannot create self contained
5478     # shared libraries reliably, requiring libgcc.a to resolve some of
5479     # the object symbols generated in some cases.  Libraries that use
5480     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5481     # a copy of libgcc.a into every shared library to guarantee resolving
5482     # such symbols causes other problems:  According to Tim Van Holder
5483     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5484     # (to the application) exception stack for one thing.
5485     no_undefined_flag=' -z defs'
5486     if test "$GCC" = yes; then
5487       case `$CC --version 2>/dev/null` in
5488       [12].*)
5489         cat <<EOF 1>&2
5490
5491 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5492 *** create self contained shared libraries on Solaris systems, without
5493 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5494 *** -no-undefined support, which will at least allow you to build shared
5495 *** libraries.  However, you may find that when you link such libraries
5496 *** into an application without using GCC, you have to manually add
5497 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5498 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5499 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5500
5501 EOF
5502         no_undefined_flag=
5503         ;;
5504       esac
5505     fi
5506     # $CC -shared without GNU ld will not create a library from C++
5507     # object files and a static libstdc++, better avoid it by now
5508     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5509     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5510                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5511     hardcode_libdir_flag_spec='-R$libdir'
5512     hardcode_shlibpath_var=no
5513     case $host_os in
5514     solaris2.[0-5] | solaris2.[0-5].*) ;;
5515     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5516       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5517     esac
5518     link_all_deplibs=yes
5519     ;;
5520
5521   sunos4*)
5522     if test "x$host_vendor" = xsequent; then
5523       # Use $CC to link under sequent, because it throws in some extra .o
5524       # files that make .init and .fini sections work.
5525       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5526     else
5527       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5528     fi
5529     hardcode_libdir_flag_spec='-L$libdir'
5530     hardcode_direct=yes
5531     hardcode_minus_L=yes
5532     hardcode_shlibpath_var=no
5533     ;;
5534
5535   sysv4)
5536     if test "x$host_vendor" = xsno; then
5537       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538       hardcode_direct=yes # is this really true???
5539     else
5540       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5541       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5542     fi
5543     runpath_var='LD_RUN_PATH'
5544     hardcode_shlibpath_var=no
5545     ;;
5546
5547   sysv4.3*)
5548     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5549     hardcode_shlibpath_var=no
5550     export_dynamic_flag_spec='-Bexport'
5551     ;;
5552
5553   sysv5*)
5554     no_undefined_flag=' -z text'
5555     # $CC -shared without GNU ld will not create a library from C++
5556     # object files and a static libstdc++, better avoid it by now
5557     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5558     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5559                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5560     hardcode_libdir_flag_spec=
5561     hardcode_shlibpath_var=no
5562     runpath_var='LD_RUN_PATH'
5563     ;;
5564
5565   uts4*)
5566     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5567     hardcode_libdir_flag_spec='-L$libdir'
5568     hardcode_shlibpath_var=no
5569     ;;
5570
5571   dgux*)
5572     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5573     hardcode_libdir_flag_spec='-L$libdir'
5574     hardcode_shlibpath_var=no
5575     ;;
5576
5577   sysv4*MP*)
5578     if test -d /usr/nec; then
5579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5580       hardcode_shlibpath_var=no
5581       runpath_var=LD_RUN_PATH
5582       hardcode_runpath_var=yes
5583       ld_shlibs=yes
5584     fi
5585     ;;
5586
5587   sysv4.2uw2*)
5588     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5589     hardcode_direct=yes
5590     hardcode_minus_L=no
5591     hardcode_shlibpath_var=no
5592     hardcode_runpath_var=yes
5593     runpath_var=LD_RUN_PATH
5594     ;;
5595
5596   sysv5uw7* | unixware7*)
5597     no_undefined_flag='${wl}-z ${wl}text'
5598     if test "$GCC" = yes; then
5599       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5600     else
5601       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5602     fi
5603     runpath_var='LD_RUN_PATH'
5604     hardcode_shlibpath_var=no
5605     ;;
5606
5607   *)
5608     ld_shlibs=no
5609     ;;
5610   esac
5611 fi
5612 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5613 echo "${ECHO_T}$ld_shlibs" >&6
5614 test "$ld_shlibs" = no && can_build_shared=no
5615
5616 # Check hardcoding attributes.
5617 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5618 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5619 hardcode_action=
5620 if test -n "$hardcode_libdir_flag_spec" || \
5621    test -n "$runpath_var"; then
5622
5623   # We can hardcode non-existant directories.
5624   if test "$hardcode_direct" != no &&
5625      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5626      # have to relink, otherwise we might link with an installed library
5627      # when we should be linking with a yet-to-be-installed one
5628      ## test "$hardcode_shlibpath_var" != no &&
5629      test "$hardcode_minus_L" != no; then
5630     # Linking always hardcodes the temporary library directory.
5631     hardcode_action=relink
5632   else
5633     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5634     hardcode_action=immediate
5635   fi
5636 else
5637   # We cannot hardcode anything, or else we can only hardcode existing
5638   # directories.
5639   hardcode_action=unsupported
5640 fi
5641 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5642 echo "${ECHO_T}$hardcode_action" >&6
5643
5644 striplib=
5645 old_striplib=
5646 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5647 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5648 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5649   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5650   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5651   echo "$as_me:$LINENO: result: yes" >&5
5652 echo "${ECHO_T}yes" >&6
5653 else
5654   echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5656 fi
5657
5658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5659 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5660
5661 # PORTME Fill in your ld.so characteristics
5662 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5663 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5664 library_names_spec=
5665 libname_spec='lib$name'
5666 soname_spec=
5667 postinstall_cmds=
5668 postuninstall_cmds=
5669 finish_cmds=
5670 finish_eval=
5671 shlibpath_var=
5672 shlibpath_overrides_runpath=unknown
5673 version_type=none
5674 dynamic_linker="$host_os ld.so"
5675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5677
5678 case $host_os in
5679 aix3*)
5680   version_type=linux
5681   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5682   shlibpath_var=LIBPATH
5683
5684   # AIX has no versioning support, so we append a major version to the name.
5685   soname_spec='${libname}${release}.so$major'
5686   ;;
5687
5688 aix4* | aix5*)
5689   version_type=linux
5690   if test "$host_cpu" = ia64; then
5691     # AIX 5 supports IA64
5692     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5693     shlibpath_var=LD_LIBRARY_PATH
5694   else
5695     # With GCC up to 2.95.x, collect2 would create an import file
5696     # for dependence libraries.  The import file would start with
5697     # the line `#! .'.  This would cause the generated library to
5698     # depend on `.', always an invalid library.  This was fixed in
5699     # development snapshots of GCC prior to 3.0.
5700     case $host_os in
5701       aix4 | aix4.[01] | aix4.[01].*)
5702         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5703              echo ' yes '
5704              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5705           :
5706         else
5707           can_build_shared=no
5708         fi
5709         ;;
5710     esac
5711     # AIX (on Power*) has no versioning support, so currently we can
5712     # not hardcode correct soname into executable. Probably we can
5713     # add versioning support to collect2, so additional links can
5714     # be useful in future.
5715     if test "$aix_use_runtimelinking" = yes; then
5716       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5717       # instead of lib<name>.a to let people know that these are not
5718       # typical AIX shared libraries.
5719       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5720     else
5721       # We preserve .a as extension for shared libraries through AIX4.2
5722       # and later when we are not doing run time linking.
5723       library_names_spec='${libname}${release}.a $libname.a'
5724       soname_spec='${libname}${release}.so$major'
5725     fi
5726     shlibpath_var=LIBPATH
5727   fi
5728   ;;
5729
5730 amigaos*)
5731   library_names_spec='$libname.ixlibrary $libname.a'
5732   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5733   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'
5734   ;;
5735
5736 beos*)
5737   library_names_spec='${libname}.so'
5738   dynamic_linker="$host_os ld.so"
5739   shlibpath_var=LIBRARY_PATH
5740   ;;
5741
5742 bsdi4*)
5743   version_type=linux
5744   need_version=no
5745   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5746   soname_spec='${libname}${release}.so$major'
5747   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5748   shlibpath_var=LD_LIBRARY_PATH
5749   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5750   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5751   export_dynamic_flag_spec=-rdynamic
5752   # the default ld.so.conf also contains /usr/contrib/lib and
5753   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5754   # libtool to hard-code these into programs
5755   ;;
5756
5757 cygwin* | mingw* | pw32*)
5758   version_type=windows
5759   need_version=no
5760   need_lib_prefix=no
5761   case $GCC,$host_os in
5762   yes,cygwin*)
5763     library_names_spec='$libname.dll.a'
5764     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5765     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5766       dldir=$destdir/`dirname \$dlpath`~
5767       test -d \$dldir || mkdir -p \$dldir~
5768       $install_prog .libs/$dlname \$dldir/$dlname'
5769     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5770       dlpath=$dir/\$dldll~
5771        $rm \$dlpath'
5772     ;;
5773   yes,mingw*)
5774     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5775     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5776     ;;
5777   yes,pw32*)
5778     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5779     ;;
5780   *)
5781     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5782     ;;
5783   esac
5784   dynamic_linker='Win32 ld.exe'
5785   # FIXME: first we should search . and the directory the executable is in
5786   shlibpath_var=PATH
5787   ;;
5788
5789 darwin* | rhapsody*)
5790   dynamic_linker="$host_os dyld"
5791   version_type=darwin
5792   need_lib_prefix=no
5793   need_version=no
5794   # FIXME: Relying on posixy $() will cause problems for
5795   #        cross-compilation, but unfortunately the echo tests do not
5796   #        yet detect zsh echo's removal of \ escapes.
5797   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)'
5798   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5799   shlibpath_overrides_runpath=yes
5800   shlibpath_var=DYLD_LIBRARY_PATH
5801   ;;
5802
5803 freebsd1*)
5804   dynamic_linker=no
5805   ;;
5806
5807 freebsd*)
5808   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5809   version_type=freebsd-$objformat
5810   case $version_type in
5811     freebsd-elf*)
5812       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5813       need_version=no
5814       need_lib_prefix=no
5815       ;;
5816     freebsd-*)
5817       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5818       need_version=yes
5819       ;;
5820   esac
5821   shlibpath_var=LD_LIBRARY_PATH
5822   case $host_os in
5823   freebsd2*)
5824     shlibpath_overrides_runpath=yes
5825     ;;
5826   *)
5827     shlibpath_overrides_runpath=no
5828     hardcode_into_libs=yes
5829     ;;
5830   esac
5831   ;;
5832
5833 gnu*)
5834   version_type=linux
5835   need_lib_prefix=no
5836   need_version=no
5837   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5838   soname_spec='${libname}${release}.so$major'
5839   shlibpath_var=LD_LIBRARY_PATH
5840   hardcode_into_libs=yes
5841   ;;
5842
5843 hpux9* | hpux10* | hpux11*)
5844   # Give a soname corresponding to the major version so that dld.sl refuses to
5845   # link against other versions.
5846   dynamic_linker="$host_os dld.sl"
5847   version_type=sunos
5848   need_lib_prefix=no
5849   need_version=no
5850   shlibpath_var=SHLIB_PATH
5851   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5852   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5853   soname_spec='${libname}${release}.sl$major'
5854   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5855   postinstall_cmds='chmod 555 $lib'
5856   ;;
5857
5858 irix5* | irix6* | nonstopux*)
5859   case $host_os in
5860     nonstopux*) version_type=nonstopux ;;
5861     *)          version_type=irix ;;
5862   esac
5863   need_lib_prefix=no
5864   need_version=no
5865   soname_spec='${libname}${release}.so$major'
5866   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5867   case $host_os in
5868   irix5* | nonstopux*)
5869     libsuff= shlibsuff=
5870     ;;
5871   *)
5872     case $LD in # libtool.m4 will add one of these switches to LD
5873     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5874     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5875     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5876     *) libsuff= shlibsuff= libmagic=never-match;;
5877     esac
5878     ;;
5879   esac
5880   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5881   shlibpath_overrides_runpath=no
5882   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5883   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5884   ;;
5885
5886 # No shared lib support for Linux oldld, aout, or coff.
5887 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5888   dynamic_linker=no
5889   ;;
5890
5891 # This must be Linux ELF.
5892 linux-gnu*)
5893   version_type=linux
5894   need_lib_prefix=no
5895   need_version=no
5896   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5897   soname_spec='${libname}${release}.so$major'
5898   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5899   shlibpath_var=LD_LIBRARY_PATH
5900   shlibpath_overrides_runpath=no
5901   # This implies no fast_install, which is unacceptable.
5902   # Some rework will be needed to allow for fast_install
5903   # before this can be enabled.
5904   hardcode_into_libs=yes
5905
5906   # We used to test for /lib/ld.so.1 and disable shared libraries on
5907   # powerpc, because MkLinux only supported shared libraries with the
5908   # GNU dynamic linker.  Since this was broken with cross compilers,
5909   # most powerpc-linux boxes support dynamic linking these days and
5910   # people can always --disable-shared, the test was removed, and we
5911   # assume the GNU/Linux dynamic linker is in use.
5912   dynamic_linker='GNU/Linux ld.so'
5913   ;;
5914
5915 netbsd*)
5916   version_type=sunos
5917   need_lib_prefix=no
5918   need_version=no
5919   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5920     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5921     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5922     dynamic_linker='NetBSD (a.out) ld.so'
5923   else
5924     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5925     soname_spec='${libname}${release}.so$major'
5926     dynamic_linker='NetBSD ld.elf_so'
5927   fi
5928   shlibpath_var=LD_LIBRARY_PATH
5929   shlibpath_overrides_runpath=yes
5930   hardcode_into_libs=yes
5931   ;;
5932
5933 newsos6)
5934   version_type=linux
5935   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5936   shlibpath_var=LD_LIBRARY_PATH
5937   shlibpath_overrides_runpath=yes
5938   ;;
5939
5940 openbsd*)
5941   version_type=sunos
5942   need_lib_prefix=no
5943   need_version=no
5944   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5945     case "$host_os" in
5946     openbsd2.[89] | openbsd2.[89].*)
5947       shlibpath_overrides_runpath=no
5948       ;;
5949     *)
5950       shlibpath_overrides_runpath=yes
5951       ;;
5952     esac
5953   else
5954     shlibpath_overrides_runpath=yes
5955   fi
5956   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5957   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5958   shlibpath_var=LD_LIBRARY_PATH
5959   ;;
5960
5961 os2*)
5962   libname_spec='$name'
5963   need_lib_prefix=no
5964   library_names_spec='$libname.dll $libname.a'
5965   dynamic_linker='OS/2 ld.exe'
5966   shlibpath_var=LIBPATH
5967   ;;
5968
5969 osf3* | osf4* | osf5*)
5970   version_type=osf
5971   need_version=no
5972   need_lib_prefix=no
5973   soname_spec='${libname}${release}.so'
5974   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5975   shlibpath_var=LD_LIBRARY_PATH
5976   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5977   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5978   ;;
5979
5980 sco3.2v5*)
5981   version_type=osf
5982   soname_spec='${libname}${release}.so$major'
5983   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5984   shlibpath_var=LD_LIBRARY_PATH
5985   ;;
5986
5987 solaris*)
5988   version_type=linux
5989   need_lib_prefix=no
5990   need_version=no
5991   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5992   soname_spec='${libname}${release}.so$major'
5993   shlibpath_var=LD_LIBRARY_PATH
5994   shlibpath_overrides_runpath=yes
5995   hardcode_into_libs=yes
5996   # ldd complains unless libraries are executable
5997   postinstall_cmds='chmod +x $lib'
5998   ;;
5999
6000 sunos4*)
6001   version_type=sunos
6002   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6003   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6004   shlibpath_var=LD_LIBRARY_PATH
6005   shlibpath_overrides_runpath=yes
6006   if test "$with_gnu_ld" = yes; then
6007     need_lib_prefix=no
6008   fi
6009   need_version=yes
6010   ;;
6011
6012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6013   version_type=linux
6014   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6015   soname_spec='${libname}${release}.so$major'
6016   shlibpath_var=LD_LIBRARY_PATH
6017   case $host_vendor in
6018     sni)
6019       shlibpath_overrides_runpath=no
6020       ;;
6021     motorola)
6022       need_lib_prefix=no
6023       need_version=no
6024       shlibpath_overrides_runpath=no
6025       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6026       ;;
6027   esac
6028   ;;
6029
6030 uts4*)
6031   version_type=linux
6032   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6033   soname_spec='${libname}${release}.so$major'
6034   shlibpath_var=LD_LIBRARY_PATH
6035   ;;
6036
6037 dgux*)
6038   version_type=linux
6039   need_lib_prefix=no
6040   need_version=no
6041   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6042   soname_spec='${libname}${release}.so$major'
6043   shlibpath_var=LD_LIBRARY_PATH
6044   ;;
6045
6046 sysv4*MP*)
6047   if test -d /usr/nec ;then
6048     version_type=linux
6049     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6050     soname_spec='$libname.so.$major'
6051     shlibpath_var=LD_LIBRARY_PATH
6052   fi
6053   ;;
6054
6055 *)
6056   dynamic_linker=no
6057   ;;
6058 esac
6059 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6060 echo "${ECHO_T}$dynamic_linker" >&6
6061 test "$dynamic_linker" = no && can_build_shared=no
6062
6063 # Report the final consequences.
6064 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6065 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6066 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6067 echo "${ECHO_T}$can_build_shared" >&6
6068
6069 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6070 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6071 test "$can_build_shared" = "no" && enable_shared=no
6072
6073 # On AIX, shared libraries and static libraries use the same namespace, and
6074 # are all built from PIC.
6075 case "$host_os" in
6076 aix3*)
6077   test "$enable_shared" = yes && enable_static=no
6078   if test -n "$RANLIB"; then
6079     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6080     postinstall_cmds='$RANLIB $lib'
6081   fi
6082   ;;
6083
6084 aix4*)
6085   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6086     test "$enable_shared" = yes && enable_static=no
6087   fi
6088   ;;
6089 esac
6090 echo "$as_me:$LINENO: result: $enable_shared" >&5
6091 echo "${ECHO_T}$enable_shared" >&6
6092
6093 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6094 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6095 # Make sure either enable_shared or enable_static is yes.
6096 test "$enable_shared" = yes || enable_static=yes
6097 echo "$as_me:$LINENO: result: $enable_static" >&5
6098 echo "${ECHO_T}$enable_static" >&6
6099
6100 if test "$hardcode_action" = relink; then
6101   # Fast installation is not supported
6102   enable_fast_install=no
6103 elif test "$shlibpath_overrides_runpath" = yes ||
6104      test "$enable_shared" = no; then
6105   # Fast installation is not necessary
6106   enable_fast_install=needless
6107 fi
6108
6109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6110 if test "$GCC" = yes; then
6111   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6112 fi
6113
6114 if test "x$enable_dlopen" != xyes; then
6115   enable_dlopen=unknown
6116   enable_dlopen_self=unknown
6117   enable_dlopen_self_static=unknown
6118 else
6119   lt_cv_dlopen=no
6120   lt_cv_dlopen_libs=
6121
6122   case $host_os in
6123   beos*)
6124     lt_cv_dlopen="load_add_on"
6125     lt_cv_dlopen_libs=
6126     lt_cv_dlopen_self=yes
6127     ;;
6128
6129   cygwin* | mingw* | pw32*)
6130     lt_cv_dlopen="LoadLibrary"
6131     lt_cv_dlopen_libs=
6132    ;;
6133
6134   *)
6135     echo "$as_me:$LINENO: checking for shl_load" >&5
6136 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6137 if test "${ac_cv_func_shl_load+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   cat >conftest.$ac_ext <<_ACEOF
6141 #line $LINENO "configure"
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 /* System header to define __stub macros and hopefully few prototypes,
6148     which can conflict with char shl_load (); below.  */
6149 #include <assert.h>
6150 /* Override any gcc2 internal prototype to avoid an error.  */
6151 #ifdef __cplusplus
6152 extern "C"
6153 {
6154 #endif
6155 /* We use char because int might match the return type of a gcc2
6156    builtin and then its argument prototype would still apply.  */
6157 char shl_load ();
6158 /* The GNU C library defines this for functions which it implements
6159     to always fail with ENOSYS.  Some functions are actually named
6160     something starting with __ and the normal name is an alias.  */
6161 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6162 choke me
6163 #else
6164 char (*f) () = shl_load;
6165 #endif
6166 #ifdef __cplusplus
6167 }
6168 #endif
6169
6170 int
6171 main ()
6172 {
6173
6174   ;
6175   return 0;
6176 }
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180   (eval $ac_link) 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } &&
6184          { ac_try='test -s conftest$ac_exeext'
6185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186   (eval $ac_try) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; }; then
6190   ac_cv_func_shl_load=yes
6191 else
6192   echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195 ac_cv_func_shl_load=no
6196 fi
6197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6198 fi
6199 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6200 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6201 if test $ac_cv_func_shl_load = yes; then
6202   lt_cv_dlopen="shl_load"
6203 else
6204   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6205 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6206 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   ac_check_lib_save_LIBS=$LIBS
6210 LIBS="-ldld  $LIBS"
6211 cat >conftest.$ac_ext <<_ACEOF
6212 #line $LINENO "configure"
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218
6219 /* Override any gcc2 internal prototype to avoid an error.  */
6220 #ifdef __cplusplus
6221 extern "C"
6222 #endif
6223 /* We use char because int might match the return type of a gcc2
6224    builtin and then its argument prototype would still apply.  */
6225 char shl_load ();
6226 int
6227 main ()
6228 {
6229 shl_load ();
6230   ;
6231   return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236   (eval $ac_link) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); } &&
6240          { ac_try='test -s conftest$ac_exeext'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; }; then
6246   ac_cv_lib_dld_shl_load=yes
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 ac_cv_lib_dld_shl_load=no
6252 fi
6253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6255 fi
6256 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6257 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6258 if test $ac_cv_lib_dld_shl_load = yes; then
6259   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6260 else
6261   echo "$as_me:$LINENO: checking for dlopen" >&5
6262 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6263 if test "${ac_cv_func_dlopen+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   cat >conftest.$ac_ext <<_ACEOF
6267 #line $LINENO "configure"
6268 /* confdefs.h.  */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h.  */
6273 /* System header to define __stub macros and hopefully few prototypes,
6274     which can conflict with char dlopen (); below.  */
6275 #include <assert.h>
6276 /* Override any gcc2 internal prototype to avoid an error.  */
6277 #ifdef __cplusplus
6278 extern "C"
6279 {
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282    builtin and then its argument prototype would still apply.  */
6283 char dlopen ();
6284 /* The GNU C library defines this for functions which it implements
6285     to always fail with ENOSYS.  Some functions are actually named
6286     something starting with __ and the normal name is an alias.  */
6287 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6288 choke me
6289 #else
6290 char (*f) () = dlopen;
6291 #endif
6292 #ifdef __cplusplus
6293 }
6294 #endif
6295
6296 int
6297 main ()
6298 {
6299
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306   (eval $ac_link) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -s conftest$ac_exeext'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_cv_func_dlopen=yes
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 ac_cv_func_dlopen=no
6322 fi
6323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6324 fi
6325 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6326 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6327 if test $ac_cv_func_dlopen = yes; then
6328   lt_cv_dlopen="dlopen"
6329 else
6330   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6331 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   ac_check_lib_save_LIBS=$LIBS
6336 LIBS="-ldl  $LIBS"
6337 cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344
6345 /* Override any gcc2 internal prototype to avoid an error.  */
6346 #ifdef __cplusplus
6347 extern "C"
6348 #endif
6349 /* We use char because int might match the return type of a gcc2
6350    builtin and then its argument prototype would still apply.  */
6351 char dlopen ();
6352 int
6353 main ()
6354 {
6355 dlopen ();
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362   (eval $ac_link) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } &&
6366          { ac_try='test -s conftest$ac_exeext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_cv_lib_dl_dlopen=yes
6373 else
6374   echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 ac_cv_lib_dl_dlopen=no
6378 fi
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6381 fi
6382 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6383 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6384 if test $ac_cv_lib_dl_dlopen = yes; then
6385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6386 else
6387   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6388 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   ac_check_lib_save_LIBS=$LIBS
6393 LIBS="-lsvld  $LIBS"
6394 cat >conftest.$ac_ext <<_ACEOF
6395 #line $LINENO "configure"
6396 /* confdefs.h.  */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h.  */
6401
6402 /* Override any gcc2 internal prototype to avoid an error.  */
6403 #ifdef __cplusplus
6404 extern "C"
6405 #endif
6406 /* We use char because int might match the return type of a gcc2
6407    builtin and then its argument prototype would still apply.  */
6408 char dlopen ();
6409 int
6410 main ()
6411 {
6412 dlopen ();
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext conftest$ac_exeext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419   (eval $ac_link) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } &&
6423          { ac_try='test -s conftest$ac_exeext'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_cv_lib_svld_dlopen=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_cv_lib_svld_dlopen=no
6435 fi
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_check_lib_save_LIBS
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6440 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6441 if test $ac_cv_lib_svld_dlopen = yes; then
6442   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6443 else
6444   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6445 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6446 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   ac_check_lib_save_LIBS=$LIBS
6450 LIBS="-ldld  $LIBS"
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458
6459 /* Override any gcc2 internal prototype to avoid an error.  */
6460 #ifdef __cplusplus
6461 extern "C"
6462 #endif
6463 /* We use char because int might match the return type of a gcc2
6464    builtin and then its argument prototype would still apply.  */
6465 char dld_link ();
6466 int
6467 main ()
6468 {
6469 dld_link ();
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476   (eval $ac_link) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); } &&
6480          { ac_try='test -s conftest$ac_exeext'
6481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482   (eval $ac_try) 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; }; then
6486   ac_cv_lib_dld_dld_link=yes
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 ac_cv_lib_dld_dld_link=no
6492 fi
6493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6494 LIBS=$ac_check_lib_save_LIBS
6495 fi
6496 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6497 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6498 if test $ac_cv_lib_dld_dld_link = yes; then
6499   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6500 fi
6501
6502
6503 fi
6504
6505
6506 fi
6507
6508
6509 fi
6510
6511
6512 fi
6513
6514
6515 fi
6516
6517     ;;
6518   esac
6519
6520   if test "x$lt_cv_dlopen" != xno; then
6521     enable_dlopen=yes
6522   else
6523     enable_dlopen=no
6524   fi
6525
6526   case $lt_cv_dlopen in
6527   dlopen)
6528     save_CPPFLAGS="$CPPFLAGS"
6529         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6530
6531     save_LDFLAGS="$LDFLAGS"
6532     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6533
6534     save_LIBS="$LIBS"
6535     LIBS="$lt_cv_dlopen_libs $LIBS"
6536
6537     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6538 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6539 if test "${lt_cv_dlopen_self+set}" = set; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542           if test "$cross_compiling" = yes; then :
6543   lt_cv_dlopen_self=cross
6544 else
6545     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6546   lt_status=$lt_dlunknown
6547   cat > conftest.$ac_ext <<EOF
6548 #line 6548 "configure"
6549 #include "confdefs.h"
6550
6551 #if HAVE_DLFCN_H
6552 #include <dlfcn.h>
6553 #endif
6554
6555 #include <stdio.h>
6556
6557 #ifdef RTLD_GLOBAL
6558 #  define LT_DLGLOBAL           RTLD_GLOBAL
6559 #else
6560 #  ifdef DL_GLOBAL
6561 #    define LT_DLGLOBAL         DL_GLOBAL
6562 #  else
6563 #    define LT_DLGLOBAL         0
6564 #  endif
6565 #endif
6566
6567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6568    find out it does not work in some platform. */
6569 #ifndef LT_DLLAZY_OR_NOW
6570 #  ifdef RTLD_LAZY
6571 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6572 #  else
6573 #    ifdef DL_LAZY
6574 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6575 #    else
6576 #      ifdef RTLD_NOW
6577 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6578 #      else
6579 #        ifdef DL_NOW
6580 #          define LT_DLLAZY_OR_NOW      DL_NOW
6581 #        else
6582 #          define LT_DLLAZY_OR_NOW      0
6583 #        endif
6584 #      endif
6585 #    endif
6586 #  endif
6587 #endif
6588
6589 #ifdef __cplusplus
6590 extern "C" void exit (int);
6591 #endif
6592
6593 void fnord() { int i=42;}
6594 int main ()
6595 {
6596   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6597   int status = $lt_dlunknown;
6598
6599   if (self)
6600     {
6601       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6602       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6603       /* dlclose (self); */
6604     }
6605
6606     exit (status);
6607 }
6608 EOF
6609   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610   (eval $ac_link) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6614     (./conftest; exit; ) 2>/dev/null
6615     lt_status=$?
6616     case x$lt_status in
6617       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6618       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6619       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6620     esac
6621   else :
6622     # compilation failed
6623     lt_cv_dlopen_self=no
6624   fi
6625 fi
6626 rm -fr conftest*
6627
6628
6629 fi
6630 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6631 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6632
6633     if test "x$lt_cv_dlopen_self" = xyes; then
6634       LDFLAGS="$LDFLAGS $link_static_flag"
6635       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6636 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6637 if test "${lt_cv_dlopen_self_static+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640           if test "$cross_compiling" = yes; then :
6641   lt_cv_dlopen_self_static=cross
6642 else
6643     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6644   lt_status=$lt_dlunknown
6645   cat > conftest.$ac_ext <<EOF
6646 #line 6646 "configure"
6647 #include "confdefs.h"
6648
6649 #if HAVE_DLFCN_H
6650 #include <dlfcn.h>
6651 #endif
6652
6653 #include <stdio.h>
6654
6655 #ifdef RTLD_GLOBAL
6656 #  define LT_DLGLOBAL           RTLD_GLOBAL
6657 #else
6658 #  ifdef DL_GLOBAL
6659 #    define LT_DLGLOBAL         DL_GLOBAL
6660 #  else
6661 #    define LT_DLGLOBAL         0
6662 #  endif
6663 #endif
6664
6665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6666    find out it does not work in some platform. */
6667 #ifndef LT_DLLAZY_OR_NOW
6668 #  ifdef RTLD_LAZY
6669 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6670 #  else
6671 #    ifdef DL_LAZY
6672 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6673 #    else
6674 #      ifdef RTLD_NOW
6675 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6676 #      else
6677 #        ifdef DL_NOW
6678 #          define LT_DLLAZY_OR_NOW      DL_NOW
6679 #        else
6680 #          define LT_DLLAZY_OR_NOW      0
6681 #        endif
6682 #      endif
6683 #    endif
6684 #  endif
6685 #endif
6686
6687 #ifdef __cplusplus
6688 extern "C" void exit (int);
6689 #endif
6690
6691 void fnord() { int i=42;}
6692 int main ()
6693 {
6694   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6695   int status = $lt_dlunknown;
6696
6697   if (self)
6698     {
6699       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6700       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6701       /* dlclose (self); */
6702     }
6703
6704     exit (status);
6705 }
6706 EOF
6707   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6708   (eval $ac_link) 2>&5
6709   ac_status=$?
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6712     (./conftest; exit; ) 2>/dev/null
6713     lt_status=$?
6714     case x$lt_status in
6715       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6716       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6717       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6718     esac
6719   else :
6720     # compilation failed
6721     lt_cv_dlopen_self_static=no
6722   fi
6723 fi
6724 rm -fr conftest*
6725
6726
6727 fi
6728 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6729 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6730     fi
6731
6732     CPPFLAGS="$save_CPPFLAGS"
6733     LDFLAGS="$save_LDFLAGS"
6734     LIBS="$save_LIBS"
6735     ;;
6736   esac
6737
6738   case $lt_cv_dlopen_self in
6739   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6740   *) enable_dlopen_self=unknown ;;
6741   esac
6742
6743   case $lt_cv_dlopen_self_static in
6744   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6745   *) enable_dlopen_self_static=unknown ;;
6746   esac
6747 fi
6748
6749
6750 if test "$enable_shared" = yes && test "$GCC" = yes; then
6751   case $archive_cmds in
6752   *'~'*)
6753     # FIXME: we may have to deal with multi-command sequences.
6754     ;;
6755   '$CC '*)
6756     # Test whether the compiler implicitly links with -lc since on some
6757     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6758     # to ld, don't add -lc before -lgcc.
6759     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6760 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6761     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   $rm conftest*
6765     echo 'static int dummy;' > conftest.$ac_ext
6766
6767     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768   (eval $ac_compile) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); }; then
6772       soname=conftest
6773       lib=conftest
6774       libobjs=conftest.$ac_objext
6775       deplibs=
6776       wl=$lt_cv_prog_cc_wl
6777       compiler_flags=-v
6778       linker_flags=-v
6779       verstring=
6780       output_objdir=.
6781       libname=conftest
6782       save_allow_undefined_flag=$allow_undefined_flag
6783       allow_undefined_flag=
6784       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6785   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); }
6789       then
6790         lt_cv_archive_cmds_need_lc=no
6791       else
6792         lt_cv_archive_cmds_need_lc=yes
6793       fi
6794       allow_undefined_flag=$save_allow_undefined_flag
6795     else
6796       cat conftest.err 1>&5
6797     fi
6798 fi
6799
6800     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6801 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6802     ;;
6803   esac
6804 fi
6805 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6806
6807 # The second clause should only fire when bootstrapping the
6808 # libtool distribution, otherwise you forgot to ship ltmain.sh
6809 # with your package, and you will get complaints that there are
6810 # no rules to generate ltmain.sh.
6811 if test -f "$ltmain"; then
6812   :
6813 else
6814   # If there is no Makefile yet, we rely on a make rule to execute
6815   # `config.status --recheck' to rerun these tests and create the
6816   # libtool script then.
6817   test -f Makefile && make "$ltmain"
6818 fi
6819
6820 if test -f "$ltmain"; then
6821   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6822   $rm -f "${ofile}T"
6823
6824   echo creating $ofile
6825
6826   # Now quote all the things that may contain metacharacters while being
6827   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6828   # variables and quote the copies for generation of the libtool script.
6829   for var in echo old_CC old_CFLAGS \
6830     AR AR_FLAGS CC LD LN_S NM SHELL \
6831     reload_flag reload_cmds wl \
6832     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6833     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6834     library_names_spec soname_spec \
6835     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6836     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6837     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6838     old_striplib striplib file_magic_cmd export_symbols_cmds \
6839     deplibs_check_method allow_undefined_flag no_undefined_flag \
6840     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6841     global_symbol_to_c_name_address \
6842     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6843     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6844     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6845
6846     case $var in
6847     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6848     old_postinstall_cmds | old_postuninstall_cmds | \
6849     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6850     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6851     postinstall_cmds | postuninstall_cmds | \
6852     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6853       # Double-quote double-evaled strings.
6854       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6855       ;;
6856     *)
6857       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6858       ;;
6859     esac
6860   done
6861
6862   cat <<__EOF__ > "${ofile}T"
6863 #! $SHELL
6864
6865 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6866 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6867 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6868 #
6869 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6870 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6871 #
6872 # This program is free software; you can redistribute it and/or modify
6873 # it under the terms of the GNU General Public License as published by
6874 # the Free Software Foundation; either version 2 of the License, or
6875 # (at your option) any later version.
6876 #
6877 # This program is distributed in the hope that it will be useful, but
6878 # WITHOUT ANY WARRANTY; without even the implied warranty of
6879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6880 # General Public License for more details.
6881 #
6882 # You should have received a copy of the GNU General Public License
6883 # along with this program; if not, write to the Free Software
6884 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6885 #
6886 # As a special exception to the GNU General Public License, if you
6887 # distribute this file as part of a program that contains a
6888 # configuration script generated by Autoconf, you may include it under
6889 # the same distribution terms that you use for the rest of that program.
6890
6891 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6892 Xsed="sed -e s/^X//"
6893
6894 # The HP-UX ksh and POSIX shell print the target directory to stdout
6895 # if CDPATH is set.
6896 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6897
6898 # ### BEGIN LIBTOOL CONFIG
6899
6900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6901
6902 # Shell to use when invoking shell scripts.
6903 SHELL=$lt_SHELL
6904
6905 # Whether or not to build shared libraries.
6906 build_libtool_libs=$enable_shared
6907
6908 # Whether or not to build static libraries.
6909 build_old_libs=$enable_static
6910
6911 # Whether or not to add -lc for building shared libraries.
6912 build_libtool_need_lc=$need_lc
6913
6914 # Whether or not to optimize for fast installation.
6915 fast_install=$enable_fast_install
6916
6917 # The host system.
6918 host_alias=$host_alias
6919 host=$host
6920
6921 # An echo program that does not interpret backslashes.
6922 echo=$lt_echo
6923
6924 # The archiver.
6925 AR=$lt_AR
6926 AR_FLAGS=$lt_AR_FLAGS
6927
6928 # The default C compiler.
6929 CC=$lt_CC
6930
6931 # Is the compiler the GNU C compiler?
6932 with_gcc=$GCC
6933
6934 # The linker used to build libraries.
6935 LD=$lt_LD
6936
6937 # Whether we need hard or soft links.
6938 LN_S=$lt_LN_S
6939
6940 # A BSD-compatible nm program.
6941 NM=$lt_NM
6942
6943 # A symbol stripping program
6944 STRIP=$STRIP
6945
6946 # Used to examine libraries when file_magic_cmd begins "file"
6947 MAGIC_CMD=$MAGIC_CMD
6948
6949 # Used on cygwin: DLL creation program.
6950 DLLTOOL="$DLLTOOL"
6951
6952 # Used on cygwin: object dumper.
6953 OBJDUMP="$OBJDUMP"
6954
6955 # Used on cygwin: assembler.
6956 AS="$AS"
6957
6958 # The name of the directory that contains temporary libtool files.
6959 objdir=$objdir
6960
6961 # How to create reloadable object files.
6962 reload_flag=$lt_reload_flag
6963 reload_cmds=$lt_reload_cmds
6964
6965 # How to pass a linker flag through the compiler.
6966 wl=$lt_wl
6967
6968 # Object file suffix (normally "o").
6969 objext="$ac_objext"
6970
6971 # Old archive suffix (normally "a").
6972 libext="$libext"
6973
6974 # Executable file suffix (normally "").
6975 exeext="$exeext"
6976
6977 # Additional compiler flags for building library objects.
6978 pic_flag=$lt_pic_flag
6979 pic_mode=$pic_mode
6980
6981 # Does compiler simultaneously support -c and -o options?
6982 compiler_c_o=$lt_compiler_c_o
6983
6984 # Can we write directly to a .lo ?
6985 compiler_o_lo=$lt_compiler_o_lo
6986
6987 # Must we lock files when doing compilation ?
6988 need_locks=$lt_need_locks
6989
6990 # Do we need the lib prefix for modules?
6991 need_lib_prefix=$need_lib_prefix
6992
6993 # Do we need a version for libraries?
6994 need_version=$need_version
6995
6996 # Whether dlopen is supported.
6997 dlopen_support=$enable_dlopen
6998
6999 # Whether dlopen of programs is supported.
7000 dlopen_self=$enable_dlopen_self
7001
7002 # Whether dlopen of statically linked programs is supported.
7003 dlopen_self_static=$enable_dlopen_self_static
7004
7005 # Compiler flag to prevent dynamic linking.
7006 link_static_flag=$lt_link_static_flag
7007
7008 # Compiler flag to turn off builtin functions.
7009 no_builtin_flag=$lt_no_builtin_flag
7010
7011 # Compiler flag to allow reflexive dlopens.
7012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7013
7014 # Compiler flag to generate shared objects directly from archives.
7015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7016
7017 # Compiler flag to generate thread-safe objects.
7018 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7019
7020 # Library versioning type.
7021 version_type=$version_type
7022
7023 # Format of library name prefix.
7024 libname_spec=$lt_libname_spec
7025
7026 # List of archive names.  First name is the real one, the rest are links.
7027 # The last name is the one that the linker finds with -lNAME.
7028 library_names_spec=$lt_library_names_spec
7029
7030 # The coded name of the library, if different from the real name.
7031 soname_spec=$lt_soname_spec
7032
7033 # Commands used to build and install an old-style archive.
7034 RANLIB=$lt_RANLIB
7035 old_archive_cmds=$lt_old_archive_cmds
7036 old_postinstall_cmds=$lt_old_postinstall_cmds
7037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7038
7039 # Create an old-style archive from a shared archive.
7040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7041
7042 # Create a temporary old-style archive to link instead of a shared archive.
7043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7044
7045 # Commands used to build and install a shared archive.
7046 archive_cmds=$lt_archive_cmds
7047 archive_expsym_cmds=$lt_archive_expsym_cmds
7048 postinstall_cmds=$lt_postinstall_cmds
7049 postuninstall_cmds=$lt_postuninstall_cmds
7050
7051 # Commands to strip libraries.
7052 old_striplib=$lt_old_striplib
7053 striplib=$lt_striplib
7054
7055 # Method to check whether dependent libraries are shared objects.
7056 deplibs_check_method=$lt_deplibs_check_method
7057
7058 # Command to use when deplibs_check_method == file_magic.
7059 file_magic_cmd=$lt_file_magic_cmd
7060
7061 # Flag that allows shared libraries with undefined symbols to be built.
7062 allow_undefined_flag=$lt_allow_undefined_flag
7063
7064 # Flag that forces no undefined symbols.
7065 no_undefined_flag=$lt_no_undefined_flag
7066
7067 # Commands used to finish a libtool library installation in a directory.
7068 finish_cmds=$lt_finish_cmds
7069
7070 # Same as above, but a single script fragment to be evaled but not shown.
7071 finish_eval=$lt_finish_eval
7072
7073 # Take the output of nm and produce a listing of raw symbols and C names.
7074 global_symbol_pipe=$lt_global_symbol_pipe
7075
7076 # Transform the output of nm in a proper C declaration
7077 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7078
7079 # Transform the output of nm in a C name address pair
7080 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7081
7082 # This is the shared library runtime path variable.
7083 runpath_var=$runpath_var
7084
7085 # This is the shared library path variable.
7086 shlibpath_var=$shlibpath_var
7087
7088 # Is shlibpath searched before the hard-coded library search path?
7089 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7090
7091 # How to hardcode a shared library path into an executable.
7092 hardcode_action=$hardcode_action
7093
7094 # Whether we should hardcode library paths into libraries.
7095 hardcode_into_libs=$hardcode_into_libs
7096
7097 # Flag to hardcode \$libdir into a binary during linking.
7098 # This must work even if \$libdir does not exist.
7099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7100
7101 # Whether we need a single -rpath flag with a separated argument.
7102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7103
7104 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7105 # resulting binary.
7106 hardcode_direct=$hardcode_direct
7107
7108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7109 # resulting binary.
7110 hardcode_minus_L=$hardcode_minus_L
7111
7112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7113 # the resulting binary.
7114 hardcode_shlibpath_var=$hardcode_shlibpath_var
7115
7116 # Variables whose values should be saved in libtool wrapper scripts and
7117 # restored at relink time.
7118 variables_saved_for_relink="$variables_saved_for_relink"
7119
7120 # Whether libtool must link a program against all its dependency libraries.
7121 link_all_deplibs=$link_all_deplibs
7122
7123 # Compile-time system search path for libraries
7124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7125
7126 # Run-time system search path for libraries
7127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7128
7129 # Fix the shell variable \$srcfile for the compiler.
7130 fix_srcfile_path="$fix_srcfile_path"
7131
7132 # Set to yes if exported symbols are required.
7133 always_export_symbols=$always_export_symbols
7134
7135 # The commands to list exported symbols.
7136 export_symbols_cmds=$lt_export_symbols_cmds
7137
7138 # The commands to extract the exported symbol list from a shared archive.
7139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7140
7141 # Symbols that should not be listed in the preloaded symbols.
7142 exclude_expsyms=$lt_exclude_expsyms
7143
7144 # Symbols that must always be exported.
7145 include_expsyms=$lt_include_expsyms
7146
7147 # ### END LIBTOOL CONFIG
7148
7149 __EOF__
7150
7151   case $host_os in
7152   aix3*)
7153     cat <<\EOF >> "${ofile}T"
7154
7155 # AIX sometimes has problems with the GCC collect2 program.  For some
7156 # reason, if we set the COLLECT_NAMES environment variable, the problems
7157 # vanish in a puff of smoke.
7158 if test "X${COLLECT_NAMES+set}" != Xset; then
7159   COLLECT_NAMES=
7160   export COLLECT_NAMES
7161 fi
7162 EOF
7163     ;;
7164   esac
7165
7166   case $host_os in
7167   cygwin* | mingw* | pw32* | os2*)
7168     cat <<'EOF' >> "${ofile}T"
7169       # This is a source program that is used to create dlls on Windows
7170       # Don't remove nor modify the starting and closing comments
7171 # /* ltdll.c starts here */
7172 # #define WIN32_LEAN_AND_MEAN
7173 # #include <windows.h>
7174 # #undef WIN32_LEAN_AND_MEAN
7175 # #include <stdio.h>
7176 #
7177 # #ifndef __CYGWIN__
7178 # #  ifdef __CYGWIN32__
7179 # #    define __CYGWIN__ __CYGWIN32__
7180 # #  endif
7181 # #endif
7182 #
7183 # #ifdef __cplusplus
7184 # extern "C" {
7185 # #endif
7186 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7187 # #ifdef __cplusplus
7188 # }
7189 # #endif
7190 #
7191 # #ifdef __CYGWIN__
7192 # #include <cygwin/cygwin_dll.h>
7193 # DECLARE_CYGWIN_DLL( DllMain );
7194 # #endif
7195 # HINSTANCE __hDllInstance_base;
7196 #
7197 # BOOL APIENTRY
7198 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7199 # {
7200 #   __hDllInstance_base = hInst;
7201 #   return TRUE;
7202 # }
7203 # /* ltdll.c ends here */
7204         # This is a source program that is used to create import libraries
7205         # on Windows for dlls which lack them. Don't remove nor modify the
7206         # starting and closing comments
7207 # /* impgen.c starts here */
7208 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7209 #
7210 #  This file is part of GNU libtool.
7211 #
7212 #  This program is free software; you can redistribute it and/or modify
7213 #  it under the terms of the GNU General Public License as published by
7214 #  the Free Software Foundation; either version 2 of the License, or
7215 #  (at your option) any later version.
7216 #
7217 #  This program is distributed in the hope that it will be useful,
7218 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7219 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7220 #  GNU General Public License for more details.
7221 #
7222 #  You should have received a copy of the GNU General Public License
7223 #  along with this program; if not, write to the Free Software
7224 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7225 #  */
7226 #
7227 # #include <stdio.h>            /* for printf() */
7228 # #include <unistd.h>           /* for open(), lseek(), read() */
7229 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7230 # #include <string.h>           /* for strdup() */
7231 #
7232 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7233 # #ifndef O_BINARY
7234 # #define O_BINARY 0
7235 # #endif
7236 #
7237 # static unsigned int
7238 # pe_get16 (fd, offset)
7239 #      int fd;
7240 #      int offset;
7241 # {
7242 #   unsigned char b[2];
7243 #   lseek (fd, offset, SEEK_SET);
7244 #   read (fd, b, 2);
7245 #   return b[0] + (b[1]<<8);
7246 # }
7247 #
7248 # static unsigned int
7249 # pe_get32 (fd, offset)
7250 #     int fd;
7251 #     int offset;
7252 # {
7253 #   unsigned char b[4];
7254 #   lseek (fd, offset, SEEK_SET);
7255 #   read (fd, b, 4);
7256 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7257 # }
7258 #
7259 # static unsigned int
7260 # pe_as32 (ptr)
7261 #      void *ptr;
7262 # {
7263 #   unsigned char *b = ptr;
7264 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7265 # }
7266 #
7267 # int
7268 # main (argc, argv)
7269 #     int argc;
7270 #     char *argv[];
7271 # {
7272 #     int dll;
7273 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7274 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7275 #     unsigned long name_rvas, nexp;
7276 #     unsigned char *expdata, *erva;
7277 #     char *filename, *dll_name;
7278 #
7279 #     filename = argv[1];
7280 #
7281 #     dll = open(filename, O_RDONLY|O_BINARY);
7282 #     if (dll < 1)
7283 #       return 1;
7284 #
7285 #     dll_name = filename;
7286 #
7287 #     for (i=0; filename[i]; i++)
7288 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7289 #           dll_name = filename + i +1;
7290 #
7291 #     pe_header_offset = pe_get32 (dll, 0x3c);
7292 #     opthdr_ofs = pe_header_offset + 4 + 20;
7293 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7294 #
7295 #     if (num_entries < 1) /* no exports */
7296 #       return 1;
7297 #
7298 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7299 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7300 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7301 #     secptr = (pe_header_offset + 4 + 20 +
7302 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7303 #
7304 #     expptr = 0;
7305 #     for (i = 0; i < nsections; i++)
7306 #     {
7307 #       char sname[8];
7308 #       unsigned long secptr1 = secptr + 40 * i;
7309 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7310 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7311 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7312 #       lseek(dll, secptr1, SEEK_SET);
7313 #       read(dll, sname, 8);
7314 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7315 #       {
7316 #           expptr = fptr + (export_rva - vaddr);
7317 #           if (export_rva + export_size > vaddr + vsize)
7318 #               export_size = vsize - (export_rva - vaddr);
7319 #           break;
7320 #       }
7321 #     }
7322 #
7323 #     expdata = (unsigned char*)malloc(export_size);
7324 #     lseek (dll, expptr, SEEK_SET);
7325 #     read (dll, expdata, export_size);
7326 #     erva = expdata - export_rva;
7327 #
7328 #     nexp = pe_as32 (expdata+24);
7329 #     name_rvas = pe_as32 (expdata+32);
7330 #
7331 #     printf ("EXPORTS\n");
7332 #     for (i = 0; i<nexp; i++)
7333 #     {
7334 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7335 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7336 #     }
7337 #
7338 #     return 0;
7339 # }
7340 # /* impgen.c ends here */
7341
7342 EOF
7343     ;;
7344   esac
7345
7346   # We use sed instead of cat because bash on DJGPP gets confused if
7347   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7348   # text mode, it properly converts lines to CR/LF.  This bash problem
7349   # is reportedly fixed, but why not run on old versions too?
7350   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7351
7352   mv -f "${ofile}T" "$ofile" || \
7353     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7354   chmod +x "$ofile"
7355 fi
7356
7357
7358
7359
7360
7361 # This can be used to rebuild libtool when needed
7362 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7363
7364 # Always use our own libtool.
7365 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7366
7367 # Prevent multiple expansion
7368
7369
7370 for ac_prog in 'bison -y' byacc
7371 do
7372   # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy $ac_prog; ac_word=$2
7374 echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7376 if test "${ac_cv_prog_YACC+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   if test -n "$YACC"; then
7380   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389     ac_cv_prog_YACC="$ac_prog"
7390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395
7396 fi
7397 fi
7398 YACC=$ac_cv_prog_YACC
7399 if test -n "$YACC"; then
7400   echo "$as_me:$LINENO: result: $YACC" >&5
7401 echo "${ECHO_T}$YACC" >&6
7402 else
7403   echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7405 fi
7406
7407   test -n "$YACC" && break
7408 done
7409 test -n "$YACC" || YACC="yacc"
7410
7411 ac_ext=c
7412 ac_cpp='$CPP $CPPFLAGS'
7413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7416 if test -n "$ac_tool_prefix"; then
7417   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7419 echo "$as_me:$LINENO: checking for $ac_word" >&5
7420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7421 if test "${ac_cv_prog_CC+set}" = set; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   if test -n "$CC"; then
7425   ac_cv_prog_CC="$CC" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434     ac_cv_prog_CC="${ac_tool_prefix}gcc"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440
7441 fi
7442 fi
7443 CC=$ac_cv_prog_CC
7444 if test -n "$CC"; then
7445   echo "$as_me:$LINENO: result: $CC" >&5
7446 echo "${ECHO_T}$CC" >&6
7447 else
7448   echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7450 fi
7451
7452 fi
7453 if test -z "$ac_cv_prog_CC"; then
7454   ac_ct_CC=$CC
7455   # Extract the first word of "gcc", so it can be a program name with args.
7456 set dummy gcc; ac_word=$2
7457 echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   if test -n "$ac_ct_CC"; then
7463   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470   for ac_exec_ext in '' $ac_executable_extensions; do
7471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472     ac_cv_prog_ac_ct_CC="gcc"
7473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477 done
7478
7479 fi
7480 fi
7481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7482 if test -n "$ac_ct_CC"; then
7483   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7484 echo "${ECHO_T}$ac_ct_CC" >&6
7485 else
7486   echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488 fi
7489
7490   CC=$ac_ct_CC
7491 else
7492   CC="$ac_cv_prog_CC"
7493 fi
7494
7495 if test -z "$CC"; then
7496   if test -n "$ac_tool_prefix"; then
7497   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}cc; ac_word=$2
7499 echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7501 if test "${ac_cv_prog_CC+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   if test -n "$CC"; then
7505   ac_cv_prog_CC="$CC" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514     ac_cv_prog_CC="${ac_tool_prefix}cc"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520
7521 fi
7522 fi
7523 CC=$ac_cv_prog_CC
7524 if test -n "$CC"; then
7525   echo "$as_me:$LINENO: result: $CC" >&5
7526 echo "${ECHO_T}$CC" >&6
7527 else
7528   echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530 fi
7531
7532 fi
7533 if test -z "$ac_cv_prog_CC"; then
7534   ac_ct_CC=$CC
7535   # Extract the first word of "cc", so it can be a program name with args.
7536 set dummy cc; ac_word=$2
7537 echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   if test -n "$ac_ct_CC"; then
7543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552     ac_cv_prog_ac_ct_CC="cc"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558
7559 fi
7560 fi
7561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7562 if test -n "$ac_ct_CC"; then
7563   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7564 echo "${ECHO_T}$ac_ct_CC" >&6
7565 else
7566   echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6
7568 fi
7569
7570   CC=$ac_ct_CC
7571 else
7572   CC="$ac_cv_prog_CC"
7573 fi
7574
7575 fi
7576 if test -z "$CC"; then
7577   # Extract the first word of "cc", so it can be a program name with args.
7578 set dummy cc; ac_word=$2
7579 echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7581 if test "${ac_cv_prog_CC+set}" = set; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   if test -n "$CC"; then
7585   ac_cv_prog_CC="$CC" # Let the user override the test.
7586 else
7587   ac_prog_rejected=no
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593   for ac_exec_ext in '' $ac_executable_extensions; do
7594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7596        ac_prog_rejected=yes
7597        continue
7598      fi
7599     ac_cv_prog_CC="cc"
7600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604 done
7605
7606 if test $ac_prog_rejected = yes; then
7607   # We found a bogon in the path, so make sure we never use it.
7608   set dummy $ac_cv_prog_CC
7609   shift
7610   if test $# != 0; then
7611     # We chose a different compiler from the bogus one.
7612     # However, it has the same basename, so the bogon will be chosen
7613     # first if we set CC to just the basename; use the full file name.
7614     shift
7615     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7616   fi
7617 fi
7618 fi
7619 fi
7620 CC=$ac_cv_prog_CC
7621 if test -n "$CC"; then
7622   echo "$as_me:$LINENO: result: $CC" >&5
7623 echo "${ECHO_T}$CC" >&6
7624 else
7625   echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6
7627 fi
7628
7629 fi
7630 if test -z "$CC"; then
7631   if test -n "$ac_tool_prefix"; then
7632   for ac_prog in cl
7633   do
7634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7636 echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7638 if test "${ac_cv_prog_CC+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641   if test -n "$CC"; then
7642   ac_cv_prog_CC="$CC" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649   for ac_exec_ext in '' $ac_executable_extensions; do
7650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656 done
7657
7658 fi
7659 fi
7660 CC=$ac_cv_prog_CC
7661 if test -n "$CC"; then
7662   echo "$as_me:$LINENO: result: $CC" >&5
7663 echo "${ECHO_T}$CC" >&6
7664 else
7665   echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7667 fi
7668
7669     test -n "$CC" && break
7670   done
7671 fi
7672 if test -z "$CC"; then
7673   ac_ct_CC=$CC
7674   for ac_prog in cl
7675 do
7676   # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   if test -n "$ac_ct_CC"; then
7684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7685 else
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_exec_ext in '' $ac_executable_extensions; do
7692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693     ac_cv_prog_ac_ct_CC="$ac_prog"
7694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698 done
7699
7700 fi
7701 fi
7702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7703 if test -n "$ac_ct_CC"; then
7704   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7705 echo "${ECHO_T}$ac_ct_CC" >&6
7706 else
7707   echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6
7709 fi
7710
7711   test -n "$ac_ct_CC" && break
7712 done
7713
7714   CC=$ac_ct_CC
7715 fi
7716
7717 fi
7718
7719
7720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7721 See \`config.log' for more details." >&5
7722 echo "$as_me: error: no acceptable C compiler found in \$PATH
7723 See \`config.log' for more details." >&2;}
7724    { (exit 1); exit 1; }; }
7725
7726 # Provide some information about the compiler.
7727 echo "$as_me:$LINENO:" \
7728      "checking for C compiler version" >&5
7729 ac_compiler=`set X $ac_compile; echo $2`
7730 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7731   (eval $ac_compiler --version </dev/null >&5) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }
7735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7736   (eval $ac_compiler -v </dev/null >&5) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }
7740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7741   (eval $ac_compiler -V </dev/null >&5) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }
7745
7746 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7747 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7748 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758
7759 int
7760 main ()
7761 {
7762 #ifndef __GNUC__
7763        choke me
7764 #endif
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772   (eval $ac_compile) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); } &&
7776          { ac_try='test -s conftest.$ac_objext'
7777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778   (eval $ac_try) 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); }; }; then
7782   ac_compiler_gnu=yes
7783 else
7784   echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787 ac_compiler_gnu=no
7788 fi
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7790 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7791
7792 fi
7793 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7794 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7795 GCC=`test $ac_compiler_gnu = yes && echo yes`
7796 ac_test_CFLAGS=${CFLAGS+set}
7797 ac_save_CFLAGS=$CFLAGS
7798 CFLAGS="-g"
7799 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7800 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7801 if test "${ac_cv_prog_cc_g+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811
7812 int
7813 main ()
7814 {
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822   (eval $ac_compile) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -s conftest.$ac_objext'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_cv_prog_cc_g=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ac_cv_prog_cc_g=no
7838 fi
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7840 fi
7841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7843 if test "$ac_test_CFLAGS" = set; then
7844   CFLAGS=$ac_save_CFLAGS
7845 elif test $ac_cv_prog_cc_g = yes; then
7846   if test "$GCC" = yes; then
7847     CFLAGS="-g -O2"
7848   else
7849     CFLAGS="-g"
7850   fi
7851 else
7852   if test "$GCC" = yes; then
7853     CFLAGS="-O2"
7854   else
7855     CFLAGS=
7856   fi
7857 fi
7858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7861   echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863   ac_cv_prog_cc_stdc=no
7864 ac_save_CC=$CC
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872 #include <stdarg.h>
7873 #include <stdio.h>
7874 #include <sys/types.h>
7875 #include <sys/stat.h>
7876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7877 struct buf { int x; };
7878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7879 static char *e (p, i)
7880      char **p;
7881      int i;
7882 {
7883   return p[i];
7884 }
7885 static char *f (char * (*g) (char **, int), char **p, ...)
7886 {
7887   char *s;
7888   va_list v;
7889   va_start (v,p);
7890   s = g (p, va_arg (v,int));
7891   va_end (v);
7892   return s;
7893 }
7894 int test (int i, double x);
7895 struct s1 {int (*f) (int a);};
7896 struct s2 {int (*f) (double a);};
7897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7898 int argc;
7899 char **argv;
7900 int
7901 main ()
7902 {
7903 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7904   ;
7905   return 0;
7906 }
7907 _ACEOF
7908 # Don't try gcc -ansi; that turns off useful extensions and
7909 # breaks some systems' header files.
7910 # AIX                   -qlanglvl=ansi
7911 # Ultrix and OSF/1      -std1
7912 # HP-UX 10.20 and later -Ae
7913 # HP-UX older versions  -Aa -D_HPUX_SOURCE
7914 # SVR4                  -Xc -D__EXTENSIONS__
7915 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7916 do
7917   CC="$ac_save_CC $ac_arg"
7918   rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920   (eval $ac_compile) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } &&
7924          { ac_try='test -s conftest.$ac_objext'
7925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926   (eval $ac_try) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930   ac_cv_prog_cc_stdc=$ac_arg
7931 break
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 fi
7937 rm -f conftest.$ac_objext
7938 done
7939 rm -f conftest.$ac_ext conftest.$ac_objext
7940 CC=$ac_save_CC
7941
7942 fi
7943
7944 case "x$ac_cv_prog_cc_stdc" in
7945   x|xno)
7946     echo "$as_me:$LINENO: result: none needed" >&5
7947 echo "${ECHO_T}none needed" >&6 ;;
7948   *)
7949     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7950 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7951     CC="$CC $ac_cv_prog_cc_stdc" ;;
7952 esac
7953
7954 # Some people use a C++ compiler to compile C.  Since we use `exit',
7955 # in C++ we need to declare it.  In case someone uses the same compiler
7956 # for both compiling C and C++ we need to have the C++ compiler decide
7957 # the declaration of exit, since it's the most demanding environment.
7958 cat >conftest.$ac_ext <<_ACEOF
7959 #ifndef __cplusplus
7960   choke me
7961 #endif
7962 _ACEOF
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965   (eval $ac_compile) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -s conftest.$ac_objext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   for ac_declaration in \
7976    ''\
7977    '#include <stdlib.h>' \
7978    'extern "C" void std::exit (int) throw (); using std::exit;' \
7979    'extern "C" void std::exit (int); using std::exit;' \
7980    'extern "C" void exit (int) throw ();' \
7981    'extern "C" void exit (int);' \
7982    'void exit (int);'
7983 do
7984   cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 /* confdefs.h.  */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h.  */
7991 #include <stdlib.h>
7992 $ac_declaration
7993 int
7994 main ()
7995 {
7996 exit (42);
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003   (eval $ac_compile) 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -s conftest.$ac_objext'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; }; then
8013   :
8014 else
8015   echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8017
8018 continue
8019 fi
8020 rm -f conftest.$ac_objext conftest.$ac_ext
8021   cat >conftest.$ac_ext <<_ACEOF
8022 #line $LINENO "configure"
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028 $ac_declaration
8029 int
8030 main ()
8031 {
8032 exit (42);
8033   ;
8034   return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039   (eval $ac_compile) 2>&5
8040   ac_status=$?
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } &&
8043          { ac_try='test -s conftest.$ac_objext'
8044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045   (eval $ac_try) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); }; }; then
8049   break
8050 else
8051   echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 fi
8055 rm -f conftest.$ac_objext conftest.$ac_ext
8056 done
8057 rm -f conftest*
8058 if test -n "$ac_declaration"; then
8059   echo '#ifdef __cplusplus' >>confdefs.h
8060   echo $ac_declaration      >>confdefs.h
8061   echo '#endif'             >>confdefs.h
8062 fi
8063
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 fi
8069 rm -f conftest.$ac_objext conftest.$ac_ext
8070 ac_ext=c
8071 ac_cpp='$CPP $CPPFLAGS'
8072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8075
8076 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8077 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8078 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8079 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   cat >conftest.make <<\_ACEOF
8083 all:
8084         @echo 'ac_maketemp="$(MAKE)"'
8085 _ACEOF
8086 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8087 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8088 if test -n "$ac_maketemp"; then
8089   eval ac_cv_prog_make_${ac_make}_set=yes
8090 else
8091   eval ac_cv_prog_make_${ac_make}_set=no
8092 fi
8093 rm -f conftest.make
8094 fi
8095 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8096   echo "$as_me:$LINENO: result: yes" >&5
8097 echo "${ECHO_T}yes" >&6
8098   SET_MAKE=
8099 else
8100   echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6
8102   SET_MAKE="MAKE=${MAKE-make}"
8103 fi
8104
8105
8106 # Checks for libraries.
8107 # FIXME: Replace `main' with a function in `-lX11':
8108 # AC_CHECK_LIB([X11], [main])
8109 # FIXME: Replace `main' with a function in `-ldl':
8110 # AC_CHECK_LIB([dl], [main])
8111 # FIXME: Replace `main' with a function in `-lefence':
8112 # AC_CHECK_LIB([efence], [main])
8113 # FIXME: Replace `main' with a function in `-lm':
8114 # AC_CHECK_LIB([m], [main])
8115 # FIXME: Replace `main' with a function in `-lproj':
8116 # AC_CHECK_LIB([proj], [main])
8117
8118 # Checks for header files.
8119 echo "$as_me:$LINENO: checking for X" >&5
8120 echo $ECHO_N "checking for X... $ECHO_C" >&6
8121
8122
8123 # Check whether --with-x or --without-x was given.
8124 if test "${with_x+set}" = set; then
8125   withval="$with_x"
8126
8127 fi;
8128 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8129 if test "x$with_x" = xno; then
8130   # The user explicitly disabled X.
8131   have_x=disabled
8132 else
8133   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8134     # Both variables are already set.
8135     have_x=yes
8136   else
8137     if test "${ac_cv_have_x+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   # One or both of the vars are not set, and there is no cached value.
8141 ac_x_includes=no ac_x_libraries=no
8142 rm -fr conftest.dir
8143 if mkdir conftest.dir; then
8144   cd conftest.dir
8145   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8146   cat >Imakefile <<'_ACEOF'
8147 acfindx:
8148         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8149 _ACEOF
8150   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8151     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8152     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8153     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8154     for ac_extension in a so sl; do
8155       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8156          test -f $ac_im_libdir/libX11.$ac_extension; then
8157         ac_im_usrlibdir=$ac_im_libdir; break
8158       fi
8159     done
8160     # Screen out bogus values from the imake configuration.  They are
8161     # bogus both because they are the default anyway, and because
8162     # using them would break gcc on systems where it needs fixed includes.
8163     case $ac_im_incroot in
8164         /usr/include) ;;
8165         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8166     esac
8167     case $ac_im_usrlibdir in
8168         /usr/lib | /lib) ;;
8169         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8170     esac
8171   fi
8172   cd ..
8173   rm -fr conftest.dir
8174 fi
8175
8176 # Standard set of common directories for X headers.
8177 # Check X11 before X11Rn because it is often a symlink to the current release.
8178 ac_x_header_dirs='
8179 /usr/X11/include
8180 /usr/X11R6/include
8181 /usr/X11R5/include
8182 /usr/X11R4/include
8183
8184 /usr/include/X11
8185 /usr/include/X11R6
8186 /usr/include/X11R5
8187 /usr/include/X11R4
8188
8189 /usr/local/X11/include
8190 /usr/local/X11R6/include
8191 /usr/local/X11R5/include
8192 /usr/local/X11R4/include
8193
8194 /usr/local/include/X11
8195 /usr/local/include/X11R6
8196 /usr/local/include/X11R5
8197 /usr/local/include/X11R4
8198
8199 /usr/X386/include
8200 /usr/x386/include
8201 /usr/XFree86/include/X11
8202
8203 /usr/include
8204 /usr/local/include
8205 /usr/unsupported/include
8206 /usr/athena/include
8207 /usr/local/x11r5/include
8208 /usr/lpp/Xamples/include
8209
8210 /usr/openwin/include
8211 /usr/openwin/share/include'
8212
8213 if test "$ac_x_includes" = no; then
8214   # Guess where to find include files, by looking for Intrinsic.h.
8215   # First, try using that file with no special directory specified.
8216   cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 #include <X11/Intrinsic.h>
8224 _ACEOF
8225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8227   ac_status=$?
8228   grep -v '^ *+' conftest.er1 >conftest.err
8229   rm -f conftest.er1
8230   cat conftest.err >&5
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); } >/dev/null; then
8233   if test -s conftest.err; then
8234     ac_cpp_err=$ac_c_preproc_warn_flag
8235   else
8236     ac_cpp_err=
8237   fi
8238 else
8239   ac_cpp_err=yes
8240 fi
8241 if test -z "$ac_cpp_err"; then
8242   # We can compile using X headers with no special include directory.
8243 ac_x_includes=
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248   for ac_dir in $ac_x_header_dirs; do
8249   if test -r "$ac_dir/X11/Intrinsic.h"; then
8250     ac_x_includes=$ac_dir
8251     break
8252   fi
8253 done
8254 fi
8255 rm -f conftest.err conftest.$ac_ext
8256 fi # $ac_x_includes = no
8257
8258 if test "$ac_x_libraries" = no; then
8259   # Check for the libraries.
8260   # See if we find them without any special options.
8261   # Don't add to $LIBS permanently.
8262   ac_save_LIBS=$LIBS
8263   LIBS="-lXt $LIBS"
8264   cat >conftest.$ac_ext <<_ACEOF
8265 #line $LINENO "configure"
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 #include <X11/Intrinsic.h>
8272 int
8273 main ()
8274 {
8275 XtMalloc (0)
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282   (eval $ac_link) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } &&
8286          { ac_try='test -s conftest$ac_exeext'
8287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288   (eval $ac_try) 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; }; then
8292   LIBS=$ac_save_LIBS
8293 # We can link X programs with no special library path.
8294 ac_x_libraries=
8295 else
8296   echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 LIBS=$ac_save_LIBS
8300 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8301 do
8302   # Don't even attempt the hair of trying to link an X program!
8303   for ac_extension in a so sl; do
8304     if test -r $ac_dir/libXt.$ac_extension; then
8305       ac_x_libraries=$ac_dir
8306       break 2
8307     fi
8308   done
8309 done
8310 fi
8311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8312 fi # $ac_x_libraries = no
8313
8314 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8315   # Didn't find X anywhere.  Cache the known absence of X.
8316   ac_cv_have_x="have_x=no"
8317 else
8318   # Record where we found X for the cache.
8319   ac_cv_have_x="have_x=yes \
8320                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8321 fi
8322 fi
8323
8324   fi
8325   eval "$ac_cv_have_x"
8326 fi # $with_x != no
8327
8328 if test "$have_x" != yes; then
8329   echo "$as_me:$LINENO: result: $have_x" >&5
8330 echo "${ECHO_T}$have_x" >&6
8331   no_x=yes
8332 else
8333   # If each of the values was on the command line, it overrides each guess.
8334   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8335   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8336   # Update the cache value to reflect the command line values.
8337   ac_cv_have_x="have_x=yes \
8338                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8339   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8340 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8341 fi
8342
8343 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8344 # for constant arguments.  Useless!
8345 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8346 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8347 if test "${ac_cv_working_alloca_h+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   cat >conftest.$ac_ext <<_ACEOF
8351 #line $LINENO "configure"
8352 /* confdefs.h.  */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h.  */
8357 #include <alloca.h>
8358 int
8359 main ()
8360 {
8361 char *p = (char *) alloca (2 * sizeof (int));
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_working_alloca_h=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_working_alloca_h=no
8384 fi
8385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8388 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8389 if test $ac_cv_working_alloca_h = yes; then
8390
8391 cat >>confdefs.h <<\_ACEOF
8392 #define HAVE_ALLOCA_H 1
8393 _ACEOF
8394
8395 fi
8396
8397 echo "$as_me:$LINENO: checking for alloca" >&5
8398 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8399 if test "${ac_cv_func_alloca_works+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409 #ifdef __GNUC__
8410 # define alloca __builtin_alloca
8411 #else
8412 # ifdef _MSC_VER
8413 #  include <malloc.h>
8414 #  define alloca _alloca
8415 # else
8416 #  if HAVE_ALLOCA_H
8417 #   include <alloca.h>
8418 #  else
8419 #   ifdef _AIX
8420  #pragma alloca
8421 #   else
8422 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8423 char *alloca ();
8424 #    endif
8425 #   endif
8426 #  endif
8427 # endif
8428 #endif
8429
8430 int
8431 main ()
8432 {
8433 char *p = (char *) alloca (1);
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440   (eval $ac_link) 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); } &&
8444          { ac_try='test -s conftest$ac_exeext'
8445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446   (eval $ac_try) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); }; }; then
8450   ac_cv_func_alloca_works=yes
8451 else
8452   echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8454
8455 ac_cv_func_alloca_works=no
8456 fi
8457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8460 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8461
8462 if test $ac_cv_func_alloca_works = yes; then
8463
8464 cat >>confdefs.h <<\_ACEOF
8465 #define HAVE_ALLOCA 1
8466 _ACEOF
8467
8468 else
8469   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8470 # that cause trouble.  Some versions do not even contain alloca or
8471 # contain a buggy version.  If you still want to use their alloca,
8472 # use ar to extract alloca.o from them instead of compiling alloca.c.
8473
8474 ALLOCA=alloca.$ac_objext
8475
8476 cat >>confdefs.h <<\_ACEOF
8477 #define C_ALLOCA 1
8478 _ACEOF
8479
8480
8481 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8483 if test "${ac_cv_os_cray+set}" = set; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   cat >conftest.$ac_ext <<_ACEOF
8487 #line $LINENO "configure"
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493 #if defined(CRAY) && ! defined(CRAY2)
8494 webecray
8495 #else
8496 wenotbecray
8497 #endif
8498
8499 _ACEOF
8500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8501   $EGREP "webecray" >/dev/null 2>&1; then
8502   ac_cv_os_cray=yes
8503 else
8504   ac_cv_os_cray=no
8505 fi
8506 rm -f conftest*
8507
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8510 echo "${ECHO_T}$ac_cv_os_cray" >&6
8511 if test $ac_cv_os_cray = yes; then
8512   for ac_func in _getb67 GETB67 getb67; do
8513     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8514 echo "$as_me:$LINENO: checking for $ac_func" >&5
8515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8516 if eval "test \"\${$as_ac_var+set}\" = set"; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526 /* System header to define __stub macros and hopefully few prototypes,
8527     which can conflict with char $ac_func (); below.  */
8528 #include <assert.h>
8529 /* Override any gcc2 internal prototype to avoid an error.  */
8530 #ifdef __cplusplus
8531 extern "C"
8532 {
8533 #endif
8534 /* We use char because int might match the return type of a gcc2
8535    builtin and then its argument prototype would still apply.  */
8536 char $ac_func ();
8537 /* The GNU C library defines this for functions which it implements
8538     to always fail with ENOSYS.  Some functions are actually named
8539     something starting with __ and the normal name is an alias.  */
8540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8541 choke me
8542 #else
8543 char (*f) () = $ac_func;
8544 #endif
8545 #ifdef __cplusplus
8546 }
8547 #endif
8548
8549 int
8550 main ()
8551 {
8552
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559   (eval $ac_link) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } &&
8563          { ac_try='test -s conftest$ac_exeext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   eval "$as_ac_var=yes"
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 eval "$as_ac_var=no"
8575 fi
8576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8577 fi
8578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8580 if test `eval echo '${'$as_ac_var'}'` = yes; then
8581
8582 cat >>confdefs.h <<_ACEOF
8583 #define CRAY_STACKSEG_END $ac_func
8584 _ACEOF
8585
8586     break
8587 fi
8588
8589   done
8590 fi
8591
8592 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8593 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8594 if test "${ac_cv_c_stack_direction+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   if test "$cross_compiling" = yes; then
8598   ac_cv_c_stack_direction=0
8599 else
8600   cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 int
8608 find_stack_direction ()
8609 {
8610   static char *addr = 0;
8611   auto char dummy;
8612   if (addr == 0)
8613     {
8614       addr = &dummy;
8615       return find_stack_direction ();
8616     }
8617   else
8618     return (&dummy > addr) ? 1 : -1;
8619 }
8620
8621 int
8622 main ()
8623 {
8624   exit (find_stack_direction () < 0);
8625 }
8626 _ACEOF
8627 rm -f conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629   (eval $ac_link) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634   (eval $ac_try) 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; }; then
8638   ac_cv_c_stack_direction=1
8639 else
8640   echo "$as_me: program exited with status $ac_status" >&5
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 ( exit $ac_status )
8645 ac_cv_c_stack_direction=-1
8646 fi
8647 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 fi
8650 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8651 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8652
8653 cat >>confdefs.h <<_ACEOF
8654 #define STACK_DIRECTION $ac_cv_c_stack_direction
8655 _ACEOF
8656
8657
8658 fi
8659
8660 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8661 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8662 if test "${ac_cv_header_stdc+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   cat >conftest.$ac_ext <<_ACEOF
8666 #line $LINENO "configure"
8667 /* confdefs.h.  */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h.  */
8672 #include <stdlib.h>
8673 #include <stdarg.h>
8674 #include <string.h>
8675 #include <float.h>
8676
8677 int
8678 main ()
8679 {
8680
8681   ;
8682   return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687   (eval $ac_compile) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -s conftest.$ac_objext'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   ac_cv_header_stdc=yes
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_cv_header_stdc=no
8703 fi
8704 rm -f conftest.$ac_objext conftest.$ac_ext
8705
8706 if test $ac_cv_header_stdc = yes; then
8707   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8708   cat >conftest.$ac_ext <<_ACEOF
8709 #line $LINENO "configure"
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 #include <string.h>
8716
8717 _ACEOF
8718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719   $EGREP "memchr" >/dev/null 2>&1; then
8720   :
8721 else
8722   ac_cv_header_stdc=no
8723 fi
8724 rm -f conftest*
8725
8726 fi
8727
8728 if test $ac_cv_header_stdc = yes; then
8729   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8730   cat >conftest.$ac_ext <<_ACEOF
8731 #line $LINENO "configure"
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8737 #include <stdlib.h>
8738
8739 _ACEOF
8740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8741   $EGREP "free" >/dev/null 2>&1; then
8742   :
8743 else
8744   ac_cv_header_stdc=no
8745 fi
8746 rm -f conftest*
8747
8748 fi
8749
8750 if test $ac_cv_header_stdc = yes; then
8751   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8752   if test "$cross_compiling" = yes; then
8753   :
8754 else
8755   cat >conftest.$ac_ext <<_ACEOF
8756 #line $LINENO "configure"
8757 /* confdefs.h.  */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h.  */
8762 #include <ctype.h>
8763 #if ((' ' & 0x0FF) == 0x020)
8764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8766 #else
8767 # define ISLOWER(c) \
8768                    (('a' <= (c) && (c) <= 'i') \
8769                      || ('j' <= (c) && (c) <= 'r') \
8770                      || ('s' <= (c) && (c) <= 'z'))
8771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8772 #endif
8773
8774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8775 int
8776 main ()
8777 {
8778   int i;
8779   for (i = 0; i < 256; i++)
8780     if (XOR (islower (i), ISLOWER (i))
8781         || toupper (i) != TOUPPER (i))
8782       exit(2);
8783   exit (0);
8784 }
8785 _ACEOF
8786 rm -f conftest$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788   (eval $ac_link) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793   (eval $ac_try) 2>&5
8794   ac_status=$?
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); }; }; then
8797   :
8798 else
8799   echo "$as_me: program exited with status $ac_status" >&5
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ( exit $ac_status )
8804 ac_cv_header_stdc=no
8805 fi
8806 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8807 fi
8808 fi
8809 fi
8810 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8811 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8812 if test $ac_cv_header_stdc = yes; then
8813
8814 cat >>confdefs.h <<\_ACEOF
8815 #define STDC_HEADERS 1
8816 _ACEOF
8817
8818 fi
8819
8820
8821
8822
8823
8824
8825
8826
8827 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8828 do
8829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8831   echo "$as_me:$LINENO: checking for $ac_header" >&5
8832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8834   echo $ECHO_N "(cached) $ECHO_C" >&6
8835 fi
8836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8838 else
8839   # Is the header compilable?
8840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8842 cat >conftest.$ac_ext <<_ACEOF
8843 #line $LINENO "configure"
8844 /* confdefs.h.  */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h.  */
8849 $ac_includes_default
8850 #include <$ac_header>
8851 _ACEOF
8852 rm -f conftest.$ac_objext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854   (eval $ac_compile) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } &&
8858          { ac_try='test -s conftest.$ac_objext'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; }; then
8864   ac_header_compiler=yes
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_header_compiler=no
8870 fi
8871 rm -f conftest.$ac_objext conftest.$ac_ext
8872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8873 echo "${ECHO_T}$ac_header_compiler" >&6
8874
8875 # Is the header present?
8876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885 #include <$ac_header>
8886 _ACEOF
8887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8889   ac_status=$?
8890   grep -v '^ *+' conftest.er1 >conftest.err
8891   rm -f conftest.er1
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); } >/dev/null; then
8895   if test -s conftest.err; then
8896     ac_cpp_err=$ac_c_preproc_warn_flag
8897   else
8898     ac_cpp_err=
8899   fi
8900 else
8901   ac_cpp_err=yes
8902 fi
8903 if test -z "$ac_cpp_err"; then
8904   ac_header_preproc=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909   ac_header_preproc=no
8910 fi
8911 rm -f conftest.err conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8913 echo "${ECHO_T}$ac_header_preproc" >&6
8914
8915 # So?  What about this header?
8916 case $ac_header_compiler:$ac_header_preproc in
8917   yes:no )
8918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8922     (
8923       cat <<\_ASBOX
8924 ## ------------------------------------ ##
8925 ## Report this to bug-autoconf@gnu.org. ##
8926 ## ------------------------------------ ##
8927 _ASBOX
8928     ) |
8929       sed "s/^/$as_me: WARNING:     /" >&2
8930     ;;
8931   no:yes )
8932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8934     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8938     (
8939       cat <<\_ASBOX
8940 ## ------------------------------------ ##
8941 ## Report this to bug-autoconf@gnu.org. ##
8942 ## ------------------------------------ ##
8943 _ASBOX
8944     ) |
8945       sed "s/^/$as_me: WARNING:     /" >&2
8946     ;;
8947 esac
8948 echo "$as_me:$LINENO: checking for $ac_header" >&5
8949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8951   echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953   eval "$as_ac_Header=$ac_header_preproc"
8954 fi
8955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8957
8958 fi
8959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8960   cat >>confdefs.h <<_ACEOF
8961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8962 _ACEOF
8963
8964 fi
8965
8966 done
8967
8968
8969 # Checks for typedefs, structures, and compiler characteristics.
8970 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8971 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8972 if test "${ac_cv_c_const+set}" = set; then
8973   echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
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 int
8984 main ()
8985 {
8986 /* FIXME: Include the comments suggested by Paul. */
8987 #ifndef __cplusplus
8988   /* Ultrix mips cc rejects this.  */
8989   typedef int charset[2];
8990   const charset x;
8991   /* SunOS 4.1.1 cc rejects this.  */
8992   char const *const *ccp;
8993   char **p;
8994   /* NEC SVR4.0.2 mips cc rejects this.  */
8995   struct point {int x, y;};
8996   static struct point const zero = {0,0};
8997   /* AIX XL C 1.02.0.0 rejects this.
8998      It does not let you subtract one const X* pointer from another in
8999      an arm of an if-expression whose if-part is not a constant
9000      expression */
9001   const char *g = "string";
9002   ccp = &g + (g ? g-g : 0);
9003   /* HPUX 7.0 cc rejects these. */
9004   ++ccp;
9005   p = (char**) ccp;
9006   ccp = (char const *const *) p;
9007   { /* SCO 3.2v4 cc rejects this.  */
9008     char *t;
9009     char const *s = 0 ? (char *) 0 : (char const *) 0;
9010
9011     *t++ = 0;
9012   }
9013   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9014     int x[] = {25, 17};
9015     const int *foo = &x[0];
9016     ++foo;
9017   }
9018   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9019     typedef const int *iptr;
9020     iptr p = 0;
9021     ++p;
9022   }
9023   { /* AIX XL C 1.02.0.0 rejects this saying
9024        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9025     struct s { int j; const int *ap[3]; };
9026     struct s *b; b->j = 5;
9027   }
9028   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9029     const int foo = 10;
9030   }
9031 #endif
9032
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039   (eval $ac_compile) 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } &&
9043          { ac_try='test -s conftest.$ac_objext'
9044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045   (eval $ac_try) 2>&5
9046   ac_status=$?
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); }; }; then
9049   ac_cv_c_const=yes
9050 else
9051   echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_cv_c_const=no
9055 fi
9056 rm -f conftest.$ac_objext conftest.$ac_ext
9057 fi
9058 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9059 echo "${ECHO_T}$ac_cv_c_const" >&6
9060 if test $ac_cv_c_const = no; then
9061
9062 cat >>confdefs.h <<\_ACEOF
9063 #define const
9064 _ACEOF
9065
9066 fi
9067
9068 echo "$as_me:$LINENO: checking for size_t" >&5
9069 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9070 if test "${ac_cv_type_size_t+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   cat >conftest.$ac_ext <<_ACEOF
9074 #line $LINENO "configure"
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080 $ac_includes_default
9081 int
9082 main ()
9083 {
9084 if ((size_t *) 0)
9085   return 0;
9086 if (sizeof (size_t))
9087   return 0;
9088   ;
9089   return 0;
9090 }
9091 _ACEOF
9092 rm -f conftest.$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094   (eval $ac_compile) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } &&
9098          { ac_try='test -s conftest.$ac_objext'
9099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100   (eval $ac_try) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); }; }; then
9104   ac_cv_type_size_t=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109 ac_cv_type_size_t=no
9110 fi
9111 rm -f conftest.$ac_objext conftest.$ac_ext
9112 fi
9113 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9114 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9115 if test $ac_cv_type_size_t = yes; then
9116   :
9117 else
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define size_t unsigned
9121 _ACEOF
9122
9123 fi
9124
9125 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9126 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9127 if test "${ac_cv_struct_tm+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130   cat >conftest.$ac_ext <<_ACEOF
9131 #line $LINENO "configure"
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 #include <sys/types.h>
9138 #include <time.h>
9139
9140 int
9141 main ()
9142 {
9143 struct tm *tp; tp->tm_sec;
9144   ;
9145   return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150   (eval $ac_compile) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); } &&
9154          { ac_try='test -s conftest.$ac_objext'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; }; then
9160   ac_cv_struct_tm=time.h
9161 else
9162   echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9164
9165 ac_cv_struct_tm=sys/time.h
9166 fi
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9168 fi
9169 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9170 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9171 if test $ac_cv_struct_tm = sys/time.h; then
9172
9173 cat >>confdefs.h <<\_ACEOF
9174 #define TM_IN_SYS_TIME 1
9175 _ACEOF
9176
9177 fi
9178
9179
9180 # Checks for library functions.
9181 echo "$as_me:$LINENO: checking for error_at_line" >&5
9182 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9183 if test "${ac_cv_lib_error_at_line+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   cat >conftest.$ac_ext <<_ACEOF
9187 #line $LINENO "configure"
9188 /* confdefs.h.  */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h.  */
9193
9194 int
9195 main ()
9196 {
9197 error_at_line (0, 0, "", 0, "");
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204   (eval $ac_link) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -s conftest$ac_exeext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_cv_lib_error_at_line=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_lib_error_at_line=no
9220 fi
9221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9222 fi
9223 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9224 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9225 if test $ac_cv_lib_error_at_line = no; then
9226   LIBOBJS="$LIBOBJS error.$ac_objext"
9227 fi
9228
9229
9230 for ac_header in stdlib.h
9231 do
9232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9234   echo "$as_me:$LINENO: checking for $ac_header" >&5
9235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 fi
9239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9241 else
9242   # Is the header compilable?
9243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 $ac_includes_default
9253 #include <$ac_header>
9254 _ACEOF
9255 rm -f conftest.$ac_objext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257   (eval $ac_compile) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); } &&
9261          { ac_try='test -s conftest.$ac_objext'
9262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263   (eval $ac_try) 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; }; then
9267   ac_header_compiler=yes
9268 else
9269   echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 ac_header_compiler=no
9273 fi
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9276 echo "${ECHO_T}$ac_header_compiler" >&6
9277
9278 # Is the header present?
9279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9281 cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288 #include <$ac_header>
9289 _ACEOF
9290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } >/dev/null; then
9298   if test -s conftest.err; then
9299     ac_cpp_err=$ac_c_preproc_warn_flag
9300   else
9301     ac_cpp_err=
9302   fi
9303 else
9304   ac_cpp_err=yes
9305 fi
9306 if test -z "$ac_cpp_err"; then
9307   ac_header_preproc=yes
9308 else
9309   echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312   ac_header_preproc=no
9313 fi
9314 rm -f conftest.err conftest.$ac_ext
9315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9316 echo "${ECHO_T}$ac_header_preproc" >&6
9317
9318 # So?  What about this header?
9319 case $ac_header_compiler:$ac_header_preproc in
9320   yes:no )
9321     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9325     (
9326       cat <<\_ASBOX
9327 ## ------------------------------------ ##
9328 ## Report this to bug-autoconf@gnu.org. ##
9329 ## ------------------------------------ ##
9330 _ASBOX
9331     ) |
9332       sed "s/^/$as_me: WARNING:     /" >&2
9333     ;;
9334   no:yes )
9335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9337     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9341     (
9342       cat <<\_ASBOX
9343 ## ------------------------------------ ##
9344 ## Report this to bug-autoconf@gnu.org. ##
9345 ## ------------------------------------ ##
9346 _ASBOX
9347     ) |
9348       sed "s/^/$as_me: WARNING:     /" >&2
9349     ;;
9350 esac
9351 echo "$as_me:$LINENO: checking for $ac_header" >&5
9352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   eval "$as_ac_Header=$ac_header_preproc"
9357 fi
9358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9360
9361 fi
9362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9363   cat >>confdefs.h <<_ACEOF
9364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9365 _ACEOF
9366
9367 fi
9368
9369 done
9370
9371 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9372 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9373 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   if test "$cross_compiling" = yes; then
9377   ac_cv_func_malloc_0_nonnull=no
9378 else
9379   cat >conftest.$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #if STDC_HEADERS || HAVE_STDLIB_H
9387 # include <stdlib.h>
9388 #else
9389 char *malloc ();
9390 #endif
9391
9392 int
9393 main ()
9394 {
9395 exit (malloc (0) ? 0 : 1);
9396   ;
9397   return 0;
9398 }
9399 _ACEOF
9400 rm -f conftest$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402   (eval $ac_link) 2>&5
9403   ac_status=$?
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407   (eval $ac_try) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); }; }; then
9411   ac_cv_func_malloc_0_nonnull=yes
9412 else
9413   echo "$as_me: program exited with status $ac_status" >&5
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417 ( exit $ac_status )
9418 ac_cv_func_malloc_0_nonnull=no
9419 fi
9420 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9421 fi
9422 fi
9423 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9424 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9425 if test $ac_cv_func_malloc_0_nonnull = yes; then
9426
9427 cat >>confdefs.h <<\_ACEOF
9428 #define HAVE_MALLOC 1
9429 _ACEOF
9430
9431 else
9432   cat >>confdefs.h <<\_ACEOF
9433 #define HAVE_MALLOC 0
9434 _ACEOF
9435
9436    LIBOBJS="$LIBOBJS malloc.$ac_objext"
9437
9438 cat >>confdefs.h <<\_ACEOF
9439 #define malloc rpl_malloc
9440 _ACEOF
9441
9442 fi
9443
9444
9445
9446
9447
9448 for ac_header in stdlib.h unistd.h
9449 do
9450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452   echo "$as_me:$LINENO: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 fi
9457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9459 else
9460   # Is the header compilable?
9461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9464 #line $LINENO "configure"
9465 /* confdefs.h.  */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h.  */
9470 $ac_includes_default
9471 #include <$ac_header>
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475   (eval $ac_compile) 2>&5
9476   ac_status=$?
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } &&
9479          { ac_try='test -s conftest.$ac_objext'
9480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481   (eval $ac_try) 2>&5
9482   ac_status=$?
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); }; }; then
9485   ac_header_compiler=yes
9486 else
9487   echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9489
9490 ac_header_compiler=no
9491 fi
9492 rm -f conftest.$ac_objext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9494 echo "${ECHO_T}$ac_header_compiler" >&6
9495
9496 # Is the header present?
9497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506 #include <$ac_header>
9507 _ACEOF
9508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9510   ac_status=$?
9511   grep -v '^ *+' conftest.er1 >conftest.err
9512   rm -f conftest.er1
9513   cat conftest.err >&5
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } >/dev/null; then
9516   if test -s conftest.err; then
9517     ac_cpp_err=$ac_c_preproc_warn_flag
9518   else
9519     ac_cpp_err=
9520   fi
9521 else
9522   ac_cpp_err=yes
9523 fi
9524 if test -z "$ac_cpp_err"; then
9525   ac_header_preproc=yes
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530   ac_header_preproc=no
9531 fi
9532 rm -f conftest.err conftest.$ac_ext
9533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534 echo "${ECHO_T}$ac_header_preproc" >&6
9535
9536 # So?  What about this header?
9537 case $ac_header_compiler:$ac_header_preproc in
9538   yes:no )
9539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9543     (
9544       cat <<\_ASBOX
9545 ## ------------------------------------ ##
9546 ## Report this to bug-autoconf@gnu.org. ##
9547 ## ------------------------------------ ##
9548 _ASBOX
9549     ) |
9550       sed "s/^/$as_me: WARNING:     /" >&2
9551     ;;
9552   no:yes )
9553     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9555     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9559     (
9560       cat <<\_ASBOX
9561 ## ------------------------------------ ##
9562 ## Report this to bug-autoconf@gnu.org. ##
9563 ## ------------------------------------ ##
9564 _ASBOX
9565     ) |
9566       sed "s/^/$as_me: WARNING:     /" >&2
9567     ;;
9568 esac
9569 echo "$as_me:$LINENO: checking for $ac_header" >&5
9570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574   eval "$as_ac_Header=$ac_header_preproc"
9575 fi
9576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9578
9579 fi
9580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9581   cat >>confdefs.h <<_ACEOF
9582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9583 _ACEOF
9584
9585 fi
9586
9587 done
9588
9589
9590 for ac_func in getpagesize
9591 do
9592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9593 echo "$as_me:$LINENO: checking for $ac_func" >&5
9594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_var+set}\" = set"; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
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 /* System header to define __stub macros and hopefully few prototypes,
9606     which can conflict with char $ac_func (); below.  */
9607 #include <assert.h>
9608 /* Override any gcc2 internal prototype to avoid an error.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 {
9612 #endif
9613 /* We use char because int might match the return type of a gcc2
9614    builtin and then its argument prototype would still apply.  */
9615 char $ac_func ();
9616 /* The GNU C library defines this for functions which it implements
9617     to always fail with ENOSYS.  Some functions are actually named
9618     something starting with __ and the normal name is an alias.  */
9619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9620 choke me
9621 #else
9622 char (*f) () = $ac_func;
9623 #endif
9624 #ifdef __cplusplus
9625 }
9626 #endif
9627
9628 int
9629 main ()
9630 {
9631
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638   (eval $ac_link) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } &&
9642          { ac_try='test -s conftest$ac_exeext'
9643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644   (eval $ac_try) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); }; }; then
9648   eval "$as_ac_var=yes"
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 eval "$as_ac_var=no"
9654 fi
9655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9656 fi
9657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9659 if test `eval echo '${'$as_ac_var'}'` = yes; then
9660   cat >>confdefs.h <<_ACEOF
9661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9662 _ACEOF
9663
9664 fi
9665 done
9666
9667 echo "$as_me:$LINENO: checking for working mmap" >&5
9668 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9669 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9670   echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672   if test "$cross_compiling" = yes; then
9673   ac_cv_func_mmap_fixed_mapped=no
9674 else
9675   cat >conftest.$ac_ext <<_ACEOF
9676 #line $LINENO "configure"
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682 $ac_includes_default
9683 /* malloc might have been renamed as rpl_malloc. */
9684 #undef malloc
9685
9686 /* Thanks to Mike Haertel and Jim Avera for this test.
9687    Here is a matrix of mmap possibilities:
9688         mmap private not fixed
9689         mmap private fixed at somewhere currently unmapped
9690         mmap private fixed at somewhere already mapped
9691         mmap shared not fixed
9692         mmap shared fixed at somewhere currently unmapped
9693         mmap shared fixed at somewhere already mapped
9694    For private mappings, we should verify that changes cannot be read()
9695    back from the file, nor mmap's back from the file at a different
9696    address.  (There have been systems where private was not correctly
9697    implemented like the infamous i386 svr4.0, and systems where the
9698    VM page cache was not coherent with the file system buffer cache
9699    like early versions of FreeBSD and possibly contemporary NetBSD.)
9700    For shared mappings, we should conversely verify that changes get
9701    propagated back to all the places they're supposed to be.
9702
9703    Grep wants private fixed already mapped.
9704    The main things grep needs to know about mmap are:
9705    * does it exist and is it safe to write into the mmap'd area
9706    * how to use it (BSD variants)  */
9707
9708 #include <fcntl.h>
9709 #include <sys/mman.h>
9710
9711 #if !STDC_HEADERS && !HAVE_STDLIB_H
9712 char *malloc ();
9713 #endif
9714
9715 /* This mess was copied from the GNU getpagesize.h.  */
9716 #if !HAVE_GETPAGESIZE
9717 /* Assume that all systems that can run configure have sys/param.h.  */
9718 # if !HAVE_SYS_PARAM_H
9719 #  define HAVE_SYS_PARAM_H 1
9720 # endif
9721
9722 # ifdef _SC_PAGESIZE
9723 #  define getpagesize() sysconf(_SC_PAGESIZE)
9724 # else /* no _SC_PAGESIZE */
9725 #  if HAVE_SYS_PARAM_H
9726 #   include <sys/param.h>
9727 #   ifdef EXEC_PAGESIZE
9728 #    define getpagesize() EXEC_PAGESIZE
9729 #   else /* no EXEC_PAGESIZE */
9730 #    ifdef NBPG
9731 #     define getpagesize() NBPG * CLSIZE
9732 #     ifndef CLSIZE
9733 #      define CLSIZE 1
9734 #     endif /* no CLSIZE */
9735 #    else /* no NBPG */
9736 #     ifdef NBPC
9737 #      define getpagesize() NBPC
9738 #     else /* no NBPC */
9739 #      ifdef PAGESIZE
9740 #       define getpagesize() PAGESIZE
9741 #      endif /* PAGESIZE */
9742 #     endif /* no NBPC */
9743 #    endif /* no NBPG */
9744 #   endif /* no EXEC_PAGESIZE */
9745 #  else /* no HAVE_SYS_PARAM_H */
9746 #   define getpagesize() 8192   /* punt totally */
9747 #  endif /* no HAVE_SYS_PARAM_H */
9748 # endif /* no _SC_PAGESIZE */
9749
9750 #endif /* no HAVE_GETPAGESIZE */
9751
9752 int
9753 main ()
9754 {
9755   char *data, *data2, *data3;
9756   int i, pagesize;
9757   int fd;
9758
9759   pagesize = getpagesize ();
9760
9761   /* First, make a file with some known garbage in it. */
9762   data = (char *) malloc (pagesize);
9763   if (!data)
9764     exit (1);
9765   for (i = 0; i < pagesize; ++i)
9766     *(data + i) = rand ();
9767   umask (0);
9768   fd = creat ("conftest.mmap", 0600);
9769   if (fd < 0)
9770     exit (1);
9771   if (write (fd, data, pagesize) != pagesize)
9772     exit (1);
9773   close (fd);
9774
9775   /* Next, try to mmap the file at a fixed address which already has
9776      something else allocated at it.  If we can, also make sure that
9777      we see the same garbage.  */
9778   fd = open ("conftest.mmap", O_RDWR);
9779   if (fd < 0)
9780     exit (1);
9781   data2 = (char *) malloc (2 * pagesize);
9782   if (!data2)
9783     exit (1);
9784   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9785   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9786                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9787     exit (1);
9788   for (i = 0; i < pagesize; ++i)
9789     if (*(data + i) != *(data2 + i))
9790       exit (1);
9791
9792   /* Finally, make sure that changes to the mapped area do not
9793      percolate back to the file as seen by read().  (This is a bug on
9794      some variants of i386 svr4.0.)  */
9795   for (i = 0; i < pagesize; ++i)
9796     *(data2 + i) = *(data2 + i) + 1;
9797   data3 = (char *) malloc (pagesize);
9798   if (!data3)
9799     exit (1);
9800   if (read (fd, data3, pagesize) != pagesize)
9801     exit (1);
9802   for (i = 0; i < pagesize; ++i)
9803     if (*(data + i) != *(data3 + i))
9804       exit (1);
9805   close (fd);
9806   exit (0);
9807 }
9808 _ACEOF
9809 rm -f conftest$ac_exeext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9811   (eval $ac_link) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_func_mmap_fixed_mapped=yes
9821 else
9822   echo "$as_me: program exited with status $ac_status" >&5
9823 echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826 ( exit $ac_status )
9827 ac_cv_func_mmap_fixed_mapped=no
9828 fi
9829 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9830 fi
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9833 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9834 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_MMAP 1
9838 _ACEOF
9839
9840 fi
9841 rm -f conftest.mmap
9842
9843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9845 if test "${ac_cv_type_signal+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   cat >conftest.$ac_ext <<_ACEOF
9849 #line $LINENO "configure"
9850 /* confdefs.h.  */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h.  */
9855 #include <sys/types.h>
9856 #include <signal.h>
9857 #ifdef signal
9858 # undef signal
9859 #endif
9860 #ifdef __cplusplus
9861 extern "C" void (*signal (int, void (*)(int)))(int);
9862 #else
9863 void (*signal ()) ();
9864 #endif
9865
9866 int
9867 main ()
9868 {
9869 int i;
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9876   (eval $ac_compile) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -s conftest.$ac_objext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_cv_type_signal=void
9887 else
9888   echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_cv_type_signal=int
9892 fi
9893 rm -f conftest.$ac_objext conftest.$ac_ext
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9896 echo "${ECHO_T}$ac_cv_type_signal" >&6
9897
9898 cat >>confdefs.h <<_ACEOF
9899 #define RETSIGTYPE $ac_cv_type_signal
9900 _ACEOF
9901
9902
9903 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9904 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9905 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   rm -f conftest.sym conftest.file
9909 echo >conftest.file
9910 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9911   if test "$cross_compiling" = yes; then
9912   ac_cv_func_lstat_dereferences_slashed_symlink=no
9913 else
9914   cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921 $ac_includes_default
9922 int
9923 main ()
9924 {
9925 struct stat sbuf;
9926      /* Linux will dereference the symlink and fail.
9927         That is better in the sense that it means we will not
9928         have to compile and use the lstat wrapper.  */
9929      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9930   ;
9931   return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936   (eval $ac_link) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941   (eval $ac_try) 2>&5
9942   ac_status=$?
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); }; }; then
9945   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9946 else
9947   echo "$as_me: program exited with status $ac_status" >&5
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ( exit $ac_status )
9952 ac_cv_func_lstat_dereferences_slashed_symlink=no
9953 fi
9954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9955 fi
9956 else
9957   # If the `ln -s' command failed, then we probably don't even
9958   # have an lstat function.
9959   ac_cv_func_lstat_dereferences_slashed_symlink=no
9960 fi
9961 rm -f conftest.sym conftest.file
9962
9963 fi
9964 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9965 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9966
9967 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9968
9969 cat >>confdefs.h <<_ACEOF
9970 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9971 _ACEOF
9972
9973
9974 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9975   LIBOBJS="$LIBOBJS lstat.$ac_objext"
9976 fi
9977
9978 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9979 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9980 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   if test "$cross_compiling" = yes; then
9984   ac_cv_func_stat_empty_string_bug=yes
9985 else
9986   cat >conftest.$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993 $ac_includes_default
9994 int
9995 main ()
9996 {
9997 struct stat sbuf;
9998   exit (stat ("", &sbuf) ? 1 : 0);
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005   (eval $ac_link) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   ac_cv_func_stat_empty_string_bug=yes
10015 else
10016   echo "$as_me: program exited with status $ac_status" >&5
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10019
10020 ( exit $ac_status )
10021 ac_cv_func_stat_empty_string_bug=no
10022 fi
10023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 fi
10026 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10027 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
10028 if test $ac_cv_func_stat_empty_string_bug = yes; then
10029   LIBOBJS="$LIBOBJS stat.$ac_objext"
10030
10031 cat >>confdefs.h <<_ACEOF
10032 #define HAVE_STAT_EMPTY_STRING_BUG 1
10033 _ACEOF
10034
10035 fi
10036
10037 echo "$as_me:$LINENO: checking for working strtod" >&5
10038 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
10039 if test "${ac_cv_func_strtod+set}" = set; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042   if test "$cross_compiling" = yes; then
10043   ac_cv_func_strtod=no
10044 else
10045   cat >conftest.$ac_ext <<_ACEOF
10046 #line $LINENO "configure"
10047 /* confdefs.h.  */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h.  */
10052
10053 double strtod ();
10054 int
10055 main()
10056 {
10057   {
10058     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
10059     char *string = " +69";
10060     char *term;
10061     double value;
10062     value = strtod (string, &term);
10063     if (value != 69 || term != (string + 4))
10064       exit (1);
10065   }
10066
10067   {
10068     /* Under Solaris 2.4, strtod returns the wrong value for the
10069        terminating character under some conditions.  */
10070     char *string = "NaN";
10071     char *term;
10072     strtod (string, &term);
10073     if (term != string && *(term - 1) == 0)
10074       exit (1);
10075   }
10076   exit (0);
10077 }
10078
10079 _ACEOF
10080 rm -f conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082   (eval $ac_link) 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_cv_func_strtod=yes
10092 else
10093   echo "$as_me: program exited with status $ac_status" >&5
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10096
10097 ( exit $ac_status )
10098 ac_cv_func_strtod=no
10099 fi
10100 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10101 fi
10102 fi
10103 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10104 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10105 if test $ac_cv_func_strtod = no; then
10106   LIBOBJS="$LIBOBJS strtod.$ac_objext"
10107 echo "$as_me:$LINENO: checking for pow" >&5
10108 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10109 if test "${ac_cv_func_pow+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   cat >conftest.$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 /* System header to define __stub macros and hopefully few prototypes,
10120     which can conflict with char pow (); below.  */
10121 #include <assert.h>
10122 /* Override any gcc2 internal prototype to avoid an error.  */
10123 #ifdef __cplusplus
10124 extern "C"
10125 {
10126 #endif
10127 /* We use char because int might match the return type of a gcc2
10128    builtin and then its argument prototype would still apply.  */
10129 char pow ();
10130 /* The GNU C library defines this for functions which it implements
10131     to always fail with ENOSYS.  Some functions are actually named
10132     something starting with __ and the normal name is an alias.  */
10133 #if defined (__stub_pow) || defined (__stub___pow)
10134 choke me
10135 #else
10136 char (*f) () = pow;
10137 #endif
10138 #ifdef __cplusplus
10139 }
10140 #endif
10141
10142 int
10143 main ()
10144 {
10145
10146   ;
10147   return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152   (eval $ac_link) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -s conftest$ac_exeext'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; }; then
10162   ac_cv_func_pow=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_cv_func_pow=no
10168 fi
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10170 fi
10171 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10172 echo "${ECHO_T}$ac_cv_func_pow" >&6
10173
10174 if test $ac_cv_func_pow = no; then
10175   echo "$as_me:$LINENO: checking for pow in -lm" >&5
10176 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10177 if test "${ac_cv_lib_m_pow+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   ac_check_lib_save_LIBS=$LIBS
10181 LIBS="-lm  $LIBS"
10182 cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189
10190 /* Override any gcc2 internal prototype to avoid an error.  */
10191 #ifdef __cplusplus
10192 extern "C"
10193 #endif
10194 /* We use char because int might match the return type of a gcc2
10195    builtin and then its argument prototype would still apply.  */
10196 char pow ();
10197 int
10198 main ()
10199 {
10200 pow ();
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207   (eval $ac_link) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); } &&
10211          { ac_try='test -s conftest$ac_exeext'
10212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213   (eval $ac_try) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; }; then
10217   ac_cv_lib_m_pow=yes
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 ac_cv_lib_m_pow=no
10223 fi
10224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10225 LIBS=$ac_check_lib_save_LIBS
10226 fi
10227 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10228 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10229 if test $ac_cv_lib_m_pow = yes; then
10230   POW_LIB=-lm
10231 else
10232   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10233 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10234 fi
10235
10236 fi
10237
10238 fi
10239
10240
10241 for ac_func in vprintf
10242 do
10243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10244 echo "$as_me:$LINENO: checking for $ac_func" >&5
10245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_var+set}\" = set"; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249   cat >conftest.$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256 /* System header to define __stub macros and hopefully few prototypes,
10257     which can conflict with char $ac_func (); below.  */
10258 #include <assert.h>
10259 /* Override any gcc2 internal prototype to avoid an error.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 {
10263 #endif
10264 /* We use char because int might match the return type of a gcc2
10265    builtin and then its argument prototype would still apply.  */
10266 char $ac_func ();
10267 /* The GNU C library defines this for functions which it implements
10268     to always fail with ENOSYS.  Some functions are actually named
10269     something starting with __ and the normal name is an alias.  */
10270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10271 choke me
10272 #else
10273 char (*f) () = $ac_func;
10274 #endif
10275 #ifdef __cplusplus
10276 }
10277 #endif
10278
10279 int
10280 main ()
10281 {
10282
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289   (eval $ac_link) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -s conftest$ac_exeext'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   eval "$as_ac_var=yes"
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 eval "$as_ac_var=no"
10305 fi
10306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10307 fi
10308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10310 if test `eval echo '${'$as_ac_var'}'` = yes; then
10311   cat >>confdefs.h <<_ACEOF
10312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10313 _ACEOF
10314
10315 echo "$as_me:$LINENO: checking for _doprnt" >&5
10316 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10317 if test "${ac_cv_func__doprnt+set}" = set; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   cat >conftest.$ac_ext <<_ACEOF
10321 #line $LINENO "configure"
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 /* System header to define __stub macros and hopefully few prototypes,
10328     which can conflict with char _doprnt (); below.  */
10329 #include <assert.h>
10330 /* Override any gcc2 internal prototype to avoid an error.  */
10331 #ifdef __cplusplus
10332 extern "C"
10333 {
10334 #endif
10335 /* We use char because int might match the return type of a gcc2
10336    builtin and then its argument prototype would still apply.  */
10337 char _doprnt ();
10338 /* The GNU C library defines this for functions which it implements
10339     to always fail with ENOSYS.  Some functions are actually named
10340     something starting with __ and the normal name is an alias.  */
10341 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10342 choke me
10343 #else
10344 char (*f) () = _doprnt;
10345 #endif
10346 #ifdef __cplusplus
10347 }
10348 #endif
10349
10350 int
10351 main ()
10352 {
10353
10354   ;
10355   return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360   (eval $ac_link) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -s conftest$ac_exeext'
10365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366   (eval $ac_try) 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); }; }; then
10370   ac_cv_func__doprnt=yes
10371 else
10372   echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 ac_cv_func__doprnt=no
10376 fi
10377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10378 fi
10379 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10380 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10381 if test $ac_cv_func__doprnt = yes; then
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define HAVE_DOPRNT 1
10385 _ACEOF
10386
10387 fi
10388
10389 fi
10390 done
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10407 do
10408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10409 echo "$as_me:$LINENO: checking for $ac_func" >&5
10410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10411 if eval "test \"\${$as_ac_var+set}\" = set"; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10416 /* confdefs.h.  */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h.  */
10421 /* System header to define __stub macros and hopefully few prototypes,
10422     which can conflict with char $ac_func (); below.  */
10423 #include <assert.h>
10424 /* Override any gcc2 internal prototype to avoid an error.  */
10425 #ifdef __cplusplus
10426 extern "C"
10427 {
10428 #endif
10429 /* We use char because int might match the return type of a gcc2
10430    builtin and then its argument prototype would still apply.  */
10431 char $ac_func ();
10432 /* The GNU C library defines this for functions which it implements
10433     to always fail with ENOSYS.  Some functions are actually named
10434     something starting with __ and the normal name is an alias.  */
10435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10436 choke me
10437 #else
10438 char (*f) () = $ac_func;
10439 #endif
10440 #ifdef __cplusplus
10441 }
10442 #endif
10443
10444 int
10445 main ()
10446 {
10447
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454   (eval $ac_link) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } &&
10458          { ac_try='test -s conftest$ac_exeext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   eval "$as_ac_var=yes"
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 eval "$as_ac_var=no"
10470 fi
10471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10472 fi
10473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10475 if test `eval echo '${'$as_ac_var'}'` = yes; then
10476   cat >>confdefs.h <<_ACEOF
10477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10478 _ACEOF
10479
10480 fi
10481 done
10482
10483
10484
10485
10486   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10487   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10488   ac_define_dir=`eval echo $"$sysconfdir"`
10489   ac_define_dir=`eval echo $ac_define_dir`
10490
10491 cat >>confdefs.h <<_ACEOF
10492 #define FGIS_CONFIG "$ac_define_dir"
10493 _ACEOF
10494
10495
10496
10497
10498
10499         FGIS_LIBDIR=$"$libdir"
10500         test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10501         test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10502         FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10503         FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10504
10505
10506
10507
10508
10509 #
10510 # Ok, lets find the tcl source trees so we can use the headers
10511 # Warning: transition of version 9 to 10 will break this algorithm
10512 # because 10 sorts before 9. We also look for just tcl. We have to
10513 # be careful that we don't match stuff like tclX by accident.
10514 # the alternative search directory is involked by --with-tclinclude
10515 #
10516 no_tcl=true
10517 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
10518 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
10519
10520 # Check whether --with-tclinclude or --without-tclinclude was given.
10521 if test "${with_tclinclude+set}" = set; then
10522   withval="$with_tclinclude"
10523   with_tclinclude=${withval}
10524 fi;
10525 if test "${ac_cv_c_tclh+set}" = set; then
10526   echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528
10529 # first check to see if --with-tclinclude was specified
10530 if test x"${with_tclinclude}" != x ; then
10531   if test -f ${with_tclinclude}/tclInt.h ; then
10532     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
10533   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
10534     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
10535   else
10536     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
10537 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
10538    { (exit 1); exit 1; }; }
10539   fi
10540 fi
10541
10542 # next check if it came with Tcl configuration file
10543 if test x"${ac_cv_c_tclconfig}" != x ; then
10544   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
10545     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
10546   fi
10547 fi
10548
10549 # next check in private source directory
10550 #
10551 # since ls returns lowest version numbers first, reverse its output
10552 if test x"${ac_cv_c_tclh}" = x ; then
10553   for i in \
10554                 ${srcdir}/../tcl \
10555                 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10556                 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` \
10557                 ${srcdir}/../../tcl \
10558                 `ls -dr ${srcdir}/../../tcl[9].[0-9].[0-9] ${srcdir}/../../tcl[9].[0-9] 2>/dev/null` \
10559                 `ls -dr ${srcdir}/../../tcl[8].[2-9].[0-9] ${srcdir}/../../tcl[8].[2-9] 2>/dev/null` \
10560                 ${srcdir}/../../../tcl \
10561                 `ls -dr ${srcdir}/../../../tcl[9].[0-9].[0-9] ${srcdir}/../../../tcl[9].[0-9] 2>/dev/null ` \
10562                 `ls -dr ${srcdir}/../../../tcl[8].[2-9].[0-9] ${srcdir}/../../../tcl[8].[2-9] 2>/dev/null ` ; do
10563     if test -f $i/generic/tclInt.h ; then
10564       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10565       break
10566     fi
10567   done
10568 fi
10569
10570 # check Debian-specific locations
10571 if test x"${ac_cv_c_tclh}" = x ; then
10572   for i in \
10573                 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tcl-private /usr/include/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10574                 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tcl-private /usr/include/tcl[8].[2-9]/tcl-private 2>/dev/null`; do
10575     if test -f $i/generic/tclInt.h ; then
10576       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10577       break
10578     fi
10579   done
10580 fi
10581
10582 # finally check in a few common install locations
10583 #
10584 # since ls returns lowest version numbers first, reverse its output
10585 if test x"${ac_cv_c_tclh}" = x ; then
10586   for i in \
10587                 `ls -dr /usr/lib/tcl[9].[0-9].[0-9]/tcl-private /usr/lib/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10588                 `ls -dr /usr/lib/tcl[8].[2-9].[0-9]/tcl-private /usr/lib/tcl[8].[2-9]/tcl-private 2>/dev/null` \
10589                 `ls -dr /usr/local/src/tcl[9].[0-9].[0-9] /usr/local/src/tcl[9].[0-9] 2>/dev/null` \
10590                 `ls -dr /usr/local/src/tcl[8].[2-9].[0-9] /usr/local/src/tcl[8].[2-9] 2>/dev/null` \
10591                 `ls -dr /usr/local/lib/tcl[9].[0-9].[0-9] /usr/local/lib/tcl[9].[0-9] 2>/dev/null` \
10592                 `ls -dr /usr/local/lib/tcl[8].[2-9].[0-9] /usr/local/lib/tcl[8].[2-9] 2>/dev/null` \
10593                 /usr/local/src/tcl \
10594                 /usr/local/lib/tcl \
10595                 ${prefix}/include ; do
10596     if test -f $i/generic/tclInt.h ; then
10597       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10598       break
10599     fi
10600   done
10601 fi
10602 # see if one is installed
10603 if test x"${ac_cv_c_tclh}" = x ; then
10604    if test "${ac_cv_header_tclInt_h+set}" = set; then
10605   echo "$as_me:$LINENO: checking for tclInt.h" >&5
10606 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10607 if test "${ac_cv_header_tclInt_h+set}" = set; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 fi
10610 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10611 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10612 else
10613   # Is the header compilable?
10614 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
10615 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
10616 cat >conftest.$ac_ext <<_ACEOF
10617 #line $LINENO "configure"
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623 $ac_includes_default
10624 #include <tclInt.h>
10625 _ACEOF
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628   (eval $ac_compile) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } &&
10632          { ac_try='test -s conftest.$ac_objext'
10633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634   (eval $ac_try) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; }; then
10638   ac_header_compiler=yes
10639 else
10640   echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_header_compiler=no
10644 fi
10645 rm -f conftest.$ac_objext conftest.$ac_ext
10646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10647 echo "${ECHO_T}$ac_header_compiler" >&6
10648
10649 # Is the header present?
10650 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
10651 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659 #include <tclInt.h>
10660 _ACEOF
10661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } >/dev/null; then
10669   if test -s conftest.err; then
10670     ac_cpp_err=$ac_c_preproc_warn_flag
10671   else
10672     ac_cpp_err=
10673   fi
10674 else
10675   ac_cpp_err=yes
10676 fi
10677 if test -z "$ac_cpp_err"; then
10678   ac_header_preproc=yes
10679 else
10680   echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10682
10683   ac_header_preproc=no
10684 fi
10685 rm -f conftest.err conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10687 echo "${ECHO_T}$ac_header_preproc" >&6
10688
10689 # So?  What about this header?
10690 case $ac_header_compiler:$ac_header_preproc in
10691   yes:no )
10692     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10693 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10694     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10695 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
10696     (
10697       cat <<\_ASBOX
10698 ## ------------------------------------ ##
10699 ## Report this to bug-autoconf@gnu.org. ##
10700 ## ------------------------------------ ##
10701 _ASBOX
10702     ) |
10703       sed "s/^/$as_me: WARNING:     /" >&2
10704     ;;
10705   no:yes )
10706     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
10707 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
10709 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
10710     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10711 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
10712     (
10713       cat <<\_ASBOX
10714 ## ------------------------------------ ##
10715 ## Report this to bug-autoconf@gnu.org. ##
10716 ## ------------------------------------ ##
10717 _ASBOX
10718     ) |
10719       sed "s/^/$as_me: WARNING:     /" >&2
10720     ;;
10721 esac
10722 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10723 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10724 if test "${ac_cv_header_tclInt_h+set}" = set; then
10725   echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727   ac_cv_header_tclInt_h=$ac_header_preproc
10728 fi
10729 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10730 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10731
10732 fi
10733 if test $ac_cv_header_tclInt_h = yes; then
10734   ac_cv_c_tclh=installed
10735 else
10736   ac_cv_c_tclh=""
10737 fi
10738
10739
10740 fi
10741
10742 fi
10743
10744 if test x"${ac_cv_c_tclh}" = x ; then
10745   TCLHDIR="# no Tcl private headers found"
10746   TCLHDIRDASHI="# no Tcl private headers found"
10747   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
10748 echo "$as_me: error: Can't find Tcl private headers" >&2;}
10749    { (exit 1); exit 1; }; }
10750 fi
10751 if test x"${ac_cv_c_tclh}" != x ; then
10752   no_tcl=""
10753   if test x"${ac_cv_c_tclh}" = x"installed" ; then
10754     echo "$as_me:$LINENO: result: is installed" >&5
10755 echo "${ECHO_T}is installed" >&6
10756     TCLHDIR=""
10757     TCLHDIRDASHI=""
10758     TCL_LIBRARY=""
10759   else
10760     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
10761 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
10762     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
10763     TCLHDIR="${ac_cv_c_tclh}"
10764     TCLHDIRDASHI="-I${ac_cv_c_tclh}"
10765     TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
10766   fi
10767 fi
10768
10769
10770
10771
10772
10773 if test x"$no_tcl" = x"true" ; then
10774     echo "      ERROR: Can't find Tcl headers or library."
10775     echo "      See README for information on how to obtain Tcl."
10776     echo "      If Tcl is installed, see INSTALL on how to tell"
10777     echo "      configure where Tcl is installed."
10778     exit 1
10779 fi
10780
10781 #
10782 # Ok, lets find the tcl configuration
10783 # First, look for one uninstalled.
10784 # the alternative search directory is invoked by --with-tcl
10785 #
10786
10787 if test x"${no_tcl}" = x ; then
10788   # we reset no_tcl in case something fails here
10789   no_tcl=true
10790
10791 # Check whether --with-tcl or --without-tcl was given.
10792 if test "${with_tcl+set}" = set; then
10793   withval="$with_tcl"
10794   with_tclconfig=${withval}
10795 fi;
10796   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
10797 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
10798   if test "${ac_cv_c_tclconfig+set}" = set; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801
10802
10803   # First check to see if --with-tcl was specified.
10804   if test x"${with_tclconfig}" != x ; then
10805     if test -f "${with_tclconfig}/tclConfig.sh" ; then
10806       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10807     else
10808       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10809 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10810    { (exit 1); exit 1; }; }
10811     fi
10812   fi
10813
10814   # then check for a private Tcl installation
10815   if test x"${ac_cv_c_tclconfig}" = x ; then
10816     for i in \
10817                 ../tcl \
10818                 `ls -dr ../tcl[9].[0-9].[0-9] ../tcl[9].[0-9] 2>/dev/null` \
10819                 `ls -dr ../tcl[8].[2-9].[0-9] ../tcl[8].[2-9] 2>/dev/null` \
10820                 ../../tcl \
10821                 `ls -dr ../../tcl[9].[0-9].[0-9] ../../tcl[9].[0-9] 2>/dev/null` \
10822                 `ls -dr ../../tcl[8].[2-9].[0-9] ../../tcl[8].[2-9] 2>/dev/null` \
10823                 ../../../tcl \
10824                 `ls -dr ../../../tcl[9].[0-9].[0-9] ../../../tcl[9].[0-9] 2>/dev/null` \
10825                 `ls -dr ../../../tcl[8].[2-9].[0-9] ../../../tcl[8].[2-9] 2>/dev/null` ; do
10826       if test -f "$i/unix/tclConfig.sh" ; then
10827         ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10828         break
10829       fi
10830     done
10831   fi
10832   # check in a few common install locations
10833   if test x"${ac_cv_c_tclconfig}" = x ; then
10834     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10835       if test -f "$i/tclConfig.sh" ; then
10836         ac_cv_c_tclconfig=`(cd $i; pwd)`
10837         break
10838       fi
10839     done
10840   fi
10841
10842   # check Debian-specific locations
10843   if test x"${ac_cv_c_tclconfig}" = x ; then
10844     for i in \
10845                 `ls -dr /usr/lib/tcl[9].[0-9].[0-9] /usr/lib/tcl[9].[0-9] 2>/dev/null` \
10846                 `ls -dr /usr/lib/tcl[8].[2-9].[0-9] /usr/lib/tcl[8].[2-9] 2>/dev/null` ; do
10847       if test -f "$i/tclConfig.sh" ; then
10848         ac_cv_c_tclconfig=`(cd $i; pwd)`
10849         break
10850       fi
10851     done
10852   fi
10853
10854   # check in a few other private locations
10855   if test x"${ac_cv_c_tclconfig}" = x ; then
10856     for i in \
10857                 ${srcdir}/../tcl \
10858                 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10859                 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` ; do
10860       if test -f "$i/unix/tclConfig.sh" ; then
10861         ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10862         break
10863       fi
10864     done
10865   fi
10866
10867 fi
10868
10869   if test x"${ac_cv_c_tclconfig}" = x ; then
10870     TCLCONFIG="# no Tcl configs found"
10871     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
10872 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10873   else
10874     no_tcl=
10875     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
10876     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
10877 echo "${ECHO_T}found $TCLCONFIG" >&6
10878   fi
10879 fi
10880
10881
10882     . $TCLCONFIG
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894 # Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
10895 # as just SHLIB_SUFFIX.  How bizarre.
10896     SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
10897
10898
10899
10900
10901 # if Tcl's build directory has been removed, TCL_LIB_SPEC should
10902 # be used instead of TCL_BUILD_LIB_SPEC
10903 SAVELIBS=$LIBS
10904 # eval used to expand out TCL_DBGX
10905 eval "LIBS=\"$TCL_BUILD_LIB_SPEC $TCL_LIBS\""
10906 echo "$as_me:$LINENO: checking Tcl build library" >&5
10907 echo $ECHO_N "checking Tcl build library... $ECHO_C" >&6
10908 echo "$as_me:$LINENO: result: $LIBS" >&5
10909 echo "${ECHO_T}$LIBS" >&6
10910
10911 echo "$as_me:$LINENO: checking for Tcl_CreateCommand" >&5
10912 echo $ECHO_N "checking for Tcl_CreateCommand... $ECHO_C" >&6
10913 if test "${ac_cv_func_Tcl_CreateCommand+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   cat >conftest.$ac_ext <<_ACEOF
10917 #line $LINENO "configure"
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 /* System header to define __stub macros and hopefully few prototypes,
10924     which can conflict with char Tcl_CreateCommand (); below.  */
10925 #include <assert.h>
10926 /* Override any gcc2 internal prototype to avoid an error.  */
10927 #ifdef __cplusplus
10928 extern "C"
10929 {
10930 #endif
10931 /* We use char because int might match the return type of a gcc2
10932    builtin and then its argument prototype would still apply.  */
10933 char Tcl_CreateCommand ();
10934 /* The GNU C library defines this for functions which it implements
10935     to always fail with ENOSYS.  Some functions are actually named
10936     something starting with __ and the normal name is an alias.  */
10937 #if defined (__stub_Tcl_CreateCommand) || defined (__stub___Tcl_CreateCommand)
10938 choke me
10939 #else
10940 char (*f) () = Tcl_CreateCommand;
10941 #endif
10942 #ifdef __cplusplus
10943 }
10944 #endif
10945
10946 int
10947 main ()
10948 {
10949
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956   (eval $ac_link) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } &&
10960          { ac_try='test -s conftest$ac_exeext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   ac_cv_func_Tcl_CreateCommand=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_cv_func_Tcl_CreateCommand=no
10972 fi
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10974 fi
10975 echo "$as_me:$LINENO: result: $ac_cv_func_Tcl_CreateCommand" >&5
10976 echo "${ECHO_T}$ac_cv_func_Tcl_CreateCommand" >&6
10977 if test $ac_cv_func_Tcl_CreateCommand = yes; then
10978
10979         echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10980 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10981         echo "$as_me:$LINENO: result: yes" >&5
10982 echo "${ECHO_T}yes" >&6
10983
10984 else
10985
10986         TCL_BUILD_LIB_SPEC=$TCL_LIB_SPEC
10987         # Can't pull the following CHECKING call out since it will be
10988         # broken up by the CHECK_FUNC just above.
10989         echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10990 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10991         echo "$as_me:$LINENO: result: no" >&5
10992 echo "${ECHO_T}no" >&6
10993
10994 fi
10995
10996 LIBS=$SAVELIBS
10997
10998
10999
11000
11001
11002
11003
11004 TCL_INC_DIR=$TCL_INC_DIR
11005
11006 TCL_PACKAGE_PATH=$TCL_PACKAGE_PATH
11007
11008
11009
11010 #
11011 # Ok, lets find the tk source trees so we can use the headers
11012 # If the directory (presumably symlink) named "tk" exists, use that one
11013 # in preference to any others.  Same logic is used when choosing library
11014 # and again with Tcl. The search order is the best place to look first, then in
11015 # decreasing significance. The loop breaks if the trigger file is found.
11016 # Note the gross little conversion here of srcdir by cd'ing to the found
11017 # directory. This converts the path from a relative to an absolute, so
11018 # recursive cache variables for the path will work right. We check all
11019 # the possible paths in one loop rather than many seperate loops to speed
11020 # things up.
11021 # the alternative search directory is involked by --with-tkinclude
11022 #
11023 #no_tk=true
11024 echo "$as_me:$LINENO: checking for Tk private headers" >&5
11025 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
11026
11027 # Check whether --with-tkinclude or --without-tkinclude was given.
11028 if test "${with_tkinclude+set}" = set; then
11029   withval="$with_tkinclude"
11030   with_tkinclude=${withval}
11031 fi;
11032 if test "${ac_cv_c_tkh+set}" = set; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035
11036 # first check to see if --with-tkinclude was specified
11037 if test x"${with_tkinclude}" != x ; then
11038   if test -f ${with_tkinclude}/tk.h ; then
11039     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
11040   elif test -f ${with_tkinclude}/generic/tk.h ; then
11041     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
11042   else
11043     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
11044 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
11045    { (exit 1); exit 1; }; }
11046   fi
11047 fi
11048
11049 # next check if it came with Tk configuration file
11050 if test x"${ac_cv_c_tkconfig}" != x ; then
11051   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
11052     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/../generic; pwd)`
11053   fi
11054 fi
11055
11056 # next check in private source directory
11057 #
11058 # since ls returns lowest version numbers first, reverse its output
11059 if test x"${ac_cv_c_tkh}" = x ; then
11060   for i in \
11061                 ${srcdir}/../tk \
11062                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11063                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11064                 ${srcdir}/../../tk \
11065                 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
11066                 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
11067                 ${srcdir}/../../../tk \
11068                 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` \
11069                 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` ; do
11070     if test -f $i/generic/tk.h ; then
11071       ac_cv_c_tkh=`(cd $i/generic; pwd)`
11072       break
11073     fi
11074   done
11075 fi
11076
11077 # check Debian-specific locations
11078 if test x"${ac_cv_c_tkh}" = x ; then
11079   for i in \
11080                 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tk-private /usr/include/tcl[9].[0-9]/tk-private 2>/dev/null` \
11081                 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tk-private /usr/include/tcl[8].[2-9]/tk-private 2>/dev/null` ; do
11082     if test -f $i/generic/tk.h ; then
11083       ac_cv_c_tkh=`(cd $i/generic; pwd)`
11084       break
11085     fi
11086   done
11087 fi
11088
11089 # finally check in a few common install locations
11090 #
11091 # since ls returns lowest version numbers first, reverse its output
11092 if test x"${ac_cv_c_tkh}" = x ; then
11093   for i in \
11094                 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
11095                 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
11096                 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
11097                 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
11098                 /usr/local/src/tk \
11099                 /usr/local/lib/tk \
11100                 ${prefix}/include ; do
11101     if test -f $i/generic/tk.h ; then
11102       ac_cv_c_tkh=`(cd $i/generic; pwd)`
11103       break
11104     fi
11105   done
11106 fi
11107 # see if one is installed
11108 if test x"${ac_cv_c_tkh}" = x ; then
11109    if test "${ac_cv_header_tk_h+set}" = set; then
11110   echo "$as_me:$LINENO: checking for tk.h" >&5
11111 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11112 if test "${ac_cv_header_tk_h+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 fi
11115 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11116 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11117 else
11118   # Is the header compilable?
11119 echo "$as_me:$LINENO: checking tk.h usability" >&5
11120 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11123 /* confdefs.h.  */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h.  */
11128 $ac_includes_default
11129 #include <tk.h>
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133   (eval $ac_compile) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -s conftest.$ac_objext'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   ac_header_compiler=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_header_compiler=no
11149 fi
11150 rm -f conftest.$ac_objext conftest.$ac_ext
11151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6
11153
11154 # Is the header present?
11155 echo "$as_me:$LINENO: checking tk.h presence" >&5
11156 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
11157 cat >conftest.$ac_ext <<_ACEOF
11158 #line $LINENO "configure"
11159 /* confdefs.h.  */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h.  */
11164 #include <tk.h>
11165 _ACEOF
11166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } >/dev/null; then
11174   if test -s conftest.err; then
11175     ac_cpp_err=$ac_c_preproc_warn_flag
11176   else
11177     ac_cpp_err=
11178   fi
11179 else
11180   ac_cpp_err=yes
11181 fi
11182 if test -z "$ac_cpp_err"; then
11183   ac_header_preproc=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188   ac_header_preproc=no
11189 fi
11190 rm -f conftest.err conftest.$ac_ext
11191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11192 echo "${ECHO_T}$ac_header_preproc" >&6
11193
11194 # So?  What about this header?
11195 case $ac_header_compiler:$ac_header_preproc in
11196   yes:no )
11197     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
11198 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11199     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11200 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
11201     (
11202       cat <<\_ASBOX
11203 ## ------------------------------------ ##
11204 ## Report this to bug-autoconf@gnu.org. ##
11205 ## ------------------------------------ ##
11206 _ASBOX
11207     ) |
11208       sed "s/^/$as_me: WARNING:     /" >&2
11209     ;;
11210   no:yes )
11211     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
11212 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
11214 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11216 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
11217     (
11218       cat <<\_ASBOX
11219 ## ------------------------------------ ##
11220 ## Report this to bug-autoconf@gnu.org. ##
11221 ## ------------------------------------ ##
11222 _ASBOX
11223     ) |
11224       sed "s/^/$as_me: WARNING:     /" >&2
11225     ;;
11226 esac
11227 echo "$as_me:$LINENO: checking for tk.h" >&5
11228 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11229 if test "${ac_cv_header_tk_h+set}" = set; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   ac_cv_header_tk_h=$ac_header_preproc
11233 fi
11234 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11235 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11236
11237 fi
11238 if test $ac_cv_header_tk_h = yes; then
11239   ac_cv_c_tkh=installed
11240 else
11241   ac_cv_c_tkh=""
11242 fi
11243
11244
11245 fi
11246
11247 fi
11248
11249 if test x"${ac_cv_c_tkh}" != x ; then
11250 #  no_tk=""
11251   if test x"${ac_cv_c_tkh}" = x"installed" ; then
11252     echo "$as_me:$LINENO: result: is installed" >&5
11253 echo "${ECHO_T}is installed" >&6
11254     TKHDIRDASHI=""
11255   else
11256     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
11257 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
11258     # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
11259     TKHDIRDASHI="-I${ac_cv_c_tkh}"
11260   fi
11261 else
11262   TKHDIRDASHI="# no Tk directory found"
11263   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
11264 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
11265   no_tk=true
11266 fi
11267
11268
11269
11270
11271 #
11272 # Ok, lets find the tk configuration
11273 # First, look for one uninstalled.
11274 # the alternative search directory is invoked by --with-tk
11275 #
11276
11277 if test x"${no_tk}" = x ; then
11278   # we reset no_tk in case something fails here
11279   no_tk=true
11280
11281 # Check whether --with-tk or --without-tk was given.
11282 if test "${with_tk+set}" = set; then
11283   withval="$with_tk"
11284   with_tkconfig=${withval}
11285 fi;
11286   echo "$as_me:$LINENO: checking for Tk configuration" >&5
11287 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
11288   if test "${ac_cv_c_tkconfig+set}" = set; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291
11292
11293   # First check to see if --with-tk was specified.
11294   if test x"${with_tkconfig}" != x ; then
11295     if test -f "${with_tkconfig}/tkConfig.sh" ; then
11296       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
11297     else
11298       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
11299 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
11300    { (exit 1); exit 1; }; }
11301     fi
11302   fi
11303
11304   # then check for a private Tk library
11305   if test x"${ac_cv_c_tkconfig}" = x ; then
11306     for i in \
11307                 ../tk \
11308                 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11309                 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11310                 ../../tk \
11311                 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11312                 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11313                 ../../../tk \
11314                 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` \
11315                 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` ; do
11316       if test -f "$i/unix/tkConfig.sh" ; then
11317         ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11318         break
11319       fi
11320     done
11321   fi
11322   # check in a few common install locations
11323   if test x"${ac_cv_c_tkconfig}" = x ; then
11324     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
11325       if test -f "$i/tkConfig.sh" ; then
11326         ac_cv_c_tkconfig=`(cd $i; pwd)`
11327         break
11328       fi
11329     done
11330   fi
11331   # check Debian-specific locations
11332   if test x"${ac_cv_c_tkconfig}" = x ; then
11333     for i in \
11334                 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` \
11335                 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` ; do
11336       if test -f "$i/tkConfig.sh" ; then
11337         ac_cv_c_tkconfig=`(cd $i; pwd)`
11338         break
11339       fi
11340     done
11341   fi
11342   # check in a few other private locations
11343   if test x"${ac_cv_c_tkconfig}" = x ; then
11344     for i in \
11345                 ${srcdir}/../tk \
11346                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11347                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` ; do
11348       if test -f "$i/unix/tkConfig.sh" ; then
11349         ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11350         break
11351       fi
11352     done
11353   fi
11354
11355 fi
11356
11357   if test x"${ac_cv_c_tkconfig}" = x ; then
11358     TKCONFIG="# no Tk configs found"
11359     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
11360 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
11361   else
11362     no_tk=
11363     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
11364     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
11365 echo "${ECHO_T}found $TKCONFIG" >&6
11366   fi
11367 fi
11368
11369
11370
11371     if test -f "$TKCONFIG" ; then
11372       . $TKCONFIG
11373     fi
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385 # if Tk's build directory has been removed, TK_LIB_SPEC should
11386 # be used instead of TK_BUILD_LIB_SPEC
11387 SAVELIBS=$LIBS
11388 # eval used to expand out TK_DBGX
11389 eval "LIBS=\"$TK_BUILD_LIB_SPEC $TCL_BUILD_LIB_SPEC $TK_LIBS\""
11390 echo "$as_me:$LINENO: checking for Tk_Init" >&5
11391 echo $ECHO_N "checking for Tk_Init... $ECHO_C" >&6
11392 if test "${ac_cv_func_Tk_Init+set}" = set; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   cat >conftest.$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 /* System header to define __stub macros and hopefully few prototypes,
11403     which can conflict with char Tk_Init (); below.  */
11404 #include <assert.h>
11405 /* Override any gcc2 internal prototype to avoid an error.  */
11406 #ifdef __cplusplus
11407 extern "C"
11408 {
11409 #endif
11410 /* We use char because int might match the return type of a gcc2
11411    builtin and then its argument prototype would still apply.  */
11412 char Tk_Init ();
11413 /* The GNU C library defines this for functions which it implements
11414     to always fail with ENOSYS.  Some functions are actually named
11415     something starting with __ and the normal name is an alias.  */
11416 #if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
11417 choke me
11418 #else
11419 char (*f) () = Tk_Init;
11420 #endif
11421 #ifdef __cplusplus
11422 }
11423 #endif
11424
11425 int
11426 main ()
11427 {
11428
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435   (eval $ac_link) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -s conftest$ac_exeext'
11440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441   (eval $ac_try) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; }; then
11445   ac_cv_func_Tk_Init=yes
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 ac_cv_func_Tk_Init=no
11451 fi
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11453 fi
11454 echo "$as_me:$LINENO: result: $ac_cv_func_Tk_Init" >&5
11455 echo "${ECHO_T}$ac_cv_func_Tk_Init" >&6
11456 if test $ac_cv_func_Tk_Init = yes; then
11457
11458         echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11459 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11460         echo "$as_me:$LINENO: result: yes" >&5
11461 echo "${ECHO_T}yes" >&6
11462
11463 else
11464
11465         TK_BUILD_LIB_SPEC=$TK_LIB_SPEC
11466         # Can't pull the following CHECKING call out since it will be
11467         # broken up by the CHECK_FUNC just above.
11468         echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11469 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11470         echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6
11472
11473 fi
11474
11475 LIBS=$SAVELIBS
11476
11477
11478
11479
11480 TK_INC_DIR=$TK_INC_DIR
11481
11482 if [ $TK_VERSION < "8.4" ]; then
11483
11484 cat >>confdefs.h <<\_ACEOF
11485 #define TK_84PREV 0
11486 _ACEOF
11487
11488 fi
11489
11490                                                                       ac_config_files="$ac_config_files Makefile dll/Makefile epu/Makefile include/Makefile lib/Makefile tcl/Makefile tcl/pkgIndex.tcl"
11491
11492 cat >confcache <<\_ACEOF
11493 # This file is a shell script that caches the results of configure
11494 # tests run on this system so they can be shared between configure
11495 # scripts and configure runs, see configure's option --config-cache.
11496 # It is not useful on other systems.  If it contains results you don't
11497 # want to keep, you may remove or edit it.
11498 #
11499 # config.status only pays attention to the cache file if you give it
11500 # the --recheck option to rerun configure.
11501 #
11502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11504 # following values.
11505
11506 _ACEOF
11507
11508 # The following way of writing the cache mishandles newlines in values,
11509 # but we know of no workaround that is simple, portable, and efficient.
11510 # So, don't put newlines in cache variables' values.
11511 # Ultrix sh set writes to stderr and can't be redirected directly,
11512 # and sets the high bit in the cache file unless we assign to the vars.
11513 {
11514   (set) 2>&1 |
11515     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11516     *ac_space=\ *)
11517       # `set' does not quote correctly, so add quotes (double-quote
11518       # substitution turns \\\\ into \\, and sed turns \\ into \).
11519       sed -n \
11520         "s/'/'\\\\''/g;
11521           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11522       ;;
11523     *)
11524       # `set' quotes correctly as required by POSIX, so do not add quotes.
11525       sed -n \
11526         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11527       ;;
11528     esac;
11529 } |
11530   sed '
11531      t clear
11532      : clear
11533      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11534      t end
11535      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11536      : end' >>confcache
11537 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11538   if test -w $cache_file; then
11539     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11540     cat confcache >$cache_file
11541   else
11542     echo "not updating unwritable cache $cache_file"
11543   fi
11544 fi
11545 rm -f confcache
11546
11547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11548 # Let make expand exec_prefix.
11549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11550
11551 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11552 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11553 # trailing colons and then remove the whole line if VPATH becomes empty
11554 # (actually we leave an empty line to preserve line numbers).
11555 if test "x$srcdir" = x.; then
11556   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11557 s/:*\$(srcdir):*/:/;
11558 s/:*\${srcdir}:*/:/;
11559 s/:*@srcdir@:*/:/;
11560 s/^\([^=]*=[    ]*\):*/\1/;
11561 s/:*$//;
11562 s/^[^=]*=[      ]*$//;
11563 }'
11564 fi
11565
11566 DEFS=-DHAVE_CONFIG_H
11567
11568 ac_libobjs=
11569 ac_ltlibobjs=
11570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11571   # 1. Remove the extension, and $U if already installed.
11572   ac_i=`echo "$ac_i" |
11573          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11574   # 2. Add them.
11575   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11576   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11577 done
11578 LIBOBJS=$ac_libobjs
11579
11580 LTLIBOBJS=$ac_ltlibobjs
11581
11582
11583
11584 : ${CONFIG_STATUS=./config.status}
11585 ac_clean_files_save=$ac_clean_files
11586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11587 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11588 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11589 cat >$CONFIG_STATUS <<_ACEOF
11590 #! $SHELL
11591 # Generated by $as_me.
11592 # Run this file to recreate the current configuration.
11593 # Compiler output produced by configure, useful for debugging
11594 # configure, is in config.log if it exists.
11595
11596 debug=false
11597 ac_cs_recheck=false
11598 ac_cs_silent=false
11599 SHELL=\${CONFIG_SHELL-$SHELL}
11600 _ACEOF
11601
11602 cat >>$CONFIG_STATUS <<\_ACEOF
11603 ## --------------------- ##
11604 ## M4sh Initialization.  ##
11605 ## --------------------- ##
11606
11607 # Be Bourne compatible
11608 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11609   emulate sh
11610   NULLCMD=:
11611   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11612   # is contrary to our usage.  Disable this feature.
11613   alias -g '${1+"$@"}'='"$@"'
11614 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11615   set -o posix
11616 fi
11617
11618 # Support unset when possible.
11619 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11620   as_unset=unset
11621 else
11622   as_unset=false
11623 fi
11624
11625
11626 # Work around bugs in pre-3.0 UWIN ksh.
11627 $as_unset ENV MAIL MAILPATH
11628 PS1='$ '
11629 PS2='> '
11630 PS4='+ '
11631
11632 # NLS nuisances.
11633 for as_var in \
11634   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11635   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11636   LC_TELEPHONE LC_TIME
11637 do
11638   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11639     eval $as_var=C; export $as_var
11640   else
11641     $as_unset $as_var
11642   fi
11643 done
11644
11645 # Required to use basename.
11646 if expr a : '\(a\)' >/dev/null 2>&1; then
11647   as_expr=expr
11648 else
11649   as_expr=false
11650 fi
11651
11652 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11653   as_basename=basename
11654 else
11655   as_basename=false
11656 fi
11657
11658
11659 # Name of the executable.
11660 as_me=`$as_basename "$0" ||
11661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11662          X"$0" : 'X\(//\)$' \| \
11663          X"$0" : 'X\(/\)$' \| \
11664          .     : '\(.\)' 2>/dev/null ||
11665 echo X/"$0" |
11666     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11667           /^X\/\(\/\/\)$/{ s//\1/; q; }
11668           /^X\/\(\/\).*/{ s//\1/; q; }
11669           s/.*/./; q'`
11670
11671
11672 # PATH needs CR, and LINENO needs CR and PATH.
11673 # Avoid depending upon Character Ranges.
11674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11677 as_cr_digits='0123456789'
11678 as_cr_alnum=$as_cr_Letters$as_cr_digits
11679
11680 # The user is always right.
11681 if test "${PATH_SEPARATOR+set}" != set; then
11682   echo "#! /bin/sh" >conf$$.sh
11683   echo  "exit 0"   >>conf$$.sh
11684   chmod +x conf$$.sh
11685   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11686     PATH_SEPARATOR=';'
11687   else
11688     PATH_SEPARATOR=:
11689   fi
11690   rm -f conf$$.sh
11691 fi
11692
11693
11694   as_lineno_1=$LINENO
11695   as_lineno_2=$LINENO
11696   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11697   test "x$as_lineno_1" != "x$as_lineno_2" &&
11698   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11699   # Find who we are.  Look in the path if we contain no path at all
11700   # relative or not.
11701   case $0 in
11702     *[\\/]* ) as_myself=$0 ;;
11703     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11705 do
11706   IFS=$as_save_IFS
11707   test -z "$as_dir" && as_dir=.
11708   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11709 done
11710
11711        ;;
11712   esac
11713   # We did not find ourselves, most probably we were run as `sh COMMAND'
11714   # in which case we are not to be found in the path.
11715   if test "x$as_myself" = x; then
11716     as_myself=$0
11717   fi
11718   if test ! -f "$as_myself"; then
11719     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11720 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11721    { (exit 1); exit 1; }; }
11722   fi
11723   case $CONFIG_SHELL in
11724   '')
11725     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11727 do
11728   IFS=$as_save_IFS
11729   test -z "$as_dir" && as_dir=.
11730   for as_base in sh bash ksh sh5; do
11731          case $as_dir in
11732          /*)
11733            if ("$as_dir/$as_base" -c '
11734   as_lineno_1=$LINENO
11735   as_lineno_2=$LINENO
11736   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11737   test "x$as_lineno_1" != "x$as_lineno_2" &&
11738   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11739              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11740              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11741              CONFIG_SHELL=$as_dir/$as_base
11742              export CONFIG_SHELL
11743              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11744            fi;;
11745          esac
11746        done
11747 done
11748 ;;
11749   esac
11750
11751   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11752   # uniformly replaced by the line number.  The first 'sed' inserts a
11753   # line-number line before each line; the second 'sed' does the real
11754   # work.  The second script uses 'N' to pair each line-number line
11755   # with the numbered line, and appends trailing '-' during
11756   # substitution so that $LINENO is not a special case at line end.
11757   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11758   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11759   sed '=' <$as_myself |
11760     sed '
11761       N
11762       s,$,-,
11763       : loop
11764       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11765       t loop
11766       s,-$,,
11767       s,^['$as_cr_digits']*\n,,
11768     ' >$as_me.lineno &&
11769   chmod +x $as_me.lineno ||
11770     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11771 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11772    { (exit 1); exit 1; }; }
11773
11774   # Don't try to exec as it changes $[0], causing all sort of problems
11775   # (the dirname of $[0] is not the place where we might find the
11776   # original and so on.  Autoconf is especially sensible to this).
11777   . ./$as_me.lineno
11778   # Exit status is that of the last command.
11779   exit
11780 }
11781
11782
11783 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11784   *c*,-n*) ECHO_N= ECHO_C='
11785 ' ECHO_T='      ' ;;
11786   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11787   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11788 esac
11789
11790 if expr a : '\(a\)' >/dev/null 2>&1; then
11791   as_expr=expr
11792 else
11793   as_expr=false
11794 fi
11795
11796 rm -f conf$$ conf$$.exe conf$$.file
11797 echo >conf$$.file
11798 if ln -s conf$$.file conf$$ 2>/dev/null; then
11799   # We could just check for DJGPP; but this test a) works b) is more generic
11800   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11801   if test -f conf$$.exe; then
11802     # Don't use ln at all; we don't have any links
11803     as_ln_s='cp -p'
11804   else
11805     as_ln_s='ln -s'
11806   fi
11807 elif ln conf$$.file conf$$ 2>/dev/null; then
11808   as_ln_s=ln
11809 else
11810   as_ln_s='cp -p'
11811 fi
11812 rm -f conf$$ conf$$.exe conf$$.file
11813
11814 if mkdir -p . 2>/dev/null; then
11815   as_mkdir_p=:
11816 else
11817   as_mkdir_p=false
11818 fi
11819
11820 as_executable_p="test -f"
11821
11822 # Sed expression to map a string onto a valid CPP name.
11823 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11824
11825 # Sed expression to map a string onto a valid variable name.
11826 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11827
11828
11829 # IFS
11830 # We need space, tab and new line, in precisely that order.
11831 as_nl='
11832 '
11833 IFS="   $as_nl"
11834
11835 # CDPATH.
11836 $as_unset CDPATH
11837
11838 exec 6>&1
11839
11840 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11841 # report actual input values of CONFIG_FILES etc. instead of their
11842 # values after options handling.  Logging --version etc. is OK.
11843 exec 5>>config.log
11844 {
11845   echo
11846   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11847 ## Running $as_me. ##
11848 _ASBOX
11849 } >&5
11850 cat >&5 <<_CSEOF
11851
11852 This file was extended by fGIS $as_me 0.0.1, which was
11853 generated by GNU Autoconf 2.56.  Invocation command line was
11854
11855   CONFIG_FILES    = $CONFIG_FILES
11856   CONFIG_HEADERS  = $CONFIG_HEADERS
11857   CONFIG_LINKS    = $CONFIG_LINKS
11858   CONFIG_COMMANDS = $CONFIG_COMMANDS
11859   $ $0 $@
11860
11861 _CSEOF
11862 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11863 echo >&5
11864 _ACEOF
11865
11866 # Files that config.status was made for.
11867 if test -n "$ac_config_files"; then
11868   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11869 fi
11870
11871 if test -n "$ac_config_headers"; then
11872   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11873 fi
11874
11875 if test -n "$ac_config_links"; then
11876   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11877 fi
11878
11879 if test -n "$ac_config_commands"; then
11880   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11881 fi
11882
11883 cat >>$CONFIG_STATUS <<\_ACEOF
11884
11885 ac_cs_usage="\
11886 \`$as_me' instantiates files from templates according to the
11887 current configuration.
11888
11889 Usage: $0 [OPTIONS] [FILE]...
11890
11891   -h, --help       print this help, then exit
11892   -V, --version    print version number, then exit
11893   -q, --quiet      do not print progress messages
11894   -d, --debug      don't remove temporary files
11895       --recheck    update $as_me by reconfiguring in the same conditions
11896   --file=FILE[:TEMPLATE]
11897                    instantiate the configuration file FILE
11898   --header=FILE[:TEMPLATE]
11899                    instantiate the configuration header FILE
11900
11901 Configuration files:
11902 $config_files
11903
11904 Configuration headers:
11905 $config_headers
11906
11907 Configuration commands:
11908 $config_commands
11909
11910 Report bugs to <bug-autoconf@gnu.org>."
11911 _ACEOF
11912
11913 cat >>$CONFIG_STATUS <<_ACEOF
11914 ac_cs_version="\\
11915 fGIS config.status 0.0.1
11916 configured by $0, generated by GNU Autoconf 2.56,
11917   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11918
11919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11920 Free Software Foundation, Inc.
11921 This config.status script is free software; the Free Software Foundation
11922 gives unlimited permission to copy, distribute and modify it."
11923 srcdir=$srcdir
11924 INSTALL="$INSTALL"
11925 _ACEOF
11926
11927 cat >>$CONFIG_STATUS <<\_ACEOF
11928 # If no file are specified by the user, then we need to provide default
11929 # value.  By we need to know if files were specified by the user.
11930 ac_need_defaults=:
11931 while test $# != 0
11932 do
11933   case $1 in
11934   --*=*)
11935     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11936     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11937     ac_shift=:
11938     ;;
11939   -*)
11940     ac_option=$1
11941     ac_optarg=$2
11942     ac_shift=shift
11943     ;;
11944   *) # This is not an option, so the user has probably given explicit
11945      # arguments.
11946      ac_option=$1
11947      ac_need_defaults=false;;
11948   esac
11949
11950   case $ac_option in
11951   # Handling of the options.
11952 _ACEOF
11953 cat >>$CONFIG_STATUS <<\_ACEOF
11954   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11955     ac_cs_recheck=: ;;
11956   --version | --vers* | -V )
11957     echo "$ac_cs_version"; exit 0 ;;
11958   --he | --h)
11959     # Conflict between --help and --header
11960     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11961 Try \`$0 --help' for more information." >&5
11962 echo "$as_me: error: ambiguous option: $1
11963 Try \`$0 --help' for more information." >&2;}
11964    { (exit 1); exit 1; }; };;
11965   --help | --hel | -h )
11966     echo "$ac_cs_usage"; exit 0 ;;
11967   --debug | --d* | -d )
11968     debug=: ;;
11969   --file | --fil | --fi | --f )
11970     $ac_shift
11971     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11972     ac_need_defaults=false;;
11973   --header | --heade | --head | --hea )
11974     $ac_shift
11975     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11976     ac_need_defaults=false;;
11977   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11978   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11979     ac_cs_silent=: ;;
11980
11981   # This is an error.
11982   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11983 Try \`$0 --help' for more information." >&5
11984 echo "$as_me: error: unrecognized option: $1
11985 Try \`$0 --help' for more information." >&2;}
11986    { (exit 1); exit 1; }; } ;;
11987
11988   *) ac_config_targets="$ac_config_targets $1" ;;
11989
11990   esac
11991   shift
11992 done
11993
11994 ac_configure_extra_args=
11995
11996 if $ac_cs_silent; then
11997   exec 6>/dev/null
11998   ac_configure_extra_args="$ac_configure_extra_args --silent"
11999 fi
12000
12001 _ACEOF
12002 cat >>$CONFIG_STATUS <<_ACEOF
12003 if \$ac_cs_recheck; then
12004   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12005   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12006 fi
12007
12008 _ACEOF
12009
12010 cat >>$CONFIG_STATUS <<_ACEOF
12011 #
12012 # INIT-COMMANDS section.
12013 #
12014
12015
12016
12017 _ACEOF
12018
12019
12020
12021 cat >>$CONFIG_STATUS <<\_ACEOF
12022 for ac_config_target in $ac_config_targets
12023 do
12024   case "$ac_config_target" in
12025   # Handling of arguments.
12026   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12027   "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
12028   "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
12029   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12030   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12031   "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
12032   "tcl/pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES tcl/pkgIndex.tcl" ;;
12033   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12034   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
12035   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12037    { (exit 1); exit 1; }; };;
12038   esac
12039 done
12040
12041 # If the user did not use the arguments to specify the items to instantiate,
12042 # then the envvar interface is used.  Set only those that are not.
12043 # We use the long form for the default assignment because of an extremely
12044 # bizarre bug on SunOS 4.1.3.
12045 if $ac_need_defaults; then
12046   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12047   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12048   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12049 fi
12050
12051 # Have a temporary directory for convenience.  Make it in the build tree
12052 # simply because there is no reason to put it here, and in addition,
12053 # creating and moving files from /tmp can sometimes cause problems.
12054 # Create a temporary directory, and hook for its removal unless debugging.
12055 $debug ||
12056 {
12057   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12058   trap '{ (exit 1); exit 1; }' 1 2 13 15
12059 }
12060
12061 # Create a (secure) tmp directory for tmp files.
12062
12063 {
12064   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12065   test -n "$tmp" && test -d "$tmp"
12066 }  ||
12067 {
12068   tmp=./confstat$$-$RANDOM
12069   (umask 077 && mkdir $tmp)
12070 } ||
12071 {
12072    echo "$me: cannot create a temporary directory in ." >&2
12073    { (exit 1); exit 1; }
12074 }
12075
12076 _ACEOF
12077
12078 cat >>$CONFIG_STATUS <<_ACEOF
12079
12080 #
12081 # CONFIG_FILES section.
12082 #
12083
12084 # No need to generate the scripts if there are no CONFIG_FILES.
12085 # This happens for instance when ./config.status config.h
12086 if test -n "\$CONFIG_FILES"; then
12087   # Protect against being on the right side of a sed subst in config.status.
12088   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12089    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12090 s,@SHELL@,$SHELL,;t t
12091 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12092 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12093 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12094 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12095 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12096 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12097 s,@exec_prefix@,$exec_prefix,;t t
12098 s,@prefix@,$prefix,;t t
12099 s,@program_transform_name@,$program_transform_name,;t t
12100 s,@bindir@,$bindir,;t t
12101 s,@sbindir@,$sbindir,;t t
12102 s,@libexecdir@,$libexecdir,;t t
12103 s,@datadir@,$datadir,;t t
12104 s,@sysconfdir@,$sysconfdir,;t t
12105 s,@sharedstatedir@,$sharedstatedir,;t t
12106 s,@localstatedir@,$localstatedir,;t t
12107 s,@libdir@,$libdir,;t t
12108 s,@includedir@,$includedir,;t t
12109 s,@oldincludedir@,$oldincludedir,;t t
12110 s,@infodir@,$infodir,;t t
12111 s,@mandir@,$mandir,;t t
12112 s,@build_alias@,$build_alias,;t t
12113 s,@host_alias@,$host_alias,;t t
12114 s,@target_alias@,$target_alias,;t t
12115 s,@DEFS@,$DEFS,;t t
12116 s,@ECHO_C@,$ECHO_C,;t t
12117 s,@ECHO_N@,$ECHO_N,;t t
12118 s,@ECHO_T@,$ECHO_T,;t t
12119 s,@LIBS@,$LIBS,;t t
12120 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12121 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12122 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12123 s,@PACKAGE@,$PACKAGE,;t t
12124 s,@VERSION@,$VERSION,;t t
12125 s,@ACLOCAL@,$ACLOCAL,;t t
12126 s,@AUTOCONF@,$AUTOCONF,;t t
12127 s,@AUTOMAKE@,$AUTOMAKE,;t t
12128 s,@AUTOHEADER@,$AUTOHEADER,;t t
12129 s,@MAKEINFO@,$MAKEINFO,;t t
12130 s,@SET_MAKE@,$SET_MAKE,;t t
12131 s,@build@,$build,;t t
12132 s,@build_cpu@,$build_cpu,;t t
12133 s,@build_vendor@,$build_vendor,;t t
12134 s,@build_os@,$build_os,;t t
12135 s,@host@,$host,;t t
12136 s,@host_cpu@,$host_cpu,;t t
12137 s,@host_vendor@,$host_vendor,;t t
12138 s,@host_os@,$host_os,;t t
12139 s,@CC@,$CC,;t t
12140 s,@CFLAGS@,$CFLAGS,;t t
12141 s,@LDFLAGS@,$LDFLAGS,;t t
12142 s,@CPPFLAGS@,$CPPFLAGS,;t t
12143 s,@ac_ct_CC@,$ac_ct_CC,;t t
12144 s,@EXEEXT@,$EXEEXT,;t t
12145 s,@OBJEXT@,$OBJEXT,;t t
12146 s,@LN_S@,$LN_S,;t t
12147 s,@ECHO@,$ECHO,;t t
12148 s,@RANLIB@,$RANLIB,;t t
12149 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12150 s,@STRIP@,$STRIP,;t t
12151 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12152 s,@CPP@,$CPP,;t t
12153 s,@EGREP@,$EGREP,;t t
12154 s,@LIBTOOL@,$LIBTOOL,;t t
12155 s,@YACC@,$YACC,;t t
12156 s,@ALLOCA@,$ALLOCA,;t t
12157 s,@LIBOBJS@,$LIBOBJS,;t t
12158 s,@POW_LIB@,$POW_LIB,;t t
12159 s,@FGIS_LIBDIR@,$FGIS_LIBDIR,;t t
12160 s,@TCLHDIR@,$TCLHDIR,;t t
12161 s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
12162 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
12163 s,@TCL_DEFS@,$TCL_DEFS,;t t
12164 s,@TCL_DELETEME@,$TCL_DELETEME,;t t
12165 s,@TCL_DBGX@,$TCL_DBGX,;t t
12166 s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
12167 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
12168 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
12169 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
12170 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
12171 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
12172 s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
12173 s,@TCL_INC_DIR@,$TCL_INC_DIR,;t t
12174 s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
12175 s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
12176 s,@TK_VERSION@,$TK_VERSION,;t t
12177 s,@TK_DEFS@,$TK_DEFS,;t t
12178 s,@TK_DBGX@,$TK_DBGX,;t t
12179 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
12180 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
12181 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
12182 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
12183 s,@TK_INC_DIR@,$TK_INC_DIR,;t t
12184 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12185 CEOF
12186
12187 _ACEOF
12188
12189   cat >>$CONFIG_STATUS <<\_ACEOF
12190   # Split the substitutions into bite-sized pieces for seds with
12191   # small command number limits, like on Digital OSF/1 and HP-UX.
12192   ac_max_sed_lines=48
12193   ac_sed_frag=1 # Number of current file.
12194   ac_beg=1 # First line for current file.
12195   ac_end=$ac_max_sed_lines # Line after last line for current file.
12196   ac_more_lines=:
12197   ac_sed_cmds=
12198   while $ac_more_lines; do
12199     if test $ac_beg -gt 1; then
12200       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12201     else
12202       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12203     fi
12204     if test ! -s $tmp/subs.frag; then
12205       ac_more_lines=false
12206     else
12207       # The purpose of the label and of the branching condition is to
12208       # speed up the sed processing (if there are no `@' at all, there
12209       # is no need to browse any of the substitutions).
12210       # These are the two extra sed commands mentioned above.
12211       (echo ':t
12212   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12213       if test -z "$ac_sed_cmds"; then
12214         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12215       else
12216         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12217       fi
12218       ac_sed_frag=`expr $ac_sed_frag + 1`
12219       ac_beg=$ac_end
12220       ac_end=`expr $ac_end + $ac_max_sed_lines`
12221     fi
12222   done
12223   if test -z "$ac_sed_cmds"; then
12224     ac_sed_cmds=cat
12225   fi
12226 fi # test -n "$CONFIG_FILES"
12227
12228 _ACEOF
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12231   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12232   case $ac_file in
12233   - | *:- | *:-:* ) # input from stdin
12234         cat >$tmp/stdin
12235         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12236         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12237   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12238         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12239   * )   ac_file_in=$ac_file.in ;;
12240   esac
12241
12242   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12243   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245          X"$ac_file" : 'X\(//\)[^/]' \| \
12246          X"$ac_file" : 'X\(//\)$' \| \
12247          X"$ac_file" : 'X\(/\)' \| \
12248          .     : '\(.\)' 2>/dev/null ||
12249 echo X"$ac_file" |
12250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12252           /^X\(\/\/\)$/{ s//\1/; q; }
12253           /^X\(\/\).*/{ s//\1/; q; }
12254           s/.*/./; q'`
12255   { if $as_mkdir_p; then
12256     mkdir -p "$ac_dir"
12257   else
12258     as_dir="$ac_dir"
12259     as_dirs=
12260     while test ! -d "$as_dir"; do
12261       as_dirs="$as_dir $as_dirs"
12262       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12264          X"$as_dir" : 'X\(//\)[^/]' \| \
12265          X"$as_dir" : 'X\(//\)$' \| \
12266          X"$as_dir" : 'X\(/\)' \| \
12267          .     : '\(.\)' 2>/dev/null ||
12268 echo X"$as_dir" |
12269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12271           /^X\(\/\/\)$/{ s//\1/; q; }
12272           /^X\(\/\).*/{ s//\1/; q; }
12273           s/.*/./; q'`
12274     done
12275     test ! -n "$as_dirs" || mkdir $as_dirs
12276   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12278    { (exit 1); exit 1; }; }; }
12279
12280   ac_builddir=.
12281
12282 if test "$ac_dir" != .; then
12283   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12284   # A "../" for each directory in $ac_dir_suffix.
12285   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12286 else
12287   ac_dir_suffix= ac_top_builddir=
12288 fi
12289
12290 case $srcdir in
12291   .)  # No --srcdir option.  We are building in place.
12292     ac_srcdir=.
12293     if test -z "$ac_top_builddir"; then
12294        ac_top_srcdir=.
12295     else
12296        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12297     fi ;;
12298   [\\/]* | ?:[\\/]* )  # Absolute path.
12299     ac_srcdir=$srcdir$ac_dir_suffix;
12300     ac_top_srcdir=$srcdir ;;
12301   *) # Relative path.
12302     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12303     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12304 esac
12305 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12306 # absolute.
12307 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12308 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12309 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12310 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12311
12312
12313   case $INSTALL in
12314   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12315   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12316   esac
12317
12318   if test x"$ac_file" != x-; then
12319     { echo "$as_me:$LINENO: creating $ac_file" >&5
12320 echo "$as_me: creating $ac_file" >&6;}
12321     rm -f "$ac_file"
12322   fi
12323   # Let's still pretend it is `configure' which instantiates (i.e., don't
12324   # use $as_me), people would be surprised to read:
12325   #    /* config.h.  Generated by config.status.  */
12326   if test x"$ac_file" = x-; then
12327     configure_input=
12328   else
12329     configure_input="$ac_file.  "
12330   fi
12331   configure_input=$configure_input"Generated from `echo $ac_file_in |
12332                                      sed 's,.*/,,'` by configure."
12333
12334   # First look for the input files in the build tree, otherwise in the
12335   # src tree.
12336   ac_file_inputs=`IFS=:
12337     for f in $ac_file_in; do
12338       case $f in
12339       -) echo $tmp/stdin ;;
12340       [\\/$]*)
12341          # Absolute (can't be DOS-style, as IFS=:)
12342          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12343 echo "$as_me: error: cannot find input file: $f" >&2;}
12344    { (exit 1); exit 1; }; }
12345          echo $f;;
12346       *) # Relative
12347          if test -f "$f"; then
12348            # Build tree
12349            echo $f
12350          elif test -f "$srcdir/$f"; then
12351            # Source tree
12352            echo $srcdir/$f
12353          else
12354            # /dev/null tree
12355            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12356 echo "$as_me: error: cannot find input file: $f" >&2;}
12357    { (exit 1); exit 1; }; }
12358          fi;;
12359       esac
12360     done` || { (exit 1); exit 1; }
12361 _ACEOF
12362 cat >>$CONFIG_STATUS <<_ACEOF
12363   sed "$ac_vpsub
12364 $extrasub
12365 _ACEOF
12366 cat >>$CONFIG_STATUS <<\_ACEOF
12367 :t
12368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12369 s,@configure_input@,$configure_input,;t t
12370 s,@srcdir@,$ac_srcdir,;t t
12371 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12372 s,@top_srcdir@,$ac_top_srcdir,;t t
12373 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12374 s,@builddir@,$ac_builddir,;t t
12375 s,@abs_builddir@,$ac_abs_builddir,;t t
12376 s,@top_builddir@,$ac_top_builddir,;t t
12377 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12378 s,@INSTALL@,$ac_INSTALL,;t t
12379 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12380   rm -f $tmp/stdin
12381   if test x"$ac_file" != x-; then
12382     mv $tmp/out $ac_file
12383   else
12384     cat $tmp/out
12385     rm -f $tmp/out
12386   fi
12387
12388 done
12389 _ACEOF
12390 cat >>$CONFIG_STATUS <<\_ACEOF
12391
12392 #
12393 # CONFIG_HEADER section.
12394 #
12395
12396 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12397 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12398 #
12399 # ac_d sets the value in "#define NAME VALUE" lines.
12400 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12401 ac_dB='[        ].*$,\1#\2'
12402 ac_dC=' '
12403 ac_dD=',;t'
12404 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12405 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12406 ac_uB='$,\1#\2define\3'
12407 ac_uC=' '
12408 ac_uD=',;t'
12409
12410 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12411   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12412   case $ac_file in
12413   - | *:- | *:-:* ) # input from stdin
12414         cat >$tmp/stdin
12415         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12416         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12417   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12418         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12419   * )   ac_file_in=$ac_file.in ;;
12420   esac
12421
12422   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12423 echo "$as_me: creating $ac_file" >&6;}
12424
12425   # First look for the input files in the build tree, otherwise in the
12426   # src tree.
12427   ac_file_inputs=`IFS=:
12428     for f in $ac_file_in; do
12429       case $f in
12430       -) echo $tmp/stdin ;;
12431       [\\/$]*)
12432          # Absolute (can't be DOS-style, as IFS=:)
12433          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12434 echo "$as_me: error: cannot find input file: $f" >&2;}
12435    { (exit 1); exit 1; }; }
12436          echo $f;;
12437       *) # Relative
12438          if test -f "$f"; then
12439            # Build tree
12440            echo $f
12441          elif test -f "$srcdir/$f"; then
12442            # Source tree
12443            echo $srcdir/$f
12444          else
12445            # /dev/null tree
12446            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12447 echo "$as_me: error: cannot find input file: $f" >&2;}
12448    { (exit 1); exit 1; }; }
12449          fi;;
12450       esac
12451     done` || { (exit 1); exit 1; }
12452   # Remove the trailing spaces.
12453   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12454
12455 _ACEOF
12456
12457 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12458 # `conftest.undefs', that substitutes the proper values into
12459 # config.h.in to produce config.h.  The first handles `#define'
12460 # templates, and the second `#undef' templates.
12461 # And first: Protect against being on the right side of a sed subst in
12462 # config.status.  Protect against being in an unquoted here document
12463 # in config.status.
12464 rm -f conftest.defines conftest.undefs
12465 # Using a here document instead of a string reduces the quoting nightmare.
12466 # Putting comments in sed scripts is not portable.
12467 #
12468 # `end' is used to avoid that the second main sed command (meant for
12469 # 0-ary CPP macros) applies to n-ary macro definitions.
12470 # See the Autoconf documentation for `clear'.
12471 cat >confdef2sed.sed <<\_ACEOF
12472 s/[\\&,]/\\&/g
12473 s,[\\$`],\\&,g
12474 t clear
12475 : clear
12476 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12477 t end
12478 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12479 : end
12480 _ACEOF
12481 # If some macros were called several times there might be several times
12482 # the same #defines, which is useless.  Nevertheless, we may not want to
12483 # sort them, since we want the *last* AC-DEFINE to be honored.
12484 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12485 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12486 rm -f confdef2sed.sed
12487
12488 # This sed command replaces #undef with comments.  This is necessary, for
12489 # example, in the case of _POSIX_SOURCE, which is predefined and required
12490 # on some systems where configure will not decide to define it.
12491 cat >>conftest.undefs <<\_ACEOF
12492 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12493 _ACEOF
12494
12495 # Break up conftest.defines because some shells have a limit on the size
12496 # of here documents, and old seds have small limits too (100 cmds).
12497 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12498 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12499 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12500 echo '  :' >>$CONFIG_STATUS
12501 rm -f conftest.tail
12502 while grep . conftest.defines >/dev/null
12503 do
12504   # Write a limited-size here document to $tmp/defines.sed.
12505   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12506   # Speed up: don't consider the non `#define' lines.
12507   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12508   # Work around the forget-to-reset-the-flag bug.
12509   echo 't clr' >>$CONFIG_STATUS
12510   echo ': clr' >>$CONFIG_STATUS
12511   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12512   echo 'CEOF
12513   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12514   rm -f $tmp/in
12515   mv $tmp/out $tmp/in
12516 ' >>$CONFIG_STATUS
12517   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12518   rm -f conftest.defines
12519   mv conftest.tail conftest.defines
12520 done
12521 rm -f conftest.defines
12522 echo '  fi # grep' >>$CONFIG_STATUS
12523 echo >>$CONFIG_STATUS
12524
12525 # Break up conftest.undefs because some shells have a limit on the size
12526 # of here documents, and old seds have small limits too (100 cmds).
12527 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12528 rm -f conftest.tail
12529 while grep . conftest.undefs >/dev/null
12530 do
12531   # Write a limited-size here document to $tmp/undefs.sed.
12532   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12533   # Speed up: don't consider the non `#undef'
12534   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12535   # Work around the forget-to-reset-the-flag bug.
12536   echo 't clr' >>$CONFIG_STATUS
12537   echo ': clr' >>$CONFIG_STATUS
12538   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12539   echo 'CEOF
12540   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12541   rm -f $tmp/in
12542   mv $tmp/out $tmp/in
12543 ' >>$CONFIG_STATUS
12544   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12545   rm -f conftest.undefs
12546   mv conftest.tail conftest.undefs
12547 done
12548 rm -f conftest.undefs
12549
12550 cat >>$CONFIG_STATUS <<\_ACEOF
12551   # Let's still pretend it is `configure' which instantiates (i.e., don't
12552   # use $as_me), people would be surprised to read:
12553   #    /* config.h.  Generated by config.status.  */
12554   if test x"$ac_file" = x-; then
12555     echo "/* Generated by configure.  */" >$tmp/config.h
12556   else
12557     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12558   fi
12559   cat $tmp/in >>$tmp/config.h
12560   rm -f $tmp/in
12561   if test x"$ac_file" != x-; then
12562     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12563       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12564 echo "$as_me: $ac_file is unchanged" >&6;}
12565     else
12566       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12568          X"$ac_file" : 'X\(//\)[^/]' \| \
12569          X"$ac_file" : 'X\(//\)$' \| \
12570          X"$ac_file" : 'X\(/\)' \| \
12571          .     : '\(.\)' 2>/dev/null ||
12572 echo X"$ac_file" |
12573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12574           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12575           /^X\(\/\/\)$/{ s//\1/; q; }
12576           /^X\(\/\).*/{ s//\1/; q; }
12577           s/.*/./; q'`
12578       { if $as_mkdir_p; then
12579     mkdir -p "$ac_dir"
12580   else
12581     as_dir="$ac_dir"
12582     as_dirs=
12583     while test ! -d "$as_dir"; do
12584       as_dirs="$as_dir $as_dirs"
12585       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12587          X"$as_dir" : 'X\(//\)[^/]' \| \
12588          X"$as_dir" : 'X\(//\)$' \| \
12589          X"$as_dir" : 'X\(/\)' \| \
12590          .     : '\(.\)' 2>/dev/null ||
12591 echo X"$as_dir" |
12592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12593           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12594           /^X\(\/\/\)$/{ s//\1/; q; }
12595           /^X\(\/\).*/{ s//\1/; q; }
12596           s/.*/./; q'`
12597     done
12598     test ! -n "$as_dirs" || mkdir $as_dirs
12599   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12601    { (exit 1); exit 1; }; }; }
12602
12603       rm -f $ac_file
12604       mv $tmp/config.h $ac_file
12605     fi
12606   else
12607     cat $tmp/config.h
12608     rm -f $tmp/config.h
12609   fi
12610 done
12611 _ACEOF
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613
12614 #
12615 # CONFIG_COMMANDS section.
12616 #
12617 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12618   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12619   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12620   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12621 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12622          X"$ac_dest" : 'X\(//\)[^/]' \| \
12623          X"$ac_dest" : 'X\(//\)$' \| \
12624          X"$ac_dest" : 'X\(/\)' \| \
12625          .     : '\(.\)' 2>/dev/null ||
12626 echo X"$ac_dest" |
12627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12629           /^X\(\/\/\)$/{ s//\1/; q; }
12630           /^X\(\/\).*/{ s//\1/; q; }
12631           s/.*/./; q'`
12632   ac_builddir=.
12633
12634 if test "$ac_dir" != .; then
12635   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12636   # A "../" for each directory in $ac_dir_suffix.
12637   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12638 else
12639   ac_dir_suffix= ac_top_builddir=
12640 fi
12641
12642 case $srcdir in
12643   .)  # No --srcdir option.  We are building in place.
12644     ac_srcdir=.
12645     if test -z "$ac_top_builddir"; then
12646        ac_top_srcdir=.
12647     else
12648        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12649     fi ;;
12650   [\\/]* | ?:[\\/]* )  # Absolute path.
12651     ac_srcdir=$srcdir$ac_dir_suffix;
12652     ac_top_srcdir=$srcdir ;;
12653   *) # Relative path.
12654     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12655     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12656 esac
12657 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12658 # absolute.
12659 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12660 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12661 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12662 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12663
12664
12665   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12666 echo "$as_me: executing $ac_dest commands" >&6;}
12667   case $ac_dest in
12668     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
12669   esac
12670 done
12671 _ACEOF
12672
12673 cat >>$CONFIG_STATUS <<\_ACEOF
12674
12675 { (exit 0); exit 0; }
12676 _ACEOF
12677 chmod +x $CONFIG_STATUS
12678 ac_clean_files=$ac_clean_files_save
12679
12680
12681 # configure is writing to config.log, and then calls config.status.
12682 # config.status does its own redirection, appending to config.log.
12683 # Unfortunately, on DOS this fails, as config.log is still kept open
12684 # by configure, so config.status won't be able to write to it; its
12685 # output is simply discarded.  So we exec the FD to /dev/null,
12686 # effectively closing config.log, so it can be properly (re)opened and
12687 # appended to by config.status.  When coming back to configure, we
12688 # need to make the FD available again.
12689 if test "$no_create" != yes; then
12690   ac_cs_success=:
12691   ac_config_status_args=
12692   test "$silent" = yes &&
12693     ac_config_status_args="$ac_config_status_args --quiet"
12694   exec 5>/dev/null
12695   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12696   exec 5>>config.log
12697   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12698   # would make configure fail if this is the last instruction.
12699   $ac_cs_success || { (exit 1); exit 1; }
12700 fi
12701