Regenerable files dropped from CVS
[middleman.git] / libntlm / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for libntlm 0.3.1.
4 #
5 # Report bugs to <bug-libntlm@josefsson.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
42 do
43   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
44     eval $as_var=C; export $as_var
45   else
46     $as_unset $as_var
47   fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52   as_expr=expr
53 else
54   as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58   as_basename=basename
59 else
60   as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67          X"$0" : 'X\(//\)$' \| \
68          X"$0" : 'X\(/\)$' \| \
69          .     : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72           /^X\/\(\/\/\)$/{ s//\1/; q; }
73           /^X\/\(\/\).*/{ s//\1/; q; }
74           s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87   echo "#! /bin/sh" >conftest.sh
88   echo  "exit 0"   >>conftest.sh
89   chmod +x conftest.sh
90   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
91     PATH_SEPARATOR=';'
92   else
93     PATH_SEPARATOR=:
94   fi
95   rm -f conftest.sh
96 fi
97
98
99   as_lineno_1=$LINENO
100   as_lineno_2=$LINENO
101   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102   test "x$as_lineno_1" != "x$as_lineno_2" &&
103   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
104   # Find who we are.  Look in the path if we contain no path at all
105   # relative or not.
106   case $0 in
107     *[\\/]* ) as_myself=$0 ;;
108     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111   IFS=$as_save_IFS
112   test -z "$as_dir" && as_dir=.
113   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116        ;;
117   esac
118   # We did not find ourselves, most probably we were run as `sh COMMAND'
119   # in which case we are not to be found in the path.
120   if test "x$as_myself" = x; then
121     as_myself=$0
122   fi
123   if test ! -f "$as_myself"; then
124     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125    { (exit 1); exit 1; }; }
126   fi
127   case $CONFIG_SHELL in
128   '')
129     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132   IFS=$as_save_IFS
133   test -z "$as_dir" && as_dir=.
134   for as_base in sh bash ksh sh5; do
135          case $as_dir in
136          /*)
137            if ("$as_dir/$as_base" -c '
138   as_lineno_1=$LINENO
139   as_lineno_2=$LINENO
140   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141   test "x$as_lineno_1" != "x$as_lineno_2" &&
142   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
143              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 if mkdir -p . 2>/dev/null; then
218   as_mkdir_p=:
219 else
220   as_mkdir_p=false
221 fi
222
223 as_executable_p="test -f"
224
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
227
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230
231
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
235 '
236 IFS="   $as_nl"
237
238 # CDPATH.
239 $as_unset CDPATH
240
241
242 # Find the correct PATH separator.  Usually this is `:', but
243 # DJGPP uses `;' like DOS.
244 if test "X${PATH_SEPARATOR+set}" != Xset; then
245   UNAME=${UNAME-`uname 2>/dev/null`}
246   case X$UNAME in
247     *-DOS) lt_cv_sys_path_separator=';' ;;
248     *)     lt_cv_sys_path_separator=':' ;;
249   esac
250   PATH_SEPARATOR=$lt_cv_sys_path_separator
251 fi
252
253
254 # Check that we are running under the correct shell.
255 SHELL=${CONFIG_SHELL-/bin/sh}
256
257 case X$ECHO in
258 X*--fallback-echo)
259   # Remove one level of quotation (which was required for Make).
260   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261   ;;
262 esac
263
264 echo=${ECHO-echo}
265 if test "X$1" = X--no-reexec; then
266   # Discard the --no-reexec flag, and continue.
267   shift
268 elif test "X$1" = X--fallback-echo; then
269   # Avoid inline document here, it may be left over
270   :
271 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
272   # Yippee, $echo works!
273   :
274 else
275   # Restart under the correct shell.
276   exec $SHELL "$0" --no-reexec ${1+"$@"}
277 fi
278
279 if test "X$1" = X--fallback-echo; then
280   # used as fallback echo
281   shift
282   cat <<EOF
283
284 EOF
285   exit 0
286 fi
287
288 # The HP-UX ksh and POSIX shell print the target directory to stdout
289 # if CDPATH is set.
290 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
291
292 if test -z "$ECHO"; then
293 if test "X${echo_test_string+set}" != Xset; then
294 # find a string as large as possible, as long as the shell can cope with it
295   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
298        echo_test_string="`eval $cmd`" &&
299        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300     then
301       break
302     fi
303   done
304 fi
305
306 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308    test "X$echo_testing_string" = "X$echo_test_string"; then
309   :
310 else
311   # The Solaris, AIX, and Digital Unix default echo programs unquote
312   # backslashes.  This makes it impossible to quote backslashes using
313   #   echo "$something" | sed 's/\\/\\\\/g'
314   #
315   # So, first we look for a working echo in the user's PATH.
316
317   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318   for dir in $PATH /usr/ucb; do
319     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322        test "X$echo_testing_string" = "X$echo_test_string"; then
323       echo="$dir/echo"
324       break
325     fi
326   done
327   IFS="$save_ifs"
328
329   if test "X$echo" = Xecho; then
330     # We didn't find a better echo, so look for alternatives.
331     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333        test "X$echo_testing_string" = "X$echo_test_string"; then
334       # This shell has a builtin print -r that does the trick.
335       echo='print -r'
336     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337          test "X$CONFIG_SHELL" != X/bin/ksh; then
338       # If we have ksh, try running configure again with it.
339       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340       export ORIGINAL_CONFIG_SHELL
341       CONFIG_SHELL=/bin/ksh
342       export CONFIG_SHELL
343       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344     else
345       # Try using printf.
346       echo='printf %s\n'
347       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349          test "X$echo_testing_string" = "X$echo_test_string"; then
350         # Cool, printf works
351         :
352       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353            test "X$echo_testing_string" = 'X\t' &&
354            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355            test "X$echo_testing_string" = "X$echo_test_string"; then
356         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357         export CONFIG_SHELL
358         SHELL="$CONFIG_SHELL"
359         export SHELL
360         echo="$CONFIG_SHELL $0 --fallback-echo"
361       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362            test "X$echo_testing_string" = 'X\t' &&
363            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364            test "X$echo_testing_string" = "X$echo_test_string"; then
365         echo="$CONFIG_SHELL $0 --fallback-echo"
366       else
367         # maybe with a smaller string...
368         prev=:
369
370         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372           then
373             break
374           fi
375           prev="$cmd"
376         done
377
378         if test "$prev" != 'sed 50q "$0"'; then
379           echo_test_string=`eval $prev`
380           export echo_test_string
381           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382         else
383           # Oops.  We lost completely, so just stick with echo.
384           echo=echo
385         fi
386       fi
387     fi
388   fi
389 fi
390 fi
391
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
394 ECHO=$echo
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 fi
398
399
400
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete.  It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
423
424 # Identity of this package.
425 PACKAGE_NAME='libntlm'
426 PACKAGE_TARNAME='libntlm'
427 PACKAGE_VERSION='0.3.1'
428 PACKAGE_STRING='libntlm 0.3.1'
429 PACKAGE_BUGREPORT='bug-libntlm@josefsson.org'
430
431 ac_unique_file="ntlm.h.in"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LT_CURRENT LT_AGE LT_REVISION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938
939 #
940 # Report the --help message.
941 #
942 if test "$ac_init_help" = "long"; then
943   # Omit some internal or obsolete options to make the list less imposing.
944   # This message is too long to be a string in the A/UX 3.1 sh.
945   cat <<_ACEOF
946 \`configure' configures libntlm 0.3.1 to adapt to many kinds of systems.
947
948 Usage: $0 [OPTION]... [VAR=VALUE]...
949
950 To assign environment variables (e.g., CC, CFLAGS...), specify them as
951 VAR=VALUE.  See below for descriptions of some of the useful variables.
952
953 Defaults for the options are specified in brackets.
954
955 Configuration:
956   -h, --help              display this help and exit
957       --help=short        display options specific to this package
958       --help=recursive    display the short help of all the included packages
959   -V, --version           display version information and exit
960   -q, --quiet, --silent   do not print \`checking...' messages
961       --cache-file=FILE   cache test results in FILE [disabled]
962   -C, --config-cache      alias for \`--cache-file=config.cache'
963   -n, --no-create         do not create output files
964       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
965
966 _ACEOF
967
968   cat <<_ACEOF
969 Installation directories:
970   --prefix=PREFIX         install architecture-independent files in PREFIX
971                           [$ac_default_prefix]
972   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
973                           [PREFIX]
974
975 By default, \`make install' will install all the files in
976 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
977 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
978 for instance \`--prefix=\$HOME'.
979
980 For better control, use the options below.
981
982 Fine tuning of the installation directories:
983   --bindir=DIR           user executables [EPREFIX/bin]
984   --sbindir=DIR          system admin executables [EPREFIX/sbin]
985   --libexecdir=DIR       program executables [EPREFIX/libexec]
986   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
987   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
988   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
989   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
990   --libdir=DIR           object code libraries [EPREFIX/lib]
991   --includedir=DIR       C header files [PREFIX/include]
992   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
993   --infodir=DIR          info documentation [PREFIX/info]
994   --mandir=DIR           man documentation [PREFIX/man]
995 _ACEOF
996
997   cat <<\_ACEOF
998
999 Program names:
1000   --program-prefix=PREFIX            prepend PREFIX to installed program names
1001   --program-suffix=SUFFIX            append SUFFIX to installed program names
1002   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1003
1004 System types:
1005   --build=BUILD     configure for building on BUILD [guessed]
1006   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1007 _ACEOF
1008 fi
1009
1010 if test -n "$ac_init_help"; then
1011   case $ac_init_help in
1012      short | recursive ) echo "Configuration of libntlm 0.3.1:";;
1013    esac
1014   cat <<\_ACEOF
1015
1016 Optional Features:
1017   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1018   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1019   --enable-shared=PKGS  build shared libraries default=yes
1020   --enable-static=PKGS  build static libraries default=yes
1021   --enable-fast-install=PKGS  optimize for fast installation default=yes
1022   --disable-dependency-tracking Speeds up one-time builds
1023   --enable-dependency-tracking  Do not reject slow dependency extractors
1024   --disable-libtool-lock  avoid locking (might break parallel builds)
1025
1026 Optional Packages:
1027   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1028   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1029   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1030   --with-pic              try to use only PIC/non-PIC objects default=use both
1031
1032 Some influential environment variables:
1033   CC          C compiler command
1034   CFLAGS      C compiler flags
1035   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1036               nonstandard directory <lib dir>
1037   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038               headers in a nonstandard directory <include dir>
1039   CPP         C preprocessor
1040   CXX         C++ compiler command
1041   CXXFLAGS    C++ compiler flags
1042
1043 Use these variables to override the choices made by `configure' or to help
1044 it to find libraries and programs with nonstandard names/locations.
1045
1046 Report bugs to <bug-libntlm@josefsson.org>.
1047 _ACEOF
1048 fi
1049
1050 if test "$ac_init_help" = "recursive"; then
1051   # If there are subdirs, report their specific --help.
1052   ac_popdir=`pwd`
1053   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054     test -d $ac_dir || continue
1055     ac_builddir=.
1056
1057 if test "$ac_dir" != .; then
1058   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059   # A "../" for each directory in $ac_dir_suffix.
1060   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061 else
1062   ac_dir_suffix= ac_top_builddir=
1063 fi
1064
1065 case $srcdir in
1066   .)  # No --srcdir option.  We are building in place.
1067     ac_srcdir=.
1068     if test -z "$ac_top_builddir"; then
1069        ac_top_srcdir=.
1070     else
1071        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072     fi ;;
1073   [\\/]* | ?:[\\/]* )  # Absolute path.
1074     ac_srcdir=$srcdir$ac_dir_suffix;
1075     ac_top_srcdir=$srcdir ;;
1076   *) # Relative path.
1077     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079 esac
1080 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1081 # absolute.
1082 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1083 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1084 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1085 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1086
1087     cd $ac_dir
1088     # Check for guested configure; otherwise get Cygnus style configure.
1089     if test -f $ac_srcdir/configure.gnu; then
1090       echo
1091       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1092     elif test -f $ac_srcdir/configure; then
1093       echo
1094       $SHELL $ac_srcdir/configure  --help=recursive
1095     elif test -f $ac_srcdir/configure.ac ||
1096            test -f $ac_srcdir/configure.in; then
1097       echo
1098       $ac_configure --help
1099     else
1100       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1101     fi
1102     cd $ac_popdir
1103   done
1104 fi
1105
1106 test -n "$ac_init_help" && exit 0
1107 if $ac_init_version; then
1108   cat <<\_ACEOF
1109 libntlm configure 0.3.1
1110 generated by GNU Autoconf 2.54
1111
1112 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1113 Free Software Foundation, Inc.
1114 This configure script is free software; the Free Software Foundation
1115 gives unlimited permission to copy, distribute and modify it.
1116 _ACEOF
1117   exit 0
1118 fi
1119 exec 5>config.log
1120 cat >&5 <<_ACEOF
1121 This file contains any messages produced by compilers while
1122 running configure, to aid debugging if configure makes a mistake.
1123
1124 It was created by libntlm $as_me 0.3.1, which was
1125 generated by GNU Autoconf 2.54.  Invocation command line was
1126
1127   $ $0 $@
1128
1129 _ACEOF
1130 {
1131 cat <<_ASUNAME
1132 ## --------- ##
1133 ## Platform. ##
1134 ## --------- ##
1135
1136 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1137 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1138 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1139 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1140 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141
1142 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1143 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1144
1145 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1146 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1147 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1148 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1149 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1150 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1151 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1152
1153 _ASUNAME
1154
1155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1156 for as_dir in $PATH
1157 do
1158   IFS=$as_save_IFS
1159   test -z "$as_dir" && as_dir=.
1160   echo "PATH: $as_dir"
1161 done
1162
1163 } >&5
1164
1165 cat >&5 <<_ACEOF
1166
1167
1168 ## ----------- ##
1169 ## Core tests. ##
1170 ## ----------- ##
1171
1172 _ACEOF
1173
1174
1175 # Keep a trace of the command line.
1176 # Strip out --no-create and --no-recursion so they do not pile up.
1177 # Also quote any args containing shell meta-characters.
1178 ac_configure_args=
1179 ac_sep=
1180 for ac_arg
1181 do
1182   case $ac_arg in
1183   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184   | --no-cr | --no-c | -n ) continue ;;
1185   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187     continue ;;
1188   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1189     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1190   esac
1191   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1192   # Get rid of the leading space.
1193   ac_sep=" "
1194 done
1195
1196 # When interrupted or exit'd, cleanup temporary files, and complete
1197 # config.log.  We remove comments because anyway the quotes in there
1198 # would cause problems or look ugly.
1199 # WARNING: Be sure not to use single quotes in there, as some shells,
1200 # such as our DU 5.0 friend, will then `close' the trap.
1201 trap 'exit_status=$?
1202   # Save into config.log some information that might help in debugging.
1203   {
1204     echo
1205
1206     cat <<\_ASBOX
1207 ## ---------------- ##
1208 ## Cache variables. ##
1209 ## ---------------- ##
1210 _ASBOX
1211     echo
1212     # The following way of writing the cache mishandles newlines in values,
1213 {
1214   (set) 2>&1 |
1215     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1216     *ac_space=\ *)
1217       sed -n \
1218         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1219           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1220       ;;
1221     *)
1222       sed -n \
1223         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1224       ;;
1225     esac;
1226 }
1227     echo
1228
1229     cat <<\_ASBOX
1230 ## ----------------- ##
1231 ## Output variables. ##
1232 ## ----------------- ##
1233 _ASBOX
1234     echo
1235     for ac_var in $ac_subst_vars
1236     do
1237       eval ac_val=$`echo $ac_var`
1238       echo "$ac_var='"'"'$ac_val'"'"'"
1239     done | sort
1240     echo
1241
1242     if test -n "$ac_subst_files"; then
1243       cat <<\_ASBOX
1244 ## ------------- ##
1245 ## Output files. ##
1246 ## ------------- ##
1247 _ASBOX
1248       echo
1249       for ac_var in $ac_subst_files
1250       do
1251         eval ac_val=$`echo $ac_var`
1252         echo "$ac_var='"'"'$ac_val'"'"'"
1253       done | sort
1254       echo
1255     fi
1256
1257     if test -s confdefs.h; then
1258       cat <<\_ASBOX
1259 ## ----------- ##
1260 ## confdefs.h. ##
1261 ## ----------- ##
1262 _ASBOX
1263       echo
1264       sed "/^$/d" confdefs.h | sort
1265       echo
1266     fi
1267     test "$ac_signal" != 0 &&
1268       echo "$as_me: caught signal $ac_signal"
1269     echo "$as_me: exit $exit_status"
1270   } >&5
1271   rm -f core core.* *.core &&
1272   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1273     exit $exit_status
1274      ' 0
1275 for ac_signal in 1 2 13 15; do
1276   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1277 done
1278 ac_signal=0
1279
1280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1281 rm -rf conftest* confdefs.h
1282 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1283 echo >confdefs.h
1284
1285 # Predefined preprocessor variables.
1286
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_NAME "$PACKAGE_NAME"
1289 _ACEOF
1290
1291
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1294 _ACEOF
1295
1296
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1299 _ACEOF
1300
1301
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_STRING "$PACKAGE_STRING"
1304 _ACEOF
1305
1306
1307 cat >>confdefs.h <<_ACEOF
1308 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1309 _ACEOF
1310
1311
1312 # Let the site file select an alternate cache file if it wants to.
1313 # Prefer explicitly selected file to automatically selected ones.
1314 if test -z "$CONFIG_SITE"; then
1315   if test "x$prefix" != xNONE; then
1316     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1317   else
1318     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1319   fi
1320 fi
1321 for ac_site_file in $CONFIG_SITE; do
1322   if test -r "$ac_site_file"; then
1323     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1324 echo "$as_me: loading site script $ac_site_file" >&6;}
1325     sed 's/^/| /' "$ac_site_file" >&5
1326     . "$ac_site_file"
1327   fi
1328 done
1329
1330 if test -r "$cache_file"; then
1331   # Some versions of bash will fail to source /dev/null (special
1332   # files actually), so we avoid doing that.
1333   if test -f "$cache_file"; then
1334     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1335 echo "$as_me: loading cache $cache_file" >&6;}
1336     case $cache_file in
1337       [\\/]* | ?:[\\/]* ) . $cache_file;;
1338       *)                      . ./$cache_file;;
1339     esac
1340   fi
1341 else
1342   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1343 echo "$as_me: creating cache $cache_file" >&6;}
1344   >$cache_file
1345 fi
1346
1347 # Check that the precious variables saved in the cache have kept the same
1348 # value.
1349 ac_cache_corrupted=false
1350 for ac_var in `(set) 2>&1 |
1351                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1352   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1353   eval ac_new_set=\$ac_env_${ac_var}_set
1354   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1355   eval ac_new_val="\$ac_env_${ac_var}_value"
1356   case $ac_old_set,$ac_new_set in
1357     set,)
1358       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1359 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1360       ac_cache_corrupted=: ;;
1361     ,set)
1362       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1363 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1364       ac_cache_corrupted=: ;;
1365     ,);;
1366     *)
1367       if test "x$ac_old_val" != "x$ac_new_val"; then
1368         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1369 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1370         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1371 echo "$as_me:   former value:  $ac_old_val" >&2;}
1372         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1373 echo "$as_me:   current value: $ac_new_val" >&2;}
1374         ac_cache_corrupted=:
1375       fi;;
1376   esac
1377   # Pass precious variables to config.status.
1378   if test "$ac_new_set" = set; then
1379     case $ac_new_val in
1380     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1381       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1382     *) ac_arg=$ac_var=$ac_new_val ;;
1383     esac
1384     case " $ac_configure_args " in
1385       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1386       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1387     esac
1388   fi
1389 done
1390 if $ac_cache_corrupted; then
1391   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1392 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1393   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1394 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1395    { (exit 1); exit 1; }; }
1396 fi
1397
1398 ac_ext=c
1399 ac_cpp='$CPP $CPPFLAGS'
1400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432 # Interfaces removed:    CURRENT++, AGE=0, REVISION=0
1433 # Interfaces added:      CURRENT++, AGE++, REVISION=0
1434 # No interfaces changed:                   REVISION++
1435 LT_CURRENT=0
1436 LT_AGE=0
1437 LT_REVISION=1
1438
1439
1440
1441
1442 am__api_version="1.7"
1443 ac_aux_dir=
1444 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1445   if test -f $ac_dir/install-sh; then
1446     ac_aux_dir=$ac_dir
1447     ac_install_sh="$ac_aux_dir/install-sh -c"
1448     break
1449   elif test -f $ac_dir/install.sh; then
1450     ac_aux_dir=$ac_dir
1451     ac_install_sh="$ac_aux_dir/install.sh -c"
1452     break
1453   elif test -f $ac_dir/shtool; then
1454     ac_aux_dir=$ac_dir
1455     ac_install_sh="$ac_aux_dir/shtool install -c"
1456     break
1457   fi
1458 done
1459 if test -z "$ac_aux_dir"; then
1460   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1461 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1462    { (exit 1); exit 1; }; }
1463 fi
1464 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1465 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1466 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1467
1468 # Find a good install program.  We prefer a C program (faster),
1469 # so one script is as good as another.  But avoid the broken or
1470 # incompatible versions:
1471 # SysV /etc/install, /usr/sbin/install
1472 # SunOS /usr/etc/install
1473 # IRIX /sbin/install
1474 # AIX /bin/install
1475 # AmigaOS /C/install, which installs bootblocks on floppy discs
1476 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1479 # ./install, which can be erroneously created by make from ./install.sh.
1480 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1481 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1482 if test -z "$INSTALL"; then
1483 if test "${ac_cv_path_install+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489   IFS=$as_save_IFS
1490   test -z "$as_dir" && as_dir=.
1491   # Account for people who put trailing slashes in PATH elements.
1492 case $as_dir/ in
1493   ./ | .// | /cC/* | \
1494   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1495   /usr/ucb/* ) ;;
1496   *)
1497     # OSF1 and SCO ODT 3.0 have their own names for install.
1498     # Don't use installbsd from OSF since it installs stuff as root
1499     # by default.
1500     for ac_prog in ginstall scoinst install; do
1501       for ac_exec_ext in '' $ac_executable_extensions; do
1502         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1503           if test $ac_prog = install &&
1504             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1505             # AIX install.  It has an incompatible calling convention.
1506             :
1507           elif test $ac_prog = install &&
1508             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1509             # program-specific install script used by HP pwplus--don't use.
1510             :
1511           else
1512             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1513             break 3
1514           fi
1515         fi
1516       done
1517     done
1518     ;;
1519 esac
1520 done
1521
1522
1523 fi
1524   if test "${ac_cv_path_install+set}" = set; then
1525     INSTALL=$ac_cv_path_install
1526   else
1527     # As a last resort, use the slow shell script.  We don't cache a
1528     # path for INSTALL within a source directory, because that will
1529     # break other packages using the cache if that directory is
1530     # removed, or if the path is relative.
1531     INSTALL=$ac_install_sh
1532   fi
1533 fi
1534 echo "$as_me:$LINENO: result: $INSTALL" >&5
1535 echo "${ECHO_T}$INSTALL" >&6
1536
1537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1538 # It thinks the first close brace ends the variable substitution.
1539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1540
1541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1542
1543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1544
1545 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1546 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1547 # Just in case
1548 sleep 1
1549 echo timestamp > conftest.file
1550 # Do `set' in a subshell so we don't clobber the current shell's
1551 # arguments.  Must try -L first in case configure is actually a
1552 # symlink; some systems play weird games with the mod time of symlinks
1553 # (eg FreeBSD returns the mod time of the symlink's containing
1554 # directory).
1555 if (
1556    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1557    if test "$*" = "X"; then
1558       # -L didn't work.
1559       set X `ls -t $srcdir/configure conftest.file`
1560    fi
1561    rm -f conftest.file
1562    if test "$*" != "X $srcdir/configure conftest.file" \
1563       && test "$*" != "X conftest.file $srcdir/configure"; then
1564
1565       # If neither matched, then we have a broken ls.  This can happen
1566       # if, for instance, CONFIG_SHELL is bash and it inherits a
1567       # broken ls alias from the environment.  This has actually
1568       # happened.  Such a system could not be considered "sane".
1569       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1570 alias in your environment" >&5
1571 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1572 alias in your environment" >&2;}
1573    { (exit 1); exit 1; }; }
1574    fi
1575
1576    test "$2" = conftest.file
1577    )
1578 then
1579    # Ok.
1580    :
1581 else
1582    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1583 Check your system clock" >&5
1584 echo "$as_me: error: newly created file is older than distributed files!
1585 Check your system clock" >&2;}
1586    { (exit 1); exit 1; }; }
1587 fi
1588 echo "$as_me:$LINENO: result: yes" >&5
1589 echo "${ECHO_T}yes" >&6
1590 test "$program_prefix" != NONE &&
1591   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1592 # Use a double $ so make ignores it.
1593 test "$program_suffix" != NONE &&
1594   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1595 # Double any \ or $.  echo might interpret backslashes.
1596 # By default was `s,x,x', remove it if useless.
1597 cat <<\_ACEOF >conftest.sed
1598 s/[\\$]/&&/g;s/;s,x,x,$//
1599 _ACEOF
1600 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1601 rm conftest.sed
1602
1603
1604 # expand $ac_aux_dir to an absolute path
1605 am_aux_dir=`cd $ac_aux_dir && pwd`
1606
1607 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1608 # Use eval to expand $SHELL
1609 if eval "$MISSING --run true"; then
1610   am_missing_run="$MISSING --run "
1611 else
1612   am_missing_run=
1613   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1614 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1615 fi
1616
1617 for ac_prog in gawk mawk nawk awk
1618 do
1619   # Extract the first word of "$ac_prog", so it can be a program name with args.
1620 set dummy $ac_prog; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_AWK+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   if test -n "$AWK"; then
1627   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   for ac_exec_ext in '' $ac_executable_extensions; do
1635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636     ac_cv_prog_AWK="$ac_prog"
1637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638     break 2
1639   fi
1640 done
1641 done
1642
1643 fi
1644 fi
1645 AWK=$ac_cv_prog_AWK
1646 if test -n "$AWK"; then
1647   echo "$as_me:$LINENO: result: $AWK" >&5
1648 echo "${ECHO_T}$AWK" >&6
1649 else
1650   echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654   test -n "$AWK" && break
1655 done
1656
1657 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1658 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1659 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1660 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   cat >conftest.make <<\_ACEOF
1664 all:
1665         @echo 'ac_maketemp="${MAKE}"'
1666 _ACEOF
1667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1668 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1669 if test -n "$ac_maketemp"; then
1670   eval ac_cv_prog_make_${ac_make}_set=yes
1671 else
1672   eval ac_cv_prog_make_${ac_make}_set=no
1673 fi
1674 rm -f conftest.make
1675 fi
1676 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1677   echo "$as_me:$LINENO: result: yes" >&5
1678 echo "${ECHO_T}yes" >&6
1679   SET_MAKE=
1680 else
1681   echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683   SET_MAKE="MAKE=${MAKE-make}"
1684 fi
1685
1686  # test to see if srcdir already configured
1687 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1688    test -f $srcdir/config.status; then
1689   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1690 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1691    { (exit 1); exit 1; }; }
1692 fi
1693
1694 # test whether we have cygpath
1695 if test -z "$CYGPATH_W"; then
1696   if (cygpath --version) >/dev/null 2>/dev/null; then
1697     CYGPATH_W='cygpath -w'
1698   else
1699     CYGPATH_W=echo
1700   fi
1701 fi
1702
1703
1704 # Define the identity of the package.
1705  PACKAGE=libntlm
1706  VERSION=0.3.1
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE "$PACKAGE"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define VERSION "$VERSION"
1716 _ACEOF
1717
1718 # Some tools Automake needs.
1719
1720 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1721
1722
1723 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1724
1725
1726 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1727
1728
1729 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1730
1731
1732 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1733
1734
1735 AMTAR=${AMTAR-"${am_missing_run}tar"}
1736
1737 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1738
1739 # Installed binaries are usually stripped using `strip' when the user
1740 # run `make install-strip'.  However `strip' might not be the right
1741 # tool to use in cross-compilation environments, therefore Automake
1742 # will honor the `STRIP' environment variable to overrule this program.
1743 if test "$cross_compiling" != no; then
1744   if test -n "$ac_tool_prefix"; then
1745   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1746 set dummy ${ac_tool_prefix}strip; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_STRIP+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$STRIP"; then
1753   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 STRIP=$ac_cv_prog_STRIP
1772 if test -n "$STRIP"; then
1773   echo "$as_me:$LINENO: result: $STRIP" >&5
1774 echo "${ECHO_T}$STRIP" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780 fi
1781 if test -z "$ac_cv_prog_STRIP"; then
1782   ac_ct_STRIP=$STRIP
1783   # Extract the first word of "strip", so it can be a program name with args.
1784 set dummy strip; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_STRIP"; then
1791   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_STRIP="strip"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1808 fi
1809 fi
1810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1811 if test -n "$ac_ct_STRIP"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1813 echo "${ECHO_T}$ac_ct_STRIP" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   STRIP=$ac_ct_STRIP
1820 else
1821   STRIP="$ac_cv_prog_STRIP"
1822 fi
1823
1824 fi
1825 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1826
1827 # We need awk for the "check" target.  The system "awk" is bad on
1828 # some platforms.
1829
1830
1831
1832           ac_config_headers="$ac_config_headers config.h"
1833
1834
1835 # Checks for programs.
1836 # Check whether --enable-shared or --disable-shared was given.
1837 if test "${enable_shared+set}" = set; then
1838   enableval="$enable_shared"
1839   p=${PACKAGE-default}
1840 case $enableval in
1841 yes) enable_shared=yes ;;
1842 no) enable_shared=no ;;
1843 *)
1844   enable_shared=no
1845   # Look at the argument we got.  We use all the common list separators.
1846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1847   for pkg in $enableval; do
1848     if test "X$pkg" = "X$p"; then
1849       enable_shared=yes
1850     fi
1851   done
1852   IFS="$ac_save_ifs"
1853   ;;
1854 esac
1855 else
1856   enable_shared=yes
1857 fi;
1858 # Check whether --enable-static or --disable-static was given.
1859 if test "${enable_static+set}" = set; then
1860   enableval="$enable_static"
1861   p=${PACKAGE-default}
1862 case $enableval in
1863 yes) enable_static=yes ;;
1864 no) enable_static=no ;;
1865 *)
1866   enable_static=no
1867   # Look at the argument we got.  We use all the common list separators.
1868   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1869   for pkg in $enableval; do
1870     if test "X$pkg" = "X$p"; then
1871       enable_static=yes
1872     fi
1873   done
1874   IFS="$ac_save_ifs"
1875   ;;
1876 esac
1877 else
1878   enable_static=yes
1879 fi;
1880 # Check whether --enable-fast-install or --disable-fast-install was given.
1881 if test "${enable_fast_install+set}" = set; then
1882   enableval="$enable_fast_install"
1883   p=${PACKAGE-default}
1884 case $enableval in
1885 yes) enable_fast_install=yes ;;
1886 no) enable_fast_install=no ;;
1887 *)
1888   enable_fast_install=no
1889   # Look at the argument we got.  We use all the common list separators.
1890   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1891   for pkg in $enableval; do
1892     if test "X$pkg" = "X$p"; then
1893       enable_fast_install=yes
1894     fi
1895   done
1896   IFS="$ac_save_ifs"
1897   ;;
1898 esac
1899 else
1900   enable_fast_install=yes
1901 fi;
1902 # Make sure we can run config.sub.
1903 $ac_config_sub sun4 >/dev/null 2>&1 ||
1904   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1905 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1906    { (exit 1); exit 1; }; }
1907
1908 echo "$as_me:$LINENO: checking build system type" >&5
1909 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1910 if test "${ac_cv_build+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   ac_cv_build_alias=$build_alias
1914 test -z "$ac_cv_build_alias" &&
1915   ac_cv_build_alias=`$ac_config_guess`
1916 test -z "$ac_cv_build_alias" &&
1917   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1918 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1919    { (exit 1); exit 1; }; }
1920 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1921   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1922 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1923    { (exit 1); exit 1; }; }
1924
1925 fi
1926 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1927 echo "${ECHO_T}$ac_cv_build" >&6
1928 build=$ac_cv_build
1929 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1930 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1931 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1932
1933
1934 echo "$as_me:$LINENO: checking host system type" >&5
1935 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1936 if test "${ac_cv_host+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   ac_cv_host_alias=$host_alias
1940 test -z "$ac_cv_host_alias" &&
1941   ac_cv_host_alias=$ac_cv_build_alias
1942 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1943   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1944 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1945    { (exit 1); exit 1; }; }
1946
1947 fi
1948 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1949 echo "${ECHO_T}$ac_cv_host" >&6
1950 host=$ac_cv_host
1951 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1952 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1953 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1954
1955
1956 rm -f .deps 2>/dev/null
1957 mkdir .deps 2>/dev/null
1958 if test -d .deps; then
1959   DEPDIR=.deps
1960 else
1961   # MS-DOS does not allow filenames that begin with a dot.
1962   DEPDIR=_deps
1963 fi
1964 rmdir .deps 2>/dev/null
1965
1966
1967           ac_config_commands="$ac_config_commands depfiles"
1968
1969
1970 am_make=${MAKE-make}
1971 cat > confinc << 'END'
1972 doit:
1973         @echo done
1974 END
1975 # If we don't find an include directive, just comment out the code.
1976 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1977 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1978 am__include="#"
1979 am__quote=
1980 _am_result=none
1981 # First try GNU make style include.
1982 echo "include confinc" > confmf
1983 # We grep out `Entering directory' and `Leaving directory'
1984 # messages which can occur if `w' ends up in MAKEFLAGS.
1985 # In particular we don't look at `^make:' because GNU make might
1986 # be invoked under some other name (usually "gmake"), in which
1987 # case it prints its new name instead of `make'.
1988 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1989    am__include=include
1990    am__quote=
1991    _am_result=GNU
1992 fi
1993 # Now try BSD make style include.
1994 if test "$am__include" = "#"; then
1995    echo '.include "confinc"' > confmf
1996    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1997       am__include=.include
1998       am__quote="\""
1999       _am_result=BSD
2000    fi
2001 fi
2002
2003
2004 echo "$as_me:$LINENO: result: $_am_result" >&5
2005 echo "${ECHO_T}$_am_result" >&6
2006 rm -f confinc confmf
2007
2008 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2009 if test "${enable_dependency_tracking+set}" = set; then
2010   enableval="$enable_dependency_tracking"
2011
2012 fi;
2013 if test "x$enable_dependency_tracking" != xno; then
2014   am_depcomp="$ac_aux_dir/depcomp"
2015   AMDEPBACKSLASH='\'
2016 fi
2017
2018
2019 if test "x$enable_dependency_tracking" != xno; then
2020   AMDEP_TRUE=
2021   AMDEP_FALSE='#'
2022 else
2023   AMDEP_TRUE='#'
2024   AMDEP_FALSE=
2025 fi
2026
2027
2028
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$CC"; then
2043   ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058
2059 fi
2060 fi
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063   echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2065 else
2066   echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2068 fi
2069
2070 fi
2071 if test -z "$ac_cv_prog_CC"; then
2072   ac_ct_CC=$CC
2073   # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$ac_ct_CC"; then
2081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090     ac_cv_prog_ac_ct_CC="gcc"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096
2097 fi
2098 fi
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2103 else
2104   echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2106 fi
2107
2108   CC=$ac_ct_CC
2109 else
2110   CC="$ac_cv_prog_CC"
2111 fi
2112
2113 if test -z "$CC"; then
2114   if test -n "$ac_tool_prefix"; then
2115   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}cc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_CC+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   if test -n "$CC"; then
2123   ac_cv_prog_CC="$CC" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130   for ac_exec_ext in '' $ac_executable_extensions; do
2131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132     ac_cv_prog_CC="${ac_tool_prefix}cc"
2133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134     break 2
2135   fi
2136 done
2137 done
2138
2139 fi
2140 fi
2141 CC=$ac_cv_prog_CC
2142 if test -n "$CC"; then
2143   echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2145 else
2146   echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2148 fi
2149
2150 fi
2151 if test -z "$ac_cv_prog_CC"; then
2152   ac_ct_CC=$CC
2153   # Extract the first word of "cc", so it can be a program name with args.
2154 set dummy cc; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   if test -n "$ac_ct_CC"; then
2161   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166   IFS=$as_save_IFS
2167   test -z "$as_dir" && as_dir=.
2168   for ac_exec_ext in '' $ac_executable_extensions; do
2169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170     ac_cv_prog_ac_ct_CC="cc"
2171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175 done
2176
2177 fi
2178 fi
2179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180 if test -n "$ac_ct_CC"; then
2181   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182 echo "${ECHO_T}$ac_ct_CC" >&6
2183 else
2184   echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2186 fi
2187
2188   CC=$ac_ct_CC
2189 else
2190   CC="$ac_cv_prog_CC"
2191 fi
2192
2193 fi
2194 if test -z "$CC"; then
2195   # Extract the first word of "cc", so it can be a program name with args.
2196 set dummy cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$CC"; then
2203   ac_cv_prog_CC="$CC" # Let the user override the test.
2204 else
2205   ac_prog_rejected=no
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209   IFS=$as_save_IFS
2210   test -z "$as_dir" && as_dir=.
2211   for ac_exec_ext in '' $ac_executable_extensions; do
2212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2214        ac_prog_rejected=yes
2215        continue
2216      fi
2217     ac_cv_prog_CC="cc"
2218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219     break 2
2220   fi
2221 done
2222 done
2223
2224 if test $ac_prog_rejected = yes; then
2225   # We found a bogon in the path, so make sure we never use it.
2226   set dummy $ac_cv_prog_CC
2227   shift
2228   if test $# != 0; then
2229     # We chose a different compiler from the bogus one.
2230     # However, it has the same basename, so the bogon will be chosen
2231     # first if we set CC to just the basename; use the full file name.
2232     shift
2233     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2234   fi
2235 fi
2236 fi
2237 fi
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240   echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243   echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 fi
2246
2247 fi
2248 if test -z "$CC"; then
2249   if test -n "$ac_tool_prefix"; then
2250   for ac_prog in cl
2251   do
2252     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   if test -n "$CC"; then
2260   ac_cv_prog_CC="$CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271     break 2
2272   fi
2273 done
2274 done
2275
2276 fi
2277 fi
2278 CC=$ac_cv_prog_CC
2279 if test -n "$CC"; then
2280   echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6
2282 else
2283   echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2285 fi
2286
2287     test -n "$CC" && break
2288   done
2289 fi
2290 if test -z "$CC"; then
2291   ac_ct_CC=$CC
2292   for ac_prog in cl
2293 do
2294   # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   if test -n "$ac_ct_CC"; then
2302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2306 do
2307   IFS=$as_save_IFS
2308   test -z "$as_dir" && as_dir=.
2309   for ac_exec_ext in '' $ac_executable_extensions; do
2310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311     ac_cv_prog_ac_ct_CC="$ac_prog"
2312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313     break 2
2314   fi
2315 done
2316 done
2317
2318 fi
2319 fi
2320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321 if test -n "$ac_ct_CC"; then
2322   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323 echo "${ECHO_T}$ac_ct_CC" >&6
2324 else
2325   echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2327 fi
2328
2329   test -n "$ac_ct_CC" && break
2330 done
2331
2332   CC=$ac_ct_CC
2333 fi
2334
2335 fi
2336
2337
2338 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2339 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2340    { (exit 1); exit 1; }; }
2341
2342 # Provide some information about the compiler.
2343 echo "$as_me:$LINENO:" \
2344      "checking for C compiler version" >&5
2345 ac_compiler=`set X $ac_compile; echo $2`
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2347   (eval $ac_compiler --version </dev/null >&5) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }
2351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2352   (eval $ac_compiler -v </dev/null >&5) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2357   (eval $ac_compiler -V </dev/null >&5) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }
2361
2362 cat >conftest.$ac_ext <<_ACEOF
2363 #line $LINENO "configure"
2364 #include "confdefs.h"
2365
2366 int
2367 main ()
2368 {
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 ac_clean_files_save=$ac_clean_files
2375 ac_clean_files="$ac_clean_files a.out a.exe"
2376 # Try to create an executable without -o first, disregard a.out.
2377 # It will help us diagnose broken compilers, and finding out an intuition
2378 # of exeext.
2379 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2380 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2381 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2382 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2383   (eval $ac_link_default) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; then
2387   # Find the output, starting from the most likely.  This scheme is
2388 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2389 # resort.
2390
2391 # Be careful to initialize this variable, since it used to be cached.
2392 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2393 ac_cv_exeext=
2394 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2395   test -f "$ac_file" || continue
2396   case $ac_file in
2397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2398     a.out ) # We found the default executable, but exeext='' is most
2399             # certainly right.
2400             break;;
2401     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2403           export ac_cv_exeext
2404           break;;
2405     * ) break;;
2406   esac
2407 done
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2412 check \`config.log' for details." >&5
2413 echo "$as_me: error: C compiler cannot create executables
2414 check \`config.log' for details." >&2;}
2415    { (exit 77); exit 77; }; }
2416 fi
2417
2418 ac_exeext=$ac_cv_exeext
2419 echo "$as_me:$LINENO: result: $ac_file" >&5
2420 echo "${ECHO_T}$ac_file" >&6
2421
2422 # Check the compiler produces executables we can run.  If not, either
2423 # the compiler is broken, or we cross compile.
2424 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2425 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2426 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2427 # If not cross compiling, check that we can run a simple program.
2428 if test "$cross_compiling" != yes; then
2429   if { ac_try='./$ac_file'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435     cross_compiling=no
2436   else
2437     if test "$cross_compiling" = maybe; then
2438         cross_compiling=yes
2439     else
2440         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2441 If you meant to cross compile, use \`--host'." >&5
2442 echo "$as_me: error: cannot run C compiled programs.
2443 If you meant to cross compile, use \`--host'." >&2;}
2444    { (exit 1); exit 1; }; }
2445     fi
2446   fi
2447 fi
2448 echo "$as_me:$LINENO: result: yes" >&5
2449 echo "${ECHO_T}yes" >&6
2450
2451 rm -f a.out a.exe conftest$ac_cv_exeext
2452 ac_clean_files=$ac_clean_files_save
2453 # Check the compiler produces executables we can run.  If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2456 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2457 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2458 echo "${ECHO_T}$cross_compiling" >&6
2459
2460 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2461 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2463   (eval $ac_link) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; then
2467   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2468 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2469 # work properly (i.e., refer to `conftest.exe'), while it won't with
2470 # `rm'.
2471 for ac_file in conftest.exe conftest conftest.*; do
2472   test -f "$ac_file" || continue
2473   case $ac_file in
2474     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2475     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476           export ac_cv_exeext
2477           break;;
2478     * ) break;;
2479   esac
2480 done
2481 else
2482   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2483 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2484    { (exit 1); exit 1; }; }
2485 fi
2486
2487 rm -f conftest$ac_cv_exeext
2488 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2489 echo "${ECHO_T}$ac_cv_exeext" >&6
2490
2491 rm -f conftest.$ac_ext
2492 EXEEXT=$ac_cv_exeext
2493 ac_exeext=$EXEEXT
2494 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2495 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2496 if test "${ac_cv_objext+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   cat >conftest.$ac_ext <<_ACEOF
2500 #line $LINENO "configure"
2501 #include "confdefs.h"
2502
2503 int
2504 main ()
2505 {
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.o conftest.obj
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513   (eval $ac_compile) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; then
2517   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2518   case $ac_file in
2519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2520     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2521        break;;
2522   esac
2523 done
2524 else
2525   echo "$as_me: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 #line $LINENO "configure"
2545 #include "confdefs.h"
2546
2547 int
2548 main ()
2549 {
2550 #ifndef __GNUC__
2551        choke me
2552 #endif
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560   (eval $ac_compile) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   ac_compiler_gnu=yes
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2574 ac_compiler_gnu=no
2575 fi
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2578
2579 fi
2580 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2581 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2582 GCC=`test $ac_compiler_gnu = yes && echo yes`
2583 ac_test_CFLAGS=${CFLAGS+set}
2584 ac_save_CFLAGS=$CFLAGS
2585 CFLAGS="-g"
2586 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2588 if test "${ac_cv_prog_cc_g+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   cat >conftest.$ac_ext <<_ACEOF
2592 #line $LINENO "configure"
2593 #include "confdefs.h"
2594
2595 int
2596 main ()
2597 {
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605   (eval $ac_compile) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -s conftest.$ac_objext'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   ac_cv_prog_cc_g=yes
2616 else
2617   echo "$as_me: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2619 ac_cv_prog_cc_g=no
2620 fi
2621 rm -f conftest.$ac_objext conftest.$ac_ext
2622 fi
2623 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2625 if test "$ac_test_CFLAGS" = set; then
2626   CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628   if test "$GCC" = yes; then
2629     CFLAGS="-g -O2"
2630   else
2631     CFLAGS="-g"
2632   fi
2633 else
2634   if test "$GCC" = yes; then
2635     CFLAGS="-O2"
2636   else
2637     CFLAGS=
2638   fi
2639 fi
2640 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2641 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2642 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   ac_cv_prog_cc_stdc=no
2646 ac_save_CC=$CC
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 #include "confdefs.h"
2650 #include <stdarg.h>
2651 #include <stdio.h>
2652 #include <sys/types.h>
2653 #include <sys/stat.h>
2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2655 struct buf { int x; };
2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657 static char *e (p, i)
2658      char **p;
2659      int i;
2660 {
2661   return p[i];
2662 }
2663 static char *f (char * (*g) (char **, int), char **p, ...)
2664 {
2665   char *s;
2666   va_list v;
2667   va_start (v,p);
2668   s = g (p, va_arg (v,int));
2669   va_end (v);
2670   return s;
2671 }
2672 int test (int i, double x);
2673 struct s1 {int (*f) (int a);};
2674 struct s2 {int (*f) (double a);};
2675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676 int argc;
2677 char **argv;
2678 int
2679 main ()
2680 {
2681 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 # Don't try gcc -ansi; that turns off useful extensions and
2687 # breaks some systems' header files.
2688 # AIX                   -qlanglvl=ansi
2689 # Ultrix and OSF/1      -std1
2690 # HP-UX 10.20 and later -Ae
2691 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2692 # SVR4                  -Xc -D__EXTENSIONS__
2693 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 do
2695   CC="$ac_save_CC $ac_arg"
2696   rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698   (eval $ac_compile) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -s conftest.$ac_objext'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708   ac_cv_prog_cc_stdc=$ac_arg
2709 break
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2713 fi
2714 rm -f conftest.$ac_objext
2715 done
2716 rm -f conftest.$ac_ext conftest.$ac_objext
2717 CC=$ac_save_CC
2718
2719 fi
2720
2721 case "x$ac_cv_prog_cc_stdc" in
2722   x|xno)
2723     echo "$as_me:$LINENO: result: none needed" >&5
2724 echo "${ECHO_T}none needed" >&6 ;;
2725   *)
2726     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2728     CC="$CC $ac_cv_prog_cc_stdc" ;;
2729 esac
2730
2731 # Some people use a C++ compiler to compile C.  Since we use `exit',
2732 # in C++ we need to declare it.  In case someone uses the same compiler
2733 # for both compiling C and C++ we need to have the C++ compiler decide
2734 # the declaration of exit, since it's the most demanding environment.
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #ifndef __cplusplus
2737   choke me
2738 #endif
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742   (eval $ac_compile) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   for ac_declaration in \
2753    ''\
2754    '#include <stdlib.h>' \
2755    'extern "C" void std::exit (int) throw (); using std::exit;' \
2756    'extern "C" void std::exit (int); using std::exit;' \
2757    'extern "C" void exit (int) throw ();' \
2758    'extern "C" void exit (int);' \
2759    'void exit (int);'
2760 do
2761   cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2764 #include <stdlib.h>
2765 $ac_declaration
2766 int
2767 main ()
2768 {
2769 exit (42);
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776   (eval $ac_compile) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -s conftest.$ac_objext'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; }; then
2786   :
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 continue
2791 fi
2792 rm -f conftest.$ac_objext conftest.$ac_ext
2793   cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 #include "confdefs.h"
2796 $ac_declaration
2797 int
2798 main ()
2799 {
2800 exit (42);
2801   ;
2802   return 0;
2803 }
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807   (eval $ac_compile) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } &&
2811          { ac_try='test -s conftest.$ac_objext'
2812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817   break
2818 else
2819   echo "$as_me: failed program was:" >&5
2820 cat conftest.$ac_ext >&5
2821 fi
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2823 done
2824 rm -f conftest*
2825 if test -n "$ac_declaration"; then
2826   echo '#ifdef __cplusplus' >>confdefs.h
2827   echo $ac_declaration      >>confdefs.h
2828   echo '#endif'             >>confdefs.h
2829 fi
2830
2831 else
2832   echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 fi
2835 rm -f conftest.$ac_objext conftest.$ac_ext
2836 ac_ext=c
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841
2842 depcc="$CC"   am_compiler_list=
2843
2844 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2850   # We make a subdir and do the tests there.  Otherwise we can end up
2851   # making bogus files that we don't know about and never remove.  For
2852   # instance it was reported that on HP-UX the gcc test will end up
2853   # making a dummy file named `D' -- because `-MD' means `put the output
2854   # in D'.
2855   mkdir conftest.dir
2856   # Copy depcomp to subdir because otherwise we won't find it if we're
2857   # using a relative directory.
2858   cp "$am_depcomp" conftest.dir
2859   cd conftest.dir
2860
2861   am_cv_CC_dependencies_compiler_type=none
2862   if test "$am_compiler_list" = ""; then
2863      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2864   fi
2865   for depmode in $am_compiler_list; do
2866     # We need to recreate these files for each test, as the compiler may
2867     # overwrite some of them when testing with obscure command lines.
2868     # This happens at least with the AIX C compiler.
2869     echo '#include "conftest.h"' > conftest.c
2870     echo 'int i;' > conftest.h
2871     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2872
2873     case $depmode in
2874     nosideeffect)
2875       # after this tag, mechanisms are not by side-effect, so they'll
2876       # only be used when explicitly requested
2877       if test "x$enable_dependency_tracking" = xyes; then
2878         continue
2879       else
2880         break
2881       fi
2882       ;;
2883     none) break ;;
2884     esac
2885     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2886     # mode.  It turns out that the SunPro C++ compiler does not properly
2887     # handle `-M -o', and we need to detect this.
2888     if depmode=$depmode \
2889        source=conftest.c object=conftest.o \
2890        depfile=conftest.Po tmpdepfile=conftest.TPo \
2891        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2892        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2893        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2894       am_cv_CC_dependencies_compiler_type=$depmode
2895       break
2896     fi
2897   done
2898
2899   cd ..
2900   rm -rf conftest.dir
2901 else
2902   am_cv_CC_dependencies_compiler_type=none
2903 fi
2904
2905 fi
2906 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2907 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2908 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2909
2910
2911
2912 if
2913   test "x$enable_dependency_tracking" != xno \
2914   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2915   am__fastdepCC_TRUE=
2916   am__fastdepCC_FALSE='#'
2917 else
2918   am__fastdepCC_TRUE='#'
2919   am__fastdepCC_FALSE=
2920 fi
2921
2922
2923 # Find the correct PATH separator.  Usually this is `:', but
2924 # DJGPP uses `;' like DOS.
2925 if test "X${PATH_SEPARATOR+set}" != Xset; then
2926   UNAME=${UNAME-`uname 2>/dev/null`}
2927   case X$UNAME in
2928     *-DOS) lt_cv_sys_path_separator=';' ;;
2929     *)     lt_cv_sys_path_separator=':' ;;
2930   esac
2931   PATH_SEPARATOR=$lt_cv_sys_path_separator
2932 fi
2933
2934
2935 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2936 if test "${with_gnu_ld+set}" = set; then
2937   withval="$with_gnu_ld"
2938   test "$withval" = no || with_gnu_ld=yes
2939 else
2940   with_gnu_ld=no
2941 fi;
2942 ac_prog=ld
2943 if test "$GCC" = yes; then
2944   # Check if gcc -print-prog-name=ld gives a path.
2945   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2946 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2947   case $host in
2948   *-*-mingw*)
2949     # gcc leaves a trailing carriage return which upsets mingw
2950     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2951   *)
2952     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2953   esac
2954   case $ac_prog in
2955     # Accept absolute paths.
2956     [\\/]* | [A-Za-z]:[\\/]*)
2957       re_direlt='/[^/][^/]*/\.\./'
2958       # Canonicalize the path of ld
2959       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2960       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2961         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2962       done
2963       test -z "$LD" && LD="$ac_prog"
2964       ;;
2965   "")
2966     # If it fails, then pretend we aren't using GCC.
2967     ac_prog=ld
2968     ;;
2969   *)
2970     # If it is relative, then search for the first ld in PATH.
2971     with_gnu_ld=unknown
2972     ;;
2973   esac
2974 elif test "$with_gnu_ld" = yes; then
2975   echo "$as_me:$LINENO: checking for GNU ld" >&5
2976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2977 else
2978   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2980 fi
2981 if test "${lt_cv_path_LD+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   if test -z "$LD"; then
2985   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2986   for ac_dir in $PATH; do
2987     test -z "$ac_dir" && ac_dir=.
2988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2989       lt_cv_path_LD="$ac_dir/$ac_prog"
2990       # Check to see if the program is GNU ld.  I'd rather use --version,
2991       # but apparently some GNU ld's only accept -v.
2992       # Break only if it was the GNU/non-GNU ld that we prefer.
2993       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2994         test "$with_gnu_ld" != no && break
2995       else
2996         test "$with_gnu_ld" != yes && break
2997       fi
2998     fi
2999   done
3000   IFS="$ac_save_ifs"
3001 else
3002   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3003 fi
3004 fi
3005
3006 LD="$lt_cv_path_LD"
3007 if test -n "$LD"; then
3008   echo "$as_me:$LINENO: result: $LD" >&5
3009 echo "${ECHO_T}$LD" >&6
3010 else
3011   echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3013 fi
3014 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3015 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3016    { (exit 1); exit 1; }; }
3017 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3018 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3019 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3023 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3024   lt_cv_prog_gnu_ld=yes
3025 else
3026   lt_cv_prog_gnu_ld=no
3027 fi
3028 fi
3029 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3030 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3031 with_gnu_ld=$lt_cv_prog_gnu_ld
3032
3033
3034 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3035 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3036 if test "${lt_cv_ld_reload_flag+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   lt_cv_ld_reload_flag='-r'
3040 fi
3041 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3042 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3043 reload_flag=$lt_cv_ld_reload_flag
3044 test -n "$reload_flag" && reload_flag=" $reload_flag"
3045
3046 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3047 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3048 if test "${lt_cv_path_NM+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   if test -n "$NM"; then
3052   # Let the user override the test.
3053   lt_cv_path_NM="$NM"
3054 else
3055   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3056   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3057     test -z "$ac_dir" && ac_dir=.
3058     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3059     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3060       # Check to see if the nm accepts a BSD-compat flag.
3061       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3062       #   nm: unknown option "B" ignored
3063       # Tru64's nm complains that /dev/null is an invalid object file
3064       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3065         lt_cv_path_NM="$tmp_nm -B"
3066         break
3067       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3068         lt_cv_path_NM="$tmp_nm -p"
3069         break
3070       else
3071         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3072         continue # so that we can try to find one that supports BSD flags
3073       fi
3074     fi
3075   done
3076   IFS="$ac_save_ifs"
3077   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3078 fi
3079 fi
3080
3081 NM="$lt_cv_path_NM"
3082 echo "$as_me:$LINENO: result: $NM" >&5
3083 echo "${ECHO_T}$NM" >&6
3084
3085 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3086 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3087 if test "${lt_cv_path_SED+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   # Loop through the user's path and test for sed and gsed.
3091 # Then use that list of sed's as ones to test for truncation.
3092 as_executable_p="test -f"
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098   for ac_prog in sed gsed; do
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3101         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3102       fi
3103     done
3104   done
3105 done
3106
3107   # Create a temporary directory, and hook for its removal unless debugging.
3108 $debug ||
3109 {
3110   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3111   trap '{ (exit 1); exit 1; }' 1 2 13 15
3112 }
3113
3114 # Create a (secure) tmp directory for tmp files.
3115 : ${TMPDIR=/tmp}
3116 {
3117   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3118   test -n "$tmp" && test -d "$tmp"
3119 }  ||
3120 {
3121   tmp=$TMPDIR/sed$$-$RANDOM
3122   (umask 077 && mkdir $tmp)
3123 } ||
3124 {
3125    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3126    { (exit 1); exit 1; }
3127 }
3128   _max=0
3129   _count=0
3130   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3131   # along with /bin/sed that truncates output.
3132   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3133     test ! -f ${_sed} && break
3134     cat /dev/null > "$tmp/sed.in"
3135     _count=0
3136     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3137     # Check for GNU sed and select it if it is found.
3138     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3139       lt_cv_path_SED=${_sed}
3140       break;
3141     fi
3142     while true; do
3143       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3144       mv "$tmp/sed.tmp" "$tmp/sed.in"
3145       cp "$tmp/sed.in" "$tmp/sed.nl"
3146       echo >>"$tmp/sed.nl"
3147       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3148       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3149       # 40000 chars as input seems more than enough
3150       test $_count -gt 10 && break
3151       _count=`expr $_count + 1`
3152       if test $_count -gt $_max; then
3153         _max=$_count
3154         lt_cv_path_SED=$_sed
3155       fi
3156     done
3157   done
3158   rm -rf "$tmp"
3159
3160 fi
3161
3162 if test "X$SED" != "X"; then
3163   lt_cv_path_SED=$SED
3164 else
3165   SED=$lt_cv_path_SED
3166 fi
3167 echo "$as_me:$LINENO: result: $SED" >&5
3168 echo "${ECHO_T}$SED" >&6
3169
3170 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3171 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3172 LN_S=$as_ln_s
3173 if test "$LN_S" = "ln -s"; then
3174   echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6
3176 else
3177   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3178 echo "${ECHO_T}no, using $LN_S" >&6
3179 fi
3180
3181 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3182 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3183 if test "${lt_cv_deplibs_check_method+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   lt_cv_file_magic_cmd='$MAGIC_CMD'
3187 lt_cv_file_magic_test_file=
3188 lt_cv_deplibs_check_method='unknown'
3189 # Need to set the preceding variable on all platforms that support
3190 # interlibrary dependencies.
3191 # 'none' -- dependencies not supported.
3192 # `unknown' -- same as none, but documents that we really don't know.
3193 # 'pass_all' -- all dependencies passed with no checks.
3194 # 'test_compile' -- check by making test program.
3195 # 'file_magic [[regex]]' -- check by looking for files in library path
3196 # which responds to the $file_magic_cmd with a given egrep regex.
3197 # If you have `file' or equivalent on your system and you're not sure
3198 # whether `pass_all' will *always* work, you probably want this one.
3199
3200 case $host_os in
3201 aix4* | aix5*)
3202   lt_cv_deplibs_check_method=pass_all
3203   ;;
3204
3205 beos*)
3206   lt_cv_deplibs_check_method=pass_all
3207   ;;
3208
3209 bsdi4*)
3210   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3211   lt_cv_file_magic_cmd='/usr/bin/file -L'
3212   lt_cv_file_magic_test_file=/shlib/libc.so
3213   ;;
3214
3215 cygwin* | mingw* | pw32*)
3216   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3217   lt_cv_file_magic_cmd='$OBJDUMP -f'
3218   ;;
3219
3220 darwin* | rhapsody*)
3221   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3222   lt_cv_file_magic_cmd='/usr/bin/file -L'
3223   case "$host_os" in
3224   rhapsody* | darwin1.[012])
3225     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3226     ;;
3227   *) # Darwin 1.3 on
3228     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3229     ;;
3230   esac
3231   ;;
3232
3233 freebsd*)
3234   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3235     case $host_cpu in
3236     i*86 )
3237       # Not sure whether the presence of OpenBSD here was a mistake.
3238       # Let's accept both of them until this is cleared up.
3239       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3240       lt_cv_file_magic_cmd=/usr/bin/file
3241       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3242       ;;
3243     esac
3244   else
3245     lt_cv_deplibs_check_method=pass_all
3246   fi
3247   ;;
3248
3249 gnu*)
3250   lt_cv_deplibs_check_method=pass_all
3251   ;;
3252
3253 hpux10.20*|hpux11*)
3254   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3255   lt_cv_file_magic_cmd=/usr/bin/file
3256   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3257   ;;
3258
3259 irix5* | irix6* | nonstopux*)
3260   case $host_os in
3261   irix5* | nonstopux*)
3262     # this will be overridden with pass_all, but let us keep it just in case
3263     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3264     ;;
3265   *)
3266     case $LD in
3267     *-32|*"-32 ") libmagic=32-bit;;
3268     *-n32|*"-n32 ") libmagic=N32;;
3269     *-64|*"-64 ") libmagic=64-bit;;
3270     *) libmagic=never-match;;
3271     esac
3272     # this will be overridden with pass_all, but let us keep it just in case
3273     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3274     ;;
3275   esac
3276   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3277   lt_cv_deplibs_check_method=pass_all
3278   ;;
3279
3280 # This must be Linux ELF.
3281 linux-gnu*)
3282   case $host_cpu in
3283   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3284     lt_cv_deplibs_check_method=pass_all ;;
3285   *)
3286     # glibc up to 2.1.1 does not perform some relocations on ARM
3287     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3288   esac
3289   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3290   ;;
3291
3292 netbsd*)
3293   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3294     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3295   else
3296     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3297   fi
3298   ;;
3299
3300 newos6*)
3301   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3302   lt_cv_file_magic_cmd=/usr/bin/file
3303   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3304   ;;
3305
3306 openbsd*)
3307   lt_cv_file_magic_cmd=/usr/bin/file
3308   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3309   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3310     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3311   else
3312     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3313   fi
3314   ;;
3315
3316 osf3* | osf4* | osf5*)
3317   # this will be overridden with pass_all, but let us keep it just in case
3318   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3319   lt_cv_file_magic_test_file=/shlib/libc.so
3320   lt_cv_deplibs_check_method=pass_all
3321   ;;
3322
3323 sco3.2v5*)
3324   lt_cv_deplibs_check_method=pass_all
3325   ;;
3326
3327 solaris*)
3328   lt_cv_deplibs_check_method=pass_all
3329   lt_cv_file_magic_test_file=/lib/libc.so
3330   ;;
3331
3332 sysv5uw[78]* | sysv4*uw2*)
3333   lt_cv_deplibs_check_method=pass_all
3334   ;;
3335
3336 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3337   case $host_vendor in
3338   motorola)
3339     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]'
3340     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3341     ;;
3342   ncr)
3343     lt_cv_deplibs_check_method=pass_all
3344     ;;
3345   sequent)
3346     lt_cv_file_magic_cmd='/bin/file'
3347     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3348     ;;
3349   sni)
3350     lt_cv_file_magic_cmd='/bin/file'
3351     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3352     lt_cv_file_magic_test_file=/lib/libc.so
3353     ;;
3354   siemens)
3355     lt_cv_deplibs_check_method=pass_all
3356     ;;
3357   esac
3358   ;;
3359 esac
3360
3361 fi
3362 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3363 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3364 file_magic_cmd=$lt_cv_file_magic_cmd
3365 deplibs_check_method=$lt_cv_deplibs_check_method
3366
3367
3368
3369
3370
3371
3372
3373
3374 # Check for command to grab the raw symbol name followed by C symbol from nm.
3375 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3376 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3377 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380
3381 # These are sane defaults that work on at least a few old systems.
3382 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3383
3384 # Character class describing NM global symbol codes.
3385 symcode='[BCDEGRST]'
3386
3387 # Regexp to match symbols that can be accessed directly from C.
3388 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3389
3390 # Transform the above into a raw symbol and a C symbol.
3391 symxfrm='\1 \2\3 \3'
3392
3393 # Transform an extracted symbol line into a proper C declaration
3394 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3395
3396 # Transform an extracted symbol line into symbol name and symbol address
3397 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'"
3398
3399 # Define system-specific variables.
3400 case $host_os in
3401 aix*)
3402   symcode='[BCDT]'
3403   ;;
3404 cygwin* | mingw* | pw32*)
3405   symcode='[ABCDGISTW]'
3406   ;;
3407 hpux*) # Its linker distinguishes data from code symbols
3408   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3409   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'"
3410   ;;
3411 irix* | nonstopux*)
3412   symcode='[BCDEGRST]'
3413   ;;
3414 solaris* | sysv5*)
3415   symcode='[BDT]'
3416   ;;
3417 sysv4)
3418   symcode='[DFNSTU]'
3419   ;;
3420 esac
3421
3422 # Handle CRLF in mingw tool chain
3423 opt_cr=
3424 case $host_os in
3425 mingw*)
3426   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3427   ;;
3428 esac
3429
3430 # If we're using GNU nm, then use its standard symbol codes.
3431 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3432   symcode='[ABCDGISTW]'
3433 fi
3434
3435 # Try without a prefix undercore, then with it.
3436 for ac_symprfx in "" "_"; do
3437
3438   # Write the raw and C identifiers.
3439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3440
3441   # Check to see that the pipe works correctly.
3442   pipe_works=no
3443   rm -f conftest*
3444   cat > conftest.$ac_ext <<EOF
3445 #ifdef __cplusplus
3446 extern "C" {
3447 #endif
3448 char nm_test_var;
3449 void nm_test_func(){}
3450 #ifdef __cplusplus
3451 }
3452 #endif
3453 int main(){nm_test_var='a';nm_test_func();return(0);}
3454 EOF
3455
3456   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457   (eval $ac_compile) 2>&5
3458   ac_status=$?
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); }; then
3461     # Now try to grab the symbols.
3462     nlist=conftest.nm
3463     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3464   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3465   ac_status=$?
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); } && test -s "$nlist"; then
3468       # Try sorting and uniquifying the output.
3469       if sort "$nlist" | uniq > "$nlist"T; then
3470         mv -f "$nlist"T "$nlist"
3471       else
3472         rm -f "$nlist"T
3473       fi
3474
3475       # Make sure that we snagged all the symbols we need.
3476       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3477         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3478           cat <<EOF > conftest.$ac_ext
3479 #ifdef __cplusplus
3480 extern "C" {
3481 #endif
3482
3483 EOF
3484           # Now generate the symbol file.
3485           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3486
3487           cat <<EOF >> conftest.$ac_ext
3488 #if defined (__STDC__) && __STDC__
3489 # define lt_ptr void *
3490 #else
3491 # define lt_ptr char *
3492 # define const
3493 #endif
3494
3495 /* The mapping between symbol names and symbols. */
3496 const struct {
3497   const char *name;
3498   lt_ptr address;
3499 }
3500 lt_preloaded_symbols[] =
3501 {
3502 EOF
3503           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3504           cat <<\EOF >> conftest.$ac_ext
3505   {0, (lt_ptr) 0}
3506 };
3507
3508 #ifdef __cplusplus
3509 }
3510 #endif
3511 EOF
3512           # Now try linking the two files.
3513           mv conftest.$ac_objext conftstm.$ac_objext
3514           save_LIBS="$LIBS"
3515           save_CFLAGS="$CFLAGS"
3516           LIBS="conftstm.$ac_objext"
3517           CFLAGS="$CFLAGS$no_builtin_flag"
3518           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519   (eval $ac_link) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); } && test -s conftest; then
3523             pipe_works=yes
3524           fi
3525           LIBS="$save_LIBS"
3526           CFLAGS="$save_CFLAGS"
3527         else
3528           echo "cannot find nm_test_func in $nlist" >&5
3529         fi
3530       else
3531         echo "cannot find nm_test_var in $nlist" >&5
3532       fi
3533     else
3534       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3535     fi
3536   else
3537     echo "$progname: failed program was:" >&5
3538     cat conftest.$ac_ext >&5
3539   fi
3540   rm -f conftest* conftst*
3541
3542   # Do not use the global_symbol_pipe unless it works.
3543   if test "$pipe_works" = yes; then
3544     break
3545   else
3546     lt_cv_sys_global_symbol_pipe=
3547   fi
3548 done
3549
3550 fi
3551
3552 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3554   global_symbol_to_cdecl=
3555   global_symbol_to_c_name_address=
3556 else
3557   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3558   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3559 fi
3560 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3561 then
3562   echo "$as_me:$LINENO: result: failed" >&5
3563 echo "${ECHO_T}failed" >&6
3564 else
3565   echo "$as_me:$LINENO: result: ok" >&5
3566 echo "${ECHO_T}ok" >&6
3567 fi
3568
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3576 # On Suns, sometimes $CPP names a directory.
3577 if test -n "$CPP" && test -d "$CPP"; then
3578   CPP=
3579 fi
3580 if test -z "$CPP"; then
3581   if test "${ac_cv_prog_CPP+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584       # Double quotes because CPP needs to be expanded
3585     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3586     do
3587       ac_preproc_ok=false
3588 for ac_c_preproc_warn_flag in '' yes
3589 do
3590   # Use a header file that comes with gcc, so configuring glibc
3591   # with a fresh cross-compiler works.
3592   # On the NeXT, cc -E runs the code through the compiler's parser,
3593   # not just through cpp. "Syntax error" is here to catch this case.
3594   cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3596 #include "confdefs.h"
3597 #include <assert.h>
3598                      Syntax error
3599 _ACEOF
3600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } >/dev/null; then
3608   if test -s conftest.err; then
3609     ac_cpp_err=$ac_c_preproc_warn_flag
3610   else
3611     ac_cpp_err=
3612   fi
3613 else
3614   ac_cpp_err=yes
3615 fi
3616 if test -z "$ac_cpp_err"; then
3617   :
3618 else
3619   echo "$as_me: failed program was:" >&5
3620   cat conftest.$ac_ext >&5
3621   # Broken: fails on valid input.
3622 continue
3623 fi
3624 rm -f conftest.err conftest.$ac_ext
3625
3626   # OK, works on sane cases.  Now check whether non-existent headers
3627   # can be detected and how.
3628   cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3631 #include <ac_nonexistent.h>
3632 _ACEOF
3633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3635   ac_status=$?
3636   grep -v '^ *+' conftest.er1 >conftest.err
3637   rm -f conftest.er1
3638   cat conftest.err >&5
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } >/dev/null; then
3641   if test -s conftest.err; then
3642     ac_cpp_err=$ac_c_preproc_warn_flag
3643   else
3644     ac_cpp_err=
3645   fi
3646 else
3647   ac_cpp_err=yes
3648 fi
3649 if test -z "$ac_cpp_err"; then
3650   # Broken: success on invalid input.
3651 continue
3652 else
3653   echo "$as_me: failed program was:" >&5
3654   cat conftest.$ac_ext >&5
3655   # Passes both tests.
3656 ac_preproc_ok=:
3657 break
3658 fi
3659 rm -f conftest.err conftest.$ac_ext
3660
3661 done
3662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663 rm -f conftest.err conftest.$ac_ext
3664 if $ac_preproc_ok; then
3665   break
3666 fi
3667
3668     done
3669     ac_cv_prog_CPP=$CPP
3670
3671 fi
3672   CPP=$ac_cv_prog_CPP
3673 else
3674   ac_cv_prog_CPP=$CPP
3675 fi
3676 echo "$as_me:$LINENO: result: $CPP" >&5
3677 echo "${ECHO_T}$CPP" >&6
3678 ac_preproc_ok=false
3679 for ac_c_preproc_warn_flag in '' yes
3680 do
3681   # Use a header file that comes with gcc, so configuring glibc
3682   # with a fresh cross-compiler works.
3683   # On the NeXT, cc -E runs the code through the compiler's parser,
3684   # not just through cpp. "Syntax error" is here to catch this case.
3685   cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 #include "confdefs.h"
3688 #include <assert.h>
3689                      Syntax error
3690 _ACEOF
3691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3693   ac_status=$?
3694   grep -v '^ *+' conftest.er1 >conftest.err
3695   rm -f conftest.er1
3696   cat conftest.err >&5
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } >/dev/null; then
3699   if test -s conftest.err; then
3700     ac_cpp_err=$ac_c_preproc_warn_flag
3701   else
3702     ac_cpp_err=
3703   fi
3704 else
3705   ac_cpp_err=yes
3706 fi
3707 if test -z "$ac_cpp_err"; then
3708   :
3709 else
3710   echo "$as_me: failed program was:" >&5
3711   cat conftest.$ac_ext >&5
3712   # Broken: fails on valid input.
3713 continue
3714 fi
3715 rm -f conftest.err conftest.$ac_ext
3716
3717   # OK, works on sane cases.  Now check whether non-existent headers
3718   # can be detected and how.
3719   cat >conftest.$ac_ext <<_ACEOF
3720 #line $LINENO "configure"
3721 #include "confdefs.h"
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } >/dev/null; then
3732   if test -s conftest.err; then
3733     ac_cpp_err=$ac_c_preproc_warn_flag
3734   else
3735     ac_cpp_err=
3736   fi
3737 else
3738   ac_cpp_err=yes
3739 fi
3740 if test -z "$ac_cpp_err"; then
3741   # Broken: success on invalid input.
3742 continue
3743 else
3744   echo "$as_me: failed program was:" >&5
3745   cat conftest.$ac_ext >&5
3746   # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3749 fi
3750 rm -f conftest.err conftest.$ac_ext
3751
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3756   :
3757 else
3758   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3759 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3760    { (exit 1); exit 1; }; }
3761 fi
3762
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769
3770 echo "$as_me:$LINENO: checking for egrep" >&5
3771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3772 if test "${ac_cv_prog_egrep+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3776     then ac_cv_prog_egrep='grep -E'
3777     else ac_cv_prog_egrep='egrep'
3778     fi
3779 fi
3780 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3781 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3782  EGREP=$ac_cv_prog_egrep
3783
3784
3785 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3786 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3787 if test "${ac_cv_header_stdc+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 #include "confdefs.h"
3793 #include <stdlib.h>
3794 #include <stdarg.h>
3795 #include <string.h>
3796 #include <float.h>
3797
3798 _ACEOF
3799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } >/dev/null; then
3807   if test -s conftest.err; then
3808     ac_cpp_err=$ac_c_preproc_warn_flag
3809   else
3810     ac_cpp_err=
3811   fi
3812 else
3813   ac_cpp_err=yes
3814 fi
3815 if test -z "$ac_cpp_err"; then
3816   ac_cv_header_stdc=yes
3817 else
3818   echo "$as_me: failed program was:" >&5
3819   cat conftest.$ac_ext >&5
3820   ac_cv_header_stdc=no
3821 fi
3822 rm -f conftest.err conftest.$ac_ext
3823
3824 if test $ac_cv_header_stdc = yes; then
3825   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3826   cat >conftest.$ac_ext <<_ACEOF
3827 #line $LINENO "configure"
3828 #include "confdefs.h"
3829 #include <string.h>
3830
3831 _ACEOF
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833   $EGREP "memchr" >/dev/null 2>&1; then
3834   :
3835 else
3836   ac_cv_header_stdc=no
3837 fi
3838 rm -f conftest*
3839
3840 fi
3841
3842 if test $ac_cv_header_stdc = yes; then
3843   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3844   cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3846 #include "confdefs.h"
3847 #include <stdlib.h>
3848
3849 _ACEOF
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851   $EGREP "free" >/dev/null 2>&1; then
3852   :
3853 else
3854   ac_cv_header_stdc=no
3855 fi
3856 rm -f conftest*
3857
3858 fi
3859
3860 if test $ac_cv_header_stdc = yes; then
3861   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3862   if test "$cross_compiling" = yes; then
3863   :
3864 else
3865   cat >conftest.$ac_ext <<_ACEOF
3866 #line $LINENO "configure"
3867 #include "confdefs.h"
3868 #include <ctype.h>
3869 #if ((' ' & 0x0FF) == 0x020)
3870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872 #else
3873 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3874                      || ('j' <= (c) && (c) <= 'r') \
3875                      || ('s' <= (c) && (c) <= 'z'))
3876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3877 #endif
3878
3879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3880 int
3881 main ()
3882 {
3883   int i;
3884   for (i = 0; i < 256; i++)
3885     if (XOR (islower (i), ISLOWER (i))
3886         || toupper (i) != TOUPPER (i))
3887       exit(2);
3888   exit (0);
3889 }
3890 _ACEOF
3891 rm -f conftest$ac_exeext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893   (eval $ac_link) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898   (eval $ac_try) 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); }; }; then
3902   :
3903 else
3904   echo "$as_me: program exited with status $ac_status" >&5
3905 echo "$as_me: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3907 ( exit $ac_status )
3908 ac_cv_header_stdc=no
3909 fi
3910 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3911 fi
3912 fi
3913 fi
3914 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3915 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3916 if test $ac_cv_header_stdc = yes; then
3917
3918 cat >>confdefs.h <<\_ACEOF
3919 #define STDC_HEADERS 1
3920 _ACEOF
3921
3922 fi
3923
3924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3935                   inttypes.h stdint.h unistd.h
3936 do
3937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3938 echo "$as_me:$LINENO: checking for $ac_header" >&5
3939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 #include "confdefs.h"
3946 $ac_includes_default
3947
3948 #include <$ac_header>
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } &&
3956          { ac_try='test -s conftest.$ac_objext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   eval "$as_ac_Header=yes"
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 eval "$as_ac_Header=no"
3967 fi
3968 rm -f conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973   cat >>confdefs.h <<_ACEOF
3974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3976
3977 fi
3978
3979 done
3980
3981
3982
3983 for ac_header in dlfcn.h
3984 do
3985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3987   echo "$as_me:$LINENO: checking for $ac_header" >&5
3988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 fi
3992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3994 else
3995   # Is the header compilable?
3996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4001 $ac_includes_default
4002 #include <$ac_header>
4003 _ACEOF
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006   (eval $ac_compile) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } &&
4010          { ac_try='test -s conftest.$ac_objext'
4011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012   (eval $ac_try) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }; }; then
4016   ac_header_compiler=yes
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4020 ac_header_compiler=no
4021 fi
4022 rm -f conftest.$ac_objext conftest.$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4024 echo "${ECHO_T}$ac_header_compiler" >&6
4025
4026 # Is the header present?
4027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 #include "confdefs.h"
4032 #include <$ac_header>
4033 _ACEOF
4034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } >/dev/null; then
4042   if test -s conftest.err; then
4043     ac_cpp_err=$ac_c_preproc_warn_flag
4044   else
4045     ac_cpp_err=
4046   fi
4047 else
4048   ac_cpp_err=yes
4049 fi
4050 if test -z "$ac_cpp_err"; then
4051   ac_header_preproc=yes
4052 else
4053   echo "$as_me: failed program was:" >&5
4054   cat conftest.$ac_ext >&5
4055   ac_header_preproc=no
4056 fi
4057 rm -f conftest.err conftest.$ac_ext
4058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4059 echo "${ECHO_T}$ac_header_preproc" >&6
4060
4061 # So?  What about this header?
4062 case $ac_header_compiler:$ac_header_preproc in
4063   yes:no )
4064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4068   no:yes )
4069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4071     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4075 esac
4076 echo "$as_me:$LINENO: checking for $ac_header" >&5
4077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   eval "$as_ac_Header=$ac_header_preproc"
4082 fi
4083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4085
4086 fi
4087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088   cat >>confdefs.h <<_ACEOF
4089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 _ACEOF
4091
4092 fi
4093
4094 done
4095
4096
4097
4098
4099
4100
4101 # Only perform the check for file, if the check method requires it
4102 case $deplibs_check_method in
4103 file_magic*)
4104   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4105     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4106 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4107 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   case $MAGIC_CMD in
4111   /*)
4112   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4113   ;;
4114   ?:/*)
4115   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4116   ;;
4117   *)
4118   ac_save_MAGIC_CMD="$MAGIC_CMD"
4119   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4120   ac_dummy="/usr/bin:$PATH"
4121   for ac_dir in $ac_dummy; do
4122     test -z "$ac_dir" && ac_dir=.
4123     if test -f $ac_dir/${ac_tool_prefix}file; then
4124       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4125       if test -n "$file_magic_test_file"; then
4126         case $deplibs_check_method in
4127         "file_magic "*)
4128           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4129           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4130           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4131             egrep "$file_magic_regex" > /dev/null; then
4132             :
4133           else
4134             cat <<EOF 1>&2
4135
4136 *** Warning: the command libtool uses to detect shared libraries,
4137 *** $file_magic_cmd, produces output that libtool cannot recognize.
4138 *** The result is that libtool may fail to recognize shared libraries
4139 *** as such.  This will affect the creation of libtool libraries that
4140 *** depend on shared libraries, but programs linked with such libtool
4141 *** libraries will work regardless of this problem.  Nevertheless, you
4142 *** may want to report the problem to your system manager and/or to
4143 *** bug-libtool@gnu.org
4144
4145 EOF
4146           fi ;;
4147         esac
4148       fi
4149       break
4150     fi
4151   done
4152   IFS="$ac_save_ifs"
4153   MAGIC_CMD="$ac_save_MAGIC_CMD"
4154   ;;
4155 esac
4156 fi
4157
4158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4159 if test -n "$MAGIC_CMD"; then
4160   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4161 echo "${ECHO_T}$MAGIC_CMD" >&6
4162 else
4163   echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6
4165 fi
4166
4167 if test -z "$lt_cv_path_MAGIC_CMD"; then
4168   if test -n "$ac_tool_prefix"; then
4169     echo "$as_me:$LINENO: checking for file" >&5
4170 echo $ECHO_N "checking for file... $ECHO_C" >&6
4171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174   case $MAGIC_CMD in
4175   /*)
4176   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4177   ;;
4178   ?:/*)
4179   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4180   ;;
4181   *)
4182   ac_save_MAGIC_CMD="$MAGIC_CMD"
4183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4184   ac_dummy="/usr/bin:$PATH"
4185   for ac_dir in $ac_dummy; do
4186     test -z "$ac_dir" && ac_dir=.
4187     if test -f $ac_dir/file; then
4188       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4189       if test -n "$file_magic_test_file"; then
4190         case $deplibs_check_method in
4191         "file_magic "*)
4192           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4193           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4194           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4195             egrep "$file_magic_regex" > /dev/null; then
4196             :
4197           else
4198             cat <<EOF 1>&2
4199
4200 *** Warning: the command libtool uses to detect shared libraries,
4201 *** $file_magic_cmd, produces output that libtool cannot recognize.
4202 *** The result is that libtool may fail to recognize shared libraries
4203 *** as such.  This will affect the creation of libtool libraries that
4204 *** depend on shared libraries, but programs linked with such libtool
4205 *** libraries will work regardless of this problem.  Nevertheless, you
4206 *** may want to report the problem to your system manager and/or to
4207 *** bug-libtool@gnu.org
4208
4209 EOF
4210           fi ;;
4211         esac
4212       fi
4213       break
4214     fi
4215   done
4216   IFS="$ac_save_ifs"
4217   MAGIC_CMD="$ac_save_MAGIC_CMD"
4218   ;;
4219 esac
4220 fi
4221
4222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4223 if test -n "$MAGIC_CMD"; then
4224   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4225 echo "${ECHO_T}$MAGIC_CMD" >&6
4226 else
4227   echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4229 fi
4230
4231   else
4232     MAGIC_CMD=:
4233   fi
4234 fi
4235
4236   fi
4237   ;;
4238 esac
4239
4240 if test -n "$ac_tool_prefix"; then
4241   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_RANLIB+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$RANLIB"; then
4249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264
4265 fi
4266 fi
4267 RANLIB=$ac_cv_prog_RANLIB
4268 if test -n "$RANLIB"; then
4269   echo "$as_me:$LINENO: result: $RANLIB" >&5
4270 echo "${ECHO_T}$RANLIB" >&6
4271 else
4272   echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4274 fi
4275
4276 fi
4277 if test -z "$ac_cv_prog_RANLIB"; then
4278   ac_ct_RANLIB=$RANLIB
4279   # Extract the first word of "ranlib", so it can be a program name with args.
4280 set dummy ranlib; ac_word=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   if test -n "$ac_ct_RANLIB"; then
4287   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4291 do
4292   IFS=$as_save_IFS
4293   test -z "$as_dir" && as_dir=.
4294   for ac_exec_ext in '' $ac_executable_extensions; do
4295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296     ac_cv_prog_ac_ct_RANLIB="ranlib"
4297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298     break 2
4299   fi
4300 done
4301 done
4302
4303   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4304 fi
4305 fi
4306 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4307 if test -n "$ac_ct_RANLIB"; then
4308   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4309 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4310 else
4311   echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4313 fi
4314
4315   RANLIB=$ac_ct_RANLIB
4316 else
4317   RANLIB="$ac_cv_prog_RANLIB"
4318 fi
4319
4320 if test -n "$ac_tool_prefix"; then
4321   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}strip; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_STRIP+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   if test -n "$STRIP"; then
4329   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343 done
4344
4345 fi
4346 fi
4347 STRIP=$ac_cv_prog_STRIP
4348 if test -n "$STRIP"; then
4349   echo "$as_me:$LINENO: result: $STRIP" >&5
4350 echo "${ECHO_T}$STRIP" >&6
4351 else
4352   echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4354 fi
4355
4356 fi
4357 if test -z "$ac_cv_prog_STRIP"; then
4358   ac_ct_STRIP=$STRIP
4359   # Extract the first word of "strip", so it can be a program name with args.
4360 set dummy strip; ac_word=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   if test -n "$ac_ct_STRIP"; then
4367   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374   for ac_exec_ext in '' $ac_executable_extensions; do
4375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376     ac_cv_prog_ac_ct_STRIP="strip"
4377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381 done
4382
4383   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4384 fi
4385 fi
4386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4387 if test -n "$ac_ct_STRIP"; then
4388   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4389 echo "${ECHO_T}$ac_ct_STRIP" >&6
4390 else
4391   echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4393 fi
4394
4395   STRIP=$ac_ct_STRIP
4396 else
4397   STRIP="$ac_cv_prog_STRIP"
4398 fi
4399
4400
4401 enable_dlopen=no
4402 enable_win32_dll=no
4403
4404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406   enableval="$enable_libtool_lock"
4407
4408 fi;
4409 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4410
4411 # Some flags need to be propagated to the compiler or linker for good
4412 # libtool support.
4413 case $host in
4414 *-*-irix6*)
4415   # Find out which ABI we are using.
4416   echo '#line 4416 "configure"' > conftest.$ac_ext
4417   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418   (eval $ac_compile) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; then
4422     case `/usr/bin/file conftest.$ac_objext` in
4423     *32-bit*)
4424       LD="${LD-ld} -32"
4425       ;;
4426     *N32*)
4427       LD="${LD-ld} -n32"
4428       ;;
4429     *64-bit*)
4430       LD="${LD-ld} -64"
4431       ;;
4432     esac
4433   fi
4434   rm -rf conftest*
4435   ;;
4436
4437 *-*-sco3.2v5*)
4438   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4439   SAVE_CFLAGS="$CFLAGS"
4440   CFLAGS="$CFLAGS -belf"
4441   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4442 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4443 if test "${lt_cv_cc_needs_belf+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446
4447
4448      ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454      cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4456 #include "confdefs.h"
4457
4458 int
4459 main ()
4460 {
4461
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468   (eval $ac_link) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -s conftest$ac_exeext'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; }; then
4478   lt_cv_cc_needs_belf=yes
4479 else
4480   echo "$as_me: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4482 lt_cv_cc_needs_belf=no
4483 fi
4484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4485      ac_ext=c
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
4491 fi
4492 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4493 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4494   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4495     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4496     CFLAGS="$SAVE_CFLAGS"
4497   fi
4498   ;;
4499
4500
4501 esac
4502
4503 # Sed substitution that helps us do robust quoting.  It backslashifies
4504 # metacharacters that are still active within double-quoted strings.
4505 Xsed='sed -e s/^X//'
4506 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4507
4508 # Same as above, but do not quote variable references.
4509 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4510
4511 # Sed substitution to delay expansion of an escaped shell variable in a
4512 # double_quote_subst'ed string.
4513 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4514
4515 # Constants:
4516 rm="rm -f"
4517
4518 # Global variables:
4519 default_ofile=libtool
4520 can_build_shared=yes
4521
4522 # All known linkers require a `.a' archive for static linking (except M$VC,
4523 # which needs '.lib').
4524 libext=a
4525 ltmain="$ac_aux_dir/ltmain.sh"
4526 ofile="$default_ofile"
4527 with_gnu_ld="$lt_cv_prog_gnu_ld"
4528 need_locks="$enable_libtool_lock"
4529
4530 old_CC="$CC"
4531 old_CFLAGS="$CFLAGS"
4532
4533 # Set sane defaults for various variables
4534 test -z "$AR" && AR=ar
4535 test -z "$AR_FLAGS" && AR_FLAGS=cru
4536 test -z "$AS" && AS=as
4537 test -z "$CC" && CC=cc
4538 test -z "$DLLTOOL" && DLLTOOL=dlltool
4539 test -z "$LD" && LD=ld
4540 test -z "$LN_S" && LN_S="ln -s"
4541 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4542 test -z "$NM" && NM=nm
4543 test -z "$OBJDUMP" && OBJDUMP=objdump
4544 test -z "$RANLIB" && RANLIB=:
4545 test -z "$STRIP" && STRIP=:
4546 test -z "$ac_objext" && ac_objext=o
4547
4548 if test x"$host" != x"$build"; then
4549   ac_tool_prefix=${host_alias}-
4550 else
4551   ac_tool_prefix=
4552 fi
4553
4554 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4555 case $host_os in
4556 linux-gnu*) ;;
4557 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4558 esac
4559
4560 case $host_os in
4561 aix3*)
4562   # AIX sometimes has problems with the GCC collect2 program.  For some
4563   # reason, if we set the COLLECT_NAMES environment variable, the problems
4564   # vanish in a puff of smoke.
4565   if test "X${COLLECT_NAMES+set}" != Xset; then
4566     COLLECT_NAMES=
4567     export COLLECT_NAMES
4568   fi
4569   ;;
4570 esac
4571
4572 # Determine commands to create old-style static archives.
4573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4574 old_postinstall_cmds='chmod 644 $oldlib'
4575 old_postuninstall_cmds=
4576
4577 if test -n "$RANLIB"; then
4578   case $host_os in
4579   openbsd*)
4580     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4581     ;;
4582   *)
4583     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4584     ;;
4585   esac
4586   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4587 fi
4588
4589 # Allow CC to be a program name with arguments.
4590 set dummy $CC
4591 compiler="$2"
4592
4593 echo "$as_me:$LINENO: checking for objdir" >&5
4594 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4595 rm -f .libs 2>/dev/null
4596 mkdir .libs 2>/dev/null
4597 if test -d .libs; then
4598   objdir=.libs
4599 else
4600   # MS-DOS does not allow filenames that begin with a dot.
4601   objdir=_libs
4602 fi
4603 rmdir .libs 2>/dev/null
4604 echo "$as_me:$LINENO: result: $objdir" >&5
4605 echo "${ECHO_T}$objdir" >&6
4606
4607
4608
4609 # Check whether --with-pic or --without-pic was given.
4610 if test "${with_pic+set}" = set; then
4611   withval="$with_pic"
4612   pic_mode="$withval"
4613 else
4614   pic_mode=default
4615 fi;
4616 test -z "$pic_mode" && pic_mode=default
4617
4618 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4619 # in isolation, and that seeing it set (from the cache) indicates that
4620 # the associated values are set (in the cache) correctly too.
4621 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4622 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4623 if test "${lt_cv_prog_cc_pic+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626    lt_cv_prog_cc_pic=
4627   lt_cv_prog_cc_shlib=
4628   lt_cv_prog_cc_wl=
4629   lt_cv_prog_cc_static=
4630   lt_cv_prog_cc_no_builtin=
4631   lt_cv_prog_cc_can_build_shared=$can_build_shared
4632
4633   if test "$GCC" = yes; then
4634     lt_cv_prog_cc_wl='-Wl,'
4635     lt_cv_prog_cc_static='-static'
4636
4637     case $host_os in
4638     aix*)
4639       # Below there is a dirty hack to force normal static linking with -ldl
4640       # The problem is because libdl dynamically linked with both libc and
4641       # libC (AIX C++ library), which obviously doesn't included in libraries
4642       # list by gcc. This cause undefined symbols with -static flags.
4643       # This hack allows C programs to be linked with "-static -ldl", but
4644       # not sure about C++ programs.
4645       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4646       ;;
4647     amigaos*)
4648       # FIXME: we need at least 68020 code to build shared libraries, but
4649       # adding the `-m68020' flag to GCC prevents building anything better,
4650       # like `-m68040'.
4651       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4652       ;;
4653     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4654       # PIC is the default for these OSes.
4655       ;;
4656     darwin* | rhapsody*)
4657       # PIC is the default on this platform
4658       # Common symbols not allowed in MH_DYLIB files
4659       lt_cv_prog_cc_pic='-fno-common'
4660       ;;
4661     cygwin* | mingw* | pw32* | os2*)
4662       # This hack is so that the source file can tell whether it is being
4663       # built for inclusion in a dll (and should export symbols for example).
4664       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4665       ;;
4666     sysv4*MP*)
4667       if test -d /usr/nec; then
4668          lt_cv_prog_cc_pic=-Kconform_pic
4669       fi
4670       ;;
4671     *)
4672       lt_cv_prog_cc_pic='-fPIC'
4673       ;;
4674     esac
4675   else
4676     # PORTME Check for PIC flags for the system compiler.
4677     case $host_os in
4678     aix3* | aix4* | aix5*)
4679       lt_cv_prog_cc_wl='-Wl,'
4680       # All AIX code is PIC.
4681       if test "$host_cpu" = ia64; then
4682         # AIX 5 now supports IA64 processor
4683         lt_cv_prog_cc_static='-Bstatic'
4684       else
4685         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4686       fi
4687       ;;
4688
4689     hpux9* | hpux10* | hpux11*)
4690       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4691       lt_cv_prog_cc_wl='-Wl,'
4692       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4693       lt_cv_prog_cc_pic='+Z'
4694       ;;
4695
4696     irix5* | irix6* | nonstopux*)
4697       lt_cv_prog_cc_wl='-Wl,'
4698       lt_cv_prog_cc_static='-non_shared'
4699       # PIC (with -KPIC) is the default.
4700       ;;
4701
4702     cygwin* | mingw* | pw32* | os2*)
4703       # This hack is so that the source file can tell whether it is being
4704       # built for inclusion in a dll (and should export symbols for example).
4705       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4706       ;;
4707
4708     newsos6)
4709       lt_cv_prog_cc_pic='-KPIC'
4710       lt_cv_prog_cc_static='-Bstatic'
4711       ;;
4712
4713     osf3* | osf4* | osf5*)
4714       # All OSF/1 code is PIC.
4715       lt_cv_prog_cc_wl='-Wl,'
4716       lt_cv_prog_cc_static='-non_shared'
4717       ;;
4718
4719     sco3.2v5*)
4720       lt_cv_prog_cc_pic='-Kpic'
4721       lt_cv_prog_cc_static='-dn'
4722       lt_cv_prog_cc_shlib='-belf'
4723       ;;
4724
4725     solaris*)
4726       lt_cv_prog_cc_pic='-KPIC'
4727       lt_cv_prog_cc_static='-Bstatic'
4728       lt_cv_prog_cc_wl='-Wl,'
4729       ;;
4730
4731     sunos4*)
4732       lt_cv_prog_cc_pic='-PIC'
4733       lt_cv_prog_cc_static='-Bstatic'
4734       lt_cv_prog_cc_wl='-Qoption ld '
4735       ;;
4736
4737     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4738       lt_cv_prog_cc_pic='-KPIC'
4739       lt_cv_prog_cc_static='-Bstatic'
4740       lt_cv_prog_cc_wl='-Wl,'
4741       ;;
4742
4743     uts4*)
4744       lt_cv_prog_cc_pic='-pic'
4745       lt_cv_prog_cc_static='-Bstatic'
4746       ;;
4747
4748     sysv4*MP*)
4749       if test -d /usr/nec ;then
4750         lt_cv_prog_cc_pic='-Kconform_pic'
4751         lt_cv_prog_cc_static='-Bstatic'
4752       fi
4753       ;;
4754
4755     *)
4756       lt_cv_prog_cc_can_build_shared=no
4757       ;;
4758     esac
4759   fi
4760
4761 fi
4762
4763 if test -z "$lt_cv_prog_cc_pic"; then
4764   echo "$as_me:$LINENO: result: none" >&5
4765 echo "${ECHO_T}none" >&6
4766 else
4767   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4768 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4769
4770   # Check to make sure the pic_flag actually works.
4771   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4772 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4773   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776       save_CFLAGS="$CFLAGS"
4777     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4778     cat >conftest.$ac_ext <<_ACEOF
4779 #line $LINENO "configure"
4780 #include "confdefs.h"
4781
4782 int
4783 main ()
4784 {
4785
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792   (eval $ac_compile) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } &&
4796          { ac_try='test -s conftest.$ac_objext'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; }; then
4802         case $host_os in
4803       hpux9* | hpux10* | hpux11*)
4804         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4805         # they create non-PIC objects.  So, if there were any warnings, we
4806         # assume that PIC is not supported.
4807         if test -s conftest.err; then
4808           lt_cv_prog_cc_pic_works=no
4809         else
4810           lt_cv_prog_cc_pic_works=yes
4811         fi
4812         ;;
4813       *)
4814         lt_cv_prog_cc_pic_works=yes
4815         ;;
4816       esac
4817
4818 else
4819   echo "$as_me: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821       lt_cv_prog_cc_pic_works=no
4822
4823 fi
4824 rm -f conftest.$ac_objext conftest.$ac_ext
4825     CFLAGS="$save_CFLAGS"
4826
4827 fi
4828
4829
4830   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4831     lt_cv_prog_cc_pic=
4832     lt_cv_prog_cc_can_build_shared=no
4833   else
4834     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4835   fi
4836
4837   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4838 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4839 fi
4840
4841 # Check for any special shared library compilation flags.
4842 if test -n "$lt_cv_prog_cc_shlib"; then
4843   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4844 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4845   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4846   else
4847    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4848 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4849     lt_cv_prog_cc_can_build_shared=no
4850   fi
4851 fi
4852
4853 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4854 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4855 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858     lt_cv_prog_cc_static_works=no
4859   save_LDFLAGS="$LDFLAGS"
4860   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4861   cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4863 #include "confdefs.h"
4864
4865 int
4866 main ()
4867 {
4868
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875   (eval $ac_link) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } &&
4879          { ac_try='test -s conftest$ac_exeext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   lt_cv_prog_cc_static_works=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 fi
4890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4891   LDFLAGS="$save_LDFLAGS"
4892
4893 fi
4894
4895
4896 # Belt *and* braces to stop my trousers falling down:
4897 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4898 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4899 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4900
4901 pic_flag="$lt_cv_prog_cc_pic"
4902 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4903 wl="$lt_cv_prog_cc_wl"
4904 link_static_flag="$lt_cv_prog_cc_static"
4905 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4906 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4907
4908
4909 # Check to see if options -o and -c are simultaneously supported by compiler
4910 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4911 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4912 if test "${lt_cv_compiler_c_o+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915
4916 $rm -r conftest 2>/dev/null
4917 mkdir conftest
4918 cd conftest
4919 echo "int some_variable = 0;" > conftest.$ac_ext
4920 mkdir out
4921 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4922 # that will create temporary files in the current directory regardless of
4923 # the output directory.  Thus, making CWD read-only will cause this test
4924 # to fail, enabling locking or at least warning the user not to do parallel
4925 # builds.
4926 chmod -w .
4927 save_CFLAGS="$CFLAGS"
4928 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4929 compiler_c_o=no
4930 if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4931   # The compiler can only warn and ignore the option if not recognized
4932   # So say no if there are warnings
4933   if test -s out/conftest.err; then
4934     lt_cv_compiler_c_o=no
4935   else
4936     lt_cv_compiler_c_o=yes
4937   fi
4938 else
4939   # Append any errors to the config.log.
4940   cat out/conftest.err 1>&5
4941   lt_cv_compiler_c_o=no
4942 fi
4943 CFLAGS="$save_CFLAGS"
4944 chmod u+w .
4945 $rm conftest* out/*
4946 rmdir out
4947 cd ..
4948 rmdir conftest
4949 $rm -r conftest 2>/dev/null
4950
4951 fi
4952
4953 compiler_c_o=$lt_cv_compiler_c_o
4954 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4955 echo "${ECHO_T}$compiler_c_o" >&6
4956
4957 if test x"$compiler_c_o" = x"yes"; then
4958   # Check to see if we can write to a .lo
4959   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4960 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4961   if test "${lt_cv_compiler_o_lo+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964
4965   lt_cv_compiler_o_lo=no
4966   save_CFLAGS="$CFLAGS"
4967   CFLAGS="$CFLAGS -c -o conftest.lo"
4968   save_objext="$ac_objext"
4969   ac_objext=lo
4970   cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 #include "confdefs.h"
4973
4974 int
4975 main ()
4976 {
4977 int some_variable = 0;
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984   (eval $ac_compile) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -s conftest.$ac_objext'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; }; then
4994       # The compiler can only warn and ignore the option if not recognized
4995     # So say no if there are warnings
4996     if test -s conftest.err; then
4997       lt_cv_compiler_o_lo=no
4998     else
4999       lt_cv_compiler_o_lo=yes
5000     fi
5001
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5005 fi
5006 rm -f conftest.$ac_objext conftest.$ac_ext
5007   ac_objext="$save_objext"
5008   CFLAGS="$save_CFLAGS"
5009
5010 fi
5011
5012   compiler_o_lo=$lt_cv_compiler_o_lo
5013   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5014 echo "${ECHO_T}$compiler_o_lo" >&6
5015 else
5016   compiler_o_lo=no
5017 fi
5018
5019 # Check to see if we can do hard links to lock some files if needed
5020 hard_links="nottested"
5021 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5022   # do not overwrite the value of need_locks provided by the user
5023   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5024 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5025   hard_links=yes
5026   $rm conftest*
5027   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5028   touch conftest.a
5029   ln conftest.a conftest.b 2>&5 || hard_links=no
5030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5031   echo "$as_me:$LINENO: result: $hard_links" >&5
5032 echo "${ECHO_T}$hard_links" >&6
5033   if test "$hard_links" = no; then
5034     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5035 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5036     need_locks=warn
5037   fi
5038 else
5039   need_locks=no
5040 fi
5041
5042 if test "$GCC" = yes; then
5043   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5044   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5045 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5046   echo "int some_variable = 0;" > conftest.$ac_ext
5047   save_CFLAGS="$CFLAGS"
5048   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5049   compiler_rtti_exceptions=no
5050   cat >conftest.$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5052 #include "confdefs.h"
5053
5054 int
5055 main ()
5056 {
5057 int some_variable = 0;
5058   ;
5059   return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064   (eval $ac_compile) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } &&
5068          { ac_try='test -s conftest.$ac_objext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074       # The compiler can only warn and ignore the option if not recognized
5075     # So say no if there are warnings
5076     if test -s conftest.err; then
5077       compiler_rtti_exceptions=no
5078     else
5079       compiler_rtti_exceptions=yes
5080     fi
5081
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 fi
5086 rm -f conftest.$ac_objext conftest.$ac_ext
5087   CFLAGS="$save_CFLAGS"
5088   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5089 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5090
5091   if test "$compiler_rtti_exceptions" = "yes"; then
5092     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5093   else
5094     no_builtin_flag=' -fno-builtin'
5095   fi
5096 fi
5097
5098 # See if the linker supports building shared libraries.
5099 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5100 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5101
5102 allow_undefined_flag=
5103 no_undefined_flag=
5104 need_lib_prefix=unknown
5105 need_version=unknown
5106 # when you set need_version to no, make sure it does not cause -set_version
5107 # flags to be left without arguments
5108 archive_cmds=
5109 archive_expsym_cmds=
5110 old_archive_from_new_cmds=
5111 old_archive_from_expsyms_cmds=
5112 export_dynamic_flag_spec=
5113 whole_archive_flag_spec=
5114 thread_safe_flag_spec=
5115 hardcode_into_libs=no
5116 hardcode_libdir_flag_spec=
5117 hardcode_libdir_separator=
5118 hardcode_direct=no
5119 hardcode_minus_L=no
5120 hardcode_shlibpath_var=unsupported
5121 runpath_var=
5122 link_all_deplibs=unknown
5123 always_export_symbols=no
5124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5125 # include_expsyms should be a list of space-separated symbols to be *always*
5126 # included in the symbol list
5127 include_expsyms=
5128 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5130 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5131 # as well as any symbol that contains `d'.
5132 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5134 # platforms (ab)use it in PIC code, but their linkers get confused if
5135 # the symbol is explicitly referenced.  Since portable code cannot
5136 # rely on this symbol name, it's probably fine to never include it in
5137 # preloaded symbol tables.
5138 extract_expsyms_cmds=
5139
5140 case $host_os in
5141 cygwin* | mingw* | pw32*)
5142   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5143   # When not using gcc, we currently assume that we are using
5144   # Microsoft Visual C++.
5145   if test "$GCC" != yes; then
5146     with_gnu_ld=no
5147   fi
5148   ;;
5149 openbsd*)
5150   with_gnu_ld=no
5151   ;;
5152 esac
5153
5154 ld_shlibs=yes
5155 if test "$with_gnu_ld" = yes; then
5156   # If archive_cmds runs LD, not CC, wlarc should be empty
5157   wlarc='${wl}'
5158
5159   # See if GNU ld supports shared libraries.
5160   case $host_os in
5161   aix3* | aix4* | aix5*)
5162     # On AIX, the GNU linker is very broken
5163     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5164     ld_shlibs=no
5165     cat <<EOF 1>&2
5166
5167 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5168 *** to be unable to reliably create shared libraries on AIX.
5169 *** Therefore, libtool is disabling shared libraries support.  If you
5170 *** really care for shared libraries, you may want to modify your PATH
5171 *** so that a non-GNU linker is found, and then restart.
5172
5173 EOF
5174     ;;
5175
5176   amigaos*)
5177     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)'
5178     hardcode_libdir_flag_spec='-L$libdir'
5179     hardcode_minus_L=yes
5180
5181     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5182     # that the semantics of dynamic libraries on AmigaOS, at least up
5183     # to version 4, is to share data among multiple programs linked
5184     # with the same dynamic library.  Since this doesn't match the
5185     # behavior of shared libraries on other platforms, we can use
5186     # them.
5187     ld_shlibs=no
5188     ;;
5189
5190   beos*)
5191     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5192       allow_undefined_flag=unsupported
5193       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5194       # support --undefined.  This deserves some investigation.  FIXME
5195       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5196     else
5197       ld_shlibs=no
5198     fi
5199     ;;
5200
5201   cygwin* | mingw* | pw32*)
5202     # hardcode_libdir_flag_spec is actually meaningless, as there is
5203     # no search path for DLLs.
5204     hardcode_libdir_flag_spec='-L$libdir'
5205     allow_undefined_flag=unsupported
5206     always_export_symbols=yes
5207
5208     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5209       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5210       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5211       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5212       else $CC -o impgen impgen.c ; fi)~
5213       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5214
5215     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5216
5217     # cygwin and mingw dlls have different entry points and sets of symbols
5218     # to exclude.
5219     # FIXME: what about values for MSVC?
5220     dll_entry=__cygwin_dll_entry@12
5221     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5222     case $host_os in
5223     mingw*)
5224       # mingw values
5225       dll_entry=_DllMainCRTStartup@12
5226       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5227       ;;
5228     esac
5229
5230     # mingw and cygwin differ, and it's simplest to just exclude the union
5231     # of the two symbol sets.
5232     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5233
5234     # recent cygwin and mingw systems supply a stub DllMain which the user
5235     # can override, but on older systems we have to supply one (in ltdll.c)
5236     if test "x$lt_cv_need_dllmain" = "xyes"; then
5237       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5238       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~
5239         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5240     else
5241       ltdll_obj=
5242       ltdll_cmds=
5243     fi
5244
5245     # Extract the symbol export list from an `--export-all' def file,
5246     # then regenerate the def file from the symbol export list, so that
5247     # the compiled dll only exports the symbol export list.
5248     # Be careful not to strip the DATA tag left be newer dlltools.
5249     export_symbols_cmds="$ltdll_cmds"'
5250       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5251       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5252
5253     # If the export-symbols file already is a .def file (1st line
5254     # is EXPORTS), use it as is.
5255     # If DATA tags from a recent dlltool are present, honour them!
5256     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5257         cp $export_symbols $output_objdir/$soname-def;
5258       else
5259         echo EXPORTS > $output_objdir/$soname-def;
5260         _lt_hint=1;
5261         cat $export_symbols | while read symbol; do
5262          set dummy \$symbol;
5263          case \$# in
5264            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5265            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5266            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5267          esac;
5268          _lt_hint=`expr 1 + \$_lt_hint`;
5269         done;
5270       fi~
5271       '"$ltdll_cmds"'
5272       $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~
5273       $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~
5274       $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~
5275       $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~
5276       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5277     ;;
5278
5279   netbsd*)
5280     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5281       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5282       wlarc=
5283     else
5284       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5285       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5286     fi
5287     ;;
5288
5289   solaris* | sysv5*)
5290     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5291       ld_shlibs=no
5292       cat <<EOF 1>&2
5293
5294 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5295 *** create shared libraries on Solaris systems.  Therefore, libtool
5296 *** is disabling shared libraries support.  We urge you to upgrade GNU
5297 *** binutils to release 2.9.1 or newer.  Another option is to modify
5298 *** your PATH or compiler configuration so that the native linker is
5299 *** used, and then restart.
5300
5301 EOF
5302     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5303       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5304       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5305     else
5306       ld_shlibs=no
5307     fi
5308     ;;
5309
5310   sunos4*)
5311     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5312     wlarc=
5313     hardcode_direct=yes
5314     hardcode_shlibpath_var=no
5315     ;;
5316
5317   *)
5318     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5319       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5320       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5321     else
5322       ld_shlibs=no
5323     fi
5324     ;;
5325   esac
5326
5327   if test "$ld_shlibs" = yes; then
5328     runpath_var=LD_RUN_PATH
5329     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5330     export_dynamic_flag_spec='${wl}--export-dynamic'
5331     case $host_os in
5332     cygwin* | mingw* | pw32*)
5333       # dlltool doesn't understand --whole-archive et. al.
5334       whole_archive_flag_spec=
5335       ;;
5336     *)
5337       # ancient GNU ld didn't support --whole-archive et. al.
5338       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5339         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5340       else
5341         whole_archive_flag_spec=
5342       fi
5343       ;;
5344     esac
5345   fi
5346 else
5347   # PORTME fill in a description of your system's linker (not GNU ld)
5348   case $host_os in
5349   aix3*)
5350     allow_undefined_flag=unsupported
5351     always_export_symbols=yes
5352     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'
5353     # Note: this linker hardcodes the directories in LIBPATH if there
5354     # are no directories specified by -L.
5355     hardcode_minus_L=yes
5356     if test "$GCC" = yes && test -z "$link_static_flag"; then
5357       # Neither direct hardcoding nor static linking is supported with a
5358       # broken collect2.
5359       hardcode_direct=unsupported
5360     fi
5361     ;;
5362
5363   aix4* | aix5*)
5364     if test "$host_cpu" = ia64; then
5365       # On IA64, the linker does run time linking by default, so we don't
5366       # have to do anything special.
5367       aix_use_runtimelinking=no
5368       exp_sym_flag='-Bexport'
5369       no_entry_flag=""
5370     else
5371       aix_use_runtimelinking=no
5372
5373       # Test if we are trying to use run time linking or normal
5374       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5375       # need to do runtime linking.
5376       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5377         for ld_flag in $LDFLAGS; do
5378           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5379             aix_use_runtimelinking=yes
5380             break
5381           fi
5382         done
5383       esac
5384
5385       exp_sym_flag='-bexport'
5386       no_entry_flag='-bnoentry'
5387     fi
5388
5389     # When large executables or shared objects are built, AIX ld can
5390     # have problems creating the table of contents.  If linking a library
5391     # or program results in "error TOC overflow" add -mminimal-toc to
5392     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5393     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5394
5395     hardcode_direct=yes
5396     archive_cmds=''
5397     hardcode_libdir_separator=':'
5398     if test "$GCC" = yes; then
5399       case $host_os in aix4.[012]|aix4.[012].*)
5400         collect2name=`${CC} -print-prog-name=collect2`
5401         if test -f "$collect2name" && \
5402           strings "$collect2name" | grep resolve_lib_name >/dev/null
5403         then
5404           # We have reworked collect2
5405           hardcode_direct=yes
5406         else
5407           # We have old collect2
5408           hardcode_direct=unsupported
5409           # It fails to find uninstalled libraries when the uninstalled
5410           # path is not listed in the libpath.  Setting hardcode_minus_L
5411           # to unsupported forces relinking
5412           hardcode_minus_L=yes
5413           hardcode_libdir_flag_spec='-L$libdir'
5414           hardcode_libdir_separator=
5415         fi
5416       esac
5417
5418       shared_flag='-shared'
5419     else
5420       # not using gcc
5421       if test "$host_cpu" = ia64; then
5422         shared_flag='${wl}-G'
5423       else
5424         if test "$aix_use_runtimelinking" = yes; then
5425           shared_flag='${wl}-G'
5426         else
5427           shared_flag='${wl}-bM:SRE'
5428         fi
5429       fi
5430     fi
5431
5432     # It seems that -bexpall can do strange things, so it is better to
5433     # generate a list of symbols to export.
5434     always_export_symbols=yes
5435     if test "$aix_use_runtimelinking" = yes; then
5436       # Warning - without using the other runtime loading flags (-brtl),
5437       # -berok will link without error, but may produce a broken library.
5438       allow_undefined_flag='-berok'
5439       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5440       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"
5441     else
5442       if test "$host_cpu" = ia64; then
5443         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5444         allow_undefined_flag="-z nodefs"
5445         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"
5446       else
5447         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5448         # Warning - without using the other run time loading flags,
5449         # -berok will link without error, but may produce a broken library.
5450         allow_undefined_flag='${wl}-berok'
5451         # This is a bit strange, but is similar to how AIX traditionally builds
5452         # it's shared libraries.
5453         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'
5454       fi
5455     fi
5456     ;;
5457
5458   amigaos*)
5459     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)'
5460     hardcode_libdir_flag_spec='-L$libdir'
5461     hardcode_minus_L=yes
5462     # see comment about different semantics on the GNU ld section
5463     ld_shlibs=no
5464     ;;
5465
5466   cygwin* | mingw* | pw32*)
5467     # When not using gcc, we currently assume that we are using
5468     # Microsoft Visual C++.
5469     # hardcode_libdir_flag_spec is actually meaningless, as there is
5470     # no search path for DLLs.
5471     hardcode_libdir_flag_spec=' '
5472     allow_undefined_flag=unsupported
5473     # Tell ltmain to make .lib files, not .a files.
5474     libext=lib
5475     # FIXME: Setting linknames here is a bad hack.
5476     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5477     # The linker will automatically build a .lib file if we build a DLL.
5478     old_archive_from_new_cmds='true'
5479     # FIXME: Should let the user specify the lib program.
5480     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5481     fix_srcfile_path='`cygpath -w "$srcfile"`'
5482     ;;
5483
5484   darwin* | rhapsody*)
5485     case "$host_os" in
5486     rhapsody* | darwin1.[012])
5487       allow_undefined_flag='-undefined suppress'
5488       ;;
5489     *) # Darwin 1.3 on
5490       allow_undefined_flag='-flat_namespace -undefined suppress'
5491       ;;
5492     esac
5493     # FIXME: Relying on posixy $() will cause problems for
5494     #        cross-compilation, but unfortunately the echo tests do not
5495     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5496     #        `"' quotes if we put them in here... so don't!
5497     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5498     # We need to add '_' to the symbols in $export_symbols first
5499     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5500     hardcode_direct=yes
5501     hardcode_shlibpath_var=no
5502     whole_archive_flag_spec='-all_load $convenience'
5503     ;;
5504
5505   freebsd1*)
5506     ld_shlibs=no
5507     ;;
5508
5509   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5510   # support.  Future versions do this automatically, but an explicit c++rt0.o
5511   # does not break anything, and helps significantly (at the cost of a little
5512   # extra space).
5513   freebsd2.2*)
5514     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5515     hardcode_libdir_flag_spec='-R$libdir'
5516     hardcode_direct=yes
5517     hardcode_shlibpath_var=no
5518     ;;
5519
5520   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5521   freebsd2*)
5522     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5523     hardcode_direct=yes
5524     hardcode_minus_L=yes
5525     hardcode_shlibpath_var=no
5526     ;;
5527
5528   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5529   freebsd*)
5530     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5531     hardcode_libdir_flag_spec='-R$libdir'
5532     hardcode_direct=yes
5533     hardcode_shlibpath_var=no
5534     ;;
5535
5536   hpux9* | hpux10* | hpux11*)
5537     case $host_os in
5538     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' ;;
5539     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5540     esac
5541     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5542     hardcode_libdir_separator=:
5543     hardcode_direct=yes
5544     hardcode_minus_L=yes # Not in the search PATH, but as the default
5545                          # location of the library.
5546     export_dynamic_flag_spec='${wl}-E'
5547     ;;
5548
5549   irix5* | irix6* | nonstopux*)
5550     if test "$GCC" = yes; then
5551       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'
5552     else
5553       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'
5554     fi
5555     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5556     hardcode_libdir_separator=:
5557     link_all_deplibs=yes
5558     ;;
5559
5560   netbsd*)
5561     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5562       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5563     else
5564       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5565     fi
5566     hardcode_libdir_flag_spec='-R$libdir'
5567     hardcode_direct=yes
5568     hardcode_shlibpath_var=no
5569     ;;
5570
5571   newsos6)
5572     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5573     hardcode_direct=yes
5574     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5575     hardcode_libdir_separator=:
5576     hardcode_shlibpath_var=no
5577     ;;
5578
5579   openbsd*)
5580     hardcode_direct=yes
5581     hardcode_shlibpath_var=no
5582     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5583       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5584       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5585       export_dynamic_flag_spec='${wl}-E'
5586     else
5587       case "$host_os" in
5588       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5589         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5590         hardcode_libdir_flag_spec='-R$libdir'
5591         ;;
5592       *)
5593         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5594         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5595         ;;
5596       esac
5597     fi
5598     ;;
5599
5600   os2*)
5601     hardcode_libdir_flag_spec='-L$libdir'
5602     hardcode_minus_L=yes
5603     allow_undefined_flag=unsupported
5604     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'
5605     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5606     ;;
5607
5608   osf3*)
5609     if test "$GCC" = yes; then
5610       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5611       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'
5612     else
5613       allow_undefined_flag=' -expect_unresolved \*'
5614       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'
5615     fi
5616     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5617     hardcode_libdir_separator=:
5618     ;;
5619
5620   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5621     if test "$GCC" = yes; then
5622       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5623       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'
5624       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5625     else
5626       allow_undefined_flag=' -expect_unresolved \*'
5627       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'
5628       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5629       $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'
5630
5631       #Both c and cxx compiler support -rpath directly
5632       hardcode_libdir_flag_spec='-rpath $libdir'
5633     fi
5634     hardcode_libdir_separator=:
5635     ;;
5636
5637   sco3.2v5*)
5638     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5639     hardcode_shlibpath_var=no
5640     runpath_var=LD_RUN_PATH
5641     hardcode_runpath_var=yes
5642     export_dynamic_flag_spec='${wl}-Bexport'
5643     ;;
5644
5645   solaris*)
5646     # gcc --version < 3.0 without binutils cannot create self contained
5647     # shared libraries reliably, requiring libgcc.a to resolve some of
5648     # the object symbols generated in some cases.  Libraries that use
5649     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5650     # a copy of libgcc.a into every shared library to guarantee resolving
5651     # such symbols causes other problems:  According to Tim Van Holder
5652     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5653     # (to the application) exception stack for one thing.
5654     no_undefined_flag=' -z defs'
5655     if test "$GCC" = yes; then
5656       case `$CC --version 2>/dev/null` in
5657       [12].*)
5658         cat <<EOF 1>&2
5659
5660 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5661 *** create self contained shared libraries on Solaris systems, without
5662 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5663 *** -no-undefined support, which will at least allow you to build shared
5664 *** libraries.  However, you may find that when you link such libraries
5665 *** into an application without using GCC, you have to manually add
5666 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5667 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5668 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5669
5670 EOF
5671         no_undefined_flag=
5672         ;;
5673       esac
5674     fi
5675     # $CC -shared without GNU ld will not create a library from C++
5676     # object files and a static libstdc++, better avoid it by now
5677     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5679                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5680     hardcode_libdir_flag_spec='-R$libdir'
5681     hardcode_shlibpath_var=no
5682     case $host_os in
5683     solaris2.[0-5] | solaris2.[0-5].*) ;;
5684     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5685       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5686     esac
5687     link_all_deplibs=yes
5688     ;;
5689
5690   sunos4*)
5691     if test "x$host_vendor" = xsequent; then
5692       # Use $CC to link under sequent, because it throws in some extra .o
5693       # files that make .init and .fini sections work.
5694       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5695     else
5696       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5697     fi
5698     hardcode_libdir_flag_spec='-L$libdir'
5699     hardcode_direct=yes
5700     hardcode_minus_L=yes
5701     hardcode_shlibpath_var=no
5702     ;;
5703
5704   sysv4)
5705     case $host_vendor in
5706       sni)
5707         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5708         hardcode_direct=yes # is this really true???
5709         ;;
5710       siemens)
5711         ## LD is ld it makes a PLAMLIB
5712         ## CC just makes a GrossModule.
5713         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5714         reload_cmds='$CC -r -o $output$reload_objs'
5715         hardcode_direct=no
5716         ;;
5717       motorola)
5718         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5719         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5720         ;;
5721     esac
5722     runpath_var='LD_RUN_PATH'
5723     hardcode_shlibpath_var=no
5724     ;;
5725
5726   sysv4.3*)
5727     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5728     hardcode_shlibpath_var=no
5729     export_dynamic_flag_spec='-Bexport'
5730     ;;
5731
5732   sysv5*)
5733     no_undefined_flag=' -z text'
5734     # $CC -shared without GNU ld will not create a library from C++
5735     # object files and a static libstdc++, better avoid it by now
5736     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5737     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5738                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5739     hardcode_libdir_flag_spec=
5740     hardcode_shlibpath_var=no
5741     runpath_var='LD_RUN_PATH'
5742     ;;
5743
5744   uts4*)
5745     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5746     hardcode_libdir_flag_spec='-L$libdir'
5747     hardcode_shlibpath_var=no
5748     ;;
5749
5750   dgux*)
5751     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5752     hardcode_libdir_flag_spec='-L$libdir'
5753     hardcode_shlibpath_var=no
5754     ;;
5755
5756   sysv4*MP*)
5757     if test -d /usr/nec; then
5758       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5759       hardcode_shlibpath_var=no
5760       runpath_var=LD_RUN_PATH
5761       hardcode_runpath_var=yes
5762       ld_shlibs=yes
5763     fi
5764     ;;
5765
5766   sysv4.2uw2*)
5767     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5768     hardcode_direct=yes
5769     hardcode_minus_L=no
5770     hardcode_shlibpath_var=no
5771     hardcode_runpath_var=yes
5772     runpath_var=LD_RUN_PATH
5773     ;;
5774
5775   sysv5uw7* | unixware7*)
5776     no_undefined_flag='${wl}-z ${wl}text'
5777     if test "$GCC" = yes; then
5778       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5779     else
5780       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5781     fi
5782     runpath_var='LD_RUN_PATH'
5783     hardcode_shlibpath_var=no
5784     ;;
5785
5786   *)
5787     ld_shlibs=no
5788     ;;
5789   esac
5790 fi
5791 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5792 echo "${ECHO_T}$ld_shlibs" >&6
5793 test "$ld_shlibs" = no && can_build_shared=no
5794
5795 # Check hardcoding attributes.
5796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5798 hardcode_action=
5799 if test -n "$hardcode_libdir_flag_spec" || \
5800    test -n "$runpath_var"; then
5801
5802   # We can hardcode non-existant directories.
5803   if test "$hardcode_direct" != no &&
5804      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5805      # have to relink, otherwise we might link with an installed library
5806      # when we should be linking with a yet-to-be-installed one
5807      ## test "$hardcode_shlibpath_var" != no &&
5808      test "$hardcode_minus_L" != no; then
5809     # Linking always hardcodes the temporary library directory.
5810     hardcode_action=relink
5811   else
5812     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5813     hardcode_action=immediate
5814   fi
5815 else
5816   # We cannot hardcode anything, or else we can only hardcode existing
5817   # directories.
5818   hardcode_action=unsupported
5819 fi
5820 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5821 echo "${ECHO_T}$hardcode_action" >&6
5822
5823 striplib=
5824 old_striplib=
5825 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5826 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5827 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5828   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5829   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5830   echo "$as_me:$LINENO: result: yes" >&5
5831 echo "${ECHO_T}yes" >&6
5832 else
5833   echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5835 fi
5836
5837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5839
5840 # PORTME Fill in your ld.so characteristics
5841 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5843 library_names_spec=
5844 libname_spec='lib$name'
5845 soname_spec=
5846 postinstall_cmds=
5847 postuninstall_cmds=
5848 finish_cmds=
5849 finish_eval=
5850 shlibpath_var=
5851 shlibpath_overrides_runpath=unknown
5852 version_type=none
5853 dynamic_linker="$host_os ld.so"
5854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5856
5857 case $host_os in
5858 aix3*)
5859   version_type=linux
5860   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5861   shlibpath_var=LIBPATH
5862
5863   # AIX has no versioning support, so we append a major version to the name.
5864   soname_spec='${libname}${release}.so$major'
5865   ;;
5866
5867 aix4* | aix5*)
5868   version_type=linux
5869   if test "$host_cpu" = ia64; then
5870     # AIX 5 supports IA64
5871     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5872     shlibpath_var=LD_LIBRARY_PATH
5873   else
5874     # With GCC up to 2.95.x, collect2 would create an import file
5875     # for dependence libraries.  The import file would start with
5876     # the line `#! .'.  This would cause the generated library to
5877     # depend on `.', always an invalid library.  This was fixed in
5878     # development snapshots of GCC prior to 3.0.
5879     case $host_os in
5880       aix4 | aix4.[01] | aix4.[01].*)
5881         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5882              echo ' yes '
5883              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5884           :
5885         else
5886           can_build_shared=no
5887         fi
5888         ;;
5889     esac
5890     # AIX (on Power*) has no versioning support, so currently we can
5891     # not hardcode correct soname into executable. Probably we can
5892     # add versioning support to collect2, so additional links can
5893     # be useful in future.
5894     if test "$aix_use_runtimelinking" = yes; then
5895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5896       # instead of lib<name>.a to let people know that these are not
5897       # typical AIX shared libraries.
5898       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5899     else
5900       # We preserve .a as extension for shared libraries through AIX4.2
5901       # and later when we are not doing run time linking.
5902       library_names_spec='${libname}${release}.a $libname.a'
5903       soname_spec='${libname}${release}.so$major'
5904     fi
5905     shlibpath_var=LIBPATH
5906   fi
5907   ;;
5908
5909 amigaos*)
5910   library_names_spec='$libname.ixlibrary $libname.a'
5911   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5912   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5913   ;;
5914
5915 beos*)
5916   library_names_spec='${libname}.so'
5917   dynamic_linker="$host_os ld.so"
5918   shlibpath_var=LIBRARY_PATH
5919   ;;
5920
5921 bsdi4*)
5922   version_type=linux
5923   need_version=no
5924   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5925   soname_spec='${libname}${release}.so$major'
5926   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5927   shlibpath_var=LD_LIBRARY_PATH
5928   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5929   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5930   export_dynamic_flag_spec=-rdynamic
5931   # the default ld.so.conf also contains /usr/contrib/lib and
5932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5933   # libtool to hard-code these into programs
5934   ;;
5935
5936 cygwin* | mingw* | pw32*)
5937   version_type=windows
5938   need_version=no
5939   need_lib_prefix=no
5940   case $GCC,$host_os in
5941   yes,cygwin*)
5942     library_names_spec='$libname.dll.a'
5943     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5944     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5945       dldir=$destdir/`dirname \$dlpath`~
5946       test -d \$dldir || mkdir -p \$dldir~
5947       $install_prog .libs/$dlname \$dldir/$dlname'
5948     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5949       dlpath=$dir/\$dldll~
5950        $rm \$dlpath'
5951     ;;
5952   yes,mingw*)
5953     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5954     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5955     ;;
5956   yes,pw32*)
5957     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5958     ;;
5959   *)
5960     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5961     ;;
5962   esac
5963   dynamic_linker='Win32 ld.exe'
5964   # FIXME: first we should search . and the directory the executable is in
5965   shlibpath_var=PATH
5966   ;;
5967
5968 darwin* | rhapsody*)
5969   dynamic_linker="$host_os dyld"
5970   version_type=darwin
5971   need_lib_prefix=no
5972   need_version=no
5973   # FIXME: Relying on posixy $() will cause problems for
5974   #        cross-compilation, but unfortunately the echo tests do not
5975   #        yet detect zsh echo's removal of \ escapes.
5976   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5977   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5978   shlibpath_overrides_runpath=yes
5979   shlibpath_var=DYLD_LIBRARY_PATH
5980   ;;
5981
5982 freebsd1*)
5983   dynamic_linker=no
5984   ;;
5985
5986 freebsd*)
5987   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5988   version_type=freebsd-$objformat
5989   case $version_type in
5990     freebsd-elf*)
5991       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5992       need_version=no
5993       need_lib_prefix=no
5994       ;;
5995     freebsd-*)
5996       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5997       need_version=yes
5998       ;;
5999   esac
6000   shlibpath_var=LD_LIBRARY_PATH
6001   case $host_os in
6002   freebsd2*)
6003     shlibpath_overrides_runpath=yes
6004     ;;
6005   *)
6006     shlibpath_overrides_runpath=no
6007     hardcode_into_libs=yes
6008     ;;
6009   esac
6010   ;;
6011
6012 gnu*)
6013   version_type=linux
6014   need_lib_prefix=no
6015   need_version=no
6016   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6017   soname_spec='${libname}${release}.so$major'
6018   shlibpath_var=LD_LIBRARY_PATH
6019   hardcode_into_libs=yes
6020   ;;
6021
6022 hpux9* | hpux10* | hpux11*)
6023   # Give a soname corresponding to the major version so that dld.sl refuses to
6024   # link against other versions.
6025   dynamic_linker="$host_os dld.sl"
6026   version_type=sunos
6027   need_lib_prefix=no
6028   need_version=no
6029   shlibpath_var=SHLIB_PATH
6030   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6031   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6032   soname_spec='${libname}${release}.sl$major'
6033   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6034   postinstall_cmds='chmod 555 $lib'
6035   ;;
6036
6037 irix5* | irix6* | nonstopux*)
6038   case $host_os in
6039     nonstopux*) version_type=nonstopux ;;
6040     *)          version_type=irix ;;
6041   esac
6042   need_lib_prefix=no
6043   need_version=no
6044   soname_spec='${libname}${release}.so$major'
6045   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6046   case $host_os in
6047   irix5* | nonstopux*)
6048     libsuff= shlibsuff=
6049     ;;
6050   *)
6051     case $LD in # libtool.m4 will add one of these switches to LD
6052     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6053     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6054     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6055     *) libsuff= shlibsuff= libmagic=never-match;;
6056     esac
6057     ;;
6058   esac
6059   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6060   shlibpath_overrides_runpath=no
6061   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6062   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6063   ;;
6064
6065 # No shared lib support for Linux oldld, aout, or coff.
6066 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6067   dynamic_linker=no
6068   ;;
6069
6070 # This must be Linux ELF.
6071 linux-gnu*)
6072   version_type=linux
6073   need_lib_prefix=no
6074   need_version=no
6075   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6076   soname_spec='${libname}${release}.so$major'
6077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6078   shlibpath_var=LD_LIBRARY_PATH
6079   shlibpath_overrides_runpath=no
6080   # This implies no fast_install, which is unacceptable.
6081   # Some rework will be needed to allow for fast_install
6082   # before this can be enabled.
6083   hardcode_into_libs=yes
6084
6085   # We used to test for /lib/ld.so.1 and disable shared libraries on
6086   # powerpc, because MkLinux only supported shared libraries with the
6087   # GNU dynamic linker.  Since this was broken with cross compilers,
6088   # most powerpc-linux boxes support dynamic linking these days and
6089   # people can always --disable-shared, the test was removed, and we
6090   # assume the GNU/Linux dynamic linker is in use.
6091   dynamic_linker='GNU/Linux ld.so'
6092   ;;
6093
6094 netbsd*)
6095   version_type=sunos
6096   need_lib_prefix=no
6097   need_version=no
6098   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6099     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6100     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6101     dynamic_linker='NetBSD (a.out) ld.so'
6102   else
6103     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6104     soname_spec='${libname}${release}.so$major'
6105     dynamic_linker='NetBSD ld.elf_so'
6106   fi
6107   shlibpath_var=LD_LIBRARY_PATH
6108   shlibpath_overrides_runpath=yes
6109   hardcode_into_libs=yes
6110   ;;
6111
6112 newsos6)
6113   version_type=linux
6114   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6115   shlibpath_var=LD_LIBRARY_PATH
6116   shlibpath_overrides_runpath=yes
6117   ;;
6118
6119 openbsd*)
6120   version_type=sunos
6121   need_lib_prefix=no
6122   need_version=no
6123   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6124     case "$host_os" in
6125     openbsd2.[89] | openbsd2.[89].*)
6126       shlibpath_overrides_runpath=no
6127       ;;
6128     *)
6129       shlibpath_overrides_runpath=yes
6130       ;;
6131     esac
6132   else
6133     shlibpath_overrides_runpath=yes
6134   fi
6135   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6136   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6137   shlibpath_var=LD_LIBRARY_PATH
6138   ;;
6139
6140 os2*)
6141   libname_spec='$name'
6142   need_lib_prefix=no
6143   library_names_spec='$libname.dll $libname.a'
6144   dynamic_linker='OS/2 ld.exe'
6145   shlibpath_var=LIBPATH
6146   ;;
6147
6148 osf3* | osf4* | osf5*)
6149   version_type=osf
6150   need_version=no
6151   soname_spec='${libname}${release}.so'
6152   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6153   shlibpath_var=LD_LIBRARY_PATH
6154   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6155   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6156   ;;
6157
6158 sco3.2v5*)
6159   version_type=osf
6160   soname_spec='${libname}${release}.so$major'
6161   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6162   shlibpath_var=LD_LIBRARY_PATH
6163   ;;
6164
6165 solaris*)
6166   version_type=linux
6167   need_lib_prefix=no
6168   need_version=no
6169   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6170   soname_spec='${libname}${release}.so$major'
6171   shlibpath_var=LD_LIBRARY_PATH
6172   shlibpath_overrides_runpath=yes
6173   hardcode_into_libs=yes
6174   # ldd complains unless libraries are executable
6175   postinstall_cmds='chmod +x $lib'
6176   ;;
6177
6178 sunos4*)
6179   version_type=sunos
6180   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6181   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6182   shlibpath_var=LD_LIBRARY_PATH
6183   shlibpath_overrides_runpath=yes
6184   if test "$with_gnu_ld" = yes; then
6185     need_lib_prefix=no
6186   fi
6187   need_version=yes
6188   ;;
6189
6190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6191   version_type=linux
6192   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6193   soname_spec='${libname}${release}.so$major'
6194   shlibpath_var=LD_LIBRARY_PATH
6195   case $host_vendor in
6196     sni)
6197       shlibpath_overrides_runpath=no
6198       need_lib_prefix=no
6199       export_dynamic_flag_spec='${wl}-Blargedynsym'
6200       runpath_var=LD_RUN_PATH
6201       ;;
6202     siemens)
6203       need_lib_prefix=no
6204       ;;
6205     motorola)
6206       need_lib_prefix=no
6207       need_version=no
6208       shlibpath_overrides_runpath=no
6209       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6210       ;;
6211   esac
6212   ;;
6213
6214 uts4*)
6215   version_type=linux
6216   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6217   soname_spec='${libname}${release}.so$major'
6218   shlibpath_var=LD_LIBRARY_PATH
6219   ;;
6220
6221 dgux*)
6222   version_type=linux
6223   need_lib_prefix=no
6224   need_version=no
6225   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6226   soname_spec='${libname}${release}.so$major'
6227   shlibpath_var=LD_LIBRARY_PATH
6228   ;;
6229
6230 sysv4*MP*)
6231   if test -d /usr/nec ;then
6232     version_type=linux
6233     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6234     soname_spec='$libname.so.$major'
6235     shlibpath_var=LD_LIBRARY_PATH
6236   fi
6237   ;;
6238
6239 *)
6240   dynamic_linker=no
6241   ;;
6242 esac
6243 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6244 echo "${ECHO_T}$dynamic_linker" >&6
6245 test "$dynamic_linker" = no && can_build_shared=no
6246
6247 # Report the final consequences.
6248 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6249 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6250 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6251 echo "${ECHO_T}$can_build_shared" >&6
6252
6253 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6254 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6255 test "$can_build_shared" = "no" && enable_shared=no
6256
6257 # On AIX, shared libraries and static libraries use the same namespace, and
6258 # are all built from PIC.
6259 case "$host_os" in
6260 aix3*)
6261   test "$enable_shared" = yes && enable_static=no
6262   if test -n "$RANLIB"; then
6263     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6264     postinstall_cmds='$RANLIB $lib'
6265   fi
6266   ;;
6267
6268 aix4*)
6269   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6270     test "$enable_shared" = yes && enable_static=no
6271   fi
6272   ;;
6273 esac
6274 echo "$as_me:$LINENO: result: $enable_shared" >&5
6275 echo "${ECHO_T}$enable_shared" >&6
6276
6277 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6278 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6279 # Make sure either enable_shared or enable_static is yes.
6280 test "$enable_shared" = yes || enable_static=yes
6281 echo "$as_me:$LINENO: result: $enable_static" >&5
6282 echo "${ECHO_T}$enable_static" >&6
6283
6284 if test "$hardcode_action" = relink; then
6285   # Fast installation is not supported
6286   enable_fast_install=no
6287 elif test "$shlibpath_overrides_runpath" = yes ||
6288      test "$enable_shared" = no; then
6289   # Fast installation is not necessary
6290   enable_fast_install=needless
6291 fi
6292
6293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6294 if test "$GCC" = yes; then
6295   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6296 fi
6297
6298 if test "x$enable_dlopen" != xyes; then
6299   enable_dlopen=unknown
6300   enable_dlopen_self=unknown
6301   enable_dlopen_self_static=unknown
6302 else
6303   lt_cv_dlopen=no
6304   lt_cv_dlopen_libs=
6305
6306   case $host_os in
6307   beos*)
6308     lt_cv_dlopen="load_add_on"
6309     lt_cv_dlopen_libs=
6310     lt_cv_dlopen_self=yes
6311     ;;
6312
6313   cygwin* | mingw* | pw32*)
6314     lt_cv_dlopen="LoadLibrary"
6315     lt_cv_dlopen_libs=
6316    ;;
6317
6318   *)
6319     echo "$as_me:$LINENO: checking for shl_load" >&5
6320 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6321 if test "${ac_cv_func_shl_load+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes,
6328     which can conflict with char shl_load (); below.  */
6329 #include <assert.h>
6330 /* Override any gcc2 internal prototype to avoid an error.  */
6331 #ifdef __cplusplus
6332 extern "C"
6333 #endif
6334 /* We use char because int might match the return type of a gcc2
6335    builtin and then its argument prototype would still apply.  */
6336 char shl_load ();
6337 char (*f) ();
6338
6339 int
6340 main ()
6341 {
6342 /* The GNU C library defines this for functions which it implements
6343     to always fail with ENOSYS.  Some functions are actually named
6344     something starting with __ and the normal name is an alias.  */
6345 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6346 choke me
6347 #else
6348 f = shl_load;
6349 #endif
6350
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357   (eval $ac_link) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -s conftest$ac_exeext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   ac_cv_func_shl_load=yes
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6371 ac_cv_func_shl_load=no
6372 fi
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6374 fi
6375 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6376 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6377 if test $ac_cv_func_shl_load = yes; then
6378   lt_cv_dlopen="shl_load"
6379 else
6380   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6381 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6382 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   ac_check_lib_save_LIBS=$LIBS
6386 LIBS="-ldld  $LIBS"
6387 cat >conftest.$ac_ext <<_ACEOF
6388 #line $LINENO "configure"
6389 #include "confdefs.h"
6390
6391 /* Override any gcc2 internal prototype to avoid an error.  */
6392 #ifdef __cplusplus
6393 extern "C"
6394 #endif
6395 /* We use char because int might match the return type of a gcc2
6396    builtin and then its argument prototype would still apply.  */
6397 char shl_load ();
6398 int
6399 main ()
6400 {
6401 shl_load ();
6402   ;
6403   return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408   (eval $ac_link) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } &&
6412          { ac_try='test -s conftest$ac_exeext'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; }; then
6418   ac_cv_lib_dld_shl_load=yes
6419 else
6420   echo "$as_me: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6422 ac_cv_lib_dld_shl_load=no
6423 fi
6424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6425 LIBS=$ac_check_lib_save_LIBS
6426 fi
6427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6428 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6429 if test $ac_cv_lib_dld_shl_load = yes; then
6430   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6431 else
6432   echo "$as_me:$LINENO: checking for dlopen" >&5
6433 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6434 if test "${ac_cv_func_dlopen+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6440 /* System header to define __stub macros and hopefully few prototypes,
6441     which can conflict with char dlopen (); below.  */
6442 #include <assert.h>
6443 /* Override any gcc2 internal prototype to avoid an error.  */
6444 #ifdef __cplusplus
6445 extern "C"
6446 #endif
6447 /* We use char because int might match the return type of a gcc2
6448    builtin and then its argument prototype would still apply.  */
6449 char dlopen ();
6450 char (*f) ();
6451
6452 int
6453 main ()
6454 {
6455 /* The GNU C library defines this for functions which it implements
6456     to always fail with ENOSYS.  Some functions are actually named
6457     something starting with __ and the normal name is an alias.  */
6458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6459 choke me
6460 #else
6461 f = dlopen;
6462 #endif
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470   (eval $ac_link) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } &&
6474          { ac_try='test -s conftest$ac_exeext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   ac_cv_func_dlopen=yes
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6484 ac_cv_func_dlopen=no
6485 fi
6486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6487 fi
6488 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6489 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6490 if test $ac_cv_func_dlopen = yes; then
6491   lt_cv_dlopen="dlopen"
6492 else
6493   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6494 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6495 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   ac_check_lib_save_LIBS=$LIBS
6499 LIBS="-ldl  $LIBS"
6500 cat >conftest.$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6502 #include "confdefs.h"
6503
6504 /* Override any gcc2 internal prototype to avoid an error.  */
6505 #ifdef __cplusplus
6506 extern "C"
6507 #endif
6508 /* We use char because int might match the return type of a gcc2
6509    builtin and then its argument prototype would still apply.  */
6510 char dlopen ();
6511 int
6512 main ()
6513 {
6514 dlopen ();
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521   (eval $ac_link) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } &&
6525          { ac_try='test -s conftest$ac_exeext'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; }; then
6531   ac_cv_lib_dl_dlopen=yes
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 ac_cv_lib_dl_dlopen=no
6536 fi
6537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 LIBS=$ac_check_lib_save_LIBS
6539 fi
6540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6542 if test $ac_cv_lib_dl_dlopen = yes; then
6543   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6544 else
6545   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6546 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6547 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   ac_check_lib_save_LIBS=$LIBS
6551 LIBS="-lsvld  $LIBS"
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line $LINENO "configure"
6554 #include "confdefs.h"
6555
6556 /* Override any gcc2 internal prototype to avoid an error.  */
6557 #ifdef __cplusplus
6558 extern "C"
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561    builtin and then its argument prototype would still apply.  */
6562 char dlopen ();
6563 int
6564 main ()
6565 {
6566 dlopen ();
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
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); } &&
6577          { ac_try='test -s conftest$ac_exeext'
6578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579   (eval $ac_try) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); }; }; then
6583   ac_cv_lib_svld_dlopen=yes
6584 else
6585   echo "$as_me: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587 ac_cv_lib_svld_dlopen=no
6588 fi
6589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6591 fi
6592 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6593 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6594 if test $ac_cv_lib_svld_dlopen = yes; then
6595   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6596 else
6597   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6598 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6599 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   ac_check_lib_save_LIBS=$LIBS
6603 LIBS="-ldld  $LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 #include "confdefs.h"
6607
6608 /* Override any gcc2 internal prototype to avoid an error.  */
6609 #ifdef __cplusplus
6610 extern "C"
6611 #endif
6612 /* We use char because int might match the return type of a gcc2
6613    builtin and then its argument prototype would still apply.  */
6614 char dld_link ();
6615 int
6616 main ()
6617 {
6618 dld_link ();
6619   ;
6620   return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625   (eval $ac_link) 2>&5
6626   ac_status=$?
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } &&
6629          { ac_try='test -s conftest$ac_exeext'
6630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631   (eval $ac_try) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); }; }; then
6635   ac_cv_lib_dld_dld_link=yes
6636 else
6637   echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 ac_cv_lib_dld_dld_link=no
6640 fi
6641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6642 LIBS=$ac_check_lib_save_LIBS
6643 fi
6644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6646 if test $ac_cv_lib_dld_dld_link = yes; then
6647   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6648 fi
6649
6650
6651 fi
6652
6653
6654 fi
6655
6656
6657 fi
6658
6659
6660 fi
6661
6662
6663 fi
6664
6665     ;;
6666   esac
6667
6668   if test "x$lt_cv_dlopen" != xno; then
6669     enable_dlopen=yes
6670   else
6671     enable_dlopen=no
6672   fi
6673
6674   case $lt_cv_dlopen in
6675   dlopen)
6676     save_CPPFLAGS="$CPPFLAGS"
6677         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6678
6679     save_LDFLAGS="$LDFLAGS"
6680     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6681
6682     save_LIBS="$LIBS"
6683     LIBS="$lt_cv_dlopen_libs $LIBS"
6684
6685     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6687 if test "${lt_cv_dlopen_self+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690           if test "$cross_compiling" = yes; then :
6691   lt_cv_dlopen_self=cross
6692 else
6693     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6694   lt_status=$lt_dlunknown
6695   cat > conftest.$ac_ext <<EOF
6696 #line 6696 "configure"
6697 #include "confdefs.h"
6698
6699 #if HAVE_DLFCN_H
6700 #include <dlfcn.h>
6701 #endif
6702
6703 #include <stdio.h>
6704
6705 #ifdef RTLD_GLOBAL
6706 #  define LT_DLGLOBAL           RTLD_GLOBAL
6707 #else
6708 #  ifdef DL_GLOBAL
6709 #    define LT_DLGLOBAL         DL_GLOBAL
6710 #  else
6711 #    define LT_DLGLOBAL         0
6712 #  endif
6713 #endif
6714
6715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6716    find out it does not work in some platform. */
6717 #ifndef LT_DLLAZY_OR_NOW
6718 #  ifdef RTLD_LAZY
6719 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6720 #  else
6721 #    ifdef DL_LAZY
6722 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6723 #    else
6724 #      ifdef RTLD_NOW
6725 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6726 #      else
6727 #        ifdef DL_NOW
6728 #          define LT_DLLAZY_OR_NOW      DL_NOW
6729 #        else
6730 #          define LT_DLLAZY_OR_NOW      0
6731 #        endif
6732 #      endif
6733 #    endif
6734 #  endif
6735 #endif
6736
6737 #ifdef __cplusplus
6738 extern "C" void exit (int);
6739 #endif
6740
6741 void fnord() { int i=42;}
6742 int main ()
6743 {
6744   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6745   int status = $lt_dlunknown;
6746
6747   if (self)
6748     {
6749       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6750       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6751       /* dlclose (self); */
6752     }
6753
6754     exit (status);
6755 }
6756 EOF
6757   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758   (eval $ac_link) 2>&5
6759   ac_status=$?
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6762     (./conftest; exit; ) 2>/dev/null
6763     lt_status=$?
6764     case x$lt_status in
6765       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6766       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6767       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6768     esac
6769   else :
6770     # compilation failed
6771     lt_cv_dlopen_self=no
6772   fi
6773 fi
6774 rm -fr conftest*
6775
6776
6777 fi
6778 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6780
6781     if test "x$lt_cv_dlopen_self" = xyes; then
6782       LDFLAGS="$LDFLAGS $link_static_flag"
6783       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6785 if test "${lt_cv_dlopen_self_static+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788           if test "$cross_compiling" = yes; then :
6789   lt_cv_dlopen_self_static=cross
6790 else
6791     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6792   lt_status=$lt_dlunknown
6793   cat > conftest.$ac_ext <<EOF
6794 #line 6794 "configure"
6795 #include "confdefs.h"
6796
6797 #if HAVE_DLFCN_H
6798 #include <dlfcn.h>
6799 #endif
6800
6801 #include <stdio.h>
6802
6803 #ifdef RTLD_GLOBAL
6804 #  define LT_DLGLOBAL           RTLD_GLOBAL
6805 #else
6806 #  ifdef DL_GLOBAL
6807 #    define LT_DLGLOBAL         DL_GLOBAL
6808 #  else
6809 #    define LT_DLGLOBAL         0
6810 #  endif
6811 #endif
6812
6813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6814    find out it does not work in some platform. */
6815 #ifndef LT_DLLAZY_OR_NOW
6816 #  ifdef RTLD_LAZY
6817 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6818 #  else
6819 #    ifdef DL_LAZY
6820 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6821 #    else
6822 #      ifdef RTLD_NOW
6823 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6824 #      else
6825 #        ifdef DL_NOW
6826 #          define LT_DLLAZY_OR_NOW      DL_NOW
6827 #        else
6828 #          define LT_DLLAZY_OR_NOW      0
6829 #        endif
6830 #      endif
6831 #    endif
6832 #  endif
6833 #endif
6834
6835 #ifdef __cplusplus
6836 extern "C" void exit (int);
6837 #endif
6838
6839 void fnord() { int i=42;}
6840 int main ()
6841 {
6842   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6843   int status = $lt_dlunknown;
6844
6845   if (self)
6846     {
6847       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6848       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6849       /* dlclose (self); */
6850     }
6851
6852     exit (status);
6853 }
6854 EOF
6855   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856   (eval $ac_link) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6860     (./conftest; exit; ) 2>/dev/null
6861     lt_status=$?
6862     case x$lt_status in
6863       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6864       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6865       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6866     esac
6867   else :
6868     # compilation failed
6869     lt_cv_dlopen_self_static=no
6870   fi
6871 fi
6872 rm -fr conftest*
6873
6874
6875 fi
6876 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6877 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6878     fi
6879
6880     CPPFLAGS="$save_CPPFLAGS"
6881     LDFLAGS="$save_LDFLAGS"
6882     LIBS="$save_LIBS"
6883     ;;
6884   esac
6885
6886   case $lt_cv_dlopen_self in
6887   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6888   *) enable_dlopen_self=unknown ;;
6889   esac
6890
6891   case $lt_cv_dlopen_self_static in
6892   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6893   *) enable_dlopen_self_static=unknown ;;
6894   esac
6895 fi
6896
6897
6898 if test "$enable_shared" = yes && test "$GCC" = yes; then
6899   case $archive_cmds in
6900   *'~'*)
6901     # FIXME: we may have to deal with multi-command sequences.
6902     ;;
6903   '$CC '*)
6904     # Test whether the compiler implicitly links with -lc since on some
6905     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6906     # to ld, don't add -lc before -lgcc.
6907     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6909     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   $rm conftest*
6913     echo 'static int dummy;' > conftest.$ac_ext
6914
6915     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916   (eval $ac_compile) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; then
6920       soname=conftest
6921       lib=conftest
6922       libobjs=conftest.$ac_objext
6923       deplibs=
6924       wl=$lt_cv_prog_cc_wl
6925       compiler_flags=-v
6926       linker_flags=-v
6927       verstring=
6928       output_objdir=.
6929       libname=conftest
6930       save_allow_undefined_flag=$allow_undefined_flag
6931       allow_undefined_flag=
6932       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6933   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6934   ac_status=$?
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); }
6937       then
6938         lt_cv_archive_cmds_need_lc=no
6939       else
6940         lt_cv_archive_cmds_need_lc=yes
6941       fi
6942       allow_undefined_flag=$save_allow_undefined_flag
6943     else
6944       cat conftest.err 1>&5
6945     fi
6946 fi
6947
6948     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6949 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6950     ;;
6951   esac
6952 fi
6953 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6954
6955 # The second clause should only fire when bootstrapping the
6956 # libtool distribution, otherwise you forgot to ship ltmain.sh
6957 # with your package, and you will get complaints that there are
6958 # no rules to generate ltmain.sh.
6959 if test -f "$ltmain"; then
6960   :
6961 else
6962   # If there is no Makefile yet, we rely on a make rule to execute
6963   # `config.status --recheck' to rerun these tests and create the
6964   # libtool script then.
6965   test -f Makefile && make "$ltmain"
6966 fi
6967
6968 if test -f "$ltmain"; then
6969   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6970   $rm -f "${ofile}T"
6971
6972   echo creating $ofile
6973
6974   # Now quote all the things that may contain metacharacters while being
6975   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6976   # variables and quote the copies for generation of the libtool script.
6977   for var in echo old_CC old_CFLAGS SED \
6978     AR AR_FLAGS CC LD LN_S NM SHELL \
6979     reload_flag reload_cmds wl \
6980     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6981     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6982     library_names_spec soname_spec \
6983     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6984     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6985     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6986     old_striplib striplib file_magic_cmd export_symbols_cmds \
6987     deplibs_check_method allow_undefined_flag no_undefined_flag \
6988     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6989     global_symbol_to_c_name_address \
6990     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6991     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6992     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6993
6994     case $var in
6995     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6996     old_postinstall_cmds | old_postuninstall_cmds | \
6997     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6998     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6999     postinstall_cmds | postuninstall_cmds | \
7000     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7001       # Double-quote double-evaled strings.
7002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7003       ;;
7004     *)
7005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7006       ;;
7007     esac
7008   done
7009
7010   cat <<__EOF__ > "${ofile}T"
7011 #! $SHELL
7012
7013 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7014 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7015 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7016 #
7017 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7018 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7019 #
7020 # This program is free software; you can redistribute it and/or modify
7021 # it under the terms of the GNU General Public License as published by
7022 # the Free Software Foundation; either version 2 of the License, or
7023 # (at your option) any later version.
7024 #
7025 # This program is distributed in the hope that it will be useful, but
7026 # WITHOUT ANY WARRANTY; without even the implied warranty of
7027 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7028 # General Public License for more details.
7029 #
7030 # You should have received a copy of the GNU General Public License
7031 # along with this program; if not, write to the Free Software
7032 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7033 #
7034 # As a special exception to the GNU General Public License, if you
7035 # distribute this file as part of a program that contains a
7036 # configuration script generated by Autoconf, you may include it under
7037 # the same distribution terms that you use for the rest of that program.
7038
7039 # A sed that does not truncate output.
7040 SED=$lt_SED
7041
7042 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7043 Xsed="${SED} -e s/^X//"
7044
7045 # The HP-UX ksh and POSIX shell print the target directory to stdout
7046 # if CDPATH is set.
7047 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7048
7049 # ### BEGIN LIBTOOL CONFIG
7050
7051 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7052
7053 # Shell to use when invoking shell scripts.
7054 SHELL=$lt_SHELL
7055
7056 # Whether or not to build shared libraries.
7057 build_libtool_libs=$enable_shared
7058
7059 # Whether or not to build static libraries.
7060 build_old_libs=$enable_static
7061
7062 # Whether or not to add -lc for building shared libraries.
7063 build_libtool_need_lc=$need_lc
7064
7065 # Whether or not to optimize for fast installation.
7066 fast_install=$enable_fast_install
7067
7068 # The host system.
7069 host_alias=$host_alias
7070 host=$host
7071
7072 # An echo program that does not interpret backslashes.
7073 echo=$lt_echo
7074
7075 # The archiver.
7076 AR=$lt_AR
7077 AR_FLAGS=$lt_AR_FLAGS
7078
7079 # The default C compiler.
7080 CC=$lt_CC
7081
7082 # Is the compiler the GNU C compiler?
7083 with_gcc=$GCC
7084
7085 # The linker used to build libraries.
7086 LD=$lt_LD
7087
7088 # Whether we need hard or soft links.
7089 LN_S=$lt_LN_S
7090
7091 # A BSD-compatible nm program.
7092 NM=$lt_NM
7093
7094 # A symbol stripping program
7095 STRIP=$STRIP
7096
7097 # Used to examine libraries when file_magic_cmd begins "file"
7098 MAGIC_CMD=$MAGIC_CMD
7099
7100 # Used on cygwin: DLL creation program.
7101 DLLTOOL="$DLLTOOL"
7102
7103 # Used on cygwin: object dumper.
7104 OBJDUMP="$OBJDUMP"
7105
7106 # Used on cygwin: assembler.
7107 AS="$AS"
7108
7109 # The name of the directory that contains temporary libtool files.
7110 objdir=$objdir
7111
7112 # How to create reloadable object files.
7113 reload_flag=$lt_reload_flag
7114 reload_cmds=$lt_reload_cmds
7115
7116 # How to pass a linker flag through the compiler.
7117 wl=$lt_wl
7118
7119 # Object file suffix (normally "o").
7120 objext="$ac_objext"
7121
7122 # Old archive suffix (normally "a").
7123 libext="$libext"
7124
7125 # Executable file suffix (normally "").
7126 exeext="$exeext"
7127
7128 # Additional compiler flags for building library objects.
7129 pic_flag=$lt_pic_flag
7130 pic_mode=$pic_mode
7131
7132 # Does compiler simultaneously support -c and -o options?
7133 compiler_c_o=$lt_compiler_c_o
7134
7135 # Can we write directly to a .lo ?
7136 compiler_o_lo=$lt_compiler_o_lo
7137
7138 # Must we lock files when doing compilation ?
7139 need_locks=$lt_need_locks
7140
7141 # Do we need the lib prefix for modules?
7142 need_lib_prefix=$need_lib_prefix
7143
7144 # Do we need a version for libraries?
7145 need_version=$need_version
7146
7147 # Whether dlopen is supported.
7148 dlopen_support=$enable_dlopen
7149
7150 # Whether dlopen of programs is supported.
7151 dlopen_self=$enable_dlopen_self
7152
7153 # Whether dlopen of statically linked programs is supported.
7154 dlopen_self_static=$enable_dlopen_self_static
7155
7156 # Compiler flag to prevent dynamic linking.
7157 link_static_flag=$lt_link_static_flag
7158
7159 # Compiler flag to turn off builtin functions.
7160 no_builtin_flag=$lt_no_builtin_flag
7161
7162 # Compiler flag to allow reflexive dlopens.
7163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7164
7165 # Compiler flag to generate shared objects directly from archives.
7166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7167
7168 # Compiler flag to generate thread-safe objects.
7169 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7170
7171 # Library versioning type.
7172 version_type=$version_type
7173
7174 # Format of library name prefix.
7175 libname_spec=$lt_libname_spec
7176
7177 # List of archive names.  First name is the real one, the rest are links.
7178 # The last name is the one that the linker finds with -lNAME.
7179 library_names_spec=$lt_library_names_spec
7180
7181 # The coded name of the library, if different from the real name.
7182 soname_spec=$lt_soname_spec
7183
7184 # Commands used to build and install an old-style archive.
7185 RANLIB=$lt_RANLIB
7186 old_archive_cmds=$lt_old_archive_cmds
7187 old_postinstall_cmds=$lt_old_postinstall_cmds
7188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7189
7190 # Create an old-style archive from a shared archive.
7191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7192
7193 # Create a temporary old-style archive to link instead of a shared archive.
7194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7195
7196 # Commands used to build and install a shared archive.
7197 archive_cmds=$lt_archive_cmds
7198 archive_expsym_cmds=$lt_archive_expsym_cmds
7199 postinstall_cmds=$lt_postinstall_cmds
7200 postuninstall_cmds=$lt_postuninstall_cmds
7201
7202 # Commands to strip libraries.
7203 old_striplib=$lt_old_striplib
7204 striplib=$lt_striplib
7205
7206 # Method to check whether dependent libraries are shared objects.
7207 deplibs_check_method=$lt_deplibs_check_method
7208
7209 # Command to use when deplibs_check_method == file_magic.
7210 file_magic_cmd=$lt_file_magic_cmd
7211
7212 # Flag that allows shared libraries with undefined symbols to be built.
7213 allow_undefined_flag=$lt_allow_undefined_flag
7214
7215 # Flag that forces no undefined symbols.
7216 no_undefined_flag=$lt_no_undefined_flag
7217
7218 # Commands used to finish a libtool library installation in a directory.
7219 finish_cmds=$lt_finish_cmds
7220
7221 # Same as above, but a single script fragment to be evaled but not shown.
7222 finish_eval=$lt_finish_eval
7223
7224 # Take the output of nm and produce a listing of raw symbols and C names.
7225 global_symbol_pipe=$lt_global_symbol_pipe
7226
7227 # Transform the output of nm in a proper C declaration
7228 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7229
7230 # Transform the output of nm in a C name address pair
7231 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7232
7233 # This is the shared library runtime path variable.
7234 runpath_var=$runpath_var
7235
7236 # This is the shared library path variable.
7237 shlibpath_var=$shlibpath_var
7238
7239 # Is shlibpath searched before the hard-coded library search path?
7240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7241
7242 # How to hardcode a shared library path into an executable.
7243 hardcode_action=$hardcode_action
7244
7245 # Whether we should hardcode library paths into libraries.
7246 hardcode_into_libs=$hardcode_into_libs
7247
7248 # Flag to hardcode \$libdir into a binary during linking.
7249 # This must work even if \$libdir does not exist.
7250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7251
7252 # Whether we need a single -rpath flag with a separated argument.
7253 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7254
7255 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7256 # resulting binary.
7257 hardcode_direct=$hardcode_direct
7258
7259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7260 # resulting binary.
7261 hardcode_minus_L=$hardcode_minus_L
7262
7263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7264 # the resulting binary.
7265 hardcode_shlibpath_var=$hardcode_shlibpath_var
7266
7267 # Variables whose values should be saved in libtool wrapper scripts and
7268 # restored at relink time.
7269 variables_saved_for_relink="$variables_saved_for_relink"
7270
7271 # Whether libtool must link a program against all its dependency libraries.
7272 link_all_deplibs=$link_all_deplibs
7273
7274 # Compile-time system search path for libraries
7275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7276
7277 # Run-time system search path for libraries
7278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7279
7280 # Fix the shell variable \$srcfile for the compiler.
7281 fix_srcfile_path="$fix_srcfile_path"
7282
7283 # Set to yes if exported symbols are required.
7284 always_export_symbols=$always_export_symbols
7285
7286 # The commands to list exported symbols.
7287 export_symbols_cmds=$lt_export_symbols_cmds
7288
7289 # The commands to extract the exported symbol list from a shared archive.
7290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7291
7292 # Symbols that should not be listed in the preloaded symbols.
7293 exclude_expsyms=$lt_exclude_expsyms
7294
7295 # Symbols that must always be exported.
7296 include_expsyms=$lt_include_expsyms
7297
7298 # ### END LIBTOOL CONFIG
7299
7300 __EOF__
7301
7302   case $host_os in
7303   aix3*)
7304     cat <<\EOF >> "${ofile}T"
7305
7306 # AIX sometimes has problems with the GCC collect2 program.  For some
7307 # reason, if we set the COLLECT_NAMES environment variable, the problems
7308 # vanish in a puff of smoke.
7309 if test "X${COLLECT_NAMES+set}" != Xset; then
7310   COLLECT_NAMES=
7311   export COLLECT_NAMES
7312 fi
7313 EOF
7314     ;;
7315   esac
7316
7317   case $host_os in
7318   cygwin* | mingw* | pw32* | os2*)
7319     cat <<'EOF' >> "${ofile}T"
7320       # This is a source program that is used to create dlls on Windows
7321       # Don't remove nor modify the starting and closing comments
7322 # /* ltdll.c starts here */
7323 # #define WIN32_LEAN_AND_MEAN
7324 # #include <windows.h>
7325 # #undef WIN32_LEAN_AND_MEAN
7326 # #include <stdio.h>
7327 #
7328 # #ifndef __CYGWIN__
7329 # #  ifdef __CYGWIN32__
7330 # #    define __CYGWIN__ __CYGWIN32__
7331 # #  endif
7332 # #endif
7333 #
7334 # #ifdef __cplusplus
7335 # extern "C" {
7336 # #endif
7337 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7338 # #ifdef __cplusplus
7339 # }
7340 # #endif
7341 #
7342 # #ifdef __CYGWIN__
7343 # #include <cygwin/cygwin_dll.h>
7344 # DECLARE_CYGWIN_DLL( DllMain );
7345 # #endif
7346 # HINSTANCE __hDllInstance_base;
7347 #
7348 # BOOL APIENTRY
7349 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7350 # {
7351 #   __hDllInstance_base = hInst;
7352 #   return TRUE;
7353 # }
7354 # /* ltdll.c ends here */
7355         # This is a source program that is used to create import libraries
7356         # on Windows for dlls which lack them. Don't remove nor modify the
7357         # starting and closing comments
7358 # /* impgen.c starts here */
7359 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7360 #
7361 #  This file is part of GNU libtool.
7362 #
7363 #  This program is free software; you can redistribute it and/or modify
7364 #  it under the terms of the GNU General Public License as published by
7365 #  the Free Software Foundation; either version 2 of the License, or
7366 #  (at your option) any later version.
7367 #
7368 #  This program is distributed in the hope that it will be useful,
7369 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7370 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7371 #  GNU General Public License for more details.
7372 #
7373 #  You should have received a copy of the GNU General Public License
7374 #  along with this program; if not, write to the Free Software
7375 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7376 #  */
7377 #
7378 # #include <stdio.h>            /* for printf() */
7379 # #include <unistd.h>           /* for open(), lseek(), read() */
7380 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7381 # #include <string.h>           /* for strdup() */
7382 #
7383 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7384 # #ifndef O_BINARY
7385 # #define O_BINARY 0
7386 # #endif
7387 #
7388 # static unsigned int
7389 # pe_get16 (fd, offset)
7390 #      int fd;
7391 #      int offset;
7392 # {
7393 #   unsigned char b[2];
7394 #   lseek (fd, offset, SEEK_SET);
7395 #   read (fd, b, 2);
7396 #   return b[0] + (b[1]<<8);
7397 # }
7398 #
7399 # static unsigned int
7400 # pe_get32 (fd, offset)
7401 #     int fd;
7402 #     int offset;
7403 # {
7404 #   unsigned char b[4];
7405 #   lseek (fd, offset, SEEK_SET);
7406 #   read (fd, b, 4);
7407 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7408 # }
7409 #
7410 # static unsigned int
7411 # pe_as32 (ptr)
7412 #      void *ptr;
7413 # {
7414 #   unsigned char *b = ptr;
7415 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7416 # }
7417 #
7418 # int
7419 # main (argc, argv)
7420 #     int argc;
7421 #     char *argv[];
7422 # {
7423 #     int dll;
7424 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7425 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7426 #     unsigned long name_rvas, nexp;
7427 #     unsigned char *expdata, *erva;
7428 #     char *filename, *dll_name;
7429 #
7430 #     filename = argv[1];
7431 #
7432 #     dll = open(filename, O_RDONLY|O_BINARY);
7433 #     if (dll < 1)
7434 #       return 1;
7435 #
7436 #     dll_name = filename;
7437 #
7438 #     for (i=0; filename[i]; i++)
7439 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7440 #           dll_name = filename + i +1;
7441 #
7442 #     pe_header_offset = pe_get32 (dll, 0x3c);
7443 #     opthdr_ofs = pe_header_offset + 4 + 20;
7444 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7445 #
7446 #     if (num_entries < 1) /* no exports */
7447 #       return 1;
7448 #
7449 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7450 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7451 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7452 #     secptr = (pe_header_offset + 4 + 20 +
7453 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7454 #
7455 #     expptr = 0;
7456 #     for (i = 0; i < nsections; i++)
7457 #     {
7458 #       char sname[8];
7459 #       unsigned long secptr1 = secptr + 40 * i;
7460 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7461 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7462 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7463 #       lseek(dll, secptr1, SEEK_SET);
7464 #       read(dll, sname, 8);
7465 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7466 #       {
7467 #           expptr = fptr + (export_rva - vaddr);
7468 #           if (export_rva + export_size > vaddr + vsize)
7469 #               export_size = vsize - (export_rva - vaddr);
7470 #           break;
7471 #       }
7472 #     }
7473 #
7474 #     expdata = (unsigned char*)malloc(export_size);
7475 #     lseek (dll, expptr, SEEK_SET);
7476 #     read (dll, expdata, export_size);
7477 #     erva = expdata - export_rva;
7478 #
7479 #     nexp = pe_as32 (expdata+24);
7480 #     name_rvas = pe_as32 (expdata+32);
7481 #
7482 #     printf ("EXPORTS\n");
7483 #     for (i = 0; i<nexp; i++)
7484 #     {
7485 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7486 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7487 #     }
7488 #
7489 #     return 0;
7490 # }
7491 # /* impgen.c ends here */
7492
7493 EOF
7494     ;;
7495   esac
7496
7497   # We use sed instead of cat because bash on DJGPP gets confused if
7498   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7499   # text mode, it properly converts lines to CR/LF.  This bash problem
7500   # is reportedly fixed, but why not run on old versions too?
7501   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7502
7503   mv -f "${ofile}T" "$ofile" || \
7504     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7505   chmod +x "$ofile"
7506 fi
7507
7508
7509
7510
7511
7512 # This can be used to rebuild libtool when needed
7513 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7514
7515 # Always use our own libtool.
7516 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7517
7518 # Prevent multiple expansion
7519
7520
7521 ac_ext=cc
7522 ac_cpp='$CXXCPP $CPPFLAGS'
7523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7526 if test -n "$ac_tool_prefix"; then
7527   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7528   do
7529     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7531 echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533 if test "${ac_cv_prog_CXX+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   if test -n "$CXX"; then
7537   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544   for ac_exec_ext in '' $ac_executable_extensions; do
7545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551 done
7552
7553 fi
7554 fi
7555 CXX=$ac_cv_prog_CXX
7556 if test -n "$CXX"; then
7557   echo "$as_me:$LINENO: result: $CXX" >&5
7558 echo "${ECHO_T}$CXX" >&6
7559 else
7560   echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7562 fi
7563
7564     test -n "$CXX" && break
7565   done
7566 fi
7567 if test -z "$CXX"; then
7568   ac_ct_CXX=$CXX
7569   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7570 do
7571   # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy $ac_prog; ac_word=$2
7573 echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7576   echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578   if test -n "$ac_ct_CXX"; then
7579   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586   for ac_exec_ext in '' $ac_executable_extensions; do
7587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588     ac_cv_prog_ac_ct_CXX="$ac_prog"
7589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593 done
7594
7595 fi
7596 fi
7597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7598 if test -n "$ac_ct_CXX"; then
7599   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7600 echo "${ECHO_T}$ac_ct_CXX" >&6
7601 else
7602   echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6
7604 fi
7605
7606   test -n "$ac_ct_CXX" && break
7607 done
7608 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7609
7610   CXX=$ac_ct_CXX
7611 fi
7612
7613
7614 # Provide some information about the compiler.
7615 echo "$as_me:$LINENO:" \
7616      "checking for C++ compiler version" >&5
7617 ac_compiler=`set X $ac_compile; echo $2`
7618 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7619   (eval $ac_compiler --version </dev/null >&5) 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); }
7623 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7624   (eval $ac_compiler -v </dev/null >&5) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }
7628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7629   (eval $ac_compiler -V </dev/null >&5) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }
7633
7634 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7635 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7636 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 #include "confdefs.h"
7642
7643 int
7644 main ()
7645 {
7646 #ifndef __GNUC__
7647        choke me
7648 #endif
7649
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656   (eval $ac_compile) 2>&5
7657   ac_status=$?
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } &&
7660          { ac_try='test -s conftest.$ac_objext'
7661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662   (eval $ac_try) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; }; then
7666   ac_compiler_gnu=yes
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7670 ac_compiler_gnu=no
7671 fi
7672 rm -f conftest.$ac_objext conftest.$ac_ext
7673 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7674
7675 fi
7676 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7677 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7678 GXX=`test $ac_compiler_gnu = yes && echo yes`
7679 ac_test_CXXFLAGS=${CXXFLAGS+set}
7680 ac_save_CXXFLAGS=$CXXFLAGS
7681 CXXFLAGS="-g"
7682 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7683 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7684 if test "${ac_cv_prog_cxx_g+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   cat >conftest.$ac_ext <<_ACEOF
7688 #line $LINENO "configure"
7689 #include "confdefs.h"
7690
7691 int
7692 main ()
7693 {
7694
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701   (eval $ac_compile) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); } &&
7705          { ac_try='test -s conftest.$ac_objext'
7706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707   (eval $ac_try) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); }; }; then
7711   ac_cv_prog_cxx_g=yes
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 cat conftest.$ac_ext >&5
7715 ac_cv_prog_cxx_g=no
7716 fi
7717 rm -f conftest.$ac_objext conftest.$ac_ext
7718 fi
7719 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7720 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7721 if test "$ac_test_CXXFLAGS" = set; then
7722   CXXFLAGS=$ac_save_CXXFLAGS
7723 elif test $ac_cv_prog_cxx_g = yes; then
7724   if test "$GXX" = yes; then
7725     CXXFLAGS="-g -O2"
7726   else
7727     CXXFLAGS="-g"
7728   fi
7729 else
7730   if test "$GXX" = yes; then
7731     CXXFLAGS="-O2"
7732   else
7733     CXXFLAGS=
7734   fi
7735 fi
7736 for ac_declaration in \
7737    ''\
7738    '#include <stdlib.h>' \
7739    'extern "C" void std::exit (int) throw (); using std::exit;' \
7740    'extern "C" void std::exit (int); using std::exit;' \
7741    'extern "C" void exit (int) throw ();' \
7742    'extern "C" void exit (int);' \
7743    'void exit (int);'
7744 do
7745   cat >conftest.$ac_ext <<_ACEOF
7746 #line $LINENO "configure"
7747 #include "confdefs.h"
7748 #include <stdlib.h>
7749 $ac_declaration
7750 int
7751 main ()
7752 {
7753 exit (42);
7754   ;
7755   return 0;
7756 }
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760   (eval $ac_compile) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } &&
7764          { ac_try='test -s conftest.$ac_objext'
7765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766   (eval $ac_try) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); }; }; then
7770   :
7771 else
7772   echo "$as_me: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 continue
7775 fi
7776 rm -f conftest.$ac_objext conftest.$ac_ext
7777   cat >conftest.$ac_ext <<_ACEOF
7778 #line $LINENO "configure"
7779 #include "confdefs.h"
7780 $ac_declaration
7781 int
7782 main ()
7783 {
7784 exit (42);
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791   (eval $ac_compile) 2>&5
7792   ac_status=$?
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); } &&
7795          { ac_try='test -s conftest.$ac_objext'
7796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797   (eval $ac_try) 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); }; }; then
7801   break
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 fi
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7807 done
7808 rm -f conftest*
7809 if test -n "$ac_declaration"; then
7810   echo '#ifdef __cplusplus' >>confdefs.h
7811   echo $ac_declaration      >>confdefs.h
7812   echo '#endif'             >>confdefs.h
7813 fi
7814
7815 ac_ext=c
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821 depcc="$CXX"  am_compiler_list=
7822
7823 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7824 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7825 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7829   # We make a subdir and do the tests there.  Otherwise we can end up
7830   # making bogus files that we don't know about and never remove.  For
7831   # instance it was reported that on HP-UX the gcc test will end up
7832   # making a dummy file named `D' -- because `-MD' means `put the output
7833   # in D'.
7834   mkdir conftest.dir
7835   # Copy depcomp to subdir because otherwise we won't find it if we're
7836   # using a relative directory.
7837   cp "$am_depcomp" conftest.dir
7838   cd conftest.dir
7839
7840   am_cv_CXX_dependencies_compiler_type=none
7841   if test "$am_compiler_list" = ""; then
7842      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7843   fi
7844   for depmode in $am_compiler_list; do
7845     # We need to recreate these files for each test, as the compiler may
7846     # overwrite some of them when testing with obscure command lines.
7847     # This happens at least with the AIX C compiler.
7848     echo '#include "conftest.h"' > conftest.c
7849     echo 'int i;' > conftest.h
7850     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7851
7852     case $depmode in
7853     nosideeffect)
7854       # after this tag, mechanisms are not by side-effect, so they'll
7855       # only be used when explicitly requested
7856       if test "x$enable_dependency_tracking" = xyes; then
7857         continue
7858       else
7859         break
7860       fi
7861       ;;
7862     none) break ;;
7863     esac
7864     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7865     # mode.  It turns out that the SunPro C++ compiler does not properly
7866     # handle `-M -o', and we need to detect this.
7867     if depmode=$depmode \
7868        source=conftest.c object=conftest.o \
7869        depfile=conftest.Po tmpdepfile=conftest.TPo \
7870        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7871        grep conftest.h conftest.Po > /dev/null 2>&1 &&
7872        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7873       am_cv_CXX_dependencies_compiler_type=$depmode
7874       break
7875     fi
7876   done
7877
7878   cd ..
7879   rm -rf conftest.dir
7880 else
7881   am_cv_CXX_dependencies_compiler_type=none
7882 fi
7883
7884 fi
7885 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7886 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7887 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7888
7889
7890
7891 if
7892   test "x$enable_dependency_tracking" != xno \
7893   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7894   am__fastdepCXX_TRUE=
7895   am__fastdepCXX_FALSE='#'
7896 else
7897   am__fastdepCXX_TRUE='#'
7898   am__fastdepCXX_FALSE=
7899 fi
7900
7901
7902 ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 if test -n "$ac_tool_prefix"; then
7908   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7910 echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7912 if test "${ac_cv_prog_CC+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   if test -n "$CC"; then
7916   ac_cv_prog_CC="$CC" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921   IFS=$as_save_IFS
7922   test -z "$as_dir" && as_dir=.
7923   for ac_exec_ext in '' $ac_executable_extensions; do
7924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925     ac_cv_prog_CC="${ac_tool_prefix}gcc"
7926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927     break 2
7928   fi
7929 done
7930 done
7931
7932 fi
7933 fi
7934 CC=$ac_cv_prog_CC
7935 if test -n "$CC"; then
7936   echo "$as_me:$LINENO: result: $CC" >&5
7937 echo "${ECHO_T}$CC" >&6
7938 else
7939   echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6
7941 fi
7942
7943 fi
7944 if test -z "$ac_cv_prog_CC"; then
7945   ac_ct_CC=$CC
7946   # Extract the first word of "gcc", so it can be a program name with args.
7947 set dummy gcc; ac_word=$2
7948 echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   if test -n "$ac_ct_CC"; then
7954   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961   for ac_exec_ext in '' $ac_executable_extensions; do
7962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963     ac_cv_prog_ac_ct_CC="gcc"
7964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968 done
7969
7970 fi
7971 fi
7972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7973 if test -n "$ac_ct_CC"; then
7974   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7975 echo "${ECHO_T}$ac_ct_CC" >&6
7976 else
7977   echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7979 fi
7980
7981   CC=$ac_ct_CC
7982 else
7983   CC="$ac_cv_prog_CC"
7984 fi
7985
7986 if test -z "$CC"; then
7987   if test -n "$ac_tool_prefix"; then
7988   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7989 set dummy ${ac_tool_prefix}cc; ac_word=$2
7990 echo "$as_me:$LINENO: checking for $ac_word" >&5
7991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7992 if test "${ac_cv_prog_CC+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   if test -n "$CC"; then
7996   ac_cv_prog_CC="$CC" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003   for ac_exec_ext in '' $ac_executable_extensions; do
8004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005     ac_cv_prog_CC="${ac_tool_prefix}cc"
8006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010 done
8011
8012 fi
8013 fi
8014 CC=$ac_cv_prog_CC
8015 if test -n "$CC"; then
8016   echo "$as_me:$LINENO: result: $CC" >&5
8017 echo "${ECHO_T}$CC" >&6
8018 else
8019   echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6
8021 fi
8022
8023 fi
8024 if test -z "$ac_cv_prog_CC"; then
8025   ac_ct_CC=$CC
8026   # Extract the first word of "cc", so it can be a program name with args.
8027 set dummy cc; ac_word=$2
8028 echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   if test -n "$ac_ct_CC"; then
8034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8038 do
8039   IFS=$as_save_IFS
8040   test -z "$as_dir" && as_dir=.
8041   for ac_exec_ext in '' $ac_executable_extensions; do
8042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043     ac_cv_prog_ac_ct_CC="cc"
8044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045     break 2
8046   fi
8047 done
8048 done
8049
8050 fi
8051 fi
8052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8053 if test -n "$ac_ct_CC"; then
8054   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8055 echo "${ECHO_T}$ac_ct_CC" >&6
8056 else
8057   echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8059 fi
8060
8061   CC=$ac_ct_CC
8062 else
8063   CC="$ac_cv_prog_CC"
8064 fi
8065
8066 fi
8067 if test -z "$CC"; then
8068   # Extract the first word of "cc", so it can be a program name with args.
8069 set dummy cc; ac_word=$2
8070 echo "$as_me:$LINENO: checking for $ac_word" >&5
8071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8072 if test "${ac_cv_prog_CC+set}" = set; then
8073   echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075   if test -n "$CC"; then
8076   ac_cv_prog_CC="$CC" # Let the user override the test.
8077 else
8078   ac_prog_rejected=no
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082   IFS=$as_save_IFS
8083   test -z "$as_dir" && as_dir=.
8084   for ac_exec_ext in '' $ac_executable_extensions; do
8085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8087        ac_prog_rejected=yes
8088        continue
8089      fi
8090     ac_cv_prog_CC="cc"
8091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095 done
8096
8097 if test $ac_prog_rejected = yes; then
8098   # We found a bogon in the path, so make sure we never use it.
8099   set dummy $ac_cv_prog_CC
8100   shift
8101   if test $# != 0; then
8102     # We chose a different compiler from the bogus one.
8103     # However, it has the same basename, so the bogon will be chosen
8104     # first if we set CC to just the basename; use the full file name.
8105     shift
8106     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8107   fi
8108 fi
8109 fi
8110 fi
8111 CC=$ac_cv_prog_CC
8112 if test -n "$CC"; then
8113   echo "$as_me:$LINENO: result: $CC" >&5
8114 echo "${ECHO_T}$CC" >&6
8115 else
8116   echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8118 fi
8119
8120 fi
8121 if test -z "$CC"; then
8122   if test -n "$ac_tool_prefix"; then
8123   for ac_prog in cl
8124   do
8125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_prog_CC+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   if test -n "$CC"; then
8133   ac_cv_prog_CC="$CC" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140   for ac_exec_ext in '' $ac_executable_extensions; do
8141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147 done
8148
8149 fi
8150 fi
8151 CC=$ac_cv_prog_CC
8152 if test -n "$CC"; then
8153   echo "$as_me:$LINENO: result: $CC" >&5
8154 echo "${ECHO_T}$CC" >&6
8155 else
8156   echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8158 fi
8159
8160     test -n "$CC" && break
8161   done
8162 fi
8163 if test -z "$CC"; then
8164   ac_ct_CC=$CC
8165   for ac_prog in cl
8166 do
8167   # Extract the first word of "$ac_prog", so it can be a program name with args.
8168 set dummy $ac_prog; ac_word=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   if test -n "$ac_ct_CC"; then
8175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180   IFS=$as_save_IFS
8181   test -z "$as_dir" && as_dir=.
8182   for ac_exec_ext in '' $ac_executable_extensions; do
8183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184     ac_cv_prog_ac_ct_CC="$ac_prog"
8185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8186     break 2
8187   fi
8188 done
8189 done
8190
8191 fi
8192 fi
8193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8194 if test -n "$ac_ct_CC"; then
8195   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8196 echo "${ECHO_T}$ac_ct_CC" >&6
8197 else
8198   echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8200 fi
8201
8202   test -n "$ac_ct_CC" && break
8203 done
8204
8205   CC=$ac_ct_CC
8206 fi
8207
8208 fi
8209
8210
8211 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
8212 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
8213    { (exit 1); exit 1; }; }
8214
8215 # Provide some information about the compiler.
8216 echo "$as_me:$LINENO:" \
8217      "checking for C compiler version" >&5
8218 ac_compiler=`set X $ac_compile; echo $2`
8219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8220   (eval $ac_compiler --version </dev/null >&5) 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }
8224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8225   (eval $ac_compiler -v </dev/null >&5) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }
8229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8230   (eval $ac_compiler -V </dev/null >&5) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }
8234
8235 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243
8244 int
8245 main ()
8246 {
8247 #ifndef __GNUC__
8248        choke me
8249 #endif
8250
8251   ;
8252   return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8257   (eval $ac_compile) 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } &&
8261          { ac_try='test -s conftest.$ac_objext'
8262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263   (eval $ac_try) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); }; }; then
8267   ac_compiler_gnu=yes
8268 else
8269   echo "$as_me: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 ac_compiler_gnu=no
8272 fi
8273 rm -f conftest.$ac_objext conftest.$ac_ext
8274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8275
8276 fi
8277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8279 GCC=`test $ac_compiler_gnu = yes && echo yes`
8280 ac_test_CFLAGS=${CFLAGS+set}
8281 ac_save_CFLAGS=$CFLAGS
8282 CFLAGS="-g"
8283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8285 if test "${ac_cv_prog_cc_g+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8290 #include "confdefs.h"
8291
8292 int
8293 main ()
8294 {
8295
8296   ;
8297   return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302   (eval $ac_compile) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } &&
8306          { ac_try='test -s conftest.$ac_objext'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_prog_cc_g=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8316 ac_cv_prog_cc_g=no
8317 fi
8318 rm -f conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8321 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8322 if test "$ac_test_CFLAGS" = set; then
8323   CFLAGS=$ac_save_CFLAGS
8324 elif test $ac_cv_prog_cc_g = yes; then
8325   if test "$GCC" = yes; then
8326     CFLAGS="-g -O2"
8327   else
8328     CFLAGS="-g"
8329   fi
8330 else
8331   if test "$GCC" = yes; then
8332     CFLAGS="-O2"
8333   else
8334     CFLAGS=
8335   fi
8336 fi
8337 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8338 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8339 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   ac_cv_prog_cc_stdc=no
8343 ac_save_CC=$CC
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 #include <stdarg.h>
8348 #include <stdio.h>
8349 #include <sys/types.h>
8350 #include <sys/stat.h>
8351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8352 struct buf { int x; };
8353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8354 static char *e (p, i)
8355      char **p;
8356      int i;
8357 {
8358   return p[i];
8359 }
8360 static char *f (char * (*g) (char **, int), char **p, ...)
8361 {
8362   char *s;
8363   va_list v;
8364   va_start (v,p);
8365   s = g (p, va_arg (v,int));
8366   va_end (v);
8367   return s;
8368 }
8369 int test (int i, double x);
8370 struct s1 {int (*f) (int a);};
8371 struct s2 {int (*f) (double a);};
8372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8373 int argc;
8374 char **argv;
8375 int
8376 main ()
8377 {
8378 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 # Don't try gcc -ansi; that turns off useful extensions and
8384 # breaks some systems' header files.
8385 # AIX                   -qlanglvl=ansi
8386 # Ultrix and OSF/1      -std1
8387 # HP-UX 10.20 and later -Ae
8388 # HP-UX older versions  -Aa -D_HPUX_SOURCE
8389 # SVR4                  -Xc -D__EXTENSIONS__
8390 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8391 do
8392   CC="$ac_save_CC $ac_arg"
8393   rm -f conftest.$ac_objext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395   (eval $ac_compile) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -s conftest.$ac_objext'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   ac_cv_prog_cc_stdc=$ac_arg
8406 break
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 fi
8411 rm -f conftest.$ac_objext
8412 done
8413 rm -f conftest.$ac_ext conftest.$ac_objext
8414 CC=$ac_save_CC
8415
8416 fi
8417
8418 case "x$ac_cv_prog_cc_stdc" in
8419   x|xno)
8420     echo "$as_me:$LINENO: result: none needed" >&5
8421 echo "${ECHO_T}none needed" >&6 ;;
8422   *)
8423     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8424 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8425     CC="$CC $ac_cv_prog_cc_stdc" ;;
8426 esac
8427
8428 # Some people use a C++ compiler to compile C.  Since we use `exit',
8429 # in C++ we need to declare it.  In case someone uses the same compiler
8430 # for both compiling C and C++ we need to have the C++ compiler decide
8431 # the declaration of exit, since it's the most demanding environment.
8432 cat >conftest.$ac_ext <<_ACEOF
8433 #ifndef __cplusplus
8434   choke me
8435 #endif
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439   (eval $ac_compile) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } &&
8443          { ac_try='test -s conftest.$ac_objext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   for ac_declaration in \
8450    ''\
8451    '#include <stdlib.h>' \
8452    'extern "C" void std::exit (int) throw (); using std::exit;' \
8453    'extern "C" void std::exit (int); using std::exit;' \
8454    'extern "C" void exit (int) throw ();' \
8455    'extern "C" void exit (int);' \
8456    'void exit (int);'
8457 do
8458   cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 #include "confdefs.h"
8461 #include <stdlib.h>
8462 $ac_declaration
8463 int
8464 main ()
8465 {
8466 exit (42);
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -s conftest.$ac_objext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483   :
8484 else
8485   echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 continue
8488 fi
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490   cat >conftest.$ac_ext <<_ACEOF
8491 #line $LINENO "configure"
8492 #include "confdefs.h"
8493 $ac_declaration
8494 int
8495 main ()
8496 {
8497 exit (42);
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504   (eval $ac_compile) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } &&
8508          { ac_try='test -s conftest.$ac_objext'
8509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510   (eval $ac_try) 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; }; then
8514   break
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8518 fi
8519 rm -f conftest.$ac_objext conftest.$ac_ext
8520 done
8521 rm -f conftest*
8522 if test -n "$ac_declaration"; then
8523   echo '#ifdef __cplusplus' >>confdefs.h
8524   echo $ac_declaration      >>confdefs.h
8525   echo '#endif'             >>confdefs.h
8526 fi
8527
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8531 fi
8532 rm -f conftest.$ac_objext conftest.$ac_ext
8533 ac_ext=c
8534 ac_cpp='$CPP $CPPFLAGS'
8535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8538
8539 depcc="$CC"   am_compiler_list=
8540
8541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8543 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8547   # We make a subdir and do the tests there.  Otherwise we can end up
8548   # making bogus files that we don't know about and never remove.  For
8549   # instance it was reported that on HP-UX the gcc test will end up
8550   # making a dummy file named `D' -- because `-MD' means `put the output
8551   # in D'.
8552   mkdir conftest.dir
8553   # Copy depcomp to subdir because otherwise we won't find it if we're
8554   # using a relative directory.
8555   cp "$am_depcomp" conftest.dir
8556   cd conftest.dir
8557
8558   am_cv_CC_dependencies_compiler_type=none
8559   if test "$am_compiler_list" = ""; then
8560      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8561   fi
8562   for depmode in $am_compiler_list; do
8563     # We need to recreate these files for each test, as the compiler may
8564     # overwrite some of them when testing with obscure command lines.
8565     # This happens at least with the AIX C compiler.
8566     echo '#include "conftest.h"' > conftest.c
8567     echo 'int i;' > conftest.h
8568     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8569
8570     case $depmode in
8571     nosideeffect)
8572       # after this tag, mechanisms are not by side-effect, so they'll
8573       # only be used when explicitly requested
8574       if test "x$enable_dependency_tracking" = xyes; then
8575         continue
8576       else
8577         break
8578       fi
8579       ;;
8580     none) break ;;
8581     esac
8582     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8583     # mode.  It turns out that the SunPro C++ compiler does not properly
8584     # handle `-M -o', and we need to detect this.
8585     if depmode=$depmode \
8586        source=conftest.c object=conftest.o \
8587        depfile=conftest.Po tmpdepfile=conftest.TPo \
8588        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
8589        grep conftest.h conftest.Po > /dev/null 2>&1 &&
8590        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8591       am_cv_CC_dependencies_compiler_type=$depmode
8592       break
8593     fi
8594   done
8595
8596   cd ..
8597   rm -rf conftest.dir
8598 else
8599   am_cv_CC_dependencies_compiler_type=none
8600 fi
8601
8602 fi
8603 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8604 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8605 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8606
8607
8608
8609 if
8610   test "x$enable_dependency_tracking" != xno \
8611   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8612   am__fastdepCC_TRUE=
8613   am__fastdepCC_FALSE='#'
8614 else
8615   am__fastdepCC_TRUE='#'
8616   am__fastdepCC_FALSE=
8617 fi
8618
8619
8620 ac_ext=c
8621 ac_cpp='$CPP $CPPFLAGS'
8622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
8626 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
8627 # On Suns, sometimes $CPP names a directory.
8628 if test -n "$CPP" && test -d "$CPP"; then
8629   CPP=
8630 fi
8631 if test -z "$CPP"; then
8632   if test "${ac_cv_prog_CPP+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635       # Double quotes because CPP needs to be expanded
8636     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8637     do
8638       ac_preproc_ok=false
8639 for ac_c_preproc_warn_flag in '' yes
8640 do
8641   # Use a header file that comes with gcc, so configuring glibc
8642   # with a fresh cross-compiler works.
8643   # On the NeXT, cc -E runs the code through the compiler's parser,
8644   # not just through cpp. "Syntax error" is here to catch this case.
8645   cat >conftest.$ac_ext <<_ACEOF
8646 #line $LINENO "configure"
8647 #include "confdefs.h"
8648 #include <assert.h>
8649                      Syntax error
8650 _ACEOF
8651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } >/dev/null; then
8659   if test -s conftest.err; then
8660     ac_cpp_err=$ac_c_preproc_warn_flag
8661   else
8662     ac_cpp_err=
8663   fi
8664 else
8665   ac_cpp_err=yes
8666 fi
8667 if test -z "$ac_cpp_err"; then
8668   :
8669 else
8670   echo "$as_me: failed program was:" >&5
8671   cat conftest.$ac_ext >&5
8672   # Broken: fails on valid input.
8673 continue
8674 fi
8675 rm -f conftest.err conftest.$ac_ext
8676
8677   # OK, works on sane cases.  Now check whether non-existent headers
8678   # can be detected and how.
8679   cat >conftest.$ac_ext <<_ACEOF
8680 #line $LINENO "configure"
8681 #include "confdefs.h"
8682 #include <ac_nonexistent.h>
8683 _ACEOF
8684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8685   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8686   ac_status=$?
8687   grep -v '^ *+' conftest.er1 >conftest.err
8688   rm -f conftest.er1
8689   cat conftest.err >&5
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); } >/dev/null; then
8692   if test -s conftest.err; then
8693     ac_cpp_err=$ac_c_preproc_warn_flag
8694   else
8695     ac_cpp_err=
8696   fi
8697 else
8698   ac_cpp_err=yes
8699 fi
8700 if test -z "$ac_cpp_err"; then
8701   # Broken: success on invalid input.
8702 continue
8703 else
8704   echo "$as_me: failed program was:" >&5
8705   cat conftest.$ac_ext >&5
8706   # Passes both tests.
8707 ac_preproc_ok=:
8708 break
8709 fi
8710 rm -f conftest.err conftest.$ac_ext
8711
8712 done
8713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8714 rm -f conftest.err conftest.$ac_ext
8715 if $ac_preproc_ok; then
8716   break
8717 fi
8718
8719     done
8720     ac_cv_prog_CPP=$CPP
8721
8722 fi
8723   CPP=$ac_cv_prog_CPP
8724 else
8725   ac_cv_prog_CPP=$CPP
8726 fi
8727 echo "$as_me:$LINENO: result: $CPP" >&5
8728 echo "${ECHO_T}$CPP" >&6
8729 ac_preproc_ok=false
8730 for ac_c_preproc_warn_flag in '' yes
8731 do
8732   # Use a header file that comes with gcc, so configuring glibc
8733   # with a fresh cross-compiler works.
8734   # On the NeXT, cc -E runs the code through the compiler's parser,
8735   # not just through cpp. "Syntax error" is here to catch this case.
8736   cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 #include "confdefs.h"
8739 #include <assert.h>
8740                      Syntax error
8741 _ACEOF
8742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } >/dev/null; then
8750   if test -s conftest.err; then
8751     ac_cpp_err=$ac_c_preproc_warn_flag
8752   else
8753     ac_cpp_err=
8754   fi
8755 else
8756   ac_cpp_err=yes
8757 fi
8758 if test -z "$ac_cpp_err"; then
8759   :
8760 else
8761   echo "$as_me: failed program was:" >&5
8762   cat conftest.$ac_ext >&5
8763   # Broken: fails on valid input.
8764 continue
8765 fi
8766 rm -f conftest.err conftest.$ac_ext
8767
8768   # OK, works on sane cases.  Now check whether non-existent headers
8769   # can be detected and how.
8770   cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8773 #include <ac_nonexistent.h>
8774 _ACEOF
8775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8777   ac_status=$?
8778   grep -v '^ *+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } >/dev/null; then
8783   if test -s conftest.err; then
8784     ac_cpp_err=$ac_c_preproc_warn_flag
8785   else
8786     ac_cpp_err=
8787   fi
8788 else
8789   ac_cpp_err=yes
8790 fi
8791 if test -z "$ac_cpp_err"; then
8792   # Broken: success on invalid input.
8793 continue
8794 else
8795   echo "$as_me: failed program was:" >&5
8796   cat conftest.$ac_ext >&5
8797   # Passes both tests.
8798 ac_preproc_ok=:
8799 break
8800 fi
8801 rm -f conftest.err conftest.$ac_ext
8802
8803 done
8804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8805 rm -f conftest.err conftest.$ac_ext
8806 if $ac_preproc_ok; then
8807   :
8808 else
8809   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
8810 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
8811    { (exit 1); exit 1; }; }
8812 fi
8813
8814 ac_ext=c
8815 ac_cpp='$CPP $CPPFLAGS'
8816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8819
8820 # Find a good install program.  We prefer a C program (faster),
8821 # so one script is as good as another.  But avoid the broken or
8822 # incompatible versions:
8823 # SysV /etc/install, /usr/sbin/install
8824 # SunOS /usr/etc/install
8825 # IRIX /sbin/install
8826 # AIX /bin/install
8827 # AmigaOS /C/install, which installs bootblocks on floppy discs
8828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8831 # ./install, which can be erroneously created by make from ./install.sh.
8832 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8834 if test -z "$INSTALL"; then
8835 if test "${ac_cv_path_install+set}" = set; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8840 do
8841   IFS=$as_save_IFS
8842   test -z "$as_dir" && as_dir=.
8843   # Account for people who put trailing slashes in PATH elements.
8844 case $as_dir/ in
8845   ./ | .// | /cC/* | \
8846   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8847   /usr/ucb/* ) ;;
8848   *)
8849     # OSF1 and SCO ODT 3.0 have their own names for install.
8850     # Don't use installbsd from OSF since it installs stuff as root
8851     # by default.
8852     for ac_prog in ginstall scoinst install; do
8853       for ac_exec_ext in '' $ac_executable_extensions; do
8854         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8855           if test $ac_prog = install &&
8856             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8857             # AIX install.  It has an incompatible calling convention.
8858             :
8859           elif test $ac_prog = install &&
8860             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8861             # program-specific install script used by HP pwplus--don't use.
8862             :
8863           else
8864             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8865             break 3
8866           fi
8867         fi
8868       done
8869     done
8870     ;;
8871 esac
8872 done
8873
8874
8875 fi
8876   if test "${ac_cv_path_install+set}" = set; then
8877     INSTALL=$ac_cv_path_install
8878   else
8879     # As a last resort, use the slow shell script.  We don't cache a
8880     # path for INSTALL within a source directory, because that will
8881     # break other packages using the cache if that directory is
8882     # removed, or if the path is relative.
8883     INSTALL=$ac_install_sh
8884   fi
8885 fi
8886 echo "$as_me:$LINENO: result: $INSTALL" >&5
8887 echo "${ECHO_T}$INSTALL" >&6
8888
8889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8890 # It thinks the first close brace ends the variable substitution.
8891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8892
8893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8894
8895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8896
8897 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8898 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8899 LN_S=$as_ln_s
8900 if test "$LN_S" = "ln -s"; then
8901   echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8903 else
8904   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8905 echo "${ECHO_T}no, using $LN_S" >&6
8906 fi
8907
8908 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8909 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8910 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8911 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8912   echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914   cat >conftest.make <<\_ACEOF
8915 all:
8916         @echo 'ac_maketemp="${MAKE}"'
8917 _ACEOF
8918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8919 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8920 if test -n "$ac_maketemp"; then
8921   eval ac_cv_prog_make_${ac_make}_set=yes
8922 else
8923   eval ac_cv_prog_make_${ac_make}_set=no
8924 fi
8925 rm -f conftest.make
8926 fi
8927 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8928   echo "$as_me:$LINENO: result: yes" >&5
8929 echo "${ECHO_T}yes" >&6
8930   SET_MAKE=
8931 else
8932   echo "$as_me:$LINENO: result: no" >&5
8933 echo "${ECHO_T}no" >&6
8934   SET_MAKE="MAKE=${MAKE-make}"
8935 fi
8936
8937 if test -n "$ac_tool_prefix"; then
8938   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8940 echo "$as_me:$LINENO: checking for $ac_word" >&5
8941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8942 if test "${ac_cv_prog_RANLIB+set}" = set; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945   if test -n "$RANLIB"; then
8946   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951   IFS=$as_save_IFS
8952   test -z "$as_dir" && as_dir=.
8953   for ac_exec_ext in '' $ac_executable_extensions; do
8954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8957     break 2
8958   fi
8959 done
8960 done
8961
8962 fi
8963 fi
8964 RANLIB=$ac_cv_prog_RANLIB
8965 if test -n "$RANLIB"; then
8966   echo "$as_me:$LINENO: result: $RANLIB" >&5
8967 echo "${ECHO_T}$RANLIB" >&6
8968 else
8969   echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6
8971 fi
8972
8973 fi
8974 if test -z "$ac_cv_prog_RANLIB"; then
8975   ac_ct_RANLIB=$RANLIB
8976   # Extract the first word of "ranlib", so it can be a program name with args.
8977 set dummy ranlib; ac_word=$2
8978 echo "$as_me:$LINENO: checking for $ac_word" >&5
8979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983   if test -n "$ac_ct_RANLIB"; then
8984   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989   IFS=$as_save_IFS
8990   test -z "$as_dir" && as_dir=.
8991   for ac_exec_ext in '' $ac_executable_extensions; do
8992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993     ac_cv_prog_ac_ct_RANLIB="ranlib"
8994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995     break 2
8996   fi
8997 done
8998 done
8999
9000   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9001 fi
9002 fi
9003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9004 if test -n "$ac_ct_RANLIB"; then
9005   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9006 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9007 else
9008   echo "$as_me:$LINENO: result: no" >&5
9009 echo "${ECHO_T}no" >&6
9010 fi
9011
9012   RANLIB=$ac_ct_RANLIB
9013 else
9014   RANLIB="$ac_cv_prog_RANLIB"
9015 fi
9016
9017 for ac_prog in gawk mawk nawk awk
9018 do
9019   # Extract the first word of "$ac_prog", so it can be a program name with args.
9020 set dummy $ac_prog; ac_word=$2
9021 echo "$as_me:$LINENO: checking for $ac_word" >&5
9022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9023 if test "${ac_cv_prog_AWK+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   if test -n "$AWK"; then
9027   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9031 do
9032   IFS=$as_save_IFS
9033   test -z "$as_dir" && as_dir=.
9034   for ac_exec_ext in '' $ac_executable_extensions; do
9035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036     ac_cv_prog_AWK="$ac_prog"
9037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038     break 2
9039   fi
9040 done
9041 done
9042
9043 fi
9044 fi
9045 AWK=$ac_cv_prog_AWK
9046 if test -n "$AWK"; then
9047   echo "$as_me:$LINENO: result: $AWK" >&5
9048 echo "${ECHO_T}$AWK" >&6
9049 else
9050   echo "$as_me:$LINENO: result: no" >&5
9051 echo "${ECHO_T}no" >&6
9052 fi
9053
9054   test -n "$AWK" && break
9055 done
9056
9057
9058 # Checks for header files.
9059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9061 if test "${ac_cv_header_stdc+set}" = set; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9067 #include <stdlib.h>
9068 #include <stdarg.h>
9069 #include <string.h>
9070 #include <float.h>
9071
9072 _ACEOF
9073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9075   ac_status=$?
9076   grep -v '^ *+' conftest.er1 >conftest.err
9077   rm -f conftest.er1
9078   cat conftest.err >&5
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } >/dev/null; then
9081   if test -s conftest.err; then
9082     ac_cpp_err=$ac_c_preproc_warn_flag
9083   else
9084     ac_cpp_err=
9085   fi
9086 else
9087   ac_cpp_err=yes
9088 fi
9089 if test -z "$ac_cpp_err"; then
9090   ac_cv_header_stdc=yes
9091 else
9092   echo "$as_me: failed program was:" >&5
9093   cat conftest.$ac_ext >&5
9094   ac_cv_header_stdc=no
9095 fi
9096 rm -f conftest.err conftest.$ac_ext
9097
9098 if test $ac_cv_header_stdc = yes; then
9099   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9100   cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9102 #include "confdefs.h"
9103 #include <string.h>
9104
9105 _ACEOF
9106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9107   $EGREP "memchr" >/dev/null 2>&1; then
9108   :
9109 else
9110   ac_cv_header_stdc=no
9111 fi
9112 rm -f conftest*
9113
9114 fi
9115
9116 if test $ac_cv_header_stdc = yes; then
9117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9118   cat >conftest.$ac_ext <<_ACEOF
9119 #line $LINENO "configure"
9120 #include "confdefs.h"
9121 #include <stdlib.h>
9122
9123 _ACEOF
9124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9125   $EGREP "free" >/dev/null 2>&1; then
9126   :
9127 else
9128   ac_cv_header_stdc=no
9129 fi
9130 rm -f conftest*
9131
9132 fi
9133
9134 if test $ac_cv_header_stdc = yes; then
9135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9136   if test "$cross_compiling" = yes; then
9137   :
9138 else
9139   cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9141 #include "confdefs.h"
9142 #include <ctype.h>
9143 #if ((' ' & 0x0FF) == 0x020)
9144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9146 #else
9147 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9148                      || ('j' <= (c) && (c) <= 'r') \
9149                      || ('s' <= (c) && (c) <= 'z'))
9150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9151 #endif
9152
9153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9154 int
9155 main ()
9156 {
9157   int i;
9158   for (i = 0; i < 256; i++)
9159     if (XOR (islower (i), ISLOWER (i))
9160         || toupper (i) != TOUPPER (i))
9161       exit(2);
9162   exit (0);
9163 }
9164 _ACEOF
9165 rm -f conftest$ac_exeext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167   (eval $ac_link) 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   :
9177 else
9178   echo "$as_me: program exited with status $ac_status" >&5
9179 echo "$as_me: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9181 ( exit $ac_status )
9182 ac_cv_header_stdc=no
9183 fi
9184 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9185 fi
9186 fi
9187 fi
9188 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9189 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9190 if test $ac_cv_header_stdc = yes; then
9191
9192 cat >>confdefs.h <<\_ACEOF
9193 #define STDC_HEADERS 1
9194 _ACEOF
9195
9196 fi
9197
9198
9199
9200
9201 for ac_header in stdlib.h string.h unistd.h
9202 do
9203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9205   echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 fi
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212 else
9213   # Is the header compilable?
9214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 #include "confdefs.h"
9219 $ac_includes_default
9220 #include <$ac_header>
9221 _ACEOF
9222 rm -f conftest.$ac_objext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9224   (eval $ac_compile) 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } &&
9228          { ac_try='test -s conftest.$ac_objext'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; }; then
9234   ac_header_compiler=yes
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9238 ac_header_compiler=no
9239 fi
9240 rm -f conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9242 echo "${ECHO_T}$ac_header_compiler" >&6
9243
9244 # Is the header present?
9245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9249 #include "confdefs.h"
9250 #include <$ac_header>
9251 _ACEOF
9252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } >/dev/null; then
9260   if test -s conftest.err; then
9261     ac_cpp_err=$ac_c_preproc_warn_flag
9262   else
9263     ac_cpp_err=
9264   fi
9265 else
9266   ac_cpp_err=yes
9267 fi
9268 if test -z "$ac_cpp_err"; then
9269   ac_header_preproc=yes
9270 else
9271   echo "$as_me: failed program was:" >&5
9272   cat conftest.$ac_ext >&5
9273   ac_header_preproc=no
9274 fi
9275 rm -f conftest.err conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 echo "${ECHO_T}$ac_header_preproc" >&6
9278
9279 # So?  What about this header?
9280 case $ac_header_compiler:$ac_header_preproc in
9281   yes:no )
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9286   no:yes )
9287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9289     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
9294 echo "$as_me:$LINENO: checking for $ac_header" >&5
9295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   eval "$as_ac_Header=$ac_header_preproc"
9300 fi
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9303
9304 fi
9305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306   cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9308 _ACEOF
9309
9310 fi
9311
9312 done
9313
9314
9315 # Checks for typedefs, structures, and compiler characteristics.
9316 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9317 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9318 if test "${ac_cv_c_const+set}" = set; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9323 #include "confdefs.h"
9324
9325 int
9326 main ()
9327 {
9328 /* FIXME: Include the comments suggested by Paul. */
9329 #ifndef __cplusplus
9330   /* Ultrix mips cc rejects this.  */
9331   typedef int charset[2];
9332   const charset x;
9333   /* SunOS 4.1.1 cc rejects this.  */
9334   char const *const *ccp;
9335   char **p;
9336   /* NEC SVR4.0.2 mips cc rejects this.  */
9337   struct point {int x, y;};
9338   static struct point const zero = {0,0};
9339   /* AIX XL C 1.02.0.0 rejects this.
9340      It does not let you subtract one const X* pointer from another in
9341      an arm of an if-expression whose if-part is not a constant
9342      expression */
9343   const char *g = "string";
9344   ccp = &g + (g ? g-g : 0);
9345   /* HPUX 7.0 cc rejects these. */
9346   ++ccp;
9347   p = (char**) ccp;
9348   ccp = (char const *const *) p;
9349   { /* SCO 3.2v4 cc rejects this.  */
9350     char *t;
9351     char const *s = 0 ? (char *) 0 : (char const *) 0;
9352
9353     *t++ = 0;
9354   }
9355   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9356     int x[] = {25, 17};
9357     const int *foo = &x[0];
9358     ++foo;
9359   }
9360   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9361     typedef const int *iptr;
9362     iptr p = 0;
9363     ++p;
9364   }
9365   { /* AIX XL C 1.02.0.0 rejects this saying
9366        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9367     struct s { int j; const int *ap[3]; };
9368     struct s *b; b->j = 5;
9369   }
9370   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9371     const int foo = 10;
9372   }
9373 #endif
9374
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } &&
9385          { ac_try='test -s conftest.$ac_objext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_cv_c_const=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9395 ac_cv_c_const=no
9396 fi
9397 rm -f conftest.$ac_objext conftest.$ac_ext
9398 fi
9399 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9400 echo "${ECHO_T}$ac_cv_c_const" >&6
9401 if test $ac_cv_c_const = no; then
9402
9403 cat >>confdefs.h <<\_ACEOF
9404 #define const
9405 _ACEOF
9406
9407 fi
9408
9409 echo "$as_me:$LINENO: checking for size_t" >&5
9410 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9411 if test "${ac_cv_type_size_t+set}" = set; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   cat >conftest.$ac_ext <<_ACEOF
9415 #line $LINENO "configure"
9416 #include "confdefs.h"
9417 $ac_includes_default
9418 int
9419 main ()
9420 {
9421 if ((size_t *) 0)
9422   return 0;
9423 if (sizeof (size_t))
9424   return 0;
9425   ;
9426   return 0;
9427 }
9428 _ACEOF
9429 rm -f conftest.$ac_objext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431   (eval $ac_compile) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } &&
9435          { ac_try='test -s conftest.$ac_objext'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; }; then
9441   ac_cv_type_size_t=yes
9442 else
9443   echo "$as_me: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445 ac_cv_type_size_t=no
9446 fi
9447 rm -f conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9450 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9451 if test $ac_cv_type_size_t = yes; then
9452   :
9453 else
9454
9455 cat >>confdefs.h <<_ACEOF
9456 #define size_t unsigned
9457 _ACEOF
9458
9459 fi
9460
9461
9462 # Checks for library functions.
9463
9464
9465
9466 for ac_func in memset strchr strdup
9467 do
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 #include "confdefs.h"
9477 /* System header to define __stub macros and hopefully few prototypes,
9478     which can conflict with char $ac_func (); below.  */
9479 #include <assert.h>
9480 /* Override any gcc2 internal prototype to avoid an error.  */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 /* We use char because int might match the return type of a gcc2
9485    builtin and then its argument prototype would still apply.  */
9486 char $ac_func ();
9487 char (*f) ();
9488
9489 int
9490 main ()
9491 {
9492 /* The GNU C library defines this for functions which it implements
9493     to always fail with ENOSYS.  Some functions are actually named
9494     something starting with __ and the normal name is an alias.  */
9495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9496 choke me
9497 #else
9498 f = $ac_func;
9499 #endif
9500
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507   (eval $ac_link) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -s conftest$ac_exeext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   eval "$as_ac_var=yes"
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 eval "$as_ac_var=no"
9522 fi
9523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9524 fi
9525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9527 if test `eval echo '${'$as_ac_var'}'` = yes; then
9528   cat >>confdefs.h <<_ACEOF
9529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9530 _ACEOF
9531
9532 fi
9533 done
9534
9535
9536                               ac_config_files="$ac_config_files Makefile libntlm.pc ntlm.h"
9537
9538 cat >confcache <<\_ACEOF
9539 # This file is a shell script that caches the results of configure
9540 # tests run on this system so they can be shared between configure
9541 # scripts and configure runs, see configure's option --config-cache.
9542 # It is not useful on other systems.  If it contains results you don't
9543 # want to keep, you may remove or edit it.
9544 #
9545 # config.status only pays attention to the cache file if you give it
9546 # the --recheck option to rerun configure.
9547 #
9548 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9549 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9550 # following values.
9551
9552 _ACEOF
9553
9554 # The following way of writing the cache mishandles newlines in values,
9555 # but we know of no workaround that is simple, portable, and efficient.
9556 # So, don't put newlines in cache variables' values.
9557 # Ultrix sh set writes to stderr and can't be redirected directly,
9558 # and sets the high bit in the cache file unless we assign to the vars.
9559 {
9560   (set) 2>&1 |
9561     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9562     *ac_space=\ *)
9563       # `set' does not quote correctly, so add quotes (double-quote
9564       # substitution turns \\\\ into \\, and sed turns \\ into \).
9565       sed -n \
9566         "s/'/'\\\\''/g;
9567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9568       ;;
9569     *)
9570       # `set' quotes correctly as required by POSIX, so do not add quotes.
9571       sed -n \
9572         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9573       ;;
9574     esac;
9575 } |
9576   sed '
9577      t clear
9578      : clear
9579      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9580      t end
9581      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9582      : end' >>confcache
9583 if cmp -s $cache_file confcache; then :; else
9584   if test -w $cache_file; then
9585     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9586     cat confcache >$cache_file
9587   else
9588     echo "not updating unwritable cache $cache_file"
9589   fi
9590 fi
9591 rm -f confcache
9592
9593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9594 # Let make expand exec_prefix.
9595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9596
9597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9599 # trailing colons and then remove the whole line if VPATH becomes empty
9600 # (actually we leave an empty line to preserve line numbers).
9601 if test "x$srcdir" = x.; then
9602   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9603 s/:*\$(srcdir):*/:/;
9604 s/:*\${srcdir}:*/:/;
9605 s/:*@srcdir@:*/:/;
9606 s/^\([^=]*=[    ]*\):*/\1/;
9607 s/:*$//;
9608 s/^[^=]*=[      ]*$//;
9609 }'
9610 fi
9611
9612 DEFS=-DHAVE_CONFIG_H
9613
9614 ac_libobjs=
9615 ac_ltlibobjs=
9616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9617   # 1. Remove the extension, and $U if already installed.
9618   ac_i=`echo "$ac_i" |
9619          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9620   # 2. Add them.
9621   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9622   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9623 done
9624 LIBOBJS=$ac_libobjs
9625
9626 LTLIBOBJS=$ac_ltlibobjs
9627
9628
9629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9630   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9631 Usually this means the macro was only invoked conditionally." >&5
9632 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9633 Usually this means the macro was only invoked conditionally." >&2;}
9634    { (exit 1); exit 1; }; }
9635 fi
9636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9637   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9638 Usually this means the macro was only invoked conditionally." >&5
9639 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9640 Usually this means the macro was only invoked conditionally." >&2;}
9641    { (exit 1); exit 1; }; }
9642 fi
9643 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9644   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9645 Usually this means the macro was only invoked conditionally." >&5
9646 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9647 Usually this means the macro was only invoked conditionally." >&2;}
9648    { (exit 1); exit 1; }; }
9649 fi
9650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9651   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9652 Usually this means the macro was only invoked conditionally." >&5
9653 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9654 Usually this means the macro was only invoked conditionally." >&2;}
9655    { (exit 1); exit 1; }; }
9656 fi
9657
9658 : ${CONFIG_STATUS=./config.status}
9659 ac_clean_files_save=$ac_clean_files
9660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9661 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9662 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9663 cat >$CONFIG_STATUS <<_ACEOF
9664 #! $SHELL
9665 # Generated by $as_me.
9666 # Run this file to recreate the current configuration.
9667 # Compiler output produced by configure, useful for debugging
9668 # configure, is in config.log if it exists.
9669
9670 debug=false
9671 SHELL=\${CONFIG_SHELL-$SHELL}
9672 _ACEOF
9673
9674 cat >>$CONFIG_STATUS <<\_ACEOF
9675 ## --------------------- ##
9676 ## M4sh Initialization.  ##
9677 ## --------------------- ##
9678
9679 # Be Bourne compatible
9680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9681   emulate sh
9682   NULLCMD=:
9683   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9684   # is contrary to our usage.  Disable this feature.
9685   alias -g '${1+"$@"}'='"$@"'
9686 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9687   set -o posix
9688 fi
9689
9690 # Support unset when possible.
9691 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9692   as_unset=unset
9693 else
9694   as_unset=false
9695 fi
9696
9697
9698 # Work around bugs in pre-3.0 UWIN ksh.
9699 $as_unset ENV MAIL MAILPATH
9700 PS1='$ '
9701 PS2='> '
9702 PS4='+ '
9703
9704 # NLS nuisances.
9705 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
9706 do
9707   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9708     eval $as_var=C; export $as_var
9709   else
9710     $as_unset $as_var
9711   fi
9712 done
9713
9714 # Required to use basename.
9715 if expr a : '\(a\)' >/dev/null 2>&1; then
9716   as_expr=expr
9717 else
9718   as_expr=false
9719 fi
9720
9721 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9722   as_basename=basename
9723 else
9724   as_basename=false
9725 fi
9726
9727
9728 # Name of the executable.
9729 as_me=`$as_basename "$0" ||
9730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9731          X"$0" : 'X\(//\)$' \| \
9732          X"$0" : 'X\(/\)$' \| \
9733          .     : '\(.\)' 2>/dev/null ||
9734 echo X/"$0" |
9735     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9736           /^X\/\(\/\/\)$/{ s//\1/; q; }
9737           /^X\/\(\/\).*/{ s//\1/; q; }
9738           s/.*/./; q'`
9739
9740
9741 # PATH needs CR, and LINENO needs CR and PATH.
9742 # Avoid depending upon Character Ranges.
9743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9746 as_cr_digits='0123456789'
9747 as_cr_alnum=$as_cr_Letters$as_cr_digits
9748
9749 # The user is always right.
9750 if test "${PATH_SEPARATOR+set}" != set; then
9751   echo "#! /bin/sh" >conftest.sh
9752   echo  "exit 0"   >>conftest.sh
9753   chmod +x conftest.sh
9754   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
9755     PATH_SEPARATOR=';'
9756   else
9757     PATH_SEPARATOR=:
9758   fi
9759   rm -f conftest.sh
9760 fi
9761
9762
9763   as_lineno_1=$LINENO
9764   as_lineno_2=$LINENO
9765   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9766   test "x$as_lineno_1" != "x$as_lineno_2" &&
9767   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9768   # Find who we are.  Look in the path if we contain no path at all
9769   # relative or not.
9770   case $0 in
9771     *[\\/]* ) as_myself=$0 ;;
9772     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775   IFS=$as_save_IFS
9776   test -z "$as_dir" && as_dir=.
9777   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9778 done
9779
9780        ;;
9781   esac
9782   # We did not find ourselves, most probably we were run as `sh COMMAND'
9783   # in which case we are not to be found in the path.
9784   if test "x$as_myself" = x; then
9785     as_myself=$0
9786   fi
9787   if test ! -f "$as_myself"; then
9788     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9789 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9790    { (exit 1); exit 1; }; }
9791   fi
9792   case $CONFIG_SHELL in
9793   '')
9794     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9796 do
9797   IFS=$as_save_IFS
9798   test -z "$as_dir" && as_dir=.
9799   for as_base in sh bash ksh sh5; do
9800          case $as_dir in
9801          /*)
9802            if ("$as_dir/$as_base" -c '
9803   as_lineno_1=$LINENO
9804   as_lineno_2=$LINENO
9805   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9806   test "x$as_lineno_1" != "x$as_lineno_2" &&
9807   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9808              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9809              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9810              CONFIG_SHELL=$as_dir/$as_base
9811              export CONFIG_SHELL
9812              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9813            fi;;
9814          esac
9815        done
9816 done
9817 ;;
9818   esac
9819
9820   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9821   # uniformly replaced by the line number.  The first 'sed' inserts a
9822   # line-number line before each line; the second 'sed' does the real
9823   # work.  The second script uses 'N' to pair each line-number line
9824   # with the numbered line, and appends trailing '-' during
9825   # substitution so that $LINENO is not a special case at line end.
9826   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9827   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9828   sed '=' <$as_myself |
9829     sed '
9830       N
9831       s,$,-,
9832       : loop
9833       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9834       t loop
9835       s,-$,,
9836       s,^['$as_cr_digits']*\n,,
9837     ' >$as_me.lineno &&
9838   chmod +x $as_me.lineno ||
9839     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9841    { (exit 1); exit 1; }; }
9842
9843   # Don't try to exec as it changes $[0], causing all sort of problems
9844   # (the dirname of $[0] is not the place where we might find the
9845   # original and so on.  Autoconf is especially sensible to this).
9846   . ./$as_me.lineno
9847   # Exit status is that of the last command.
9848   exit
9849 }
9850
9851
9852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9853   *c*,-n*) ECHO_N= ECHO_C='
9854 ' ECHO_T='      ' ;;
9855   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9856   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9857 esac
9858
9859 if expr a : '\(a\)' >/dev/null 2>&1; then
9860   as_expr=expr
9861 else
9862   as_expr=false
9863 fi
9864
9865 rm -f conf$$ conf$$.exe conf$$.file
9866 echo >conf$$.file
9867 if ln -s conf$$.file conf$$ 2>/dev/null; then
9868   # We could just check for DJGPP; but this test a) works b) is more generic
9869   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9870   if test -f conf$$.exe; then
9871     # Don't use ln at all; we don't have any links
9872     as_ln_s='cp -p'
9873   else
9874     as_ln_s='ln -s'
9875   fi
9876 elif ln conf$$.file conf$$ 2>/dev/null; then
9877   as_ln_s=ln
9878 else
9879   as_ln_s='cp -p'
9880 fi
9881 rm -f conf$$ conf$$.exe conf$$.file
9882
9883 if mkdir -p . 2>/dev/null; then
9884   as_mkdir_p=:
9885 else
9886   as_mkdir_p=false
9887 fi
9888
9889 as_executable_p="test -f"
9890
9891 # Sed expression to map a string onto a valid CPP name.
9892 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9893
9894 # Sed expression to map a string onto a valid variable name.
9895 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9896
9897
9898 # IFS
9899 # We need space, tab and new line, in precisely that order.
9900 as_nl='
9901 '
9902 IFS="   $as_nl"
9903
9904 # CDPATH.
9905 $as_unset CDPATH
9906
9907 exec 6>&1
9908
9909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9910 # report actual input values of CONFIG_FILES etc. instead of their
9911 # values after options handling.  Logging --version etc. is OK.
9912 exec 5>>config.log
9913 {
9914   echo
9915   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9916 ## Running $as_me. ##
9917 _ASBOX
9918 } >&5
9919 cat >&5 <<_CSEOF
9920
9921 This file was extended by libntlm $as_me 0.3.1, which was
9922 generated by GNU Autoconf 2.54.  Invocation command line was
9923
9924   CONFIG_FILES    = $CONFIG_FILES
9925   CONFIG_HEADERS  = $CONFIG_HEADERS
9926   CONFIG_LINKS    = $CONFIG_LINKS
9927   CONFIG_COMMANDS = $CONFIG_COMMANDS
9928   $ $0 $@
9929
9930 _CSEOF
9931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9932 echo >&5
9933 _ACEOF
9934
9935 # Files that config.status was made for.
9936 if test -n "$ac_config_files"; then
9937   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9938 fi
9939
9940 if test -n "$ac_config_headers"; then
9941   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9942 fi
9943
9944 if test -n "$ac_config_links"; then
9945   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9946 fi
9947
9948 if test -n "$ac_config_commands"; then
9949   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9950 fi
9951
9952 cat >>$CONFIG_STATUS <<\_ACEOF
9953
9954 ac_cs_usage="\
9955 \`$as_me' instantiates files from templates according to the
9956 current configuration.
9957
9958 Usage: $0 [OPTIONS] [FILE]...
9959
9960   -h, --help       print this help, then exit
9961   -V, --version    print version number, then exit
9962   -d, --debug      don't remove temporary files
9963       --recheck    update $as_me by reconfiguring in the same conditions
9964   --file=FILE[:TEMPLATE]
9965                    instantiate the configuration file FILE
9966   --header=FILE[:TEMPLATE]
9967                    instantiate the configuration header FILE
9968
9969 Configuration files:
9970 $config_files
9971
9972 Configuration headers:
9973 $config_headers
9974
9975 Configuration commands:
9976 $config_commands
9977
9978 Report bugs to <bug-autoconf@gnu.org>."
9979 _ACEOF
9980
9981 cat >>$CONFIG_STATUS <<_ACEOF
9982 ac_cs_version="\\
9983 libntlm config.status 0.3.1
9984 configured by $0, generated by GNU Autoconf 2.54,
9985   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9986
9987 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9988 Free Software Foundation, Inc.
9989 This config.status script is free software; the Free Software Foundation
9990 gives unlimited permission to copy, distribute and modify it."
9991 srcdir=$srcdir
9992 INSTALL="$INSTALL"
9993 _ACEOF
9994
9995 cat >>$CONFIG_STATUS <<\_ACEOF
9996 # If no file are specified by the user, then we need to provide default
9997 # value.  By we need to know if files were specified by the user.
9998 ac_need_defaults=:
9999 while test $# != 0
10000 do
10001   case $1 in
10002   --*=*)
10003     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10004     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10005     ac_shift=:
10006     ;;
10007   -*)
10008     ac_option=$1
10009     ac_optarg=$2
10010     ac_shift=shift
10011     ;;
10012   *) # This is not an option, so the user has probably given explicit
10013      # arguments.
10014      ac_option=$1
10015      ac_need_defaults=false;;
10016   esac
10017
10018   case $ac_option in
10019   # Handling of the options.
10020 _ACEOF
10021 cat >>$CONFIG_STATUS <<_ACEOF
10022   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10023     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10024     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10025 _ACEOF
10026 cat >>$CONFIG_STATUS <<\_ACEOF
10027   --version | --vers* | -V )
10028     echo "$ac_cs_version"; exit 0 ;;
10029   --he | --h)
10030     # Conflict between --help and --header
10031     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10032 Try \`$0 --help' for more information." >&5
10033 echo "$as_me: error: ambiguous option: $1
10034 Try \`$0 --help' for more information." >&2;}
10035    { (exit 1); exit 1; }; };;
10036   --help | --hel | -h )
10037     echo "$ac_cs_usage"; exit 0 ;;
10038   --debug | --d* | -d )
10039     debug=: ;;
10040   --file | --fil | --fi | --f )
10041     $ac_shift
10042     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10043     ac_need_defaults=false;;
10044   --header | --heade | --head | --hea )
10045     $ac_shift
10046     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10047     ac_need_defaults=false;;
10048
10049   # This is an error.
10050   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10051 Try \`$0 --help' for more information." >&5
10052 echo "$as_me: error: unrecognized option: $1
10053 Try \`$0 --help' for more information." >&2;}
10054    { (exit 1); exit 1; }; } ;;
10055
10056   *) ac_config_targets="$ac_config_targets $1" ;;
10057
10058   esac
10059   shift
10060 done
10061
10062 _ACEOF
10063
10064 cat >>$CONFIG_STATUS <<_ACEOF
10065 #
10066 # INIT-COMMANDS section.
10067 #
10068
10069 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10070
10071 _ACEOF
10072
10073
10074
10075 cat >>$CONFIG_STATUS <<\_ACEOF
10076 for ac_config_target in $ac_config_targets
10077 do
10078   case "$ac_config_target" in
10079   # Handling of arguments.
10080   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10081   "libntlm.pc" ) CONFIG_FILES="$CONFIG_FILES libntlm.pc" ;;
10082   "ntlm.h" ) CONFIG_FILES="$CONFIG_FILES ntlm.h" ;;
10083   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10084   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10085   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10086 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10087    { (exit 1); exit 1; }; };;
10088   esac
10089 done
10090
10091 # If the user did not use the arguments to specify the items to instantiate,
10092 # then the envvar interface is used.  Set only those that are not.
10093 # We use the long form for the default assignment because of an extremely
10094 # bizarre bug on SunOS 4.1.3.
10095 if $ac_need_defaults; then
10096   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10097   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10098   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10099 fi
10100
10101 # Create a temporary directory, and hook for its removal unless debugging.
10102 $debug ||
10103 {
10104   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10105   trap '{ (exit 1); exit 1; }' 1 2 13 15
10106 }
10107
10108 # Create a (secure) tmp directory for tmp files.
10109 : ${TMPDIR=/tmp}
10110 {
10111   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10112   test -n "$tmp" && test -d "$tmp"
10113 }  ||
10114 {
10115   tmp=$TMPDIR/cs$$-$RANDOM
10116   (umask 077 && mkdir $tmp)
10117 } ||
10118 {
10119    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10120    { (exit 1); exit 1; }
10121 }
10122
10123 _ACEOF
10124
10125 cat >>$CONFIG_STATUS <<_ACEOF
10126
10127 #
10128 # CONFIG_FILES section.
10129 #
10130
10131 # No need to generate the scripts if there are no CONFIG_FILES.
10132 # This happens for instance when ./config.status config.h
10133 if test -n "\$CONFIG_FILES"; then
10134   # Protect against being on the right side of a sed subst in config.status.
10135   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10136    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10137 s,@SHELL@,$SHELL,;t t
10138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10144 s,@exec_prefix@,$exec_prefix,;t t
10145 s,@prefix@,$prefix,;t t
10146 s,@program_transform_name@,$program_transform_name,;t t
10147 s,@bindir@,$bindir,;t t
10148 s,@sbindir@,$sbindir,;t t
10149 s,@libexecdir@,$libexecdir,;t t
10150 s,@datadir@,$datadir,;t t
10151 s,@sysconfdir@,$sysconfdir,;t t
10152 s,@sharedstatedir@,$sharedstatedir,;t t
10153 s,@localstatedir@,$localstatedir,;t t
10154 s,@libdir@,$libdir,;t t
10155 s,@includedir@,$includedir,;t t
10156 s,@oldincludedir@,$oldincludedir,;t t
10157 s,@infodir@,$infodir,;t t
10158 s,@mandir@,$mandir,;t t
10159 s,@build_alias@,$build_alias,;t t
10160 s,@host_alias@,$host_alias,;t t
10161 s,@target_alias@,$target_alias,;t t
10162 s,@DEFS@,$DEFS,;t t
10163 s,@ECHO_C@,$ECHO_C,;t t
10164 s,@ECHO_N@,$ECHO_N,;t t
10165 s,@ECHO_T@,$ECHO_T,;t t
10166 s,@LIBS@,$LIBS,;t t
10167 s,@LT_CURRENT@,$LT_CURRENT,;t t
10168 s,@LT_AGE@,$LT_AGE,;t t
10169 s,@LT_REVISION@,$LT_REVISION,;t t
10170 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10171 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10172 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10173 s,@CYGPATH_W@,$CYGPATH_W,;t t
10174 s,@PACKAGE@,$PACKAGE,;t t
10175 s,@VERSION@,$VERSION,;t t
10176 s,@ACLOCAL@,$ACLOCAL,;t t
10177 s,@AUTOCONF@,$AUTOCONF,;t t
10178 s,@AUTOMAKE@,$AUTOMAKE,;t t
10179 s,@AUTOHEADER@,$AUTOHEADER,;t t
10180 s,@MAKEINFO@,$MAKEINFO,;t t
10181 s,@AMTAR@,$AMTAR,;t t
10182 s,@install_sh@,$install_sh,;t t
10183 s,@STRIP@,$STRIP,;t t
10184 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10185 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10186 s,@AWK@,$AWK,;t t
10187 s,@SET_MAKE@,$SET_MAKE,;t t
10188 s,@build@,$build,;t t
10189 s,@build_cpu@,$build_cpu,;t t
10190 s,@build_vendor@,$build_vendor,;t t
10191 s,@build_os@,$build_os,;t t
10192 s,@host@,$host,;t t
10193 s,@host_cpu@,$host_cpu,;t t
10194 s,@host_vendor@,$host_vendor,;t t
10195 s,@host_os@,$host_os,;t t
10196 s,@CC@,$CC,;t t
10197 s,@CFLAGS@,$CFLAGS,;t t
10198 s,@LDFLAGS@,$LDFLAGS,;t t
10199 s,@CPPFLAGS@,$CPPFLAGS,;t t
10200 s,@ac_ct_CC@,$ac_ct_CC,;t t
10201 s,@EXEEXT@,$EXEEXT,;t t
10202 s,@OBJEXT@,$OBJEXT,;t t
10203 s,@DEPDIR@,$DEPDIR,;t t
10204 s,@am__include@,$am__include,;t t
10205 s,@am__quote@,$am__quote,;t t
10206 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10207 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10208 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10209 s,@CCDEPMODE@,$CCDEPMODE,;t t
10210 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10211 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10212 s,@LN_S@,$LN_S,;t t
10213 s,@ECHO@,$ECHO,;t t
10214 s,@RANLIB@,$RANLIB,;t t
10215 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10216 s,@CPP@,$CPP,;t t
10217 s,@EGREP@,$EGREP,;t t
10218 s,@LIBTOOL@,$LIBTOOL,;t t
10219 s,@CXX@,$CXX,;t t
10220 s,@CXXFLAGS@,$CXXFLAGS,;t t
10221 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10222 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10223 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10224 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10225 s,@LIBOBJS@,$LIBOBJS,;t t
10226 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10227 CEOF
10228
10229 _ACEOF
10230
10231   cat >>$CONFIG_STATUS <<\_ACEOF
10232   # Split the substitutions into bite-sized pieces for seds with
10233   # small command number limits, like on Digital OSF/1 and HP-UX.
10234   ac_max_sed_lines=48
10235   ac_sed_frag=1 # Number of current file.
10236   ac_beg=1 # First line for current file.
10237   ac_end=$ac_max_sed_lines # Line after last line for current file.
10238   ac_more_lines=:
10239   ac_sed_cmds=
10240   while $ac_more_lines; do
10241     if test $ac_beg -gt 1; then
10242       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10243     else
10244       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10245     fi
10246     if test ! -s $tmp/subs.frag; then
10247       ac_more_lines=false
10248     else
10249       # The purpose of the label and of the branching condition is to
10250       # speed up the sed processing (if there are no `@' at all, there
10251       # is no need to browse any of the substitutions).
10252       # These are the two extra sed commands mentioned above.
10253       (echo ':t
10254   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10255       if test -z "$ac_sed_cmds"; then
10256         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10257       else
10258         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10259       fi
10260       ac_sed_frag=`expr $ac_sed_frag + 1`
10261       ac_beg=$ac_end
10262       ac_end=`expr $ac_end + $ac_max_sed_lines`
10263     fi
10264   done
10265   if test -z "$ac_sed_cmds"; then
10266     ac_sed_cmds=cat
10267   fi
10268 fi # test -n "$CONFIG_FILES"
10269
10270 _ACEOF
10271 cat >>$CONFIG_STATUS <<\_ACEOF
10272 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10273   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10274   case $ac_file in
10275   - | *:- | *:-:* ) # input from stdin
10276         cat >$tmp/stdin
10277         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10278         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10279   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10280         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10281   * )   ac_file_in=$ac_file.in ;;
10282   esac
10283
10284   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10285   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10287          X"$ac_file" : 'X\(//\)[^/]' \| \
10288          X"$ac_file" : 'X\(//\)$' \| \
10289          X"$ac_file" : 'X\(/\)' \| \
10290          .     : '\(.\)' 2>/dev/null ||
10291 echo X"$ac_file" |
10292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10293           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10294           /^X\(\/\/\)$/{ s//\1/; q; }
10295           /^X\(\/\).*/{ s//\1/; q; }
10296           s/.*/./; q'`
10297   { if $as_mkdir_p; then
10298     mkdir -p "$ac_dir"
10299   else
10300     as_dir="$ac_dir"
10301     as_dirs=
10302     while test ! -d "$as_dir"; do
10303       as_dirs="$as_dir $as_dirs"
10304       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10306          X"$as_dir" : 'X\(//\)[^/]' \| \
10307          X"$as_dir" : 'X\(//\)$' \| \
10308          X"$as_dir" : 'X\(/\)' \| \
10309          .     : '\(.\)' 2>/dev/null ||
10310 echo X"$as_dir" |
10311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10313           /^X\(\/\/\)$/{ s//\1/; q; }
10314           /^X\(\/\).*/{ s//\1/; q; }
10315           s/.*/./; q'`
10316     done
10317     test ! -n "$as_dirs" || mkdir $as_dirs
10318   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10320    { (exit 1); exit 1; }; }; }
10321
10322   ac_builddir=.
10323
10324 if test "$ac_dir" != .; then
10325   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10326   # A "../" for each directory in $ac_dir_suffix.
10327   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10328 else
10329   ac_dir_suffix= ac_top_builddir=
10330 fi
10331
10332 case $srcdir in
10333   .)  # No --srcdir option.  We are building in place.
10334     ac_srcdir=.
10335     if test -z "$ac_top_builddir"; then
10336        ac_top_srcdir=.
10337     else
10338        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10339     fi ;;
10340   [\\/]* | ?:[\\/]* )  # Absolute path.
10341     ac_srcdir=$srcdir$ac_dir_suffix;
10342     ac_top_srcdir=$srcdir ;;
10343   *) # Relative path.
10344     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10345     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10346 esac
10347 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10348 # absolute.
10349 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10350 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10351 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10352 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10353
10354
10355   case $INSTALL in
10356   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10357   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10358   esac
10359
10360   if test x"$ac_file" != x-; then
10361     { echo "$as_me:$LINENO: creating $ac_file" >&5
10362 echo "$as_me: creating $ac_file" >&6;}
10363     rm -f "$ac_file"
10364   fi
10365   # Let's still pretend it is `configure' which instantiates (i.e., don't
10366   # use $as_me), people would be surprised to read:
10367   #    /* config.h.  Generated by config.status.  */
10368   if test x"$ac_file" = x-; then
10369     configure_input=
10370   else
10371     configure_input="$ac_file.  "
10372   fi
10373   configure_input=$configure_input"Generated from `echo $ac_file_in |
10374                                      sed 's,.*/,,'` by configure."
10375
10376   # First look for the input files in the build tree, otherwise in the
10377   # src tree.
10378   ac_file_inputs=`IFS=:
10379     for f in $ac_file_in; do
10380       case $f in
10381       -) echo $tmp/stdin ;;
10382       [\\/$]*)
10383          # Absolute (can't be DOS-style, as IFS=:)
10384          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10385 echo "$as_me: error: cannot find input file: $f" >&2;}
10386    { (exit 1); exit 1; }; }
10387          echo $f;;
10388       *) # Relative
10389          if test -f "$f"; then
10390            # Build tree
10391            echo $f
10392          elif test -f "$srcdir/$f"; then
10393            # Source tree
10394            echo $srcdir/$f
10395          else
10396            # /dev/null tree
10397            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10398 echo "$as_me: error: cannot find input file: $f" >&2;}
10399    { (exit 1); exit 1; }; }
10400          fi;;
10401       esac
10402     done` || { (exit 1); exit 1; }
10403 _ACEOF
10404 cat >>$CONFIG_STATUS <<_ACEOF
10405   sed "$ac_vpsub
10406 $extrasub
10407 _ACEOF
10408 cat >>$CONFIG_STATUS <<\_ACEOF
10409 :t
10410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10411 s,@configure_input@,$configure_input,;t t
10412 s,@srcdir@,$ac_srcdir,;t t
10413 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10414 s,@top_srcdir@,$ac_top_srcdir,;t t
10415 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10416 s,@builddir@,$ac_builddir,;t t
10417 s,@abs_builddir@,$ac_abs_builddir,;t t
10418 s,@top_builddir@,$ac_top_builddir,;t t
10419 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10420 s,@INSTALL@,$ac_INSTALL,;t t
10421 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10422   rm -f $tmp/stdin
10423   if test x"$ac_file" != x-; then
10424     mv $tmp/out $ac_file
10425   else
10426     cat $tmp/out
10427     rm -f $tmp/out
10428   fi
10429
10430 done
10431 _ACEOF
10432 cat >>$CONFIG_STATUS <<\_ACEOF
10433
10434 #
10435 # CONFIG_HEADER section.
10436 #
10437
10438 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10439 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10440 #
10441 # ac_d sets the value in "#define NAME VALUE" lines.
10442 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10443 ac_dB='[        ].*$,\1#\2'
10444 ac_dC=' '
10445 ac_dD=',;t'
10446 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10447 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10448 ac_uB='$,\1#\2define\3'
10449 ac_uC=' '
10450 ac_uD=',;t'
10451
10452 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10453   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10454   case $ac_file in
10455   - | *:- | *:-:* ) # input from stdin
10456         cat >$tmp/stdin
10457         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10458         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10459   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10460         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10461   * )   ac_file_in=$ac_file.in ;;
10462   esac
10463
10464   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10465 echo "$as_me: creating $ac_file" >&6;}
10466
10467   # First look for the input files in the build tree, otherwise in the
10468   # src tree.
10469   ac_file_inputs=`IFS=:
10470     for f in $ac_file_in; do
10471       case $f in
10472       -) echo $tmp/stdin ;;
10473       [\\/$]*)
10474          # Absolute (can't be DOS-style, as IFS=:)
10475          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10476 echo "$as_me: error: cannot find input file: $f" >&2;}
10477    { (exit 1); exit 1; }; }
10478          echo $f;;
10479       *) # Relative
10480          if test -f "$f"; then
10481            # Build tree
10482            echo $f
10483          elif test -f "$srcdir/$f"; then
10484            # Source tree
10485            echo $srcdir/$f
10486          else
10487            # /dev/null tree
10488            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10489 echo "$as_me: error: cannot find input file: $f" >&2;}
10490    { (exit 1); exit 1; }; }
10491          fi;;
10492       esac
10493     done` || { (exit 1); exit 1; }
10494   # Remove the trailing spaces.
10495   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10496
10497 _ACEOF
10498
10499 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10500 # `conftest.undefs', that substitutes the proper values into
10501 # config.h.in to produce config.h.  The first handles `#define'
10502 # templates, and the second `#undef' templates.
10503 # And first: Protect against being on the right side of a sed subst in
10504 # config.status.  Protect against being in an unquoted here document
10505 # in config.status.
10506 rm -f conftest.defines conftest.undefs
10507 # Using a here document instead of a string reduces the quoting nightmare.
10508 # Putting comments in sed scripts is not portable.
10509 #
10510 # `end' is used to avoid that the second main sed command (meant for
10511 # 0-ary CPP macros) applies to n-ary macro definitions.
10512 # See the Autoconf documentation for `clear'.
10513 cat >confdef2sed.sed <<\_ACEOF
10514 s/[\\&,]/\\&/g
10515 s,[\\$`],\\&,g
10516 t clear
10517 : clear
10518 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10519 t end
10520 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10521 : end
10522 _ACEOF
10523 # If some macros were called several times there might be several times
10524 # the same #defines, which is useless.  Nevertheless, we may not want to
10525 # sort them, since we want the *last* AC-DEFINE to be honored.
10526 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10527 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10528 rm -f confdef2sed.sed
10529
10530 # This sed command replaces #undef with comments.  This is necessary, for
10531 # example, in the case of _POSIX_SOURCE, which is predefined and required
10532 # on some systems where configure will not decide to define it.
10533 cat >>conftest.undefs <<\_ACEOF
10534 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10535 _ACEOF
10536
10537 # Break up conftest.defines because some shells have a limit on the size
10538 # of here documents, and old seds have small limits too (100 cmds).
10539 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10540 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10541 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10542 echo '  :' >>$CONFIG_STATUS
10543 rm -f conftest.tail
10544 while grep . conftest.defines >/dev/null
10545 do
10546   # Write a limited-size here document to $tmp/defines.sed.
10547   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10548   # Speed up: don't consider the non `#define' lines.
10549   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10550   # Work around the forget-to-reset-the-flag bug.
10551   echo 't clr' >>$CONFIG_STATUS
10552   echo ': clr' >>$CONFIG_STATUS
10553   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10554   echo 'CEOF
10555   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10556   rm -f $tmp/in
10557   mv $tmp/out $tmp/in
10558 ' >>$CONFIG_STATUS
10559   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10560   rm -f conftest.defines
10561   mv conftest.tail conftest.defines
10562 done
10563 rm -f conftest.defines
10564 echo '  fi # grep' >>$CONFIG_STATUS
10565 echo >>$CONFIG_STATUS
10566
10567 # Break up conftest.undefs because some shells have a limit on the size
10568 # of here documents, and old seds have small limits too (100 cmds).
10569 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10570 rm -f conftest.tail
10571 while grep . conftest.undefs >/dev/null
10572 do
10573   # Write a limited-size here document to $tmp/undefs.sed.
10574   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10575   # Speed up: don't consider the non `#undef'
10576   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10577   # Work around the forget-to-reset-the-flag bug.
10578   echo 't clr' >>$CONFIG_STATUS
10579   echo ': clr' >>$CONFIG_STATUS
10580   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10581   echo 'CEOF
10582   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10583   rm -f $tmp/in
10584   mv $tmp/out $tmp/in
10585 ' >>$CONFIG_STATUS
10586   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10587   rm -f conftest.undefs
10588   mv conftest.tail conftest.undefs
10589 done
10590 rm -f conftest.undefs
10591
10592 cat >>$CONFIG_STATUS <<\_ACEOF
10593   # Let's still pretend it is `configure' which instantiates (i.e., don't
10594   # use $as_me), people would be surprised to read:
10595   #    /* config.h.  Generated by config.status.  */
10596   if test x"$ac_file" = x-; then
10597     echo "/* Generated by configure.  */" >$tmp/config.h
10598   else
10599     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10600   fi
10601   cat $tmp/in >>$tmp/config.h
10602   rm -f $tmp/in
10603   if test x"$ac_file" != x-; then
10604     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10605       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10606 echo "$as_me: $ac_file is unchanged" >&6;}
10607     else
10608       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10610          X"$ac_file" : 'X\(//\)[^/]' \| \
10611          X"$ac_file" : 'X\(//\)$' \| \
10612          X"$ac_file" : 'X\(/\)' \| \
10613          .     : '\(.\)' 2>/dev/null ||
10614 echo X"$ac_file" |
10615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10617           /^X\(\/\/\)$/{ s//\1/; q; }
10618           /^X\(\/\).*/{ s//\1/; q; }
10619           s/.*/./; q'`
10620       { if $as_mkdir_p; then
10621     mkdir -p "$ac_dir"
10622   else
10623     as_dir="$ac_dir"
10624     as_dirs=
10625     while test ! -d "$as_dir"; do
10626       as_dirs="$as_dir $as_dirs"
10627       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10629          X"$as_dir" : 'X\(//\)[^/]' \| \
10630          X"$as_dir" : 'X\(//\)$' \| \
10631          X"$as_dir" : 'X\(/\)' \| \
10632          .     : '\(.\)' 2>/dev/null ||
10633 echo X"$as_dir" |
10634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10636           /^X\(\/\/\)$/{ s//\1/; q; }
10637           /^X\(\/\).*/{ s//\1/; q; }
10638           s/.*/./; q'`
10639     done
10640     test ! -n "$as_dirs" || mkdir $as_dirs
10641   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10643    { (exit 1); exit 1; }; }; }
10644
10645       rm -f $ac_file
10646       mv $tmp/config.h $ac_file
10647     fi
10648   else
10649     cat $tmp/config.h
10650     rm -f $tmp/config.h
10651   fi
10652 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
10653 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10654 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10655          X$ac_file : 'X\(//\)[^/]' \| \
10656          X$ac_file : 'X\(//\)$' \| \
10657          X$ac_file : 'X\(/\)' \| \
10658          .     : '\(.\)' 2>/dev/null ||
10659 echo X$ac_file |
10660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10661           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10662           /^X\(\/\/\)$/{ s//\1/; q; }
10663           /^X\(\/\).*/{ s//\1/; q; }
10664           s/.*/./; q'`/stamp-h$_am_stamp_count
10665 done
10666 _ACEOF
10667 cat >>$CONFIG_STATUS <<\_ACEOF
10668
10669 #
10670 # CONFIG_COMMANDS section.
10671 #
10672 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10673   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10674   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10675   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10676 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10677          X"$ac_dest" : 'X\(//\)[^/]' \| \
10678          X"$ac_dest" : 'X\(//\)$' \| \
10679          X"$ac_dest" : 'X\(/\)' \| \
10680          .     : '\(.\)' 2>/dev/null ||
10681 echo X"$ac_dest" |
10682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10684           /^X\(\/\/\)$/{ s//\1/; q; }
10685           /^X\(\/\).*/{ s//\1/; q; }
10686           s/.*/./; q'`
10687   ac_builddir=.
10688
10689 if test "$ac_dir" != .; then
10690   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10691   # A "../" for each directory in $ac_dir_suffix.
10692   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10693 else
10694   ac_dir_suffix= ac_top_builddir=
10695 fi
10696
10697 case $srcdir in
10698   .)  # No --srcdir option.  We are building in place.
10699     ac_srcdir=.
10700     if test -z "$ac_top_builddir"; then
10701        ac_top_srcdir=.
10702     else
10703        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10704     fi ;;
10705   [\\/]* | ?:[\\/]* )  # Absolute path.
10706     ac_srcdir=$srcdir$ac_dir_suffix;
10707     ac_top_srcdir=$srcdir ;;
10708   *) # Relative path.
10709     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10710     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10711 esac
10712 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10713 # absolute.
10714 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10715 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10716 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10717 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10718
10719
10720   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10721 echo "$as_me: executing $ac_dest commands" >&6;}
10722   case $ac_dest in
10723     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10724   # Strip MF so we end up with the name of the file.
10725   mf=`echo "$mf" | sed -e 's/:.*$//'`
10726   # Check whether this is an Automake generated Makefile or not.
10727   # We used to match only the files named `Makefile.in', but
10728   # some people rename them; so instead we look at the file content.
10729   # Grep'ing the first line is not enough: some people post-process
10730   # each Makefile.in and add a new line on top of each file to say so.
10731   # So let's grep whole file.
10732   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10733     dirpart=`(dirname "$mf") 2>/dev/null ||
10734 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10735          X"$mf" : 'X\(//\)[^/]' \| \
10736          X"$mf" : 'X\(//\)$' \| \
10737          X"$mf" : 'X\(/\)' \| \
10738          .     : '\(.\)' 2>/dev/null ||
10739 echo X"$mf" |
10740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10741           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10742           /^X\(\/\/\)$/{ s//\1/; q; }
10743           /^X\(\/\).*/{ s//\1/; q; }
10744           s/.*/./; q'`
10745   else
10746     continue
10747   fi
10748   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10749   # Extract the definition of DEP_FILES from the Makefile without
10750   # running `make'.
10751   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10752   test -z "$DEPDIR" && continue
10753   # When using ansi2knr, U may be empty or an underscore; expand it
10754   U=`sed -n -e '/^U = / s///p' < "$mf"`
10755   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10756   # We invoke sed twice because it is the simplest approach to
10757   # changing $(DEPDIR) to its actual value in the expansion.
10758   for file in `sed -n -e '
10759     /^DEP_FILES = .*\\\\$/ {
10760       s/^DEP_FILES = //
10761       :loop
10762         s/\\\\$//
10763         p
10764         n
10765         /\\\\$/ b loop
10766       p
10767     }
10768     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10769        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10770     # Make sure the directory exists.
10771     test -f "$dirpart/$file" && continue
10772     fdir=`(dirname "$file") 2>/dev/null ||
10773 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10774          X"$file" : 'X\(//\)[^/]' \| \
10775          X"$file" : 'X\(//\)$' \| \
10776          X"$file" : 'X\(/\)' \| \
10777          .     : '\(.\)' 2>/dev/null ||
10778 echo X"$file" |
10779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10781           /^X\(\/\/\)$/{ s//\1/; q; }
10782           /^X\(\/\).*/{ s//\1/; q; }
10783           s/.*/./; q'`
10784     { if $as_mkdir_p; then
10785     mkdir -p $dirpart/$fdir
10786   else
10787     as_dir=$dirpart/$fdir
10788     as_dirs=
10789     while test ! -d "$as_dir"; do
10790       as_dirs="$as_dir $as_dirs"
10791       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10793          X"$as_dir" : 'X\(//\)[^/]' \| \
10794          X"$as_dir" : 'X\(//\)$' \| \
10795          X"$as_dir" : 'X\(/\)' \| \
10796          .     : '\(.\)' 2>/dev/null ||
10797 echo X"$as_dir" |
10798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10799           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10800           /^X\(\/\/\)$/{ s//\1/; q; }
10801           /^X\(\/\).*/{ s//\1/; q; }
10802           s/.*/./; q'`
10803     done
10804     test ! -n "$as_dirs" || mkdir $as_dirs
10805   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10806 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10807    { (exit 1); exit 1; }; }; }
10808
10809     # echo "creating $dirpart/$file"
10810     echo '# dummy' > "$dirpart/$file"
10811   done
10812 done
10813  ;;
10814   esac
10815 done
10816 _ACEOF
10817
10818 cat >>$CONFIG_STATUS <<\_ACEOF
10819
10820 { (exit 0); exit 0; }
10821 _ACEOF
10822 chmod +x $CONFIG_STATUS
10823 ac_clean_files=$ac_clean_files_save
10824
10825
10826 # configure is writing to config.log, and then calls config.status.
10827 # config.status does its own redirection, appending to config.log.
10828 # Unfortunately, on DOS this fails, as config.log is still kept open
10829 # by configure, so config.status won't be able to write to it; its
10830 # output is simply discarded.  So we exec the FD to /dev/null,
10831 # effectively closing config.log, so it can be properly (re)opened and
10832 # appended to by config.status.  When coming back to configure, we
10833 # need to make the FD available again.
10834 if test "$no_create" != yes; then
10835   ac_cs_success=:
10836   exec 5>/dev/null
10837   $SHELL $CONFIG_STATUS || ac_cs_success=false
10838   exec 5>>config.log
10839   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10840   # would make configure fail if this is the last instruction.
10841   $ac_cs_success || { (exit 1); exit 1; }
10842 fi
10843