]> www.wagner.pp.ru Git - oss/fgis.git/blob - configure
new
[oss/fgis.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 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 # Find the correct PATH separator.  Usually this is `:', but
13 # DJGPP uses `;' like DOS.
14 if test "X${PATH_SEPARATOR+set}" != Xset; then
15   UNAME=${UNAME-`uname 2>/dev/null`}
16   case X$UNAME in
17     *-DOS) lt_cv_sys_path_separator=';' ;;
18     *)     lt_cv_sys_path_separator=':' ;;
19   esac
20   PATH_SEPARATOR=$lt_cv_sys_path_separator
21 fi
22
23
24 # Check that we are running under the correct shell.
25 SHELL=${CONFIG_SHELL-/bin/sh}
26
27 case X$ECHO in
28 X*--fallback-echo)
29   # Remove one level of quotation (which was required for Make).
30   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31   ;;
32 esac
33
34 echo=${ECHO-echo}
35 if test "X$1" = X--no-reexec; then
36   # Discard the --no-reexec flag, and continue.
37   shift
38 elif test "X$1" = X--fallback-echo; then
39   # Avoid inline document here, it may be left over
40   :
41 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42   # Yippee, $echo works!
43   :
44 else
45   # Restart under the correct shell.
46   exec $SHELL "$0" --no-reexec ${1+"$@"}
47 fi
48
49 if test "X$1" = X--fallback-echo; then
50   # used as fallback echo
51   shift
52   cat <<EOF
53
54 EOF
55   exit 0
56 fi
57
58 # The HP-UX ksh and POSIX shell print the target directory to stdout
59 # if CDPATH is set.
60 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
61
62 if test -z "$ECHO"; then
63 if test "X${echo_test_string+set}" != Xset; then
64 # find a string as large as possible, as long as the shell can cope with it
65   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68        echo_test_string="`eval $cmd`" &&
69        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
70     then
71       break
72     fi
73   done
74 fi
75
76 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78    test "X$echo_testing_string" = "X$echo_test_string"; then
79   :
80 else
81   # The Solaris, AIX, and Digital Unix default echo programs unquote
82   # backslashes.  This makes it impossible to quote backslashes using
83   #   echo "$something" | sed 's/\\/\\\\/g'
84   #
85   # So, first we look for a working echo in the user's PATH.
86
87   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88   for dir in $PATH /usr/ucb; do
89     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92        test "X$echo_testing_string" = "X$echo_test_string"; then
93       echo="$dir/echo"
94       break
95     fi
96   done
97   IFS="$save_ifs"
98
99   if test "X$echo" = Xecho; then
100     # We didn't find a better echo, so look for alternatives.
101     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103        test "X$echo_testing_string" = "X$echo_test_string"; then
104       # This shell has a builtin print -r that does the trick.
105       echo='print -r'
106     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107          test "X$CONFIG_SHELL" != X/bin/ksh; then
108       # If we have ksh, try running configure again with it.
109       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110       export ORIGINAL_CONFIG_SHELL
111       CONFIG_SHELL=/bin/ksh
112       export CONFIG_SHELL
113       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114     else
115       # Try using printf.
116       echo='printf %s\n'
117       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119          test "X$echo_testing_string" = "X$echo_test_string"; then
120         # Cool, printf works
121         :
122       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123            test "X$echo_testing_string" = 'X\t' &&
124            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125            test "X$echo_testing_string" = "X$echo_test_string"; then
126         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
127         export CONFIG_SHELL
128         SHELL="$CONFIG_SHELL"
129         export SHELL
130         echo="$CONFIG_SHELL $0 --fallback-echo"
131       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132            test "X$echo_testing_string" = 'X\t' &&
133            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134            test "X$echo_testing_string" = "X$echo_test_string"; then
135         echo="$CONFIG_SHELL $0 --fallback-echo"
136       else
137         # maybe with a smaller string...
138         prev=:
139
140         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
142           then
143             break
144           fi
145           prev="$cmd"
146         done
147
148         if test "$prev" != 'sed 50q "$0"'; then
149           echo_test_string=`eval $prev`
150           export echo_test_string
151           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
152         else
153           # Oops.  We lost completely, so just stick with echo.
154           echo=echo
155         fi
156       fi
157     fi
158   fi
159 fi
160 fi
161
162 # Copy echo and quote the copy suitably for passing to libtool from
163 # the Makefile, instead of quoting the original, which is used later.
164 ECHO=$echo
165 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167 fi
168
169
170
171 if expr a : '\(a\)' >/dev/null 2>&1; then
172   as_expr=expr
173 else
174   as_expr=false
175 fi
176
177
178 ## --------------------- ##
179 ## M4sh Initialization.  ##
180 ## --------------------- ##
181
182 # Be Bourne compatible
183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184   emulate sh
185   NULLCMD=:
186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187   set -o posix
188 fi
189
190 # NLS nuisances.
191 # Support unset when possible.
192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
193   as_unset=unset
194 else
195   as_unset=false
196 fi
197
198 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199     { $as_unset LANG || test "${LANG+set}" != set; } ||
200       { LANG=C; export LANG; }
201 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203       { LC_ALL=C; export LC_ALL; }
204 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206       { LC_TIME=C; export LC_TIME; }
207 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209       { LC_CTYPE=C; export LC_CTYPE; }
210 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212       { LANGUAGE=C; export LANGUAGE; }
213 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215       { LC_COLLATE=C; export LC_COLLATE; }
216 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218       { LC_NUMERIC=C; export LC_NUMERIC; }
219 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221       { LC_MESSAGES=C; export LC_MESSAGES; }
222
223
224 # Name of the executable.
225 as_me=`(basename "$0") 2>/dev/null ||
226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227          X"$0" : 'X\(//\)$' \| \
228          X"$0" : 'X\(/\)$' \| \
229          .     : '\(.\)' 2>/dev/null ||
230 echo X/"$0" |
231     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232           /^X\/\(\/\/\)$/{ s//\1/; q; }
233           /^X\/\(\/\).*/{ s//\1/; q; }
234           s/.*/./; q'`
235
236 # PATH needs CR, and LINENO needs CR and PATH.
237 # Avoid depending upon Character Ranges.
238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241 as_cr_digits='0123456789'
242 as_cr_alnum=$as_cr_Letters$as_cr_digits
243
244 # The user is always right.
245 if test "${PATH_SEPARATOR+set}" != set; then
246   echo "#! /bin/sh" >conftest.sh
247   echo  "exit 0"   >>conftest.sh
248   chmod +x conftest.sh
249   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
250     PATH_SEPARATOR=';'
251   else
252     PATH_SEPARATOR=:
253   fi
254   rm -f conftest.sh
255 fi
256
257
258   as_lineno_1=$LINENO
259   as_lineno_2=$LINENO
260   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261   test "x$as_lineno_1" != "x$as_lineno_2" &&
262   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
263   # Find who we are.  Look in the path if we contain no path at all
264   # relative or not.
265   case $0 in
266     *[\\/]* ) as_myself=$0 ;;
267     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
268 for as_dir in $PATH
269 do
270   IFS=$as_save_IFS
271   test -z "$as_dir" && as_dir=.
272   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
273 done
274
275        ;;
276   esac
277   # We did not find ourselves, most probably we were run as `sh COMMAND'
278   # in which case we are not to be found in the path.
279   if test "x$as_myself" = x; then
280     as_myself=$0
281   fi
282   if test ! -f "$as_myself"; then
283     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284    { (exit 1); exit 1; }; }
285   fi
286   case $CONFIG_SHELL in
287   '')
288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290 do
291   IFS=$as_save_IFS
292   test -z "$as_dir" && as_dir=.
293   for as_base in sh bash ksh sh5; do
294          case $as_dir in
295          /*)
296            if ("$as_dir/$as_base" -c '
297   as_lineno_1=$LINENO
298   as_lineno_2=$LINENO
299   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300   test "x$as_lineno_1" != "x$as_lineno_2" &&
301   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
302              CONFIG_SHELL=$as_dir/$as_base
303              export CONFIG_SHELL
304              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
305            fi;;
306          esac
307        done
308 done
309 ;;
310   esac
311
312   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313   # uniformly replaced by the line number.  The first 'sed' inserts a
314   # line-number line before each line; the second 'sed' does the real
315   # work.  The second script uses 'N' to pair each line-number line
316   # with the numbered line, and appends trailing '-' during
317   # substitution so that $LINENO is not a special case at line end.
318   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
320   sed '=' <$as_myself |
321     sed '
322       N
323       s,$,-,
324       : loop
325       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326       t loop
327       s,-$,,
328       s,^['$as_cr_digits']*\n,,
329     ' >$as_me.lineno &&
330   chmod +x $as_me.lineno ||
331     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332    { (exit 1); exit 1; }; }
333
334   # Don't try to exec as it changes $[0], causing all sort of problems
335   # (the dirname of $[0] is not the place where we might find the
336   # original and so on.  Autoconf is especially sensible to this).
337   . ./$as_me.lineno
338   # Exit status is that of the last command.
339   exit
340 }
341
342
343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344   *c*,-n*) ECHO_N= ECHO_C='
345 ' ECHO_T='      ' ;;
346   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
348 esac
349
350 if expr a : '\(a\)' >/dev/null 2>&1; then
351   as_expr=expr
352 else
353   as_expr=false
354 fi
355
356 rm -f conf$$ conf$$.exe conf$$.file
357 echo >conf$$.file
358 if ln -s conf$$.file conf$$ 2>/dev/null; then
359   # We could just check for DJGPP; but this test a) works b) is more generic
360   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361   if test -f conf$$.exe; then
362     # Don't use ln at all; we don't have any links
363     as_ln_s='cp -p'
364   else
365     as_ln_s='ln -s'
366   fi
367 elif ln conf$$.file conf$$ 2>/dev/null; then
368   as_ln_s=ln
369 else
370   as_ln_s='cp -p'
371 fi
372 rm -f conf$$ conf$$.exe conf$$.file
373
374 as_executable_p="test -f"
375
376 # Sed expression to map a string onto a valid CPP name.
377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
378
379 # Sed expression to map a string onto a valid variable name.
380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
381
382
383 # IFS
384 # We need space, tab and new line, in precisely that order.
385 as_nl='
386 '
387 IFS="   $as_nl"
388
389 # CDPATH.
390 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 cross_compiling=no
405 subdirs=
406 MFLAGS=
407 MAKEFLAGS=
408 SHELL=${CONFIG_SHELL-/bin/sh}
409
410 # Maximum number of lines to put in a shell here document.
411 # This variable seems obsolete.  It should probably be removed, and
412 # only ac_max_sed_lines should be used.
413 : ${ac_max_here_lines=38}
414
415 # Identity of this package.
416 PACKAGE_NAME='fGIS'
417 PACKAGE_TARNAME='fgis'
418 PACKAGE_VERSION='0.0.1'
419 PACKAGE_STRING='fGIS 0.0.1'
420 PACKAGE_BUGREPORT='dron@remotesensing.org'
421
422 # Factoring default headers for most tests.
423 ac_includes_default="\
424 #include <stdio.h>
425 #if HAVE_SYS_TYPES_H
426 # include <sys/types.h>
427 #endif
428 #if HAVE_SYS_STAT_H
429 # include <sys/stat.h>
430 #endif
431 #if STDC_HEADERS
432 # include <stdlib.h>
433 # include <stddef.h>
434 #else
435 # if HAVE_STDLIB_H
436 #  include <stdlib.h>
437 # endif
438 #endif
439 #if HAVE_STRING_H
440 # if !STDC_HEADERS && HAVE_MEMORY_H
441 #  include <memory.h>
442 # endif
443 # include <string.h>
444 #endif
445 #if HAVE_STRINGS_H
446 # include <strings.h>
447 #endif
448 #if HAVE_INTTYPES_H
449 # include <inttypes.h>
450 #else
451 # if HAVE_STDINT_H
452 #  include <stdint.h>
453 # endif
454 #endif
455 #if HAVE_UNISTD_H
456 # include <unistd.h>
457 #endif"
458
459
460 # Initialize some variables set by options.
461 ac_init_help=
462 ac_init_version=false
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
465 cache_file=/dev/null
466 exec_prefix=NONE
467 no_create=
468 no_recursion=
469 prefix=NONE
470 program_prefix=NONE
471 program_suffix=NONE
472 program_transform_name=s,x,x,
473 silent=
474 site=
475 srcdir=
476 verbose=
477 x_includes=NONE
478 x_libraries=NONE
479
480 # Installation directory options.
481 # These are left unexpanded so users can "make install exec_prefix=/foo"
482 # and all the variables that are supposed to be based on exec_prefix
483 # by default will actually change.
484 # Use braces instead of parens because sh, perl, etc. also accept them.
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
497
498 ac_prev=
499 for ac_option
500 do
501   # If the previous option needs an argument, assign it.
502   if test -n "$ac_prev"; then
503     eval "$ac_prev=\$ac_option"
504     ac_prev=
505     continue
506   fi
507
508   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509
510   # Accept the important Cygnus configure options, so we can diagnose typos.
511
512   case $ac_option in
513
514   -bindir | --bindir | --bindi | --bind | --bin | --bi)
515     ac_prev=bindir ;;
516   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
517     bindir=$ac_optarg ;;
518
519   -build | --build | --buil | --bui | --bu)
520     ac_prev=build_alias ;;
521   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
522     build_alias=$ac_optarg ;;
523
524   -cache-file | --cache-file | --cache-fil | --cache-fi \
525   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
526     ac_prev=cache_file ;;
527   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
528   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
529     cache_file=$ac_optarg ;;
530
531   --config-cache | -C)
532     cache_file=config.cache ;;
533
534   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535     ac_prev=datadir ;;
536   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537   | --da=*)
538     datadir=$ac_optarg ;;
539
540   -disable-* | --disable-*)
541     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
542     # Reject names that are not valid shell variable names.
543     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
544       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
545    { (exit 1); exit 1; }; }
546     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
547     eval "enable_$ac_feature=no" ;;
548
549   -enable-* | --enable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "enable_$ac_feature='$ac_optarg'" ;;
561
562   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564   | --exec | --exe | --ex)
565     ac_prev=exec_prefix ;;
566   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568   | --exec=* | --exe=* | --ex=*)
569     exec_prefix=$ac_optarg ;;
570
571   -gas | --gas | --ga | --g)
572     # Obsolete; use --with-gas.
573     with_gas=yes ;;
574
575   -help | --help | --hel | --he | -h)
576     ac_init_help=long ;;
577   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
578     ac_init_help=recursive ;;
579   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
580     ac_init_help=short ;;
581
582   -host | --host | --hos | --ho)
583     ac_prev=host_alias ;;
584   -host=* | --host=* | --hos=* | --ho=*)
585     host_alias=$ac_optarg ;;
586
587   -includedir | --includedir | --includedi | --included | --include \
588   | --includ | --inclu | --incl | --inc)
589     ac_prev=includedir ;;
590   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591   | --includ=* | --inclu=* | --incl=* | --inc=*)
592     includedir=$ac_optarg ;;
593
594   -infodir | --infodir | --infodi | --infod | --info | --inf)
595     ac_prev=infodir ;;
596   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
597     infodir=$ac_optarg ;;
598
599   -libdir | --libdir | --libdi | --libd)
600     ac_prev=libdir ;;
601   -libdir=* | --libdir=* | --libdi=* | --libd=*)
602     libdir=$ac_optarg ;;
603
604   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605   | --libexe | --libex | --libe)
606     ac_prev=libexecdir ;;
607   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608   | --libexe=* | --libex=* | --libe=*)
609     libexecdir=$ac_optarg ;;
610
611   -localstatedir | --localstatedir | --localstatedi | --localstated \
612   | --localstate | --localstat | --localsta | --localst \
613   | --locals | --local | --loca | --loc | --lo)
614     ac_prev=localstatedir ;;
615   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
618     localstatedir=$ac_optarg ;;
619
620   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621     ac_prev=mandir ;;
622   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
623     mandir=$ac_optarg ;;
624
625   -nfp | --nfp | --nf)
626     # Obsolete; use --without-fp.
627     with_fp=no ;;
628
629   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630   | --no-cr | --no-c | -n)
631     no_create=yes ;;
632
633   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
635     no_recursion=yes ;;
636
637   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639   | --oldin | --oldi | --old | --ol | --o)
640     ac_prev=oldincludedir ;;
641   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
644     oldincludedir=$ac_optarg ;;
645
646   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647     ac_prev=prefix ;;
648   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
649     prefix=$ac_optarg ;;
650
651   -program-prefix | --program-prefix | --program-prefi | --program-pref \
652   | --program-pre | --program-pr | --program-p)
653     ac_prev=program_prefix ;;
654   -program-prefix=* | --program-prefix=* | --program-prefi=* \
655   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
656     program_prefix=$ac_optarg ;;
657
658   -program-suffix | --program-suffix | --program-suffi | --program-suff \
659   | --program-suf | --program-su | --program-s)
660     ac_prev=program_suffix ;;
661   -program-suffix=* | --program-suffix=* | --program-suffi=* \
662   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
663     program_suffix=$ac_optarg ;;
664
665   -program-transform-name | --program-transform-name \
666   | --program-transform-nam | --program-transform-na \
667   | --program-transform-n | --program-transform- \
668   | --program-transform | --program-transfor \
669   | --program-transfo | --program-transf \
670   | --program-trans | --program-tran \
671   | --progr-tra | --program-tr | --program-t)
672     ac_prev=program_transform_name ;;
673   -program-transform-name=* | --program-transform-name=* \
674   | --program-transform-nam=* | --program-transform-na=* \
675   | --program-transform-n=* | --program-transform-=* \
676   | --program-transform=* | --program-transfor=* \
677   | --program-transfo=* | --program-transf=* \
678   | --program-trans=* | --program-tran=* \
679   | --progr-tra=* | --program-tr=* | --program-t=*)
680     program_transform_name=$ac_optarg ;;
681
682   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683   | -silent | --silent | --silen | --sile | --sil)
684     silent=yes ;;
685
686   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687     ac_prev=sbindir ;;
688   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689   | --sbi=* | --sb=*)
690     sbindir=$ac_optarg ;;
691
692   -sharedstatedir | --sharedstatedir | --sharedstatedi \
693   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694   | --sharedst | --shareds | --shared | --share | --shar \
695   | --sha | --sh)
696     ac_prev=sharedstatedir ;;
697   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700   | --sha=* | --sh=*)
701     sharedstatedir=$ac_optarg ;;
702
703   -site | --site | --sit)
704     ac_prev=site ;;
705   -site=* | --site=* | --sit=*)
706     site=$ac_optarg ;;
707
708   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709     ac_prev=srcdir ;;
710   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
711     srcdir=$ac_optarg ;;
712
713   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714   | --syscon | --sysco | --sysc | --sys | --sy)
715     ac_prev=sysconfdir ;;
716   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
718     sysconfdir=$ac_optarg ;;
719
720   -target | --target | --targe | --targ | --tar | --ta | --t)
721     ac_prev=target_alias ;;
722   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
723     target_alias=$ac_optarg ;;
724
725   -v | -verbose | --verbose | --verbos | --verbo | --verb)
726     verbose=yes ;;
727
728   -version | --version | --versio | --versi | --vers | -V)
729     ac_init_version=: ;;
730
731   -with-* | --with-*)
732     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
733     # Reject names that are not valid shell variable names.
734     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
735       { echo "$as_me: error: invalid package name: $ac_package" >&2
736    { (exit 1); exit 1; }; }
737     ac_package=`echo $ac_package| sed 's/-/_/g'`
738     case $ac_option in
739       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
740       *) ac_optarg=yes ;;
741     esac
742     eval "with_$ac_package='$ac_optarg'" ;;
743
744   -without-* | --without-*)
745     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package | sed 's/-/_/g'`
751     eval "with_$ac_package=no" ;;
752
753   --x)
754     # Obsolete; use --with-x.
755     with_x=yes ;;
756
757   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
758   | --x-incl | --x-inc | --x-in | --x-i)
759     ac_prev=x_includes ;;
760   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
761   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
762     x_includes=$ac_optarg ;;
763
764   -x-libraries | --x-libraries | --x-librarie | --x-librari \
765   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
766     ac_prev=x_libraries ;;
767   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
768   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
769     x_libraries=$ac_optarg ;;
770
771   -*) { echo "$as_me: error: unrecognized option: $ac_option
772 Try \`$0 --help' for more information." >&2
773    { (exit 1); exit 1; }; }
774     ;;
775
776   *=*)
777     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
778     # Reject names that are not valid shell variable names.
779     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
780       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
781    { (exit 1); exit 1; }; }
782     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
783     eval "$ac_envvar='$ac_optarg'"
784     export $ac_envvar ;;
785
786   *)
787     # FIXME: should be removed in autoconf 3.0.
788     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
789     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
790       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
791     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
792     ;;
793
794   esac
795 done
796
797 if test -n "$ac_prev"; then
798   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
799   { echo "$as_me: error: missing argument to $ac_option" >&2
800    { (exit 1); exit 1; }; }
801 fi
802
803 # Be sure to have absolute paths.
804 for ac_var in exec_prefix prefix
805 do
806   eval ac_val=$`echo $ac_var`
807   case $ac_val in
808     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
809     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
810    { (exit 1); exit 1; }; };;
811   esac
812 done
813
814 # Be sure to have absolute paths.
815 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
816               localstatedir libdir includedir oldincludedir infodir mandir
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # There might be people who depend on the old broken behavior: `$host'
827 # used to hold the argument of --host etc.
828 # FIXME: To remove some day.
829 build=$build_alias
830 host=$host_alias
831 target=$target_alias
832
833 # FIXME: To remove some day.
834 if test "x$host_alias" != x; then
835   if test "x$build_alias" = x; then
836     cross_compiling=maybe
837     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
838     If a cross compiler is detected then cross compile mode will be used." >&2
839   elif test "x$build_alias" != "x$host_alias"; then
840     cross_compiling=yes
841   fi
842 fi
843
844 ac_tool_prefix=
845 test -n "$host_alias" && ac_tool_prefix=$host_alias-
846
847 test "$silent" = yes && exec 6>/dev/null
848
849
850 # Find the source files, if location was not specified.
851 if test -z "$srcdir"; then
852   ac_srcdir_defaulted=yes
853   # Try the directory containing this script, then its parent.
854   ac_confdir=`(dirname "$0") 2>/dev/null ||
855 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
856          X"$0" : 'X\(//\)[^/]' \| \
857          X"$0" : 'X\(//\)$' \| \
858          X"$0" : 'X\(/\)' \| \
859          .     : '\(.\)' 2>/dev/null ||
860 echo X"$0" |
861     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
862           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
863           /^X\(\/\/\)$/{ s//\1/; q; }
864           /^X\(\/\).*/{ s//\1/; q; }
865           s/.*/./; q'`
866   srcdir=$ac_confdir
867   if test ! -r $srcdir/$ac_unique_file; then
868     srcdir=..
869   fi
870 else
871   ac_srcdir_defaulted=no
872 fi
873 if test ! -r $srcdir/$ac_unique_file; then
874   if test "$ac_srcdir_defaulted" = yes; then
875     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
876    { (exit 1); exit 1; }; }
877   else
878     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
879    { (exit 1); exit 1; }; }
880   fi
881 fi
882 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883 ac_env_build_alias_set=${build_alias+set}
884 ac_env_build_alias_value=$build_alias
885 ac_cv_env_build_alias_set=${build_alias+set}
886 ac_cv_env_build_alias_value=$build_alias
887 ac_env_host_alias_set=${host_alias+set}
888 ac_env_host_alias_value=$host_alias
889 ac_cv_env_host_alias_set=${host_alias+set}
890 ac_cv_env_host_alias_value=$host_alias
891 ac_env_target_alias_set=${target_alias+set}
892 ac_env_target_alias_value=$target_alias
893 ac_cv_env_target_alias_set=${target_alias+set}
894 ac_cv_env_target_alias_value=$target_alias
895 ac_env_CC_set=${CC+set}
896 ac_env_CC_value=$CC
897 ac_cv_env_CC_set=${CC+set}
898 ac_cv_env_CC_value=$CC
899 ac_env_CFLAGS_set=${CFLAGS+set}
900 ac_env_CFLAGS_value=$CFLAGS
901 ac_cv_env_CFLAGS_set=${CFLAGS+set}
902 ac_cv_env_CFLAGS_value=$CFLAGS
903 ac_env_LDFLAGS_set=${LDFLAGS+set}
904 ac_env_LDFLAGS_value=$LDFLAGS
905 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906 ac_cv_env_LDFLAGS_value=$LDFLAGS
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CPP_set=${CPP+set}
912 ac_env_CPP_value=$CPP
913 ac_cv_env_CPP_set=${CPP+set}
914 ac_cv_env_CPP_value=$CPP
915
916 #
917 # Report the --help message.
918 #
919 if test "$ac_init_help" = "long"; then
920   # Omit some internal or obsolete options to make the list less imposing.
921   # This message is too long to be a string in the A/UX 3.1 sh.
922   cat <<_ACEOF
923 \`configure' configures fGIS 0.0.1 to adapt to many kinds of systems.
924
925 Usage: $0 [OPTION]... [VAR=VALUE]...
926
927 To assign environment variables (e.g., CC, CFLAGS...), specify them as
928 VAR=VALUE.  See below for descriptions of some of the useful variables.
929
930 Defaults for the options are specified in brackets.
931
932 Configuration:
933   -h, --help              display this help and exit
934       --help=short        display options specific to this package
935       --help=recursive    display the short help of all the included packages
936   -V, --version           display version information and exit
937   -q, --quiet, --silent   do not print \`checking...' messages
938       --cache-file=FILE   cache test results in FILE [disabled]
939   -C, --config-cache      alias for \`--cache-file=config.cache'
940   -n, --no-create         do not create output files
941       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
942
943 _ACEOF
944
945   cat <<_ACEOF
946 Installation directories:
947   --prefix=PREFIX         install architecture-independent files in PREFIX
948                           [$ac_default_prefix]
949   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
950                           [PREFIX]
951
952 By default, \`make install' will install all the files in
953 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
954 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955 for instance \`--prefix=\$HOME'.
956
957 For better control, use the options below.
958
959 Fine tuning of the installation directories:
960   --bindir=DIR           user executables [EPREFIX/bin]
961   --sbindir=DIR          system admin executables [EPREFIX/sbin]
962   --libexecdir=DIR       program executables [EPREFIX/libexec]
963   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
964   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
965   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
966   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
967   --libdir=DIR           object code libraries [EPREFIX/lib]
968   --includedir=DIR       C header files [PREFIX/include]
969   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
970   --infodir=DIR          info documentation [PREFIX/info]
971   --mandir=DIR           man documentation [PREFIX/man]
972 _ACEOF
973
974   cat <<\_ACEOF
975
976 Program names:
977   --program-prefix=PREFIX            prepend PREFIX to installed program names
978   --program-suffix=SUFFIX            append SUFFIX to installed program names
979   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
980
981 X features:
982   --x-includes=DIR    X include files are in DIR
983   --x-libraries=DIR   X library files are in DIR
984
985 System types:
986   --build=BUILD     configure for building on BUILD [guessed]
987   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
988 _ACEOF
989 fi
990
991 if test -n "$ac_init_help"; then
992   case $ac_init_help in
993      short | recursive ) echo "Configuration of fGIS 0.0.1:";;
994    esac
995   cat <<\_ACEOF
996
997 Optional Features:
998   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
999   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1000   --enable-shared=PKGS  build shared libraries default=yes
1001   --enable-static=PKGS  build static libraries default=yes
1002   --enable-fast-install=PKGS  optimize for fast installation default=yes
1003   --disable-dependency-tracking Speeds up one-time builds
1004   --enable-dependency-tracking  Do not reject slow dependency extractors
1005   --disable-libtool-lock  avoid locking (might break parallel builds)
1006
1007 Optional Packages:
1008   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1009   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1010   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1011   --with-pic              try to use only PIC/non-PIC objects default=use both
1012   --with-x                use the X Window System
1013   --with-tclinclude=DIR   directory where tcl private headers are
1014   --with-tcl           directory containing tcl configuration (tclConfig.sh)
1015   --with-tkinclude       directory where tk private headers are
1016   --with-tk           directory containing tk configuration (tkConfig.sh)
1017
1018 Some influential environment variables:
1019   CC          C compiler command
1020   CFLAGS      C compiler flags
1021   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1022               nonstandard directory <lib dir>
1023   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024               headers in a nonstandard directory <include dir>
1025   CPP         C preprocessor
1026
1027 Use these variables to override the choices made by `configure' or to help
1028 it to find libraries and programs with nonstandard names/locations.
1029
1030 Report bugs to <dron@remotesensing.org>.
1031 _ACEOF
1032 fi
1033
1034 if test "$ac_init_help" = "recursive"; then
1035   # If there are subdirs, report their specific --help.
1036   ac_popdir=`pwd`
1037   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1038     test -d $ac_dir || continue
1039     ac_builddir=.
1040
1041 if test "$ac_dir" != .; then
1042   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1043   # A "../" for each directory in $ac_dir_suffix.
1044   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1045 else
1046   ac_dir_suffix= ac_top_builddir=
1047 fi
1048
1049 case $srcdir in
1050   .)  # No --srcdir option.  We are building in place.
1051     ac_srcdir=.
1052     if test -z "$ac_top_builddir"; then
1053        ac_top_srcdir=.
1054     else
1055        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1056     fi ;;
1057   [\\/]* | ?:[\\/]* )  # Absolute path.
1058     ac_srcdir=$srcdir$ac_dir_suffix;
1059     ac_top_srcdir=$srcdir ;;
1060   *) # Relative path.
1061     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1062     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1063 esac
1064 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1065 # absolute.
1066 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1067 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1068 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1069 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1070
1071     cd $ac_dir
1072     # Check for guested configure; otherwise get Cygnus style configure.
1073     if test -f $ac_srcdir/configure.gnu; then
1074       echo
1075       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1076     elif test -f $ac_srcdir/configure; then
1077       echo
1078       $SHELL $ac_srcdir/configure  --help=recursive
1079     elif test -f $ac_srcdir/configure.ac ||
1080            test -f $ac_srcdir/configure.in; then
1081       echo
1082       $ac_configure --help
1083     else
1084       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1085     fi
1086     cd $ac_popdir
1087   done
1088 fi
1089
1090 test -n "$ac_init_help" && exit 0
1091 if $ac_init_version; then
1092   cat <<\_ACEOF
1093 fGIS configure 0.0.1
1094 generated by GNU Autoconf 2.53
1095
1096 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1097 Free Software Foundation, Inc.
1098 This configure script is free software; the Free Software Foundation
1099 gives unlimited permission to copy, distribute and modify it.
1100 _ACEOF
1101   exit 0
1102 fi
1103 exec 5>config.log
1104 cat >&5 <<_ACEOF
1105 This file contains any messages produced by compilers while
1106 running configure, to aid debugging if configure makes a mistake.
1107
1108 It was created by fGIS $as_me 0.0.1, which was
1109 generated by GNU Autoconf 2.53.  Invocation command line was
1110
1111   $ $0 $@
1112
1113 _ACEOF
1114 {
1115 cat <<_ASUNAME
1116 ## --------- ##
1117 ## Platform. ##
1118 ## --------- ##
1119
1120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1125
1126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1127 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1128
1129 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1130 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1132 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1133 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1134 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1135 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1136
1137 _ASUNAME
1138
1139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1140 for as_dir in $PATH
1141 do
1142   IFS=$as_save_IFS
1143   test -z "$as_dir" && as_dir=.
1144   echo "PATH: $as_dir"
1145 done
1146
1147 } >&5
1148
1149 cat >&5 <<_ACEOF
1150
1151
1152 ## ----------- ##
1153 ## Core tests. ##
1154 ## ----------- ##
1155
1156 _ACEOF
1157
1158
1159 # Keep a trace of the command line.
1160 # Strip out --no-create and --no-recursion so they do not pile up.
1161 # Also quote any args containing shell meta-characters.
1162 ac_configure_args=
1163 ac_sep=
1164 for ac_arg
1165 do
1166   case $ac_arg in
1167   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168   | --no-cr | --no-c | -n ) continue ;;
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     continue ;;
1172   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1173     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1174   esac
1175   case " $ac_configure_args " in
1176     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1177     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1178        ac_sep=" " ;;
1179   esac
1180   # Get rid of the leading space.
1181 done
1182
1183 # When interrupted or exit'd, cleanup temporary files, and complete
1184 # config.log.  We remove comments because anyway the quotes in there
1185 # would cause problems or look ugly.
1186 # WARNING: Be sure not to use single quotes in there, as some shells,
1187 # such as our DU 5.0 friend, will then `close' the trap.
1188 trap 'exit_status=$?
1189   # Save into config.log some information that might help in debugging.
1190   {
1191     echo
1192     cat <<\_ASBOX
1193 ## ---------------- ##
1194 ## Cache variables. ##
1195 ## ---------------- ##
1196 _ASBOX
1197     echo
1198     # The following way of writing the cache mishandles newlines in values,
1199 {
1200   (set) 2>&1 |
1201     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1202     *ac_space=\ *)
1203       sed -n \
1204         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1206       ;;
1207     *)
1208       sed -n \
1209         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1210       ;;
1211     esac;
1212 }
1213     echo
1214     if test -s confdefs.h; then
1215       cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220       echo
1221       sed "/^$/d" confdefs.h
1222       echo
1223     fi
1224     test "$ac_signal" != 0 &&
1225       echo "$as_me: caught signal $ac_signal"
1226     echo "$as_me: exit $exit_status"
1227   } >&5
1228   rm -f core core.* *.core &&
1229   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230     exit $exit_status
1231      ' 0
1232 for ac_signal in 1 2 13 15; do
1233   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1236
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1241
1242 # Predefined preprocessor variables.
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1247
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1267
1268
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272   if test "x$prefix" != xNONE; then
1273     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274   else
1275     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276   fi
1277 fi
1278 for ac_site_file in $CONFIG_SITE; do
1279   if test -r "$ac_site_file"; then
1280     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282     sed 's/^/| /' "$ac_site_file" >&5
1283     . "$ac_site_file"
1284   fi
1285 done
1286
1287 if test -r "$cache_file"; then
1288   # Some versions of bash will fail to source /dev/null (special
1289   # files actually), so we avoid doing that.
1290   if test -f "$cache_file"; then
1291     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293     case $cache_file in
1294       [\\/]* | ?:[\\/]* ) . $cache_file;;
1295       *)                      . ./$cache_file;;
1296     esac
1297   fi
1298 else
1299   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301   >$cache_file
1302 fi
1303
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310   eval ac_new_set=\$ac_env_${ac_var}_set
1311   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312   eval ac_new_val="\$ac_env_${ac_var}_value"
1313   case $ac_old_set,$ac_new_set in
1314     set,)
1315       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317       ac_cache_corrupted=: ;;
1318     ,set)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,);;
1323     *)
1324       if test "x$ac_old_val" != "x$ac_new_val"; then
1325         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1328 echo "$as_me:   former value:  $ac_old_val" >&2;}
1329         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1330 echo "$as_me:   current value: $ac_new_val" >&2;}
1331         ac_cache_corrupted=:
1332       fi;;
1333   esac
1334   # Pass precious variables to config.status.
1335   if test "$ac_new_set" = set; then
1336     case $ac_new_val in
1337     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339     *) ac_arg=$ac_var=$ac_new_val ;;
1340     esac
1341     case " $ac_configure_args " in
1342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344     esac
1345   fi
1346 done
1347 if $ac_cache_corrupted; then
1348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 am__api_version="1.6"
1387 ac_aux_dir=
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389   if test -f $ac_dir/install-sh; then
1390     ac_aux_dir=$ac_dir
1391     ac_install_sh="$ac_aux_dir/install-sh -c"
1392     break
1393   elif test -f $ac_dir/install.sh; then
1394     ac_aux_dir=$ac_dir
1395     ac_install_sh="$ac_aux_dir/install.sh -c"
1396     break
1397   elif test -f $ac_dir/shtool; then
1398     ac_aux_dir=$ac_dir
1399     ac_install_sh="$ac_aux_dir/shtool install -c"
1400     break
1401   fi
1402 done
1403 if test -z "$ac_aux_dir"; then
1404   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406    { (exit 1); exit 1; }; }
1407 fi
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1411
1412 # Find a good install program.  We prefer a C program (faster),
1413 # so one script is as good as another.  But avoid the broken or
1414 # incompatible versions:
1415 # SysV /etc/install, /usr/sbin/install
1416 # SunOS /usr/etc/install
1417 # IRIX /sbin/install
1418 # AIX /bin/install
1419 # AmigaOS /C/install, which installs bootblocks on floppy discs
1420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1423 # ./install, which can be erroneously created by make from ./install.sh.
1424 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1425 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1426 if test -z "$INSTALL"; then
1427 if test "${ac_cv_path_install+set}" = set; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   # Account for people who put trailing slashes in PATH elements.
1436 case $as_dir/ in
1437   ./ | .// | /cC/* | \
1438   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1439   /usr/ucb/* ) ;;
1440   *)
1441     # OSF1 and SCO ODT 3.0 have their own names for install.
1442     # Don't use installbsd from OSF since it installs stuff as root
1443     # by default.
1444     for ac_prog in ginstall scoinst install; do
1445       for ac_exec_ext in '' $ac_executable_extensions; do
1446         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1447           if test $ac_prog = install &&
1448             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1449             # AIX install.  It has an incompatible calling convention.
1450             :
1451           elif test $ac_prog = install &&
1452             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1453             # program-specific install script used by HP pwplus--don't use.
1454             :
1455           else
1456             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1457             break 3
1458           fi
1459         fi
1460       done
1461     done
1462     ;;
1463 esac
1464 done
1465
1466
1467 fi
1468   if test "${ac_cv_path_install+set}" = set; then
1469     INSTALL=$ac_cv_path_install
1470   else
1471     # As a last resort, use the slow shell script.  We don't cache a
1472     # path for INSTALL within a source directory, because that will
1473     # break other packages using the cache if that directory is
1474     # removed, or if the path is relative.
1475     INSTALL=$ac_install_sh
1476   fi
1477 fi
1478 echo "$as_me:$LINENO: result: $INSTALL" >&5
1479 echo "${ECHO_T}$INSTALL" >&6
1480
1481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1482 # It thinks the first close brace ends the variable substitution.
1483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1484
1485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1486
1487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1488
1489 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1490 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1491 # Just in case
1492 sleep 1
1493 echo timestamp > conftest.file
1494 # Do `set' in a subshell so we don't clobber the current shell's
1495 # arguments.  Must try -L first in case configure is actually a
1496 # symlink; some systems play weird games with the mod time of symlinks
1497 # (eg FreeBSD returns the mod time of the symlink's containing
1498 # directory).
1499 if (
1500    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1501    if test "$*" = "X"; then
1502       # -L didn't work.
1503       set X `ls -t $srcdir/configure conftest.file`
1504    fi
1505    rm -f conftest.file
1506    if test "$*" != "X $srcdir/configure conftest.file" \
1507       && test "$*" != "X conftest.file $srcdir/configure"; then
1508
1509       # If neither matched, then we have a broken ls.  This can happen
1510       # if, for instance, CONFIG_SHELL is bash and it inherits a
1511       # broken ls alias from the environment.  This has actually
1512       # happened.  Such a system could not be considered "sane".
1513       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1514 alias in your environment" >&5
1515 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1516 alias in your environment" >&2;}
1517    { (exit 1); exit 1; }; }
1518    fi
1519
1520    test "$2" = conftest.file
1521    )
1522 then
1523    # Ok.
1524    :
1525 else
1526    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1527 Check your system clock" >&5
1528 echo "$as_me: error: newly created file is older than distributed files!
1529 Check your system clock" >&2;}
1530    { (exit 1); exit 1; }; }
1531 fi
1532 echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1534 test "$program_prefix" != NONE &&
1535   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1536 # Use a double $ so make ignores it.
1537 test "$program_suffix" != NONE &&
1538   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1539 # Double any \ or $.  echo might interpret backslashes.
1540 # By default was `s,x,x', remove it if useless.
1541 cat <<\_ACEOF >conftest.sed
1542 s/[\\$]/&&/g;s/;s,x,x,$//
1543 _ACEOF
1544 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1545 rm conftest.sed
1546
1547
1548 # expand $ac_aux_dir to an absolute path
1549 am_aux_dir=`cd $ac_aux_dir && pwd`
1550
1551 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1552 # Use eval to expand $SHELL
1553 if eval "$MISSING --run true"; then
1554   am_missing_run="$MISSING --run "
1555 else
1556   am_missing_run=
1557   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1558 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1559 fi
1560
1561 for ac_prog in gawk mawk nawk awk
1562 do
1563   # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_AWK+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$AWK"; then
1571   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_AWK="$ac_prog"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 AWK=$ac_cv_prog_AWK
1590 if test -n "$AWK"; then
1591   echo "$as_me:$LINENO: result: $AWK" >&5
1592 echo "${ECHO_T}$AWK" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   test -n "$AWK" && break
1599 done
1600
1601 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1602 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1603 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1604 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1605   echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607   cat >conftest.make <<\_ACEOF
1608 all:
1609         @echo 'ac_maketemp="${MAKE}"'
1610 _ACEOF
1611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1612 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1613 if test -n "$ac_maketemp"; then
1614   eval ac_cv_prog_make_${ac_make}_set=yes
1615 else
1616   eval ac_cv_prog_make_${ac_make}_set=no
1617 fi
1618 rm -f conftest.make
1619 fi
1620 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1621   echo "$as_me:$LINENO: result: yes" >&5
1622 echo "${ECHO_T}yes" >&6
1623   SET_MAKE=
1624 else
1625   echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1627   SET_MAKE="MAKE=${MAKE-make}"
1628 fi
1629
1630  # test to see if srcdir already configured
1631 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1632    test -f $srcdir/config.status; then
1633   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1634 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1635    { (exit 1); exit 1; }; }
1636 fi
1637
1638 # Define the identity of the package.
1639  PACKAGE=fgis
1640  VERSION=0.0.1
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE "$PACKAGE"
1645 _ACEOF
1646
1647
1648 cat >>confdefs.h <<_ACEOF
1649 #define VERSION "$VERSION"
1650 _ACEOF
1651
1652 # Some tools Automake needs.
1653
1654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1655
1656
1657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1658
1659
1660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1661
1662
1663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1664
1665
1666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1667
1668
1669 AMTAR=${AMTAR-"${am_missing_run}tar"}
1670
1671 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1672
1673 # Installed binaries are usually stripped using `strip' when the user
1674 # run `make install-strip'.  However `strip' might not be the right
1675 # tool to use in cross-compilation environments, therefore Automake
1676 # will honor the `STRIP' environment variable to overrule this program.
1677 if test "$cross_compiling" != no; then
1678   if test -n "$ac_tool_prefix"; then
1679   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1680 set dummy ${ac_tool_prefix}strip; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_STRIP+set}" = set; then
1684   echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686   if test -n "$STRIP"; then
1687   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698     break 2
1699   fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 STRIP=$ac_cv_prog_STRIP
1706 if test -n "$STRIP"; then
1707   echo "$as_me:$LINENO: result: $STRIP" >&5
1708 echo "${ECHO_T}$STRIP" >&6
1709 else
1710   echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714 fi
1715 if test -z "$ac_cv_prog_STRIP"; then
1716   ac_ct_STRIP=$STRIP
1717   # Extract the first word of "strip", so it can be a program name with args.
1718 set dummy strip; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$ac_ct_STRIP"; then
1725   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     ac_cv_prog_ac_ct_STRIP="strip"
1735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736     break 2
1737   fi
1738 done
1739 done
1740
1741   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1742 fi
1743 fi
1744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1745 if test -n "$ac_ct_STRIP"; then
1746   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1747 echo "${ECHO_T}$ac_ct_STRIP" >&6
1748 else
1749   echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1751 fi
1752
1753   STRIP=$ac_ct_STRIP
1754 else
1755   STRIP="$ac_cv_prog_STRIP"
1756 fi
1757
1758 fi
1759 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1760
1761 # We need awk for the "check" target.  The system "awk" is bad on
1762 # some platforms.
1763
1764
1765
1766 # Add the stamp file to the list of files AC keeps track of,
1767 # along with our hook.
1768 ac_config_headers="$ac_config_headers include/config.h"
1769
1770
1771
1772
1773
1774 # Check whether --enable-shared or --disable-shared was given.
1775 if test "${enable_shared+set}" = set; then
1776   enableval="$enable_shared"
1777   p=${PACKAGE-default}
1778 case $enableval in
1779 yes) enable_shared=yes ;;
1780 no) enable_shared=no ;;
1781 *)
1782   enable_shared=no
1783   # Look at the argument we got.  We use all the common list separators.
1784   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1785   for pkg in $enableval; do
1786     if test "X$pkg" = "X$p"; then
1787       enable_shared=yes
1788     fi
1789   done
1790   IFS="$ac_save_ifs"
1791   ;;
1792 esac
1793 else
1794   enable_shared=yes
1795 fi;
1796 # Check whether --enable-static or --disable-static was given.
1797 if test "${enable_static+set}" = set; then
1798   enableval="$enable_static"
1799   p=${PACKAGE-default}
1800 case $enableval in
1801 yes) enable_static=yes ;;
1802 no) enable_static=no ;;
1803 *)
1804   enable_static=no
1805   # Look at the argument we got.  We use all the common list separators.
1806   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1807   for pkg in $enableval; do
1808     if test "X$pkg" = "X$p"; then
1809       enable_static=yes
1810     fi
1811   done
1812   IFS="$ac_save_ifs"
1813   ;;
1814 esac
1815 else
1816   enable_static=yes
1817 fi;
1818 # Check whether --enable-fast-install or --disable-fast-install was given.
1819 if test "${enable_fast_install+set}" = set; then
1820   enableval="$enable_fast_install"
1821   p=${PACKAGE-default}
1822 case $enableval in
1823 yes) enable_fast_install=yes ;;
1824 no) enable_fast_install=no ;;
1825 *)
1826   enable_fast_install=no
1827   # Look at the argument we got.  We use all the common list separators.
1828   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1829   for pkg in $enableval; do
1830     if test "X$pkg" = "X$p"; then
1831       enable_fast_install=yes
1832     fi
1833   done
1834   IFS="$ac_save_ifs"
1835   ;;
1836 esac
1837 else
1838   enable_fast_install=yes
1839 fi;
1840 # Make sure we can run config.sub.
1841 $ac_config_sub sun4 >/dev/null 2>&1 ||
1842   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1843 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1844    { (exit 1); exit 1; }; }
1845
1846 echo "$as_me:$LINENO: checking build system type" >&5
1847 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1848 if test "${ac_cv_build+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   ac_cv_build_alias=$build_alias
1852 test -z "$ac_cv_build_alias" &&
1853   ac_cv_build_alias=`$ac_config_guess`
1854 test -z "$ac_cv_build_alias" &&
1855   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1857    { (exit 1); exit 1; }; }
1858 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1859   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1860 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1861    { (exit 1); exit 1; }; }
1862
1863 fi
1864 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1865 echo "${ECHO_T}$ac_cv_build" >&6
1866 build=$ac_cv_build
1867 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1868 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1869 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1870
1871
1872 echo "$as_me:$LINENO: checking host system type" >&5
1873 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1874 if test "${ac_cv_host+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   ac_cv_host_alias=$host_alias
1878 test -z "$ac_cv_host_alias" &&
1879   ac_cv_host_alias=$ac_cv_build_alias
1880 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1881   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1882 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1883    { (exit 1); exit 1; }; }
1884
1885 fi
1886 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1887 echo "${ECHO_T}$ac_cv_host" >&6
1888 host=$ac_cv_host
1889 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1890 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1891 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1892
1893
1894 rm -f .deps 2>/dev/null
1895 mkdir .deps 2>/dev/null
1896 if test -d .deps; then
1897   DEPDIR=.deps
1898 else
1899   # MS-DOS does not allow filenames that begin with a dot.
1900   DEPDIR=_deps
1901 fi
1902 rmdir .deps 2>/dev/null
1903
1904
1905 ac_config_commands="$ac_config_commands depfiles"
1906
1907
1908 am_make=${MAKE-make}
1909 cat > confinc << 'END'
1910 doit:
1911         @echo done
1912 END
1913 # If we don't find an include directive, just comment out the code.
1914 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1915 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1916 am__include="#"
1917 am__quote=
1918 _am_result=none
1919 # First try GNU make style include.
1920 echo "include confinc" > confmf
1921 # We grep out `Entering directory' and `Leaving directory'
1922 # messages which can occur if `w' ends up in MAKEFLAGS.
1923 # In particular we don't look at `^make:' because GNU make might
1924 # be invoked under some other name (usually "gmake"), in which
1925 # case it prints its new name instead of `make'.
1926 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1927    am__include=include
1928    am__quote=
1929    _am_result=GNU
1930 fi
1931 # Now try BSD make style include.
1932 if test "$am__include" = "#"; then
1933    echo '.include "confinc"' > confmf
1934    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1935       am__include=.include
1936       am__quote="\""
1937       _am_result=BSD
1938    fi
1939 fi
1940
1941
1942 echo "$as_me:$LINENO: result: $_am_result" >&5
1943 echo "${ECHO_T}$_am_result" >&6
1944 rm -f confinc confmf
1945
1946 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1947 if test "${enable_dependency_tracking+set}" = set; then
1948   enableval="$enable_dependency_tracking"
1949
1950 fi;
1951 if test "x$enable_dependency_tracking" != xno; then
1952   am_depcomp="$ac_aux_dir/depcomp"
1953   AMDEPBACKSLASH='\'
1954 fi
1955
1956
1957 if test "x$enable_dependency_tracking" != xno; then
1958   AMDEP_TRUE=
1959   AMDEP_FALSE='#'
1960 else
1961   AMDEP_TRUE='#'
1962   AMDEP_FALSE=
1963 fi
1964
1965
1966
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 if test -n "$ac_tool_prefix"; then
1973   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978   echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980   if test -n "$CC"; then
1981   ac_cv_prog_CC="$CC" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996
1997 fi
1998 fi
1999 CC=$ac_cv_prog_CC
2000 if test -n "$CC"; then
2001   echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6
2003 else
2004   echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2006 fi
2007
2008 fi
2009 if test -z "$ac_cv_prog_CC"; then
2010   ac_ct_CC=$CC
2011   # Extract the first word of "gcc", so it can be a program name with args.
2012 set dummy gcc; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028     ac_cv_prog_ac_ct_CC="gcc"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034
2035 fi
2036 fi
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6
2041 else
2042   echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2044 fi
2045
2046   CC=$ac_ct_CC
2047 else
2048   CC="$ac_cv_prog_CC"
2049 fi
2050
2051 if test -z "$CC"; then
2052   if test -n "$ac_tool_prefix"; then
2053   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2054 set dummy ${ac_tool_prefix}cc; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   if test -n "$CC"; then
2061   ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   for ac_exec_ext in '' $ac_executable_extensions; do
2069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070     ac_cv_prog_CC="${ac_tool_prefix}cc"
2071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072     break 2
2073   fi
2074 done
2075 done
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084   echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2086 fi
2087
2088 fi
2089 if test -z "$ac_cv_prog_CC"; then
2090   ac_ct_CC=$CC
2091   # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$ac_ct_CC"; then
2099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108     ac_cv_prog_ac_ct_CC="cc"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114
2115 fi
2116 fi
2117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118 if test -n "$ac_ct_CC"; then
2119   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120 echo "${ECHO_T}$ac_ct_CC" >&6
2121 else
2122   echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2124 fi
2125
2126   CC=$ac_ct_CC
2127 else
2128   CC="$ac_cv_prog_CC"
2129 fi
2130
2131 fi
2132 if test -z "$CC"; then
2133   # Extract the first word of "cc", so it can be a program name with args.
2134 set dummy cc; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$CC"; then
2141   ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143   ac_prog_rejected=no
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149   for ac_exec_ext in '' $ac_executable_extensions; do
2150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2152        ac_prog_rejected=yes
2153        continue
2154      fi
2155     ac_cv_prog_CC="cc"
2156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157     break 2
2158   fi
2159 done
2160 done
2161
2162 if test $ac_prog_rejected = yes; then
2163   # We found a bogon in the path, so make sure we never use it.
2164   set dummy $ac_cv_prog_CC
2165   shift
2166   if test $# != 0; then
2167     # We chose a different compiler from the bogus one.
2168     # However, it has the same basename, so the bogon will be chosen
2169     # first if we set CC to just the basename; use the full file name.
2170     shift
2171     set dummy "$as_dir/$ac_word" ${1+"$@"}
2172     shift
2173     ac_cv_prog_CC="$@"
2174   fi
2175 fi
2176 fi
2177 fi
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180   echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6
2182 else
2183   echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2185 fi
2186
2187 fi
2188 if test -z "$CC"; then
2189   if test -n "$ac_tool_prefix"; then
2190   for ac_prog in cl
2191   do
2192     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220   echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227     test -n "$CC" && break
2228   done
2229 fi
2230 if test -z "$CC"; then
2231   ac_ct_CC=$CC
2232   for ac_prog in cl
2233 do
2234   # Extract the first word of "$ac_prog", so it can be a program name with args.
2235 set dummy $ac_prog; ac_word=$2
2236 echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   if test -n "$ac_ct_CC"; then
2242   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249   for ac_exec_ext in '' $ac_executable_extensions; do
2250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251     ac_cv_prog_ac_ct_CC="$ac_prog"
2252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257
2258 fi
2259 fi
2260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261 if test -n "$ac_ct_CC"; then
2262   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263 echo "${ECHO_T}$ac_ct_CC" >&6
2264 else
2265   echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6
2267 fi
2268
2269   test -n "$ac_ct_CC" && break
2270 done
2271
2272   CC=$ac_ct_CC
2273 fi
2274
2275 fi
2276
2277
2278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2279 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2280    { (exit 1); exit 1; }; }
2281
2282 # Provide some information about the compiler.
2283 echo "$as_me:$LINENO:" \
2284      "checking for C compiler version" >&5
2285 ac_compiler=`set X $ac_compile; echo $2`
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2287   (eval $ac_compiler --version </dev/null >&5) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }
2291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2292   (eval $ac_compiler -v </dev/null >&5) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }
2296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2297   (eval $ac_compiler -V </dev/null >&5) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }
2301
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305
2306 #ifdef F77_DUMMY_MAIN
2307 #  ifdef __cplusplus
2308      extern "C"
2309 #  endif
2310    int F77_DUMMY_MAIN() { return 1; }
2311 #endif
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 ac_clean_files_save=$ac_clean_files
2321 ac_clean_files="$ac_clean_files a.out a.exe"
2322 # Try to create an executable without -o first, disregard a.out.
2323 # It will help us diagnose broken compilers, and finding out an intuition
2324 # of exeext.
2325 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2326 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2327 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2328 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2329   (eval $ac_link_default) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; then
2333   # Find the output, starting from the most likely.  This scheme is
2334 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2335 # resort.
2336
2337 # Be careful to initialize this variable, since it used to be cached.
2338 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2339 ac_cv_exeext=
2340 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2341                 ls a.out conftest 2>/dev/null;
2342                 ls a.* conftest.* 2>/dev/null`; do
2343   case $ac_file in
2344     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2345     a.out ) # We found the default executable, but exeext='' is most
2346             # certainly right.
2347             break;;
2348     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2350           export ac_cv_exeext
2351           break;;
2352     * ) break;;
2353   esac
2354 done
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2359 echo "$as_me: error: C compiler cannot create executables" >&2;}
2360    { (exit 77); exit 77; }; }
2361 fi
2362
2363 ac_exeext=$ac_cv_exeext
2364 echo "$as_me:$LINENO: result: $ac_file" >&5
2365 echo "${ECHO_T}$ac_file" >&6
2366
2367 # Check the compiler produces executables we can run.  If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2370 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2372 # If not cross compiling, check that we can run a simple program.
2373 if test "$cross_compiling" != yes; then
2374   if { ac_try='./$ac_file'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; }; then
2380     cross_compiling=no
2381   else
2382     if test "$cross_compiling" = maybe; then
2383         cross_compiling=yes
2384     else
2385         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'." >&5
2387 echo "$as_me: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'." >&2;}
2389    { (exit 1); exit 1; }; }
2390     fi
2391   fi
2392 fi
2393 echo "$as_me:$LINENO: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2395
2396 rm -f a.out a.exe conftest$ac_cv_exeext
2397 ac_clean_files=$ac_clean_files_save
2398 # Check the compiler produces executables we can run.  If not, either
2399 # the compiler is broken, or we cross compile.
2400 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2401 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2402 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2403 echo "${ECHO_T}$cross_compiling" >&6
2404
2405 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2406 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2408   (eval $ac_link) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; then
2412   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 # `rm'.
2416 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2417   case $ac_file in
2418     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2419     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2420           export ac_cv_exeext
2421           break;;
2422     * ) break;;
2423   esac
2424 done
2425 else
2426   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2428    { (exit 1); exit 1; }; }
2429 fi
2430
2431 rm -f conftest$ac_cv_exeext
2432 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2433 echo "${ECHO_T}$ac_cv_exeext" >&6
2434
2435 rm -f conftest.$ac_ext
2436 EXEEXT=$ac_cv_exeext
2437 ac_exeext=$EXEEXT
2438 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2439 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2440 if test "${ac_cv_objext+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2445 #include "confdefs.h"
2446
2447 #ifdef F77_DUMMY_MAIN
2448 #  ifdef __cplusplus
2449      extern "C"
2450 #  endif
2451    int F77_DUMMY_MAIN() { return 1; }
2452 #endif
2453 int
2454 main ()
2455 {
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.o conftest.obj
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463   (eval $ac_compile) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; then
2467   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2468   case $ac_file in
2469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2470     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2471        break;;
2472   esac
2473 done
2474 else
2475   echo "$as_me: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2478 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2479    { (exit 1); exit 1; }; }
2480 fi
2481
2482 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2483 fi
2484 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2485 echo "${ECHO_T}$ac_cv_objext" >&6
2486 OBJEXT=$ac_cv_objext
2487 ac_objext=$OBJEXT
2488 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2489 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2490 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   cat >conftest.$ac_ext <<_ACEOF
2494 #line $LINENO "configure"
2495 #include "confdefs.h"
2496
2497 #ifdef F77_DUMMY_MAIN
2498 #  ifdef __cplusplus
2499      extern "C"
2500 #  endif
2501    int F77_DUMMY_MAIN() { return 1; }
2502 #endif
2503 int
2504 main ()
2505 {
2506 #ifndef __GNUC__
2507        choke me
2508 #endif
2509
2510   ;
2511   return 0;
2512 }
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516   (eval $ac_compile) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -s conftest.$ac_objext'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; }; then
2526   ac_compiler_gnu=yes
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2530 ac_compiler_gnu=no
2531 fi
2532 rm -f conftest.$ac_objext conftest.$ac_ext
2533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2534
2535 fi
2536 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2537 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2538 GCC=`test $ac_compiler_gnu = yes && echo yes`
2539 ac_test_CFLAGS=${CFLAGS+set}
2540 ac_save_CFLAGS=$CFLAGS
2541 CFLAGS="-g"
2542 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_g+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   cat >conftest.$ac_ext <<_ACEOF
2548 #line $LINENO "configure"
2549 #include "confdefs.h"
2550
2551 #ifdef F77_DUMMY_MAIN
2552 #  ifdef __cplusplus
2553      extern "C"
2554 #  endif
2555    int F77_DUMMY_MAIN() { return 1; }
2556 #endif
2557 int
2558 main ()
2559 {
2560
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -s conftest.$ac_objext'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; }; then
2577   ac_cv_prog_cc_g=yes
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2581 ac_cv_prog_cc_g=no
2582 fi
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2587 if test "$ac_test_CFLAGS" = set; then
2588   CFLAGS=$ac_save_CFLAGS
2589 elif test $ac_cv_prog_cc_g = yes; then
2590   if test "$GCC" = yes; then
2591     CFLAGS="-g -O2"
2592   else
2593     CFLAGS="-g"
2594   fi
2595 else
2596   if test "$GCC" = yes; then
2597     CFLAGS="-O2"
2598   else
2599     CFLAGS=
2600   fi
2601 fi
2602 # Some people use a C++ compiler to compile C.  Since we use `exit',
2603 # in C++ we need to declare it.  In case someone uses the same compiler
2604 # for both compiling C and C++ we need to have the C++ compiler decide
2605 # the declaration of exit, since it's the most demanding environment.
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #ifndef __cplusplus
2608   choke me
2609 #endif
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; }; then
2623   for ac_declaration in \
2624    ''\
2625    '#include <stdlib.h>' \
2626    'extern "C" void std::exit (int) throw (); using std::exit;' \
2627    'extern "C" void std::exit (int); using std::exit;' \
2628    'extern "C" void exit (int) throw ();' \
2629    'extern "C" void exit (int);' \
2630    'void exit (int);'
2631 do
2632   cat >conftest.$ac_ext <<_ACEOF
2633 #line $LINENO "configure"
2634 #include "confdefs.h"
2635 #include <stdlib.h>
2636 $ac_declaration
2637 #ifdef F77_DUMMY_MAIN
2638 #  ifdef __cplusplus
2639      extern "C"
2640 #  endif
2641    int F77_DUMMY_MAIN() { return 1; }
2642 #endif
2643 int
2644 main ()
2645 {
2646 exit (42);
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   :
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2667 continue
2668 fi
2669 rm -f conftest.$ac_objext conftest.$ac_ext
2670   cat >conftest.$ac_ext <<_ACEOF
2671 #line $LINENO "configure"
2672 #include "confdefs.h"
2673 $ac_declaration
2674 #ifdef F77_DUMMY_MAIN
2675 #  ifdef __cplusplus
2676      extern "C"
2677 #  endif
2678    int F77_DUMMY_MAIN() { return 1; }
2679 #endif
2680 int
2681 main ()
2682 {
2683 exit (42);
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690   (eval $ac_compile) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } &&
2694          { ac_try='test -s conftest.$ac_objext'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700   break
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 fi
2705 rm -f conftest.$ac_objext conftest.$ac_ext
2706 done
2707 rm -f conftest*
2708 if test -n "$ac_declaration"; then
2709   echo '#ifdef __cplusplus' >>confdefs.h
2710   echo $ac_declaration      >>confdefs.h
2711   echo '#endif'             >>confdefs.h
2712 fi
2713
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 fi
2718 rm -f conftest.$ac_objext conftest.$ac_ext
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725 depcc="$CC"   am_compiler_list=
2726
2727 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2728 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2729 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2733   # We make a subdir and do the tests there.  Otherwise we can end up
2734   # making bogus files that we don't know about and never remove.  For
2735   # instance it was reported that on HP-UX the gcc test will end up
2736   # making a dummy file named `D' -- because `-MD' means `put the output
2737   # in D'.
2738   mkdir conftest.dir
2739   # Copy depcomp to subdir because otherwise we won't find it if we're
2740   # using a relative directory.
2741   cp "$am_depcomp" conftest.dir
2742   cd conftest.dir
2743
2744   am_cv_CC_dependencies_compiler_type=none
2745   if test "$am_compiler_list" = ""; then
2746      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2747   fi
2748   for depmode in $am_compiler_list; do
2749     # We need to recreate these files for each test, as the compiler may
2750     # overwrite some of them when testing with obscure command lines.
2751     # This happens at least with the AIX C compiler.
2752     echo '#include "conftest.h"' > conftest.c
2753     echo 'int i;' > conftest.h
2754     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2755
2756     case $depmode in
2757     nosideeffect)
2758       # after this tag, mechanisms are not by side-effect, so they'll
2759       # only be used when explicitly requested
2760       if test "x$enable_dependency_tracking" = xyes; then
2761         continue
2762       else
2763         break
2764       fi
2765       ;;
2766     none) break ;;
2767     esac
2768     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2769     # mode.  It turns out that the SunPro C++ compiler does not properly
2770     # handle `-M -o', and we need to detect this.
2771     if depmode=$depmode \
2772        source=conftest.c object=conftest.o \
2773        depfile=conftest.Po tmpdepfile=conftest.TPo \
2774        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2775        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2776        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2777       am_cv_CC_dependencies_compiler_type=$depmode
2778       break
2779     fi
2780   done
2781
2782   cd ..
2783   rm -rf conftest.dir
2784 else
2785   am_cv_CC_dependencies_compiler_type=none
2786 fi
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2790 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2791 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2792
2793
2794 # Find the correct PATH separator.  Usually this is `:', but
2795 # DJGPP uses `;' like DOS.
2796 if test "X${PATH_SEPARATOR+set}" != Xset; then
2797   UNAME=${UNAME-`uname 2>/dev/null`}
2798   case X$UNAME in
2799     *-DOS) lt_cv_sys_path_separator=';' ;;
2800     *)     lt_cv_sys_path_separator=':' ;;
2801   esac
2802   PATH_SEPARATOR=$lt_cv_sys_path_separator
2803 fi
2804
2805
2806 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2807 if test "${with_gnu_ld+set}" = set; then
2808   withval="$with_gnu_ld"
2809   test "$withval" = no || with_gnu_ld=yes
2810 else
2811   with_gnu_ld=no
2812 fi;
2813 ac_prog=ld
2814 if test "$GCC" = yes; then
2815   # Check if gcc -print-prog-name=ld gives a path.
2816   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2817 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2818   case $host in
2819   *-*-mingw*)
2820     # gcc leaves a trailing carriage return which upsets mingw
2821     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2822   *)
2823     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2824   esac
2825   case $ac_prog in
2826     # Accept absolute paths.
2827     [\\/]* | [A-Za-z]:[\\/]*)
2828       re_direlt='/[^/][^/]*/\.\./'
2829       # Canonicalize the path of ld
2830       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2831       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2832         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2833       done
2834       test -z "$LD" && LD="$ac_prog"
2835       ;;
2836   "")
2837     # If it fails, then pretend we aren't using GCC.
2838     ac_prog=ld
2839     ;;
2840   *)
2841     # If it is relative, then search for the first ld in PATH.
2842     with_gnu_ld=unknown
2843     ;;
2844   esac
2845 elif test "$with_gnu_ld" = yes; then
2846   echo "$as_me:$LINENO: checking for GNU ld" >&5
2847 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2848 else
2849   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2850 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2851 fi
2852 if test "${lt_cv_path_LD+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   if test -z "$LD"; then
2856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2857   for ac_dir in $PATH; do
2858     test -z "$ac_dir" && ac_dir=.
2859     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2860       lt_cv_path_LD="$ac_dir/$ac_prog"
2861       # Check to see if the program is GNU ld.  I'd rather use --version,
2862       # but apparently some GNU ld's only accept -v.
2863       # Break only if it was the GNU/non-GNU ld that we prefer.
2864       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2865         test "$with_gnu_ld" != no && break
2866       else
2867         test "$with_gnu_ld" != yes && break
2868       fi
2869     fi
2870   done
2871   IFS="$ac_save_ifs"
2872 else
2873   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2874 fi
2875 fi
2876
2877 LD="$lt_cv_path_LD"
2878 if test -n "$LD"; then
2879   echo "$as_me:$LINENO: result: $LD" >&5
2880 echo "${ECHO_T}$LD" >&6
2881 else
2882   echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2884 fi
2885 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2886 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2887    { (exit 1); exit 1; }; }
2888 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2889 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2890 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2894 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2895   lt_cv_prog_gnu_ld=yes
2896 else
2897   lt_cv_prog_gnu_ld=no
2898 fi
2899 fi
2900 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2901 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2902 with_gnu_ld=$lt_cv_prog_gnu_ld
2903
2904
2905 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2906 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2907 if test "${lt_cv_ld_reload_flag+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   lt_cv_ld_reload_flag='-r'
2911 fi
2912 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2913 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2914 reload_flag=$lt_cv_ld_reload_flag
2915 test -n "$reload_flag" && reload_flag=" $reload_flag"
2916
2917 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2918 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2919 if test "${lt_cv_path_NM+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   if test -n "$NM"; then
2923   # Let the user override the test.
2924   lt_cv_path_NM="$NM"
2925 else
2926   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2927   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2928     test -z "$ac_dir" && ac_dir=.
2929     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2930     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2931       # Check to see if the nm accepts a BSD-compat flag.
2932       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2933       #   nm: unknown option "B" ignored
2934       # Tru64's nm complains that /dev/null is an invalid object file
2935       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2936         lt_cv_path_NM="$tmp_nm -B"
2937         break
2938       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2939         lt_cv_path_NM="$tmp_nm -p"
2940         break
2941       else
2942         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2943         continue # so that we can try to find one that supports BSD flags
2944       fi
2945     fi
2946   done
2947   IFS="$ac_save_ifs"
2948   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2949 fi
2950 fi
2951
2952 NM="$lt_cv_path_NM"
2953 echo "$as_me:$LINENO: result: $NM" >&5
2954 echo "${ECHO_T}$NM" >&6
2955
2956 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2957 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2958 LN_S=$as_ln_s
2959 if test "$LN_S" = "ln -s"; then
2960   echo "$as_me:$LINENO: result: yes" >&5
2961 echo "${ECHO_T}yes" >&6
2962 else
2963   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2964 echo "${ECHO_T}no, using $LN_S" >&6
2965 fi
2966
2967 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2968 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2969 if test "${lt_cv_deplibs_check_method+set}" = set; then
2970   echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972   lt_cv_file_magic_cmd='$MAGIC_CMD'
2973 lt_cv_file_magic_test_file=
2974 lt_cv_deplibs_check_method='unknown'
2975 # Need to set the preceding variable on all platforms that support
2976 # interlibrary dependencies.
2977 # 'none' -- dependencies not supported.
2978 # `unknown' -- same as none, but documents that we really don't know.
2979 # 'pass_all' -- all dependencies passed with no checks.
2980 # 'test_compile' -- check by making test program.
2981 # 'file_magic [[regex]]' -- check by looking for files in library path
2982 # which responds to the $file_magic_cmd with a given egrep regex.
2983 # If you have `file' or equivalent on your system and you're not sure
2984 # whether `pass_all' will *always* work, you probably want this one.
2985
2986 case $host_os in
2987 aix4* | aix5*)
2988   lt_cv_deplibs_check_method=pass_all
2989   ;;
2990
2991 beos*)
2992   lt_cv_deplibs_check_method=pass_all
2993   ;;
2994
2995 bsdi4*)
2996   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2997   lt_cv_file_magic_cmd='/usr/bin/file -L'
2998   lt_cv_file_magic_test_file=/shlib/libc.so
2999   ;;
3000
3001 cygwin* | mingw* | pw32*)
3002   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3003   lt_cv_file_magic_cmd='$OBJDUMP -f'
3004   ;;
3005
3006 darwin* | rhapsody*)
3007   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3008   lt_cv_file_magic_cmd='/usr/bin/file -L'
3009   case "$host_os" in
3010   rhapsody* | darwin1.[012])
3011     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3012     ;;
3013   *) # Darwin 1.3 on
3014     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3015     ;;
3016   esac
3017   ;;
3018
3019 freebsd*)
3020   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3021     case $host_cpu in
3022     i*86 )
3023       # Not sure whether the presence of OpenBSD here was a mistake.
3024       # Let's accept both of them until this is cleared up.
3025       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3026       lt_cv_file_magic_cmd=/usr/bin/file
3027       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3028       ;;
3029     esac
3030   else
3031     lt_cv_deplibs_check_method=pass_all
3032   fi
3033   ;;
3034
3035 gnu*)
3036   lt_cv_deplibs_check_method=pass_all
3037   ;;
3038
3039 hpux10.20*|hpux11*)
3040   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3041   lt_cv_file_magic_cmd=/usr/bin/file
3042   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3043   ;;
3044
3045 irix5* | irix6* | nonstopux*)
3046   case $host_os in
3047   irix5* | nonstopux*)
3048     # this will be overridden with pass_all, but let us keep it just in case
3049     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3050     ;;
3051   *)
3052     case $LD in
3053     *-32|*"-32 ") libmagic=32-bit;;
3054     *-n32|*"-n32 ") libmagic=N32;;
3055     *-64|*"-64 ") libmagic=64-bit;;
3056     *) libmagic=never-match;;
3057     esac
3058     # this will be overridden with pass_all, but let us keep it just in case
3059     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3060     ;;
3061   esac
3062   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3063   lt_cv_deplibs_check_method=pass_all
3064   ;;
3065
3066 # This must be Linux ELF.
3067 linux-gnu*)
3068   lt_cv_deplibs_check_method=pass_all
3069   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3070   ;;
3071
3072 netbsd*)
3073   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3074     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3075   else
3076     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3077   fi
3078   ;;
3079
3080 newos6*)
3081   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3082   lt_cv_file_magic_cmd=/usr/bin/file
3083   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3084   ;;
3085
3086 openbsd*)
3087   lt_cv_file_magic_cmd=/usr/bin/file
3088   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3089   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3090     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3091   else
3092     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3093   fi
3094   ;;
3095
3096 osf3* | osf4* | osf5*)
3097   # this will be overridden with pass_all, but let us keep it just in case
3098   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3099   lt_cv_file_magic_test_file=/shlib/libc.so
3100   lt_cv_deplibs_check_method=pass_all
3101   ;;
3102
3103 sco3.2v5*)
3104   lt_cv_deplibs_check_method=pass_all
3105   ;;
3106
3107 solaris*)
3108   lt_cv_deplibs_check_method=pass_all
3109   lt_cv_file_magic_test_file=/lib/libc.so
3110   ;;
3111
3112 sysv5uw[78]* | sysv4*uw2*)
3113   lt_cv_deplibs_check_method=pass_all
3114   ;;
3115
3116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3117   case $host_vendor in
3118   motorola)
3119     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]'
3120     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3121     ;;
3122   ncr)
3123     lt_cv_deplibs_check_method=pass_all
3124     ;;
3125   sequent)
3126     lt_cv_file_magic_cmd='/bin/file'
3127     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3128     ;;
3129   sni)
3130     lt_cv_file_magic_cmd='/bin/file'
3131     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3132     lt_cv_file_magic_test_file=/lib/libc.so
3133     ;;
3134   esac
3135   ;;
3136 esac
3137
3138 fi
3139 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3140 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3141 file_magic_cmd=$lt_cv_file_magic_cmd
3142 deplibs_check_method=$lt_cv_deplibs_check_method
3143
3144
3145
3146
3147
3148
3149
3150
3151 # Check for command to grab the raw symbol name followed by C symbol from nm.
3152 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3153 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3154 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157
3158 # These are sane defaults that work on at least a few old systems.
3159 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3160
3161 # Character class describing NM global symbol codes.
3162 symcode='[BCDEGRST]'
3163
3164 # Regexp to match symbols that can be accessed directly from C.
3165 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3166
3167 # Transform the above into a raw symbol and a C symbol.
3168 symxfrm='\1 \2\3 \3'
3169
3170 # Transform an extracted symbol line into a proper C declaration
3171 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3172
3173 # Transform an extracted symbol line into symbol name and symbol address
3174 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'"
3175
3176 # Define system-specific variables.
3177 case $host_os in
3178 aix*)
3179   symcode='[BCDT]'
3180   ;;
3181 cygwin* | mingw* | pw32*)
3182   symcode='[ABCDGISTW]'
3183   ;;
3184 hpux*) # Its linker distinguishes data from code symbols
3185   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3186   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'"
3187   ;;
3188 irix* | nonstopux*)
3189   symcode='[BCDEGRST]'
3190   ;;
3191 solaris* | sysv5*)
3192   symcode='[BDT]'
3193   ;;
3194 sysv4)
3195   symcode='[DFNSTU]'
3196   ;;
3197 esac
3198
3199 # Handle CRLF in mingw tool chain
3200 opt_cr=
3201 case $host_os in
3202 mingw*)
3203   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3204   ;;
3205 esac
3206
3207 # If we're using GNU nm, then use its standard symbol codes.
3208 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3209   symcode='[ABCDGISTW]'
3210 fi
3211
3212 # Try without a prefix undercore, then with it.
3213 for ac_symprfx in "" "_"; do
3214
3215   # Write the raw and C identifiers.
3216 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3217
3218   # Check to see that the pipe works correctly.
3219   pipe_works=no
3220   rm -f conftest*
3221   cat > conftest.$ac_ext <<EOF
3222 #ifdef __cplusplus
3223 extern "C" {
3224 #endif
3225 char nm_test_var;
3226 void nm_test_func(){}
3227 #ifdef __cplusplus
3228 }
3229 #endif
3230 int main(){nm_test_var='a';nm_test_func();return(0);}
3231 EOF
3232
3233   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234   (eval $ac_compile) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; then
3238     # Now try to grab the symbols.
3239     nlist=conftest.nm
3240     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3241   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } && test -s "$nlist"; then
3245       # Try sorting and uniquifying the output.
3246       if sort "$nlist" | uniq > "$nlist"T; then
3247         mv -f "$nlist"T "$nlist"
3248       else
3249         rm -f "$nlist"T
3250       fi
3251
3252       # Make sure that we snagged all the symbols we need.
3253       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3254         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3255           cat <<EOF > conftest.$ac_ext
3256 #ifdef __cplusplus
3257 extern "C" {
3258 #endif
3259
3260 EOF
3261           # Now generate the symbol file.
3262           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3263
3264           cat <<EOF >> conftest.$ac_ext
3265 #if defined (__STDC__) && __STDC__
3266 # define lt_ptr void *
3267 #else
3268 # define lt_ptr char *
3269 # define const
3270 #endif
3271
3272 /* The mapping between symbol names and symbols. */
3273 const struct {
3274   const char *name;
3275   lt_ptr address;
3276 }
3277 lt_preloaded_symbols[] =
3278 {
3279 EOF
3280           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3281           cat <<\EOF >> conftest.$ac_ext
3282   {0, (lt_ptr) 0}
3283 };
3284
3285 #ifdef __cplusplus
3286 }
3287 #endif
3288 EOF
3289           # Now try linking the two files.
3290           mv conftest.$ac_objext conftstm.$ac_objext
3291           save_LIBS="$LIBS"
3292           save_CFLAGS="$CFLAGS"
3293           LIBS="conftstm.$ac_objext"
3294           CFLAGS="$CFLAGS$no_builtin_flag"
3295           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296   (eval $ac_link) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } && test -s conftest; then
3300             pipe_works=yes
3301           fi
3302           LIBS="$save_LIBS"
3303           CFLAGS="$save_CFLAGS"
3304         else
3305           echo "cannot find nm_test_func in $nlist" >&5
3306         fi
3307       else
3308         echo "cannot find nm_test_var in $nlist" >&5
3309       fi
3310     else
3311       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3312     fi
3313   else
3314     echo "$progname: failed program was:" >&5
3315     cat conftest.$ac_ext >&5
3316   fi
3317   rm -f conftest* conftst*
3318
3319   # Do not use the global_symbol_pipe unless it works.
3320   if test "$pipe_works" = yes; then
3321     break
3322   else
3323     lt_cv_sys_global_symbol_pipe=
3324   fi
3325 done
3326
3327 fi
3328
3329 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3330 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3331   global_symbol_to_cdecl=
3332   global_symbol_to_c_name_address=
3333 else
3334   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3335   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3336 fi
3337 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3338 then
3339   echo "$as_me:$LINENO: result: failed" >&5
3340 echo "${ECHO_T}failed" >&6
3341 else
3342   echo "$as_me:$LINENO: result: ok" >&5
3343 echo "${ECHO_T}ok" >&6
3344 fi
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3353 # On Suns, sometimes $CPP names a directory.
3354 if test -n "$CPP" && test -d "$CPP"; then
3355   CPP=
3356 fi
3357 if test -z "$CPP"; then
3358   if test "${ac_cv_prog_CPP+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361       # Double quotes because CPP needs to be expanded
3362     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363     do
3364       ac_preproc_ok=false
3365 for ac_c_preproc_warn_flag in '' yes
3366 do
3367   # Use a header file that comes with gcc, so configuring glibc
3368   # with a fresh cross-compiler works.
3369   # On the NeXT, cc -E runs the code through the compiler's parser,
3370   # not just through cpp. "Syntax error" is here to catch this case.
3371   cat >conftest.$ac_ext <<_ACEOF
3372 #line $LINENO "configure"
3373 #include "confdefs.h"
3374 #include <assert.h>
3375                      Syntax error
3376 _ACEOF
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379   ac_status=$?
3380   egrep -v '^ *\+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } >/dev/null; then
3385   if test -s conftest.err; then
3386     ac_cpp_err=$ac_c_preproc_warn_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397   cat conftest.$ac_ext >&5
3398   # Broken: fails on valid input.
3399 continue
3400 fi
3401 rm -f conftest.err conftest.$ac_ext
3402
3403   # OK, works on sane cases.  Now check whether non-existent headers
3404   # can be detected and how.
3405   cat >conftest.$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3407 #include "confdefs.h"
3408 #include <ac_nonexistent.h>
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412   ac_status=$?
3413   egrep -v '^ *\+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null; then
3418   if test -s conftest.err; then
3419     ac_cpp_err=$ac_c_preproc_warn_flag
3420   else
3421     ac_cpp_err=
3422   fi
3423 else
3424   ac_cpp_err=yes
3425 fi
3426 if test -z "$ac_cpp_err"; then
3427   # Broken: success on invalid input.
3428 continue
3429 else
3430   echo "$as_me: failed program was:" >&5
3431   cat conftest.$ac_ext >&5
3432   # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438 done
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3442   break
3443 fi
3444
3445     done
3446     ac_cv_prog_CPP=$CPP
3447
3448 fi
3449   CPP=$ac_cv_prog_CPP
3450 else
3451   ac_cv_prog_CPP=$CPP
3452 fi
3453 echo "$as_me:$LINENO: result: $CPP" >&5
3454 echo "${ECHO_T}$CPP" >&6
3455 ac_preproc_ok=false
3456 for ac_c_preproc_warn_flag in '' yes
3457 do
3458   # Use a header file that comes with gcc, so configuring glibc
3459   # with a fresh cross-compiler works.
3460   # On the NeXT, cc -E runs the code through the compiler's parser,
3461   # not just through cpp. "Syntax error" is here to catch this case.
3462   cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 #include "confdefs.h"
3465 #include <assert.h>
3466                      Syntax error
3467 _ACEOF
3468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3470   ac_status=$?
3471   egrep -v '^ *\+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } >/dev/null; then
3476   if test -s conftest.err; then
3477     ac_cpp_err=$ac_c_preproc_warn_flag
3478   else
3479     ac_cpp_err=
3480   fi
3481 else
3482   ac_cpp_err=yes
3483 fi
3484 if test -z "$ac_cpp_err"; then
3485   :
3486 else
3487   echo "$as_me: failed program was:" >&5
3488   cat conftest.$ac_ext >&5
3489   # Broken: fails on valid input.
3490 continue
3491 fi
3492 rm -f conftest.err conftest.$ac_ext
3493
3494   # OK, works on sane cases.  Now check whether non-existent headers
3495   # can be detected and how.
3496   cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3498 #include "confdefs.h"
3499 #include <ac_nonexistent.h>
3500 _ACEOF
3501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3503   ac_status=$?
3504   egrep -v '^ *\+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } >/dev/null; then
3509   if test -s conftest.err; then
3510     ac_cpp_err=$ac_c_preproc_warn_flag
3511   else
3512     ac_cpp_err=
3513   fi
3514 else
3515   ac_cpp_err=yes
3516 fi
3517 if test -z "$ac_cpp_err"; then
3518   # Broken: success on invalid input.
3519 continue
3520 else
3521   echo "$as_me: failed program was:" >&5
3522   cat conftest.$ac_ext >&5
3523   # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3526 fi
3527 rm -f conftest.err conftest.$ac_ext
3528
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3533   :
3534 else
3535   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3536 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3537    { (exit 1); exit 1; }; }
3538 fi
3539
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546
3547 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3549 if test "${ac_cv_header_stdc+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3555 #include <stdlib.h>
3556 #include <stdarg.h>
3557 #include <string.h>
3558 #include <float.h>
3559
3560 _ACEOF
3561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3563   ac_status=$?
3564   egrep -v '^ *\+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } >/dev/null; then
3569   if test -s conftest.err; then
3570     ac_cpp_err=$ac_c_preproc_warn_flag
3571   else
3572     ac_cpp_err=
3573   fi
3574 else
3575   ac_cpp_err=yes
3576 fi
3577 if test -z "$ac_cpp_err"; then
3578   ac_cv_header_stdc=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581   cat conftest.$ac_ext >&5
3582   ac_cv_header_stdc=no
3583 fi
3584 rm -f conftest.err conftest.$ac_ext
3585
3586 if test $ac_cv_header_stdc = yes; then
3587   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3588   cat >conftest.$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 #include "confdefs.h"
3591 #include <string.h>
3592
3593 _ACEOF
3594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3595   egrep "memchr" >/dev/null 2>&1; then
3596   :
3597 else
3598   ac_cv_header_stdc=no
3599 fi
3600 rm -f conftest*
3601
3602 fi
3603
3604 if test $ac_cv_header_stdc = yes; then
3605   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3606   cat >conftest.$ac_ext <<_ACEOF
3607 #line $LINENO "configure"
3608 #include "confdefs.h"
3609 #include <stdlib.h>
3610
3611 _ACEOF
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613   egrep "free" >/dev/null 2>&1; then
3614   :
3615 else
3616   ac_cv_header_stdc=no
3617 fi
3618 rm -f conftest*
3619
3620 fi
3621
3622 if test $ac_cv_header_stdc = yes; then
3623   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3624   if test "$cross_compiling" = yes; then
3625   :
3626 else
3627   cat >conftest.$ac_ext <<_ACEOF
3628 #line $LINENO "configure"
3629 #include "confdefs.h"
3630 #include <ctype.h>
3631 #if ((' ' & 0x0FF) == 0x020)
3632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3634 #else
3635 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3636                      || ('j' <= (c) && (c) <= 'r') \
3637                      || ('s' <= (c) && (c) <= 'z'))
3638 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3639 #endif
3640
3641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3642 int
3643 main ()
3644 {
3645   int i;
3646   for (i = 0; i < 256; i++)
3647     if (XOR (islower (i), ISLOWER (i))
3648         || toupper (i) != TOUPPER (i))
3649       exit(2);
3650   exit (0);
3651 }
3652 _ACEOF
3653 rm -f conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655   (eval $ac_link) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; }; then
3664   :
3665 else
3666   echo "$as_me: program exited with status $ac_status" >&5
3667 echo "$as_me: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 ( exit $ac_status )
3670 ac_cv_header_stdc=no
3671 fi
3672 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3673 fi
3674 fi
3675 fi
3676 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3677 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3678 if test $ac_cv_header_stdc = yes; then
3679
3680 cat >>confdefs.h <<\_ACEOF
3681 #define STDC_HEADERS 1
3682 _ACEOF
3683
3684 fi
3685
3686 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3697                   inttypes.h stdint.h unistd.h
3698 do
3699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3700 echo "$as_me:$LINENO: checking for $ac_header" >&5
3701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   cat >conftest.$ac_ext <<_ACEOF
3706 #line $LINENO "configure"
3707 #include "confdefs.h"
3708 $ac_includes_default
3709
3710 #include <$ac_header>
3711 _ACEOF
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -s conftest.$ac_objext'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; }; then
3724   eval "$as_ac_Header=yes"
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 eval "$as_ac_Header=no"
3729 fi
3730 rm -f conftest.$ac_objext conftest.$ac_ext
3731 fi
3732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3735   cat >>confdefs.h <<_ACEOF
3736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3737 _ACEOF
3738
3739 fi
3740
3741 done
3742
3743
3744
3745 for ac_header in dlfcn.h
3746 do
3747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749   echo "$as_me:$LINENO: checking for $ac_header" >&5
3750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 fi
3754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3756 else
3757   # Is the header compilable?
3758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3760 cat >conftest.$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3762 #include "confdefs.h"
3763 $ac_includes_default
3764 #include <$ac_header>
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768   (eval $ac_compile) 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); } &&
3772          { ac_try='test -s conftest.$ac_objext'
3773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774   (eval $ac_try) 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); }; }; then
3778   ac_header_compiler=yes
3779 else
3780   echo "$as_me: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 ac_header_compiler=no
3783 fi
3784 rm -f conftest.$ac_objext conftest.$ac_ext
3785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3786 echo "${ECHO_T}$ac_header_compiler" >&6
3787
3788 # Is the header present?
3789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3791 cat >conftest.$ac_ext <<_ACEOF
3792 #line $LINENO "configure"
3793 #include "confdefs.h"
3794 #include <$ac_header>
3795 _ACEOF
3796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3798   ac_status=$?
3799   egrep -v '^ *\+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } >/dev/null; then
3804   if test -s conftest.err; then
3805     ac_cpp_err=$ac_c_preproc_warn_flag
3806   else
3807     ac_cpp_err=
3808   fi
3809 else
3810   ac_cpp_err=yes
3811 fi
3812 if test -z "$ac_cpp_err"; then
3813   ac_header_preproc=yes
3814 else
3815   echo "$as_me: failed program was:" >&5
3816   cat conftest.$ac_ext >&5
3817   ac_header_preproc=no
3818 fi
3819 rm -f conftest.err conftest.$ac_ext
3820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3821 echo "${ECHO_T}$ac_header_preproc" >&6
3822
3823 # So?  What about this header?
3824 case $ac_header_compiler:$ac_header_preproc in
3825   yes:no )
3826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3830   no:yes )
3831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3833     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3837 esac
3838 echo "$as_me:$LINENO: checking for $ac_header" >&5
3839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   eval "$as_ac_Header=$ac_header_preproc"
3844 fi
3845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3847
3848 fi
3849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3850   cat >>confdefs.h <<_ACEOF
3851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852 _ACEOF
3853
3854 fi
3855
3856 done
3857
3858
3859
3860
3861
3862 # Only perform the check for file, if the check method requires it
3863 case $deplibs_check_method in
3864 file_magic*)
3865   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3866     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3867 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   case $MAGIC_CMD in
3872   /*)
3873   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3874   ;;
3875   ?:/*)
3876   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3877   ;;
3878   *)
3879   ac_save_MAGIC_CMD="$MAGIC_CMD"
3880   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3881   ac_dummy="/usr/bin:$PATH"
3882   for ac_dir in $ac_dummy; do
3883     test -z "$ac_dir" && ac_dir=.
3884     if test -f $ac_dir/${ac_tool_prefix}file; then
3885       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3886       if test -n "$file_magic_test_file"; then
3887         case $deplibs_check_method in
3888         "file_magic "*)
3889           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3890           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3891           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3892             egrep "$file_magic_regex" > /dev/null; then
3893             :
3894           else
3895             cat <<EOF 1>&2
3896
3897 *** Warning: the command libtool uses to detect shared libraries,
3898 *** $file_magic_cmd, produces output that libtool cannot recognize.
3899 *** The result is that libtool may fail to recognize shared libraries
3900 *** as such.  This will affect the creation of libtool libraries that
3901 *** depend on shared libraries, but programs linked with such libtool
3902 *** libraries will work regardless of this problem.  Nevertheless, you
3903 *** may want to report the problem to your system manager and/or to
3904 *** bug-libtool@gnu.org
3905
3906 EOF
3907           fi ;;
3908         esac
3909       fi
3910       break
3911     fi
3912   done
3913   IFS="$ac_save_ifs"
3914   MAGIC_CMD="$ac_save_MAGIC_CMD"
3915   ;;
3916 esac
3917 fi
3918
3919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3920 if test -n "$MAGIC_CMD"; then
3921   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3922 echo "${ECHO_T}$MAGIC_CMD" >&6
3923 else
3924   echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3926 fi
3927
3928 if test -z "$lt_cv_path_MAGIC_CMD"; then
3929   if test -n "$ac_tool_prefix"; then
3930     echo "$as_me:$LINENO: checking for file" >&5
3931 echo $ECHO_N "checking for file... $ECHO_C" >&6
3932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   case $MAGIC_CMD in
3936   /*)
3937   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3938   ;;
3939   ?:/*)
3940   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3941   ;;
3942   *)
3943   ac_save_MAGIC_CMD="$MAGIC_CMD"
3944   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3945   ac_dummy="/usr/bin:$PATH"
3946   for ac_dir in $ac_dummy; do
3947     test -z "$ac_dir" && ac_dir=.
3948     if test -f $ac_dir/file; then
3949       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3950       if test -n "$file_magic_test_file"; then
3951         case $deplibs_check_method in
3952         "file_magic "*)
3953           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3954           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3955           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3956             egrep "$file_magic_regex" > /dev/null; then
3957             :
3958           else
3959             cat <<EOF 1>&2
3960
3961 *** Warning: the command libtool uses to detect shared libraries,
3962 *** $file_magic_cmd, produces output that libtool cannot recognize.
3963 *** The result is that libtool may fail to recognize shared libraries
3964 *** as such.  This will affect the creation of libtool libraries that
3965 *** depend on shared libraries, but programs linked with such libtool
3966 *** libraries will work regardless of this problem.  Nevertheless, you
3967 *** may want to report the problem to your system manager and/or to
3968 *** bug-libtool@gnu.org
3969
3970 EOF
3971           fi ;;
3972         esac
3973       fi
3974       break
3975     fi
3976   done
3977   IFS="$ac_save_ifs"
3978   MAGIC_CMD="$ac_save_MAGIC_CMD"
3979   ;;
3980 esac
3981 fi
3982
3983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3984 if test -n "$MAGIC_CMD"; then
3985   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3986 echo "${ECHO_T}$MAGIC_CMD" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   else
3993     MAGIC_CMD=:
3994   fi
3995 fi
3996
3997   fi
3998   ;;
3999 esac
4000
4001 if test -n "$ac_tool_prefix"; then
4002   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_RANLIB+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$RANLIB"; then
4010   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_exec_ext in '' $ac_executable_extensions; do
4018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025
4026 fi
4027 fi
4028 RANLIB=$ac_cv_prog_RANLIB
4029 if test -n "$RANLIB"; then
4030   echo "$as_me:$LINENO: result: $RANLIB" >&5
4031 echo "${ECHO_T}$RANLIB" >&6
4032 else
4033   echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4035 fi
4036
4037 fi
4038 if test -z "$ac_cv_prog_RANLIB"; then
4039   ac_ct_RANLIB=$RANLIB
4040   # Extract the first word of "ranlib", so it can be a program name with args.
4041 set dummy ranlib; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   if test -n "$ac_ct_RANLIB"; then
4048   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053   IFS=$as_save_IFS
4054   test -z "$as_dir" && as_dir=.
4055   for ac_exec_ext in '' $ac_executable_extensions; do
4056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057     ac_cv_prog_ac_ct_RANLIB="ranlib"
4058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059     break 2
4060   fi
4061 done
4062 done
4063
4064   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4065 fi
4066 fi
4067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4068 if test -n "$ac_ct_RANLIB"; then
4069   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4070 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075
4076   RANLIB=$ac_ct_RANLIB
4077 else
4078   RANLIB="$ac_cv_prog_RANLIB"
4079 fi
4080
4081 if test -n "$ac_tool_prefix"; then
4082   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$STRIP"; then
4090   ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 fi
4107 fi
4108 STRIP=$ac_cv_prog_STRIP
4109 if test -n "$STRIP"; then
4110   echo "$as_me:$LINENO: result: $STRIP" >&5
4111 echo "${ECHO_T}$STRIP" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117 fi
4118 if test -z "$ac_cv_prog_STRIP"; then
4119   ac_ct_STRIP=$STRIP
4120   # Extract the first word of "strip", so it can be a program name with args.
4121 set dummy strip; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test -n "$ac_ct_STRIP"; then
4128   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135   for ac_exec_ext in '' $ac_executable_extensions; do
4136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137     ac_cv_prog_ac_ct_STRIP="strip"
4138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143
4144   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4145 fi
4146 fi
4147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4148 if test -n "$ac_ct_STRIP"; then
4149   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4150 echo "${ECHO_T}$ac_ct_STRIP" >&6
4151 else
4152   echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4154 fi
4155
4156   STRIP=$ac_ct_STRIP
4157 else
4158   STRIP="$ac_cv_prog_STRIP"
4159 fi
4160
4161
4162 enable_dlopen=no
4163 enable_win32_dll=no
4164
4165 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4166 if test "${enable_libtool_lock+set}" = set; then
4167   enableval="$enable_libtool_lock"
4168
4169 fi;
4170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4171
4172 # Some flags need to be propagated to the compiler or linker for good
4173 # libtool support.
4174 case $host in
4175 *-*-irix6*)
4176   # Find out which ABI we are using.
4177   echo '#line 4177 "configure"' > conftest.$ac_ext
4178   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179   (eval $ac_compile) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; then
4183     case `/usr/bin/file conftest.$ac_objext` in
4184     *32-bit*)
4185       LD="${LD-ld} -32"
4186       ;;
4187     *N32*)
4188       LD="${LD-ld} -n32"
4189       ;;
4190     *64-bit*)
4191       LD="${LD-ld} -64"
4192       ;;
4193     esac
4194   fi
4195   rm -rf conftest*
4196   ;;
4197
4198 *-*-sco3.2v5*)
4199   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4200   SAVE_CFLAGS="$CFLAGS"
4201   CFLAGS="$CFLAGS -belf"
4202   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4203 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4204 if test "${lt_cv_cc_needs_belf+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207
4208
4209      ac_ext=c
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215      cat >conftest.$ac_ext <<_ACEOF
4216 #line $LINENO "configure"
4217 #include "confdefs.h"
4218
4219 #ifdef F77_DUMMY_MAIN
4220 #  ifdef __cplusplus
4221      extern "C"
4222 #  endif
4223    int F77_DUMMY_MAIN() { return 1; }
4224 #endif
4225 int
4226 main ()
4227 {
4228
4229   ;
4230   return 0;
4231 }
4232 _ACEOF
4233 rm -f conftest.$ac_objext conftest$ac_exeext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4235   (eval $ac_link) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } &&
4239          { ac_try='test -s conftest$ac_exeext'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   lt_cv_cc_needs_belf=yes
4246 else
4247   echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 lt_cv_cc_needs_belf=no
4250 fi
4251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4252      ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257
4258 fi
4259 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4260 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4261   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4262     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4263     CFLAGS="$SAVE_CFLAGS"
4264   fi
4265   ;;
4266
4267
4268 esac
4269
4270 # Sed substitution that helps us do robust quoting.  It backslashifies
4271 # metacharacters that are still active within double-quoted strings.
4272 Xsed='sed -e s/^X//'
4273 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4274
4275 # Same as above, but do not quote variable references.
4276 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4277
4278 # Sed substitution to delay expansion of an escaped shell variable in a
4279 # double_quote_subst'ed string.
4280 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4281
4282 # Constants:
4283 rm="rm -f"
4284
4285 # Global variables:
4286 default_ofile=libtool
4287 can_build_shared=yes
4288
4289 # All known linkers require a `.a' archive for static linking (except M$VC,
4290 # which needs '.lib').
4291 libext=a
4292 ltmain="$ac_aux_dir/ltmain.sh"
4293 ofile="$default_ofile"
4294 with_gnu_ld="$lt_cv_prog_gnu_ld"
4295 need_locks="$enable_libtool_lock"
4296
4297 old_CC="$CC"
4298 old_CFLAGS="$CFLAGS"
4299
4300 # Set sane defaults for various variables
4301 test -z "$AR" && AR=ar
4302 test -z "$AR_FLAGS" && AR_FLAGS=cru
4303 test -z "$AS" && AS=as
4304 test -z "$CC" && CC=cc
4305 test -z "$DLLTOOL" && DLLTOOL=dlltool
4306 test -z "$LD" && LD=ld
4307 test -z "$LN_S" && LN_S="ln -s"
4308 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4309 test -z "$NM" && NM=nm
4310 test -z "$OBJDUMP" && OBJDUMP=objdump
4311 test -z "$RANLIB" && RANLIB=:
4312 test -z "$STRIP" && STRIP=:
4313 test -z "$ac_objext" && ac_objext=o
4314
4315 if test x"$host" != x"$build"; then
4316   ac_tool_prefix=${host_alias}-
4317 else
4318   ac_tool_prefix=
4319 fi
4320
4321 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4322 case $host_os in
4323 linux-gnu*) ;;
4324 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4325 esac
4326
4327 case $host_os in
4328 aix3*)
4329   # AIX sometimes has problems with the GCC collect2 program.  For some
4330   # reason, if we set the COLLECT_NAMES environment variable, the problems
4331   # vanish in a puff of smoke.
4332   if test "X${COLLECT_NAMES+set}" != Xset; then
4333     COLLECT_NAMES=
4334     export COLLECT_NAMES
4335   fi
4336   ;;
4337 esac
4338
4339 # Determine commands to create old-style static archives.
4340 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4341 old_postinstall_cmds='chmod 644 $oldlib'
4342 old_postuninstall_cmds=
4343
4344 if test -n "$RANLIB"; then
4345   case $host_os in
4346   openbsd*)
4347     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4348     ;;
4349   *)
4350     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4351     ;;
4352   esac
4353   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4354 fi
4355
4356 # Allow CC to be a program name with arguments.
4357 set dummy $CC
4358 compiler="$2"
4359
4360 echo "$as_me:$LINENO: checking for objdir" >&5
4361 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4362 rm -f .libs 2>/dev/null
4363 mkdir .libs 2>/dev/null
4364 if test -d .libs; then
4365   objdir=.libs
4366 else
4367   # MS-DOS does not allow filenames that begin with a dot.
4368   objdir=_libs
4369 fi
4370 rmdir .libs 2>/dev/null
4371 echo "$as_me:$LINENO: result: $objdir" >&5
4372 echo "${ECHO_T}$objdir" >&6
4373
4374
4375
4376 # Check whether --with-pic or --without-pic was given.
4377 if test "${with_pic+set}" = set; then
4378   withval="$with_pic"
4379   pic_mode="$withval"
4380 else
4381   pic_mode=default
4382 fi;
4383 test -z "$pic_mode" && pic_mode=default
4384
4385 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4386 # in isolation, and that seeing it set (from the cache) indicates that
4387 # the associated values are set (in the cache) correctly too.
4388 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4389 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4390 if test "${lt_cv_prog_cc_pic+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393    lt_cv_prog_cc_pic=
4394   lt_cv_prog_cc_shlib=
4395   lt_cv_prog_cc_wl=
4396   lt_cv_prog_cc_static=
4397   lt_cv_prog_cc_no_builtin=
4398   lt_cv_prog_cc_can_build_shared=$can_build_shared
4399
4400   if test "$GCC" = yes; then
4401     lt_cv_prog_cc_wl='-Wl,'
4402     lt_cv_prog_cc_static='-static'
4403
4404     case $host_os in
4405     aix*)
4406       # Below there is a dirty hack to force normal static linking with -ldl
4407       # The problem is because libdl dynamically linked with both libc and
4408       # libC (AIX C++ library), which obviously doesn't included in libraries
4409       # list by gcc. This cause undefined symbols with -static flags.
4410       # This hack allows C programs to be linked with "-static -ldl", but
4411       # not sure about C++ programs.
4412       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4413       ;;
4414     amigaos*)
4415       # FIXME: we need at least 68020 code to build shared libraries, but
4416       # adding the `-m68020' flag to GCC prevents building anything better,
4417       # like `-m68040'.
4418       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4419       ;;
4420     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4421       # PIC is the default for these OSes.
4422       ;;
4423     darwin* | rhapsody*)
4424       # PIC is the default on this platform
4425       # Common symbols not allowed in MH_DYLIB files
4426       lt_cv_prog_cc_pic='-fno-common'
4427       ;;
4428     cygwin* | mingw* | pw32* | os2*)
4429       # This hack is so that the source file can tell whether it is being
4430       # built for inclusion in a dll (and should export symbols for example).
4431       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4432       ;;
4433     sysv4*MP*)
4434       if test -d /usr/nec; then
4435          lt_cv_prog_cc_pic=-Kconform_pic
4436       fi
4437       ;;
4438     *)
4439       lt_cv_prog_cc_pic='-fPIC'
4440       ;;
4441     esac
4442   else
4443     # PORTME Check for PIC flags for the system compiler.
4444     case $host_os in
4445     aix3* | aix4* | aix5*)
4446       lt_cv_prog_cc_wl='-Wl,'
4447       # All AIX code is PIC.
4448       if test "$host_cpu" = ia64; then
4449         # AIX 5 now supports IA64 processor
4450         lt_cv_prog_cc_static='-Bstatic'
4451       else
4452         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4453       fi
4454       ;;
4455
4456     hpux9* | hpux10* | hpux11*)
4457       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4458       lt_cv_prog_cc_wl='-Wl,'
4459       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4460       lt_cv_prog_cc_pic='+Z'
4461       ;;
4462
4463     irix5* | irix6* | nonstopux*)
4464       lt_cv_prog_cc_wl='-Wl,'
4465       lt_cv_prog_cc_static='-non_shared'
4466       # PIC (with -KPIC) is the default.
4467       ;;
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
4475     newsos6)
4476       lt_cv_prog_cc_pic='-KPIC'
4477       lt_cv_prog_cc_static='-Bstatic'
4478       ;;
4479
4480     osf3* | osf4* | osf5*)
4481       # All OSF/1 code is PIC.
4482       lt_cv_prog_cc_wl='-Wl,'
4483       lt_cv_prog_cc_static='-non_shared'
4484       ;;
4485
4486     sco3.2v5*)
4487       lt_cv_prog_cc_pic='-Kpic'
4488       lt_cv_prog_cc_static='-dn'
4489       lt_cv_prog_cc_shlib='-belf'
4490       ;;
4491
4492     solaris*)
4493       lt_cv_prog_cc_pic='-KPIC'
4494       lt_cv_prog_cc_static='-Bstatic'
4495       lt_cv_prog_cc_wl='-Wl,'
4496       ;;
4497
4498     sunos4*)
4499       lt_cv_prog_cc_pic='-PIC'
4500       lt_cv_prog_cc_static='-Bstatic'
4501       lt_cv_prog_cc_wl='-Qoption ld '
4502       ;;
4503
4504     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4505       lt_cv_prog_cc_pic='-KPIC'
4506       lt_cv_prog_cc_static='-Bstatic'
4507       if test "x$host_vendor" = xsni; then
4508         lt_cv_prog_cc_wl='-LD'
4509       else
4510         lt_cv_prog_cc_wl='-Wl,'
4511       fi
4512       ;;
4513
4514     uts4*)
4515       lt_cv_prog_cc_pic='-pic'
4516       lt_cv_prog_cc_static='-Bstatic'
4517       ;;
4518
4519     sysv4*MP*)
4520       if test -d /usr/nec ;then
4521         lt_cv_prog_cc_pic='-Kconform_pic'
4522         lt_cv_prog_cc_static='-Bstatic'
4523       fi
4524       ;;
4525
4526     *)
4527       lt_cv_prog_cc_can_build_shared=no
4528       ;;
4529     esac
4530   fi
4531
4532 fi
4533
4534 if test -z "$lt_cv_prog_cc_pic"; then
4535   echo "$as_me:$LINENO: result: none" >&5
4536 echo "${ECHO_T}none" >&6
4537 else
4538   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4539 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4540
4541   # Check to make sure the pic_flag actually works.
4542   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4543 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4544   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547       save_CFLAGS="$CFLAGS"
4548     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4549     cat >conftest.$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4551 #include "confdefs.h"
4552
4553 #ifdef F77_DUMMY_MAIN
4554 #  ifdef __cplusplus
4555      extern "C"
4556 #  endif
4557    int F77_DUMMY_MAIN() { return 1; }
4558 #endif
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569   (eval $ac_compile) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } &&
4573          { ac_try='test -s conftest.$ac_objext'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579         case $host_os in
4580       hpux9* | hpux10* | hpux11*)
4581         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4582         # they create non-PIC objects.  So, if there were any warnings, we
4583         # assume that PIC is not supported.
4584         if test -s conftest.err; then
4585           lt_cv_prog_cc_pic_works=no
4586         else
4587           lt_cv_prog_cc_pic_works=yes
4588         fi
4589         ;;
4590       *)
4591         lt_cv_prog_cc_pic_works=yes
4592         ;;
4593       esac
4594
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4598       lt_cv_prog_cc_pic_works=no
4599
4600 fi
4601 rm -f conftest.$ac_objext conftest.$ac_ext
4602     CFLAGS="$save_CFLAGS"
4603
4604 fi
4605
4606
4607   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4608     lt_cv_prog_cc_pic=
4609     lt_cv_prog_cc_can_build_shared=no
4610   else
4611     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4612   fi
4613
4614   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4615 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4616 fi
4617
4618 # Check for any special shared library compilation flags.
4619 if test -n "$lt_cv_prog_cc_shlib"; then
4620   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4621 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4622   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4623   else
4624    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4625 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4626     lt_cv_prog_cc_can_build_shared=no
4627   fi
4628 fi
4629
4630 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4631 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4632 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635     lt_cv_prog_cc_static_works=no
4636   save_LDFLAGS="$LDFLAGS"
4637   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4638   cat >conftest.$ac_ext <<_ACEOF
4639 #line $LINENO "configure"
4640 #include "confdefs.h"
4641
4642 #ifdef F77_DUMMY_MAIN
4643 #  ifdef __cplusplus
4644      extern "C"
4645 #  endif
4646    int F77_DUMMY_MAIN() { return 1; }
4647 #endif
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658   (eval $ac_link) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } &&
4662          { ac_try='test -s conftest$ac_exeext'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; }; then
4668   lt_cv_prog_cc_static_works=yes
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672 fi
4673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4674   LDFLAGS="$save_LDFLAGS"
4675
4676 fi
4677
4678
4679 # Belt *and* braces to stop my trousers falling down:
4680 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4681 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4682 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4683
4684 pic_flag="$lt_cv_prog_cc_pic"
4685 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4686 wl="$lt_cv_prog_cc_wl"
4687 link_static_flag="$lt_cv_prog_cc_static"
4688 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4689 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4690
4691
4692 # Check to see if options -o and -c are simultaneously supported by compiler
4693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4695 if test "${lt_cv_compiler_c_o+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698
4699 $rm -r conftest 2>/dev/null
4700 mkdir conftest
4701 cd conftest
4702 echo "int some_variable = 0;" > conftest.$ac_ext
4703 mkdir out
4704 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4705 # that will create temporary files in the current directory regardless of
4706 # the output directory.  Thus, making CWD read-only will cause this test
4707 # to fail, enabling locking or at least warning the user not to do parallel
4708 # builds.
4709 chmod -w .
4710 save_CFLAGS="$CFLAGS"
4711 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4712 compiler_c_o=no
4713 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4714   # The compiler can only warn and ignore the option if not recognized
4715   # So say no if there are warnings
4716   if test -s out/conftest.err; then
4717     lt_cv_compiler_c_o=no
4718   else
4719     lt_cv_compiler_c_o=yes
4720   fi
4721 else
4722   # Append any errors to the config.log.
4723   cat out/conftest.err 1>&5
4724   lt_cv_compiler_c_o=no
4725 fi
4726 CFLAGS="$save_CFLAGS"
4727 chmod u+w .
4728 $rm conftest* out/*
4729 rmdir out
4730 cd ..
4731 rmdir conftest
4732 $rm -r conftest 2>/dev/null
4733
4734 fi
4735
4736 compiler_c_o=$lt_cv_compiler_c_o
4737 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4738 echo "${ECHO_T}$compiler_c_o" >&6
4739
4740 if test x"$compiler_c_o" = x"yes"; then
4741   # Check to see if we can write to a .lo
4742   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4743 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4744   if test "${lt_cv_compiler_o_lo+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747
4748   lt_cv_compiler_o_lo=no
4749   save_CFLAGS="$CFLAGS"
4750   CFLAGS="$CFLAGS -c -o conftest.lo"
4751   save_objext="$ac_objext"
4752   ac_objext=lo
4753   cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 #include "confdefs.h"
4756
4757 #ifdef F77_DUMMY_MAIN
4758 #  ifdef __cplusplus
4759      extern "C"
4760 #  endif
4761    int F77_DUMMY_MAIN() { return 1; }
4762 #endif
4763 int
4764 main ()
4765 {
4766 int some_variable = 0;
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } &&
4777          { ac_try='test -s conftest.$ac_objext'
4778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779   (eval $ac_try) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); }; }; then
4783       # The compiler can only warn and ignore the option if not recognized
4784     # So say no if there are warnings
4785     if test -s conftest.err; then
4786       lt_cv_compiler_o_lo=no
4787     else
4788       lt_cv_compiler_o_lo=yes
4789     fi
4790
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 fi
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4796   ac_objext="$save_objext"
4797   CFLAGS="$save_CFLAGS"
4798
4799 fi
4800
4801   compiler_o_lo=$lt_cv_compiler_o_lo
4802   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4803 echo "${ECHO_T}$compiler_o_lo" >&6
4804 else
4805   compiler_o_lo=no
4806 fi
4807
4808 # Check to see if we can do hard links to lock some files if needed
4809 hard_links="nottested"
4810 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4811   # do not overwrite the value of need_locks provided by the user
4812   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4814   hard_links=yes
4815   $rm conftest*
4816   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4817   touch conftest.a
4818   ln conftest.a conftest.b 2>&5 || hard_links=no
4819   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4820   echo "$as_me:$LINENO: result: $hard_links" >&5
4821 echo "${ECHO_T}$hard_links" >&6
4822   if test "$hard_links" = no; then
4823     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4825     need_locks=warn
4826   fi
4827 else
4828   need_locks=no
4829 fi
4830
4831 if test "$GCC" = yes; then
4832   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4833   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4834 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4835   echo "int some_variable = 0;" > conftest.$ac_ext
4836   save_CFLAGS="$CFLAGS"
4837   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4838   compiler_rtti_exceptions=no
4839   cat >conftest.$ac_ext <<_ACEOF
4840 #line $LINENO "configure"
4841 #include "confdefs.h"
4842
4843 #ifdef F77_DUMMY_MAIN
4844 #  ifdef __cplusplus
4845      extern "C"
4846 #  endif
4847    int F77_DUMMY_MAIN() { return 1; }
4848 #endif
4849 int
4850 main ()
4851 {
4852 int some_variable = 0;
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859   (eval $ac_compile) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -s conftest.$ac_objext'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869       # The compiler can only warn and ignore the option if not recognized
4870     # So say no if there are warnings
4871     if test -s conftest.err; then
4872       compiler_rtti_exceptions=no
4873     else
4874       compiler_rtti_exceptions=yes
4875     fi
4876
4877 else
4878   echo "$as_me: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4880 fi
4881 rm -f conftest.$ac_objext conftest.$ac_ext
4882   CFLAGS="$save_CFLAGS"
4883   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4884 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4885
4886   if test "$compiler_rtti_exceptions" = "yes"; then
4887     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4888   else
4889     no_builtin_flag=' -fno-builtin'
4890   fi
4891 fi
4892
4893 # See if the linker supports building shared libraries.
4894 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4895 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4896
4897 allow_undefined_flag=
4898 no_undefined_flag=
4899 need_lib_prefix=unknown
4900 need_version=unknown
4901 # when you set need_version to no, make sure it does not cause -set_version
4902 # flags to be left without arguments
4903 archive_cmds=
4904 archive_expsym_cmds=
4905 old_archive_from_new_cmds=
4906 old_archive_from_expsyms_cmds=
4907 export_dynamic_flag_spec=
4908 whole_archive_flag_spec=
4909 thread_safe_flag_spec=
4910 hardcode_into_libs=no
4911 hardcode_libdir_flag_spec=
4912 hardcode_libdir_separator=
4913 hardcode_direct=no
4914 hardcode_minus_L=no
4915 hardcode_shlibpath_var=unsupported
4916 runpath_var=
4917 link_all_deplibs=unknown
4918 always_export_symbols=no
4919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4920 # include_expsyms should be a list of space-separated symbols to be *always*
4921 # included in the symbol list
4922 include_expsyms=
4923 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4924 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4925 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4926 # as well as any symbol that contains `d'.
4927 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4929 # platforms (ab)use it in PIC code, but their linkers get confused if
4930 # the symbol is explicitly referenced.  Since portable code cannot
4931 # rely on this symbol name, it's probably fine to never include it in
4932 # preloaded symbol tables.
4933 extract_expsyms_cmds=
4934
4935 case $host_os in
4936 cygwin* | mingw* | pw32*)
4937   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4938   # When not using gcc, we currently assume that we are using
4939   # Microsoft Visual C++.
4940   if test "$GCC" != yes; then
4941     with_gnu_ld=no
4942   fi
4943   ;;
4944 openbsd*)
4945   with_gnu_ld=no
4946   ;;
4947 esac
4948
4949 ld_shlibs=yes
4950 if test "$with_gnu_ld" = yes; then
4951   # If archive_cmds runs LD, not CC, wlarc should be empty
4952   wlarc='${wl}'
4953
4954   # See if GNU ld supports shared libraries.
4955   case $host_os in
4956   aix3* | aix4* | aix5*)
4957     # On AIX, the GNU linker is very broken
4958     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4959     ld_shlibs=no
4960     cat <<EOF 1>&2
4961
4962 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4963 *** to be unable to reliably create shared libraries on AIX.
4964 *** Therefore, libtool is disabling shared libraries support.  If you
4965 *** really care for shared libraries, you may want to modify your PATH
4966 *** so that a non-GNU linker is found, and then restart.
4967
4968 EOF
4969     ;;
4970
4971   amigaos*)
4972     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)'
4973     hardcode_libdir_flag_spec='-L$libdir'
4974     hardcode_minus_L=yes
4975
4976     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4977     # that the semantics of dynamic libraries on AmigaOS, at least up
4978     # to version 4, is to share data among multiple programs linked
4979     # with the same dynamic library.  Since this doesn't match the
4980     # behavior of shared libraries on other platforms, we can use
4981     # them.
4982     ld_shlibs=no
4983     ;;
4984
4985   beos*)
4986     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4987       allow_undefined_flag=unsupported
4988       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4989       # support --undefined.  This deserves some investigation.  FIXME
4990       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4991     else
4992       ld_shlibs=no
4993     fi
4994     ;;
4995
4996   cygwin* | mingw* | pw32*)
4997     # hardcode_libdir_flag_spec is actually meaningless, as there is
4998     # no search path for DLLs.
4999     hardcode_libdir_flag_spec='-L$libdir'
5000     allow_undefined_flag=unsupported
5001     always_export_symbols=yes
5002
5003     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5004       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5005       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5006       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5007       else $CC -o impgen impgen.c ; fi)~
5008       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5009
5010     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5011
5012     # cygwin and mingw dlls have different entry points and sets of symbols
5013     # to exclude.
5014     # FIXME: what about values for MSVC?
5015     dll_entry=__cygwin_dll_entry@12
5016     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5017     case $host_os in
5018     mingw*)
5019       # mingw values
5020       dll_entry=_DllMainCRTStartup@12
5021       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5022       ;;
5023     esac
5024
5025     # mingw and cygwin differ, and it's simplest to just exclude the union
5026     # of the two symbol sets.
5027     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5028
5029     # recent cygwin and mingw systems supply a stub DllMain which the user
5030     # can override, but on older systems we have to supply one (in ltdll.c)
5031     if test "x$lt_cv_need_dllmain" = "xyes"; then
5032       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5033       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~
5034         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5035     else
5036       ltdll_obj=
5037       ltdll_cmds=
5038     fi
5039
5040     # Extract the symbol export list from an `--export-all' def file,
5041     # then regenerate the def file from the symbol export list, so that
5042     # the compiled dll only exports the symbol export list.
5043     # Be careful not to strip the DATA tag left be newer dlltools.
5044     export_symbols_cmds="$ltdll_cmds"'
5045       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5046       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5047
5048     # If the export-symbols file already is a .def file (1st line
5049     # is EXPORTS), use it as is.
5050     # If DATA tags from a recent dlltool are present, honour them!
5051     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5052         cp $export_symbols $output_objdir/$soname-def;
5053       else
5054         echo EXPORTS > $output_objdir/$soname-def;
5055         _lt_hint=1;
5056         cat $export_symbols | while read symbol; do
5057          set dummy \$symbol;
5058          case \$# in
5059            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5060            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5061          esac;
5062          _lt_hint=`expr 1 + \$_lt_hint`;
5063         done;
5064       fi~
5065       '"$ltdll_cmds"'
5066       $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~
5067       $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~
5068       $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~
5069       $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~
5070       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5071     ;;
5072
5073   netbsd*)
5074     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5075       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5076       wlarc=
5077     else
5078       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5079       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5080     fi
5081     ;;
5082
5083   solaris* | sysv5*)
5084     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5085       ld_shlibs=no
5086       cat <<EOF 1>&2
5087
5088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5089 *** create shared libraries on Solaris systems.  Therefore, libtool
5090 *** is disabling shared libraries support.  We urge you to upgrade GNU
5091 *** binutils to release 2.9.1 or newer.  Another option is to modify
5092 *** your PATH or compiler configuration so that the native linker is
5093 *** used, and then restart.
5094
5095 EOF
5096     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5097       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5098       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5099     else
5100       ld_shlibs=no
5101     fi
5102     ;;
5103
5104   sunos4*)
5105     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5106     wlarc=
5107     hardcode_direct=yes
5108     hardcode_shlibpath_var=no
5109     ;;
5110
5111   *)
5112     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5113       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5114       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5115     else
5116       ld_shlibs=no
5117     fi
5118     ;;
5119   esac
5120
5121   if test "$ld_shlibs" = yes; then
5122     runpath_var=LD_RUN_PATH
5123     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5124     export_dynamic_flag_spec='${wl}--export-dynamic'
5125     case $host_os in
5126     cygwin* | mingw* | pw32*)
5127       # dlltool doesn't understand --whole-archive et. al.
5128       whole_archive_flag_spec=
5129       ;;
5130     *)
5131       # ancient GNU ld didn't support --whole-archive et. al.
5132       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5133         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5134       else
5135         whole_archive_flag_spec=
5136       fi
5137       ;;
5138     esac
5139   fi
5140 else
5141   # PORTME fill in a description of your system's linker (not GNU ld)
5142   case $host_os in
5143   aix3*)
5144     allow_undefined_flag=unsupported
5145     always_export_symbols=yes
5146     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'
5147     # Note: this linker hardcodes the directories in LIBPATH if there
5148     # are no directories specified by -L.
5149     hardcode_minus_L=yes
5150     if test "$GCC" = yes && test -z "$link_static_flag"; then
5151       # Neither direct hardcoding nor static linking is supported with a
5152       # broken collect2.
5153       hardcode_direct=unsupported
5154     fi
5155     ;;
5156
5157   aix4* | aix5*)
5158     if test "$host_cpu" = ia64; then
5159       # On IA64, the linker does run time linking by default, so we don't
5160       # have to do anything special.
5161       aix_use_runtimelinking=no
5162       exp_sym_flag='-Bexport'
5163       no_entry_flag=""
5164     else
5165       aix_use_runtimelinking=no
5166
5167       # Test if we are trying to use run time linking or normal
5168       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5169       # need to do runtime linking.
5170       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5171         for ld_flag in $LDFLAGS; do
5172           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5173             aix_use_runtimelinking=yes
5174             break
5175           fi
5176         done
5177       esac
5178
5179       exp_sym_flag='-bexport'
5180       no_entry_flag='-bnoentry'
5181     fi
5182
5183     # When large executables or shared objects are built, AIX ld can
5184     # have problems creating the table of contents.  If linking a library
5185     # or program results in "error TOC overflow" add -mminimal-toc to
5186     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5187     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5188
5189     hardcode_direct=yes
5190     archive_cmds=''
5191     hardcode_libdir_separator=':'
5192     if test "$GCC" = yes; then
5193       case $host_os in aix4.[012]|aix4.[012].*)
5194         collect2name=`${CC} -print-prog-name=collect2`
5195         if test -f "$collect2name" && \
5196           strings "$collect2name" | grep resolve_lib_name >/dev/null
5197         then
5198           # We have reworked collect2
5199           hardcode_direct=yes
5200         else
5201           # We have old collect2
5202           hardcode_direct=unsupported
5203           # It fails to find uninstalled libraries when the uninstalled
5204           # path is not listed in the libpath.  Setting hardcode_minus_L
5205           # to unsupported forces relinking
5206           hardcode_minus_L=yes
5207           hardcode_libdir_flag_spec='-L$libdir'
5208           hardcode_libdir_separator=
5209         fi
5210       esac
5211
5212       shared_flag='-shared'
5213     else
5214       # not using gcc
5215       if test "$host_cpu" = ia64; then
5216         shared_flag='${wl}-G'
5217       else
5218         if test "$aix_use_runtimelinking" = yes; then
5219           shared_flag='${wl}-G'
5220         else
5221           shared_flag='${wl}-bM:SRE'
5222         fi
5223       fi
5224     fi
5225
5226     # It seems that -bexpall can do strange things, so it is better to
5227     # generate a list of symbols to export.
5228     always_export_symbols=yes
5229     if test "$aix_use_runtimelinking" = yes; then
5230       # Warning - without using the other runtime loading flags (-brtl),
5231       # -berok will link without error, but may produce a broken library.
5232       allow_undefined_flag='-berok'
5233       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5234       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"
5235     else
5236       if test "$host_cpu" = ia64; then
5237         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5238         allow_undefined_flag="-z nodefs"
5239         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"
5240       else
5241         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5242         # Warning - without using the other run time loading flags,
5243         # -berok will link without error, but may produce a broken library.
5244         allow_undefined_flag='${wl}-berok'
5245         # This is a bit strange, but is similar to how AIX traditionally builds
5246         # it's shared libraries.
5247         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'
5248       fi
5249     fi
5250     ;;
5251
5252   amigaos*)
5253     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)'
5254     hardcode_libdir_flag_spec='-L$libdir'
5255     hardcode_minus_L=yes
5256     # see comment about different semantics on the GNU ld section
5257     ld_shlibs=no
5258     ;;
5259
5260   cygwin* | mingw* | pw32*)
5261     # When not using gcc, we currently assume that we are using
5262     # Microsoft Visual C++.
5263     # hardcode_libdir_flag_spec is actually meaningless, as there is
5264     # no search path for DLLs.
5265     hardcode_libdir_flag_spec=' '
5266     allow_undefined_flag=unsupported
5267     # Tell ltmain to make .lib files, not .a files.
5268     libext=lib
5269     # FIXME: Setting linknames here is a bad hack.
5270     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5271     # The linker will automatically build a .lib file if we build a DLL.
5272     old_archive_from_new_cmds='true'
5273     # FIXME: Should let the user specify the lib program.
5274     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5275     fix_srcfile_path='`cygpath -w "$srcfile"`'
5276     ;;
5277
5278   darwin* | rhapsody*)
5279     case "$host_os" in
5280     rhapsody* | darwin1.[012])
5281       allow_undefined_flag='-undefined suppress'
5282       ;;
5283     *) # Darwin 1.3 on
5284       allow_undefined_flag='-flat_namespace -undefined suppress'
5285       ;;
5286     esac
5287     # FIXME: Relying on posixy $() will cause problems for
5288     #        cross-compilation, but unfortunately the echo tests do not
5289     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5290     #        `"' quotes if we put them in here... so don't!
5291     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5292     # We need to add '_' to the symbols in $export_symbols first
5293     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5294     hardcode_direct=yes
5295     hardcode_shlibpath_var=no
5296     whole_archive_flag_spec='-all_load $convenience'
5297     ;;
5298
5299   freebsd1*)
5300     ld_shlibs=no
5301     ;;
5302
5303   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5304   # support.  Future versions do this automatically, but an explicit c++rt0.o
5305   # does not break anything, and helps significantly (at the cost of a little
5306   # extra space).
5307   freebsd2.2*)
5308     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5309     hardcode_libdir_flag_spec='-R$libdir'
5310     hardcode_direct=yes
5311     hardcode_shlibpath_var=no
5312     ;;
5313
5314   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5315   freebsd2*)
5316     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5317     hardcode_direct=yes
5318     hardcode_minus_L=yes
5319     hardcode_shlibpath_var=no
5320     ;;
5321
5322   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5323   freebsd*)
5324     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5325     hardcode_libdir_flag_spec='-R$libdir'
5326     hardcode_direct=yes
5327     hardcode_shlibpath_var=no
5328     ;;
5329
5330   hpux9* | hpux10* | hpux11*)
5331     case $host_os in
5332     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' ;;
5333     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5334     esac
5335     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5336     hardcode_libdir_separator=:
5337     hardcode_direct=yes
5338     hardcode_minus_L=yes # Not in the search PATH, but as the default
5339                          # location of the library.
5340     export_dynamic_flag_spec='${wl}-E'
5341     ;;
5342
5343   irix5* | irix6* | nonstopux*)
5344     if test "$GCC" = yes; then
5345       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'
5346     else
5347       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'
5348     fi
5349     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5350     hardcode_libdir_separator=:
5351     link_all_deplibs=yes
5352     ;;
5353
5354   netbsd*)
5355     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5356       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5357     else
5358       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5359     fi
5360     hardcode_libdir_flag_spec='-R$libdir'
5361     hardcode_direct=yes
5362     hardcode_shlibpath_var=no
5363     ;;
5364
5365   newsos6)
5366     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5367     hardcode_direct=yes
5368     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5369     hardcode_libdir_separator=:
5370     hardcode_shlibpath_var=no
5371     ;;
5372
5373   openbsd*)
5374     hardcode_direct=yes
5375     hardcode_shlibpath_var=no
5376     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5377       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5378       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5379       export_dynamic_flag_spec='${wl}-E'
5380     else
5381       case "$host_os" in
5382       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5383         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5384         hardcode_libdir_flag_spec='-R$libdir'
5385         ;;
5386       *)
5387         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5388         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5389         ;;
5390       esac
5391     fi
5392     ;;
5393
5394   os2*)
5395     hardcode_libdir_flag_spec='-L$libdir'
5396     hardcode_minus_L=yes
5397     allow_undefined_flag=unsupported
5398     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'
5399     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5400     ;;
5401
5402   osf3*)
5403     if test "$GCC" = yes; then
5404       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5405       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'
5406     else
5407       allow_undefined_flag=' -expect_unresolved \*'
5408       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'
5409     fi
5410     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5411     hardcode_libdir_separator=:
5412     ;;
5413
5414   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5415     if test "$GCC" = yes; then
5416       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5417       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'
5418       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5419     else
5420       allow_undefined_flag=' -expect_unresolved \*'
5421       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'
5422       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5423       $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'
5424
5425       #Both c and cxx compiler support -rpath directly
5426       hardcode_libdir_flag_spec='-rpath $libdir'
5427     fi
5428     hardcode_libdir_separator=:
5429     ;;
5430
5431   sco3.2v5*)
5432     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5433     hardcode_shlibpath_var=no
5434     runpath_var=LD_RUN_PATH
5435     hardcode_runpath_var=yes
5436     export_dynamic_flag_spec='${wl}-Bexport'
5437     ;;
5438
5439   solaris*)
5440     # gcc --version < 3.0 without binutils cannot create self contained
5441     # shared libraries reliably, requiring libgcc.a to resolve some of
5442     # the object symbols generated in some cases.  Libraries that use
5443     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5444     # a copy of libgcc.a into every shared library to guarantee resolving
5445     # such symbols causes other problems:  According to Tim Van Holder
5446     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5447     # (to the application) exception stack for one thing.
5448     no_undefined_flag=' -z defs'
5449     if test "$GCC" = yes; then
5450       case `$CC --version 2>/dev/null` in
5451       [12].*)
5452         cat <<EOF 1>&2
5453
5454 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5455 *** create self contained shared libraries on Solaris systems, without
5456 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5457 *** -no-undefined support, which will at least allow you to build shared
5458 *** libraries.  However, you may find that when you link such libraries
5459 *** into an application without using GCC, you have to manually add
5460 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5461 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5462 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5463
5464 EOF
5465         no_undefined_flag=
5466         ;;
5467       esac
5468     fi
5469     # $CC -shared without GNU ld will not create a library from C++
5470     # object files and a static libstdc++, better avoid it by now
5471     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5472     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5473                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5474     hardcode_libdir_flag_spec='-R$libdir'
5475     hardcode_shlibpath_var=no
5476     case $host_os in
5477     solaris2.[0-5] | solaris2.[0-5].*) ;;
5478     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5479       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5480     esac
5481     link_all_deplibs=yes
5482     ;;
5483
5484   sunos4*)
5485     if test "x$host_vendor" = xsequent; then
5486       # Use $CC to link under sequent, because it throws in some extra .o
5487       # files that make .init and .fini sections work.
5488       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5489     else
5490       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5491     fi
5492     hardcode_libdir_flag_spec='-L$libdir'
5493     hardcode_direct=yes
5494     hardcode_minus_L=yes
5495     hardcode_shlibpath_var=no
5496     ;;
5497
5498   sysv4)
5499     if test "x$host_vendor" = xsno; then
5500       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5501       hardcode_direct=yes # is this really true???
5502     else
5503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5504       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5505     fi
5506     runpath_var='LD_RUN_PATH'
5507     hardcode_shlibpath_var=no
5508     ;;
5509
5510   sysv4.3*)
5511     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5512     hardcode_shlibpath_var=no
5513     export_dynamic_flag_spec='-Bexport'
5514     ;;
5515
5516   sysv5*)
5517     no_undefined_flag=' -z text'
5518     # $CC -shared without GNU ld will not create a library from C++
5519     # object files and a static libstdc++, better avoid it by now
5520     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5521     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5522                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5523     hardcode_libdir_flag_spec=
5524     hardcode_shlibpath_var=no
5525     runpath_var='LD_RUN_PATH'
5526     ;;
5527
5528   uts4*)
5529     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5530     hardcode_libdir_flag_spec='-L$libdir'
5531     hardcode_shlibpath_var=no
5532     ;;
5533
5534   dgux*)
5535     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5536     hardcode_libdir_flag_spec='-L$libdir'
5537     hardcode_shlibpath_var=no
5538     ;;
5539
5540   sysv4*MP*)
5541     if test -d /usr/nec; then
5542       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5543       hardcode_shlibpath_var=no
5544       runpath_var=LD_RUN_PATH
5545       hardcode_runpath_var=yes
5546       ld_shlibs=yes
5547     fi
5548     ;;
5549
5550   sysv4.2uw2*)
5551     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5552     hardcode_direct=yes
5553     hardcode_minus_L=no
5554     hardcode_shlibpath_var=no
5555     hardcode_runpath_var=yes
5556     runpath_var=LD_RUN_PATH
5557     ;;
5558
5559   sysv5uw7* | unixware7*)
5560     no_undefined_flag='${wl}-z ${wl}text'
5561     if test "$GCC" = yes; then
5562       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5563     else
5564       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5565     fi
5566     runpath_var='LD_RUN_PATH'
5567     hardcode_shlibpath_var=no
5568     ;;
5569
5570   *)
5571     ld_shlibs=no
5572     ;;
5573   esac
5574 fi
5575 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5576 echo "${ECHO_T}$ld_shlibs" >&6
5577 test "$ld_shlibs" = no && can_build_shared=no
5578
5579 # Check hardcoding attributes.
5580 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5582 hardcode_action=
5583 if test -n "$hardcode_libdir_flag_spec" || \
5584    test -n "$runpath_var"; then
5585
5586   # We can hardcode non-existant directories.
5587   if test "$hardcode_direct" != no &&
5588      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5589      # have to relink, otherwise we might link with an installed library
5590      # when we should be linking with a yet-to-be-installed one
5591      ## test "$hardcode_shlibpath_var" != no &&
5592      test "$hardcode_minus_L" != no; then
5593     # Linking always hardcodes the temporary library directory.
5594     hardcode_action=relink
5595   else
5596     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5597     hardcode_action=immediate
5598   fi
5599 else
5600   # We cannot hardcode anything, or else we can only hardcode existing
5601   # directories.
5602   hardcode_action=unsupported
5603 fi
5604 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5605 echo "${ECHO_T}$hardcode_action" >&6
5606
5607 striplib=
5608 old_striplib=
5609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5612   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5613   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5614   echo "$as_me:$LINENO: result: yes" >&5
5615 echo "${ECHO_T}yes" >&6
5616 else
5617   echo "$as_me:$LINENO: result: no" >&5
5618 echo "${ECHO_T}no" >&6
5619 fi
5620
5621 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5623
5624 # PORTME Fill in your ld.so characteristics
5625 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5626 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5627 library_names_spec=
5628 libname_spec='lib$name'
5629 soname_spec=
5630 postinstall_cmds=
5631 postuninstall_cmds=
5632 finish_cmds=
5633 finish_eval=
5634 shlibpath_var=
5635 shlibpath_overrides_runpath=unknown
5636 version_type=none
5637 dynamic_linker="$host_os ld.so"
5638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5640
5641 case $host_os in
5642 aix3*)
5643   version_type=linux
5644   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5645   shlibpath_var=LIBPATH
5646
5647   # AIX has no versioning support, so we append a major version to the name.
5648   soname_spec='${libname}${release}.so$major'
5649   ;;
5650
5651 aix4* | aix5*)
5652   version_type=linux
5653   if test "$host_cpu" = ia64; then
5654     # AIX 5 supports IA64
5655     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5656     shlibpath_var=LD_LIBRARY_PATH
5657   else
5658     # With GCC up to 2.95.x, collect2 would create an import file
5659     # for dependence libraries.  The import file would start with
5660     # the line `#! .'.  This would cause the generated library to
5661     # depend on `.', always an invalid library.  This was fixed in
5662     # development snapshots of GCC prior to 3.0.
5663     case $host_os in
5664       aix4 | aix4.[01] | aix4.[01].*)
5665         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5666              echo ' yes '
5667              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5668           :
5669         else
5670           can_build_shared=no
5671         fi
5672         ;;
5673     esac
5674     # AIX (on Power*) has no versioning support, so currently we can
5675     # not hardcode correct soname into executable. Probably we can
5676     # add versioning support to collect2, so additional links can
5677     # be useful in future.
5678     if test "$aix_use_runtimelinking" = yes; then
5679       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5680       # instead of lib<name>.a to let people know that these are not
5681       # typical AIX shared libraries.
5682       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5683     else
5684       # We preserve .a as extension for shared libraries through AIX4.2
5685       # and later when we are not doing run time linking.
5686       library_names_spec='${libname}${release}.a $libname.a'
5687       soname_spec='${libname}${release}.so$major'
5688     fi
5689     shlibpath_var=LIBPATH
5690   fi
5691   ;;
5692
5693 amigaos*)
5694   library_names_spec='$libname.ixlibrary $libname.a'
5695   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5696   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'
5697   ;;
5698
5699 beos*)
5700   library_names_spec='${libname}.so'
5701   dynamic_linker="$host_os ld.so"
5702   shlibpath_var=LIBRARY_PATH
5703   ;;
5704
5705 bsdi4*)
5706   version_type=linux
5707   need_version=no
5708   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5709   soname_spec='${libname}${release}.so$major'
5710   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5711   shlibpath_var=LD_LIBRARY_PATH
5712   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5713   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5714   export_dynamic_flag_spec=-rdynamic
5715   # the default ld.so.conf also contains /usr/contrib/lib and
5716   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5717   # libtool to hard-code these into programs
5718   ;;
5719
5720 cygwin* | mingw* | pw32*)
5721   version_type=windows
5722   need_version=no
5723   need_lib_prefix=no
5724   case $GCC,$host_os in
5725   yes,cygwin*)
5726     library_names_spec='$libname.dll.a'
5727     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5728     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5729       dldir=$destdir/`dirname \$dlpath`~
5730       test -d \$dldir || mkdir -p \$dldir~
5731       $install_prog .libs/$dlname \$dldir/$dlname'
5732     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5733       dlpath=$dir/\$dldll~
5734        $rm \$dlpath'
5735     ;;
5736   yes,mingw*)
5737     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5738     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5739     ;;
5740   yes,pw32*)
5741     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5742     ;;
5743   *)
5744     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5745     ;;
5746   esac
5747   dynamic_linker='Win32 ld.exe'
5748   # FIXME: first we should search . and the directory the executable is in
5749   shlibpath_var=PATH
5750   ;;
5751
5752 darwin* | rhapsody*)
5753   dynamic_linker="$host_os dyld"
5754   version_type=darwin
5755   need_lib_prefix=no
5756   need_version=no
5757   # FIXME: Relying on posixy $() will cause problems for
5758   #        cross-compilation, but unfortunately the echo tests do not
5759   #        yet detect zsh echo's removal of \ escapes.
5760   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)'
5761   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5762   shlibpath_overrides_runpath=yes
5763   shlibpath_var=DYLD_LIBRARY_PATH
5764   ;;
5765
5766 freebsd1*)
5767   dynamic_linker=no
5768   ;;
5769
5770 freebsd*)
5771   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5772   version_type=freebsd-$objformat
5773   case $version_type in
5774     freebsd-elf*)
5775       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5776       need_version=no
5777       need_lib_prefix=no
5778       ;;
5779     freebsd-*)
5780       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5781       need_version=yes
5782       ;;
5783   esac
5784   shlibpath_var=LD_LIBRARY_PATH
5785   case $host_os in
5786   freebsd2*)
5787     shlibpath_overrides_runpath=yes
5788     ;;
5789   *)
5790     shlibpath_overrides_runpath=no
5791     hardcode_into_libs=yes
5792     ;;
5793   esac
5794   ;;
5795
5796 gnu*)
5797   version_type=linux
5798   need_lib_prefix=no
5799   need_version=no
5800   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5801   soname_spec='${libname}${release}.so$major'
5802   shlibpath_var=LD_LIBRARY_PATH
5803   hardcode_into_libs=yes
5804   ;;
5805
5806 hpux9* | hpux10* | hpux11*)
5807   # Give a soname corresponding to the major version so that dld.sl refuses to
5808   # link against other versions.
5809   dynamic_linker="$host_os dld.sl"
5810   version_type=sunos
5811   need_lib_prefix=no
5812   need_version=no
5813   shlibpath_var=SHLIB_PATH
5814   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5815   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5816   soname_spec='${libname}${release}.sl$major'
5817   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5818   postinstall_cmds='chmod 555 $lib'
5819   ;;
5820
5821 irix5* | irix6* | nonstopux*)
5822   case $host_os in
5823     nonstopux*) version_type=nonstopux ;;
5824     *)          version_type=irix ;;
5825   esac
5826   need_lib_prefix=no
5827   need_version=no
5828   soname_spec='${libname}${release}.so$major'
5829   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5830   case $host_os in
5831   irix5* | nonstopux*)
5832     libsuff= shlibsuff=
5833     ;;
5834   *)
5835     case $LD in # libtool.m4 will add one of these switches to LD
5836     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5837     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5838     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5839     *) libsuff= shlibsuff= libmagic=never-match;;
5840     esac
5841     ;;
5842   esac
5843   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5844   shlibpath_overrides_runpath=no
5845   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5846   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5847   ;;
5848
5849 # No shared lib support for Linux oldld, aout, or coff.
5850 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5851   dynamic_linker=no
5852   ;;
5853
5854 # This must be Linux ELF.
5855 linux-gnu*)
5856   version_type=linux
5857   need_lib_prefix=no
5858   need_version=no
5859   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5860   soname_spec='${libname}${release}.so$major'
5861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5862   shlibpath_var=LD_LIBRARY_PATH
5863   shlibpath_overrides_runpath=no
5864   # This implies no fast_install, which is unacceptable.
5865   # Some rework will be needed to allow for fast_install
5866   # before this can be enabled.
5867   hardcode_into_libs=yes
5868
5869   # We used to test for /lib/ld.so.1 and disable shared libraries on
5870   # powerpc, because MkLinux only supported shared libraries with the
5871   # GNU dynamic linker.  Since this was broken with cross compilers,
5872   # most powerpc-linux boxes support dynamic linking these days and
5873   # people can always --disable-shared, the test was removed, and we
5874   # assume the GNU/Linux dynamic linker is in use.
5875   dynamic_linker='GNU/Linux ld.so'
5876   ;;
5877
5878 netbsd*)
5879   version_type=sunos
5880   need_lib_prefix=no
5881   need_version=no
5882   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5883     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5884     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5885     dynamic_linker='NetBSD (a.out) ld.so'
5886   else
5887     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5888     soname_spec='${libname}${release}.so$major'
5889     dynamic_linker='NetBSD ld.elf_so'
5890   fi
5891   shlibpath_var=LD_LIBRARY_PATH
5892   shlibpath_overrides_runpath=yes
5893   hardcode_into_libs=yes
5894   ;;
5895
5896 newsos6)
5897   version_type=linux
5898   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5899   shlibpath_var=LD_LIBRARY_PATH
5900   shlibpath_overrides_runpath=yes
5901   ;;
5902
5903 openbsd*)
5904   version_type=sunos
5905   need_lib_prefix=no
5906   need_version=no
5907   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5908     case "$host_os" in
5909     openbsd2.[89] | openbsd2.[89].*)
5910       shlibpath_overrides_runpath=no
5911       ;;
5912     *)
5913       shlibpath_overrides_runpath=yes
5914       ;;
5915     esac
5916   else
5917     shlibpath_overrides_runpath=yes
5918   fi
5919   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5920   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5921   shlibpath_var=LD_LIBRARY_PATH
5922   ;;
5923
5924 os2*)
5925   libname_spec='$name'
5926   need_lib_prefix=no
5927   library_names_spec='$libname.dll $libname.a'
5928   dynamic_linker='OS/2 ld.exe'
5929   shlibpath_var=LIBPATH
5930   ;;
5931
5932 osf3* | osf4* | osf5*)
5933   version_type=osf
5934   need_version=no
5935   need_lib_prefix=no
5936   soname_spec='${libname}${release}.so'
5937   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5938   shlibpath_var=LD_LIBRARY_PATH
5939   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5940   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5941   ;;
5942
5943 sco3.2v5*)
5944   version_type=osf
5945   soname_spec='${libname}${release}.so$major'
5946   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5947   shlibpath_var=LD_LIBRARY_PATH
5948   ;;
5949
5950 solaris*)
5951   version_type=linux
5952   need_lib_prefix=no
5953   need_version=no
5954   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5955   soname_spec='${libname}${release}.so$major'
5956   shlibpath_var=LD_LIBRARY_PATH
5957   shlibpath_overrides_runpath=yes
5958   hardcode_into_libs=yes
5959   # ldd complains unless libraries are executable
5960   postinstall_cmds='chmod +x $lib'
5961   ;;
5962
5963 sunos4*)
5964   version_type=sunos
5965   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5966   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5967   shlibpath_var=LD_LIBRARY_PATH
5968   shlibpath_overrides_runpath=yes
5969   if test "$with_gnu_ld" = yes; then
5970     need_lib_prefix=no
5971   fi
5972   need_version=yes
5973   ;;
5974
5975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5976   version_type=linux
5977   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5978   soname_spec='${libname}${release}.so$major'
5979   shlibpath_var=LD_LIBRARY_PATH
5980   case $host_vendor in
5981     sni)
5982       shlibpath_overrides_runpath=no
5983       ;;
5984     motorola)
5985       need_lib_prefix=no
5986       need_version=no
5987       shlibpath_overrides_runpath=no
5988       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5989       ;;
5990   esac
5991   ;;
5992
5993 uts4*)
5994   version_type=linux
5995   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5996   soname_spec='${libname}${release}.so$major'
5997   shlibpath_var=LD_LIBRARY_PATH
5998   ;;
5999
6000 dgux*)
6001   version_type=linux
6002   need_lib_prefix=no
6003   need_version=no
6004   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6005   soname_spec='${libname}${release}.so$major'
6006   shlibpath_var=LD_LIBRARY_PATH
6007   ;;
6008
6009 sysv4*MP*)
6010   if test -d /usr/nec ;then
6011     version_type=linux
6012     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6013     soname_spec='$libname.so.$major'
6014     shlibpath_var=LD_LIBRARY_PATH
6015   fi
6016   ;;
6017
6018 *)
6019   dynamic_linker=no
6020   ;;
6021 esac
6022 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6023 echo "${ECHO_T}$dynamic_linker" >&6
6024 test "$dynamic_linker" = no && can_build_shared=no
6025
6026 # Report the final consequences.
6027 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6028 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6029 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6030 echo "${ECHO_T}$can_build_shared" >&6
6031
6032 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6033 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6034 test "$can_build_shared" = "no" && enable_shared=no
6035
6036 # On AIX, shared libraries and static libraries use the same namespace, and
6037 # are all built from PIC.
6038 case "$host_os" in
6039 aix3*)
6040   test "$enable_shared" = yes && enable_static=no
6041   if test -n "$RANLIB"; then
6042     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6043     postinstall_cmds='$RANLIB $lib'
6044   fi
6045   ;;
6046
6047 aix4*)
6048   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6049     test "$enable_shared" = yes && enable_static=no
6050   fi
6051   ;;
6052 esac
6053 echo "$as_me:$LINENO: result: $enable_shared" >&5
6054 echo "${ECHO_T}$enable_shared" >&6
6055
6056 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6057 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6058 # Make sure either enable_shared or enable_static is yes.
6059 test "$enable_shared" = yes || enable_static=yes
6060 echo "$as_me:$LINENO: result: $enable_static" >&5
6061 echo "${ECHO_T}$enable_static" >&6
6062
6063 if test "$hardcode_action" = relink; then
6064   # Fast installation is not supported
6065   enable_fast_install=no
6066 elif test "$shlibpath_overrides_runpath" = yes ||
6067      test "$enable_shared" = no; then
6068   # Fast installation is not necessary
6069   enable_fast_install=needless
6070 fi
6071
6072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6073 if test "$GCC" = yes; then
6074   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6075 fi
6076
6077 if test "x$enable_dlopen" != xyes; then
6078   enable_dlopen=unknown
6079   enable_dlopen_self=unknown
6080   enable_dlopen_self_static=unknown
6081 else
6082   lt_cv_dlopen=no
6083   lt_cv_dlopen_libs=
6084
6085   case $host_os in
6086   beos*)
6087     lt_cv_dlopen="load_add_on"
6088     lt_cv_dlopen_libs=
6089     lt_cv_dlopen_self=yes
6090     ;;
6091
6092   cygwin* | mingw* | pw32*)
6093     lt_cv_dlopen="LoadLibrary"
6094     lt_cv_dlopen_libs=
6095    ;;
6096
6097   *)
6098     echo "$as_me:$LINENO: checking for shl_load" >&5
6099 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6100 if test "${ac_cv_func_shl_load+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   cat >conftest.$ac_ext <<_ACEOF
6104 #line $LINENO "configure"
6105 #include "confdefs.h"
6106 /* System header to define __stub macros and hopefully few prototypes,
6107     which can conflict with char shl_load (); below.  */
6108 #include <assert.h>
6109 /* Override any gcc2 internal prototype to avoid an error.  */
6110 #ifdef __cplusplus
6111 extern "C"
6112 #endif
6113 /* We use char because int might match the return type of a gcc2
6114    builtin and then its argument prototype would still apply.  */
6115 char shl_load ();
6116 char (*f) ();
6117
6118 #ifdef F77_DUMMY_MAIN
6119 #  ifdef __cplusplus
6120      extern "C"
6121 #  endif
6122    int F77_DUMMY_MAIN() { return 1; }
6123 #endif
6124 int
6125 main ()
6126 {
6127 /* The GNU C library defines this for functions which it implements
6128     to always fail with ENOSYS.  Some functions are actually named
6129     something starting with __ and the normal name is an alias.  */
6130 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6131 choke me
6132 #else
6133 f = shl_load;
6134 #endif
6135
6136   ;
6137   return 0;
6138 }
6139 _ACEOF
6140 rm -f conftest.$ac_objext conftest$ac_exeext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142   (eval $ac_link) 2>&5
6143   ac_status=$?
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } &&
6146          { ac_try='test -s conftest$ac_exeext'
6147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148   (eval $ac_try) 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); }; }; then
6152   ac_cv_func_shl_load=yes
6153 else
6154   echo "$as_me: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 ac_cv_func_shl_load=no
6157 fi
6158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6159 fi
6160 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6161 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6162 if test $ac_cv_func_shl_load = yes; then
6163   lt_cv_dlopen="shl_load"
6164 else
6165   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6166 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6167 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   ac_check_lib_save_LIBS=$LIBS
6171 LIBS="-ldld  $LIBS"
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 #include "confdefs.h"
6175
6176 /* Override any gcc2 internal prototype to avoid an error.  */
6177 #ifdef __cplusplus
6178 extern "C"
6179 #endif
6180 /* We use char because int might match the return type of a gcc2
6181    builtin and then its argument prototype would still apply.  */
6182 char shl_load ();
6183 #ifdef F77_DUMMY_MAIN
6184 #  ifdef __cplusplus
6185      extern "C"
6186 #  endif
6187    int F77_DUMMY_MAIN() { return 1; }
6188 #endif
6189 int
6190 main ()
6191 {
6192 shl_load ();
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199   (eval $ac_link) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } &&
6203          { ac_try='test -s conftest$ac_exeext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   ac_cv_lib_dld_shl_load=yes
6210 else
6211   echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6213 ac_cv_lib_dld_shl_load=no
6214 fi
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6217 fi
6218 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6219 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6220 if test $ac_cv_lib_dld_shl_load = yes; then
6221   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6222 else
6223   echo "$as_me:$LINENO: checking for dlopen" >&5
6224 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6225 if test "${ac_cv_func_dlopen+set}" = set; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6230 #include "confdefs.h"
6231 /* System header to define __stub macros and hopefully few prototypes,
6232     which can conflict with char dlopen (); below.  */
6233 #include <assert.h>
6234 /* Override any gcc2 internal prototype to avoid an error.  */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239    builtin and then its argument prototype would still apply.  */
6240 char dlopen ();
6241 char (*f) ();
6242
6243 #ifdef F77_DUMMY_MAIN
6244 #  ifdef __cplusplus
6245      extern "C"
6246 #  endif
6247    int F77_DUMMY_MAIN() { return 1; }
6248 #endif
6249 int
6250 main ()
6251 {
6252 /* The GNU C library defines this for functions which it implements
6253     to always fail with ENOSYS.  Some functions are actually named
6254     something starting with __ and the normal name is an alias.  */
6255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6256 choke me
6257 #else
6258 f = dlopen;
6259 #endif
6260
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } &&
6271          { ac_try='test -s conftest$ac_exeext'
6272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273   (eval $ac_try) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; }; then
6277   ac_cv_func_dlopen=yes
6278 else
6279   echo "$as_me: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6281 ac_cv_func_dlopen=no
6282 fi
6283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6284 fi
6285 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6286 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6287 if test $ac_cv_func_dlopen = yes; then
6288   lt_cv_dlopen="dlopen"
6289 else
6290   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6291 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6292 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   ac_check_lib_save_LIBS=$LIBS
6296 LIBS="-ldl  $LIBS"
6297 cat >conftest.$ac_ext <<_ACEOF
6298 #line $LINENO "configure"
6299 #include "confdefs.h"
6300
6301 /* Override any gcc2 internal prototype to avoid an error.  */
6302 #ifdef __cplusplus
6303 extern "C"
6304 #endif
6305 /* We use char because int might match the return type of a gcc2
6306    builtin and then its argument prototype would still apply.  */
6307 char dlopen ();
6308 #ifdef F77_DUMMY_MAIN
6309 #  ifdef __cplusplus
6310      extern "C"
6311 #  endif
6312    int F77_DUMMY_MAIN() { return 1; }
6313 #endif
6314 int
6315 main ()
6316 {
6317 dlopen ();
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 rm -f conftest.$ac_objext conftest$ac_exeext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6324   (eval $ac_link) 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } &&
6328          { ac_try='test -s conftest$ac_exeext'
6329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330   (eval $ac_try) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); }; }; then
6334   ac_cv_lib_dl_dlopen=yes
6335 else
6336   echo "$as_me: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 ac_cv_lib_dl_dlopen=no
6339 fi
6340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6341 LIBS=$ac_check_lib_save_LIBS
6342 fi
6343 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6344 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6345 if test $ac_cv_lib_dl_dlopen = yes; then
6346   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6347 else
6348   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6349 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6350 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   ac_check_lib_save_LIBS=$LIBS
6354 LIBS="-lsvld  $LIBS"
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 #include "confdefs.h"
6358
6359 /* Override any gcc2 internal prototype to avoid an error.  */
6360 #ifdef __cplusplus
6361 extern "C"
6362 #endif
6363 /* We use char because int might match the return type of a gcc2
6364    builtin and then its argument prototype would still apply.  */
6365 char dlopen ();
6366 #ifdef F77_DUMMY_MAIN
6367 #  ifdef __cplusplus
6368      extern "C"
6369 #  endif
6370    int F77_DUMMY_MAIN() { return 1; }
6371 #endif
6372 int
6373 main ()
6374 {
6375 dlopen ();
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382   (eval $ac_link) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } &&
6386          { ac_try='test -s conftest$ac_exeext'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; }; then
6392   ac_cv_lib_svld_dlopen=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6396 ac_cv_lib_svld_dlopen=no
6397 fi
6398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6399 LIBS=$ac_check_lib_save_LIBS
6400 fi
6401 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6402 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6403 if test $ac_cv_lib_svld_dlopen = yes; then
6404   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6405 else
6406   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6407 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6408 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   ac_check_lib_save_LIBS=$LIBS
6412 LIBS="-ldld  $LIBS"
6413 cat >conftest.$ac_ext <<_ACEOF
6414 #line $LINENO "configure"
6415 #include "confdefs.h"
6416
6417 /* Override any gcc2 internal prototype to avoid an error.  */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 /* We use char because int might match the return type of a gcc2
6422    builtin and then its argument prototype would still apply.  */
6423 char dld_link ();
6424 #ifdef F77_DUMMY_MAIN
6425 #  ifdef __cplusplus
6426      extern "C"
6427 #  endif
6428    int F77_DUMMY_MAIN() { return 1; }
6429 #endif
6430 int
6431 main ()
6432 {
6433 dld_link ();
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440   (eval $ac_link) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -s conftest$ac_exeext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   ac_cv_lib_dld_dld_link=yes
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 ac_cv_lib_dld_dld_link=no
6455 fi
6456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6457 LIBS=$ac_check_lib_save_LIBS
6458 fi
6459 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6460 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6461 if test $ac_cv_lib_dld_dld_link = yes; then
6462   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6463 fi
6464
6465
6466 fi
6467
6468
6469 fi
6470
6471
6472 fi
6473
6474
6475 fi
6476
6477
6478 fi
6479
6480     ;;
6481   esac
6482
6483   if test "x$lt_cv_dlopen" != xno; then
6484     enable_dlopen=yes
6485   else
6486     enable_dlopen=no
6487   fi
6488
6489   case $lt_cv_dlopen in
6490   dlopen)
6491     save_CPPFLAGS="$CPPFLAGS"
6492         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6493
6494     save_LDFLAGS="$LDFLAGS"
6495     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6496
6497     save_LIBS="$LIBS"
6498     LIBS="$lt_cv_dlopen_libs $LIBS"
6499
6500     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6501 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6502 if test "${lt_cv_dlopen_self+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505           if test "$cross_compiling" = yes; then :
6506   lt_cv_dlopen_self=cross
6507 else
6508     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6509   lt_status=$lt_dlunknown
6510   cat > conftest.$ac_ext <<EOF
6511 #line 6511 "configure"
6512 #include "confdefs.h"
6513
6514 #if HAVE_DLFCN_H
6515 #include <dlfcn.h>
6516 #endif
6517
6518 #include <stdio.h>
6519
6520 #ifdef RTLD_GLOBAL
6521 #  define LT_DLGLOBAL           RTLD_GLOBAL
6522 #else
6523 #  ifdef DL_GLOBAL
6524 #    define LT_DLGLOBAL         DL_GLOBAL
6525 #  else
6526 #    define LT_DLGLOBAL         0
6527 #  endif
6528 #endif
6529
6530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6531    find out it does not work in some platform. */
6532 #ifndef LT_DLLAZY_OR_NOW
6533 #  ifdef RTLD_LAZY
6534 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6535 #  else
6536 #    ifdef DL_LAZY
6537 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6538 #    else
6539 #      ifdef RTLD_NOW
6540 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6541 #      else
6542 #        ifdef DL_NOW
6543 #          define LT_DLLAZY_OR_NOW      DL_NOW
6544 #        else
6545 #          define LT_DLLAZY_OR_NOW      0
6546 #        endif
6547 #      endif
6548 #    endif
6549 #  endif
6550 #endif
6551
6552 #ifdef __cplusplus
6553 extern "C" void exit (int);
6554 #endif
6555
6556 void fnord() { int i=42;}
6557 int main ()
6558 {
6559   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6560   int status = $lt_dlunknown;
6561
6562   if (self)
6563     {
6564       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6565       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6566       /* dlclose (self); */
6567     }
6568
6569     exit (status);
6570 }
6571 EOF
6572   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573   (eval $ac_link) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6577     (./conftest; exit; ) 2>/dev/null
6578     lt_status=$?
6579     case x$lt_status in
6580       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6581       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6582       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6583     esac
6584   else :
6585     # compilation failed
6586     lt_cv_dlopen_self=no
6587   fi
6588 fi
6589 rm -fr conftest*
6590
6591
6592 fi
6593 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6594 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6595
6596     if test "x$lt_cv_dlopen_self" = xyes; then
6597       LDFLAGS="$LDFLAGS $link_static_flag"
6598       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6599 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6600 if test "${lt_cv_dlopen_self_static+set}" = set; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603           if test "$cross_compiling" = yes; then :
6604   lt_cv_dlopen_self_static=cross
6605 else
6606     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6607   lt_status=$lt_dlunknown
6608   cat > conftest.$ac_ext <<EOF
6609 #line 6609 "configure"
6610 #include "confdefs.h"
6611
6612 #if HAVE_DLFCN_H
6613 #include <dlfcn.h>
6614 #endif
6615
6616 #include <stdio.h>
6617
6618 #ifdef RTLD_GLOBAL
6619 #  define LT_DLGLOBAL           RTLD_GLOBAL
6620 #else
6621 #  ifdef DL_GLOBAL
6622 #    define LT_DLGLOBAL         DL_GLOBAL
6623 #  else
6624 #    define LT_DLGLOBAL         0
6625 #  endif
6626 #endif
6627
6628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6629    find out it does not work in some platform. */
6630 #ifndef LT_DLLAZY_OR_NOW
6631 #  ifdef RTLD_LAZY
6632 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6633 #  else
6634 #    ifdef DL_LAZY
6635 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6636 #    else
6637 #      ifdef RTLD_NOW
6638 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6639 #      else
6640 #        ifdef DL_NOW
6641 #          define LT_DLLAZY_OR_NOW      DL_NOW
6642 #        else
6643 #          define LT_DLLAZY_OR_NOW      0
6644 #        endif
6645 #      endif
6646 #    endif
6647 #  endif
6648 #endif
6649
6650 #ifdef __cplusplus
6651 extern "C" void exit (int);
6652 #endif
6653
6654 void fnord() { int i=42;}
6655 int main ()
6656 {
6657   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6658   int status = $lt_dlunknown;
6659
6660   if (self)
6661     {
6662       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6663       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6664       /* dlclose (self); */
6665     }
6666
6667     exit (status);
6668 }
6669 EOF
6670   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671   (eval $ac_link) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6675     (./conftest; exit; ) 2>/dev/null
6676     lt_status=$?
6677     case x$lt_status in
6678       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6679       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6680       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6681     esac
6682   else :
6683     # compilation failed
6684     lt_cv_dlopen_self_static=no
6685   fi
6686 fi
6687 rm -fr conftest*
6688
6689
6690 fi
6691 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6692 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6693     fi
6694
6695     CPPFLAGS="$save_CPPFLAGS"
6696     LDFLAGS="$save_LDFLAGS"
6697     LIBS="$save_LIBS"
6698     ;;
6699   esac
6700
6701   case $lt_cv_dlopen_self in
6702   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6703   *) enable_dlopen_self=unknown ;;
6704   esac
6705
6706   case $lt_cv_dlopen_self_static in
6707   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6708   *) enable_dlopen_self_static=unknown ;;
6709   esac
6710 fi
6711
6712
6713 if test "$enable_shared" = yes && test "$GCC" = yes; then
6714   case $archive_cmds in
6715   *'~'*)
6716     # FIXME: we may have to deal with multi-command sequences.
6717     ;;
6718   '$CC '*)
6719     # Test whether the compiler implicitly links with -lc since on some
6720     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6721     # to ld, don't add -lc before -lgcc.
6722     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6724     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   $rm conftest*
6728     echo 'static int dummy;' > conftest.$ac_ext
6729
6730     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731   (eval $ac_compile) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; then
6735       soname=conftest
6736       lib=conftest
6737       libobjs=conftest.$ac_objext
6738       deplibs=
6739       wl=$lt_cv_prog_cc_wl
6740       compiler_flags=-v
6741       linker_flags=-v
6742       verstring=
6743       output_objdir=.
6744       libname=conftest
6745       save_allow_undefined_flag=$allow_undefined_flag
6746       allow_undefined_flag=
6747       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6748   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }
6752       then
6753         lt_cv_archive_cmds_need_lc=no
6754       else
6755         lt_cv_archive_cmds_need_lc=yes
6756       fi
6757       allow_undefined_flag=$save_allow_undefined_flag
6758     else
6759       cat conftest.err 1>&5
6760     fi
6761 fi
6762
6763     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6764 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6765     ;;
6766   esac
6767 fi
6768 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6769
6770 # The second clause should only fire when bootstrapping the
6771 # libtool distribution, otherwise you forgot to ship ltmain.sh
6772 # with your package, and you will get complaints that there are
6773 # no rules to generate ltmain.sh.
6774 if test -f "$ltmain"; then
6775   :
6776 else
6777   # If there is no Makefile yet, we rely on a make rule to execute
6778   # `config.status --recheck' to rerun these tests and create the
6779   # libtool script then.
6780   test -f Makefile && make "$ltmain"
6781 fi
6782
6783 if test -f "$ltmain"; then
6784   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6785   $rm -f "${ofile}T"
6786
6787   echo creating $ofile
6788
6789   # Now quote all the things that may contain metacharacters while being
6790   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6791   # variables and quote the copies for generation of the libtool script.
6792   for var in echo old_CC old_CFLAGS \
6793     AR AR_FLAGS CC LD LN_S NM SHELL \
6794     reload_flag reload_cmds wl \
6795     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6796     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6797     library_names_spec soname_spec \
6798     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6799     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6800     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6801     old_striplib striplib file_magic_cmd export_symbols_cmds \
6802     deplibs_check_method allow_undefined_flag no_undefined_flag \
6803     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6804     global_symbol_to_c_name_address \
6805     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6806     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6807     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6808
6809     case $var in
6810     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6811     old_postinstall_cmds | old_postuninstall_cmds | \
6812     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6813     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6814     postinstall_cmds | postuninstall_cmds | \
6815     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6816       # Double-quote double-evaled strings.
6817       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6818       ;;
6819     *)
6820       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6821       ;;
6822     esac
6823   done
6824
6825   cat <<__EOF__ > "${ofile}T"
6826 #! $SHELL
6827
6828 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6829 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6830 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6831 #
6832 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6833 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6834 #
6835 # This program is free software; you can redistribute it and/or modify
6836 # it under the terms of the GNU General Public License as published by
6837 # the Free Software Foundation; either version 2 of the License, or
6838 # (at your option) any later version.
6839 #
6840 # This program is distributed in the hope that it will be useful, but
6841 # WITHOUT ANY WARRANTY; without even the implied warranty of
6842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6843 # General Public License for more details.
6844 #
6845 # You should have received a copy of the GNU General Public License
6846 # along with this program; if not, write to the Free Software
6847 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6848 #
6849 # As a special exception to the GNU General Public License, if you
6850 # distribute this file as part of a program that contains a
6851 # configuration script generated by Autoconf, you may include it under
6852 # the same distribution terms that you use for the rest of that program.
6853
6854 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6855 Xsed="sed -e s/^X//"
6856
6857 # The HP-UX ksh and POSIX shell print the target directory to stdout
6858 # if CDPATH is set.
6859 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6860
6861 # ### BEGIN LIBTOOL CONFIG
6862
6863 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6864
6865 # Shell to use when invoking shell scripts.
6866 SHELL=$lt_SHELL
6867
6868 # Whether or not to build shared libraries.
6869 build_libtool_libs=$enable_shared
6870
6871 # Whether or not to build static libraries.
6872 build_old_libs=$enable_static
6873
6874 # Whether or not to add -lc for building shared libraries.
6875 build_libtool_need_lc=$need_lc
6876
6877 # Whether or not to optimize for fast installation.
6878 fast_install=$enable_fast_install
6879
6880 # The host system.
6881 host_alias=$host_alias
6882 host=$host
6883
6884 # An echo program that does not interpret backslashes.
6885 echo=$lt_echo
6886
6887 # The archiver.
6888 AR=$lt_AR
6889 AR_FLAGS=$lt_AR_FLAGS
6890
6891 # The default C compiler.
6892 CC=$lt_CC
6893
6894 # Is the compiler the GNU C compiler?
6895 with_gcc=$GCC
6896
6897 # The linker used to build libraries.
6898 LD=$lt_LD
6899
6900 # Whether we need hard or soft links.
6901 LN_S=$lt_LN_S
6902
6903 # A BSD-compatible nm program.
6904 NM=$lt_NM
6905
6906 # A symbol stripping program
6907 STRIP=$STRIP
6908
6909 # Used to examine libraries when file_magic_cmd begins "file"
6910 MAGIC_CMD=$MAGIC_CMD
6911
6912 # Used on cygwin: DLL creation program.
6913 DLLTOOL="$DLLTOOL"
6914
6915 # Used on cygwin: object dumper.
6916 OBJDUMP="$OBJDUMP"
6917
6918 # Used on cygwin: assembler.
6919 AS="$AS"
6920
6921 # The name of the directory that contains temporary libtool files.
6922 objdir=$objdir
6923
6924 # How to create reloadable object files.
6925 reload_flag=$lt_reload_flag
6926 reload_cmds=$lt_reload_cmds
6927
6928 # How to pass a linker flag through the compiler.
6929 wl=$lt_wl
6930
6931 # Object file suffix (normally "o").
6932 objext="$ac_objext"
6933
6934 # Old archive suffix (normally "a").
6935 libext="$libext"
6936
6937 # Executable file suffix (normally "").
6938 exeext="$exeext"
6939
6940 # Additional compiler flags for building library objects.
6941 pic_flag=$lt_pic_flag
6942 pic_mode=$pic_mode
6943
6944 # Does compiler simultaneously support -c and -o options?
6945 compiler_c_o=$lt_compiler_c_o
6946
6947 # Can we write directly to a .lo ?
6948 compiler_o_lo=$lt_compiler_o_lo
6949
6950 # Must we lock files when doing compilation ?
6951 need_locks=$lt_need_locks
6952
6953 # Do we need the lib prefix for modules?
6954 need_lib_prefix=$need_lib_prefix
6955
6956 # Do we need a version for libraries?
6957 need_version=$need_version
6958
6959 # Whether dlopen is supported.
6960 dlopen_support=$enable_dlopen
6961
6962 # Whether dlopen of programs is supported.
6963 dlopen_self=$enable_dlopen_self
6964
6965 # Whether dlopen of statically linked programs is supported.
6966 dlopen_self_static=$enable_dlopen_self_static
6967
6968 # Compiler flag to prevent dynamic linking.
6969 link_static_flag=$lt_link_static_flag
6970
6971 # Compiler flag to turn off builtin functions.
6972 no_builtin_flag=$lt_no_builtin_flag
6973
6974 # Compiler flag to allow reflexive dlopens.
6975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6976
6977 # Compiler flag to generate shared objects directly from archives.
6978 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6979
6980 # Compiler flag to generate thread-safe objects.
6981 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6982
6983 # Library versioning type.
6984 version_type=$version_type
6985
6986 # Format of library name prefix.
6987 libname_spec=$lt_libname_spec
6988
6989 # List of archive names.  First name is the real one, the rest are links.
6990 # The last name is the one that the linker finds with -lNAME.
6991 library_names_spec=$lt_library_names_spec
6992
6993 # The coded name of the library, if different from the real name.
6994 soname_spec=$lt_soname_spec
6995
6996 # Commands used to build and install an old-style archive.
6997 RANLIB=$lt_RANLIB
6998 old_archive_cmds=$lt_old_archive_cmds
6999 old_postinstall_cmds=$lt_old_postinstall_cmds
7000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7001
7002 # Create an old-style archive from a shared archive.
7003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7004
7005 # Create a temporary old-style archive to link instead of a shared archive.
7006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7007
7008 # Commands used to build and install a shared archive.
7009 archive_cmds=$lt_archive_cmds
7010 archive_expsym_cmds=$lt_archive_expsym_cmds
7011 postinstall_cmds=$lt_postinstall_cmds
7012 postuninstall_cmds=$lt_postuninstall_cmds
7013
7014 # Commands to strip libraries.
7015 old_striplib=$lt_old_striplib
7016 striplib=$lt_striplib
7017
7018 # Method to check whether dependent libraries are shared objects.
7019 deplibs_check_method=$lt_deplibs_check_method
7020
7021 # Command to use when deplibs_check_method == file_magic.
7022 file_magic_cmd=$lt_file_magic_cmd
7023
7024 # Flag that allows shared libraries with undefined symbols to be built.
7025 allow_undefined_flag=$lt_allow_undefined_flag
7026
7027 # Flag that forces no undefined symbols.
7028 no_undefined_flag=$lt_no_undefined_flag
7029
7030 # Commands used to finish a libtool library installation in a directory.
7031 finish_cmds=$lt_finish_cmds
7032
7033 # Same as above, but a single script fragment to be evaled but not shown.
7034 finish_eval=$lt_finish_eval
7035
7036 # Take the output of nm and produce a listing of raw symbols and C names.
7037 global_symbol_pipe=$lt_global_symbol_pipe
7038
7039 # Transform the output of nm in a proper C declaration
7040 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7041
7042 # Transform the output of nm in a C name address pair
7043 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7044
7045 # This is the shared library runtime path variable.
7046 runpath_var=$runpath_var
7047
7048 # This is the shared library path variable.
7049 shlibpath_var=$shlibpath_var
7050
7051 # Is shlibpath searched before the hard-coded library search path?
7052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7053
7054 # How to hardcode a shared library path into an executable.
7055 hardcode_action=$hardcode_action
7056
7057 # Whether we should hardcode library paths into libraries.
7058 hardcode_into_libs=$hardcode_into_libs
7059
7060 # Flag to hardcode \$libdir into a binary during linking.
7061 # This must work even if \$libdir does not exist.
7062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7063
7064 # Whether we need a single -rpath flag with a separated argument.
7065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7066
7067 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7068 # resulting binary.
7069 hardcode_direct=$hardcode_direct
7070
7071 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7072 # resulting binary.
7073 hardcode_minus_L=$hardcode_minus_L
7074
7075 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7076 # the resulting binary.
7077 hardcode_shlibpath_var=$hardcode_shlibpath_var
7078
7079 # Variables whose values should be saved in libtool wrapper scripts and
7080 # restored at relink time.
7081 variables_saved_for_relink="$variables_saved_for_relink"
7082
7083 # Whether libtool must link a program against all its dependency libraries.
7084 link_all_deplibs=$link_all_deplibs
7085
7086 # Compile-time system search path for libraries
7087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7088
7089 # Run-time system search path for libraries
7090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7091
7092 # Fix the shell variable \$srcfile for the compiler.
7093 fix_srcfile_path="$fix_srcfile_path"
7094
7095 # Set to yes if exported symbols are required.
7096 always_export_symbols=$always_export_symbols
7097
7098 # The commands to list exported symbols.
7099 export_symbols_cmds=$lt_export_symbols_cmds
7100
7101 # The commands to extract the exported symbol list from a shared archive.
7102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7103
7104 # Symbols that should not be listed in the preloaded symbols.
7105 exclude_expsyms=$lt_exclude_expsyms
7106
7107 # Symbols that must always be exported.
7108 include_expsyms=$lt_include_expsyms
7109
7110 # ### END LIBTOOL CONFIG
7111
7112 __EOF__
7113
7114   case $host_os in
7115   aix3*)
7116     cat <<\EOF >> "${ofile}T"
7117
7118 # AIX sometimes has problems with the GCC collect2 program.  For some
7119 # reason, if we set the COLLECT_NAMES environment variable, the problems
7120 # vanish in a puff of smoke.
7121 if test "X${COLLECT_NAMES+set}" != Xset; then
7122   COLLECT_NAMES=
7123   export COLLECT_NAMES
7124 fi
7125 EOF
7126     ;;
7127   esac
7128
7129   case $host_os in
7130   cygwin* | mingw* | pw32* | os2*)
7131     cat <<'EOF' >> "${ofile}T"
7132       # This is a source program that is used to create dlls on Windows
7133       # Don't remove nor modify the starting and closing comments
7134 # /* ltdll.c starts here */
7135 # #define WIN32_LEAN_AND_MEAN
7136 # #include <windows.h>
7137 # #undef WIN32_LEAN_AND_MEAN
7138 # #include <stdio.h>
7139 #
7140 # #ifndef __CYGWIN__
7141 # #  ifdef __CYGWIN32__
7142 # #    define __CYGWIN__ __CYGWIN32__
7143 # #  endif
7144 # #endif
7145 #
7146 # #ifdef __cplusplus
7147 # extern "C" {
7148 # #endif
7149 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7150 # #ifdef __cplusplus
7151 # }
7152 # #endif
7153 #
7154 # #ifdef __CYGWIN__
7155 # #include <cygwin/cygwin_dll.h>
7156 # DECLARE_CYGWIN_DLL( DllMain );
7157 # #endif
7158 # HINSTANCE __hDllInstance_base;
7159 #
7160 # BOOL APIENTRY
7161 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7162 # {
7163 #   __hDllInstance_base = hInst;
7164 #   return TRUE;
7165 # }
7166 # /* ltdll.c ends here */
7167         # This is a source program that is used to create import libraries
7168         # on Windows for dlls which lack them. Don't remove nor modify the
7169         # starting and closing comments
7170 # /* impgen.c starts here */
7171 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7172 #
7173 #  This file is part of GNU libtool.
7174 #
7175 #  This program is free software; you can redistribute it and/or modify
7176 #  it under the terms of the GNU General Public License as published by
7177 #  the Free Software Foundation; either version 2 of the License, or
7178 #  (at your option) any later version.
7179 #
7180 #  This program is distributed in the hope that it will be useful,
7181 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7182 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7183 #  GNU General Public License for more details.
7184 #
7185 #  You should have received a copy of the GNU General Public License
7186 #  along with this program; if not, write to the Free Software
7187 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7188 #  */
7189 #
7190 # #include <stdio.h>            /* for printf() */
7191 # #include <unistd.h>           /* for open(), lseek(), read() */
7192 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7193 # #include <string.h>           /* for strdup() */
7194 #
7195 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7196 # #ifndef O_BINARY
7197 # #define O_BINARY 0
7198 # #endif
7199 #
7200 # static unsigned int
7201 # pe_get16 (fd, offset)
7202 #      int fd;
7203 #      int offset;
7204 # {
7205 #   unsigned char b[2];
7206 #   lseek (fd, offset, SEEK_SET);
7207 #   read (fd, b, 2);
7208 #   return b[0] + (b[1]<<8);
7209 # }
7210 #
7211 # static unsigned int
7212 # pe_get32 (fd, offset)
7213 #     int fd;
7214 #     int offset;
7215 # {
7216 #   unsigned char b[4];
7217 #   lseek (fd, offset, SEEK_SET);
7218 #   read (fd, b, 4);
7219 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7220 # }
7221 #
7222 # static unsigned int
7223 # pe_as32 (ptr)
7224 #      void *ptr;
7225 # {
7226 #   unsigned char *b = ptr;
7227 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7228 # }
7229 #
7230 # int
7231 # main (argc, argv)
7232 #     int argc;
7233 #     char *argv[];
7234 # {
7235 #     int dll;
7236 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7237 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7238 #     unsigned long name_rvas, nexp;
7239 #     unsigned char *expdata, *erva;
7240 #     char *filename, *dll_name;
7241 #
7242 #     filename = argv[1];
7243 #
7244 #     dll = open(filename, O_RDONLY|O_BINARY);
7245 #     if (dll < 1)
7246 #       return 1;
7247 #
7248 #     dll_name = filename;
7249 #
7250 #     for (i=0; filename[i]; i++)
7251 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7252 #           dll_name = filename + i +1;
7253 #
7254 #     pe_header_offset = pe_get32 (dll, 0x3c);
7255 #     opthdr_ofs = pe_header_offset + 4 + 20;
7256 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7257 #
7258 #     if (num_entries < 1) /* no exports */
7259 #       return 1;
7260 #
7261 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7262 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7263 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7264 #     secptr = (pe_header_offset + 4 + 20 +
7265 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7266 #
7267 #     expptr = 0;
7268 #     for (i = 0; i < nsections; i++)
7269 #     {
7270 #       char sname[8];
7271 #       unsigned long secptr1 = secptr + 40 * i;
7272 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7273 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7274 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7275 #       lseek(dll, secptr1, SEEK_SET);
7276 #       read(dll, sname, 8);
7277 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7278 #       {
7279 #           expptr = fptr + (export_rva - vaddr);
7280 #           if (export_rva + export_size > vaddr + vsize)
7281 #               export_size = vsize - (export_rva - vaddr);
7282 #           break;
7283 #       }
7284 #     }
7285 #
7286 #     expdata = (unsigned char*)malloc(export_size);
7287 #     lseek (dll, expptr, SEEK_SET);
7288 #     read (dll, expdata, export_size);
7289 #     erva = expdata - export_rva;
7290 #
7291 #     nexp = pe_as32 (expdata+24);
7292 #     name_rvas = pe_as32 (expdata+32);
7293 #
7294 #     printf ("EXPORTS\n");
7295 #     for (i = 0; i<nexp; i++)
7296 #     {
7297 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7298 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7299 #     }
7300 #
7301 #     return 0;
7302 # }
7303 # /* impgen.c ends here */
7304
7305 EOF
7306     ;;
7307   esac
7308
7309   # We use sed instead of cat because bash on DJGPP gets confused if
7310   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7311   # text mode, it properly converts lines to CR/LF.  This bash problem
7312   # is reportedly fixed, but why not run on old versions too?
7313   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7314
7315   mv -f "${ofile}T" "$ofile" || \
7316     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7317   chmod +x "$ofile"
7318 fi
7319
7320
7321
7322
7323
7324 # This can be used to rebuild libtool when needed
7325 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7326
7327 # Always use our own libtool.
7328 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7329
7330 # Prevent multiple expansion
7331
7332
7333 for ac_prog in 'bison -y' byacc
7334 do
7335   # Extract the first word of "$ac_prog", so it can be a program name with args.
7336 set dummy $ac_prog; ac_word=$2
7337 echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339 if test "${ac_cv_prog_YACC+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   if test -n "$YACC"; then
7343   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350   for ac_exec_ext in '' $ac_executable_extensions; do
7351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352     ac_cv_prog_YACC="$ac_prog"
7353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357 done
7358
7359 fi
7360 fi
7361 YACC=$ac_cv_prog_YACC
7362 if test -n "$YACC"; then
7363   echo "$as_me:$LINENO: result: $YACC" >&5
7364 echo "${ECHO_T}$YACC" >&6
7365 else
7366   echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7368 fi
7369
7370   test -n "$YACC" && break
7371 done
7372 test -n "$YACC" || YACC="yacc"
7373
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379 if test -n "$ac_tool_prefix"; then
7380   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_CC+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   if test -n "$CC"; then
7388   ac_cv_prog_CC="$CC" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393   IFS=$as_save_IFS
7394   test -z "$as_dir" && as_dir=.
7395   for ac_exec_ext in '' $ac_executable_extensions; do
7396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397     ac_cv_prog_CC="${ac_tool_prefix}gcc"
7398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399     break 2
7400   fi
7401 done
7402 done
7403
7404 fi
7405 fi
7406 CC=$ac_cv_prog_CC
7407 if test -n "$CC"; then
7408   echo "$as_me:$LINENO: result: $CC" >&5
7409 echo "${ECHO_T}$CC" >&6
7410 else
7411   echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413 fi
7414
7415 fi
7416 if test -z "$ac_cv_prog_CC"; then
7417   ac_ct_CC=$CC
7418   # Extract the first word of "gcc", so it can be a program name with args.
7419 set dummy gcc; ac_word=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   if test -n "$ac_ct_CC"; then
7426   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433   for ac_exec_ext in '' $ac_executable_extensions; do
7434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435     ac_cv_prog_ac_ct_CC="gcc"
7436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440 done
7441
7442 fi
7443 fi
7444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7445 if test -n "$ac_ct_CC"; then
7446   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7447 echo "${ECHO_T}$ac_ct_CC" >&6
7448 else
7449   echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7451 fi
7452
7453   CC=$ac_ct_CC
7454 else
7455   CC="$ac_cv_prog_CC"
7456 fi
7457
7458 if test -z "$CC"; then
7459   if test -n "$ac_tool_prefix"; then
7460   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}cc; ac_word=$2
7462 echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464 if test "${ac_cv_prog_CC+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   if test -n "$CC"; then
7468   ac_cv_prog_CC="$CC" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475   for ac_exec_ext in '' $ac_executable_extensions; do
7476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477     ac_cv_prog_CC="${ac_tool_prefix}cc"
7478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482 done
7483
7484 fi
7485 fi
7486 CC=$ac_cv_prog_CC
7487 if test -n "$CC"; then
7488   echo "$as_me:$LINENO: result: $CC" >&5
7489 echo "${ECHO_T}$CC" >&6
7490 else
7491   echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7493 fi
7494
7495 fi
7496 if test -z "$ac_cv_prog_CC"; then
7497   ac_ct_CC=$CC
7498   # Extract the first word of "cc", so it can be a program name with args.
7499 set dummy cc; ac_word=$2
7500 echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   if test -n "$ac_ct_CC"; then
7506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513   for ac_exec_ext in '' $ac_executable_extensions; do
7514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_prog_ac_ct_CC="cc"
7516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520 done
7521
7522 fi
7523 fi
7524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7525 if test -n "$ac_ct_CC"; then
7526   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7527 echo "${ECHO_T}$ac_ct_CC" >&6
7528 else
7529   echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7531 fi
7532
7533   CC=$ac_ct_CC
7534 else
7535   CC="$ac_cv_prog_CC"
7536 fi
7537
7538 fi
7539 if test -z "$CC"; then
7540   # Extract the first word of "cc", so it can be a program name with args.
7541 set dummy cc; ac_word=$2
7542 echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7544 if test "${ac_cv_prog_CC+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   if test -n "$CC"; then
7548   ac_cv_prog_CC="$CC" # Let the user override the test.
7549 else
7550   ac_prog_rejected=no
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7559        ac_prog_rejected=yes
7560        continue
7561      fi
7562     ac_cv_prog_CC="cc"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568
7569 if test $ac_prog_rejected = yes; then
7570   # We found a bogon in the path, so make sure we never use it.
7571   set dummy $ac_cv_prog_CC
7572   shift
7573   if test $# != 0; then
7574     # We chose a different compiler from the bogus one.
7575     # However, it has the same basename, so the bogon will be chosen
7576     # first if we set CC to just the basename; use the full file name.
7577     shift
7578     set dummy "$as_dir/$ac_word" ${1+"$@"}
7579     shift
7580     ac_cv_prog_CC="$@"
7581   fi
7582 fi
7583 fi
7584 fi
7585 CC=$ac_cv_prog_CC
7586 if test -n "$CC"; then
7587   echo "$as_me:$LINENO: result: $CC" >&5
7588 echo "${ECHO_T}$CC" >&6
7589 else
7590   echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7592 fi
7593
7594 fi
7595 if test -z "$CC"; then
7596   if test -n "$ac_tool_prefix"; then
7597   for ac_prog in cl
7598   do
7599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7601 echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603 if test "${ac_cv_prog_CC+set}" = set; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   if test -n "$CC"; then
7607   ac_cv_prog_CC="$CC" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614   for ac_exec_ext in '' $ac_executable_extensions; do
7615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621 done
7622
7623 fi
7624 fi
7625 CC=$ac_cv_prog_CC
7626 if test -n "$CC"; then
7627   echo "$as_me:$LINENO: result: $CC" >&5
7628 echo "${ECHO_T}$CC" >&6
7629 else
7630   echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6
7632 fi
7633
7634     test -n "$CC" && break
7635   done
7636 fi
7637 if test -z "$CC"; then
7638   ac_ct_CC=$CC
7639   for ac_prog in cl
7640 do
7641   # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   if test -n "$ac_ct_CC"; then
7649   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656   for ac_exec_ext in '' $ac_executable_extensions; do
7657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658     ac_cv_prog_ac_ct_CC="$ac_prog"
7659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663 done
7664
7665 fi
7666 fi
7667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7668 if test -n "$ac_ct_CC"; then
7669   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7670 echo "${ECHO_T}$ac_ct_CC" >&6
7671 else
7672   echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6
7674 fi
7675
7676   test -n "$ac_ct_CC" && break
7677 done
7678
7679   CC=$ac_ct_CC
7680 fi
7681
7682 fi
7683
7684
7685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7686 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7687    { (exit 1); exit 1; }; }
7688
7689 # Provide some information about the compiler.
7690 echo "$as_me:$LINENO:" \
7691      "checking for C compiler version" >&5
7692 ac_compiler=`set X $ac_compile; echo $2`
7693 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7694   (eval $ac_compiler --version </dev/null >&5) 2>&5
7695   ac_status=$?
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); }
7698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7699   (eval $ac_compiler -v </dev/null >&5) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }
7703 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7704   (eval $ac_compiler -V </dev/null >&5) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); }
7708
7709 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   cat >conftest.$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 #include "confdefs.h"
7717
7718 #ifdef F77_DUMMY_MAIN
7719 #  ifdef __cplusplus
7720      extern "C"
7721 #  endif
7722    int F77_DUMMY_MAIN() { return 1; }
7723 #endif
7724 int
7725 main ()
7726 {
7727 #ifndef __GNUC__
7728        choke me
7729 #endif
7730
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737   (eval $ac_compile) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } &&
7741          { ac_try='test -s conftest.$ac_objext'
7742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   ac_compiler_gnu=yes
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 ac_compiler_gnu=no
7752 fi
7753 rm -f conftest.$ac_objext conftest.$ac_ext
7754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7755
7756 fi
7757 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7758 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7759 GCC=`test $ac_compiler_gnu = yes && echo yes`
7760 ac_test_CFLAGS=${CFLAGS+set}
7761 ac_save_CFLAGS=$CFLAGS
7762 CFLAGS="-g"
7763 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7764 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7765 if test "${ac_cv_prog_cc_g+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771
7772 #ifdef F77_DUMMY_MAIN
7773 #  ifdef __cplusplus
7774      extern "C"
7775 #  endif
7776    int F77_DUMMY_MAIN() { return 1; }
7777 #endif
7778 int
7779 main ()
7780 {
7781
7782   ;
7783   return 0;
7784 }
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788   (eval $ac_compile) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } &&
7792          { ac_try='test -s conftest.$ac_objext'
7793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794   (eval $ac_try) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; }; then
7798   ac_cv_prog_cc_g=yes
7799 else
7800   echo "$as_me: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7802 ac_cv_prog_cc_g=no
7803 fi
7804 rm -f conftest.$ac_objext conftest.$ac_ext
7805 fi
7806 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7807 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7808 if test "$ac_test_CFLAGS" = set; then
7809   CFLAGS=$ac_save_CFLAGS
7810 elif test $ac_cv_prog_cc_g = yes; then
7811   if test "$GCC" = yes; then
7812     CFLAGS="-g -O2"
7813   else
7814     CFLAGS="-g"
7815   fi
7816 else
7817   if test "$GCC" = yes; then
7818     CFLAGS="-O2"
7819   else
7820     CFLAGS=
7821   fi
7822 fi
7823 # Some people use a C++ compiler to compile C.  Since we use `exit',
7824 # in C++ we need to declare it.  In case someone uses the same compiler
7825 # for both compiling C and C++ we need to have the C++ compiler decide
7826 # the declaration of exit, since it's the most demanding environment.
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #ifndef __cplusplus
7829   choke me
7830 #endif
7831 _ACEOF
7832 rm -f conftest.$ac_objext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7834   (eval $ac_compile) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -s conftest.$ac_objext'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   for ac_declaration in \
7845    ''\
7846    '#include <stdlib.h>' \
7847    'extern "C" void std::exit (int) throw (); using std::exit;' \
7848    'extern "C" void std::exit (int); using std::exit;' \
7849    'extern "C" void exit (int) throw ();' \
7850    'extern "C" void exit (int);' \
7851    'void exit (int);'
7852 do
7853   cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7855 #include "confdefs.h"
7856 #include <stdlib.h>
7857 $ac_declaration
7858 #ifdef F77_DUMMY_MAIN
7859 #  ifdef __cplusplus
7860      extern "C"
7861 #  endif
7862    int F77_DUMMY_MAIN() { return 1; }
7863 #endif
7864 int
7865 main ()
7866 {
7867 exit (42);
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7874   (eval $ac_compile) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); } &&
7878          { ac_try='test -s conftest.$ac_objext'
7879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880   (eval $ac_try) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; }; then
7884   :
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7888 continue
7889 fi
7890 rm -f conftest.$ac_objext conftest.$ac_ext
7891   cat >conftest.$ac_ext <<_ACEOF
7892 #line $LINENO "configure"
7893 #include "confdefs.h"
7894 $ac_declaration
7895 #ifdef F77_DUMMY_MAIN
7896 #  ifdef __cplusplus
7897      extern "C"
7898 #  endif
7899    int F77_DUMMY_MAIN() { return 1; }
7900 #endif
7901 int
7902 main ()
7903 {
7904 exit (42);
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest.$ac_objext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7911   (eval $ac_compile) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -s conftest.$ac_objext'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   break
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 fi
7926 rm -f conftest.$ac_objext conftest.$ac_ext
7927 done
7928 rm -f conftest*
7929 if test -n "$ac_declaration"; then
7930   echo '#ifdef __cplusplus' >>confdefs.h
7931   echo $ac_declaration      >>confdefs.h
7932   echo '#endif'             >>confdefs.h
7933 fi
7934
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7938 fi
7939 rm -f conftest.$ac_objext conftest.$ac_ext
7940 ac_ext=c
7941 ac_cpp='$CPP $CPPFLAGS'
7942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946 depcc="$CC"   am_compiler_list=
7947
7948 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7954   # We make a subdir and do the tests there.  Otherwise we can end up
7955   # making bogus files that we don't know about and never remove.  For
7956   # instance it was reported that on HP-UX the gcc test will end up
7957   # making a dummy file named `D' -- because `-MD' means `put the output
7958   # in D'.
7959   mkdir conftest.dir
7960   # Copy depcomp to subdir because otherwise we won't find it if we're
7961   # using a relative directory.
7962   cp "$am_depcomp" conftest.dir
7963   cd conftest.dir
7964
7965   am_cv_CC_dependencies_compiler_type=none
7966   if test "$am_compiler_list" = ""; then
7967      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7968   fi
7969   for depmode in $am_compiler_list; do
7970     # We need to recreate these files for each test, as the compiler may
7971     # overwrite some of them when testing with obscure command lines.
7972     # This happens at least with the AIX C compiler.
7973     echo '#include "conftest.h"' > conftest.c
7974     echo 'int i;' > conftest.h
7975     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7976
7977     case $depmode in
7978     nosideeffect)
7979       # after this tag, mechanisms are not by side-effect, so they'll
7980       # only be used when explicitly requested
7981       if test "x$enable_dependency_tracking" = xyes; then
7982         continue
7983       else
7984         break
7985       fi
7986       ;;
7987     none) break ;;
7988     esac
7989     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7990     # mode.  It turns out that the SunPro C++ compiler does not properly
7991     # handle `-M -o', and we need to detect this.
7992     if depmode=$depmode \
7993        source=conftest.c object=conftest.o \
7994        depfile=conftest.Po tmpdepfile=conftest.TPo \
7995        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7996        grep conftest.h conftest.Po > /dev/null 2>&1 &&
7997        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7998       am_cv_CC_dependencies_compiler_type=$depmode
7999       break
8000     fi
8001   done
8002
8003   cd ..
8004   rm -rf conftest.dir
8005 else
8006   am_cv_CC_dependencies_compiler_type=none
8007 fi
8008
8009 fi
8010 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8011 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8012 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8013
8014
8015 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8016 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8017 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8018 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   cat >conftest.make <<\_ACEOF
8022 all:
8023         @echo 'ac_maketemp="${MAKE}"'
8024 _ACEOF
8025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8026 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8027 if test -n "$ac_maketemp"; then
8028   eval ac_cv_prog_make_${ac_make}_set=yes
8029 else
8030   eval ac_cv_prog_make_${ac_make}_set=no
8031 fi
8032 rm -f conftest.make
8033 fi
8034 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8035   echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6
8037   SET_MAKE=
8038 else
8039   echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6
8041   SET_MAKE="MAKE=${MAKE-make}"
8042 fi
8043
8044
8045 # Checks for libraries.
8046 # FIXME: Replace `main' with a function in `-lX11':
8047 # AC_CHECK_LIB([X11], [main])
8048 # FIXME: Replace `main' with a function in `-ldl':
8049 # AC_CHECK_LIB([dl], [main])
8050 # FIXME: Replace `main' with a function in `-lefence':
8051 # AC_CHECK_LIB([efence], [main])
8052 # FIXME: Replace `main' with a function in `-lm':
8053 # AC_CHECK_LIB([m], [main])
8054 # FIXME: Replace `main' with a function in `-lproj':
8055 # AC_CHECK_LIB([proj], [main])
8056
8057 # Checks for header files.
8058 echo "$as_me:$LINENO: checking for X" >&5
8059 echo $ECHO_N "checking for X... $ECHO_C" >&6
8060
8061
8062 # Check whether --with-x or --without-x was given.
8063 if test "${with_x+set}" = set; then
8064   withval="$with_x"
8065
8066 fi;
8067 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8068 if test "x$with_x" = xno; then
8069   # The user explicitly disabled X.
8070   have_x=disabled
8071 else
8072   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8073     # Both variables are already set.
8074     have_x=yes
8075   else
8076     if test "${ac_cv_have_x+set}" = set; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   # One or both of the vars are not set, and there is no cached value.
8080 ac_x_includes=no ac_x_libraries=no
8081 rm -fr conftest.dir
8082 if mkdir conftest.dir; then
8083   cd conftest.dir
8084   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8085   cat >Imakefile <<'_ACEOF'
8086 acfindx:
8087         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8088 _ACEOF
8089   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8090     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8091     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8092     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8093     for ac_extension in a so sl; do
8094       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8095          test -f $ac_im_libdir/libX11.$ac_extension; then
8096         ac_im_usrlibdir=$ac_im_libdir; break
8097       fi
8098     done
8099     # Screen out bogus values from the imake configuration.  They are
8100     # bogus both because they are the default anyway, and because
8101     # using them would break gcc on systems where it needs fixed includes.
8102     case $ac_im_incroot in
8103         /usr/include) ;;
8104         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8105     esac
8106     case $ac_im_usrlibdir in
8107         /usr/lib | /lib) ;;
8108         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8109     esac
8110   fi
8111   cd ..
8112   rm -fr conftest.dir
8113 fi
8114
8115 # Standard set of common directories for X headers.
8116 # Check X11 before X11Rn because it is often a symlink to the current release.
8117 ac_x_header_dirs='
8118 /usr/X11/include
8119 /usr/X11R6/include
8120 /usr/X11R5/include
8121 /usr/X11R4/include
8122
8123 /usr/include/X11
8124 /usr/include/X11R6
8125 /usr/include/X11R5
8126 /usr/include/X11R4
8127
8128 /usr/local/X11/include
8129 /usr/local/X11R6/include
8130 /usr/local/X11R5/include
8131 /usr/local/X11R4/include
8132
8133 /usr/local/include/X11
8134 /usr/local/include/X11R6
8135 /usr/local/include/X11R5
8136 /usr/local/include/X11R4
8137
8138 /usr/X386/include
8139 /usr/x386/include
8140 /usr/XFree86/include/X11
8141
8142 /usr/include
8143 /usr/local/include
8144 /usr/unsupported/include
8145 /usr/athena/include
8146 /usr/local/x11r5/include
8147 /usr/lpp/Xamples/include
8148
8149 /usr/openwin/include
8150 /usr/openwin/share/include'
8151
8152 if test "$ac_x_includes" = no; then
8153   # Guess where to find include files, by looking for Intrinsic.h.
8154   # First, try using that file with no special directory specified.
8155   cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 #include <X11/Intrinsic.h>
8159 _ACEOF
8160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8162   ac_status=$?
8163   egrep -v '^ *\+' conftest.er1 >conftest.err
8164   rm -f conftest.er1
8165   cat conftest.err >&5
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } >/dev/null; then
8168   if test -s conftest.err; then
8169     ac_cpp_err=$ac_c_preproc_warn_flag
8170   else
8171     ac_cpp_err=
8172   fi
8173 else
8174   ac_cpp_err=yes
8175 fi
8176 if test -z "$ac_cpp_err"; then
8177   # We can compile using X headers with no special include directory.
8178 ac_x_includes=
8179 else
8180   echo "$as_me: failed program was:" >&5
8181   cat conftest.$ac_ext >&5
8182   for ac_dir in $ac_x_header_dirs; do
8183   if test -r "$ac_dir/X11/Intrinsic.h"; then
8184     ac_x_includes=$ac_dir
8185     break
8186   fi
8187 done
8188 fi
8189 rm -f conftest.err conftest.$ac_ext
8190 fi # $ac_x_includes = no
8191
8192 if test "$ac_x_libraries" = no; then
8193   # Check for the libraries.
8194   # See if we find them without any special options.
8195   # Don't add to $LIBS permanently.
8196   ac_save_LIBS=$LIBS
8197   LIBS="-lXt $LIBS"
8198   cat >conftest.$ac_ext <<_ACEOF
8199 #line $LINENO "configure"
8200 #include "confdefs.h"
8201 #include <X11/Intrinsic.h>
8202 #ifdef F77_DUMMY_MAIN
8203 #  ifdef __cplusplus
8204      extern "C"
8205 #  endif
8206    int F77_DUMMY_MAIN() { return 1; }
8207 #endif
8208 int
8209 main ()
8210 {
8211 XtMalloc (0)
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218   (eval $ac_link) 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); } &&
8222          { ac_try='test -s conftest$ac_exeext'
8223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224   (eval $ac_try) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   LIBS=$ac_save_LIBS
8229 # We can link X programs with no special library path.
8230 ac_x_libraries=
8231 else
8232   echo "$as_me: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8234 LIBS=$ac_save_LIBS
8235 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8236 do
8237   # Don't even attempt the hair of trying to link an X program!
8238   for ac_extension in a so sl; do
8239     if test -r $ac_dir/libXt.$ac_extension; then
8240       ac_x_libraries=$ac_dir
8241       break 2
8242     fi
8243   done
8244 done
8245 fi
8246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247 fi # $ac_x_libraries = no
8248
8249 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8250   # Didn't find X anywhere.  Cache the known absence of X.
8251   ac_cv_have_x="have_x=no"
8252 else
8253   # Record where we found X for the cache.
8254   ac_cv_have_x="have_x=yes \
8255                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8256 fi
8257 fi
8258
8259   fi
8260   eval "$ac_cv_have_x"
8261 fi # $with_x != no
8262
8263 if test "$have_x" != yes; then
8264   echo "$as_me:$LINENO: result: $have_x" >&5
8265 echo "${ECHO_T}$have_x" >&6
8266   no_x=yes
8267 else
8268   # If each of the values was on the command line, it overrides each guess.
8269   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8270   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8271   # Update the cache value to reflect the command line values.
8272   ac_cv_have_x="have_x=yes \
8273                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8274   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8275 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8276 fi
8277
8278 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8279 # for constant arguments.  Useless!
8280 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8281 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8282 if test "${ac_cv_working_alloca_h+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 #include "confdefs.h"
8288 #include <alloca.h>
8289 #ifdef F77_DUMMY_MAIN
8290 #  ifdef __cplusplus
8291      extern "C"
8292 #  endif
8293    int F77_DUMMY_MAIN() { return 1; }
8294 #endif
8295 int
8296 main ()
8297 {
8298 char *p = (char *) alloca (2 * sizeof (int));
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305   (eval $ac_link) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -s conftest$ac_exeext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315   ac_cv_working_alloca_h=yes
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ac_cv_working_alloca_h=no
8320 fi
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322 fi
8323 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8324 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8325 if test $ac_cv_working_alloca_h = yes; then
8326
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_ALLOCA_H 1
8329 _ACEOF
8330
8331 fi
8332
8333 echo "$as_me:$LINENO: checking for alloca" >&5
8334 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8335 if test "${ac_cv_func_alloca_works+set}" = set; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338   cat >conftest.$ac_ext <<_ACEOF
8339 #line $LINENO "configure"
8340 #include "confdefs.h"
8341 #ifdef __GNUC__
8342 # define alloca __builtin_alloca
8343 #else
8344 # ifdef _MSC_VER
8345 #  include <malloc.h>
8346 #  define alloca _alloca
8347 # else
8348 #  if HAVE_ALLOCA_H
8349 #   include <alloca.h>
8350 #  else
8351 #   ifdef _AIX
8352  #pragma alloca
8353 #   else
8354 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8355 char *alloca ();
8356 #    endif
8357 #   endif
8358 #  endif
8359 # endif
8360 #endif
8361
8362 #ifdef F77_DUMMY_MAIN
8363 #  ifdef __cplusplus
8364      extern "C"
8365 #  endif
8366    int F77_DUMMY_MAIN() { return 1; }
8367 #endif
8368 int
8369 main ()
8370 {
8371 char *p = (char *) alloca (1);
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378   (eval $ac_link) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } &&
8382          { ac_try='test -s conftest$ac_exeext'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   ac_cv_func_alloca_works=yes
8389 else
8390   echo "$as_me: failed program was:" >&5
8391 cat conftest.$ac_ext >&5
8392 ac_cv_func_alloca_works=no
8393 fi
8394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8395 fi
8396 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8397 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8398
8399 if test $ac_cv_func_alloca_works = yes; then
8400
8401 cat >>confdefs.h <<\_ACEOF
8402 #define HAVE_ALLOCA 1
8403 _ACEOF
8404
8405 else
8406   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8407 # that cause trouble.  Some versions do not even contain alloca or
8408 # contain a buggy version.  If you still want to use their alloca,
8409 # use ar to extract alloca.o from them instead of compiling alloca.c.
8410
8411 ALLOCA=alloca.$ac_objext
8412
8413 cat >>confdefs.h <<\_ACEOF
8414 #define C_ALLOCA 1
8415 _ACEOF
8416
8417
8418 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8419 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8420 if test "${ac_cv_os_cray+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 #include "confdefs.h"
8426 #if defined(CRAY) && ! defined(CRAY2)
8427 webecray
8428 #else
8429 wenotbecray
8430 #endif
8431
8432 _ACEOF
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434   egrep "webecray" >/dev/null 2>&1; then
8435   ac_cv_os_cray=yes
8436 else
8437   ac_cv_os_cray=no
8438 fi
8439 rm -f conftest*
8440
8441 fi
8442 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8443 echo "${ECHO_T}$ac_cv_os_cray" >&6
8444 if test $ac_cv_os_cray = yes; then
8445   for ac_func in _getb67 GETB67 getb67; do
8446     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8447 echo "$as_me:$LINENO: checking for $ac_func" >&5
8448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8449 if eval "test \"\${$as_ac_var+set}\" = set"; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   cat >conftest.$ac_ext <<_ACEOF
8453 #line $LINENO "configure"
8454 #include "confdefs.h"
8455 /* System header to define __stub macros and hopefully few prototypes,
8456     which can conflict with char $ac_func (); below.  */
8457 #include <assert.h>
8458 /* Override any gcc2 internal prototype to avoid an error.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 /* We use char because int might match the return type of a gcc2
8463    builtin and then its argument prototype would still apply.  */
8464 char $ac_func ();
8465 char (*f) ();
8466
8467 #ifdef F77_DUMMY_MAIN
8468 #  ifdef __cplusplus
8469      extern "C"
8470 #  endif
8471    int F77_DUMMY_MAIN() { return 1; }
8472 #endif
8473 int
8474 main ()
8475 {
8476 /* The GNU C library defines this for functions which it implements
8477     to always fail with ENOSYS.  Some functions are actually named
8478     something starting with __ and the normal name is an alias.  */
8479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8480 choke me
8481 #else
8482 f = $ac_func;
8483 #endif
8484
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491   (eval $ac_link) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   eval "$as_ac_var=yes"
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8505 eval "$as_ac_var=no"
8506 fi
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 fi
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8511 if test `eval echo '${'$as_ac_var'}'` = yes; then
8512
8513 cat >>confdefs.h <<_ACEOF
8514 #define CRAY_STACKSEG_END $ac_func
8515 _ACEOF
8516
8517     break
8518 fi
8519
8520   done
8521 fi
8522
8523 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8524 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8525 if test "${ac_cv_c_stack_direction+set}" = set; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   if test "$cross_compiling" = yes; then
8529   ac_cv_c_stack_direction=0
8530 else
8531   cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8534 int
8535 find_stack_direction ()
8536 {
8537   static char *addr = 0;
8538   auto char dummy;
8539   if (addr == 0)
8540     {
8541       addr = &dummy;
8542       return find_stack_direction ();
8543     }
8544   else
8545     return (&dummy > addr) ? 1 : -1;
8546 }
8547
8548 int
8549 main ()
8550 {
8551   exit (find_stack_direction () < 0);
8552 }
8553 _ACEOF
8554 rm -f conftest$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556   (eval $ac_link) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561   (eval $ac_try) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; }; then
8565   ac_cv_c_stack_direction=1
8566 else
8567   echo "$as_me: program exited with status $ac_status" >&5
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 ( exit $ac_status )
8571 ac_cv_c_stack_direction=-1
8572 fi
8573 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8574 fi
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8577 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8578
8579 cat >>confdefs.h <<_ACEOF
8580 #define STACK_DIRECTION $ac_cv_c_stack_direction
8581 _ACEOF
8582
8583
8584 fi
8585
8586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8588 if test "${ac_cv_header_stdc+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   cat >conftest.$ac_ext <<_ACEOF
8592 #line $LINENO "configure"
8593 #include "confdefs.h"
8594 #include <stdlib.h>
8595 #include <stdarg.h>
8596 #include <string.h>
8597 #include <float.h>
8598
8599 _ACEOF
8600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8602   ac_status=$?
8603   egrep -v '^ *\+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } >/dev/null; then
8608   if test -s conftest.err; then
8609     ac_cpp_err=$ac_c_preproc_warn_flag
8610   else
8611     ac_cpp_err=
8612   fi
8613 else
8614   ac_cpp_err=yes
8615 fi
8616 if test -z "$ac_cpp_err"; then
8617   ac_cv_header_stdc=yes
8618 else
8619   echo "$as_me: failed program was:" >&5
8620   cat conftest.$ac_ext >&5
8621   ac_cv_header_stdc=no
8622 fi
8623 rm -f conftest.err conftest.$ac_ext
8624
8625 if test $ac_cv_header_stdc = yes; then
8626   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8627   cat >conftest.$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8629 #include "confdefs.h"
8630 #include <string.h>
8631
8632 _ACEOF
8633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8634   egrep "memchr" >/dev/null 2>&1; then
8635   :
8636 else
8637   ac_cv_header_stdc=no
8638 fi
8639 rm -f conftest*
8640
8641 fi
8642
8643 if test $ac_cv_header_stdc = yes; then
8644   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8645   cat >conftest.$ac_ext <<_ACEOF
8646 #line $LINENO "configure"
8647 #include "confdefs.h"
8648 #include <stdlib.h>
8649
8650 _ACEOF
8651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8652   egrep "free" >/dev/null 2>&1; then
8653   :
8654 else
8655   ac_cv_header_stdc=no
8656 fi
8657 rm -f conftest*
8658
8659 fi
8660
8661 if test $ac_cv_header_stdc = yes; then
8662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8663   if test "$cross_compiling" = yes; then
8664   :
8665 else
8666   cat >conftest.$ac_ext <<_ACEOF
8667 #line $LINENO "configure"
8668 #include "confdefs.h"
8669 #include <ctype.h>
8670 #if ((' ' & 0x0FF) == 0x020)
8671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8673 #else
8674 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8675                      || ('j' <= (c) && (c) <= 'r') \
8676                      || ('s' <= (c) && (c) <= 'z'))
8677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8678 #endif
8679
8680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8681 int
8682 main ()
8683 {
8684   int i;
8685   for (i = 0; i < 256; i++)
8686     if (XOR (islower (i), ISLOWER (i))
8687         || toupper (i) != TOUPPER (i))
8688       exit(2);
8689   exit (0);
8690 }
8691 _ACEOF
8692 rm -f conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694   (eval $ac_link) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699   (eval $ac_try) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; }; then
8703   :
8704 else
8705   echo "$as_me: program exited with status $ac_status" >&5
8706 echo "$as_me: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 ( exit $ac_status )
8709 ac_cv_header_stdc=no
8710 fi
8711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8712 fi
8713 fi
8714 fi
8715 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8716 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8717 if test $ac_cv_header_stdc = yes; then
8718
8719 cat >>confdefs.h <<\_ACEOF
8720 #define STDC_HEADERS 1
8721 _ACEOF
8722
8723 fi
8724
8725
8726
8727
8728
8729
8730
8731
8732 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8733 do
8734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736   echo "$as_me:$LINENO: checking for $ac_header" >&5
8737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 fi
8741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8743 else
8744   # Is the header compilable?
8745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 #include "confdefs.h"
8750 $ac_includes_default
8751 #include <$ac_header>
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755   (eval $ac_compile) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); } &&
8759          { ac_try='test -s conftest.$ac_objext'
8760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761   (eval $ac_try) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; }; then
8765   ac_header_compiler=yes
8766 else
8767   echo "$as_me: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 ac_header_compiler=no
8770 fi
8771 rm -f conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8773 echo "${ECHO_T}$ac_header_compiler" >&6
8774
8775 # Is the header present?
8776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line $LINENO "configure"
8780 #include "confdefs.h"
8781 #include <$ac_header>
8782 _ACEOF
8783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8785   ac_status=$?
8786   egrep -v '^ *\+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } >/dev/null; then
8791   if test -s conftest.err; then
8792     ac_cpp_err=$ac_c_preproc_warn_flag
8793   else
8794     ac_cpp_err=
8795   fi
8796 else
8797   ac_cpp_err=yes
8798 fi
8799 if test -z "$ac_cpp_err"; then
8800   ac_header_preproc=yes
8801 else
8802   echo "$as_me: failed program was:" >&5
8803   cat conftest.$ac_ext >&5
8804   ac_header_preproc=no
8805 fi
8806 rm -f conftest.err conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8808 echo "${ECHO_T}$ac_header_preproc" >&6
8809
8810 # So?  What about this header?
8811 case $ac_header_compiler:$ac_header_preproc in
8812   yes:no )
8813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8817   no:yes )
8818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8820     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8824 esac
8825 echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830   eval "$as_ac_Header=$ac_header_preproc"
8831 fi
8832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8834
8835 fi
8836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8837   cat >>confdefs.h <<_ACEOF
8838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8839 _ACEOF
8840
8841 fi
8842
8843 done
8844
8845
8846 # Checks for typedefs, structures, and compiler characteristics.
8847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   ac_cv_prog_cc_stdc=no
8853 ac_save_CC=$CC
8854 cat >conftest.$ac_ext <<_ACEOF
8855 #line $LINENO "configure"
8856 #include "confdefs.h"
8857 #include <stdarg.h>
8858 #include <stdio.h>
8859 #include <sys/types.h>
8860 #include <sys/stat.h>
8861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8862 struct buf { int x; };
8863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8864 static char *e (p, i)
8865      char **p;
8866      int i;
8867 {
8868   return p[i];
8869 }
8870 static char *f (char * (*g) (char **, int), char **p, ...)
8871 {
8872   char *s;
8873   va_list v;
8874   va_start (v,p);
8875   s = g (p, va_arg (v,int));
8876   va_end (v);
8877   return s;
8878 }
8879 int test (int i, double x);
8880 struct s1 {int (*f) (int a);};
8881 struct s2 {int (*f) (double a);};
8882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8883 int argc;
8884 char **argv;
8885 #ifdef F77_DUMMY_MAIN
8886 #  ifdef __cplusplus
8887      extern "C"
8888 #  endif
8889    int F77_DUMMY_MAIN() { return 1; }
8890 #endif
8891 int
8892 main ()
8893 {
8894 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 # Don't try gcc -ansi; that turns off useful extensions and
8900 # breaks some systems' header files.
8901 # AIX                   -qlanglvl=ansi
8902 # Ultrix and OSF/1      -std1
8903 # HP-UX 10.20 and later -Ae
8904 # HP-UX older versions  -Aa -D_HPUX_SOURCE
8905 # SVR4                  -Xc -D__EXTENSIONS__
8906 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8907 do
8908   CC="$ac_save_CC $ac_arg"
8909   rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911   (eval $ac_compile) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } &&
8915          { ac_try='test -s conftest.$ac_objext'
8916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917   (eval $ac_try) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   ac_cv_prog_cc_stdc=$ac_arg
8922 break
8923 else
8924   echo "$as_me: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8926 fi
8927 rm -f conftest.$ac_objext
8928 done
8929 rm -f conftest.$ac_ext conftest.$ac_objext
8930 CC=$ac_save_CC
8931
8932 fi
8933
8934 case "x$ac_cv_prog_cc_stdc" in
8935   x|xno)
8936     echo "$as_me:$LINENO: result: none needed" >&5
8937 echo "${ECHO_T}none needed" >&6 ;;
8938   *)
8939     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8940 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8941     CC="$CC $ac_cv_prog_cc_stdc" ;;
8942 esac
8943
8944 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8946 if test "${ac_cv_c_const+set}" = set; then
8947   echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949   cat >conftest.$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8951 #include "confdefs.h"
8952
8953 #ifdef F77_DUMMY_MAIN
8954 #  ifdef __cplusplus
8955      extern "C"
8956 #  endif
8957    int F77_DUMMY_MAIN() { return 1; }
8958 #endif
8959 int
8960 main ()
8961 {
8962 /* FIXME: Include the comments suggested by Paul. */
8963 #ifndef __cplusplus
8964   /* Ultrix mips cc rejects this.  */
8965   typedef int charset[2];
8966   const charset x;
8967   /* SunOS 4.1.1 cc rejects this.  */
8968   char const *const *ccp;
8969   char **p;
8970   /* NEC SVR4.0.2 mips cc rejects this.  */
8971   struct point {int x, y;};
8972   static struct point const zero = {0,0};
8973   /* AIX XL C 1.02.0.0 rejects this.
8974      It does not let you subtract one const X* pointer from another in
8975      an arm of an if-expression whose if-part is not a constant
8976      expression */
8977   const char *g = "string";
8978   ccp = &g + (g ? g-g : 0);
8979   /* HPUX 7.0 cc rejects these. */
8980   ++ccp;
8981   p = (char**) ccp;
8982   ccp = (char const *const *) p;
8983   { /* SCO 3.2v4 cc rejects this.  */
8984     char *t;
8985     char const *s = 0 ? (char *) 0 : (char const *) 0;
8986
8987     *t++ = 0;
8988   }
8989   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8990     int x[] = {25, 17};
8991     const int *foo = &x[0];
8992     ++foo;
8993   }
8994   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8995     typedef const int *iptr;
8996     iptr p = 0;
8997     ++p;
8998   }
8999   { /* AIX XL C 1.02.0.0 rejects this saying
9000        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9001     struct s { int j; const int *ap[3]; };
9002     struct s *b; b->j = 5;
9003   }
9004   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9005     const int foo = 10;
9006   }
9007 #endif
9008
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015   (eval $ac_compile) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); } &&
9019          { ac_try='test -s conftest.$ac_objext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_cv_c_const=yes
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 ac_cv_c_const=no
9030 fi
9031 rm -f conftest.$ac_objext conftest.$ac_ext
9032 fi
9033 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9034 echo "${ECHO_T}$ac_cv_c_const" >&6
9035 if test $ac_cv_c_const = no; then
9036
9037 cat >>confdefs.h <<\_ACEOF
9038 #define const
9039 _ACEOF
9040
9041 fi
9042
9043 echo "$as_me:$LINENO: checking for size_t" >&5
9044 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9045 if test "${ac_cv_type_size_t+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048   cat >conftest.$ac_ext <<_ACEOF
9049 #line $LINENO "configure"
9050 #include "confdefs.h"
9051 $ac_includes_default
9052 #ifdef F77_DUMMY_MAIN
9053 #  ifdef __cplusplus
9054      extern "C"
9055 #  endif
9056    int F77_DUMMY_MAIN() { return 1; }
9057 #endif
9058 int
9059 main ()
9060 {
9061 if ((size_t *) 0)
9062   return 0;
9063 if (sizeof (size_t))
9064   return 0;
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071   (eval $ac_compile) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); } &&
9075          { ac_try='test -s conftest.$ac_objext'
9076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077   (eval $ac_try) 2>&5
9078   ac_status=$?
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); }; }; then
9081   ac_cv_type_size_t=yes
9082 else
9083   echo "$as_me: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9085 ac_cv_type_size_t=no
9086 fi
9087 rm -f conftest.$ac_objext conftest.$ac_ext
9088 fi
9089 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9090 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9091 if test $ac_cv_type_size_t = yes; then
9092   :
9093 else
9094
9095 cat >>confdefs.h <<_ACEOF
9096 #define size_t unsigned
9097 _ACEOF
9098
9099 fi
9100
9101 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9102 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9103 if test "${ac_cv_struct_tm+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106   cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 #include "confdefs.h"
9109 #include <sys/types.h>
9110 #include <time.h>
9111
9112 #ifdef F77_DUMMY_MAIN
9113 #  ifdef __cplusplus
9114      extern "C"
9115 #  endif
9116    int F77_DUMMY_MAIN() { return 1; }
9117 #endif
9118 int
9119 main ()
9120 {
9121 struct tm *tp; tp->tm_sec;
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9128   (eval $ac_compile) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } &&
9132          { ac_try='test -s conftest.$ac_objext'
9133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134   (eval $ac_try) 2>&5
9135   ac_status=$?
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); }; }; then
9138   ac_cv_struct_tm=time.h
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9142 ac_cv_struct_tm=sys/time.h
9143 fi
9144 rm -f conftest.$ac_objext conftest.$ac_ext
9145 fi
9146 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9147 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9148 if test $ac_cv_struct_tm = sys/time.h; then
9149
9150 cat >>confdefs.h <<\_ACEOF
9151 #define TM_IN_SYS_TIME 1
9152 _ACEOF
9153
9154 fi
9155
9156
9157 # Checks for library functions.
9158 echo "$as_me:$LINENO: checking for error_at_line" >&5
9159 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9160 if test "${ac_cv_lib_error_at_line+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163   cat >conftest.$ac_ext <<_ACEOF
9164 #line $LINENO "configure"
9165 #include "confdefs.h"
9166
9167 #ifdef F77_DUMMY_MAIN
9168 #  ifdef __cplusplus
9169      extern "C"
9170 #  endif
9171    int F77_DUMMY_MAIN() { return 1; }
9172 #endif
9173 int
9174 main ()
9175 {
9176 error_at_line (0, 0, "", 0, "");
9177   ;
9178   return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183   (eval $ac_link) 2>&5
9184   ac_status=$?
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } &&
9187          { ac_try='test -s conftest$ac_exeext'
9188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189   (eval $ac_try) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); }; }; then
9193   ac_cv_lib_error_at_line=yes
9194 else
9195   echo "$as_me: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 ac_cv_lib_error_at_line=no
9198 fi
9199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9200 fi
9201 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9202 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9203 if test $ac_cv_lib_error_at_line = no; then
9204   LIBOBJS="$LIBOBJS error.$ac_objext"
9205 fi
9206
9207
9208 for ac_header in stdlib.h
9209 do
9210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9212   echo "$as_me:$LINENO: checking for $ac_header" >&5
9213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 fi
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9219 else
9220   # Is the header compilable?
9221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9224 #line $LINENO "configure"
9225 #include "confdefs.h"
9226 $ac_includes_default
9227 #include <$ac_header>
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231   (eval $ac_compile) 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } &&
9235          { ac_try='test -s conftest.$ac_objext'
9236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237   (eval $ac_try) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); }; }; then
9241   ac_header_compiler=yes
9242 else
9243   echo "$as_me: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9245 ac_header_compiler=no
9246 fi
9247 rm -f conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9249 echo "${ECHO_T}$ac_header_compiler" >&6
9250
9251 # Is the header present?
9252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9255 #line $LINENO "configure"
9256 #include "confdefs.h"
9257 #include <$ac_header>
9258 _ACEOF
9259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9261   ac_status=$?
9262   egrep -v '^ *\+' conftest.er1 >conftest.err
9263   rm -f conftest.er1
9264   cat conftest.err >&5
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); } >/dev/null; then
9267   if test -s conftest.err; then
9268     ac_cpp_err=$ac_c_preproc_warn_flag
9269   else
9270     ac_cpp_err=
9271   fi
9272 else
9273   ac_cpp_err=yes
9274 fi
9275 if test -z "$ac_cpp_err"; then
9276   ac_header_preproc=yes
9277 else
9278   echo "$as_me: failed program was:" >&5
9279   cat conftest.$ac_ext >&5
9280   ac_header_preproc=no
9281 fi
9282 rm -f conftest.err conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9284 echo "${ECHO_T}$ac_header_preproc" >&6
9285
9286 # So?  What about this header?
9287 case $ac_header_compiler:$ac_header_preproc in
9288   yes:no )
9289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9293   no:yes )
9294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9296     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9300 esac
9301 echo "$as_me:$LINENO: checking for $ac_header" >&5
9302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9304   echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306   eval "$as_ac_Header=$ac_header_preproc"
9307 fi
9308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9310
9311 fi
9312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9313   cat >>confdefs.h <<_ACEOF
9314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9315 _ACEOF
9316
9317 fi
9318
9319 done
9320
9321 echo "$as_me:$LINENO: checking for working malloc" >&5
9322 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9323 if test "${ac_cv_func_malloc_works+set}" = set; then
9324   echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326   if test "$cross_compiling" = yes; then
9327   ac_cv_func_malloc_works=no
9328 else
9329   cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9331 #include "confdefs.h"
9332 #if STDC_HEADERS || HAVE_STDLIB_H
9333 # include <stdlib.h>
9334 #else
9335 char *malloc ();
9336 #endif
9337
9338 #ifdef F77_DUMMY_MAIN
9339 #  ifdef __cplusplus
9340      extern "C"
9341 #  endif
9342    int F77_DUMMY_MAIN() { return 1; }
9343 #endif
9344 int
9345 main ()
9346 {
9347 exit (malloc (0) ? 0 : 1);
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354   (eval $ac_link) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; }; then
9363   ac_cv_func_malloc_works=yes
9364 else
9365   echo "$as_me: program exited with status $ac_status" >&5
9366 echo "$as_me: failed program was:" >&5
9367 cat conftest.$ac_ext >&5
9368 ( exit $ac_status )
9369 ac_cv_func_malloc_works=no
9370 fi
9371 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9372 fi
9373 fi
9374 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
9375 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
9376 if test $ac_cv_func_malloc_works = yes; then
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_MALLOC 1
9380 _ACEOF
9381
9382 fi
9383
9384
9385
9386 for ac_header in stdlib.h unistd.h
9387 do
9388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9390   echo "$as_me:$LINENO: checking for $ac_header" >&5
9391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 fi
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9397 else
9398   # Is the header compilable?
9399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9404 $ac_includes_default
9405 #include <$ac_header>
9406 _ACEOF
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409   (eval $ac_compile) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -s conftest.$ac_objext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419   ac_header_compiler=yes
9420 else
9421   echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 ac_header_compiler=no
9424 fi
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427 echo "${ECHO_T}$ac_header_compiler" >&6
9428
9429 # Is the header present?
9430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9432 cat >conftest.$ac_ext <<_ACEOF
9433 #line $LINENO "configure"
9434 #include "confdefs.h"
9435 #include <$ac_header>
9436 _ACEOF
9437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9439   ac_status=$?
9440   egrep -v '^ *\+' conftest.er1 >conftest.err
9441   rm -f conftest.er1
9442   cat conftest.err >&5
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } >/dev/null; then
9445   if test -s conftest.err; then
9446     ac_cpp_err=$ac_c_preproc_warn_flag
9447   else
9448     ac_cpp_err=
9449   fi
9450 else
9451   ac_cpp_err=yes
9452 fi
9453 if test -z "$ac_cpp_err"; then
9454   ac_header_preproc=yes
9455 else
9456   echo "$as_me: failed program was:" >&5
9457   cat conftest.$ac_ext >&5
9458   ac_header_preproc=no
9459 fi
9460 rm -f conftest.err conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9462 echo "${ECHO_T}$ac_header_preproc" >&6
9463
9464 # So?  What about this header?
9465 case $ac_header_compiler:$ac_header_preproc in
9466   yes:no )
9467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9471   no:yes )
9472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9478 esac
9479 echo "$as_me:$LINENO: checking for $ac_header" >&5
9480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484   eval "$as_ac_Header=$ac_header_preproc"
9485 fi
9486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9488
9489 fi
9490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9491   cat >>confdefs.h <<_ACEOF
9492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9493 _ACEOF
9494
9495 fi
9496
9497 done
9498
9499
9500 for ac_func in getpagesize
9501 do
9502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9503 echo "$as_me:$LINENO: checking for $ac_func" >&5
9504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9505 if eval "test \"\${$as_ac_var+set}\" = set"; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9511 /* System header to define __stub macros and hopefully few prototypes,
9512     which can conflict with char $ac_func (); below.  */
9513 #include <assert.h>
9514 /* Override any gcc2 internal prototype to avoid an error.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 /* We use char because int might match the return type of a gcc2
9519    builtin and then its argument prototype would still apply.  */
9520 char $ac_func ();
9521 char (*f) ();
9522
9523 #ifdef F77_DUMMY_MAIN
9524 #  ifdef __cplusplus
9525      extern "C"
9526 #  endif
9527    int F77_DUMMY_MAIN() { return 1; }
9528 #endif
9529 int
9530 main ()
9531 {
9532 /* The GNU C library defines this for functions which it implements
9533     to always fail with ENOSYS.  Some functions are actually named
9534     something starting with __ and the normal name is an alias.  */
9535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9536 choke me
9537 #else
9538 f = $ac_func;
9539 #endif
9540
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547   (eval $ac_link) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -s conftest$ac_exeext'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; }; then
9557   eval "$as_ac_var=yes"
9558 else
9559   echo "$as_me: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 eval "$as_ac_var=no"
9562 fi
9563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9564 fi
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9567 if test `eval echo '${'$as_ac_var'}'` = yes; then
9568   cat >>confdefs.h <<_ACEOF
9569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9570 _ACEOF
9571
9572 fi
9573 done
9574
9575 echo "$as_me:$LINENO: checking for working mmap" >&5
9576 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9577 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   if test "$cross_compiling" = yes; then
9581   ac_cv_func_mmap_fixed_mapped=no
9582 else
9583   cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 #include "confdefs.h"
9586 $ac_includes_default
9587 /* malloc might have been renamed as rpl_malloc. */
9588 #undef malloc
9589
9590 /* Thanks to Mike Haertel and Jim Avera for this test.
9591    Here is a matrix of mmap possibilities:
9592         mmap private not fixed
9593         mmap private fixed at somewhere currently unmapped
9594         mmap private fixed at somewhere already mapped
9595         mmap shared not fixed
9596         mmap shared fixed at somewhere currently unmapped
9597         mmap shared fixed at somewhere already mapped
9598    For private mappings, we should verify that changes cannot be read()
9599    back from the file, nor mmap's back from the file at a different
9600    address.  (There have been systems where private was not correctly
9601    implemented like the infamous i386 svr4.0, and systems where the
9602    VM page cache was not coherent with the file system buffer cache
9603    like early versions of FreeBSD and possibly contemporary NetBSD.)
9604    For shared mappings, we should conversely verify that changes get
9605    propagated back to all the places they're supposed to be.
9606
9607    Grep wants private fixed already mapped.
9608    The main things grep needs to know about mmap are:
9609    * does it exist and is it safe to write into the mmap'd area
9610    * how to use it (BSD variants)  */
9611
9612 #include <fcntl.h>
9613 #include <sys/mman.h>
9614
9615 #if !STDC_HEADERS && !HAVE_STDLIB_H
9616 char *malloc ();
9617 #endif
9618
9619 /* This mess was copied from the GNU getpagesize.h.  */
9620 #if !HAVE_GETPAGESIZE
9621 /* Assume that all systems that can run configure have sys/param.h.  */
9622 # if !HAVE_SYS_PARAM_H
9623 #  define HAVE_SYS_PARAM_H 1
9624 # endif
9625
9626 # ifdef _SC_PAGESIZE
9627 #  define getpagesize() sysconf(_SC_PAGESIZE)
9628 # else /* no _SC_PAGESIZE */
9629 #  if HAVE_SYS_PARAM_H
9630 #   include <sys/param.h>
9631 #   ifdef EXEC_PAGESIZE
9632 #    define getpagesize() EXEC_PAGESIZE
9633 #   else /* no EXEC_PAGESIZE */
9634 #    ifdef NBPG
9635 #     define getpagesize() NBPG * CLSIZE
9636 #     ifndef CLSIZE
9637 #      define CLSIZE 1
9638 #     endif /* no CLSIZE */
9639 #    else /* no NBPG */
9640 #     ifdef NBPC
9641 #      define getpagesize() NBPC
9642 #     else /* no NBPC */
9643 #      ifdef PAGESIZE
9644 #       define getpagesize() PAGESIZE
9645 #      endif /* PAGESIZE */
9646 #     endif /* no NBPC */
9647 #    endif /* no NBPG */
9648 #   endif /* no EXEC_PAGESIZE */
9649 #  else /* no HAVE_SYS_PARAM_H */
9650 #   define getpagesize() 8192   /* punt totally */
9651 #  endif /* no HAVE_SYS_PARAM_H */
9652 # endif /* no _SC_PAGESIZE */
9653
9654 #endif /* no HAVE_GETPAGESIZE */
9655
9656 int
9657 main ()
9658 {
9659   char *data, *data2, *data3;
9660   int i, pagesize;
9661   int fd;
9662
9663   pagesize = getpagesize ();
9664
9665   /* First, make a file with some known garbage in it. */
9666   data = (char *) malloc (pagesize);
9667   if (!data)
9668     exit (1);
9669   for (i = 0; i < pagesize; ++i)
9670     *(data + i) = rand ();
9671   umask (0);
9672   fd = creat ("conftest.mmap", 0600);
9673   if (fd < 0)
9674     exit (1);
9675   if (write (fd, data, pagesize) != pagesize)
9676     exit (1);
9677   close (fd);
9678
9679   /* Next, try to mmap the file at a fixed address which already has
9680      something else allocated at it.  If we can, also make sure that
9681      we see the same garbage.  */
9682   fd = open ("conftest.mmap", O_RDWR);
9683   if (fd < 0)
9684     exit (1);
9685   data2 = (char *) malloc (2 * pagesize);
9686   if (!data2)
9687     exit (1);
9688   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9689   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9690                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9691     exit (1);
9692   for (i = 0; i < pagesize; ++i)
9693     if (*(data + i) != *(data2 + i))
9694       exit (1);
9695
9696   /* Finally, make sure that changes to the mapped area do not
9697      percolate back to the file as seen by read().  (This is a bug on
9698      some variants of i386 svr4.0.)  */
9699   for (i = 0; i < pagesize; ++i)
9700     *(data2 + i) = *(data2 + i) + 1;
9701   data3 = (char *) malloc (pagesize);
9702   if (!data3)
9703     exit (1);
9704   if (read (fd, data3, pagesize) != pagesize)
9705     exit (1);
9706   for (i = 0; i < pagesize; ++i)
9707     if (*(data + i) != *(data3 + i))
9708       exit (1);
9709   close (fd);
9710   exit (0);
9711 }
9712 _ACEOF
9713 rm -f conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715   (eval $ac_link) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720   (eval $ac_try) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; }; then
9724   ac_cv_func_mmap_fixed_mapped=yes
9725 else
9726   echo "$as_me: program exited with status $ac_status" >&5
9727 echo "$as_me: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9729 ( exit $ac_status )
9730 ac_cv_func_mmap_fixed_mapped=no
9731 fi
9732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9733 fi
9734 fi
9735 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9736 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9737 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9738
9739 cat >>confdefs.h <<\_ACEOF
9740 #define HAVE_MMAP 1
9741 _ACEOF
9742
9743 fi
9744 rm -f conftest.mmap
9745
9746 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9747 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9748 if test "${ac_cv_type_signal+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9754 #include <sys/types.h>
9755 #include <signal.h>
9756 #ifdef signal
9757 # undef signal
9758 #endif
9759 #ifdef __cplusplus
9760 extern "C" void (*signal (int, void (*)(int)))(int);
9761 #else
9762 void (*signal ()) ();
9763 #endif
9764
9765 #ifdef F77_DUMMY_MAIN
9766 #  ifdef __cplusplus
9767      extern "C"
9768 #  endif
9769    int F77_DUMMY_MAIN() { return 1; }
9770 #endif
9771 int
9772 main ()
9773 {
9774 int i;
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781   (eval $ac_compile) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -s conftest.$ac_objext'
9786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787   (eval $ac_try) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); }; }; then
9791   ac_cv_type_signal=void
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 cat conftest.$ac_ext >&5
9795 ac_cv_type_signal=int
9796 fi
9797 rm -f conftest.$ac_objext conftest.$ac_ext
9798 fi
9799 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9800 echo "${ECHO_T}$ac_cv_type_signal" >&6
9801
9802 cat >>confdefs.h <<_ACEOF
9803 #define RETSIGTYPE $ac_cv_type_signal
9804 _ACEOF
9805
9806
9807 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9808 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9809 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   rm -f conftest.sym conftest.file
9813 echo >conftest.file
9814 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9815   if test "$cross_compiling" = yes; then
9816   ac_cv_func_lstat_dereferences_slashed_symlink=no
9817 else
9818   cat >conftest.$ac_ext <<_ACEOF
9819 #line $LINENO "configure"
9820 #include "confdefs.h"
9821 $ac_includes_default
9822 #ifdef F77_DUMMY_MAIN
9823 #  ifdef __cplusplus
9824      extern "C"
9825 #  endif
9826    int F77_DUMMY_MAIN() { return 1; }
9827 #endif
9828 int
9829 main ()
9830 {
9831 struct stat sbuf;
9832      /* Linux will dereference the symlink and fail.
9833         That is better in the sense that it means we will not
9834         have to compile and use the lstat wrapper.  */
9835      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9836   ;
9837   return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842   (eval $ac_link) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9852 else
9853   echo "$as_me: program exited with status $ac_status" >&5
9854 echo "$as_me: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 ( exit $ac_status )
9857 ac_cv_func_lstat_dereferences_slashed_symlink=no
9858 fi
9859 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9860 fi
9861 else
9862   # If the `ln -s' command failed, then we probably don't even
9863   # have an lstat function.
9864   ac_cv_func_lstat_dereferences_slashed_symlink=no
9865 fi
9866 rm -f conftest.sym conftest.file
9867
9868 fi
9869 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9870 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9871
9872 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9873
9874 cat >>confdefs.h <<_ACEOF
9875 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9876 _ACEOF
9877
9878
9879 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9880   LIBOBJS="$LIBOBJS lstat.$ac_objext"
9881 fi
9882
9883 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9884 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9885 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   if test "$cross_compiling" = yes; then
9889   ac_cv_func_stat_empty_string_bug=yes
9890 else
9891   cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9893 #include "confdefs.h"
9894 $ac_includes_default
9895 #ifdef F77_DUMMY_MAIN
9896 #  ifdef __cplusplus
9897      extern "C"
9898 #  endif
9899    int F77_DUMMY_MAIN() { return 1; }
9900 #endif
9901 int
9902 main ()
9903 {
9904 struct stat sbuf;
9905   exit (stat ("", &sbuf) ? 1 : 0);
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912   (eval $ac_link) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921   ac_cv_func_stat_empty_string_bug=yes
9922 else
9923   echo "$as_me: program exited with status $ac_status" >&5
9924 echo "$as_me: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9926 ( exit $ac_status )
9927 ac_cv_func_stat_empty_string_bug=no
9928 fi
9929 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 fi
9932 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
9933 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
9934 if test $ac_cv_func_stat_empty_string_bug = yes; then
9935   LIBOBJS="$LIBOBJS stat.$ac_objext"
9936
9937 cat >>confdefs.h <<_ACEOF
9938 #define HAVE_STAT_EMPTY_STRING_BUG 1
9939 _ACEOF
9940
9941 fi
9942
9943 echo "$as_me:$LINENO: checking for working strtod" >&5
9944 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9945 if test "${ac_cv_func_strtod+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   if test "$cross_compiling" = yes; then
9949   ac_cv_func_strtod=no
9950 else
9951   cat >conftest.$ac_ext <<_ACEOF
9952 #line $LINENO "configure"
9953 #include "confdefs.h"
9954
9955 double strtod ();
9956 int
9957 main()
9958 {
9959   {
9960     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9961     char *string = " +69";
9962     char *term;
9963     double value;
9964     value = strtod (string, &term);
9965     if (value != 69 || term != (string + 4))
9966       exit (1);
9967   }
9968
9969   {
9970     /* Under Solaris 2.4, strtod returns the wrong value for the
9971        terminating character under some conditions.  */
9972     char *string = "NaN";
9973     char *term;
9974     strtod (string, &term);
9975     if (term != string && *(term - 1) == 0)
9976       exit (1);
9977   }
9978   exit (0);
9979 }
9980
9981 _ACEOF
9982 rm -f conftest$ac_exeext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9984   (eval $ac_link) 2>&5
9985   ac_status=$?
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; }; then
9993   ac_cv_func_strtod=yes
9994 else
9995   echo "$as_me: program exited with status $ac_status" >&5
9996 echo "$as_me: failed program was:" >&5
9997 cat conftest.$ac_ext >&5
9998 ( exit $ac_status )
9999 ac_cv_func_strtod=no
10000 fi
10001 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10002 fi
10003 fi
10004 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10005 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10006 if test $ac_cv_func_strtod = no; then
10007   LIBOBJS="$LIBOBJS strtod.$ac_objext"
10008 echo "$as_me:$LINENO: checking for pow" >&5
10009 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10010 if test "${ac_cv_func_pow+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   cat >conftest.$ac_ext <<_ACEOF
10014 #line $LINENO "configure"
10015 #include "confdefs.h"
10016 /* System header to define __stub macros and hopefully few prototypes,
10017     which can conflict with char pow (); below.  */
10018 #include <assert.h>
10019 /* Override any gcc2 internal prototype to avoid an error.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 /* We use char because int might match the return type of a gcc2
10024    builtin and then its argument prototype would still apply.  */
10025 char pow ();
10026 char (*f) ();
10027
10028 #ifdef F77_DUMMY_MAIN
10029 #  ifdef __cplusplus
10030      extern "C"
10031 #  endif
10032    int F77_DUMMY_MAIN() { return 1; }
10033 #endif
10034 int
10035 main ()
10036 {
10037 /* The GNU C library defines this for functions which it implements
10038     to always fail with ENOSYS.  Some functions are actually named
10039     something starting with __ and the normal name is an alias.  */
10040 #if defined (__stub_pow) || defined (__stub___pow)
10041 choke me
10042 #else
10043 f = pow;
10044 #endif
10045
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052   (eval $ac_link) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -s conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_cv_func_pow=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 ac_cv_func_pow=no
10067 fi
10068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10071 echo "${ECHO_T}$ac_cv_func_pow" >&6
10072
10073 if test $ac_cv_func_pow = no; then
10074   echo "$as_me:$LINENO: checking for pow in -lm" >&5
10075 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10076 if test "${ac_cv_lib_m_pow+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-lm  $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10084
10085 /* Override any gcc2 internal prototype to avoid an error.  */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 /* We use char because int might match the return type of a gcc2
10090    builtin and then its argument prototype would still apply.  */
10091 char pow ();
10092 #ifdef F77_DUMMY_MAIN
10093 #  ifdef __cplusplus
10094      extern "C"
10095 #  endif
10096    int F77_DUMMY_MAIN() { return 1; }
10097 #endif
10098 int
10099 main ()
10100 {
10101 pow ();
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108   (eval $ac_link) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } &&
10112          { ac_try='test -s conftest$ac_exeext'
10113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114   (eval $ac_try) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; }; then
10118   ac_cv_lib_m_pow=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10122 ac_cv_lib_m_pow=no
10123 fi
10124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10126 fi
10127 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10128 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10129 if test $ac_cv_lib_m_pow = yes; then
10130   POW_LIB=-lm
10131 else
10132   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10133 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10134 fi
10135
10136 fi
10137
10138 fi
10139
10140
10141 for ac_func in vprintf
10142 do
10143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 echo "$as_me:$LINENO: checking for $ac_func" >&5
10145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_var+set}\" = set"; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 #include "confdefs.h"
10152 /* System header to define __stub macros and hopefully few prototypes,
10153     which can conflict with char $ac_func (); below.  */
10154 #include <assert.h>
10155 /* Override any gcc2 internal prototype to avoid an error.  */
10156 #ifdef __cplusplus
10157 extern "C"
10158 #endif
10159 /* We use char because int might match the return type of a gcc2
10160    builtin and then its argument prototype would still apply.  */
10161 char $ac_func ();
10162 char (*f) ();
10163
10164 #ifdef F77_DUMMY_MAIN
10165 #  ifdef __cplusplus
10166      extern "C"
10167 #  endif
10168    int F77_DUMMY_MAIN() { return 1; }
10169 #endif
10170 int
10171 main ()
10172 {
10173 /* The GNU C library defines this for functions which it implements
10174     to always fail with ENOSYS.  Some functions are actually named
10175     something starting with __ and the normal name is an alias.  */
10176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10177 choke me
10178 #else
10179 f = $ac_func;
10180 #endif
10181
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188   (eval $ac_link) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } &&
10192          { ac_try='test -s conftest$ac_exeext'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   eval "$as_ac_var=yes"
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10202 eval "$as_ac_var=no"
10203 fi
10204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10205 fi
10206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10208 if test `eval echo '${'$as_ac_var'}'` = yes; then
10209   cat >>confdefs.h <<_ACEOF
10210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10211 _ACEOF
10212
10213 echo "$as_me:$LINENO: checking for _doprnt" >&5
10214 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10215 if test "${ac_cv_func__doprnt+set}" = set; then
10216   echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218   cat >conftest.$ac_ext <<_ACEOF
10219 #line $LINENO "configure"
10220 #include "confdefs.h"
10221 /* System header to define __stub macros and hopefully few prototypes,
10222     which can conflict with char _doprnt (); below.  */
10223 #include <assert.h>
10224 /* Override any gcc2 internal prototype to avoid an error.  */
10225 #ifdef __cplusplus
10226 extern "C"
10227 #endif
10228 /* We use char because int might match the return type of a gcc2
10229    builtin and then its argument prototype would still apply.  */
10230 char _doprnt ();
10231 char (*f) ();
10232
10233 #ifdef F77_DUMMY_MAIN
10234 #  ifdef __cplusplus
10235      extern "C"
10236 #  endif
10237    int F77_DUMMY_MAIN() { return 1; }
10238 #endif
10239 int
10240 main ()
10241 {
10242 /* The GNU C library defines this for functions which it implements
10243     to always fail with ENOSYS.  Some functions are actually named
10244     something starting with __ and the normal name is an alias.  */
10245 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10246 choke me
10247 #else
10248 f = _doprnt;
10249 #endif
10250
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257   (eval $ac_link) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } &&
10261          { ac_try='test -s conftest$ac_exeext'
10262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263   (eval $ac_try) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; }; then
10267   ac_cv_func__doprnt=yes
10268 else
10269   echo "$as_me: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10271 ac_cv_func__doprnt=no
10272 fi
10273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10274 fi
10275 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10276 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10277 if test $ac_cv_func__doprnt = yes; then
10278
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_DOPRNT 1
10281 _ACEOF
10282
10283 fi
10284
10285 fi
10286 done
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10303 do
10304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10305 echo "$as_me:$LINENO: checking for $ac_func" >&5
10306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10307 if eval "test \"\${$as_ac_var+set}\" = set"; then
10308   echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310   cat >conftest.$ac_ext <<_ACEOF
10311 #line $LINENO "configure"
10312 #include "confdefs.h"
10313 /* System header to define __stub macros and hopefully few prototypes,
10314     which can conflict with char $ac_func (); below.  */
10315 #include <assert.h>
10316 /* Override any gcc2 internal prototype to avoid an error.  */
10317 #ifdef __cplusplus
10318 extern "C"
10319 #endif
10320 /* We use char because int might match the return type of a gcc2
10321    builtin and then its argument prototype would still apply.  */
10322 char $ac_func ();
10323 char (*f) ();
10324
10325 #ifdef F77_DUMMY_MAIN
10326 #  ifdef __cplusplus
10327      extern "C"
10328 #  endif
10329    int F77_DUMMY_MAIN() { return 1; }
10330 #endif
10331 int
10332 main ()
10333 {
10334 /* The GNU C library defines this for functions which it implements
10335     to always fail with ENOSYS.  Some functions are actually named
10336     something starting with __ and the normal name is an alias.  */
10337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10338 choke me
10339 #else
10340 f = $ac_func;
10341 #endif
10342
10343   ;
10344   return 0;
10345 }
10346 _ACEOF
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349   (eval $ac_link) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } &&
10353          { ac_try='test -s conftest$ac_exeext'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; }; then
10359   eval "$as_ac_var=yes"
10360 else
10361   echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 eval "$as_ac_var=no"
10364 fi
10365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10366 fi
10367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10369 if test `eval echo '${'$as_ac_var'}'` = yes; then
10370   cat >>confdefs.h <<_ACEOF
10371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10372 _ACEOF
10373
10374 fi
10375 done
10376
10377
10378
10379
10380         FGIS_CONFIG=$"$sysconfdir"
10381         test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10382         test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10383         FGIS_CONFIG=`eval echo $FGIS_CONFIG`
10384         FGIS_CONFIG=`eval echo $FGIS_CONFIG`
10385
10386
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define FGIS_CONFIG "$FGIS_CONFIG"
10390 _ACEOF
10391
10392 FGIS_CONFIG=$FGIS_CONFIG
10393
10394
10395
10396
10397         FGIS_LIBDIR=$"$libdir"
10398         test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10399         test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10400         FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10401         FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10402
10403
10404 FGIS_LIBDIR=$FGIS_LIBDIR
10405
10406
10407
10408
10409         FGIS_SCRIPTS=$"$libdir/fgis/tcl"
10410         test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10411         test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10412         FGIS_SCRIPTS=`eval echo $FGIS_SCRIPTS`
10413         FGIS_SCRIPTS=`eval echo $FGIS_SCRIPTS`
10414
10415
10416 FGIS_SCRIPTS=$FGIS_SCRIPTS
10417
10418
10419
10420 LIBEPP=../lib/libepp.la
10421
10422
10423
10424
10425 #
10426 # Ok, lets find the tcl source trees so we can use the headers
10427 # Warning: transition of version 9 to 10 will break this algorithm
10428 # because 10 sorts before 9. We also look for just tcl. We have to
10429 # be careful that we don't match stuff like tclX by accident.
10430 # the alternative search directory is involked by --with-tclinclude
10431 #
10432 no_tcl=true
10433 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
10434 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
10435
10436 # Check whether --with-tclinclude or --without-tclinclude was given.
10437 if test "${with_tclinclude+set}" = set; then
10438   withval="$with_tclinclude"
10439   with_tclinclude=${withval}
10440 fi;
10441 if test "${ac_cv_c_tclh+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444
10445 # first check to see if --with-tclinclude was specified
10446 if test x"${with_tclinclude}" != x ; then
10447   if test -f ${with_tclinclude}/tclInt.h ; then
10448     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
10449   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
10450     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
10451   else
10452     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
10453 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
10454    { (exit 1); exit 1; }; }
10455   fi
10456 fi
10457
10458 # next check if it came with Tcl configuration file
10459 if test x"${ac_cv_c_tclconfig}" != x ; then
10460   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
10461     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
10462   fi
10463 fi
10464
10465 # next check in private source directory
10466 #
10467 # since ls returns lowest version numbers first, reverse its output
10468 if test x"${ac_cv_c_tclh}" = x ; then
10469   for i in \
10470                 ${srcdir}/../tcl \
10471                 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10472                 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` \
10473                 ${srcdir}/../../tcl \
10474                 `ls -dr ${srcdir}/../../tcl[9].[0-9].[0-9] ${srcdir}/../../tcl[9].[0-9] 2>/dev/null` \
10475                 `ls -dr ${srcdir}/../../tcl[8].[2-9].[0-9] ${srcdir}/../../tcl[8].[2-9] 2>/dev/null` \
10476                 ${srcdir}/../../../tcl \
10477                 `ls -dr ${srcdir}/../../../tcl[9].[0-9].[0-9] ${srcdir}/../../../tcl[9].[0-9] 2>/dev/null ` \
10478                 `ls -dr ${srcdir}/../../../tcl[8].[2-9].[0-9] ${srcdir}/../../../tcl[8].[2-9] 2>/dev/null ` ; do
10479     if test -f $i/generic/tclInt.h ; then
10480       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10481       break
10482     fi
10483   done
10484 fi
10485
10486 # check Debian-specific locations
10487 if test x"${ac_cv_c_tclh}" = x ; then
10488   for i in \
10489                 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tcl-private /usr/include/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10490                 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tcl-private /usr/include/tcl[8].[2-9]/tcl-private 2>/dev/null`; do
10491     if test -f $i/generic/tclInt.h ; then
10492       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10493       break
10494     fi
10495   done
10496 fi
10497
10498 # finally check in a few common install locations
10499 #
10500 # since ls returns lowest version numbers first, reverse its output
10501 if test x"${ac_cv_c_tclh}" = x ; then
10502   for i in \
10503                 `ls -dr /usr/lib/tcl[9].[0-9].[0-9]/tcl-private /usr/lib/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10504                 `ls -dr /usr/lib/tcl[8].[2-9].[0-9]/tcl-private /usr/lib/tcl[8].[2-9]/tcl-private 2>/dev/null` \
10505                 `ls -dr /usr/local/src/tcl[9].[0-9].[0-9] /usr/local/src/tcl[9].[0-9] 2>/dev/null` \
10506                 `ls -dr /usr/local/src/tcl[8].[2-9].[0-9] /usr/local/src/tcl[8].[2-9] 2>/dev/null` \
10507                 `ls -dr /usr/local/lib/tcl[9].[0-9].[0-9] /usr/local/lib/tcl[9].[0-9] 2>/dev/null` \
10508                 `ls -dr /usr/local/lib/tcl[8].[2-9].[0-9] /usr/local/lib/tcl[8].[2-9] 2>/dev/null` \
10509                 /usr/local/src/tcl \
10510                 /usr/local/lib/tcl \
10511                 ${prefix}/include ; do
10512     if test -f $i/generic/tclInt.h ; then
10513       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10514       break
10515     fi
10516   done
10517 fi
10518 # see if one is installed
10519 if test x"${ac_cv_c_tclh}" = x ; then
10520    if test "${ac_cv_header_tclInt_h+set}" = set; then
10521   echo "$as_me:$LINENO: checking for tclInt.h" >&5
10522 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10523 if test "${ac_cv_header_tclInt_h+set}" = set; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 fi
10526 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10527 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10528 else
10529   # Is the header compilable?
10530 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
10531 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10534 #include "confdefs.h"
10535 $ac_includes_default
10536 #include <tclInt.h>
10537 _ACEOF
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540   (eval $ac_compile) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } &&
10544          { ac_try='test -s conftest.$ac_objext'
10545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546   (eval $ac_try) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; }; then
10550   ac_header_compiler=yes
10551 else
10552   echo "$as_me: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10554 ac_header_compiler=no
10555 fi
10556 rm -f conftest.$ac_objext conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10558 echo "${ECHO_T}$ac_header_compiler" >&6
10559
10560 # Is the header present?
10561 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
10562 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
10563 cat >conftest.$ac_ext <<_ACEOF
10564 #line $LINENO "configure"
10565 #include "confdefs.h"
10566 #include <tclInt.h>
10567 _ACEOF
10568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10569   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10570   ac_status=$?
10571   egrep -v '^ *\+' conftest.er1 >conftest.err
10572   rm -f conftest.er1
10573   cat conftest.err >&5
10574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575   (exit $ac_status); } >/dev/null; then
10576   if test -s conftest.err; then
10577     ac_cpp_err=$ac_c_preproc_warn_flag
10578   else
10579     ac_cpp_err=
10580   fi
10581 else
10582   ac_cpp_err=yes
10583 fi
10584 if test -z "$ac_cpp_err"; then
10585   ac_header_preproc=yes
10586 else
10587   echo "$as_me: failed program was:" >&5
10588   cat conftest.$ac_ext >&5
10589   ac_header_preproc=no
10590 fi
10591 rm -f conftest.err conftest.$ac_ext
10592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10593 echo "${ECHO_T}$ac_header_preproc" >&6
10594
10595 # So?  What about this header?
10596 case $ac_header_compiler:$ac_header_preproc in
10597   yes:no )
10598     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10599 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10600     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10601 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10602   no:yes )
10603     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
10605     { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
10607     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10609 esac
10610 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10611 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10612 if test "${ac_cv_header_tclInt_h+set}" = set; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   ac_cv_header_tclInt_h=$ac_header_preproc
10616 fi
10617 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10618 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10619
10620 fi
10621 if test $ac_cv_header_tclInt_h = yes; then
10622   ac_cv_c_tclh=installed
10623 else
10624   ac_cv_c_tclh=""
10625 fi
10626
10627
10628 fi
10629
10630 fi
10631
10632 if test x"${ac_cv_c_tclh}" = x ; then
10633   TCLHDIR="# no Tcl private headers found"
10634   TCLHDIRDASHI="# no Tcl private headers found"
10635   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
10636 echo "$as_me: error: Can't find Tcl private headers" >&2;}
10637    { (exit 1); exit 1; }; }
10638 fi
10639 if test x"${ac_cv_c_tclh}" != x ; then
10640   no_tcl=""
10641   if test x"${ac_cv_c_tclh}" = x"installed" ; then
10642     echo "$as_me:$LINENO: result: is installed" >&5
10643 echo "${ECHO_T}is installed" >&6
10644     TCLHDIR=""
10645     TCLHDIRDASHI=""
10646     TCL_LIBRARY=""
10647   else
10648     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
10649 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
10650     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
10651     TCLHDIR="${ac_cv_c_tclh}"
10652     TCLHDIRDASHI="-I${ac_cv_c_tclh}"
10653     TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
10654   fi
10655 fi
10656
10657
10658
10659
10660
10661 if test x"$no_tcl" = x"true" ; then
10662     echo "      ERROR: Can't find Tcl headers or library."
10663     echo "      See README for information on how to obtain Tcl."
10664     echo "      If Tcl is installed, see INSTALL on how to tell"
10665     echo "      configure where Tcl is installed."
10666     exit 1
10667 fi
10668
10669 #
10670 # Ok, lets find the tcl configuration
10671 # First, look for one uninstalled.
10672 # the alternative search directory is invoked by --with-tcl
10673 #
10674
10675 if test x"${no_tcl}" = x ; then
10676   # we reset no_tcl in case something fails here
10677   no_tcl=true
10678
10679 # Check whether --with-tcl or --without-tcl was given.
10680 if test "${with_tcl+set}" = set; then
10681   withval="$with_tcl"
10682   with_tclconfig=${withval}
10683 fi;
10684   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
10685 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
10686   if test "${ac_cv_c_tclconfig+set}" = set; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689
10690
10691   # First check to see if --with-tcl was specified.
10692   if test x"${with_tclconfig}" != x ; then
10693     if test -f "${with_tclconfig}/tclConfig.sh" ; then
10694       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10695     else
10696       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10697 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10698    { (exit 1); exit 1; }; }
10699     fi
10700   fi
10701
10702   # then check for a private Tcl installation
10703   if test x"${ac_cv_c_tclconfig}" = x ; then
10704     for i in \
10705                 ../tcl \
10706                 `ls -dr ../tcl[9].[0-9].[0-9] ../tcl[9].[0-9] 2>/dev/null` \
10707                 `ls -dr ../tcl[8].[2-9].[0-9] ../tcl[8].[2-9] 2>/dev/null` \
10708                 ../../tcl \
10709                 `ls -dr ../../tcl[9].[0-9].[0-9] ../../tcl[9].[0-9] 2>/dev/null` \
10710                 `ls -dr ../../tcl[8].[2-9].[0-9] ../../tcl[8].[2-9] 2>/dev/null` \
10711                 ../../../tcl \
10712                 `ls -dr ../../../tcl[9].[0-9].[0-9] ../../../tcl[9].[0-9] 2>/dev/null` \
10713                 `ls -dr ../../../tcl[8].[2-9].[0-9] ../../../tcl[8].[2-9] 2>/dev/null` ; do
10714       if test -f "$i/unix/tclConfig.sh" ; then
10715         ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10716         break
10717       fi
10718     done
10719   fi
10720   # check in a few common install locations
10721   if test x"${ac_cv_c_tclconfig}" = x ; then
10722     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10723       if test -f "$i/tclConfig.sh" ; then
10724         ac_cv_c_tclconfig=`(cd $i; pwd)`
10725         break
10726       fi
10727     done
10728   fi
10729
10730   # check Debian-specific locations
10731   if test x"${ac_cv_c_tclconfig}" = x ; then
10732     for i in \
10733                 `ls -dr /usr/lib/tcl[9].[0-9].[0-9] /usr/lib/tcl[9].[0-9] 2>/dev/null` \
10734                 `ls -dr /usr/lib/tcl[8].[2-9].[0-9] /usr/lib/tcl[8].[2-9] 2>/dev/null` ; do
10735       if test -f "$i/tclConfig.sh" ; then
10736         ac_cv_c_tclconfig=`(cd $i; pwd)`
10737         break
10738       fi
10739     done
10740   fi
10741
10742   # check in a few other private locations
10743   if test x"${ac_cv_c_tclconfig}" = x ; then
10744     for i in \
10745                 ${srcdir}/../tcl \
10746                 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10747                 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` ; do
10748       if test -f "$i/unix/tclConfig.sh" ; then
10749         ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10750         break
10751       fi
10752     done
10753   fi
10754
10755 fi
10756
10757   if test x"${ac_cv_c_tclconfig}" = x ; then
10758     TCLCONFIG="# no Tcl configs found"
10759     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
10760 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10761   else
10762     no_tcl=
10763     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
10764     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
10765 echo "${ECHO_T}found $TCLCONFIG" >&6
10766   fi
10767 fi
10768
10769
10770     . $TCLCONFIG
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782 # Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
10783 # as just SHLIB_SUFFIX.  How bizarre.
10784     SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
10785
10786
10787
10788
10789 # if Tcl's build directory has been removed, TCL_LIB_SPEC should
10790 # be used instead of TCL_BUILD_LIB_SPEC
10791 SAVELIBS=$LIBS
10792 # eval used to expand out TCL_DBGX
10793 eval "LIBS=\"$TCL_BUILD_LIB_SPEC $TCL_LIBS\""
10794 echo "$as_me:$LINENO: checking Tcl build library" >&5
10795 echo $ECHO_N "checking Tcl build library... $ECHO_C" >&6
10796 echo "$as_me:$LINENO: result: $LIBS" >&5
10797 echo "${ECHO_T}$LIBS" >&6
10798
10799 echo "$as_me:$LINENO: checking for Tcl_CreateCommand" >&5
10800 echo $ECHO_N "checking for Tcl_CreateCommand... $ECHO_C" >&6
10801 if test "${ac_cv_func_Tcl_CreateCommand+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   cat >conftest.$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10806 #include "confdefs.h"
10807 /* System header to define __stub macros and hopefully few prototypes,
10808     which can conflict with char Tcl_CreateCommand (); below.  */
10809 #include <assert.h>
10810 /* Override any gcc2 internal prototype to avoid an error.  */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815    builtin and then its argument prototype would still apply.  */
10816 char Tcl_CreateCommand ();
10817 char (*f) ();
10818
10819 #ifdef F77_DUMMY_MAIN
10820 #  ifdef __cplusplus
10821      extern "C"
10822 #  endif
10823    int F77_DUMMY_MAIN() { return 1; }
10824 #endif
10825 int
10826 main ()
10827 {
10828 /* The GNU C library defines this for functions which it implements
10829     to always fail with ENOSYS.  Some functions are actually named
10830     something starting with __ and the normal name is an alias.  */
10831 #if defined (__stub_Tcl_CreateCommand) || defined (__stub___Tcl_CreateCommand)
10832 choke me
10833 #else
10834 f = Tcl_CreateCommand;
10835 #endif
10836
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843   (eval $ac_link) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } &&
10847          { ac_try='test -s conftest$ac_exeext'
10848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849   (eval $ac_try) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; }; then
10853   ac_cv_func_Tcl_CreateCommand=yes
10854 else
10855   echo "$as_me: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 ac_cv_func_Tcl_CreateCommand=no
10858 fi
10859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10860 fi
10861 echo "$as_me:$LINENO: result: $ac_cv_func_Tcl_CreateCommand" >&5
10862 echo "${ECHO_T}$ac_cv_func_Tcl_CreateCommand" >&6
10863 if test $ac_cv_func_Tcl_CreateCommand = yes; then
10864
10865         echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10866 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10867         echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6
10869
10870 else
10871
10872         TCL_BUILD_LIB_SPEC=$TCL_LIB_SPEC
10873         # Can't pull the following CHECKING call out since it will be
10874         # broken up by the CHECK_FUNC just above.
10875         echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10876 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10877         echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10879
10880 fi
10881
10882 LIBS=$SAVELIBS
10883
10884
10885
10886
10887
10888
10889
10890 TCL_INC_DIR=$TCL_INC_DIR
10891
10892 TCL_PACKAGE_PATH=$TCL_PACKAGE_PATH
10893
10894
10895
10896 #
10897 # Ok, lets find the tk source trees so we can use the headers
10898 # If the directory (presumably symlink) named "tk" exists, use that one
10899 # in preference to any others.  Same logic is used when choosing library
10900 # and again with Tcl. The search order is the best place to look first, then in
10901 # decreasing significance. The loop breaks if the trigger file is found.
10902 # Note the gross little conversion here of srcdir by cd'ing to the found
10903 # directory. This converts the path from a relative to an absolute, so
10904 # recursive cache variables for the path will work right. We check all
10905 # the possible paths in one loop rather than many seperate loops to speed
10906 # things up.
10907 # the alternative search directory is involked by --with-tkinclude
10908 #
10909 #no_tk=true
10910 echo "$as_me:$LINENO: checking for Tk private headers" >&5
10911 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
10912
10913 # Check whether --with-tkinclude or --without-tkinclude was given.
10914 if test "${with_tkinclude+set}" = set; then
10915   withval="$with_tkinclude"
10916   with_tkinclude=${withval}
10917 fi;
10918 if test "${ac_cv_c_tkh+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921
10922 # first check to see if --with-tkinclude was specified
10923 if test x"${with_tkinclude}" != x ; then
10924   if test -f ${with_tkinclude}/tk.h ; then
10925     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
10926   elif test -f ${with_tkinclude}/generic/tk.h ; then
10927     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
10928   else
10929     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
10930 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
10931    { (exit 1); exit 1; }; }
10932   fi
10933 fi
10934
10935 # next check if it came with Tk configuration file
10936 if test x"${ac_cv_c_tkconfig}" != x ; then
10937   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
10938     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/../generic; pwd)`
10939   fi
10940 fi
10941
10942 # next check in private source directory
10943 #
10944 # since ls returns lowest version numbers first, reverse its output
10945 if test x"${ac_cv_c_tkh}" = x ; then
10946   for i in \
10947                 ${srcdir}/../tk \
10948                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10949                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10950                 ${srcdir}/../../tk \
10951                 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10952                 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10953                 ${srcdir}/../../../tk \
10954                 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` \
10955                 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` ; do
10956     if test -f $i/generic/tk.h ; then
10957       ac_cv_c_tkh=`(cd $i/generic; pwd)`
10958       break
10959     fi
10960   done
10961 fi
10962
10963 # check Debian-specific locations
10964 if test x"${ac_cv_c_tkh}" = x ; then
10965   for i in \
10966                 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tk-private /usr/include/tcl[9].[0-9]/tk-private 2>/dev/null` \
10967                 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tk-private /usr/include/tcl[8].[2-9]/tk-private 2>/dev/null` ; do
10968     if test -f $i/generic/tk.h ; then
10969       ac_cv_c_tkh=`(cd $i/generic; pwd)`
10970       break
10971     fi
10972   done
10973 fi
10974
10975 # finally check in a few common install locations
10976 #
10977 # since ls returns lowest version numbers first, reverse its output
10978 if test x"${ac_cv_c_tkh}" = x ; then
10979   for i in \
10980                 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10981                 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10982                 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10983                 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10984                 /usr/local/src/tk \
10985                 /usr/local/lib/tk \
10986                 ${prefix}/include ; do
10987     if test -f $i/generic/tk.h ; then
10988       ac_cv_c_tkh=`(cd $i/generic; pwd)`
10989       break
10990     fi
10991   done
10992 fi
10993 # see if one is installed
10994 if test x"${ac_cv_c_tkh}" = x ; then
10995    if test "${ac_cv_header_tk_h+set}" = set; then
10996   echo "$as_me:$LINENO: checking for tk.h" >&5
10997 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
10998 if test "${ac_cv_header_tk_h+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 fi
11001 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11002 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11003 else
11004   # Is the header compilable?
11005 echo "$as_me:$LINENO: checking tk.h usability" >&5
11006 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11010 $ac_includes_default
11011 #include <tk.h>
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015   (eval $ac_compile) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } &&
11019          { ac_try='test -s conftest.$ac_objext'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; }; then
11025   ac_header_compiler=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 ac_header_compiler=no
11030 fi
11031 rm -f conftest.$ac_objext conftest.$ac_ext
11032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11033 echo "${ECHO_T}$ac_header_compiler" >&6
11034
11035 # Is the header present?
11036 echo "$as_me:$LINENO: checking tk.h presence" >&5
11037 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11040 #include "confdefs.h"
11041 #include <tk.h>
11042 _ACEOF
11043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11045   ac_status=$?
11046   egrep -v '^ *\+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } >/dev/null; then
11051   if test -s conftest.err; then
11052     ac_cpp_err=$ac_c_preproc_warn_flag
11053   else
11054     ac_cpp_err=
11055   fi
11056 else
11057   ac_cpp_err=yes
11058 fi
11059 if test -z "$ac_cpp_err"; then
11060   ac_header_preproc=yes
11061 else
11062   echo "$as_me: failed program was:" >&5
11063   cat conftest.$ac_ext >&5
11064   ac_header_preproc=no
11065 fi
11066 rm -f conftest.err conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11068 echo "${ECHO_T}$ac_header_preproc" >&6
11069
11070 # So?  What about this header?
11071 case $ac_header_compiler:$ac_header_preproc in
11072   yes:no )
11073     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
11074 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11075     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11076 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11077   no:yes )
11078     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
11079 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
11080     { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
11081 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
11082     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11083 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11084 esac
11085 echo "$as_me:$LINENO: checking for tk.h" >&5
11086 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11087 if test "${ac_cv_header_tk_h+set}" = set; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090   ac_cv_header_tk_h=$ac_header_preproc
11091 fi
11092 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11093 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11094
11095 fi
11096 if test $ac_cv_header_tk_h = yes; then
11097   ac_cv_c_tkh=installed
11098 else
11099   ac_cv_c_tkh=""
11100 fi
11101
11102
11103 fi
11104
11105 fi
11106
11107 if test x"${ac_cv_c_tkh}" != x ; then
11108 #  no_tk=""
11109   if test x"${ac_cv_c_tkh}" = x"installed" ; then
11110     echo "$as_me:$LINENO: result: is installed" >&5
11111 echo "${ECHO_T}is installed" >&6
11112     TKHDIRDASHI=""
11113   else
11114     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
11115 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
11116     # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
11117     TKHDIRDASHI="-I${ac_cv_c_tkh}"
11118   fi
11119 else
11120   TKHDIRDASHI="# no Tk directory found"
11121   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
11122 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
11123   no_tk=true
11124 fi
11125
11126
11127
11128
11129 #
11130 # Ok, lets find the tk configuration
11131 # First, look for one uninstalled.
11132 # the alternative search directory is invoked by --with-tk
11133 #
11134
11135 if test x"${no_tk}" = x ; then
11136   # we reset no_tk in case something fails here
11137   no_tk=true
11138
11139 # Check whether --with-tk or --without-tk was given.
11140 if test "${with_tk+set}" = set; then
11141   withval="$with_tk"
11142   with_tkconfig=${withval}
11143 fi;
11144   echo "$as_me:$LINENO: checking for Tk configuration" >&5
11145 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
11146   if test "${ac_cv_c_tkconfig+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149
11150
11151   # First check to see if --with-tk was specified.
11152   if test x"${with_tkconfig}" != x ; then
11153     if test -f "${with_tkconfig}/tkConfig.sh" ; then
11154       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
11155     else
11156       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
11157 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
11158    { (exit 1); exit 1; }; }
11159     fi
11160   fi
11161
11162   # then check for a private Tk library
11163   if test x"${ac_cv_c_tkconfig}" = x ; then
11164     for i in \
11165                 ../tk \
11166                 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11167                 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11168                 ../../tk \
11169                 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11170                 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11171                 ../../../tk \
11172                 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` \
11173                 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` ; do
11174       if test -f "$i/unix/tkConfig.sh" ; then
11175         ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11176         break
11177       fi
11178     done
11179   fi
11180   # check in a few common install locations
11181   if test x"${ac_cv_c_tkconfig}" = x ; then
11182     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
11183       if test -f "$i/tkConfig.sh" ; then
11184         ac_cv_c_tkconfig=`(cd $i; pwd)`
11185         break
11186       fi
11187     done
11188   fi
11189   # check Debian-specific locations
11190   if test x"${ac_cv_c_tkconfig}" = x ; then
11191     for i in \
11192                 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` \
11193                 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` ; do
11194       if test -f "$i/tkConfig.sh" ; then
11195         ac_cv_c_tkconfig=`(cd $i; pwd)`
11196         break
11197       fi
11198     done
11199   fi
11200   # check in a few other private locations
11201   if test x"${ac_cv_c_tkconfig}" = x ; then
11202     for i in \
11203                 ${srcdir}/../tk \
11204                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11205                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` ; do
11206       if test -f "$i/unix/tkConfig.sh" ; then
11207         ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11208         break
11209       fi
11210     done
11211   fi
11212
11213 fi
11214
11215   if test x"${ac_cv_c_tkconfig}" = x ; then
11216     TKCONFIG="# no Tk configs found"
11217     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
11218 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
11219   else
11220     no_tk=
11221     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
11222     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
11223 echo "${ECHO_T}found $TKCONFIG" >&6
11224   fi
11225 fi
11226
11227
11228
11229     if test -f "$TKCONFIG" ; then
11230       . $TKCONFIG
11231     fi
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243 # if Tk's build directory has been removed, TK_LIB_SPEC should
11244 # be used instead of TK_BUILD_LIB_SPEC
11245 SAVELIBS=$LIBS
11246 # eval used to expand out TK_DBGX
11247 eval "LIBS=\"$TK_BUILD_LIB_SPEC $TCL_BUILD_LIB_SPEC $TK_LIBS\""
11248 echo "$as_me:$LINENO: checking for Tk_Init" >&5
11249 echo $ECHO_N "checking for Tk_Init... $ECHO_C" >&6
11250 if test "${ac_cv_func_Tk_Init+set}" = set; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   cat >conftest.$ac_ext <<_ACEOF
11254 #line $LINENO "configure"
11255 #include "confdefs.h"
11256 /* System header to define __stub macros and hopefully few prototypes,
11257     which can conflict with char Tk_Init (); below.  */
11258 #include <assert.h>
11259 /* Override any gcc2 internal prototype to avoid an error.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 /* We use char because int might match the return type of a gcc2
11264    builtin and then its argument prototype would still apply.  */
11265 char Tk_Init ();
11266 char (*f) ();
11267
11268 #ifdef F77_DUMMY_MAIN
11269 #  ifdef __cplusplus
11270      extern "C"
11271 #  endif
11272    int F77_DUMMY_MAIN() { return 1; }
11273 #endif
11274 int
11275 main ()
11276 {
11277 /* The GNU C library defines this for functions which it implements
11278     to always fail with ENOSYS.  Some functions are actually named
11279     something starting with __ and the normal name is an alias.  */
11280 #if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
11281 choke me
11282 #else
11283 f = Tk_Init;
11284 #endif
11285
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292   (eval $ac_link) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -s conftest$ac_exeext'
11297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298   (eval $ac_try) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   ac_cv_func_Tk_Init=yes
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 ac_cv_func_Tk_Init=no
11307 fi
11308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11309 fi
11310 echo "$as_me:$LINENO: result: $ac_cv_func_Tk_Init" >&5
11311 echo "${ECHO_T}$ac_cv_func_Tk_Init" >&6
11312 if test $ac_cv_func_Tk_Init = yes; then
11313
11314         echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11315 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11316         echo "$as_me:$LINENO: result: yes" >&5
11317 echo "${ECHO_T}yes" >&6
11318
11319 else
11320
11321         TK_BUILD_LIB_SPEC=$TK_LIB_SPEC
11322         # Can't pull the following CHECKING call out since it will be
11323         # broken up by the CHECK_FUNC just above.
11324         echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11325 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11326         echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6
11328
11329 fi
11330
11331 LIBS=$SAVELIBS
11332
11333
11334
11335
11336 TK_INC_DIR=$TK_INC_DIR
11337
11338 if [[ $TK_VERSION < "8.4" ]]; then
11339
11340 cat >>confdefs.h <<\_ACEOF
11341 #define TK_84PREV
11342 _ACEOF
11343
11344 fi
11345
11346 ac_config_files="$ac_config_files Makefile etc/Makefile etc/fgis.rc dll/Makefile epu/Makefile include/Makefile lib/Makefile tcl/Makefile tcl/pkgIndex.tcl"
11347
11348 cat >confcache <<\_ACEOF
11349 # This file is a shell script that caches the results of configure
11350 # tests run on this system so they can be shared between configure
11351 # scripts and configure runs, see configure's option --config-cache.
11352 # It is not useful on other systems.  If it contains results you don't
11353 # want to keep, you may remove or edit it.
11354 #
11355 # config.status only pays attention to the cache file if you give it
11356 # the --recheck option to rerun configure.
11357 #
11358 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11360 # following values.
11361
11362 _ACEOF
11363
11364 # The following way of writing the cache mishandles newlines in values,
11365 # but we know of no workaround that is simple, portable, and efficient.
11366 # So, don't put newlines in cache variables' values.
11367 # Ultrix sh set writes to stderr and can't be redirected directly,
11368 # and sets the high bit in the cache file unless we assign to the vars.
11369 {
11370   (set) 2>&1 |
11371     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11372     *ac_space=\ *)
11373       # `set' does not quote correctly, so add quotes (double-quote
11374       # substitution turns \\\\ into \\, and sed turns \\ into \).
11375       sed -n \
11376         "s/'/'\\\\''/g;
11377           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11378       ;;
11379     *)
11380       # `set' quotes correctly as required by POSIX, so do not add quotes.
11381       sed -n \
11382         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11383       ;;
11384     esac;
11385 } |
11386   sed '
11387      t clear
11388      : clear
11389      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11390      t end
11391      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11392      : end' >>confcache
11393 if cmp -s $cache_file confcache; then :; else
11394   if test -w $cache_file; then
11395     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11396     cat confcache >$cache_file
11397   else
11398     echo "not updating unwritable cache $cache_file"
11399   fi
11400 fi
11401 rm -f confcache
11402
11403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11404 # Let make expand exec_prefix.
11405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11406
11407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11409 # trailing colons and then remove the whole line if VPATH becomes empty
11410 # (actually we leave an empty line to preserve line numbers).
11411 if test "x$srcdir" = x.; then
11412   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11413 s/:*\$(srcdir):*/:/;
11414 s/:*\${srcdir}:*/:/;
11415 s/:*@srcdir@:*/:/;
11416 s/^\([^=]*=[    ]*\):*/\1/;
11417 s/:*$//;
11418 s/^[^=]*=[      ]*$//;
11419 }'
11420 fi
11421
11422 DEFS=-DHAVE_CONFIG_H
11423
11424 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11425   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11426 Usually this means the macro was only invoked conditionally." >&5
11427 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11428 Usually this means the macro was only invoked conditionally." >&2;}
11429    { (exit 1); exit 1; }; }
11430 fi
11431
11432 : ${CONFIG_STATUS=./config.status}
11433 ac_clean_files_save=$ac_clean_files
11434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11435 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11436 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11437 cat >$CONFIG_STATUS <<_ACEOF
11438 #! $SHELL
11439 # Generated by $as_me.
11440 # Run this file to recreate the current configuration.
11441 # Compiler output produced by configure, useful for debugging
11442 # configure, is in config.log if it exists.
11443
11444 debug=false
11445 SHELL=\${CONFIG_SHELL-$SHELL}
11446 _ACEOF
11447
11448 cat >>$CONFIG_STATUS <<\_ACEOF
11449
11450 ## --------------------- ##
11451 ## M4sh Initialization.  ##
11452 ## --------------------- ##
11453
11454 # Be Bourne compatible
11455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11456   emulate sh
11457   NULLCMD=:
11458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11459   set -o posix
11460 fi
11461
11462 # NLS nuisances.
11463 # Support unset when possible.
11464 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11465   as_unset=unset
11466 else
11467   as_unset=false
11468 fi
11469
11470 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11471     { $as_unset LANG || test "${LANG+set}" != set; } ||
11472       { LANG=C; export LANG; }
11473 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11474     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11475       { LC_ALL=C; export LC_ALL; }
11476 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11477     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11478       { LC_TIME=C; export LC_TIME; }
11479 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11480     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11481       { LC_CTYPE=C; export LC_CTYPE; }
11482 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11483     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11484       { LANGUAGE=C; export LANGUAGE; }
11485 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11486     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11487       { LC_COLLATE=C; export LC_COLLATE; }
11488 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11489     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11490       { LC_NUMERIC=C; export LC_NUMERIC; }
11491 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11492     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11493       { LC_MESSAGES=C; export LC_MESSAGES; }
11494
11495
11496 # Name of the executable.
11497 as_me=`(basename "$0") 2>/dev/null ||
11498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11499          X"$0" : 'X\(//\)$' \| \
11500          X"$0" : 'X\(/\)$' \| \
11501          .     : '\(.\)' 2>/dev/null ||
11502 echo X/"$0" |
11503     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11504           /^X\/\(\/\/\)$/{ s//\1/; q; }
11505           /^X\/\(\/\).*/{ s//\1/; q; }
11506           s/.*/./; q'`
11507
11508 # PATH needs CR, and LINENO needs CR and PATH.
11509 # Avoid depending upon Character Ranges.
11510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11513 as_cr_digits='0123456789'
11514 as_cr_alnum=$as_cr_Letters$as_cr_digits
11515
11516 # The user is always right.
11517 if test "${PATH_SEPARATOR+set}" != set; then
11518   echo "#! /bin/sh" >conftest.sh
11519   echo  "exit 0"   >>conftest.sh
11520   chmod +x conftest.sh
11521   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11522     PATH_SEPARATOR=';'
11523   else
11524     PATH_SEPARATOR=:
11525   fi
11526   rm -f conftest.sh
11527 fi
11528
11529
11530   as_lineno_1=$LINENO
11531   as_lineno_2=$LINENO
11532   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11533   test "x$as_lineno_1" != "x$as_lineno_2" &&
11534   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11535   # Find who we are.  Look in the path if we contain no path at all
11536   # relative or not.
11537   case $0 in
11538     *[\\/]* ) as_myself=$0 ;;
11539     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11541 do
11542   IFS=$as_save_IFS
11543   test -z "$as_dir" && as_dir=.
11544   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11545 done
11546
11547        ;;
11548   esac
11549   # We did not find ourselves, most probably we were run as `sh COMMAND'
11550   # in which case we are not to be found in the path.
11551   if test "x$as_myself" = x; then
11552     as_myself=$0
11553   fi
11554   if test ! -f "$as_myself"; then
11555     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11556 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11557    { (exit 1); exit 1; }; }
11558   fi
11559   case $CONFIG_SHELL in
11560   '')
11561     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11563 do
11564   IFS=$as_save_IFS
11565   test -z "$as_dir" && as_dir=.
11566   for as_base in sh bash ksh sh5; do
11567          case $as_dir in
11568          /*)
11569            if ("$as_dir/$as_base" -c '
11570   as_lineno_1=$LINENO
11571   as_lineno_2=$LINENO
11572   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11573   test "x$as_lineno_1" != "x$as_lineno_2" &&
11574   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11575              CONFIG_SHELL=$as_dir/$as_base
11576              export CONFIG_SHELL
11577              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11578            fi;;
11579          esac
11580        done
11581 done
11582 ;;
11583   esac
11584
11585   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11586   # uniformly replaced by the line number.  The first 'sed' inserts a
11587   # line-number line before each line; the second 'sed' does the real
11588   # work.  The second script uses 'N' to pair each line-number line
11589   # with the numbered line, and appends trailing '-' during
11590   # substitution so that $LINENO is not a special case at line end.
11591   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11592   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11593   sed '=' <$as_myself |
11594     sed '
11595       N
11596       s,$,-,
11597       : loop
11598       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11599       t loop
11600       s,-$,,
11601       s,^['$as_cr_digits']*\n,,
11602     ' >$as_me.lineno &&
11603   chmod +x $as_me.lineno ||
11604     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11605 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11606    { (exit 1); exit 1; }; }
11607
11608   # Don't try to exec as it changes $[0], causing all sort of problems
11609   # (the dirname of $[0] is not the place where we might find the
11610   # original and so on.  Autoconf is especially sensible to this).
11611   . ./$as_me.lineno
11612   # Exit status is that of the last command.
11613   exit
11614 }
11615
11616
11617 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11618   *c*,-n*) ECHO_N= ECHO_C='
11619 ' ECHO_T='      ' ;;
11620   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11621   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11622 esac
11623
11624 if expr a : '\(a\)' >/dev/null 2>&1; then
11625   as_expr=expr
11626 else
11627   as_expr=false
11628 fi
11629
11630 rm -f conf$$ conf$$.exe conf$$.file
11631 echo >conf$$.file
11632 if ln -s conf$$.file conf$$ 2>/dev/null; then
11633   # We could just check for DJGPP; but this test a) works b) is more generic
11634   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11635   if test -f conf$$.exe; then
11636     # Don't use ln at all; we don't have any links
11637     as_ln_s='cp -p'
11638   else
11639     as_ln_s='ln -s'
11640   fi
11641 elif ln conf$$.file conf$$ 2>/dev/null; then
11642   as_ln_s=ln
11643 else
11644   as_ln_s='cp -p'
11645 fi
11646 rm -f conf$$ conf$$.exe conf$$.file
11647
11648 as_executable_p="test -f"
11649
11650 # Sed expression to map a string onto a valid CPP name.
11651 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11652
11653 # Sed expression to map a string onto a valid variable name.
11654 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11655
11656
11657 # IFS
11658 # We need space, tab and new line, in precisely that order.
11659 as_nl='
11660 '
11661 IFS="   $as_nl"
11662
11663 # CDPATH.
11664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11665
11666 exec 6>&1
11667
11668 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11669 # report actual input values of CONFIG_FILES etc. instead of their
11670 # values after options handling.  Logging --version etc. is OK.
11671 exec 5>>config.log
11672 {
11673   echo
11674   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11675 ## Running $as_me. ##
11676 _ASBOX
11677 } >&5
11678 cat >&5 <<_CSEOF
11679
11680 This file was extended by fGIS $as_me 0.0.1, which was
11681 generated by GNU Autoconf 2.53.  Invocation command line was
11682
11683   CONFIG_FILES    = $CONFIG_FILES
11684   CONFIG_HEADERS  = $CONFIG_HEADERS
11685   CONFIG_LINKS    = $CONFIG_LINKS
11686   CONFIG_COMMANDS = $CONFIG_COMMANDS
11687   $ $0 $@
11688
11689 _CSEOF
11690 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11691 echo >&5
11692 _ACEOF
11693
11694 # Files that config.status was made for.
11695 if test -n "$ac_config_files"; then
11696   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11697 fi
11698
11699 if test -n "$ac_config_headers"; then
11700   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11701 fi
11702
11703 if test -n "$ac_config_links"; then
11704   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11705 fi
11706
11707 if test -n "$ac_config_commands"; then
11708   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11709 fi
11710
11711 cat >>$CONFIG_STATUS <<\_ACEOF
11712
11713 ac_cs_usage="\
11714 \`$as_me' instantiates files from templates according to the
11715 current configuration.
11716
11717 Usage: $0 [OPTIONS] [FILE]...
11718
11719   -h, --help       print this help, then exit
11720   -V, --version    print version number, then exit
11721   -d, --debug      don't remove temporary files
11722       --recheck    update $as_me by reconfiguring in the same conditions
11723   --file=FILE[:TEMPLATE]
11724                    instantiate the configuration file FILE
11725   --header=FILE[:TEMPLATE]
11726                    instantiate the configuration header FILE
11727
11728 Configuration files:
11729 $config_files
11730
11731 Configuration headers:
11732 $config_headers
11733
11734 Configuration commands:
11735 $config_commands
11736
11737 Report bugs to <bug-autoconf@gnu.org>."
11738 _ACEOF
11739
11740 cat >>$CONFIG_STATUS <<_ACEOF
11741 ac_cs_version="\\
11742 fGIS config.status 0.0.1
11743 configured by $0, generated by GNU Autoconf 2.53,
11744   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11745
11746 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11747 Free Software Foundation, Inc.
11748 This config.status script is free software; the Free Software Foundation
11749 gives unlimited permission to copy, distribute and modify it."
11750 srcdir=$srcdir
11751 INSTALL="$INSTALL"
11752 _ACEOF
11753
11754 cat >>$CONFIG_STATUS <<\_ACEOF
11755 # If no file are specified by the user, then we need to provide default
11756 # value.  By we need to know if files were specified by the user.
11757 ac_need_defaults=:
11758 while test $# != 0
11759 do
11760   case $1 in
11761   --*=*)
11762     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11763     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11764     shift
11765     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11766     shift
11767     ;;
11768   -*);;
11769   *) # This is not an option, so the user has probably given explicit
11770      # arguments.
11771      ac_need_defaults=false;;
11772   esac
11773
11774   case $1 in
11775   # Handling of the options.
11776 _ACEOF
11777 cat >>$CONFIG_STATUS <<_ACEOF
11778   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11779     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11780     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11781 _ACEOF
11782 cat >>$CONFIG_STATUS <<\_ACEOF
11783   --version | --vers* | -V )
11784     echo "$ac_cs_version"; exit 0 ;;
11785   --he | --h)
11786     # Conflict between --help and --header
11787     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11788 Try \`$0 --help' for more information." >&5
11789 echo "$as_me: error: ambiguous option: $1
11790 Try \`$0 --help' for more information." >&2;}
11791    { (exit 1); exit 1; }; };;
11792   --help | --hel | -h )
11793     echo "$ac_cs_usage"; exit 0 ;;
11794   --debug | --d* | -d )
11795     debug=: ;;
11796   --file | --fil | --fi | --f )
11797     shift
11798     CONFIG_FILES="$CONFIG_FILES $1"
11799     ac_need_defaults=false;;
11800   --header | --heade | --head | --hea )
11801     shift
11802     CONFIG_HEADERS="$CONFIG_HEADERS $1"
11803     ac_need_defaults=false;;
11804
11805   # This is an error.
11806   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11807 Try \`$0 --help' for more information." >&5
11808 echo "$as_me: error: unrecognized option: $1
11809 Try \`$0 --help' for more information." >&2;}
11810    { (exit 1); exit 1; }; } ;;
11811
11812   *) ac_config_targets="$ac_config_targets $1" ;;
11813
11814   esac
11815   shift
11816 done
11817
11818 _ACEOF
11819
11820 cat >>$CONFIG_STATUS <<_ACEOF
11821 #
11822 # INIT-COMMANDS section.
11823 #
11824
11825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11826
11827 _ACEOF
11828
11829
11830
11831 cat >>$CONFIG_STATUS <<\_ACEOF
11832 for ac_config_target in $ac_config_targets
11833 do
11834   case "$ac_config_target" in
11835   # Handling of arguments.
11836   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11837   "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
11838   "etc/fgis.rc" ) CONFIG_FILES="$CONFIG_FILES etc/fgis.rc" ;;
11839   "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
11840   "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
11841   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11842   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11843   "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
11844   "tcl/pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES tcl/pkgIndex.tcl" ;;
11845   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11846   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11847   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11848 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11849    { (exit 1); exit 1; }; };;
11850   esac
11851 done
11852
11853 # If the user did not use the arguments to specify the items to instantiate,
11854 # then the envvar interface is used.  Set only those that are not.
11855 # We use the long form for the default assignment because of an extremely
11856 # bizarre bug on SunOS 4.1.3.
11857 if $ac_need_defaults; then
11858   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11859   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11860   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11861 fi
11862
11863 # Create a temporary directory, and hook for its removal unless debugging.
11864 $debug ||
11865 {
11866   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11867   trap '{ (exit 1); exit 1; }' 1 2 13 15
11868 }
11869
11870 # Create a (secure) tmp directory for tmp files.
11871 : ${TMPDIR=/tmp}
11872 {
11873   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11874   test -n "$tmp" && test -d "$tmp"
11875 }  ||
11876 {
11877   tmp=$TMPDIR/cs$$-$RANDOM
11878   (umask 077 && mkdir $tmp)
11879 } ||
11880 {
11881    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11882    { (exit 1); exit 1; }
11883 }
11884
11885 _ACEOF
11886
11887 cat >>$CONFIG_STATUS <<_ACEOF
11888
11889 #
11890 # CONFIG_FILES section.
11891 #
11892
11893 # No need to generate the scripts if there are no CONFIG_FILES.
11894 # This happens for instance when ./config.status config.h
11895 if test -n "\$CONFIG_FILES"; then
11896   # Protect against being on the right side of a sed subst in config.status.
11897   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11898    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11899 s,@SHELL@,$SHELL,;t t
11900 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11901 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11902 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11903 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11904 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11905 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11906 s,@exec_prefix@,$exec_prefix,;t t
11907 s,@prefix@,$prefix,;t t
11908 s,@program_transform_name@,$program_transform_name,;t t
11909 s,@bindir@,$bindir,;t t
11910 s,@sbindir@,$sbindir,;t t
11911 s,@libexecdir@,$libexecdir,;t t
11912 s,@datadir@,$datadir,;t t
11913 s,@sysconfdir@,$sysconfdir,;t t
11914 s,@sharedstatedir@,$sharedstatedir,;t t
11915 s,@localstatedir@,$localstatedir,;t t
11916 s,@libdir@,$libdir,;t t
11917 s,@includedir@,$includedir,;t t
11918 s,@oldincludedir@,$oldincludedir,;t t
11919 s,@infodir@,$infodir,;t t
11920 s,@mandir@,$mandir,;t t
11921 s,@build_alias@,$build_alias,;t t
11922 s,@host_alias@,$host_alias,;t t
11923 s,@target_alias@,$target_alias,;t t
11924 s,@DEFS@,$DEFS,;t t
11925 s,@ECHO_C@,$ECHO_C,;t t
11926 s,@ECHO_N@,$ECHO_N,;t t
11927 s,@ECHO_T@,$ECHO_T,;t t
11928 s,@LIBS@,$LIBS,;t t
11929 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11930 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11931 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11932 s,@PACKAGE@,$PACKAGE,;t t
11933 s,@VERSION@,$VERSION,;t t
11934 s,@ACLOCAL@,$ACLOCAL,;t t
11935 s,@AUTOCONF@,$AUTOCONF,;t t
11936 s,@AUTOMAKE@,$AUTOMAKE,;t t
11937 s,@AUTOHEADER@,$AUTOHEADER,;t t
11938 s,@MAKEINFO@,$MAKEINFO,;t t
11939 s,@AMTAR@,$AMTAR,;t t
11940 s,@install_sh@,$install_sh,;t t
11941 s,@STRIP@,$STRIP,;t t
11942 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11943 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11944 s,@AWK@,$AWK,;t t
11945 s,@SET_MAKE@,$SET_MAKE,;t t
11946 s,@build@,$build,;t t
11947 s,@build_cpu@,$build_cpu,;t t
11948 s,@build_vendor@,$build_vendor,;t t
11949 s,@build_os@,$build_os,;t t
11950 s,@host@,$host,;t t
11951 s,@host_cpu@,$host_cpu,;t t
11952 s,@host_vendor@,$host_vendor,;t t
11953 s,@host_os@,$host_os,;t t
11954 s,@CC@,$CC,;t t
11955 s,@CFLAGS@,$CFLAGS,;t t
11956 s,@LDFLAGS@,$LDFLAGS,;t t
11957 s,@CPPFLAGS@,$CPPFLAGS,;t t
11958 s,@ac_ct_CC@,$ac_ct_CC,;t t
11959 s,@EXEEXT@,$EXEEXT,;t t
11960 s,@OBJEXT@,$OBJEXT,;t t
11961 s,@DEPDIR@,$DEPDIR,;t t
11962 s,@am__include@,$am__include,;t t
11963 s,@am__quote@,$am__quote,;t t
11964 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11965 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11966 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11967 s,@CCDEPMODE@,$CCDEPMODE,;t t
11968 s,@LN_S@,$LN_S,;t t
11969 s,@ECHO@,$ECHO,;t t
11970 s,@RANLIB@,$RANLIB,;t t
11971 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11972 s,@CPP@,$CPP,;t t
11973 s,@LIBTOOL@,$LIBTOOL,;t t
11974 s,@YACC@,$YACC,;t t
11975 s,@ALLOCA@,$ALLOCA,;t t
11976 s,@LIBOBJS@,$LIBOBJS,;t t
11977 s,@POW_LIB@,$POW_LIB,;t t
11978 s,@FGIS_CONFIG@,$FGIS_CONFIG,;t t
11979 s,@FGIS_LIBDIR@,$FGIS_LIBDIR,;t t
11980 s,@FGIS_SCRIPTS@,$FGIS_SCRIPTS,;t t
11981 s,@LIBEPP@,$LIBEPP,;t t
11982 s,@TCLHDIR@,$TCLHDIR,;t t
11983 s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
11984 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
11985 s,@TCL_DEFS@,$TCL_DEFS,;t t
11986 s,@TCL_DELETEME@,$TCL_DELETEME,;t t
11987 s,@TCL_DBGX@,$TCL_DBGX,;t t
11988 s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
11989 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
11990 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
11991 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
11992 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
11993 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
11994 s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
11995 s,@TCL_INC_DIR@,$TCL_INC_DIR,;t t
11996 s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
11997 s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
11998 s,@TK_VERSION@,$TK_VERSION,;t t
11999 s,@TK_DEFS@,$TK_DEFS,;t t
12000 s,@TK_DBGX@,$TK_DBGX,;t t
12001 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
12002 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
12003 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
12004 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
12005 s,@TK_INC_DIR@,$TK_INC_DIR,;t t
12006 CEOF
12007
12008 _ACEOF
12009
12010   cat >>$CONFIG_STATUS <<\_ACEOF
12011   # Split the substitutions into bite-sized pieces for seds with
12012   # small command number limits, like on Digital OSF/1 and HP-UX.
12013   ac_max_sed_lines=48
12014   ac_sed_frag=1 # Number of current file.
12015   ac_beg=1 # First line for current file.
12016   ac_end=$ac_max_sed_lines # Line after last line for current file.
12017   ac_more_lines=:
12018   ac_sed_cmds=
12019   while $ac_more_lines; do
12020     if test $ac_beg -gt 1; then
12021       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12022     else
12023       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12024     fi
12025     if test ! -s $tmp/subs.frag; then
12026       ac_more_lines=false
12027     else
12028       # The purpose of the label and of the branching condition is to
12029       # speed up the sed processing (if there are no `@' at all, there
12030       # is no need to browse any of the substitutions).
12031       # These are the two extra sed commands mentioned above.
12032       (echo ':t
12033   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12034       if test -z "$ac_sed_cmds"; then
12035         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12036       else
12037         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12038       fi
12039       ac_sed_frag=`expr $ac_sed_frag + 1`
12040       ac_beg=$ac_end
12041       ac_end=`expr $ac_end + $ac_max_sed_lines`
12042     fi
12043   done
12044   if test -z "$ac_sed_cmds"; then
12045     ac_sed_cmds=cat
12046   fi
12047 fi # test -n "$CONFIG_FILES"
12048
12049 _ACEOF
12050 cat >>$CONFIG_STATUS <<\_ACEOF
12051 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12052   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12053   case $ac_file in
12054   - | *:- | *:-:* ) # input from stdin
12055         cat >$tmp/stdin
12056         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12057         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12058   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12059         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12060   * )   ac_file_in=$ac_file.in ;;
12061   esac
12062
12063   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12064   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12066          X"$ac_file" : 'X\(//\)[^/]' \| \
12067          X"$ac_file" : 'X\(//\)$' \| \
12068          X"$ac_file" : 'X\(/\)' \| \
12069          .     : '\(.\)' 2>/dev/null ||
12070 echo X"$ac_file" |
12071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12072           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12073           /^X\(\/\/\)$/{ s//\1/; q; }
12074           /^X\(\/\).*/{ s//\1/; q; }
12075           s/.*/./; q'`
12076   { case "$ac_dir" in
12077   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12078   *)                      as_incr_dir=.;;
12079 esac
12080 as_dummy="$ac_dir"
12081 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12082   case $as_mkdir_dir in
12083     # Skip DOS drivespec
12084     ?:) as_incr_dir=$as_mkdir_dir ;;
12085     *)
12086       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12087       test -d "$as_incr_dir" ||
12088         mkdir "$as_incr_dir" ||
12089         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12090 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12091    { (exit 1); exit 1; }; }
12092     ;;
12093   esac
12094 done; }
12095
12096   ac_builddir=.
12097
12098 if test "$ac_dir" != .; then
12099   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12100   # A "../" for each directory in $ac_dir_suffix.
12101   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12102 else
12103   ac_dir_suffix= ac_top_builddir=
12104 fi
12105
12106 case $srcdir in
12107   .)  # No --srcdir option.  We are building in place.
12108     ac_srcdir=.
12109     if test -z "$ac_top_builddir"; then
12110        ac_top_srcdir=.
12111     else
12112        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12113     fi ;;
12114   [\\/]* | ?:[\\/]* )  # Absolute path.
12115     ac_srcdir=$srcdir$ac_dir_suffix;
12116     ac_top_srcdir=$srcdir ;;
12117   *) # Relative path.
12118     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12119     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12120 esac
12121 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12122 # absolute.
12123 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12124 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12125 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12126 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12127
12128
12129   case $INSTALL in
12130   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12131   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12132   esac
12133
12134   if test x"$ac_file" != x-; then
12135     { echo "$as_me:$LINENO: creating $ac_file" >&5
12136 echo "$as_me: creating $ac_file" >&6;}
12137     rm -f "$ac_file"
12138   fi
12139   # Let's still pretend it is `configure' which instantiates (i.e., don't
12140   # use $as_me), people would be surprised to read:
12141   #    /* config.h.  Generated by config.status.  */
12142   if test x"$ac_file" = x-; then
12143     configure_input=
12144   else
12145     configure_input="$ac_file.  "
12146   fi
12147   configure_input=$configure_input"Generated from `echo $ac_file_in |
12148                                      sed 's,.*/,,'` by configure."
12149
12150   # First look for the input files in the build tree, otherwise in the
12151   # src tree.
12152   ac_file_inputs=`IFS=:
12153     for f in $ac_file_in; do
12154       case $f in
12155       -) echo $tmp/stdin ;;
12156       [\\/$]*)
12157          # Absolute (can't be DOS-style, as IFS=:)
12158          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12159 echo "$as_me: error: cannot find input file: $f" >&2;}
12160    { (exit 1); exit 1; }; }
12161          echo $f;;
12162       *) # Relative
12163          if test -f "$f"; then
12164            # Build tree
12165            echo $f
12166          elif test -f "$srcdir/$f"; then
12167            # Source tree
12168            echo $srcdir/$f
12169          else
12170            # /dev/null tree
12171            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12172 echo "$as_me: error: cannot find input file: $f" >&2;}
12173    { (exit 1); exit 1; }; }
12174          fi;;
12175       esac
12176     done` || { (exit 1); exit 1; }
12177 _ACEOF
12178 cat >>$CONFIG_STATUS <<_ACEOF
12179   sed "$ac_vpsub
12180 $extrasub
12181 _ACEOF
12182 cat >>$CONFIG_STATUS <<\_ACEOF
12183 :t
12184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12185 s,@configure_input@,$configure_input,;t t
12186 s,@srcdir@,$ac_srcdir,;t t
12187 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12188 s,@top_srcdir@,$ac_top_srcdir,;t t
12189 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12190 s,@builddir@,$ac_builddir,;t t
12191 s,@abs_builddir@,$ac_abs_builddir,;t t
12192 s,@top_builddir@,$ac_top_builddir,;t t
12193 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12194 s,@INSTALL@,$ac_INSTALL,;t t
12195 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12196   rm -f $tmp/stdin
12197   if test x"$ac_file" != x-; then
12198     mv $tmp/out $ac_file
12199   else
12200     cat $tmp/out
12201     rm -f $tmp/out
12202   fi
12203
12204 done
12205 _ACEOF
12206 cat >>$CONFIG_STATUS <<\_ACEOF
12207
12208 #
12209 # CONFIG_HEADER section.
12210 #
12211
12212 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12213 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12214 #
12215 # ac_d sets the value in "#define NAME VALUE" lines.
12216 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12217 ac_dB='[        ].*$,\1#\2'
12218 ac_dC=' '
12219 ac_dD=',;t'
12220 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12221 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12222 ac_uB='$,\1#\2define\3'
12223 ac_uC=' '
12224 ac_uD=',;t'
12225
12226 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12227   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12228   case $ac_file in
12229   - | *:- | *:-:* ) # input from stdin
12230         cat >$tmp/stdin
12231         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12232         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12233   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12234         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12235   * )   ac_file_in=$ac_file.in ;;
12236   esac
12237
12238   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12239 echo "$as_me: creating $ac_file" >&6;}
12240
12241   # First look for the input files in the build tree, otherwise in the
12242   # src tree.
12243   ac_file_inputs=`IFS=:
12244     for f in $ac_file_in; do
12245       case $f in
12246       -) echo $tmp/stdin ;;
12247       [\\/$]*)
12248          # Absolute (can't be DOS-style, as IFS=:)
12249          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12250 echo "$as_me: error: cannot find input file: $f" >&2;}
12251    { (exit 1); exit 1; }; }
12252          echo $f;;
12253       *) # Relative
12254          if test -f "$f"; then
12255            # Build tree
12256            echo $f
12257          elif test -f "$srcdir/$f"; then
12258            # Source tree
12259            echo $srcdir/$f
12260          else
12261            # /dev/null tree
12262            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12263 echo "$as_me: error: cannot find input file: $f" >&2;}
12264    { (exit 1); exit 1; }; }
12265          fi;;
12266       esac
12267     done` || { (exit 1); exit 1; }
12268   # Remove the trailing spaces.
12269   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12270
12271 _ACEOF
12272
12273 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12274 # `conftest.undefs', that substitutes the proper values into
12275 # config.h.in to produce config.h.  The first handles `#define'
12276 # templates, and the second `#undef' templates.
12277 # And first: Protect against being on the right side of a sed subst in
12278 # config.status.  Protect against being in an unquoted here document
12279 # in config.status.
12280 rm -f conftest.defines conftest.undefs
12281 # Using a here document instead of a string reduces the quoting nightmare.
12282 # Putting comments in sed scripts is not portable.
12283 #
12284 # `end' is used to avoid that the second main sed command (meant for
12285 # 0-ary CPP macros) applies to n-ary macro definitions.
12286 # See the Autoconf documentation for `clear'.
12287 cat >confdef2sed.sed <<\_ACEOF
12288 s/[\\&,]/\\&/g
12289 s,[\\$`],\\&,g
12290 t clear
12291 : clear
12292 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12293 t end
12294 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12295 : end
12296 _ACEOF
12297 # If some macros were called several times there might be several times
12298 # the same #defines, which is useless.  Nevertheless, we may not want to
12299 # sort them, since we want the *last* AC-DEFINE to be honored.
12300 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12301 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12302 rm -f confdef2sed.sed
12303
12304 # This sed command replaces #undef with comments.  This is necessary, for
12305 # example, in the case of _POSIX_SOURCE, which is predefined and required
12306 # on some systems where configure will not decide to define it.
12307 cat >>conftest.undefs <<\_ACEOF
12308 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12309 _ACEOF
12310
12311 # Break up conftest.defines because some shells have a limit on the size
12312 # of here documents, and old seds have small limits too (100 cmds).
12313 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12314 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12315 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12316 echo '  :' >>$CONFIG_STATUS
12317 rm -f conftest.tail
12318 while grep . conftest.defines >/dev/null
12319 do
12320   # Write a limited-size here document to $tmp/defines.sed.
12321   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12322   # Speed up: don't consider the non `#define' lines.
12323   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12324   # Work around the forget-to-reset-the-flag bug.
12325   echo 't clr' >>$CONFIG_STATUS
12326   echo ': clr' >>$CONFIG_STATUS
12327   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12328   echo 'CEOF
12329   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12330   rm -f $tmp/in
12331   mv $tmp/out $tmp/in
12332 ' >>$CONFIG_STATUS
12333   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12334   rm -f conftest.defines
12335   mv conftest.tail conftest.defines
12336 done
12337 rm -f conftest.defines
12338 echo '  fi # egrep' >>$CONFIG_STATUS
12339 echo >>$CONFIG_STATUS
12340
12341 # Break up conftest.undefs because some shells have a limit on the size
12342 # of here documents, and old seds have small limits too (100 cmds).
12343 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12344 rm -f conftest.tail
12345 while grep . conftest.undefs >/dev/null
12346 do
12347   # Write a limited-size here document to $tmp/undefs.sed.
12348   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12349   # Speed up: don't consider the non `#undef'
12350   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12351   # Work around the forget-to-reset-the-flag bug.
12352   echo 't clr' >>$CONFIG_STATUS
12353   echo ': clr' >>$CONFIG_STATUS
12354   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12355   echo 'CEOF
12356   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12357   rm -f $tmp/in
12358   mv $tmp/out $tmp/in
12359 ' >>$CONFIG_STATUS
12360   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12361   rm -f conftest.undefs
12362   mv conftest.tail conftest.undefs
12363 done
12364 rm -f conftest.undefs
12365
12366 cat >>$CONFIG_STATUS <<\_ACEOF
12367   # Let's still pretend it is `configure' which instantiates (i.e., don't
12368   # use $as_me), people would be surprised to read:
12369   #    /* config.h.  Generated by config.status.  */
12370   if test x"$ac_file" = x-; then
12371     echo "/* Generated by configure.  */" >$tmp/config.h
12372   else
12373     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12374   fi
12375   cat $tmp/in >>$tmp/config.h
12376   rm -f $tmp/in
12377   if test x"$ac_file" != x-; then
12378     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12379       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12380 echo "$as_me: $ac_file is unchanged" >&6;}
12381     else
12382       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12384          X"$ac_file" : 'X\(//\)[^/]' \| \
12385          X"$ac_file" : 'X\(//\)$' \| \
12386          X"$ac_file" : 'X\(/\)' \| \
12387          .     : '\(.\)' 2>/dev/null ||
12388 echo X"$ac_file" |
12389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12390           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12391           /^X\(\/\/\)$/{ s//\1/; q; }
12392           /^X\(\/\).*/{ s//\1/; q; }
12393           s/.*/./; q'`
12394       { case "$ac_dir" in
12395   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12396   *)                      as_incr_dir=.;;
12397 esac
12398 as_dummy="$ac_dir"
12399 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12400   case $as_mkdir_dir in
12401     # Skip DOS drivespec
12402     ?:) as_incr_dir=$as_mkdir_dir ;;
12403     *)
12404       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12405       test -d "$as_incr_dir" ||
12406         mkdir "$as_incr_dir" ||
12407         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12408 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12409    { (exit 1); exit 1; }; }
12410     ;;
12411   esac
12412 done; }
12413
12414       rm -f $ac_file
12415       mv $tmp/config.h $ac_file
12416     fi
12417   else
12418     cat $tmp/config.h
12419     rm -f $tmp/config.h
12420   fi
12421   # Run the commands associated with the file.
12422   case $ac_file in
12423     include/config.h ) # update the timestamp
12424 echo 'timestamp for include/config.h' >"include/stamp-h1"
12425  ;;
12426   esac
12427 done
12428 _ACEOF
12429 cat >>$CONFIG_STATUS <<\_ACEOF
12430
12431 #
12432 # CONFIG_COMMANDS section.
12433 #
12434 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12435   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12436   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12437   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12438 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12439          X"$ac_dest" : 'X\(//\)[^/]' \| \
12440          X"$ac_dest" : 'X\(//\)$' \| \
12441          X"$ac_dest" : 'X\(/\)' \| \
12442          .     : '\(.\)' 2>/dev/null ||
12443 echo X"$ac_dest" |
12444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12446           /^X\(\/\/\)$/{ s//\1/; q; }
12447           /^X\(\/\).*/{ s//\1/; q; }
12448           s/.*/./; q'`
12449   ac_builddir=.
12450
12451 if test "$ac_dir" != .; then
12452   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12453   # A "../" for each directory in $ac_dir_suffix.
12454   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12455 else
12456   ac_dir_suffix= ac_top_builddir=
12457 fi
12458
12459 case $srcdir in
12460   .)  # No --srcdir option.  We are building in place.
12461     ac_srcdir=.
12462     if test -z "$ac_top_builddir"; then
12463        ac_top_srcdir=.
12464     else
12465        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12466     fi ;;
12467   [\\/]* | ?:[\\/]* )  # Absolute path.
12468     ac_srcdir=$srcdir$ac_dir_suffix;
12469     ac_top_srcdir=$srcdir ;;
12470   *) # Relative path.
12471     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12472     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12473 esac
12474 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12475 # absolute.
12476 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12477 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12478 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12479 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12480
12481
12482   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12483 echo "$as_me: executing $ac_dest commands" >&6;}
12484   case $ac_dest in
12485     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12486   # Strip MF so we end up with the name of the file.
12487   mf=`echo "$mf" | sed -e 's/:.*$//'`
12488   # Check whether this is an Automake generated Makefile or not.
12489   # We used to match only the files named `Makefile.in', but
12490   # some people rename them; so instead we look at the file content.
12491   # Grep'ing the first line is not enough: some people post-process
12492   # each Makefile.in and add a new line on top of each file to say so.
12493   # So let's grep whole file.
12494   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12495     dirpart=`(dirname "$mf") 2>/dev/null ||
12496 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12497          X"$mf" : 'X\(//\)[^/]' \| \
12498          X"$mf" : 'X\(//\)$' \| \
12499          X"$mf" : 'X\(/\)' \| \
12500          .     : '\(.\)' 2>/dev/null ||
12501 echo X"$mf" |
12502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12503           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12504           /^X\(\/\/\)$/{ s//\1/; q; }
12505           /^X\(\/\).*/{ s//\1/; q; }
12506           s/.*/./; q'`
12507   else
12508     continue
12509   fi
12510   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12511   # Extract the definition of DEP_FILES from the Makefile without
12512   # running `make'.
12513   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12514   test -z "$DEPDIR" && continue
12515   # When using ansi2knr, U may be empty or an underscore; expand it
12516   U=`sed -n -e '/^U = / s///p' < "$mf"`
12517   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12518   # We invoke sed twice because it is the simplest approach to
12519   # changing $(DEPDIR) to its actual value in the expansion.
12520   for file in `sed -n -e '
12521     /^DEP_FILES = .*\\\\$/ {
12522       s/^DEP_FILES = //
12523       :loop
12524         s/\\\\$//
12525         p
12526         n
12527         /\\\\$/ b loop
12528       p
12529     }
12530     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12531        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12532     # Make sure the directory exists.
12533     test -f "$dirpart/$file" && continue
12534     fdir=`(dirname "$file") 2>/dev/null ||
12535 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12536          X"$file" : 'X\(//\)[^/]' \| \
12537          X"$file" : 'X\(//\)$' \| \
12538          X"$file" : 'X\(/\)' \| \
12539          .     : '\(.\)' 2>/dev/null ||
12540 echo X"$file" |
12541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12542           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12543           /^X\(\/\/\)$/{ s//\1/; q; }
12544           /^X\(\/\).*/{ s//\1/; q; }
12545           s/.*/./; q'`
12546     { case $dirpart/$fdir in
12547   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12548   *)                      as_incr_dir=.;;
12549 esac
12550 as_dummy=$dirpart/$fdir
12551 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12552   case $as_mkdir_dir in
12553     # Skip DOS drivespec
12554     ?:) as_incr_dir=$as_mkdir_dir ;;
12555     *)
12556       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12557       test -d "$as_incr_dir" ||
12558         mkdir "$as_incr_dir" ||
12559         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
12560 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
12561    { (exit 1); exit 1; }; }
12562     ;;
12563   esac
12564 done; }
12565
12566     # echo "creating $dirpart/$file"
12567     echo '# dummy' > "$dirpart/$file"
12568   done
12569 done
12570  ;;
12571   esac
12572 done
12573 _ACEOF
12574
12575 cat >>$CONFIG_STATUS <<\_ACEOF
12576
12577 { (exit 0); exit 0; }
12578 _ACEOF
12579 chmod +x $CONFIG_STATUS
12580 ac_clean_files=$ac_clean_files_save
12581
12582
12583 # configure is writing to config.log, and then calls config.status.
12584 # config.status does its own redirection, appending to config.log.
12585 # Unfortunately, on DOS this fails, as config.log is still kept open
12586 # by configure, so config.status won't be able to write to it; its
12587 # output is simply discarded.  So we exec the FD to /dev/null,
12588 # effectively closing config.log, so it can be properly (re)opened and
12589 # appended to by config.status.  When coming back to configure, we
12590 # need to make the FD available again.
12591 if test "$no_create" != yes; then
12592   ac_cs_success=:
12593   exec 5>/dev/null
12594   $SHELL $CONFIG_STATUS || ac_cs_success=false
12595   exec 5>>config.log
12596   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12597   # would make configure fail if this is the last instruction.
12598   $ac_cs_success || { (exit 1); exit 1; }
12599 fi
12600
12601