e8a9fa2130e787025a566e42351aea662fa9d941
[lufs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator.  Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246   UNAME=${UNAME-`uname 2>/dev/null`}
247   case X$UNAME in
248     *-DOS) lt_cv_sys_path_separator=';' ;;
249     *)     lt_cv_sys_path_separator=':' ;;
250   esac
251   PATH_SEPARATOR=$lt_cv_sys_path_separator
252 fi
253
254
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 case X$ECHO in
259 X*--fallback-echo)
260   # Remove one level of quotation (which was required for Make).
261   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262   ;;
263 esac
264
265 echo=${ECHO-echo}
266 if test "X$1" = X--no-reexec; then
267   # Discard the --no-reexec flag, and continue.
268   shift
269 elif test "X$1" = X--fallback-echo; then
270   # Avoid inline document here, it may be left over
271   :
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273   # Yippee, $echo works!
274   :
275 else
276   # Restart under the correct shell.
277   exec $SHELL "$0" --no-reexec ${1+"$@"}
278 fi
279
280 if test "X$1" = X--fallback-echo; then
281   # used as fallback echo
282   shift
283   cat <<EOF
284
285 EOF
286   exit 0
287 fi
288
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 # if CDPATH is set.
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299        echo_test_string="`eval $cmd`" &&
300        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301     then
302       break
303     fi
304   done
305 fi
306
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309    test "X$echo_testing_string" = "X$echo_test_string"; then
310   :
311 else
312   # The Solaris, AIX, and Digital Unix default echo programs unquote
313   # backslashes.  This makes it impossible to quote backslashes using
314   #   echo "$something" | sed 's/\\/\\\\/g'
315   #
316   # So, first we look for a working echo in the user's PATH.
317
318   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319   for dir in $PATH /usr/ucb; do
320     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323        test "X$echo_testing_string" = "X$echo_test_string"; then
324       echo="$dir/echo"
325       break
326     fi
327   done
328   IFS="$save_ifs"
329
330   if test "X$echo" = Xecho; then
331     # We didn't find a better echo, so look for alternatives.
332     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334        test "X$echo_testing_string" = "X$echo_test_string"; then
335       # This shell has a builtin print -r that does the trick.
336       echo='print -r'
337     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338          test "X$CONFIG_SHELL" != X/bin/ksh; then
339       # If we have ksh, try running configure again with it.
340       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341       export ORIGINAL_CONFIG_SHELL
342       CONFIG_SHELL=/bin/ksh
343       export CONFIG_SHELL
344       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345     else
346       # Try using printf.
347       echo='printf %s\n'
348       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350          test "X$echo_testing_string" = "X$echo_test_string"; then
351         # Cool, printf works
352         :
353       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358         export CONFIG_SHELL
359         SHELL="$CONFIG_SHELL"
360         export SHELL
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363            test "X$echo_testing_string" = 'X\t' &&
364            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365            test "X$echo_testing_string" = "X$echo_test_string"; then
366         echo="$CONFIG_SHELL $0 --fallback-echo"
367       else
368         # maybe with a smaller string...
369         prev=:
370
371         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373           then
374             break
375           fi
376           prev="$cmd"
377         done
378
379         if test "$prev" != 'sed 50q "$0"'; then
380           echo_test_string=`eval $prev`
381           export echo_test_string
382           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383         else
384           # Oops.  We lost completely, so just stick with echo.
385           echo=echo
386         fi
387       fi
388     fi
389   fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="AUTHORS"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 am__leading_dot MODV_FLAGS KERNEL_DIR MODULES_DIR KERNEL_HDR OS_DIR DEBUG_FLAGS KDEBUG_FLAGS AUTOFS_INSTALL LUFS_SUID 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S ECHO RANLIB ac_ct_RANLIB EGREP LIBTOOL SSHPROG GCONF GVFSCONF GVFS_LDADD GVFS_CFLAGS define_has_libchipcard LIBCHIPCARD_LIB LIBCHIPCARD_INCLUDES opt_fs all_includes all_libraries LIBOBJS LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939
940 #
941 # Report the --help message.
942 #
943 if test "$ac_init_help" = "long"; then
944   # Omit some internal or obsolete options to make the list less imposing.
945   # This message is too long to be a string in the A/UX 3.1 sh.
946   cat <<_ACEOF
947 \`configure' configures this package to adapt to many kinds of systems.
948
949 Usage: $0 [OPTION]... [VAR=VALUE]...
950
951 To assign environment variables (e.g., CC, CFLAGS...), specify them as
952 VAR=VALUE.  See below for descriptions of some of the useful variables.
953
954 Defaults for the options are specified in brackets.
955
956 Configuration:
957   -h, --help              display this help and exit
958       --help=short        display options specific to this package
959       --help=recursive    display the short help of all the included packages
960   -V, --version           display version information and exit
961   -q, --quiet, --silent   do not print \`checking...' messages
962       --cache-file=FILE   cache test results in FILE [disabled]
963   -C, --config-cache      alias for \`--cache-file=config.cache'
964   -n, --no-create         do not create output files
965       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
966
967 _ACEOF
968
969   cat <<_ACEOF
970 Installation directories:
971   --prefix=PREFIX         install architecture-independent files in PREFIX
972                           [$ac_default_prefix]
973   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
974                           [PREFIX]
975
976 By default, \`make install' will install all the files in
977 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
978 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979 for instance \`--prefix=\$HOME'.
980
981 For better control, use the options below.
982
983 Fine tuning of the installation directories:
984   --bindir=DIR           user executables [EPREFIX/bin]
985   --sbindir=DIR          system admin executables [EPREFIX/sbin]
986   --libexecdir=DIR       program executables [EPREFIX/libexec]
987   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
988   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
989   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
990   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
991   --libdir=DIR           object code libraries [EPREFIX/lib]
992   --includedir=DIR       C header files [PREFIX/include]
993   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
994   --infodir=DIR          info documentation [PREFIX/info]
995   --mandir=DIR           man documentation [PREFIX/man]
996 _ACEOF
997
998   cat <<\_ACEOF
999
1000 Program names:
1001   --program-prefix=PREFIX            prepend PREFIX to installed program names
1002   --program-suffix=SUFFIX            append SUFFIX to installed program names
1003   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1004
1005 System types:
1006   --build=BUILD     configure for building on BUILD [guessed]
1007   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1008   --target=TARGET   configure for building compilers for TARGET [HOST]
1009 _ACEOF
1010 fi
1011
1012 if test -n "$ac_init_help"; then
1013
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-kernel-support enable building of the kernel module (default=yes)
1020   --enable-modversions    enable modeversions support (default=auto-detect)
1021   --enable-debug          enable debug messages to stdout (default=no)
1022   --enable-kdebug         enable kernel module debug messages (default=no)
1023   --enable-autofs-install enable installing of autofs configuration (default=no)
1024   --enable-suid           make lufsmnt and lufsumount suid root (default=yes)
1025   --enable-static=PKGS  build static libraries default=no
1026   --disable-dependency-tracking Speeds up one-time builds
1027   --enable-dependency-tracking  Do not reject slow dependency extractors
1028   --enable-shared=PKGS  build shared libraries default=yes
1029   --enable-fast-install=PKGS  optimize for fast installation default=yes
1030   --disable-libtool-lock  avoid locking (might break parallel builds)
1031   --enable-wavfs          build wavfs support (default=no)
1032   --enable-cefs           build cefs support (default=no)
1033   --enable-cardfs         build cardfs support (default=no)
1034
1035 Optional Packages:
1036   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1037   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1038   --with-kernel=VERSION   specify a kernel version to compile for
1039   --with-kheaders=DIR     specify the location of the kernel headers
1040   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1041   --with-pic              try to use only PIC/non-PIC objects default=use both
1042   --with-ssh=PATH         specify the path to the ssh executable
1043   --with-chipcard-dir=DIR uses libchipcard from given dir
1044
1045 Some influential environment variables:
1046   CC          C compiler command
1047   CFLAGS      C compiler flags
1048   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1049               nonstandard directory <lib dir>
1050   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051               headers in a nonstandard directory <include dir>
1052   CPP         C preprocessor
1053   CXX         C++ compiler command
1054   CXXFLAGS    C++ compiler flags
1055
1056 Use these variables to override the choices made by `configure' or to help
1057 it to find libraries and programs with nonstandard names/locations.
1058
1059 _ACEOF
1060 fi
1061
1062 if test "$ac_init_help" = "recursive"; then
1063   # If there are subdirs, report their specific --help.
1064   ac_popdir=`pwd`
1065   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1066     test -d $ac_dir || continue
1067     ac_builddir=.
1068
1069 if test "$ac_dir" != .; then
1070   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1071   # A "../" for each directory in $ac_dir_suffix.
1072   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1073 else
1074   ac_dir_suffix= ac_top_builddir=
1075 fi
1076
1077 case $srcdir in
1078   .)  # No --srcdir option.  We are building in place.
1079     ac_srcdir=.
1080     if test -z "$ac_top_builddir"; then
1081        ac_top_srcdir=.
1082     else
1083        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1084     fi ;;
1085   [\\/]* | ?:[\\/]* )  # Absolute path.
1086     ac_srcdir=$srcdir$ac_dir_suffix;
1087     ac_top_srcdir=$srcdir ;;
1088   *) # Relative path.
1089     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1090     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1091 esac
1092 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1093 # absolute.
1094 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1095 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1096 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1097 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1098
1099     cd $ac_dir
1100     # Check for guested configure; otherwise get Cygnus style configure.
1101     if test -f $ac_srcdir/configure.gnu; then
1102       echo
1103       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1104     elif test -f $ac_srcdir/configure; then
1105       echo
1106       $SHELL $ac_srcdir/configure  --help=recursive
1107     elif test -f $ac_srcdir/configure.ac ||
1108            test -f $ac_srcdir/configure.in; then
1109       echo
1110       $ac_configure --help
1111     else
1112       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113     fi
1114     cd $ac_popdir
1115   done
1116 fi
1117
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120   cat <<\_ACEOF
1121
1122 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1123 Free Software Foundation, Inc.
1124 This configure script is free software; the Free Software Foundation
1125 gives unlimited permission to copy, distribute and modify it.
1126 _ACEOF
1127   exit 0
1128 fi
1129 exec 5>config.log
1130 cat >&5 <<_ACEOF
1131 This file contains any messages produced by compilers while
1132 running configure, to aid debugging if configure makes a mistake.
1133
1134 It was created by $as_me, which was
1135 generated by GNU Autoconf 2.57.  Invocation command line was
1136
1137   $ $0 $@
1138
1139 _ACEOF
1140 {
1141 cat <<_ASUNAME
1142 ## --------- ##
1143 ## Platform. ##
1144 ## --------- ##
1145
1146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
1152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1154
1155 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1156 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1159 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1160 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1161 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1162
1163 _ASUNAME
1164
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166 for as_dir in $PATH
1167 do
1168   IFS=$as_save_IFS
1169   test -z "$as_dir" && as_dir=.
1170   echo "PATH: $as_dir"
1171 done
1172
1173 } >&5
1174
1175 cat >&5 <<_ACEOF
1176
1177
1178 ## ----------- ##
1179 ## Core tests. ##
1180 ## ----------- ##
1181
1182 _ACEOF
1183
1184
1185 # Keep a trace of the command line.
1186 # Strip out --no-create and --no-recursion so they do not pile up.
1187 # Strip out --silent because we don't want to record it for future runs.
1188 # Also quote any args containing shell meta-characters.
1189 # Make two passes to allow for proper duplicate-argument suppression.
1190 ac_configure_args=
1191 ac_configure_args0=
1192 ac_configure_args1=
1193 ac_sep=
1194 ac_must_keep_next=false
1195 for ac_pass in 1 2
1196 do
1197   for ac_arg
1198   do
1199     case $ac_arg in
1200     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202     | -silent | --silent | --silen | --sile | --sil)
1203       continue ;;
1204     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206     esac
1207     case $ac_pass in
1208     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209     2)
1210       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211       if test $ac_must_keep_next = true; then
1212         ac_must_keep_next=false # Got value, back to normal.
1213       else
1214         case $ac_arg in
1215           *=* | --config-cache | -C | -disable-* | --disable-* \
1216           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218           | -with-* | --with-* | -without-* | --without-* | --x)
1219             case "$ac_configure_args0 " in
1220               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221             esac
1222             ;;
1223           -* ) ac_must_keep_next=true ;;
1224         esac
1225       fi
1226       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227       # Get rid of the leading space.
1228       ac_sep=" "
1229       ;;
1230     esac
1231   done
1232 done
1233 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
1236 # When interrupted or exit'd, cleanup temporary files, and complete
1237 # config.log.  We remove comments because anyway the quotes in there
1238 # would cause problems or look ugly.
1239 # WARNING: Be sure not to use single quotes in there, as some shells,
1240 # such as our DU 5.0 friend, will then `close' the trap.
1241 trap 'exit_status=$?
1242   # Save into config.log some information that might help in debugging.
1243   {
1244     echo
1245
1246     cat <<\_ASBOX
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1250 _ASBOX
1251     echo
1252     # The following way of writing the cache mishandles newlines in values,
1253 {
1254   (set) 2>&1 |
1255     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256     *ac_space=\ *)
1257       sed -n \
1258         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1260       ;;
1261     *)
1262       sed -n \
1263         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264       ;;
1265     esac;
1266 }
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1273 _ASBOX
1274     echo
1275     for ac_var in $ac_subst_vars
1276     do
1277       eval ac_val=$`echo $ac_var`
1278       echo "$ac_var='"'"'$ac_val'"'"'"
1279     done | sort
1280     echo
1281
1282     if test -n "$ac_subst_files"; then
1283       cat <<\_ASBOX
1284 ## ------------- ##
1285 ## Output files. ##
1286 ## ------------- ##
1287 _ASBOX
1288       echo
1289       for ac_var in $ac_subst_files
1290       do
1291         eval ac_val=$`echo $ac_var`
1292         echo "$ac_var='"'"'$ac_val'"'"'"
1293       done | sort
1294       echo
1295     fi
1296
1297     if test -s confdefs.h; then
1298       cat <<\_ASBOX
1299 ## ----------- ##
1300 ## confdefs.h. ##
1301 ## ----------- ##
1302 _ASBOX
1303       echo
1304       sed "/^$/d" confdefs.h | sort
1305       echo
1306     fi
1307     test "$ac_signal" != 0 &&
1308       echo "$as_me: caught signal $ac_signal"
1309     echo "$as_me: exit $exit_status"
1310   } >&5
1311   rm -f core core.* *.core &&
1312   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313     exit $exit_status
1314      ' 0
1315 for ac_signal in 1 2 13 15; do
1316   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317 done
1318 ac_signal=0
1319
1320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1321 rm -rf conftest* confdefs.h
1322 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 echo >confdefs.h
1324
1325 # Predefined preprocessor variables.
1326
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1329 _ACEOF
1330
1331
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334 _ACEOF
1335
1336
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1339 _ACEOF
1340
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349 _ACEOF
1350
1351
1352 # Let the site file select an alternate cache file if it wants to.
1353 # Prefer explicitly selected file to automatically selected ones.
1354 if test -z "$CONFIG_SITE"; then
1355   if test "x$prefix" != xNONE; then
1356     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357   else
1358     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1359   fi
1360 fi
1361 for ac_site_file in $CONFIG_SITE; do
1362   if test -r "$ac_site_file"; then
1363     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364 echo "$as_me: loading site script $ac_site_file" >&6;}
1365     sed 's/^/| /' "$ac_site_file" >&5
1366     . "$ac_site_file"
1367   fi
1368 done
1369
1370 if test -r "$cache_file"; then
1371   # Some versions of bash will fail to source /dev/null (special
1372   # files actually), so we avoid doing that.
1373   if test -f "$cache_file"; then
1374     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375 echo "$as_me: loading cache $cache_file" >&6;}
1376     case $cache_file in
1377       [\\/]* | ?:[\\/]* ) . $cache_file;;
1378       *)                      . ./$cache_file;;
1379     esac
1380   fi
1381 else
1382   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1384   >$cache_file
1385 fi
1386
1387 # Check that the precious variables saved in the cache have kept the same
1388 # value.
1389 ac_cache_corrupted=false
1390 for ac_var in `(set) 2>&1 |
1391                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393   eval ac_new_set=\$ac_env_${ac_var}_set
1394   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395   eval ac_new_val="\$ac_env_${ac_var}_value"
1396   case $ac_old_set,$ac_new_set in
1397     set,)
1398       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400       ac_cache_corrupted=: ;;
1401     ,set)
1402       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404       ac_cache_corrupted=: ;;
1405     ,);;
1406     *)
1407       if test "x$ac_old_val" != "x$ac_new_val"; then
1408         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1409 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1410         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1411 echo "$as_me:   former value:  $ac_old_val" >&2;}
1412         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1413 echo "$as_me:   current value: $ac_new_val" >&2;}
1414         ac_cache_corrupted=:
1415       fi;;
1416   esac
1417   # Pass precious variables to config.status.
1418   if test "$ac_new_set" = set; then
1419     case $ac_new_val in
1420     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1421       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1422     *) ac_arg=$ac_var=$ac_new_val ;;
1423     esac
1424     case " $ac_configure_args " in
1425       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1426       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1427     esac
1428   fi
1429 done
1430 if $ac_cache_corrupted; then
1431   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1432 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1433   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1434 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1435    { (exit 1); exit 1; }; }
1436 fi
1437
1438 ac_ext=c
1439 ac_cpp='$CPP $CPPFLAGS'
1440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462 ac_aux_dir=
1463 for ac_dir in config $srcdir/config; do
1464   if test -f $ac_dir/install-sh; then
1465     ac_aux_dir=$ac_dir
1466     ac_install_sh="$ac_aux_dir/install-sh -c"
1467     break
1468   elif test -f $ac_dir/install.sh; then
1469     ac_aux_dir=$ac_dir
1470     ac_install_sh="$ac_aux_dir/install.sh -c"
1471     break
1472   elif test -f $ac_dir/shtool; then
1473     ac_aux_dir=$ac_dir
1474     ac_install_sh="$ac_aux_dir/shtool install -c"
1475     break
1476   fi
1477 done
1478 if test -z "$ac_aux_dir"; then
1479   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1480 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1484 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1485 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1486
1487           ac_config_headers="$ac_config_headers config.h"
1488
1489 # Make sure we can run config.sub.
1490 $ac_config_sub sun4 >/dev/null 2>&1 ||
1491   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1492 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 echo "$as_me:$LINENO: checking build system type" >&5
1496 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1497 if test "${ac_cv_build+set}" = set; then
1498   echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500   ac_cv_build_alias=$build_alias
1501 test -z "$ac_cv_build_alias" &&
1502   ac_cv_build_alias=`$ac_config_guess`
1503 test -z "$ac_cv_build_alias" &&
1504   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1505 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1506    { (exit 1); exit 1; }; }
1507 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1508   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1509 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1510    { (exit 1); exit 1; }; }
1511
1512 fi
1513 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1514 echo "${ECHO_T}$ac_cv_build" >&6
1515 build=$ac_cv_build
1516 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1519
1520
1521 echo "$as_me:$LINENO: checking host system type" >&5
1522 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1523 if test "${ac_cv_host+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   ac_cv_host_alias=$host_alias
1527 test -z "$ac_cv_host_alias" &&
1528   ac_cv_host_alias=$ac_cv_build_alias
1529 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1530   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1532    { (exit 1); exit 1; }; }
1533
1534 fi
1535 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1536 echo "${ECHO_T}$ac_cv_host" >&6
1537 host=$ac_cv_host
1538 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543 echo "$as_me:$LINENO: checking target system type" >&5
1544 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1545 if test "${ac_cv_target+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   ac_cv_target_alias=$target_alias
1549 test "x$ac_cv_target_alias" = "x" &&
1550   ac_cv_target_alias=$ac_cv_host_alias
1551 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1552   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1554    { (exit 1); exit 1; }; }
1555
1556 fi
1557 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1558 echo "${ECHO_T}$ac_cv_target" >&6
1559 target=$ac_cv_target
1560 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565 # The aliases save the names the user supplied, while $host etc.
1566 # will get canonicalized.
1567 test -n "$target_alias" &&
1568   test "$program_prefix$program_suffix$program_transform_name" = \
1569     NONENONEs,x,x, &&
1570   program_prefix=${target_alias}-
1571 am__api_version="1.7"
1572 # Find a good install program.  We prefer a C program (faster),
1573 # so one script is as good as another.  But avoid the broken or
1574 # incompatible versions:
1575 # SysV /etc/install, /usr/sbin/install
1576 # SunOS /usr/etc/install
1577 # IRIX /sbin/install
1578 # AIX /bin/install
1579 # AmigaOS /C/install, which installs bootblocks on floppy discs
1580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1583 # ./install, which can be erroneously created by make from ./install.sh.
1584 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1585 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1586 if test -z "$INSTALL"; then
1587 if test "${ac_cv_path_install+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593   IFS=$as_save_IFS
1594   test -z "$as_dir" && as_dir=.
1595   # Account for people who put trailing slashes in PATH elements.
1596 case $as_dir/ in
1597   ./ | .// | /cC/* | \
1598   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1599   /usr/ucb/* ) ;;
1600   *)
1601     # OSF1 and SCO ODT 3.0 have their own names for install.
1602     # Don't use installbsd from OSF since it installs stuff as root
1603     # by default.
1604     for ac_prog in ginstall scoinst install; do
1605       for ac_exec_ext in '' $ac_executable_extensions; do
1606         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1607           if test $ac_prog = install &&
1608             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609             # AIX install.  It has an incompatible calling convention.
1610             :
1611           elif test $ac_prog = install &&
1612             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613             # program-specific install script used by HP pwplus--don't use.
1614             :
1615           else
1616             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1617             break 3
1618           fi
1619         fi
1620       done
1621     done
1622     ;;
1623 esac
1624 done
1625
1626
1627 fi
1628   if test "${ac_cv_path_install+set}" = set; then
1629     INSTALL=$ac_cv_path_install
1630   else
1631     # As a last resort, use the slow shell script.  We don't cache a
1632     # path for INSTALL within a source directory, because that will
1633     # break other packages using the cache if that directory is
1634     # removed, or if the path is relative.
1635     INSTALL=$ac_install_sh
1636   fi
1637 fi
1638 echo "$as_me:$LINENO: result: $INSTALL" >&5
1639 echo "${ECHO_T}$INSTALL" >&6
1640
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1644
1645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1646
1647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648
1649 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1650 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1651 # Just in case
1652 sleep 1
1653 echo timestamp > conftest.file
1654 # Do `set' in a subshell so we don't clobber the current shell's
1655 # arguments.  Must try -L first in case configure is actually a
1656 # symlink; some systems play weird games with the mod time of symlinks
1657 # (eg FreeBSD returns the mod time of the symlink's containing
1658 # directory).
1659 if (
1660    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1661    if test "$*" = "X"; then
1662       # -L didn't work.
1663       set X `ls -t $srcdir/configure conftest.file`
1664    fi
1665    rm -f conftest.file
1666    if test "$*" != "X $srcdir/configure conftest.file" \
1667       && test "$*" != "X conftest.file $srcdir/configure"; then
1668
1669       # If neither matched, then we have a broken ls.  This can happen
1670       # if, for instance, CONFIG_SHELL is bash and it inherits a
1671       # broken ls alias from the environment.  This has actually
1672       # happened.  Such a system could not be considered "sane".
1673       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1674 alias in your environment" >&5
1675 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1676 alias in your environment" >&2;}
1677    { (exit 1); exit 1; }; }
1678    fi
1679
1680    test "$2" = conftest.file
1681    )
1682 then
1683    # Ok.
1684    :
1685 else
1686    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1687 Check your system clock" >&5
1688 echo "$as_me: error: newly created file is older than distributed files!
1689 Check your system clock" >&2;}
1690    { (exit 1); exit 1; }; }
1691 fi
1692 echo "$as_me:$LINENO: result: yes" >&5
1693 echo "${ECHO_T}yes" >&6
1694 test "$program_prefix" != NONE &&
1695   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1696 # Use a double $ so make ignores it.
1697 test "$program_suffix" != NONE &&
1698   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1699 # Double any \ or $.  echo might interpret backslashes.
1700 # By default was `s,x,x', remove it if useless.
1701 cat <<\_ACEOF >conftest.sed
1702 s/[\\$]/&&/g;s/;s,x,x,$//
1703 _ACEOF
1704 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1705 rm conftest.sed
1706
1707
1708 # expand $ac_aux_dir to an absolute path
1709 am_aux_dir=`cd $ac_aux_dir && pwd`
1710
1711 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1712 # Use eval to expand $SHELL
1713 if eval "$MISSING --run true"; then
1714   am_missing_run="$MISSING --run "
1715 else
1716   am_missing_run=
1717   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1718 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1719 fi
1720
1721 for ac_prog in gawk mawk nawk awk
1722 do
1723   # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_AWK+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   if test -n "$AWK"; then
1731   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736   IFS=$as_save_IFS
1737   test -z "$as_dir" && as_dir=.
1738   for ac_exec_ext in '' $ac_executable_extensions; do
1739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740     ac_cv_prog_AWK="$ac_prog"
1741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742     break 2
1743   fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 AWK=$ac_cv_prog_AWK
1750 if test -n "$AWK"; then
1751   echo "$as_me:$LINENO: result: $AWK" >&5
1752 echo "${ECHO_T}$AWK" >&6
1753 else
1754   echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758   test -n "$AWK" && break
1759 done
1760
1761 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1762 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1764 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1765   echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767   cat >conftest.make <<\_ACEOF
1768 all:
1769         @echo 'ac_maketemp="$(MAKE)"'
1770 _ACEOF
1771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1772 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1773 if test -n "$ac_maketemp"; then
1774   eval ac_cv_prog_make_${ac_make}_set=yes
1775 else
1776   eval ac_cv_prog_make_${ac_make}_set=no
1777 fi
1778 rm -f conftest.make
1779 fi
1780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1781   echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1783   SET_MAKE=
1784 else
1785   echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787   SET_MAKE="MAKE=${MAKE-make}"
1788 fi
1789
1790 rm -rf .tst 2>/dev/null
1791 mkdir .tst 2>/dev/null
1792 if test -d .tst; then
1793   am__leading_dot=.
1794 else
1795   am__leading_dot=_
1796 fi
1797 rmdir .tst 2>/dev/null
1798
1799  # test to see if srcdir already configured
1800 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1801    test -f $srcdir/config.status; then
1802   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1803 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1804    { (exit 1); exit 1; }; }
1805 fi
1806
1807 # test whether we have cygpath
1808 if test -z "$CYGPATH_W"; then
1809   if (cygpath --version) >/dev/null 2>/dev/null; then
1810     CYGPATH_W='cygpath -w'
1811   else
1812     CYGPATH_W=echo
1813   fi
1814 fi
1815
1816
1817 # Define the identity of the package.
1818  PACKAGE=lufs
1819  VERSION=0.9.6
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE "$PACKAGE"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define VERSION "$VERSION"
1829 _ACEOF
1830
1831 # Some tools Automake needs.
1832
1833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1834
1835
1836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1837
1838
1839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1840
1841
1842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1843
1844
1845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1846
1847
1848 AMTAR=${AMTAR-"${am_missing_run}tar"}
1849
1850 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1851
1852 # Installed binaries are usually stripped using `strip' when the user
1853 # run `make install-strip'.  However `strip' might not be the right
1854 # tool to use in cross-compilation environments, therefore Automake
1855 # will honor the `STRIP' environment variable to overrule this program.
1856 if test "$cross_compiling" != no; then
1857   if test -n "$ac_tool_prefix"; then
1858   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1859 set dummy ${ac_tool_prefix}strip; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_STRIP+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$STRIP"; then
1866   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 STRIP=$ac_cv_prog_STRIP
1885 if test -n "$STRIP"; then
1886   echo "$as_me:$LINENO: result: $STRIP" >&5
1887 echo "${ECHO_T}$STRIP" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893 fi
1894 if test -z "$ac_cv_prog_STRIP"; then
1895   ac_ct_STRIP=$STRIP
1896   # Extract the first word of "strip", so it can be a program name with args.
1897 set dummy strip; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$ac_ct_STRIP"; then
1904   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_ac_ct_STRIP="strip"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1921 fi
1922 fi
1923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1924 if test -n "$ac_ct_STRIP"; then
1925   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1926 echo "${ECHO_T}$ac_ct_STRIP" >&6
1927 else
1928   echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1930 fi
1931
1932   STRIP=$ac_ct_STRIP
1933 else
1934   STRIP="$ac_cv_prog_STRIP"
1935 fi
1936
1937 fi
1938 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1939
1940 # We need awk for the "check" target.  The system "awk" is bad on
1941 # some platforms.
1942
1943
1944
1945
1946 opt_fs="localfs locasefs ftpfs gnetfs"
1947
1948 # Check whether --enable-kernel-support or --disable-kernel-support was given.
1949 if test "${enable_kernel_support+set}" = set; then
1950   enableval="$enable_kernel_support"
1951     KERNEL_SUPPORT=$enableval
1952 fi;
1953
1954 if test "$KERNEL_SUPPORT" != "no"
1955 then
1956
1957         echo "$as_me:$LINENO: checking OS" >&5
1958 echo $ECHO_N "checking OS... $ECHO_C" >&6
1959     OS_DIR=`uname -s`
1960     if test ! -d kernel/$OS_DIR
1961     then
1962         { { echo "$as_me:$LINENO: error: $OS_DIR - not supported!" >&5
1963 echo "$as_me: error: $OS_DIR - not supported!" >&2;}
1964    { (exit 1); exit 1; }; }
1965     else
1966         echo "$as_me:$LINENO: result: $OS_DIR" >&5
1967 echo "${ECHO_T}$OS_DIR" >&6
1968     fi
1969
1970         if test "$OS_DIR"="Linux"
1971     then
1972
1973                 echo "$as_me:$LINENO: checking kernel" >&5
1974 echo $ECHO_N "checking kernel... $ECHO_C" >&6
1975
1976 # Check whether --with-kernel or --without-kernel was given.
1977 if test "${with_kernel+set}" = set; then
1978   withval="$with_kernel"
1979   KERNEL_VERSION=$withval
1980 else
1981   KERNEL_VERSION=`uname -r`
1982 fi;
1983         MODULES_DIR=/lib/modules/$KERNEL_VERSION
1984         echo "$as_me:$LINENO: result: $KERNEL_VERSION" >&5
1985 echo "${ECHO_T}$KERNEL_VERSION" >&6
1986
1987         echo "$as_me:$LINENO: checking kernel support" >&5
1988 echo $ECHO_N "checking kernel support... $ECHO_C" >&6
1989         KERNEL_DIR=`echo $KERNEL_VERSION | cut -d'.' -f1,2`
1990         if test ! -d kernel/$OS_DIR/$KERNEL_DIR
1991         then
1992             { { echo "$as_me:$LINENO: error: $KERNEL_DIR not supported!" >&5
1993 echo "$as_me: error: $KERNEL_DIR not supported!" >&2;}
1994    { (exit 1); exit 1; }; }
1995         else
1996             echo "$as_me:$LINENO: result: supported in kernel/$OS_DIR/$KERNEL_DIR" >&5
1997 echo "${ECHO_T}supported in kernel/$OS_DIR/$KERNEL_DIR" >&6
1998         fi
1999
2000         echo "$as_me:$LINENO: checking kernel headers" >&5
2001 echo $ECHO_N "checking kernel headers... $ECHO_C" >&6
2002
2003 # Check whether --with-kheaders or --without-kheaders was given.
2004 if test "${with_kheaders+set}" = set; then
2005   withval="$with_kheaders"
2006   KERNEL_HDR=$withval
2007 else
2008   KERNEL_HDR=$MODULES_DIR/build/include
2009 fi;
2010         if test ! -f $KERNEL_HDR/linux/fs.h
2011         then
2012             { { echo "$as_me:$LINENO: error: not found in $KERNEL_HDR. please install them!" >&5
2013 echo "$as_me: error: not found in $KERNEL_HDR. please install them!" >&2;}
2014    { (exit 1); exit 1; }; }
2015         else
2016             echo "$as_me:$LINENO: result: found in $KERNEL_HDR" >&5
2017 echo "${ECHO_T}found in $KERNEL_HDR" >&6
2018         fi
2019
2020         echo "$as_me:$LINENO: checking kernel configuration" >&5
2021 echo $ECHO_N "checking kernel configuration... $ECHO_C" >&6
2022         if test -f $MODULES_DIR/build/.config
2023         then
2024             tmp=`cat $MODULES_DIR/build/.config | grep CONFIG_MODVERSIONS=y`
2025             if test "$tmp"
2026             then
2027                 echo "$as_me:$LINENO: result: found, using modversions" >&5
2028 echo "${ECHO_T}found, using modversions" >&6
2029                 MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h"
2030             else
2031                 echo "$as_me:$LINENO: result: found, not using modversions" >&5
2032 echo "${ECHO_T}found, not using modversions" >&6
2033             fi
2034         else
2035             echo "$as_me:$LINENO: result: not found at $MODULES_DIR/build/.config, assuming modversions support" >&5
2036 echo "${ECHO_T}not found at $MODULES_DIR/build/.config, assuming modversions support" >&6
2037             MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h"
2038         fi
2039
2040         # Check whether --enable-modversions or --disable-modversions was given.
2041 if test "${enable_modversions+set}" = set; then
2042   enableval="$enable_modversions"
2043    if test $enableval = "yes"; then MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h"; else MODV_FLAGS=""; fi
2044 fi;
2045
2046
2047
2048
2049
2050
2051     fi
2052 fi
2053
2054
2055
2056 # Check whether --enable-debug or --disable-debug was given.
2057 if test "${enable_debug+set}" = set; then
2058   enableval="$enable_debug"
2059     DEBUG_FLAGS="-g -DDEBUG" && CXXFLAGS="-g -O2 -Wall -DDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" && CFLAGS="-g -O2 -Wall -DDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2060 else
2061     CXXFLAGS="-O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" && CFLAGS="-O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2062 fi;
2063
2064
2065 # Check whether --enable-kdebug or --disable-kdebug was given.
2066 if test "${enable_kdebug+set}" = set; then
2067   enableval="$enable_kdebug"
2068     KDEBUG_FLAGS="-DLUFS_DEBUG -DLUFS_VERBOSE"
2069 fi;
2070
2071
2072 # Check whether --enable-autofs-install or --disable-autofs-install was given.
2073 if test "${enable_autofs_install+set}" = set; then
2074   enableval="$enable_autofs_install"
2075     AUTOFS_INSTALL="yes"
2076 fi;
2077
2078
2079 # Check whether --enable-suid or --disable-suid was given.
2080 if test "${enable_suid+set}" = set; then
2081   enableval="$enable_suid"
2082    if test $enableval = "no"; then LUFS_SUID=""; else LUFS_SUID="true"; fi
2083 else
2084   LUFS_SUID="true"
2085 fi;
2086
2087
2088 # Check whether --enable-static or --disable-static was given.
2089 if test "${enable_static+set}" = set; then
2090   enableval="$enable_static"
2091   p=${PACKAGE-default}
2092 case $enableval in
2093 yes) enable_static=yes ;;
2094 no) enable_static=no ;;
2095 *)
2096   enable_static=no
2097   # Look at the argument we got.  We use all the common list separators.
2098   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2099   for pkg in $enableval; do
2100     if test "X$pkg" = "X$p"; then
2101       enable_static=yes
2102     fi
2103   done
2104   IFS="$ac_save_ifs"
2105   ;;
2106 esac
2107 else
2108   enable_static=no
2109 fi;
2110
2111 ac_ext=c
2112 ac_cpp='$CPP $CPPFLAGS'
2113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116 if test -n "$ac_tool_prefix"; then
2117   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2119 echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121 if test "${ac_cv_prog_CC+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   if test -n "$CC"; then
2125   ac_cv_prog_CC="$CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130   IFS=$as_save_IFS
2131   test -z "$as_dir" && as_dir=.
2132   for ac_exec_ext in '' $ac_executable_extensions; do
2133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136     break 2
2137   fi
2138 done
2139 done
2140
2141 fi
2142 fi
2143 CC=$ac_cv_prog_CC
2144 if test -n "$CC"; then
2145   echo "$as_me:$LINENO: result: $CC" >&5
2146 echo "${ECHO_T}$CC" >&6
2147 else
2148   echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2150 fi
2151
2152 fi
2153 if test -z "$ac_cv_prog_CC"; then
2154   ac_ct_CC=$CC
2155   # Extract the first word of "gcc", so it can be a program name with args.
2156 set dummy gcc; ac_word=$2
2157 echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   if test -n "$ac_ct_CC"; then
2163   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170   for ac_exec_ext in '' $ac_executable_extensions; do
2171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172     ac_cv_prog_ac_ct_CC="gcc"
2173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174     break 2
2175   fi
2176 done
2177 done
2178
2179 fi
2180 fi
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6
2185 else
2186   echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2188 fi
2189
2190   CC=$ac_ct_CC
2191 else
2192   CC="$ac_cv_prog_CC"
2193 fi
2194
2195 if test -z "$CC"; then
2196   if test -n "$ac_tool_prefix"; then
2197   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}cc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_CC+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test -n "$CC"; then
2205   ac_cv_prog_CC="$CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212   for ac_exec_ext in '' $ac_executable_extensions; do
2213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214     ac_cv_prog_CC="${ac_tool_prefix}cc"
2215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216     break 2
2217   fi
2218 done
2219 done
2220
2221 fi
2222 fi
2223 CC=$ac_cv_prog_CC
2224 if test -n "$CC"; then
2225   echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6
2227 else
2228   echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2230 fi
2231
2232 fi
2233 if test -z "$ac_cv_prog_CC"; then
2234   ac_ct_CC=$CC
2235   # Extract the first word of "cc", so it can be a program name with args.
2236 set dummy cc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   if test -n "$ac_ct_CC"; then
2243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252     ac_cv_prog_ac_ct_CC="cc"
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258
2259 fi
2260 fi
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270   CC=$ac_ct_CC
2271 else
2272   CC="$ac_cv_prog_CC"
2273 fi
2274
2275 fi
2276 if test -z "$CC"; then
2277   # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$CC"; then
2285   ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287   ac_prog_rejected=no
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296        ac_prog_rejected=yes
2297        continue
2298      fi
2299     ac_cv_prog_CC="cc"
2300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301     break 2
2302   fi
2303 done
2304 done
2305
2306 if test $ac_prog_rejected = yes; then
2307   # We found a bogon in the path, so make sure we never use it.
2308   set dummy $ac_cv_prog_CC
2309   shift
2310   if test $# != 0; then
2311     # We chose a different compiler from the bogus one.
2312     # However, it has the same basename, so the bogon will be chosen
2313     # first if we set CC to just the basename; use the full file name.
2314     shift
2315     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2316   fi
2317 fi
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322   echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2324 else
2325   echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2327 fi
2328
2329 fi
2330 if test -z "$CC"; then
2331   if test -n "$ac_tool_prefix"; then
2332   for ac_prog in cl
2333   do
2334     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2336 echo "$as_me:$LINENO: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2338 if test "${ac_cv_prog_CC+set}" = set; then
2339   echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341   if test -n "$CC"; then
2342   ac_cv_prog_CC="$CC" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349   for ac_exec_ext in '' $ac_executable_extensions; do
2350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353     break 2
2354   fi
2355 done
2356 done
2357
2358 fi
2359 fi
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362   echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6
2364 else
2365   echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2367 fi
2368
2369     test -n "$CC" && break
2370   done
2371 fi
2372 if test -z "$CC"; then
2373   ac_ct_CC=$CC
2374   for ac_prog in cl
2375 do
2376   # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   if test -n "$ac_ct_CC"; then
2384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391   for ac_exec_ext in '' $ac_executable_extensions; do
2392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393     ac_cv_prog_ac_ct_CC="$ac_prog"
2394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395     break 2
2396   fi
2397 done
2398 done
2399
2400 fi
2401 fi
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6
2406 else
2407   echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2409 fi
2410
2411   test -n "$ac_ct_CC" && break
2412 done
2413
2414   CC=$ac_ct_CC
2415 fi
2416
2417 fi
2418
2419
2420 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&2;}
2424    { (exit 1); exit 1; }; }
2425
2426 # Provide some information about the compiler.
2427 echo "$as_me:$LINENO:" \
2428      "checking for C compiler version" >&5
2429 ac_compiler=`set X $ac_compile; echo $2`
2430 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2431   (eval $ac_compiler --version </dev/null >&5) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }
2435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2436   (eval $ac_compiler -v </dev/null >&5) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }
2440 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2441   (eval $ac_compiler -V </dev/null >&5) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }
2445
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453
2454 int
2455 main ()
2456 {
2457
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 ac_clean_files_save=$ac_clean_files
2463 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2464 # Try to create an executable without -o first, disregard a.out.
2465 # It will help us diagnose broken compilers, and finding out an intuition
2466 # of exeext.
2467 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2468 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2469 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2470 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2471   (eval $ac_link_default) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; then
2475   # Find the output, starting from the most likely.  This scheme is
2476 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2477 # resort.
2478
2479 # Be careful to initialize this variable, since it used to be cached.
2480 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2481 ac_cv_exeext=
2482 # b.out is created by i960 compilers.
2483 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2484 do
2485   test -f "$ac_file" || continue
2486   case $ac_file in
2487     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2488         ;;
2489     conftest.$ac_ext )
2490         # This is the source file.
2491         ;;
2492     [ab].out )
2493         # We found the default executable, but exeext='' is most
2494         # certainly right.
2495         break;;
2496     *.* )
2497         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2498         # FIXME: I believe we export ac_cv_exeext for Libtool,
2499         # but it would be cool to find out if it's true.  Does anybody
2500         # maintain Libtool? --akim.
2501         export ac_cv_exeext
2502         break;;
2503     * )
2504         break;;
2505   esac
2506 done
2507 else
2508   echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: C compiler cannot create executables
2514 See \`config.log' for more details." >&2;}
2515    { (exit 77); exit 77; }; }
2516 fi
2517
2518 ac_exeext=$ac_cv_exeext
2519 echo "$as_me:$LINENO: result: $ac_file" >&5
2520 echo "${ECHO_T}$ac_file" >&6
2521
2522 # Check the compiler produces executables we can run.  If not, either
2523 # the compiler is broken, or we cross compile.
2524 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2525 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2526 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2527 # If not cross compiling, check that we can run a simple program.
2528 if test "$cross_compiling" != yes; then
2529   if { ac_try='./$ac_file'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535     cross_compiling=no
2536   else
2537     if test "$cross_compiling" = maybe; then
2538         cross_compiling=yes
2539     else
2540         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2541 If you meant to cross compile, use \`--host'.
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot run C compiled programs.
2544 If you meant to cross compile, use \`--host'.
2545 See \`config.log' for more details." >&2;}
2546    { (exit 1); exit 1; }; }
2547     fi
2548   fi
2549 fi
2550 echo "$as_me:$LINENO: result: yes" >&5
2551 echo "${ECHO_T}yes" >&6
2552
2553 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2554 ac_clean_files=$ac_clean_files_save
2555 # Check the compiler produces executables we can run.  If not, either
2556 # the compiler is broken, or we cross compile.
2557 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2558 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2559 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2560 echo "${ECHO_T}$cross_compiling" >&6
2561
2562 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2563 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2565   (eval $ac_link) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; then
2569   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2570 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2571 # work properly (i.e., refer to `conftest.exe'), while it won't with
2572 # `rm'.
2573 for ac_file in conftest.exe conftest conftest.*; do
2574   test -f "$ac_file" || continue
2575   case $ac_file in
2576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2577     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578           export ac_cv_exeext
2579           break;;
2580     * ) break;;
2581   esac
2582 done
2583 else
2584   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2587 See \`config.log' for more details." >&2;}
2588    { (exit 1); exit 1; }; }
2589 fi
2590
2591 rm -f conftest$ac_cv_exeext
2592 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2593 echo "${ECHO_T}$ac_cv_exeext" >&6
2594
2595 rm -f conftest.$ac_ext
2596 EXEEXT=$ac_cv_exeext
2597 ac_exeext=$EXEEXT
2598 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2599 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2600 if test "${ac_cv_objext+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   cat >conftest.$ac_ext <<_ACEOF
2604 #line $LINENO "configure"
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.o conftest.obj
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621   (eval $ac_compile) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; then
2625   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2626   case $ac_file in
2627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2628     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629        break;;
2630   esac
2631 done
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details." >&2;}
2640    { (exit 1); exit 1; }; }
2641 fi
2642
2643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2644 fi
2645 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2646 echo "${ECHO_T}$ac_cv_objext" >&6
2647 OBJEXT=$ac_cv_objext
2648 ac_objext=$OBJEXT
2649 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2651 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   cat >conftest.$ac_ext <<_ACEOF
2655 #line $LINENO "configure"
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665 #ifndef __GNUC__
2666        choke me
2667 #endif
2668
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675   (eval $ac_compile) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   ac_compiler_gnu=yes
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 ac_compiler_gnu=no
2691 fi
2692 rm -f conftest.$ac_objext conftest.$ac_ext
2693 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2694
2695 fi
2696 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2697 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2698 GCC=`test $ac_compiler_gnu = yes && echo yes`
2699 ac_test_CFLAGS=${CFLAGS+set}
2700 ac_save_CFLAGS=$CFLAGS
2701 CFLAGS="-g"
2702 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2703 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2704 if test "${ac_cv_prog_cc_g+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   cat >conftest.$ac_ext <<_ACEOF
2708 #line $LINENO "configure"
2709 /* confdefs.h.  */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h.  */
2714
2715 int
2716 main ()
2717 {
2718
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725   (eval $ac_compile) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -s conftest.$ac_objext'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; }; then
2735   ac_cv_prog_cc_g=yes
2736 else
2737   echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740 ac_cv_prog_cc_g=no
2741 fi
2742 rm -f conftest.$ac_objext conftest.$ac_ext
2743 fi
2744 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2746 if test "$ac_test_CFLAGS" = set; then
2747   CFLAGS=$ac_save_CFLAGS
2748 elif test $ac_cv_prog_cc_g = yes; then
2749   if test "$GCC" = yes; then
2750     CFLAGS="-g -O2"
2751   else
2752     CFLAGS="-g"
2753   fi
2754 else
2755   if test "$GCC" = yes; then
2756     CFLAGS="-O2"
2757   else
2758     CFLAGS=
2759   fi
2760 fi
2761 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2762 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2763 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766   ac_cv_prog_cc_stdc=no
2767 ac_save_CC=$CC
2768 cat >conftest.$ac_ext <<_ACEOF
2769 #line $LINENO "configure"
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #include <stdarg.h>
2776 #include <stdio.h>
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2783      char **p;
2784      int i;
2785 {
2786   return p[i];
2787 }
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2789 {
2790   char *s;
2791   va_list v;
2792   va_start (v,p);
2793   s = g (p, va_arg (v,int));
2794   va_end (v);
2795   return s;
2796 }
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2801 int argc;
2802 char **argv;
2803 int
2804 main ()
2805 {
2806 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 # Don't try gcc -ansi; that turns off useful extensions and
2812 # breaks some systems' header files.
2813 # AIX                   -qlanglvl=ansi
2814 # Ultrix and OSF/1      -std1
2815 # HP-UX 10.20 and later -Ae
2816 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2817 # SVR4                  -Xc -D__EXTENSIONS__
2818 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2819 do
2820   CC="$ac_save_CC $ac_arg"
2821   rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823   (eval $ac_compile) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   ac_cv_prog_cc_stdc=$ac_arg
2834 break
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 fi
2840 rm -f conftest.$ac_objext
2841 done
2842 rm -f conftest.$ac_ext conftest.$ac_objext
2843 CC=$ac_save_CC
2844
2845 fi
2846
2847 case "x$ac_cv_prog_cc_stdc" in
2848   x|xno)
2849     echo "$as_me:$LINENO: result: none needed" >&5
2850 echo "${ECHO_T}none needed" >&6 ;;
2851   *)
2852     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2854     CC="$CC $ac_cv_prog_cc_stdc" ;;
2855 esac
2856
2857 # Some people use a C++ compiler to compile C.  Since we use `exit',
2858 # in C++ we need to declare it.  In case someone uses the same compiler
2859 # for both compiling C and C++ we need to have the C++ compiler decide
2860 # the declaration of exit, since it's the most demanding environment.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #ifndef __cplusplus
2863   choke me
2864 #endif
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868   (eval $ac_compile) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } &&
2872          { ac_try='test -s conftest.$ac_objext'
2873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874   (eval $ac_try) 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; }; then
2878   for ac_declaration in \
2879    ''\
2880    '#include <stdlib.h>' \
2881    'extern "C" void std::exit (int) throw (); using std::exit;' \
2882    'extern "C" void std::exit (int); using std::exit;' \
2883    'extern "C" void exit (int) throw ();' \
2884    'extern "C" void exit (int);' \
2885    'void exit (int);'
2886 do
2887   cat >conftest.$ac_ext <<_ACEOF
2888 #line $LINENO "configure"
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894 #include <stdlib.h>
2895 $ac_declaration
2896 int
2897 main ()
2898 {
2899 exit (42);
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906   (eval $ac_compile) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 continue
2922 fi
2923 rm -f conftest.$ac_objext conftest.$ac_ext
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 $ac_declaration
2932 int
2933 main ()
2934 {
2935 exit (42);
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942   (eval $ac_compile) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } &&
2946          { ac_try='test -s conftest.$ac_objext'
2947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; }; then
2952   break
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 fi
2958 rm -f conftest.$ac_objext conftest.$ac_ext
2959 done
2960 rm -f conftest*
2961 if test -n "$ac_declaration"; then
2962   echo '#ifdef __cplusplus' >>confdefs.h
2963   echo $ac_declaration      >>confdefs.h
2964   echo '#endif'             >>confdefs.h
2965 fi
2966
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 fi
2972 rm -f conftest.$ac_objext conftest.$ac_ext
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 DEPDIR="${am__leading_dot}deps"
2979
2980           ac_config_commands="$ac_config_commands depfiles"
2981
2982
2983 am_make=${MAKE-make}
2984 cat > confinc << 'END'
2985 am__doit:
2986         @echo done
2987 .PHONY: am__doit
2988 END
2989 # If we don't find an include directive, just comment out the code.
2990 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2991 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2992 am__include="#"
2993 am__quote=
2994 _am_result=none
2995 # First try GNU make style include.
2996 echo "include confinc" > confmf
2997 # We grep out `Entering directory' and `Leaving directory'
2998 # messages which can occur if `w' ends up in MAKEFLAGS.
2999 # In particular we don't look at `^make:' because GNU make might
3000 # be invoked under some other name (usually "gmake"), in which
3001 # case it prints its new name instead of `make'.
3002 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3003    am__include=include
3004    am__quote=
3005    _am_result=GNU
3006 fi
3007 # Now try BSD make style include.
3008 if test "$am__include" = "#"; then
3009    echo '.include "confinc"' > confmf
3010    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3011       am__include=.include
3012       am__quote="\""
3013       _am_result=BSD
3014    fi
3015 fi
3016
3017
3018 echo "$as_me:$LINENO: result: $_am_result" >&5
3019 echo "${ECHO_T}$_am_result" >&6
3020 rm -f confinc confmf
3021
3022 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3023 if test "${enable_dependency_tracking+set}" = set; then
3024   enableval="$enable_dependency_tracking"
3025
3026 fi;
3027 if test "x$enable_dependency_tracking" != xno; then
3028   am_depcomp="$ac_aux_dir/depcomp"
3029   AMDEPBACKSLASH='\'
3030 fi
3031
3032
3033 if test "x$enable_dependency_tracking" != xno; then
3034   AMDEP_TRUE=
3035   AMDEP_FALSE='#'
3036 else
3037   AMDEP_TRUE='#'
3038   AMDEP_FALSE=
3039 fi
3040
3041
3042
3043
3044 depcc="$CC"   am_compiler_list=
3045
3046 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3047 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3048 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3052   # We make a subdir and do the tests there.  Otherwise we can end up
3053   # making bogus files that we don't know about and never remove.  For
3054   # instance it was reported that on HP-UX the gcc test will end up
3055   # making a dummy file named `D' -- because `-MD' means `put the output
3056   # in D'.
3057   mkdir conftest.dir
3058   # Copy depcomp to subdir because otherwise we won't find it if we're
3059   # using a relative directory.
3060   cp "$am_depcomp" conftest.dir
3061   cd conftest.dir
3062
3063   am_cv_CC_dependencies_compiler_type=none
3064   if test "$am_compiler_list" = ""; then
3065      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3066   fi
3067   for depmode in $am_compiler_list; do
3068     # We need to recreate these files for each test, as the compiler may
3069     # overwrite some of them when testing with obscure command lines.
3070     # This happens at least with the AIX C compiler.
3071     echo '#include "conftest.h"' > conftest.c
3072     echo 'int i;' > conftest.h
3073     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3074
3075     case $depmode in
3076     nosideeffect)
3077       # after this tag, mechanisms are not by side-effect, so they'll
3078       # only be used when explicitly requested
3079       if test "x$enable_dependency_tracking" = xyes; then
3080         continue
3081       else
3082         break
3083       fi
3084       ;;
3085     none) break ;;
3086     esac
3087     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3088     # mode.  It turns out that the SunPro C++ compiler does not properly
3089     # handle `-M -o', and we need to detect this.
3090     if depmode=$depmode \
3091        source=conftest.c object=conftest.o \
3092        depfile=conftest.Po tmpdepfile=conftest.TPo \
3093        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3094          >/dev/null 2>conftest.err &&
3095        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3096        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3097       # icc doesn't choke on unknown options, it will just issue warnings
3098       # (even with -Werror).  So we grep stderr for any message
3099       # that says an option was ignored.
3100       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3101         am_cv_CC_dependencies_compiler_type=$depmode
3102         break
3103       fi
3104     fi
3105   done
3106
3107   cd ..
3108   rm -rf conftest.dir
3109 else
3110   am_cv_CC_dependencies_compiler_type=none
3111 fi
3112
3113 fi
3114 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3115 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3116 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3117
3118
3119
3120 if
3121   test "x$enable_dependency_tracking" != xno \
3122   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3123   am__fastdepCC_TRUE=
3124   am__fastdepCC_FALSE='#'
3125 else
3126   am__fastdepCC_TRUE='#'
3127   am__fastdepCC_FALSE=
3128 fi
3129
3130
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3137 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3138 # On Suns, sometimes $CPP names a directory.
3139 if test -n "$CPP" && test -d "$CPP"; then
3140   CPP=
3141 fi
3142 if test -z "$CPP"; then
3143   if test "${ac_cv_prog_CPP+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146       # Double quotes because CPP needs to be expanded
3147     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3148     do
3149       ac_preproc_ok=false
3150 for ac_c_preproc_warn_flag in '' yes
3151 do
3152   # Use a header file that comes with gcc, so configuring glibc
3153   # with a fresh cross-compiler works.
3154   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3155   # <limits.h> exists even on freestanding compilers.
3156   # On the NeXT, cc -E runs the code through the compiler's parser,
3157   # not just through cpp. "Syntax error" is here to catch this case.
3158   cat >conftest.$ac_ext <<_ACEOF
3159 #line $LINENO "configure"
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #ifdef __STDC__
3166 # include <limits.h>
3167 #else
3168 # include <assert.h>
3169 #endif
3170                      Syntax error
3171 _ACEOF
3172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174   ac_status=$?
3175   grep -v '^ *+' conftest.er1 >conftest.err
3176   rm -f conftest.er1
3177   cat conftest.err >&5
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); } >/dev/null; then
3180   if test -s conftest.err; then
3181     ac_cpp_err=$ac_c_preproc_warn_flag
3182   else
3183     ac_cpp_err=
3184   fi
3185 else
3186   ac_cpp_err=yes
3187 fi
3188 if test -z "$ac_cpp_err"; then
3189   :
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194   # Broken: fails on valid input.
3195 continue
3196 fi
3197 rm -f conftest.err conftest.$ac_ext
3198
3199   # OK, works on sane cases.  Now check whether non-existent headers
3200   # can be detected and how.
3201   cat >conftest.$ac_ext <<_ACEOF
3202 #line $LINENO "configure"
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208 #include <ac_nonexistent.h>
3209 _ACEOF
3210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3212   ac_status=$?
3213   grep -v '^ *+' conftest.er1 >conftest.err
3214   rm -f conftest.er1
3215   cat conftest.err >&5
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); } >/dev/null; then
3218   if test -s conftest.err; then
3219     ac_cpp_err=$ac_c_preproc_warn_flag
3220   else
3221     ac_cpp_err=
3222   fi
3223 else
3224   ac_cpp_err=yes
3225 fi
3226 if test -z "$ac_cpp_err"; then
3227   # Broken: success on invalid input.
3228 continue
3229 else
3230   echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233   # Passes both tests.
3234 ac_preproc_ok=:
3235 break
3236 fi
3237 rm -f conftest.err conftest.$ac_ext
3238
3239 done
3240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3241 rm -f conftest.err conftest.$ac_ext
3242 if $ac_preproc_ok; then
3243   break
3244 fi
3245
3246     done
3247     ac_cv_prog_CPP=$CPP
3248
3249 fi
3250   CPP=$ac_cv_prog_CPP
3251 else
3252   ac_cv_prog_CPP=$CPP
3253 fi
3254 echo "$as_me:$LINENO: result: $CPP" >&5
3255 echo "${ECHO_T}$CPP" >&6
3256 ac_preproc_ok=false
3257 for ac_c_preproc_warn_flag in '' yes
3258 do
3259   # Use a header file that comes with gcc, so configuring glibc
3260   # with a fresh cross-compiler works.
3261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262   # <limits.h> exists even on freestanding compilers.
3263   # On the NeXT, cc -E runs the code through the compiler's parser,
3264   # not just through cpp. "Syntax error" is here to catch this case.
3265   cat >conftest.$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277                      Syntax error
3278 _ACEOF
3279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289   else
3290     ac_cpp_err=
3291   fi
3292 else
3293   ac_cpp_err=yes
3294 fi
3295 if test -z "$ac_cpp_err"; then
3296   :
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Broken: fails on valid input.
3302 continue
3303 fi
3304 rm -f conftest.err conftest.$ac_ext
3305
3306   # OK, works on sane cases.  Now check whether non-existent headers
3307   # can be detected and how.
3308   cat >conftest.$ac_ext <<_ACEOF
3309 #line $LINENO "configure"
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315 #include <ac_nonexistent.h>
3316 _ACEOF
3317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } >/dev/null; then
3325   if test -s conftest.err; then
3326     ac_cpp_err=$ac_c_preproc_warn_flag
3327   else
3328     ac_cpp_err=
3329   fi
3330 else
3331   ac_cpp_err=yes
3332 fi
3333 if test -z "$ac_cpp_err"; then
3334   # Broken: success on invalid input.
3335 continue
3336 else
3337   echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340   # Passes both tests.
3341 ac_preproc_ok=:
3342 break
3343 fi
3344 rm -f conftest.err conftest.$ac_ext
3345
3346 done
3347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348 rm -f conftest.err conftest.$ac_ext
3349 if $ac_preproc_ok; then
3350   :
3351 else
3352   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3353 See \`config.log' for more details." >&5
3354 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3355 See \`config.log' for more details." >&2;}
3356    { (exit 1); exit 1; }; }
3357 fi
3358
3359 ac_ext=c
3360 ac_cpp='$CPP $CPPFLAGS'
3361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364
3365 ac_ext=cc
3366 ac_cpp='$CXXCPP $CPPFLAGS'
3367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3370 if test -n "$ac_tool_prefix"; then
3371   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3372   do
3373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_CXX+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if test -n "$CXX"; then
3381   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388   for ac_exec_ext in '' $ac_executable_extensions; do
3389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395 done
3396
3397 fi
3398 fi
3399 CXX=$ac_cv_prog_CXX
3400 if test -n "$CXX"; then
3401   echo "$as_me:$LINENO: result: $CXX" >&5
3402 echo "${ECHO_T}$CXX" >&6
3403 else
3404   echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3406 fi
3407
3408     test -n "$CXX" && break
3409   done
3410 fi
3411 if test -z "$CXX"; then
3412   ac_ct_CXX=$CXX
3413   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3414 do
3415   # Extract the first word of "$ac_prog", so it can be a program name with args.
3416 set dummy $ac_prog; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   if test -n "$ac_ct_CXX"; then
3423   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428   IFS=$as_save_IFS
3429   test -z "$as_dir" && as_dir=.
3430   for ac_exec_ext in '' $ac_executable_extensions; do
3431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432     ac_cv_prog_ac_ct_CXX="$ac_prog"
3433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434     break 2
3435   fi
3436 done
3437 done
3438
3439 fi
3440 fi
3441 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3442 if test -n "$ac_ct_CXX"; then
3443   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3444 echo "${ECHO_T}$ac_ct_CXX" >&6
3445 else
3446   echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3448 fi
3449
3450   test -n "$ac_ct_CXX" && break
3451 done
3452 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3453
3454   CXX=$ac_ct_CXX
3455 fi
3456
3457
3458 # Provide some information about the compiler.
3459 echo "$as_me:$LINENO:" \
3460      "checking for C++ compiler version" >&5
3461 ac_compiler=`set X $ac_compile; echo $2`
3462 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3463   (eval $ac_compiler --version </dev/null >&5) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }
3467 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3468   (eval $ac_compiler -v </dev/null >&5) 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); }
3472 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3473   (eval $ac_compiler -V </dev/null >&5) 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); }
3477
3478 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3479 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3480 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3481   echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483   cat >conftest.$ac_ext <<_ACEOF
3484 #line $LINENO "configure"
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494 #ifndef __GNUC__
3495        choke me
3496 #endif
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504   (eval $ac_compile) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } &&
3508          { ac_try='test -s conftest.$ac_objext'
3509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510   (eval $ac_try) 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }; }; then
3514   ac_compiler_gnu=yes
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 ac_compiler_gnu=no
3520 fi
3521 rm -f conftest.$ac_objext conftest.$ac_ext
3522 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3523
3524 fi
3525 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3526 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3527 GXX=`test $ac_compiler_gnu = yes && echo yes`
3528 ac_test_CXXFLAGS=${CXXFLAGS+set}
3529 ac_save_CXXFLAGS=$CXXFLAGS
3530 CXXFLAGS="-g"
3531 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3532 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3533 if test "${ac_cv_prog_cxx_g+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 rm -f conftest.$ac_objext
3553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554   (eval $ac_compile) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } &&
3558          { ac_try='test -s conftest.$ac_objext'
3559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560   (eval $ac_try) 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); }; }; then
3564   ac_cv_prog_cxx_g=yes
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 ac_cv_prog_cxx_g=no
3570 fi
3571 rm -f conftest.$ac_objext conftest.$ac_ext
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3574 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3575 if test "$ac_test_CXXFLAGS" = set; then
3576   CXXFLAGS=$ac_save_CXXFLAGS
3577 elif test $ac_cv_prog_cxx_g = yes; then
3578   if test "$GXX" = yes; then
3579     CXXFLAGS="-g -O2"
3580   else
3581     CXXFLAGS="-g"
3582   fi
3583 else
3584   if test "$GXX" = yes; then
3585     CXXFLAGS="-O2"
3586   else
3587     CXXFLAGS=
3588   fi
3589 fi
3590 for ac_declaration in \
3591    ''\
3592    '#include <stdlib.h>' \
3593    'extern "C" void std::exit (int) throw (); using std::exit;' \
3594    'extern "C" void std::exit (int); using std::exit;' \
3595    'extern "C" void exit (int) throw ();' \
3596    'extern "C" void exit (int);' \
3597    'void exit (int);'
3598 do
3599   cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 /* confdefs.h.  */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h.  */
3606 #include <stdlib.h>
3607 $ac_declaration
3608 int
3609 main ()
3610 {
3611 exit (42);
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618   (eval $ac_compile) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -s conftest.$ac_objext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   :
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 continue
3634 fi
3635 rm -f conftest.$ac_objext conftest.$ac_ext
3636   cat >conftest.$ac_ext <<_ACEOF
3637 #line $LINENO "configure"
3638 /* confdefs.h.  */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h.  */
3643 $ac_declaration
3644 int
3645 main ()
3646 {
3647 exit (42);
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654   (eval $ac_compile) 2>&5
3655   ac_status=$?
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); } &&
3658          { ac_try='test -s conftest.$ac_objext'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; }; then
3664   break
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 fi
3670 rm -f conftest.$ac_objext conftest.$ac_ext
3671 done
3672 rm -f conftest*
3673 if test -n "$ac_declaration"; then
3674   echo '#ifdef __cplusplus' >>confdefs.h
3675   echo $ac_declaration      >>confdefs.h
3676   echo '#endif'             >>confdefs.h
3677 fi
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685 depcc="$CXX"  am_compiler_list=
3686
3687 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3688 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3689 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3693   # We make a subdir and do the tests there.  Otherwise we can end up
3694   # making bogus files that we don't know about and never remove.  For
3695   # instance it was reported that on HP-UX the gcc test will end up
3696   # making a dummy file named `D' -- because `-MD' means `put the output
3697   # in D'.
3698   mkdir conftest.dir
3699   # Copy depcomp to subdir because otherwise we won't find it if we're
3700   # using a relative directory.
3701   cp "$am_depcomp" conftest.dir
3702   cd conftest.dir
3703
3704   am_cv_CXX_dependencies_compiler_type=none
3705   if test "$am_compiler_list" = ""; then
3706      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3707   fi
3708   for depmode in $am_compiler_list; do
3709     # We need to recreate these files for each test, as the compiler may
3710     # overwrite some of them when testing with obscure command lines.
3711     # This happens at least with the AIX C compiler.
3712     echo '#include "conftest.h"' > conftest.c
3713     echo 'int i;' > conftest.h
3714     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3715
3716     case $depmode in
3717     nosideeffect)
3718       # after this tag, mechanisms are not by side-effect, so they'll
3719       # only be used when explicitly requested
3720       if test "x$enable_dependency_tracking" = xyes; then
3721         continue
3722       else
3723         break
3724       fi
3725       ;;
3726     none) break ;;
3727     esac
3728     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3729     # mode.  It turns out that the SunPro C++ compiler does not properly
3730     # handle `-M -o', and we need to detect this.
3731     if depmode=$depmode \
3732        source=conftest.c object=conftest.o \
3733        depfile=conftest.Po tmpdepfile=conftest.TPo \
3734        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3735          >/dev/null 2>conftest.err &&
3736        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3737        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3738       # icc doesn't choke on unknown options, it will just issue warnings
3739       # (even with -Werror).  So we grep stderr for any message
3740       # that says an option was ignored.
3741       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3742         am_cv_CXX_dependencies_compiler_type=$depmode
3743         break
3744       fi
3745     fi
3746   done
3747
3748   cd ..
3749   rm -rf conftest.dir
3750 else
3751   am_cv_CXX_dependencies_compiler_type=none
3752 fi
3753
3754 fi
3755 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3756 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3757 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3758
3759
3760
3761 if
3762   test "x$enable_dependency_tracking" != xno \
3763   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3764   am__fastdepCXX_TRUE=
3765   am__fastdepCXX_FALSE='#'
3766 else
3767   am__fastdepCXX_TRUE='#'
3768   am__fastdepCXX_FALSE=
3769 fi
3770
3771
3772 # Find a good install program.  We prefer a C program (faster),
3773 # so one script is as good as another.  But avoid the broken or
3774 # incompatible versions:
3775 # SysV /etc/install, /usr/sbin/install
3776 # SunOS /usr/etc/install
3777 # IRIX /sbin/install
3778 # AIX /bin/install
3779 # AmigaOS /C/install, which installs bootblocks on floppy discs
3780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3783 # ./install, which can be erroneously created by make from ./install.sh.
3784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3786 if test -z "$INSTALL"; then
3787 if test "${ac_cv_path_install+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795   # Account for people who put trailing slashes in PATH elements.
3796 case $as_dir/ in
3797   ./ | .// | /cC/* | \
3798   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3799   /usr/ucb/* ) ;;
3800   *)
3801     # OSF1 and SCO ODT 3.0 have their own names for install.
3802     # Don't use installbsd from OSF since it installs stuff as root
3803     # by default.
3804     for ac_prog in ginstall scoinst install; do
3805       for ac_exec_ext in '' $ac_executable_extensions; do
3806         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3807           if test $ac_prog = install &&
3808             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3809             # AIX install.  It has an incompatible calling convention.
3810             :
3811           elif test $ac_prog = install &&
3812             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3813             # program-specific install script used by HP pwplus--don't use.
3814             :
3815           else
3816             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3817             break 3
3818           fi
3819         fi
3820       done
3821     done
3822     ;;
3823 esac
3824 done
3825
3826
3827 fi
3828   if test "${ac_cv_path_install+set}" = set; then
3829     INSTALL=$ac_cv_path_install
3830   else
3831     # As a last resort, use the slow shell script.  We don't cache a
3832     # path for INSTALL within a source directory, because that will
3833     # break other packages using the cache if that directory is
3834     # removed, or if the path is relative.
3835     INSTALL=$ac_install_sh
3836   fi
3837 fi
3838 echo "$as_me:$LINENO: result: $INSTALL" >&5
3839 echo "${ECHO_T}$INSTALL" >&6
3840
3841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3842 # It thinks the first close brace ends the variable substitution.
3843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3844
3845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3846
3847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3848
3849 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3850 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3851 LN_S=$as_ln_s
3852 if test "$LN_S" = "ln -s"; then
3853   echo "$as_me:$LINENO: result: yes" >&5
3854 echo "${ECHO_T}yes" >&6
3855 else
3856   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3857 echo "${ECHO_T}no, using $LN_S" >&6
3858 fi
3859
3860 # Check whether --enable-shared or --disable-shared was given.
3861 if test "${enable_shared+set}" = set; then
3862   enableval="$enable_shared"
3863   p=${PACKAGE-default}
3864 case $enableval in
3865 yes) enable_shared=yes ;;
3866 no) enable_shared=no ;;
3867 *)
3868   enable_shared=no
3869   # Look at the argument we got.  We use all the common list separators.
3870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3871   for pkg in $enableval; do
3872     if test "X$pkg" = "X$p"; then
3873       enable_shared=yes
3874     fi
3875   done
3876   IFS="$ac_save_ifs"
3877   ;;
3878 esac
3879 else
3880   enable_shared=yes
3881 fi;
3882 # Check whether --enable-fast-install or --disable-fast-install was given.
3883 if test "${enable_fast_install+set}" = set; then
3884   enableval="$enable_fast_install"
3885   p=${PACKAGE-default}
3886 case $enableval in
3887 yes) enable_fast_install=yes ;;
3888 no) enable_fast_install=no ;;
3889 *)
3890   enable_fast_install=no
3891   # Look at the argument we got.  We use all the common list separators.
3892   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3893   for pkg in $enableval; do
3894     if test "X$pkg" = "X$p"; then
3895       enable_fast_install=yes
3896     fi
3897   done
3898   IFS="$ac_save_ifs"
3899   ;;
3900 esac
3901 else
3902   enable_fast_install=yes
3903 fi;
3904 # Find the correct PATH separator.  Usually this is `:', but
3905 # DJGPP uses `;' like DOS.
3906 if test "X${PATH_SEPARATOR+set}" != Xset; then
3907   UNAME=${UNAME-`uname 2>/dev/null`}
3908   case X$UNAME in
3909     *-DOS) lt_cv_sys_path_separator=';' ;;
3910     *)     lt_cv_sys_path_separator=':' ;;
3911   esac
3912   PATH_SEPARATOR=$lt_cv_sys_path_separator
3913 fi
3914
3915
3916 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3917 if test "${with_gnu_ld+set}" = set; then
3918   withval="$with_gnu_ld"
3919   test "$withval" = no || with_gnu_ld=yes
3920 else
3921   with_gnu_ld=no
3922 fi;
3923 ac_prog=ld
3924 if test "$GCC" = yes; then
3925   # Check if gcc -print-prog-name=ld gives a path.
3926   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3927 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3928   case $host in
3929   *-*-mingw*)
3930     # gcc leaves a trailing carriage return which upsets mingw
3931     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3932   *)
3933     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3934   esac
3935   case $ac_prog in
3936     # Accept absolute paths.
3937     [\\/]* | [A-Za-z]:[\\/]*)
3938       re_direlt='/[^/][^/]*/\.\./'
3939       # Canonicalize the path of ld
3940       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3941       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3942         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3943       done
3944       test -z "$LD" && LD="$ac_prog"
3945       ;;
3946   "")
3947     # If it fails, then pretend we aren't using GCC.
3948     ac_prog=ld
3949     ;;
3950   *)
3951     # If it is relative, then search for the first ld in PATH.
3952     with_gnu_ld=unknown
3953     ;;
3954   esac
3955 elif test "$with_gnu_ld" = yes; then
3956   echo "$as_me:$LINENO: checking for GNU ld" >&5
3957 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3958 else
3959   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3960 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3961 fi
3962 if test "${lt_cv_path_LD+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   if test -z "$LD"; then
3966   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3967   for ac_dir in $PATH; do
3968     test -z "$ac_dir" && ac_dir=.
3969     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3970       lt_cv_path_LD="$ac_dir/$ac_prog"
3971       # Check to see if the program is GNU ld.  I'd rather use --version,
3972       # but apparently some GNU ld's only accept -v.
3973       # Break only if it was the GNU/non-GNU ld that we prefer.
3974       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3975         test "$with_gnu_ld" != no && break
3976       else
3977         test "$with_gnu_ld" != yes && break
3978       fi
3979     fi
3980   done
3981   IFS="$ac_save_ifs"
3982 else
3983   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3984 fi
3985 fi
3986
3987 LD="$lt_cv_path_LD"
3988 if test -n "$LD"; then
3989   echo "$as_me:$LINENO: result: $LD" >&5
3990 echo "${ECHO_T}$LD" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3996 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3997    { (exit 1); exit 1; }; }
3998 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3999 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4000 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4001   echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4004 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4005   lt_cv_prog_gnu_ld=yes
4006 else
4007   lt_cv_prog_gnu_ld=no
4008 fi
4009 fi
4010 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4011 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4012 with_gnu_ld=$lt_cv_prog_gnu_ld
4013
4014
4015 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4016 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4017 if test "${lt_cv_ld_reload_flag+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   lt_cv_ld_reload_flag='-r'
4021 fi
4022 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4023 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4024 reload_flag=$lt_cv_ld_reload_flag
4025 test -n "$reload_flag" && reload_flag=" $reload_flag"
4026
4027 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4028 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4029 if test "${lt_cv_path_NM+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   if test -n "$NM"; then
4033   # Let the user override the test.
4034   lt_cv_path_NM="$NM"
4035 else
4036   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4037   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4038     test -z "$ac_dir" && ac_dir=.
4039     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4040     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4041       # Check to see if the nm accepts a BSD-compat flag.
4042       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4043       #   nm: unknown option "B" ignored
4044       # Tru64's nm complains that /dev/null is an invalid object file
4045       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4046         lt_cv_path_NM="$tmp_nm -B"
4047         break
4048       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4049         lt_cv_path_NM="$tmp_nm -p"
4050         break
4051       else
4052         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4053         continue # so that we can try to find one that supports BSD flags
4054       fi
4055     fi
4056   done
4057   IFS="$ac_save_ifs"
4058   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4059 fi
4060 fi
4061
4062 NM="$lt_cv_path_NM"
4063 echo "$as_me:$LINENO: result: $NM" >&5
4064 echo "${ECHO_T}$NM" >&6
4065
4066 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4068 if test "${lt_cv_path_SED+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071   # Loop through the user's path and test for sed and gsed.
4072 # Then use that list of sed's as ones to test for truncation.
4073 as_executable_p="test -f"
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_prog in sed gsed; do
4080     for ac_exec_ext in '' $ac_executable_extensions; do
4081       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4082         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4083       fi
4084     done
4085   done
4086 done
4087
4088   # Create a temporary directory, and hook for its removal unless debugging.
4089 $debug ||
4090 {
4091   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4092   trap '{ (exit 1); exit 1; }' 1 2 13 15
4093 }
4094
4095 # Create a (secure) tmp directory for tmp files.
4096 : ${TMPDIR=/tmp}
4097 {
4098   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4099   test -n "$tmp" && test -d "$tmp"
4100 }  ||
4101 {
4102   tmp=$TMPDIR/sed$$-$RANDOM
4103   (umask 077 && mkdir $tmp)
4104 } ||
4105 {
4106    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4107    { (exit 1); exit 1; }
4108 }
4109   _max=0
4110   _count=0
4111   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4112   # along with /bin/sed that truncates output.
4113   for _sed in $_sed_list /usr/xpg4/bin/sed; do
4114     test ! -f ${_sed} && break
4115     cat /dev/null > "$tmp/sed.in"
4116     _count=0
4117     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4118     # Check for GNU sed and select it if it is found.
4119     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4120       lt_cv_path_SED=${_sed}
4121       break
4122     fi
4123     while true; do
4124       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4125       mv "$tmp/sed.tmp" "$tmp/sed.in"
4126       cp "$tmp/sed.in" "$tmp/sed.nl"
4127       echo >>"$tmp/sed.nl"
4128       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4129       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4130       # 40000 chars as input seems more than enough
4131       test $_count -gt 10 && break
4132       _count=`expr $_count + 1`
4133       if test $_count -gt $_max; then
4134         _max=$_count
4135         lt_cv_path_SED=$_sed
4136       fi
4137     done
4138   done
4139   rm -rf "$tmp"
4140
4141 fi
4142
4143 if test "X$SED" != "X"; then
4144   lt_cv_path_SED=$SED
4145 else
4146   SED=$lt_cv_path_SED
4147 fi
4148 echo "$as_me:$LINENO: result: $SED" >&5
4149 echo "${ECHO_T}$SED" >&6
4150
4151 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4152 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4153 if test "${lt_cv_deplibs_check_method+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   lt_cv_file_magic_cmd='$MAGIC_CMD'
4157 lt_cv_file_magic_test_file=
4158 lt_cv_deplibs_check_method='unknown'
4159 # Need to set the preceding variable on all platforms that support
4160 # interlibrary dependencies.
4161 # 'none' -- dependencies not supported.
4162 # `unknown' -- same as none, but documents that we really don't know.
4163 # 'pass_all' -- all dependencies passed with no checks.
4164 # 'test_compile' -- check by making test program.
4165 # 'file_magic [[regex]]' -- check by looking for files in library path
4166 # which responds to the $file_magic_cmd with a given egrep regex.
4167 # If you have `file' or equivalent on your system and you're not sure
4168 # whether `pass_all' will *always* work, you probably want this one.
4169
4170 case $host_os in
4171 aix4* | aix5*)
4172   lt_cv_deplibs_check_method=pass_all
4173   ;;
4174
4175 beos*)
4176   lt_cv_deplibs_check_method=pass_all
4177   ;;
4178
4179 bsdi4*)
4180   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4181   lt_cv_file_magic_cmd='/usr/bin/file -L'
4182   lt_cv_file_magic_test_file=/shlib/libc.so
4183   ;;
4184
4185 cygwin* | mingw* | pw32*)
4186   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4187   lt_cv_file_magic_cmd='$OBJDUMP -f'
4188   ;;
4189
4190 darwin* | rhapsody*)
4191   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4192   lt_cv_file_magic_cmd='/usr/bin/file -L'
4193   case "$host_os" in
4194   rhapsody* | darwin1.[012])
4195     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4196     ;;
4197   *) # Darwin 1.3 on
4198     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4199     ;;
4200   esac
4201   ;;
4202
4203 freebsd*)
4204   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4205     case $host_cpu in
4206     i*86 )
4207       # Not sure whether the presence of OpenBSD here was a mistake.
4208       # Let's accept both of them until this is cleared up.
4209       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4210       lt_cv_file_magic_cmd=/usr/bin/file
4211       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4212       ;;
4213     esac
4214   else
4215     lt_cv_deplibs_check_method=pass_all
4216   fi
4217   ;;
4218
4219 gnu*)
4220   lt_cv_deplibs_check_method=pass_all
4221   ;;
4222
4223 hpux10.20*|hpux11*)
4224   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4225   lt_cv_file_magic_cmd=/usr/bin/file
4226   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4227   ;;
4228
4229 irix5* | irix6* | nonstopux*)
4230   case $host_os in
4231   irix5* | nonstopux*)
4232     # this will be overridden with pass_all, but let us keep it just in case
4233     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4234     ;;
4235   *)
4236     case $LD in
4237     *-32|*"-32 ") libmagic=32-bit;;
4238     *-n32|*"-n32 ") libmagic=N32;;
4239     *-64|*"-64 ") libmagic=64-bit;;
4240     *) libmagic=never-match;;
4241     esac
4242     # this will be overridden with pass_all, but let us keep it just in case
4243     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4244     ;;
4245   esac
4246   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249
4250 # This must be Linux ELF.
4251 linux-gnu*)
4252   case $host_cpu in
4253   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
4254     lt_cv_deplibs_check_method=pass_all ;;
4255   *)
4256     # glibc up to 2.1.1 does not perform some relocations on ARM
4257     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4258   esac
4259   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4260   ;;
4261
4262 netbsd*)
4263   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4264     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4265   else
4266     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4267   fi
4268   ;;
4269
4270 newos6*)
4271   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4272   lt_cv_file_magic_cmd=/usr/bin/file
4273   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4274   ;;
4275
4276 openbsd*)
4277   lt_cv_file_magic_cmd=/usr/bin/file
4278   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4279   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4280     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4281   else
4282     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4283   fi
4284   ;;
4285
4286 osf3* | osf4* | osf5*)
4287   # this will be overridden with pass_all, but let us keep it just in case
4288   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4289   lt_cv_file_magic_test_file=/shlib/libc.so
4290   lt_cv_deplibs_check_method=pass_all
4291   ;;
4292
4293 sco3.2v5*)
4294   lt_cv_deplibs_check_method=pass_all
4295   ;;
4296
4297 solaris*)
4298   lt_cv_deplibs_check_method=pass_all
4299   lt_cv_file_magic_test_file=/lib/libc.so
4300   ;;
4301
4302 sysv5uw[78]* | sysv4*uw2*)
4303   lt_cv_deplibs_check_method=pass_all
4304   ;;
4305
4306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4307   case $host_vendor in
4308   motorola)
4309     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]'
4310     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4311     ;;
4312   ncr)
4313     lt_cv_deplibs_check_method=pass_all
4314     ;;
4315   sequent)
4316     lt_cv_file_magic_cmd='/bin/file'
4317     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4318     ;;
4319   sni)
4320     lt_cv_file_magic_cmd='/bin/file'
4321     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4322     lt_cv_file_magic_test_file=/lib/libc.so
4323     ;;
4324   siemens)
4325     lt_cv_deplibs_check_method=pass_all
4326     ;;
4327   esac
4328   ;;
4329 esac
4330
4331 fi
4332 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4333 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4334 file_magic_cmd=$lt_cv_file_magic_cmd
4335 deplibs_check_method=$lt_cv_deplibs_check_method
4336
4337
4338
4339
4340
4341
4342
4343
4344 # Check for command to grab the raw symbol name followed by C symbol from nm.
4345 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4346 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350
4351 # These are sane defaults that work on at least a few old systems.
4352 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4353
4354 # Character class describing NM global symbol codes.
4355 symcode='[BCDEGRST]'
4356
4357 # Regexp to match symbols that can be accessed directly from C.
4358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4359
4360 # Transform the above into a raw symbol and a C symbol.
4361 symxfrm='\1 \2\3 \3'
4362
4363 # Transform an extracted symbol line into a proper C declaration
4364 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4365
4366 # Transform an extracted symbol line into symbol name and symbol address
4367 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'"
4368
4369 # Define system-specific variables.
4370 case $host_os in
4371 aix*)
4372   symcode='[BCDT]'
4373   ;;
4374 cygwin* | mingw* | pw32*)
4375   symcode='[ABCDGISTW]'
4376   ;;
4377 hpux*) # Its linker distinguishes data from code symbols
4378   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4379   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'"
4380   ;;
4381 irix* | nonstopux*)
4382   symcode='[BCDEGRST]'
4383   ;;
4384 osf*)
4385   symcode='[BCDEGQRST]'
4386   ;;
4387 solaris* | sysv5*)
4388   symcode='[BDT]'
4389   ;;
4390 sysv4)
4391   symcode='[DFNSTU]'
4392   ;;
4393 esac
4394
4395 # Handle CRLF in mingw tool chain
4396 opt_cr=
4397 case $host_os in
4398 mingw*)
4399   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4400   ;;
4401 esac
4402
4403 # If we're using GNU nm, then use its standard symbol codes.
4404 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4405   symcode='[ABCDGISTW]'
4406 fi
4407
4408 # Try without a prefix undercore, then with it.
4409 for ac_symprfx in "" "_"; do
4410
4411   # Write the raw and C identifiers.
4412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4413
4414   # Check to see that the pipe works correctly.
4415   pipe_works=no
4416   rm -f conftest*
4417   cat > conftest.$ac_ext <<EOF
4418 #ifdef __cplusplus
4419 extern "C" {
4420 #endif
4421 char nm_test_var;
4422 void nm_test_func(){}
4423 #ifdef __cplusplus
4424 }
4425 #endif
4426 int main(){nm_test_var='a';nm_test_func();return(0);}
4427 EOF
4428
4429   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430   (eval $ac_compile) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; then
4434     # Now try to grab the symbols.
4435     nlist=conftest.nm
4436     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4437   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } && test -s "$nlist"; then
4441       # Try sorting and uniquifying the output.
4442       if sort "$nlist" | uniq > "$nlist"T; then
4443         mv -f "$nlist"T "$nlist"
4444       else
4445         rm -f "$nlist"T
4446       fi
4447
4448       # Make sure that we snagged all the symbols we need.
4449       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4450         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4451           cat <<EOF > conftest.$ac_ext
4452 #ifdef __cplusplus
4453 extern "C" {
4454 #endif
4455
4456 EOF
4457           # Now generate the symbol file.
4458           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4459
4460           cat <<EOF >> conftest.$ac_ext
4461 #if defined (__STDC__) && __STDC__
4462 # define lt_ptr void *
4463 #else
4464 # define lt_ptr char *
4465 # define const
4466 #endif
4467
4468 /* The mapping between symbol names and symbols. */
4469 const struct {
4470   const char *name;
4471   lt_ptr address;
4472 }
4473 lt_preloaded_symbols[] =
4474 {
4475 EOF
4476           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4477           cat <<\EOF >> conftest.$ac_ext
4478   {0, (lt_ptr) 0}
4479 };
4480
4481 #ifdef __cplusplus
4482 }
4483 #endif
4484 EOF
4485           # Now try linking the two files.
4486           mv conftest.$ac_objext conftstm.$ac_objext
4487           save_LIBS="$LIBS"
4488           save_CFLAGS="$CFLAGS"
4489           LIBS="conftstm.$ac_objext"
4490           CFLAGS="$CFLAGS$no_builtin_flag"
4491           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492   (eval $ac_link) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } && test -s conftest$ac_exeext; then
4496             pipe_works=yes
4497           fi
4498           LIBS="$save_LIBS"
4499           CFLAGS="$save_CFLAGS"
4500         else
4501           echo "cannot find nm_test_func in $nlist" >&5
4502         fi
4503       else
4504         echo "cannot find nm_test_var in $nlist" >&5
4505       fi
4506     else
4507       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4508     fi
4509   else
4510     echo "$progname: failed program was:" >&5
4511     cat conftest.$ac_ext >&5
4512   fi
4513   rm -f conftest* conftst*
4514
4515   # Do not use the global_symbol_pipe unless it works.
4516   if test "$pipe_works" = yes; then
4517     break
4518   else
4519     lt_cv_sys_global_symbol_pipe=
4520   fi
4521 done
4522
4523 fi
4524
4525 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4527   global_symbol_to_cdecl=
4528   global_symbol_to_c_name_address=
4529 else
4530   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4531   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4532 fi
4533 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4534 then
4535   echo "$as_me:$LINENO: result: failed" >&5
4536 echo "${ECHO_T}failed" >&6
4537 else
4538   echo "$as_me:$LINENO: result: ok" >&5
4539 echo "${ECHO_T}ok" >&6
4540 fi
4541
4542
4543 echo "$as_me:$LINENO: checking for egrep" >&5
4544 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4545 if test "${ac_cv_prog_egrep+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4549     then ac_cv_prog_egrep='grep -E'
4550     else ac_cv_prog_egrep='egrep'
4551     fi
4552 fi
4553 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4554 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4555  EGREP=$ac_cv_prog_egrep
4556
4557
4558 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4559 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4560 if test "${ac_cv_header_stdc+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   cat >conftest.$ac_ext <<_ACEOF
4564 #line $LINENO "configure"
4565 /* confdefs.h.  */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h.  */
4570 #include <stdlib.h>
4571 #include <stdarg.h>
4572 #include <string.h>
4573 #include <float.h>
4574
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585   (eval $ac_compile) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } &&
4589          { ac_try='test -s conftest.$ac_objext'
4590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591   (eval $ac_try) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; }; then
4595   ac_cv_header_stdc=yes
4596 else
4597   echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 ac_cv_header_stdc=no
4601 fi
4602 rm -f conftest.$ac_objext conftest.$ac_ext
4603
4604 if test $ac_cv_header_stdc = yes; then
4605   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4606   cat >conftest.$ac_ext <<_ACEOF
4607 #line $LINENO "configure"
4608 /* confdefs.h.  */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h.  */
4613 #include <string.h>
4614
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617   $EGREP "memchr" >/dev/null 2>&1; then
4618   :
4619 else
4620   ac_cv_header_stdc=no
4621 fi
4622 rm -f conftest*
4623
4624 fi
4625
4626 if test $ac_cv_header_stdc = yes; then
4627   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628   cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 #include <stdlib.h>
4636
4637 _ACEOF
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639   $EGREP "free" >/dev/null 2>&1; then
4640   :
4641 else
4642   ac_cv_header_stdc=no
4643 fi
4644 rm -f conftest*
4645
4646 fi
4647
4648 if test $ac_cv_header_stdc = yes; then
4649   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4650   if test "$cross_compiling" = yes; then
4651   :
4652 else
4653   cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660 #include <ctype.h>
4661 #if ((' ' & 0x0FF) == 0x020)
4662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4664 #else
4665 # define ISLOWER(c) \
4666                    (('a' <= (c) && (c) <= 'i') \
4667                      || ('j' <= (c) && (c) <= 'r') \
4668                      || ('s' <= (c) && (c) <= 'z'))
4669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4670 #endif
4671
4672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4673 int
4674 main ()
4675 {
4676   int i;
4677   for (i = 0; i < 256; i++)
4678     if (XOR (islower (i), ISLOWER (i))
4679         || toupper (i) != TOUPPER (i))
4680       exit(2);
4681   exit (0);
4682 }
4683 _ACEOF
4684 rm -f conftest$ac_exeext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686   (eval $ac_link) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   :
4696 else
4697   echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ( exit $ac_status )
4702 ac_cv_header_stdc=no
4703 fi
4704 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 fi
4707 fi
4708 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4709 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4710 if test $ac_cv_header_stdc = yes; then
4711
4712 cat >>confdefs.h <<\_ACEOF
4713 #define STDC_HEADERS 1
4714 _ACEOF
4715
4716 fi
4717
4718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4729                   inttypes.h stdint.h unistd.h
4730 do
4731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4732 echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744 $ac_includes_default
4745
4746 #include <$ac_header>
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750   (eval $ac_compile) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } &&
4754          { ac_try='test -s conftest.$ac_objext'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; }; then
4760   eval "$as_ac_Header=yes"
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 eval "$as_ac_Header=no"
4766 fi
4767 rm -f conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772   cat >>confdefs.h <<_ACEOF
4773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774 _ACEOF
4775
4776 fi
4777
4778 done
4779
4780
4781
4782 for ac_header in dlfcn.h
4783 do
4784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786   echo "$as_me:$LINENO: checking for $ac_header" >&5
4787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 fi
4791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 else
4794   # Is the header compilable?
4795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 $ac_includes_default
4805 #include <$ac_header>
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809   (eval $ac_compile) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } &&
4813          { ac_try='test -s conftest.$ac_objext'
4814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815   (eval $ac_try) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; }; then
4819   ac_header_compiler=yes
4820 else
4821   echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824 ac_header_compiler=no
4825 fi
4826 rm -f conftest.$ac_objext conftest.$ac_ext
4827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4828 echo "${ECHO_T}$ac_header_compiler" >&6
4829
4830 # Is the header present?
4831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4833 cat >conftest.$ac_ext <<_ACEOF
4834 #line $LINENO "configure"
4835 /* confdefs.h.  */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h.  */
4840 #include <$ac_header>
4841 _ACEOF
4842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } >/dev/null; then
4850   if test -s conftest.err; then
4851     ac_cpp_err=$ac_c_preproc_warn_flag
4852   else
4853     ac_cpp_err=
4854   fi
4855 else
4856   ac_cpp_err=yes
4857 fi
4858 if test -z "$ac_cpp_err"; then
4859   ac_header_preproc=yes
4860 else
4861   echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864   ac_header_preproc=no
4865 fi
4866 rm -f conftest.err conftest.$ac_ext
4867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4868 echo "${ECHO_T}$ac_header_preproc" >&6
4869
4870 # So?  What about this header?
4871 case $ac_header_compiler:$ac_header_preproc in
4872   yes:no )
4873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4877     (
4878       cat <<\_ASBOX
4879 ## ------------------------------------ ##
4880 ## Report this to bug-autoconf@gnu.org. ##
4881 ## ------------------------------------ ##
4882 _ASBOX
4883     ) |
4884       sed "s/^/$as_me: WARNING:     /" >&2
4885     ;;
4886   no:yes )
4887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4889     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4893     (
4894       cat <<\_ASBOX
4895 ## ------------------------------------ ##
4896 ## Report this to bug-autoconf@gnu.org. ##
4897 ## ------------------------------------ ##
4898 _ASBOX
4899     ) |
4900       sed "s/^/$as_me: WARNING:     /" >&2
4901     ;;
4902 esac
4903 echo "$as_me:$LINENO: checking for $ac_header" >&5
4904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   eval "$as_ac_Header=$ac_header_preproc"
4909 fi
4910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4912
4913 fi
4914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4915   cat >>confdefs.h <<_ACEOF
4916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 _ACEOF
4918
4919 fi
4920
4921 done
4922
4923
4924
4925
4926
4927
4928 # Only perform the check for file, if the check method requires it
4929 case $deplibs_check_method in
4930 file_magic*)
4931   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4932     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4933 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   case $MAGIC_CMD in
4938   /*)
4939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4940   ;;
4941   ?:/*)
4942   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4943   ;;
4944   *)
4945   ac_save_MAGIC_CMD="$MAGIC_CMD"
4946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4947   ac_dummy="/usr/bin:$PATH"
4948   for ac_dir in $ac_dummy; do
4949     test -z "$ac_dir" && ac_dir=.
4950     if test -f $ac_dir/${ac_tool_prefix}file; then
4951       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4952       if test -n "$file_magic_test_file"; then
4953         case $deplibs_check_method in
4954         "file_magic "*)
4955           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4956           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4957           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4958             egrep "$file_magic_regex" > /dev/null; then
4959             :
4960           else
4961             cat <<EOF 1>&2
4962
4963 *** Warning: the command libtool uses to detect shared libraries,
4964 *** $file_magic_cmd, produces output that libtool cannot recognize.
4965 *** The result is that libtool may fail to recognize shared libraries
4966 *** as such.  This will affect the creation of libtool libraries that
4967 *** depend on shared libraries, but programs linked with such libtool
4968 *** libraries will work regardless of this problem.  Nevertheless, you
4969 *** may want to report the problem to your system manager and/or to
4970 *** bug-libtool@gnu.org
4971
4972 EOF
4973           fi ;;
4974         esac
4975       fi
4976       break
4977     fi
4978   done
4979   IFS="$ac_save_ifs"
4980   MAGIC_CMD="$ac_save_MAGIC_CMD"
4981   ;;
4982 esac
4983 fi
4984
4985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4986 if test -n "$MAGIC_CMD"; then
4987   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4988 echo "${ECHO_T}$MAGIC_CMD" >&6
4989 else
4990   echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992 fi
4993
4994 if test -z "$lt_cv_path_MAGIC_CMD"; then
4995   if test -n "$ac_tool_prefix"; then
4996     echo "$as_me:$LINENO: checking for file" >&5
4997 echo $ECHO_N "checking for file... $ECHO_C" >&6
4998 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   case $MAGIC_CMD in
5002   /*)
5003   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5004   ;;
5005   ?:/*)
5006   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5007   ;;
5008   *)
5009   ac_save_MAGIC_CMD="$MAGIC_CMD"
5010   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5011   ac_dummy="/usr/bin:$PATH"
5012   for ac_dir in $ac_dummy; do
5013     test -z "$ac_dir" && ac_dir=.
5014     if test -f $ac_dir/file; then
5015       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5016       if test -n "$file_magic_test_file"; then
5017         case $deplibs_check_method in
5018         "file_magic "*)
5019           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5020           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5021           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5022             egrep "$file_magic_regex" > /dev/null; then
5023             :
5024           else
5025             cat <<EOF 1>&2
5026
5027 *** Warning: the command libtool uses to detect shared libraries,
5028 *** $file_magic_cmd, produces output that libtool cannot recognize.
5029 *** The result is that libtool may fail to recognize shared libraries
5030 *** as such.  This will affect the creation of libtool libraries that
5031 *** depend on shared libraries, but programs linked with such libtool
5032 *** libraries will work regardless of this problem.  Nevertheless, you
5033 *** may want to report the problem to your system manager and/or to
5034 *** bug-libtool@gnu.org
5035
5036 EOF
5037           fi ;;
5038         esac
5039       fi
5040       break
5041     fi
5042   done
5043   IFS="$ac_save_ifs"
5044   MAGIC_CMD="$ac_save_MAGIC_CMD"
5045   ;;
5046 esac
5047 fi
5048
5049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5050 if test -n "$MAGIC_CMD"; then
5051   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5052 echo "${ECHO_T}$MAGIC_CMD" >&6
5053 else
5054   echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5056 fi
5057
5058   else
5059     MAGIC_CMD=:
5060   fi
5061 fi
5062
5063   fi
5064   ;;
5065 esac
5066
5067 if test -n "$ac_tool_prefix"; then
5068   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5070 echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072 if test "${ac_cv_prog_RANLIB+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   if test -n "$RANLIB"; then
5076   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090 done
5091
5092 fi
5093 fi
5094 RANLIB=$ac_cv_prog_RANLIB
5095 if test -n "$RANLIB"; then
5096   echo "$as_me:$LINENO: result: $RANLIB" >&5
5097 echo "${ECHO_T}$RANLIB" >&6
5098 else
5099   echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6
5101 fi
5102
5103 fi
5104 if test -z "$ac_cv_prog_RANLIB"; then
5105   ac_ct_RANLIB=$RANLIB
5106   # Extract the first word of "ranlib", so it can be a program name with args.
5107 set dummy ranlib; ac_word=$2
5108 echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5111   echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113   if test -n "$ac_ct_RANLIB"; then
5114   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121   for ac_exec_ext in '' $ac_executable_extensions; do
5122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_ac_ct_RANLIB="ranlib"
5124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128 done
5129
5130   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5131 fi
5132 fi
5133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5134 if test -n "$ac_ct_RANLIB"; then
5135   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5136 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5137 else
5138   echo "$as_me:$LINENO: result: no" >&5
5139 echo "${ECHO_T}no" >&6
5140 fi
5141
5142   RANLIB=$ac_ct_RANLIB
5143 else
5144   RANLIB="$ac_cv_prog_RANLIB"
5145 fi
5146
5147 if test -n "$ac_tool_prefix"; then
5148   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}strip; ac_word=$2
5150 echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152 if test "${ac_cv_prog_STRIP+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   if test -n "$STRIP"; then
5156   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   test -z "$as_dir" && as_dir=.
5163   for ac_exec_ext in '' $ac_executable_extensions; do
5164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167     break 2
5168   fi
5169 done
5170 done
5171
5172 fi
5173 fi
5174 STRIP=$ac_cv_prog_STRIP
5175 if test -n "$STRIP"; then
5176   echo "$as_me:$LINENO: result: $STRIP" >&5
5177 echo "${ECHO_T}$STRIP" >&6
5178 else
5179   echo "$as_me:$LINENO: result: no" >&5
5180 echo "${ECHO_T}no" >&6
5181 fi
5182
5183 fi
5184 if test -z "$ac_cv_prog_STRIP"; then
5185   ac_ct_STRIP=$STRIP
5186   # Extract the first word of "strip", so it can be a program name with args.
5187 set dummy strip; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   if test -n "$ac_ct_STRIP"; then
5194   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201   for ac_exec_ext in '' $ac_executable_extensions; do
5202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203     ac_cv_prog_ac_ct_STRIP="strip"
5204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208 done
5209
5210   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5211 fi
5212 fi
5213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5214 if test -n "$ac_ct_STRIP"; then
5215   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5216 echo "${ECHO_T}$ac_ct_STRIP" >&6
5217 else
5218   echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5220 fi
5221
5222   STRIP=$ac_ct_STRIP
5223 else
5224   STRIP="$ac_cv_prog_STRIP"
5225 fi
5226
5227
5228 enable_dlopen=no
5229 enable_win32_dll=no
5230
5231 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5232 if test "${enable_libtool_lock+set}" = set; then
5233   enableval="$enable_libtool_lock"
5234
5235 fi;
5236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5237
5238 # Some flags need to be propagated to the compiler or linker for good
5239 # libtool support.
5240 case $host in
5241 *-*-irix6*)
5242   # Find out which ABI we are using.
5243   echo '#line 5243 "configure"' > conftest.$ac_ext
5244   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245   (eval $ac_compile) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; then
5249     case `/usr/bin/file conftest.$ac_objext` in
5250     *32-bit*)
5251       LD="${LD-ld} -32"
5252       ;;
5253     *N32*)
5254       LD="${LD-ld} -n32"
5255       ;;
5256     *64-bit*)
5257       LD="${LD-ld} -64"
5258       ;;
5259     esac
5260   fi
5261   rm -rf conftest*
5262   ;;
5263
5264 *-*-linux*)
5265   # Test if the compiler is 64bit
5266   echo 'int i;' > conftest.$ac_ext
5267   lt_cv_cc_64bit_output=no
5268   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269   (eval $ac_compile) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; then
5273     case `/usr/bin/file conftest.$ac_objext` in
5274     *"ELF 64"*)
5275       lt_cv_cc_64bit_output=yes
5276       ;;
5277     esac
5278   fi
5279   rm -rf conftest*
5280   ;;
5281
5282 *-*-sco3.2v5*)
5283   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5284   SAVE_CFLAGS="$CFLAGS"
5285   CFLAGS="$CFLAGS -belf"
5286   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5287 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5288 if test "${lt_cv_cc_needs_belf+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291
5292
5293      ac_ext=c
5294 ac_cpp='$CPP $CPPFLAGS'
5295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298
5299      cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306
5307 int
5308 main ()
5309 {
5310
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317   (eval $ac_link) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } &&
5321          { ac_try='test -s conftest$ac_exeext'
5322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323   (eval $ac_try) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; }; then
5327   lt_cv_cc_needs_belf=yes
5328 else
5329   echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 lt_cv_cc_needs_belf=no
5333 fi
5334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5335      ac_ext=c
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340
5341 fi
5342 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5343 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5344   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5345     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5346     CFLAGS="$SAVE_CFLAGS"
5347   fi
5348   ;;
5349
5350
5351 esac
5352
5353 # Sed substitution that helps us do robust quoting.  It backslashifies
5354 # metacharacters that are still active within double-quoted strings.
5355 Xsed='sed -e s/^X//'
5356 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5357
5358 # Same as above, but do not quote variable references.
5359 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5360
5361 # Sed substitution to delay expansion of an escaped shell variable in a
5362 # double_quote_subst'ed string.
5363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5364
5365 # Constants:
5366 rm="rm -f"
5367
5368 # Global variables:
5369 default_ofile=libtool
5370 can_build_shared=yes
5371
5372 # All known linkers require a `.a' archive for static linking (except M$VC,
5373 # which needs '.lib').
5374 libext=a
5375 ltmain="$ac_aux_dir/ltmain.sh"
5376 ofile="$default_ofile"
5377 with_gnu_ld="$lt_cv_prog_gnu_ld"
5378 need_locks="$enable_libtool_lock"
5379
5380 old_CC="$CC"
5381 old_CFLAGS="$CFLAGS"
5382
5383 # Set sane defaults for various variables
5384 test -z "$AR" && AR=ar
5385 test -z "$AR_FLAGS" && AR_FLAGS=cru
5386 test -z "$AS" && AS=as
5387 test -z "$CC" && CC=cc
5388 test -z "$DLLTOOL" && DLLTOOL=dlltool
5389 test -z "$LD" && LD=ld
5390 test -z "$LN_S" && LN_S="ln -s"
5391 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5392 test -z "$NM" && NM=nm
5393 test -z "$OBJDUMP" && OBJDUMP=objdump
5394 test -z "$RANLIB" && RANLIB=:
5395 test -z "$STRIP" && STRIP=:
5396 test -z "$ac_objext" && ac_objext=o
5397
5398 if test x"$host" != x"$build"; then
5399   ac_tool_prefix=${host_alias}-
5400 else
5401   ac_tool_prefix=
5402 fi
5403
5404 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5405 case $host_os in
5406 linux-gnu*) ;;
5407 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5408 esac
5409
5410 case $host_os in
5411 aix3*)
5412   # AIX sometimes has problems with the GCC collect2 program.  For some
5413   # reason, if we set the COLLECT_NAMES environment variable, the problems
5414   # vanish in a puff of smoke.
5415   if test "X${COLLECT_NAMES+set}" != Xset; then
5416     COLLECT_NAMES=
5417     export COLLECT_NAMES
5418   fi
5419   ;;
5420 esac
5421
5422 # Determine commands to create old-style static archives.
5423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5424 old_postinstall_cmds='chmod 644 $oldlib'
5425 old_postuninstall_cmds=
5426
5427 if test -n "$RANLIB"; then
5428   case $host_os in
5429   openbsd*)
5430     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5431     ;;
5432   *)
5433     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5434     ;;
5435   esac
5436   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5437 fi
5438
5439 # Allow CC to be a program name with arguments.
5440 set dummy $CC
5441 compiler="$2"
5442
5443 echo "$as_me:$LINENO: checking for objdir" >&5
5444 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5445 rm -f .libs 2>/dev/null
5446 mkdir .libs 2>/dev/null
5447 if test -d .libs; then
5448   objdir=.libs
5449 else
5450   # MS-DOS does not allow filenames that begin with a dot.
5451   objdir=_libs
5452 fi
5453 rmdir .libs 2>/dev/null
5454 echo "$as_me:$LINENO: result: $objdir" >&5
5455 echo "${ECHO_T}$objdir" >&6
5456
5457
5458
5459 # Check whether --with-pic or --without-pic was given.
5460 if test "${with_pic+set}" = set; then
5461   withval="$with_pic"
5462   pic_mode="$withval"
5463 else
5464   pic_mode=default
5465 fi;
5466 test -z "$pic_mode" && pic_mode=default
5467
5468 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5469 # in isolation, and that seeing it set (from the cache) indicates that
5470 # the associated values are set (in the cache) correctly too.
5471 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5472 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5473 if test "${lt_cv_prog_cc_pic+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476    lt_cv_prog_cc_pic=
5477   lt_cv_prog_cc_shlib=
5478   lt_cv_prog_cc_wl=
5479   lt_cv_prog_cc_static=
5480   lt_cv_prog_cc_no_builtin=
5481   lt_cv_prog_cc_can_build_shared=$can_build_shared
5482
5483   if test "$GCC" = yes; then
5484     lt_cv_prog_cc_wl='-Wl,'
5485     lt_cv_prog_cc_static='-static'
5486
5487     case $host_os in
5488     aix*)
5489       # Below there is a dirty hack to force normal static linking with -ldl
5490       # The problem is because libdl dynamically linked with both libc and
5491       # libC (AIX C++ library), which obviously doesn't included in libraries
5492       # list by gcc. This cause undefined symbols with -static flags.
5493       # This hack allows C programs to be linked with "-static -ldl", but
5494       # not sure about C++ programs.
5495       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5496       ;;
5497     amigaos*)
5498       # FIXME: we need at least 68020 code to build shared libraries, but
5499       # adding the `-m68020' flag to GCC prevents building anything better,
5500       # like `-m68040'.
5501       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5502       ;;
5503     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5504       # PIC is the default for these OSes.
5505       ;;
5506     darwin* | rhapsody*)
5507       # PIC is the default on this platform
5508       # Common symbols not allowed in MH_DYLIB files
5509       lt_cv_prog_cc_pic='-fno-common'
5510       ;;
5511     cygwin* | mingw* | pw32* | os2*)
5512       # This hack is so that the source file can tell whether it is being
5513       # built for inclusion in a dll (and should export symbols for example).
5514       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5515       ;;
5516     sysv4*MP*)
5517       if test -d /usr/nec; then
5518          lt_cv_prog_cc_pic=-Kconform_pic
5519       fi
5520       ;;
5521     *)
5522       lt_cv_prog_cc_pic='-fPIC'
5523       ;;
5524     esac
5525   else
5526     # PORTME Check for PIC flags for the system compiler.
5527     case $host_os in
5528     aix3* | aix4* | aix5*)
5529       lt_cv_prog_cc_wl='-Wl,'
5530       # All AIX code is PIC.
5531       if test "$host_cpu" = ia64; then
5532         # AIX 5 now supports IA64 processor
5533         lt_cv_prog_cc_static='-Bstatic'
5534       else
5535         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5536       fi
5537       ;;
5538
5539     hpux9* | hpux10* | hpux11*)
5540       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5541       lt_cv_prog_cc_wl='-Wl,'
5542       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5543       lt_cv_prog_cc_pic='+Z'
5544       ;;
5545
5546     irix5* | irix6* | nonstopux*)
5547       lt_cv_prog_cc_wl='-Wl,'
5548       lt_cv_prog_cc_static='-non_shared'
5549       # PIC (with -KPIC) is the default.
5550       ;;
5551
5552     cygwin* | mingw* | pw32* | os2*)
5553       # This hack is so that the source file can tell whether it is being
5554       # built for inclusion in a dll (and should export symbols for example).
5555       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5556       ;;
5557
5558     newsos6)
5559       lt_cv_prog_cc_pic='-KPIC'
5560       lt_cv_prog_cc_static='-Bstatic'
5561       ;;
5562
5563     osf3* | osf4* | osf5*)
5564       # All OSF/1 code is PIC.
5565       lt_cv_prog_cc_wl='-Wl,'
5566       lt_cv_prog_cc_static='-non_shared'
5567       ;;
5568
5569     sco3.2v5*)
5570       lt_cv_prog_cc_pic='-Kpic'
5571       lt_cv_prog_cc_static='-dn'
5572       lt_cv_prog_cc_shlib='-belf'
5573       ;;
5574
5575     solaris*)
5576       lt_cv_prog_cc_pic='-KPIC'
5577       lt_cv_prog_cc_static='-Bstatic'
5578       lt_cv_prog_cc_wl='-Wl,'
5579       ;;
5580
5581     sunos4*)
5582       lt_cv_prog_cc_pic='-PIC'
5583       lt_cv_prog_cc_static='-Bstatic'
5584       lt_cv_prog_cc_wl='-Qoption ld '
5585       ;;
5586
5587     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5588       lt_cv_prog_cc_pic='-KPIC'
5589       lt_cv_prog_cc_static='-Bstatic'
5590       lt_cv_prog_cc_wl='-Wl,'
5591       ;;
5592
5593     uts4*)
5594       lt_cv_prog_cc_pic='-pic'
5595       lt_cv_prog_cc_static='-Bstatic'
5596       ;;
5597
5598     sysv4*MP*)
5599       if test -d /usr/nec ;then
5600         lt_cv_prog_cc_pic='-Kconform_pic'
5601         lt_cv_prog_cc_static='-Bstatic'
5602       fi
5603       ;;
5604
5605     *)
5606       lt_cv_prog_cc_can_build_shared=no
5607       ;;
5608     esac
5609   fi
5610
5611 fi
5612
5613 if test -z "$lt_cv_prog_cc_pic"; then
5614   echo "$as_me:$LINENO: result: none" >&5
5615 echo "${ECHO_T}none" >&6
5616 else
5617   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5618 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5619
5620   # Check to make sure the pic_flag actually works.
5621   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5622 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5623   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626       save_CFLAGS="$CFLAGS"
5627     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5628     cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635
5636 int
5637 main ()
5638 {
5639
5640   ;
5641   return 0;
5642 }
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646   (eval $ac_compile) 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); } &&
5650          { ac_try='test -s conftest.$ac_objext'
5651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652   (eval $ac_try) 2>&5
5653   ac_status=$?
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); }; }; then
5656         case $host_os in
5657       hpux9* | hpux10* | hpux11*)
5658         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5659         # they create non-PIC objects.  So, if there were any warnings, we
5660         # assume that PIC is not supported.
5661         if test -s conftest.err; then
5662           lt_cv_prog_cc_pic_works=no
5663         else
5664           lt_cv_prog_cc_pic_works=yes
5665         fi
5666         ;;
5667       *)
5668         lt_cv_prog_cc_pic_works=yes
5669         ;;
5670       esac
5671
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676       lt_cv_prog_cc_pic_works=no
5677
5678 fi
5679 rm -f conftest.$ac_objext conftest.$ac_ext
5680     CFLAGS="$save_CFLAGS"
5681
5682 fi
5683
5684
5685   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5686     lt_cv_prog_cc_pic=
5687     lt_cv_prog_cc_can_build_shared=no
5688   else
5689     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5690   fi
5691
5692   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5693 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5694 fi
5695
5696 # Check for any special shared library compilation flags.
5697 if test -n "$lt_cv_prog_cc_shlib"; then
5698   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5699 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5700   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5701   else
5702    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5703 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5704     lt_cv_prog_cc_can_build_shared=no
5705   fi
5706 fi
5707
5708 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5709 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5710 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713     lt_cv_prog_cc_static_works=no
5714   save_LDFLAGS="$LDFLAGS"
5715   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5716   cat >conftest.$ac_ext <<_ACEOF
5717 #line $LINENO "configure"
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723
5724 int
5725 main ()
5726 {
5727
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734   (eval $ac_link) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -s conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   lt_cv_prog_cc_static_works=yes
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 fi
5750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5751   LDFLAGS="$save_LDFLAGS"
5752
5753 fi
5754
5755
5756 # Belt *and* braces to stop my trousers falling down:
5757 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5758 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5759 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5760
5761 pic_flag="$lt_cv_prog_cc_pic"
5762 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5763 wl="$lt_cv_prog_cc_wl"
5764 link_static_flag="$lt_cv_prog_cc_static"
5765 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5766 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5767
5768
5769 # Check to see if options -o and -c are simultaneously supported by compiler
5770 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5772 if test "${lt_cv_compiler_c_o+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775
5776 $rm -r conftest 2>/dev/null
5777 mkdir conftest
5778 cd conftest
5779 echo "int some_variable = 0;" > conftest.$ac_ext
5780 mkdir out
5781 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5782 # that will create temporary files in the current directory regardless of
5783 # the output directory.  Thus, making CWD read-only will cause this test
5784 # to fail, enabling locking or at least warning the user not to do parallel
5785 # builds.
5786 chmod -w .
5787 save_CFLAGS="$CFLAGS"
5788 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5789 compiler_c_o=no
5790 if { (eval echo configure:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5791   # The compiler can only warn and ignore the option if not recognized
5792   # So say no if there are warnings
5793   if test -s out/conftest.err; then
5794     lt_cv_compiler_c_o=no
5795   else
5796     lt_cv_compiler_c_o=yes
5797   fi
5798 else
5799   # Append any errors to the config.log.
5800   cat out/conftest.err 1>&5
5801   lt_cv_compiler_c_o=no
5802 fi
5803 CFLAGS="$save_CFLAGS"
5804 chmod u+w .
5805 $rm conftest* out/*
5806 rmdir out
5807 cd ..
5808 rmdir conftest
5809 $rm -r conftest 2>/dev/null
5810
5811 fi
5812
5813 compiler_c_o=$lt_cv_compiler_c_o
5814 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5815 echo "${ECHO_T}$compiler_c_o" >&6
5816
5817 if test x"$compiler_c_o" = x"yes"; then
5818   # Check to see if we can write to a .lo
5819   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5820 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5821   if test "${lt_cv_compiler_o_lo+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824
5825   lt_cv_compiler_o_lo=no
5826   save_CFLAGS="$CFLAGS"
5827   CFLAGS="$CFLAGS -c -o conftest.lo"
5828   save_objext="$ac_objext"
5829   ac_objext=lo
5830   cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837
5838 int
5839 main ()
5840 {
5841 int some_variable = 0;
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848   (eval $ac_compile) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -s conftest.$ac_objext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858       # The compiler can only warn and ignore the option if not recognized
5859     # So say no if there are warnings
5860     if test -s conftest.err; then
5861       lt_cv_compiler_o_lo=no
5862     else
5863       lt_cv_compiler_o_lo=yes
5864     fi
5865
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 fi
5871 rm -f conftest.$ac_objext conftest.$ac_ext
5872   ac_objext="$save_objext"
5873   CFLAGS="$save_CFLAGS"
5874
5875 fi
5876
5877   compiler_o_lo=$lt_cv_compiler_o_lo
5878   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5879 echo "${ECHO_T}$compiler_o_lo" >&6
5880 else
5881   compiler_o_lo=no
5882 fi
5883
5884 # Check to see if we can do hard links to lock some files if needed
5885 hard_links="nottested"
5886 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5887   # do not overwrite the value of need_locks provided by the user
5888   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5889 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5890   hard_links=yes
5891   $rm conftest*
5892   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5893   touch conftest.a
5894   ln conftest.a conftest.b 2>&5 || hard_links=no
5895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5896   echo "$as_me:$LINENO: result: $hard_links" >&5
5897 echo "${ECHO_T}$hard_links" >&6
5898   if test "$hard_links" = no; then
5899     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5900 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5901     need_locks=warn
5902   fi
5903 else
5904   need_locks=no
5905 fi
5906
5907 if test "$GCC" = yes; then
5908   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5909   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5910 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5911   echo "int some_variable = 0;" > conftest.$ac_ext
5912   save_CFLAGS="$CFLAGS"
5913   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5914   compiler_rtti_exceptions=no
5915   cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 /* confdefs.h.  */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h.  */
5922
5923 int
5924 main ()
5925 {
5926 int some_variable = 0;
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933   (eval $ac_compile) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943       # The compiler can only warn and ignore the option if not recognized
5944     # So say no if there are warnings
5945     if test -s conftest.err; then
5946       compiler_rtti_exceptions=no
5947     else
5948       compiler_rtti_exceptions=yes
5949     fi
5950
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 fi
5956 rm -f conftest.$ac_objext conftest.$ac_ext
5957   CFLAGS="$save_CFLAGS"
5958   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5959 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5960
5961   if test "$compiler_rtti_exceptions" = "yes"; then
5962     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5963   else
5964     no_builtin_flag=' -fno-builtin'
5965   fi
5966 fi
5967
5968 # See if the linker supports building shared libraries.
5969 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5970 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5971
5972 allow_undefined_flag=
5973 no_undefined_flag=
5974 need_lib_prefix=unknown
5975 need_version=unknown
5976 # when you set need_version to no, make sure it does not cause -set_version
5977 # flags to be left without arguments
5978 archive_cmds=
5979 archive_expsym_cmds=
5980 old_archive_from_new_cmds=
5981 old_archive_from_expsyms_cmds=
5982 export_dynamic_flag_spec=
5983 whole_archive_flag_spec=
5984 thread_safe_flag_spec=
5985 hardcode_into_libs=no
5986 hardcode_libdir_flag_spec=
5987 hardcode_libdir_separator=
5988 hardcode_direct=no
5989 hardcode_minus_L=no
5990 hardcode_shlibpath_var=unsupported
5991 runpath_var=
5992 link_all_deplibs=unknown
5993 always_export_symbols=no
5994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5995 # include_expsyms should be a list of space-separated symbols to be *always*
5996 # included in the symbol list
5997 include_expsyms=
5998 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6000 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6001 # as well as any symbol that contains `d'.
6002 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6004 # platforms (ab)use it in PIC code, but their linkers get confused if
6005 # the symbol is explicitly referenced.  Since portable code cannot
6006 # rely on this symbol name, it's probably fine to never include it in
6007 # preloaded symbol tables.
6008 extract_expsyms_cmds=
6009
6010 case $host_os in
6011 cygwin* | mingw* | pw32*)
6012   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6013   # When not using gcc, we currently assume that we are using
6014   # Microsoft Visual C++.
6015   if test "$GCC" != yes; then
6016     with_gnu_ld=no
6017   fi
6018   ;;
6019 openbsd*)
6020   with_gnu_ld=no
6021   ;;
6022 esac
6023
6024 ld_shlibs=yes
6025 if test "$with_gnu_ld" = yes; then
6026   # If archive_cmds runs LD, not CC, wlarc should be empty
6027   wlarc='${wl}'
6028
6029   # See if GNU ld supports shared libraries.
6030   case $host_os in
6031   aix3* | aix4* | aix5*)
6032     # On AIX, the GNU linker is very broken
6033     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6034     ld_shlibs=no
6035     cat <<EOF 1>&2
6036
6037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6038 *** to be unable to reliably create shared libraries on AIX.
6039 *** Therefore, libtool is disabling shared libraries support.  If you
6040 *** really care for shared libraries, you may want to modify your PATH
6041 *** so that a non-GNU linker is found, and then restart.
6042
6043 EOF
6044     ;;
6045
6046   amigaos*)
6047     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)'
6048     hardcode_libdir_flag_spec='-L$libdir'
6049     hardcode_minus_L=yes
6050
6051     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6052     # that the semantics of dynamic libraries on AmigaOS, at least up
6053     # to version 4, is to share data among multiple programs linked
6054     # with the same dynamic library.  Since this doesn't match the
6055     # behavior of shared libraries on other platforms, we can use
6056     # them.
6057     ld_shlibs=no
6058     ;;
6059
6060   beos*)
6061     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6062       allow_undefined_flag=unsupported
6063       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6064       # support --undefined.  This deserves some investigation.  FIXME
6065       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6066     else
6067       ld_shlibs=no
6068     fi
6069     ;;
6070
6071   cygwin* | mingw* | pw32*)
6072     # hardcode_libdir_flag_spec is actually meaningless, as there is
6073     # no search path for DLLs.
6074     hardcode_libdir_flag_spec='-L$libdir'
6075     allow_undefined_flag=unsupported
6076     always_export_symbols=yes
6077
6078     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6079       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6080       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6081       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6082       else $CC -o impgen impgen.c ; fi)~
6083       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6084
6085     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6086
6087     # cygwin and mingw dlls have different entry points and sets of symbols
6088     # to exclude.
6089     # FIXME: what about values for MSVC?
6090     dll_entry=__cygwin_dll_entry@12
6091     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6092     case $host_os in
6093     mingw*)
6094       # mingw values
6095       dll_entry=_DllMainCRTStartup@12
6096       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6097       ;;
6098     esac
6099
6100     # mingw and cygwin differ, and it's simplest to just exclude the union
6101     # of the two symbol sets.
6102     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6103
6104     # recent cygwin and mingw systems supply a stub DllMain which the user
6105     # can override, but on older systems we have to supply one (in ltdll.c)
6106     if test "x$lt_cv_need_dllmain" = "xyes"; then
6107       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6108       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~
6109         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6110     else
6111       ltdll_obj=
6112       ltdll_cmds=
6113     fi
6114
6115     # Extract the symbol export list from an `--export-all' def file,
6116     # then regenerate the def file from the symbol export list, so that
6117     # the compiled dll only exports the symbol export list.
6118     # Be careful not to strip the DATA tag left be newer dlltools.
6119     export_symbols_cmds="$ltdll_cmds"'
6120       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6121       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6122
6123     # If the export-symbols file already is a .def file (1st line
6124     # is EXPORTS), use it as is.
6125     # If DATA tags from a recent dlltool are present, honour them!
6126     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6127         cp $export_symbols $output_objdir/$soname-def;
6128       else
6129         echo EXPORTS > $output_objdir/$soname-def;
6130         _lt_hint=1;
6131         cat $export_symbols | while read symbol; do
6132          set dummy \$symbol;
6133          case \$# in
6134            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6135            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6136            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6137          esac;
6138          _lt_hint=`expr 1 + \$_lt_hint`;
6139         done;
6140       fi~
6141       '"$ltdll_cmds"'
6142       $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~
6143       $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~
6144       $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~
6145       $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~
6146       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6147     ;;
6148
6149   netbsd*)
6150     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6151       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6152       wlarc=
6153     else
6154       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6155       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6156     fi
6157     ;;
6158
6159   solaris* | sysv5*)
6160     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6161       ld_shlibs=no
6162       cat <<EOF 1>&2
6163
6164 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6165 *** create shared libraries on Solaris systems.  Therefore, libtool
6166 *** is disabling shared libraries support.  We urge you to upgrade GNU
6167 *** binutils to release 2.9.1 or newer.  Another option is to modify
6168 *** your PATH or compiler configuration so that the native linker is
6169 *** used, and then restart.
6170
6171 EOF
6172     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6173       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6174       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6175     else
6176       ld_shlibs=no
6177     fi
6178     ;;
6179
6180   sunos4*)
6181     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6182     wlarc=
6183     hardcode_direct=yes
6184     hardcode_shlibpath_var=no
6185     ;;
6186
6187   *)
6188     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6189       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6190       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6191     else
6192       ld_shlibs=no
6193     fi
6194     ;;
6195   esac
6196
6197   if test "$ld_shlibs" = yes; then
6198     runpath_var=LD_RUN_PATH
6199     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6200     export_dynamic_flag_spec='${wl}--export-dynamic'
6201     case $host_os in
6202     cygwin* | mingw* | pw32*)
6203       # dlltool doesn't understand --whole-archive et. al.
6204       whole_archive_flag_spec=
6205       ;;
6206     *)
6207       # ancient GNU ld didn't support --whole-archive et. al.
6208       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6209         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6210       else
6211         whole_archive_flag_spec=
6212       fi
6213       ;;
6214     esac
6215   fi
6216 else
6217   # PORTME fill in a description of your system's linker (not GNU ld)
6218   case $host_os in
6219   aix3*)
6220     allow_undefined_flag=unsupported
6221     always_export_symbols=yes
6222     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'
6223     # Note: this linker hardcodes the directories in LIBPATH if there
6224     # are no directories specified by -L.
6225     hardcode_minus_L=yes
6226     if test "$GCC" = yes && test -z "$link_static_flag"; then
6227       # Neither direct hardcoding nor static linking is supported with a
6228       # broken collect2.
6229       hardcode_direct=unsupported
6230     fi
6231     ;;
6232
6233   aix4* | aix5*)
6234     if test "$host_cpu" = ia64; then
6235       # On IA64, the linker does run time linking by default, so we don't
6236       # have to do anything special.
6237       aix_use_runtimelinking=no
6238       exp_sym_flag='-Bexport'
6239       no_entry_flag=""
6240     else
6241       aix_use_runtimelinking=no
6242
6243       # Test if we are trying to use run time linking or normal
6244       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6245       # need to do runtime linking.
6246       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6247         for ld_flag in $LDFLAGS; do
6248           case $ld_flag in
6249           *-brtl*)
6250             aix_use_runtimelinking=yes
6251             break
6252           ;;
6253           esac
6254         done
6255       esac
6256
6257       exp_sym_flag='-bexport'
6258       no_entry_flag='-bnoentry'
6259     fi
6260
6261     # When large executables or shared objects are built, AIX ld can
6262     # have problems creating the table of contents.  If linking a library
6263     # or program results in "error TOC overflow" add -mminimal-toc to
6264     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6265     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6266
6267     hardcode_direct=yes
6268     archive_cmds=''
6269     hardcode_libdir_separator=':'
6270     if test "$GCC" = yes; then
6271       case $host_os in aix4.[012]|aix4.[012].*)
6272         collect2name=`${CC} -print-prog-name=collect2`
6273         if test -f "$collect2name" && \
6274           strings "$collect2name" | grep resolve_lib_name >/dev/null
6275         then
6276           # We have reworked collect2
6277           hardcode_direct=yes
6278         else
6279           # We have old collect2
6280           hardcode_direct=unsupported
6281           # It fails to find uninstalled libraries when the uninstalled
6282           # path is not listed in the libpath.  Setting hardcode_minus_L
6283           # to unsupported forces relinking
6284           hardcode_minus_L=yes
6285           hardcode_libdir_flag_spec='-L$libdir'
6286           hardcode_libdir_separator=
6287         fi
6288       esac
6289
6290       shared_flag='-shared'
6291     else
6292       # not using gcc
6293       if test "$host_cpu" = ia64; then
6294         shared_flag='${wl}-G'
6295       else
6296         if test "$aix_use_runtimelinking" = yes; then
6297           shared_flag='${wl}-G'
6298         else
6299           shared_flag='${wl}-bM:SRE'
6300         fi
6301       fi
6302     fi
6303
6304     # It seems that -bexpall can do strange things, so it is better to
6305     # generate a list of symbols to export.
6306     always_export_symbols=yes
6307     if test "$aix_use_runtimelinking" = yes; then
6308       # Warning - without using the other runtime loading flags (-brtl),
6309       # -berok will link without error, but may produce a broken library.
6310       allow_undefined_flag='-berok'
6311       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6312       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"
6313     else
6314       if test "$host_cpu" = ia64; then
6315         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6316         allow_undefined_flag="-z nodefs"
6317         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"
6318       else
6319         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6320         # Warning - without using the other run time loading flags,
6321         # -berok will link without error, but may produce a broken library.
6322         allow_undefined_flag='${wl}-berok'
6323         # This is a bit strange, but is similar to how AIX traditionally builds
6324         # it's shared libraries.
6325         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'
6326       fi
6327     fi
6328     ;;
6329
6330   amigaos*)
6331     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)'
6332     hardcode_libdir_flag_spec='-L$libdir'
6333     hardcode_minus_L=yes
6334     # see comment about different semantics on the GNU ld section
6335     ld_shlibs=no
6336     ;;
6337
6338   cygwin* | mingw* | pw32*)
6339     # When not using gcc, we currently assume that we are using
6340     # Microsoft Visual C++.
6341     # hardcode_libdir_flag_spec is actually meaningless, as there is
6342     # no search path for DLLs.
6343     hardcode_libdir_flag_spec=' '
6344     allow_undefined_flag=unsupported
6345     # Tell ltmain to make .lib files, not .a files.
6346     libext=lib
6347     # FIXME: Setting linknames here is a bad hack.
6348     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6349     # The linker will automatically build a .lib file if we build a DLL.
6350     old_archive_from_new_cmds='true'
6351     # FIXME: Should let the user specify the lib program.
6352     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6353     fix_srcfile_path='`cygpath -w "$srcfile"`'
6354     ;;
6355
6356   darwin* | rhapsody*)
6357     case "$host_os" in
6358     rhapsody* | darwin1.[012])
6359       allow_undefined_flag='-undefined suppress'
6360       ;;
6361     *) # Darwin 1.3 on
6362       allow_undefined_flag='-flat_namespace -undefined suppress'
6363       ;;
6364     esac
6365     # FIXME: Relying on posixy $() will cause problems for
6366     #        cross-compilation, but unfortunately the echo tests do not
6367     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6368     #        `"' quotes if we put them in here... so don't!
6369     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6370     # We need to add '_' to the symbols in $export_symbols first
6371     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6372     hardcode_direct=yes
6373     hardcode_shlibpath_var=no
6374     whole_archive_flag_spec='-all_load $convenience'
6375     ;;
6376
6377   freebsd1*)
6378     ld_shlibs=no
6379     ;;
6380
6381   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6382   # support.  Future versions do this automatically, but an explicit c++rt0.o
6383   # does not break anything, and helps significantly (at the cost of a little
6384   # extra space).
6385   freebsd2.2*)
6386     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6387     hardcode_libdir_flag_spec='-R$libdir'
6388     hardcode_direct=yes
6389     hardcode_shlibpath_var=no
6390     ;;
6391
6392   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6393   freebsd2*)
6394     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6395     hardcode_direct=yes
6396     hardcode_minus_L=yes
6397     hardcode_shlibpath_var=no
6398     ;;
6399
6400   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6401   freebsd*)
6402     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6403     hardcode_libdir_flag_spec='-R$libdir'
6404     hardcode_direct=yes
6405     hardcode_shlibpath_var=no
6406     ;;
6407
6408   hpux9* | hpux10* | hpux11*)
6409     case $host_os in
6410     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' ;;
6411     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6412     esac
6413     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6414     hardcode_libdir_separator=:
6415     hardcode_direct=yes
6416     hardcode_minus_L=yes # Not in the search PATH, but as the default
6417                          # location of the library.
6418     export_dynamic_flag_spec='${wl}-E'
6419     ;;
6420
6421   irix5* | irix6* | nonstopux*)
6422     if test "$GCC" = yes; then
6423       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'
6424       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6425     else
6426       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'
6427       hardcode_libdir_flag_spec='-rpath $libdir'
6428     fi
6429     hardcode_libdir_separator=:
6430     link_all_deplibs=yes
6431     ;;
6432
6433   netbsd*)
6434     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6435       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6436     else
6437       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6438     fi
6439     hardcode_libdir_flag_spec='-R$libdir'
6440     hardcode_direct=yes
6441     hardcode_shlibpath_var=no
6442     ;;
6443
6444   newsos6)
6445     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446     hardcode_direct=yes
6447     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6448     hardcode_libdir_separator=:
6449     hardcode_shlibpath_var=no
6450     ;;
6451
6452   openbsd*)
6453     hardcode_direct=yes
6454     hardcode_shlibpath_var=no
6455     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6456       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6457       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6458       export_dynamic_flag_spec='${wl}-E'
6459     else
6460       case "$host_os" in
6461       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6462         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6463         hardcode_libdir_flag_spec='-R$libdir'
6464         ;;
6465       *)
6466         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6467         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6468         ;;
6469       esac
6470     fi
6471     ;;
6472
6473   os2*)
6474     hardcode_libdir_flag_spec='-L$libdir'
6475     hardcode_minus_L=yes
6476     allow_undefined_flag=unsupported
6477     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'
6478     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6479     ;;
6480
6481   osf3*)
6482     if test "$GCC" = yes; then
6483       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6484       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'
6485     else
6486       allow_undefined_flag=' -expect_unresolved \*'
6487       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'
6488     fi
6489     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6490     hardcode_libdir_separator=:
6491     ;;
6492
6493   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6494     if test "$GCC" = yes; then
6495       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6496       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'
6497       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6498     else
6499       allow_undefined_flag=' -expect_unresolved \*'
6500       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'
6501       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6502       $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'
6503
6504       #Both c and cxx compiler support -rpath directly
6505       hardcode_libdir_flag_spec='-rpath $libdir'
6506     fi
6507     hardcode_libdir_separator=:
6508     ;;
6509
6510   sco3.2v5*)
6511     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6512     hardcode_shlibpath_var=no
6513     runpath_var=LD_RUN_PATH
6514     hardcode_runpath_var=yes
6515     export_dynamic_flag_spec='${wl}-Bexport'
6516     ;;
6517
6518   solaris*)
6519     # gcc --version < 3.0 without binutils cannot create self contained
6520     # shared libraries reliably, requiring libgcc.a to resolve some of
6521     # the object symbols generated in some cases.  Libraries that use
6522     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6523     # a copy of libgcc.a into every shared library to guarantee resolving
6524     # such symbols causes other problems:  According to Tim Van Holder
6525     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6526     # (to the application) exception stack for one thing.
6527     no_undefined_flag=' -z defs'
6528     if test "$GCC" = yes; then
6529       case `$CC --version 2>/dev/null` in
6530       [12].*)
6531         cat <<EOF 1>&2
6532
6533 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6534 *** create self contained shared libraries on Solaris systems, without
6535 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6536 *** -no-undefined support, which will at least allow you to build shared
6537 *** libraries.  However, you may find that when you link such libraries
6538 *** into an application without using GCC, you have to manually add
6539 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6540 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6541 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6542
6543 EOF
6544         no_undefined_flag=
6545         ;;
6546       esac
6547     fi
6548     # $CC -shared without GNU ld will not create a library from C++
6549     # object files and a static libstdc++, better avoid it by now
6550     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6551     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6552                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6553     hardcode_libdir_flag_spec='-R$libdir'
6554     hardcode_shlibpath_var=no
6555     case $host_os in
6556     solaris2.[0-5] | solaris2.[0-5].*) ;;
6557     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6558       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6559     esac
6560     link_all_deplibs=yes
6561     ;;
6562
6563   sunos4*)
6564     if test "x$host_vendor" = xsequent; then
6565       # Use $CC to link under sequent, because it throws in some extra .o
6566       # files that make .init and .fini sections work.
6567       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6568     else
6569       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6570     fi
6571     hardcode_libdir_flag_spec='-L$libdir'
6572     hardcode_direct=yes
6573     hardcode_minus_L=yes
6574     hardcode_shlibpath_var=no
6575     ;;
6576
6577   sysv4)
6578     case $host_vendor in
6579       sni)
6580         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6581         hardcode_direct=yes # is this really true???
6582         ;;
6583       siemens)
6584         ## LD is ld it makes a PLAMLIB
6585         ## CC just makes a GrossModule.
6586         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6587         reload_cmds='$CC -r -o $output$reload_objs'
6588         hardcode_direct=no
6589         ;;
6590       motorola)
6591         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6592         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6593         ;;
6594     esac
6595     runpath_var='LD_RUN_PATH'
6596     hardcode_shlibpath_var=no
6597     ;;
6598
6599   sysv4.3*)
6600     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6601     hardcode_shlibpath_var=no
6602     export_dynamic_flag_spec='-Bexport'
6603     ;;
6604
6605   sysv5*)
6606     no_undefined_flag=' -z text'
6607     # $CC -shared without GNU ld will not create a library from C++
6608     # object files and a static libstdc++, better avoid it by now
6609     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6610     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6611                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6612     hardcode_libdir_flag_spec=
6613     hardcode_shlibpath_var=no
6614     runpath_var='LD_RUN_PATH'
6615     ;;
6616
6617   uts4*)
6618     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6619     hardcode_libdir_flag_spec='-L$libdir'
6620     hardcode_shlibpath_var=no
6621     ;;
6622
6623   dgux*)
6624     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6625     hardcode_libdir_flag_spec='-L$libdir'
6626     hardcode_shlibpath_var=no
6627     ;;
6628
6629   sysv4*MP*)
6630     if test -d /usr/nec; then
6631       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6632       hardcode_shlibpath_var=no
6633       runpath_var=LD_RUN_PATH
6634       hardcode_runpath_var=yes
6635       ld_shlibs=yes
6636     fi
6637     ;;
6638
6639   sysv4.2uw2*)
6640     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6641     hardcode_direct=yes
6642     hardcode_minus_L=no
6643     hardcode_shlibpath_var=no
6644     hardcode_runpath_var=yes
6645     runpath_var=LD_RUN_PATH
6646     ;;
6647
6648   sysv5uw7* | unixware7*)
6649     no_undefined_flag='${wl}-z ${wl}text'
6650     if test "$GCC" = yes; then
6651       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6652     else
6653       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6654     fi
6655     runpath_var='LD_RUN_PATH'
6656     hardcode_shlibpath_var=no
6657     ;;
6658
6659   *)
6660     ld_shlibs=no
6661     ;;
6662   esac
6663 fi
6664 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6665 echo "${ECHO_T}$ld_shlibs" >&6
6666 test "$ld_shlibs" = no && can_build_shared=no
6667
6668 # Check hardcoding attributes.
6669 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6671 hardcode_action=
6672 if test -n "$hardcode_libdir_flag_spec" || \
6673    test -n "$runpath_var"; then
6674
6675   # We can hardcode non-existant directories.
6676   if test "$hardcode_direct" != no &&
6677      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6678      # have to relink, otherwise we might link with an installed library
6679      # when we should be linking with a yet-to-be-installed one
6680      ## test "$hardcode_shlibpath_var" != no &&
6681      test "$hardcode_minus_L" != no; then
6682     # Linking always hardcodes the temporary library directory.
6683     hardcode_action=relink
6684   else
6685     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6686     hardcode_action=immediate
6687   fi
6688 else
6689   # We cannot hardcode anything, or else we can only hardcode existing
6690   # directories.
6691   hardcode_action=unsupported
6692 fi
6693 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6694 echo "${ECHO_T}$hardcode_action" >&6
6695
6696 striplib=
6697 old_striplib=
6698 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6699 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6700 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6701   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6702   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6703   echo "$as_me:$LINENO: result: yes" >&5
6704 echo "${ECHO_T}yes" >&6
6705 else
6706   echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6
6708 fi
6709
6710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6711 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6712
6713 # PORTME Fill in your ld.so characteristics
6714 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6716 library_names_spec=
6717 libname_spec='lib$name'
6718 soname_spec=
6719 postinstall_cmds=
6720 postuninstall_cmds=
6721 finish_cmds=
6722 finish_eval=
6723 shlibpath_var=
6724 shlibpath_overrides_runpath=unknown
6725 version_type=none
6726 dynamic_linker="$host_os ld.so"
6727 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6729
6730 case $host_os in
6731 aix3*)
6732   version_type=linux
6733   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6734   shlibpath_var=LIBPATH
6735
6736   # AIX has no versioning support, so we append a major version to the name.
6737   soname_spec='${libname}${release}.so$major'
6738   ;;
6739
6740 aix4* | aix5*)
6741   version_type=linux
6742   need_lib_prefix=no
6743   need_version=no
6744   hardcode_into_libs=yes
6745   if test "$host_cpu" = ia64; then
6746     # AIX 5 supports IA64
6747     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6748     shlibpath_var=LD_LIBRARY_PATH
6749   else
6750     # With GCC up to 2.95.x, collect2 would create an import file
6751     # for dependence libraries.  The import file would start with
6752     # the line `#! .'.  This would cause the generated library to
6753     # depend on `.', always an invalid library.  This was fixed in
6754     # development snapshots of GCC prior to 3.0.
6755     case $host_os in
6756       aix4 | aix4.[01] | aix4.[01].*)
6757         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6758              echo ' yes '
6759              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6760           :
6761         else
6762           can_build_shared=no
6763         fi
6764         ;;
6765     esac
6766     # AIX (on Power*) has no versioning support, so currently we can
6767     # not hardcode correct soname into executable. Probably we can
6768     # add versioning support to collect2, so additional links can
6769     # be useful in future.
6770     if test "$aix_use_runtimelinking" = yes; then
6771       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6772       # instead of lib<name>.a to let people know that these are not
6773       # typical AIX shared libraries.
6774       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6775     else
6776       # We preserve .a as extension for shared libraries through AIX4.2
6777       # and later when we are not doing run time linking.
6778       library_names_spec='${libname}${release}.a $libname.a'
6779       soname_spec='${libname}${release}.so$major'
6780     fi
6781     shlibpath_var=LIBPATH
6782   fi
6783   hardcode_into_libs=yes
6784   ;;
6785
6786 amigaos*)
6787   library_names_spec='$libname.ixlibrary $libname.a'
6788   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6789   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'
6790   ;;
6791
6792 beos*)
6793   library_names_spec='${libname}.so'
6794   dynamic_linker="$host_os ld.so"
6795   shlibpath_var=LIBRARY_PATH
6796   ;;
6797
6798 bsdi4*)
6799   version_type=linux
6800   need_version=no
6801   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6802   soname_spec='${libname}${release}.so$major'
6803   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6804   shlibpath_var=LD_LIBRARY_PATH
6805   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6806   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6807   export_dynamic_flag_spec=-rdynamic
6808   # the default ld.so.conf also contains /usr/contrib/lib and
6809   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6810   # libtool to hard-code these into programs
6811   ;;
6812
6813 cygwin* | mingw* | pw32*)
6814   version_type=windows
6815   need_version=no
6816   need_lib_prefix=no
6817   case $GCC,$host_os in
6818   yes,cygwin*)
6819     library_names_spec='$libname.dll.a'
6820     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6821     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6822       dldir=$destdir/`dirname \$dlpath`~
6823       test -d \$dldir || mkdir -p \$dldir~
6824       $install_prog .libs/$dlname \$dldir/$dlname'
6825     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6826       dlpath=$dir/\$dldll~
6827        $rm \$dlpath'
6828     ;;
6829   yes,mingw*)
6830     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6831     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6832     ;;
6833   yes,pw32*)
6834     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6835     ;;
6836   *)
6837     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6838     ;;
6839   esac
6840   dynamic_linker='Win32 ld.exe'
6841   # FIXME: first we should search . and the directory the executable is in
6842   shlibpath_var=PATH
6843   ;;
6844
6845 darwin* | rhapsody*)
6846   dynamic_linker="$host_os dyld"
6847   version_type=darwin
6848   need_lib_prefix=no
6849   need_version=no
6850   # FIXME: Relying on posixy $() will cause problems for
6851   #        cross-compilation, but unfortunately the echo tests do not
6852   #        yet detect zsh echo's removal of \ escapes.
6853   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)'
6854   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6855   shlibpath_overrides_runpath=yes
6856   shlibpath_var=DYLD_LIBRARY_PATH
6857   ;;
6858
6859 freebsd1*)
6860   dynamic_linker=no
6861   ;;
6862
6863 freebsd*)
6864   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6865   version_type=freebsd-$objformat
6866   case $version_type in
6867     freebsd-elf*)
6868       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6869       need_version=no
6870       need_lib_prefix=no
6871       ;;
6872     freebsd-*)
6873       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6874       need_version=yes
6875       ;;
6876   esac
6877   shlibpath_var=LD_LIBRARY_PATH
6878   case $host_os in
6879   freebsd2*)
6880     shlibpath_overrides_runpath=yes
6881     ;;
6882   *)
6883     shlibpath_overrides_runpath=no
6884     hardcode_into_libs=yes
6885     ;;
6886   esac
6887   ;;
6888
6889 gnu*)
6890   version_type=linux
6891   need_lib_prefix=no
6892   need_version=no
6893   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6894   soname_spec='${libname}${release}.so$major'
6895   shlibpath_var=LD_LIBRARY_PATH
6896   hardcode_into_libs=yes
6897   ;;
6898
6899 hpux9* | hpux10* | hpux11*)
6900   # Give a soname corresponding to the major version so that dld.sl refuses to
6901   # link against other versions.
6902   dynamic_linker="$host_os dld.sl"
6903   version_type=sunos
6904   need_lib_prefix=no
6905   need_version=no
6906   shlibpath_var=SHLIB_PATH
6907   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6908   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6909   soname_spec='${libname}${release}.sl$major'
6910   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6911   postinstall_cmds='chmod 555 $lib'
6912   ;;
6913
6914 irix5* | irix6* | nonstopux*)
6915   case $host_os in
6916     nonstopux*) version_type=nonstopux ;;
6917     *)          version_type=irix ;;
6918   esac
6919   need_lib_prefix=no
6920   need_version=no
6921   soname_spec='${libname}${release}.so$major'
6922   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6923   case $host_os in
6924   irix5* | nonstopux*)
6925     libsuff= shlibsuff=
6926     ;;
6927   *)
6928     case $LD in # libtool.m4 will add one of these switches to LD
6929     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6930     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6931     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6932     *) libsuff= shlibsuff= libmagic=never-match;;
6933     esac
6934     ;;
6935   esac
6936   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6937   shlibpath_overrides_runpath=no
6938   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6939   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6940   ;;
6941
6942 # No shared lib support for Linux oldld, aout, or coff.
6943 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6944   dynamic_linker=no
6945   ;;
6946
6947 # This must be Linux ELF.
6948 linux-gnu*)
6949   version_type=linux
6950   need_lib_prefix=no
6951   need_version=no
6952   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6953   soname_spec='${libname}${release}.so$major'
6954   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6955   shlibpath_var=LD_LIBRARY_PATH
6956   shlibpath_overrides_runpath=no
6957   # This implies no fast_install, which is unacceptable.
6958   # Some rework will be needed to allow for fast_install
6959   # before this can be enabled.
6960   hardcode_into_libs=yes
6961
6962   case $host_cpu:$lt_cv_cc_64bit_output in
6963   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6964     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6965     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6966     ;;
6967   esac
6968
6969   # We used to test for /lib/ld.so.1 and disable shared libraries on
6970   # powerpc, because MkLinux only supported shared libraries with the
6971   # GNU dynamic linker.  Since this was broken with cross compilers,
6972   # most powerpc-linux boxes support dynamic linking these days and
6973   # people can always --disable-shared, the test was removed, and we
6974   # assume the GNU/Linux dynamic linker is in use.
6975   dynamic_linker='GNU/Linux ld.so'
6976   ;;
6977
6978 netbsd*)
6979   version_type=sunos
6980   need_lib_prefix=no
6981   need_version=no
6982   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6983     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6984     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6985     dynamic_linker='NetBSD (a.out) ld.so'
6986   else
6987     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6988     soname_spec='${libname}${release}.so$major'
6989     dynamic_linker='NetBSD ld.elf_so'
6990   fi
6991   shlibpath_var=LD_LIBRARY_PATH
6992   shlibpath_overrides_runpath=yes
6993   hardcode_into_libs=yes
6994   ;;
6995
6996 newsos6)
6997   version_type=linux
6998   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6999   shlibpath_var=LD_LIBRARY_PATH
7000   shlibpath_overrides_runpath=yes
7001   ;;
7002
7003 openbsd*)
7004   version_type=sunos
7005   need_lib_prefix=no
7006   need_version=no
7007   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7008     case "$host_os" in
7009     openbsd2.[89] | openbsd2.[89].*)
7010       shlibpath_overrides_runpath=no
7011       ;;
7012     *)
7013       shlibpath_overrides_runpath=yes
7014       ;;
7015     esac
7016   else
7017     shlibpath_overrides_runpath=yes
7018   fi
7019   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7021   shlibpath_var=LD_LIBRARY_PATH
7022   ;;
7023
7024 os2*)
7025   libname_spec='$name'
7026   need_lib_prefix=no
7027   library_names_spec='$libname.dll $libname.a'
7028   dynamic_linker='OS/2 ld.exe'
7029   shlibpath_var=LIBPATH
7030   ;;
7031
7032 osf3* | osf4* | osf5*)
7033   version_type=osf
7034   need_version=no
7035   soname_spec='${libname}${release}.so$major'
7036   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7037   shlibpath_var=LD_LIBRARY_PATH
7038   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7039   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7040   hardcode_into_libs=yes
7041   ;;
7042
7043 sco3.2v5*)
7044   version_type=osf
7045   soname_spec='${libname}${release}.so$major'
7046   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7047   shlibpath_var=LD_LIBRARY_PATH
7048   ;;
7049
7050 solaris*)
7051   version_type=linux
7052   need_lib_prefix=no
7053   need_version=no
7054   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7055   soname_spec='${libname}${release}.so$major'
7056   shlibpath_var=LD_LIBRARY_PATH
7057   shlibpath_overrides_runpath=yes
7058   hardcode_into_libs=yes
7059   # ldd complains unless libraries are executable
7060   postinstall_cmds='chmod +x $lib'
7061   ;;
7062
7063 sunos4*)
7064   version_type=sunos
7065   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7066   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7067   shlibpath_var=LD_LIBRARY_PATH
7068   shlibpath_overrides_runpath=yes
7069   if test "$with_gnu_ld" = yes; then
7070     need_lib_prefix=no
7071   fi
7072   need_version=yes
7073   ;;
7074
7075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7076   version_type=linux
7077   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7078   soname_spec='${libname}${release}.so$major'
7079   shlibpath_var=LD_LIBRARY_PATH
7080   case $host_vendor in
7081     sni)
7082       shlibpath_overrides_runpath=no
7083       need_lib_prefix=no
7084       export_dynamic_flag_spec='${wl}-Blargedynsym'
7085       runpath_var=LD_RUN_PATH
7086       ;;
7087     siemens)
7088       need_lib_prefix=no
7089       ;;
7090     motorola)
7091       need_lib_prefix=no
7092       need_version=no
7093       shlibpath_overrides_runpath=no
7094       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7095       ;;
7096   esac
7097   ;;
7098
7099 uts4*)
7100   version_type=linux
7101   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7102   soname_spec='${libname}${release}.so$major'
7103   shlibpath_var=LD_LIBRARY_PATH
7104   ;;
7105
7106 dgux*)
7107   version_type=linux
7108   need_lib_prefix=no
7109   need_version=no
7110   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7111   soname_spec='${libname}${release}.so$major'
7112   shlibpath_var=LD_LIBRARY_PATH
7113   ;;
7114
7115 sysv4*MP*)
7116   if test -d /usr/nec ;then
7117     version_type=linux
7118     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7119     soname_spec='$libname.so.$major'
7120     shlibpath_var=LD_LIBRARY_PATH
7121   fi
7122   ;;
7123
7124 *)
7125   dynamic_linker=no
7126   ;;
7127 esac
7128 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7129 echo "${ECHO_T}$dynamic_linker" >&6
7130 test "$dynamic_linker" = no && can_build_shared=no
7131
7132 # Report the final consequences.
7133 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7134 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7135 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7136 echo "${ECHO_T}$can_build_shared" >&6
7137
7138 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7139 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7140 test "$can_build_shared" = "no" && enable_shared=no
7141
7142 # On AIX, shared libraries and static libraries use the same namespace, and
7143 # are all built from PIC.
7144 case "$host_os" in
7145 aix3*)
7146   test "$enable_shared" = yes && enable_static=no
7147   if test -n "$RANLIB"; then
7148     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7149     postinstall_cmds='$RANLIB $lib'
7150   fi
7151   ;;
7152
7153 aix4*)
7154   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7155     test "$enable_shared" = yes && enable_static=no
7156   fi
7157   ;;
7158 esac
7159 echo "$as_me:$LINENO: result: $enable_shared" >&5
7160 echo "${ECHO_T}$enable_shared" >&6
7161
7162 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7163 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7164 # Make sure either enable_shared or enable_static is yes.
7165 test "$enable_shared" = yes || enable_static=yes
7166 echo "$as_me:$LINENO: result: $enable_static" >&5
7167 echo "${ECHO_T}$enable_static" >&6
7168
7169 if test "$hardcode_action" = relink; then
7170   # Fast installation is not supported
7171   enable_fast_install=no
7172 elif test "$shlibpath_overrides_runpath" = yes ||
7173      test "$enable_shared" = no; then
7174   # Fast installation is not necessary
7175   enable_fast_install=needless
7176 fi
7177
7178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7179 if test "$GCC" = yes; then
7180   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7181 fi
7182
7183 if test "x$enable_dlopen" != xyes; then
7184   enable_dlopen=unknown
7185   enable_dlopen_self=unknown
7186   enable_dlopen_self_static=unknown
7187 else
7188   lt_cv_dlopen=no
7189   lt_cv_dlopen_libs=
7190
7191   case $host_os in
7192   beos*)
7193     lt_cv_dlopen="load_add_on"
7194     lt_cv_dlopen_libs=
7195     lt_cv_dlopen_self=yes
7196     ;;
7197
7198   cygwin* | mingw* | pw32*)
7199     lt_cv_dlopen="LoadLibrary"
7200     lt_cv_dlopen_libs=
7201    ;;
7202
7203   *)
7204     echo "$as_me:$LINENO: checking for shl_load" >&5
7205 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7206 if test "${ac_cv_func_shl_load+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   cat >conftest.$ac_ext <<_ACEOF
7210 #line $LINENO "configure"
7211 /* confdefs.h.  */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h.  */
7216 /* System header to define __stub macros and hopefully few prototypes,
7217     which can conflict with char shl_load (); below.
7218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7219     <limits.h> exists even on freestanding compilers.  */
7220 #ifdef __STDC__
7221 # include <limits.h>
7222 #else
7223 # include <assert.h>
7224 #endif
7225 /* Override any gcc2 internal prototype to avoid an error.  */
7226 #ifdef __cplusplus
7227 extern "C"
7228 {
7229 #endif
7230 /* We use char because int might match the return type of a gcc2
7231    builtin and then its argument prototype would still apply.  */
7232 char shl_load ();
7233 /* The GNU C library defines this for functions which it implements
7234     to always fail with ENOSYS.  Some functions are actually named
7235     something starting with __ and the normal name is an alias.  */
7236 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7237 choke me
7238 #else
7239 char (*f) () = shl_load;
7240 #endif
7241 #ifdef __cplusplus
7242 }
7243 #endif
7244
7245 int
7246 main ()
7247 {
7248 return f != shl_load;
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255   (eval $ac_link) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -s conftest$ac_exeext'
7260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; }; then
7265   ac_cv_func_shl_load=yes
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 ac_cv_func_shl_load=no
7271 fi
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273 fi
7274 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7275 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7276 if test $ac_cv_func_shl_load = yes; then
7277   lt_cv_dlopen="shl_load"
7278 else
7279   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7280 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7281 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   ac_check_lib_save_LIBS=$LIBS
7285 LIBS="-ldld  $LIBS"
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293
7294 /* Override any gcc2 internal prototype to avoid an error.  */
7295 #ifdef __cplusplus
7296 extern "C"
7297 #endif
7298 /* We use char because int might match the return type of a gcc2
7299    builtin and then its argument prototype would still apply.  */
7300 char shl_load ();
7301 int
7302 main ()
7303 {
7304 shl_load ();
7305   ;
7306   return 0;
7307 }
7308 _ACEOF
7309 rm -f conftest.$ac_objext conftest$ac_exeext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7311   (eval $ac_link) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -s conftest$ac_exeext'
7316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317   (eval $ac_try) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; }; then
7321   ac_cv_lib_dld_shl_load=yes
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326 ac_cv_lib_dld_shl_load=no
7327 fi
7328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7329 LIBS=$ac_check_lib_save_LIBS
7330 fi
7331 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7332 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7333 if test $ac_cv_lib_dld_shl_load = yes; then
7334   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7335 else
7336   echo "$as_me:$LINENO: checking for dlopen" >&5
7337 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7338 if test "${ac_cv_func_dlopen+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   cat >conftest.$ac_ext <<_ACEOF
7342 #line $LINENO "configure"
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 /* System header to define __stub macros and hopefully few prototypes,
7349     which can conflict with char dlopen (); below.
7350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351     <limits.h> exists even on freestanding compilers.  */
7352 #ifdef __STDC__
7353 # include <limits.h>
7354 #else
7355 # include <assert.h>
7356 #endif
7357 /* Override any gcc2 internal prototype to avoid an error.  */
7358 #ifdef __cplusplus
7359 extern "C"
7360 {
7361 #endif
7362 /* We use char because int might match the return type of a gcc2
7363    builtin and then its argument prototype would still apply.  */
7364 char dlopen ();
7365 /* The GNU C library defines this for functions which it implements
7366     to always fail with ENOSYS.  Some functions are actually named
7367     something starting with __ and the normal name is an alias.  */
7368 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7369 choke me
7370 #else
7371 char (*f) () = dlopen;
7372 #endif
7373 #ifdef __cplusplus
7374 }
7375 #endif
7376
7377 int
7378 main ()
7379 {
7380 return f != dlopen;
7381   ;
7382   return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7387   (eval $ac_link) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } &&
7391          { ac_try='test -s conftest$ac_exeext'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; }; then
7397   ac_cv_func_dlopen=yes
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_cv_func_dlopen=no
7403 fi
7404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7407 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7408 if test $ac_cv_func_dlopen = yes; then
7409   lt_cv_dlopen="dlopen"
7410 else
7411   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7412 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7413 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   ac_check_lib_save_LIBS=$LIBS
7417 LIBS="-ldl  $LIBS"
7418 cat >conftest.$ac_ext <<_ACEOF
7419 #line $LINENO "configure"
7420 /* confdefs.h.  */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h.  */
7425
7426 /* Override any gcc2 internal prototype to avoid an error.  */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 /* We use char because int might match the return type of a gcc2
7431    builtin and then its argument prototype would still apply.  */
7432 char dlopen ();
7433 int
7434 main ()
7435 {
7436 dlopen ();
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443   (eval $ac_link) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -s conftest$ac_exeext'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; }; then
7453   ac_cv_lib_dl_dlopen=yes
7454 else
7455   echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458 ac_cv_lib_dl_dlopen=no
7459 fi
7460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7461 LIBS=$ac_check_lib_save_LIBS
7462 fi
7463 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7464 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7465 if test $ac_cv_lib_dl_dlopen = yes; then
7466   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7467 else
7468   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7469 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7470 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   ac_check_lib_save_LIBS=$LIBS
7474 LIBS="-lsvld  $LIBS"
7475 cat >conftest.$ac_ext <<_ACEOF
7476 #line $LINENO "configure"
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482
7483 /* Override any gcc2 internal prototype to avoid an error.  */
7484 #ifdef __cplusplus
7485 extern "C"
7486 #endif
7487 /* We use char because int might match the return type of a gcc2
7488    builtin and then its argument prototype would still apply.  */
7489 char dlopen ();
7490 int
7491 main ()
7492 {
7493 dlopen ();
7494   ;
7495   return 0;
7496 }
7497 _ACEOF
7498 rm -f conftest.$ac_objext conftest$ac_exeext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7500   (eval $ac_link) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); } &&
7504          { ac_try='test -s conftest$ac_exeext'
7505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506   (eval $ac_try) 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); }; }; then
7510   ac_cv_lib_svld_dlopen=yes
7511 else
7512   echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7514
7515 ac_cv_lib_svld_dlopen=no
7516 fi
7517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7518 LIBS=$ac_check_lib_save_LIBS
7519 fi
7520 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7521 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7522 if test $ac_cv_lib_svld_dlopen = yes; then
7523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7524 else
7525   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7526 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7527 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-ldld  $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7534 /* confdefs.h.  */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h.  */
7539
7540 /* Override any gcc2 internal prototype to avoid an error.  */
7541 #ifdef __cplusplus
7542 extern "C"
7543 #endif
7544 /* We use char because int might match the return type of a gcc2
7545    builtin and then its argument prototype would still apply.  */
7546 char dld_link ();
7547 int
7548 main ()
7549 {
7550 dld_link ();
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557   (eval $ac_link) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } &&
7561          { ac_try='test -s conftest$ac_exeext'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; }; then
7567   ac_cv_lib_dld_dld_link=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_lib_dld_dld_link=no
7573 fi
7574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7576 fi
7577 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7578 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7579 if test $ac_cv_lib_dld_dld_link = yes; then
7580   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7581 fi
7582
7583
7584 fi
7585
7586
7587 fi
7588
7589
7590 fi
7591
7592
7593 fi
7594
7595
7596 fi
7597
7598     ;;
7599   esac
7600
7601   if test "x$lt_cv_dlopen" != xno; then
7602     enable_dlopen=yes
7603   else
7604     enable_dlopen=no
7605   fi
7606
7607   case $lt_cv_dlopen in
7608   dlopen)
7609     save_CPPFLAGS="$CPPFLAGS"
7610         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7611
7612     save_LDFLAGS="$LDFLAGS"
7613     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7614
7615     save_LIBS="$LIBS"
7616     LIBS="$lt_cv_dlopen_libs $LIBS"
7617
7618     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7619 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7620 if test "${lt_cv_dlopen_self+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623           if test "$cross_compiling" = yes; then :
7624   lt_cv_dlopen_self=cross
7625 else
7626     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7627   lt_status=$lt_dlunknown
7628   cat > conftest.$ac_ext <<EOF
7629 #line 7629 "configure"
7630 #include "confdefs.h"
7631
7632 #if HAVE_DLFCN_H
7633 #include <dlfcn.h>
7634 #endif
7635
7636 #include <stdio.h>
7637
7638 #ifdef RTLD_GLOBAL
7639 #  define LT_DLGLOBAL           RTLD_GLOBAL
7640 #else
7641 #  ifdef DL_GLOBAL
7642 #    define LT_DLGLOBAL         DL_GLOBAL
7643 #  else
7644 #    define LT_DLGLOBAL         0
7645 #  endif
7646 #endif
7647
7648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7649    find out it does not work in some platform. */
7650 #ifndef LT_DLLAZY_OR_NOW
7651 #  ifdef RTLD_LAZY
7652 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7653 #  else
7654 #    ifdef DL_LAZY
7655 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7656 #    else
7657 #      ifdef RTLD_NOW
7658 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7659 #      else
7660 #        ifdef DL_NOW
7661 #          define LT_DLLAZY_OR_NOW      DL_NOW
7662 #        else
7663 #          define LT_DLLAZY_OR_NOW      0
7664 #        endif
7665 #      endif
7666 #    endif
7667 #  endif
7668 #endif
7669
7670 #ifdef __cplusplus
7671 extern "C" void exit (int);
7672 #endif
7673
7674 void fnord() { int i=42;}
7675 int main ()
7676 {
7677   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7678   int status = $lt_dlunknown;
7679
7680   if (self)
7681     {
7682       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7683       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7684       /* dlclose (self); */
7685     }
7686
7687     exit (status);
7688 }
7689 EOF
7690   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691   (eval $ac_link) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7695     (./conftest; exit; ) 2>/dev/null
7696     lt_status=$?
7697     case x$lt_status in
7698       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7699       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7700       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7701     esac
7702   else :
7703     # compilation failed
7704     lt_cv_dlopen_self=no
7705   fi
7706 fi
7707 rm -fr conftest*
7708
7709
7710 fi
7711 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7713
7714     if test "x$lt_cv_dlopen_self" = xyes; then
7715       LDFLAGS="$LDFLAGS $link_static_flag"
7716       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7718 if test "${lt_cv_dlopen_self_static+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721           if test "$cross_compiling" = yes; then :
7722   lt_cv_dlopen_self_static=cross
7723 else
7724     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7725   lt_status=$lt_dlunknown
7726   cat > conftest.$ac_ext <<EOF
7727 #line 7727 "configure"
7728 #include "confdefs.h"
7729
7730 #if HAVE_DLFCN_H
7731 #include <dlfcn.h>
7732 #endif
7733
7734 #include <stdio.h>
7735
7736 #ifdef RTLD_GLOBAL
7737 #  define LT_DLGLOBAL           RTLD_GLOBAL
7738 #else
7739 #  ifdef DL_GLOBAL
7740 #    define LT_DLGLOBAL         DL_GLOBAL
7741 #  else
7742 #    define LT_DLGLOBAL         0
7743 #  endif
7744 #endif
7745
7746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7747    find out it does not work in some platform. */
7748 #ifndef LT_DLLAZY_OR_NOW
7749 #  ifdef RTLD_LAZY
7750 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7751 #  else
7752 #    ifdef DL_LAZY
7753 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7754 #    else
7755 #      ifdef RTLD_NOW
7756 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7757 #      else
7758 #        ifdef DL_NOW
7759 #          define LT_DLLAZY_OR_NOW      DL_NOW
7760 #        else
7761 #          define LT_DLLAZY_OR_NOW      0
7762 #        endif
7763 #      endif
7764 #    endif
7765 #  endif
7766 #endif
7767
7768 #ifdef __cplusplus
7769 extern "C" void exit (int);
7770 #endif
7771
7772 void fnord() { int i=42;}
7773 int main ()
7774 {
7775   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7776   int status = $lt_dlunknown;
7777
7778   if (self)
7779     {
7780       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7781       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7782       /* dlclose (self); */
7783     }
7784
7785     exit (status);
7786 }
7787 EOF
7788   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789   (eval $ac_link) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7793     (./conftest; exit; ) 2>/dev/null
7794     lt_status=$?
7795     case x$lt_status in
7796       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7797       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7798       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7799     esac
7800   else :
7801     # compilation failed
7802     lt_cv_dlopen_self_static=no
7803   fi
7804 fi
7805 rm -fr conftest*
7806
7807
7808 fi
7809 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7810 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7811     fi
7812
7813     CPPFLAGS="$save_CPPFLAGS"
7814     LDFLAGS="$save_LDFLAGS"
7815     LIBS="$save_LIBS"
7816     ;;
7817   esac
7818
7819   case $lt_cv_dlopen_self in
7820   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7821   *) enable_dlopen_self=unknown ;;
7822   esac
7823
7824   case $lt_cv_dlopen_self_static in
7825   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7826   *) enable_dlopen_self_static=unknown ;;
7827   esac
7828 fi
7829
7830
7831 if test "$enable_shared" = yes && test "$GCC" = yes; then
7832   case $archive_cmds in
7833   *'~'*)
7834     # FIXME: we may have to deal with multi-command sequences.
7835     ;;
7836   '$CC '*)
7837     # Test whether the compiler implicitly links with -lc since on some
7838     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7839     # to ld, don't add -lc before -lgcc.
7840     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7841 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7842     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   $rm conftest*
7846     echo 'static int dummy;' > conftest.$ac_ext
7847
7848     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849   (eval $ac_compile) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; then
7853       soname=conftest
7854       lib=conftest
7855       libobjs=conftest.$ac_objext
7856       deplibs=
7857       wl=$lt_cv_prog_cc_wl
7858       compiler_flags=-v
7859       linker_flags=-v
7860       verstring=
7861       output_objdir=.
7862       libname=conftest
7863       save_allow_undefined_flag=$allow_undefined_flag
7864       allow_undefined_flag=
7865       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7866   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7867   ac_status=$?
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); }
7870       then
7871         lt_cv_archive_cmds_need_lc=no
7872       else
7873         lt_cv_archive_cmds_need_lc=yes
7874       fi
7875       allow_undefined_flag=$save_allow_undefined_flag
7876     else
7877       cat conftest.err 1>&5
7878     fi
7879 fi
7880
7881     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7882 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7883     ;;
7884   esac
7885 fi
7886 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7887
7888 # The second clause should only fire when bootstrapping the
7889 # libtool distribution, otherwise you forgot to ship ltmain.sh
7890 # with your package, and you will get complaints that there are
7891 # no rules to generate ltmain.sh.
7892 if test -f "$ltmain"; then
7893   :
7894 else
7895   # If there is no Makefile yet, we rely on a make rule to execute
7896   # `config.status --recheck' to rerun these tests and create the
7897   # libtool script then.
7898   test -f Makefile && make "$ltmain"
7899 fi
7900
7901 if test -f "$ltmain"; then
7902   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7903   $rm -f "${ofile}T"
7904
7905   echo creating $ofile
7906
7907   # Now quote all the things that may contain metacharacters while being
7908   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7909   # variables and quote the copies for generation of the libtool script.
7910   for var in echo old_CC old_CFLAGS SED \
7911     AR AR_FLAGS CC LD LN_S NM SHELL \
7912     reload_flag reload_cmds wl \
7913     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7914     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7915     library_names_spec soname_spec \
7916     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7917     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7918     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7919     old_striplib striplib file_magic_cmd export_symbols_cmds \
7920     deplibs_check_method allow_undefined_flag no_undefined_flag \
7921     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7922     global_symbol_to_c_name_address \
7923     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7924     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7925     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7926
7927     case $var in
7928     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7929     old_postinstall_cmds | old_postuninstall_cmds | \
7930     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7931     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7932     postinstall_cmds | postuninstall_cmds | \
7933     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7934       # Double-quote double-evaled strings.
7935       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7936       ;;
7937     *)
7938       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7939       ;;
7940     esac
7941   done
7942
7943   cat <<__EOF__ > "${ofile}T"
7944 #! $SHELL
7945
7946 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7947 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7948 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7949 #
7950 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7951 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7952 #
7953 # This program is free software; you can redistribute it and/or modify
7954 # it under the terms of the GNU General Public License as published by
7955 # the Free Software Foundation; either version 2 of the License, or
7956 # (at your option) any later version.
7957 #
7958 # This program is distributed in the hope that it will be useful, but
7959 # WITHOUT ANY WARRANTY; without even the implied warranty of
7960 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7961 # General Public License for more details.
7962 #
7963 # You should have received a copy of the GNU General Public License
7964 # along with this program; if not, write to the Free Software
7965 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7966 #
7967 # As a special exception to the GNU General Public License, if you
7968 # distribute this file as part of a program that contains a
7969 # configuration script generated by Autoconf, you may include it under
7970 # the same distribution terms that you use for the rest of that program.
7971
7972 # A sed that does not truncate output.
7973 SED=$lt_SED
7974
7975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7976 Xsed="${SED} -e s/^X//"
7977
7978 # The HP-UX ksh and POSIX shell print the target directory to stdout
7979 # if CDPATH is set.
7980 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7981
7982 # ### BEGIN LIBTOOL CONFIG
7983
7984 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7985
7986 # Shell to use when invoking shell scripts.
7987 SHELL=$lt_SHELL
7988
7989 # Whether or not to build shared libraries.
7990 build_libtool_libs=$enable_shared
7991
7992 # Whether or not to build static libraries.
7993 build_old_libs=$enable_static
7994
7995 # Whether or not to add -lc for building shared libraries.
7996 build_libtool_need_lc=$need_lc
7997
7998 # Whether or not to optimize for fast installation.
7999 fast_install=$enable_fast_install
8000
8001 # The host system.
8002 host_alias=$host_alias
8003 host=$host
8004
8005 # An echo program that does not interpret backslashes.
8006 echo=$lt_echo
8007
8008 # The archiver.
8009 AR=$lt_AR
8010 AR_FLAGS=$lt_AR_FLAGS
8011
8012 # The default C compiler.
8013 CC=$lt_CC
8014
8015 # Is the compiler the GNU C compiler?
8016 with_gcc=$GCC
8017
8018 # The linker used to build libraries.
8019 LD=$lt_LD
8020
8021 # Whether we need hard or soft links.
8022 LN_S=$lt_LN_S
8023
8024 # A BSD-compatible nm program.
8025 NM=$lt_NM
8026
8027 # A symbol stripping program
8028 STRIP=$STRIP
8029
8030 # Used to examine libraries when file_magic_cmd begins "file"
8031 MAGIC_CMD=$MAGIC_CMD
8032
8033 # Used on cygwin: DLL creation program.
8034 DLLTOOL="$DLLTOOL"
8035
8036 # Used on cygwin: object dumper.
8037 OBJDUMP="$OBJDUMP"
8038
8039 # Used on cygwin: assembler.
8040 AS="$AS"
8041
8042 # The name of the directory that contains temporary libtool files.
8043 objdir=$objdir
8044
8045 # How to create reloadable object files.
8046 reload_flag=$lt_reload_flag
8047 reload_cmds=$lt_reload_cmds
8048
8049 # How to pass a linker flag through the compiler.
8050 wl=$lt_wl
8051
8052 # Object file suffix (normally "o").
8053 objext="$ac_objext"
8054
8055 # Old archive suffix (normally "a").
8056 libext="$libext"
8057
8058 # Executable file suffix (normally "").
8059 exeext="$exeext"
8060
8061 # Additional compiler flags for building library objects.
8062 pic_flag=$lt_pic_flag
8063 pic_mode=$pic_mode
8064
8065 # Does compiler simultaneously support -c and -o options?
8066 compiler_c_o=$lt_compiler_c_o
8067
8068 # Can we write directly to a .lo ?
8069 compiler_o_lo=$lt_compiler_o_lo
8070
8071 # Must we lock files when doing compilation ?
8072 need_locks=$lt_need_locks
8073
8074 # Do we need the lib prefix for modules?
8075 need_lib_prefix=$need_lib_prefix
8076
8077 # Do we need a version for libraries?
8078 need_version=$need_version
8079
8080 # Whether dlopen is supported.
8081 dlopen_support=$enable_dlopen
8082
8083 # Whether dlopen of programs is supported.
8084 dlopen_self=$enable_dlopen_self
8085
8086 # Whether dlopen of statically linked programs is supported.
8087 dlopen_self_static=$enable_dlopen_self_static
8088
8089 # Compiler flag to prevent dynamic linking.
8090 link_static_flag=$lt_link_static_flag
8091
8092 # Compiler flag to turn off builtin functions.
8093 no_builtin_flag=$lt_no_builtin_flag
8094
8095 # Compiler flag to allow reflexive dlopens.
8096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8097
8098 # Compiler flag to generate shared objects directly from archives.
8099 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8100
8101 # Compiler flag to generate thread-safe objects.
8102 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8103
8104 # Library versioning type.
8105 version_type=$version_type
8106
8107 # Format of library name prefix.
8108 libname_spec=$lt_libname_spec
8109
8110 # List of archive names.  First name is the real one, the rest are links.
8111 # The last name is the one that the linker finds with -lNAME.
8112 library_names_spec=$lt_library_names_spec
8113
8114 # The coded name of the library, if different from the real name.
8115 soname_spec=$lt_soname_spec
8116
8117 # Commands used to build and install an old-style archive.
8118 RANLIB=$lt_RANLIB
8119 old_archive_cmds=$lt_old_archive_cmds
8120 old_postinstall_cmds=$lt_old_postinstall_cmds
8121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8122
8123 # Create an old-style archive from a shared archive.
8124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8125
8126 # Create a temporary old-style archive to link instead of a shared archive.
8127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8128
8129 # Commands used to build and install a shared archive.
8130 archive_cmds=$lt_archive_cmds
8131 archive_expsym_cmds=$lt_archive_expsym_cmds
8132 postinstall_cmds=$lt_postinstall_cmds
8133 postuninstall_cmds=$lt_postuninstall_cmds
8134
8135 # Commands to strip libraries.
8136 old_striplib=$lt_old_striplib
8137 striplib=$lt_striplib
8138
8139 # Method to check whether dependent libraries are shared objects.
8140 deplibs_check_method=$lt_deplibs_check_method
8141
8142 # Command to use when deplibs_check_method == file_magic.
8143 file_magic_cmd=$lt_file_magic_cmd
8144
8145 # Flag that allows shared libraries with undefined symbols to be built.
8146 allow_undefined_flag=$lt_allow_undefined_flag
8147
8148 # Flag that forces no undefined symbols.
8149 no_undefined_flag=$lt_no_undefined_flag
8150
8151 # Commands used to finish a libtool library installation in a directory.
8152 finish_cmds=$lt_finish_cmds
8153
8154 # Same as above, but a single script fragment to be evaled but not shown.
8155 finish_eval=$lt_finish_eval
8156
8157 # Take the output of nm and produce a listing of raw symbols and C names.
8158 global_symbol_pipe=$lt_global_symbol_pipe
8159
8160 # Transform the output of nm in a proper C declaration
8161 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8162
8163 # Transform the output of nm in a C name address pair
8164 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8165
8166 # This is the shared library runtime path variable.
8167 runpath_var=$runpath_var
8168
8169 # This is the shared library path variable.
8170 shlibpath_var=$shlibpath_var
8171
8172 # Is shlibpath searched before the hard-coded library search path?
8173 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8174
8175 # How to hardcode a shared library path into an executable.
8176 hardcode_action=$hardcode_action
8177
8178 # Whether we should hardcode library paths into libraries.
8179 hardcode_into_libs=$hardcode_into_libs
8180
8181 # Flag to hardcode \$libdir into a binary during linking.
8182 # This must work even if \$libdir does not exist.
8183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8184
8185 # Whether we need a single -rpath flag with a separated argument.
8186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8187
8188 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8189 # resulting binary.
8190 hardcode_direct=$hardcode_direct
8191
8192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8193 # resulting binary.
8194 hardcode_minus_L=$hardcode_minus_L
8195
8196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8197 # the resulting binary.
8198 hardcode_shlibpath_var=$hardcode_shlibpath_var
8199
8200 # Variables whose values should be saved in libtool wrapper scripts and
8201 # restored at relink time.
8202 variables_saved_for_relink="$variables_saved_for_relink"
8203
8204 # Whether libtool must link a program against all its dependency libraries.
8205 link_all_deplibs=$link_all_deplibs
8206
8207 # Compile-time system search path for libraries
8208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8209
8210 # Run-time system search path for libraries
8211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8212
8213 # Fix the shell variable \$srcfile for the compiler.
8214 fix_srcfile_path="$fix_srcfile_path"
8215
8216 # Set to yes if exported symbols are required.
8217 always_export_symbols=$always_export_symbols
8218
8219 # The commands to list exported symbols.
8220 export_symbols_cmds=$lt_export_symbols_cmds
8221
8222 # The commands to extract the exported symbol list from a shared archive.
8223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8224
8225 # Symbols that should not be listed in the preloaded symbols.
8226 exclude_expsyms=$lt_exclude_expsyms
8227
8228 # Symbols that must always be exported.
8229 include_expsyms=$lt_include_expsyms
8230
8231 # ### END LIBTOOL CONFIG
8232
8233 __EOF__
8234
8235   case $host_os in
8236   aix3*)
8237     cat <<\EOF >> "${ofile}T"
8238
8239 # AIX sometimes has problems with the GCC collect2 program.  For some
8240 # reason, if we set the COLLECT_NAMES environment variable, the problems
8241 # vanish in a puff of smoke.
8242 if test "X${COLLECT_NAMES+set}" != Xset; then
8243   COLLECT_NAMES=
8244   export COLLECT_NAMES
8245 fi
8246 EOF
8247     ;;
8248   esac
8249
8250   case $host_os in
8251   cygwin* | mingw* | pw32* | os2*)
8252     cat <<'EOF' >> "${ofile}T"
8253       # This is a source program that is used to create dlls on Windows
8254       # Don't remove nor modify the starting and closing comments
8255 # /* ltdll.c starts here */
8256 # #define WIN32_LEAN_AND_MEAN
8257 # #include <windows.h>
8258 # #undef WIN32_LEAN_AND_MEAN
8259 # #include <stdio.h>
8260 #
8261 # #ifndef __CYGWIN__
8262 # #  ifdef __CYGWIN32__
8263 # #    define __CYGWIN__ __CYGWIN32__
8264 # #  endif
8265 # #endif
8266 #
8267 # #ifdef __cplusplus
8268 # extern "C" {
8269 # #endif
8270 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8271 # #ifdef __cplusplus
8272 # }
8273 # #endif
8274 #
8275 # #ifdef __CYGWIN__
8276 # #include <cygwin/cygwin_dll.h>
8277 # DECLARE_CYGWIN_DLL( DllMain );
8278 # #endif
8279 # HINSTANCE __hDllInstance_base;
8280 #
8281 # BOOL APIENTRY
8282 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8283 # {
8284 #   __hDllInstance_base = hInst;
8285 #   return TRUE;
8286 # }
8287 # /* ltdll.c ends here */
8288         # This is a source program that is used to create import libraries
8289         # on Windows for dlls which lack them. Don't remove nor modify the
8290         # starting and closing comments
8291 # /* impgen.c starts here */
8292 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8293 #
8294 #  This file is part of GNU libtool.
8295 #
8296 #  This program is free software; you can redistribute it and/or modify
8297 #  it under the terms of the GNU General Public License as published by
8298 #  the Free Software Foundation; either version 2 of the License, or
8299 #  (at your option) any later version.
8300 #
8301 #  This program is distributed in the hope that it will be useful,
8302 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8303 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8304 #  GNU General Public License for more details.
8305 #
8306 #  You should have received a copy of the GNU General Public License
8307 #  along with this program; if not, write to the Free Software
8308 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8309 #  */
8310 #
8311 # #include <stdio.h>            /* for printf() */
8312 # #include <unistd.h>           /* for open(), lseek(), read() */
8313 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8314 # #include <string.h>           /* for strdup() */
8315 #
8316 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8317 # #ifndef O_BINARY
8318 # #define O_BINARY 0
8319 # #endif
8320 #
8321 # static unsigned int
8322 # pe_get16 (fd, offset)
8323 #      int fd;
8324 #      int offset;
8325 # {
8326 #   unsigned char b[2];
8327 #   lseek (fd, offset, SEEK_SET);
8328 #   read (fd, b, 2);
8329 #   return b[0] + (b[1]<<8);
8330 # }
8331 #
8332 # static unsigned int
8333 # pe_get32 (fd, offset)
8334 #     int fd;
8335 #     int offset;
8336 # {
8337 #   unsigned char b[4];
8338 #   lseek (fd, offset, SEEK_SET);
8339 #   read (fd, b, 4);
8340 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8341 # }
8342 #
8343 # static unsigned int
8344 # pe_as32 (ptr)
8345 #      void *ptr;
8346 # {
8347 #   unsigned char *b = ptr;
8348 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8349 # }
8350 #
8351 # int
8352 # main (argc, argv)
8353 #     int argc;
8354 #     char *argv[];
8355 # {
8356 #     int dll;
8357 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8358 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8359 #     unsigned long name_rvas, nexp;
8360 #     unsigned char *expdata, *erva;
8361 #     char *filename, *dll_name;
8362 #
8363 #     filename = argv[1];
8364 #
8365 #     dll = open(filename, O_RDONLY|O_BINARY);
8366 #     if (dll < 1)
8367 #       return 1;
8368 #
8369 #     dll_name = filename;
8370 #
8371 #     for (i=0; filename[i]; i++)
8372 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8373 #           dll_name = filename + i +1;
8374 #
8375 #     pe_header_offset = pe_get32 (dll, 0x3c);
8376 #     opthdr_ofs = pe_header_offset + 4 + 20;
8377 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8378 #
8379 #     if (num_entries < 1) /* no exports */
8380 #       return 1;
8381 #
8382 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8383 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8384 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8385 #     secptr = (pe_header_offset + 4 + 20 +
8386 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8387 #
8388 #     expptr = 0;
8389 #     for (i = 0; i < nsections; i++)
8390 #     {
8391 #       char sname[8];
8392 #       unsigned long secptr1 = secptr + 40 * i;
8393 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8394 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8395 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8396 #       lseek(dll, secptr1, SEEK_SET);
8397 #       read(dll, sname, 8);
8398 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8399 #       {
8400 #           expptr = fptr + (export_rva - vaddr);
8401 #           if (export_rva + export_size > vaddr + vsize)
8402 #               export_size = vsize - (export_rva - vaddr);
8403 #           break;
8404 #       }
8405 #     }
8406 #
8407 #     expdata = (unsigned char*)malloc(export_size);
8408 #     lseek (dll, expptr, SEEK_SET);
8409 #     read (dll, expdata, export_size);
8410 #     erva = expdata - export_rva;
8411 #
8412 #     nexp = pe_as32 (expdata+24);
8413 #     name_rvas = pe_as32 (expdata+32);
8414 #
8415 #     printf ("EXPORTS\n");
8416 #     for (i = 0; i<nexp; i++)
8417 #     {
8418 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8419 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8420 #     }
8421 #
8422 #     return 0;
8423 # }
8424 # /* impgen.c ends here */
8425
8426 EOF
8427     ;;
8428   esac
8429
8430   # We use sed instead of cat because bash on DJGPP gets confused if
8431   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8432   # text mode, it properly converts lines to CR/LF.  This bash problem
8433   # is reportedly fixed, but why not run on old versions too?
8434   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8435
8436   mv -f "${ofile}T" "$ofile" || \
8437     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8438   chmod +x "$ofile"
8439 fi
8440
8441
8442
8443
8444
8445 # This can be used to rebuild libtool when needed
8446 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8447
8448 # Always use our own libtool.
8449 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8450
8451 # Prevent multiple expansion
8452
8453
8454 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8455 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8456 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8457 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   cat >conftest.make <<\_ACEOF
8461 all:
8462         @echo 'ac_maketemp="$(MAKE)"'
8463 _ACEOF
8464 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8465 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8466 if test -n "$ac_maketemp"; then
8467   eval ac_cv_prog_make_${ac_make}_set=yes
8468 else
8469   eval ac_cv_prog_make_${ac_make}_set=no
8470 fi
8471 rm -f conftest.make
8472 fi
8473 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8474   echo "$as_me:$LINENO: result: yes" >&5
8475 echo "${ECHO_T}yes" >&6
8476   SET_MAKE=
8477 else
8478   echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6
8480   SET_MAKE="MAKE=${MAKE-make}"
8481 fi
8482
8483
8484
8485 echo "$as_me:$LINENO: checking for ssh" >&5
8486 echo $ECHO_N "checking for ssh... $ECHO_C" >&6
8487
8488 # Check whether --with-ssh or --without-ssh was given.
8489 if test "${with_ssh+set}" = set; then
8490   withval="$with_ssh"
8491   SSHPROG=$withval
8492 else
8493   SSHPROG=`which ssh 2>/dev/null`
8494 fi;
8495 if test ! -x "$SSHPROG"
8496 then
8497     echo "$as_me:$LINENO: result: not found (sshfs support disabled)" >&5
8498 echo "${ECHO_T}not found (sshfs support disabled)" >&6
8499 else
8500     echo "$as_me:$LINENO: result: found ($SSHPROG)" >&5
8501 echo "${ECHO_T}found ($SSHPROG)" >&6
8502
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAS_SSH 1
8505 _ACEOF
8506
8507     opt_fs="$opt_fs sshfs"
8508 fi
8509
8510
8511
8512 # Extract the first word of "gnome-config", so it can be a program name with args.
8513 set dummy gnome-config; ac_word=$2
8514 echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8516 if test "${ac_cv_prog_GCONF+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   if test -n "$GCONF"; then
8520   ac_cv_prog_GCONF="$GCONF" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525   IFS=$as_save_IFS
8526   test -z "$as_dir" && as_dir=.
8527   for ac_exec_ext in '' $ac_executable_extensions; do
8528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529     ac_cv_prog_GCONF="gnome-config"
8530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8531     break 2
8532   fi
8533 done
8534 done
8535
8536 fi
8537 fi
8538 GCONF=$ac_cv_prog_GCONF
8539 if test -n "$GCONF"; then
8540   echo "$as_me:$LINENO: result: $GCONF" >&5
8541 echo "${ECHO_T}$GCONF" >&6
8542 else
8543   echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6
8545 fi
8546
8547 # Extract the first word of "gnome-vfs-config", so it can be a program name with args.
8548 set dummy gnome-vfs-config; ac_word=$2
8549 echo "$as_me:$LINENO: checking for $ac_word" >&5
8550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8551 if test "${ac_cv_prog_GVFSCONF+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   if test -n "$GVFSCONF"; then
8555   ac_cv_prog_GVFSCONF="$GVFSCONF" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560   IFS=$as_save_IFS
8561   test -z "$as_dir" && as_dir=.
8562   for ac_exec_ext in '' $ac_executable_extensions; do
8563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564     ac_cv_prog_GVFSCONF="gnome-vfs-config"
8565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566     break 2
8567   fi
8568 done
8569 done
8570
8571 fi
8572 fi
8573 GVFSCONF=$ac_cv_prog_GVFSCONF
8574 if test -n "$GVFSCONF"; then
8575   echo "$as_me:$LINENO: result: $GVFSCONF" >&5
8576 echo "${ECHO_T}$GVFSCONF" >&6
8577 else
8578   echo "$as_me:$LINENO: result: no" >&5
8579 echo "${ECHO_T}no" >&6
8580 fi
8581
8582 echo "$as_me:$LINENO: checking for gnome_vfs_init in -lgnomevfs" >&5
8583 echo $ECHO_N "checking for gnome_vfs_init in -lgnomevfs... $ECHO_C" >&6
8584 if test "${ac_cv_lib_gnomevfs_gnome_vfs_init+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-lgnomevfs  $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 /* Override any gcc2 internal prototype to avoid an error.  */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 /* We use char because int might match the return type of a gcc2
8602    builtin and then its argument prototype would still apply.  */
8603 char gnome_vfs_init ();
8604 int
8605 main ()
8606 {
8607 gnome_vfs_init ();
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614   (eval $ac_link) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } &&
8618          { ac_try='test -s conftest$ac_exeext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   ac_cv_lib_gnomevfs_gnome_vfs_init=yes
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 ac_cv_lib_gnomevfs_gnome_vfs_init=no
8630 fi
8631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ac_check_lib_save_LIBS
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_lib_gnomevfs_gnome_vfs_init" >&5
8635 echo "${ECHO_T}$ac_cv_lib_gnomevfs_gnome_vfs_init" >&6
8636 if test $ac_cv_lib_gnomevfs_gnome_vfs_init = yes; then
8637   HAS_GNOMEVFS=1
8638 fi
8639
8640 if test "$GCONF" -a "$GVFSCONF" -a "$HAS_GNOMEVFS"
8641 then
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define HAS_GVFS 1
8645 _ACEOF
8646
8647
8648     GVFS_LDADD="`$GCONF --libs gnome` `$GVFSCONF --libs`"
8649     GVFS_CFLAGS="`$GCONF --cflags gnome` `$GVFSCONF --cflags`"
8650     opt_fs="$opt_fs gvfs"
8651 fi
8652
8653
8654
8655 # Check whether --enable-wavfs or --disable-wavfs was given.
8656 if test "${enable_wavfs+set}" = set; then
8657   enableval="$enable_wavfs"
8658    opt_fs="$opt_fs wavfs"
8659 fi;
8660
8661
8662 # Check whether --enable-cefs or --disable-cefs was given.
8663 if test "${enable_cefs+set}" = set; then
8664   enableval="$enable_cefs"
8665    opt_fs="$opt_fs cefs"
8666 fi;
8667
8668 if test -n "$cefs_dir"; then
8669
8670 cat >>confdefs.h <<\_ACEOF
8671 #define HAS_CEFS 1
8672 _ACEOF
8673
8674
8675 cat >>confdefs.h <<\_ACEOF
8676 #define INFOFILE "/tmp/cedevices"
8677 _ACEOF
8678
8679 fi
8680
8681 # Check whether --enable-cardfs or --disable-cardfs was given.
8682 if test "${enable_cardfs+set}" = set; then
8683   enableval="$enable_cardfs"
8684    WITH_CARDFS=true
8685 fi;
8686
8687
8688 echo "$as_me:$LINENO: checking for pthread_detach in -lpthread" >&5
8689 echo $ECHO_N "checking for pthread_detach in -lpthread... $ECHO_C" >&6
8690 if test "${ac_cv_lib_pthread_pthread_detach+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   ac_check_lib_save_LIBS=$LIBS
8694 LIBS="-lpthread  $LIBS"
8695 cat >conftest.$ac_ext <<_ACEOF
8696 #line $LINENO "configure"
8697 /* confdefs.h.  */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h.  */
8702
8703 /* Override any gcc2 internal prototype to avoid an error.  */
8704 #ifdef __cplusplus
8705 extern "C"
8706 #endif
8707 /* We use char because int might match the return type of a gcc2
8708    builtin and then its argument prototype would still apply.  */
8709 char pthread_detach ();
8710 int
8711 main ()
8712 {
8713 pthread_detach ();
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720   (eval $ac_link) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -s conftest$ac_exeext'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; }; then
8730   ac_cv_lib_pthread_pthread_detach=yes
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 ac_cv_lib_pthread_pthread_detach=no
8736 fi
8737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8739 fi
8740 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_detach" >&5
8741 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_detach" >&6
8742 if test $ac_cv_lib_pthread_pthread_detach = yes; then
8743   cat >>confdefs.h <<_ACEOF
8744 #define HAVE_LIBPTHREAD 1
8745 _ACEOF
8746
8747   LIBS="-lpthread $LIBS"
8748
8749 else
8750   { { echo "$as_me:$LINENO: error: libpthread is needed by lufs" >&5
8751 echo "$as_me: error: libpthread is needed by lufs" >&2;}
8752    { (exit 1); exit 1; }; }
8753 fi
8754
8755
8756
8757 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8759 if test "${ac_cv_header_stdc+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   cat >conftest.$ac_ext <<_ACEOF
8763 #line $LINENO "configure"
8764 /* confdefs.h.  */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h.  */
8769 #include <stdlib.h>
8770 #include <stdarg.h>
8771 #include <string.h>
8772 #include <float.h>
8773
8774 int
8775 main ()
8776 {
8777
8778   ;
8779   return 0;
8780 }
8781 _ACEOF
8782 rm -f conftest.$ac_objext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8784   (eval $ac_compile) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } &&
8788          { ac_try='test -s conftest.$ac_objext'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; }; then
8794   ac_cv_header_stdc=yes
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799 ac_cv_header_stdc=no
8800 fi
8801 rm -f conftest.$ac_objext conftest.$ac_ext
8802
8803 if test $ac_cv_header_stdc = yes; then
8804   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8805   cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812 #include <string.h>
8813
8814 _ACEOF
8815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816   $EGREP "memchr" >/dev/null 2>&1; then
8817   :
8818 else
8819   ac_cv_header_stdc=no
8820 fi
8821 rm -f conftest*
8822
8823 fi
8824
8825 if test $ac_cv_header_stdc = yes; then
8826   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8827   cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834 #include <stdlib.h>
8835
8836 _ACEOF
8837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8838   $EGREP "free" >/dev/null 2>&1; then
8839   :
8840 else
8841   ac_cv_header_stdc=no
8842 fi
8843 rm -f conftest*
8844
8845 fi
8846
8847 if test $ac_cv_header_stdc = yes; then
8848   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8849   if test "$cross_compiling" = yes; then
8850   :
8851 else
8852   cat >conftest.$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 #include <ctype.h>
8860 #if ((' ' & 0x0FF) == 0x020)
8861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8863 #else
8864 # define ISLOWER(c) \
8865                    (('a' <= (c) && (c) <= 'i') \
8866                      || ('j' <= (c) && (c) <= 'r') \
8867                      || ('s' <= (c) && (c) <= 'z'))
8868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8869 #endif
8870
8871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8872 int
8873 main ()
8874 {
8875   int i;
8876   for (i = 0; i < 256; i++)
8877     if (XOR (islower (i), ISLOWER (i))
8878         || toupper (i) != TOUPPER (i))
8879       exit(2);
8880   exit (0);
8881 }
8882 _ACEOF
8883 rm -f conftest$ac_exeext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8885   (eval $ac_link) 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890   (eval $ac_try) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; }; then
8894   :
8895 else
8896   echo "$as_me: program exited with status $ac_status" >&5
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ( exit $ac_status )
8901 ac_cv_header_stdc=no
8902 fi
8903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8904 fi
8905 fi
8906 fi
8907 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8908 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8909 if test $ac_cv_header_stdc = yes; then
8910
8911 cat >>confdefs.h <<\_ACEOF
8912 #define STDC_HEADERS 1
8913 _ACEOF
8914
8915 fi
8916
8917
8918 for ac_header in unistd.h
8919 do
8920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922   echo "$as_me:$LINENO: checking for $ac_header" >&5
8923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925   echo $ECHO_N "(cached) $ECHO_C" >&6
8926 fi
8927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8929 else
8930   # Is the header compilable?
8931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8934 #line $LINENO "configure"
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 $ac_includes_default
8941 #include <$ac_header>
8942 _ACEOF
8943 rm -f conftest.$ac_objext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8945   (eval $ac_compile) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } &&
8949          { ac_try='test -s conftest.$ac_objext'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; }; then
8955   ac_header_compiler=yes
8956 else
8957   echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 ac_header_compiler=no
8961 fi
8962 rm -f conftest.$ac_objext conftest.$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8964 echo "${ECHO_T}$ac_header_compiler" >&6
8965
8966 # Is the header present?
8967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8969 cat >conftest.$ac_ext <<_ACEOF
8970 #line $LINENO "configure"
8971 /* confdefs.h.  */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h.  */
8976 #include <$ac_header>
8977 _ACEOF
8978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8980   ac_status=$?
8981   grep -v '^ *+' conftest.er1 >conftest.err
8982   rm -f conftest.er1
8983   cat conftest.err >&5
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } >/dev/null; then
8986   if test -s conftest.err; then
8987     ac_cpp_err=$ac_c_preproc_warn_flag
8988   else
8989     ac_cpp_err=
8990   fi
8991 else
8992   ac_cpp_err=yes
8993 fi
8994 if test -z "$ac_cpp_err"; then
8995   ac_header_preproc=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000   ac_header_preproc=no
9001 fi
9002 rm -f conftest.err conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9004 echo "${ECHO_T}$ac_header_preproc" >&6
9005
9006 # So?  What about this header?
9007 case $ac_header_compiler:$ac_header_preproc in
9008   yes:no )
9009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9013     (
9014       cat <<\_ASBOX
9015 ## ------------------------------------ ##
9016 ## Report this to bug-autoconf@gnu.org. ##
9017 ## ------------------------------------ ##
9018 _ASBOX
9019     ) |
9020       sed "s/^/$as_me: WARNING:     /" >&2
9021     ;;
9022   no:yes )
9023     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9025     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9029     (
9030       cat <<\_ASBOX
9031 ## ------------------------------------ ##
9032 ## Report this to bug-autoconf@gnu.org. ##
9033 ## ------------------------------------ ##
9034 _ASBOX
9035     ) |
9036       sed "s/^/$as_me: WARNING:     /" >&2
9037     ;;
9038 esac
9039 echo "$as_me:$LINENO: checking for $ac_header" >&5
9040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042   echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044   eval "$as_ac_Header=$ac_header_preproc"
9045 fi
9046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9048
9049 fi
9050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9051   cat >>confdefs.h <<_ACEOF
9052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9053 _ACEOF
9054
9055 fi
9056
9057 done
9058
9059
9060
9061
9062
9063
9064
9065
9066 for ac_header in byteswap.h sys/byteswap.h endian.h machine/endian.h sys/types.h
9067 do
9068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070   echo "$as_me:$LINENO: checking for $ac_header" >&5
9071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 fi
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077 else
9078   # Is the header compilable?
9079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9082 #line $LINENO "configure"
9083 /* confdefs.h.  */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h.  */
9088 $ac_includes_default
9089 #include <$ac_header>
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093   (eval $ac_compile) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); } &&
9097          { ac_try='test -s conftest.$ac_objext'
9098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099   (eval $ac_try) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; }; then
9103   ac_header_compiler=yes
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 ac_header_compiler=no
9109 fi
9110 rm -f conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9112 echo "${ECHO_T}$ac_header_compiler" >&6
9113
9114 # Is the header present?
9115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9117 cat >conftest.$ac_ext <<_ACEOF
9118 #line $LINENO "configure"
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 #include <$ac_header>
9125 _ACEOF
9126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9128   ac_status=$?
9129   grep -v '^ *+' conftest.er1 >conftest.err
9130   rm -f conftest.er1
9131   cat conftest.err >&5
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } >/dev/null; then
9134   if test -s conftest.err; then
9135     ac_cpp_err=$ac_c_preproc_warn_flag
9136   else
9137     ac_cpp_err=
9138   fi
9139 else
9140   ac_cpp_err=yes
9141 fi
9142 if test -z "$ac_cpp_err"; then
9143   ac_header_preproc=yes
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148   ac_header_preproc=no
9149 fi
9150 rm -f conftest.err conftest.$ac_ext
9151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9152 echo "${ECHO_T}$ac_header_preproc" >&6
9153
9154 # So?  What about this header?
9155 case $ac_header_compiler:$ac_header_preproc in
9156   yes:no )
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9161     (
9162       cat <<\_ASBOX
9163 ## ------------------------------------ ##
9164 ## Report this to bug-autoconf@gnu.org. ##
9165 ## ------------------------------------ ##
9166 _ASBOX
9167     ) |
9168       sed "s/^/$as_me: WARNING:     /" >&2
9169     ;;
9170   no:yes )
9171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9177     (
9178       cat <<\_ASBOX
9179 ## ------------------------------------ ##
9180 ## Report this to bug-autoconf@gnu.org. ##
9181 ## ------------------------------------ ##
9182 _ASBOX
9183     ) |
9184       sed "s/^/$as_me: WARNING:     /" >&2
9185     ;;
9186 esac
9187 echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   eval "$as_ac_Header=$ac_header_preproc"
9193 fi
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9196
9197 fi
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199   cat >>confdefs.h <<_ACEOF
9200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201 _ACEOF
9202
9203 fi
9204
9205 done
9206
9207
9208
9209 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9210 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9211 if test "${ac_cv_c_const+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   cat >conftest.$ac_ext <<_ACEOF
9215 #line $LINENO "configure"
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 int
9223 main ()
9224 {
9225 /* FIXME: Include the comments suggested by Paul. */
9226 #ifndef __cplusplus
9227   /* Ultrix mips cc rejects this.  */
9228   typedef int charset[2];
9229   const charset x;
9230   /* SunOS 4.1.1 cc rejects this.  */
9231   char const *const *ccp;
9232   char **p;
9233   /* NEC SVR4.0.2 mips cc rejects this.  */
9234   struct point {int x, y;};
9235   static struct point const zero = {0,0};
9236   /* AIX XL C 1.02.0.0 rejects this.
9237      It does not let you subtract one const X* pointer from another in
9238      an arm of an if-expression whose if-part is not a constant
9239      expression */
9240   const char *g = "string";
9241   ccp = &g + (g ? g-g : 0);
9242   /* HPUX 7.0 cc rejects these. */
9243   ++ccp;
9244   p = (char**) ccp;
9245   ccp = (char const *const *) p;
9246   { /* SCO 3.2v4 cc rejects this.  */
9247     char *t;
9248     char const *s = 0 ? (char *) 0 : (char const *) 0;
9249
9250     *t++ = 0;
9251   }
9252   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9253     int x[] = {25, 17};
9254     const int *foo = &x[0];
9255     ++foo;
9256   }
9257   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9258     typedef const int *iptr;
9259     iptr p = 0;
9260     ++p;
9261   }
9262   { /* AIX XL C 1.02.0.0 rejects this saying
9263        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9264     struct s { int j; const int *ap[3]; };
9265     struct s *b; b->j = 5;
9266   }
9267   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9268     const int foo = 10;
9269   }
9270 #endif
9271
9272   ;
9273   return 0;
9274 }
9275 _ACEOF
9276 rm -f conftest.$ac_objext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278   (eval $ac_compile) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } &&
9282          { ac_try='test -s conftest.$ac_objext'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; }; then
9288   ac_cv_c_const=yes
9289 else
9290   echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 ac_cv_c_const=no
9294 fi
9295 rm -f conftest.$ac_objext conftest.$ac_ext
9296 fi
9297 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9298 echo "${ECHO_T}$ac_cv_c_const" >&6
9299 if test $ac_cv_c_const = no; then
9300
9301 cat >>confdefs.h <<\_ACEOF
9302 #define const
9303 _ACEOF
9304
9305 fi
9306
9307 echo "$as_me:$LINENO: checking for pid_t" >&5
9308 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9309 if test "${ac_cv_type_pid_t+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312   cat >conftest.$ac_ext <<_ACEOF
9313 #line $LINENO "configure"
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319 $ac_includes_default
9320 int
9321 main ()
9322 {
9323 if ((pid_t *) 0)
9324   return 0;
9325 if (sizeof (pid_t))
9326   return 0;
9327   ;
9328   return 0;
9329 }
9330 _ACEOF
9331 rm -f conftest.$ac_objext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9333   (eval $ac_compile) 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); } &&
9337          { ac_try='test -s conftest.$ac_objext'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; }; then
9343   ac_cv_type_pid_t=yes
9344 else
9345   echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9347
9348 ac_cv_type_pid_t=no
9349 fi
9350 rm -f conftest.$ac_objext conftest.$ac_ext
9351 fi
9352 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9353 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9354 if test $ac_cv_type_pid_t = yes; then
9355   :
9356 else
9357
9358 cat >>confdefs.h <<_ACEOF
9359 #define pid_t int
9360 _ACEOF
9361
9362 fi
9363
9364
9365
9366
9367 for ac_func in mkdir rmdir
9368 do
9369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9370 echo "$as_me:$LINENO: checking for $ac_func" >&5
9371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9372 if eval "test \"\${$as_ac_var+set}\" = set"; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382 /* System header to define __stub macros and hopefully few prototypes,
9383     which can conflict with char $ac_func (); below.
9384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9385     <limits.h> exists even on freestanding compilers.  */
9386 #ifdef __STDC__
9387 # include <limits.h>
9388 #else
9389 # include <assert.h>
9390 #endif
9391 /* Override any gcc2 internal prototype to avoid an error.  */
9392 #ifdef __cplusplus
9393 extern "C"
9394 {
9395 #endif
9396 /* We use char because int might match the return type of a gcc2
9397    builtin and then its argument prototype would still apply.  */
9398 char $ac_func ();
9399 /* The GNU C library defines this for functions which it implements
9400     to always fail with ENOSYS.  Some functions are actually named
9401     something starting with __ and the normal name is an alias.  */
9402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9403 choke me
9404 #else
9405 char (*f) () = $ac_func;
9406 #endif
9407 #ifdef __cplusplus
9408 }
9409 #endif
9410
9411 int
9412 main ()
9413 {
9414 return f != $ac_func;
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421   (eval $ac_link) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -s conftest$ac_exeext'
9426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427   (eval $ac_try) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); }; }; then
9431   eval "$as_ac_var=yes"
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 eval "$as_ac_var=no"
9437 fi
9438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9439 fi
9440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9442 if test `eval echo '${'$as_ac_var'}'` = yes; then
9443   cat >>confdefs.h <<_ACEOF
9444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9445 _ACEOF
9446
9447 fi
9448 done
9449
9450
9451 if test -n "$WITH_CARDFS"; then
9452     echo checking for cardfs
9453     echo "$as_me:$LINENO: checking for libchipcard" >&5
9454 echo $ECHO_N "checking for libchipcard... $ECHO_C" >&6
9455
9456 # Check whether --with-chipcard-dir or --without-chipcard-dir was given.
9457 if test "${with_chipcard_dir+set}" = set; then
9458   withval="$with_chipcard_dir"
9459   cc_dir="$withval"
9460 else
9461   cc_dir="/usr/local/libchipcard \
9462             /usr/local \
9463             /usr/libchipcard \
9464             /usr \
9465             /"
9466 fi;
9467     for li in $cc_dir; do
9468         if test -x "$li/bin/libchipcard-config"; then
9469             chipcard_dir="$li"
9470         fi
9471     done
9472     if test -z "$chipcard_dir"; then
9473         echo "$as_me:$LINENO: result: not found (chipcard support disabled)" >&5
9474 echo "${ECHO_T}not found (chipcard support disabled)" >&6
9475     else
9476         all_libraries="$all_libraries `$chipcard_dir/bin/libchipcard-config --libraries`"
9477         all_includes="$all_includes `$chipcard_dir/bin/libchipcard-config --includes`"
9478
9479 cat >>confdefs.h <<\_ACEOF
9480 #define HAS_LIBCHIPCARD 1
9481 _ACEOF
9482
9483         define_has_libchipcard="#define HAS_LIBCHIPCARD"
9484
9485         LIBCHIPCARD_LIB="`$chipcard_dir/bin/libchipcard-config --libraries` -lcardfs"
9486         LIBCHIPCARD_INCLUDES="`$chipcard_dir/bin/libchipcard-config --includes`"
9487         echo "$as_me:$LINENO: result: $chipcard_dir" >&5
9488 echo "${ECHO_T}$chipcard_dir" >&6
9489         all_libraries="$all_libraries $libchipcard_libs"
9490         all_includes="$all_includes $libchipcard_includes"
9491         opt_fs="$opt_fs cardfs"
9492     fi
9493 fi
9494
9495
9496
9497 all_includes="$all_includes -I`pwd`/include"
9498
9499
9500
9501
9502
9503                                                                                                                                                                                                                             ac_config_files="$ac_config_files Makefile lufsd/Makefile filesystems/Makefile filesystems/localfs/Makefile filesystems/locasefs/Makefile filesystems/sshfs/Makefile filesystems/ftpfs/Makefile filesystems/cardfs/Makefile filesystems/cefs/Makefile filesystems/cefs/asyncd/Makefile filesystems/gvfs/Makefile filesystems/gnetfs/Makefile filesystems/wavfs/Makefile util/Makefile kernel/Makefile kernel/Linux/Makefile kernel/Linux/2.4/Makefile kernel/Linux/2.5/Makefile include/Makefile config/Makefile docs/Makefile man/Makefile"
9504 cat >confcache <<\_ACEOF
9505 # This file is a shell script that caches the results of configure
9506 # tests run on this system so they can be shared between configure
9507 # scripts and configure runs, see configure's option --config-cache.
9508 # It is not useful on other systems.  If it contains results you don't
9509 # want to keep, you may remove or edit it.
9510 #
9511 # config.status only pays attention to the cache file if you give it
9512 # the --recheck option to rerun configure.
9513 #
9514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9516 # following values.
9517
9518 _ACEOF
9519
9520 # The following way of writing the cache mishandles newlines in values,
9521 # but we know of no workaround that is simple, portable, and efficient.
9522 # So, don't put newlines in cache variables' values.
9523 # Ultrix sh set writes to stderr and can't be redirected directly,
9524 # and sets the high bit in the cache file unless we assign to the vars.
9525 {
9526   (set) 2>&1 |
9527     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9528     *ac_space=\ *)
9529       # `set' does not quote correctly, so add quotes (double-quote
9530       # substitution turns \\\\ into \\, and sed turns \\ into \).
9531       sed -n \
9532         "s/'/'\\\\''/g;
9533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9534       ;;
9535     *)
9536       # `set' quotes correctly as required by POSIX, so do not add quotes.
9537       sed -n \
9538         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9539       ;;
9540     esac;
9541 } |
9542   sed '
9543      t clear
9544      : clear
9545      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9546      t end
9547      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9548      : end' >>confcache
9549 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9550   if test -w $cache_file; then
9551     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9552     cat confcache >$cache_file
9553   else
9554     echo "not updating unwritable cache $cache_file"
9555   fi
9556 fi
9557 rm -f confcache
9558
9559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9560 # Let make expand exec_prefix.
9561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9562
9563 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9564 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9565 # trailing colons and then remove the whole line if VPATH becomes empty
9566 # (actually we leave an empty line to preserve line numbers).
9567 if test "x$srcdir" = x.; then
9568   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9569 s/:*\$(srcdir):*/:/;
9570 s/:*\${srcdir}:*/:/;
9571 s/:*@srcdir@:*/:/;
9572 s/^\([^=]*=[    ]*\):*/\1/;
9573 s/:*$//;
9574 s/^[^=]*=[      ]*$//;
9575 }'
9576 fi
9577
9578 DEFS=-DHAVE_CONFIG_H
9579
9580 ac_libobjs=
9581 ac_ltlibobjs=
9582 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9583   # 1. Remove the extension, and $U if already installed.
9584   ac_i=`echo "$ac_i" |
9585          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9586   # 2. Add them.
9587   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9588   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9589 done
9590 LIBOBJS=$ac_libobjs
9591
9592 LTLIBOBJS=$ac_ltlibobjs
9593
9594
9595 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9596   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9597 Usually this means the macro was only invoked conditionally." >&5
9598 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9599 Usually this means the macro was only invoked conditionally." >&2;}
9600    { (exit 1); exit 1; }; }
9601 fi
9602 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9603   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9604 Usually this means the macro was only invoked conditionally." >&5
9605 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9606 Usually this means the macro was only invoked conditionally." >&2;}
9607    { (exit 1); exit 1; }; }
9608 fi
9609 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9610   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9611 Usually this means the macro was only invoked conditionally." >&5
9612 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9613 Usually this means the macro was only invoked conditionally." >&2;}
9614    { (exit 1); exit 1; }; }
9615 fi
9616
9617 : ${CONFIG_STATUS=./config.status}
9618 ac_clean_files_save=$ac_clean_files
9619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9620 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9621 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9622 cat >$CONFIG_STATUS <<_ACEOF
9623 #! $SHELL
9624 # Generated by $as_me.
9625 # Run this file to recreate the current configuration.
9626 # Compiler output produced by configure, useful for debugging
9627 # configure, is in config.log if it exists.
9628
9629 debug=false
9630 ac_cs_recheck=false
9631 ac_cs_silent=false
9632 SHELL=\${CONFIG_SHELL-$SHELL}
9633 _ACEOF
9634
9635 cat >>$CONFIG_STATUS <<\_ACEOF
9636 ## --------------------- ##
9637 ## M4sh Initialization.  ##
9638 ## --------------------- ##
9639
9640 # Be Bourne compatible
9641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9642   emulate sh
9643   NULLCMD=:
9644   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9645   # is contrary to our usage.  Disable this feature.
9646   alias -g '${1+"$@"}'='"$@"'
9647 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9648   set -o posix
9649 fi
9650
9651 # Support unset when possible.
9652 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9653   as_unset=unset
9654 else
9655   as_unset=false
9656 fi
9657
9658
9659 # Work around bugs in pre-3.0 UWIN ksh.
9660 $as_unset ENV MAIL MAILPATH
9661 PS1='$ '
9662 PS2='> '
9663 PS4='+ '
9664
9665 # NLS nuisances.
9666 for as_var in \
9667   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9668   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9669   LC_TELEPHONE LC_TIME
9670 do
9671   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9672     eval $as_var=C; export $as_var
9673   else
9674     $as_unset $as_var
9675   fi
9676 done
9677
9678 # Required to use basename.
9679 if expr a : '\(a\)' >/dev/null 2>&1; then
9680   as_expr=expr
9681 else
9682   as_expr=false
9683 fi
9684
9685 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9686   as_basename=basename
9687 else
9688   as_basename=false
9689 fi
9690
9691
9692 # Name of the executable.
9693 as_me=`$as_basename "$0" ||
9694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9695          X"$0" : 'X\(//\)$' \| \
9696          X"$0" : 'X\(/\)$' \| \
9697          .     : '\(.\)' 2>/dev/null ||
9698 echo X/"$0" |
9699     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9700           /^X\/\(\/\/\)$/{ s//\1/; q; }
9701           /^X\/\(\/\).*/{ s//\1/; q; }
9702           s/.*/./; q'`
9703
9704
9705 # PATH needs CR, and LINENO needs CR and PATH.
9706 # Avoid depending upon Character Ranges.
9707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9710 as_cr_digits='0123456789'
9711 as_cr_alnum=$as_cr_Letters$as_cr_digits
9712
9713 # The user is always right.
9714 if test "${PATH_SEPARATOR+set}" != set; then
9715   echo "#! /bin/sh" >conf$$.sh
9716   echo  "exit 0"   >>conf$$.sh
9717   chmod +x conf$$.sh
9718   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9719     PATH_SEPARATOR=';'
9720   else
9721     PATH_SEPARATOR=:
9722   fi
9723   rm -f conf$$.sh
9724 fi
9725
9726
9727   as_lineno_1=$LINENO
9728   as_lineno_2=$LINENO
9729   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9730   test "x$as_lineno_1" != "x$as_lineno_2" &&
9731   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9732   # Find who we are.  Look in the path if we contain no path at all
9733   # relative or not.
9734   case $0 in
9735     *[\\/]* ) as_myself=$0 ;;
9736     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9738 do
9739   IFS=$as_save_IFS
9740   test -z "$as_dir" && as_dir=.
9741   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9742 done
9743
9744        ;;
9745   esac
9746   # We did not find ourselves, most probably we were run as `sh COMMAND'
9747   # in which case we are not to be found in the path.
9748   if test "x$as_myself" = x; then
9749     as_myself=$0
9750   fi
9751   if test ! -f "$as_myself"; then
9752     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9753 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9754    { (exit 1); exit 1; }; }
9755   fi
9756   case $CONFIG_SHELL in
9757   '')
9758     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763   for as_base in sh bash ksh sh5; do
9764          case $as_dir in
9765          /*)
9766            if ("$as_dir/$as_base" -c '
9767   as_lineno_1=$LINENO
9768   as_lineno_2=$LINENO
9769   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9770   test "x$as_lineno_1" != "x$as_lineno_2" &&
9771   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9772              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9773              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9774              CONFIG_SHELL=$as_dir/$as_base
9775              export CONFIG_SHELL
9776              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9777            fi;;
9778          esac
9779        done
9780 done
9781 ;;
9782   esac
9783
9784   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9785   # uniformly replaced by the line number.  The first 'sed' inserts a
9786   # line-number line before each line; the second 'sed' does the real
9787   # work.  The second script uses 'N' to pair each line-number line
9788   # with the numbered line, and appends trailing '-' during
9789   # substitution so that $LINENO is not a special case at line end.
9790   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9791   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9792   sed '=' <$as_myself |
9793     sed '
9794       N
9795       s,$,-,
9796       : loop
9797       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9798       t loop
9799       s,-$,,
9800       s,^['$as_cr_digits']*\n,,
9801     ' >$as_me.lineno &&
9802   chmod +x $as_me.lineno ||
9803     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9804 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9805    { (exit 1); exit 1; }; }
9806
9807   # Don't try to exec as it changes $[0], causing all sort of problems
9808   # (the dirname of $[0] is not the place where we might find the
9809   # original and so on.  Autoconf is especially sensible to this).
9810   . ./$as_me.lineno
9811   # Exit status is that of the last command.
9812   exit
9813 }
9814
9815
9816 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9817   *c*,-n*) ECHO_N= ECHO_C='
9818 ' ECHO_T='      ' ;;
9819   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9820   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9821 esac
9822
9823 if expr a : '\(a\)' >/dev/null 2>&1; then
9824   as_expr=expr
9825 else
9826   as_expr=false
9827 fi
9828
9829 rm -f conf$$ conf$$.exe conf$$.file
9830 echo >conf$$.file
9831 if ln -s conf$$.file conf$$ 2>/dev/null; then
9832   # We could just check for DJGPP; but this test a) works b) is more generic
9833   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9834   if test -f conf$$.exe; then
9835     # Don't use ln at all; we don't have any links
9836     as_ln_s='cp -p'
9837   else
9838     as_ln_s='ln -s'
9839   fi
9840 elif ln conf$$.file conf$$ 2>/dev/null; then
9841   as_ln_s=ln
9842 else
9843   as_ln_s='cp -p'
9844 fi
9845 rm -f conf$$ conf$$.exe conf$$.file
9846
9847 if mkdir -p . 2>/dev/null; then
9848   as_mkdir_p=:
9849 else
9850   as_mkdir_p=false
9851 fi
9852
9853 as_executable_p="test -f"
9854
9855 # Sed expression to map a string onto a valid CPP name.
9856 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9857
9858 # Sed expression to map a string onto a valid variable name.
9859 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9860
9861
9862 # IFS
9863 # We need space, tab and new line, in precisely that order.
9864 as_nl='
9865 '
9866 IFS="   $as_nl"
9867
9868 # CDPATH.
9869 $as_unset CDPATH
9870
9871 exec 6>&1
9872
9873 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9874 # report actual input values of CONFIG_FILES etc. instead of their
9875 # values after options handling.  Logging --version etc. is OK.
9876 exec 5>>config.log
9877 {
9878   echo
9879   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9880 ## Running $as_me. ##
9881 _ASBOX
9882 } >&5
9883 cat >&5 <<_CSEOF
9884
9885 This file was extended by $as_me, which was
9886 generated by GNU Autoconf 2.57.  Invocation command line was
9887
9888   CONFIG_FILES    = $CONFIG_FILES
9889   CONFIG_HEADERS  = $CONFIG_HEADERS
9890   CONFIG_LINKS    = $CONFIG_LINKS
9891   CONFIG_COMMANDS = $CONFIG_COMMANDS
9892   $ $0 $@
9893
9894 _CSEOF
9895 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9896 echo >&5
9897 _ACEOF
9898
9899 # Files that config.status was made for.
9900 if test -n "$ac_config_files"; then
9901   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9902 fi
9903
9904 if test -n "$ac_config_headers"; then
9905   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9906 fi
9907
9908 if test -n "$ac_config_links"; then
9909   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9910 fi
9911
9912 if test -n "$ac_config_commands"; then
9913   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9914 fi
9915
9916 cat >>$CONFIG_STATUS <<\_ACEOF
9917
9918 ac_cs_usage="\
9919 \`$as_me' instantiates files from templates according to the
9920 current configuration.
9921
9922 Usage: $0 [OPTIONS] [FILE]...
9923
9924   -h, --help       print this help, then exit
9925   -V, --version    print version number, then exit
9926   -q, --quiet      do not print progress messages
9927   -d, --debug      don't remove temporary files
9928       --recheck    update $as_me by reconfiguring in the same conditions
9929   --file=FILE[:TEMPLATE]
9930                    instantiate the configuration file FILE
9931   --header=FILE[:TEMPLATE]
9932                    instantiate the configuration header FILE
9933
9934 Configuration files:
9935 $config_files
9936
9937 Configuration headers:
9938 $config_headers
9939
9940 Configuration commands:
9941 $config_commands
9942
9943 Report bugs to <bug-autoconf@gnu.org>."
9944 _ACEOF
9945
9946 cat >>$CONFIG_STATUS <<_ACEOF
9947 ac_cs_version="\\
9948 config.status
9949 configured by $0, generated by GNU Autoconf 2.57,
9950   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9951
9952 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9953 Free Software Foundation, Inc.
9954 This config.status script is free software; the Free Software Foundation
9955 gives unlimited permission to copy, distribute and modify it."
9956 srcdir=$srcdir
9957 INSTALL="$INSTALL"
9958 _ACEOF
9959
9960 cat >>$CONFIG_STATUS <<\_ACEOF
9961 # If no file are specified by the user, then we need to provide default
9962 # value.  By we need to know if files were specified by the user.
9963 ac_need_defaults=:
9964 while test $# != 0
9965 do
9966   case $1 in
9967   --*=*)
9968     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9969     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9970     ac_shift=:
9971     ;;
9972   -*)
9973     ac_option=$1
9974     ac_optarg=$2
9975     ac_shift=shift
9976     ;;
9977   *) # This is not an option, so the user has probably given explicit
9978      # arguments.
9979      ac_option=$1
9980      ac_need_defaults=false;;
9981   esac
9982
9983   case $ac_option in
9984   # Handling of the options.
9985 _ACEOF
9986 cat >>$CONFIG_STATUS <<\_ACEOF
9987   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9988     ac_cs_recheck=: ;;
9989   --version | --vers* | -V )
9990     echo "$ac_cs_version"; exit 0 ;;
9991   --he | --h)
9992     # Conflict between --help and --header
9993     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9994 Try \`$0 --help' for more information." >&5
9995 echo "$as_me: error: ambiguous option: $1
9996 Try \`$0 --help' for more information." >&2;}
9997    { (exit 1); exit 1; }; };;
9998   --help | --hel | -h )
9999     echo "$ac_cs_usage"; exit 0 ;;
10000   --debug | --d* | -d )
10001     debug=: ;;
10002   --file | --fil | --fi | --f )
10003     $ac_shift
10004     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10005     ac_need_defaults=false;;
10006   --header | --heade | --head | --hea )
10007     $ac_shift
10008     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10009     ac_need_defaults=false;;
10010   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10011   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10012     ac_cs_silent=: ;;
10013
10014   # This is an error.
10015   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10016 Try \`$0 --help' for more information." >&5
10017 echo "$as_me: error: unrecognized option: $1
10018 Try \`$0 --help' for more information." >&2;}
10019    { (exit 1); exit 1; }; } ;;
10020
10021   *) ac_config_targets="$ac_config_targets $1" ;;
10022
10023   esac
10024   shift
10025 done
10026
10027 ac_configure_extra_args=
10028
10029 if $ac_cs_silent; then
10030   exec 6>/dev/null
10031   ac_configure_extra_args="$ac_configure_extra_args --silent"
10032 fi
10033
10034 _ACEOF
10035 cat >>$CONFIG_STATUS <<_ACEOF
10036 if \$ac_cs_recheck; then
10037   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10038   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10039 fi
10040
10041 _ACEOF
10042
10043 cat >>$CONFIG_STATUS <<_ACEOF
10044 #
10045 # INIT-COMMANDS section.
10046 #
10047
10048 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10049
10050 _ACEOF
10051
10052
10053
10054 cat >>$CONFIG_STATUS <<\_ACEOF
10055 for ac_config_target in $ac_config_targets
10056 do
10057   case "$ac_config_target" in
10058   # Handling of arguments.
10059   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10060   "lufsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES lufsd/Makefile" ;;
10061   "filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/Makefile" ;;
10062   "filesystems/localfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/localfs/Makefile" ;;
10063   "filesystems/locasefs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/locasefs/Makefile" ;;
10064   "filesystems/sshfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/sshfs/Makefile" ;;
10065   "filesystems/ftpfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/ftpfs/Makefile" ;;
10066   "filesystems/cardfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cardfs/Makefile" ;;
10067   "filesystems/cefs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cefs/Makefile" ;;
10068   "filesystems/cefs/asyncd/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cefs/asyncd/Makefile" ;;
10069   "filesystems/gvfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/gvfs/Makefile" ;;
10070   "filesystems/gnetfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/gnetfs/Makefile" ;;
10071   "filesystems/wavfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/wavfs/Makefile" ;;
10072   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
10073   "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
10074   "kernel/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Linux/Makefile" ;;
10075   "kernel/Linux/2.4/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Linux/2.4/Makefile" ;;
10076   "kernel/Linux/2.5/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Linux/2.5/Makefile" ;;
10077   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10078   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
10079   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10080   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10081   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10082   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10083   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10084 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10085    { (exit 1); exit 1; }; };;
10086   esac
10087 done
10088
10089 # If the user did not use the arguments to specify the items to instantiate,
10090 # then the envvar interface is used.  Set only those that are not.
10091 # We use the long form for the default assignment because of an extremely
10092 # bizarre bug on SunOS 4.1.3.
10093 if $ac_need_defaults; then
10094   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10095   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10096   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10097 fi
10098
10099 # Have a temporary directory for convenience.  Make it in the build tree
10100 # simply because there is no reason to put it here, and in addition,
10101 # creating and moving files from /tmp can sometimes cause problems.
10102 # Create a temporary directory, and hook for its removal unless debugging.
10103 $debug ||
10104 {
10105   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10106   trap '{ (exit 1); exit 1; }' 1 2 13 15
10107 }
10108
10109 # Create a (secure) tmp directory for tmp files.
10110
10111 {
10112   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10113   test -n "$tmp" && test -d "$tmp"
10114 }  ||
10115 {
10116   tmp=./confstat$$-$RANDOM
10117   (umask 077 && mkdir $tmp)
10118 } ||
10119 {
10120    echo "$me: cannot create a temporary directory in ." >&2
10121    { (exit 1); exit 1; }
10122 }
10123
10124 _ACEOF
10125
10126 cat >>$CONFIG_STATUS <<_ACEOF
10127
10128 #
10129 # CONFIG_FILES section.
10130 #
10131
10132 # No need to generate the scripts if there are no CONFIG_FILES.
10133 # This happens for instance when ./config.status config.h
10134 if test -n "\$CONFIG_FILES"; then
10135   # Protect against being on the right side of a sed subst in config.status.
10136   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10137    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10138 s,@SHELL@,$SHELL,;t t
10139 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10140 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10141 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10142 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10143 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10144 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10145 s,@exec_prefix@,$exec_prefix,;t t
10146 s,@prefix@,$prefix,;t t
10147 s,@program_transform_name@,$program_transform_name,;t t
10148 s,@bindir@,$bindir,;t t
10149 s,@sbindir@,$sbindir,;t t
10150 s,@libexecdir@,$libexecdir,;t t
10151 s,@datadir@,$datadir,;t t
10152 s,@sysconfdir@,$sysconfdir,;t t
10153 s,@sharedstatedir@,$sharedstatedir,;t t
10154 s,@localstatedir@,$localstatedir,;t t
10155 s,@libdir@,$libdir,;t t
10156 s,@includedir@,$includedir,;t t
10157 s,@oldincludedir@,$oldincludedir,;t t
10158 s,@infodir@,$infodir,;t t
10159 s,@mandir@,$mandir,;t t
10160 s,@build_alias@,$build_alias,;t t
10161 s,@host_alias@,$host_alias,;t t
10162 s,@target_alias@,$target_alias,;t t
10163 s,@DEFS@,$DEFS,;t t
10164 s,@ECHO_C@,$ECHO_C,;t t
10165 s,@ECHO_N@,$ECHO_N,;t t
10166 s,@ECHO_T@,$ECHO_T,;t t
10167 s,@LIBS@,$LIBS,;t t
10168 s,@build@,$build,;t t
10169 s,@build_cpu@,$build_cpu,;t t
10170 s,@build_vendor@,$build_vendor,;t t
10171 s,@build_os@,$build_os,;t t
10172 s,@host@,$host,;t t
10173 s,@host_cpu@,$host_cpu,;t t
10174 s,@host_vendor@,$host_vendor,;t t
10175 s,@host_os@,$host_os,;t t
10176 s,@target@,$target,;t t
10177 s,@target_cpu@,$target_cpu,;t t
10178 s,@target_vendor@,$target_vendor,;t t
10179 s,@target_os@,$target_os,;t t
10180 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10181 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10182 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10183 s,@CYGPATH_W@,$CYGPATH_W,;t t
10184 s,@PACKAGE@,$PACKAGE,;t t
10185 s,@VERSION@,$VERSION,;t t
10186 s,@ACLOCAL@,$ACLOCAL,;t t
10187 s,@AUTOCONF@,$AUTOCONF,;t t
10188 s,@AUTOMAKE@,$AUTOMAKE,;t t
10189 s,@AUTOHEADER@,$AUTOHEADER,;t t
10190 s,@MAKEINFO@,$MAKEINFO,;t t
10191 s,@AMTAR@,$AMTAR,;t t
10192 s,@install_sh@,$install_sh,;t t
10193 s,@STRIP@,$STRIP,;t t
10194 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10195 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10196 s,@AWK@,$AWK,;t t
10197 s,@SET_MAKE@,$SET_MAKE,;t t
10198 s,@am__leading_dot@,$am__leading_dot,;t t
10199 s,@MODV_FLAGS@,$MODV_FLAGS,;t t
10200 s,@KERNEL_DIR@,$KERNEL_DIR,;t t
10201 s,@MODULES_DIR@,$MODULES_DIR,;t t
10202 s,@KERNEL_HDR@,$KERNEL_HDR,;t t
10203 s,@OS_DIR@,$OS_DIR,;t t
10204 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
10205 s,@KDEBUG_FLAGS@,$KDEBUG_FLAGS,;t t
10206 s,@AUTOFS_INSTALL@,$AUTOFS_INSTALL,;t t
10207 s,@LUFS_SUID@,$LUFS_SUID,;t t
10208 s,@CC@,$CC,;t t
10209 s,@CFLAGS@,$CFLAGS,;t t
10210 s,@LDFLAGS@,$LDFLAGS,;t t
10211 s,@CPPFLAGS@,$CPPFLAGS,;t t
10212 s,@ac_ct_CC@,$ac_ct_CC,;t t
10213 s,@EXEEXT@,$EXEEXT,;t t
10214 s,@OBJEXT@,$OBJEXT,;t t
10215 s,@DEPDIR@,$DEPDIR,;t t
10216 s,@am__include@,$am__include,;t t
10217 s,@am__quote@,$am__quote,;t t
10218 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10219 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10220 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10221 s,@CCDEPMODE@,$CCDEPMODE,;t t
10222 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10223 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10224 s,@CPP@,$CPP,;t t
10225 s,@CXX@,$CXX,;t t
10226 s,@CXXFLAGS@,$CXXFLAGS,;t t
10227 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10228 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10229 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10230 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10231 s,@LN_S@,$LN_S,;t t
10232 s,@ECHO@,$ECHO,;t t
10233 s,@RANLIB@,$RANLIB,;t t
10234 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10235 s,@EGREP@,$EGREP,;t t
10236 s,@LIBTOOL@,$LIBTOOL,;t t
10237 s,@SSHPROG@,$SSHPROG,;t t
10238 s,@GCONF@,$GCONF,;t t
10239 s,@GVFSCONF@,$GVFSCONF,;t t
10240 s,@GVFS_LDADD@,$GVFS_LDADD,;t t
10241 s,@GVFS_CFLAGS@,$GVFS_CFLAGS,;t t
10242 s,@define_has_libchipcard@,$define_has_libchipcard,;t t
10243 s,@LIBCHIPCARD_LIB@,$LIBCHIPCARD_LIB,;t t
10244 s,@LIBCHIPCARD_INCLUDES@,$LIBCHIPCARD_INCLUDES,;t t
10245 s,@opt_fs@,$opt_fs,;t t
10246 s,@all_includes@,$all_includes,;t t
10247 s,@all_libraries@,$all_libraries,;t t
10248 s,@LIBOBJS@,$LIBOBJS,;t t
10249 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10250 CEOF
10251
10252 _ACEOF
10253
10254   cat >>$CONFIG_STATUS <<\_ACEOF
10255   # Split the substitutions into bite-sized pieces for seds with
10256   # small command number limits, like on Digital OSF/1 and HP-UX.
10257   ac_max_sed_lines=48
10258   ac_sed_frag=1 # Number of current file.
10259   ac_beg=1 # First line for current file.
10260   ac_end=$ac_max_sed_lines # Line after last line for current file.
10261   ac_more_lines=:
10262   ac_sed_cmds=
10263   while $ac_more_lines; do
10264     if test $ac_beg -gt 1; then
10265       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10266     else
10267       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10268     fi
10269     if test ! -s $tmp/subs.frag; then
10270       ac_more_lines=false
10271     else
10272       # The purpose of the label and of the branching condition is to
10273       # speed up the sed processing (if there are no `@' at all, there
10274       # is no need to browse any of the substitutions).
10275       # These are the two extra sed commands mentioned above.
10276       (echo ':t
10277   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10278       if test -z "$ac_sed_cmds"; then
10279         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10280       else
10281         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10282       fi
10283       ac_sed_frag=`expr $ac_sed_frag + 1`
10284       ac_beg=$ac_end
10285       ac_end=`expr $ac_end + $ac_max_sed_lines`
10286     fi
10287   done
10288   if test -z "$ac_sed_cmds"; then
10289     ac_sed_cmds=cat
10290   fi
10291 fi # test -n "$CONFIG_FILES"
10292
10293 _ACEOF
10294 cat >>$CONFIG_STATUS <<\_ACEOF
10295 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10296   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10297   case $ac_file in
10298   - | *:- | *:-:* ) # input from stdin
10299         cat >$tmp/stdin
10300         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10301         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10302   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10304   * )   ac_file_in=$ac_file.in ;;
10305   esac
10306
10307   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10308   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10310          X"$ac_file" : 'X\(//\)[^/]' \| \
10311          X"$ac_file" : 'X\(//\)$' \| \
10312          X"$ac_file" : 'X\(/\)' \| \
10313          .     : '\(.\)' 2>/dev/null ||
10314 echo X"$ac_file" |
10315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10317           /^X\(\/\/\)$/{ s//\1/; q; }
10318           /^X\(\/\).*/{ s//\1/; q; }
10319           s/.*/./; q'`
10320   { if $as_mkdir_p; then
10321     mkdir -p "$ac_dir"
10322   else
10323     as_dir="$ac_dir"
10324     as_dirs=
10325     while test ! -d "$as_dir"; do
10326       as_dirs="$as_dir $as_dirs"
10327       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10329          X"$as_dir" : 'X\(//\)[^/]' \| \
10330          X"$as_dir" : 'X\(//\)$' \| \
10331          X"$as_dir" : 'X\(/\)' \| \
10332          .     : '\(.\)' 2>/dev/null ||
10333 echo X"$as_dir" |
10334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10336           /^X\(\/\/\)$/{ s//\1/; q; }
10337           /^X\(\/\).*/{ s//\1/; q; }
10338           s/.*/./; q'`
10339     done
10340     test ! -n "$as_dirs" || mkdir $as_dirs
10341   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10343    { (exit 1); exit 1; }; }; }
10344
10345   ac_builddir=.
10346
10347 if test "$ac_dir" != .; then
10348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10349   # A "../" for each directory in $ac_dir_suffix.
10350   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10351 else
10352   ac_dir_suffix= ac_top_builddir=
10353 fi
10354
10355 case $srcdir in
10356   .)  # No --srcdir option.  We are building in place.
10357     ac_srcdir=.
10358     if test -z "$ac_top_builddir"; then
10359        ac_top_srcdir=.
10360     else
10361        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10362     fi ;;
10363   [\\/]* | ?:[\\/]* )  # Absolute path.
10364     ac_srcdir=$srcdir$ac_dir_suffix;
10365     ac_top_srcdir=$srcdir ;;
10366   *) # Relative path.
10367     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10368     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10369 esac
10370 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10371 # absolute.
10372 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10373 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10374 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10375 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10376
10377
10378   case $INSTALL in
10379   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10380   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10381   esac
10382
10383   if test x"$ac_file" != x-; then
10384     { echo "$as_me:$LINENO: creating $ac_file" >&5
10385 echo "$as_me: creating $ac_file" >&6;}
10386     rm -f "$ac_file"
10387   fi
10388   # Let's still pretend it is `configure' which instantiates (i.e., don't
10389   # use $as_me), people would be surprised to read:
10390   #    /* config.h.  Generated by config.status.  */
10391   if test x"$ac_file" = x-; then
10392     configure_input=
10393   else
10394     configure_input="$ac_file.  "
10395   fi
10396   configure_input=$configure_input"Generated from `echo $ac_file_in |
10397                                      sed 's,.*/,,'` by configure."
10398
10399   # First look for the input files in the build tree, otherwise in the
10400   # src tree.
10401   ac_file_inputs=`IFS=:
10402     for f in $ac_file_in; do
10403       case $f in
10404       -) echo $tmp/stdin ;;
10405       [\\/$]*)
10406          # Absolute (can't be DOS-style, as IFS=:)
10407          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10408 echo "$as_me: error: cannot find input file: $f" >&2;}
10409    { (exit 1); exit 1; }; }
10410          echo $f;;
10411       *) # Relative
10412          if test -f "$f"; then
10413            # Build tree
10414            echo $f
10415          elif test -f "$srcdir/$f"; then
10416            # Source tree
10417            echo $srcdir/$f
10418          else
10419            # /dev/null tree
10420            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10421 echo "$as_me: error: cannot find input file: $f" >&2;}
10422    { (exit 1); exit 1; }; }
10423          fi;;
10424       esac
10425     done` || { (exit 1); exit 1; }
10426 _ACEOF
10427 cat >>$CONFIG_STATUS <<_ACEOF
10428   sed "$ac_vpsub
10429 $extrasub
10430 _ACEOF
10431 cat >>$CONFIG_STATUS <<\_ACEOF
10432 :t
10433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10434 s,@configure_input@,$configure_input,;t t
10435 s,@srcdir@,$ac_srcdir,;t t
10436 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10437 s,@top_srcdir@,$ac_top_srcdir,;t t
10438 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10439 s,@builddir@,$ac_builddir,;t t
10440 s,@abs_builddir@,$ac_abs_builddir,;t t
10441 s,@top_builddir@,$ac_top_builddir,;t t
10442 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10443 s,@INSTALL@,$ac_INSTALL,;t t
10444 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10445   rm -f $tmp/stdin
10446   if test x"$ac_file" != x-; then
10447     mv $tmp/out $ac_file
10448   else
10449     cat $tmp/out
10450     rm -f $tmp/out
10451   fi
10452
10453 done
10454 _ACEOF
10455 cat >>$CONFIG_STATUS <<\_ACEOF
10456
10457 #
10458 # CONFIG_HEADER section.
10459 #
10460
10461 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10462 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10463 #
10464 # ac_d sets the value in "#define NAME VALUE" lines.
10465 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10466 ac_dB='[        ].*$,\1#\2'
10467 ac_dC=' '
10468 ac_dD=',;t'
10469 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10470 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10471 ac_uB='$,\1#\2define\3'
10472 ac_uC=' '
10473 ac_uD=',;t'
10474
10475 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10476   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10477   case $ac_file in
10478   - | *:- | *:-:* ) # input from stdin
10479         cat >$tmp/stdin
10480         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10481         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10482   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10483         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10484   * )   ac_file_in=$ac_file.in ;;
10485   esac
10486
10487   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10488 echo "$as_me: creating $ac_file" >&6;}
10489
10490   # First look for the input files in the build tree, otherwise in the
10491   # src tree.
10492   ac_file_inputs=`IFS=:
10493     for f in $ac_file_in; do
10494       case $f in
10495       -) echo $tmp/stdin ;;
10496       [\\/$]*)
10497          # Absolute (can't be DOS-style, as IFS=:)
10498          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10499 echo "$as_me: error: cannot find input file: $f" >&2;}
10500    { (exit 1); exit 1; }; }
10501          echo $f;;
10502       *) # Relative
10503          if test -f "$f"; then
10504            # Build tree
10505            echo $f
10506          elif test -f "$srcdir/$f"; then
10507            # Source tree
10508            echo $srcdir/$f
10509          else
10510            # /dev/null tree
10511            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10512 echo "$as_me: error: cannot find input file: $f" >&2;}
10513    { (exit 1); exit 1; }; }
10514          fi;;
10515       esac
10516     done` || { (exit 1); exit 1; }
10517   # Remove the trailing spaces.
10518   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10519
10520 _ACEOF
10521
10522 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10523 # `conftest.undefs', that substitutes the proper values into
10524 # config.h.in to produce config.h.  The first handles `#define'
10525 # templates, and the second `#undef' templates.
10526 # And first: Protect against being on the right side of a sed subst in
10527 # config.status.  Protect against being in an unquoted here document
10528 # in config.status.
10529 rm -f conftest.defines conftest.undefs
10530 # Using a here document instead of a string reduces the quoting nightmare.
10531 # Putting comments in sed scripts is not portable.
10532 #
10533 # `end' is used to avoid that the second main sed command (meant for
10534 # 0-ary CPP macros) applies to n-ary macro definitions.
10535 # See the Autoconf documentation for `clear'.
10536 cat >confdef2sed.sed <<\_ACEOF
10537 s/[\\&,]/\\&/g
10538 s,[\\$`],\\&,g
10539 t clear
10540 : clear
10541 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10542 t end
10543 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10544 : end
10545 _ACEOF
10546 # If some macros were called several times there might be several times
10547 # the same #defines, which is useless.  Nevertheless, we may not want to
10548 # sort them, since we want the *last* AC-DEFINE to be honored.
10549 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10550 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10551 rm -f confdef2sed.sed
10552
10553 # This sed command replaces #undef with comments.  This is necessary, for
10554 # example, in the case of _POSIX_SOURCE, which is predefined and required
10555 # on some systems where configure will not decide to define it.
10556 cat >>conftest.undefs <<\_ACEOF
10557 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10558 _ACEOF
10559
10560 # Break up conftest.defines because some shells have a limit on the size
10561 # of here documents, and old seds have small limits too (100 cmds).
10562 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10563 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10564 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10565 echo '  :' >>$CONFIG_STATUS
10566 rm -f conftest.tail
10567 while grep . conftest.defines >/dev/null
10568 do
10569   # Write a limited-size here document to $tmp/defines.sed.
10570   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10571   # Speed up: don't consider the non `#define' lines.
10572   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10573   # Work around the forget-to-reset-the-flag bug.
10574   echo 't clr' >>$CONFIG_STATUS
10575   echo ': clr' >>$CONFIG_STATUS
10576   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10577   echo 'CEOF
10578   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10579   rm -f $tmp/in
10580   mv $tmp/out $tmp/in
10581 ' >>$CONFIG_STATUS
10582   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10583   rm -f conftest.defines
10584   mv conftest.tail conftest.defines
10585 done
10586 rm -f conftest.defines
10587 echo '  fi # grep' >>$CONFIG_STATUS
10588 echo >>$CONFIG_STATUS
10589
10590 # Break up conftest.undefs because some shells have a limit on the size
10591 # of here documents, and old seds have small limits too (100 cmds).
10592 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10593 rm -f conftest.tail
10594 while grep . conftest.undefs >/dev/null
10595 do
10596   # Write a limited-size here document to $tmp/undefs.sed.
10597   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10598   # Speed up: don't consider the non `#undef'
10599   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10600   # Work around the forget-to-reset-the-flag bug.
10601   echo 't clr' >>$CONFIG_STATUS
10602   echo ': clr' >>$CONFIG_STATUS
10603   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10604   echo 'CEOF
10605   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10606   rm -f $tmp/in
10607   mv $tmp/out $tmp/in
10608 ' >>$CONFIG_STATUS
10609   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10610   rm -f conftest.undefs
10611   mv conftest.tail conftest.undefs
10612 done
10613 rm -f conftest.undefs
10614
10615 cat >>$CONFIG_STATUS <<\_ACEOF
10616   # Let's still pretend it is `configure' which instantiates (i.e., don't
10617   # use $as_me), people would be surprised to read:
10618   #    /* config.h.  Generated by config.status.  */
10619   if test x"$ac_file" = x-; then
10620     echo "/* Generated by configure.  */" >$tmp/config.h
10621   else
10622     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10623   fi
10624   cat $tmp/in >>$tmp/config.h
10625   rm -f $tmp/in
10626   if test x"$ac_file" != x-; then
10627     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10628       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10629 echo "$as_me: $ac_file is unchanged" >&6;}
10630     else
10631       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10632 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10633          X"$ac_file" : 'X\(//\)[^/]' \| \
10634          X"$ac_file" : 'X\(//\)$' \| \
10635          X"$ac_file" : 'X\(/\)' \| \
10636          .     : '\(.\)' 2>/dev/null ||
10637 echo X"$ac_file" |
10638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10639           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10640           /^X\(\/\/\)$/{ s//\1/; q; }
10641           /^X\(\/\).*/{ s//\1/; q; }
10642           s/.*/./; q'`
10643       { if $as_mkdir_p; then
10644     mkdir -p "$ac_dir"
10645   else
10646     as_dir="$ac_dir"
10647     as_dirs=
10648     while test ! -d "$as_dir"; do
10649       as_dirs="$as_dir $as_dirs"
10650       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10652          X"$as_dir" : 'X\(//\)[^/]' \| \
10653          X"$as_dir" : 'X\(//\)$' \| \
10654          X"$as_dir" : 'X\(/\)' \| \
10655          .     : '\(.\)' 2>/dev/null ||
10656 echo X"$as_dir" |
10657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10658           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10659           /^X\(\/\/\)$/{ s//\1/; q; }
10660           /^X\(\/\).*/{ s//\1/; q; }
10661           s/.*/./; q'`
10662     done
10663     test ! -n "$as_dirs" || mkdir $as_dirs
10664   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10665 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10666    { (exit 1); exit 1; }; }; }
10667
10668       rm -f $ac_file
10669       mv $tmp/config.h $ac_file
10670     fi
10671   else
10672     cat $tmp/config.h
10673     rm -f $tmp/config.h
10674   fi
10675 # Compute $ac_file's index in $config_headers.
10676 _am_stamp_count=1
10677 for _am_header in $config_headers :; do
10678   case $_am_header in
10679     $ac_file | $ac_file:* )
10680       break ;;
10681     * )
10682       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10683   esac
10684 done
10685 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10686 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10687          X$ac_file : 'X\(//\)[^/]' \| \
10688          X$ac_file : 'X\(//\)$' \| \
10689          X$ac_file : 'X\(/\)' \| \
10690          .     : '\(.\)' 2>/dev/null ||
10691 echo X$ac_file |
10692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10693           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10694           /^X\(\/\/\)$/{ s//\1/; q; }
10695           /^X\(\/\).*/{ s//\1/; q; }
10696           s/.*/./; q'`/stamp-h$_am_stamp_count
10697 done
10698 _ACEOF
10699 cat >>$CONFIG_STATUS <<\_ACEOF
10700
10701 #
10702 # CONFIG_COMMANDS section.
10703 #
10704 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10705   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10706   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10707   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10708 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10709          X"$ac_dest" : 'X\(//\)[^/]' \| \
10710          X"$ac_dest" : 'X\(//\)$' \| \
10711          X"$ac_dest" : 'X\(/\)' \| \
10712          .     : '\(.\)' 2>/dev/null ||
10713 echo X"$ac_dest" |
10714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10716           /^X\(\/\/\)$/{ s//\1/; q; }
10717           /^X\(\/\).*/{ s//\1/; q; }
10718           s/.*/./; q'`
10719   ac_builddir=.
10720
10721 if test "$ac_dir" != .; then
10722   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10723   # A "../" for each directory in $ac_dir_suffix.
10724   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10725 else
10726   ac_dir_suffix= ac_top_builddir=
10727 fi
10728
10729 case $srcdir in
10730   .)  # No --srcdir option.  We are building in place.
10731     ac_srcdir=.
10732     if test -z "$ac_top_builddir"; then
10733        ac_top_srcdir=.
10734     else
10735        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10736     fi ;;
10737   [\\/]* | ?:[\\/]* )  # Absolute path.
10738     ac_srcdir=$srcdir$ac_dir_suffix;
10739     ac_top_srcdir=$srcdir ;;
10740   *) # Relative path.
10741     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10742     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10743 esac
10744 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10745 # absolute.
10746 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10747 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10748 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10749 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10750
10751
10752   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10753 echo "$as_me: executing $ac_dest commands" >&6;}
10754   case $ac_dest in
10755     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10756   # Strip MF so we end up with the name of the file.
10757   mf=`echo "$mf" | sed -e 's/:.*$//'`
10758   # Check whether this is an Automake generated Makefile or not.
10759   # We used to match only the files named `Makefile.in', but
10760   # some people rename them; so instead we look at the file content.
10761   # Grep'ing the first line is not enough: some people post-process
10762   # each Makefile.in and add a new line on top of each file to say so.
10763   # So let's grep whole file.
10764   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10765     dirpart=`(dirname "$mf") 2>/dev/null ||
10766 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10767          X"$mf" : 'X\(//\)[^/]' \| \
10768          X"$mf" : 'X\(//\)$' \| \
10769          X"$mf" : 'X\(/\)' \| \
10770          .     : '\(.\)' 2>/dev/null ||
10771 echo X"$mf" |
10772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10773           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10774           /^X\(\/\/\)$/{ s//\1/; q; }
10775           /^X\(\/\).*/{ s//\1/; q; }
10776           s/.*/./; q'`
10777   else
10778     continue
10779   fi
10780   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10781   # Extract the definition of DEP_FILES from the Makefile without
10782   # running `make'.
10783   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10784   test -z "$DEPDIR" && continue
10785   # When using ansi2knr, U may be empty or an underscore; expand it
10786   U=`sed -n -e '/^U = / s///p' < "$mf"`
10787   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10788   # We invoke sed twice because it is the simplest approach to
10789   # changing $(DEPDIR) to its actual value in the expansion.
10790   for file in `sed -n -e '
10791     /^DEP_FILES = .*\\\\$/ {
10792       s/^DEP_FILES = //
10793       :loop
10794         s/\\\\$//
10795         p
10796         n
10797         /\\\\$/ b loop
10798       p
10799     }
10800     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10801        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10802     # Make sure the directory exists.
10803     test -f "$dirpart/$file" && continue
10804     fdir=`(dirname "$file") 2>/dev/null ||
10805 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10806          X"$file" : 'X\(//\)[^/]' \| \
10807          X"$file" : 'X\(//\)$' \| \
10808          X"$file" : 'X\(/\)' \| \
10809          .     : '\(.\)' 2>/dev/null ||
10810 echo X"$file" |
10811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10812           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10813           /^X\(\/\/\)$/{ s//\1/; q; }
10814           /^X\(\/\).*/{ s//\1/; q; }
10815           s/.*/./; q'`
10816     { if $as_mkdir_p; then
10817     mkdir -p $dirpart/$fdir
10818   else
10819     as_dir=$dirpart/$fdir
10820     as_dirs=
10821     while test ! -d "$as_dir"; do
10822       as_dirs="$as_dir $as_dirs"
10823       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10825          X"$as_dir" : 'X\(//\)[^/]' \| \
10826          X"$as_dir" : 'X\(//\)$' \| \
10827          X"$as_dir" : 'X\(/\)' \| \
10828          .     : '\(.\)' 2>/dev/null ||
10829 echo X"$as_dir" |
10830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10831           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10832           /^X\(\/\/\)$/{ s//\1/; q; }
10833           /^X\(\/\).*/{ s//\1/; q; }
10834           s/.*/./; q'`
10835     done
10836     test ! -n "$as_dirs" || mkdir $as_dirs
10837   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10838 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10839    { (exit 1); exit 1; }; }; }
10840
10841     # echo "creating $dirpart/$file"
10842     echo '# dummy' > "$dirpart/$file"
10843   done
10844 done
10845  ;;
10846   esac
10847 done
10848 _ACEOF
10849
10850 cat >>$CONFIG_STATUS <<\_ACEOF
10851
10852 { (exit 0); exit 0; }
10853 _ACEOF
10854 chmod +x $CONFIG_STATUS
10855 ac_clean_files=$ac_clean_files_save
10856
10857
10858 # configure is writing to config.log, and then calls config.status.
10859 # config.status does its own redirection, appending to config.log.
10860 # Unfortunately, on DOS this fails, as config.log is still kept open
10861 # by configure, so config.status won't be able to write to it; its
10862 # output is simply discarded.  So we exec the FD to /dev/null,
10863 # effectively closing config.log, so it can be properly (re)opened and
10864 # appended to by config.status.  When coming back to configure, we
10865 # need to make the FD available again.
10866 if test "$no_create" != yes; then
10867   ac_cs_success=:
10868   ac_config_status_args=
10869   test "$silent" = yes &&
10870     ac_config_status_args="$ac_config_status_args --quiet"
10871   exec 5>/dev/null
10872   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10873   exec 5>>config.log
10874   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10875   # would make configure fail if this is the last instruction.
10876   $ac_cs_success || { (exit 1); exit 1; }
10877 fi
10878
10879
10880 echo "###############################################################################"
10881 echo " supported filesystems: $opt_fs"
10882 echo -n " suid files: "
10883 if test $LUFS_SUID; then echo "lufsmnt & lufsumount."; else echo "none."; fi
10884 echo "###############################################################################"